@aws-sdk/client-managedblockchain-query 3.535.0 → 3.538.0
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/README.md +8 -0
- package/dist-cjs/index.js +121 -15
- package/dist-es/ManagedBlockchainQuery.js +2 -0
- package/dist-es/commands/ListFilteredTransactionEventsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +7 -4
- package/dist-es/pagination/ListFilteredTransactionEventsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -2
- package/dist-types/ManagedBlockchainQuery.d.ts +7 -0
- package/dist-types/ManagedBlockchainQueryClient.d.ts +3 -2
- package/dist-types/commands/GetTransactionCommand.d.ts +2 -1
- package/dist-types/commands/ListFilteredTransactionEventsCommand.d.ts +129 -0
- package/dist-types/commands/ListTransactionEventsCommand.d.ts +11 -3
- package/dist-types/commands/ListTransactionsCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +341 -130
- package/dist-types/pagination/ListFilteredTransactionEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +17 -0
- package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListFilteredTransactionEventsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +73 -31
- package/dist-types/ts3.4/pagination/ListFilteredTransactionEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -248,6 +248,14 @@ ListAssetContracts
|
|
|
248
248
|
|
|
249
249
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/managedblockchain-query/command/ListAssetContractsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-managedblockchain-query/Interface/ListAssetContractsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-managedblockchain-query/Interface/ListAssetContractsCommandOutput/)
|
|
250
250
|
|
|
251
|
+
</details>
|
|
252
|
+
<details>
|
|
253
|
+
<summary>
|
|
254
|
+
ListFilteredTransactionEvents
|
|
255
|
+
</summary>
|
|
256
|
+
|
|
257
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/managedblockchain-query/command/ListFilteredTransactionEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-managedblockchain-query/Interface/ListFilteredTransactionEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-managedblockchain-query/Interface/ListFilteredTransactionEventsCommandOutput/)
|
|
258
|
+
|
|
251
259
|
</details>
|
|
252
260
|
<details>
|
|
253
261
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -31,6 +31,8 @@ __export(src_exports, {
|
|
|
31
31
|
GetTransactionCommand: () => GetTransactionCommand,
|
|
32
32
|
InternalServerException: () => InternalServerException,
|
|
33
33
|
ListAssetContractsCommand: () => ListAssetContractsCommand,
|
|
34
|
+
ListFilteredTransactionEventsCommand: () => ListFilteredTransactionEventsCommand,
|
|
35
|
+
ListFilteredTransactionEventsSortBy: () => ListFilteredTransactionEventsSortBy,
|
|
34
36
|
ListTokenBalancesCommand: () => ListTokenBalancesCommand,
|
|
35
37
|
ListTransactionEventsCommand: () => ListTransactionEventsCommand,
|
|
36
38
|
ListTransactionsCommand: () => ListTransactionsCommand,
|
|
@@ -50,6 +52,7 @@ __export(src_exports, {
|
|
|
50
52
|
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
51
53
|
__Client: () => import_smithy_client.Client,
|
|
52
54
|
paginateListAssetContracts: () => paginateListAssetContracts,
|
|
55
|
+
paginateListFilteredTransactionEvents: () => paginateListFilteredTransactionEvents,
|
|
53
56
|
paginateListTokenBalances: () => paginateListTokenBalances,
|
|
54
57
|
paginateListTransactionEvents: () => paginateListTransactionEvents,
|
|
55
58
|
paginateListTransactions: () => paginateListTransactions
|
|
@@ -396,6 +399,22 @@ var ExecutionStatus = {
|
|
|
396
399
|
FAILED: "FAILED",
|
|
397
400
|
SUCCEEDED: "SUCCEEDED"
|
|
398
401
|
};
|
|
402
|
+
var ListFilteredTransactionEventsSortBy = {
|
|
403
|
+
/**
|
|
404
|
+
* Timestamp of a transaction
|
|
405
|
+
*/
|
|
406
|
+
blockchainInstant: "blockchainInstant"
|
|
407
|
+
};
|
|
408
|
+
var SortOrder = {
|
|
409
|
+
/**
|
|
410
|
+
* Result sorted in ascending order
|
|
411
|
+
*/
|
|
412
|
+
ASCENDING: "ASCENDING",
|
|
413
|
+
/**
|
|
414
|
+
* Result sorted in descending order
|
|
415
|
+
*/
|
|
416
|
+
DESCENDING: "DESCENDING"
|
|
417
|
+
};
|
|
399
418
|
var QueryTransactionEventType = {
|
|
400
419
|
/**
|
|
401
420
|
* A Bitcoin Vin transfer type
|
|
@@ -448,16 +467,6 @@ var ListTransactionsSortBy = {
|
|
|
448
467
|
*/
|
|
449
468
|
TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP"
|
|
450
469
|
};
|
|
451
|
-
var SortOrder = {
|
|
452
|
-
/**
|
|
453
|
-
* Result sorted in ascending order
|
|
454
|
-
*/
|
|
455
|
-
ASCENDING: "ASCENDING",
|
|
456
|
-
/**
|
|
457
|
-
* Result sorted in descending order
|
|
458
|
-
*/
|
|
459
|
-
DESCENDING: "DESCENDING"
|
|
460
|
-
};
|
|
461
470
|
|
|
462
471
|
// src/protocols/Aws_restJson1.ts
|
|
463
472
|
var se_BatchGetTokenBalanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -517,7 +526,8 @@ var se_GetTransactionCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
517
526
|
body = JSON.stringify(
|
|
518
527
|
(0, import_smithy_client.take)(input, {
|
|
519
528
|
network: [],
|
|
520
|
-
transactionHash: []
|
|
529
|
+
transactionHash: [],
|
|
530
|
+
transactionId: []
|
|
521
531
|
})
|
|
522
532
|
);
|
|
523
533
|
b.m("POST").h(headers).b(body);
|
|
@@ -540,6 +550,28 @@ var se_ListAssetContractsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
540
550
|
b.m("POST").h(headers).b(body);
|
|
541
551
|
return b.build();
|
|
542
552
|
}, "se_ListAssetContractsCommand");
|
|
553
|
+
var se_ListFilteredTransactionEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
554
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
555
|
+
const headers = {
|
|
556
|
+
"content-type": "application/json"
|
|
557
|
+
};
|
|
558
|
+
b.bp("/list-filtered-transaction-events");
|
|
559
|
+
let body;
|
|
560
|
+
body = JSON.stringify(
|
|
561
|
+
(0, import_smithy_client.take)(input, {
|
|
562
|
+
addressIdentifierFilter: (_) => (0, import_smithy_client._json)(_),
|
|
563
|
+
confirmationStatusFilter: (_) => (0, import_smithy_client._json)(_),
|
|
564
|
+
maxResults: [],
|
|
565
|
+
network: [],
|
|
566
|
+
nextToken: [],
|
|
567
|
+
sort: (_) => (0, import_smithy_client._json)(_),
|
|
568
|
+
timeFilter: (_) => se_TimeFilter(_, context),
|
|
569
|
+
voutFilter: (_) => (0, import_smithy_client._json)(_)
|
|
570
|
+
})
|
|
571
|
+
);
|
|
572
|
+
b.m("POST").h(headers).b(body);
|
|
573
|
+
return b.build();
|
|
574
|
+
}, "se_ListFilteredTransactionEventsCommand");
|
|
543
575
|
var se_ListTokenBalancesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
544
576
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
545
577
|
const headers = {
|
|
@@ -570,7 +602,8 @@ var se_ListTransactionEventsCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
570
602
|
maxResults: [],
|
|
571
603
|
network: [],
|
|
572
604
|
nextToken: [],
|
|
573
|
-
transactionHash: []
|
|
605
|
+
transactionHash: [],
|
|
606
|
+
transactionId: []
|
|
574
607
|
})
|
|
575
608
|
);
|
|
576
609
|
b.m("POST").h(headers).b(body);
|
|
@@ -677,6 +710,21 @@ var de_ListAssetContractsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
677
710
|
Object.assign(contents, doc);
|
|
678
711
|
return contents;
|
|
679
712
|
}, "de_ListAssetContractsCommand");
|
|
713
|
+
var de_ListFilteredTransactionEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
714
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
+
return de_CommandError(output, context);
|
|
716
|
+
}
|
|
717
|
+
const contents = (0, import_smithy_client.map)({
|
|
718
|
+
$metadata: deserializeMetadata(output)
|
|
719
|
+
});
|
|
720
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
721
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
722
|
+
events: (_) => de_TransactionEventList(_, context),
|
|
723
|
+
nextToken: import_smithy_client.expectString
|
|
724
|
+
});
|
|
725
|
+
Object.assign(contents, doc);
|
|
726
|
+
return contents;
|
|
727
|
+
}, "de_ListFilteredTransactionEventsCommand");
|
|
680
728
|
var de_ListTokenBalancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
730
|
return de_CommandError(output, context);
|
|
@@ -701,7 +749,7 @@ var de_ListTransactionEventsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
701
749
|
});
|
|
702
750
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
703
751
|
const doc = (0, import_smithy_client.take)(data, {
|
|
704
|
-
events:
|
|
752
|
+
events: (_) => de_TransactionEventList(_, context),
|
|
705
753
|
nextToken: import_smithy_client.expectString
|
|
706
754
|
});
|
|
707
755
|
Object.assign(contents, doc);
|
|
@@ -866,6 +914,12 @@ var se_GetTokenBalanceInputList = /* @__PURE__ */ __name((input, context) => {
|
|
|
866
914
|
return se_BatchGetTokenBalanceInputItem(entry, context);
|
|
867
915
|
});
|
|
868
916
|
}, "se_GetTokenBalanceInputList");
|
|
917
|
+
var se_TimeFilter = /* @__PURE__ */ __name((input, context) => {
|
|
918
|
+
return (0, import_smithy_client.take)(input, {
|
|
919
|
+
from: (_) => se_BlockchainInstant(_, context),
|
|
920
|
+
to: (_) => se_BlockchainInstant(_, context)
|
|
921
|
+
});
|
|
922
|
+
}, "se_TimeFilter");
|
|
869
923
|
var de_BatchGetTokenBalanceErrorItem = /* @__PURE__ */ __name((output, context) => {
|
|
870
924
|
return (0, import_smithy_client.take)(output, {
|
|
871
925
|
atBlockchainInstant: (_) => de_BlockchainInstant(_, context),
|
|
@@ -941,11 +995,38 @@ var de_Transaction = /* @__PURE__ */ __name((output, context) => {
|
|
|
941
995
|
transactionTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
942
996
|
});
|
|
943
997
|
}, "de_Transaction");
|
|
998
|
+
var de_TransactionEvent = /* @__PURE__ */ __name((output, context) => {
|
|
999
|
+
return (0, import_smithy_client.take)(output, {
|
|
1000
|
+
blockchainInstant: (_) => de_BlockchainInstant(_, context),
|
|
1001
|
+
confirmationStatus: import_smithy_client.expectString,
|
|
1002
|
+
contractAddress: import_smithy_client.expectString,
|
|
1003
|
+
eventType: import_smithy_client.expectString,
|
|
1004
|
+
from: import_smithy_client.expectString,
|
|
1005
|
+
network: import_smithy_client.expectString,
|
|
1006
|
+
spentVoutIndex: import_smithy_client.expectInt32,
|
|
1007
|
+
spentVoutTransactionHash: import_smithy_client.expectString,
|
|
1008
|
+
spentVoutTransactionId: import_smithy_client.expectString,
|
|
1009
|
+
to: import_smithy_client.expectString,
|
|
1010
|
+
tokenId: import_smithy_client.expectString,
|
|
1011
|
+
transactionHash: import_smithy_client.expectString,
|
|
1012
|
+
transactionId: import_smithy_client.expectString,
|
|
1013
|
+
value: import_smithy_client.expectString,
|
|
1014
|
+
voutIndex: import_smithy_client.expectInt32,
|
|
1015
|
+
voutSpent: import_smithy_client.expectBoolean
|
|
1016
|
+
});
|
|
1017
|
+
}, "de_TransactionEvent");
|
|
1018
|
+
var de_TransactionEventList = /* @__PURE__ */ __name((output, context) => {
|
|
1019
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1020
|
+
return de_TransactionEvent(entry, context);
|
|
1021
|
+
});
|
|
1022
|
+
return retVal;
|
|
1023
|
+
}, "de_TransactionEventList");
|
|
944
1024
|
var de_TransactionOutputItem = /* @__PURE__ */ __name((output, context) => {
|
|
945
1025
|
return (0, import_smithy_client.take)(output, {
|
|
946
1026
|
confirmationStatus: import_smithy_client.expectString,
|
|
947
1027
|
network: import_smithy_client.expectString,
|
|
948
1028
|
transactionHash: import_smithy_client.expectString,
|
|
1029
|
+
transactionId: import_smithy_client.expectString,
|
|
949
1030
|
transactionTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
950
1031
|
});
|
|
951
1032
|
}, "de_TransactionOutputItem");
|
|
@@ -1045,6 +1126,23 @@ var _ListAssetContractsCommand = class _ListAssetContractsCommand extends import
|
|
|
1045
1126
|
__name(_ListAssetContractsCommand, "ListAssetContractsCommand");
|
|
1046
1127
|
var ListAssetContractsCommand = _ListAssetContractsCommand;
|
|
1047
1128
|
|
|
1129
|
+
// src/commands/ListFilteredTransactionEventsCommand.ts
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
var _ListFilteredTransactionEventsCommand = class _ListFilteredTransactionEventsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1135
|
+
...commonParams
|
|
1136
|
+
}).m(function(Command, cs, config, o) {
|
|
1137
|
+
return [
|
|
1138
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1139
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1140
|
+
];
|
|
1141
|
+
}).s("TietonChainQueryService", "ListFilteredTransactionEvents", {}).n("ManagedBlockchainQueryClient", "ListFilteredTransactionEventsCommand").f(void 0, void 0).ser(se_ListFilteredTransactionEventsCommand).de(de_ListFilteredTransactionEventsCommand).build() {
|
|
1142
|
+
};
|
|
1143
|
+
__name(_ListFilteredTransactionEventsCommand, "ListFilteredTransactionEventsCommand");
|
|
1144
|
+
var ListFilteredTransactionEventsCommand = _ListFilteredTransactionEventsCommand;
|
|
1145
|
+
|
|
1048
1146
|
// src/commands/ListTokenBalancesCommand.ts
|
|
1049
1147
|
|
|
1050
1148
|
|
|
@@ -1103,6 +1201,7 @@ var commands = {
|
|
|
1103
1201
|
GetTokenBalanceCommand,
|
|
1104
1202
|
GetTransactionCommand,
|
|
1105
1203
|
ListAssetContractsCommand,
|
|
1204
|
+
ListFilteredTransactionEventsCommand,
|
|
1106
1205
|
ListTokenBalancesCommand,
|
|
1107
1206
|
ListTransactionEventsCommand,
|
|
1108
1207
|
ListTransactionsCommand
|
|
@@ -1117,6 +1216,10 @@ var ManagedBlockchainQuery = _ManagedBlockchainQuery;
|
|
|
1117
1216
|
|
|
1118
1217
|
var paginateListAssetContracts = (0, import_core.createPaginator)(ManagedBlockchainQueryClient, ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");
|
|
1119
1218
|
|
|
1219
|
+
// src/pagination/ListFilteredTransactionEventsPaginator.ts
|
|
1220
|
+
|
|
1221
|
+
var paginateListFilteredTransactionEvents = (0, import_core.createPaginator)(ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
1222
|
+
|
|
1120
1223
|
// src/pagination/ListTokenBalancesPaginator.ts
|
|
1121
1224
|
|
|
1122
1225
|
var paginateListTokenBalances = (0, import_core.createPaginator)(ManagedBlockchainQueryClient, ListTokenBalancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1144,10 +1247,12 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1144
1247
|
GetTokenBalanceCommand,
|
|
1145
1248
|
GetTransactionCommand,
|
|
1146
1249
|
ListAssetContractsCommand,
|
|
1250
|
+
ListFilteredTransactionEventsCommand,
|
|
1147
1251
|
ListTokenBalancesCommand,
|
|
1148
1252
|
ListTransactionEventsCommand,
|
|
1149
1253
|
ListTransactionsCommand,
|
|
1150
1254
|
paginateListAssetContracts,
|
|
1255
|
+
paginateListFilteredTransactionEvents,
|
|
1151
1256
|
paginateListTokenBalances,
|
|
1152
1257
|
paginateListTransactionEvents,
|
|
1153
1258
|
paginateListTransactions,
|
|
@@ -1164,8 +1269,9 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1164
1269
|
ValidationException,
|
|
1165
1270
|
ConfirmationStatus,
|
|
1166
1271
|
ExecutionStatus,
|
|
1272
|
+
ListFilteredTransactionEventsSortBy,
|
|
1273
|
+
SortOrder,
|
|
1167
1274
|
QueryTransactionEventType,
|
|
1168
|
-
ListTransactionsSortBy
|
|
1169
|
-
SortOrder
|
|
1275
|
+
ListTransactionsSortBy
|
|
1170
1276
|
});
|
|
1171
1277
|
|
|
@@ -4,6 +4,7 @@ import { GetAssetContractCommand, } from "./commands/GetAssetContractCommand";
|
|
|
4
4
|
import { GetTokenBalanceCommand, } from "./commands/GetTokenBalanceCommand";
|
|
5
5
|
import { GetTransactionCommand, } from "./commands/GetTransactionCommand";
|
|
6
6
|
import { ListAssetContractsCommand, } from "./commands/ListAssetContractsCommand";
|
|
7
|
+
import { ListFilteredTransactionEventsCommand, } from "./commands/ListFilteredTransactionEventsCommand";
|
|
7
8
|
import { ListTokenBalancesCommand, } from "./commands/ListTokenBalancesCommand";
|
|
8
9
|
import { ListTransactionEventsCommand, } from "./commands/ListTransactionEventsCommand";
|
|
9
10
|
import { ListTransactionsCommand, } from "./commands/ListTransactionsCommand";
|
|
@@ -14,6 +15,7 @@ const commands = {
|
|
|
14
15
|
GetTokenBalanceCommand,
|
|
15
16
|
GetTransactionCommand,
|
|
16
17
|
ListAssetContractsCommand,
|
|
18
|
+
ListFilteredTransactionEventsCommand,
|
|
17
19
|
ListTokenBalancesCommand,
|
|
18
20
|
ListTransactionEventsCommand,
|
|
19
21
|
ListTransactionsCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListFilteredTransactionEventsCommand, se_ListFilteredTransactionEventsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListFilteredTransactionEventsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TietonChainQueryService", "ListFilteredTransactionEvents", {})
|
|
19
|
+
.n("ManagedBlockchainQueryClient", "ListFilteredTransactionEventsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListFilteredTransactionEventsCommand)
|
|
22
|
+
.de(de_ListFilteredTransactionEventsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./GetAssetContractCommand";
|
|
|
3
3
|
export * from "./GetTokenBalanceCommand";
|
|
4
4
|
export * from "./GetTransactionCommand";
|
|
5
5
|
export * from "./ListAssetContractsCommand";
|
|
6
|
+
export * from "./ListFilteredTransactionEventsCommand";
|
|
6
7
|
export * from "./ListTokenBalancesCommand";
|
|
7
8
|
export * from "./ListTransactionEventsCommand";
|
|
8
9
|
export * from "./ListTransactionsCommand";
|
|
@@ -119,6 +119,13 @@ export const ExecutionStatus = {
|
|
|
119
119
|
FAILED: "FAILED",
|
|
120
120
|
SUCCEEDED: "SUCCEEDED",
|
|
121
121
|
};
|
|
122
|
+
export const ListFilteredTransactionEventsSortBy = {
|
|
123
|
+
blockchainInstant: "blockchainInstant",
|
|
124
|
+
};
|
|
125
|
+
export const SortOrder = {
|
|
126
|
+
ASCENDING: "ASCENDING",
|
|
127
|
+
DESCENDING: "DESCENDING",
|
|
128
|
+
};
|
|
122
129
|
export const QueryTransactionEventType = {
|
|
123
130
|
BITCOIN_VIN: "BITCOIN_VIN",
|
|
124
131
|
BITCOIN_VOUT: "BITCOIN_VOUT",
|
|
@@ -135,7 +142,3 @@ export const QueryTransactionEventType = {
|
|
|
135
142
|
export const ListTransactionsSortBy = {
|
|
136
143
|
TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP",
|
|
137
144
|
};
|
|
138
|
-
export const SortOrder = {
|
|
139
|
-
ASCENDING: "ASCENDING",
|
|
140
|
-
DESCENDING: "DESCENDING",
|
|
141
|
-
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListFilteredTransactionEventsCommand, } from "../commands/ListFilteredTransactionEventsCommand";
|
|
3
|
+
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
|
|
4
|
+
export const paginateListFilteredTransactionEvents = createPaginator(ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListAssetContractsPaginator";
|
|
3
|
+
export * from "./ListFilteredTransactionEventsPaginator";
|
|
3
4
|
export * from "./ListTokenBalancesPaginator";
|
|
4
5
|
export * from "./ListTransactionEventsPaginator";
|
|
5
6
|
export * from "./ListTransactionsPaginator";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { ManagedBlockchainQueryServiceException as __BaseException } from "../models/ManagedBlockchainQueryServiceException";
|
|
5
5
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_BatchGetTokenBalanceCommand = async (input, context) => {
|
|
@@ -54,6 +54,7 @@ export const se_GetTransactionCommand = async (input, context) => {
|
|
|
54
54
|
body = JSON.stringify(take(input, {
|
|
55
55
|
network: [],
|
|
56
56
|
transactionHash: [],
|
|
57
|
+
transactionId: [],
|
|
57
58
|
}));
|
|
58
59
|
b.m("POST").h(headers).b(body);
|
|
59
60
|
return b.build();
|
|
@@ -73,6 +74,26 @@ export const se_ListAssetContractsCommand = async (input, context) => {
|
|
|
73
74
|
b.m("POST").h(headers).b(body);
|
|
74
75
|
return b.build();
|
|
75
76
|
};
|
|
77
|
+
export const se_ListFilteredTransactionEventsCommand = async (input, context) => {
|
|
78
|
+
const b = rb(input, context);
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/json",
|
|
81
|
+
};
|
|
82
|
+
b.bp("/list-filtered-transaction-events");
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(take(input, {
|
|
85
|
+
addressIdentifierFilter: (_) => _json(_),
|
|
86
|
+
confirmationStatusFilter: (_) => _json(_),
|
|
87
|
+
maxResults: [],
|
|
88
|
+
network: [],
|
|
89
|
+
nextToken: [],
|
|
90
|
+
sort: (_) => _json(_),
|
|
91
|
+
timeFilter: (_) => se_TimeFilter(_, context),
|
|
92
|
+
voutFilter: (_) => _json(_),
|
|
93
|
+
}));
|
|
94
|
+
b.m("POST").h(headers).b(body);
|
|
95
|
+
return b.build();
|
|
96
|
+
};
|
|
76
97
|
export const se_ListTokenBalancesCommand = async (input, context) => {
|
|
77
98
|
const b = rb(input, context);
|
|
78
99
|
const headers = {
|
|
@@ -101,6 +122,7 @@ export const se_ListTransactionEventsCommand = async (input, context) => {
|
|
|
101
122
|
network: [],
|
|
102
123
|
nextToken: [],
|
|
103
124
|
transactionHash: [],
|
|
125
|
+
transactionId: [],
|
|
104
126
|
}));
|
|
105
127
|
b.m("POST").h(headers).b(body);
|
|
106
128
|
return b.build();
|
|
@@ -204,6 +226,21 @@ export const de_ListAssetContractsCommand = async (output, context) => {
|
|
|
204
226
|
Object.assign(contents, doc);
|
|
205
227
|
return contents;
|
|
206
228
|
};
|
|
229
|
+
export const de_ListFilteredTransactionEventsCommand = async (output, context) => {
|
|
230
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
231
|
+
return de_CommandError(output, context);
|
|
232
|
+
}
|
|
233
|
+
const contents = map({
|
|
234
|
+
$metadata: deserializeMetadata(output),
|
|
235
|
+
});
|
|
236
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
237
|
+
const doc = take(data, {
|
|
238
|
+
events: (_) => de_TransactionEventList(_, context),
|
|
239
|
+
nextToken: __expectString,
|
|
240
|
+
});
|
|
241
|
+
Object.assign(contents, doc);
|
|
242
|
+
return contents;
|
|
243
|
+
};
|
|
207
244
|
export const de_ListTokenBalancesCommand = async (output, context) => {
|
|
208
245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
209
246
|
return de_CommandError(output, context);
|
|
@@ -228,7 +265,7 @@ export const de_ListTransactionEventsCommand = async (output, context) => {
|
|
|
228
265
|
});
|
|
229
266
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
230
267
|
const doc = take(data, {
|
|
231
|
-
events:
|
|
268
|
+
events: (_) => de_TransactionEventList(_, context),
|
|
232
269
|
nextToken: __expectString,
|
|
233
270
|
});
|
|
234
271
|
Object.assign(contents, doc);
|
|
@@ -395,6 +432,12 @@ const se_GetTokenBalanceInputList = (input, context) => {
|
|
|
395
432
|
return se_BatchGetTokenBalanceInputItem(entry, context);
|
|
396
433
|
});
|
|
397
434
|
};
|
|
435
|
+
const se_TimeFilter = (input, context) => {
|
|
436
|
+
return take(input, {
|
|
437
|
+
from: (_) => se_BlockchainInstant(_, context),
|
|
438
|
+
to: (_) => se_BlockchainInstant(_, context),
|
|
439
|
+
});
|
|
440
|
+
};
|
|
398
441
|
const de_BatchGetTokenBalanceErrorItem = (output, context) => {
|
|
399
442
|
return take(output, {
|
|
400
443
|
atBlockchainInstant: (_) => de_BlockchainInstant(_, context),
|
|
@@ -476,11 +519,40 @@ const de_Transaction = (output, context) => {
|
|
|
476
519
|
transactionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
477
520
|
});
|
|
478
521
|
};
|
|
522
|
+
const de_TransactionEvent = (output, context) => {
|
|
523
|
+
return take(output, {
|
|
524
|
+
blockchainInstant: (_) => de_BlockchainInstant(_, context),
|
|
525
|
+
confirmationStatus: __expectString,
|
|
526
|
+
contractAddress: __expectString,
|
|
527
|
+
eventType: __expectString,
|
|
528
|
+
from: __expectString,
|
|
529
|
+
network: __expectString,
|
|
530
|
+
spentVoutIndex: __expectInt32,
|
|
531
|
+
spentVoutTransactionHash: __expectString,
|
|
532
|
+
spentVoutTransactionId: __expectString,
|
|
533
|
+
to: __expectString,
|
|
534
|
+
tokenId: __expectString,
|
|
535
|
+
transactionHash: __expectString,
|
|
536
|
+
transactionId: __expectString,
|
|
537
|
+
value: __expectString,
|
|
538
|
+
voutIndex: __expectInt32,
|
|
539
|
+
voutSpent: __expectBoolean,
|
|
540
|
+
});
|
|
541
|
+
};
|
|
542
|
+
const de_TransactionEventList = (output, context) => {
|
|
543
|
+
const retVal = (output || [])
|
|
544
|
+
.filter((e) => e != null)
|
|
545
|
+
.map((entry) => {
|
|
546
|
+
return de_TransactionEvent(entry, context);
|
|
547
|
+
});
|
|
548
|
+
return retVal;
|
|
549
|
+
};
|
|
479
550
|
const de_TransactionOutputItem = (output, context) => {
|
|
480
551
|
return take(output, {
|
|
481
552
|
confirmationStatus: __expectString,
|
|
482
553
|
network: __expectString,
|
|
483
554
|
transactionHash: __expectString,
|
|
555
|
+
transactionId: __expectString,
|
|
484
556
|
transactionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
485
557
|
});
|
|
486
558
|
};
|
|
@@ -4,6 +4,7 @@ import { GetAssetContractCommandInput, GetAssetContractCommandOutput } from "./c
|
|
|
4
4
|
import { GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput } from "./commands/GetTokenBalanceCommand";
|
|
5
5
|
import { GetTransactionCommandInput, GetTransactionCommandOutput } from "./commands/GetTransactionCommand";
|
|
6
6
|
import { ListAssetContractsCommandInput, ListAssetContractsCommandOutput } from "./commands/ListAssetContractsCommand";
|
|
7
|
+
import { ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput } from "./commands/ListFilteredTransactionEventsCommand";
|
|
7
8
|
import { ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput } from "./commands/ListTokenBalancesCommand";
|
|
8
9
|
import { ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput } from "./commands/ListTransactionEventsCommand";
|
|
9
10
|
import { ListTransactionsCommandInput, ListTransactionsCommandOutput } from "./commands/ListTransactionsCommand";
|
|
@@ -40,6 +41,12 @@ export interface ManagedBlockchainQuery {
|
|
|
40
41
|
listAssetContracts(args: ListAssetContractsCommandInput, options?: __HttpHandlerOptions): Promise<ListAssetContractsCommandOutput>;
|
|
41
42
|
listAssetContracts(args: ListAssetContractsCommandInput, cb: (err: any, data?: ListAssetContractsCommandOutput) => void): void;
|
|
42
43
|
listAssetContracts(args: ListAssetContractsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssetContractsCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link ListFilteredTransactionEventsCommand}
|
|
46
|
+
*/
|
|
47
|
+
listFilteredTransactionEvents(args: ListFilteredTransactionEventsCommandInput, options?: __HttpHandlerOptions): Promise<ListFilteredTransactionEventsCommandOutput>;
|
|
48
|
+
listFilteredTransactionEvents(args: ListFilteredTransactionEventsCommandInput, cb: (err: any, data?: ListFilteredTransactionEventsCommandOutput) => void): void;
|
|
49
|
+
listFilteredTransactionEvents(args: ListFilteredTransactionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFilteredTransactionEventsCommandOutput) => void): void;
|
|
43
50
|
/**
|
|
44
51
|
* @see {@link ListTokenBalancesCommand}
|
|
45
52
|
*/
|
|
@@ -12,6 +12,7 @@ import { GetAssetContractCommandInput, GetAssetContractCommandOutput } from "./c
|
|
|
12
12
|
import { GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput } from "./commands/GetTokenBalanceCommand";
|
|
13
13
|
import { GetTransactionCommandInput, GetTransactionCommandOutput } from "./commands/GetTransactionCommand";
|
|
14
14
|
import { ListAssetContractsCommandInput, ListAssetContractsCommandOutput } from "./commands/ListAssetContractsCommand";
|
|
15
|
+
import { ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput } from "./commands/ListFilteredTransactionEventsCommand";
|
|
15
16
|
import { ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput } from "./commands/ListTokenBalancesCommand";
|
|
16
17
|
import { ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput } from "./commands/ListTransactionEventsCommand";
|
|
17
18
|
import { ListTransactionsCommandInput, ListTransactionsCommandOutput } from "./commands/ListTransactionsCommand";
|
|
@@ -21,11 +22,11 @@ export { __Client };
|
|
|
21
22
|
/**
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
|
-
export type ServiceInputTypes = BatchGetTokenBalanceCommandInput | GetAssetContractCommandInput | GetTokenBalanceCommandInput | GetTransactionCommandInput | ListAssetContractsCommandInput | ListTokenBalancesCommandInput | ListTransactionEventsCommandInput | ListTransactionsCommandInput;
|
|
25
|
+
export type ServiceInputTypes = BatchGetTokenBalanceCommandInput | GetAssetContractCommandInput | GetTokenBalanceCommandInput | GetTransactionCommandInput | ListAssetContractsCommandInput | ListFilteredTransactionEventsCommandInput | ListTokenBalancesCommandInput | ListTransactionEventsCommandInput | ListTransactionsCommandInput;
|
|
25
26
|
/**
|
|
26
27
|
* @public
|
|
27
28
|
*/
|
|
28
|
-
export type ServiceOutputTypes = BatchGetTokenBalanceCommandOutput | GetAssetContractCommandOutput | GetTokenBalanceCommandOutput | GetTransactionCommandOutput | ListAssetContractsCommandOutput | ListTokenBalancesCommandOutput | ListTransactionEventsCommandOutput | ListTransactionsCommandOutput;
|
|
29
|
+
export type ServiceOutputTypes = BatchGetTokenBalanceCommandOutput | GetAssetContractCommandOutput | GetTokenBalanceCommandOutput | GetTransactionCommandOutput | ListAssetContractsCommandOutput | ListFilteredTransactionEventsCommandOutput | ListTokenBalancesCommandOutput | ListTransactionEventsCommandOutput | ListTransactionsCommandOutput;
|
|
29
30
|
/**
|
|
30
31
|
* @public
|
|
31
32
|
*/
|
|
@@ -40,7 +40,8 @@ declare const GetTransactionCommand_base: {
|
|
|
40
40
|
* // const { ManagedBlockchainQueryClient, GetTransactionCommand } = require("@aws-sdk/client-managedblockchain-query"); // CommonJS import
|
|
41
41
|
* const client = new ManagedBlockchainQueryClient(config);
|
|
42
42
|
* const input = { // GetTransactionInput
|
|
43
|
-
* transactionHash: "STRING_VALUE",
|
|
43
|
+
* transactionHash: "STRING_VALUE",
|
|
44
|
+
* transactionId: "STRING_VALUE",
|
|
44
45
|
* network: "STRING_VALUE", // required
|
|
45
46
|
* };
|
|
46
47
|
* const command = new GetTransactionCommand(input);
|