cal.pub0.org/lib/validations/selected-calendar.ts

14 lines
433 B
TypeScript

import { withValidation } from "next-validations";
import { _SelectedCalendarModel as SelectedCalendar } from "@calcom/prisma/zod";
export const schemaSelectedCalendarBodyParams = SelectedCalendar.omit({});
export const schemaSelectedCalendarPublic = SelectedCalendar.omit({ userId: true });
export const withValidSelectedCalendar = withValidation({
schema: schemaSelectedCalendarBodyParams,
type: "Zod",
mode: "body",
});