@aws-sdk/client-cloudsearch-domain 3.54.0 → 3.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
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.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
9
+
10
+
11
+
12
+
13
+
14
+ # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
17
+
18
+
19
+
20
+
21
+
22
+ ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
31
 
8
32
  **Note:** Version bump only for package @aws-sdk/client-cloudsearch-domain
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
13
  class CloudSearchDomainClient extends smithy_client_1.Client {
14
14
  constructor(configuration) {
15
- const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
- const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
- const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
- const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
- const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
- const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
- const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
15
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
16
+ const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
17
+ const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
18
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
19
+ const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
20
+ const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
21
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
22
22
  super(_config_6);
23
23
  this.config = _config_6;
24
- this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
25
- this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
26
- this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
27
- this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
28
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
29
- this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
24
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
25
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
28
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
30
  }
31
31
  destroy() {
32
32
  super.destroy();
@@ -11,7 +11,7 @@ class SearchCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "CloudSearchDomainClient";
@@ -27,10 +27,10 @@ class SearchCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1SearchCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1SearchCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1SearchCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1SearchCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.SearchCommand = SearchCommand;
@@ -11,7 +11,7 @@ class SuggestCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "CloudSearchDomainClient";
@@ -27,10 +27,10 @@ class SuggestCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1SuggestCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1SuggestCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1SuggestCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1SuggestCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.SuggestCommand = SuggestCommand;
@@ -11,7 +11,7 @@ class UploadDocumentsCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "CloudSearchDomainClient";
@@ -27,10 +27,10 @@ class UploadDocumentsCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1UploadDocumentsCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1UploadDocumentsCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1UploadDocumentsCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UploadDocumentsCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.UploadDocumentsCommand = UploadDocumentsCommand;
@@ -122,7 +122,7 @@ const partitionHash = {
122
122
  ],
123
123
  },
124
124
  };
125
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
125
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
126
126
  ...options,
127
127
  signingService: "cloudsearch",
128
128
  regionHash,
@@ -101,7 +101,7 @@ const deserializeAws_restJson1SearchCommand = async (output, context) => {
101
101
  stats: undefined,
102
102
  status: undefined,
103
103
  };
104
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
104
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
105
105
  if (data.facets !== undefined && data.facets !== null) {
106
106
  contents.facets = deserializeAws_restJson1Facets(data.facets, context);
107
107
  }
@@ -136,7 +136,7 @@ const deserializeAws_restJson1SearchCommandError = async (output, context) => {
136
136
  $fault: "client",
137
137
  $metadata: deserializeMetadata(output),
138
138
  });
139
- throw smithy_client_1.decorateServiceException(response, parsedBody);
139
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
140
140
  }
141
141
  };
142
142
  const deserializeAws_restJson1SuggestCommand = async (output, context) => {
@@ -148,7 +148,7 @@ const deserializeAws_restJson1SuggestCommand = async (output, context) => {
148
148
  status: undefined,
149
149
  suggest: undefined,
150
150
  };
151
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
151
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
152
152
  if (data.status !== undefined && data.status !== null) {
153
153
  contents.status = deserializeAws_restJson1SuggestStatus(data.status, context);
154
154
  }
@@ -177,7 +177,7 @@ const deserializeAws_restJson1SuggestCommandError = async (output, context) => {
177
177
  $fault: "client",
178
178
  $metadata: deserializeMetadata(output),
179
179
  });
180
- throw smithy_client_1.decorateServiceException(response, parsedBody);
180
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
181
181
  }
182
182
  };
183
183
  const deserializeAws_restJson1UploadDocumentsCommand = async (output, context) => {
@@ -191,15 +191,15 @@ const deserializeAws_restJson1UploadDocumentsCommand = async (output, context) =
191
191
  status: undefined,
192
192
  warnings: undefined,
193
193
  };
194
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
194
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
195
195
  if (data.adds !== undefined && data.adds !== null) {
196
- contents.adds = smithy_client_1.expectLong(data.adds);
196
+ contents.adds = (0, smithy_client_1.expectLong)(data.adds);
197
197
  }
198
198
  if (data.deletes !== undefined && data.deletes !== null) {
199
- contents.deletes = smithy_client_1.expectLong(data.deletes);
199
+ contents.deletes = (0, smithy_client_1.expectLong)(data.deletes);
200
200
  }
201
201
  if (data.status !== undefined && data.status !== null) {
202
- contents.status = smithy_client_1.expectString(data.status);
202
+ contents.status = (0, smithy_client_1.expectString)(data.status);
203
203
  }
204
204
  if (data.warnings !== undefined && data.warnings !== null) {
205
205
  contents.warnings = deserializeAws_restJson1DocumentServiceWarnings(data.warnings, context);
@@ -226,40 +226,40 @@ const deserializeAws_restJson1UploadDocumentsCommandError = async (output, conte
226
226
  $fault: "client",
227
227
  $metadata: deserializeMetadata(output),
228
228
  });
229
- throw smithy_client_1.decorateServiceException(response, parsedBody);
229
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
230
230
  }
231
231
  };
232
232
  const deserializeAws_restJson1DocumentServiceExceptionResponse = async (parsedOutput, context) => {
233
233
  const contents = {};
234
234
  const data = parsedOutput.body;
235
235
  if (data.message !== undefined && data.message !== null) {
236
- contents.message = smithy_client_1.expectString(data.message);
236
+ contents.message = (0, smithy_client_1.expectString)(data.message);
237
237
  }
238
238
  if (data.status !== undefined && data.status !== null) {
239
- contents.status = smithy_client_1.expectString(data.status);
239
+ contents.status = (0, smithy_client_1.expectString)(data.status);
240
240
  }
241
241
  const exception = new models_0_1.DocumentServiceException({
242
242
  $metadata: deserializeMetadata(parsedOutput),
243
243
  ...contents,
244
244
  });
245
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
245
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
246
246
  };
247
247
  const deserializeAws_restJson1SearchExceptionResponse = async (parsedOutput, context) => {
248
248
  const contents = {};
249
249
  const data = parsedOutput.body;
250
250
  if (data.message !== undefined && data.message !== null) {
251
- contents.message = smithy_client_1.expectString(data.message);
251
+ contents.message = (0, smithy_client_1.expectString)(data.message);
252
252
  }
253
253
  const exception = new models_0_1.SearchException({
254
254
  $metadata: deserializeMetadata(parsedOutput),
255
255
  ...contents,
256
256
  });
257
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
257
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
258
258
  };
259
259
  const deserializeAws_restJson1Bucket = (output, context) => {
260
260
  return {
261
- count: smithy_client_1.expectLong(output.count),
262
- value: smithy_client_1.expectString(output.value),
261
+ count: (0, smithy_client_1.expectLong)(output.count),
262
+ value: (0, smithy_client_1.expectString)(output.value),
263
263
  };
264
264
  };
265
265
  const deserializeAws_restJson1BucketInfo = (output, context) => {
@@ -282,7 +282,7 @@ const deserializeAws_restJson1BucketList = (output, context) => {
282
282
  };
283
283
  const deserializeAws_restJson1DocumentServiceWarning = (output, context) => {
284
284
  return {
285
- message: smithy_client_1.expectString(output.message),
285
+ message: (0, smithy_client_1.expectString)(output.message),
286
286
  };
287
287
  };
288
288
  const deserializeAws_restJson1DocumentServiceWarnings = (output, context) => {
@@ -303,7 +303,7 @@ const deserializeAws_restJson1Exprs = (output, context) => {
303
303
  }
304
304
  return {
305
305
  ...acc,
306
- [key]: smithy_client_1.expectString(value),
306
+ [key]: (0, smithy_client_1.expectString)(value),
307
307
  };
308
308
  }, {});
309
309
  };
@@ -331,14 +331,14 @@ const deserializeAws_restJson1Fields = (output, context) => {
331
331
  };
332
332
  const deserializeAws_restJson1FieldStats = (output, context) => {
333
333
  return {
334
- count: smithy_client_1.expectLong(output.count),
335
- max: smithy_client_1.expectString(output.max),
336
- mean: smithy_client_1.expectString(output.mean),
337
- min: smithy_client_1.expectString(output.min),
338
- missing: smithy_client_1.expectLong(output.missing),
339
- stddev: smithy_client_1.limitedParseDouble(output.stddev),
340
- sum: smithy_client_1.limitedParseDouble(output.sum),
341
- sumOfSquares: smithy_client_1.limitedParseDouble(output.sumOfSquares),
334
+ count: (0, smithy_client_1.expectLong)(output.count),
335
+ max: (0, smithy_client_1.expectString)(output.max),
336
+ mean: (0, smithy_client_1.expectString)(output.mean),
337
+ min: (0, smithy_client_1.expectString)(output.min),
338
+ missing: (0, smithy_client_1.expectLong)(output.missing),
339
+ stddev: (0, smithy_client_1.limitedParseDouble)(output.stddev),
340
+ sum: (0, smithy_client_1.limitedParseDouble)(output.sum),
341
+ sumOfSquares: (0, smithy_client_1.limitedParseDouble)(output.sumOfSquares),
342
342
  };
343
343
  };
344
344
  const deserializeAws_restJson1FieldValue = (output, context) => {
@@ -348,7 +348,7 @@ const deserializeAws_restJson1FieldValue = (output, context) => {
348
348
  if (entry === null) {
349
349
  return null;
350
350
  }
351
- return smithy_client_1.expectString(entry);
351
+ return (0, smithy_client_1.expectString)(entry);
352
352
  });
353
353
  return retVal;
354
354
  };
@@ -359,7 +359,7 @@ const deserializeAws_restJson1Highlights = (output, context) => {
359
359
  }
360
360
  return {
361
361
  ...acc,
362
- [key]: smithy_client_1.expectString(value),
362
+ [key]: (0, smithy_client_1.expectString)(value),
363
363
  };
364
364
  }, {});
365
365
  };
@@ -374,7 +374,7 @@ const deserializeAws_restJson1Hit = (output, context) => {
374
374
  highlights: output.highlights !== undefined && output.highlights !== null
375
375
  ? deserializeAws_restJson1Highlights(output.highlights, context)
376
376
  : undefined,
377
- id: smithy_client_1.expectString(output.id),
377
+ id: (0, smithy_client_1.expectString)(output.id),
378
378
  };
379
379
  };
