@arbiwallet/contracts 1.0.136 → 1.0.138
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 +94 -0
- package/package.json +1 -1
- package/proto/crm_gate_pay.proto +54 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.4
|
|
4
|
+
// protoc v7.34.0
|
|
5
|
+
// source: crm_gate_pay.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
|
|
11
|
+
export const protobufPackage = "crm_gate_pay";
|
|
12
|
+
|
|
13
|
+
export interface CreatePayinRequest {
|
|
14
|
+
customer: string;
|
|
15
|
+
amount: number;
|
|
16
|
+
currency: string;
|
|
17
|
+
chain: string;
|
|
18
|
+
managerId: string;
|
|
19
|
+
managerName: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface CreatePayoutRequest {
|
|
23
|
+
customer: string;
|
|
24
|
+
amount: number;
|
|
25
|
+
currency: string;
|
|
26
|
+
chain: string;
|
|
27
|
+
address: string;
|
|
28
|
+
managerId: string;
|
|
29
|
+
managerName: string;
|
|
30
|
+
memo: string;
|
|
31
|
+
feeType: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface GetRowsRequest {
|
|
35
|
+
page: number;
|
|
36
|
+
limit: number;
|
|
37
|
+
searchWord: string;
|
|
38
|
+
statuses: string[];
|
|
39
|
+
type: string;
|
|
40
|
+
dateStart: string;
|
|
41
|
+
dateEnd: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface GetSumsRequest {
|
|
45
|
+
searchWord: string;
|
|
46
|
+
statuses: string[];
|
|
47
|
+
type: string;
|
|
48
|
+
dateStart: string;
|
|
49
|
+
dateEnd: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface JsonResponse {
|
|
53
|
+
statusCode: number;
|
|
54
|
+
json: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const CRM_GATE_PAY_PACKAGE_NAME = "crm_gate_pay";
|
|
58
|
+
|
|
59
|
+
export interface CrmGatePayServiceClient {
|
|
60
|
+
createPayin(request: CreatePayinRequest): Observable<JsonResponse>;
|
|
61
|
+
|
|
62
|
+
createPayout(request: CreatePayoutRequest): Observable<JsonResponse>;
|
|
63
|
+
|
|
64
|
+
getRows(request: GetRowsRequest): Observable<JsonResponse>;
|
|
65
|
+
|
|
66
|
+
getSums(request: GetSumsRequest): Observable<JsonResponse>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface CrmGatePayServiceController {
|
|
70
|
+
createPayin(request: CreatePayinRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
|
|
71
|
+
|
|
72
|
+
createPayout(request: CreatePayoutRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
|
|
73
|
+
|
|
74
|
+
getRows(request: GetRowsRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
|
|
75
|
+
|
|
76
|
+
getSums(request: GetSumsRequest): Promise<JsonResponse> | Observable<JsonResponse> | JsonResponse;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CrmGatePayServiceControllerMethods() {
|
|
80
|
+
return function (constructor: Function) {
|
|
81
|
+
const grpcMethods: string[] = ["createPayin", "createPayout", "getRows", "getSums"];
|
|
82
|
+
for (const method of grpcMethods) {
|
|
83
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
84
|
+
GrpcMethod("CrmGatePayService", method)(constructor.prototype[method], method, descriptor);
|
|
85
|
+
}
|
|
86
|
+
const grpcStreamMethods: string[] = [];
|
|
87
|
+
for (const method of grpcStreamMethods) {
|
|
88
|
+
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
89
|
+
GrpcStreamMethod("CrmGatePayService", method)(constructor.prototype[method], method, descriptor);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export const CRM_GATE_PAY_SERVICE_NAME = "CrmGatePayService";
|
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.138",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package crm_gate_pay;
|
|
4
|
+
|
|
5
|
+
service CrmGatePayService {
|
|
6
|
+
rpc CreatePayin(CreatePayinRequest) returns (JsonResponse);
|
|
7
|
+
rpc CreatePayout(CreatePayoutRequest) returns (JsonResponse);
|
|
8
|
+
rpc GetRows(GetRowsRequest) returns (JsonResponse);
|
|
9
|
+
rpc GetSums(GetSumsRequest) returns (JsonResponse);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message CreatePayinRequest {
|
|
13
|
+
string customer = 1;
|
|
14
|
+
double amount = 2;
|
|
15
|
+
string currency = 3;
|
|
16
|
+
string chain = 4;
|
|
17
|
+
string manager_id = 5;
|
|
18
|
+
string manager_name = 6;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message CreatePayoutRequest {
|
|
22
|
+
string customer = 1;
|
|
23
|
+
double amount = 2;
|
|
24
|
+
string currency = 3;
|
|
25
|
+
string chain = 4;
|
|
26
|
+
string address = 5;
|
|
27
|
+
string manager_id = 6;
|
|
28
|
+
string manager_name = 7;
|
|
29
|
+
string memo = 8;
|
|
30
|
+
int32 fee_type = 9;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message GetRowsRequest {
|
|
34
|
+
int32 page = 1;
|
|
35
|
+
int32 limit = 2;
|
|
36
|
+
string search_word = 3;
|
|
37
|
+
repeated string statuses = 4;
|
|
38
|
+
string type = 5;
|
|
39
|
+
string date_start = 6;
|
|
40
|
+
string date_end = 7;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message GetSumsRequest {
|
|
44
|
+
string search_word = 1;
|
|
45
|
+
repeated string statuses = 2;
|
|
46
|
+
string type = 3;
|
|
47
|
+
string date_start = 4;
|
|
48
|
+
string date_end = 5;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message JsonResponse {
|
|
52
|
+
int32 status_code = 1;
|
|
53
|
+
string json = 2;
|
|
54
|
+
}
|