update: for the reply message
This commit is contained in:
@@ -176,7 +176,7 @@ export class SendEmailDto {
|
||||
|
||||
@IsOptional()
|
||||
@ApiPropertyOptional({ description: "Optional metadata, must be an object or JSON formatted string (optional)" })
|
||||
meta?: any;
|
||||
meta?: Record<string, unknown>;
|
||||
|
||||
@IsOptional()
|
||||
@IsString({ message: EmailMessage.SESSION_ID_MUST_BE_STRING })
|
||||
@@ -188,15 +188,20 @@ export class SendEmailDto {
|
||||
@ApiPropertyOptional({ description: "IP address for the logs (optional)" })
|
||||
ip?: string;
|
||||
|
||||
@IsOptional()
|
||||
@ApiPropertyOptional({ description: "Reference message data (optional)" })
|
||||
reference?: any;
|
||||
// @IsOptional()
|
||||
// @ApiPropertyOptional({ description: "Reference message data (optional)" })
|
||||
// reference?: any;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean({ message: EmailMessage.IS_DRAFT_MUST_BE_BOOLEAN })
|
||||
@ApiPropertyOptional({ description: "Is the message a draft or not (optional)", default: false })
|
||||
isDraft?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean({ message: EmailMessage.IS_FORWARD_MUST_BE_BOOLEAN })
|
||||
@ApiPropertyOptional({ description: "Is the message a forward or not (optional)", default: false })
|
||||
isForward?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@ValidateNested()
|
||||
@Type(() => DraftReferenceDto)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface IEmailMap {
|
||||
email: string;
|
||||
name?: string;
|
||||
count: number;
|
||||
lastSeen: Date;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user