import { IsInt, IsOptional } from "class-validator"
import { ApiProperty } from "@nestjs/swagger"

export class HospitalFilterDto {
  @ApiProperty({
    description: "Hospital Name",
    example: "abc",
    required: false,
  })
  @IsOptional()
  search: string

  @ApiProperty({
    description: "Limit",
    example: "10",
  })
  @IsInt()
  limit: number

  @ApiProperty({
    description: "Skip",
    example: "0",
  })
  @IsInt()
  skip: number

  @ApiProperty({
    description: "State ID to filter hospitals by state",
    example: 5,
    required: false,
  })
  @IsOptional()
  @IsInt()
  state_id?: number

  @ApiProperty({
    description: "Filter hospitals by partner status",
    required: false,
    enum: ["true", "false"],
  })
  @IsOptional()
  is_partner?: string
}
