@nexiolab/contracts 1.0.1 → 1.0.2

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
@@ -10,15 +10,9 @@ import { Observable } from "rxjs";
10
10
 
11
11
  export const protobufPackage = "auth.v1";
12
12
 
13
- export enum IdentifierType {
14
- EMAIL = 0,
15
- PHONE = 1,
16
- UNRECOGNIZED = -1,
17
- }
18
-
19
13
  export interface SendOtpRequest {
20
14
  identifier: string;
21
- type: IdentifierType;
15
+ type: string;
22
16
  }
23
17
 
24
18
  export interface SendOtpResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexiolab/contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
package/proto/auth.proto CHANGED
@@ -10,12 +10,7 @@ service AuthService {
10
10
 
11
11
  message SendOtpRequest {
12
12
  string identifier = 1;
13
- IdentifierType type = 2;
14
- }
15
-
16
- enum IdentifierType {
17
- EMAIL = 0;
18
- PHONE = 1;
13
+ string type = 2;
19
14
  }
20
15
 
21
16
  message SendOtpResponse {