Files
web/server/routers/hotels/input.ts

16 lines
356 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(),
})