380
380
  const deserializeAws_restJson1HitList = (output, context) => {
@@ -390,18 +390,18 @@ const deserializeAws_restJson1HitList = (output, context) => {
390
390
  };
391
391
  const deserializeAws_restJson1Hits = (output, context) => {
392
392
  return {
393
- cursor: smithy_client_1.expectString(output.cursor),
394
- found: smithy_client_1.expectLong(output.found),
393
+ cursor: (0, smithy_client_1.expectString)(output.cursor),
394
+ found: (0, smithy_client_1.expectLong)(output.found),
395
395
  hit: output.hit !== undefined && output.hit !== null
396
396
  ? deserializeAws_restJson1HitList(output.hit, context)
397
397
  : undefined,
398
- start: smithy_client_1.expectLong(output.start),
398
+ start: (0, smithy_client_1.expectLong)(output.start),
399
399
  };
400
400
  };
401
401
  const deserializeAws_restJson1SearchStatus = (output, context) => {
402
402
  return {
403
- rid: smithy_client_1.expectString(output.rid),
404
- timems: smithy_client_1.expectLong(output.timems),
403
+ rid: (0, smithy_client_1.expectString)(output.rid),
404
+ timems: (0, smithy_client_1.expectLong)(output.timems),
405
405
  };
406
406
  };
407
407
  const deserializeAws_restJson1Stats = (output, context) => {
@@ -417,9 +417,9 @@ const deserializeAws_restJson1Stats = (output, context) => {
417
417
  };
418
418
  const deserializeAws_restJson1SuggestionMatch = (output, context) => {
419
419
  return {
420
- id: smithy_client_1.expectString(output.id),
421
- score: smithy_client_1.expectLong(output.score),
422
- suggestion: smithy_client_1.expectString(output.suggestion),
420
+ id: (0, smithy_client_1.expectString)(output.id),
421
+ score: (0, smithy_client_1.expectLong)(output.score),
422
+ suggestion: (0, smithy_client_1.expectString)(output.suggestion),
423
423
  };
424
424
  };
425
425
  const deserializeAws_restJson1Suggestions = (output, context) => {
@@ -435,8 +435,8 @@ const deserializeAws_restJson1Suggestions = (output, context) => {
435
435
  };
436
436
  const deserializeAws_restJson1SuggestModel = (output, context) => {
437
437
  return {
438
- found: smithy_client_1.expectLong(output.found),
439
- query: smithy_client_1.expectString(output.query),
438
+ found: (0, smithy_client_1.expectLong)(output.found),
439
+ query: (0, smithy_client_1.expectString)(output.query),
440
440
  suggestions: output.suggestions !== undefined && output.suggestions !== null
441
441
  ? deserializeAws_restJson1Suggestions(output.suggestions, context)
442
442
  : undefined,
@@ -444,8 +444,8 @@ const deserializeAws_restJson1SuggestModel = (output, context) => {
444
444
  };
445
445
  const deserializeAws_restJson1SuggestStatus = (output, context) => {
446
446
  return {
447
- rid: smithy_client_1.expectString(output.rid),
448
- timems: smithy_client_1.expectLong(output.timems),
447
+ rid: (0, smithy_client_1.expectString)(output.rid),
448
+ timems: (0, smithy_client_1.expectLong)(output.timems),
449
449
  };
450
450
  };
451
451
  const deserializeMetadata = (output) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
@@ -15,7 +15,7 @@ var CloudSearchDomain = (function (_super) {
15
15
  }
16
16
  else if (typeof cb === "function") {
17
17
  if (typeof optionsOrCb !== "object")
18
- throw new Error("Expect http options but get " + typeof optionsOrCb);
18
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
19
19
  this.send(command, optionsOrCb || {}, cb);
20
20
  }
21
21
  else {
@@ -29,7 +29,7 @@ var CloudSearchDomain = (function (_super) {
29
29
  }
30
30
  else if (typeof cb === "function") {
31
31
  if (typeof optionsOrCb !== "object")
32
- throw new Error("Expect http options but get " + typeof optionsOrCb);
32
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
33
33
  this.send(command, optionsOrCb || {}, cb);
34
34
  }
35
35
  else {
@@ -43,7 +43,7 @@ var CloudSearchDomain = (function (_super) {
43
43
  }
44
44
  else if (typeof cb === "function") {
45
45
  if (typeof optionsOrCb !== "object")
46
- throw new Error("Expect http options but get " + typeof optionsOrCb);
46
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
47
  this.send(command, optionsOrCb || {}, cb);
48
48
  }
49
49
  else {
@@ -11,7 +11,7 @@ export var serializeAws_restJson1SearchCommand = function (input, context) { ret
11
11
  case 1:
12
12
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
13
13
  headers = {};
14
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/search";
14
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/search";
15
15
  query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ format: "sdk", pretty: "true" }, (input.cursor !== undefined && { cursor: input.cursor })), (input.expr !== undefined && { expr: input.expr })), (input.facet !== undefined && { facet: input.facet })), (input.filterQuery !== undefined && { fq: input.filterQuery })), (input.highlight !== undefined && { highlight: input.highlight })), (input.partial !== undefined && { partial: input.partial.toString() })), (input.query !== undefined && { q: input.query })), (input.queryOptions !== undefined && { "q.options": input.queryOptions })), (input.queryParser !== undefined && { "q.parser": input.queryParser })), (input.return !== undefined && { return: input.return })), (input.size !== undefined && { size: input.size.toString() })), (input.sort !== undefined && { sort: input.sort })), (input.start !== undefined && { start: input.start.toString() })), (input.stats !== undefined && { stats: input.stats }));
