@chopkola/common 1.0.71 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export declare enum StatusEnum {
|
|
2
|
-
PENDING = "pending",
|
|
3
|
-
PENDING_APPROVAL = "pending_approval",
|
|
4
|
-
ACTIVE = "active",
|
|
5
|
-
INACTIVE = "inactive",
|
|
6
|
-
SUSPENDED = "suspended"
|
|
7
|
-
}
|
|
8
1
|
export declare enum OTPRequestEnum {
|
|
9
2
|
PASSWORD_RESET = "password_reset",
|
|
10
3
|
EMAIL_VERIFICATION = "email_verification"
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OTPRequestEnum =
|
|
4
|
-
var StatusEnum;
|
|
5
|
-
(function (StatusEnum) {
|
|
6
|
-
StatusEnum["PENDING"] = "pending";
|
|
7
|
-
StatusEnum["PENDING_APPROVAL"] = "pending_approval";
|
|
8
|
-
StatusEnum["ACTIVE"] = "active";
|
|
9
|
-
StatusEnum["INACTIVE"] = "inactive";
|
|
10
|
-
StatusEnum["SUSPENDED"] = "suspended";
|
|
11
|
-
})(StatusEnum = exports.StatusEnum || (exports.StatusEnum = {}));
|
|
3
|
+
exports.OTPRequestEnum = void 0;
|
|
12
4
|
var OTPRequestEnum;
|
|
13
5
|
(function (OTPRequestEnum) {
|
|
14
6
|
OTPRequestEnum["PASSWORD_RESET"] = "password_reset";
|
package/build/types/user.d.ts
CHANGED
|
@@ -64,6 +64,17 @@ export interface UserI {
|
|
|
64
64
|
created_at: Date;
|
|
65
65
|
updated_at: Date;
|
|
66
66
|
}
|
|
67
|
+
export interface AdministratorAsaUserI extends UserI {
|
|
68
|
+
role: RoleI;
|
|
69
|
+
}
|
|
70
|
+
export interface VendorAsaUserI extends UserI {
|
|
71
|
+
businesses: VendorI[];
|
|
72
|
+
role: RoleI;
|
|
73
|
+
}
|
|
74
|
+
export interface CustomerAsaUserI extends UserI {
|
|
75
|
+
dietry_preferences?: string[];
|
|
76
|
+
orders: string[];
|
|
77
|
+
}
|
|
67
78
|
export interface VendorI {
|
|
68
79
|
id?: string;
|
|
69
80
|
owner_id: string;
|