/* 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. */ export interface Config { auth: { users: UserAuthOperations; }; collections: { posts: Post; 'localized-posts': LocalizedPost; 'versioned-posts': VersionedPost; 'deep-posts': DeepPost; pages: Page; users: User; 'payload-locked-documents': PayloadLockedDocument; 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; collectionsSelect?: { posts: PostsSelect | PostsSelect; 'localized-posts': LocalizedPostsSelect | LocalizedPostsSelect; 'versioned-posts': VersionedPostsSelect | VersionedPostsSelect; 'deep-posts': DeepPostsSelect | DeepPostsSelect; pages: PagesSelect | PagesSelect; users: UsersSelect | UsersSelect; 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; 'payload-preferences': PayloadPreferencesSelect | PayloadPreferencesSelect; 'payload-migrations': PayloadMigrationsSelect | PayloadMigrationsSelect; }; db: { defaultIDType: string; }; globals: { 'global-post': GlobalPost; }; globalsSelect?: { 'global-post': GlobalPostSelect | GlobalPostSelect; }; locale: 'en' | 'de'; user: User & { collection: 'users'; }; } 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: string; text?: string | null; number?: number | 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; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "localized-posts". */ export interface LocalizedPost { id: string; text?: string | null; number?: number | 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: string; 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: string; 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: string; content?: | { title: string; link: { docPoly?: { relationTo: 'pages'; value: string | Page; } | null; doc?: (string | null) | Page; docMany?: (string | Page)[] | null; docHasManyPoly?: | { relationTo: 'pages'; value: string | 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: 'cta'; }[] | null; slug: string; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "users". */ export interface User { id: string; updatedAt: string; createdAt: string; email: string; resetPasswordToken?: string | null; resetPasswordExpiration?: string | null; salt?: string | null; hash?: string | null; loginAttempts?: number | null; lockUntil?: string | null; password?: string | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-locked-documents". */ export interface PayloadLockedDocument { id: string; document?: | ({ relationTo: 'posts'; value: string | Post; } | null) | ({ relationTo: 'localized-posts'; value: string | LocalizedPost; } | null) | ({ relationTo: 'versioned-posts'; value: string | VersionedPost; } | null) | ({ relationTo: 'deep-posts'; value: string | DeepPost; } | null) | ({ relationTo: 'pages'; value: string | Page; } | null) | ({ relationTo: 'users'; value: string | User; } | null); globalSlug?: string | null; user: { relationTo: 'users'; value: string | User; }; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-preferences". */ export interface PayloadPreference { id: string; user: { relationTo: 'users'; value: string | 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: string; 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; 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; }; }; 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; 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 { content?: | T | { cta?: | 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; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "users_select". */ export interface UsersSelect { updatedAt?: T; createdAt?: T; email?: T; resetPasswordToken?: T; resetPasswordExpiration?: T; salt?: T; hash?: T; loginAttempts?: T; lockUntil?: 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: string; text?: string | null; number?: number | 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` "auth". */ export interface Auth { [k: string]: unknown; } declare module 'payload' { // @ts-ignore export interface GeneratedTypes extends Config {} }