@funpay-pilot/contracts 0.1.12 → 0.1.13
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/funpay.ts +17 -1
- package/package.json +1 -1
- package/proto/funpay.proto +7 -0
package/gen/funpay.ts
CHANGED
|
@@ -35,6 +35,12 @@ export interface GetAccountRequest {
|
|
|
35
35
|
id: string;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export interface SetAccountStatusRequest {
|
|
39
|
+
userId: string;
|
|
40
|
+
id: string;
|
|
41
|
+
status: Status;
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
export interface DeleteAccountRequest {
|
|
39
45
|
userId: string;
|
|
40
46
|
id: string;
|
|
@@ -70,6 +76,8 @@ export interface FunpayServiceClient {
|
|
|
70
76
|
|
|
71
77
|
getAccount(request: GetAccountRequest): Observable<Account>;
|
|
72
78
|
|
|
79
|
+
setAccountStatus(request: SetAccountStatusRequest): Observable<Account>;
|
|
80
|
+
|
|
73
81
|
deleteAccount(request: DeleteAccountRequest): Observable<DeleteAccountResponse>;
|
|
74
82
|
}
|
|
75
83
|
|
|
@@ -82,6 +90,8 @@ export interface FunpayServiceController {
|
|
|
82
90
|
|
|
83
91
|
getAccount(request: GetAccountRequest): Promise<Account> | Observable<Account> | Account;
|
|
84
92
|
|
|
93
|
+
setAccountStatus(request: SetAccountStatusRequest): Promise<Account> | Observable<Account> | Account;
|
|
94
|
+
|
|
85
95
|
deleteAccount(
|
|
86
96
|
request: DeleteAccountRequest,
|
|
87
97
|
): Promise<DeleteAccountResponse> | Observable<DeleteAccountResponse> | DeleteAccountResponse;
|
|
@@ -89,7 +99,13 @@ export interface FunpayServiceController {
|
|
|
89
99
|
|
|
90
100
|
export function FunpayServiceControllerMethods() {
|
|
91
101
|
return function (constructor: Function) {
|
|
92
|
-
const grpcMethods: string[] = [
|
|
102
|
+
const grpcMethods: string[] = [
|
|
103
|
+
"createAccount",
|
|
104
|
+
"getAccountsList",
|
|
105
|
+
"getAccount",
|
|
106
|
+
"setAccountStatus",
|
|
107
|
+
"deleteAccount",
|
|
108
|
+
];
|
|
93
109
|
for (const method of grpcMethods) {
|
|
94
110
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
95
111
|
GrpcMethod("FunpayService", method)(constructor.prototype[method], method, descriptor);
|
package/package.json
CHANGED
package/proto/funpay.proto
CHANGED
|
@@ -8,6 +8,7 @@ service FunpayService {
|
|
|
8
8
|
rpc CreateAccount(CreateAccountRequest) returns (Account);
|
|
9
9
|
rpc GetAccountsList(GetAccountsListRequest) returns (GetAccountsListResponse);
|
|
10
10
|
rpc GetAccount(GetAccountRequest) returns (Account);
|
|
11
|
+
rpc SetAccountStatus(SetAccountStatusRequest) returns (Account);
|
|
11
12
|
rpc DeleteAccount(DeleteAccountRequest) returns (DeleteAccountResponse);
|
|
12
13
|
}
|
|
13
14
|
|
|
@@ -29,6 +30,12 @@ message GetAccountRequest {
|
|
|
29
30
|
string id = 2;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
message SetAccountStatusRequest {
|
|
34
|
+
string user_id = 1;
|
|
35
|
+
string id = 2;
|
|
36
|
+
Status status = 3;
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
message DeleteAccountRequest {
|
|
33
40
|
string user_id = 1;
|
|
34
41
|
string id = 2;
|