@aws-sdk/client-forecastquery 3.32.0 → 3.36.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/Forecastquery.js +1 -2
  3. package/{dist/cjs → dist-cjs}/ForecastqueryClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/QueryForecastCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  6. package/{dist/cjs → dist-cjs}/index.js +0 -1
  7. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  8. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  9. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
  10. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  11. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  14. package/{dist/es → dist-es}/Forecastquery.js +2 -6
  15. package/{dist/es → dist-es}/ForecastqueryClient.js +2 -11
  16. package/dist-es/commands/QueryForecastCommand.js +39 -0
  17. package/{dist/es → dist-es}/endpoints.js +1 -2
  18. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  19. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  20. package/{dist/es → dist-es}/models/models_0.js +0 -28
  21. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +34 -40
  22. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  23. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  24. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  25. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  26. package/{dist/types → dist-types}/Forecastquery.d.ts +2 -2
  27. package/{dist/types → dist-types}/ForecastqueryClient.d.ts +2 -2
  28. package/{dist/types → dist-types}/commands/QueryForecastCommand.d.ts +2 -2
  29. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  30. package/{index.ts → dist-types/index.d.ts} +0 -0
  31. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  32. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  33. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +1 -1
  34. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  35. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  36. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  37. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  38. package/{dist/types → dist-types}/ts3.4/Forecastquery.d.ts +2 -2
  39. package/{dist/types → dist-types}/ts3.4/ForecastqueryClient.d.ts +2 -2
  40. package/{dist/types → dist-types}/ts3.4/commands/QueryForecastCommand.d.ts +2 -2
  41. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  42. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  43. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  44. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  45. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +1 -1
  46. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  47. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  48. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  49. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  50. package/package.json +52 -49
  51. package/Forecastquery.ts +0 -55
  52. package/ForecastqueryClient.ts +0 -236
  53. package/commands/QueryForecastCommand.ts +0 -105
  54. package/dist/cjs/Forecastquery.js.map +0 -1
  55. package/dist/cjs/ForecastqueryClient.js.map +0 -1
  56. package/dist/cjs/commands/QueryForecastCommand.js.map +0 -1
  57. package/dist/cjs/endpoints.js.map +0 -1
  58. package/dist/cjs/index.js.map +0 -1
  59. package/dist/cjs/models/index.js.map +0 -1
  60. package/dist/cjs/models/models_0.js.map +0 -1
  61. package/dist/cjs/package.json +0 -91
  62. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  63. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  64. package/dist/cjs/runtimeConfig.js.map +0 -1
  65. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  66. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  67. package/dist/es/Forecastquery.js.map +0 -1
  68. package/dist/es/ForecastqueryClient.js.map +0 -1
  69. package/dist/es/commands/QueryForecastCommand.js +0 -76
  70. package/dist/es/commands/QueryForecastCommand.js.map +0 -1
  71. package/dist/es/endpoints.js.map +0 -1
  72. package/dist/es/index.js +0 -5
  73. package/dist/es/index.js.map +0 -1
  74. package/dist/es/models/index.js +0 -2
  75. package/dist/es/models/index.js.map +0 -1
  76. package/dist/es/models/models_0.js.map +0 -1
  77. package/dist/es/package.json +0 -91
  78. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  79. package/dist/es/runtimeConfig.browser.js.map +0 -1
  80. package/dist/es/runtimeConfig.js.map +0 -1
  81. package/dist/es/runtimeConfig.native.js.map +0 -1
  82. package/dist/es/runtimeConfig.shared.js.map +0 -1
  83. package/endpoints.ts +0 -73
  84. package/jest.config.js +0 -4
  85. package/models/models_0.ts +0 -213
  86. package/protocols/Aws_json1_1.ts +0 -388
  87. package/runtimeConfig.browser.ts +0 -40
  88. package/runtimeConfig.native.ts +0 -16
  89. package/runtimeConfig.shared.ts +0 -16
  90. package/runtimeConfig.ts +0 -45
  91. package/tsconfig.es.json +0 -12
  92. package/tsconfig.json +0 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
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.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
12
+ * **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
13
+ * **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
14
+
15
+
16
+
17
+
18
+
19
+ # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
20
+
21
+
22
+ ### Features
23
+
24
+ * **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
25
+ * **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
26
+
27
+
28
+
29
+
30
+
31
+ # [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
32
+
33
+
34
+ ### Features
35
+
36
+ * **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
43
+
44
+ **Note:** Version bump only for package @aws-sdk/client-forecastquery
45
+
46
+
47
+
48
+
49
+
6
50
  # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
51
 
8
52
  **Note:** Version bump only for package @aws-sdk/client-forecastquery
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Forecastquery = void 0;
4
- const ForecastqueryClient_1 = require("./ForecastqueryClient");
5
4
  const QueryForecastCommand_1 = require("./commands/QueryForecastCommand");
5
+ const ForecastqueryClient_1 = require("./ForecastqueryClient");
6
6
  /**
7
7
  * <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
8
8
  */
@@ -23,4 +23,3 @@ class Forecastquery extends ForecastqueryClient_1.ForecastqueryClient {
23
23
  }
24
24
  }
25
25
  exports.Forecastquery = Forecastquery;
26
- //# sourceMappingURL=Forecastquery.js.map
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ForecastqueryClient = void 0;
4
- const runtimeConfig_1 = require("./runtimeConfig");
5
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
6
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
7
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
@@ -10,18 +9,19 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
10
9
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
11
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
12
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
+ const runtimeConfig_1 = require("./runtimeConfig");
13
13
  /**
14
14
  * <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
15
15
  */
16
16
  class ForecastqueryClient extends smithy_client_1.Client {
17
17
  constructor(configuration) {
18
- let _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
19
- let _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
20
- let _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
21
- let _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
22
- let _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
23
- let _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
24
- let _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
18
+ const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
19
+ const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
20
+ const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
21
+ const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
22
+ const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
23
+ const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
24
+ const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
25
25
  super(_config_6);
26
26
  this.config = _config_6;
27
27
  this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
@@ -41,4 +41,3 @@ class ForecastqueryClient extends smithy_client_1.Client {
41
41
  }
42
42
  }
43
43
  exports.ForecastqueryClient = ForecastqueryClient;
44
- //# sourceMappingURL=ForecastqueryClient.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QueryForecastCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Retrieves a forecast for a single item, filtered by the supplied criteria.</p>
10
10
  * <p>The criteria is a key-value pair. The key is either <code>item_id</code> (or the
@@ -69,4 +69,3 @@ class QueryForecastCommand extends smithy_client_1.Command {
69
69
  }
70
70
  }
71
71
  exports.QueryForecastCommand = QueryForecastCommand;
72
- //# sourceMappingURL=QueryForecastCommand.js.map
@@ -70,4 +70,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
70
70
  partitionHash,
71
71
  });
72
72
  exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
73
- //# sourceMappingURL=endpoints.js.map
@@ -5,4 +5,3 @@ tslib_1.__exportStar(require("./ForecastqueryClient"), exports);
5
5
  tslib_1.__exportStar(require("./Forecastquery"), exports);
6
6
  tslib_1.__exportStar(require("./commands/QueryForecastCommand"), exports);
7
7
  tslib_1.__exportStar(require("./models/index"), exports);
8
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./models_0"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -82,4 +82,3 @@ var ResourceNotFoundException;
82
82
  ...obj,
83
83
  });
84
84
  })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
85
- //# sourceMappingURL=models_0.js.map
@@ -303,4 +303,3 @@ const loadRestJsonErrorCode = (output, data) => {
303
303
  }
304
304
  return "";
305
305
  };
306
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ // @ts-ignore: package.json will be imported from dist folders
6
+ const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
6
7
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -38,4 +39,3 @@ const getRuntimeConfig = (config) => {
38
39
  };
