@aws-sdk/client-managedblockchain-query 3.975.0 → 3.978.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/dist-cjs/index.js
CHANGED
|
@@ -771,6 +771,16 @@ class ListTransactionsCommand extends smithyClient.Command
|
|
|
771
771
|
.build() {
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
+
const paginateListAssetContracts = core.createPaginator(ManagedBlockchainQueryClient, ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");
|
|
775
|
+
|
|
776
|
+
const paginateListFilteredTransactionEvents = core.createPaginator(ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
777
|
+
|
|
778
|
+
const paginateListTokenBalances = core.createPaginator(ManagedBlockchainQueryClient, ListTokenBalancesCommand, "nextToken", "nextToken", "maxResults");
|
|
779
|
+
|
|
780
|
+
const paginateListTransactionEvents = core.createPaginator(ManagedBlockchainQueryClient, ListTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
781
|
+
|
|
782
|
+
const paginateListTransactions = core.createPaginator(ManagedBlockchainQueryClient, ListTransactionsCommand, "nextToken", "nextToken", "maxResults");
|
|
783
|
+
|
|
774
784
|
const commands = {
|
|
775
785
|
BatchGetTokenBalanceCommand,
|
|
776
786
|
GetAssetContractCommand,
|
|
@@ -782,19 +792,16 @@ const commands = {
|
|
|
782
792
|
ListTransactionEventsCommand,
|
|
783
793
|
ListTransactionsCommand,
|
|
784
794
|
};
|
|
795
|
+
const paginators = {
|
|
796
|
+
paginateListAssetContracts,
|
|
797
|
+
paginateListFilteredTransactionEvents,
|
|
798
|
+
paginateListTokenBalances,
|
|
799
|
+
paginateListTransactionEvents,
|
|
800
|
+
paginateListTransactions,
|
|
801
|
+
};
|
|
785
802
|
class ManagedBlockchainQuery extends ManagedBlockchainQueryClient {
|
|
786
803
|
}
|
|
787
|
-
smithyClient.createAggregatedClient(commands, ManagedBlockchainQuery);
|
|
788
|
-
|
|
789
|
-
const paginateListAssetContracts = core.createPaginator(ManagedBlockchainQueryClient, ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");
|
|
790
|
-
|
|
791
|
-
const paginateListFilteredTransactionEvents = core.createPaginator(ManagedBlockchainQueryClient, ListFilteredTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
792
|
-
|
|
793
|
-
const paginateListTokenBalances = core.createPaginator(ManagedBlockchainQueryClient, ListTokenBalancesCommand, "nextToken", "nextToken", "maxResults");
|
|
794
|
-
|
|
795
|
-
const paginateListTransactionEvents = core.createPaginator(ManagedBlockchainQueryClient, ListTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
796
|
-
|
|
797
|
-
const paginateListTransactions = core.createPaginator(ManagedBlockchainQueryClient, ListTransactionsCommand, "nextToken", "nextToken", "maxResults");
|
|
804
|
+
smithyClient.createAggregatedClient(commands, ManagedBlockchainQuery, { paginators });
|
|
798
805
|
|
|
799
806
|
const QueryNetwork = {
|
|
800
807
|
BITCOIN_MAINNET: "BITCOIN_MAINNET",
|
|
@@ -9,6 +9,11 @@ import { ListTokenBalancesCommand, } from "./commands/ListTokenBalancesCommand";
|
|
|
9
9
|
import { ListTransactionEventsCommand, } from "./commands/ListTransactionEventsCommand";
|
|
10
10
|
import { ListTransactionsCommand, } from "./commands/ListTransactionsCommand";
|
|
11
11
|
import { ManagedBlockchainQueryClient } from "./ManagedBlockchainQueryClient";
|
|
12
|
+
import { paginateListAssetContracts } from "./pagination/ListAssetContractsPaginator";
|
|
13
|
+
import { paginateListFilteredTransactionEvents } from "./pagination/ListFilteredTransactionEventsPaginator";
|
|
14
|
+
import { paginateListTokenBalances } from "./pagination/ListTokenBalancesPaginator";
|
|
15
|
+
import { paginateListTransactionEvents } from "./pagination/ListTransactionEventsPaginator";
|
|
16
|
+
import { paginateListTransactions } from "./pagination/ListTransactionsPaginator";
|
|
12
17
|
const commands = {
|
|
13
18
|
BatchGetTokenBalanceCommand,
|
|
14
19
|
GetAssetContractCommand,
|
|
@@ -20,6 +25,13 @@ const commands = {
|
|
|
20
25
|
ListTransactionEventsCommand,
|
|
21
26
|
ListTransactionsCommand,
|
|
22
27
|
};
|
|
28
|
+
const paginators = {
|
|
29
|
+
paginateListAssetContracts,
|
|
30
|
+
paginateListFilteredTransactionEvents,
|
|
31
|
+
paginateListTokenBalances,
|
|
32
|
+
paginateListTransactionEvents,
|
|
33
|
+
paginateListTransactions,
|
|
34
|
+
};
|
|
23
35
|
export class ManagedBlockchainQuery extends ManagedBlockchainQueryClient {
|
|
24
36
|
}
|
|
25
|
-
createAggregatedClient(commands, ManagedBlockchainQuery);
|
|
37
|
+
createAggregatedClient(commands, ManagedBlockchainQuery, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { BatchGetTokenBalanceCommandInput, BatchGetTokenBalanceCommandOutput } from "./commands/BatchGetTokenBalanceCommand";
|
|
3
3
|
import { GetAssetContractCommandInput, GetAssetContractCommandOutput } from "./commands/GetAssetContractCommand";
|
|
4
4
|
import { GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput } from "./commands/GetTokenBalanceCommand";
|
|
@@ -65,6 +65,41 @@ export interface ManagedBlockchainQuery {
|
|
|
65
65
|
listTransactions(args: ListTransactionsCommandInput, options?: __HttpHandlerOptions): Promise<ListTransactionsCommandOutput>;
|
|
66
66
|
listTransactions(args: ListTransactionsCommandInput, cb: (err: any, data?: ListTransactionsCommandOutput) => void): void;
|
|
67
67
|
listTransactions(args: ListTransactionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTransactionsCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link ListAssetContractsCommand}
|
|
70
|
+
* @param args - command input.
|
|
71
|
+
* @param paginationConfig - optional pagination config.
|
|
72
|
+
* @returns AsyncIterable of {@link ListAssetContractsCommandOutput}.
|
|
73
|
+
*/
|
|
74
|
+
paginateListAssetContracts(args: ListAssetContractsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAssetContractsCommandOutput>;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link ListFilteredTransactionEventsCommand}
|
|
77
|
+
* @param args - command input.
|
|
78
|
+
* @param paginationConfig - optional pagination config.
|
|
79
|
+
* @returns AsyncIterable of {@link ListFilteredTransactionEventsCommandOutput}.
|
|
80
|
+
*/
|
|
81
|
+
paginateListFilteredTransactionEvents(args: ListFilteredTransactionEventsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFilteredTransactionEventsCommandOutput>;
|
|
82
|
+
/**
|
|
83
|
+
* @see {@link ListTokenBalancesCommand}
|
|
84
|
+
* @param args - command input.
|
|
85
|
+
* @param paginationConfig - optional pagination config.
|
|
86
|
+
* @returns AsyncIterable of {@link ListTokenBalancesCommandOutput}.
|
|
87
|
+
*/
|
|
88
|
+
paginateListTokenBalances(args: ListTokenBalancesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTokenBalancesCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link ListTransactionEventsCommand}
|
|
91
|
+
* @param args - command input.
|
|
92
|
+
* @param paginationConfig - optional pagination config.
|
|
93
|
+
* @returns AsyncIterable of {@link ListTransactionEventsCommandOutput}.
|
|
94
|
+
*/
|
|
95
|
+
paginateListTransactionEvents(args: ListTransactionEventsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTransactionEventsCommandOutput>;
|
|
96
|
+
/**
|
|
97
|
+
* @see {@link ListTransactionsCommand}
|
|
98
|
+
* @param args - command input.
|
|
99
|
+
* @param paginationConfig - optional pagination config.
|
|
100
|
+
* @returns AsyncIterable of {@link ListTransactionsCommandOutput}.
|
|
101
|
+
*/
|
|
102
|
+
paginateListTransactions(args: ListTransactionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTransactionsCommandOutput>;
|
|
68
103
|
}
|
|
69
104
|
/**
|
|
70
105
|
* <p>Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
BatchGetTokenBalanceCommandInput,
|
|
4
8
|
BatchGetTokenBalanceCommandOutput,
|
|
@@ -155,6 +159,41 @@ export interface ManagedBlockchainQuery {
|
|
|
155
159
|
options: __HttpHandlerOptions,
|
|
156
160
|
cb: (err: any, data?: ListTransactionsCommandOutput) => void
|
|
157
161
|
): void;
|
|
162
|
+
paginateListAssetContracts(
|
|
163
|
+
args: ListAssetContractsCommandInput,
|
|
164
|
+
paginationConfig?: Pick<
|
|
165
|
+
PaginationConfiguration,
|
|
166
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
167
|
+
>
|
|
168
|
+
): Paginator<ListAssetContractsCommandOutput>;
|
|
169
|
+
paginateListFilteredTransactionEvents(
|
|
170
|
+
args: ListFilteredTransactionEventsCommandInput,
|
|
171
|
+
paginationConfig?: Pick<
|
|
172
|
+
PaginationConfiguration,
|
|
173
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
174
|
+
>
|
|
175
|
+
): Paginator<ListFilteredTransactionEventsCommandOutput>;
|
|
176
|
+
paginateListTokenBalances(
|
|
177
|
+
args: ListTokenBalancesCommandInput,
|
|
178
|
+
paginationConfig?: Pick<
|
|
179
|
+
PaginationConfiguration,
|
|
180
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
181
|
+
>
|
|
182
|
+
): Paginator<ListTokenBalancesCommandOutput>;
|
|
183
|
+
paginateListTransactionEvents(
|
|
184
|
+
args: ListTransactionEventsCommandInput,
|
|
185
|
+
paginationConfig?: Pick<
|
|
186
|
+
PaginationConfiguration,
|
|
187
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
188
|
+
>
|
|
189
|
+
): Paginator<ListTransactionEventsCommandOutput>;
|
|
190
|
+
paginateListTransactions(
|
|
191
|
+
args: ListTransactionsCommandInput,
|
|
192
|
+
paginationConfig?: Pick<
|
|
193
|
+
PaginationConfiguration,
|
|
194
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
195
|
+
>
|
|
196
|
+
): Paginator<ListTransactionsCommandOutput>;
|
|
158
197
|
}
|
|
159
198
|
export declare class ManagedBlockchainQuery
|
|
160
199
|
extends ManagedBlockchainQueryClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-managedblockchain-query",
|
|
3
3
|
"description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-managedblockchain-query",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|