feat(SW-251): use parallel fetch for hotels
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export type AvailabilityInput = {
|
||||
cityId: string
|
||||
roomStayStartDate: string
|
||||
roomStayEndDate: string
|
||||
adults: number
|
||||
children?: number
|
||||
promotionCode?: string
|
||||
reservationProfileType?: string
|
||||
attachedProfileId?: string
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { AvailabilityPrices } from "@/server/routers/hotels/output"
|
||||
|
||||
import { Hotel } from "@/types/hotel"
|
||||
|
||||
export type HotelCardListingProps = {
|
||||
hotelData: HotelData[]
|
||||
}
|
||||
|
||||
export type HotelData = {
|
||||
hotelData: Hotel | undefined
|
||||
price: AvailabilityPrices
|
||||
}
|
||||
@@ -1,11 +1,5 @@
|
||||
import {
|
||||
Availability,
|
||||
AvailabilityPrices,
|
||||
} from "@/server/routers/hotels/output"
|
||||
import { HotelData } from "./hotelCardListingProps"
|
||||
|
||||
export type HotelCardProps = {
|
||||
checkInDate: Availability["data"][number]["attributes"]["checkInDate"]
|
||||
checkOutDate: Availability["data"][number]["attributes"]["checkOutDate"]
|
||||
hotelId: Availability["data"][number]["attributes"]["hotelId"]
|
||||
price: AvailabilityPrices
|
||||
hotel: HotelData
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user