@funpay-pilot/contracts 0.1.76 → 0.1.78

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 CHANGED
@@ -63,6 +63,14 @@ export interface Account {
63
63
  updatedAt: string;
64
64
  }
65
65
 
66
+ export interface ChangeAccountStatusRequest {
67
+ status: Status;
68
+ }
69
+
70
+ export interface ChangeAccountStatusResponse {
71
+ ok: boolean;
72
+ }
73
+
66
74
  export const CORE_V1_PACKAGE_NAME = "core.v1";
67
75
 
68
76
  export interface CoreServiceClient {
@@ -75,6 +83,8 @@ export interface CoreServiceClient {
75
83
  setAccountStatus(request: SetAccountStatusRequest): Observable<Account>;
76
84
 
77
85
  deleteAccount(request: DeleteAccountRequest): Observable<DeleteAccountResponse>;
86
+
87
+ changeAccountStatus(request: ChangeAccountStatusRequest): Observable<ChangeAccountStatusResponse>;
78
88
  }
79
89
 
80
90
  export interface CoreServiceController {
@@ -91,6 +101,10 @@ export interface CoreServiceController {
91
101
  deleteAccount(
92
102
  request: DeleteAccountRequest,
93
103
  ): Promise<DeleteAccountResponse> | Observable<DeleteAccountResponse> | DeleteAccountResponse;
104
+
105
+ changeAccountStatus(
106
+ request: ChangeAccountStatusRequest,
107
+ ): Promise<ChangeAccountStatusResponse> | Observable<ChangeAccountStatusResponse> | ChangeAccountStatusResponse;
94
108
  }
95
109
 
96
110
  export function CoreServiceControllerMethods() {
@@ -101,6 +115,7 @@ export function CoreServiceControllerMethods() {
101
115
  "getAccount",
102
116
  "setAccountStatus",
103
117
  "deleteAccount",
118
+ "changeAccountStatus",
104
119
  ];
105
120
  for (const method of grpcMethods) {
106
121
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funpay-pilot/contracts",
3
- "version": "0.1.76",
3
+ "version": "0.1.78",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
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,14 @@ message Account {
56
57
  string updated_at = 10;
57
58
  }
58
59
 
60
+ message ChangeAccountStatusRequest {
61
+ Status status = 1;
62
+ }
63
+
64
+ message ChangeAccountStatusResponse {
65
+ bool ok = 1;
66
+ }
67
+
59
68
  enum Status {
60
69
  INACTIVE = 0;
61
70
  ACTIVE = 1;