@xwing-dev/shared 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwing-dev/shared",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -15,9 +15,15 @@
15
15
  "generate:contracts": "npx protoc -I ./src/contracts/proto ./src/contracts/proto/*.proto --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./src/contracts/gen --ts_proto_opt=nestJs=true,package=omit"
16
16
  },
17
17
  "exports": {
18
- ".": "./dist/index.js",
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js"
21
+ },
19
22
  "./biome": "./biome.json",
20
- "./contracts": "./src/contracts"
23
+ "./contracts/gen/auth": {
24
+ "types": "./src/contracts/gen/auth.ts",
25
+ "import": "./src/contracts/gen/auth.js"
26
+ }
21
27
  },
22
28
  "files": [
23
29
  "dist",
@@ -12,8 +12,7 @@ export const protobufPackage = "auth.v1";
12
12
 
13
13
  export interface SendOtpDto {
14
14
  identifier: string;
15
- phone?: string | undefined;
16
- email?: string | undefined;
15
+ type: string;
17
16
  }
18
17
 
19
18
  export interface SendOtpResponseDto {
@@ -8,10 +8,7 @@ service AuthService {
8
8
 
9
9
  message SendOtpDto {
10
10
  string identifier = 1;
11
- oneof type {
12
- string phone = 2;
13
- string email = 3;
14
- }
11
+ string type = 2;
15
12
  }
16
13
 
17
14
  message SendOtpResponseDto {