@aws-sdk/client-managedblockchain-query 3.537.0 → 3.540.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/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +3 -4
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/GetTransactionCommand.d.ts +2 -1
- package/dist-types/commands/ListTransactionsCommand.d.ts +1 -0
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +15 -1
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +3 -1
- package/package.json +5 -5
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
5
6
|
const ruleset_1 = require("./ruleset");
|
|
6
7
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
-
return (0,
|
|
8
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
9
|
endpointParams: endpointParams,
|
|
9
10
|
logger: context.logger,
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -526,7 +526,8 @@ var se_GetTransactionCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
526
526
|
body = JSON.stringify(
|
|
527
527
|
(0, import_smithy_client.take)(input, {
|
|
528
528
|
network: [],
|
|
529
|
-
transactionHash: []
|
|
529
|
+
transactionHash: [],
|
|
530
|
+
transactionId: []
|
|
530
531
|
})
|
|
531
532
|
);
|
|
532
533
|
b.m("POST").h(headers).b(body);
|
|
@@ -1025,6 +1026,7 @@ var de_TransactionOutputItem = /* @__PURE__ */ __name((output, context) => {
|
|
|
1025
1026
|
confirmationStatus: import_smithy_client.expectString,
|
|
1026
1027
|
network: import_smithy_client.expectString,
|
|
1027
1028
|
transactionHash: import_smithy_client.expectString,
|
|
1029
|
+
transactionId: import_smithy_client.expectString,
|
|
1028
1030
|
transactionTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1029
1031
|
});
|
|
1030
1032
|
}, "de_TransactionOutputItem");
|
|
@@ -1229,9 +1231,6 @@ var paginateListTransactionEvents = (0, import_core.createPaginator)(ManagedBloc
|
|
|
1229
1231
|
// src/pagination/ListTransactionsPaginator.ts
|
|
1230
1232
|
|
|
1231
1233
|
var paginateListTransactions = (0, import_core.createPaginator)(ManagedBlockchainQueryClient, ListTransactionsCommand, "nextToken", "nextToken", "maxResults");
|
|
1232
|
-
|
|
1233
|
-
// src/index.ts
|
|
1234
|
-
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1235
1234
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1236
1235
|
|
|
1237
1236
|
0 && (module.exports = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
3
|
import { ruleSet } from "./ruleset";
|
|
3
4
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
5
|
return resolveEndpoint(ruleSet, {
|
|
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
6
7
|
logger: context.logger,
|
|
7
8
|
});
|
|
8
9
|
};
|
|
10
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-es/index.js
CHANGED
|
@@ -3,5 +3,4 @@ export * from "./ManagedBlockchainQuery";
|
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
5
|
export * from "./models";
|
|
6
|
-
import "@aws-sdk/util-endpoints";
|
|
7
6
|
export { ManagedBlockchainQueryServiceException } from "./models/ManagedBlockchainQueryServiceException";
|
|
@@ -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();
|
|
@@ -551,6 +552,7 @@ const de_TransactionOutputItem = (output, context) => {
|
|
|
551
552
|
confirmationStatus: __expectString,
|
|
552
553
|
network: __expectString,
|
|
553
554
|
transactionHash: __expectString,
|
|
555
|
+
transactionId: __expectString,
|
|
554
556
|
transactionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
555
557
|
});
|
|
556
558
|
};
|
|
@@ -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);
|
|
@@ -60,6 +60,7 @@ declare const ListTransactionsCommand_base: {
|
|
|
60
60
|
* // transactions: [ // TransactionOutputList // required
|
|
61
61
|
* // { // TransactionOutputItem
|
|
62
62
|
* // transactionHash: "STRING_VALUE", // required
|
|
63
|
+
* // transactionId: "STRING_VALUE",
|
|
63
64
|
* // network: "STRING_VALUE", // required
|
|
64
65
|
* // transactionTimestamp: new Date("TIMESTAMP"), // required
|
|
65
66
|
* // confirmationStatus: "STRING_VALUE",
|
package/dist-types/index.d.ts
CHANGED
|
@@ -17,5 +17,4 @@ export { ManagedBlockchainQueryExtensionConfiguration } from "./extensionConfigu
|
|
|
17
17
|
export * from "./commands";
|
|
18
18
|
export * from "./pagination";
|
|
19
19
|
export * from "./models";
|
|
20
|
-
import "@aws-sdk/util-endpoints";
|
|
21
20
|
export { ManagedBlockchainQueryServiceException } from "./models/ManagedBlockchainQueryServiceException";
|
|
@@ -651,7 +651,16 @@ export interface GetTransactionInput {
|
|
|
651
651
|
* <p>The hash of a transaction. It is generated when a transaction is created.</p>
|
|
652
652
|
* @public
|
|
653
653
|
*/
|
|
654
|
-
transactionHash
|
|
654
|
+
transactionHash?: string;
|
|
655
|
+
/**
|
|
656
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
657
|
+
* <note>
|
|
658
|
+
* <p>
|
|
659
|
+
* <code>transactionId</code> is only supported on the Bitcoin networks.</p>
|
|
660
|
+
* </note>
|
|
661
|
+
* @public
|
|
662
|
+
*/
|
|
663
|
+
transactionId?: string;
|
|
655
664
|
/**
|
|
656
665
|
* <p>The blockchain network where the transaction occurred.</p>
|
|
657
666
|
* @public
|
|
@@ -1430,6 +1439,11 @@ export interface TransactionOutputItem {
|
|
|
1430
1439
|
* @public
|
|
1431
1440
|
*/
|
|
1432
1441
|
transactionHash: string | undefined;
|
|
1442
|
+
/**
|
|
1443
|
+
* <p>The identifier of a Bitcoin transaction. It is generated when a transaction is created.</p>
|
|
1444
|
+
* @public
|
|
1445
|
+
*/
|
|
1446
|
+
transactionId?: string;
|
|
1433
1447
|
/**
|
|
1434
1448
|
* <p>The blockchain network where the transaction occurred.</p>
|
|
1435
1449
|
* @public
|
|
@@ -6,5 +6,4 @@ export { ManagedBlockchainQueryExtensionConfiguration } from "./extensionConfigu
|
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
8
|
export * from "./models";
|
|
9
|
-
import "@aws-sdk/util-endpoints";
|
|
10
9
|
export { ManagedBlockchainQueryServiceException } from "./models/ManagedBlockchainQueryServiceException";
|
|
@@ -190,7 +190,8 @@ export interface GetTokenBalanceOutput {
|
|
|
190
190
|
lastUpdatedTime?: BlockchainInstant;
|
|
191
191
|
}
|
|
192
192
|
export interface GetTransactionInput {
|
|
193
|
-
transactionHash
|
|
193
|
+
transactionHash?: string;
|
|
194
|
+
transactionId?: string;
|
|
194
195
|
network: QueryNetwork | undefined;
|
|
195
196
|
}
|
|
196
197
|
export interface Transaction {
|
|
@@ -352,6 +353,7 @@ export interface ListTransactionsInput {
|
|
|
352
353
|
}
|
|
353
354
|
export interface TransactionOutputItem {
|
|
354
355
|
transactionHash: string | undefined;
|
|
356
|
+
transactionId?: string;
|
|
355
357
|
network: QueryNetwork | undefined;
|
|
356
358
|
transactionTimestamp: Date | undefined;
|
|
357
359
|
confirmationStatus?: ConfirmationStatus;
|
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.540.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-managedblockchain-query",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.540.0",
|
|
24
24
|
"@aws-sdk/core": "3.535.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.540.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.540.0",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "3.535.0",
|
|
31
31
|
"@aws-sdk/types": "3.535.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.540.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.535.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-node": "3.535.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.2.0",
|