46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import { z } from "zod"
|
|
|
|
export const getHotelInputSchema = z.object({
|
|
include: z
|
|
.array(z.enum(["RoomCategories", "NearbyHotels", "Restaurants", "City"]))
|
|
.optional(),
|
|
})
|
|
|
|
export const getHotelsAvailabilityInputSchema = z.object({
|
|
cityId: z.string(),
|
|
roomStayStartDate: z.string(),
|
|
roomStayEndDate: z.string(),
|
|
adults: z.number(),
|
|
children: z.number().optional().default(0),
|
|
promotionCode: z.string().optional().default(""),
|
|
reservationProfileType: z.string().optional().default(""),
|
|
attachedProfileId: z.string().optional().default(""),
|
|
})
|
|
|
|
export const getRoomsAvailabilityInputSchema = z.object({
|
|
hotelId: z.number(),
|
|
roomStayStartDate: z.string(),
|
|
roomStayEndDate: z.string(),
|
|
adults: z.number(),
|
|
children: z.number().optional().default(0),
|
|
promotionCode: z.string().optional(),
|
|
reservationProfileType: z.string().optional().default(""),
|
|
attachedProfileId: z.string().optional().default(""),
|
|
})
|
|
|
|
export const getRatesInputSchema = z.object({
|
|
hotelId: z.string(),
|
|
})
|
|
|
|
export const getlHotelDataInputSchema = z.object({
|
|
hotelId: z.string(),
|
|
language: z.string(),
|
|
include: z
|
|
.array(z.enum(["RoomCategories", "NearbyHotels", "Restaurants", "City"]))
|
|
.optional(),
|
|
})
|
|
|
|
export const getBreakfastPackageInput = z.object({
|
|
hotelId: z.string().min(1, { message: "hotelId is required" }),
|
|
})
|