@stashfin/grpc 1.2.539 → 1.2.540

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.539",
3
+ "version": "1.2.540",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -4,6 +4,7 @@ export interface getRecentContactsRequest {
4
4
  limit?: number | undefined;
5
5
  off_set?: number | undefined;
6
6
  txn_type?: string | undefined;
7
+ search_by?: string | undefined;
7
8
  }
8
9
  /** Payment timestamp in ISO format */
9
10
  export interface RecentContacts {
@@ -13,7 +13,7 @@ exports.getRecentContactsResponse = exports.Data = exports.RecentContacts = expo
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.getRecentContacts";
15
15
  function createBasegetRecentContactsRequest() {
16
- return { limit: undefined, off_set: undefined, txn_type: undefined };
16
+ return { limit: undefined, off_set: undefined, txn_type: undefined, search_by: undefined };
17
17
  }
18
18
  exports.getRecentContactsRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -26,6 +26,9 @@ exports.getRecentContactsRequest = {
26
26
  if (message.txn_type !== undefined) {
27
27
  writer.uint32(26).string(message.txn_type);
28
28
  }
29
+ if (message.search_by !== undefined) {
30
+ writer.uint32(34).string(message.search_by);
31
+ }
29
32
  return writer;
30
33
  },
31
34
  decode(input, length) {
@@ -53,6 +56,12 @@ exports.getRecentContactsRequest = {
53
56
  }
54
57
  message.txn_type = reader.string();
55
58
  continue;
59
+ case 4:
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.search_by = reader.string();
64
+ continue;
56
65
  }
57
66
  if ((tag & 7) === 4 || tag === 0) {
58
67
  break;
@@ -66,6 +75,7 @@ exports.getRecentContactsRequest = {
66
75
  limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
67
76
  off_set: isSet(object.off_set) ? globalThis.Number(object.off_set) : undefined,
68
77
  txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : undefined,
78
+ search_by: isSet(object.search_by) ? globalThis.String(object.search_by) : undefined,
69
79
  };
70
80
  },
71
81
  toJSON(message) {
@@ -79,6 +89,9 @@ exports.getRecentContactsRequest = {
79
89
  if (message.txn_type !== undefined) {
80
90
  obj.txn_type = message.txn_type;
81
91
  }
92
+ if (message.search_by !== undefined) {
93
+ obj.search_by = message.search_by;
94
+ }
82
95
  return obj;
83
96
  },
84
97
  create(base) {
@@ -89,6 +102,7 @@ exports.getRecentContactsRequest = {
89
102
  message.limit = object.limit ?? undefined;
90
103
  message.off_set = object.off_set ?? undefined;
91
104
  message.txn_type = object.txn_type ?? undefined;
105
+ message.search_by = object.search_by ?? undefined;
92
106
  return message;
93
107
  },
94
108
  };