feat(697): Made new fields optional
This commit is contained in:
@@ -11,11 +11,13 @@ export const getRoomPackagesInputSchema = z.object({
|
||||
packageCodes: z.array(z.string()).optional().default([]),
|
||||
})
|
||||
|
||||
export const packagePriceSchema = z.object({
|
||||
currency: z.string(),
|
||||
price: z.string(),
|
||||
totalPrice: z.string(),
|
||||
})
|
||||
export const packagePriceSchema = z
|
||||
.object({
|
||||
currency: z.string(),
|
||||
price: z.string(),
|
||||
totalPrice: z.string(),
|
||||
})
|
||||
.optional() // TODO: Remove optional when the API change has been deployed
|
||||
|
||||
export const packagesSchema = z.object({
|
||||
code: z.nativeEnum(RoomPackageCodeEnum),
|
||||
|
||||
Reference in New Issue
Block a user