@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 +6 -6
- package/package.json +1 -1
- package/proto/auth.proto +1 -1
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
|
|
24
|
+
export interface AuthServiceClient {
|
|
25
25
|
sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export interface
|
|
28
|
+
export interface AuthServiceController {
|
|
29
29
|
sendOtp(request: SendOtpRequest): Promise<SendOtpResponse> | Observable<SendOtpResponse> | SendOtpResponse;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export function
|
|
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("
|
|
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("
|
|
42
|
+
GrpcStreamMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export const
|
|
47
|
+
export const AUTH_SERVICE_NAME = "AuthService";
|
package/package.json
CHANGED