import { IsString, IsOptional, IsEnum } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { ClaimStatus } from '../../../domain/entities/insurance-claim.entity';
import { PaginationQueryDto } from './pagination.dto';

// ───────────── List Claims ─────────────

export class ListClaimsQueryDto extends PaginationQueryDto {
  @ApiPropertyOptional({ description: 'Filter by claim status', enum: ClaimStatus })
  @IsOptional()
  @IsEnum(ClaimStatus)
  status?: string;
}

// ───────────── Reject Claim ─────────────

export class RejectClaimDto {
  @ApiPropertyOptional({ description: 'Reason for rejection' })
  @IsOptional()
  @IsString()
  reason?: string;
}
