/* 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: { 'hooks-users': HooksUserAuthOperations; }; collections: { 'before-validate': BeforeValidate; afterOperation: AfterOperation; 'context-hooks': ContextHook; transforms: Transform; hooks: Hook; 'nested-after-read-hooks': NestedAfterReadHook; 'chaining-hooks': ChainingHook; relations: Relation; 'hooks-users': HooksUser; 'data-hooks': DataHook; 'payload-locked-documents': PayloadLockedDocument; 'payload-preferences': PayloadPreference; 'payload-migrations': PayloadMigration; }; collectionsJoins: {}; collectionsSelect: { 'before-validate': BeforeValidateSelect | BeforeValidateSelect; afterOperation: AfterOperationSelect | AfterOperationSelect; 'context-hooks': ContextHooksSelect | ContextHooksSelect; transforms: TransformsSelect | TransformsSelect; hooks: HooksSelect | HooksSelect; 'nested-after-read-hooks': NestedAfterReadHooksSelect | NestedAfterReadHooksSelect; 'chaining-hooks': ChainingHooksSelect | ChainingHooksSelect; relations: RelationsSelect | RelationsSelect; 'hooks-users': HooksUsersSelect | HooksUsersSelect; 'data-hooks': DataHooksSelect | DataHooksSelect; 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; 'payload-preferences': PayloadPreferencesSelect | PayloadPreferencesSelect; 'payload-migrations': PayloadMigrationsSelect | PayloadMigrationsSelect; }; db: { defaultIDType: string; }; globals: { 'data-hooks-global': DataHooksGlobal; }; globalsSelect: { 'data-hooks-global': DataHooksGlobalSelect | DataHooksGlobalSelect; }; locale: null; user: HooksUser & { collection: 'hooks-users'; }; jobs: { tasks: unknown; workflows: unknown; }; } export interface HooksUserAuthOperations { 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` "before-validate". */ export interface BeforeValidate { id: string; title?: string | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "afterOperation". */ export interface AfterOperation { id: string; title: string; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "context-hooks". */ export interface ContextHook { id: string; value?: string | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "transforms". */ export interface Transform { id: string; /** * @minItems 2 * @maxItems 2 */ transform?: [number, number] | null; /** * @minItems 2 * @maxItems 2 */ localizedTransform?: [number, number] | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "hooks". */ export interface Hook { id: string; fieldBeforeValidate?: boolean | null; fieldBeforeChange?: boolean | null; fieldAfterChange?: boolean | null; fieldAfterRead?: boolean | null; collectionBeforeValidate?: boolean | null; collectionBeforeChange?: boolean | null; collectionAfterChange?: boolean | null; collectionBeforeRead?: boolean | null; collectionAfterRead?: boolean | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "nested-after-read-hooks". */ export interface NestedAfterReadHook { id: string; text?: string | null; group?: { array?: | { input?: string | null; afterRead?: string | null; shouldPopulate?: (string | null) | Relation; id?: string | null; }[] | null; subGroup?: { afterRead?: string | null; shouldPopulate?: (string | null) | Relation; }; }; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "relations". */ export interface Relation { id: string; title: string; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "chaining-hooks". */ export interface ChainingHook { id: string; text?: string | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "hooks-users". */ export interface HooksUser { id: string; roles: ('admin' | 'user')[]; afterLoginHook?: boolean | 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; password?: string | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "data-hooks". */ export interface DataHook { id: string; field_collectionAndField?: string | null; collection_beforeOperation_collection?: string | null; collection_beforeChange_collection?: string | null; collection_afterChange_collection?: string | null; collection_beforeRead_collection?: string | null; collection_afterRead_collection?: string | null; collection_afterOperation_collection?: string | null; updatedAt: string; createdAt: string; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-locked-documents". */ export interface PayloadLockedDocument { id: string; document?: | ({ relationTo: 'before-validate'; value: string | BeforeValidate; } | null) | ({ relationTo: 'afterOperation'; value: string | AfterOperation; } | null) | ({ relationTo: 'context-hooks'; value: string | ContextHook; } | null) | ({ relationTo: 'transforms'; value: string | Transform; } | null) | ({ relationTo: 'hooks'; value: string | Hook; } | null) | ({ relationTo: 'nested-after-read-hooks'; value: string | NestedAfterReadHook; } | null) | ({ relationTo: 'chaining-hooks'; value: string | ChainingHook; } | null) | ({ relationTo: 'relations'; value: string | Relation; } | null) | ({ relationTo: 'hooks-users'; value: string | HooksUser; } | null) | ({ relationTo: 'data-hooks'; value: string | DataHook; } | null); globalSlug?: string | null; user: { relationTo: 'hooks-users'; value: string | HooksUser; }; 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: 'hooks-users'; value: string | HooksUser; }; 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` "before-validate_select". */ export interface BeforeValidateSelect { title?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "afterOperation_select". */ export interface AfterOperationSelect { title?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "context-hooks_select". */ export interface ContextHooksSelect { value?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "transforms_select". */ export interface TransformsSelect { transform?: T; localizedTransform?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "hooks_select". */ export interface HooksSelect { fieldBeforeValidate?: T; fieldBeforeChange?: T; fieldAfterChange?: T; fieldAfterRead?: T; collectionBeforeValidate?: T; collectionBeforeChange?: T; collectionAfterChange?: T; collectionBeforeRead?: T; collectionAfterRead?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "nested-after-read-hooks_select". */ export interface NestedAfterReadHooksSelect { text?: T; group?: | T | { array?: | T | { input?: T; afterRead?: T; shouldPopulate?: T; id?: T; }; subGroup?: | T | { afterRead?: T; shouldPopulate?: T; }; }; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "chaining-hooks_select". */ export interface ChainingHooksSelect { text?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "relations_select". */ export interface RelationsSelect { title?: T; updatedAt?: T; createdAt?: T; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "hooks-users_select". */ export interface HooksUsersSelect { roles?: T; afterLoginHook?: T; 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` "data-hooks_select". */ export interface DataHooksSelect { field_collectionAndField?: T; collection_beforeOperation_collection?: T; collection_beforeChange_collection?: T; collection_afterChange_collection?: T; collection_beforeRead_collection?: T; collection_afterRead_collection?: T; collection_afterOperation_collection?: T; updatedAt?: T; createdAt?: 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` "data-hooks-global". */ export interface DataHooksGlobal { id: string; field_globalAndField?: string | null; global_beforeChange_global?: string | null; global_afterChange_global?: string | null; global_beforeRead_global?: string | null; global_afterRead_global?: string | null; updatedAt?: string | null; createdAt?: string | null; } /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "data-hooks-global_select". */ export interface DataHooksGlobalSelect { field_globalAndField?: T; global_beforeChange_global?: T; global_afterChange_global?: T; global_beforeRead_global?: T; global_afterRead_global?: 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 {} }