@stashfin/grpc 1.2.485 → 1.2.486

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.485",
3
+ "version": "1.2.486",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -2,6 +2,7 @@ import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "upi.getTransactions";
3
3
  export interface getTransactionsRequest {
4
4
  txn_status?: string | undefined;
5
+ txn_type?: string | undefined;
5
6
  limit?: number | undefined;
6
7
  off_set?: number | undefined;
7
8
  }
@@ -13,18 +13,21 @@ exports.getTransactionsResponse = exports.Data = exports.Transactions = exports.
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.getTransactions";
15
15
  function createBasegetTransactionsRequest() {
16
- return { txn_status: undefined, limit: undefined, off_set: undefined };
16
+ return { txn_status: undefined, txn_type: undefined, limit: undefined, off_set: undefined };
17
17
  }
18
18
  exports.getTransactionsRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
20
  if (message.txn_status !== undefined) {
21
21
  writer.uint32(10).string(message.txn_status);
22
22
  }
23
+ if (message.txn_type !== undefined) {
24
+ writer.uint32(18).string(message.txn_type);
25
+ }
23
26
  if (message.limit !== undefined) {
24
- writer.uint32(16).int32(message.limit);
27
+ writer.uint32(24).int32(message.limit);
25
28
  }
26
29
  if (message.off_set !== undefined) {
27
- writer.uint32(24).int32(message.off_set);
30
+ writer.uint32(32).int32(message.off_set);
28
31
  }
29
32
  return writer;
30
33
  },
@@ -42,15 +45,21 @@ exports.getTransactionsRequest = {
42
45
  message.txn_status = reader.string();
43
46
  continue;
44
47
  case 2:
45
- if (tag !== 16) {
48
+ if (tag !== 18) {
46
49
  break;
47
50
  }
48
- message.limit = reader.int32();
51
+ message.txn_type = reader.string();
49
52
  continue;
50
53
  case 3:
51
54
  if (tag !== 24) {
52
55
  break;
53
56
  }
57
+ message.limit = reader.int32();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 32) {
61
+ break;
62
+ }
54
63
  message.off_set = reader.int32();
55
64
  continue;
56
65
  }
@@ -64,6 +73,7 @@ exports.getTransactionsRequest = {
64
73
  fromJSON(object) {
65
74
  return {
66
75
  txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : undefined,
76
+ txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : undefined,
67
77
  limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
68
78
  off_set: isSet(object.off_set) ? globalThis.Number(object.off_set) : undefined,
69
79
  };
@@ -73,6 +83,9 @@ exports.getTransactionsRequest = {
73
83
  if (message.txn_status !== undefined) {
74
84
  obj.txn_status = message.txn_status;
75
85
  }
86
+ if (message.txn_type !== undefined) {
87
+ obj.txn_type = message.txn_type;
88
+ }
76
89
  if (message.limit !== undefined) {
77
90
  obj.limit = Math.round(message.limit);
78
91
  }
@@ -87,6 +100,7 @@ exports.getTransactionsRequest = {
87
100
  fromPartial(object) {
88
101
  const message = createBasegetTransactionsRequest();
89
102
  message.txn_status = object.txn_status ?? undefined;
103
+ message.txn_type = object.txn_type ?? undefined;
90
104
  message.limit = object.limit ?? undefined;
91
105
  message.off_set = object.off_set ?? undefined;
92
106
  return message;