cal.pub0.org/packages/trpc/server/routers/viewer/availability/schedule/create.schema.ts

19 lines
357 B
TypeScript

import { z } from "zod";
export const ZCreateInputSchema = z.object({
name: z.string(),
schedule: z
.array(
z.array(
z.object({
start: z.date(),
end: z.date(),
})
)
)
.optional(),
eventTypeId: z.number().optional(),
});
export type TCreateInputSchema = z.infer<typeof ZCreateInputSchema>;