@aws-sdk/client-forecastquery 3.137.0 → 3.145.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/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-forecastquery
9
+
10
+
11
+
12
+
13
+
14
+ # [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
15
+
16
+
17
+ ### Features
18
+
19
+ * **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
7
37
 
8
38
 
package/README.md CHANGED
@@ -165,7 +165,7 @@ try {
165
165
  const data = await client.send(command);
166
166
  // process data.
167
167
  } catch (error) {
168
- const { requestId, cfId, extendedRequestId } = error.$metadata;
168
+ const { requestId, cfId, extendedRequestId } = error.$$metadata;
169
169
  console.log({ requestId, cfId, extendedRequestId });
170
170
  /**
171
171
  * The keys within exceptions are also parsed.
@@ -34,7 +34,6 @@ const deserializeAws_json1_1QueryForecastCommandError = async (output, context)
34
34
  ...output,
35
35
  body: await parseBody(output.body, context),
36
36
  };
37
- let response;
38
37
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
39
38
  switch (errorCode) {
40
39
  case "InvalidInputException":
@@ -54,14 +53,12 @@ const deserializeAws_json1_1QueryForecastCommandError = async (output, context)
54
53
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
55
54
  default:
56
55
  const parsedBody = parsedOutput.body;
57
- const $metadata = deserializeMetadata(output);
58
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
59
- response = new ForecastqueryServiceException_1.ForecastqueryServiceException({
60
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
61
- $fault: "client",
62
- $metadata,
56
+ (0, smithy_client_1.throwDefaultError)({
57
+ output,
58
+ parsedBody,
59
+ exceptionCtor: ForecastqueryServiceException_1.ForecastqueryServiceException,
60
+ errorCode,
63
61
  });
64
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
65
62
  }
66
63
  };
67
64
  const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectString as __expectString, limitedParseDouble as __limitedParseDouble, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { ForecastqueryServiceException as __BaseException } from "../models/ForecastqueryServiceException";
5
5
  import { InvalidInputException, InvalidNextTokenException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, } from "../models/models_0";
6
6
  export var serializeAws_json1_1QueryForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -33,7 +33,7 @@ export var deserializeAws_json1_1QueryForecastCommand = function (output, contex
33
33
  });
34
34
  }); };
35
35
  var deserializeAws_json1_1QueryForecastCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
36
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
36
+ var parsedOutput, _a, errorCode, _b, parsedBody;
37
37
  var _c;
38
38
  return __generator(this, function (_d) {
39
39
  switch (_d.label) {
@@ -70,14 +70,14 @@ var deserializeAws_json1_1QueryForecastCommandError = function (output, context)
70
70
  case 11: throw _d.sent();
71
71
  case 12:
72
72
  parsedBody = parsedOutput.body;
73
- $metadata = deserializeMetadata(output);
74
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
75
- response = new __BaseException({
76
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
77
- $fault: "client",
78
- $metadata: $metadata,
73
+ throwDefaultError({
74
+ output: output,
75
+ parsedBody: parsedBody,
76
+ exceptionCtor: __BaseException,
77
+ errorCode: errorCode,
79
78
  });
80
- throw __decorateServiceException(response, parsedBody);
79
+ _d.label = 13;
80
+ case 13: return [2];
81
81
  }
82
82
  });
83
83
  }); };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-forecastquery",
3
3
  "description": "AWS SDK for JavaScript Forecastquery Client for Node.js, Browser and React Native",
4
- "version": "3.137.0",
4
+ "version": "3.145.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",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.137.0",
21
+ "@aws-sdk/client-sts": "3.145.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.137.0",
23
+ "@aws-sdk/credential-provider-node": "3.145.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.137.0",
39
+ "@aws-sdk/smithy-client": "3.142.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.137.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.137.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.142.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.142.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
@@ -61,6 +61,11 @@
61
61
  "typedoc": "0.19.2",
62
62
  "typescript": "~4.6.2"
63
63
  },
64
+ "overrides": {
65
+ "typedoc": {
66
+ "typescript": "~4.6.2"
67
+ }
68
+ },
64
69
  "engines": {
65
70
  "node": ">=12.0.0"
66
71
  },