cal.pub0.org/packages/trpc/server/routers/viewer/organizations/updateUser.schema.ts

13 lines
333 B
TypeScript

import { z } from "zod";
export const ZUpdateUserInputSchema = z.object({
userId: z.number(),
bio: z.string().optional(),
name: z.string().optional(),
email: z.string().optional(),
role: z.enum(["ADMIN", "MEMBER"]),
timeZone: z.string(),
});
export type TUpdateUserInputSchema = z.infer<typeof ZUpdateUserInputSchema>;