fenextjs-interface
Advanced tools
Comparing version
import { PhoneProps } from "@/Phone"; | ||
export type UserStatusProps = "verify" | "no-verify" | "delete"; | ||
export declare enum UserTypeVerifyProps { | ||
email = 0, | ||
phone = 1, | ||
company = 2 | ||
} | ||
export declare enum UserStatusProps { | ||
VERIFY = 0, | ||
NOVERIFY = 1 | ||
} | ||
export declare enum UserRoleProps { | ||
ADMIN = 0, | ||
CUSTOMER = 1 | ||
} | ||
export interface UserProps { | ||
status: UserStatusProps; | ||
id: string; | ||
token: string; | ||
name: string; | ||
token: string; | ||
img: string; | ||
role: UserRoleProps; | ||
phone?: PhoneProps; | ||
email: string; | ||
status: UserStatusProps; | ||
stripe_id?: string; | ||
dateCreate: Date; | ||
verify?: { | ||
[id in UserTypeVerifyProps]: UserStatusProps; | ||
}; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UserRoleProps = exports.UserStatusProps = exports.UserTypeVerifyProps = void 0; | ||
var UserTypeVerifyProps; | ||
(function (UserTypeVerifyProps) { | ||
UserTypeVerifyProps[UserTypeVerifyProps["email"] = 0] = "email"; | ||
UserTypeVerifyProps[UserTypeVerifyProps["phone"] = 1] = "phone"; | ||
UserTypeVerifyProps[UserTypeVerifyProps["company"] = 2] = "company"; | ||
})(UserTypeVerifyProps = exports.UserTypeVerifyProps || (exports.UserTypeVerifyProps = {})); | ||
var UserStatusProps; | ||
(function (UserStatusProps) { | ||
UserStatusProps[UserStatusProps["VERIFY"] = 0] = "VERIFY"; | ||
UserStatusProps[UserStatusProps["NOVERIFY"] = 1] = "NOVERIFY"; | ||
})(UserStatusProps = exports.UserStatusProps || (exports.UserStatusProps = {})); | ||
var UserRoleProps; | ||
(function (UserRoleProps) { | ||
UserRoleProps[UserRoleProps["ADMIN"] = 0] = "ADMIN"; | ||
UserRoleProps[UserRoleProps["CUSTOMER"] = 1] = "CUSTOMER"; | ||
})(UserRoleProps = exports.UserRoleProps || (exports.UserRoleProps = {})); | ||
//# sourceMappingURL=index.js.map |
import { PhoneProps } from "@/Phone"; | ||
export type UserStatusProps = "verify" | "no-verify" | "delete"; | ||
export declare enum UserTypeVerifyProps { | ||
email = 0, | ||
phone = 1, | ||
company = 2 | ||
} | ||
export declare enum UserStatusProps { | ||
VERIFY = 0, | ||
NOVERIFY = 1 | ||
} | ||
export declare enum UserRoleProps { | ||
ADMIN = 0, | ||
CUSTOMER = 1 | ||
} | ||
export interface UserProps { | ||
status: UserStatusProps; | ||
id: string; | ||
token: string; | ||
name: string; | ||
token: string; | ||
img: string; | ||
role: UserRoleProps; | ||
phone?: PhoneProps; | ||
email: string; | ||
status: UserStatusProps; | ||
stripe_id?: string; | ||
dateCreate: Date; | ||
verify?: { | ||
[id in UserTypeVerifyProps]: UserStatusProps; | ||
}; | ||
} |
@@ -1,2 +0,17 @@ | ||
export {}; | ||
export var UserTypeVerifyProps; | ||
(function (UserTypeVerifyProps) { | ||
UserTypeVerifyProps[UserTypeVerifyProps["email"] = 0] = "email"; | ||
UserTypeVerifyProps[UserTypeVerifyProps["phone"] = 1] = "phone"; | ||
UserTypeVerifyProps[UserTypeVerifyProps["company"] = 2] = "company"; | ||
})(UserTypeVerifyProps || (UserTypeVerifyProps = {})); | ||
export var UserStatusProps; | ||
(function (UserStatusProps) { | ||
UserStatusProps[UserStatusProps["VERIFY"] = 0] = "VERIFY"; | ||
UserStatusProps[UserStatusProps["NOVERIFY"] = 1] = "NOVERIFY"; | ||
})(UserStatusProps || (UserStatusProps = {})); | ||
export var UserRoleProps; | ||
(function (UserRoleProps) { | ||
UserRoleProps[UserRoleProps["ADMIN"] = 0] = "ADMIN"; | ||
UserRoleProps[UserRoleProps["CUSTOMER"] = 1] = "CUSTOMER"; | ||
})(UserRoleProps || (UserRoleProps = {})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "fenextjs-interface", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6663
84.83%115
144.68%