vehicle and base list items
This commit is contained in:
parent
3df3ba4ebc
commit
4ea0f9b5a1
9 changed files with 61 additions and 9 deletions
|
@ -4,15 +4,15 @@ import type ContentField from "../field/content";
|
|||
export default interface BaseCollection {
|
||||
id: number;
|
||||
documentId: string;
|
||||
title: string;
|
||||
description: string;
|
||||
slug: string;
|
||||
date: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
publishedAt: string;
|
||||
locale: string;
|
||||
|
||||
title: string;
|
||||
description: string;
|
||||
date: string | undefined;
|
||||
content: ContentField | undefined;
|
||||
image: BaseImage | undefined;
|
||||
attachment: Array<BaseImage>;
|
||||
|
|
|
@ -2,6 +2,7 @@ export default interface Lookup {
|
|||
id: number;
|
||||
documentId: string;
|
||||
collection: string;
|
||||
imageItem: boolean;
|
||||
reference: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
|
|
6
types/collection/vehicle.ts
Normal file
6
types/collection/vehicle.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import type BaseImage from "../component/baseImage";
|
||||
import type BaseCollection from "./baseCollection";
|
||||
|
||||
export default interface Vehicle extends BaseCollection {
|
||||
date: undefined;
|
||||
}
|
|
@ -1,7 +1,8 @@
|
|||
import type Lookup from "../collection/lookup";
|
||||
import type BaseComponent from "./baseComponent";
|
||||
|
||||
export default interface SharedList extends BaseComponent {
|
||||
__component: "shared.list";
|
||||
list: string;
|
||||
enable_detail: boolean;
|
||||
lookup: Lookup;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue