@aws-sdk/client-forecastquery 3.933.0 → 3.935.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-es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "./ForecastqueryClient";
2
2
  export * from "./Forecastquery";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/errors";
5
5
  export { ForecastqueryServiceException } from "./models/ForecastqueryServiceException";
@@ -0,0 +1,71 @@
1
+ import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
2
+ export class InvalidInputException extends __BaseException {
3
+ name = "InvalidInputException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "InvalidInputException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class InvalidNextTokenException extends __BaseException {
17
+ name = "InvalidNextTokenException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "InvalidNextTokenException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class LimitExceededException extends __BaseException {
31
+ name = "LimitExceededException";
32
+ $fault = "client";
33
+ Message;
34
+ constructor(opts) {
35
+ super({
36
+ name: "LimitExceededException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
41
+ this.Message = opts.Message;
42
+ }
43
+ }
44
+ export class ResourceInUseException extends __BaseException {
45
+ name = "ResourceInUseException";
46
+ $fault = "client";
47
+ Message;
48
+ constructor(opts) {
49
+ super({
50
+ name: "ResourceInUseException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
55
+ this.Message = opts.Message;
56
+ }
57
+ }
58
+ export class ResourceNotFoundException extends __BaseException {
59
+ name = "ResourceNotFoundException";
60
+ $fault = "client";
61
+ Message;
62
+ constructor(opts) {
63
+ super({
64
+ name: "ResourceNotFoundException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
69
+ this.Message = opts.Message;
70
+ }
71
+ }
@@ -1,71 +1 @@
1
- import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
2
- export class InvalidInputException extends __BaseException {
3
- name = "InvalidInputException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "InvalidInputException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, InvalidInputException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- }
16
- export class InvalidNextTokenException extends __BaseException {
17
- name = "InvalidNextTokenException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "InvalidNextTokenException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- }
30
- export class LimitExceededException extends __BaseException {
31
- name = "LimitExceededException";
32
- $fault = "client";
33
- Message;
34
- constructor(opts) {
35
- super({
36
- name: "LimitExceededException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, LimitExceededException.prototype);
41
- this.Message = opts.Message;
42
- }
43
- }
44
- export class ResourceInUseException extends __BaseException {
45
- name = "ResourceInUseException";
46
- $fault = "client";
47
- Message;
48
- constructor(opts) {
49
- super({
50
- name: "ResourceInUseException",
51
- $fault: "client",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, ResourceInUseException.prototype);
55
- this.Message = opts.Message;
56
- }
57
- }
58
- export class ResourceNotFoundException extends __BaseException {
59
- name = "ResourceNotFoundException";
60
- $fault = "client";
61
- Message;
62
- constructor(opts) {
63
- super({
64
- name: "ResourceNotFoundException",
65
- $fault: "client",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
69
- this.Message = opts.Message;
70
- }
71
- }
1
+ export {};
@@ -28,8 +28,8 @@ const _hE = "httpError";
28
28
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.forecastquery";
29
29
  const n0 = "com.amazonaws.forecastquery";
30
30
  import { TypeRegistry } from "@smithy/core/schema";
31
+ import { InvalidInputException as __InvalidInputException, InvalidNextTokenException as __InvalidNextTokenException, LimitExceededException as __LimitExceededException, ResourceInUseException as __ResourceInUseException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/errors";
31
32
  import { ForecastqueryServiceException as __ForecastqueryServiceException } from "../models/ForecastqueryServiceException";
32
- import { InvalidInputException as __InvalidInputException, InvalidNextTokenException as __InvalidNextTokenException, LimitExceededException as __LimitExceededException, ResourceInUseException as __ResourceInUseException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
33
33
  export var DataPoint = [3, n0, _DP, 0, [_T, _V], [0, 1]];
34
34
  export var Forecast = [3, n0, _F, 0, [_P], [() => Predictions]];
35
35
  export var InvalidInputException = [
@@ -9,5 +9,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { ForecastqueryExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
- export * from "./models";
12
+ export * from "./models/errors";
13
+ export type * from "./models/models_0";
13
14
  export { ForecastqueryServiceException } from "./models/ForecastqueryServiceException";
@@ -0,0 +1,68 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
3
+ /**
4
+ * <p>The value is invalid or is too long.</p>
5
+ * @public
6
+ */
7
+ export declare class InvalidInputException extends __BaseException {
8
+ readonly name: "InvalidInputException";
9
+ readonly $fault: "client";
10
+ Message?: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The token is not valid. Tokens expire after 24 hours.</p>
18
+ * @public
19
+ */
20
+ export declare class InvalidNextTokenException extends __BaseException {
21
+ readonly name: "InvalidNextTokenException";
22
+ readonly $fault: "client";
23
+ Message?: string | undefined;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>The limit on the number of requests per second has been exceeded.</p>
31
+ * @public
32
+ */
33
+ export declare class LimitExceededException extends __BaseException {
34
+ readonly name: "LimitExceededException";
35
+ readonly $fault: "client";
36
+ Message?: string | undefined;
37
+ /**
38
+ * @internal
39
+ */
40
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
41
+ }
42
+ /**
43
+ * <p>The specified resource is in use.</p>
44
+ * @public
45
+ */
46
+ export declare class ResourceInUseException extends __BaseException {
47
+ readonly name: "ResourceInUseException";
48
+ readonly $fault: "client";
49
+ Message?: string | undefined;
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
54
+ }
55
+ /**
56
+ * <p>We can't find that resource. Check the information that you've provided and try
57
+ * again.</p>
58
+ * @public
59
+ */
60
+ export declare class ResourceNotFoundException extends __BaseException {
61
+ readonly name: "ResourceNotFoundException";
62
+ readonly $fault: "client";
63
+ Message?: string | undefined;
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
68
+ }
@@ -1,44 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
3
- /**
4
- * <p>The value is invalid or is too long.</p>
5
- * @public
6
- */
7
- export declare class InvalidInputException extends __BaseException {
8
- readonly name: "InvalidInputException";
9
- readonly $fault: "client";
10
- Message?: string | undefined;
11
- /**
12
- * @internal
13
- */
14
- constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
15
- }
16
- /**
17
- * <p>The token is not valid. Tokens expire after 24 hours.</p>
18
- * @public
19
- */
20
- export declare class InvalidNextTokenException extends __BaseException {
21
- readonly name: "InvalidNextTokenException";
22
- readonly $fault: "client";
23
- Message?: string | undefined;
24
- /**
25
- * @internal
26
- */
27
- constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
28
- }
29
- /**
30
- * <p>The limit on the number of requests per second has been exceeded.</p>
31
- * @public
32
- */
33
- export declare class LimitExceededException extends __BaseException {
34
- readonly name: "LimitExceededException";
35
- readonly $fault: "client";
36
- Message?: string | undefined;
37
- /**
38
- * @internal
39
- */
40
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
41
- }
42
1
  /**
43
2
  * @public
44
3
  */
@@ -134,33 +93,6 @@ export interface QueryForecastResponse {
134
93
  */
135
94
  Forecast?: Forecast | undefined;
136
95
  }
137
- /**
138
- * <p>The specified resource is in use.</p>
139
- * @public
140
- */
141
- export declare class ResourceInUseException extends __BaseException {
142
- readonly name: "ResourceInUseException";
143
- readonly $fault: "client";
144
- Message?: string | undefined;
145
- /**
146
- * @internal
147
- */
148
- constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
149
- }
150
- /**
151
- * <p>We can't find that resource. Check the information that you've provided and try
152
- * again.</p>
153
- * @public
154
- */
155
- export declare class ResourceNotFoundException extends __BaseException {
156
- readonly name: "ResourceNotFoundException";
157
- readonly $fault: "client";
158
- Message?: string | undefined;
159
- /**
160
- * @internal
161
- */
162
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
163
- }
164
96
  /**
165
97
  * @public
166
98
  */
@@ -4,5 +4,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { ForecastqueryExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
8
9
  export { ForecastqueryServiceException } from "./models/ForecastqueryServiceException";
@@ -0,0 +1,42 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
3
+ export declare class InvalidInputException extends __BaseException {
4
+ readonly name: "InvalidInputException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<InvalidInputException, __BaseException>
9
+ );
10
+ }
11
+ export declare class InvalidNextTokenException extends __BaseException {
12
+ readonly name: "InvalidNextTokenException";
13
+ readonly $fault: "client";
14
+ Message?: string | undefined;
15
+ constructor(
16
+ opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>
17
+ );
18
+ }
19
+ export declare class LimitExceededException extends __BaseException {
20
+ readonly name: "LimitExceededException";
21
+ readonly $fault: "client";
22
+ Message?: string | undefined;
23
+ constructor(
24
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
25
+ );
26
+ }
27
+ export declare class ResourceInUseException extends __BaseException {
28
+ readonly name: "ResourceInUseException";
29
+ readonly $fault: "client";
30
+ Message?: string | undefined;
31
+ constructor(
32
+ opts: __ExceptionOptionType<ResourceInUseException, __BaseException>
33
+ );
34
+ }
35
+ export declare class ResourceNotFoundException extends __BaseException {
36
+ readonly name: "ResourceNotFoundException";
37
+ readonly $fault: "client";
38
+ Message?: string | undefined;
39
+ constructor(
40
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
41
+ );
42
+ }
@@ -1,29 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
3
- export declare class InvalidInputException extends __BaseException {
4
- readonly name: "InvalidInputException";
5
- readonly $fault: "client";
6
- Message?: string | undefined;
7
- constructor(
8
- opts: __ExceptionOptionType<InvalidInputException, __BaseException>
9
- );
10
- }
11
- export declare class InvalidNextTokenException extends __BaseException {
12
- readonly name: "InvalidNextTokenException";
13
- readonly $fault: "client";
14
- Message?: string | undefined;
15
- constructor(
16
- opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>
17
- );
18
- }
19
- export declare class LimitExceededException extends __BaseException {
20
- readonly name: "LimitExceededException";
21
- readonly $fault: "client";
22
- Message?: string | undefined;
23
- constructor(
24
- opts: __ExceptionOptionType<LimitExceededException, __BaseException>
25
- );
26
- }
27
1
  export interface QueryForecastRequest {
28
2
  ForecastArn: string | undefined;
29
3
  StartDate?: string | undefined;
@@ -41,22 +15,6 @@ export interface Forecast {
41
15
  export interface QueryForecastResponse {
42
16
  Forecast?: Forecast | undefined;
43
17
  }
44
- export declare class ResourceInUseException extends __BaseException {
45
- readonly name: "ResourceInUseException";
46
- readonly $fault: "client";
47
- Message?: string | undefined;
48
- constructor(
49
- opts: __ExceptionOptionType<ResourceInUseException, __BaseException>
50
- );
51
- }
52
- export declare class ResourceNotFoundException extends __BaseException {
53
- readonly name: "ResourceNotFoundException";
54
- readonly $fault: "client";
55
- Message?: string | undefined;
56
- constructor(
57
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
58
- );
59
- }
60
18
  export interface QueryWhatIfForecastRequest {
61
19
  WhatIfForecastArn: string | undefined;
62
20
  StartDate?: string | undefined;
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.933.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-forecastquery",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.932.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.932.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";