Files
calendar/lib/validations/eventType.ts
T

14 lines
373 B
TypeScript

import { withValidation } from "next-validations";
import { _EventTypeModel as EventType } from "@calcom/prisma/zod";
export const schemaEventTypeBodyParams = EventType.omit({ id: true });
export const schemaEventTypePublic = EventType.omit({});
export const withValidEventType = withValidation({
schema: schemaEventTypeBodyParams,
type: "Zod",
mode: "body",
});