@bogdancinema/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
@@ -21,27 +21,27 @@ export interface SendOtpResponse {
21
21
 
22
22
  export const AUTH_V1_PACKAGE_NAME = "auth.v1";
23
23
 
24
- export interface AuthNameClient {
24
+ export interface AuthServiceClient {
25
25
  sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
26
26
  }
27
27
 
28
- export interface AuthNameController {
28
+ export interface AuthServiceController {
29
29
  sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
30
30
  }
31
31
 
32
- export function AuthNameControllerMethods() {
32
+ export function AuthServiceControllerMethods() {
33
33
  return function (constructor: Function) {
34
34
  const grpcMethods: string[] = ["sendOtp"];
35
35
  for (const method of grpcMethods) {
36
36
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
37
- GrpcMethod("AuthName", method)(constructor.prototype[method], method, descriptor);
37
+ GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
38
38
  }
39
39
  const grpcStreamMethods: string[] = [];
40
40
  for (const method of grpcStreamMethods) {
41
41
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
42
- GrpcStreamMethod("AuthName", method)(constructor.prototype[method], method, descriptor);
42
+ GrpcStreamMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
43
43
  }
44
44
  };
45
45
  }
46
46
 
47
- export const AUTH_NAME_SERVICE_NAME = "AuthName";
47
+ export const AUTH_SERVICE_NAME = "AuthService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bogdancinema/contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Protobuf definitions and generated Typescript types",
5
5
  "packageManager": "yarn@4.10.3",
6
6
  "author": {
package/proto/auth.proto CHANGED
@@ -2,7 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  package auth.v1;
4
4
 
5
- service AuthName {
5
+ service AuthService {
6
6
  rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
7
7
  }
8
8