import { Transform } from 'class-transformer'; import { IsDateString, IsEmail, IsOptional, IsString, MaxLength, MinLength } from 'class-validator'; export class CreateActCompanyResponseDto { @IsDateString() receivedOn!: string; @IsOptional() @Transform(({ value }) => (typeof value === 'string' ? value.trim() : value)) @IsString() @MinLength(3) @MaxLength(8000) details?: string; @IsOptional() @IsDateString() committedCorrectionOn?: string; @IsOptional() @Transform(({ value }) => (typeof value === 'string' ? value.trim() : value)) @IsString() @MaxLength(200) contactName?: string; @IsOptional() @Transform(({ value }) => (typeof value === 'string' ? value.trim() : value)) @IsEmail() @MaxLength(320) contactEmail?: string; }