@aws-sdk/client-forecastquery 3.986.0 → 3.988.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
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var ForecastqueryServiceException = require('./models/ForecastqueryServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,188 +113,6 @@ class ForecastqueryClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class ForecastqueryServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, ForecastqueryServiceException.prototype);
117
- }
118
- }
119
-
120
- class InvalidInputException extends ForecastqueryServiceException {
121
- name = "InvalidInputException";
122
- $fault = "client";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "InvalidInputException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, InvalidInputException.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class InvalidNextTokenException extends ForecastqueryServiceException {
135
- name = "InvalidNextTokenException";
136
- $fault = "client";
137
- Message;
138
- constructor(opts) {
139
- super({
140
- name: "InvalidNextTokenException",
141
- $fault: "client",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
145
- this.Message = opts.Message;
146
- }
147
- }
148
- class LimitExceededException extends ForecastqueryServiceException {
149
- name = "LimitExceededException";
150
- $fault = "client";
151
- Message;
152
- constructor(opts) {
153
- super({
154
- name: "LimitExceededException",
155
- $fault: "client",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, LimitExceededException.prototype);
159
- this.Message = opts.Message;
160
- }
161
- }
162
- class ResourceInUseException extends ForecastqueryServiceException {
163
- name = "ResourceInUseException";
164
- $fault = "client";
165
- Message;
166
- constructor(opts) {
167
- super({
168
- name: "ResourceInUseException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, ResourceInUseException.prototype);
173
- this.Message = opts.Message;
174
- }
175
- }
176
- class ResourceNotFoundException extends ForecastqueryServiceException {
177
- name = "ResourceNotFoundException";
178
- $fault = "client";
179
- Message;
180
- constructor(opts) {
181
- super({
182
- name: "ResourceNotFoundException",
183
- $fault: "client",
184
- ...opts,
185
- });
186
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
187
- this.Message = opts.Message;
188
- }
189
- }
190
-
191
- const _DP = "DataPoint";
192
- const _ED = "EndDate";
193
- const _F = "Forecast";
194
- const _FA = "ForecastArn";
195
- const _Fi = "Filters";
196
- const _IIE = "InvalidInputException";
197
- const _INTE = "InvalidNextTokenException";
198
- const _LEE = "LimitExceededException";
199
- const _M = "Message";
200
- const _NT = "NextToken";
201
- const _P = "Predictions";
202
- const _QF = "QueryForecast";
203
- const _QFR = "QueryForecastRequest";
204
- const _QFRu = "QueryForecastResponse";
205
- const _QWIF = "QueryWhatIfForecast";
206
- const _QWIFR = "QueryWhatIfForecastRequest";
207
- const _QWIFRu = "QueryWhatIfForecastResponse";
208
- const _RIUE = "ResourceInUseException";
209
- const _RNFE = "ResourceNotFoundException";
210
- const _SD = "StartDate";
211
- const _T = "Timestamp";
212
- const _TS = "TimeSeries";
213
- const _V = "Value";
214
- const _WIFA = "WhatIfForecastArn";
215
- const _c = "client";
216
- const _e = "error";
217
- const _hE = "httpError";
218
- const _s = "smithy.ts.sdk.synthetic.com.amazonaws.forecastquery";
219
- const n0 = "com.amazonaws.forecastquery";
220
- var DataPoint$ = [3, n0, _DP,
221
- 0,
222
- [_T, _V],
223
- [0, 1]
224
- ];
225
- var Forecast$ = [3, n0, _F,
226
- 0,
227
- [_P],
228
- [() => Predictions]
229
- ];
230
- var InvalidInputException$ = [-3, n0, _IIE,
231
- { [_e]: _c, [_hE]: 400 },
232
- [_M],
233
- [0]
234
- ];
235
- schema.TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
236
- var InvalidNextTokenException$ = [-3, n0, _INTE,
237
- { [_e]: _c, [_hE]: 400 },
238
- [_M],
239
- [0]
240
- ];
241
- schema.TypeRegistry.for(n0).registerError(InvalidNextTokenException$, InvalidNextTokenException);
242
- var LimitExceededException$ = [-3, n0, _LEE,
243
- { [_e]: _c, [_hE]: 409 },
244
- [_M],
245
- [0]
246
- ];
247
- schema.TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
248
- var QueryForecastRequest$ = [3, n0, _QFR,
249
- 0,
250
- [_FA, _Fi, _SD, _ED, _NT],
251
- [0, 128 | 0, 0, 0, 0], 2
252
- ];
253
- var QueryForecastResponse$ = [3, n0, _QFRu,
254
- 0,
255
- [_F],
256
- [() => Forecast$]
257
- ];
258
- var QueryWhatIfForecastRequest$ = [3, n0, _QWIFR,
259
- 0,
260
- [_WIFA, _Fi, _SD, _ED, _NT],
261
- [0, 128 | 0, 0, 0, 0], 2
262
- ];
263
- var QueryWhatIfForecastResponse$ = [3, n0, _QWIFRu,
264
- 0,
265
- [_F],
266
- [() => Forecast$]
267
- ];
268
- var ResourceInUseException$ = [-3, n0, _RIUE,
269
- { [_e]: _c, [_hE]: 409 },
270
- [_M],
271
- [0]
272
- ];
273
- schema.TypeRegistry.for(n0).registerError(ResourceInUseException$, ResourceInUseException);
274
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
275
- { [_e]: _c, [_hE]: 404 },
276
- [_M],
277
- [0]
278
- ];
279
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
280
- var ForecastqueryServiceException$ = [-3, _s, "ForecastqueryServiceException", 0, [], []];
281
- schema.TypeRegistry.for(_s).registerError(ForecastqueryServiceException$, ForecastqueryServiceException);
282
- var TimeSeries = [1, n0, _TS,
283
- 0, () => DataPoint$
284
- ];
285
- var Predictions = [2, n0, _P,
286
- 0, 0, () => TimeSeries
287
- ];
288
- var QueryForecast$ = [9, n0, _QF,
289
- 0, () => QueryForecastRequest$, () => QueryForecastResponse$
290
- ];
291
- var QueryWhatIfForecast$ = [9, n0, _QWIF,
292
- 0, () => QueryWhatIfForecastRequest$, () => QueryWhatIfForecastResponse$
293
- ];
294
-
295
116
  class QueryForecastCommand extends smithyClient.Command
296
117
  .classBuilder()
297
118
  .ep(commonParams)
@@ -300,7 +121,7 @@ class QueryForecastCommand extends smithyClient.Command
300
121
  })
301
122
  .s("AmazonForecastRuntime", "QueryForecast", {})
302
123
  .n("ForecastqueryClient", "QueryForecastCommand")
303
- .sc(QueryForecast$)
124
+ .sc(schemas_0.QueryForecast$)
304
125
  .build() {
305
126
  }
306
127
 
@@ -312,7 +133,7 @@ class QueryWhatIfForecastCommand extends smithyClient.Command
312
133
  })
