@arbiwallet/contracts 1.0.260 → 1.0.261
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 +5 -0
- package/gen/crm_manager.ts +14 -0
- package/package.json +1 -1
- package/proto/crm_auth.proto +13 -8
- package/proto/crm_manager.proto +40 -26
package/gen/crm_auth.ts
CHANGED
|
@@ -68,14 +68,19 @@ export interface CrmManagerResponse {
|
|
|
68
68
|
username: string;
|
|
69
69
|
firstName: string;
|
|
70
70
|
lastName: string;
|
|
71
|
+
fullName: string;
|
|
71
72
|
displayName: string;
|
|
72
73
|
avatarUrl: string;
|
|
73
74
|
status: CrmManagerStatus;
|
|
74
75
|
createdAtUnixMs: number;
|
|
75
76
|
roles: string[];
|
|
77
|
+
role: string;
|
|
76
78
|
permissions: string[];
|
|
79
|
+
permissionsVersion: number;
|
|
77
80
|
isSuperAdmin: boolean;
|
|
81
|
+
canCrossOffice: boolean;
|
|
78
82
|
sectionPermissions: SectionPermission[];
|
|
83
|
+
officeIds: string[];
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
export interface CrmAuthSessionResponse {
|
package/gen/crm_manager.ts
CHANGED
|
@@ -29,13 +29,19 @@ export interface ManagerRecord {
|
|
|
29
29
|
username: string;
|
|
30
30
|
firstName: string;
|
|
31
31
|
lastName: string;
|
|
32
|
+
fullName: string;
|
|
32
33
|
displayName: string;
|
|
33
34
|
avatarUrl: string;
|
|
34
35
|
status: CrmManagerRecordStatus;
|
|
36
|
+
isActive: boolean;
|
|
35
37
|
createdAtUnixMs: number;
|
|
38
|
+
updatedAtUnixMs: number;
|
|
36
39
|
roles: string[];
|
|
40
|
+
role: string;
|
|
37
41
|
permissions: string[];
|
|
42
|
+
permissionsVersion: number;
|
|
38
43
|
isSuperAdmin: boolean;
|
|
44
|
+
canCrossOffice: boolean;
|
|
39
45
|
sectionPermissions: SectionPermission[];
|
|
40
46
|
officeIds: string[];
|
|
41
47
|
}
|
|
@@ -51,6 +57,7 @@ export interface ListManagersRequest {
|
|
|
51
57
|
page: number;
|
|
52
58
|
limit: number;
|
|
53
59
|
search: string;
|
|
60
|
+
isActive?: boolean | undefined;
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
export interface ListManagersResponse {
|
|
@@ -97,10 +104,13 @@ export interface CreateManagerRequest {
|
|
|
97
104
|
username: string;
|
|
98
105
|
firstName: string;
|
|
99
106
|
lastName: string;
|
|
107
|
+
fullName: string;
|
|
100
108
|
displayName: string;
|
|
101
109
|
avatarUrl: string;
|
|
102
110
|
status: CrmManagerRecordStatus;
|
|
111
|
+
canCrossOffice: boolean;
|
|
103
112
|
roleNames: string[];
|
|
113
|
+
customPermissions: string[];
|
|
104
114
|
sectionPermissions: SectionPermission[];
|
|
105
115
|
officeIds: string[];
|
|
106
116
|
password: string;
|
|
@@ -118,11 +128,15 @@ export interface UpdateManagerRequest {
|
|
|
118
128
|
username: string;
|
|
119
129
|
firstName: string;
|
|
120
130
|
lastName: string;
|
|
131
|
+
fullName: string;
|
|
121
132
|
displayName: string;
|
|
122
133
|
avatarUrl: string;
|
|
123
134
|
status: CrmManagerRecordStatus;
|
|
135
|
+
canCrossOffice?: boolean | undefined;
|
|
124
136
|
replaceRoles: boolean;
|
|
125
137
|
roleNames: string[];
|
|
138
|
+
replaceCustomPermissions: boolean;
|
|
139
|
+
customPermissions: string[];
|
|
126
140
|
sectionPermissions: SectionPermission[];
|
|
127
141
|
replaceSectionPermissions: boolean;
|
|
128
142
|
replaceOfficeIds: boolean;
|
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.261",
|
|
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
|
@@ -66,14 +66,19 @@ message CrmManagerResponse {
|
|
|
66
66
|
string username = 3;
|
|
67
67
|
string first_name = 4;
|
|
68
68
|
string last_name = 5;
|
|
69
|
-
string
|
|
70
|
-
string
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
repeated string
|
|
75
|
-
|
|
76
|
-
repeated
|
|
69
|
+
string full_name = 6;
|
|
70
|
+
string display_name = 7;
|
|
71
|
+
string avatar_url = 8;
|
|
72
|
+
CrmManagerStatus status = 9;
|
|
73
|
+
int64 created_at_unix_ms = 10;
|
|
74
|
+
repeated string roles = 11;
|
|
75
|
+
string role = 12;
|
|
76
|
+
repeated string permissions = 13;
|
|
77
|
+
int32 permissions_version = 14;
|
|
78
|
+
bool is_super_admin = 15;
|
|
79
|
+
bool can_cross_office = 16;
|
|
80
|
+
repeated SectionPermission section_permissions = 17;
|
|
81
|
+
repeated string office_ids = 18;
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
message CrmAuthSessionResponse {
|
package/proto/crm_manager.proto
CHANGED
|
@@ -37,15 +37,21 @@ message ManagerRecord {
|
|
|
37
37
|
string username = 3;
|
|
38
38
|
string first_name = 4;
|
|
39
39
|
string last_name = 5;
|
|
40
|
-
string
|
|
41
|
-
string
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
repeated
|
|
48
|
-
|
|
40
|
+
string full_name = 6;
|
|
41
|
+
string display_name = 7;
|
|
42
|
+
string avatar_url = 8;
|
|
43
|
+
CrmManagerRecordStatus status = 9;
|
|
44
|
+
bool is_active = 10;
|
|
45
|
+
int64 created_at_unix_ms = 11;
|
|
46
|
+
int64 updated_at_unix_ms = 12;
|
|
47
|
+
repeated string roles = 13;
|
|
48
|
+
string role = 14;
|
|
49
|
+
repeated string permissions = 15;
|
|
50
|
+
int32 permissions_version = 16;
|
|
51
|
+
bool is_super_admin = 17;
|
|
52
|
+
bool can_cross_office = 18;
|
|
53
|
+
repeated SectionPermission section_permissions = 19;
|
|
54
|
+
repeated string office_ids = 20;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
message RoleRecord {
|
|
@@ -59,6 +65,7 @@ message ListManagersRequest {
|
|
|
59
65
|
int32 page = 1;
|
|
60
66
|
int32 limit = 2;
|
|
61
67
|
string search = 3;
|
|
68
|
+
optional bool is_active = 4;
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
message ListManagersResponse {
|
|
@@ -105,13 +112,16 @@ message CreateManagerRequest {
|
|
|
105
112
|
string username = 2;
|
|
106
113
|
string first_name = 3;
|
|
107
114
|
string last_name = 4;
|
|
108
|
-
string
|
|
109
|
-
string
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
repeated string
|
|
114
|
-
string
|
|
115
|
+
string full_name = 5;
|
|
116
|
+
string display_name = 6;
|
|
117
|
+
string avatar_url = 7;
|
|
118
|
+
CrmManagerRecordStatus status = 8;
|
|
119
|
+
bool can_cross_office = 9;
|
|
120
|
+
repeated string role_names = 10;
|
|
121
|
+
repeated string custom_permissions = 11;
|
|
122
|
+
repeated SectionPermission section_permissions = 12;
|
|
123
|
+
repeated string office_ids = 13;
|
|
124
|
+
string password = 14;
|
|
115
125
|
}
|
|
116
126
|
|
|
117
127
|
message CreateManagerResponse {
|
|
@@ -126,16 +136,20 @@ message UpdateManagerRequest {
|
|
|
126
136
|
string username = 3;
|
|
127
137
|
string first_name = 4;
|
|
128
138
|
string last_name = 5;
|
|
129
|
-
string
|
|
130
|
-
string
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
bool
|
|
137
|
-
repeated string
|
|
138
|
-
|
|
139
|
+
string full_name = 6;
|
|
140
|
+
string display_name = 7;
|
|
141
|
+
string avatar_url = 8;
|
|
142
|
+
CrmManagerRecordStatus status = 9;
|
|
143
|
+
optional bool can_cross_office = 10;
|
|
144
|
+
bool replace_roles = 11;
|
|
145
|
+
repeated string role_names = 12;
|
|
146
|
+
bool replace_custom_permissions = 13;
|
|
147
|
+
repeated string custom_permissions = 14;
|
|
148
|
+
repeated SectionPermission section_permissions = 15;
|
|
149
|
+
bool replace_section_permissions = 16;
|
|
150
|
+
bool replace_office_ids = 17;
|
|
151
|
+
repeated string office_ids = 18;
|
|
152
|
+
string password = 19;
|
|
139
153
|
}
|
|
140
154
|
|
|
141
155
|
message UpdateManagerResponse {
|