alliance-shared-types 1.0.5 → 1.0.6
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.
- package/dist/types/auth.types.d.ts +7 -5
- package/dist/types/auth.types.js +15 -15
- package/package.json +1 -1
|
@@ -19,36 +19,38 @@ export interface JwtPayload {
|
|
|
19
19
|
email: string;
|
|
20
20
|
role: string;
|
|
21
21
|
agentId: string;
|
|
22
|
+
firstName: string;
|
|
23
|
+
lastName: string;
|
|
22
24
|
}
|
|
23
25
|
export interface TokenData {
|
|
24
26
|
token: string;
|
|
25
27
|
expiresIn: string | number;
|
|
26
28
|
}
|
|
27
|
-
export type UserRole =
|
|
29
|
+
export type UserRole = "admin" | "staff" | "agent_user";
|
|
28
30
|
export declare const USER_ROLES: {
|
|
29
31
|
ADMIN: UserRole;
|
|
30
32
|
STAFF: UserRole;
|
|
31
33
|
AGENT_USER: UserRole;
|
|
32
34
|
};
|
|
33
|
-
export type UserStatus =
|
|
35
|
+
export type UserStatus = "active" | "inactive" | "suspended";
|
|
34
36
|
export declare const USER_STATUSES: {
|
|
35
37
|
ACTIVE: UserStatus;
|
|
36
38
|
INACTIVE: UserStatus;
|
|
37
39
|
SUSPENDED: UserStatus;
|
|
38
40
|
};
|
|
39
|
-
export type AgentType =
|
|
41
|
+
export type AgentType = "admin" | "distributor" | "retailer";
|
|
40
42
|
export declare const AGENT_TYPES: {
|
|
41
43
|
ADMIN: AgentType;
|
|
42
44
|
DISTRIBUTOR: AgentType;
|
|
43
45
|
RETAILER: AgentType;
|
|
44
46
|
};
|
|
45
|
-
export type KycStatus =
|
|
47
|
+
export type KycStatus = "pending" | "verified" | "rejected";
|
|
46
48
|
export declare const KYC_STATUSES: {
|
|
47
49
|
PENDING: KycStatus;
|
|
48
50
|
VERIFIED: KycStatus;
|
|
49
51
|
REJECTED: KycStatus;
|
|
50
52
|
};
|
|
51
|
-
export type AgentStatus =
|
|
53
|
+
export type AgentStatus = "active" | "inactive" | "suspended";
|
|
52
54
|
export declare const AGENT_STATUSES: {
|
|
53
55
|
ACTIVE: AgentStatus;
|
|
54
56
|
INACTIVE: AgentStatus;
|
package/dist/types/auth.types.js
CHANGED
|
@@ -3,31 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AGENT_STATUSES = exports.KYC_STATUSES = exports.AGENT_TYPES = exports.USER_STATUSES = exports.USER_ROLES = void 0;
|
|
4
4
|
// Constants for user roles
|
|
5
5
|
exports.USER_ROLES = {
|
|
6
|
-
ADMIN:
|
|
7
|
-
STAFF:
|
|
8
|
-
AGENT_USER:
|
|
6
|
+
ADMIN: "admin",
|
|
7
|
+
STAFF: "staff",
|
|
8
|
+
AGENT_USER: "agent_user",
|
|
9
9
|
};
|
|
10
10
|
// Constants for user statuses
|
|
11
11
|
exports.USER_STATUSES = {
|
|
12
|
-
ACTIVE:
|
|
13
|
-
INACTIVE:
|
|
14
|
-
SUSPENDED:
|
|
12
|
+
ACTIVE: "active",
|
|
13
|
+
INACTIVE: "inactive",
|
|
14
|
+
SUSPENDED: "suspended",
|
|
15
15
|
};
|
|
16
16
|
// Constants for agent types
|
|
17
17
|
exports.AGENT_TYPES = {
|
|
18
|
-
ADMIN:
|
|
19
|
-
DISTRIBUTOR:
|
|
20
|
-
RETAILER:
|
|
18
|
+
ADMIN: "admin",
|
|
19
|
+
DISTRIBUTOR: "distributor",
|
|
20
|
+
RETAILER: "retailer",
|
|
21
21
|
};
|
|
22
22
|
// Constants for KYC statuses
|
|
23
23
|
exports.KYC_STATUSES = {
|
|
24
|
-
PENDING:
|
|
25
|
-
VERIFIED:
|
|
26
|
-
REJECTED:
|
|
24
|
+
PENDING: "pending",
|
|
25
|
+
VERIFIED: "verified",
|
|
26
|
+
REJECTED: "rejected",
|
|
27
27
|
};
|
|
28
28
|
// Constants for agent statuses
|
|
29
29
|
exports.AGENT_STATUSES = {
|
|
30
|
-
ACTIVE:
|
|
31
|
-
INACTIVE:
|
|
32
|
-
SUSPENDED:
|
|
30
|
+
ACTIVE: "active",
|
|
31
|
+
INACTIVE: "inactive",
|
|
32
|
+
SUSPENDED: "suspended",
|
|
33
33
|
};
|