From ade2d09748fbe61108874c3ab95c4651ec618193 Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Sun, 21 Dec 2025 00:16:00 +0000 Subject: [PATCH] chore: regenerate types after SiteSettings/Navigations DB schema creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated payload-types.ts with new collection types - Updated comment in payload.config.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/payload-types.ts | 295 ++++++++++++++++++++++-------------------- src/payload.config.ts | 2 +- 2 files changed, 158 insertions(+), 139 deletions(-) diff --git a/src/payload-types.ts b/src/payload-types.ts index 9237c89..a748716 100644 --- a/src/payload-types.ts +++ b/src/payload-types.ts @@ -104,6 +104,8 @@ export interface Config { 'privacy-policy-settings': PrivacyPolicySetting; 'email-logs': EmailLog; 'audit-logs': AuditLog; + 'site-settings': SiteSetting; + navigations: Navigation; forms: Form; 'form-submissions': FormSubmission; redirects: Redirect; @@ -151,6 +153,8 @@ export interface Config { 'privacy-policy-settings': PrivacyPolicySettingsSelect | PrivacyPolicySettingsSelect; 'email-logs': EmailLogsSelect | EmailLogsSelect; 'audit-logs': AuditLogsSelect | AuditLogsSelect; + 'site-settings': SiteSettingsSelect | SiteSettingsSelect; + navigations: NavigationsSelect | NavigationsSelect; forms: FormsSelect | FormsSelect; 'form-submissions': FormSubmissionsSelect | FormSubmissionsSelect; redirects: RedirectsSelect | RedirectsSelect; @@ -164,13 +168,9 @@ export interface Config { }; fallbackLocale: ('false' | 'none' | 'null') | false | null | ('de' | 'en') | ('de' | 'en')[]; globals: { - 'site-settings': SiteSetting; - navigation: Navigation; 'seo-settings': SeoSetting; }; globalsSelect: { - 'site-settings': SiteSettingsSelect | SiteSettingsSelect; - navigation: NavigationSelect | NavigationSelect; 'seo-settings': SeoSettingsSelect | SeoSettingsSelect; }; locale: 'de' | 'en'; @@ -6132,6 +6132,80 @@ export interface AuditLog { updatedAt: string; createdAt: string; } +/** + * Allgemeine Website-Einstellungen pro Tenant + * + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "site-settings". + */ +export interface SiteSetting { + id: number; + tenant?: (number | null) | Tenant; + siteName: string; + siteTagline?: string | null; + logo?: (number | null) | Media; + favicon?: (number | null) | Media; + contact?: { + email?: string | null; + phone?: string | null; + address?: string | null; + }; + footer?: { + copyrightText?: string | null; + showSocialLinks?: boolean | null; + }; + seo?: { + defaultMetaTitle?: string | null; + defaultMetaDescription?: string | null; + defaultOgImage?: (number | null) | Media; + }; + updatedAt: string; + createdAt: string; +} +/** + * Navigationsmenüs pro Tenant + * + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "navigations". + */ +export interface Navigation { + id: number; + tenant?: (number | null) | Tenant; + /** + * Interner Name zur Identifikation + */ + title: string; + mainMenu?: + | { + label: string; + type?: ('page' | 'custom' | 'submenu') | null; + page?: (number | null) | Page; + url?: string | null; + openInNewTab?: boolean | null; + submenu?: + | { + label: string; + linkType?: ('page' | 'custom') | null; + page?: (number | null) | Page; + url?: string | null; + id?: string | null; + }[] + | null; + id?: string | null; + }[] + | null; + footerMenu?: + | { + label: string; + linkType?: ('page' | 'custom') | null; + page?: (number | null) | Page; + url?: string | null; + id?: string | null; + }[] + | null; + updatedAt: string; + createdAt: string; +} /** * Eingegangene Formular-Einsendungen * @@ -6341,6 +6415,14 @@ export interface PayloadLockedDocument { relationTo: 'audit-logs'; value: number | AuditLog; } | null) + | ({ + relationTo: 'site-settings'; + value: number | SiteSetting; + } | null) + | ({ + relationTo: 'navigations'; + value: number | Navigation; + } | null) | ({ relationTo: 'forms'; value: number | Form; @@ -9956,6 +10038,77 @@ export interface AuditLogsSelect { updatedAt?: T; createdAt?: T; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "site-settings_select". + */ +export interface SiteSettingsSelect { + tenant?: T; + siteName?: T; + siteTagline?: T; + logo?: T; + favicon?: T; + contact?: + | T + | { + email?: T; + phone?: T; + address?: T; + }; + footer?: + | T + | { + copyrightText?: T; + showSocialLinks?: T; + }; + seo?: + | T + | { + defaultMetaTitle?: T; + defaultMetaDescription?: T; + defaultOgImage?: T; + }; + updatedAt?: T; + createdAt?: T; +} +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "navigations_select". + */ +export interface NavigationsSelect { + tenant?: T; + title?: T; + mainMenu?: + | T + | { + label?: T; + type?: T; + page?: T; + url?: T; + openInNewTab?: T; + submenu?: + | T + | { + label?: T; + linkType?: T; + page?: T; + url?: T; + id?: T; + }; + id?: T; + }; + footerMenu?: + | T + | { + label?: T; + linkType?: T; + page?: T; + url?: T; + id?: T; + }; + updatedAt?: T; + createdAt?: T; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "forms_select". @@ -10143,70 +10296,6 @@ 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 | null; - siteTagline?: string | null; - logo?: (number | null) | Media; - favicon?: (number | null) | Media; - contact?: { - email?: string | null; - phone?: string | null; - address?: string | null; - }; - footer?: { - copyrightText?: string | null; - showSocialLinks?: boolean | null; - }; - seo?: { - defaultMetaTitle?: string | null; - defaultMetaDescription?: string | null; - defaultOgImage?: (number | null) | Media; - }; - updatedAt?: string | null; - createdAt?: string | null; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "navigation". - */ -export interface Navigation { - id: number; - mainMenu?: - | { - label: string; - type?: ('page' | 'custom' | 'submenu') | null; - page?: (number | null) | Page; - url?: string | null; - openInNewTab?: boolean | null; - submenu?: - | { - label: string; - linkType?: ('page' | 'custom') | null; - page?: (number | null) | Page; - url?: string | null; - id?: string | null; - }[] - | null; - id?: string | null; - }[] - | null; - footerMenu?: - | { - label: string; - linkType?: ('page' | 'custom') | null; - page?: (number | null) | Page; - url?: string | null; - id?: string | null; - }[] - | null; - updatedAt?: string | null; - createdAt?: string | null; -} /** * Globale SEO-Konfiguration und Schema.org Daten * @@ -10345,76 +10434,6 @@ export interface SeoSetting { 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; - siteTagline?: T; - logo?: T; - favicon?: T; - contact?: - | T - | { - email?: T; - phone?: T; - address?: T; - }; - footer?: - | T - | { - copyrightText?: T; - showSocialLinks?: T; - }; - seo?: - | T - | { - defaultMetaTitle?: T; - defaultMetaDescription?: T; - defaultOgImage?: T; - }; - updatedAt?: T; - createdAt?: T; - globalType?: T; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "navigation_select". - */ -export interface NavigationSelect { - mainMenu?: - | T - | { - label?: T; - type?: T; - page?: T; - url?: T; - openInNewTab?: T; - submenu?: - | T - | { - label?: T; - linkType?: T; - page?: T; - url?: T; - id?: T; - }; - id?: T; - }; - footerMenu?: - | T - | { - label?: T; - linkType?: T; - page?: T; - url?: T; - id?: T; - }; - updatedAt?: T; - createdAt?: T; - globalType?: T; -} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "seo-settings_select". diff --git a/src/payload.config.ts b/src/payload.config.ts index e850ff7..03c01e9 100644 --- a/src/payload.config.ts +++ b/src/payload.config.ts @@ -219,7 +219,7 @@ export default buildConfig({ pool: { connectionString: env.DATABASE_URI, }, - // push: false - Schema-Änderungen nur via Migrationen + // push: false - Schema manuell erstellt push: false, }), // Sharp für Bildoptimierung