@mbc-cqrs-serverless/import
Version:
17 lines (16 loc) • 866 B
TypeScript
import { IEventHandler, StepFunctionService } from '@mbc-cqrs-serverless/core';
import { ImportService } from '../import.service';
import { ImportStatusQueueEvent } from './import-status.queue.event';
export declare class ImportStatusHandler implements IEventHandler<ImportStatusQueueEvent> {
private readonly importService;
private readonly sfnService;
private readonly logger;
constructor(importService: ImportService, sfnService: StepFunctionService);
execute(event: ImportStatusQueueEvent): Promise<void>;
/**
* Sends a success signal to a waiting Step Function task.
* @param taskToken The unique token of the paused task.
* @param output The JSON output to send back to the state machine.
*/
sendTaskSuccess(taskToken: string, output: any): Promise<import("@aws-sdk/client-sfn").SendTaskSuccessCommandOutput>;
}