cal.pub0.org/packages/trpc/server/routers/viewer/teams/changeMemberRole.schema.ts

12 lines
315 B
TypeScript

import { z } from "zod";
import { MembershipRole } from "@calcom/prisma/enums";
export const ZChangeMemberRoleInputSchema = z.object({
teamId: z.number(),
memberId: z.number(),
role: z.nativeEnum(MembershipRole),
});
export type TChangeMemberRoleInputSchema = z.infer<typeof ZChangeMemberRoleInputSchema>;