Merge branch 'develop' into feature/tracking

This commit is contained in:
Linus Flood
2024-10-28 15:23:18 +01:00
102 changed files with 2272 additions and 338 deletions

View 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
}

View File

@@ -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 {

View File

@@ -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
}

View File

@@ -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[]
}

View File

@@ -0,0 +1,8 @@
import { RoomConfiguration } from "@/server/routers/hotels/output"
import { RoomData } from "@/types/hotel"
export type RoomSidePeekProps = {
roomConfiguration: RoomConfiguration
selectedRoom?: RoomData
}

View File

@@ -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[]
}