chore: regenerate types after SiteSettings/Navigations DB schema creation

- 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 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2025-12-21 00:16:00 +00:00
parent 6aed5a39d3
commit ade2d09748
2 changed files with 158 additions and 139 deletions

View file

@ -104,6 +104,8 @@ export interface Config {
'privacy-policy-settings': PrivacyPolicySetting; 'privacy-policy-settings': PrivacyPolicySetting;
'email-logs': EmailLog; 'email-logs': EmailLog;
'audit-logs': AuditLog; 'audit-logs': AuditLog;
'site-settings': SiteSetting;
navigations: Navigation;
forms: Form; forms: Form;
'form-submissions': FormSubmission; 'form-submissions': FormSubmission;
redirects: Redirect; redirects: Redirect;
@ -151,6 +153,8 @@ export interface Config {
'privacy-policy-settings': PrivacyPolicySettingsSelect<false> | PrivacyPolicySettingsSelect<true>; 'privacy-policy-settings': PrivacyPolicySettingsSelect<false> | PrivacyPolicySettingsSelect<true>;
'email-logs': EmailLogsSelect<false> | EmailLogsSelect<true>; 'email-logs': EmailLogsSelect<false> | EmailLogsSelect<true>;
'audit-logs': AuditLogsSelect<false> | AuditLogsSelect<true>; 'audit-logs': AuditLogsSelect<false> | AuditLogsSelect<true>;
'site-settings': SiteSettingsSelect<false> | SiteSettingsSelect<true>;
navigations: NavigationsSelect<false> | NavigationsSelect<true>;
forms: FormsSelect<false> | FormsSelect<true>; forms: FormsSelect<false> | FormsSelect<true>;
'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>; 'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
redirects: RedirectsSelect<false> | RedirectsSelect<true>; redirects: RedirectsSelect<false> | RedirectsSelect<true>;
@ -164,13 +168,9 @@ export interface Config {
}; };
fallbackLocale: ('false' | 'none' | 'null') | false | null | ('de' | 'en') | ('de' | 'en')[]; fallbackLocale: ('false' | 'none' | 'null') | false | null | ('de' | 'en') | ('de' | 'en')[];
globals: { globals: {
'site-settings': SiteSetting;
navigation: Navigation;
'seo-settings': SeoSetting; 'seo-settings': SeoSetting;
}; };
globalsSelect: { globalsSelect: {
'site-settings': SiteSettingsSelect<false> | SiteSettingsSelect<true>;
navigation: NavigationSelect<false> | NavigationSelect<true>;
'seo-settings': SeoSettingsSelect<false> | SeoSettingsSelect<true>; 'seo-settings': SeoSettingsSelect<false> | SeoSettingsSelect<true>;
}; };
locale: 'de' | 'en'; locale: 'de' | 'en';
@ -6132,6 +6132,80 @@ export interface AuditLog {
updatedAt: string; updatedAt: string;
createdAt: 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 * Eingegangene Formular-Einsendungen
* *
@ -6341,6 +6415,14 @@ export interface PayloadLockedDocument {
relationTo: 'audit-logs'; relationTo: 'audit-logs';
value: number | AuditLog; value: number | AuditLog;
} | null) } | null)
| ({
relationTo: 'site-settings';
value: number | SiteSetting;
} | null)
| ({
relationTo: 'navigations';
value: number | Navigation;
} | null)
| ({ | ({
relationTo: 'forms'; relationTo: 'forms';
value: number | Form; value: number | Form;
@ -9956,6 +10038,77 @@ export interface AuditLogsSelect<T extends boolean = true> {
updatedAt?: T; updatedAt?: T;
createdAt?: T; createdAt?: T;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "site-settings_select".
*/
export interface SiteSettingsSelect<T extends boolean = true> {
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<T extends boolean = true> {
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 * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "forms_select". * via the `definition` "forms_select".
@ -10143,70 +10296,6 @@ export interface PayloadMigrationsSelect<T extends boolean = true> {
updatedAt?: T; updatedAt?: T;
createdAt?: 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 * Globale SEO-Konfiguration und Schema.org Daten
* *
@ -10345,76 +10434,6 @@ export interface SeoSetting {
updatedAt?: string | null; updatedAt?: string | null;
createdAt?: string | null; createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "site-settings_select".
*/
export interface SiteSettingsSelect<T extends boolean = true> {
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<T extends boolean = true> {
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 * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "seo-settings_select". * via the `definition` "seo-settings_select".

View file

@ -219,7 +219,7 @@ export default buildConfig({
pool: { pool: {
connectionString: env.DATABASE_URI, connectionString: env.DATABASE_URI,
}, },
// push: false - Schema-Änderungen nur via Migrationen // push: false - Schema manuell erstellt
push: false, push: false,
}), }),
// Sharp für Bildoptimierung // Sharp für Bildoptimierung