@stashfin/grpc 1.2.5 → 1.2.8

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.5",
3
+ "version": "1.2.8",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -17,9 +17,10 @@ export interface response_Data {
17
17
  unlocked?: number | undefined;
18
18
  balance?: number | undefined;
19
19
  rupee_balance?: number | undefined;
20
- txn_id: number;
20
+ txn_id: string;
21
21
  conversion_factor?: number | undefined;
22
22
  txn_status: string;
23
+ txn_sc?: number | undefined;
23
24
  }
24
25
  export declare const request: {
25
26
  encode(message: request, writer?: _m0.Writer): _m0.Writer;
@@ -209,9 +209,10 @@ function createBaseresponse_Data() {
209
209
  unlocked: undefined,
210
210
  balance: undefined,
211
211
  rupee_balance: undefined,
212
- txn_id: 0,
212
+ txn_id: "",
213
213
  conversion_factor: undefined,
214
214
  txn_status: "",
215
+ txn_sc: undefined,
215
216
  };
216
217
  }
217
218
  exports.response_Data = {
@@ -228,8 +229,8 @@ exports.response_Data = {
228
229
  if (message.rupee_balance !== undefined) {
229
230
  writer.uint32(37).float(message.rupee_balance);
230
231
  }
231
- if (message.txn_id !== 0) {
232
- writer.uint32(40).int64(message.txn_id);
232
+ if (message.txn_id !== "") {
233
+ writer.uint32(42).string(message.txn_id);
233
234
  }
234
235
  if (message.conversion_factor !== undefined) {
235
236
  writer.uint32(48).int32(message.conversion_factor);
@@ -237,6 +238,9 @@ exports.response_Data = {
237
238
  if (message.txn_status !== "") {
238
239
  writer.uint32(58).string(message.txn_status);
239
240
  }
241
+ if (message.txn_sc !== undefined) {
242
+ writer.uint32(69).float(message.txn_sc);
243
+ }
240
244
  return writer;
241
245
  },
242
246
  decode(input, length) {
@@ -271,10 +275,10 @@ exports.response_Data = {
271
275
  message.rupee_balance = reader.float();
272
276
  continue;
273
277
  case 5:
274
- if (tag !== 40) {
278
+ if (tag !== 42) {
275
279
  break;
276
280
  }
277
- message.txn_id = longToNumber(reader.int64());
281
+ message.txn_id = reader.string();
278
282
  continue;
279
283
  case 6:
280
284
  if (tag !== 48) {
@@ -288,6 +292,12 @@ exports.response_Data = {
288
292
  }
289
293
  message.txn_status = reader.string();
290
294
  continue;
295
+ case 8:
296
+ if (tag !== 69) {
297
+ break;
298
+ }
299
+ message.txn_sc = reader.float();
300
+ continue;
291
301
  }
292
302
  if ((tag & 7) === 4 || tag === 0) {
293
303
  break;
@@ -302,9 +312,10 @@ exports.response_Data = {
302
312
  unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : undefined,
303
313
  balance: isSet(object.balance) ? globalThis.Number(object.balance) : undefined,
304
314
  rupee_balance: isSet(object.rupee_balance) ? globalThis.Number(object.rupee_balance) : undefined,
305
- txn_id: isSet(object.txn_id) ? globalThis.Number(object.txn_id) : 0,
315
+ txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
306
316
  conversion_factor: isSet(object.conversion_factor) ? globalThis.Number(object.conversion_factor) : undefined,
307
317
  txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
318
+ txn_sc: isSet(object.txn_sc) ? globalThis.Number(object.txn_sc) : undefined,
308
319
  };
309
320
  },
310
321
  toJSON(message) {
@@ -321,8 +332,8 @@ exports.response_Data = {
321
332
  if (message.rupee_balance !== undefined) {
322
333
  obj.rupee_balance = message.rupee_balance;
323
334
  }
324
- if (message.txn_id !== 0) {
325
- obj.txn_id = Math.round(message.txn_id);
335
+ if (message.txn_id !== "") {
336
+ obj.txn_id = message.txn_id;
326
337
  }
327
338
  if (message.conversion_factor !== undefined) {
328
339
  obj.conversion_factor = Math.round(message.conversion_factor);
@@ -330,6 +341,9 @@ exports.response_Data = {
330
341
  if (message.txn_status !== "") {
331
342
  obj.txn_status = message.txn_status;
332
343
  }
344
+ if (message.txn_sc !== undefined) {
345
+ obj.txn_sc = message.txn_sc;
346
+ }
333
347
  return obj;
334
348
  },
335
349
  create(base) {
@@ -341,9 +355,10 @@ exports.response_Data = {
341
355
  message.unlocked = object.unlocked ?? undefined;
342
356
  message.balance = object.balance ?? undefined;
343
357
  message.rupee_balance = object.rupee_balance ?? undefined;
344
- message.txn_id = object.txn_id ?? 0;
358
+ message.txn_id = object.txn_id ?? "";
345
359
  message.conversion_factor = object.conversion_factor ?? undefined;
346
360
  message.txn_status = object.txn_status ?? "";
361
+ message.txn_sc = object.txn_sc ?? undefined;
347
362
  return message;
348
363
  },
349
364
  };