@vendee-cinema/contracts 1.1.0 → 1.1.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 +8 -2
- package/package.json +1 -1
- package/proto/auth.proto +7 -2
package/gen/auth.ts
CHANGED
|
@@ -11,9 +11,15 @@ import { Empty } from "./google/protobuf/empty";
|
|
|
11
11
|
|
|
12
12
|
export const protobufPackage = "auth.v1";
|
|
13
13
|
|
|
14
|
+
export enum Type {
|
|
15
|
+
PHONE = 0,
|
|
16
|
+
EMAIL = 1,
|
|
17
|
+
UNRECOGNIZED = -1,
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
export interface SendOtpRequest {
|
|
15
21
|
identifier: string;
|
|
16
|
-
type:
|
|
22
|
+
type: Type;
|
|
17
23
|
}
|
|
18
24
|
|
|
19
25
|
export interface SendOtpResponse {
|
|
@@ -22,7 +28,7 @@ export interface SendOtpResponse {
|
|
|
22
28
|
|
|
23
29
|
export interface VerifyOtpRequest {
|
|
24
30
|
identifier: string;
|
|
25
|
-
type:
|
|
31
|
+
type: Type;
|
|
26
32
|
code: string;
|
|
27
33
|
}
|
|
28
34
|
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -17,7 +17,12 @@ service AuthService {
|
|
|
17
17
|
|
|
18
18
|
message SendOtpRequest {
|
|
19
19
|
string identifier = 1;
|
|
20
|
-
|
|
20
|
+
Type type = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
enum Type {
|
|
24
|
+
PHONE = 0;
|
|
25
|
+
EMAIL = 1;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
message SendOtpResponse {
|
|
@@ -26,7 +31,7 @@ message SendOtpResponse {
|
|
|
26
31
|
|
|
27
32
|
message VerifyOtpRequest {
|
|
28
33
|
string identifier = 1;
|
|
29
|
-
|
|
34
|
+
Type type = 2;
|
|
30
35
|
string code = 3;
|
|
31
36
|
}
|
|
32
37
|
|