@mbc-cqrs-serverless/core
Version:
CQRS and event base core
13 lines (12 loc) • 647 B
TypeScript
import { DynamoDbService } from '../data-store/dynamodb.service';
import { CommandModuleOptions, ITtlService } from '../interfaces';
import { TableType } from './enums';
export declare class TtlService implements ITtlService {
private readonly options;
private readonly dynamoDbService;
private logger;
constructor(options: CommandModuleOptions, dynamoDbService: DynamoDbService);
calculateTtl(type: TableType, tenantCode?: string, startDate?: Date): Promise<number | null>;
getTtlConfiguration(type: TableType, tenantCode?: string): Promise<number | null>;
calculateUnixTime(days: number, startDate?: Date): number;
}