@mbc-cqrs-serverless/core
Version:
CQRS and event base core
34 lines (33 loc) • 901 B
TypeScript
import { CommandModel } from './command-model.interface';
import { DetailKey } from './detail-key.interface';
/**
* Entity class implementing CommandModel for API responses.
* Includes Swagger decorators for API documentation.
*
* Use this class when returning command data from REST endpoints.
* The `key` getter provides convenient access to the DynamoDB key pair.
*/
export declare class CommandEntity implements CommandModel {
source?: string;
isDeleted?: boolean;
status?: string;
requestId?: string;
createdAt?: Date;
updatedAt?: Date;
createdBy?: string;
updatedBy?: string;
createdIp?: string;
updatedIp?: string;
pk: string;
sk: string;
id: string;
code: string;
name: string;
version: number;
tenantCode: string;
type: string;
seq?: number;
ttl?: number;
attributes?: any;
get key(): DetailKey;
}