content text and dynamic zone components

This commit is contained in:
Julian Krauser 2024-11-03 13:13:36 +01:00
parent 44b55d9bbb
commit 3df3ba4ebc
22 changed files with 202 additions and 24 deletions

View file

@ -1,5 +1,4 @@
import type BaseImage from "../component/baseImage";
import type BaseCollection from "./baseCollection";
export default interface Article extends BaseCollection {
content: Array<{ type: string; children: Array<{ type: string; text: string }>; level?: number }>;
}
export default interface Article extends BaseCollection {}

View file

@ -1,3 +1,6 @@
import type BaseImage from "../component/baseImage";
import type ContentField from "../field/content";
export default interface BaseCollection {
id: number;
documentId: string;
@ -9,4 +12,8 @@ export default interface BaseCollection {
updatedAt: string;
publishedAt: string;
locale: string;
content: ContentField | undefined;
image: BaseImage | undefined;
attachment: Array<BaseImage>;
}

View file

@ -1,5 +1,6 @@
import type BaseCollection from "./baseCollection";
export default interface Event extends BaseCollection {
content: Array<{ type: string; children: Array<{ type: string; text: string }>; level?: number }>;
image: undefined;
content: undefined;
}

View file

@ -3,7 +3,7 @@ export default interface Lookup {
documentId: string;
collection: string;
reference: string;
createdAt: Date;
updatedAt: Date;
publishedAt: Date;
createdAt: string;
updatedAt: string;
publishedAt: string;
}

View file

@ -1,5 +1,5 @@
import type BaseCollection from "./baseCollection";
export default interface Operation extends BaseCollection {
content: Array<{ type: string; children: Array<{ type: string; text: string }>; level?: number }>;
image: undefined;
}