@arbiwallet/contracts 1.0.221 → 1.0.223
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_gate_pay.ts +19 -1
- package/gen/crm_manager.ts +5 -0
- package/package.json +1 -1
- package/proto/crm_gate_pay.proto +8 -0
- package/proto/crm_manager.proto +5 -0
package/gen/crm_gate_pay.ts
CHANGED
|
@@ -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[] = [
|
|
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);
|
package/gen/crm_manager.ts
CHANGED
|
@@ -207,6 +207,11 @@ export interface GetManagerForServiceResponse {
|
|
|
207
207
|
record?: GetManagerForServiceResponseRecord | undefined;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
export interface JsonResponse {
|
|
211
|
+
statusCode: number;
|
|
212
|
+
json: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
210
215
|
export const CRM_MANAGER_PACKAGE_NAME = "crm_manager";
|
|
211
216
|
|
|
212
217
|
export interface CrmManagerAdminServiceClient {
|
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.223",
|
|
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_gate_pay.proto
CHANGED
|
@@ -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;
|