diff --git a/payload-types.ts b/payload-types.ts index 0c0ae878..361316dd 100644 --- a/payload-types.ts +++ b/payload-types.ts @@ -73,6 +73,7 @@ export interface Config { 'form-submissions': FormSubmission; products: Product; pages: Page; + 'agbs-collection': AgbsCollection; 'payload-kv': PayloadKv; 'payload-locked-documents': PayloadLockedDocument; 'payload-preferences': PayloadPreference; @@ -86,8 +87,11 @@ export interface Config { 'form-submissions': FormSubmissionsSelect | FormSubmissionsSelect; products: ProductsSelect | ProductsSelect; pages: PagesSelect | PagesSelect; + 'agbs-collection': AgbsCollectionSelect | AgbsCollectionSelect; 'payload-kv': PayloadKvSelect | PayloadKvSelect; - 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; + 'payload-locked-documents': + | PayloadLockedDocumentsSelect + | PayloadLockedDocumentsSelect; 'payload-preferences': PayloadPreferencesSelect | PayloadPreferencesSelect; 'payload-migrations': PayloadMigrationsSelect | PayloadMigrationsSelect; }; @@ -358,6 +362,19 @@ export interface Page { createdAt: string; _status?: ('draft' | 'published') | null; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "agbs-collection". + */ +export interface AgbsCollection { + id: number; + title: string; + versionDate: string; + file: number | Media; + isCurrent?: boolean | null; + updatedAt: string; + createdAt: string; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-kv". @@ -405,6 +422,10 @@ export interface PayloadLockedDocument { | ({ relationTo: 'pages'; value: number | Page; + } | null) + | ({ + relationTo: 'agbs-collection'; + value: number | AgbsCollection; } | null); globalSlug?: string | null; user: { @@ -592,6 +613,18 @@ export interface PagesSelect { createdAt?: T; _status?: T; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "agbs-collection_select". + */ +export interface AgbsCollectionSelect { + title?: T; + versionDate?: T; + file?: T; + isCurrent?: T; + updatedAt?: T; + createdAt?: T; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-kv_select". @@ -980,7 +1013,6 @@ export interface Auth { [k: string]: unknown; } - declare module 'payload' { export interface GeneratedTypes extends Config {} -} \ No newline at end of file +}