@aaanton/contracts 1.1.1 → 1.1.2

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/users.ts CHANGED
@@ -43,7 +43,7 @@ export const USERS_V1_PACKAGE_NAME = "users.v1";
43
43
 
44
44
  /** */
45
45
 
46
- export interface UserServiceClient {
46
+ export interface UsersServiceClient {
47
47
  /** */
48
48
 
49
49
  getMe(request: GetMeRequest): Observable<GetMeResponse>;
@@ -55,7 +55,7 @@ export interface UserServiceClient {
55
55
 
56
56
  /** */
57
57
 
58
- export interface UserServiceController {
58
+ export interface UsersServiceController {
59
59
  /** */
60
60
 
61
61
  getMe(request: GetMeRequest): Promise<GetMeResponse> | Observable<GetMeResponse> | GetMeResponse;
@@ -67,19 +67,19 @@ export interface UserServiceController {
67
67
  ): Promise<CreateUserResponse> | Observable<CreateUserResponse> | CreateUserResponse;
68
68
  }
69
69
 
70
- export function UserServiceControllerMethods() {
70
+ export function UsersServiceControllerMethods() {
71
71
  return function (constructor: Function) {
72
72
  const grpcMethods: string[] = ["getMe", "createUser"];
73
73
  for (const method of grpcMethods) {
74
74
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
75
- GrpcMethod("UserService", method)(constructor.prototype[method], method, descriptor);
75
+ GrpcMethod("UsersService", method)(constructor.prototype[method], method, descriptor);
76
76
  }
77
77
  const grpcStreamMethods: string[] = [];
78
78
  for (const method of grpcStreamMethods) {
79
79
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
80
- GrpcStreamMethod("UserService", method)(constructor.prototype[method], method, descriptor);
80
+ GrpcStreamMethod("UsersService", method)(constructor.prototype[method], method, descriptor);
81
81
  }
82
82
  };
83
83
  }
84
84
 
85
- export const USER_SERVICE_NAME = "UserService";
85
+ export const USERS_SERVICE_NAME = "UsersService";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaanton/contracts",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/proto/users.proto CHANGED
@@ -3,7 +3,7 @@ syntax = "proto3";
3
3
  package users.v1;
4
4
 
5
5
  //
6
- service UserService {
6
+ service UsersService {
7
7
  //
8
8
  rpc GetMe (GetMeRequest) returns (GetMeResponse);
9
9