feat: schema change

This commit is contained in:
Fredrik Thorsson
2024-08-06 12:49:50 +02:00
parent 798d19d3c8
commit 75011dffe5
4 changed files with 38 additions and 36 deletions

View File

@@ -483,11 +483,9 @@ export const getRatesSchema = z.array(rate)
export type Rate = z.infer<typeof rate>
const hotelFilter = z.object({
filterType: z.object({
roomFacilities: z.array(z.string()),
hotelFacilities: z.array(z.string()),
hotelSurroundings: z.array(z.string()),
}),
roomFacilities: z.array(z.string()),
hotelFacilities: z.array(z.string()),
hotelSurroundings: z.array(z.string()),
})
export const getFiltersSchema = hotelFilter

View File

@@ -1,24 +1,22 @@
{
"filterType": {
"roomFacilities": ["Balcony", "Bathub", "View", "Conntecting doors"],
"hotelFacilities": [
"Parking inside",
"Parking outside",
"Parking electric",
"Sauna",
"Pool",
"Restaurant",
"Bar",
"Sky/rooftop bar",
"Gym",
"Coworking"
],
"hotelSurroundings": [
"Beach",
"Lake or sea",
"Hiking",
"Mountains",
"Golf course"
]
}
"roomFacilities": ["Balcony", "Bathub", "View", "Conntecting doors"],
"hotelFacilities": [
"Parking inside",
"Parking outside",
"Parking electric",
"Sauna",
"Pool",
"Restaurant",
"Bar",
"Sky/rooftop bar",
"Gym",
"Coworking"
],
"hotelSurroundings": [
"Beach",
"Lake or sea",
"Hiking",
"Mountains",
"Golf course"
]
}