/** * An integration execution job record, created by integrations when they begin * handling an `IntegrationActionTriggerEvent`. * * The integration service receives requests from integrations to start a new * job. Throughout execution, the integration may append `IntegrationJobEvent` * records to the job. The integration should close the job, updating `status` * once an action has been handled. * * The integration service will mark `errorsOccurred: true` when a job event * `name` value matches a pattern (including the word `'error'`). */ export interface IntegrationJob { /** * The identifier of the job, required when sending events and closing the * job. */ id: string; /** * The `IntegrationInstance.id`, required when sending events and closing the * job. */ integrationInstanceId: string; /** * The timestamp when the integration service creates a job at the request of * an integration. */ createDate: number; status?: IntegrationJobStatus; endDate?: number; /** * The integration service will mark `errorsOccurred: true` when a job event * `name` value matches a pattern (including the word `'error'`). */ errorsOccurred: boolean; } export declare enum IntegrationJobStatus { IN_PROGRESS = "IN_PROGRESS", COMPLETED = "COMPLETED", FAILED = "FAILED", PERSISTING_DATA = "PERSISTING_DATA" } export interface IntegrationJobEvent { id: string; jobId: string; createDate: number; name: string; description: string; }