feat(SW-176): use the availability endpoint
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
import { Hotel } from "@/types/hotel"
|
||||
import {
|
||||
Availability,
|
||||
AvailabilityPrices,
|
||||
} from "@/server/routers/hotels/output"
|
||||
|
||||
export type HotelCardProps = { hotel: Hotel }
|
||||
export type HotelCardProps = {
|
||||
checkInDate: Availability["data"][number]["attributes"]["checkInDate"]
|
||||
checkOutDate: Availability["data"][number]["attributes"]["checkOutDate"]
|
||||
hotelId: Availability["data"][number]["attributes"]["hotelId"]
|
||||
price: AvailabilityPrices
|
||||
}
|
||||
|
||||
@@ -18,5 +18,3 @@ export type HotelTripAdvisor =
|
||||
| undefined
|
||||
|
||||
export type RoomData = z.infer<typeof roomSchema>
|
||||
|
||||
export type Availability = z.infer<typeof getAvailabilitySchema>
|
||||
|
||||
Reference in New Issue
Block a user