39
40
  };
40
41
  exports.getRuntimeConfig = getRuntimeConfig;
41
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("./package.json"));
5
+ // @ts-ignore: package.json will be imported from dist folders
6
+ const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
6
7
  const client_sts_1 = require("@aws-sdk/client-sts");
7
8
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
9
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -43,4 +44,3 @@ const getRuntimeConfig = (config) => {
43
44
  };
44
45
  };
45
46
  exports.getRuntimeConfig = getRuntimeConfig;
46
- //# sourceMappingURL=runtimeConfig.js.map
@@ -17,4 +17,3 @@ const getRuntimeConfig = (config) => {
17
17
  };
18
18
  };
19
19
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const endpoints_1 = require("./endpoints");
5
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
+ const endpoints_1 = require("./endpoints");
6
6
  /**
7
7
  * @internal
8
8
  */
@@ -18,4 +18,3 @@ const getRuntimeConfig = (config) => {
18
18
  });
19
19
  };
20
20
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -1,10 +1,7 @@
1
1
  import { __extends } from "tslib";
2
- import { ForecastqueryClient } from "./ForecastqueryClient";
3
2
  import { QueryForecastCommand, } from "./commands/QueryForecastCommand";
4
- /**
5
- * <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
6
- */
7
- var Forecastquery = /** @class */ (function (_super) {
3
+ import { ForecastqueryClient } from "./ForecastqueryClient";
4
+ var Forecastquery = (function (_super) {
8
5
  __extends(Forecastquery, _super);
9
6
  function Forecastquery() {
10
7
  return _super !== null && _super.apply(this, arguments) || this;
@@ -26,4 +23,3 @@ var Forecastquery = /** @class */ (function (_super) {
26
23
  return Forecastquery;
27
24
  }(ForecastqueryClient));
28
25
  export { Forecastquery };
29
- //# sourceMappingURL=Forecastquery.js.map
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
4
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
5
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,10 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
7
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
- /**
12
- * <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
13
- */
14
- var ForecastqueryClient = /** @class */ (function (_super) {
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var ForecastqueryClient = (function (_super) {
15
12
  __extends(ForecastqueryClient, _super);
16
13
  function ForecastqueryClient(configuration) {
17
14
  var _this = this;
@@ -32,15 +29,9 @@ var ForecastqueryClient = /** @class */ (function (_super) {
32
29
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
33
30
  return _this;
34
31
  }
35
- /**
36
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
37
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
38
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
39
- */
40
32
  ForecastqueryClient.prototype.destroy = function () {
41
33
  _super.prototype.destroy.call(this);
42
34
  };
43
35
  return ForecastqueryClient;
44
36
  }(__Client));
45
37
  export { ForecastqueryClient };
46
- //# sourceMappingURL=ForecastqueryClient.js.map
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { QueryForecastRequest, QueryForecastResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1QueryForecastCommand, serializeAws_json1_1QueryForecastCommand, } from "../protocols/Aws_json1_1";
6
+ var QueryForecastCommand = (function (_super) {
7
+ __extends(QueryForecastCommand, _super);
8
+ function QueryForecastCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ QueryForecastCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ForecastqueryClient";
18
+ var commandName = "QueryForecastCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: QueryForecastRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: QueryForecastResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ QueryForecastCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1QueryForecastCommand(input, context);
33
+ };
34
+ QueryForecastCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1QueryForecastCommand(output, context);
36
+ };
37
+ return QueryForecastCommand;
38
+ }($Command));
39
+ export { QueryForecastCommand };
@@ -63,7 +63,6 @@ var partitionHash = {
63
63
  };
64
64
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
65
65
  return __generator(this, function (_a) {
66
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "forecast", regionHash: regionHash, partitionHash: partitionHash }))];
66
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "forecast", regionHash: regionHash, partitionHash: partitionHash }))];
67
67
  });
68
68
  }); };
69
- //# sourceMappingURL=endpoints.js.map
File without changes
@@ -1,65 +1,37 @@
1
1
  import { __assign } from "tslib";
2
2
  export var InvalidInputException;
3
3
  (function (InvalidInputException) {
4
- /**
5
- * @internal
6
- */
7
4
  InvalidInputException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
8
5
  })(InvalidInputException || (InvalidInputException = {}));
9
6
  export var InvalidNextTokenException;
10
7
  (function (InvalidNextTokenException) {
11
- /**
12
- * @internal
13
- */
14
8
  InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
9
  })(InvalidNextTokenException || (InvalidNextTokenException = {}));
16
10
  export var LimitExceededException;
17
11
  (function (LimitExceededException) {
18
- /**
19
- * @internal
20
- */
21
12
  LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
13
  })(LimitExceededException || (LimitExceededException = {}));
23
14
  export var QueryForecastRequest;
24
15
  (function (QueryForecastRequest) {
25
- /**
26
- * @internal
27
- */
28
16
  QueryForecastRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
17
  })(QueryForecastRequest || (QueryForecastRequest = {}));
30
18
  export var DataPoint;
31
19
  (function (DataPoint) {
32
- /**
33
- * @internal
34
- */
35
20
  DataPoint.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
36
21
  })(DataPoint || (DataPoint = {}));
37
22
  export var Forecast;
38
23
  (function (Forecast) {
39
- /**
40
- * @internal
41
- */
42
24
  Forecast.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
25
  })(Forecast || (Forecast = {}));
44
26
  export var QueryForecastResponse;
45
27
  (function (QueryForecastResponse) {
46
- /**
47
- * @internal
48
- */
49
28
  QueryForecastResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
50
29
  })(QueryForecastResponse || (QueryForecastResponse = {}));
51
30
  export var ResourceInUseException;
52
31
  (function (ResourceInUseException) {
53
- /**
54
- * @internal
55
- */
56
32
  ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
33
  })(ResourceInUseException || (ResourceInUseException = {}));
58
34
  export var ResourceNotFoundException;
59
35
  (function (ResourceNotFoundException) {
60
- /**
61
- * @internal
62
- */
63
36
  ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
64
37
  })(ResourceNotFoundException || (ResourceNotFoundException = {}));
65
- //# sourceMappingURL=models_0.js.map
@@ -9,7 +9,7 @@ export var serializeAws_json1_1QueryForecastCommand = function (input, context)
9
9
  "x-amz-target": "AmazonForecastRuntime.QueryForecast",
10
10
  };
11
11
  body = JSON.stringify(serializeAws_json1_1QueryForecastRequest(input, context));
12
- return [2 /*return*/, buildHttpRpcRequest(context, headers, "/", undefined, body)];
12
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
13
13
  });
14
14
  }); };
15
15
  export var deserializeAws_json1_1QueryForecastCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -18,15 +18,15 @@ export var deserializeAws_json1_1QueryForecastCommand = function (output, contex
18
18
  switch (_a.label) {
19
19
  case 0:
20
20
  if (output.statusCode >= 300) {
21
- return [2 /*return*/, deserializeAws_json1_1QueryForecastCommandError(output, context)];
21
+ return [2, deserializeAws_json1_1QueryForecastCommandError(output, context)];
22
22
  }
23
- return [4 /*yield*/, parseBody(output.body, context)];
23
+ return [4, parseBody(output.body, context)];
24
24
  case 1:
25
25
  data = _a.sent();
26
26
  contents = {};
27
27
  contents = deserializeAws_json1_1QueryForecastResponse(data, context);
28
28
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
29
- return [2 /*return*/, Promise.resolve(response)];
29
+ return [2, Promise.resolve(response)];
30
30
  }
31
31
  });
32
32
  }); };
@@ -38,55 +38,55 @@ var deserializeAws_json1_1QueryForecastCommandError = function (output, context)
38
38
  case 0:
39
39
  _a = [__assign({}, output)];
40
40
  _h = {};