313
134
  .s("AmazonForecastRuntime", "QueryWhatIfForecast", {})
314
135
  .n("ForecastqueryClient", "QueryWhatIfForecastCommand")
315
- .sc(QueryWhatIfForecast$)
136
+ .sc(schemas_0.QueryWhatIfForecast$)
316
137
  .build() {
317
138
  }
318
139
 
@@ -332,27 +153,23 @@ Object.defineProperty(exports, "__Client", {
332
153
  enumerable: true,
333
154
  get: function () { return smithyClient.Client; }
334
155
  });
335
- exports.DataPoint$ = DataPoint$;
336
- exports.Forecast$ = Forecast$;
156
+ Object.defineProperty(exports, "ForecastqueryServiceException", {
157
+ enumerable: true,
158
+ get: function () { return ForecastqueryServiceException.ForecastqueryServiceException; }
159
+ });
337
160
  exports.Forecastquery = Forecastquery;
338
161
  exports.ForecastqueryClient = ForecastqueryClient;
339
- exports.ForecastqueryServiceException = ForecastqueryServiceException;
340
- exports.ForecastqueryServiceException$ = ForecastqueryServiceException$;
341
- exports.InvalidInputException = InvalidInputException;
342
- exports.InvalidInputException$ = InvalidInputException$;
343
- exports.InvalidNextTokenException = InvalidNextTokenException;
344
- exports.InvalidNextTokenException$ = InvalidNextTokenException$;
345
- exports.LimitExceededException = LimitExceededException;
346
- exports.LimitExceededException$ = LimitExceededException$;
347
- exports.QueryForecast$ = QueryForecast$;
348
162
  exports.QueryForecastCommand = QueryForecastCommand;
349
- exports.QueryForecastRequest$ = QueryForecastRequest$;
350
- exports.QueryForecastResponse$ = QueryForecastResponse$;
351
- exports.QueryWhatIfForecast$ = QueryWhatIfForecast$;
352
163
  exports.QueryWhatIfForecastCommand = QueryWhatIfForecastCommand;
353
- exports.QueryWhatIfForecastRequest$ = QueryWhatIfForecastRequest$;
354
- exports.QueryWhatIfForecastResponse$ = QueryWhatIfForecastResponse$;
355
- exports.ResourceInUseException = ResourceInUseException;
356
- exports.ResourceInUseException$ = ResourceInUseException$;
357
- exports.ResourceNotFoundException = ResourceNotFoundException;
358
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
164
+ Object.keys(schemas_0).forEach(function (k) {
165
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
166
+ enumerable: true,
167
+ get: function () { return schemas_0[k]; }
168
+ });
169
+ });
170
+ Object.keys(errors).forEach(function (k) {
171
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
172
+ enumerable: true,
173
+ get: function () { return errors[k]; }
174
+ });
175
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ForecastqueryServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ForecastqueryServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ForecastqueryServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ForecastqueryServiceException = ForecastqueryServiceException;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceNotFoundException = exports.ResourceInUseException = exports.LimitExceededException = exports.InvalidNextTokenException = exports.InvalidInputException = void 0;
4
+ const ForecastqueryServiceException_1 = require("./ForecastqueryServiceException");
5
+ class InvalidInputException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
6
+ name = "InvalidInputException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "InvalidInputException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.InvalidInputException = InvalidInputException;
20
+ class InvalidNextTokenException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
21
+ name = "InvalidNextTokenException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InvalidNextTokenException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.InvalidNextTokenException = InvalidNextTokenException;
35
+ class LimitExceededException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
36
+ name = "LimitExceededException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "LimitExceededException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.LimitExceededException = LimitExceededException;
50
+ class ResourceInUseException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
51
+ name = "ResourceInUseException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceInUseException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.ResourceInUseException = ResourceInUseException;
65
+ class ResourceNotFoundException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
66
+ name = "ResourceNotFoundException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ResourceNotFoundException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.ResourceNotFoundException = ResourceNotFoundException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-06-26",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.forecastquery",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-06-26",
33
35
  serviceTarget: "AmazonForecastRuntime",
