@arbiwallet/contracts 1.0.209 → 1.0.210
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/gen/crm_auth.ts +7 -0
- package/gen/crm_manager.ts +10 -0
- package/package.json +1 -1
- package/proto/crm_auth.proto +7 -0
- package/proto/crm_manager.proto +10 -0
package/gen/crm_auth.ts
CHANGED
|
@@ -55,6 +55,12 @@ export interface CrmGetMeRequest {
|
|
|
55
55
|
accessToken: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
export interface SectionPermission {
|
|
59
|
+
section: string;
|
|
60
|
+
view: boolean;
|
|
61
|
+
edit: boolean;
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
export interface CrmManagerResponse {
|
|
59
65
|
id: string;
|
|
60
66
|
email: string;
|
|
@@ -68,6 +74,7 @@ export interface CrmManagerResponse {
|
|
|
68
74
|
roles: string[];
|
|
69
75
|
permissions: string[];
|
|
70
76
|
isSuperAdmin: boolean;
|
|
77
|
+
sectionPermissions: SectionPermission[];
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
export interface CrmAuthSessionResponse {
|
package/gen/crm_manager.ts
CHANGED
|
@@ -17,6 +17,12 @@ export enum CrmManagerRecordStatus {
|
|
|
17
17
|
UNRECOGNIZED = -1,
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export interface SectionPermission {
|
|
21
|
+
section: string;
|
|
22
|
+
view: boolean;
|
|
23
|
+
edit: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
export interface ManagerRecord {
|
|
21
27
|
id: string;
|
|
22
28
|
email: string;
|
|
@@ -30,6 +36,7 @@ export interface ManagerRecord {
|
|
|
30
36
|
roles: string[];
|
|
31
37
|
permissions: string[];
|
|
32
38
|
isSuperAdmin: boolean;
|
|
39
|
+
sectionPermissions: SectionPermission[];
|
|
33
40
|
}
|
|
34
41
|
|
|
35
42
|
export interface RoleRecord {
|
|
@@ -62,6 +69,7 @@ export interface CreateManagerRequest {
|
|
|
62
69
|
avatarUrl: string;
|
|
63
70
|
status: CrmManagerRecordStatus;
|
|
64
71
|
roleNames: string[];
|
|
72
|
+
sectionPermissions: SectionPermission[];
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
export interface CreateManagerResponse {
|
|
@@ -81,6 +89,8 @@ export interface UpdateManagerRequest {
|
|
|
81
89
|
status: CrmManagerRecordStatus;
|
|
82
90
|
replaceRoles: boolean;
|
|
83
91
|
roleNames: string[];
|
|
92
|
+
sectionPermissions: SectionPermission[];
|
|
93
|
+
replaceSectionPermissions: boolean;
|
|
84
94
|
}
|
|
85
95
|
|
|
86
96
|
export interface UpdateManagerResponse {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.210",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/crm_auth.proto
CHANGED
|
@@ -53,6 +53,12 @@ message CrmGetMeRequest {
|
|
|
53
53
|
string access_token = 1;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
message SectionPermission {
|
|
57
|
+
string section = 1;
|
|
58
|
+
bool view = 2;
|
|
59
|
+
bool edit = 3;
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
message CrmManagerResponse {
|
|
57
63
|
string id = 1;
|
|
58
64
|
string email = 2;
|
|
@@ -66,6 +72,7 @@ message CrmManagerResponse {
|
|
|
66
72
|
repeated string roles = 10;
|
|
67
73
|
repeated string permissions = 11;
|
|
68
74
|
bool is_super_admin = 12;
|
|
75
|
+
repeated SectionPermission section_permissions = 13;
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
message CrmAuthSessionResponse {
|
package/proto/crm_manager.proto
CHANGED
|
@@ -15,6 +15,12 @@ enum CrmManagerRecordStatus {
|
|
|
15
15
|
CRM_MANAGER_RECORD_STATUS_DISABLED = 2;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
message SectionPermission {
|
|
19
|
+
string section = 1;
|
|
20
|
+
bool view = 2;
|
|
21
|
+
bool edit = 3;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
message ManagerRecord {
|
|
19
25
|
string id = 1;
|
|
20
26
|
string email = 2;
|
|
@@ -28,6 +34,7 @@ message ManagerRecord {
|
|
|
28
34
|
repeated string roles = 10;
|
|
29
35
|
repeated string permissions = 11;
|
|
30
36
|
bool is_super_admin = 12;
|
|
37
|
+
repeated SectionPermission section_permissions = 13;
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
message RoleRecord {
|
|
@@ -60,6 +67,7 @@ message CreateManagerRequest {
|
|
|
60
67
|
string avatar_url = 6;
|
|
61
68
|
CrmManagerRecordStatus status = 7;
|
|
62
69
|
repeated string role_names = 8;
|
|
70
|
+
repeated SectionPermission section_permissions = 9;
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
message CreateManagerResponse {
|
|
@@ -79,6 +87,8 @@ message UpdateManagerRequest {
|
|
|
79
87
|
CrmManagerRecordStatus status = 8;
|
|
80
88
|
bool replace_roles = 9;
|
|
81
89
|
repeated string role_names = 10;
|
|
90
|
+
repeated SectionPermission section_permissions = 11;
|
|
91
|
+
bool replace_section_permissions = 12;
|
|
82
92
|
}
|
|
83
93
|
|
|
84
94
|
message UpdateManagerResponse {
|