import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsEnum, IsOptional, IsString, Length } from 'class-validator';
import { REPORT_STATUSES, ReportStatus } from '../schemas/report.schema';

export class UpdateReportStatusDto {
  @ApiProperty({ enum: REPORT_STATUSES })
  @IsEnum(REPORT_STATUSES)
  status!: ReportStatus;

  @ApiPropertyOptional({ maxLength: 300 })
  @IsOptional()
  @IsString()
  @Length(0, 300)
  resolutionNote?: string;
}
