diff --git a/packages/payload/src/index.ts b/packages/payload/src/index.ts index 45d2a7ec6d8..ba26cacfb58 100644 --- a/packages/payload/src/index.ts +++ b/packages/payload/src/index.ts @@ -1299,6 +1299,7 @@ export type { } from './queues/config/types/taskTypes.js' export type { BaseJob, + JobLog, JobTaskStatus, RunningJob, SingleTaskStatus, @@ -1306,6 +1307,7 @@ export type { WorkflowHandler, WorkflowTypes, } from './queues/config/types/workflowTypes.js' +export { importHandlerPath } from './queues/operations/runJobs/runJob/importHandlerPath.js' export { getLocalI18n } from './translations/getLocalI18n.js' export * from './types/index.js' export { getFileByPath } from './uploads/getFileByPath.js' diff --git a/packages/payload/src/queues/config/types/workflowTypes.ts b/packages/payload/src/queues/config/types/workflowTypes.ts index 9433bfc7557..e3f10722e0f 100644 --- a/packages/payload/src/queues/config/types/workflowTypes.ts +++ b/packages/payload/src/queues/config/types/workflowTypes.ts @@ -14,6 +14,10 @@ export type JobLog = { completedAt: string error?: unknown executedAt: string + /** + * ID added by the array field when the log is saved in the database + */ + id?: string input?: any output?: any state: 'failed' | 'succeeded'