UNPKG

@mbc-cqrs-serverless/import

Version:
20 lines (19 loc) 930 B
import { IEventHandler, S3Service } from '@mbc-cqrs-serverless/core'; import { ConfigService } from '@nestjs/config'; import { ImportService } from '../import.service'; import { IImportStrategy } from '../interface'; import { CsvImportSfnEvent } from './csv-import.sfn.event'; export declare class CsvImportSfnEventHandler implements IEventHandler<CsvImportSfnEvent> { private readonly importService; private readonly importStrategyMap; private readonly configService; private readonly s3Service; private readonly logger; private readonly alarmTopicArn; constructor(importService: ImportService, importStrategyMap: Map<string, IImportStrategy<any, any>>, configService: ConfigService, s3Service: S3Service); execute(event: CsvImportSfnEvent): Promise<any>; handleStepState(event: CsvImportSfnEvent): Promise<any>; private loadCsv; private countCsvRows; private finalizeParentJob; }