fix(SW-881) fixing data issues
This commit is contained in:
@@ -855,7 +855,7 @@ export const breakfastPackagesSchema = z
|
||||
|
||||
export const packagesSchema = z.object({
|
||||
code: z.nativeEnum(RoomPackageCodeEnum),
|
||||
itemCode: z.string(),
|
||||
itemCode: z.string().optional(),
|
||||
description: z.string(),
|
||||
localPrice: packagePriceSchema,
|
||||
requestedPrice: packagePriceSchema,
|
||||
@@ -873,7 +873,7 @@ export const getRoomPackagesSchema = z
|
||||
data: z.object({
|
||||
attributes: z.object({
|
||||
hotelId: z.number(),
|
||||
packages: z.array(packagesSchema),
|
||||
packages: z.array(packagesSchema).optional().default([]),
|
||||
}),
|
||||
relationships: z
|
||||
.object({
|
||||
|
||||
Reference in New Issue
Block a user