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

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

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

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

  @ApiProperty({ example: 3 })
  urgent!: number;
}

export class BookingListSummaryTabsDto {
  @ApiProperty() all!: number;
  @ApiProperty() intake!: number;
  @ApiProperty() in_approval!: number;
  @ApiProperty() approved_contract!: number;
  @ApiProperty() payment!: number;
  @ApiProperty() operations!: number;
  @ApiProperty() completed!: number;
  @ApiProperty() closed!: number;
}

export class BookingListSummaryDto {
  @ApiProperty({ type: BookingListSummaryMetricsDto })
  metrics!: BookingListSummaryMetricsDto;

  @ApiProperty({ type: BookingListSummaryTabsDto })
  tabs!: BookingListSummaryTabsDto;
}
