@stashfin/grpc 1.2.301 → 1.2.303

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": "@stashfin/grpc",
3
- "version": "1.2.301",
3
+ "version": "1.2.303",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -9,6 +9,7 @@ export interface verifyOtpReqeust {
9
9
  is_rooted: boolean;
10
10
  }
11
11
  export interface verifyOtpResponse {
12
+ category: string;
12
13
  ismpin: boolean;
13
14
  jwttoken: string;
14
15
  }
@@ -135,15 +135,18 @@ exports.verifyOtpReqeust = {
135
135
  },
136
136
  };
137
137
  function createBaseverifyOtpResponse() {
138
- return { ismpin: false, jwttoken: "" };
138
+ return { category: "", ismpin: false, jwttoken: "" };
139
139
  }
140
140
  exports.verifyOtpResponse = {
141
141
  encode(message, writer = minimal_1.default.Writer.create()) {
142
+ if (message.category !== "") {
143
+ writer.uint32(10).string(message.category);
144
+ }
142
145
  if (message.ismpin !== false) {
143
- writer.uint32(8).bool(message.ismpin);
146
+ writer.uint32(16).bool(message.ismpin);
144
147
  }
145
148
  if (message.jwttoken !== "") {
146
- writer.uint32(18).string(message.jwttoken);
149
+ writer.uint32(26).string(message.jwttoken);
147
150
  }
148
151
  return writer;
149
152
  },
@@ -155,13 +158,19 @@ exports.verifyOtpResponse = {
155
158
  const tag = reader.uint32();
156
159
  switch (tag >>> 3) {
157
160
  case 1:
158
- if (tag !== 8) {
161
+ if (tag !== 10) {
159
162
  break;
160
163
  }
161
- message.ismpin = reader.bool();
164
+ message.category = reader.string();
162
165
  continue;
163
166
  case 2:
164
- if (tag !== 18) {
167
+ if (tag !== 16) {
168
+ break;
169
+ }
170
+ message.ismpin = reader.bool();
171
+ continue;
172
+ case 3:
173
+ if (tag !== 26) {
165
174
  break;
166
175
  }
167
176
  message.jwttoken = reader.string();
@@ -176,12 +185,16 @@ exports.verifyOtpResponse = {
176
185
  },
177
186
  fromJSON(object) {
178
187
  return {
188
+ category: isSet(object.category) ? globalThis.String(object.category) : "",
179
189
  ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
180
190
  jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "",
181
191
  };
182
192
  },
183
193
  toJSON(message) {
184
194
  const obj = {};
195
+ if (message.category !== "") {
196
+ obj.category = message.category;
197
+ }
185
198
  if (message.ismpin !== false) {
186
199
  obj.ismpin = message.ismpin;
187
200
  }
@@ -195,6 +208,7 @@ exports.verifyOtpResponse = {
195
208
  },
196
209
  fromPartial(object) {
197
210
  const message = createBaseverifyOtpResponse();
211
+ message.category = object.category ?? "";
198
212
  message.ismpin = object.ismpin ?? false;
199
213
  message.jwttoken = object.jwttoken ?? "";
200
214
  return message;
@@ -20,7 +20,7 @@ export interface response {
20
20
  data?: response_Data | undefined;
21
21
  }
22
22
  export interface response_Data {
23
- redirect_url: string;
23
+ redirect_url?: string | undefined;
24
24
  }
25
25
  export declare const request: {
26
26
  encode(message: request, writer?: _m0.Writer): _m0.Writer;
@@ -314,11 +314,11 @@ exports.response = {
314
314
  },
315
315
  };
316
316
  function createBaseresponse_Data() {
317
- return { redirect_url: "" };
317
+ return { redirect_url: undefined };
318
318
  }
319
319
  exports.response_Data = {
320
320
  encode(message, writer = minimal_1.default.Writer.create()) {
321
- if (message.redirect_url !== "") {
321
+ if (message.redirect_url !== undefined) {
322
322
  writer.uint32(10).string(message.redirect_url);
323
323
  }
324
324
  return writer;
@@ -345,11 +345,11 @@ exports.response_Data = {
345
345
  return message;
346
346
  },
347
347
  fromJSON(object) {
348
- return { redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "" };
348
+ return { redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : undefined };
349
349
  },
350
350
  toJSON(message) {
351
351
  const obj = {};
352
- if (message.redirect_url !== "") {
352
+ if (message.redirect_url !== undefined) {
353
353
  obj.redirect_url = message.redirect_url;
354
354
  }
355
355
  return obj;
@@ -359,7 +359,7 @@ exports.response_Data = {
359
359
  },
360
360
  fromPartial(object) {
361
361
  const message = createBaseresponse_Data();
362
- message.redirect_url = object.redirect_url ?? "";
362
+ message.redirect_url = object.redirect_url ?? undefined;
363
363
  return message;
364
364
  },
365
365
  };