mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
16 lines
531 B
TypeScript
16 lines
531 B
TypeScript
import { SendSupportMessageDto as ISendSupportMessageDto } from "@edr/types";
|
|
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
import { IsOptional, IsString, MaxLength } from "class-validator";
|
|
|
|
export class SendMessageDto implements ISendSupportMessageDto {
|
|
@ApiPropertyOptional({
|
|
description:
|
|
"Message text. Optional only when the request carries attachments — the " +
|
|
"service rejects a message that is neither text nor files.",
|
|
})
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(4000)
|
|
body?: string;
|
|
}
|