@funpay-plasma/contracts 1.0.2 → 1.0.4

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.
@@ -2,45 +2,47 @@
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.11.2
4
4
  // protoc v5.29.6
5
- // source: account.proto
5
+ // source: accounts.proto
6
6
 
7
7
  /* eslint-disable */
8
8
  import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
9
  import { Observable } from "rxjs";
10
10
 
11
- export const protobufPackage = "account.v1";
11
+ export const protobufPackage = "accounts.v1";
12
12
 
13
13
  export interface GetAccountRequest {
14
+ string: string;
14
15
  }
15
16
 
16
17
  export interface GetAccountResponse {
18
+ ok: boolean;
17
19
  }
18
20
 
19
- export const ACCOUNT_V1_PACKAGE_NAME = "account.v1";
21
+ export const ACCOUNTS_V1_PACKAGE_NAME = "accounts.v1";
20
22
 
21
- export interface AccountServiceClient {
23
+ export interface AccountsServiceClient {
22
24
  getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
23
25
  }
24
26
 
25
- export interface AccountServiceController {
27
+ export interface AccountsServiceController {
26
28
  getAccount(
27
29
  request: GetAccountRequest,
28
30
  ): Promise<GetAccountResponse> | Observable<GetAccountResponse> | GetAccountResponse;
29
31
  }
30
32
 
31
- export function AccountServiceControllerMethods() {
33
+ export function AccountsServiceControllerMethods() {
32
34
  return function (constructor: Function) {
33
35
  const grpcMethods: string[] = ["getAccount"];
34
36
  for (const method of grpcMethods) {
35
37
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
36
- GrpcMethod("AccountService", method)(constructor.prototype[method], method, descriptor);
38
+ GrpcMethod("AccountsService", method)(constructor.prototype[method], method, descriptor);
37
39
  }
38
40
  const grpcStreamMethods: string[] = [];
39
41
  for (const method of grpcStreamMethods) {
40
42
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
41
- GrpcStreamMethod("AccountService", method)(constructor.prototype[method], method, descriptor);
43
+ GrpcStreamMethod("AccountsService", method)(constructor.prototype[method], method, descriptor);
42
44
  }
43
45
  };
44
46
  }
45
47
 
46
- export const ACCOUNT_SERVICE_NAME = "AccountService";
48
+ export const ACCOUNTS_SERVICE_NAME = "AccountsService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funpay-plasma/contracts",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "scripts": {
6
6
  "generate": "npx protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package accounts.v1;
4
+
5
+ service AccountsService {
6
+ rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
7
+ }
8
+
9
+ message GetAccountRequest {
10
+ string string = 1;
11
+ }
12
+
13
+ message GetAccountResponse {
14
+ bool ok = 1;
15
+ }
@@ -1,11 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package account.v1;
4
-
5
- service AccountService {
6
- rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
7
- }
8
-
9
- message GetAccountRequest {}
10
-
11
- message GetAccountResponse {}