feat(SW-3151): Added original to imageSchema and added transform to a more generic image type
Approved-by: Bianca Widstam Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Matilda Landström
This commit is contained in:
@@ -5,7 +5,7 @@ import { CurrencyEnum } from "@scandic-hotels/common/constants/currency"
|
||||
import { BreakfastPackageEnum } from "../../../enums/breakfast"
|
||||
import { PackageTypeEnum } from "../../../enums/packages"
|
||||
import { RoomPackageCodeEnum } from "../../../enums/roomFilter"
|
||||
import { imageSizesSchema } from "./image"
|
||||
import { imageSchema } from "./image"
|
||||
|
||||
// TODO: Remove optional and default when the API change has been deployed
|
||||
export const packagePriceSchema = z
|
||||
@@ -38,7 +38,7 @@ export const ancillaryContentSchema = z.object({
|
||||
}),
|
||||
title: z.string(),
|
||||
descriptions: z.object({ html: z.string() }),
|
||||
images: z.array(z.object({ imageSizes: imageSizesSchema })),
|
||||
images: z.array(imageSchema),
|
||||
requiresDeliveryTime: z.boolean(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user