Files
klz-cables.com/.pnpm-store/v10/files/08/770b7d97a0a5520fb6fc68b0ed700bd6eca74414e0f3468b0b2c662cecfbd27ce028566c7755baf0195bafc1d66331ecee7425ed90b06cbbe1d21e7fbdbaa3
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

35 lines
1.1 KiB
Plaintext

import type { Job } from '../../index.js';
import type { PayloadRequest, Sort, Where } from '../../types/index.js';
type BaseArgs = {
data: Partial<Job>;
depth?: number;
disableTransaction?: boolean;
limit?: number;
req: PayloadRequest;
returning?: boolean;
};
type ArgsByID = {
id: number | string;
limit?: never;
sort?: never;
where?: never;
};
type ArgsWhere = {
id?: never;
limit?: number;
sort?: Sort;
where: Where;
};
type RunJobsArgs = (ArgsByID | ArgsWhere) & BaseArgs;
/**
* Convenience method for updateJobs by id
*/
export declare function updateJob(args: ArgsByID & BaseArgs): Promise<Job | undefined>;
/**
* Helper for updating jobs in the most performant way possible.
* Handles deciding whether it can used direct db methods or not, and if so,
* manually runs the afterRead hook that populates the `taskStatus` property.
*/
export declare function updateJobs({ id, data, depth, disableTransaction, limit: limitArg, req, returning, sort, where: whereArg, }: RunJobsArgs): Promise<Job[] | null>;
export {};
//# sourceMappingURL=updateJob.d.ts.map