mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 02:58:11 +00:00
19 lines
551 B
TypeScript
19 lines
551 B
TypeScript
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
import { IsIn, IsOptional, IsString, MinLength } from 'class-validator';
|
|
|
|
export class ReviewClearanceDocumentDto {
|
|
@ApiProperty({ description: 'The document fileKey being reviewed' })
|
|
@IsString()
|
|
@MinLength(1)
|
|
fileKey!: string;
|
|
|
|
@ApiProperty({ enum: ['APPROVED', 'QUERIED'] })
|
|
@IsIn(['APPROVED', 'QUERIED'])
|
|
status!: 'APPROVED' | 'QUERIED';
|
|
|
|
@ApiPropertyOptional({ description: 'Required when querying a document' })
|
|
@IsOptional()
|
|
@IsString()
|
|
note?: string;
|
|
}
|