MCPcopy Create free account
hub / github.com/chainjet/platform / afterCreateWorkflowTrigger

Function afterCreateWorkflowTrigger

libs/definitions/src/definition.ts:263–275  ·  view source on GitHub ↗

* Allows definitions to modify the workflow trigger entity after it is created

(
    workflowTrigger: WorkflowTrigger,
    integrationTrigger: IntegrationTrigger,
    accountCredential: AccountCredential | null,
    update: (data: Partial<WorkflowTrigger>) => Promise<WorkflowTrigger>,
  )

Source from the content-addressed store, hash-verified

261 * Allows definitions to modify the workflow trigger entity after it is created
262 */
263 async afterCreateWorkflowTrigger(
264 workflowTrigger: WorkflowTrigger,
265 integrationTrigger: IntegrationTrigger,
266 accountCredential: AccountCredential | null,
267 update: (data: Partial<WorkflowTrigger>) => Promise<WorkflowTrigger>,
268 ) {
269 await this._getOperationHookRes('afterCreate', integrationTrigger.key, [
270 workflowTrigger,
271 integrationTrigger,
272 accountCredential,
273 update,
274 ])
275 }
276
277 /**
278 * Allows definitions to modify the workflow trigger entity after it is updated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected