@stashfin/grpc 1.2.835 → 1.2.837

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.835",
3
+ "version": "1.2.837",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -18,6 +18,7 @@ export interface getCustomerByIdResponse {
18
18
  dob?: string | undefined;
19
19
  credit_score?: number | undefined;
20
20
  is_bureau_fetched: boolean;
21
+ next_step?: string | undefined;
21
22
  }
22
23
  export declare const getCustomerByIdRequest: {
23
24
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -79,6 +79,7 @@ function createBasegetCustomerByIdResponse() {
79
79
  dob: undefined,
80
80
  credit_score: undefined,
81
81
  is_bureau_fetched: false,
82
+ next_step: undefined,
82
83
  };
83
84
  }
84
85
  exports.getCustomerByIdResponse = {
@@ -125,6 +126,9 @@ exports.getCustomerByIdResponse = {
125
126
  if (message.is_bureau_fetched !== false) {
126
127
  writer.uint32(112).bool(message.is_bureau_fetched);
127
128
  }
129
+ if (message.next_step !== undefined) {
130
+ writer.uint32(122).string(message.next_step);
131
+ }
128
132
  return writer;
129
133
  },
130
134
  decode(input, length) {
@@ -218,6 +222,12 @@ exports.getCustomerByIdResponse = {
218
222
  }
219
223
  message.is_bureau_fetched = reader.bool();
220
224
  continue;
225
+ case 15:
226
+ if (tag !== 122) {
227
+ break;
228
+ }
229
+ message.next_step = reader.string();
230
+ continue;
221
231
  }
222
232
  if ((tag & 7) === 4 || tag === 0) {
223
233
  break;
@@ -242,6 +252,7 @@ exports.getCustomerByIdResponse = {
242
252
  dob: isSet(object.dob) ? globalThis.String(object.dob) : undefined,
243
253
  credit_score: isSet(object.credit_score) ? globalThis.Number(object.credit_score) : undefined,
244
254
  is_bureau_fetched: isSet(object.is_bureau_fetched) ? globalThis.Boolean(object.is_bureau_fetched) : false,
255
+ next_step: isSet(object.next_step) ? globalThis.String(object.next_step) : undefined,
245
256
  };
246
257
  },
247
258
  toJSON(message) {
@@ -288,6 +299,9 @@ exports.getCustomerByIdResponse = {
288
299
  if (message.is_bureau_fetched !== false) {
289
300
  obj.is_bureau_fetched = message.is_bureau_fetched;
290
301
  }
302
+ if (message.next_step !== undefined) {
303
+ obj.next_step = message.next_step;
304
+ }
291
305
  return obj;
292
306
  },
293
307
  create(base) {
@@ -309,6 +323,7 @@ exports.getCustomerByIdResponse = {
309
323
  message.dob = object.dob ?? undefined;
310
324
  message.credit_score = object.credit_score ?? undefined;
311
325
  message.is_bureau_fetched = object.is_bureau_fetched ?? false;
326
+ message.next_step = object.next_step ?? undefined;
312
327
  return message;
313
328
  },
314
329
  };
@@ -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
+ source?: string | undefined;
15
16
  }
16
17
  export interface verifyOtpResponse {
17
18
  auth_token: string;
@@ -25,6 +25,7 @@ function createBaseverifyOtpReqeust() {
25
25
  utm_medium: undefined,
26
26
  utm_campaign: undefined,
27
27
  tnc_ids: [],
28
+ 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.source !== undefined) {
69
+ writer.uint32(98).string(message.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.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
+ source: isSet(object.source) ? globalThis.String(object.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.source !== undefined) {
219
+ obj.source = message.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.source = object.source ?? undefined;
225
240
  return message;
226
241
  },
227
242
  };