@aws-sdk/client-forecast 3.353.0 → 3.357.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.
@@ -1076,7 +1076,7 @@ const de_DeleteDatasetCommand = async (output, context) => {
1076
1076
  if (output.statusCode >= 300) {
1077
1077
  return de_DeleteDatasetCommandError(output, context);
1078
1078
  }
1079
- await collectBody(output.body, context);
1079
+ await (0, smithy_client_1.collectBody)(output.body, context);
1080
1080
  const response = {
1081
1081
  $metadata: deserializeMetadata(output),
1082
1082
  };
@@ -1112,7 +1112,7 @@ const de_DeleteDatasetGroupCommand = async (output, context) => {
1112
1112
  if (output.statusCode >= 300) {
1113
1113
  return de_DeleteDatasetGroupCommandError(output, context);
1114
1114
  }
1115
- await collectBody(output.body, context);
1115
+ await (0, smithy_client_1.collectBody)(output.body, context);
1116
1116
  const response = {
1117
1117
  $metadata: deserializeMetadata(output),
1118
1118
  };
@@ -1148,7 +1148,7 @@ const de_DeleteDatasetImportJobCommand = async (output, context) => {
1148
1148
  if (output.statusCode >= 300) {
1149
1149
  return de_DeleteDatasetImportJobCommandError(output, context);
1150
1150
  }
1151
- await collectBody(output.body, context);
1151
+ await (0, smithy_client_1.collectBody)(output.body, context);
1152
1152
  const response = {
1153
1153
  $metadata: deserializeMetadata(output),
1154
1154
  };
@@ -1184,7 +1184,7 @@ const de_DeleteExplainabilityCommand = async (output, context) => {
1184
1184
  if (output.statusCode >= 300) {
1185
1185
  return de_DeleteExplainabilityCommandError(output, context);
1186
1186
  }
1187
- await collectBody(output.body, context);
1187
+ await (0, smithy_client_1.collectBody)(output.body, context);
1188
1188
  const response = {
1189
1189
  $metadata: deserializeMetadata(output),
1190
1190
  };
@@ -1220,7 +1220,7 @@ const de_DeleteExplainabilityExportCommand = async (output, context) => {
1220
1220
  if (output.statusCode >= 300) {
1221
1221
  return de_DeleteExplainabilityExportCommandError(output, context);
1222
1222
  }
1223
- await collectBody(output.body, context);
1223
+ await (0, smithy_client_1.collectBody)(output.body, context);
1224
1224
  const response = {
1225
1225
  $metadata: deserializeMetadata(output),
1226
1226
  };
@@ -1256,7 +1256,7 @@ const de_DeleteForecastCommand = async (output, context) => {
1256
1256
  if (output.statusCode >= 300) {
1257
1257
  return de_DeleteForecastCommandError(output, context);
1258
1258
  }
1259
- await collectBody(output.body, context);
1259
+ await (0, smithy_client_1.collectBody)(output.body, context);
1260
1260
  const response = {
1261
1261
  $metadata: deserializeMetadata(output),
1262
1262
  };
@@ -1292,7 +1292,7 @@ const de_DeleteForecastExportJobCommand = async (output, context) => {
1292
1292
  if (output.statusCode >= 300) {
1293
1293
  return de_DeleteForecastExportJobCommandError(output, context);
1294
1294
  }
1295
- await collectBody(output.body, context);
1295
+ await (0, smithy_client_1.collectBody)(output.body, context);
1296
1296
  const response = {
1297
1297
  $metadata: deserializeMetadata(output),
1298
1298
  };
@@ -1328,7 +1328,7 @@ const de_DeleteMonitorCommand = async (output, context) => {
1328
1328
  if (output.statusCode >= 300) {
1329
1329
  return de_DeleteMonitorCommandError(output, context);
1330
1330
  }
1331
- await collectBody(output.body, context);
1331
+ await (0, smithy_client_1.collectBody)(output.body, context);
1332
1332
  const response = {
1333
1333
  $metadata: deserializeMetadata(output),
1334
1334
  };
@@ -1364,7 +1364,7 @@ const de_DeletePredictorCommand = async (output, context) => {
1364
1364
  if (output.statusCode >= 300) {
1365
1365
  return de_DeletePredictorCommandError(output, context);
1366
1366
  }
1367
- await collectBody(output.body, context);
1367
+ await (0, smithy_client_1.collectBody)(output.body, context);
1368
1368
  const response = {
1369
1369
  $metadata: deserializeMetadata(output),
1370
1370
  };
@@ -1400,7 +1400,7 @@ const de_DeletePredictorBacktestExportJobCommand = async (output, context) => {
1400
1400
  if (output.statusCode >= 300) {
1401
1401
  return de_DeletePredictorBacktestExportJobCommandError(output, context);
1402
1402
  }
1403
- await collectBody(output.body, context);
1403
+ await (0, smithy_client_1.collectBody)(output.body, context);
1404
1404
  const response = {
1405
1405
  $metadata: deserializeMetadata(output),
1406
1406
  };
@@ -1436,7 +1436,7 @@ const de_DeleteResourceTreeCommand = async (output, context) => {
1436
1436
  if (output.statusCode >= 300) {
1437
1437
  return de_DeleteResourceTreeCommandError(output, context);
1438
1438
  }
1439
- await collectBody(output.body, context);
1439
+ await (0, smithy_client_1.collectBody)(output.body, context);
1440
1440
  const response = {
1441
1441
  $metadata: deserializeMetadata(output),
1442
1442
  };
@@ -1472,7 +1472,7 @@ const de_DeleteWhatIfAnalysisCommand = async (output, context) => {
1472
1472
  if (output.statusCode >= 300) {
1473
1473
  return de_DeleteWhatIfAnalysisCommandError(output, context);
1474
1474
  }
1475
- await collectBody(output.body, context);
1475
+ await (0, smithy_client_1.collectBody)(output.body, context);
1476
1476
  const response = {
1477
1477
  $metadata: deserializeMetadata(output),
1478
1478
  };
@@ -1508,7 +1508,7 @@ const de_DeleteWhatIfForecastCommand = async (output, context) => {
1508
1508
  if (output.statusCode >= 300) {
1509
1509
  return de_DeleteWhatIfForecastCommandError(output, context);
1510
1510
  }
1511
- await collectBody(output.body, context);
1511
+ await (0, smithy_client_1.collectBody)(output.body, context);
1512
1512
  const response = {
1513
1513
  $metadata: deserializeMetadata(output),
1514
1514
  };
@@ -1544,7 +1544,7 @@ const de_DeleteWhatIfForecastExportCommand = async (output, context) => {
1544
1544
  if (output.statusCode >= 300) {
1545
1545
  return de_DeleteWhatIfForecastExportCommandError(output, context);
1546
1546
  }
1547
- await collectBody(output.body, context);
1547
+ await (0, smithy_client_1.collectBody)(output.body, context);
1548
1548
  const response = {
1549
1549
  $metadata: deserializeMetadata(output),
1550
1550
  };
@@ -2660,7 +2660,7 @@ const de_ResumeResourceCommand = async (output, context) => {
2660
2660
  if (output.statusCode >= 300) {
2661
2661
  return de_ResumeResourceCommandError(output, context);
2662
2662
  }
2663
- await collectBody(output.body, context);
2663
+ await (0, smithy_client_1.collectBody)(output.body, context);
2664
2664
  const response = {
2665
2665
  $metadata: deserializeMetadata(output),
2666
2666
  };
@@ -2699,7 +2699,7 @@ const de_StopResourceCommand = async (output, context) => {
2699
2699
  if (output.statusCode >= 300) {
2700
2700
  return de_StopResourceCommandError(output, context);
2701
2701
  }
2702
- await collectBody(output.body, context);
2702
+ await (0, smithy_client_1.collectBody)(output.body, context);
2703
2703
  const response = {
2704
2704
  $metadata: deserializeMetadata(output),
2705
2705
  };
@@ -3793,13 +3793,7 @@ const deserializeMetadata = (output) => ({
3793
3793
  extendedRequestId: output.headers["x-amz-id-2"],
3794
3794
  cfId: output.headers["x-amz-cf-id"],
3795
3795
  });
3796
- const collectBody = (streamBody = new Uint8Array(), context) => {
3797
- if (streamBody instanceof Uint8Array) {
3798
- return Promise.resolve(streamBody);
3799
- }
3800
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3801
- };
3802
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3796
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
3803
3797
  const throwDefaultError = (0, smithy_client_1.withBaseException)(ForecastServiceException_1.ForecastServiceException);
3804
3798
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3805
3799
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1,4 +1,4 @@
1
- import { _json, 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 "@aws-sdk/smithy-client";
1
+ 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 "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { ForecastServiceException as __BaseException } from "../models/ForecastServiceException";
4
4
  import { InvalidInputException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, } from "../models/models_0";
@@ -3662,12 +3662,6 @@ const deserializeMetadata = (output) => ({
3662
3662
  extendedRequestId: output.headers["x-amz-id-2"],
3663
3663
  cfId: output.headers["x-amz-cf-id"],
3664
3664
  });
3665
- const collectBody = (streamBody = new Uint8Array(), context) => {
3666
- if (streamBody instanceof Uint8Array) {
3667
- return Promise.resolve(streamBody);
3668
- }
3669
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3670
- };
3671
3665
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3672
3666
  const throwDefaultError = withBaseException(__BaseException);
3673
3667
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -136,7 +136,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
136
136
  */
137
137
  runtime?: string;
138
138
  /**
139
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
139
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
140
140
  * trait of an operation.
141
141
  */
142
142
  disableHostPrefix?: boolean;
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.353.0",
4
+ "version": "3.357.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,36 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",