@babacarthiamdev/contracts 1.0.1 → 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/gen/auth.ts CHANGED
@@ -22,8 +22,8 @@ export interface SendOtpResponse {
22
22
 
23
23
  export interface VerifyOtpRequest {
24
24
  identifier: string;
25
- type: string;
26
25
  code: string;
26
+ type: string;
27
27
  }
28
28
 
29
29
  export interface VerifyOptResponse {
@@ -119,7 +119,7 @@ export const SendOtpResponse: MessageFns<SendOtpResponse> = {
119
119
  };
120
120
 
121
121
  function createBaseVerifyOtpRequest(): VerifyOtpRequest {
122
- return { identifier: "", type: "", code: "" };
122
+ return { identifier: "", code: "", type: "" };
123
123
  }
124
124
 
125
125
  export const VerifyOtpRequest: MessageFns<VerifyOtpRequest> = {
@@ -127,11 +127,11 @@ export const VerifyOtpRequest: MessageFns<VerifyOtpRequest> = {
127
127
  if (message.identifier !== "") {
128
128
  writer.uint32(10).string(message.identifier);
129
129
  }
130
- if (message.type !== "") {
131
- writer.uint32(18).string(message.type);
132
- }
133
130
  if (message.code !== "") {
134
- writer.uint32(26).string(message.code);
131
+ writer.uint32(18).string(message.code);
132
+ }
133
+ if (message.type !== "") {
134
+ writer.uint32(26).string(message.type);
135
135
  }
136
136
  return writer;
137
137
  },
@@ -156,7 +156,7 @@ export const VerifyOtpRequest: MessageFns<VerifyOtpRequest> = {
156
156
  break;
157
157
  }
158
158
 
159
- message.type = reader.string();
159
+ message.code = reader.string();
160
160
  continue;
161
161
  }
162
162
  case 3: {
@@ -164,7 +164,7 @@ export const VerifyOtpRequest: MessageFns<VerifyOtpRequest> = {
164
164
  break;
165
165
  }
166
166
 
167
- message.code = reader.string();
167
+ message.type = reader.string();
168
168
  continue;
169
169
  }
170
170
  }
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@babacarthiamdev/contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.6",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
+ "main": "./dist/index.js",
6
+ "type": "./dist/index.d.ts",
5
7
  "scripts": {
8
+ "build": "tsc -p tsconfig.build.json",
9
+ "format": "prettier --write \"src/**/*.ts\"",
6
10
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,outputServices=nest,outputClientImpl=false,package=omit,outputEncodeMethods=false,outputJsonMethods=false"
7
11
  },
8
12
  "files": [
@@ -18,5 +22,11 @@
18
22
  "rxjs": "^7.8.2",
19
23
  "ts-proto": "^2.10.1"
20
24
  },
21
- "license": "ISC"
25
+ "license": "ISC",
26
+ "devDependencies": {
27
+ "@babacarthiamdev/core": "^1.0.4",
28
+ "@types/node": "^25.0.3",
29
+ "prettier": "^3.7.4",
30
+ "typescript": "^5.9.3"
31
+ }
22
32
  }
package/proto/auth.proto CHANGED
@@ -18,8 +18,8 @@ message SendOtpResponse {
18
18
 
19
19
  message VerifyOtpRequest {
20
20
  string identifier = 1;
21
- string type = 2;
22
- string code = 3;
21
+ string code = 2;
22
+ string type = 3;
23
23
  }
24
24
 
25
25
  message VerifyOptResponse{