@funpay-pilot/contracts 0.1.77 → 0.1.79
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/core.ts +17 -0
- package/package.json +1 -1
- package/proto/core.proto +11 -0
package/gen/core.ts
CHANGED
|
@@ -63,6 +63,16 @@ export interface Account {
|
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export interface ChangeAccountStatusRequest {
|
|
67
|
+
id: string;
|
|
68
|
+
userId: string;
|
|
69
|
+
status: Status;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface ChangeAccountStatusResponse {
|
|
73
|
+
ok: boolean;
|
|
74
|
+
}
|
|
75
|
+
|
|
66
76
|
export const CORE_V1_PACKAGE_NAME = "core.v1";
|
|
67
77
|
|
|
68
78
|
export interface CoreServiceClient {
|
|
@@ -75,6 +85,8 @@ export interface CoreServiceClient {
|
|
|
75
85
|
setAccountStatus(request: SetAccountStatusRequest): Observable<Account>;
|
|
76
86
|
|
|
77
87
|
deleteAccount(request: DeleteAccountRequest): Observable<DeleteAccountResponse>;
|
|
88
|
+
|
|
89
|
+
changeAccountStatus(request: ChangeAccountStatusRequest): Observable<ChangeAccountStatusResponse>;
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
export interface CoreServiceController {
|
|
@@ -91,6 +103,10 @@ export interface CoreServiceController {
|
|
|
91
103
|
deleteAccount(
|
|
92
104
|
request: DeleteAccountRequest,
|
|
93
105
|
): Promise<DeleteAccountResponse> | Observable<DeleteAccountResponse> | DeleteAccountResponse;
|
|
106
|
+
|
|
107
|
+
changeAccountStatus(
|
|
108
|
+
request: ChangeAccountStatusRequest,
|
|
109
|
+
): Promise<ChangeAccountStatusResponse> | Observable<ChangeAccountStatusResponse> | ChangeAccountStatusResponse;
|
|
94
110
|
}
|
|
95
111
|
|
|
96
112
|
export function CoreServiceControllerMethods() {
|
|
@@ -101,6 +117,7 @@ export function CoreServiceControllerMethods() {
|
|
|
101
117
|
"getAccount",
|
|
102
118
|
"setAccountStatus",
|
|
103
119
|
"deleteAccount",
|
|
120
|
+
"changeAccountStatus",
|
|
104
121
|
];
|
|
105
122
|
for (const method of grpcMethods) {
|
|
106
123
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/core.proto
CHANGED
|
@@ -8,6 +8,7 @@ service CoreService {
|
|
|
8
8
|
rpc GetAccount(GetAccountRequest) returns (Account);
|
|
9
9
|
rpc SetAccountStatus(SetAccountStatusRequest) returns (Account);
|
|
10
10
|
rpc DeleteAccount(DeleteAccountRequest) returns (DeleteAccountResponse);
|
|
11
|
+
rpc ChangeAccountStatus(ChangeAccountStatusRequest) returns (ChangeAccountStatusResponse);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
message CreateAccountRequest {
|
|
@@ -56,6 +57,16 @@ message Account {
|
|
|
56
57
|
string updated_at = 10;
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
message ChangeAccountStatusRequest {
|
|
61
|
+
string id = 1;
|
|
62
|
+
string user_id = 2;
|
|
63
|
+
Status status = 3;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message ChangeAccountStatusResponse {
|
|
67
|
+
bool ok = 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
59
70
|
enum Status {
|
|
60
71
|
INACTIVE = 0;
|
|
61
72
|
ACTIVE = 1;
|