mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
Co-authored-by: [email protected] <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
12 lines
392 B
TypeScript
12 lines
392 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.union([z.nativeEnum(MembershipRole), z.string()]), // Support both traditional roles and custom role IDs
|
|
});
|
|
|
|
export type TChangeMemberRoleInputSchema = z.infer<typeof ZChangeMemberRoleInputSchema>;
|