feat: SW-276 Implemented Store usage

This commit is contained in:
Hrishikesh Vaipurkar
2024-10-07 00:40:50 +02:00
parent 8a04f840a2
commit 770c82e57a
17 changed files with 487 additions and 424 deletions

View File

@@ -2,17 +2,17 @@ import { z } from "zod"
import type { Location } from "@/types/trpc/routers/hotel/locations"
export const guestRoomsSchema = z.array(
z.object({
adults: z.number().default(1),
children: z.array(
z.object({
age: z.number().nonnegative(),
bed: z.number(),
})
),
})
)
export const guestRoomSchema = z.object({
adults: z.number().default(1),
children: z.array(
z.object({
age: z.number().nonnegative(),
bed: z.number(),
})
),
})
export const guestRoomsSchema = z.array(guestRoomSchema)
export const bookingWidgetSchema = z.object({
bookingCode: z.string(), // Update this as required when working with booking codes component