@aws-sdk/client-forecast 3.525.0 → 3.529.1
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 +50 -90
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -599,6 +599,7 @@ var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
599
599
|
}), "UntagResourceRequestFilterSensitiveLog");
|
|
600
600
|
|
|
601
601
|
// src/protocols/Aws_json1_1.ts
|
|
602
|
+
var import_core2 = require("@aws-sdk/core");
|
|
602
603
|
|
|
603
604
|
|
|
604
605
|
var se_CreateAutoPredictorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -983,7 +984,7 @@ var de_CreateAutoPredictorCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
983
984
|
if (output.statusCode >= 300) {
|
|
984
985
|
return de_CommandError(output, context);
|
|
985
986
|
}
|
|
986
|
-
const data = await
|
|
987
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
987
988
|
let contents = {};
|
|
988
989
|
contents = (0, import_smithy_client._json)(data);
|
|
989
990
|
const response = {
|
|
@@ -996,7 +997,7 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
996
997
|
if (output.statusCode >= 300) {
|
|
997
998
|
return de_CommandError(output, context);
|
|
998
999
|
}
|
|
999
|
-
const data = await
|
|
1000
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1000
1001
|
let contents = {};
|
|
1001
1002
|
contents = (0, import_smithy_client._json)(data);
|
|
1002
1003
|
const response = {
|
|
@@ -1009,7 +1010,7 @@ var de_CreateDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1009
1010
|
if (output.statusCode >= 300) {
|
|
1010
1011
|
return de_CommandError(output, context);
|
|
1011
1012
|
}
|
|
1012
|
-
const data = await
|
|
1013
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1013
1014
|
let contents = {};
|
|
1014
1015
|
contents = (0, import_smithy_client._json)(data);
|
|
1015
1016
|
const response = {
|
|
@@ -1022,7 +1023,7 @@ var de_CreateDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1022
1023
|
if (output.statusCode >= 300) {
|
|
1023
1024
|
return de_CommandError(output, context);
|
|
1024
1025
|
}
|
|
1025
|
-
const data = await
|
|
1026
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1026
1027
|
let contents = {};
|
|
1027
1028
|
contents = (0, import_smithy_client._json)(data);
|
|
1028
1029
|
const response = {
|
|
@@ -1035,7 +1036,7 @@ var de_CreateExplainabilityCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1035
1036
|
if (output.statusCode >= 300) {
|
|
1036
1037
|
return de_CommandError(output, context);
|
|
1037
1038
|
}
|
|
1038
|
-
const data = await
|
|
1039
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1039
1040
|
let contents = {};
|
|
1040
1041
|
contents = (0, import_smithy_client._json)(data);
|
|
1041
1042
|
const response = {
|
|
@@ -1048,7 +1049,7 @@ var de_CreateExplainabilityExportCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1048
1049
|
if (output.statusCode >= 300) {
|
|
1049
1050
|
return de_CommandError(output, context);
|
|
1050
1051
|
}
|
|
1051
|
-
const data = await
|
|
1052
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1052
1053
|
let contents = {};
|
|
1053
1054
|
contents = (0, import_smithy_client._json)(data);
|
|
1054
1055
|
const response = {
|
|
@@ -1061,7 +1062,7 @@ var de_CreateForecastCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1061
1062
|
if (output.statusCode >= 300) {
|
|
1062
1063
|
return de_CommandError(output, context);
|
|
1063
1064
|
}
|
|
1064
|
-
const data = await
|
|
1065
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1065
1066
|
let contents = {};
|
|
1066
1067
|
contents = (0, import_smithy_client._json)(data);
|
|
1067
1068
|
const response = {
|
|
@@ -1074,7 +1075,7 @@ var de_CreateForecastExportJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1074
1075
|
if (output.statusCode >= 300) {
|
|
1075
1076
|
return de_CommandError(output, context);
|
|
1076
1077
|
}
|
|
1077
|
-
const data = await
|
|
1078
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1078
1079
|
let contents = {};
|
|
1079
1080
|
contents = (0, import_smithy_client._json)(data);
|
|
1080
1081
|
const response = {
|
|
@@ -1087,7 +1088,7 @@ var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1087
1088
|
if (output.statusCode >= 300) {
|
|
1088
1089
|
return de_CommandError(output, context);
|
|
1089
1090
|
}
|
|
1090
|
-
const data = await
|
|
1091
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1091
1092
|
let contents = {};
|
|
1092
1093
|
contents = (0, import_smithy_client._json)(data);
|
|
1093
1094
|
const response = {
|
|
@@ -1100,7 +1101,7 @@ var de_CreatePredictorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1100
1101
|
if (output.statusCode >= 300) {
|
|
1101
1102
|
return de_CommandError(output, context);
|
|
1102
1103
|
}
|
|
1103
|
-
const data = await
|
|
1104
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1104
1105
|
let contents = {};
|
|
1105
1106
|
contents = (0, import_smithy_client._json)(data);
|
|
1106
1107
|
const response = {
|
|
@@ -1113,7 +1114,7 @@ var de_CreatePredictorBacktestExportJobCommand = /* @__PURE__ */ __name(async (o
|
|
|
1113
1114
|
if (output.statusCode >= 300) {
|
|
1114
1115
|
return de_CommandError(output, context);
|
|
1115
1116
|
}
|
|
1116
|
-
const data = await
|
|
1117
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1117
1118
|
let contents = {};
|
|
1118
1119
|
contents = (0, import_smithy_client._json)(data);
|
|
1119
1120
|
const response = {
|
|
@@ -1126,7 +1127,7 @@ var de_CreateWhatIfAnalysisCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1126
1127
|
if (output.statusCode >= 300) {
|
|
1127
1128
|
return de_CommandError(output, context);
|
|
1128
1129
|
}
|
|
1129
|
-
const data = await
|
|
1130
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1130
1131
|
let contents = {};
|
|
1131
1132
|
contents = (0, import_smithy_client._json)(data);
|
|
1132
1133
|
const response = {
|
|
@@ -1139,7 +1140,7 @@ var de_CreateWhatIfForecastCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1139
1140
|
if (output.statusCode >= 300) {
|
|
1140
1141
|
return de_CommandError(output, context);
|
|
1141
1142
|
}
|
|
1142
|
-
const data = await
|
|
1143
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1143
1144
|
let contents = {};
|
|
1144
1145
|
contents = (0, import_smithy_client._json)(data);
|
|
1145
1146
|
const response = {
|
|
@@ -1152,7 +1153,7 @@ var de_CreateWhatIfForecastExportCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1152
1153
|
if (output.statusCode >= 300) {
|
|
1153
1154
|
return de_CommandError(output, context);
|
|
1154
1155
|
}
|
|
1155
|
-
const data = await
|
|
1156
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1156
1157
|
let contents = {};
|
|
1157
1158
|
contents = (0, import_smithy_client._json)(data);
|
|
1158
1159
|
const response = {
|
|
@@ -1305,7 +1306,7 @@ var de_DescribeAutoPredictorCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1305
1306
|
if (output.statusCode >= 300) {
|
|
1306
1307
|
return de_CommandError(output, context);
|
|
1307
1308
|
}
|
|
1308
|
-
const data = await
|
|
1309
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1309
1310
|
let contents = {};
|
|
1310
1311
|
contents = de_DescribeAutoPredictorResponse(data, context);
|
|
1311
1312
|
const response = {
|
|
@@ -1318,7 +1319,7 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1318
1319
|
if (output.statusCode >= 300) {
|
|
1319
1320
|
return de_CommandError(output, context);
|
|
1320
1321
|
}
|
|
1321
|
-
const data = await
|
|
1322
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1322
1323
|
let contents = {};
|
|
1323
1324
|
contents = de_DescribeDatasetResponse(data, context);
|
|
1324
1325
|
const response = {
|
|
@@ -1331,7 +1332,7 @@ var de_DescribeDatasetGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1331
1332
|
if (output.statusCode >= 300) {
|
|
1332
1333
|
return de_CommandError(output, context);
|
|
1333
1334
|
}
|
|
1334
|
-
const data = await
|
|
1335
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1335
1336
|
let contents = {};
|
|
1336
1337
|
contents = de_DescribeDatasetGroupResponse(data, context);
|
|
1337
1338
|
const response = {
|
|
@@ -1344,7 +1345,7 @@ var de_DescribeDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1344
1345
|
if (output.statusCode >= 300) {
|
|
1345
1346
|
return de_CommandError(output, context);
|
|
1346
1347
|
}
|
|
1347
|
-
const data = await
|
|
1348
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1348
1349
|
let contents = {};
|
|
1349
1350
|
contents = de_DescribeDatasetImportJobResponse(data, context);
|
|
1350
1351
|
const response = {
|
|
@@ -1357,7 +1358,7 @@ var de_DescribeExplainabilityCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1357
1358
|
if (output.statusCode >= 300) {
|
|
1358
1359
|
return de_CommandError(output, context);
|
|
1359
1360
|
}
|
|
1360
|
-
const data = await
|
|
1361
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1361
1362
|
let contents = {};
|
|
1362
1363
|
contents = de_DescribeExplainabilityResponse(data, context);
|
|
1363
1364
|
const response = {
|
|
@@ -1370,7 +1371,7 @@ var de_DescribeExplainabilityExportCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1370
1371
|
if (output.statusCode >= 300) {
|
|
1371
1372
|
return de_CommandError(output, context);
|
|
1372
1373
|
}
|
|
1373
|
-
const data = await
|
|
1374
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1374
1375
|
let contents = {};
|
|
1375
1376
|
contents = de_DescribeExplainabilityExportResponse(data, context);
|
|
1376
1377
|
const response = {
|
|
@@ -1383,7 +1384,7 @@ var de_DescribeForecastCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1383
1384
|
if (output.statusCode >= 300) {
|
|
1384
1385
|
return de_CommandError(output, context);
|
|
1385
1386
|
}
|
|
1386
|
-
const data = await
|
|
1387
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1387
1388
|
let contents = {};
|
|
1388
1389
|
contents = de_DescribeForecastResponse(data, context);
|
|
1389
1390
|
const response = {
|
|
@@ -1396,7 +1397,7 @@ var de_DescribeForecastExportJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1396
1397
|
if (output.statusCode >= 300) {
|
|
1397
1398
|
return de_CommandError(output, context);
|
|
1398
1399
|
}
|
|
1399
|
-
const data = await
|
|
1400
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1400
1401
|
let contents = {};
|
|
1401
1402
|
contents = de_DescribeForecastExportJobResponse(data, context);
|
|
1402
1403
|
const response = {
|
|
@@ -1409,7 +1410,7 @@ var de_DescribeMonitorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1409
1410
|
if (output.statusCode >= 300) {
|
|
1410
1411
|
return de_CommandError(output, context);
|
|
1411
1412
|
}
|
|
1412
|
-
const data = await
|
|
1413
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1413
1414
|
let contents = {};
|
|
1414
1415
|
contents = de_DescribeMonitorResponse(data, context);
|
|
1415
1416
|
const response = {
|
|
@@ -1422,7 +1423,7 @@ var de_DescribePredictorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1422
1423
|
if (output.statusCode >= 300) {
|
|
1423
1424
|
return de_CommandError(output, context);
|
|
1424
1425
|
}
|
|
1425
|
-
const data = await
|
|
1426
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1426
1427
|
let contents = {};
|
|
1427
1428
|
contents = de_DescribePredictorResponse(data, context);
|
|
1428
1429
|
const response = {
|
|
@@ -1435,7 +1436,7 @@ var de_DescribePredictorBacktestExportJobCommand = /* @__PURE__ */ __name(async
|
|
|
1435
1436
|
if (output.statusCode >= 300) {
|
|
1436
1437
|
return de_CommandError(output, context);
|
|
1437
1438
|
}
|
|
1438
|
-
const data = await
|
|
1439
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1439
1440
|
let contents = {};
|
|
1440
1441
|
contents = de_DescribePredictorBacktestExportJobResponse(data, context);
|
|
1441
1442
|
const response = {
|
|
@@ -1448,7 +1449,7 @@ var de_DescribeWhatIfAnalysisCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1448
1449
|
if (output.statusCode >= 300) {
|
|
1449
1450
|
return de_CommandError(output, context);
|
|
1450
1451
|
}
|
|
1451
|
-
const data = await
|
|
1452
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1452
1453
|
let contents = {};
|
|
1453
1454
|
contents = de_DescribeWhatIfAnalysisResponse(data, context);
|
|
1454
1455
|
const response = {
|
|
@@ -1461,7 +1462,7 @@ var de_DescribeWhatIfForecastCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1461
1462
|
if (output.statusCode >= 300) {
|
|
1462
1463
|
return de_CommandError(output, context);
|
|
1463
1464
|
}
|
|
1464
|
-
const data = await
|
|
1465
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1465
1466
|
let contents = {};
|
|
1466
1467
|
contents = de_DescribeWhatIfForecastResponse(data, context);
|
|
1467
1468
|
const response = {
|
|
@@ -1474,7 +1475,7 @@ var de_DescribeWhatIfForecastExportCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1474
1475
|
if (output.statusCode >= 300) {
|
|
1475
1476
|
return de_CommandError(output, context);
|
|
1476
1477
|
}
|
|
1477
|
-
const data = await
|
|
1478
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1478
1479
|
let contents = {};
|
|
1479
1480
|
contents = de_DescribeWhatIfForecastExportResponse(data, context);
|
|
1480
1481
|
const response = {
|
|
@@ -1487,7 +1488,7 @@ var de_GetAccuracyMetricsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1487
1488
|
if (output.statusCode >= 300) {
|
|
1488
1489
|
return de_CommandError(output, context);
|
|
1489
1490
|
}
|
|
1490
|
-
const data = await
|
|
1491
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1491
1492
|
let contents = {};
|
|
1492
1493
|
contents = de_GetAccuracyMetricsResponse(data, context);
|
|
1493
1494
|
const response = {
|
|
@@ -1500,7 +1501,7 @@ var de_ListDatasetGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1500
1501
|
if (output.statusCode >= 300) {
|
|
1501
1502
|
return de_CommandError(output, context);
|
|
1502
1503
|
}
|
|
1503
|
-
const data = await
|
|
1504
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1504
1505
|
let contents = {};
|
|
1505
1506
|
contents = de_ListDatasetGroupsResponse(data, context);
|
|
1506
1507
|
const response = {
|
|
@@ -1513,7 +1514,7 @@ var de_ListDatasetImportJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1513
1514
|
if (output.statusCode >= 300) {
|
|
1514
1515
|
return de_CommandError(output, context);
|
|
1515
1516
|
}
|
|
1516
|
-
const data = await
|
|
1517
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1517
1518
|
let contents = {};
|
|
1518
1519
|
contents = de_ListDatasetImportJobsResponse(data, context);
|
|
1519
1520
|
const response = {
|
|
@@ -1526,7 +1527,7 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1526
1527
|
if (output.statusCode >= 300) {
|
|
1527
1528
|
return de_CommandError(output, context);
|
|
1528
1529
|
}
|
|
1529
|
-
const data = await
|
|
1530
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1530
1531
|
let contents = {};
|
|
1531
1532
|
contents = de_ListDatasetsResponse(data, context);
|
|
1532
1533
|
const response = {
|
|
@@ -1539,7 +1540,7 @@ var de_ListExplainabilitiesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1539
1540
|
if (output.statusCode >= 300) {
|
|
1540
1541
|
return de_CommandError(output, context);
|
|
1541
1542
|
}
|
|
1542
|
-
const data = await
|
|
1543
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1543
1544
|
let contents = {};
|
|
1544
1545
|
contents = de_ListExplainabilitiesResponse(data, context);
|
|
1545
1546
|
const response = {
|
|
@@ -1552,7 +1553,7 @@ var de_ListExplainabilityExportsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1552
1553
|
if (output.statusCode >= 300) {
|
|
1553
1554
|
return de_CommandError(output, context);
|
|
1554
1555
|
}
|
|
1555
|
-
const data = await
|
|
1556
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1556
1557
|
let contents = {};
|
|
1557
1558
|
contents = de_ListExplainabilityExportsResponse(data, context);
|
|
1558
1559
|
const response = {
|
|
@@ -1565,7 +1566,7 @@ var de_ListForecastExportJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1565
1566
|
if (output.statusCode >= 300) {
|
|
1566
1567
|
return de_CommandError(output, context);
|
|
1567
1568
|
}
|
|
1568
|
-
const data = await
|
|
1569
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1569
1570
|
let contents = {};
|
|
1570
1571
|
contents = de_ListForecastExportJobsResponse(data, context);
|
|
1571
1572
|
const response = {
|
|
@@ -1578,7 +1579,7 @@ var de_ListForecastsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1578
1579
|
if (output.statusCode >= 300) {
|
|
1579
1580
|
return de_CommandError(output, context);
|
|
1580
1581
|
}
|
|
1581
|
-
const data = await
|
|
1582
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1582
1583
|
let contents = {};
|
|
1583
1584
|
contents = de_ListForecastsResponse(data, context);
|
|
1584
1585
|
const response = {
|
|
@@ -1591,7 +1592,7 @@ var de_ListMonitorEvaluationsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1591
1592
|
if (output.statusCode >= 300) {
|
|
1592
1593
|
return de_CommandError(output, context);
|
|
1593
1594
|
}
|
|
1594
|
-
const data = await
|
|
1595
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1595
1596
|
let contents = {};
|
|
1596
1597
|
contents = de_ListMonitorEvaluationsResponse(data, context);
|
|
1597
1598
|
const response = {
|
|
@@ -1604,7 +1605,7 @@ var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1604
1605
|
if (output.statusCode >= 300) {
|
|
1605
1606
|
return de_CommandError(output, context);
|
|
1606
1607
|
}
|
|
1607
|
-
const data = await
|
|
1608
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1608
1609
|
let contents = {};
|
|
1609
1610
|
contents = de_ListMonitorsResponse(data, context);
|
|
1610
1611
|
const response = {
|
|
@@ -1617,7 +1618,7 @@ var de_ListPredictorBacktestExportJobsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1617
1618
|
if (output.statusCode >= 300) {
|
|
1618
1619
|
return de_CommandError(output, context);
|
|
1619
1620
|
}
|
|
1620
|
-
const data = await
|
|
1621
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1621
1622
|
let contents = {};
|
|
1622
1623
|
contents = de_ListPredictorBacktestExportJobsResponse(data, context);
|
|
1623
1624
|
const response = {
|
|
@@ -1630,7 +1631,7 @@ var de_ListPredictorsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1630
1631
|
if (output.statusCode >= 300) {
|
|
1631
1632
|
return de_CommandError(output, context);
|
|
1632
1633
|
}
|
|
1633
|
-
const data = await
|
|
1634
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1634
1635
|
let contents = {};
|
|
1635
1636
|
contents = de_ListPredictorsResponse(data, context);
|
|
1636
1637
|
const response = {
|
|
@@ -1643,7 +1644,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1643
1644
|
if (output.statusCode >= 300) {
|
|
1644
1645
|
return de_CommandError(output, context);
|
|
1645
1646
|
}
|
|
1646
|
-
const data = await
|
|
1647
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1647
1648
|
let contents = {};
|
|
1648
1649
|
contents = (0, import_smithy_client._json)(data);
|
|
1649
1650
|
const response = {
|
|
@@ -1656,7 +1657,7 @@ var de_ListWhatIfAnalysesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1656
1657
|
if (output.statusCode >= 300) {
|
|
1657
1658
|
return de_CommandError(output, context);
|
|
1658
1659
|
}
|
|
1659
|
-
const data = await
|
|
1660
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1660
1661
|
let contents = {};
|
|
1661
1662
|
contents = de_ListWhatIfAnalysesResponse(data, context);
|
|
1662
1663
|
const response = {
|
|
@@ -1669,7 +1670,7 @@ var de_ListWhatIfForecastExportsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1669
1670
|
if (output.statusCode >= 300) {
|
|
1670
1671
|
return de_CommandError(output, context);
|
|
1671
1672
|
}
|
|
1672
|
-
const data = await
|
|
1673
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1673
1674
|
let contents = {};
|
|
1674
1675
|
contents = de_ListWhatIfForecastExportsResponse(data, context);
|
|
1675
1676
|
const response = {
|
|
@@ -1682,7 +1683,7 @@ var de_ListWhatIfForecastsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1682
1683
|
if (output.statusCode >= 300) {
|
|
1683
1684
|
return de_CommandError(output, context);
|
|
1684
1685
|
}
|
|
1685
|
-
const data = await
|
|
1686
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1686
1687
|
let contents = {};
|
|
1687
1688
|
contents = de_ListWhatIfForecastsResponse(data, context);
|
|
1688
1689
|
const response = {
|
|
@@ -1715,7 +1716,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1715
1716
|
if (output.statusCode >= 300) {
|
|
1716
1717
|
return de_CommandError(output, context);
|
|
1717
1718
|
}
|
|
1718
|
-
const data = await
|
|
1719
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1719
1720
|
let contents = {};
|
|
1720
1721
|
contents = (0, import_smithy_client._json)(data);
|
|
1721
1722
|
const response = {
|
|
@@ -1728,7 +1729,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1728
1729
|
if (output.statusCode >= 300) {
|
|
1729
1730
|
return de_CommandError(output, context);
|
|
1730
1731
|
}
|
|
1731
|
-
const data = await
|
|
1732
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1732
1733
|
let contents = {};
|
|
1733
1734
|
contents = (0, import_smithy_client._json)(data);
|
|
1734
1735
|
const response = {
|
|
@@ -1741,7 +1742,7 @@ var de_UpdateDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1741
1742
|
if (output.statusCode >= 300) {
|
|
1742
1743
|
return de_CommandError(output, context);
|
|
1743
1744
|
}
|
|
1744
|
-
const data = await
|
|
1745
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1745
1746
|
let contents = {};
|
|
1746
1747
|
contents = (0, import_smithy_client._json)(data);
|
|
1747
1748
|
const response = {
|
|
@@ -1753,9 +1754,9 @@ var de_UpdateDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1753
1754
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1754
1755
|
const parsedOutput = {
|
|
1755
1756
|
...output,
|
|
1756
|
-
body: await
|
|
1757
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1757
1758
|
};
|
|
1758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1759
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1759
1760
|
switch (errorCode) {
|
|
1760
1761
|
case "InvalidInputException":
|
|
1761
1762
|
case "com.amazonaws.forecast#InvalidInputException":
|
|
@@ -2680,7 +2681,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2680
2681
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2681
2682
|
cfId: output.headers["x-amz-cf-id"]
|
|
2682
2683
|
}), "deserializeMetadata");
|
|
2683
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2684
2684
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ForecastServiceException);
|
|
2685
2685
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2686
2686
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2707,46 +2707,6 @@ function sharedHeaders(operation) {
|
|
|
2707
2707
|
};
|
|
2708
2708
|
}
|
|
2709
2709
|
__name(sharedHeaders, "sharedHeaders");
|
|
2710
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2711
|
-
if (encoded.length) {
|
|
2712
|
-
return JSON.parse(encoded);
|
|
2713
|
-
}
|
|
2714
|
-
return {};
|
|
2715
|
-
}), "parseBody");
|
|
2716
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2717
|
-
const value = await parseBody(errorBody, context);
|
|
2718
|
-
value.message = value.message ?? value.Message;
|
|
2719
|
-
return value;
|
|
2720
|
-
}, "parseErrorBody");
|
|
2721
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2722
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2723
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2724
|
-
let cleanValue = rawValue;
|
|
2725
|
-
if (typeof cleanValue === "number") {
|
|
2726
|
-
cleanValue = cleanValue.toString();
|
|
2727
|
-
}
|
|
2728
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2729
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2730
|
-
}
|
|
2731
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2732
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2733
|
-
}
|
|
2734
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2735
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2736
|
-
}
|
|
2737
|
-
return cleanValue;
|
|
2738
|
-
}, "sanitizeErrorCode");
|
|
2739
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2740
|
-
if (headerKey !== void 0) {
|
|
2741
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2742
|
-
}
|
|
2743
|
-
if (data.code !== void 0) {
|
|
2744
|
-
return sanitizeErrorCode(data.code);
|
|
2745
|
-
}
|
|
2746
|
-
if (data["__type"] !== void 0) {
|
|
2747
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2748
|
-
}
|
|
2749
|
-
}, "loadRestJsonErrorCode");
|
|
2750
2710
|
|
|
2751
2711
|
// src/commands/CreateAutoPredictorCommand.ts
|
|
2752
2712
|
var _CreateAutoPredictorCommand = class _CreateAutoPredictorCommand 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 { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { ForecastServiceException as __BaseException } from "../models/ForecastServiceException";
|
|
@@ -2159,43 +2160,3 @@ function sharedHeaders(operation) {
|
|
|
2159
2160
|
"x-amz-target": `AmazonForecast.${operation}`,
|
|
2160
2161
|
};
|
|
2161
2162
|
}
|
|
2162
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2163
|
-
if (encoded.length) {
|
|
2164
|
-
return JSON.parse(encoded);
|
|
2165
|
-
}
|
|
2166
|
-
return {};
|
|
2167
|
-
});
|
|
2168
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2169
|
-
const value = await parseBody(errorBody, context);
|
|
2170
|
-
value.message = value.message ?? value.Message;
|
|
2171
|
-
return value;
|
|
2172
|
-
};
|
|
2173
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2174
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2175
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2176
|
-
let cleanValue = rawValue;
|
|
2177
|
-
if (typeof cleanValue === "number") {
|
|
2178
|
-
cleanValue = cleanValue.toString();
|
|
2179
|
-
}
|
|
2180
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2181
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2182
|
-
}
|
|
2183
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2184
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2185
|
-
}
|
|
2186
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2187
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2188
|
-
}
|
|
2189
|
-
return cleanValue;
|
|
2190
|
-
};
|
|
2191
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2192
|
-
if (headerKey !== undefined) {
|
|
2193
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2194
|
-
}
|
|
2195
|
-
if (data.code !== undefined) {
|
|
2196
|
-
return sanitizeErrorCode(data.code);
|
|
2197
|
-
}
|
|
2198
|
-
if (data["__type"] !== undefined) {
|
|
2199
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2200
|
-
}
|
|
2201
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-forecast",
|
|
3
3
|
"description": "AWS SDK for JavaScript Forecast Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
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-forecast",
|
|
@@ -20,9 +20,9 @@
|
|
|
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.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
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",
|