34
36
  },
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryWhatIfForecast$ = exports.QueryForecast$ = exports.QueryWhatIfForecastResponse$ = exports.QueryWhatIfForecastRequest$ = exports.QueryForecastResponse$ = exports.QueryForecastRequest$ = exports.Forecast$ = exports.DataPoint$ = exports.errorTypeRegistries = exports.ResourceNotFoundException$ = exports.ResourceInUseException$ = exports.LimitExceededException$ = exports.InvalidNextTokenException$ = exports.InvalidInputException$ = exports.ForecastqueryServiceException$ = void 0;
4
+ const _DP = "DataPoint";
5
+ const _ED = "EndDate";
6
+ const _F = "Forecast";
7
+ const _FA = "ForecastArn";
8
+ const _Fi = "Filters";
9
+ const _IIE = "InvalidInputException";
10
+ const _INTE = "InvalidNextTokenException";
11
+ const _LEE = "LimitExceededException";
12
+ const _M = "Message";
13
+ const _NT = "NextToken";
14
+ const _P = "Predictions";
15
+ const _QF = "QueryForecast";
16
+ const _QFR = "QueryForecastRequest";
17
+ const _QFRu = "QueryForecastResponse";
18
+ const _QWIF = "QueryWhatIfForecast";
19
+ const _QWIFR = "QueryWhatIfForecastRequest";
20
+ const _QWIFRu = "QueryWhatIfForecastResponse";
21
+ const _RIUE = "ResourceInUseException";
22
+ const _RNFE = "ResourceNotFoundException";
23
+ const _SD = "StartDate";
24
+ const _T = "Timestamp";
25
+ const _TS = "TimeSeries";
26
+ const _V = "Value";
27
+ const _WIFA = "WhatIfForecastArn";
28
+ const _c = "client";
29
+ const _e = "error";
30
+ const _hE = "httpError";
31
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.forecastquery";
32
+ const n0 = "com.amazonaws.forecastquery";
33
+ const schema_1 = require("@smithy/core/schema");
34
+ const errors_1 = require("../models/errors");
35
+ const ForecastqueryServiceException_1 = require("../models/ForecastqueryServiceException");
36
+ const _s_registry = schema_1.TypeRegistry.for(_s);
37
+ exports.ForecastqueryServiceException$ = [-3, _s, "ForecastqueryServiceException", 0, [], []];
38
+ _s_registry.registerError(exports.ForecastqueryServiceException$, ForecastqueryServiceException_1.ForecastqueryServiceException);
39
+ const n0_registry = schema_1.TypeRegistry.for(n0);
40
+ exports.InvalidInputException$ = [-3, n0, _IIE,
41
+ { [_e]: _c, [_hE]: 400 },
42
+ [_M],
43
+ [0]
44
+ ];
45
+ n0_registry.registerError(exports.InvalidInputException$, errors_1.InvalidInputException);
46
+ exports.InvalidNextTokenException$ = [-3, n0, _INTE,
47
+ { [_e]: _c, [_hE]: 400 },
48
+ [_M],
49
+ [0]
50
+ ];
51
+ n0_registry.registerError(exports.InvalidNextTokenException$, errors_1.InvalidNextTokenException);
52
+ exports.LimitExceededException$ = [-3, n0, _LEE,
53
+ { [_e]: _c, [_hE]: 409 },
54
+ [_M],
55
+ [0]
56
+ ];
57
+ n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
58
+ exports.ResourceInUseException$ = [-3, n0, _RIUE,
59
+ { [_e]: _c, [_hE]: 409 },
60
+ [_M],
61
+ [0]
62
+ ];
63
+ n0_registry.registerError(exports.ResourceInUseException$, errors_1.ResourceInUseException);
64
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
65
+ { [_e]: _c, [_hE]: 404 },
66
+ [_M],
67
+ [0]
68
+ ];
69
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
70
+ exports.errorTypeRegistries = [
71
+ _s_registry,
72
+ n0_registry,
73
+ ];
74
+ exports.DataPoint$ = [3, n0, _DP,
75
+ 0,
76
+ [_T, _V],
77
+ [0, 1]
78
+ ];
79
+ exports.Forecast$ = [3, n0, _F,
80
+ 0,
81
+ [_P],
82
+ [() => Predictions]
83
+ ];
84
+ exports.QueryForecastRequest$ = [3, n0, _QFR,
85
+ 0,
86
+ [_FA, _Fi, _SD, _ED, _NT],
87
+ [0, 128 | 0, 0, 0, 0], 2
88
+ ];
89
+ exports.QueryForecastResponse$ = [3, n0, _QFRu,
90
+ 0,
91
+ [_F],
92
+ [() => exports.Forecast$]
93
+ ];
94
+ exports.QueryWhatIfForecastRequest$ = [3, n0, _QWIFR,
95
+ 0,
96
+ [_WIFA, _Fi, _SD, _ED, _NT],
97
+ [0, 128 | 0, 0, 0, 0], 2
98
+ ];
99
+ exports.QueryWhatIfForecastResponse$ = [3, n0, _QWIFRu,
100
+ 0,
101
+ [_F],
102
+ [() => exports.Forecast$]
103
+ ];
104
+ var TimeSeries = [1, n0, _TS,
105
+ 0, () => exports.DataPoint$
106
+ ];
107
+ var Filters = 128 | 0;
108
+ var Predictions = [2, n0, _P,
109
+ 0, 0, () => TimeSeries
110
+ ];
111
+ exports.QueryForecast$ = [9, n0, _QF,
112
+ 0, () => exports.QueryForecastRequest$, () => exports.QueryForecastResponse$
113
+ ];
114
+ exports.QueryWhatIfForecast$ = [9, n0, _QWIF,
115
+ 0, () => exports.QueryWhatIfForecastRequest$, () => exports.QueryWhatIfForecastResponse$
116
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultForecastqueryHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2018-06-26",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.forecastquery",
30
+ errorTypeRegistries,
29
31
  version: "2018-06-26",
30
32
  serviceTarget: "AmazonForecastRuntime",
31
33
  },
