29 lines
556 B
TypeScript
29 lines
556 B
TypeScript
|
import { z } from "zod";
|
||
|
|
||
|
export const ZUpdateInputSchema = z.object({
|
||
|
scheduleId: z.number(),
|
||
|
timeZone: z.string().optional(),
|
||
|
name: z.string().optional(),
|
||
|
isDefault: z.boolean().optional(),
|
||
|
schedule: z
|
||
|
.array(
|
||
|
z.array(
|
||
|
z.object({
|
||
|
start: z.date(),
|
||
|
end: z.date(),
|
||
|
})
|
||
|
)
|
||
|
)
|
||
|
.optional(),
|
||
|
dateOverrides: z
|
||
|
.array(
|
||
|
z.object({
|
||
|
start: z.date(),
|
||
|
end: z.date(),
|
||
|
})
|
||
|
)
|
||
|
.optional(),
|
||
|
});
|
||
|
|
||
|
export type TUpdateInputSchema = z.infer<typeof ZUpdateInputSchema>;
|