@funpay-plasma/contracts 1.0.3 → 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,13 +2,13 @@
|
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v2.11.2
|
|
4
4
|
// protoc v5.29.6
|
|
5
|
-
// source:
|
|
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 = "
|
|
11
|
+
export const protobufPackage = "accounts.v1";
|
|
12
12
|
|
|
13
13
|
export interface GetAccountRequest {
|
|
14
14
|
string: string;
|
|
@@ -18,31 +18,31 @@ export interface GetAccountResponse {
|
|
|
18
18
|
ok: boolean;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export const
|
|
21
|
+
export const ACCOUNTS_V1_PACKAGE_NAME = "accounts.v1";
|
|
22
22
|
|
|
23
|
-
export interface
|
|
23
|
+
export interface AccountsServiceClient {
|
|
24
24
|
getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export interface
|
|
27
|
+
export interface AccountsServiceController {
|
|
28
28
|
getAccount(
|
|
29
29
|
request: GetAccountRequest,
|
|
30
30
|
): Promise<GetAccountResponse> | Observable<GetAccountResponse> | GetAccountResponse;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export function
|
|
33
|
+
export function AccountsServiceControllerMethods() {
|
|
34
34
|
return function (constructor: Function) {
|
|
35
35
|
const grpcMethods: string[] = ["getAccount"];
|
|
36
36
|
for (const method of grpcMethods) {
|
|
37
37
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
38
|
-
GrpcMethod("
|
|
38
|
+
GrpcMethod("AccountsService", method)(constructor.prototype[method], method, descriptor);
|
|
39
39
|
}
|
|
40
40
|
const grpcStreamMethods: string[] = [];
|
|
41
41
|
for (const method of grpcStreamMethods) {
|
|
42
42
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
43
|
-
GrpcStreamMethod("
|
|
43
|
+
GrpcStreamMethod("AccountsService", method)(constructor.prototype[method], method, descriptor);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export const
|
|
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.
|
|
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"
|