import type { SQL } from 'drizzle-orm'; import type { FlattenedField, JoinQuery, PayloadRequest, SelectType } from 'payload'; import type { DrizzleAdapter, DrizzleTransaction, GenericColumn } from '../types.js'; type BaseArgs = { adapter: DrizzleAdapter; /** * Collection slug for error reporting */ collectionSlug?: string; data: Record; db: DrizzleAdapter['drizzle'] | DrizzleTransaction; fields: FlattenedField[]; /** * Collection slug for error reporting */ globalSlug?: string; /** * When true, skips reading the data back from the database and returns the input data * @default false */ ignoreResult?: 'idOnly' | boolean; joinQuery?: JoinQuery; path?: string; req?: Partial; tableName: string; }; type CreateArgs = { customID?: number | string; id?: never; joinQuery?: never; operation: 'create'; select?: SelectType; upsertTarget?: never; where?: never; } & BaseArgs; type UpdateArgs = { customID?: never; id?: number | string; joinQuery?: JoinQuery; operation: 'update'; select?: SelectType; upsertTarget?: GenericColumn; where?: SQL; } & BaseArgs; export type Args = CreateArgs | UpdateArgs; export {}; //# sourceMappingURL=types.d.ts.map