feat: SW-1583 Implemented Reward nights on city search
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ export interface SelectRateSearchParams {
|
||||
hotelId: string
|
||||
rooms: Room[]
|
||||
toDate: string
|
||||
searchType?: "redemption"
|
||||
}
|
||||
|
||||
export type Rate = {
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user