From fbaac002a3541663f9be70cf973d727febf25f3f Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Tue, 5 May 2026 08:38:21 +0200 Subject: [PATCH] =?UTF-8?q?feat(core-cms):=20regenerate=20types=20?= =?UTF-8?q?=E2=80=94=20now=20includes=20Pages,=20SiteSettings,=20Header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core-cms/src/generated-types.ts | 149 ++++++++++++++++++++++- 1 file changed, 147 insertions(+), 2 deletions(-) diff --git a/packages/core-cms/src/generated-types.ts b/packages/core-cms/src/generated-types.ts index 341abff..528314b 100644 --- a/packages/core-cms/src/generated-types.ts +++ b/packages/core-cms/src/generated-types.ts @@ -69,6 +69,7 @@ export interface Config { collections: { users: User; articles: Article; + pages: Page; media: Media; 'payload-kv': PayloadKv; 'payload-locked-documents': PayloadLockedDocument; @@ -79,6 +80,7 @@ export interface Config { collectionsSelect: { users: UsersSelect | UsersSelect; articles: ArticlesSelect | ArticlesSelect; + pages: PagesSelect | PagesSelect; media: MediaSelect | MediaSelect; 'payload-kv': PayloadKvSelect | PayloadKvSelect; 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; @@ -89,8 +91,14 @@ export interface Config { defaultIDType: number; }; fallbackLocale: null; - globals: {}; - globalsSelect: {}; + globals: { + 'site-settings': SiteSetting; + header: Header; + }; + globalsSelect: { + 'site-settings': SiteSettingsSelect | SiteSettingsSelect; + header: HeaderSelect | HeaderSelect; + }; locale: null; widgets: { collections: CollectionsWidget; @@ -199,6 +207,42 @@ export interface Media { focalX?: number | null; focalY?: number | null; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "pages". + */ +export interface Page { + id: number; + title: string; + /** + * Auto-generated from title if left empty + */ + slug?: string | null; + hero: { + heading: string; + subheading?: string | null; + image?: (number | null) | Media; + }; + layout?: + | { + title: string; + buttonLabel: string; + href: string; + id?: string | null; + blockName?: string | null; + blockType: 'cta'; + }[] + | null; + status: 'draft' | 'published'; + publishedAt?: string | null; + seo: { + title: string; + description?: string | null; + }; + updatedAt: string; + createdAt: string; + _status?: ('draft' | 'published') | null; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-kv". @@ -231,6 +275,10 @@ export interface PayloadLockedDocument { relationTo: 'articles'; value: number | Article; } | null) + | ({ + relationTo: 'pages'; + value: number | Page; + } | null) | ({ relationTo: 'media'; value: number | Media; @@ -317,6 +365,45 @@ export interface ArticlesSelect { createdAt?: T; _status?: T; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "pages_select". + */ +export interface PagesSelect { + title?: T; + slug?: T; + hero?: + | T + | { + heading?: T; + subheading?: T; + image?: T; + }; + layout?: + | T + | { + cta?: + | T + | { + title?: T; + buttonLabel?: T; + href?: T; + id?: T; + blockName?: T; + }; + }; + status?: T; + publishedAt?: T; + seo?: + | T + | { + title?: T; + description?: T; + }; + updatedAt?: T; + createdAt?: T; + _status?: T; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "media_select". @@ -375,6 +462,64 @@ export interface PayloadMigrationsSelect { updatedAt?: T; createdAt?: T; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "site-settings". + */ +export interface SiteSetting { + id: number; + siteName: string; + siteDescription?: string | null; + updatedAt?: string | null; + createdAt?: string | null; +} +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "header". + */ +export interface Header { + id: number; + logo?: (number | null) | Media; + items?: + | { + label: string; + href: string; + external?: boolean | null; + id?: string | null; + }[] + | null; + updatedAt?: string | null; + createdAt?: string | null; +} +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "site-settings_select". + */ +export interface SiteSettingsSelect { + siteName?: T; + siteDescription?: T; + updatedAt?: T; + createdAt?: T; + globalType?: T; +} +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "header_select". + */ +export interface HeaderSelect { + logo?: T; + items?: + | T + | { + label?: T; + href?: T; + external?: T; + id?: T; + }; + updatedAt?: T; + createdAt?: T; + globalType?: T; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "collections_widget".