Files
calendar/packages/trpc/server/routers/loggedInViewer/connectedCalendars.schema.ts
T
2024-12-19 19:34:24 +00:00

13 lines
412 B
TypeScript

import { z } from "zod";
export const ZConnectedCalendarsInputSchema = z
.object({
onboarding: z.boolean().optional(),
// Fetches the calendars for this event-type only if present
// Otherwise, fetches the calendars for the authenticated user
eventTypeId: z.number().nullable(),
})
.optional();
export type TConnectedCalendarsInputSchema = z.infer<typeof ZConnectedCalendarsInputSchema>;