@arbiwallet/contracts 1.0.222 → 1.0.224

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 CHANGED
@@ -22,6 +22,7 @@ export interface CrmLoginRequest {
22
22
  otp: string;
23
23
  userAgent: string;
24
24
  ipAddress: string;
25
+ password: string;
25
26
  }
26
27
 
27
28
  export interface CrmRefreshSessionRequest {
@@ -53,6 +53,13 @@ export interface GetSumsRequest {
53
53
  dateEnd: string;
54
54
  }
55
55
 
56
+ export interface CheckAddressRiskRequest {
57
+ address: string;
58
+ blockchain: string;
59
+ managerId: string;
60
+ managerName: string;
61
+ }
62
+
56
63
  export interface JsonResponse {
57
64
  statusCode: number;
58
65
  json: string;
@@ -70,6 +77,8 @@ export interface CrmGatePayServiceClient {
70
77
  getRows(request: GetRowsRequest): Observable<JsonResponse>;
71
78
 
72
79
  getSums(request: GetSumsRequest): Observable<JsonResponse>;
80
+
81
+ checkAddressRisk(request: CheckAddressRiskRequest): Observable<JsonResponse>;
73
82
  }
74
83
 
75
84
  export interface CrmGatePayServiceController {
@@ -84,11 +93,20 @@ export interface CrmGatePayServiceController {
84
93
  getRows(request: GetRowsRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
85
94
 
86
95
  getSums(request: GetSumsRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
96
+
97
+ checkAddressRisk(request: CheckAddressRiskRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
87
98
  }
88
99
 
89
100
  export function CrmGatePayServiceControllerMethods() {
90
101
  return function (constructor: Function) {
91
- const grpcMethods: string[] = ["createPayin", "createPayout", "completePartiallyPaidPayin", "getRows", "getSums"];
102
+ const grpcMethods: string[] = [
103
+ "createPayin",
104
+ "createPayout",
105
+ "completePartiallyPaidPayin",
106
+ "getRows",
107
+ "getSums",
108
+ "checkAddressRisk",
109
+ ];
92
110
  for (const method of grpcMethods) {
93
111
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
94
112
  GrpcMethod("CrmGatePayService", method)(constructor.prototype[method], method, descriptor);
@@ -81,6 +81,7 @@ export interface CreateManagerRequest {
81
81
  roleNames: string[];
82
82
  sectionPermissions: SectionPermission[];
83
83
  officeIds: string[];
84
+ password: string;
84
85
  }
85
86
 
86
87
  export interface CreateManagerResponse {
@@ -104,6 +105,7 @@ export interface UpdateManagerRequest {
104
105
  replaceSectionPermissions: boolean;
105
106
  replaceOfficeIds: boolean;
106
107
  officeIds: string[];
108
+ password: string;
107
109
  }
108
110
 
109
111
  export interface UpdateManagerResponse {
@@ -207,13 +209,6 @@ export interface GetManagerForServiceResponse {
207
209
  record?: GetManagerForServiceResponseRecord | undefined;
208
210
  }
209
211
 
210
- export interface CheckAddressRiskRequest {
211
- address: string;
212
- blockchain: string;
213
- managerId: string;
214
- managerName: string;
215
- }
216
-
217
212
  export interface JsonResponse {
218
213
  statusCode: number;
219
214
  json: string;
@@ -241,8 +236,6 @@ export interface CrmManagerAdminServiceClient {
241
236
  updateOffice(request: UpdateOfficeRequest): Observable<UpdateOfficeResponse>;
242
237
 
243
238
  deactivateOffice(request: DeactivateOfficeRequest): Observable<DeactivateOfficeResponse>;
244
-
245
- checkAddressRisk(request: CheckAddressRiskRequest): Observable<JsonResponse>;
246
239
  }
247
240
 
248
241
  export interface CrmManagerAdminServiceController {
@@ -283,8 +276,6 @@ export interface CrmManagerAdminServiceController {
283
276
  deactivateOffice(
284
277
  request: DeactivateOfficeRequest,
285
278
  ): Promise<DeactivateOfficeResponse> | Observable<DeactivateOfficeResponse> | DeactivateOfficeResponse;
286
-
287
- checkAddressRisk(request: CheckAddressRiskRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
288
279
  }
289
280
 
290
281
  export function CrmManagerAdminServiceControllerMethods() {
@@ -300,7 +291,6 @@ export function CrmManagerAdminServiceControllerMethods() {
300
291
  "createOffice",
301
292
  "updateOffice",
302
293
  "deactivateOffice",
303
- "checkAddressRisk",
304
294
  ];
305
295
  for (const method of grpcMethods) {
306
296
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
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.222",
4
+ "version": "1.0.224",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -20,6 +20,7 @@ message CrmLoginRequest {
20
20
  string otp = 2;
21
21
  string user_agent = 3;
22
22
  string ip_address = 4;
23
+ string password = 5;
23
24
  }
24
25
 
25
26
  message CrmRefreshSessionRequest {
@@ -8,6 +8,7 @@ service CrmGatePayService {
8
8
  rpc CompletePartiallyPaidPayin(CompletePartiallyPaidPayinRequest) returns (JsonResponse);
9
9
  rpc GetRows(GetRowsRequest) returns (JsonResponse);
10
10
  rpc GetSums(GetSumsRequest) returns (JsonResponse);
11
+ rpc CheckAddressRisk(CheckAddressRiskRequest) returns (JsonResponse);
11
12
  }
12
13
 
13
14
  message CreatePayinRequest {
@@ -53,6 +54,13 @@ message GetSumsRequest {
53
54
  string date_end = 5;
54
55
  }
55
56
 
57
+ message CheckAddressRiskRequest {
58
+ string address = 1;
59
+ string blockchain = 2;
60
+ string manager_id = 3;
61
+ string manager_name = 4;
62
+ }
63
+
56
64
  message JsonResponse {
57
65
  int32 status_code = 1;
58
66
  string json = 2;
@@ -12,7 +12,6 @@ service CrmManagerAdminService {
12
12
  rpc CreateOffice (CreateOfficeRequest) returns (CreateOfficeResponse);
13
13
  rpc UpdateOffice (UpdateOfficeRequest) returns (UpdateOfficeResponse);
14
14
  rpc DeactivateOffice (DeactivateOfficeRequest) returns (DeactivateOfficeResponse);
15
- rpc CheckAddressRisk(CheckAddressRiskRequest) returns (JsonResponse);
16
15
  }
17
16
 
18
17
  enum CrmManagerRecordStatus {
@@ -85,6 +84,7 @@ message CreateManagerRequest {
85
84
  repeated string role_names = 8;
86
85
  repeated SectionPermission section_permissions = 9;
87
86
  repeated string office_ids = 10;
87
+ string password = 11;
88
88
  }
89
89
 
90
90
  message CreateManagerResponse {
@@ -108,6 +108,7 @@ message UpdateManagerRequest {
108
108
  bool replace_section_permissions = 12;
109
109
  bool replace_office_ids = 13;
110
110
  repeated string office_ids = 14;
111
+ string password = 15;
111
112
  }
112
113
 
113
114
  message UpdateManagerResponse {
@@ -210,13 +211,6 @@ message GetManagerForServiceResponse {
210
211
  optional GetManagerForServiceResponseRecord record = 2;
211
212
  }
212
213
 
213
- message CheckAddressRiskRequest {
214
- string address = 1;
215
- string blockchain = 2;
216
- string manager_id = 3;
217
- string manager_name = 4;
218
- }
219
-
220
214
  message JsonResponse {
221
215
  int32 status_code = 1;
222
216
  string json = 2;