@mbc-cqrs-serverless/core
Version:
CQRS and event base core
31 lines (30 loc) • 673 B
TypeScript
import { CommandInputModel } from './command-input-model.interface';
/**
* Base DTO class for command input validation.
* Implements CommandInputModel with class-validator decorators.
*
* @example
* ```typescript
* class CreateOrderDto extends CommandDto {
* @IsString()
* customerId: string;
*
* @IsNumber()
* amount: number;
* }
* ```
*/
export declare class CommandDto implements CommandInputModel {
pk: string;
sk: string;
id: string;
code: string;
name: string;
version: number;
tenantCode: string;
type: string;
seq?: number;
ttl?: number;
isDeleted?: boolean;
attributes?: Record<string, any>;
}