mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 17:24:12 +00:00
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:
parent
6aed5a39d3
commit
ade2d09748
2 changed files with 158 additions and 139 deletions
|
|
@ -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<false> | PrivacyPolicySettingsSelect<true>;
|
||||
'email-logs': EmailLogsSelect<false> | EmailLogsSelect<true>;
|
||||
'audit-logs': AuditLogsSelect<false> | AuditLogsSelect<true>;
|
||||
'site-settings': SiteSettingsSelect<false> | SiteSettingsSelect<true>;
|
||||
navigations: NavigationsSelect<false> | NavigationsSelect<true>;
|
||||
forms: FormsSelect<false> | FormsSelect<true>;
|
||||
'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
|
||||
redirects: RedirectsSelect<false> | RedirectsSelect<true>;
|
||||
|
|
@ -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<false> | SiteSettingsSelect<true>;
|
||||
navigation: NavigationSelect<false> | NavigationSelect<true>;
|
||||
'seo-settings': SeoSettingsSelect<false> | SeoSettingsSelect<true>;
|
||||
};
|
||||
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<T extends boolean = true> {
|
|||
updatedAt?: 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
|
||||
* via the `definition` "forms_select".
|
||||
|
|
@ -10143,70 +10296,6 @@ export interface PayloadMigrationsSelect<T extends boolean = true> {
|
|||
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<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
|
||||
* via the `definition` "seo-settings_select".
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue