Merged in feat/SW-1333-hotel-endpoint (pull request #1206)
Feat(SW-133): Add additionalData endpoint Approved-by: Erik Tiekstra Approved-by: Fredrik Thorsson
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { SidePeekEnum } from "@/types/components/hotelReservation/sidePeek"
|
||||
import { Hotel } from "@/types/hotel"
|
||||
import type { SidePeekEnum } from "@/types/components/hotelReservation/sidePeek"
|
||||
import type { AdditionalData, Hotel } from "@/types/hotel"
|
||||
|
||||
export type HotelSidePeekProps = {
|
||||
hotel: Hotel
|
||||
additionalHotelData: AdditionalData | undefined
|
||||
activeSidePeek: SidePeekEnum
|
||||
close: () => void
|
||||
showCTA: boolean
|
||||
|
||||
@@ -2,11 +2,14 @@ import type { z } from "zod"
|
||||
|
||||
import type {
|
||||
checkinSchema,
|
||||
facilitySchema,
|
||||
getHotelDataSchema,
|
||||
parkingSchema,
|
||||
pointOfInterestSchema,
|
||||
} from "@/server/routers/hotels/output"
|
||||
import type {
|
||||
additionalDataSchema,
|
||||
facilitySchema,
|
||||
} from "@/server/routers/hotels/schemas/additionalData"
|
||||
import type { imageSchema } from "@/server/routers/hotels/schemas/image"
|
||||
import type {
|
||||
restaurantOpeningHoursSchema,
|
||||
@@ -36,6 +39,8 @@ export type RestaurantOpeningHours = z.output<
|
||||
export type GalleryImage = z.infer<typeof imageSchema>
|
||||
export type CheckInData = z.infer<typeof checkinSchema>
|
||||
|
||||
export type AdditionalData = z.infer<typeof additionalDataSchema>
|
||||
|
||||
export type PointOfInterest = z.output<typeof pointOfInterestSchema>
|
||||
|
||||
export enum PointOfInterestGroupEnum {
|
||||
|
||||
@@ -9,7 +9,7 @@ export interface BookingConfirmation {
|
||||
booking: BookingConfirmationSchema
|
||||
hotel: Hotel & {
|
||||
included?: {
|
||||
rooms: RoomData[]
|
||||
rooms: RoomData[] | undefined
|
||||
}
|
||||
}
|
||||
room:
|
||||
|
||||
Reference in New Issue
Block a user