feat(SW-176): filter in route

This commit is contained in:
Fredrik Thorsson
2024-09-03 15:18:38 +02:00
parent 87de043598
commit a3e540baa6
4 changed files with 18 additions and 40 deletions

View File

@@ -470,7 +470,7 @@ export const getHotelDataSchema = z.object({
const occupancySchema = z.object({
adults: z.number(),
children: z.number(),
children: z.number().optional(),
})
const bestPricePerStaySchema = z.object({
@@ -512,7 +512,7 @@ const availabilitySchema = z.object({
attributes: z.object({
checkInDate: z.string(),
checkOutDate: z.string(),
occupancy: occupancySchema.optional(),
occupancy: occupancySchema,
status: z.string(),
hotelId: z.number(),
ratePlanSet: z.string().optional(),