2022-03-26 23:58:22 +00:00
|
|
|
import { withValidation } from "next-validations";
|
|
|
|
|
2022-03-30 15:37:51 +00:00
|
|
|
import { _MembershipModel as Membership } from "@calcom/prisma/zod";
|
|
|
|
|
|
|
|
export const schemaMembershipBodyParams = Membership.omit({});
|
|
|
|
|
|
|
|
export const schemaMembershipPublic = Membership.omit({});
|
|
|
|
|
|
|
|
export const withValidMembership = withValidation({
|
|
|
|
schema: schemaMembershipBodyParams,
|
2022-03-26 23:58:22 +00:00
|
|
|
type: "Zod",
|
|
|
|
mode: "body",
|
|
|
|
});
|