@aws-sdk/client-forecastquery 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +12 -17
- package/dist-es/protocols/Aws_json1_1.js +8 -13
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-forecastquery
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-forecastquery
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-forecastquery
|
|
@@ -35,8 +35,7 @@ const deserializeAws_json1_1QueryForecastCommandError = async (output, context)
|
|
|
35
35
|
body: await parseBody(output.body, context),
|
|
36
36
|
};
|
|
37
37
|
let response;
|
|
38
|
-
|
|
39
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
38
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
40
39
|
switch (errorCode) {
|
|
41
40
|
case "InvalidInputException":
|
|
42
41
|
case "com.amazonaws.forecastquery#InvalidInputException":
|
|
@@ -55,10 +54,12 @@ const deserializeAws_json1_1QueryForecastCommandError = async (output, context)
|
|
|
55
54
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
56
55
|
default:
|
|
57
56
|
const parsedBody = parsedOutput.body;
|
|
57
|
+
const $metadata = deserializeMetadata(output);
|
|
58
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
58
59
|
response = new ForecastqueryServiceException_1.ForecastqueryServiceException({
|
|
59
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
60
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
60
61
|
$fault: "client",
|
|
61
|
-
$metadata
|
|
62
|
+
$metadata,
|
|
62
63
|
});
|
|
63
64
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
64
65
|
}
|
|
@@ -121,12 +122,11 @@ const serializeAws_json1_1Filters = (input, context) => {
|
|
|
121
122
|
};
|
|
122
123
|
const serializeAws_json1_1QueryForecastRequest = (input, context) => {
|
|
123
124
|
return {
|
|
124
|
-
...(input.EndDate
|
|
125
|
-
...(input.Filters
|
|
126
|
-
|
|
127
|
-
...(input.
|
|
128
|
-
...(input.
|
|
129
|
-
...(input.StartDate !== undefined && input.StartDate !== null && { StartDate: input.StartDate }),
|
|
125
|
+
...(input.EndDate != null && { EndDate: input.EndDate }),
|
|
126
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
127
|
+
...(input.ForecastArn != null && { ForecastArn: input.ForecastArn }),
|
|
128
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
129
|
+
...(input.StartDate != null && { StartDate: input.StartDate }),
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
132
|
const deserializeAws_json1_1DataPoint = (output, context) => {
|
|
@@ -137,9 +137,7 @@ const deserializeAws_json1_1DataPoint = (output, context) => {
|
|
|
137
137
|
};
|
|
138
138
|
const deserializeAws_json1_1Forecast = (output, context) => {
|
|
139
139
|
return {
|
|
140
|
-
Predictions: output.Predictions
|
|
141
|
-
? deserializeAws_json1_1Predictions(output.Predictions, context)
|
|
142
|
-
: undefined,
|
|
140
|
+
Predictions: output.Predictions != null ? deserializeAws_json1_1Predictions(output.Predictions, context) : undefined,
|
|
143
141
|
};
|
|
144
142
|
};
|
|
145
143
|
const deserializeAws_json1_1InvalidInputException = (output, context) => {
|
|
@@ -170,9 +168,7 @@ const deserializeAws_json1_1Predictions = (output, context) => {
|
|
|
170
168
|
};
|
|
171
169
|
const deserializeAws_json1_1QueryForecastResponse = (output, context) => {
|
|
172
170
|
return {
|
|
173
|
-
Forecast: output.Forecast
|
|
174
|
-
? deserializeAws_json1_1Forecast(output.Forecast, context)
|
|
175
|
-
: undefined,
|
|
171
|
+
Forecast: output.Forecast != null ? deserializeAws_json1_1Forecast(output.Forecast, context) : undefined,
|
|
176
172
|
};
|
|
177
173
|
};
|
|
178
174
|
const deserializeAws_json1_1ResourceInUseException = (output, context) => {
|
|
@@ -258,5 +254,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
258
254
|
if (data["__type"] !== undefined) {
|
|
259
255
|
return sanitizeErrorCode(data["__type"]);
|
|
260
256
|
}
|
|
261
|
-
return "";
|
|
262
257
|
};
|
|
@@ -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;
|
|
36
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
37
37
|
var _c;
|
|
38
38
|
return __generator(this, function (_d) {
|
|
39
39
|
switch (_d.label) {
|
|
@@ -43,7 +43,6 @@ var deserializeAws_json1_1QueryForecastCommandError = function (output, context)
|
|
|
43
43
|
return [4, parseBody(output.body, context)];
|
|
44
44
|
case 1:
|
|
45
45
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
46
|
-
errorCode = "UnknownError";
|
|
47
46
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
48
47
|
_b = errorCode;
|
|
49
48
|
switch (_b) {
|
|
@@ -71,10 +70,12 @@ var deserializeAws_json1_1QueryForecastCommandError = function (output, context)
|
|
|
71
70
|
case 11: throw _d.sent();
|
|
72
71
|
case 12:
|
|
73
72
|
parsedBody = parsedOutput.body;
|
|
73
|
+
$metadata = deserializeMetadata(output);
|
|
74
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
74
75
|
response = new __BaseException({
|
|
75
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
76
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
76
77
|
$fault: "client",
|
|
77
|
-
$metadata:
|
|
78
|
+
$metadata: $metadata,
|
|
78
79
|
});
|
|
79
80
|
throw __decorateServiceException(response, parsedBody);
|
|
80
81
|
}
|
|
@@ -136,8 +137,7 @@ var serializeAws_json1_1Filters = function (input, context) {
|
|
|
136
137
|
}, {});
|
|
137
138
|
};
|
|
138
139
|
var serializeAws_json1_1QueryForecastRequest = function (input, context) {
|
|
139
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.EndDate
|
|
140
|
-
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.ForecastArn !== undefined && input.ForecastArn !== null && { ForecastArn: input.ForecastArn })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartDate !== undefined && input.StartDate !== null && { StartDate: input.StartDate }));
|
|
140
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.EndDate != null && { EndDate: input.EndDate })), (input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.ForecastArn != null && { ForecastArn: input.ForecastArn })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartDate != null && { StartDate: input.StartDate }));
|
|
141
141
|
};
|
|
142
142
|
var deserializeAws_json1_1DataPoint = function (output, context) {
|
|
143
143
|
return {
|
|
@@ -147,9 +147,7 @@ var deserializeAws_json1_1DataPoint = function (output, context) {
|
|
|
147
147
|
};
|
|
148
148
|
var deserializeAws_json1_1Forecast = function (output, context) {
|
|
149
149
|
return {
|
|
150
|
-
Predictions: output.Predictions
|
|
151
|
-
? deserializeAws_json1_1Predictions(output.Predictions, context)
|
|
152
|
-
: undefined,
|
|
150
|
+
Predictions: output.Predictions != null ? deserializeAws_json1_1Predictions(output.Predictions, context) : undefined,
|
|
153
151
|
};
|
|
154
152
|
};
|
|
155
153
|
var deserializeAws_json1_1InvalidInputException = function (output, context) {
|
|
@@ -179,9 +177,7 @@ var deserializeAws_json1_1Predictions = function (output, context) {
|
|
|
179
177
|
};
|
|
180
178
|
var deserializeAws_json1_1QueryForecastResponse = function (output, context) {
|
|
181
179
|
return {
|
|
182
|
-
Forecast: output.Forecast
|
|
183
|
-
? deserializeAws_json1_1Forecast(output.Forecast, context)
|
|
184
|
-
: undefined,
|
|
180
|
+
Forecast: output.Forecast != null ? deserializeAws_json1_1Forecast(output.Forecast, context) : undefined,
|
|
185
181
|
};
|
|
186
182
|
};
|
|
187
183
|
var deserializeAws_json1_1ResourceInUseException = function (output, context) {
|
|
@@ -279,5 +275,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
279
275
|
if (data["__type"] !== undefined) {
|
|
280
276
|
return sanitizeErrorCode(data["__type"]);
|
|
281
277
|
}
|
|
282
|
-
return "";
|
|
283
278
|
};
|
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.
|
|
4
|
+
"version": "3.128.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,35 +18,35 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.128.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.128.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.128.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.128.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
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.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.128.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|