@rustlimited/contracts 1.0.4 → 1.0.6

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/ts/auth.ts ADDED
@@ -0,0 +1,43 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.1
4
+ // protoc v6.33.4
5
+ // source: auth.proto
6
+
7
+ /* eslint-disable */
8
+ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
+ import { Observable } from "rxjs";
10
+ import { Empty } from "./google/protobuf/empty";
11
+
12
+ export const protobufPackage = "auth.v1";
13
+
14
+ export interface TelegramInitResponse {
15
+ url: string;
16
+ }
17
+
18
+ export const AUTH_V1_PACKAGE_NAME = "auth.v1";
19
+
20
+ export interface AuthServiceClient {
21
+ telegramInit(request: Empty): Observable<TelegramInitResponse>;
22
+ }
23
+
24
+ export interface AuthServiceController {
25
+ telegramInit(request: Empty): Promise<TelegramInitResponse> | Observable<TelegramInitResponse> | TelegramInitResponse;
26
+ }
27
+
28
+ export function AuthServiceControllerMethods() {
29
+ return function (constructor: Function) {
30
+ const grpcMethods: string[] = ["telegramInit"];
31
+ for (const method of grpcMethods) {
32
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
33
+ GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
34
+ }
35
+ const grpcStreamMethods: string[] = [];
36
+ for (const method of grpcStreamMethods) {
37
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
38
+ GrpcStreamMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
39
+ }
40
+ };
41
+ }
42
+
43
+ export const AUTH_SERVICE_NAME = "AuthService";
@@ -0,0 +1,23 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.1
4
+ // protoc v6.33.4
5
+ // source: google/protobuf/empty.proto
6
+
7
+ /* eslint-disable */
8
+
9
+ export const protobufPackage = "google.protobuf";
10
+
11
+ /**
12
+ * A generic empty message that you can re-use to avoid defining duplicated
13
+ * empty messages in your APIs. A typical example is to use it as the request
14
+ * or the response type of an API method. For instance:
15
+ *
16
+ * service Foo {
17
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
18
+ * }
19
+ */
20
+ export interface Empty {
21
+ }
22
+
23
+ export const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
package/gen/ts/users.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
4
- // protoc v6.33.2
3
+ // protoc-gen-ts_proto v2.11.1
4
+ // protoc v6.33.4
5
5
  // source: users.proto
6
6
 
7
7
  /* eslint-disable */
package/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@rustlimited/contracts",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc -p tsconfig.build.json",
9
- "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen/ts --ts_proto_opt=nestJs=true,package=omit"
9
+ "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen/ts --ts_proto_opt=nestJs=true,package=omit",
10
+ "patch": "npm version patch",
11
+ "minor": "npm version minor",
12
+ "major": "npm version major"
10
13
  },
11
14
  "files": [
12
15
  "dist",
@@ -0,0 +1,18 @@
1
+ syntax = "proto3";
2
+
3
+ package auth.v1;
4
+
5
+ import "google/protobuf/empty.proto";
6
+
7
+ service AuthService {
8
+
9
+ rpc TelegramInit (google.protobuf.Empty) returns (TelegramInitResponse);
10
+ }
11
+
12
+
13
+
14
+ message TelegramInitResponse {
15
+ string url = 1;
16
+ }
17
+
18
+