@aws-sdk/client-forecastquery 3.50.0 → 3.53.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,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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-forecastquery
20
+
21
+
22
+
23
+
24
+
25
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-forecastquery
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-forecastquery
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ForecastqueryServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Forecastquery"), exports);
5
6
  tslib_1.__exportStar(require("./ForecastqueryClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var ForecastqueryServiceException_1 = require("./models/ForecastqueryServiceException");
10
+ Object.defineProperty(exports, "ForecastqueryServiceException", { enumerable: true, get: function () { return ForecastqueryServiceException_1.ForecastqueryServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ForecastqueryServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class ForecastqueryServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, ForecastqueryServiceException.prototype);
9
+ }
10
+ }
11
+ exports.ForecastqueryServiceException = ForecastqueryServiceException;
@@ -1,6 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueryForecastResponse = exports.Forecast = exports.DataPoint = exports.QueryForecastRequest = void 0;
3
+ exports.ResourceNotFoundException = exports.ResourceInUseException = exports.QueryForecastResponse = exports.Forecast = exports.DataPoint = exports.QueryForecastRequest = exports.LimitExceededException = exports.InvalidNextTokenException = exports.InvalidInputException = void 0;
4
+ const ForecastqueryServiceException_1 = require("./ForecastqueryServiceException");
5
+ class InvalidInputException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "InvalidInputException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "InvalidInputException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.InvalidInputException = InvalidInputException;
19
+ class InvalidNextTokenException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "InvalidNextTokenException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "InvalidNextTokenException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
29
+ this.Message = opts.Message;
30
+ }
31
+ }
32
+ exports.InvalidNextTokenException = InvalidNextTokenException;
33
+ class LimitExceededException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
34
+ constructor(opts) {
35
+ super({
36
+ name: "LimitExceededException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ this.name = "LimitExceededException";
41
+ this.$fault = "client";
42
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
43
+ this.Message = opts.Message;
44
+ }
45
+ }
46
+ exports.LimitExceededException = LimitExceededException;
4
47
  var QueryForecastRequest;
5
48
  (function (QueryForecastRequest) {
6
49
  QueryForecastRequest.filterSensitiveLog = (obj) => ({
@@ -25,3 +68,31 @@ var QueryForecastResponse;
25
68
  ...obj,
26
69
  });
27
70
  })(QueryForecastResponse = exports.QueryForecastResponse || (exports.QueryForecastResponse = {}));
71
+ class ResourceInUseException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ResourceInUseException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ResourceInUseException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
81
+ this.Message = opts.Message;
82
+ }
83
+ }
84
+ exports.ResourceInUseException = ResourceInUseException;
85
+ class ResourceNotFoundException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "ResourceNotFoundException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ this.name = "ResourceNotFoundException";
93
+ this.$fault = "client";
94
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
95
+ this.Message = opts.Message;
96
+ }
97
+ }
98
+ exports.ResourceNotFoundException = ResourceNotFoundException;
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_json1_1QueryForecastCommand = exports.serializeAws_json1_1QueryForecastCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const ForecastqueryServiceException_1 = require("../models/ForecastqueryServiceException");
7
+ const models_0_1 = require("../models/models_0");
6
8
  const serializeAws_json1_1QueryForecastCommand = async (input, context) => {
7
9
  const headers = {
8
10
  "content-type": "application/x-amz-json-1.1",
@@ -38,114 +40,73 @@ const deserializeAws_json1_1QueryForecastCommandError = async (output, context)
38
40
  switch (errorCode) {
39
41
  case "InvalidInputException":
40
42
  case "com.amazonaws.forecastquery#InvalidInputException":
41
- response = {
42
- ...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
43
- name: errorCode,
44
- $metadata: deserializeMetadata(output),
45
- };
46
- break;
43
+ throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
47
44
  case "InvalidNextTokenException":
48
45
  case "com.amazonaws.forecastquery#InvalidNextTokenException":
49
- response = {
50
- ...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
51
- name: errorCode,
52
- $metadata: deserializeMetadata(output),
53
- };
54
- break;
46
+ throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
55
47
  case "LimitExceededException":
56
48
  case "com.amazonaws.forecastquery#LimitExceededException":
57
- response = {
58
- ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
59
- name: errorCode,
60
- $metadata: deserializeMetadata(output),
61
- };
62
- break;
49
+ throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
63
50
  case "ResourceInUseException":
64
51
  case "com.amazonaws.forecastquery#ResourceInUseException":
65
- response = {
66
- ...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
67
- name: errorCode,
68
- $metadata: deserializeMetadata(output),
69
- };
70
- break;
52
+ throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
71
53
  case "ResourceNotFoundException":
72
54
  case "com.amazonaws.forecastquery#ResourceNotFoundException":
73
- response = {
74
- ...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
75
- name: errorCode,
76
- $metadata: deserializeMetadata(output),
77
- };
78
- break;
55
+ throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
79
56
  default:
80
57
  const parsedBody = parsedOutput.body;
81
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
82
- response = {
83
- ...parsedBody,
84
- name: `${errorCode}`,
85
- message: parsedBody.message || parsedBody.Message || errorCode,
58
+ response = new ForecastqueryServiceException_1.ForecastqueryServiceException({
59
+ name: parsedBody.code || parsedBody.Code || errorCode,
86
60
  $fault: "client",
87
61
  $metadata: deserializeMetadata(output),
88
- };
62
+ });
63
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
89
64
  }
90
- const message = response.message || response.Message || errorCode;
91
- response.message = message;
92
- delete response.Message;
93
- return Promise.reject(Object.assign(new Error(message), response));
94
65
  };
95
66
  const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
96
67
  const body = parsedOutput.body;
97
68
  const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
98
- const contents = {
99
- name: "InvalidInputException",
100
- $fault: "client",
69
+ const exception = new models_0_1.InvalidInputException({
101
70
  $metadata: deserializeMetadata(parsedOutput),
102
71
  ...deserialized,
103
- };
104
- return contents;
72
+ });
73
+ return smithy_client_1.decorateServiceException(exception, body);
105
74
  };
106
75
  const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
107
76
  const body = parsedOutput.body;
108
77
  const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
109
- const contents = {
110
- name: "InvalidNextTokenException",
111
- $fault: "client",
78
+ const exception = new models_0_1.InvalidNextTokenException({
112
79
  $metadata: deserializeMetadata(parsedOutput),
113
80
  ...deserialized,
114
- };
115
- return contents;
81
+ });
82
+ return smithy_client_1.decorateServiceException(exception, body);
116
83
  };
117
84
  const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
118
85
  const body = parsedOutput.body;
119
86
  const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
120
- const contents = {
121
- name: "LimitExceededException",
122
- $fault: "client",
87
+ const exception = new models_0_1.LimitExceededException({
123
88
  $metadata: deserializeMetadata(parsedOutput),
124
89
  ...deserialized,
125
- };
126
- return contents;
90
+ });
91
+ return smithy_client_1.decorateServiceException(exception, body);
127
92
  };
128
93
  const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
129
94
  const body = parsedOutput.body;
130
95
  const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
131
- const contents = {
132
- name: "ResourceInUseException",
133
- $fault: "client",
96
+ const exception = new models_0_1.ResourceInUseException({
134
97
  $metadata: deserializeMetadata(parsedOutput),
135
98
  ...deserialized,
136
- };
137
- return contents;
99
+ });
100
+ return smithy_client_1.decorateServiceException(exception, body);
138
101
  };
139
102
  const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
140
103
  const body = parsedOutput.body;
141
104
  const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
142
- const contents = {
143
- name: "ResourceNotFoundException",
144
- $fault: "client",
105
+ const exception = new models_0_1.ResourceNotFoundException({
145
106
  $metadata: deserializeMetadata(parsedOutput),
146
107
  ...deserialized,
147
- };
148
- return contents;
108
+ });
109
+ return smithy_client_1.decorateServiceException(exception, body);
149
110
  };
150
111
  const serializeAws_json1_1Filters = (input, context) => {
151
112
  return Object.entries(input).reduce((acc, [key, value]) => {
@@ -225,7 +186,7 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
225
186
  };
226
187
  };
227
188
  const deserializeAws_json1_1TimeSeries = (output, context) => {
228
- return (output || [])
189
+ const retVal = (output || [])
229
190
  .filter((e) => e != null)
230
191
  .map((entry) => {
231
192
  if (entry === null) {
@@ -233,6 +194,7 @@ const deserializeAws_json1_1TimeSeries = (output, context) => {
233
194
  }
234
195
  return deserializeAws_json1_1DataPoint(entry, context);
235
196
  });
197
+ return retVal;
236
198
  };
237
199
  const deserializeMetadata = (output) => {
238
200
  var _a;
package/dist-es/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./Forecastquery";
2
2
  export * from "./ForecastqueryClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { ForecastqueryServiceException } from "./models/ForecastqueryServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var ForecastqueryServiceException = (function (_super) {
4
+ __extends(ForecastqueryServiceException, _super);
5
+ function ForecastqueryServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, ForecastqueryServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return ForecastqueryServiceException;
11
+ }(__ServiceException));
12
+ export { ForecastqueryServiceException };
@@ -1,4 +1,44 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
3
+ var InvalidInputException = (function (_super) {
4
+ __extends(InvalidInputException, _super);
5
+ function InvalidInputException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
7
+ _this.name = "InvalidInputException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, InvalidInputException.prototype);
10
+ _this.Message = opts.Message;
11
+ return _this;
12
+ }
13
+ return InvalidInputException;
14
+ }(__BaseException));
15
+ export { InvalidInputException };
16
+ var InvalidNextTokenException = (function (_super) {
17
+ __extends(InvalidNextTokenException, _super);
18
+ function InvalidNextTokenException(opts) {
19
+ var _this = _super.call(this, __assign({ name: "InvalidNextTokenException", $fault: "client" }, opts)) || this;
20
+ _this.name = "InvalidNextTokenException";
21
+ _this.$fault = "client";
22
+ Object.setPrototypeOf(_this, InvalidNextTokenException.prototype);
23
+ _this.Message = opts.Message;
24
+ return _this;
25
+ }
26
+ return InvalidNextTokenException;
27
+ }(__BaseException));
28
+ export { InvalidNextTokenException };
29
+ var LimitExceededException = (function (_super) {
30
+ __extends(LimitExceededException, _super);
31
+ function LimitExceededException(opts) {
32
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
33
+ _this.name = "LimitExceededException";
34
+ _this.$fault = "client";
35
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
36
+ _this.Message = opts.Message;
37
+ return _this;
38
+ }
39
+ return LimitExceededException;
40
+ }(__BaseException));
41
+ export { LimitExceededException };
2
42
  export var QueryForecastRequest;
3
43
  (function (QueryForecastRequest) {
4
44
  QueryForecastRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -15,3 +55,29 @@ export var QueryForecastResponse;
15
55
  (function (QueryForecastResponse) {
16
56
  QueryForecastResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
57
  })(QueryForecastResponse || (QueryForecastResponse = {}));
58
+ var ResourceInUseException = (function (_super) {
59
+ __extends(ResourceInUseException, _super);
60
+ function ResourceInUseException(opts) {
61
+ var _this = _super.call(this, __assign({ name: "ResourceInUseException", $fault: "client" }, opts)) || this;
62
+ _this.name = "ResourceInUseException";
63
+ _this.$fault = "client";
64
+ Object.setPrototypeOf(_this, ResourceInUseException.prototype);
65
+ _this.Message = opts.Message;
66
+ return _this;
67
+ }
68
+ return ResourceInUseException;
69
+ }(__BaseException));
70
+ export { ResourceInUseException };
71
+ var ResourceNotFoundException = (function (_super) {
72
+ __extends(ResourceNotFoundException, _super);
73
+ function ResourceNotFoundException(opts) {
74
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
75
+ _this.name = "ResourceNotFoundException";
76
+ _this.$fault = "client";
77
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
78
+ _this.Message = opts.Message;
79
+ return _this;
80
+ }
81
+ return ResourceNotFoundException;
82
+ }(__BaseException));
83
+ export { ResourceNotFoundException };
@@ -1,6 +1,8 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectString as __expectString, limitedParseDouble as __limitedParseDouble } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
4
+ import { ForecastqueryServiceException as __BaseException } from "../models/ForecastqueryServiceException";
5
+ import { InvalidInputException, InvalidNextTokenException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, } from "../models/models_0";
4
6
  export var serializeAws_json1_1QueryForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
7
  var headers, body;
6
8
  return __generator(this, function (_a) {
@@ -31,16 +33,16 @@ export var deserializeAws_json1_1QueryForecastCommand = function (output, contex
31
33
  });
32
34
  }); };
33
35
  var deserializeAws_json1_1QueryForecastCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
34
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
35
- var _h;
36
- return __generator(this, function (_j) {
37
- switch (_j.label) {
36
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
37
+ var _c;
38
+ return __generator(this, function (_d) {
39
+ switch (_d.label) {
38
40
  case 0:
39
41
  _a = [__assign({}, output)];
40
- _h = {};
42
+ _c = {};
41
43
  return [4, parseBody(output.body, context)];
42
44
  case 1:
43
- parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
45
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
44
46
  errorCode = "UnknownError";
45
47
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46
48
  _b = errorCode;
@@ -57,92 +59,70 @@ var deserializeAws_json1_1QueryForecastCommandError = function (output, context)
57
59
  case "com.amazonaws.forecastquery#ResourceNotFoundException": return [3, 10];
58
60
  }
59
61
  return [3, 12];
60
- case 2:
61
- _c = [{}];
62
- return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
63
- case 3:
64
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
65
- return [3, 13];
66
- case 4:
67
- _d = [{}];
68
- return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
69
- case 5:
70
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
71
- return [3, 13];
72
- case 6:
73
- _e = [{}];
74
- return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
75
- case 7:
76
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
77
- return [3, 13];
78
- case 8:
79
- _f = [{}];
80
- return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
81
- case 9:
82
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
83
- return [3, 13];
84
- case 10:
85
- _g = [{}];
86
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
87
- case 11:
88
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
89
- return [3, 13];
62
+ case 2: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
63
+ case 3: throw _d.sent();
64
+ case 4: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
65
+ case 5: throw _d.sent();
66
+ case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
67
+ case 7: throw _d.sent();
68
+ case 8: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
69
+ case 9: throw _d.sent();
70
+ case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
71
+ case 11: throw _d.sent();
90
72
  case 12:
91
73
  parsedBody = parsedOutput.body;
92
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
93
- response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
94
- _j.label = 13;
95
- case 13:
96
- message = response.message || response.Message || errorCode;
97
- response.message = message;
98
- delete response.Message;
99
- return [2, Promise.reject(Object.assign(new Error(message), response))];
74
+ response = new __BaseException({
75
+ name: parsedBody.code || parsedBody.Code || errorCode,
76
+ $fault: "client",
77
+ $metadata: deserializeMetadata(output),
78
+ });
79
+ throw __decorateServiceException(response, parsedBody);
100
80
  }
101
81
  });
102
82
  }); };
103
83
  var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
104
- var body, deserialized, contents;
84
+ var body, deserialized, exception;
105
85
  return __generator(this, function (_a) {
106
86
  body = parsedOutput.body;
107
87
  deserialized = deserializeAws_json1_1InvalidInputException(body, context);
108
- contents = __assign({ name: "InvalidInputException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
109
- return [2, contents];
88
+ exception = new InvalidInputException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
89
+ return [2, __decorateServiceException(exception, body)];
110
90
  });
111
91
  }); };
112
92
  var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
113
- var body, deserialized, contents;
93
+ var body, deserialized, exception;
114
94
  return __generator(this, function (_a) {
115
95
  body = parsedOutput.body;
116
96
  deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
117
- contents = __assign({ name: "InvalidNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
118
- return [2, contents];
97
+ exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
98
+ return [2, __decorateServiceException(exception, body)];
119
99
  });
120
100
  }); };
121
101
  var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
122
- var body, deserialized, contents;
102
+ var body, deserialized, exception;
123
103
  return __generator(this, function (_a) {
124
104
  body = parsedOutput.body;
125
105
  deserialized = deserializeAws_json1_1LimitExceededException(body, context);
126
- contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
127
- return [2, contents];
106
+ exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
107
+ return [2, __decorateServiceException(exception, body)];
128
108
  });
