@stashfin/grpc 1.2.837 → 1.2.839

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.837",
3
+ "version": "1.2.839",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -19,6 +19,7 @@ export interface getCustomerByIdResponse {
19
19
  credit_score?: number | undefined;
20
20
  is_bureau_fetched: boolean;
21
21
  next_step?: string | undefined;
22
+ is_akara_registered?: string | undefined;
22
23
  }
23
24
  export declare const getCustomerByIdRequest: {
24
25
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -80,6 +80,7 @@ function createBasegetCustomerByIdResponse() {
80
80
  credit_score: undefined,
81
81
  is_bureau_fetched: false,
82
82
  next_step: undefined,
83
+ is_akara_registered: undefined,
83
84
  };
84
85
  }
85
86
  exports.getCustomerByIdResponse = {
@@ -129,6 +130,9 @@ exports.getCustomerByIdResponse = {
129
130
  if (message.next_step !== undefined) {
130
131
  writer.uint32(122).string(message.next_step);
131
132
  }
133
+ if (message.is_akara_registered !== undefined) {
134
+ writer.uint32(130).string(message.is_akara_registered);
135
+ }
132
136
  return writer;
133
137
  },
134
138
  decode(input, length) {
@@ -228,6 +232,12 @@ exports.getCustomerByIdResponse = {
228
232
  }
229
233
  message.next_step = reader.string();
230
234
  continue;
235
+ case 16:
236
+ if (tag !== 130) {
237
+ break;
238
+ }
239
+ message.is_akara_registered = reader.string();
240
+ continue;
231
241
  }
232
242
  if ((tag & 7) === 4 || tag === 0) {
233
243
  break;
@@ -253,6 +263,9 @@ exports.getCustomerByIdResponse = {
253
263
  credit_score: isSet(object.credit_score) ? globalThis.Number(object.credit_score) : undefined,
254
264
  is_bureau_fetched: isSet(object.is_bureau_fetched) ? globalThis.Boolean(object.is_bureau_fetched) : false,
255
265
  next_step: isSet(object.next_step) ? globalThis.String(object.next_step) : undefined,
266
+ is_akara_registered: isSet(object.is_akara_registered)
267
+ ? globalThis.String(object.is_akara_registered)
268
+ : undefined,
256
269
  };
257
270
  },
258
271
  toJSON(message) {
@@ -302,6 +315,9 @@ exports.getCustomerByIdResponse = {
302
315
  if (message.next_step !== undefined) {
303
316
  obj.next_step = message.next_step;
304
317
  }
318
+ if (message.is_akara_registered !== undefined) {
319
+ obj.is_akara_registered = message.is_akara_registered;
320
+ }
305
321
  return obj;
306
322
  },
307
323
  create(base) {
@@ -324,6 +340,7 @@ exports.getCustomerByIdResponse = {
324
340
  message.credit_score = object.credit_score ?? undefined;
325
341
  message.is_bureau_fetched = object.is_bureau_fetched ?? false;
326
342
  message.next_step = object.next_step ?? undefined;
343
+ message.is_akara_registered = object.is_akara_registered ?? undefined;
327
344
  return message;
328
345
  },
329
346
  };
@@ -12,7 +12,7 @@ export interface verifyOtpReqeust {
12
12
  utm_medium?: string | undefined;
13
13
  utm_campaign?: string | undefined;
14
14
  tnc_ids: number[];
15
- source?: string | undefined;
15
+ lead_source?: string | undefined;
16
16
  }
17
17
  export interface verifyOtpResponse {
18
18
  auth_token: string;
@@ -22,6 +22,7 @@ export interface verifyOtpResponse {
22
22
  message: string;
23
23
  refresh_token: string;
24
24
  is_eqx_customer?: boolean | undefined;
25
+ source?: string | undefined;
25
26
  }
26
27
  export declare const verifyOtpReqeust: {
27
28
  encode(message: verifyOtpReqeust, writer?: _m0.Writer): _m0.Writer;
@@ -25,7 +25,7 @@ function createBaseverifyOtpReqeust() {
25
25
  utm_medium: undefined,
26
26
  utm_campaign: undefined,
27
27
  tnc_ids: [],
28
- source: undefined,
28
+ lead_source: undefined,
29
29
  };
30
30
  }
31
31
  exports.verifyOtpReqeust = {
@@ -65,8 +65,8 @@ exports.verifyOtpReqeust = {
65
65
  writer.int32(v);
66
66
  }
67
67
  writer.ldelim();
68
- if (message.source !== undefined) {
69
- writer.uint32(98).string(message.source);
68
+ if (message.lead_source !== undefined) {
69
+ writer.uint32(98).string(message.lead_source);
70
70
  }
71
71
  return writer;
72
72
  },
@@ -154,7 +154,7 @@ exports.verifyOtpReqeust = {
154
154
  if (tag !== 98) {
155
155
  break;
156
156
  }
157
- message.source = reader.string();
157
+ message.lead_source = reader.string();
158
158
  continue;
159
159
  }
160
160
  if ((tag & 7) === 4 || tag === 0) {
@@ -177,7 +177,7 @@ exports.verifyOtpReqeust = {
177
177
  utm_medium: isSet(object.utm_medium) ? globalThis.String(object.utm_medium) : undefined,
178
178
  utm_campaign: isSet(object.utm_campaign) ? globalThis.String(object.utm_campaign) : undefined,
179
179
  tnc_ids: globalThis.Array.isArray(object?.tnc_ids) ? object.tnc_ids.map((e) => globalThis.Number(e)) : [],
180
- source: isSet(object.source) ? globalThis.String(object.source) : undefined,
180
+ lead_source: isSet(object.lead_source) ? globalThis.String(object.lead_source) : undefined,
181
181
  };
182
182
  },
183
183
  toJSON(message) {
@@ -215,8 +215,8 @@ exports.verifyOtpReqeust = {
215
215
  if (message.tnc_ids?.length) {
216
216
  obj.tnc_ids = message.tnc_ids.map((e) => Math.round(e));
217
217
  }
218
- if (message.source !== undefined) {
219
- obj.source = message.source;
218
+ if (message.lead_source !== undefined) {
219
+ obj.lead_source = message.lead_source;
220
220
  }
221
221
  return obj;
222
222
  },
@@ -236,7 +236,7 @@ exports.verifyOtpReqeust = {
236
236
  message.utm_medium = object.utm_medium ?? undefined;
237
237
  message.utm_campaign = object.utm_campaign ?? undefined;
238
238
  message.tnc_ids = object.tnc_ids?.map((e) => e) || [];
239
- message.source = object.source ?? undefined;
239
+ message.lead_source = object.lead_source ?? undefined;
240
240
  return message;
241
241
  },
242
242
  };
@@ -249,6 +249,7 @@ function createBaseverifyOtpResponse() {
249
249
  message: "",
250
250
  refresh_token: "",
251
251
  is_eqx_customer: undefined,
252
+ source: undefined,
252
253
  };
253
254
  }
254
255
  exports.verifyOtpResponse = {
@@ -274,6 +275,9 @@ exports.verifyOtpResponse = {
274
275
  if (message.is_eqx_customer !== undefined) {
275
276
  writer.uint32(56).bool(message.is_eqx_customer);
276
277
  }
278
+ if (message.source !== undefined) {
279
+ writer.uint32(66).string(message.source);
280
+ }
277
281
  return writer;
278
282
  },
279
283
  decode(input, length) {
@@ -325,6 +329,12 @@ exports.verifyOtpResponse = {
325
329
  }
326
330
  message.is_eqx_customer = reader.bool();
327
331
  continue;
332
+ case 8:
333
+ if (tag !== 66) {
334
+ break;
335
+ }
336
+ message.source = reader.string();
337
+ continue;
328
338
  }
329
339
  if ((tag & 7) === 4 || tag === 0) {
330
340
  break;
@@ -342,6 +352,7 @@ exports.verifyOtpResponse = {
342
352
  message: isSet(object.message) ? globalThis.String(object.message) : "",
343
353
  refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
344
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,
345
356
  };
346
357
  },
347
358
  toJSON(message) {
@@ -367,6 +378,9 @@ exports.verifyOtpResponse = {
367
378
  if (message.is_eqx_customer !== undefined) {
368
379
  obj.is_eqx_customer = message.is_eqx_customer;
369
380
  }
381
+ if (message.source !== undefined) {
382
+ obj.source = message.source;
383
+ }
370
384
  return obj;
371
385
  },
372
386
  create(base) {
@@ -381,6 +395,7 @@ exports.verifyOtpResponse = {
381
395
  message.message = object.message ?? "";
382
396
  message.refresh_token = object.refresh_token ?? "";
383
397
  message.is_eqx_customer = object.is_eqx_customer ?? undefined;
398
+ message.source = object.source ?? undefined;
384
399
  return message;
385
400
  },
386
401
  };