import { Product, RoomConfiguration } from "@/server/routers/hotels/output"

import { ChildBedMapEnum } from "../../bookingWidget/enums"

export interface Child {
  bed: ChildBedMapEnum
  age: number
}

interface Room {
  adults: number
  roomtype: string
  ratecode: string
  counterratecode?: string
  child?: Child[]
  packages?: string
}

export interface SelectRateSearchParams {
  hotel: string
  fromDate: string
  toDate: string
  room: Room[]
  [key: string]: string | string[] | Room[]
}

export interface Rate {
  roomType: RoomConfiguration["roomType"]
  roomTypeCode: RoomConfiguration["roomTypeCode"]
  priceName: string
  public: Product["productType"]["public"]
  member?: Product["productType"]["member"]
  features: RoomConfiguration["features"]
}
