@babacarthiamdev/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 +8 -8
- package/package.json +1 -1
- package/proto/auth.proto +2 -2
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: "",
|
|
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(
|
|
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.
|
|
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.
|
|
167
|
+
message.type = reader.string();
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
170
170
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babacarthiamdev/contracts",
|
|
3
|
-
"version": "1.0.
|
|
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,outputServices=nest,outputClientImpl=false,package=omit,outputEncodeMethods=false,outputJsonMethods=false"
|