payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
33 lines • 1.08 kB
TypeScript
import type { Config } from '../../config/types.js';
import type { GlobalConfig } from '../../globals/config/types.js';
import type { TaskType } from './types/taskTypes.js';
import type { WorkflowTypes } from './types/workflowTypes.js';
export declare const jobStatsGlobalSlug = "payload-jobs-stats";
/**
* Type for data stored in the payload-jobs-stats global.
*/
export type JobStats = {
stats?: {
scheduledRuns?: {
queues?: {
[queueSlug: string]: {
tasks?: {
[taskSlug: TaskType]: {
lastScheduledRun: string;
};
};
workflows?: {
[workflowSlug: WorkflowTypes]: {
lastScheduledRun: string;
};
};
};
};
};
};
};
/**
* Global config for job statistics.
*/
export declare const getJobStatsGlobal: (config: Config) => GlobalConfig;
//# sourceMappingURL=global.d.ts.map