129
109
  }); };
130
110
  var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
131
- var body, deserialized, contents;
111
+ var body, deserialized, exception;
132
112
  return __generator(this, function (_a) {
133
113
  body = parsedOutput.body;
134
114
  deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
135
- contents = __assign({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
136
- return [2, contents];
115
+ exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
116
+ return [2, __decorateServiceException(exception, body)];
137
117
  });
138
118
  }); };
139
119
  var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
140
- var body, deserialized, contents;
120
+ var body, deserialized, exception;
141
121
  return __generator(this, function (_a) {
142
122
  body = parsedOutput.body;
143
123
  deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
144
- contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
145
- return [2, contents];
124
+ exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
125
+ return [2, __decorateServiceException(exception, body)];
146
126
  });
147
127
  }); };
148
128
  var serializeAws_json1_1Filters = function (input, context) {
@@ -215,7 +195,7 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
215
195
  };
216
196
  };
217
197
  var deserializeAws_json1_1TimeSeries = function (output, context) {
218
- return (output || [])
198
+ var retVal = (output || [])
219
199
  .filter(function (e) { return e != null; })
220
200
  .map(function (entry) {
221
201
  if (entry === null) {
@@ -223,6 +203,7 @@ var deserializeAws_json1_1TimeSeries = function (output, context) {
223
203
  }
224
204
  return deserializeAws_json1_1DataPoint(entry, context);
225
205
  });
206
+ return retVal;
226
207
  };
227
208
  var deserializeMetadata = function (output) {
228
209
  var _a;
@@ -2,3 +2,4 @@ export * from "./Forecastquery";
2
2
  export * from "./ForecastqueryClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { ForecastqueryServiceException } from "./models/ForecastqueryServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Forecastquery service.
4
+ */
5
+ export declare class ForecastqueryServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,27 +1,40 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
2
3
  /**
3
4
  * <p>The value is invalid or is too long.</p>
4
5
  */
5
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
6
- name: "InvalidInputException";
7
- $fault: "client";
6
+ export declare class InvalidInputException extends __BaseException {
7
+ readonly name: "InvalidInputException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
9
14
  }
10
15
  /**
11
16
  * <p>The token is not valid. Tokens expire after 24 hours.</p>
12
17
  */
13
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
14
- name: "InvalidNextTokenException";
15
- $fault: "client";
18
+ export declare class InvalidNextTokenException extends __BaseException {
19
+ readonly name: "InvalidNextTokenException";
20
+ readonly $fault: "client";
16
21
  Message?: string;
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
17
26
  }
18
27
  /**
19
28
  * <p>The limit on the number of requests per second has been exceeded.</p>
20
29
  */
21
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
22
- name: "LimitExceededException";
23
- $fault: "client";
30
+ export declare class LimitExceededException extends __BaseException {
31
+ readonly name: "LimitExceededException";
32
+ readonly $fault: "client";
24
33
  Message?: string;
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
25
38
  }
26
39
  export interface QueryForecastRequest {
27
40
  /**
@@ -130,17 +143,25 @@ export declare namespace QueryForecastResponse {
130
143
  /**
131
144
  * <p>The specified resource is in use.</p>
132
145
  */
133
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
134
- name: "ResourceInUseException";
135
- $fault: "client";
146
+ export declare class ResourceInUseException extends __BaseException {
147
+ readonly name: "ResourceInUseException";
148
+ readonly $fault: "client";
136
149
  Message?: string;
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
137
154
  }
138
155
  /**
139
156
  * <p>We can't find that resource. Check the information that you've provided and try
140
157
  * again.</p>
141
158
  */
142
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
143
- name: "ResourceNotFoundException";
144
- $fault: "client";
159
+ export declare class ResourceNotFoundException extends __BaseException {
160
+ readonly name: "ResourceNotFoundException";
161
+ readonly $fault: "client";
145
162
  Message?: string;
163
+ /**
164
+ * @internal
165
+ */
166
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
146
167
  }
@@ -0,0 +1,10 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { QueryForecastCommandInput, QueryForecastCommandOutput } from "./commands/QueryForecastCommand";
3
+ import { ForecastqueryClient } from "./ForecastqueryClient";
4
+
5
+ export declare class Forecastquery extends ForecastqueryClient {
6
+
7
+ queryForecast(args: QueryForecastCommandInput, options?: __HttpHandlerOptions): Promise<QueryForecastCommandOutput>;
8
+ queryForecast(args: QueryForecastCommandInput, cb: (err: any, data?: QueryForecastCommandOutput) => void): void;
9
+ queryForecast(args: QueryForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryForecastCommandOutput) => void): void;
10
+ }
@@ -0,0 +1,74 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { QueryForecastCommandInput, QueryForecastCommandOutput } from "./commands/QueryForecastCommand";
10
+ export declare type ServiceInputTypes = QueryForecastCommandInput;
11
+ export declare type ServiceOutputTypes = QueryForecastCommandOutput;
12
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
13
+
14
+ requestHandler?: __HttpHandler;
15
+
16
+ sha256?: __HashConstructor;
17
+
18
+ urlParser?: __UrlParser;
19
+
20
+ bodyLengthChecker?: (body: any) => number | undefined;
21
+
22
+ streamCollector?: __StreamCollector;
23
+
24
+ base64Decoder?: __Decoder;
25
+
26
+ base64Encoder?: __Encoder;
27
+
28
+ utf8Decoder?: __Decoder;
29
+
30
+ utf8Encoder?: __Encoder;
31
+
32
+ runtime?: string;
33
+
34
+ disableHostPrefix?: boolean;
35
+
36
+ maxAttempts?: number | __Provider<number>;
37
+
38
+ retryMode?: string | __Provider<string>;
39
+
40
+ logger?: __Logger;
41
+
42
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
43
+
44
+ useFipsEndpoint?: boolean | __Provider<boolean>;
45
+
46
+ serviceId?: string;
47
+
48
+ region?: string | __Provider<string>;
49
+
50
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
51
+
52
+ regionInfoProvider?: RegionInfoProvider;
53
+
54
+ defaultUserAgentProvider?: Provider<__UserAgent>;
55
+
56
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
57
+ }
58
+ declare type ForecastqueryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
59
+
60
+ export interface ForecastqueryClientConfig extends ForecastqueryClientConfigType {
61
+ }
62
+ declare type ForecastqueryClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
63
+
64
+ export interface ForecastqueryClientResolvedConfig extends ForecastqueryClientResolvedConfigType {
65
+ }
66
+
67
+ export declare class ForecastqueryClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ForecastqueryClientResolvedConfig> {
68
+
69
+ readonly config: ForecastqueryClientResolvedConfig;
70
+ constructor(configuration: ForecastqueryClientConfig);
71
+
72
+ destroy(): void;
73
+ }
74
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ForecastqueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ForecastqueryClient";
4
+ import { QueryForecastRequest, QueryForecastResponse } from "../models/models_0";
5
+ export interface QueryForecastCommandInput extends QueryForecastRequest {
6
+ }
7
+ export interface QueryForecastCommandOutput extends QueryForecastResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class QueryForecastCommand extends $Command<QueryForecastCommandInput, QueryForecastCommandOutput, ForecastqueryClientResolvedConfig> {
11
+ readonly input: QueryForecastCommandInput;
12
+ constructor(input: QueryForecastCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ForecastqueryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<QueryForecastCommandInput, QueryForecastCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1 @@
1
+ export * from "./QueryForecastCommand";
@@ -0,0 +1,2 @@
1
+ import { RegionInfoProvider } from "@aws-sdk/types";
2
+ export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -0,0 +1,5 @@
1
+ export * from "./Forecastquery";
2
+ export * from "./ForecastqueryClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { ForecastqueryServiceException } from "./models/ForecastqueryServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ForecastqueryServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,90 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
3
+
4
+ export declare class InvalidInputException extends __BaseException {
5
+ readonly name: "InvalidInputException";
6
+ readonly $fault: "client";
7
+ Message?: string;
8
+
9
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
10
+ }
11
+
12
+ export declare class InvalidNextTokenException extends __BaseException {
13
+ readonly name: "InvalidNextTokenException";
14
+ readonly $fault: "client";
15
+ Message?: string;
16
+
17
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
18
+ }
19
+
20
+ export declare class LimitExceededException extends __BaseException {
21
+ readonly name: "LimitExceededException";
22
+ readonly $fault: "client";
23
+ Message?: string;
24
+
25
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
26
+ }
27
+ export interface QueryForecastRequest {
28
+
29
+ ForecastArn: string | undefined;
30
+
31
+ StartDate?: string;
32
+
33
+ EndDate?: string;
34
+
35
+ Filters: {
36
+ [key: string]: string;
37
+ } | undefined;
38
+
39
+ NextToken?: string;
40
+ }
41
+ export declare namespace QueryForecastRequest {
42
+
43
+ const filterSensitiveLog: (obj: QueryForecastRequest) => any;
44
+ }
45
+
46
+ export interface DataPoint {
47
+
48
+ Timestamp?: string;
49
+
50
+ Value?: number;
51
+ }
52
+ export declare namespace DataPoint {
53
+
54
+ const filterSensitiveLog: (obj: DataPoint) => any;
55
+ }
56
+
57
+ export interface Forecast {
58
+
59
+ Predictions?: {
60
+ [key: string]: DataPoint[];
61
+ };
62
+ }
63
+ export declare namespace Forecast {
64
+
65
+ const filterSensitiveLog: (obj: Forecast) => any;
66
+ }
67
+ export interface QueryForecastResponse {
68
+
69
+ Forecast?: Forecast;
70
+ }
71
+ export declare namespace QueryForecastResponse {
72
+
73
+ const filterSensitiveLog: (obj: QueryForecastResponse) => any;
74
+ }
75
+
76
+ export declare class ResourceInUseException extends __BaseException {
77
+ readonly name: "ResourceInUseException";
78
+ readonly $fault: "client";
79
+ Message?: string;
80
+
81
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
82
+ }
83
+
84
+ export declare class ResourceNotFoundException extends __BaseException {
85
+ readonly name: "ResourceNotFoundException";
86
+ readonly $fault: "client";
87
+ Message?: string;
88
+
89
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
90
+ }
@@ -0,0 +1,5 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { QueryForecastCommandInput, QueryForecastCommandOutput } from "../commands/QueryForecastCommand";
4
+ export declare const serializeAws_json1_1QueryForecastCommand: (input: QueryForecastCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
5
+ export declare const deserializeAws_json1_1QueryForecastCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryForecastCommandOutput>;
@@ -0,0 +1,38 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
+ import { ForecastqueryClientConfig } from "./ForecastqueryClient";
3
+
4
+ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
5
+ runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<any>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ disableHostPrefix: boolean;
25
+ logger: import("@aws-sdk/types").Logger;
26
+ serviceId: string;
27
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ tls?: boolean | undefined;
30
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
31
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
32
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
33
+ signingEscapePath?: boolean | undefined;
34
+ systemClockOffset?: number | undefined;
35
+ signingRegion?: string | undefined;
36
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
37
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
38
+ };
@@ -0,0 +1,38 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
+ import { ForecastqueryClientConfig } from "./ForecastqueryClient";
3
+
4
+ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
5
+ runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<string>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ disableHostPrefix: boolean;
25
+ logger: import("@aws-sdk/types").Logger;
26
+ serviceId: string;
27
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
+ tls?: boolean | undefined;
30
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
31
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
32
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
33
+ signingEscapePath?: boolean | undefined;
34
+ systemClockOffset?: number | undefined;
35
+ signingRegion?: string | undefined;
36
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
37
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
38
+ };
@@ -0,0 +1,37 @@
1
+ import { ForecastqueryClientConfig } from "./ForecastqueryClient";
2
+
3
+ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
4
+ runtime: string;
5
+ sha256: import("@aws-sdk/types").HashConstructor;
6
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
+ apiVersion: string;
8
+ urlParser: import("@aws-sdk/types").UrlParser;
9
+ bodyLengthChecker: (body: any) => number | undefined;
10
+ streamCollector: import("@aws-sdk/types").StreamCollector;
11
+ base64Decoder: import("@aws-sdk/types").Decoder;
12
+ base64Encoder: import("@aws-sdk/types").Encoder;
13
+ utf8Decoder: import("@aws-sdk/types").Decoder;
14
+ utf8Encoder: import("@aws-sdk/types").Encoder;
15
+ disableHostPrefix: boolean;
16
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
18
+ logger: import("@aws-sdk/types").Logger;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
+ serviceId: string;
22
+ region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
27
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
+ tls?: boolean | undefined;
29
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
30
+ credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;
31
+ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
32
+ signingEscapePath?: boolean | undefined;
33
+ systemClockOffset?: number | undefined;
34
+ signingRegion?: string | undefined;
35
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
36
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
37
+ };
@@ -0,0 +1,11 @@
1
+ import { Logger as __Logger } from "@aws-sdk/types";
2
+ import { ForecastqueryClientConfig } from "./ForecastqueryClient";
3
+
4
+ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
5
+ apiVersion: string;
6
+ disableHostPrefix: boolean;
7
+ logger: __Logger;
8
+ regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
9
+ serviceId: string;
10
+ urlParser: import("@aws-sdk/types").UrlParser;
11
+ };
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.50.0",
4
+ "version": "3.53.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",
@@ -9,7 +9,7 @@
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-*"
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "types": "./dist-types/index.d.ts",
@@ -18,40 +18,40 @@
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.50.0",
22
- "@aws-sdk/config-resolver": "3.50.0",
23
- "@aws-sdk/credential-provider-node": "3.50.0",
24
- "@aws-sdk/fetch-http-handler": "3.50.0",
25
- "@aws-sdk/hash-node": "3.50.0",
26
- "@aws-sdk/invalid-dependency": "3.50.0",
27
- "@aws-sdk/middleware-content-length": "3.50.0",
28
- "@aws-sdk/middleware-host-header": "3.50.0",
29
- "@aws-sdk/middleware-logger": "3.50.0",
30
- "@aws-sdk/middleware-retry": "3.50.0",
31
- "@aws-sdk/middleware-serde": "3.50.0",
32
- "@aws-sdk/middleware-signing": "3.50.0",
33
- "@aws-sdk/middleware-stack": "3.50.0",
34
- "@aws-sdk/middleware-user-agent": "3.50.0",
35
- "@aws-sdk/node-config-provider": "3.50.0",
36
- "@aws-sdk/node-http-handler": "3.50.0",
37
- "@aws-sdk/protocol-http": "3.50.0",
38
- "@aws-sdk/smithy-client": "3.50.0",
39
- "@aws-sdk/types": "3.50.0",
40
- "@aws-sdk/url-parser": "3.50.0",
41
- "@aws-sdk/util-base64-browser": "3.49.0",
42
- "@aws-sdk/util-base64-node": "3.49.0",
43
- "@aws-sdk/util-body-length-browser": "3.49.0",
44
- "@aws-sdk/util-body-length-node": "3.49.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.50.0",
47
- "@aws-sdk/util-user-agent-browser": "3.50.0",
48
- "@aws-sdk/util-user-agent-node": "3.50.0",
49
- "@aws-sdk/util-utf8-browser": "3.49.0",
50
- "@aws-sdk/util-utf8-node": "3.49.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
+ "@aws-sdk/util-base64-browser": "3.52.0",
42
+ "@aws-sdk/util-base64-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.52.0",
44
+ "@aws-sdk/util-body-length-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
+ "@aws-sdk/util-utf8-browser": "3.52.0",
50
+ "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.49.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",