Files
toir-light-v2/backend/src/confirmation-document/dto/create-confirmation-document.dto.ts
2026-04-25 13:53:55 +00:00

30 lines
861 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Type } from 'class-transformer';
import { IsString, IsNotEmpty, IsISO8601, IsOptional, IsBoolean } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateConfirmationDocumentDto {
@ApiProperty({ required: false, description: 'Номер' })
@IsString()
@IsOptional()
number?: string;
@ApiProperty({ description: 'Дата согласования' })
@IsISO8601()
@Type(() => Date)
date: Date;
@ApiProperty({ description: 'Код руководителя' })
@IsString()
@IsNotEmpty()
managerCode: string;
@ApiProperty({ description: 'Идентификатор заявки' })
@IsString()
@IsNotEmpty()
orderId: string;
@ApiProperty({ required: false, description: 'Согласовано/Не согласовано' })
@IsBoolean()
@IsOptional()
confirmed?: boolean;
}