mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add either pattern
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { z } from "zod";
|
||||
|
||||
const userSchema = z.object({
|
||||
Id: z.number(),
|
||||
EmailAddress: z.string().optional(),
|
||||
Name: z.string(),
|
||||
IsRequired: z.boolean(),
|
||||
UserType: z.string(),
|
||||
IsPR: z.boolean(),
|
||||
Entity: z.string(),
|
||||
Acknowledgment: z.boolean(),
|
||||
RoleDescription: z.string().nullable(),
|
||||
RoleId: z.number(),
|
||||
});
|
||||
|
||||
const usersSchema = z.array(userSchema);
|
||||
|
||||
export type UserListItem = z.infer<typeof userSchema>
|
||||
export type UserList = z.infer<typeof usersSchema>
|
||||
Reference in New Issue
Block a user