@ren4elcinema/contracts 1.0.0 → 1.0.1

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,7 +10,7 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "auth.v1";
12
12
 
13
- export interface SentOtpRequest {
13
+ export interface SendOtpRequest {
14
14
  indentifier: string;
15
15
  type: string;
16
16
  }
@@ -22,16 +22,16 @@ export interface SendOtpResponse {
22
22
  export const AUTH_V1_PACKAGE_NAME = "auth.v1";
23
23
 
24
24
  export interface AuthServiceClient {
25
- sentOtp(request: SentOtpRequest): Observable<SendOtpResponse>;
25
+ sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
26
26
  }
27
27
 
28
28
  export interface AuthServiceController {
29
- sentOtp(request: SentOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
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[] = ["sentOtp"];
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": "@ren4elcinema/contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
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
@@ -4,10 +4,10 @@ package auth.v1;
4
4
 
5
5
 
6
6
  service AuthService {
7
- rpc SentOtp (SentOtpRequest) returns (SendOtpResponse);
7
+ rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
8
8
  }
9
9
 
10
- message SentOtpRequest {
10
+ message SendOtpRequest {
11
11
  string indentifier = 1;
12
12
  string type = 2;
13
13
  }