@stashfin/grpc 1.2.836 → 1.2.838

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.836",
3
+ "version": "1.2.838",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -12,6 +12,7 @@ export interface verifyOtpReqeust {
12
12
  utm_medium?: string | undefined;
13
13
  utm_campaign?: string | undefined;
14
14
  tnc_ids: number[];
15
+ lead_source?: string | undefined;
15
16
  }
16
17
  export interface verifyOtpResponse {
17
18
  auth_token: string;
@@ -21,6 +22,7 @@ export interface verifyOtpResponse {
21
22
  message: string;
22
23
  refresh_token: string;
23
24
  is_eqx_customer?: boolean | undefined;
25
+ source?: string | undefined;
24
26
  }
25
27
  export declare const verifyOtpReqeust: {
26
28
  encode(message: verifyOtpReqeust, writer?: _m0.Writer): _m0.Writer;
@@ -25,6 +25,7 @@ function createBaseverifyOtpReqeust() {
25
25
  utm_medium: undefined,
26
26
  utm_campaign: undefined,
27
27
  tnc_ids: [],
28
+ lead_source: undefined,
28
29
  };
29
30
  }
30
31
  exports.verifyOtpReqeust = {
@@ -64,6 +65,9 @@ exports.verifyOtpReqeust = {
64
65
  writer.int32(v);
65
66
  }
66
67
  writer.ldelim();
68
+ if (message.lead_source !== undefined) {
69
+ writer.uint32(98).string(message.lead_source);
70
+ }
67
71
  return writer;
68
72
  },
69
73
  decode(input, length) {
@@ -146,6 +150,12 @@ exports.verifyOtpReqeust = {
146
150
  continue;
147
151
  }
148
152
  break;
153
+ case 12:
154
+ if (tag !== 98) {
155
+ break;
156
+ }
157
+ message.lead_source = reader.string();
158
+ continue;
149
159
  }
150
160
  if ((tag & 7) === 4 || tag === 0) {
151
161
  break;
@@ -167,6 +177,7 @@ exports.verifyOtpReqeust = {
167
177
  utm_medium: isSet(object.utm_medium) ? globalThis.String(object.utm_medium) : undefined,
168
178
  utm_campaign: isSet(object.utm_campaign) ? globalThis.String(object.utm_campaign) : undefined,
169
179
  tnc_ids: globalThis.Array.isArray(object?.tnc_ids) ? object.tnc_ids.map((e) => globalThis.Number(e)) : [],
180
+ lead_source: isSet(object.lead_source) ? globalThis.String(object.lead_source) : undefined,
170
181
  };
171
182
  },
172
183
  toJSON(message) {
@@ -204,6 +215,9 @@ exports.verifyOtpReqeust = {
204
215
  if (message.tnc_ids?.length) {
205
216
  obj.tnc_ids = message.tnc_ids.map((e) => Math.round(e));
206
217
  }
218
+ if (message.lead_source !== undefined) {
219
+ obj.lead_source = message.lead_source;
220
+ }
207
221
  return obj;
208
222
  },
209
223
  create(base) {
@@ -222,6 +236,7 @@ exports.verifyOtpReqeust = {
222
236
  message.utm_medium = object.utm_medium ?? undefined;
223
237
  message.utm_campaign = object.utm_campaign ?? undefined;
224
238
  message.tnc_ids = object.tnc_ids?.map((e) => e) || [];
239
+ message.lead_source = object.lead_source ?? undefined;
225
240
  return message;
226
241
  },
227
242
  };
@@ -234,6 +249,7 @@ function createBaseverifyOtpResponse() {
234
249
  message: "",
235
250
  refresh_token: "",
236
251
  is_eqx_customer: undefined,
252
+ source: undefined,
237
253
  };
238
254
  }
239
255
  exports.verifyOtpResponse = {
@@ -259,6 +275,9 @@ exports.verifyOtpResponse = {
259
275
  if (message.is_eqx_customer !== undefined) {
260
276
  writer.uint32(56).bool(message.is_eqx_customer);
261
277
  }
278
+ if (message.source !== undefined) {
279
+ writer.uint32(66).string(message.source);
280
+ }
262
281
  return writer;
263
282
  },
264
283
  decode(input, length) {
@@ -310,6 +329,12 @@ exports.verifyOtpResponse = {
310
329
  }
311
330
  message.is_eqx_customer = reader.bool();
312
331
  continue;
332
+ case 8:
333
+ if (tag !== 66) {
334
+ break;
335
+ }
336
+ message.source = reader.string();
337
+ continue;
313
338
  }
314
339
  if ((tag & 7) === 4 || tag === 0) {
315
340
  break;
@@ -327,6 +352,7 @@ exports.verifyOtpResponse = {
327
352
  message: isSet(object.message) ? globalThis.String(object.message) : "",
328
353
  refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
329
354
  is_eqx_customer: isSet(object.is_eqx_customer) ? globalThis.Boolean(object.is_eqx_customer) : undefined,
355
+ source: isSet(object.source) ? globalThis.String(object.source) : undefined,
330
356
  };
331
357
  },
332
358
  toJSON(message) {
@@ -352,6 +378,9 @@ exports.verifyOtpResponse = {
352
378
  if (message.is_eqx_customer !== undefined) {
353
379
  obj.is_eqx_customer = message.is_eqx_customer;
354
380
  }
381
+ if (message.source !== undefined) {
382
+ obj.source = message.source;
383
+ }
355
384
  return obj;
356
385
  },
357
386
  create(base) {
@@ -366,6 +395,7 @@ exports.verifyOtpResponse = {
366
395
  message.message = object.message ?? "";
367
396
  message.refresh_token = object.refresh_token ?? "";
368
397
  message.is_eqx_customer = object.is_eqx_customer ?? undefined;
398
+ message.source = object.source ?? undefined;
369
399
  return message;
370
400
  },
371
401
  };