@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 +6 -6
- package/package.json +1 -1
- package/proto/users.proto +1 -1
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
|
|
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
|
|
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
|
|
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("
|
|
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("
|
|
80
|
+
GrpcStreamMethod("UsersService", method)(constructor.prototype[method], method, descriptor);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export const
|
|
85
|
+
export const USERS_SERVICE_NAME = "UsersService";
|
package/package.json
CHANGED