Skip to content

Commit fffab66

Browse files
authored
chore: export JobLog and importHandlerPath, add missing id type to JobLog (#9921)
Requirement for #9645
1 parent bae2fe5 commit fffab66

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/payload/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,13 +1299,15 @@ export type {
12991299
} from './queues/config/types/taskTypes.js'
13001300
export type {
13011301
BaseJob,
1302+
JobLog,
13021303
JobTaskStatus,
13031304
RunningJob,
13041305
SingleTaskStatus,
13051306
WorkflowConfig,
13061307
WorkflowHandler,
13071308
WorkflowTypes,
13081309
} from './queues/config/types/workflowTypes.js'
1310+
export { importHandlerPath } from './queues/operations/runJobs/runJob/importHandlerPath.js'
13091311
export { getLocalI18n } from './translations/getLocalI18n.js'
13101312
export * from './types/index.js'
13111313
export { getFileByPath } from './uploads/getFileByPath.js'

packages/payload/src/queues/config/types/workflowTypes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export type JobLog = {
1414
completedAt: string
1515
error?: unknown
1616
executedAt: string
17+
/**
18+
* ID added by the array field when the log is saved in the database
19+
*/
20+
id?: string
1721
input?: any
1822
output?: any
1923
state: 'failed' | 'succeeded'

0 commit comments

Comments
 (0)