/* tslint:disable */ /* eslint-disable */ /** * This file was automatically generated by Payload. * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config, * and re-run `payload generate:types` to regenerate this file. */ /** * Supported timezones in IANA format. * * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "supportedTimezones". */ export type SupportedTimezones = | 'Pacific/Midway' | 'Pacific/Niue' | 'Pacific/Honolulu' | 'Pacific/Rarotonga' | 'America/Anchorage' | 'Pacific/Gambier' | 'America/Los_Angeles' | 'America/Tijuana' | 'America/Denver' | 'America/Phoenix' | 'America/Chicago' | 'America/Guatemala' | 'America/New_York' | 'America/Bogota' | 'America/Caracas' | 'America/Santiago' | 'America/Buenos_Aires' | 'America/Sao_Paulo' | 'Atlantic/South_Georgia' | 'Atlantic/Azores' | 'Atlantic/Cape_Verde' | 'Europe/London' | 'Europe/Berlin' | 'Africa/Lagos' | 'Europe/Athens' | 'Africa/Cairo' | 'Europe/Moscow' | 'Asia/Riyadh' | 'Asia/Dubai' | 'Asia/Baku' | 'Asia/Karachi' | 'Asia/Tashkent' | 'Asia/Calcutta' | 'Asia/Dhaka' | 'Asia/Almaty' | 'Asia/Jakarta' | 'Asia/Bangkok' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Tokyo' | 'Asia/Seoul' | 'Australia/Brisbane' | 'Australia/Sydney' | 'Pacific/Guam' | 'Pacific/Noumea' | 'Pacific/Auckland' | 'Pacific/Fiji'; export interface Config { auth: { users: UserAuthOperations; }; blocks: {}; collections: { posts: Post; 'localized-posts': LocalizedPost; 'versioned-posts': VersionedPost; 'deep-posts': DeepPost; pages: Page; points: Point; 'force-select': ForceSelect; upload: Upload; rels: Rel; 'custom-ids': CustomId; users: User; 'payload-locked-documents': PayloadLockedDocument; 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; collectionsJoins: {}; collectionsSelect: { posts: PostsSelect | PostsSelect; 'localized-posts': LocalizedPostsSelect | LocalizedPostsSelect; 'versioned-posts': VersionedPostsSelect | VersionedPostsSelect; 'deep-posts': DeepPostsSelect | DeepPostsSelect; pages: PagesSelect | PagesSelect; points: PointsSelect | PointsSelect; 'force-select': ForceSelectSelect | ForceSelectSelect; upload: UploadSelect | UploadSelect; rels: RelsSelect | RelsSelect; 'custom-ids': CustomIdsSelect | CustomIdsSelect; users: UsersSelect | UsersSelect; 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; 'payload-preferences': PayloadPreferencesSelect | PayloadPreferencesSelect; 'payload-migrations': PayloadMigrationsSelect | PayloadMigrationsSelect; }; db: { defaultIDType: number; }; globals: { 'global-post': GlobalPost; 'force-select-global': ForceSelectGlobal; }; globalsSelect: { 'global-post': GlobalPostSelect | GlobalPostSelect; 'force-select-global': ForceSelectGlobalSelect | ForceSelectGlobalSelect; }; locale: 'en' | 'de'; user: User & { collection: 'users'; }; jobs: { tasks: unknown; workflows: unknown; }; } export interface UserAuthOperations { forgotPassword: { email: string; password: string; }; login: { email: string; password: string; }; registerFirstUser: { email: string; password: string; }; unlock: { email: string; password: string; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "posts". */ export interface Post { id: number; text?: string | null; number?: number | null; select?: ('a' | 'b') | null; selectMany?: ('a' | 'b')[] | null; group?: { text?: string | null; number?: number | null; }; array?: | { text?: string | null; number?: number | null; id?: string | null; }[] | null; blocks?: | ( | { text?: string | null; introText?: string | null; id?: string | null; blockName?: string | null; blockType: 'intro'; } | { text?: string | null; ctaText?: string | null; id?: string | null; blockName?: string | null; blockType: 'cta'; } )[] | null; tab?: { text?: string | null; number?: number | null; }; unnamedTabText?: string | null; unnamedTabNumber?: number | null; hasOne?: (number | null) | Rel; hasMany?: (number | Rel)[] | null; hasManyUpload?: (number | Upload)[] | null; hasOnePoly?: { relationTo: 'rels'; value: number | Rel; } | null; hasManyPoly?: | { relationTo: 'rels'; value: number | Rel; }[] | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "rels". */ export interface Rel { id: number; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "upload". */ export interface Upload { id: number; updatedAt: string; createdAt: string; url?: string | null; thumbnailURL?: string | null; filename?: string | null; mimeType?: string | null; filesize?: number | null; width?: number | null; height?: number | null; focalX?: number | null; focalY?: number | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "localized-posts". */ export interface LocalizedPost { id: number; text?: string | null; number?: number | null; select?: ('a' | 'b') | null; selectMany?: ('a' | 'b')[] | null; group?: { text?: string | null; number?: number | null; }; groupSecond?: { text?: string | null; number?: number | null; }; array?: | { text?: string | null; number?: number | null; id?: string | null; }[] | null; arraySecond?: | { text?: string | null; number?: number | null; id?: string | null; }[] | null; blocks?: | ( | { text?: string | null; introText?: string | null; id?: string | null; blockName?: string | null; blockType: 'intro'; } | { text?: string | null; ctaText?: string | null; id?: string | null; blockName?: string | null; blockType: 'cta'; } )[] | null; blocksSecond?: | ( | { text?: string | null; firstText?: string | null; id?: string | null; blockName?: string | null; blockType: 'first'; } | { text?: string | null; secondText?: string | null; id?: string | null; blockName?: string | null; blockType: 'second'; } )[] | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "versioned-posts". */ export interface VersionedPost { id: number; text?: string | null; number?: number | null; array?: | { text?: string | null; id?: string | null; }[] | null; blocks?: | { text?: string | null; id?: string | null; blockName?: string | null; blockType: 'test'; }[] | null; updatedAt: string; createdAt: string; _status?: ('draft' | 'published') | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "deep-posts". */ export interface DeepPost { id: number; group?: { array?: | { group?: { text?: string | null; number?: number | null; }; id?: string | null; }[] | null; blocks?: | { text?: string | null; number?: number | null; id?: string | null; blockName?: string | null; blockType: 'block'; }[] | null; }; arrayTop?: | { text?: string | null; arrayNested?: | { text?: string | null; number?: number | null; id?: string | null; }[] | null; id?: string | null; }[] | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "pages". */ export interface Page { id: number; relatedPage?: (number | null) | Page; content?: | { title: string; link: { docPoly?: { relationTo: 'pages'; value: number | Page; } | null; doc?: (number | null) | Page; docMany?: (number | Page)[] | null; docHasManyPoly?: | { relationTo: 'pages'; value: number | Page; }[] | null; label: string; }; richTextLexical?: { root: { type: string; children: { type: string; version: number; [k: string]: unknown; }[]; direction: ('ltr' | 'rtl') | null; format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | ''; indent: number; version: number; }; [k: string]: unknown; } | null; richTextSlate?: | { [k: string]: unknown; }[] | null; id?: string | null; blockName?: string | null; blockType: 'introduction'; }[] | null; slug: string; additional?: string | null; array?: | { title?: string | null; other?: string | null; id?: string | null; }[] | null; blocks?: | { title?: string | null; other?: string | null; id?: string | null; blockName?: string | null; blockType: 'some'; }[] | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "points". */ export interface Point { id: number; text?: string | null; /** * @minItems 2 * @maxItems 2 */ point?: [number, number] | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "force-select". */ export interface ForceSelect { id: number; text?: string | null; forceSelected?: string | null; array?: | { forceSelected?: string | null; id?: string | null; }[] | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "custom-ids". */ export interface CustomId { id: number; text?: string | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "users". */ export interface User { id: number; name?: string | null; number?: number | null; updatedAt: string; createdAt: string; email: string; resetPasswordToken?: string | null; resetPasswordExpiration?: string | null; salt?: string | null; hash?: string | null; loginAttempts?: number | null; lockUntil?: string | null; sessions?: | { id: string; createdAt?: string | null; expiresAt: string; }[] | null; password?: string | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-locked-documents". */ export interface PayloadLockedDocument { id: number; document?: | ({ relationTo: 'posts'; value: number | Post; } | null) | ({ relationTo: 'localized-posts'; value: number | LocalizedPost; } | null) | ({ relationTo: 'versioned-posts'; value: number | VersionedPost; } | null) | ({ relationTo: 'deep-posts'; value: number | DeepPost; } | null) | ({ relationTo: 'pages'; value: number | Page; } | null) | ({ relationTo: 'points'; value: number | Point; } | null) | ({ relationTo: 'force-select'; value: number | ForceSelect; } | null) | ({ relationTo: 'upload'; value: number | Upload; } | null) | ({ relationTo: 'rels'; value: number | Rel; } | null) | ({ relationTo: 'custom-ids'; value: number | CustomId; } | null) | ({ relationTo: 'users'; value: number | User; } | null); globalSlug?: string | null; user: { relationTo: 'users'; value: number | User; }; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-preferences". */ export interface PayloadPreference { id: number; user: { relationTo: 'users'; value: number | User; }; key?: string | null; value?: | { [k: string]: unknown; } | unknown[] | string | number | boolean | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-migrations". */ export interface PayloadMigration { id: number; name?: string | null; batch?: number | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "posts_select". */ export interface PostsSelect { text?: T; number?: T; select?: T; selectMany?: T; group?: | T | { text?: T; number?: T; }; array?: | T | { text?: T; number?: T; id?: T; }; blocks?: | T | { intro?: | T | { text?: T; introText?: T; id?: T; blockName?: T; }; cta?: | T | { text?: T; ctaText?: T; id?: T; blockName?: T; }; }; tab?: | T | { text?: T; number?: T; }; unnamedTabText?: T; unnamedTabNumber?: T; hasOne?: T; hasMany?: T; hasManyUpload?: T; hasOnePoly?: T; hasManyPoly?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "localized-posts_select". */ export interface LocalizedPostsSelect { text?: T; number?: T; select?: T; selectMany?: T; group?: | T | { text?: T; number?: T; }; groupSecond?: | T | { text?: T; number?: T; }; array?: | T | { text?: T; number?: T; id?: T; }; arraySecond?: | T | { text?: T; number?: T; id?: T; }; blocks?: | T | { intro?: | T | { text?: T; introText?: T; id?: T; blockName?: T; }; cta?: | T | { text?: T; ctaText?: T; id?: T; blockName?: T; }; }; blocksSecond?: | T | { first?: | T | { text?: T; firstText?: T; id?: T; blockName?: T; }; second?: | T | { text?: T; secondText?: T; id?: T; blockName?: T; }; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "versioned-posts_select". */ export interface VersionedPostsSelect { text?: T; number?: T; array?: | T | { text?: T; id?: T; }; blocks?: | T | { test?: | T | { text?: T; id?: T; blockName?: T; }; }; updatedAt?: T; createdAt?: T; _status?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "deep-posts_select". */ export interface DeepPostsSelect { group?: | T | { array?: | T | { group?: | T | { text?: T; number?: T; }; id?: T; }; blocks?: | T | { block?: | T | { text?: T; number?: T; id?: T; blockName?: T; }; }; }; arrayTop?: | T | { text?: T; arrayNested?: | T | { text?: T; number?: T; id?: T; }; id?: T; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "pages_select". */ export interface PagesSelect { relatedPage?: T; content?: | T | { introduction?: | T | { title?: T; link?: | T | { docPoly?: T; doc?: T; docMany?: T; docHasManyPoly?: T; label?: T; }; richTextLexical?: T; richTextSlate?: T; id?: T; blockName?: T; }; }; slug?: T; additional?: T; array?: | T | { title?: T; other?: T; id?: T; }; blocks?: | T | { some?: | T | { title?: T; other?: T; id?: T; blockName?: T; }; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "points_select". */ export interface PointsSelect { text?: T; point?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "force-select_select". */ export interface ForceSelectSelect { text?: T; forceSelected?: T; array?: | T | { forceSelected?: T; id?: T; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "upload_select". */ export interface UploadSelect { updatedAt?: T; createdAt?: T; url?: T; thumbnailURL?: T; filename?: T; mimeType?: T; filesize?: T; width?: T; height?: T; focalX?: T; focalY?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "rels_select". */ export interface RelsSelect { updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "custom-ids_select". */ export interface CustomIdsSelect { id?: T; text?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "users_select". */ export interface UsersSelect { name?: T; number?: T; updatedAt?: T; createdAt?: T; email?: T; resetPasswordToken?: T; resetPasswordExpiration?: T; salt?: T; hash?: T; loginAttempts?: T; lockUntil?: T; sessions?: | T | { id?: T; createdAt?: T; expiresAt?: T; }; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-locked-documents_select". */ export interface PayloadLockedDocumentsSelect { document?: T; globalSlug?: T; user?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-preferences_select". */ export interface PayloadPreferencesSelect { user?: T; key?: T; value?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-migrations_select". */ export interface PayloadMigrationsSelect { name?: T; batch?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "global-post". */ export interface GlobalPost { id: number; text?: string | null; number?: number | null; updatedAt?: string | null; createdAt?: string | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "force-select-global". */ export interface ForceSelectGlobal { id: number; text?: string | null; forceSelected?: string | null; array?: | { forceSelected?: string | null; id?: string | null; }[] | null; updatedAt?: string | null; createdAt?: string | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "global-post_select". */ export interface GlobalPostSelect { text?: T; number?: T; updatedAt?: T; createdAt?: T; globalType?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "force-select-global_select". */ export interface ForceSelectGlobalSelect { text?: T; forceSelected?: T; array?: | T | { forceSelected?: T; id?: T; }; updatedAt?: T; createdAt?: T; globalType?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "auth". */ export interface Auth { [k: string]: unknown; } declare module 'payload' { // @ts-ignore export interface GeneratedTypes extends Config {} }