UNPKG

@villedemontreal/workit-stepfunction-client

Version:

Camunda BPM client for WorkIt that works with Camunda platform powered by TypeScript

14 lines (13 loc) 1.02 kB
/// <reference types="node" /> import { IMessage, IStepFunctionClientConfig } from '@villedemontreal/workit-types'; import { CreateStateMachineCommandInput, CreateStateMachineCommandOutput, StartExecutionCommandInput, StartExecutionCommandOutput, SendTaskSuccessCommandOutput, SendTaskFailureCommandOutput, SendTaskHeartbeatCommandOutput } from '@aws-sdk/client-sfn'; export declare class StepFunctionRepository { private readonly _config; private readonly _client; constructor(config: IStepFunctionClientConfig); deployWorkflow(absPath: string, override?: CreateStateMachineCommandInput): Promise<CreateStateMachineCommandOutput>; startExecution<T>(model: StartExecutionCommandInput): Promise<StartExecutionCommandOutput>; sendTaskSuccess(message: IMessage): Promise<SendTaskSuccessCommandOutput>; sendTaskFailure(error: NodeJS.ErrnoException, message: IMessage): Promise<SendTaskFailureCommandOutput>; sendTaskHeartbeat(message: IMessage): Promise<SendTaskHeartbeatCommandOutput>; }