@lx-tech/contracts 1.0.0 → 1.0.7

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/auth.ts CHANGED
@@ -10,28 +10,28 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "auth.v1";
12
12
 
13
- export interface SendOptRequest {
13
+ export interface SendOtpRequest {
14
14
  identifier: string;
15
15
  type: string;
16
16
  }
17
17
 
18
- export interface SendOptResponse {
18
+ export interface SendOtpResponse {
19
19
  ok: boolean;
20
20
  }
21
21
 
22
22
  export const AUTH_V1_PACKAGE_NAME = "auth.v1";
23
23
 
24
24
  export interface AuthServiceClient {
25
- sendOpt(request: SendOptRequest): Observable<SendOptResponse>;
25
+ sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
26
26
  }
27
27
 
28
28
  export interface AuthServiceController {
29
- sendOpt(request: SendOptRequest): Promise<SendOptResponse> | Observable<SendOptResponse> | SendOptResponse;
29
+ sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
30
30
  }
31
31
 
32
32
  export function AuthServiceControllerMethods() {
33
33
  return function (constructor: Function) {
34
- const grpcMethods: string[] = ["sendOpt"];
34
+ const grpcMethods: string[] = ["sendOtp"];
35
35
  for (const method of grpcMethods) {
36
36
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
37
37
  GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lx-tech/contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.7",
4
4
  "description": "Protobuf definitions for lx-tech contracts",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
package/proto/auth.proto CHANGED
@@ -3,14 +3,14 @@ syntax = "proto3";
3
3
  package auth.v1;
4
4
 
5
5
  service AuthService {
6
- rpc SendOpt (SendOptRequest) returns (SendOptResponse);
6
+ rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
7
7
  }
8
8
 
9
- message SendOptRequest {
9
+ message SendOtpRequest {
10
10
  string identifier = 1;
11
11
  string type = 2;
12
12
  }
13
13
 
14
- message SendOptResponse {
14
+ message SendOtpResponse {
15
15
  bool ok = 1;
16
16
  }