vehicle and base list items

This commit is contained in:
Julian Krauser 2024-11-03 15:34:48 +01:00
parent 3df3ba4ebc
commit 4ea0f9b5a1
9 changed files with 61 additions and 9 deletions

View file

@ -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>;

View file

@ -2,6 +2,7 @@ export default interface Lookup {
id: number;
documentId: string;
collection: string;
imageItem: boolean;
reference: string;
createdAt: string;
updatedAt: string;

View file

@ -0,0 +1,6 @@
import type BaseImage from "../component/baseImage";
import type BaseCollection from "./baseCollection";
export default interface Vehicle extends BaseCollection {
date: undefined;
}

View file

@ -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;
}