import { IsOptional, IsString, IsEnum } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';
import { AlertStatus, AmlPattern } from '../../../domain/entities/aml-alert.entity';
import { PaginationQueryDto } from './pagination.dto';

// ───────────── List Alerts ─────────────

export class ListRiskAlertsQueryDto extends PaginationQueryDto {
  @ApiPropertyOptional({ description: 'Filter by alert status', enum: AlertStatus })
  @IsOptional()
  @IsEnum(AlertStatus)
  status?: string;

  @ApiPropertyOptional({ description: 'Filter by AML pattern', enum: AmlPattern })
  @IsOptional()
  @IsEnum(AmlPattern)
  pattern?: string;
}
