@aws-sdk/client-appflow 3.523.0 → 3.529.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 +22 -62
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/Appflow.js +0 -1
- package/dist-cjs/AppflowClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CancelFlowExecutionsCommand.js +0 -1
- package/dist-cjs/commands/CreateConnectorProfileCommand.js +0 -1
- package/dist-cjs/commands/CreateFlowCommand.js +0 -1
- package/dist-cjs/commands/DeleteConnectorProfileCommand.js +0 -1
- package/dist-cjs/commands/DeleteFlowCommand.js +0 -1
- package/dist-cjs/commands/DescribeConnectorCommand.js +0 -1
- package/dist-cjs/commands/DescribeConnectorEntityCommand.js +0 -1
- package/dist-cjs/commands/DescribeConnectorProfilesCommand.js +0 -1
- package/dist-cjs/commands/DescribeConnectorsCommand.js +0 -1
- package/dist-cjs/commands/DescribeFlowCommand.js +0 -1
- package/dist-cjs/commands/DescribeFlowExecutionRecordsCommand.js +0 -1
- package/dist-cjs/commands/ListConnectorEntitiesCommand.js +0 -1
- package/dist-cjs/commands/ListConnectorsCommand.js +0 -1
- package/dist-cjs/commands/ListFlowsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/RegisterConnectorCommand.js +0 -1
- package/dist-cjs/commands/ResetConnectorMetadataCacheCommand.js +0 -1
- package/dist-cjs/commands/StartFlowCommand.js +0 -1
- package/dist-cjs/commands/StopFlowCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UnregisterConnectorCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateConnectorProfileCommand.js +0 -1
- package/dist-cjs/commands/UpdateConnectorRegistrationCommand.js +0 -1
- package/dist-cjs/commands/UpdateFlowCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/AppflowServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/DescribeConnectorProfilesPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeConnectorsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeFlowExecutionRecordsPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListConnectorsPaginator.js +0 -1
- package/dist-cjs/pagination/ListFlowsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -292,6 +292,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
292
292
|
var import_types = require("@smithy/types");
|
|
293
293
|
|
|
294
294
|
// src/protocols/Aws_restJson1.ts
|
|
295
|
+
var import_core2 = require("@aws-sdk/core");
|
|
295
296
|
|
|
296
297
|
|
|
297
298
|
var import_uuid = require("uuid");
|
|
@@ -1564,7 +1565,7 @@ var de_CancelFlowExecutionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1564
1565
|
const contents = (0, import_smithy_client.map)({
|
|
1565
1566
|
$metadata: deserializeMetadata(output)
|
|
1566
1567
|
});
|
|
1567
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1568
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1568
1569
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1569
1570
|
invalidExecutions: import_smithy_client._json
|
|
1570
1571
|
});
|
|
@@ -1578,7 +1579,7 @@ var de_CreateConnectorProfileCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1578
1579
|
const contents = (0, import_smithy_client.map)({
|
|
1579
1580
|
$metadata: deserializeMetadata(output)
|
|
1580
1581
|
});
|
|
1581
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1582
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1582
1583
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1583
1584
|
connectorProfileArn: import_smithy_client.expectString
|
|
1584
1585
|
});
|
|
@@ -1592,7 +1593,7 @@ var de_CreateFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1592
1593
|
const contents = (0, import_smithy_client.map)({
|
|
1593
1594
|
$metadata: deserializeMetadata(output)
|
|
1594
1595
|
});
|
|
1595
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1596
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1596
1597
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1597
1598
|
flowArn: import_smithy_client.expectString,
|
|
1598
1599
|
flowStatus: import_smithy_client.expectString
|
|
@@ -1627,7 +1628,7 @@ var de_DescribeConnectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1627
1628
|
const contents = (0, import_smithy_client.map)({
|
|
1628
1629
|
$metadata: deserializeMetadata(output)
|
|
1629
1630
|
});
|
|
1630
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1631
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1631
1632
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1632
1633
|
connectorConfiguration: (_) => de_ConnectorConfiguration(_, context)
|
|
1633
1634
|
});
|
|
@@ -1641,7 +1642,7 @@ var de_DescribeConnectorEntityCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1641
1642
|
const contents = (0, import_smithy_client.map)({
|
|
1642
1643
|
$metadata: deserializeMetadata(output)
|
|
1643
1644
|
});
|
|
1644
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1645
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1645
1646
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1646
1647
|
connectorEntityFields: (_) => de_ConnectorEntityFieldList(_, context)
|
|
1647
1648
|
});
|
|
@@ -1655,7 +1656,7 @@ var de_DescribeConnectorProfilesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1655
1656
|
const contents = (0, import_smithy_client.map)({
|
|
1656
1657
|
$metadata: deserializeMetadata(output)
|
|
1657
1658
|
});
|
|
1658
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1659
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1659
1660
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1660
1661
|
connectorProfileDetails: (_) => de_ConnectorProfileDetailList(_, context),
|
|
1661
1662
|
nextToken: import_smithy_client.expectString
|
|
@@ -1670,7 +1671,7 @@ var de_DescribeConnectorsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1670
1671
|
const contents = (0, import_smithy_client.map)({
|
|
1671
1672
|
$metadata: deserializeMetadata(output)
|
|
1672
1673
|
});
|
|
1673
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1674
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1674
1675
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1675
1676
|
connectorConfigurations: (_) => de_ConnectorConfigurationsMap(_, context),
|
|
1676
1677
|
connectors: (_) => de_ConnectorList(_, context),
|
|
@@ -1686,7 +1687,7 @@ var de_DescribeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1686
1687
|
const contents = (0, import_smithy_client.map)({
|
|
1687
1688
|
$metadata: deserializeMetadata(output)
|
|
1688
1689
|
});
|
|
1689
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1690
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1690
1691
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1691
1692
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1692
1693
|
createdBy: import_smithy_client.expectString,
|
|
@@ -1718,7 +1719,7 @@ var de_DescribeFlowExecutionRecordsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1718
1719
|
const contents = (0, import_smithy_client.map)({
|
|
1719
1720
|
$metadata: deserializeMetadata(output)
|
|
1720
1721
|
});
|
|
1721
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1722
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1722
1723
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1723
1724
|
flowExecutions: (_) => de_FlowExecutionList(_, context),
|
|
1724
1725
|
nextToken: import_smithy_client.expectString
|
|
@@ -1733,7 +1734,7 @@ var de_ListConnectorEntitiesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1733
1734
|
const contents = (0, import_smithy_client.map)({
|
|
1734
1735
|
$metadata: deserializeMetadata(output)
|
|
1735
1736
|
});
|
|
1736
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1737
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1737
1738
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1738
1739
|
connectorEntityMap: import_smithy_client._json,
|
|
1739
1740
|
nextToken: import_smithy_client.expectString
|
|
@@ -1748,7 +1749,7 @@ var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1748
1749
|
const contents = (0, import_smithy_client.map)({
|
|
1749
1750
|
$metadata: deserializeMetadata(output)
|
|
1750
1751
|
});
|
|
1751
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1752
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1752
1753
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1753
1754
|
connectors: (_) => de_ConnectorList(_, context),
|
|
1754
1755
|
nextToken: import_smithy_client.expectString
|
|
@@ -1763,7 +1764,7 @@ var de_ListFlowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1763
1764
|
const contents = (0, import_smithy_client.map)({
|
|
1764
1765
|
$metadata: deserializeMetadata(output)
|
|
1765
1766
|
});
|
|
1766
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1767
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1767
1768
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1768
1769
|
flows: (_) => de_FlowList(_, context),
|
|
1769
1770
|
nextToken: import_smithy_client.expectString
|
|
@@ -1778,7 +1779,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1778
1779
|
const contents = (0, import_smithy_client.map)({
|
|
1779
1780
|
$metadata: deserializeMetadata(output)
|
|
1780
1781
|
});
|
|
1781
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1782
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1782
1783
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1783
1784
|
tags: import_smithy_client._json
|
|
1784
1785
|
});
|
|
@@ -1792,7 +1793,7 @@ var de_RegisterConnectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1792
1793
|
const contents = (0, import_smithy_client.map)({
|
|
1793
1794
|
$metadata: deserializeMetadata(output)
|
|
1794
1795
|
});
|
|
1795
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1796
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1796
1797
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1797
1798
|
connectorArn: import_smithy_client.expectString
|
|
1798
1799
|
});
|
|
@@ -1816,7 +1817,7 @@ var de_StartFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1816
1817
|
const contents = (0, import_smithy_client.map)({
|
|
1817
1818
|
$metadata: deserializeMetadata(output)
|
|
1818
1819
|
});
|
|
1819
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1820
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1820
1821
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1821
1822
|
executionId: import_smithy_client.expectString,
|
|
1822
1823
|
flowArn: import_smithy_client.expectString,
|
|
@@ -1832,7 +1833,7 @@ var de_StopFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1832
1833
|
const contents = (0, import_smithy_client.map)({
|
|
1833
1834
|
$metadata: deserializeMetadata(output)
|
|
1834
1835
|
});
|
|
1835
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1836
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1836
1837
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1837
1838
|
flowArn: import_smithy_client.expectString,
|
|
1838
1839
|
flowStatus: import_smithy_client.expectString
|
|
@@ -1877,7 +1878,7 @@ var de_UpdateConnectorProfileCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1877
1878
|
const contents = (0, import_smithy_client.map)({
|
|
1878
1879
|
$metadata: deserializeMetadata(output)
|
|
1879
1880
|
});
|
|
1880
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1881
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1881
1882
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1882
1883
|
connectorProfileArn: import_smithy_client.expectString
|
|
1883
1884
|
});
|
|
@@ -1891,7 +1892,7 @@ var de_UpdateConnectorRegistrationCommand = /* @__PURE__ */ __name(async (output
|
|
|
1891
1892
|
const contents = (0, import_smithy_client.map)({
|
|
1892
1893
|
$metadata: deserializeMetadata(output)
|
|
1893
1894
|
});
|
|
1894
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1895
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1895
1896
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1896
1897
|
connectorArn: import_smithy_client.expectString
|
|
1897
1898
|
});
|
|
@@ -1905,7 +1906,7 @@ var de_UpdateFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1905
1906
|
const contents = (0, import_smithy_client.map)({
|
|
1906
1907
|
$metadata: deserializeMetadata(output)
|
|
1907
1908
|
});
|
|
1908
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1909
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1909
1910
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1910
1911
|
flowStatus: import_smithy_client.expectString
|
|
1911
1912
|
});
|
|
@@ -1915,9 +1916,9 @@ var de_UpdateFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1915
1916
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1916
1917
|
const parsedOutput = {
|
|
1917
1918
|
...output,
|
|
1918
|
-
body: await
|
|
1919
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1919
1920
|
};
|
|
1920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1921
1922
|
switch (errorCode) {
|
|
1922
1923
|
case "AccessDeniedException":
|
|
1923
1924
|
case "com.amazonaws.appflow#AccessDeniedException":
|
|
@@ -2320,48 +2321,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2320
2321
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2321
2322
|
cfId: output.headers["x-amz-cf-id"]
|
|
2322
2323
|
}), "deserializeMetadata");
|
|
2323
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2324
2324
|
var _tK = "tagKeys";
|
|
2325
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2326
|
-
if (encoded.length) {
|
|
2327
|
-
return JSON.parse(encoded);
|
|
2328
|
-
}
|
|
2329
|
-
return {};
|
|
2330
|
-
}), "parseBody");
|
|
2331
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2332
|
-
const value = await parseBody(errorBody, context);
|
|
2333
|
-
value.message = value.message ?? value.Message;
|
|
2334
|
-
return value;
|
|
2335
|
-
}, "parseErrorBody");
|
|
2336
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2337
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2338
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2339
|
-
let cleanValue = rawValue;
|
|
2340
|
-
if (typeof cleanValue === "number") {
|
|
2341
|
-
cleanValue = cleanValue.toString();
|
|
2342
|
-
}
|
|
2343
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2344
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2345
|
-
}
|
|
2346
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2347
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2348
|
-
}
|
|
2349
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2350
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2351
|
-
}
|
|
2352
|
-
return cleanValue;
|
|
2353
|
-
}, "sanitizeErrorCode");
|
|
2354
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2355
|
-
if (headerKey !== void 0) {
|
|
2356
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2357
|
-
}
|
|
2358
|
-
if (data.code !== void 0) {
|
|
2359
|
-
return sanitizeErrorCode(data.code);
|
|
2360
|
-
}
|
|
2361
|
-
if (data["__type"] !== void 0) {
|
|
2362
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2363
|
-
}
|
|
2364
|
-
}, "loadRestJsonErrorCode");
|
|
2365
2325
|
|
|
2366
2326
|
// src/commands/CancelFlowExecutionsCommand.ts
|
|
2367
2327
|
var _CancelFlowExecutionsCommand = class _CancelFlowExecutionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1164,43 +1165,3 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1164
1165
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1165
1166
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1166
1167
|
const _tK = "tagKeys";
|
|
1167
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1168
|
-
if (encoded.length) {
|
|
1169
|
-
return JSON.parse(encoded);
|
|
1170
|
-
}
|
|
1171
|
-
return {};
|
|
1172
|
-
});
|
|
1173
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1174
|
-
const value = await parseBody(errorBody, context);
|
|
1175
|
-
value.message = value.message ?? value.Message;
|
|
1176
|
-
return value;
|
|
1177
|
-
};
|
|
1178
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1179
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1180
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1181
|
-
let cleanValue = rawValue;
|
|
1182
|
-
if (typeof cleanValue === "number") {
|
|
1183
|
-
cleanValue = cleanValue.toString();
|
|
1184
|
-
}
|
|
1185
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1186
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1187
|
-
}
|
|
1188
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1189
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1190
|
-
}
|
|
1191
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1192
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1193
|
-
}
|
|
1194
|
-
return cleanValue;
|
|
1195
|
-
};
|
|
1196
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1197
|
-
if (headerKey !== undefined) {
|
|
1198
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1199
|
-
}
|
|
1200
|
-
if (data.code !== undefined) {
|
|
1201
|
-
return sanitizeErrorCode(data.code);
|
|
1202
|
-
}
|
|
1203
|
-
if (data["__type"] !== undefined) {
|
|
1204
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1205
|
-
}
|
|
1206
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appflow",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appflow Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.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-appflow",
|
|
@@ -20,40 +20,40 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
package/dist-cjs/Appflow.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|