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;
}