@@ -30,34 +30,54 @@ 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
- export var DataPoint$ = [3, n0, _DP,
34
- 0,
35
- [_T, _V],
36
- [0, 1]
37
- ];
38
- export var Forecast$ = [3, n0, _F,
39
- 0,
40
- [_P],
41
- [() => Predictions]
42
- ];
33
+ const _s_registry = TypeRegistry.for(_s);
34
+ export var ForecastqueryServiceException$ = [-3, _s, "ForecastqueryServiceException", 0, [], []];
35
+ _s_registry.registerError(ForecastqueryServiceException$, ForecastqueryServiceException);
36
+ const n0_registry = TypeRegistry.for(n0);
43
37
  export var InvalidInputException$ = [-3, n0, _IIE,
44
38
  { [_e]: _c, [_hE]: 400 },
45
39
  [_M],
46
40
  [0]
47
41
  ];
48
- TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
42
+ n0_registry.registerError(InvalidInputException$, InvalidInputException);
49
43
  export var InvalidNextTokenException$ = [-3, n0, _INTE,
50
44
  { [_e]: _c, [_hE]: 400 },
51
45
  [_M],
52
46
  [0]
53
47
  ];
54
- TypeRegistry.for(n0).registerError(InvalidNextTokenException$, InvalidNextTokenException);
48
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
55
49
  export var LimitExceededException$ = [-3, n0, _LEE,
56
50
  { [_e]: _c, [_hE]: 409 },
57
51
  [_M],
58
52
  [0]
59
53
  ];
