@stashfin/grpc 1.2.739 → 1.2.740

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.739",
3
+ "version": "1.2.740",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -17,6 +17,7 @@ export interface getCustomerByIdResponse {
17
17
  pan_number?: string | undefined;
18
18
  pin_code?: string | undefined;
19
19
  dob?: string | undefined;
20
+ credit_score?: number | undefined;
20
21
  }
21
22
  export declare const getCustomerByIdRequest: {
22
23
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -78,6 +78,7 @@ function createBasegetCustomerByIdResponse() {
78
78
  pan_number: undefined,
79
79
  pin_code: undefined,
80
80
  dob: undefined,
81
+ credit_score: undefined,
81
82
  };
82
83
  }
83
84
  exports.getCustomerByIdResponse = {
@@ -121,6 +122,9 @@ exports.getCustomerByIdResponse = {
121
122
  if (message.dob !== undefined) {
122
123
  writer.uint32(106).string(message.dob);
123
124
  }
125
+ if (message.credit_score !== undefined) {
126
+ writer.uint32(112).int32(message.credit_score);
127
+ }
124
128
  return writer;
125
129
  },
126
130
  decode(input, length) {
@@ -208,6 +212,12 @@ exports.getCustomerByIdResponse = {
208
212
  }
209
213
  message.dob = reader.string();
210
214
  continue;
215
+ case 14:
216
+ if (tag !== 112) {
217
+ break;
218
+ }
219
+ message.credit_score = reader.int32();
220
+ continue;
211
221
  }
212
222
  if ((tag & 7) === 4 || tag === 0) {
213
223
  break;
@@ -231,6 +241,7 @@ exports.getCustomerByIdResponse = {
231
241
  pan_number: isSet(object.pan_number) ? globalThis.String(object.pan_number) : undefined,
232
242
  pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : undefined,
233
243
  dob: isSet(object.dob) ? globalThis.String(object.dob) : undefined,
244
+ credit_score: isSet(object.credit_score) ? globalThis.Number(object.credit_score) : undefined,
234
245
  };
235
246
  },
236
247
  toJSON(message) {
@@ -274,6 +285,9 @@ exports.getCustomerByIdResponse = {
274
285
  if (message.dob !== undefined) {
275
286
  obj.dob = message.dob;
276
287
  }
288
+ if (message.credit_score !== undefined) {
289
+ obj.credit_score = Math.round(message.credit_score);
290
+ }
277
291
  return obj;
278
292
  },
279
293
  create(base) {
@@ -294,6 +308,7 @@ exports.getCustomerByIdResponse = {
294
308
  message.pan_number = object.pan_number ?? undefined;
295
309
  message.pin_code = object.pin_code ?? undefined;
296
310
  message.dob = object.dob ?? undefined;
311
+ message.credit_score = object.credit_score ?? undefined;
297
312
  return message;
298
313
  },
299
314
  };
@@ -11,6 +11,7 @@ export interface verifyOtpReqeust {
11
11
  utm_source?: string | undefined;
12
12
  utm_medium?: string | undefined;
13
13
  utm_campaign?: string | undefined;
14
+ tnc_ids: number[];
14
15
  }
15
16
  export interface verifyOtpResponse {
16
17
  auth_token: string;
@@ -24,6 +24,7 @@ function createBaseverifyOtpReqeust() {
24
24
  utm_source: undefined,
25
25
  utm_medium: undefined,
26
26
  utm_campaign: undefined,
27
+ tnc_ids: [],
27
28
  };
28
29
  }
29
30
  exports.verifyOtpReqeust = {
@@ -58,6 +59,11 @@ exports.verifyOtpReqeust = {
58
59
  if (message.utm_campaign !== undefined) {
59
60
  writer.uint32(82).string(message.utm_campaign);
60
61
  }
62
+ writer.uint32(90).fork();
63
+ for (const v of message.tnc_ids) {
64
+ writer.int32(v);
65
+ }
66
+ writer.ldelim();
61
67
  return writer;
62
68
  },
63
69
  decode(input, length) {
@@ -127,6 +133,19 @@ exports.verifyOtpReqeust = {
127
133
  }
128
134
  message.utm_campaign = reader.string();
129
135
  continue;
136
+ case 11:
137
+ if (tag === 88) {
138
+ message.tnc_ids.push(reader.int32());
139
+ continue;
140
+ }
141
+ if (tag === 90) {
142
+ const end2 = reader.uint32() + reader.pos;
143
+ while (reader.pos < end2) {
144
+ message.tnc_ids.push(reader.int32());
145
+ }
146
+ continue;
147
+ }
148
+ break;
130
149
  }
131
150
  if ((tag & 7) === 4 || tag === 0) {
132
151
  break;
@@ -147,6 +166,7 @@ exports.verifyOtpReqeust = {
147
166
  utm_source: isSet(object.utm_source) ? globalThis.String(object.utm_source) : undefined,
148
167
  utm_medium: isSet(object.utm_medium) ? globalThis.String(object.utm_medium) : undefined,
149
168
  utm_campaign: isSet(object.utm_campaign) ? globalThis.String(object.utm_campaign) : undefined,
169
+ tnc_ids: globalThis.Array.isArray(object?.tnc_ids) ? object.tnc_ids.map((e) => globalThis.Number(e)) : [],
150
170
  };
151
171
  },
152
172
  toJSON(message) {
@@ -181,6 +201,9 @@ exports.verifyOtpReqeust = {
181
201
  if (message.utm_campaign !== undefined) {
182
202
  obj.utm_campaign = message.utm_campaign;
183
203
  }
204
+ if (message.tnc_ids?.length) {
205
+ obj.tnc_ids = message.tnc_ids.map((e) => Math.round(e));
206
+ }
184
207
  return obj;
185
208
  },
186
209
  create(base) {
@@ -198,6 +221,7 @@ exports.verifyOtpReqeust = {
198
221
  message.utm_source = object.utm_source ?? undefined;
199
222
  message.utm_medium = object.utm_medium ?? undefined;
200
223
  message.utm_campaign = object.utm_campaign ?? undefined;
224
+ message.tnc_ids = object.tnc_ids?.map((e) => e) || [];
201
225
  return message;
202
226
  },
203
227
  };