2022-03-26 23:58:22 +00:00
|
|
|
import { withValidation } from "next-validations";
|
|
|
|
|
2022-03-30 14:56:24 +00:00
|
|
|
import { _SelectedCalendarModel as SelectedCalendar } from "@calcom/prisma/zod";
|
|
|
|
|
2022-04-01 15:53:52 +00:00
|
|
|
export const schemaSelectedCalendarBodyParams = SelectedCalendar.omit({}).partial();
|
2022-03-30 14:56:24 +00:00
|
|
|
|
|
|
|
export const schemaSelectedCalendarPublic = SelectedCalendar.omit({ userId: true });
|
|
|
|
|
|
|
|
export const withValidSelectedCalendar = withValidation({
|
|
|
|
schema: schemaSelectedCalendarBodyParams,
|
2022-03-26 23:58:22 +00:00
|
|
|
type: "Zod",
|
|
|
|
mode: "body",
|
|
|
|
});
|