@stashfin/grpc 1.2.531 → 1.2.533
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
|
@@ -6,6 +6,7 @@ export interface getTransactionsRequest {
|
|
|
6
6
|
limit?: number | undefined;
|
|
7
7
|
off_set?: number | undefined;
|
|
8
8
|
search_by?: string | undefined;
|
|
9
|
+
months?: string | undefined;
|
|
9
10
|
}
|
|
10
11
|
export interface Transactions {
|
|
11
12
|
/** External transaction ID */
|
|
@@ -39,6 +40,7 @@ export interface Transactions {
|
|
|
39
40
|
}
|
|
40
41
|
export interface Data {
|
|
41
42
|
transactions: Transactions[];
|
|
43
|
+
count?: number | undefined;
|
|
42
44
|
}
|
|
43
45
|
export interface getTransactionsResponse {
|
|
44
46
|
status: string;
|
|
@@ -13,7 +13,14 @@ 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 {
|
|
16
|
+
return {
|
|
17
|
+
txn_status: [],
|
|
18
|
+
txn_type: [],
|
|
19
|
+
limit: undefined,
|
|
20
|
+
off_set: undefined,
|
|
21
|
+
search_by: undefined,
|
|
22
|
+
months: undefined,
|
|
23
|
+
};
|
|
17
24
|
}
|
|
18
25
|
exports.getTransactionsRequest = {
|
|
19
26
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -32,6 +39,9 @@ exports.getTransactionsRequest = {
|
|
|
32
39
|
if (message.search_by !== undefined) {
|
|
33
40
|
writer.uint32(42).string(message.search_by);
|
|
34
41
|
}
|
|
42
|
+
if (message.months !== undefined) {
|
|
43
|
+
writer.uint32(50).string(message.months);
|
|
44
|
+
}
|
|
35
45
|
return writer;
|
|
36
46
|
},
|
|
37
47
|
decode(input, length) {
|
|
@@ -71,6 +81,12 @@ exports.getTransactionsRequest = {
|
|
|
71
81
|
}
|
|
72
82
|
message.search_by = reader.string();
|
|
73
83
|
continue;
|
|
84
|
+
case 6:
|
|
85
|
+
if (tag !== 50) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.months = reader.string();
|
|
89
|
+
continue;
|
|
74
90
|
}
|
|
75
91
|
if ((tag & 7) === 4 || tag === 0) {
|
|
76
92
|
break;
|
|
@@ -88,6 +104,7 @@ exports.getTransactionsRequest = {
|
|
|
88
104
|
limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
|
|
89
105
|
off_set: isSet(object.off_set) ? globalThis.Number(object.off_set) : undefined,
|
|
90
106
|
search_by: isSet(object.search_by) ? globalThis.String(object.search_by) : undefined,
|
|
107
|
+
months: isSet(object.months) ? globalThis.String(object.months) : undefined,
|
|
91
108
|
};
|
|
92
109
|
},
|
|
93
110
|
toJSON(message) {
|
|
@@ -107,6 +124,9 @@ exports.getTransactionsRequest = {
|
|
|
107
124
|
if (message.search_by !== undefined) {
|
|
108
125
|
obj.search_by = message.search_by;
|
|
109
126
|
}
|
|
127
|
+
if (message.months !== undefined) {
|
|
128
|
+
obj.months = message.months;
|
|
129
|
+
}
|
|
110
130
|
return obj;
|
|
111
131
|
},
|
|
112
132
|
create(base) {
|
|
@@ -119,6 +139,7 @@ exports.getTransactionsRequest = {
|
|
|
119
139
|
message.limit = object.limit ?? undefined;
|
|
120
140
|
message.off_set = object.off_set ?? undefined;
|
|
121
141
|
message.search_by = object.search_by ?? undefined;
|
|
142
|
+
message.months = object.months ?? undefined;
|
|
122
143
|
return message;
|
|
123
144
|
},
|
|
124
145
|
};
|
|
@@ -372,13 +393,16 @@ exports.Transactions = {
|
|
|
372
393
|
},
|
|
373
394
|
};
|
|
374
395
|
function createBaseData() {
|
|
375
|
-
return { transactions: [] };
|
|
396
|
+
return { transactions: [], count: undefined };
|
|
376
397
|
}
|
|
377
398
|
exports.Data = {
|
|
378
399
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
379
400
|
for (const v of message.transactions) {
|
|
380
401
|
exports.Transactions.encode(v, writer.uint32(10).fork()).ldelim();
|
|
381
402
|
}
|
|
403
|
+
if (message.count !== undefined) {
|
|
404
|
+
writer.uint32(16).int32(message.count);
|
|
405
|
+
}
|
|
382
406
|
return writer;
|
|
383
407
|
},
|
|
384
408
|
decode(input, length) {
|
|
@@ -394,6 +418,12 @@ exports.Data = {
|
|
|
394
418
|
}
|
|
395
419
|
message.transactions.push(exports.Transactions.decode(reader, reader.uint32()));
|
|
396
420
|
continue;
|
|
421
|
+
case 2:
|
|
422
|
+
if (tag !== 16) {
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
message.count = reader.int32();
|
|
426
|
+
continue;
|
|
397
427
|
}
|
|
398
428
|
if ((tag & 7) === 4 || tag === 0) {
|
|
399
429
|
break;
|
|
@@ -407,6 +437,7 @@ exports.Data = {
|
|
|
407
437
|
transactions: globalThis.Array.isArray(object?.transactions)
|
|
408
438
|
? object.transactions.map((e) => exports.Transactions.fromJSON(e))
|
|
409
439
|
: [],
|
|
440
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : undefined,
|
|
410
441
|
};
|
|
411
442
|
},
|
|
412
443
|
toJSON(message) {
|
|
@@ -414,6 +445,9 @@ exports.Data = {
|
|
|
414
445
|
if (message.transactions?.length) {
|
|
415
446
|
obj.transactions = message.transactions.map((e) => exports.Transactions.toJSON(e));
|
|
416
447
|
}
|
|
448
|
+
if (message.count !== undefined) {
|
|
449
|
+
obj.count = Math.round(message.count);
|
|
450
|
+
}
|
|
417
451
|
return obj;
|
|
418
452
|
},
|
|
419
453
|
create(base) {
|
|
@@ -422,6 +456,7 @@ exports.Data = {
|
|
|
422
456
|
fromPartial(object) {
|
|
423
457
|
const message = createBaseData();
|
|
424
458
|
message.transactions = object.transactions?.map((e) => exports.Transactions.fromPartial(e)) || [];
|
|
459
|
+
message.count = object.count ?? undefined;
|
|
425
460
|
return message;
|
|
426
461
|
},
|
|
427
462
|
};
|