Add posts
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias
2024-06-24 01:22:01 +02:00
parent 5eb7b7037b
commit d6fe6446a5
10 changed files with 234 additions and 112 deletions

View File

@ -50,10 +50,24 @@ export interface Post {
summary?: string | null;
publishedDate?: string | null;
thumbnail: string | Media;
'content-title'?: string | null;
blocks?:
| (
| RichTextBlock
| {
author?: (string | null) | Author;
id?: string | null;
blockName?: string | null;
blockType: 'Author';
}
)[]
| null;
author?: (string | null) | Author;
status: 'draft' | 'published' | 'archived';
slug?: string | null;
path?: string | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
@ -74,41 +88,6 @@ export interface Media {
focalX?: number | null;
focalY?: number | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "authors".
*/
export interface Author {
id: string;
avatar: string | Media;
name: string;
bio?: string | null;
user?: string | User | null;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages".
*/
export interface Page {
id: string;
title?: string | null;
blocks?: RichTextBlock[] | null;
slug?: string | null;
path?: string | null;
breadcrumbs?:
| {
doc?: (string | null) | Page;
url?: string | null;
label?: string | null;
id?: string | null;
}[]
| null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "RichTextBlock".
@ -133,6 +112,51 @@ export interface RichTextBlock {
blockName?: string | null;
blockType: 'RichText';
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "authors".
*/
export interface Author {
id: string;
avatar: string | Media;
name: string;
bio?: string | null;
user?: string | User | null;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages".
*/
export interface Page {
id: string;
title?: string | null;
blocks?:
| (
| RichTextBlock
| {
author?: (string | null) | Author;
id?: string | null;
blockName?: string | null;
blockType: 'Author';
}
)[]
| null;
slug?: string | null;
path?: string | null;
breadcrumbs?:
| {
doc?: (string | null) | Page;
url?: string | null;
label?: string | null;
id?: string | null;
}[]
| null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences".