@aws-sdk/client-forecastquery 3.504.0 → 3.507.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 +4 -35
- package/dist-es/protocols/Aws_json1_1.js +3 -34
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -254,7 +254,7 @@ var se_QueryWhatIfForecastCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
254
254
|
}, "se_QueryWhatIfForecastCommand");
|
|
255
255
|
var de_QueryForecastCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
256
256
|
if (output.statusCode >= 300) {
|
|
257
|
-
return
|
|
257
|
+
return de_CommandError(output, context);
|
|
258
258
|
}
|
|
259
259
|
const data = await parseBody(output.body, context);
|
|
260
260
|
let contents = {};
|
|
@@ -265,40 +265,9 @@ var de_QueryForecastCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
265
265
|
};
|
|
266
266
|
return response;
|
|
267
267
|
}, "de_QueryForecastCommand");
|
|
268
|
-
var de_QueryForecastCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
269
|
-
const parsedOutput = {
|
|
270
|
-
...output,
|
|
271
|
-
body: await parseErrorBody(output.body, context)
|
|
272
|
-
};
|
|
273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
274
|
-
switch (errorCode) {
|
|
275
|
-
case "InvalidInputException":
|
|
276
|
-
case "com.amazonaws.forecastquery#InvalidInputException":
|
|
277
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
278
|
-
case "InvalidNextTokenException":
|
|
279
|
-
case "com.amazonaws.forecastquery#InvalidNextTokenException":
|
|
280
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
281
|
-
case "LimitExceededException":
|
|
282
|
-
case "com.amazonaws.forecastquery#LimitExceededException":
|
|
283
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
284
|
-
case "ResourceInUseException":
|
|
285
|
-
case "com.amazonaws.forecastquery#ResourceInUseException":
|
|
286
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
287
|
-
case "ResourceNotFoundException":
|
|
288
|
-
case "com.amazonaws.forecastquery#ResourceNotFoundException":
|
|
289
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
290
|
-
default:
|
|
291
|
-
const parsedBody = parsedOutput.body;
|
|
292
|
-
return throwDefaultError({
|
|
293
|
-
output,
|
|
294
|
-
parsedBody,
|
|
295
|
-
errorCode
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
}, "de_QueryForecastCommandError");
|
|
299
268
|
var de_QueryWhatIfForecastCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
300
269
|
if (output.statusCode >= 300) {
|
|
301
|
-
return
|
|
270
|
+
return de_CommandError(output, context);
|
|
302
271
|
}
|
|
303
272
|
const data = await parseBody(output.body, context);
|
|
304
273
|
let contents = {};
|
|
@@ -309,7 +278,7 @@ var de_QueryWhatIfForecastCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
309
278
|
};
|
|
310
279
|
return response;
|
|
311
280
|
}, "de_QueryWhatIfForecastCommand");
|
|
312
|
-
var
|
|
281
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
313
282
|
const parsedOutput = {
|
|
314
283
|
...output,
|
|
315
284
|
body: await parseErrorBody(output.body, context)
|
|
@@ -339,7 +308,7 @@ var de_QueryWhatIfForecastCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
339
308
|
errorCode
|
|
340
309
|
});
|
|
341
310
|
}
|
|
342
|
-
}, "
|
|
311
|
+
}, "de_CommandError");
|
|
343
312
|
var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
344
313
|
const body = parsedOutput.body;
|
|
345
314
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -16,7 +16,7 @@ export const se_QueryWhatIfForecastCommand = async (input, context) => {
|
|
|
16
16
|
};
|
|
17
17
|
export const de_QueryForecastCommand = async (output, context) => {
|
|
18
18
|
if (output.statusCode >= 300) {
|
|
19
|
-
return
|
|
19
|
+
return de_CommandError(output, context);
|
|
20
20
|
}
|
|
21
21
|
const data = await parseBody(output.body, context);
|
|
22
22
|
let contents = {};
|
|
@@ -27,40 +27,9 @@ export const de_QueryForecastCommand = async (output, context) => {
|
|
|
27
27
|
};
|
|
28
28
|
return response;
|
|
29
29
|
};
|
|
30
|
-
const de_QueryForecastCommandError = async (output, context) => {
|
|
31
|
-
const parsedOutput = {
|
|
32
|
-
...output,
|
|
33
|
-
body: await parseErrorBody(output.body, context),
|
|
34
|
-
};
|
|
35
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
36
|
-
switch (errorCode) {
|
|
37
|
-
case "InvalidInputException":
|
|
38
|
-
case "com.amazonaws.forecastquery#InvalidInputException":
|
|
39
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
40
|
-
case "InvalidNextTokenException":
|
|
41
|
-
case "com.amazonaws.forecastquery#InvalidNextTokenException":
|
|
42
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
43
|
-
case "LimitExceededException":
|
|
44
|
-
case "com.amazonaws.forecastquery#LimitExceededException":
|
|
45
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
46
|
-
case "ResourceInUseException":
|
|
47
|
-
case "com.amazonaws.forecastquery#ResourceInUseException":
|
|
48
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
49
|
-
case "ResourceNotFoundException":
|
|
50
|
-
case "com.amazonaws.forecastquery#ResourceNotFoundException":
|
|
51
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
52
|
-
default:
|
|
53
|
-
const parsedBody = parsedOutput.body;
|
|
54
|
-
return throwDefaultError({
|
|
55
|
-
output,
|
|
56
|
-
parsedBody,
|
|
57
|
-
errorCode,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
30
|
export const de_QueryWhatIfForecastCommand = async (output, context) => {
|
|
62
31
|
if (output.statusCode >= 300) {
|
|
63
|
-
return
|
|
32
|
+
return de_CommandError(output, context);
|
|
64
33
|
}
|
|
65
34
|
const data = await parseBody(output.body, context);
|
|
66
35
|
let contents = {};
|
|
@@ -71,7 +40,7 @@ export const de_QueryWhatIfForecastCommand = async (output, context) => {
|
|
|
71
40
|
};
|
|
72
41
|
return response;
|
|
73
42
|
};
|
|
74
|
-
const
|
|
43
|
+
const de_CommandError = async (output, context) => {
|
|
75
44
|
const parsedOutput = {
|
|
76
45
|
...output,
|
|
77
46
|
body: await parseErrorBody(output.body, context),
|
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.507.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-forecastquery",
|
|
@@ -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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|