Files
web/server/routers/hotels/input.ts
2024-08-06 13:12:22 +02:00

20 lines
431 B
TypeScript

import { z } from "zod"
import { Lang } from "@/constants/languages"
export const getHotelInputSchema = z.object({
hotelId: z.string(),
language: z.nativeEnum(Lang),
include: z
.array(z.enum(["RoomCategories", "NearbyHotels", "Restaurants", "City"]))
.optional(),
})
export const getRatesInputSchema = z.object({
hotelId: z.string(),
})
export const getFiltersInputSchema = z.object({
hotelId: z.string(),
})