@stashfin/grpc 1.2.532 → 1.2.533

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.532",
3
+ "version": "1.2.533",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -40,7 +40,7 @@ export interface Transactions {
40
40
  }
41
41
  export interface Data {
42
42
  transactions: Transactions[];
43
- count?: string | undefined;
43
+ count?: number | undefined;
44
44
  }
45
45
  export interface getTransactionsResponse {
46
46
  status: string;
@@ -401,7 +401,7 @@ exports.Data = {
401
401
  exports.Transactions.encode(v, writer.uint32(10).fork()).ldelim();
402
402
  }
403
403
  if (message.count !== undefined) {
404
- writer.uint32(18).string(message.count);
404
+ writer.uint32(16).int32(message.count);
405
405
  }
406
406
  return writer;
407
407
  },
@@ -419,10 +419,10 @@ exports.Data = {
419
419
  message.transactions.push(exports.Transactions.decode(reader, reader.uint32()));
420
420
  continue;
421
421
  case 2:
422
- if (tag !== 18) {
422
+ if (tag !== 16) {
423
423
  break;
424
424
  }
425
- message.count = reader.string();
425
+ message.count = reader.int32();
426
426
  continue;
427
427
  }
428
428
  if ((tag & 7) === 4 || tag === 0) {
@@ -437,7 +437,7 @@ exports.Data = {
437
437
  transactions: globalThis.Array.isArray(object?.transactions)
438
438
  ? object.transactions.map((e) => exports.Transactions.fromJSON(e))
439
439
  : [],
440
- count: isSet(object.count) ? globalThis.String(object.count) : undefined,
440
+ count: isSet(object.count) ? globalThis.Number(object.count) : undefined,
441
441
  };
442
442
  },
443
443
  toJSON(message) {
@@ -446,7 +446,7 @@ exports.Data = {
446
446
  obj.transactions = message.transactions.map((e) => exports.Transactions.toJSON(e));
447
447
  }
448
448
  if (message.count !== undefined) {
449
- obj.count = message.count;
449
+ obj.count = Math.round(message.count);
450
450
  }
451
451
  return obj;
452
452
  },