Merge remote-tracking branch 'origin' into feat/tracking-payment

This commit is contained in:
Linus Flood
2025-01-10 09:13:04 +01:00
111 changed files with 2371 additions and 875 deletions

View File

@@ -1,6 +1,6 @@
import type { Reward } from "@/server/routers/contentstack/reward/output"
export interface Surprise extends Reward {
export interface Surprise extends Omit<Reward, "operaRewardId"> {
coupons: { couponCode?: string; expiresAt?: string }[]
}

View File

@@ -8,7 +8,7 @@ export type Child = {
bed: number
}
export type GuestsRoom = {
export type TGuestsRoom = {
adults: number
child: Child[]
}

View File

@@ -4,7 +4,7 @@ import type { z } from "zod"
import type { Locations } from "@/types/trpc/routers/hotel/locations"
import type { bookingWidgetSchema } from "@/components/Forms/BookingWidget/schema"
import type { bookingWidgetVariants } from "@/components/Forms/BookingWidget/variants"
import type { GuestsRoom } from "./guestsRoomsPicker"
import type { TGuestsRoom } from "./guestsRoomsPicker"
export type BookingWidgetSchema = z.output<typeof bookingWidgetSchema>
@@ -13,7 +13,7 @@ export type BookingWidgetSearchParams = {
hotel?: string
fromDate?: string
toDate?: string
room?: GuestsRoom[]
room?: TGuestsRoom[]
}
export type BookingWidgetType = VariantProps<

View File

@@ -0,0 +1,6 @@
export interface SocialLinkProps {
link: {
href: string
title: string
}
}

View File

@@ -1,10 +1,12 @@
import type { Facility } from "@/types/hotel"
import type { Amenities, Facility, HealthFacilities } from "@/types/hotel"
import type { ActivityCard } from "@/types/trpc/routers/contentstack/hotelPage"
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
export type FacilitiesProps = {
facilities: Facility[]
activitiesCard: ActivityCard | null
activitiesCard?: ActivityCard
amenities: Amenities
healthFacilities: HealthFacilities
}
export type FacilityImage = {
@@ -22,7 +24,7 @@ export type FacilityCard = {
scrollOnClick: boolean
}
heading: string
scriptedTopTitle: string
scriptedTopTitle?: string
theme: CardProps["theme"]
id: string
}
@@ -47,3 +49,19 @@ export enum RestaurantHeadings {
restaurant = "Restaurant",
breakfastRestaurant = "Breakfast restaurant",
}
export enum WellnessHeadings {
GymPool = "Gym & Pool",
GymSauna = "Gym & Sauna",
GymPoolSaunaRelax = "Gym, Pool, Sauna & Relax",
GymJacuzziSaunaRelax = "Gym, Jacuzzi, Sauna & Relax",
}
export enum HealthFacilitiesEnum {
Jacuzzi = "Jacuzzi",
Gym = "Gym",
Sauna = "Sauna",
Relax = "Relax",
IndoorPool = "IndoorPool",
OutdoorPool = "OutdoorPool",
}

View File

@@ -2,5 +2,9 @@ import type { Hotel } from "@/types/hotel"
export type WellnessAndExerciseSidePeekProps = {
healthFacilities: Hotel["healthFacilities"]
buttonUrl?: string
wellnessExerciseButton?: string
spaPage?: {
buttonCTA: string
url: string
}
}

View File

@@ -4,6 +4,7 @@ import type {
bedTypeFormSchema,
bedTypeSchema,
} from "@/components/HotelReservation/EnterDetails/BedType/schema"
import type { BedTypeEnum, ExtraBedTypeEnum } from "@/constants/booking"
export type BedTypeSelection = {
description: string
@@ -12,6 +13,13 @@ export type BedTypeSelection = {
max: number
}
value: string
type: BedTypeEnum
extraBed:
| {
description: string
type: ExtraBedTypeEnum
}
| undefined
}
export type BedTypeProps = {
bedTypes: BedTypeSelection[]

View File

@@ -7,18 +7,18 @@ import type { Rate, RateCode } from "./selectRate"
export interface RoomSelectionProps {
roomsAvailability: RoomsAvailability
roomCategories: RoomData[]
user: SafeUser
availablePackages: RoomPackageData | undefined
selectedPackages: RoomPackageCodes[]
setRateCode: React.Dispatch<React.SetStateAction<RateCode | undefined>>
rateSummary: Rate | null
hotelType: string | undefined
isUserLoggedIn: boolean
}
export interface SelectRateProps {
roomsAvailability: RoomsAvailability
roomCategories: RoomData[]
user: SafeUser
availablePackages: RoomPackageData
hotelType: string | undefined
isUserLoggedIn: boolean
}

View File

@@ -15,4 +15,5 @@ export interface SummaryProps
extends Pick<RoomAvailability, "cancellationText" | "rateDetails">,
Pick<RoomAvailability["selectedRoom"], "roomType"> {
isMember: boolean
breakfastIncluded: boolean
}

View File

@@ -1,3 +1,4 @@
import type { Dispatch, ReactNode, SetStateAction } from "react"
import type { z } from "zod"
import type { DynamicContent } from "@/types/trpc/routers/contentstack/blocks"
@@ -37,3 +38,8 @@ export interface RedeemProps {
export type RedeemModalState = "unmounted" | "hidden" | "visible"
export type RedeemStep = "initial" | "confirmation" | "redeemed"
export type RedeemFlowContext = {
redeemStep: RedeemStep
setRedeemStep: Dispatch<SetStateAction<RedeemStep>>
}