@stashfin/grpc 1.2.545 → 1.2.546
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
|
@@ -199,12 +199,12 @@ exports.MandateTxnDetails = {
|
|
|
199
199
|
},
|
|
200
200
|
};
|
|
201
201
|
function createBaseData() {
|
|
202
|
-
return { mandateTxnDetails:
|
|
202
|
+
return { mandateTxnDetails: [] };
|
|
203
203
|
}
|
|
204
204
|
exports.Data = {
|
|
205
205
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
206
|
-
|
|
207
|
-
exports.MandateTxnDetails.encode(
|
|
206
|
+
for (const v of message.mandateTxnDetails) {
|
|
207
|
+
exports.MandateTxnDetails.encode(v, writer.uint32(10).fork()).ldelim();
|
|
208
208
|
}
|
|
209
209
|
return writer;
|
|
210
210
|
},
|
|
@@ -219,7 +219,7 @@ exports.Data = {
|
|
|
219
219
|
if (tag !== 10) {
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
|
-
message.mandateTxnDetails
|
|
222
|
+
message.mandateTxnDetails.push(exports.MandateTxnDetails.decode(reader, reader.uint32()));
|
|
223
223
|
continue;
|
|
224
224
|
}
|
|
225
225
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -231,15 +231,15 @@ exports.Data = {
|
|
|
231
231
|
},
|
|
232
232
|
fromJSON(object) {
|
|
233
233
|
return {
|
|
234
|
-
mandateTxnDetails:
|
|
235
|
-
? exports.MandateTxnDetails.fromJSON(
|
|
236
|
-
:
|
|
234
|
+
mandateTxnDetails: globalThis.Array.isArray(object?.mandateTxnDetails)
|
|
235
|
+
? object.mandateTxnDetails.map((e) => exports.MandateTxnDetails.fromJSON(e))
|
|
236
|
+
: [],
|
|
237
237
|
};
|
|
238
238
|
},
|
|
239
239
|
toJSON(message) {
|
|
240
240
|
const obj = {};
|
|
241
|
-
if (message.mandateTxnDetails
|
|
242
|
-
obj.mandateTxnDetails = exports.MandateTxnDetails.toJSON(
|
|
241
|
+
if (message.mandateTxnDetails?.length) {
|
|
242
|
+
obj.mandateTxnDetails = message.mandateTxnDetails.map((e) => exports.MandateTxnDetails.toJSON(e));
|
|
243
243
|
}
|
|
244
244
|
return obj;
|
|
245
245
|
},
|
|
@@ -248,9 +248,7 @@ exports.Data = {
|
|
|
248
248
|
},
|
|
249
249
|
fromPartial(object) {
|
|
250
250
|
const message = createBaseData();
|
|
251
|
-
message.mandateTxnDetails =
|
|
252
|
-
? exports.MandateTxnDetails.fromPartial(object.mandateTxnDetails)
|
|
253
|
-
: undefined;
|
|
251
|
+
message.mandateTxnDetails = object.mandateTxnDetails?.map((e) => exports.MandateTxnDetails.fromPartial(e)) || [];
|
|
254
252
|
return message;
|
|
255
253
|
},
|
|
256
254
|
};
|