UNPKG

@mbc-cqrs-serverless/core

Version:
25 lines (24 loc) 900 B
import { S3Service } from '../data-store'; import { CommandModel, DetailKey, IEvent, StepFunctionsContext } from '../interfaces'; import { DataSyncNewCommandEvent } from './data-sync.new.event'; export interface StepFunctionStateInput { prevStateName?: string; result?: unknown; error?: string; cause?: string; } export declare class DataSyncCommandSfnEvent implements IEvent { source: string; context: StepFunctionsContext; commandEvent?: DataSyncNewCommandEvent; input?: StepFunctionStateInput; taskToken?: string; constructor(event?: Partial<DataSyncCommandSfnEvent>); get commandTableName(): string; get dataTableName(): string; get stepStateName(): string; private commandModel?; get commandRecord(): CommandModel | null; get commandKey(): DetailKey; getFullCommandRecord(s3Service: S3Service): Promise<CommandModel | null>; }