UNPKG

fenextjs-interface

Version:
34 lines (33 loc) 741 B
import { ImgDataProps } from "../Img"; import { PhoneProps } from "../Phone"; export declare enum UserTypeVerifyProps { email = 0, phone = 1, company = 2 } export declare enum UserStatusProps { VERIFY = "VERIFY", NOVERIFY = "NOVERIFY", BAN = "BAN", PENDING = "PENDING" } export declare enum UserRoleProps { ADMIN = "ADMIN", CUSTOMER = "CUSTOMER", BACKOFFICE = "BACKOFFICE" } export interface UserProps { status: UserStatusProps; id: string; token: string; name: string; img: ImgDataProps; role: UserRoleProps; phone?: PhoneProps; email: string; stripe_id?: string; dateCreate: Date; verify?: { [id in UserTypeVerifyProps]: UserStatusProps; }; }