2022-03-26 23:58:22 +00:00
|
|
|
import { withValidation } from "next-validations";
|
|
|
|
|
2022-03-30 15:37:51 +00:00
|
|
|
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,
|
2022-03-26 23:58:22 +00:00
|
|
|
type: "Zod",
|
|
|
|
mode: "body",
|
|
|
|
});
|