cal.pub0.org/lib/validations/membership.ts

14 lines
371 B
TypeScript

import { withValidation } from "next-validations";
import { _MembershipModel as Membership } from "@calcom/prisma/zod";
export const schemaMembershipBodyParams = Membership.omit({});
export const schemaMembershipPublic = Membership.omit({});
export const withValidMembership = withValidation({
schema: schemaMembershipBodyParams,
type: "Zod",
mode: "body",
});