12 lines
354 B
TypeScript
12 lines
354 B
TypeScript
import { z } from "zod";
|
|
|
|
import { _TeamModel as Team } from "@calcom/prisma/zod";
|
|
|
|
export const schemaTeamBaseBodyParams = Team.omit({ id: true }).partial();
|
|
|
|
const schemaTeamRequiredParams = z.object({});
|
|
|
|
export const schemaTeamBodyParams = schemaTeamBaseBodyParams.merge(schemaTeamRequiredParams);
|
|
|
|
export const schemaTeamReadPublic = Team.omit({});
|