mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
feat: update user functionality
This commit is contained in:
13
packages/trpc/server/admin-router/schema.ts
Normal file
13
packages/trpc/server/admin-router/schema.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { Role } from '@prisma/client';
|
||||
import z from 'zod';
|
||||
|
||||
export const ZUpdateProfileMutationByAdminSchema = z.object({
|
||||
id: z.number().min(1),
|
||||
name: z.string(),
|
||||
email: z.string().email(),
|
||||
roles: z.array(z.nativeEnum(Role)),
|
||||
});
|
||||
|
||||
export type TUpdateProfileMutationByAdminSchema = z.infer<
|
||||
typeof ZUpdateProfileMutationByAdminSchema
|
||||
>;
|
||||
Reference in New Issue
Block a user