2022-04-02 01:46:24 +00:00
|
|
|
import { z } from "zod";
|
2022-03-26 23:58:22 +00:00
|
|
|
|
2022-03-30 15:37:51 +00:00
|
|
|
import { _MembershipModel as Membership } from "@calcom/prisma/zod";
|
|
|
|
|
2022-04-02 01:46:24 +00:00
|
|
|
export const schemaMembershipBaseBodyParams = Membership.omit({});
|
|
|
|
const schemaMembershipRequiredParams = z.object({
|
|
|
|
teamId: z.number(),
|
|
|
|
});
|
|
|
|
|
|
|
|
export const schemaMembershipBodyParams = schemaMembershipBaseBodyParams.merge(
|
|
|
|
schemaMembershipRequiredParams
|
|
|
|
);
|
2022-03-30 15:37:51 +00:00
|
|
|
|
|
|
|
export const schemaMembershipPublic = Membership.omit({});
|