@mbc-cqrs-serverless/sequence
Version:
Generate increment sequence with time-rotation
33 lines (32 loc) • 845 B
TypeScript
import { RotateByEnum } from '../enums/rotate-by.enum';
import { SequenceParamsDto } from './sequence-param.dto';
export declare class GenerateFormattedSequenceDto {
/**
* Date for sequence generation (optional).
*/
date?: Date;
/**
* Rotation criteria for the sequence (e.g., yearly, fiscal-yearly).
*/
rotateBy?: RotateByEnum;
/**
* Tenant code for identifying the organization.
*/
tenantCode: string;
/**
* Type code for specific sequence classification.
*/
typeCode: string;
/**
* Type code for specific sequence classification.
*/
params?: SequenceParamsDto;
/**
* Optional prefix to add before formatted sequence.
*/
prefix?: string;
/**
* Optional postfix to add after formatted sequence.
*/
postfix?: string;
}