Plazo único por Acta, respuestas de empresa con PDF, fecha comprometida, estados administrativos, cola y calendario por Acta.
32 lines
777 B
TypeScript
32 lines
777 B
TypeScript
|
|
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;
|
|
}
|