feat: SW-1583 Implemented Reward nights on city search

This commit is contained in:
Hrishikesh Vaipurkar
2025-03-03 16:39:10 +01:00
parent 51b70f3032
commit 5058180c41
25 changed files with 176 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ export type AvailabilityInput = {
adults: number
children?: string
bookingCode?: string
redemption?: boolean
}
export type AlternativeHotelsAvailabilityInput = {
@@ -13,4 +14,5 @@ export type AlternativeHotelsAvailabilityInput = {
adults: number
children?: string
bookingCode?: string
redemption?: boolean
}

View File

@@ -1,6 +1,13 @@
import type { ProductTypePrices } from "@/types/trpc/routers/hotel/availability"
import type {
ProductTypePoints,
ProductTypePrices,
} from "@/types/trpc/routers/hotel/availability"
export type PriceCardProps = {
productTypePrices: ProductTypePrices
isMemberPrice?: boolean
}
export type PointsCardProps = {
productTypePoints: ProductTypePoints
}

View File

@@ -6,6 +6,7 @@ export interface SelectHotelSearchParams {
toDate: string
rooms: Pick<Room, "adults" | "childrenInRoom">[]
bookingCode: string
searchType?: "redemption"
}
export interface AlternativeHotelsSearchParams {
@@ -14,4 +15,5 @@ export interface AlternativeHotelsSearchParams {
toDate: string
rooms: Pick<Room, "adults" | "childrenInRoom">[]
bookingCode: string
searchType?: "redemption"
}

View File

@@ -26,6 +26,7 @@ export interface SelectRateSearchParams {
hotelId: string
rooms: Room[]
toDate: string
searchType?: "redemption"
}
export type Rate = {

View File

@@ -6,7 +6,10 @@ import type {
} from "@/server/routers/hotels/input"
import type { hotelsAvailabilitySchema } from "@/server/routers/hotels/output"
import type { productTypeSchema } from "@/server/routers/hotels/schemas/availability/productType"
import type { productTypePriceSchema } from "@/server/routers/hotels/schemas/productTypePrice"
import type {
productTypePointsSchema,
productTypePriceSchema,
} from "@/server/routers/hotels/schemas/productTypePrice"
export type HotelsAvailability = z.output<typeof hotelsAvailabilitySchema>
export type HotelsAvailabilityInputSchema = z.output<
@@ -17,6 +20,7 @@ export type HotelsByHotelIdsAvailabilityInputSchema = z.output<
>
export type ProductType = z.output<typeof productTypeSchema>
export type ProductTypePrices = z.output<typeof productTypePriceSchema>
export type ProductTypePoints = z.output<typeof productTypePointsSchema>
export type HotelsAvailabilityItem =
HotelsAvailability["data"][number]["attributes"]