fix: move packages schemas

This commit is contained in:
Christel Westerberg
2024-11-12 08:43:29 +01:00
parent 684faaa4b0
commit 43ef48e2c7
9 changed files with 87 additions and 75 deletions

View File

@@ -68,3 +68,12 @@ export const getBreakfastPackageInputSchema = z.object({
.min(1, { message: "toDate is required" })
.pipe(z.coerce.date()),
})
export const getRoomPackagesInputSchema = z.object({
hotelId: z.string(),
startDate: z.string(),
endDate: z.string(),
adults: z.number(),
children: z.number().optional().default(0),
packageCodes: z.array(z.string()).optional().default([]),
})