41
- return [4 /*yield*/, parseBody(output.body, context)];
41
+ return [4, parseBody(output.body, context)];
42
42
  case 1:
43
43
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
44
44
  errorCode = "UnknownError";
45
45
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
46
46
  _b = errorCode;
47
47
  switch (_b) {
48
- case "InvalidInputException": return [3 /*break*/, 2];
49
- case "com.amazonaws.forecastquery#InvalidInputException": return [3 /*break*/, 2];
50
- case "InvalidNextTokenException": return [3 /*break*/, 4];
51
- case "com.amazonaws.forecastquery#InvalidNextTokenException": return [3 /*break*/, 4];
52
- case "LimitExceededException": return [3 /*break*/, 6];
53
- case "com.amazonaws.forecastquery#LimitExceededException": return [3 /*break*/, 6];
54
- case "ResourceInUseException": return [3 /*break*/, 8];
55
- case "com.amazonaws.forecastquery#ResourceInUseException": return [3 /*break*/, 8];
56
- case "ResourceNotFoundException": return [3 /*break*/, 10];
57
- case "com.amazonaws.forecastquery#ResourceNotFoundException": return [3 /*break*/, 10];
48
+ case "InvalidInputException": return [3, 2];
49
+ case "com.amazonaws.forecastquery#InvalidInputException": return [3, 2];
50
+ case "InvalidNextTokenException": return [3, 4];
51
+ case "com.amazonaws.forecastquery#InvalidNextTokenException": return [3, 4];
52
+ case "LimitExceededException": return [3, 6];
53
+ case "com.amazonaws.forecastquery#LimitExceededException": return [3, 6];
54
+ case "ResourceInUseException": return [3, 8];
55
+ case "com.amazonaws.forecastquery#ResourceInUseException": return [3, 8];
56
+ case "ResourceNotFoundException": return [3, 10];
57
+ case "com.amazonaws.forecastquery#ResourceNotFoundException": return [3, 10];
58
58
  }
59
- return [3 /*break*/, 12];
59
+ return [3, 12];
60
60
  case 2:
61
61
  _c = [{}];
62
- return [4 /*yield*/, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
62
+ return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
63
63
  case 3:
64
64
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
65
- return [3 /*break*/, 13];
65
+ return [3, 13];
66
66
  case 4:
67
67
  _d = [{}];
68
- return [4 /*yield*/, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
68
+ return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
69
69
  case 5:
70
70
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
71
- return [3 /*break*/, 13];
71
+ return [3, 13];
72
72
  case 6:
73
73
  _e = [{}];
74
- return [4 /*yield*/, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
74
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
75
75
  case 7:
76
76
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
77
- return [3 /*break*/, 13];
77
+ return [3, 13];
78
78
  case 8:
79
79
  _f = [{}];
80
- return [4 /*yield*/, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
80
+ return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
81
81
  case 9:
82
82
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
83
- return [3 /*break*/, 13];
83
+ return [3, 13];
84
84
  case 10:
85
85
  _g = [{}];
86
- return [4 /*yield*/, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
86
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
87
87
  case 11:
88
88
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
89
- return [3 /*break*/, 13];
89
+ return [3, 13];
90
90
  case 12:
91
91
  parsedBody = parsedOutput.body;
92
92
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -96,7 +96,7 @@ var deserializeAws_json1_1QueryForecastCommandError = function (output, context)
96
96
  message = response.message || response.Message || errorCode;
97
97
  response.message = message;
98
98
  delete response.Message;
99
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
99
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
100
100
  }
101
101
  });
102
102
  }); };
@@ -106,7 +106,7 @@ var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput
106
106
  body = parsedOutput.body;
107
107
  deserialized = deserializeAws_json1_1InvalidInputException(body, context);
108
108
  contents = __assign({ name: "InvalidInputException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
109
- return [2 /*return*/, contents];
109
+ return [2, contents];
110
110
  });
111
111
  }); };
112
112
  var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -115,7 +115,7 @@ var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOu
