@aws-sdk/client-managedblockchain-query 3.537.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/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");
@@ -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", // required
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",
@@ -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: string | undefined;
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
@@ -190,7 +190,8 @@ export interface GetTokenBalanceOutput {
190
190
  lastUpdatedTime?: BlockchainInstant;
191
191
  }
192
192
  export interface GetTransactionInput {
193
- transactionHash: string | undefined;
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.537.0",
4
+ "version": "3.538.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",