16
16
  return [2, new __HttpRequest({
17
17
  protocol: protocol,
@@ -34,7 +34,7 @@ export var serializeAws_restJson1SuggestCommand = function (input, context) { re
34
34
  case 1:
35
35
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
36
36
  headers = {};
37
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/suggest";
37
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/suggest";
38
38
  query = __assign(__assign(__assign({ format: "sdk", pretty: "true" }, (input.query !== undefined && { q: input.query })), (input.suggester !== undefined && { suggester: input.suggester })), (input.size !== undefined && { size: input.size.toString() }));
39
39
  return [2, new __HttpRequest({
40
40
  protocol: protocol,
@@ -57,7 +57,7 @@ export var serializeAws_restJson1UploadDocumentsCommand = function (input, conte
57
57
  case 1:
58
58
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
59
59
  headers = __assign({ "content-type": "application/octet-stream" }, (isSerializableHeaderValue(input.contentType) && { "content-type": input.contentType }));
60
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/documents/batch";
60
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2013-01-01/documents/batch";
61
61
  query = {
62
62
  format: "sdk",
63
63
  };
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: CloudSearchDomainClientConfig) =
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: CloudSearchDomainClientConfig) =
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch-domain",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Domain Client for Node.js, Browser and React Native",
4
- "version": "3.54.0",
4
+ "version": "3.56.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,47 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.54.0",
22
- "@aws-sdk/config-resolver": "3.54.0",
23
- "@aws-sdk/credential-provider-node": "3.54.0",
24
- "@aws-sdk/fetch-http-handler": "3.54.0",
25
- "@aws-sdk/hash-node": "3.54.0",
26
- "@aws-sdk/invalid-dependency": "3.54.0",
27
- "@aws-sdk/middleware-content-length": "3.54.0",
28
- "@aws-sdk/middleware-host-header": "3.54.0",
29
- "@aws-sdk/middleware-logger": "3.54.0",
30
- "@aws-sdk/middleware-retry": "3.54.0",
31
- "@aws-sdk/middleware-serde": "3.54.0",
32
- "@aws-sdk/middleware-signing": "3.54.0",
33
- "@aws-sdk/middleware-stack": "3.54.0",
34
- "@aws-sdk/middleware-user-agent": "3.54.0",
35
- "@aws-sdk/node-config-provider": "3.54.0",
36
- "@aws-sdk/node-http-handler": "3.54.0",
37
- "@aws-sdk/protocol-http": "3.54.0",
38
- "@aws-sdk/smithy-client": "3.54.0",
39
- "@aws-sdk/types": "3.54.0",
40
- "@aws-sdk/url-parser": "3.54.0",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
- "@aws-sdk/util-user-agent-browser": "3.54.0",
48
- "@aws-sdk/util-user-agent-node": "3.54.0",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.56.0",
22
+ "@aws-sdk/config-resolver": "3.56.0",
23
+ "@aws-sdk/credential-provider-node": "3.56.0",
24
+ "@aws-sdk/fetch-http-handler": "3.55.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.55.0",
28
+ "@aws-sdk/middleware-host-header": "3.55.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.56.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.56.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.56.0",
36
+ "@aws-sdk/node-http-handler": "3.55.0",
37
+ "@aws-sdk/protocol-http": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.55.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.56.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.56.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"