@arbiwallet/contracts 1.0.219 → 1.0.220
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_manager.ts +37 -1
- package/package.json +1 -1
- package/proto/crm_manager.proto +31 -1
package/gen/crm_manager.ts
CHANGED
|
@@ -61,6 +61,15 @@ export interface ListManagersResponse {
|
|
|
61
61
|
pages: number;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
export interface GetManagerRequest {
|
|
65
|
+
managerId: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface GetManagerResponse {
|
|
69
|
+
exist: boolean;
|
|
70
|
+
manager?: ManagerRecord | undefined;
|
|
71
|
+
}
|
|
72
|
+
|
|
64
73
|
export interface CreateManagerRequest {
|
|
65
74
|
email: string;
|
|
66
75
|
username: string;
|
|
@@ -163,7 +172,7 @@ export interface UpdateOfficeRequest {
|
|
|
163
172
|
address: string;
|
|
164
173
|
city: string;
|
|
165
174
|
country: string;
|
|
166
|
-
isActive
|
|
175
|
+
isActive?: boolean | undefined;
|
|
167
176
|
}
|
|
168
177
|
|
|
169
178
|
export interface UpdateOfficeResponse {
|
|
@@ -178,11 +187,33 @@ export interface DeactivateOfficeResponse {
|
|
|
178
187
|
success: boolean;
|
|
179
188
|
}
|
|
180
189
|
|
|
190
|
+
export interface GetManagerForServiceRequest {
|
|
191
|
+
managerId: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface GetManagerForServiceResponseRecord {
|
|
195
|
+
id: string;
|
|
196
|
+
email: string;
|
|
197
|
+
username: string;
|
|
198
|
+
firstName: string;
|
|
199
|
+
lastName: string;
|
|
200
|
+
displayName: string;
|
|
201
|
+
avatarUrl: string;
|
|
202
|
+
status: CrmManagerRecordStatus;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface GetManagerForServiceResponse {
|
|
206
|
+
exist: boolean;
|
|
207
|
+
record?: GetManagerForServiceResponseRecord | undefined;
|
|
208
|
+
}
|
|
209
|
+
|
|
181
210
|
export const CRM_MANAGER_PACKAGE_NAME = "crm_manager";
|
|
182
211
|
|
|
183
212
|
export interface CrmManagerAdminServiceClient {
|
|
184
213
|
listManagers(request: ListManagersRequest): Observable<ListManagersResponse>;
|
|
185
214
|
|
|
215
|
+
getManager(request: GetManagerRequest): Observable<GetManagerResponse>;
|
|
216
|
+
|
|
186
217
|
createManager(request: CreateManagerRequest): Observable<CreateManagerResponse>;
|
|
187
218
|
|
|
188
219
|
updateManager(request: UpdateManagerRequest): Observable<UpdateManagerResponse>;
|
|
@@ -205,6 +236,10 @@ export interface CrmManagerAdminServiceController {
|
|
|
205
236
|
request: ListManagersRequest,
|
|
206
237
|
): Promise<ListManagersResponse> | Observable<ListManagersResponse> | ListManagersResponse;
|
|
207
238
|
|
|
239
|
+
getManager(
|
|
240
|
+
request: GetManagerRequest,
|
|
241
|
+
): Promise<GetManagerResponse> | Observable<GetManagerResponse> | GetManagerResponse;
|
|
242
|
+
|
|
208
243
|
createManager(
|
|
209
244
|
request: CreateManagerRequest,
|
|
210
245
|
): Promise<CreateManagerResponse> | Observable<CreateManagerResponse> | CreateManagerResponse;
|
|
@@ -240,6 +275,7 @@ export function CrmManagerAdminServiceControllerMethods() {
|
|
|
240
275
|
return function (constructor: Function) {
|
|
241
276
|
const grpcMethods: string[] = [
|
|
242
277
|
"listManagers",
|
|
278
|
+
"getManager",
|
|
243
279
|
"createManager",
|
|
244
280
|
"updateManager",
|
|
245
281
|
"deleteManager",
|
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.220",
|
|
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_manager.proto
CHANGED
|
@@ -3,6 +3,7 @@ package crm_manager;
|
|
|
3
3
|
|
|
4
4
|
service CrmManagerAdminService {
|
|
5
5
|
rpc ListManagers (ListManagersRequest) returns (ListManagersResponse);
|
|
6
|
+
rpc GetManager (GetManagerRequest) returns (GetManagerResponse);
|
|
6
7
|
rpc CreateManager (CreateManagerRequest) returns (CreateManagerResponse);
|
|
7
8
|
rpc UpdateManager (UpdateManagerRequest) returns (UpdateManagerResponse);
|
|
8
9
|
rpc DeleteManager (DeleteManagerRequest) returns (DeleteManagerResponse);
|
|
@@ -63,6 +64,15 @@ message ListManagersResponse {
|
|
|
63
64
|
int32 pages = 5;
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
message GetManagerRequest {
|
|
68
|
+
string manager_id = 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message GetManagerResponse {
|
|
72
|
+
bool exist = 1;
|
|
73
|
+
optional ManagerRecord manager = 2;
|
|
74
|
+
}
|
|
75
|
+
|
|
66
76
|
message CreateManagerRequest {
|
|
67
77
|
string email = 1;
|
|
68
78
|
string username = 2;
|
|
@@ -164,7 +174,7 @@ message UpdateOfficeRequest {
|
|
|
164
174
|
string address = 4;
|
|
165
175
|
string city = 5;
|
|
166
176
|
string country = 6;
|
|
167
|
-
bool is_active = 7;
|
|
177
|
+
optional bool is_active = 7;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
180
|
message UpdateOfficeResponse {
|
|
@@ -178,3 +188,23 @@ message DeactivateOfficeRequest {
|
|
|
178
188
|
message DeactivateOfficeResponse {
|
|
179
189
|
bool success = 1;
|
|
180
190
|
}
|
|
191
|
+
|
|
192
|
+
message GetManagerForServiceRequest {
|
|
193
|
+
string manager_id = 1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message GetManagerForServiceResponseRecord {
|
|
197
|
+
string id = 1;
|
|
198
|
+
string email = 2;
|
|
199
|
+
string username = 3;
|
|
200
|
+
string first_name = 4;
|
|
201
|
+
string last_name = 5;
|
|
202
|
+
string display_name = 6;
|
|
203
|
+
string avatar_url = 7;
|
|
204
|
+
CrmManagerRecordStatus status = 8;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
message GetManagerForServiceResponse {
|
|
208
|
+
bool exist = 1;
|
|
209
|
+
optional GetManagerForServiceResponseRecord record = 2;
|
|
210
|
+
}
|