@aws-sdk/client-managedblockchain-query 3.378.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 (107) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +262 -0
  3. package/dist-cjs/ManagedBlockchainQuery.js +23 -0
  4. package/dist-cjs/ManagedBlockchainQueryClient.js +41 -0
  5. package/dist-cjs/commands/BatchGetTokenBalanceCommand.js +46 -0
  6. package/dist-cjs/commands/GetTokenBalanceCommand.js +46 -0
  7. package/dist-cjs/commands/GetTransactionCommand.js +46 -0
  8. package/dist-cjs/commands/ListTokenBalancesCommand.js +46 -0
  9. package/dist-cjs/commands/ListTransactionEventsCommand.js +46 -0
  10. package/dist-cjs/commands/ListTransactionsCommand.js +46 -0
  11. package/dist-cjs/commands/index.js +9 -0
  12. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  13. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  14. package/dist-cjs/endpoint/ruleset.js +7 -0
  15. package/dist-cjs/index.js +11 -0
  16. package/dist-cjs/models/ManagedBlockchainQueryServiceException.js +12 -0
  17. package/dist-cjs/models/index.js +4 -0
  18. package/dist-cjs/models/models_0.js +139 -0
  19. package/dist-cjs/pagination/Interfaces.js +2 -0
  20. package/dist-cjs/pagination/ListTokenBalancesPaginator.js +29 -0
  21. package/dist-cjs/pagination/ListTransactionEventsPaginator.js +29 -0
  22. package/dist-cjs/pagination/ListTransactionsPaginator.js +29 -0
  23. package/dist-cjs/pagination/index.js +7 -0
  24. package/dist-cjs/protocols/Aws_restJson1.js +706 -0
  25. package/dist-cjs/runtimeConfig.browser.js +39 -0
  26. package/dist-cjs/runtimeConfig.js +48 -0
  27. package/dist-cjs/runtimeConfig.native.js +15 -0
  28. package/dist-cjs/runtimeConfig.shared.js +21 -0
  29. package/dist-es/ManagedBlockchainQuery.js +19 -0
  30. package/dist-es/ManagedBlockchainQueryClient.js +37 -0
  31. package/dist-es/commands/BatchGetTokenBalanceCommand.js +42 -0
  32. package/dist-es/commands/GetTokenBalanceCommand.js +42 -0
  33. package/dist-es/commands/GetTransactionCommand.js +42 -0
  34. package/dist-es/commands/ListTokenBalancesCommand.js +42 -0
  35. package/dist-es/commands/ListTransactionEventsCommand.js +42 -0
  36. package/dist-es/commands/ListTransactionsCommand.js +42 -0
  37. package/dist-es/commands/index.js +6 -0
  38. package/dist-es/endpoint/EndpointParameters.js +8 -0
  39. package/dist-es/endpoint/endpointResolver.js +8 -0
  40. package/dist-es/endpoint/ruleset.js +4 -0
  41. package/dist-es/index.js +6 -0
  42. package/dist-es/models/ManagedBlockchainQueryServiceException.js +8 -0
  43. package/dist-es/models/index.js +1 -0
  44. package/dist-es/models/models_0.js +130 -0
  45. package/dist-es/pagination/Interfaces.js +1 -0
  46. package/dist-es/pagination/ListTokenBalancesPaginator.js +25 -0
  47. package/dist-es/pagination/ListTransactionEventsPaginator.js +25 -0
  48. package/dist-es/pagination/ListTransactionsPaginator.js +25 -0
  49. package/dist-es/pagination/index.js +4 -0
  50. package/dist-es/protocols/Aws_restJson1.js +691 -0
  51. package/dist-es/runtimeConfig.browser.js +34 -0
  52. package/dist-es/runtimeConfig.js +43 -0
  53. package/dist-es/runtimeConfig.native.js +11 -0
  54. package/dist-es/runtimeConfig.shared.js +17 -0
  55. package/dist-types/ManagedBlockchainQuery.d.ts +58 -0
  56. package/dist-types/ManagedBlockchainQueryClient.d.ts +174 -0
  57. package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +149 -0
  58. package/dist-types/commands/GetTokenBalanceCommand.d.ts +122 -0
  59. package/dist-types/commands/GetTransactionCommand.d.ts +115 -0
  60. package/dist-types/commands/ListTokenBalancesCommand.d.ts +135 -0
  61. package/dist-types/commands/ListTransactionEventsCommand.d.ts +109 -0
  62. package/dist-types/commands/ListTransactionsCommand.d.ts +111 -0
  63. package/dist-types/commands/index.d.ts +6 -0
  64. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  65. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  66. package/dist-types/endpoint/ruleset.d.ts +2 -0
  67. package/dist-types/index.d.ts +17 -0
  68. package/dist-types/models/ManagedBlockchainQueryServiceException.d.ts +13 -0
  69. package/dist-types/models/index.d.ts +1 -0
  70. package/dist-types/models/models_0.d.ts +917 -0
  71. package/dist-types/pagination/Interfaces.d.ts +8 -0
  72. package/dist-types/pagination/ListTokenBalancesPaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListTransactionEventsPaginator.d.ts +7 -0
  74. package/dist-types/pagination/ListTransactionsPaginator.d.ts +7 -0
  75. package/dist-types/pagination/index.d.ts +4 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +56 -0
  77. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  78. package/dist-types/runtimeConfig.d.ts +42 -0
  79. package/dist-types/runtimeConfig.native.d.ts +41 -0
  80. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  81. package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +109 -0
  82. package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +149 -0
  83. package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +42 -0
  84. package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +38 -0
  85. package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +35 -0
  86. package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +38 -0
  87. package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +42 -0
  88. package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +38 -0
  89. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  90. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  91. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  92. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  93. package/dist-types/ts3.4/index.d.ts +6 -0
  94. package/dist-types/ts3.4/models/ManagedBlockchainQueryServiceException.d.ts +8 -0
  95. package/dist-types/ts3.4/models/index.d.ts +1 -0
  96. package/dist-types/ts3.4/models/models_0.d.ts +264 -0
  97. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  98. package/dist-types/ts3.4/pagination/ListTokenBalancesPaginator.d.ts +11 -0
  99. package/dist-types/ts3.4/pagination/ListTransactionEventsPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +11 -0
  101. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  102. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
  103. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
  104. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  105. package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
  106. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  107. package/package.json +99 -0
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTokenBalancesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListTokenBalancesCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTokenBalancesCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "ManagedBlockchainQueryClient";
28
+ const commandName = "ListTokenBalancesCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_ListTokenBalancesCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_ListTokenBalancesCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListTokenBalancesCommand = ListTokenBalancesCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTransactionEventsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListTransactionEventsCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTransactionEventsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "ManagedBlockchainQueryClient";
28
+ const commandName = "ListTransactionEventsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_ListTransactionEventsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_ListTransactionEventsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListTransactionEventsCommand = ListTransactionEventsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTransactionsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListTransactionsCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTransactionsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "ManagedBlockchainQueryClient";
28
+ const commandName = "ListTransactionsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_ListTransactionsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_ListTransactionsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListTransactionsCommand = ListTransactionsCommand;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchGetTokenBalanceCommand"), exports);
5
+ tslib_1.__exportStar(require("./GetTokenBalanceCommand"), exports);
6
+ tslib_1.__exportStar(require("./GetTransactionCommand"), exports);
7
+ tslib_1.__exportStar(require("./ListTokenBalancesCommand"), exports);
8
+ tslib_1.__exportStar(require("./ListTransactionEventsCommand"), exports);
9
+ tslib_1.__exportStar(require("./ListTransactionsCommand"), exports);
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
9
+ defaultSigningName: "managedblockchain-query",
10
+ };
11
+ };
12
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const ruleset_1 = require("./ruleset");
6
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
7
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ endpointParams: endpointParams,
9
+ logger: context.logger,
10
+ });
11
+ };
12
+ exports.defaultEndpointResolver = defaultEndpointResolver;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://managedblockchain-query-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://managedblockchain-query-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://managedblockchain-query.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://managedblockchain-query.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ManagedBlockchainQueryServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./ManagedBlockchainQueryClient"), exports);
6
+ tslib_1.__exportStar(require("./ManagedBlockchainQuery"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
+ var ManagedBlockchainQueryServiceException_1 = require("./models/ManagedBlockchainQueryServiceException");
11
+ Object.defineProperty(exports, "ManagedBlockchainQueryServiceException", { enumerable: true, get: function () { return ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ManagedBlockchainQueryServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ManagedBlockchainQueryServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ManagedBlockchainQueryServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ManagedBlockchainQueryServiceException = ManagedBlockchainQueryServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,139 @@
1
+ "use strict";
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.QueryNetwork = exports.AccessDeniedException = void 0;
4
+ const ManagedBlockchainQueryServiceException_1 = require("./ManagedBlockchainQueryServiceException");
5
+ class AccessDeniedException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ exports.QueryNetwork = {
19
+ BITCOIN_MAINNET: "BITCOIN_MAINNET",
20
+ ETHEREUM_MAINNET: "ETHEREUM_MAINNET",
21
+ };
22
+ exports.ErrorType = {
23
+ RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION",
24
+ VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION",
25
+ };
26
+ class InternalServerException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "InternalServerException",
30
+ $fault: "server",
31
+ ...opts,
32
+ });
33
+ this.name = "InternalServerException";
34
+ this.$fault = "server";
35
+ this.$retryable = {};
36
+ Object.setPrototypeOf(this, InternalServerException.prototype);
37
+ this.retryAfterSeconds = opts.retryAfterSeconds;
38
+ }
39
+ }
40
+ exports.InternalServerException = InternalServerException;
41
+ exports.ResourceType = {
42
+ COLLECTION: "collection",
43
+ };
44
+ class ResourceNotFoundException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
45
+ constructor(opts) {
46
+ super({
47
+ name: "ResourceNotFoundException",
48
+ $fault: "client",
49
+ ...opts,
50
+ });
51
+ this.name = "ResourceNotFoundException";
52
+ this.$fault = "client";
53
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
54
+ this.resourceId = opts.resourceId;
55
+ this.resourceType = opts.resourceType;
56
+ }
57
+ }
58
+ exports.ResourceNotFoundException = ResourceNotFoundException;
59
+ class ServiceQuotaExceededException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
60
+ constructor(opts) {
61
+ super({
62
+ name: "ServiceQuotaExceededException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ this.name = "ServiceQuotaExceededException";
67
+ this.$fault = "client";
68
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
69
+ this.resourceId = opts.resourceId;
70
+ this.resourceType = opts.resourceType;
71
+ this.serviceCode = opts.serviceCode;
72
+ this.quotaCode = opts.quotaCode;
73
+ }
74
+ }
75
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
76
+ class ThrottlingException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
77
+ constructor(opts) {
78
+ super({
79
+ name: "ThrottlingException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ this.name = "ThrottlingException";
84
+ this.$fault = "client";
85
+ this.$retryable = {
86
+ throttling: true,
87
+ };
88
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
89
+ this.serviceCode = opts.serviceCode;
90
+ this.quotaCode = opts.quotaCode;
91
+ this.retryAfterSeconds = opts.retryAfterSeconds;
92
+ }
93
+ }
94
+ exports.ThrottlingException = ThrottlingException;
95
+ exports.ValidationExceptionReason = {
96
+ CANNOT_PARSE: "cannotParse",
97
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
98
+ OTHER: "other",
99
+ UNKNOWN_OPERATION: "unknownOperation",
100
+ };
101
+ class ValidationException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
102
+ constructor(opts) {
103
+ super({
104
+ name: "ValidationException",
105
+ $fault: "client",
106
+ ...opts,
107
+ });
108
+ this.name = "ValidationException";
109
+ this.$fault = "client";
110
+ Object.setPrototypeOf(this, ValidationException.prototype);
111
+ this.reason = opts.reason;
112
+ this.fieldList = opts.fieldList;
113
+ }
114
+ }
115
+ exports.ValidationException = ValidationException;
116
+ exports.QueryTransactionStatus = {
117
+ FAILED: "FAILED",
118
+ FINAL: "FINAL",
119
+ };
120
+ exports.QueryTransactionEventType = {
121
+ BITCOIN_VIN: "BITCOIN_VIN",
122
+ BITCOIN_VOUT: "BITCOIN_VOUT",
123
+ ERC1155_TRANSFER: "ERC1155_TRANSFER",
124
+ ERC20_BURN: "ERC20_BURN",
125
+ ERC20_DEPOSIT: "ERC20_DEPOSIT",
126
+ ERC20_MINT: "ERC20_MINT",
127
+ ERC20_TRANSFER: "ERC20_TRANSFER",
128
+ ERC20_WITHDRAWAL: "ERC20_WITHDRAWAL",
129
+ ERC721_TRANSFER: "ERC721_TRANSFER",
130
+ ETH_TRANSFER: "ETH_TRANSFER",
131
+ INTERNAL_ETH_TRANSFER: "INTERNAL_ETH_TRANSFER",
132
+ };
133
+ exports.ListTransactionsSortBy = {
134
+ TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP",
135
+ };
136
+ exports.SortOrder = {
137
+ ASCENDING: "ASCENDING",
138
+ DESCENDING: "DESCENDING",
139
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTokenBalances = void 0;
4
+ const ListTokenBalancesCommand_1 = require("../commands/ListTokenBalancesCommand");
5
+ const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListTokenBalancesCommand_1.ListTokenBalancesCommand(input), ...args);
8
+ };
9
+ async function* paginateListTokenBalances(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.paginateListTokenBalances = paginateListTokenBalances;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTransactionEvents = void 0;
4
+ const ListTransactionEventsCommand_1 = require("../commands/ListTransactionEventsCommand");
5
+ const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListTransactionEventsCommand_1.ListTransactionEventsCommand(input), ...args);
8
+ };
9
+ async function* paginateListTransactionEvents(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.paginateListTransactionEvents = paginateListTransactionEvents;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTransactions = void 0;
4
+ const ListTransactionsCommand_1 = require("../commands/ListTransactionsCommand");
5
+ const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListTransactionsCommand_1.ListTransactionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListTransactions(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.paginateListTransactions = paginateListTransactions;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListTokenBalancesPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListTransactionEventsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListTransactionsPaginator"), exports);