@stashfin/grpc 1.2.529 → 1.2.531

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.529",
3
+ "version": "1.2.531",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -3,6 +3,7 @@ export declare const protobufPackage = "upi.getRecentContacts";
3
3
  export interface getRecentContactsRequest {
4
4
  limit?: number | undefined;
5
5
  off_set?: number | undefined;
6
+ txn_type?: string | undefined;
6
7
  }
7
8
  /** Payment timestamp in ISO format */
8
9
  export interface RecentContacts {
@@ -10,6 +11,10 @@ export interface RecentContacts {
10
11
  payee_vpa?: string | undefined;
11
12
  /** Name of the payee */
12
13
  payee_name?: string | undefined;
14
+ payee_acc_number?: string | undefined;
15
+ payee_acc_provider?: string | undefined;
16
+ created_at?: string | undefined;
17
+ amount?: string | undefined;
13
18
  }
14
19
  export interface Data {
15
20
  contacts: 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 };
16
+ return { limit: undefined, off_set: undefined, txn_type: undefined };
17
17
  }
18
18
  exports.getRecentContactsRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -23,6 +23,9 @@ exports.getRecentContactsRequest = {
23
23
  if (message.off_set !== undefined) {
24
24
  writer.uint32(16).int32(message.off_set);
25
25
  }
26
+ if (message.txn_type !== undefined) {
27
+ writer.uint32(26).string(message.txn_type);
28
+ }
26
29
  return writer;
27
30
  },
28
31
  decode(input, length) {
@@ -44,6 +47,12 @@ exports.getRecentContactsRequest = {
44
47
  }
45
48
  message.off_set = reader.int32();
46
49
  continue;
50
+ case 3:
51
+ if (tag !== 26) {
52
+ break;
53
+ }
54
+ message.txn_type = reader.string();
55
+ continue;
47
56
  }
48
57
  if ((tag & 7) === 4 || tag === 0) {
49
58
  break;
@@ -56,6 +65,7 @@ exports.getRecentContactsRequest = {
56
65
  return {
57
66
  limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
58
67
  off_set: isSet(object.off_set) ? globalThis.Number(object.off_set) : undefined,
68
+ txn_type: isSet(object.txn_type) ? globalThis.String(object.txn_type) : undefined,
59
69
  };
60
70
  },
61
71
  toJSON(message) {
@@ -66,6 +76,9 @@ exports.getRecentContactsRequest = {
66
76
  if (message.off_set !== undefined) {
67
77
  obj.off_set = Math.round(message.off_set);
68
78
  }
79
+ if (message.txn_type !== undefined) {
80
+ obj.txn_type = message.txn_type;
81
+ }
69
82
  return obj;
70
83
  },
71
84
  create(base) {
@@ -75,11 +88,19 @@ exports.getRecentContactsRequest = {
75
88
  const message = createBasegetRecentContactsRequest();
76
89
  message.limit = object.limit ?? undefined;
77
90
  message.off_set = object.off_set ?? undefined;
91
+ message.txn_type = object.txn_type ?? undefined;
78
92
  return message;
79
93
  },
80
94
  };
81
95
  function createBaseRecentContacts() {
82
- return { payee_vpa: undefined, payee_name: undefined };
96
+ return {
97
+ payee_vpa: undefined,
98
+ payee_name: undefined,
99
+ payee_acc_number: undefined,
100
+ payee_acc_provider: undefined,
101
+ created_at: undefined,
102
+ amount: undefined,
103
+ };
83
104
  }
84
105
  exports.RecentContacts = {
85
106
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -89,6 +110,18 @@ exports.RecentContacts = {
89
110
  if (message.payee_name !== undefined) {
90
111
  writer.uint32(18).string(message.payee_name);
91
112
  }
113
+ if (message.payee_acc_number !== undefined) {
114
+ writer.uint32(26).string(message.payee_acc_number);
115
+ }
116
+ if (message.payee_acc_provider !== undefined) {
117
+ writer.uint32(34).string(message.payee_acc_provider);
118
+ }
119
+ if (message.created_at !== undefined) {
120
+ writer.uint32(42).string(message.created_at);
121
+ }
122
+ if (message.amount !== undefined) {
123
+ writer.uint32(50).string(message.amount);
124
+ }
92
125
  return writer;
93
126
  },
94
127
  decode(input, length) {
@@ -110,6 +143,30 @@ exports.RecentContacts = {
110
143
  }
111
144
  message.payee_name = reader.string();
112
145
  continue;
146
+ case 3:
147
+ if (tag !== 26) {
148
+ break;
149
+ }
150
+ message.payee_acc_number = reader.string();
151
+ continue;
152
+ case 4:
153
+ if (tag !== 34) {
154
+ break;
155
+ }
156
+ message.payee_acc_provider = reader.string();
157
+ continue;
158
+ case 5:
159
+ if (tag !== 42) {
160
+ break;
161
+ }
162
+ message.created_at = reader.string();
163
+ continue;
164
+ case 6:
165
+ if (tag !== 50) {
166
+ break;
167
+ }
168
+ message.amount = reader.string();
169
+ continue;
113
170
  }
114
171
  if ((tag & 7) === 4 || tag === 0) {
115
172
  break;
@@ -122,6 +179,10 @@ exports.RecentContacts = {
122
179
  return {
123
180
  payee_vpa: isSet(object.payee_vpa) ? globalThis.String(object.payee_vpa) : undefined,
124
181
  payee_name: isSet(object.payee_name) ? globalThis.String(object.payee_name) : undefined,
182
+ payee_acc_number: isSet(object.payee_acc_number) ? globalThis.String(object.payee_acc_number) : undefined,
183
+ payee_acc_provider: isSet(object.payee_acc_provider) ? globalThis.String(object.payee_acc_provider) : undefined,
184
+ created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : undefined,
185
+ amount: isSet(object.amount) ? globalThis.String(object.amount) : undefined,
125
186
  };
126
187
  },
127
188
  toJSON(message) {
@@ -132,6 +193,18 @@ exports.RecentContacts = {
132
193
  if (message.payee_name !== undefined) {
133
194
  obj.payee_name = message.payee_name;
134
195
  }
196
+ if (message.payee_acc_number !== undefined) {
197
+ obj.payee_acc_number = message.payee_acc_number;
198
+ }
199
+ if (message.payee_acc_provider !== undefined) {
200
+ obj.payee_acc_provider = message.payee_acc_provider;
201
+ }
202
+ if (message.created_at !== undefined) {
203
+ obj.created_at = message.created_at;
204
+ }
205
+ if (message.amount !== undefined) {
206
+ obj.amount = message.amount;
207
+ }
135
208
  return obj;
136
209
  },
137
210
  create(base) {
@@ -141,6 +214,10 @@ exports.RecentContacts = {
141
214
  const message = createBaseRecentContacts();
142
215
  message.payee_vpa = object.payee_vpa ?? undefined;
143
216
  message.payee_name = object.payee_name ?? undefined;
217
+ message.payee_acc_number = object.payee_acc_number ?? undefined;
218
+ message.payee_acc_provider = object.payee_acc_provider ?? undefined;
219
+ message.created_at = object.created_at ?? undefined;
220
+ message.amount = object.amount ?? undefined;
144
221
  return message;
145
222
  },
146
223
  };