File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,10 @@ const convertJobToGoEvent = async (
105105) : Promise < GoMessage < keyof GoEventPayload > > => ( {
106106 workspaceId,
107107 eventType,
108- data : await getOapiJob ( job ) ,
108+ data : {
109+ job : await getOapiJob ( job ) ,
110+ id : job . id ,
111+ } ,
109112 timestamp : Date . now ( ) ,
110113} ) ;
111114
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export type GoEventPayload = {
186186 [ Event . PolicyCreated ] : WorkspaceEngine [ "schemas" ] [ "Policy" ] ;
187187 [ Event . PolicyUpdated ] : WorkspaceEngine [ "schemas" ] [ "Policy" ] ;
188188 [ Event . PolicyDeleted ] : WorkspaceEngine [ "schemas" ] [ "Policy" ] ;
189- [ Event . JobUpdated ] : WorkspaceEngine [ "schemas" ] [ "Job " ] ;
189+ [ Event . JobUpdated ] : WorkspaceEngine [ "schemas" ] [ "JobUpdateEvent " ] ;
190190 [ Event . UserApprovalRecordCreated ] : WorkspaceEngine [ "schemas" ] [ "UserApprovalRecord" ] ;
191191 [ Event . UserApprovalRecordUpdated ] : WorkspaceEngine [ "schemas" ] [ "UserApprovalRecord" ] ;
192192 [ Event . UserApprovalRecordDeleted ] : WorkspaceEngine [ "schemas" ] [ "UserApprovalRecord" ] ;
Original file line number Diff line number Diff line change @@ -433,6 +433,24 @@ export interface components {
433433 | "invalidIntegration"
434434 | "externalRunNotFound"
435435 | "successful" ;
436+ JobUpdateEvent : {
437+ agentId ?: string ;
438+ externalId ?: string ;
439+ fieldsToUpdate ?: (
440+ | "completedAt"
441+ | "createdAt"
442+ | "externalId"
443+ | "id"
444+ | "jobAgentConfig"
445+ | "jobAgentId"
446+ | "releaseId"
447+ | "startedAt"
448+ | "status"
449+ | "updatedAt"
450+ ) [ ] ;
451+ id ?: string ;
452+ job : components [ "schemas" ] [ "Job" ] ;
453+ } & ( unknown | unknown ) ;
436454 JsonSelector : {
437455 json : Record < string , never > ;
438456 } ;
You can’t perform that action at this time.
0 commit comments