@lx-tech/contracts 1.0.0 → 1.0.7
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 +5 -5
- package/package.json +1 -1
- package/proto/auth.proto +3 -3
package/gen/auth.ts
CHANGED
|
@@ -10,28 +10,28 @@ import { Observable } from "rxjs";
|
|
|
10
10
|
|
|
11
11
|
export const protobufPackage = "auth.v1";
|
|
12
12
|
|
|
13
|
-
export interface
|
|
13
|
+
export interface SendOtpRequest {
|
|
14
14
|
identifier: string;
|
|
15
15
|
type: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export interface
|
|
18
|
+
export interface SendOtpResponse {
|
|
19
19
|
ok: boolean;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
23
23
|
|
|
24
24
|
export interface AuthServiceClient {
|
|
25
|
-
|
|
25
|
+
sendOtp(request: SendOtpRequest): Observable<SendOtpResponse>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface AuthServiceController {
|
|
29
|
-
|
|
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[] = ["
|
|
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
package/proto/auth.proto
CHANGED
|
@@ -3,14 +3,14 @@ syntax = "proto3";
|
|
|
3
3
|
package auth.v1;
|
|
4
4
|
|
|
5
5
|
service AuthService {
|
|
6
|
-
rpc
|
|
6
|
+
rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
message
|
|
9
|
+
message SendOtpRequest {
|
|
10
10
|
string identifier = 1;
|
|
11
11
|
string type = 2;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
message
|
|
14
|
+
message SendOtpResponse {
|
|
15
15
|
bool ok = 1;
|
|
16
16
|
}
|