Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -488,6 +488,7 @@ export const locationsSchema = z.object({
|
||||
),
|
||||
})
|
||||
|
||||
export type BreakfastPackages = z.output<typeof breakfastPackagesSchema>
|
||||
export const breakfastPackagesSchema = z
|
||||
.object({
|
||||
data: z.object({
|
||||
@@ -503,8 +504,6 @@ export const breakfastPackagesSchema = z
|
||||
.transform(({ data }) =>
|
||||
data.attributes.packages.filter((pkg) => pkg.code?.match(/^(BRF\d+)$/gm))
|
||||
)
|
||||
export interface BreakfastPackages
|
||||
extends z.output<typeof breakfastPackagesSchema> {}
|
||||
|
||||
export const ancillaryPackagesSchema = z
|
||||
.object({
|
||||
|
||||
@@ -51,6 +51,7 @@ export const packageSchema = z.object({
|
||||
requestedPrice: packagePriceSchema,
|
||||
})
|
||||
|
||||
export type BreakfastPackage = z.output<typeof breakfastPackageSchema>
|
||||
export const breakfastPackageSchema = z.object({
|
||||
code: z.string(),
|
||||
description: z.string(),
|
||||
@@ -61,8 +62,6 @@ export const breakfastPackageSchema = z.object({
|
||||
PackageTypeEnum.BreakfastChildren,
|
||||
]),
|
||||
})
|
||||
export interface BreakfastPackage
|
||||
extends z.output<typeof breakfastPackageSchema> {}
|
||||
|
||||
export const ancillaryPackageSchema = z.object({
|
||||
categoryName: z.string(),
|
||||
|
||||
@@ -61,6 +61,7 @@ export const productTypePriceSchema = z
|
||||
})
|
||||
.merge(partialPriceSchema)
|
||||
|
||||
export type ProductTypePointsSchema = z.output<typeof productTypePriceSchema>
|
||||
export const productTypePointsSchema = z
|
||||
.object({
|
||||
localPrice: redemptionSchema,
|
||||
|
||||
Reference in New Issue
Block a user