import { ApiProperty } from '@nestjs/swagger';

export class ContractListSummaryMetricsDto {
  @ApiProperty({ example: 42 })
  inQueue!: number;

  @ApiProperty({ example: 10 })
  onThisPage!: number;

  @ApiProperty({ example: 8 })
  needsAction!: number;
}

export class ContractListSummaryDto {
  @ApiProperty({ type: ContractListSummaryMetricsDto })
  metrics!: ContractListSummaryMetricsDto;

  @ApiProperty({ description: 'Count per contract status', type: 'object', additionalProperties: { type: 'number' } })
  statusCounts!: Record<string, number>;
}