115
115
  body = parsedOutput.body;
116
116
  deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
117
117
  contents = __assign({ name: "InvalidNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
118
- return [2 /*return*/, contents];
118
+ return [2, contents];
119
119
  });
120
120
  }); };
121
121
  var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -124,7 +124,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
124
124
  body = parsedOutput.body;
125
125
  deserialized = deserializeAws_json1_1LimitExceededException(body, context);
126
126
  contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
127
- return [2 /*return*/, contents];
127
+ return [2, contents];
128
128
  });
129
129
  }); };
130
130
  var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -133,7 +133,7 @@ var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutpu
133
133
  body = parsedOutput.body;
134
134
  deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
135
135
  contents = __assign({ name: "ResourceInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
136
- return [2 /*return*/, contents];
136
+ return [2, contents];
137
137
  });
138
138
  }); };
139
139
  var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -142,7 +142,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
142
142
  body = parsedOutput.body;
143
143
  deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
144
144
  contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
145
- return [2 /*return*/, contents];
145
+ return [2, contents];
146
146
  });
147
147
  }); };
148
148
  var serializeAws_json1_1Filters = function (input, context) {
@@ -233,7 +233,6 @@ var deserializeMetadata = function (output) {
233
233
  cfId: output.headers["x-amz-cf-id"],
234
234
  });
235
235
  };
236
- // Collect low-level response body stream to Uint8Array.
237
236
  var collectBody = function (streamBody, context) {
238
237
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
239
238
  if (streamBody instanceof Uint8Array) {
@@ -241,7 +240,6 @@ var collectBody = function (streamBody, context) {
241
240
  }
242
241
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
243
242
  };
244
- // Encode Uint8Array data into string with utf-8.
245
243
  var collectBodyString = function (streamBody, context) {
246
244
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
247
245
  };
@@ -249,7 +247,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
249
247
  var _a, hostname, _b, protocol, port, basePath, contents;
250
248
  return __generator(this, function (_c) {
251
249
  switch (_c.label) {
252
- case 0: return [4 /*yield*/, context.endpoint()];
250
+ case 0: return [4, context.endpoint()];
253
251
  case 1:
254
252
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
255
253
  contents = {
@@ -266,7 +264,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
266
264
  if (body !== undefined) {
267
265
  contents.body = body;
268
266
  }
269
- return [2 /*return*/, new __HttpRequest(contents)];
267
+ return [2, new __HttpRequest(contents)];
270
268
  }
271
269
  });
272
270
  }); };
@@ -278,9 +276,6 @@ var parseBody = function (streamBody, context) {
278
276
  return {};
279
277
  });
280
278
  };
281
- /**
282
- * Load an error code for the aws.rest-json-1.1 protocol.
283
- */
284
279
  var loadRestJsonErrorCode = function (output, data) {
285
280
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
286
281
  var sanitizeErrorCode = function (rawValue) {
@@ -305,4 +300,3 @@ var loadRestJsonErrorCode = function (output, data) {
305
300
  }
306
301
  return "";
307
302
  };
308
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -1,5 +1,5 @@
1
1
  import { __assign } from "tslib";
2
- import packageInfo from "./package.json";
2
+ import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -9,12 +9,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
- /**
13
- * @internal
14
- */
15
12
  export var getRuntimeConfig = function (config) {
16
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
14
  var clientSharedValues = getSharedRuntimeConfig(config);
18
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
19
16
  };
20
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,5 +1,5 @@
1
1
  import { __assign } from "tslib";
2
- import packageInfo from "./package.json";
2
+ import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -13,13 +13,9 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
- /**
17
- * @internal
18
- */
19
16
  export var getRuntimeConfig = function (config) {
20
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
18
  emitWarningIfUnsupportedVersion(process.version);
22
19
  var clientSharedValues = getSharedRuntimeConfig(config);
23
20
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
24
21
  };
25
- //# sourceMappingURL=runtimeConfig.js.map