Merged in feat/SW-1557-implement-booking-code-select (pull request #1304)

feat: SW-1577 Implemented booking code city search

* feat: SW-1577 Implemented booking code city search

* feat: SW-1557 Strict comparison

* feat: SW-1557 Review comments fix


Approved-by: Michael Zetterberg
Approved-by: Pontus Dreij
This commit is contained in:
Hrishikesh Vaipurkar
2025-02-13 09:24:47 +00:00
parent d46a85a529
commit eabe45b73c
35 changed files with 627 additions and 276 deletions

View File

@@ -8,4 +8,5 @@ export type HotelCardProps = {
isUserLoggedIn: boolean
type?: HotelCardListingTypeEnum
state?: "default" | "active"
bookingCode?: string | null
}

View File

@@ -22,6 +22,7 @@ export interface SelectHotelMapProps {
hotels: HotelData[]
filterList: CategorizedFilters
cityCoordinates: Coordinates
bookingCode: string | undefined
}
type ImageSizes = z.infer<typeof imageSchema>["imageSizes"]
@@ -32,6 +33,7 @@ export type HotelPin = {
coordinates: Coordinates
publicPrice: number | null
memberPrice: number | null
rateType: string | null
currency: string
images: {
imageSizes: ImageSizes

View File

@@ -5,6 +5,7 @@ export interface SelectHotelSearchParams {
fromDate: string
toDate: string
rooms: Pick<Room, "adults" | "childrenInRoom">[]
bookingCode: string
}
export interface AlternativeHotelsSearchParams {
@@ -12,4 +13,5 @@ export interface AlternativeHotelsSearchParams {
fromDate: string
toDate: string
rooms: Pick<Room, "adults" | "childrenInRoom">[]
bookingCode: string
}

View File

@@ -25,6 +25,7 @@ export interface SelectRateSearchParams {
fromDate: string
toDate: string
rooms: Room[]
bookingCode?: string
}
export interface Rate {