cal.pub0.org/lib/validations/booking-reference.ts

14 lines
429 B
TypeScript
Raw Normal View History

import { withValidation } from "next-validations";
import { _BookingReferenceModel as BookingReference } from "@calcom/prisma/zod";
export const schemaBookingReferenceBodyParams = BookingReference.omit({ id: true });
export const schemaBookingReferencePublic = BookingReference.omit({});
export const withValidBookingReference = withValidation({
schema: schemaBookingReferenceBodyParams,
type: "Zod",
mode: "body",
});