Initial commit
This commit is contained in:
13
packages/api-contract/src/user.ts
Normal file
13
packages/api-contract/src/user.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const userProfileSchema = z.object({
|
||||
id: z.string(),
|
||||
fullName: z.string(),
|
||||
email: z.email().nullable(),
|
||||
role: z.string(),
|
||||
avatarUrl: z.url().nullable(),
|
||||
createdAt: z.string(),
|
||||
})
|
||||
|
||||
export type UserProfile = z.infer<typeof userProfileSchema>
|
||||
export type UserProfileResponse = UserProfile
|
||||
Reference in New Issue
Block a user