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

14 lines
343 B
TypeScript
Raw Normal View History

import { withValidation } from "next-validations";
import { _TeamModel as Team } from "@calcom/prisma/zod";
export const schemaTeamBodyParams = Team.omit({ id: true }).partial();
export const schemaTeamPublic = Team.omit({});
export const withValidTeam = withValidation({
schema: schemaTeamBodyParams,
type: "Zod",
mode: "body",
});