@stashfin/grpc 1.2.518 → 1.2.519

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.518",
3
+ "version": "1.2.519",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,6 +5,7 @@ export interface getTransactionsRequest {
5
5
  txn_type: string[];
6
6
  limit?: number | undefined;
7
7
  off_set?: number | undefined;
8
+ search_by?: string | undefined;
8
9
  }
9
10
  export interface Transactions {
10
11
  /** External transaction ID */
@@ -13,7 +13,7 @@ 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: [], txn_type: [], limit: undefined, off_set: undefined };
16
+ return { txn_status: [], txn_type: [], limit: undefined, off_set: undefined, search_by: undefined };
17
17
  }
18
18
  exports.getTransactionsRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -29,6 +29,9 @@ exports.getTransactionsRequest = {
29
29
  if (message.off_set !== undefined) {
30
30
  writer.uint32(32).int32(message.off_set);
31
31
  }
32
+ if (message.search_by !== undefined) {
33
+ writer.uint32(42).string(message.search_by);
34
+ }
32
35
  return writer;
33
36
  },
34
37
  decode(input, length) {
@@ -62,6 +65,12 @@ exports.getTransactionsRequest = {
62
65
  }
63
66
  message.off_set = reader.int32();
64
67
  continue;
68
+ case 5:
69
+ if (tag !== 42) {
70
+ break;
71
+ }
72
+ message.search_by = reader.string();
73
+ continue;
65
74
  }
66
75
  if ((tag & 7) === 4 || tag === 0) {
67
76
  break;
@@ -78,6 +87,7 @@ exports.getTransactionsRequest = {
78
87
  txn_type: globalThis.Array.isArray(object?.txn_type) ? object.txn_type.map((e) => globalThis.String(e)) : [],
79
88
  limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
80
89
  off_set: isSet(object.off_set) ? globalThis.Number(object.off_set) : undefined,
90
+ search_by: isSet(object.search_by) ? globalThis.String(object.search_by) : undefined,
81
91
  };
82
92
  },
83
93
  toJSON(message) {
@@ -94,6 +104,9 @@ exports.getTransactionsRequest = {
94
104
  if (message.off_set !== undefined) {
95
105
  obj.off_set = Math.round(message.off_set);
96
106
  }
107
+ if (message.search_by !== undefined) {
108
+ obj.search_by = message.search_by;
109
+ }
97
110
  return obj;
98
111
  },
99
112
  create(base) {
@@ -105,6 +118,7 @@ exports.getTransactionsRequest = {
105
118
  message.txn_type = object.txn_type?.map((e) => e) || [];
106
119
  message.limit = object.limit ?? undefined;
107
120
  message.off_set = object.off_set ?? undefined;
121
+ message.search_by = object.search_by ?? undefined;
108
122
  return message;
109
123
  },
110
124
  };