Merge branch 'develop' into feature/tracking
This commit is contained in:
14
types/components/blocks/surprises.ts
Normal file
14
types/components/blocks/surprises.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {
|
||||
Reward,
|
||||
SurpriseReward,
|
||||
} from "@/server/routers/contentstack/reward/output"
|
||||
|
||||
export interface Surprise extends Reward {
|
||||
endsAt: SurpriseReward["endsAt"]
|
||||
id: SurpriseReward["id"]
|
||||
}
|
||||
|
||||
export interface SurprisesProps {
|
||||
surprises: Surprise[]
|
||||
membershipNumber?: string
|
||||
}
|
||||
@@ -8,17 +8,27 @@ import type { Locations } from "@/types/trpc/routers/hotel/locations"
|
||||
|
||||
export type BookingWidgetSchema = z.output<typeof bookingWidgetSchema>
|
||||
|
||||
export type BookingWidgetSearchParams = {
|
||||
city?: string
|
||||
hotel?: string
|
||||
fromDate?: string
|
||||
toDate?: string
|
||||
room?: string
|
||||
}
|
||||
|
||||
export type BookingWidgetType = VariantProps<
|
||||
typeof bookingWidgetVariants
|
||||
>["type"]
|
||||
|
||||
export interface BookingWidgetProps {
|
||||
type?: BookingWidgetType
|
||||
searchParams?: BookingWidgetSearchParams
|
||||
}
|
||||
|
||||
export interface BookingWidgetClientProps {
|
||||
locations: Locations
|
||||
type?: BookingWidgetType
|
||||
searchParams?: BookingWidgetSearchParams
|
||||
}
|
||||
|
||||
export interface BookingWidgetToggleButtonProps {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { PointOfInterest } from "@/types/hotel"
|
||||
import type { Coordinates } from "../../maps/coordinates"
|
||||
|
||||
export interface SidebarProps {
|
||||
hotelName: string
|
||||
pointsOfInterest: PointOfInterest[]
|
||||
activePoi: PointOfInterest["name"] | null
|
||||
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
|
||||
coordinates: Coordinates
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
interface Child {
|
||||
bed: string
|
||||
age: number
|
||||
}
|
||||
|
||||
interface Room {
|
||||
adults: number
|
||||
child?: Child[]
|
||||
}
|
||||
|
||||
export interface SelectHotelSearchParams {
|
||||
city: string
|
||||
fromDate: string
|
||||
toDate: string
|
||||
room: Room[]
|
||||
[key: string]: string | string[] | Room[]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { RoomConfiguration } from "@/server/routers/hotels/output"
|
||||
|
||||
import { RoomData } from "@/types/hotel"
|
||||
|
||||
export type RoomSidePeekProps = {
|
||||
roomConfiguration: RoomConfiguration
|
||||
selectedRoom?: RoomData
|
||||
}
|
||||
@@ -14,8 +14,8 @@ interface Room {
|
||||
|
||||
export interface SelectRateSearchParams {
|
||||
hotel: string
|
||||
fromdate: string
|
||||
todate: string
|
||||
fromDate: string
|
||||
toDate: string
|
||||
room: Room[]
|
||||
[key: string]: string | string[] | Room[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user