@alebooking/contracts 1.0.2 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.11.1
4
- // protoc v6.33.5
4
+ // protoc v3.21.12
5
5
  // source: auth.proto
6
6
 
7
7
  /* eslint-disable */
@@ -20,7 +20,7 @@ export interface SendOtpResponse {
20
20
  }
21
21
 
22
22
  export interface VerifyOtpRequest {
23
- identifirt: string;
23
+ identifier: string;
24
24
  type: string;
25
25
  code: string;
26
26
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@alebooking/contracts",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Protobug definitions and generated TypeScript types",
5
5
  "scripts": {
6
+ "pregenerate": "node -e \"require('fs').mkdirSync('./gen',{recursive:true})\"",
6
7
  "generate": "protoc -I=./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
8
  },
8
9
  "files": [
package/proto/auth.proto CHANGED
@@ -1,28 +1,28 @@
1
- syntax = "proto3";
2
-
3
- package auth.v1;
4
-
5
- service AuthService {
6
- rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
7
- rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
8
- }
9
-
10
- message SendOtpRequest {
11
- string identifier = 1;
12
- string type = 2;
13
- }
14
-
15
- message SendOtpResponse {
16
- bool ok = 1;
17
- }
18
-
19
- message VerifyOtpRequest {
20
- string identifier = 1;
21
- string type = 2;
22
- string code = 3;
23
- }
24
-
25
- message VerifyOtpResponse {
26
- string access_token = 1;
27
- string refresh_token = 2;
1
+ syntax = "proto3";
2
+
3
+ package auth.v1;
4
+
5
+ service AuthService {
6
+ rpc SendOtp (SendOtpRequest) returns (SendOtpResponse);
7
+ rpc VerifyOtp (VerifyOtpRequest) returns (VerifyOtpResponse);
8
+ }
9
+
10
+ message SendOtpRequest {
11
+ string identifier = 1;
12
+ string type = 2;
13
+ }
14
+
15
+ message SendOtpResponse {
16
+ bool ok = 1;
17
+ }
18
+
19
+ message VerifyOtpRequest {
20
+ string identifier = 1;
21
+ string type = 2;
22
+ string code = 3;
23
+ }
24
+
25
+ message VerifyOtpResponse {
26
+ string access_token = 1;
27
+ string refresh_token = 2;
28
28
  }