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

export class PackageDetails {

  @ApiProperty({ example: 1 })
  id: number;

  @ApiProperty({ example: 'Combo 1' })
  package_name: string;

  @ApiProperty({ example: 'bed data' })
  item_name: string;

  @ApiProperty({ example: '1' })
  status: string;

  @ApiProperty({ example: '1' })
  crated_at: Date | string;

}

export class CountDto {

  @ApiProperty({ example: '10' })
  details: PackageDetails[];

  @ApiProperty({ example: '10' })
  total: number;

}


export class AddPackagesDto {
  @ApiProperty({ example: 'Combo 1', description: 'Name of the package' })
  package_name: string;

  @ApiProperty({ example: '18%', description: 'Applicable tax for the package' })
  package_tax: any;

  @ApiProperty({
    example: [1, 2],
    description: 'List of charge type IDs associated with the package'
  })
  charge_type_ids: number[];

  @ApiProperty({ example: 1, description: 'Package category ID' })
  package_category_id: number;

  @ApiProperty({ example: 'Basic package description' })
  description: string;

  @ApiProperty({ example: '500', description: 'Standard charge for the package' })
  package_amount: any;

  @ApiProperty({ example: 1, description: 'Hospital id' })
  hospital_id: number;

  @ApiProperty({ example: '1' })
  package_status: string;

  @ApiProperty({ example: 1 })
  created_by: number;

  @ApiProperty({ example: 'op-hub', enum:['op-hub','hms'] })
  created_source: string;

  updated_at?: Date | string;

  created_at?: Date | string;
}