@gastroly.io/contracts 1.0.5 → 1.0.6
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/generated/auth.ts +2 -9
- package/package.json +3 -2
- package/proto/auth.proto +2 -8
package/generated/auth.ts
CHANGED
|
@@ -10,16 +10,9 @@ import { Observable } from "rxjs";
|
|
|
10
10
|
|
|
11
11
|
export const protobufPackage = "auth.v1";
|
|
12
12
|
|
|
13
|
-
export enum AuthType {
|
|
14
|
-
AUTH_TYPE_UNSPECIFIED = 0,
|
|
15
|
-
AUTH_TYPE_PHONE = 1,
|
|
16
|
-
AUTH_TYPE_EMAIL = 2,
|
|
17
|
-
UNRECOGNIZED = -1,
|
|
18
|
-
}
|
|
19
|
-
|
|
20
13
|
export interface SendOtpRequest {
|
|
21
14
|
identifier: string;
|
|
22
|
-
type:
|
|
15
|
+
type: string;
|
|
23
16
|
}
|
|
24
17
|
|
|
25
18
|
export interface SendOtpResponse {
|
|
@@ -28,7 +21,7 @@ export interface SendOtpResponse {
|
|
|
28
21
|
|
|
29
22
|
export interface VerifyOtpRequest {
|
|
30
23
|
identifier: string;
|
|
31
|
-
type:
|
|
24
|
+
type: string;
|
|
32
25
|
code: string;
|
|
33
26
|
}
|
|
34
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gastroly.io/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Protobuf definition and generated TypeScript types",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"@gastroly.io/contracts": "^1.0.5",
|
|
20
21
|
"@nestjs/microservices": "^11.1.11",
|
|
21
22
|
"rxjs": "^7.8.2",
|
|
22
23
|
"ts-proto": "^2.10.1"
|
|
@@ -25,4 +26,4 @@
|
|
|
25
26
|
"@types/node": "^25.0.3",
|
|
26
27
|
"typescript": "^5.9.3"
|
|
27
28
|
}
|
|
28
|
-
}
|
|
29
|
+
}
|
package/proto/auth.proto
CHANGED
|
@@ -2,12 +2,6 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package auth.v1;
|
|
4
4
|
|
|
5
|
-
enum AuthType {
|
|
6
|
-
AUTH_TYPE_UNSPECIFIED = 0;
|
|
7
|
-
AUTH_TYPE_PHONE = 1;
|
|
8
|
-
AUTH_TYPE_EMAIL = 2;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
5
|
service AuthService {
|
|
12
6
|
rpc SendOtp(SendOtpRequest) returns (SendOtpResponse);
|
|
13
7
|
rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
|
|
@@ -16,7 +10,7 @@ service AuthService {
|
|
|
16
10
|
|
|
17
11
|
message SendOtpRequest {
|
|
18
12
|
string identifier = 1;
|
|
19
|
-
|
|
13
|
+
string type = 2;
|
|
20
14
|
}
|
|
21
15
|
|
|
22
16
|
message SendOtpResponse {
|
|
@@ -25,7 +19,7 @@ message SendOtpResponse {
|
|
|
25
19
|
|
|
26
20
|
message VerifyOtpRequest {
|
|
27
21
|
string identifier = 1;
|
|
28
|
-
|
|
22
|
+
string type = 2;
|
|
29
23
|
string code = 3;
|
|
30
24
|
}
|
|
31
25
|
|