feat: get breakfast package from API
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { breakfastSchema } from "@/components/HotelReservation/EnterDetails/Breakfast/schema"
|
||||
import {
|
||||
breakfastPackageSchema,
|
||||
breakfastPackagesSchema,
|
||||
} from "@/server/routers/hotels/output"
|
||||
|
||||
export interface BreakfastSchema extends z.output<typeof breakfastSchema> {}
|
||||
import { breakfastFormSchema } from "@/components/HotelReservation/EnterDetails/Breakfast/schema"
|
||||
|
||||
export interface BreakfastFormSchema
|
||||
extends z.output<typeof breakfastFormSchema> {}
|
||||
|
||||
export interface BreakfastPackages
|
||||
extends z.output<typeof breakfastPackagesSchema> {}
|
||||
|
||||
export interface BreakfastPackage
|
||||
extends z.output<typeof breakfastPackageSchema> {}
|
||||
|
||||
export interface BreakfastProps {
|
||||
packages: BreakfastPackages | null
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export enum bedTypeEnum {
|
||||
export enum BedTypeEnum {
|
||||
KING = "KING",
|
||||
QUEEN = "QUEEN",
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export enum breakfastEnum {
|
||||
BREAKFAST = "BREAKFAST",
|
||||
export enum BreakfastPackageEnum {
|
||||
FREE_MEMBER_BREAKFAST = "BRF0",
|
||||
REGULAR_BREAKFAST = "BRF1",
|
||||
NO_BREAKFAST = "NO_BREAKFAST",
|
||||
}
|
||||
|
||||
7
types/enums/currency.ts
Normal file
7
types/enums/currency.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export enum CurrencyEnum {
|
||||
DKK = "DKK",
|
||||
EUR = "EUR",
|
||||
NOK = "NOK",
|
||||
PLN = "PLN",
|
||||
SEK = "SEK",
|
||||
}
|
||||
7
types/enums/packages.ts
Normal file
7
types/enums/packages.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export enum PackageTypeEnum {
|
||||
AccessibleFriendlyRoom = "AccessibleFriendlyRoom",
|
||||
AllergyRoom = "AllergyRoom",
|
||||
BreakfastAdult = "BreakfastAdult",
|
||||
BreakfastChildren = "BreakfastChildren",
|
||||
PetRoom = "PetRoom",
|
||||
}
|
||||
Reference in New Issue
Block a user