Merged in feat/SW-1652-confirmation-page-multiroom (pull request #1404)
feat(SW-1652): Fetching additional rooms on confirmation page * feat(SW-1652): Fetching additional rooms on confirmation page Approved-by: Tobias Johansson
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import type { Room } from "@/types/hotel"
|
||||
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
|
||||
import type {
|
||||
BookingConfirmation,
|
||||
BookingConfirmationSchema,
|
||||
} from "@/types/trpc/routers/booking/confirmation"
|
||||
|
||||
export interface BookingConfirmationProps {
|
||||
confirmationNumber: string
|
||||
@@ -10,3 +13,7 @@ export interface ConfirmationProps extends BookingConfirmation {
|
||||
bedType: Room["roomTypes"][number]
|
||||
}
|
||||
}
|
||||
|
||||
export interface BookingConfirmationAlertsProps {
|
||||
booking: BookingConfirmationSchema
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
|
||||
|
||||
export interface BookingConfirmationPaymentDetailsProps
|
||||
extends Pick<BookingConfirmation, "booking"> {}
|
||||
extends Pick<BookingConfirmation, "booking"> {
|
||||
linkedReservations: (BookingConfirmation | null)[]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,22 @@
|
||||
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
|
||||
import type { Room } from "@/types/hotel"
|
||||
import type {
|
||||
BookingConfirmation,
|
||||
BookingConfirmationSchema,
|
||||
} from "@/types/trpc/routers/booking/confirmation"
|
||||
|
||||
export interface BookingConfirmationReceiptProps extends BookingConfirmation {}
|
||||
|
||||
interface ReceiptRoom extends Room {
|
||||
bedType: Room["roomTypes"][number]
|
||||
}
|
||||
export interface BookingConfirmationReceiptRoomsProps {
|
||||
booking: BookingConfirmationSchema
|
||||
room: ReceiptRoom
|
||||
linkedReservations: (BookingConfirmation | null)[]
|
||||
}
|
||||
|
||||
export interface BookingConfirmationReceiptRoomProps {
|
||||
booking: BookingConfirmationSchema
|
||||
room: ReceiptRoom
|
||||
roomNumber: number | null
|
||||
}
|
||||
|
||||
@@ -2,15 +2,15 @@ import type { z } from "zod"
|
||||
|
||||
import type { Room } from "@/types/hotel"
|
||||
import type { BookingConfirmation } from "@/types/trpc/routers/booking/confirmation"
|
||||
import type { linkedReservationsSchema } from "@/server/routers/booking/output"
|
||||
import type { linkedReservationSchema } from "@/server/routers/booking/output"
|
||||
|
||||
export interface LinkedReservationSchema
|
||||
extends z.output<typeof linkedReservationsSchema> {}
|
||||
extends z.output<typeof linkedReservationSchema> {}
|
||||
|
||||
export interface BookingConfirmationRoomsProps
|
||||
extends Pick<BookingConfirmation, "booking"> {
|
||||
mainRoom: Room & {
|
||||
bedType: Room["roomTypes"][number]
|
||||
}
|
||||
linkedReservations?: LinkedReservationSchema[]
|
||||
linkedReservations: LinkedReservationSchema[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user