Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
import type { DeepPartial } from 'ts-essentials';
|
|
import type { PayloadRequest, PopulateType, SelectType, Sort, Where } from '../../types/index.js';
|
|
import type { BulkOperationResult, Collection, RequiredDataFromCollectionSlug, SelectFromCollectionSlug } from '../config/types.js';
|
|
import { type CollectionSlug, type FindOptions } from '../../index.js';
|
|
export type Arguments<TSlug extends CollectionSlug> = {
|
|
autosave?: boolean;
|
|
collection: Collection;
|
|
data: DeepPartial<RequiredDataFromCollectionSlug<TSlug>>;
|
|
depth?: number;
|
|
disableTransaction?: boolean;
|
|
disableVerificationEmail?: boolean;
|
|
draft?: boolean;
|
|
limit?: number;
|
|
overrideAccess?: boolean;
|
|
overrideLock?: boolean;
|
|
overwriteExistingFiles?: boolean;
|
|
populate?: PopulateType;
|
|
publishAllLocales?: boolean;
|
|
publishSpecificLocale?: string;
|
|
req: PayloadRequest;
|
|
showHiddenFields?: boolean;
|
|
/**
|
|
* Sort the documents, can be a string or an array of strings
|
|
* @example '-createdAt' // Sort DESC by createdAt
|
|
* @example ['group', '-createdAt'] // sort by 2 fields, ASC group and DESC createdAt
|
|
*/
|
|
sort?: Sort;
|
|
trash?: boolean;
|
|
unpublishAllLocales?: boolean;
|
|
where: Where;
|
|
} & Pick<FindOptions<TSlug, SelectType>, 'select'>;
|
|
export declare const updateOperation: <TSlug extends CollectionSlug, TSelect extends SelectFromCollectionSlug<TSlug>>(incomingArgs: Arguments<TSlug>) => Promise<BulkOperationResult<TSlug, TSelect>>;
|
|
//# sourceMappingURL=update.d.ts.map |