60
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
54
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
55
+ export var ResourceInUseException$ = [-3, n0, _RIUE,
56
+ { [_e]: _c, [_hE]: 409 },
57
+ [_M],
58
+ [0]
59
+ ];
60
+ n0_registry.registerError(ResourceInUseException$, ResourceInUseException);
61
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
62
+ { [_e]: _c, [_hE]: 404 },
63
+ [_M],
64
+ [0]
65
+ ];
66
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
67
+ export const errorTypeRegistries = [
68
+ _s_registry,
69
+ n0_registry,
70
+ ];
71
+ export var DataPoint$ = [3, n0, _DP,
72
+ 0,
73
+ [_T, _V],
74
+ [0, 1]
75
+ ];
76
+ export var Forecast$ = [3, n0, _F,
77
+ 0,
78
+ [_P],
79
+ [() => Predictions]
80
+ ];
61
81
  export var QueryForecastRequest$ = [3, n0, _QFR,
62
82
  0,
63
83
  [_FA, _Fi, _SD, _ED, _NT],
@@ -78,20 +98,6 @@ export var QueryWhatIfForecastResponse$ = [3, n0, _QWIFRu,
78
98
  [_F],
79
99
  [() => Forecast$]
80
100
  ];
81
- export var ResourceInUseException$ = [-3, n0, _RIUE,
82
- { [_e]: _c, [_hE]: 409 },
83
- [_M],
84
- [0]
85
- ];
86
- TypeRegistry.for(n0).registerError(ResourceInUseException$, ResourceInUseException);
87
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
88
- { [_e]: _c, [_hE]: 404 },
89
- [_M],
90
- [0]
91
- ];
92
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
93
- export var ForecastqueryServiceException$ = [-3, _s, "ForecastqueryServiceException", 0, [], []];
94
- TypeRegistry.for(_s).registerError(ForecastqueryServiceException$, ForecastqueryServiceException);
95
101
  var TimeSeries = [1, n0, _TS,
96
102
  0, () => DataPoint$
97
103
  ];
@@ -1,15 +1,22 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
- export declare var DataPoint$: StaticStructureSchema;
3
- export declare var Forecast$: StaticStructureSchema;
3
+ export declare var ForecastqueryServiceException$: StaticErrorSchema;
4
4
  export declare var InvalidInputException$: StaticErrorSchema;
5
5
  export declare var InvalidNextTokenException$: StaticErrorSchema;
6
6
  export declare var LimitExceededException$: StaticErrorSchema;
7
+ export declare var ResourceInUseException$: StaticErrorSchema;
8
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
15
+ export declare var DataPoint$: StaticStructureSchema;
16
+ export declare var Forecast$: StaticStructureSchema;
7
17
  export declare var QueryForecastRequest$: StaticStructureSchema;
8
18
  export declare var QueryForecastResponse$: StaticStructureSchema;
9
19
  export declare var QueryWhatIfForecastRequest$: StaticStructureSchema;
10
20
  export declare var QueryWhatIfForecastResponse$: StaticStructureSchema;
11
- export declare var ResourceInUseException$: StaticErrorSchema;
12
- export declare var ResourceNotFoundException$: StaticErrorSchema;
13
- export declare var ForecastqueryServiceException$: StaticErrorSchema;
14
21
  export declare var QueryForecast$: StaticOperationSchema;
15
22
  export declare var QueryWhatIfForecast$: StaticOperationSchema;
@@ -1,19 +1,21 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
6
- export declare var DataPoint$: StaticStructureSchema;
7
- export declare var Forecast$: StaticStructureSchema;
7
+ export declare var ForecastqueryServiceException$: StaticErrorSchema;
8
8
  export declare var InvalidInputException$: StaticErrorSchema;
9
9
  export declare var InvalidNextTokenException$: StaticErrorSchema;
10
10
  export declare var LimitExceededException$: StaticErrorSchema;
11
+ export declare var ResourceInUseException$: StaticErrorSchema;
12
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
14
+ export declare var DataPoint$: StaticStructureSchema;
15
+ export declare var Forecast$: StaticStructureSchema;
11
16
  export declare var QueryForecastRequest$: StaticStructureSchema;
12
17
  export declare var QueryForecastResponse$: StaticStructureSchema;
13
18
  export declare var QueryWhatIfForecastRequest$: StaticStructureSchema;
14
19
  export declare var QueryWhatIfForecastResponse$: StaticStructureSchema;
15
- export declare var ResourceInUseException$: StaticErrorSchema;
16
- export declare var ResourceNotFoundException$: StaticErrorSchema;
17
- export declare var ForecastqueryServiceException$: StaticErrorSchema;
18
20
  export declare var QueryForecast$: StaticOperationSchema;
19
21
  export declare var QueryWhatIfForecast$: StaticOperationSchema;
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.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-forecastquery",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",