@aws-sdk/client-managedblockchain-query 3.477.0 → 3.481.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.
Files changed (59) hide show
  1. package/dist-cjs/commands/BatchGetTokenBalanceCommand.js +18 -41
  2. package/dist-cjs/commands/GetAssetContractCommand.js +18 -41
  3. package/dist-cjs/commands/GetTokenBalanceCommand.js +18 -41
  4. package/dist-cjs/commands/GetTransactionCommand.js +18 -41
  5. package/dist-cjs/commands/ListAssetContractsCommand.js +18 -41
  6. package/dist-cjs/commands/ListTokenBalancesCommand.js +18 -41
  7. package/dist-cjs/commands/ListTransactionEventsCommand.js +18 -41
  8. package/dist-cjs/commands/ListTransactionsCommand.js +18 -41
  9. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  10. package/dist-cjs/models/models_0.js +8 -1
  11. package/dist-cjs/pagination/ListAssetContractsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListTokenBalancesPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListTransactionEventsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListTransactionsPaginator.js +2 -24
  15. package/dist-cjs/protocols/Aws_restJson1.js +2 -0
  16. package/dist-es/commands/BatchGetTokenBalanceCommand.js +18 -41
  17. package/dist-es/commands/GetAssetContractCommand.js +18 -41
  18. package/dist-es/commands/GetTokenBalanceCommand.js +18 -41
  19. package/dist-es/commands/GetTransactionCommand.js +18 -41
  20. package/dist-es/commands/ListAssetContractsCommand.js +18 -41
  21. package/dist-es/commands/ListTokenBalancesCommand.js +18 -41
  22. package/dist-es/commands/ListTransactionEventsCommand.js +18 -41
  23. package/dist-es/commands/ListTransactionsCommand.js +18 -41
  24. package/dist-es/endpoint/EndpointParameters.js +6 -0
  25. package/dist-es/models/models_0.js +7 -0
  26. package/dist-es/pagination/ListAssetContractsPaginator.js +2 -23
  27. package/dist-es/pagination/ListTokenBalancesPaginator.js +2 -23
  28. package/dist-es/pagination/ListTransactionEventsPaginator.js +2 -23
  29. package/dist-es/pagination/ListTransactionsPaginator.js +2 -23
  30. package/dist-es/protocols/Aws_restJson1.js +2 -0
  31. package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +6 -21
  32. package/dist-types/commands/GetAssetContractCommand.d.ts +6 -21
  33. package/dist-types/commands/GetTokenBalanceCommand.d.ts +6 -21
  34. package/dist-types/commands/GetTransactionCommand.d.ts +9 -22
  35. package/dist-types/commands/ListAssetContractsCommand.d.ts +6 -21
  36. package/dist-types/commands/ListTokenBalancesCommand.d.ts +6 -21
  37. package/dist-types/commands/ListTransactionEventsCommand.d.ts +6 -21
  38. package/dist-types/commands/ListTransactionsCommand.d.ts +6 -21
  39. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  40. package/dist-types/models/models_0.d.ts +53 -3
  41. package/dist-types/pagination/ListAssetContractsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/ListTokenBalancesPaginator.d.ts +1 -1
  43. package/dist-types/pagination/ListTransactionEventsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListTransactionsPaginator.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +12 -24
  46. package/dist-types/ts3.4/commands/GetAssetContractCommand.d.ts +14 -23
  47. package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +14 -23
  48. package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +14 -23
  49. package/dist-types/ts3.4/commands/ListAssetContractsCommand.d.ts +14 -23
  50. package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +12 -24
  52. package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +14 -1
  55. package/dist-types/ts3.4/pagination/ListAssetContractsPaginator.d.ts +3 -3
  56. package/dist-types/ts3.4/pagination/ListTokenBalancesPaginator.d.ts +3 -3
  57. package/dist-types/ts3.4/pagination/ListTransactionEventsPaginator.d.ts +3 -3
  58. package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +3 -3
  59. package/package.json +11 -11
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class BatchGetTokenBalanceCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetTokenBalanceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "BatchGetTokenBalanceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "BatchGetTokenBalance",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_BatchGetTokenBalanceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_BatchGetTokenBalanceCommand)(output, context);
49
- }
10
+ class BatchGetTokenBalanceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "BatchGetTokenBalance", {})
22
+ .n("ManagedBlockchainQueryClient", "BatchGetTokenBalanceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_BatchGetTokenBalanceCommand)
25
+ .de(Aws_restJson1_1.de_BatchGetTokenBalanceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.BatchGetTokenBalanceCommand = BatchGetTokenBalanceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetAssetContractCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAssetContractCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "GetAssetContractCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "GetAssetContract",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetAssetContractCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetAssetContractCommand)(output, context);
49
- }
10
+ class GetAssetContractCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "GetAssetContract", {})
22
+ .n("ManagedBlockchainQueryClient", "GetAssetContractCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetAssetContractCommand)
25
+ .de(Aws_restJson1_1.de_GetAssetContractCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetAssetContractCommand = GetAssetContractCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetTokenBalanceCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetTokenBalanceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "GetTokenBalanceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "GetTokenBalance",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetTokenBalanceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetTokenBalanceCommand)(output, context);
49
- }
10
+ class GetTokenBalanceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "GetTokenBalance", {})
22
+ .n("ManagedBlockchainQueryClient", "GetTokenBalanceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetTokenBalanceCommand)
25
+ .de(Aws_restJson1_1.de_GetTokenBalanceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetTokenBalanceCommand = GetTokenBalanceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetTransactionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetTransactionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "GetTransactionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "GetTransaction",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetTransactionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetTransactionCommand)(output, context);
49
- }
10
+ class GetTransactionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "GetTransaction", {})
22
+ .n("ManagedBlockchainQueryClient", "GetTransactionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetTransactionCommand)
25
+ .de(Aws_restJson1_1.de_GetTransactionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetTransactionCommand = GetTransactionCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListAssetContractsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAssetContractsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "ListAssetContractsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "ListAssetContracts",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListAssetContractsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListAssetContractsCommand)(output, context);
49
- }
10
+ class ListAssetContractsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "ListAssetContracts", {})
22
+ .n("ManagedBlockchainQueryClient", "ListAssetContractsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListAssetContractsCommand)
25
+ .de(Aws_restJson1_1.de_ListAssetContractsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListAssetContractsCommand = ListAssetContractsCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListTokenBalancesCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTokenBalancesCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "ListTokenBalancesCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "ListTokenBalances",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListTokenBalancesCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListTokenBalancesCommand)(output, context);
49
- }
10
+ class ListTokenBalancesCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "ListTokenBalances", {})
22
+ .n("ManagedBlockchainQueryClient", "ListTokenBalancesCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListTokenBalancesCommand)
25
+ .de(Aws_restJson1_1.de_ListTokenBalancesCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListTokenBalancesCommand = ListTokenBalancesCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListTransactionEventsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTransactionEventsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "ListTransactionEventsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "ListTransactionEvents",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListTransactionEventsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListTransactionEventsCommand)(output, context);
49
- }
10
+ class ListTransactionEventsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "ListTransactionEvents", {})
22
+ .n("ManagedBlockchainQueryClient", "ListTransactionEventsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListTransactionEventsCommand)
25
+ .de(Aws_restJson1_1.de_ListTransactionEventsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListTransactionEventsCommand = ListTransactionEventsCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListTransactionsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTransactionsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "ManagedBlockchainQueryClient";
29
- const commandName = "ListTransactionsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "TietonChainQueryService",
38
- operation: "ListTransactions",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListTransactionsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListTransactionsCommand)(output, context);
49
- }
10
+ class ListTransactionsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("TietonChainQueryService", "ListTransactions", {})
22
+ .n("ManagedBlockchainQueryClient", "ListTransactionsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListTransactionsCommand)
25
+ .de(Aws_restJson1_1.de_ListTransactionsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListTransactionsCommand = ListTransactionsCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SortOrder = exports.ListTransactionsSortBy = exports.QueryTransactionEventType = exports.QueryTransactionStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ErrorType = exports.QueryTokenStandard = exports.QueryNetwork = exports.AccessDeniedException = void 0;
3
+ exports.SortOrder = exports.ListTransactionsSortBy = exports.QueryTransactionEventType = exports.QueryTransactionStatus = exports.ExecutionStatus = exports.ConfirmationStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ErrorType = exports.QueryTokenStandard = exports.QueryNetwork = exports.AccessDeniedException = void 0;
4
4
  const ManagedBlockchainQueryServiceException_1 = require("./ManagedBlockchainQueryServiceException");
5
5
  class AccessDeniedException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
6
6
  constructor(opts) {
@@ -120,6 +120,13 @@ class ValidationException extends ManagedBlockchainQueryServiceException_1.Manag
120
120
  }
121
121
  }
122
122
  exports.ValidationException = ValidationException;
123
+ exports.ConfirmationStatus = {
124
+ FINAL: "FINAL",
125
+ };
126
+ exports.ExecutionStatus = {
127
+ FAILED: "FAILED",
128
+ SUCCEEDED: "SUCCEEDED",
129
+ };
123
130
  exports.QueryTransactionStatus = {
124
131
  FAILED: "FAILED",
125
132
  FINAL: "FINAL",
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssetContracts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAssetContractsCommand_1 = require("../commands/ListAssetContractsCommand");
5
6
  const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAssetContractsCommand_1.ListAssetContractsCommand(input), ...args);
8
- };
9
- async function* paginateListAssetContracts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAssetContracts = paginateListAssetContracts;
7
+ exports.paginateListAssetContracts = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListAssetContractsCommand_1.ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");