@aws-sdk/client-forecastquery 3.1137.0 → 3.1139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1138.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -238,10 +238,10 @@ const _e = "error";
238
238
  const _hE = "httpError";
239
239
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.forecastquery";
240
240
  const n0 = "com.amazonaws.forecastquery";
241
- const _s_registry = TypeRegistry.for(_s);
241
+ const _s_registry = new TypeRegistry(_s);
242
242
  var ForecastqueryServiceException$ = [-3, _s, "ForecastqueryServiceException", 0, [], []];
243
243
  _s_registry.registerError(ForecastqueryServiceException$, ForecastqueryServiceException);
244
- const n0_registry = TypeRegistry.for(n0);
244
+ const n0_registry = new TypeRegistry(n0);
245
245
  var InvalidInputException$ = [-3, n0, _IIE,
246
246
  { [_e]: _c, [_hE]: 400 },
247
247
  [_M],
@@ -30,10 +30,10 @@ const n0 = "com.amazonaws.forecastquery";
30
30
  import { TypeRegistry } from "@smithy/core/schema";
31
31
  import { InvalidInputException, InvalidNextTokenException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, } from "../models/errors";
32
32
  import { ForecastqueryServiceException } from "../models/ForecastqueryServiceException";
33
- const _s_registry = TypeRegistry.for(_s);
33
+ const _s_registry = new TypeRegistry(_s);
34
34
  export var ForecastqueryServiceException$ = [-3, _s, "ForecastqueryServiceException", 0, [], []];
35
35
  _s_registry.registerError(ForecastqueryServiceException$, ForecastqueryServiceException);
36
- const n0_registry = TypeRegistry.for(n0);
36
+ const n0_registry = new TypeRegistry(n0);
37
37
  export var InvalidInputException$ = [-3, n0, _IIE,
38
38
  { [_e]: _c, [_hE]: 400 },
39
39
  [_M],
@@ -1,20 +1,26 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type QueryForecastCommandInput, type QueryForecastCommandOutput } from "./commands/QueryForecastCommand";
3
3
  import { type QueryWhatIfForecastCommandInput, type QueryWhatIfForecastCommandOutput } from "./commands/QueryWhatIfForecastCommand";
4
4
  import { ForecastqueryClient } from "./ForecastqueryClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export interface ForecastqueryRequestOptions extends __HttpHandlerOptions {
9
+ metricsRecorder?: __MetricsRecorder<unknown>;
10
+ }
5
11
  export interface Forecastquery {
6
12
  /**
7
13
  * @see {@link QueryForecastCommand}
8
14
  */
9
- queryForecast(args: QueryForecastCommandInput, options?: __HttpHandlerOptions): Promise<QueryForecastCommandOutput>;
15
+ queryForecast(args: QueryForecastCommandInput, options?: ForecastqueryRequestOptions): Promise<QueryForecastCommandOutput>;
10
16
  queryForecast(args: QueryForecastCommandInput, cb: (err: any, data?: QueryForecastCommandOutput) => void): void;
11
- queryForecast(args: QueryForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryForecastCommandOutput) => void): void;
17
+ queryForecast(args: QueryForecastCommandInput, options: ForecastqueryRequestOptions, cb: (err: any, data?: QueryForecastCommandOutput) => void): void;
12
18
  /**
13
19
  * @see {@link QueryWhatIfForecastCommand}
14
20
  */
15
- queryWhatIfForecast(args: QueryWhatIfForecastCommandInput, options?: __HttpHandlerOptions): Promise<QueryWhatIfForecastCommandOutput>;
21
+ queryWhatIfForecast(args: QueryWhatIfForecastCommandInput, options?: ForecastqueryRequestOptions): Promise<QueryWhatIfForecastCommandOutput>;
16
22
  queryWhatIfForecast(args: QueryWhatIfForecastCommandInput, cb: (err: any, data?: QueryWhatIfForecastCommandOutput) => void): void;
17
- queryWhatIfForecast(args: QueryWhatIfForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryWhatIfForecastCommandOutput) => void): void;
23
+ queryWhatIfForecast(args: QueryWhatIfForecastCommandInput, options: ForecastqueryRequestOptions, cb: (err: any, data?: QueryWhatIfForecastCommandOutput) => void): void;
18
24
  }
19
25
  /**
20
26
  * <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
@@ -1,4 +1,7 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import {
3
6
  QueryForecastCommandInput,
4
7
  QueryForecastCommandOutput,
@@ -8,10 +11,13 @@ import {
8
11
  QueryWhatIfForecastCommandOutput,
9
12
  } from "./commands/QueryWhatIfForecastCommand";
10
13
  import { ForecastqueryClient } from "./ForecastqueryClient";
14
+ export interface ForecastqueryRequestOptions extends __HttpHandlerOptions {
15
+ metricsRecorder?: __MetricsRecorder<unknown>;
16
+ }
11
17
  export interface Forecastquery {
12
18
  queryForecast(
13
19
  args: QueryForecastCommandInput,
14
- options?: __HttpHandlerOptions,
20
+ options?: ForecastqueryRequestOptions,
15
21
  ): Promise<QueryForecastCommandOutput>;
16
22
  queryForecast(
17
23
  args: QueryForecastCommandInput,
@@ -19,12 +25,12 @@ export interface Forecastquery {
19
25
  ): void;
20
26
  queryForecast(
21
27
  args: QueryForecastCommandInput,
22
- options: __HttpHandlerOptions,
28
+ options: ForecastqueryRequestOptions,
23
29
  cb: (err: any, data?: QueryForecastCommandOutput) => void,
24
30
  ): void;
25
31
  queryWhatIfForecast(
26
32
  args: QueryWhatIfForecastCommandInput,
27
- options?: __HttpHandlerOptions,
33
+ options?: ForecastqueryRequestOptions,
28
34
  ): Promise<QueryWhatIfForecastCommandOutput>;
29
35
  queryWhatIfForecast(
30
36
  args: QueryWhatIfForecastCommandInput,
@@ -32,7 +38,7 @@ export interface Forecastquery {
32
38
  ): void;
33
39
  queryWhatIfForecast(
34
40
  args: QueryWhatIfForecastCommandInput,
35
- options: __HttpHandlerOptions,
41
+ options: ForecastqueryRequestOptions,
36
42
  cb: (err: any, data?: QueryWhatIfForecastCommandOutput) => void,
37
43
  ): void;
38
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-forecastquery",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Forecastquery Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-forecastquery",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {