feat(SW-589): Room selection summary
This commit is contained in:
@@ -2,6 +2,8 @@ import { z } from "zod"
|
||||
|
||||
import { Product, productTypePriceSchema } from "@/server/routers/hotels/output"
|
||||
|
||||
import { Rate } from "./selectRate"
|
||||
|
||||
type ProductPrice = z.output<typeof productTypePriceSchema>
|
||||
|
||||
export type FlexibilityOptionProps = {
|
||||
@@ -10,6 +12,8 @@ export type FlexibilityOptionProps = {
|
||||
value: string
|
||||
paymentTerm: string
|
||||
priceInformation?: Array<string>
|
||||
roomType: string
|
||||
handleSelectRate: (rate: Rate) => void
|
||||
}
|
||||
|
||||
export interface PriceListProps {
|
||||
|
||||
@@ -3,10 +3,13 @@ import {
|
||||
RoomConfiguration,
|
||||
} from "@/server/routers/hotels/output"
|
||||
|
||||
import { Rate } from "./selectRate"
|
||||
|
||||
import { RoomData } from "@/types/hotel"
|
||||
|
||||
export type RoomCardProps = {
|
||||
roomConfiguration: RoomConfiguration
|
||||
rateDefinitions: RateDefinition[]
|
||||
roomCategories: RoomData[]
|
||||
handleSelectRate: (rate: Rate) => void
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { RoomsAvailability } from "@/server/routers/hotels/output"
|
||||
|
||||
import { RoomData } from "@/types/hotel"
|
||||
import { User } from "@/types/user"
|
||||
|
||||
export interface RoomSelectionProps {
|
||||
roomConfigurations: RoomsAvailability
|
||||
roomCategories: RoomData[]
|
||||
user: User | null
|
||||
}
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
import { Product } from "@/server/routers/hotels/output"
|
||||
|
||||
export interface SelectRateSearchParams {
|
||||
fromDate: string
|
||||
toDate: string
|
||||
hotel: string
|
||||
}
|
||||
|
||||
export interface Rate {
|
||||
roomType: string
|
||||
priceName: string
|
||||
public: Product["productType"]["public"]
|
||||
member: Product["productType"]["member"]
|
||||
}
|
||||
|
||||
export interface State {
|
||||
selectedRate: Rate | null
|
||||
}
|
||||
|
||||
export type SetSelectedRateAction = {
|
||||
type: "SET_SELECTED_RATE"
|
||||
payload: Rate
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user