@aws-sdk/client-textract 3.54.1 → 3.58.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.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-textract
9
+
10
+
11
+
12
+
13
+
14
+ # [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-textract
17
+
18
+
19
+
20
+
21
+
22
+ # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-textract
25
+
26
+
27
+
28
+
29
+
6
30
  ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
31
 
8
32
  **Note:** Version bump only for package @aws-sdk/client-textract
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
13
  class TextractClient 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 AnalyzeDocumentCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class AnalyzeDocumentCommand 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_json1_1_1.serializeAws_json1_1AnalyzeDocumentCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1AnalyzeDocumentCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1AnalyzeDocumentCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1AnalyzeDocumentCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.AnalyzeDocumentCommand = AnalyzeDocumentCommand;
@@ -11,7 +11,7 @@ class AnalyzeExpenseCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class AnalyzeExpenseCommand 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_json1_1_1.serializeAws_json1_1AnalyzeExpenseCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1AnalyzeExpenseCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1AnalyzeExpenseCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1AnalyzeExpenseCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.AnalyzeExpenseCommand = AnalyzeExpenseCommand;
@@ -11,7 +11,7 @@ class AnalyzeIDCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class AnalyzeIDCommand 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_json1_1_1.serializeAws_json1_1AnalyzeIDCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1AnalyzeIDCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1AnalyzeIDCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1AnalyzeIDCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.AnalyzeIDCommand = AnalyzeIDCommand;
@@ -11,7 +11,7 @@ class DetectDocumentTextCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class DetectDocumentTextCommand 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_json1_1_1.serializeAws_json1_1DetectDocumentTextCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1DetectDocumentTextCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1DetectDocumentTextCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1DetectDocumentTextCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.DetectDocumentTextCommand = DetectDocumentTextCommand;
@@ -11,7 +11,7 @@ class GetDocumentAnalysisCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class GetDocumentAnalysisCommand 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_json1_1_1.serializeAws_json1_1GetDocumentAnalysisCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1GetDocumentAnalysisCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1GetDocumentAnalysisCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1GetDocumentAnalysisCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetDocumentAnalysisCommand = GetDocumentAnalysisCommand;
@@ -11,7 +11,7 @@ class GetDocumentTextDetectionCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class GetDocumentTextDetectionCommand 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_json1_1_1.serializeAws_json1_1GetDocumentTextDetectionCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1GetDocumentTextDetectionCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1GetDocumentTextDetectionCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1GetDocumentTextDetectionCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetDocumentTextDetectionCommand = GetDocumentTextDetectionCommand;
@@ -11,7 +11,7 @@ class GetExpenseAnalysisCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class GetExpenseAnalysisCommand 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_json1_1_1.serializeAws_json1_1GetExpenseAnalysisCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1GetExpenseAnalysisCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1GetExpenseAnalysisCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1GetExpenseAnalysisCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetExpenseAnalysisCommand = GetExpenseAnalysisCommand;
@@ -11,7 +11,7 @@ class StartDocumentAnalysisCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class StartDocumentAnalysisCommand 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_json1_1_1.serializeAws_json1_1StartDocumentAnalysisCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1StartDocumentAnalysisCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1StartDocumentAnalysisCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1StartDocumentAnalysisCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.StartDocumentAnalysisCommand = StartDocumentAnalysisCommand;
@@ -11,7 +11,7 @@ class StartDocumentTextDetectionCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class StartDocumentTextDetectionCommand 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_json1_1_1.serializeAws_json1_1StartDocumentTextDetectionCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1StartDocumentTextDetectionCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1StartDocumentTextDetectionCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1StartDocumentTextDetectionCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.StartDocumentTextDetectionCommand = StartDocumentTextDetectionCommand;
@@ -11,7 +11,7 @@ class StartExpenseAnalysisCommand 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 = "TextractClient";
@@ -27,10 +27,10 @@ class StartExpenseAnalysisCommand 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_json1_1_1.serializeAws_json1_1StartExpenseAnalysisCommand(input, context);
30
+ return (0, Aws_json1_1_1.serializeAws_json1_1StartExpenseAnalysisCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_json1_1_1.deserializeAws_json1_1StartExpenseAnalysisCommand(output, context);
33
+ return (0, Aws_json1_1_1.deserializeAws_json1_1StartExpenseAnalysisCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.StartExpenseAnalysisCommand = StartExpenseAnalysisCommand;
@@ -184,7 +184,7 @@ const partitionHash = {
184
184
  ],
185
185
  },
186
186
  };
187
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
187
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
188
188
  ...options,
189
189
  signingService: "textract",
190
190
  regionHash,
@@ -165,7 +165,7 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
165
165
  $fault: "client",
166
166
  $metadata: deserializeMetadata(output),
167
167
  });
168
- throw smithy_client_1.decorateServiceException(response, parsedBody);
168
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
169
169
  }
170
170
  };
171
171
  const deserializeAws_json1_1AnalyzeExpenseCommand = async (output, context) => {
@@ -225,7 +225,7 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
225
225
  $fault: "client",
226
226
  $metadata: deserializeMetadata(output),
227
227
  });
228
- throw smithy_client_1.decorateServiceException(response, parsedBody);
228
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
229
229
  }
230
230
  };
231
231
  const deserializeAws_json1_1AnalyzeIDCommand = async (output, context) => {
@@ -285,7 +285,7 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
285
285
  $fault: "client",
286
286
  $metadata: deserializeMetadata(output),
287
287
  });
288
- throw smithy_client_1.decorateServiceException(response, parsedBody);
288
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
289
289
  }
290
290
  };
291
291
  const deserializeAws_json1_1DetectDocumentTextCommand = async (output, context) => {
@@ -345,7 +345,7 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
345
345
  $fault: "client",
346
346
  $metadata: deserializeMetadata(output),
347
347
  });
348
- throw smithy_client_1.decorateServiceException(response, parsedBody);
348
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
349
349
  }
350
350
  };
351
351
  const deserializeAws_json1_1GetDocumentAnalysisCommand = async (output, context) => {
@@ -402,7 +402,7 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
402
402
  $fault: "client",
403
403
  $metadata: deserializeMetadata(output),
404
404
  });
405
- throw smithy_client_1.decorateServiceException(response, parsedBody);
405
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
406
406
  }
407
407
  };
408
408
  const deserializeAws_json1_1GetDocumentTextDetectionCommand = async (output, context) => {
@@ -459,7 +459,7 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
459
459
  $fault: "client",
460
460
  $metadata: deserializeMetadata(output),
461
461
  });
462
- throw smithy_client_1.decorateServiceException(response, parsedBody);
462
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
463
463
  }
464
464
  };
465
465
  const deserializeAws_json1_1GetExpenseAnalysisCommand = async (output, context) => {
@@ -516,7 +516,7 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
516
516
  $fault: "client",
517
517
  $metadata: deserializeMetadata(output),
518
518
  });
519
- throw smithy_client_1.decorateServiceException(response, parsedBody);
519
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
520
520
  }
521
521
  };
522
522
  const deserializeAws_json1_1StartDocumentAnalysisCommand = async (output, context) => {
@@ -585,7 +585,7 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
585
585
  $fault: "client",
586
586
  $metadata: deserializeMetadata(output),
587
587
  });
588
- throw smithy_client_1.decorateServiceException(response, parsedBody);
588
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
589
589
  }
590
590
  };
591
591
  const deserializeAws_json1_1StartDocumentTextDetectionCommand = async (output, context) => {
@@ -654,7 +654,7 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
654
654
  $fault: "client",
655
655
  $metadata: deserializeMetadata(output),
656
656
  });
657
- throw smithy_client_1.decorateServiceException(response, parsedBody);
657
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
658
658
  }
659
659
  };
660
660
  const deserializeAws_json1_1StartExpenseAnalysisCommand = async (output, context) => {
@@ -723,7 +723,7 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
723
723
  $fault: "client",
724
724
  $metadata: deserializeMetadata(output),
725
725
  });
726
- throw smithy_client_1.decorateServiceException(response, parsedBody);
726
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
727
727
  }
728
728
  };
729
729
  const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
@@ -733,7 +733,7 @@ const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput,
733
733
  $metadata: deserializeMetadata(parsedOutput),
734
734
  ...deserialized,
735
735
  });
736
- return smithy_client_1.decorateServiceException(exception, body);
736
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
737
737
  };
738
738
  const deserializeAws_json1_1BadDocumentExceptionResponse = async (parsedOutput, context) => {
739
739
  const body = parsedOutput.body;
@@ -742,7 +742,7 @@ const deserializeAws_json1_1BadDocumentExceptionResponse = async (parsedOutput,
742
742
  $metadata: deserializeMetadata(parsedOutput),
743
743
  ...deserialized,
744
744
  });
745
- return smithy_client_1.decorateServiceException(exception, body);
745
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
746
746
  };
747
747
  const deserializeAws_json1_1DocumentTooLargeExceptionResponse = async (parsedOutput, context) => {
748
748
  const body = parsedOutput.body;
@@ -751,7 +751,7 @@ const deserializeAws_json1_1DocumentTooLargeExceptionResponse = async (parsedOut
751
751
  $metadata: deserializeMetadata(parsedOutput),
752
752
  ...deserialized,
753
753
  });
754
- return smithy_client_1.decorateServiceException(exception, body);
754
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
755
755
  };
756
756
  const deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse = async (parsedOutput, context) => {
757
757
  const body = parsedOutput.body;
@@ -760,7 +760,7 @@ const deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse = async (par
760
760
  $metadata: deserializeMetadata(parsedOutput),
761
761
  ...deserialized,
762
762
  });
763
- return smithy_client_1.decorateServiceException(exception, body);
763
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
764
764
  };
765
765
  const deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
766
766
  const body = parsedOutput.body;
@@ -769,7 +769,7 @@ const deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = async
769
769
  $metadata: deserializeMetadata(parsedOutput),
770
770
  ...deserialized,
771
771
  });
772
- return smithy_client_1.decorateServiceException(exception, body);
772
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
773
773
  };
774
774
  const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
775
775
  const body = parsedOutput.body;
@@ -778,7 +778,7 @@ const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, c
778
778
  $metadata: deserializeMetadata(parsedOutput),
779
779
  ...deserialized,
780
780
  });
781
- return smithy_client_1.decorateServiceException(exception, body);
781
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
782
782
  };
783
783
  const deserializeAws_json1_1InvalidJobIdExceptionResponse = async (parsedOutput, context) => {
784
784
  const body = parsedOutput.body;
@@ -787,7 +787,7 @@ const deserializeAws_json1_1InvalidJobIdExceptionResponse = async (parsedOutput,
787
787
  $metadata: deserializeMetadata(parsedOutput),
788
788
  ...deserialized,
789
789
  });
790
- return smithy_client_1.decorateServiceException(exception, body);
790
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
791
791
  };
792
792
  const deserializeAws_json1_1InvalidKMSKeyExceptionResponse = async (parsedOutput, context) => {
793
793
  const body = parsedOutput.body;
@@ -796,7 +796,7 @@ const deserializeAws_json1_1InvalidKMSKeyExceptionResponse = async (parsedOutput
796
796
  $metadata: deserializeMetadata(parsedOutput),
797
797
  ...deserialized,
798
798
  });
799
- return smithy_client_1.decorateServiceException(exception, body);
799
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
800
800
  };
801
801
  const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
802
802
  const body = parsedOutput.body;
@@ -805,7 +805,7 @@ const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOut
805
805
  $metadata: deserializeMetadata(parsedOutput),
806
806
  ...deserialized,
807
807
  });
808
- return smithy_client_1.decorateServiceException(exception, body);
808
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
809
809
  };
810
810
  const deserializeAws_json1_1InvalidS3ObjectExceptionResponse = async (parsedOutput, context) => {
811
811
  const body = parsedOutput.body;
@@ -814,7 +814,7 @@ const deserializeAws_json1_1InvalidS3ObjectExceptionResponse = async (parsedOutp
814
814
  $metadata: deserializeMetadata(parsedOutput),
815
815
  ...deserialized,
816
816
  });
817
- return smithy_client_1.decorateServiceException(exception, body);
817
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
818
818
  };
819
819
  const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
820
820
  const body = parsedOutput.body;
@@ -823,7 +823,7 @@ const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput
823
823
  $metadata: deserializeMetadata(parsedOutput),
824
824
  ...deserialized,
825
825
  });
826
- return smithy_client_1.decorateServiceException(exception, body);
826
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
827
827
  };
828
828
  const deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => {
829
829
  const body = parsedOutput.body;
@@ -832,7 +832,7 @@ const deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = asy
832
832
  $metadata: deserializeMetadata(parsedOutput),
833
833
  ...deserialized,
834
834
  });
835
- return smithy_client_1.decorateServiceException(exception, body);
835
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
836
836
  };
837
837
  const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
838
838
  const body = parsedOutput.body;
@@ -841,7 +841,7 @@ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, c
841
841
  $metadata: deserializeMetadata(parsedOutput),
842
842
  ...deserialized,
843
843
  });
844
- return smithy_client_1.decorateServiceException(exception, body);
844
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
845
845
  };
846
846
  const deserializeAws_json1_1UnsupportedDocumentExceptionResponse = async (parsedOutput, context) => {
847
847
  const body = parsedOutput.body;
@@ -850,7 +850,7 @@ const deserializeAws_json1_1UnsupportedDocumentExceptionResponse = async (parsed
850
850
  $metadata: deserializeMetadata(parsedOutput),
851
851
  ...deserialized,
852
852
  });
853
- return smithy_client_1.decorateServiceException(exception, body);
853
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
854
854
  };
855
855
  const serializeAws_json1_1AnalyzeDocumentRequest = (input, context) => {
856
856
  return {
@@ -1044,13 +1044,13 @@ const serializeAws_json1_1StartExpenseAnalysisRequest = (input, context) => {
1044
1044
  };
1045
1045
  const deserializeAws_json1_1AccessDeniedException = (output, context) => {
1046
1046
  return {
1047
- Code: smithy_client_1.expectString(output.Code),
1048
- Message: smithy_client_1.expectString(output.Message),
1047
+ Code: (0, smithy_client_1.expectString)(output.Code),
1048
+ Message: (0, smithy_client_1.expectString)(output.Message),
1049
1049
  };
1050
1050
  };
1051
1051
  const deserializeAws_json1_1AnalyzeDocumentResponse = (output, context) => {
1052
1052
  return {
1053
- AnalyzeDocumentModelVersion: smithy_client_1.expectString(output.AnalyzeDocumentModelVersion),
1053
+ AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
1054
1054
  Blocks: output.Blocks !== undefined && output.Blocks !== null
1055
1055
  ? deserializeAws_json1_1BlockList(output.Blocks, context)
1056
1056
  : undefined,
@@ -1074,16 +1074,16 @@ const deserializeAws_json1_1AnalyzeExpenseResponse = (output, context) => {
1074
1074
  };
1075
1075
  const deserializeAws_json1_1AnalyzeIDDetections = (output, context) => {
1076
1076
  return {
1077
- Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
1077
+ Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
1078
1078
  NormalizedValue: output.NormalizedValue !== undefined && output.NormalizedValue !== null
1079
1079
  ? deserializeAws_json1_1NormalizedValue(output.NormalizedValue, context)
1080
1080
  : undefined,
1081
- Text: smithy_client_1.expectString(output.Text),
1081
+ Text: (0, smithy_client_1.expectString)(output.Text),
1082
1082
  };
1083
1083
  };
1084
1084
  const deserializeAws_json1_1AnalyzeIDResponse = (output, context) => {
1085
1085
  return {
1086
- AnalyzeIDModelVersion: smithy_client_1.expectString(output.AnalyzeIDModelVersion),
1086
+ AnalyzeIDModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeIDModelVersion),
1087
1087
  DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
1088
1088
  ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
1089
1089
  : undefined,
@@ -1094,32 +1094,32 @@ const deserializeAws_json1_1AnalyzeIDResponse = (output, context) => {
1094
1094
  };
1095
1095
  const deserializeAws_json1_1BadDocumentException = (output, context) => {
1096
1096
  return {
1097
- Code: smithy_client_1.expectString(output.Code),
1098
- Message: smithy_client_1.expectString(output.Message),
1097
+ Code: (0, smithy_client_1.expectString)(output.Code),
1098
+ Message: (0, smithy_client_1.expectString)(output.Message),
1099
1099
  };
1100
1100
  };
1101
1101
  const deserializeAws_json1_1Block = (output, context) => {
1102
1102
  return {
1103
- BlockType: smithy_client_1.expectString(output.BlockType),
1104
- ColumnIndex: smithy_client_1.expectInt32(output.ColumnIndex),
1105
- ColumnSpan: smithy_client_1.expectInt32(output.ColumnSpan),
1106
- Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
1103
+ BlockType: (0, smithy_client_1.expectString)(output.BlockType),
1104
+ ColumnIndex: (0, smithy_client_1.expectInt32)(output.ColumnIndex),
1105
+ ColumnSpan: (0, smithy_client_1.expectInt32)(output.ColumnSpan),
1106
+ Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
1107
1107
  EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null
1108
1108
  ? deserializeAws_json1_1EntityTypes(output.EntityTypes, context)
1109
1109
  : undefined,
1110
1110
  Geometry: output.Geometry !== undefined && output.Geometry !== null
1111
1111
  ? deserializeAws_json1_1Geometry(output.Geometry, context)
1112
1112
  : undefined,
1113
- Id: smithy_client_1.expectString(output.Id),
1114
- Page: smithy_client_1.expectInt32(output.Page),
1113
+ Id: (0, smithy_client_1.expectString)(output.Id),
1114
+ Page: (0, smithy_client_1.expectInt32)(output.Page),
1115
1115
  Relationships: output.Relationships !== undefined && output.Relationships !== null
1116
1116
  ? deserializeAws_json1_1RelationshipList(output.Relationships, context)
1117
1117
  : undefined,
1118
- RowIndex: smithy_client_1.expectInt32(output.RowIndex),
1119
- RowSpan: smithy_client_1.expectInt32(output.RowSpan),
1120
- SelectionStatus: smithy_client_1.expectString(output.SelectionStatus),
1121
- Text: smithy_client_1.expectString(output.Text),
1122
- TextType: smithy_client_1.expectString(output.TextType),
1118
+ RowIndex: (0, smithy_client_1.expectInt32)(output.RowIndex),
1119
+ RowSpan: (0, smithy_client_1.expectInt32)(output.RowSpan),
1120
+ SelectionStatus: (0, smithy_client_1.expectString)(output.SelectionStatus),
1121
+ Text: (0, smithy_client_1.expectString)(output.Text),
1122
+ TextType: (0, smithy_client_1.expectString)(output.TextType),
1123
1123
  };
1124
1124
  };
1125
1125
  const deserializeAws_json1_1BlockList = (output, context) => {
@@ -1135,10 +1135,10 @@ const deserializeAws_json1_1BlockList = (output, context) => {
1135
1135
  };
1136
1136
  const deserializeAws_json1_1BoundingBox = (output, context) => {
1137
1137
  return {
1138
- Height: smithy_client_1.limitedParseFloat32(output.Height),
1139
- Left: smithy_client_1.limitedParseFloat32(output.Left),
1140
- Top: smithy_client_1.limitedParseFloat32(output.Top),
1141
- Width: smithy_client_1.limitedParseFloat32(output.Width),
1138
+ Height: (0, smithy_client_1.limitedParseFloat32)(output.Height),
1139
+ Left: (0, smithy_client_1.limitedParseFloat32)(output.Left),
1140
+ Top: (0, smithy_client_1.limitedParseFloat32)(output.Top),
1141
+ Width: (0, smithy_client_1.limitedParseFloat32)(output.Width),
1142
1142
  };
1143
1143
  };
1144
1144
  const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
@@ -1146,7 +1146,7 @@ const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
1146
1146
  Blocks: output.Blocks !== undefined && output.Blocks !== null
1147
1147
  ? deserializeAws_json1_1BlockList(output.Blocks, context)
1148
1148
  : undefined,
1149
- DetectDocumentTextModelVersion: smithy_client_1.expectString(output.DetectDocumentTextModelVersion),
1149
+ DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
1150
1150
  DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
1151
1151
  ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
1152
1152
  : undefined,
@@ -1154,13 +1154,13 @@ const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
1154
1154
  };
1155
1155
  const deserializeAws_json1_1DocumentMetadata = (output, context) => {
1156
1156
  return {
1157
- Pages: smithy_client_1.expectInt32(output.Pages),
1157
+ Pages: (0, smithy_client_1.expectInt32)(output.Pages),
1158
1158
  };
1159
1159
  };
1160
1160
  const deserializeAws_json1_1DocumentTooLargeException = (output, context) => {
1161
1161
  return {
1162
- Code: smithy_client_1.expectString(output.Code),
1163
- Message: smithy_client_1.expectString(output.Message),
1162
+ Code: (0, smithy_client_1.expectString)(output.Code),
1163
+ Message: (0, smithy_client_1.expectString)(output.Message),
1164
1164
  };
1165
1165
  };
1166
1166
  const deserializeAws_json1_1EntityTypes = (output, context) => {
@@ -1170,22 +1170,22 @@ const deserializeAws_json1_1EntityTypes = (output, context) => {
1170
1170
  if (entry === null) {
1171
1171
  return null;
1172
1172
  }
1173
- return smithy_client_1.expectString(entry);
1173
+ return (0, smithy_client_1.expectString)(entry);
1174
1174
  });
1175
1175
  return retVal;
1176
1176
  };
1177
1177
  const deserializeAws_json1_1ExpenseDetection = (output, context) => {
1178
1178
  return {
1179
- Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
1179
+ Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
1180
1180
  Geometry: output.Geometry !== undefined && output.Geometry !== null
1181
1181
  ? deserializeAws_json1_1Geometry(output.Geometry, context)
1182
1182
  : undefined,
1183
- Text: smithy_client_1.expectString(output.Text),
1183
+ Text: (0, smithy_client_1.expectString)(output.Text),
1184
1184
  };
1185
1185
  };
1186
1186
  const deserializeAws_json1_1ExpenseDocument = (output, context) => {
1187
1187
  return {
1188
- ExpenseIndex: smithy_client_1.expectInt32(output.ExpenseIndex),
1188
+ ExpenseIndex: (0, smithy_client_1.expectInt32)(output.ExpenseIndex),
1189
1189
  LineItemGroups: output.LineItemGroups !== undefined && output.LineItemGroups !== null
1190
1190
  ? deserializeAws_json1_1LineItemGroupList(output.LineItemGroups, context)
1191
1191
  : undefined,
@@ -1210,7 +1210,7 @@ const deserializeAws_json1_1ExpenseField = (output, context) => {
1210
1210
  LabelDetection: output.LabelDetection !== undefined && output.LabelDetection !== null
1211
1211
  ? deserializeAws_json1_1ExpenseDetection(output.LabelDetection, context)
1212
1212
  : undefined,
1213
- PageNumber: smithy_client_1.expectInt32(output.PageNumber),
1213
+ PageNumber: (0, smithy_client_1.expectInt32)(output.PageNumber),
1214
1214
  Type: output.Type !== undefined && output.Type !== null
1215
1215
  ? deserializeAws_json1_1ExpenseType(output.Type, context)
1216
1216
  : undefined,
@@ -1232,8 +1232,8 @@ const deserializeAws_json1_1ExpenseFieldList = (output, context) => {
1232
1232
  };
1233
1233
  const deserializeAws_json1_1ExpenseType = (output, context) => {
1234
1234
  return {
1235
- Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
1236
- Text: smithy_client_1.expectString(output.Text),
1235
+ Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
1236
+ Text: (0, smithy_client_1.expectString)(output.Text),
1237
1237
  };
1238
1238
  };
1239
1239
  const deserializeAws_json1_1Geometry = (output, context) => {
@@ -1248,16 +1248,16 @@ const deserializeAws_json1_1Geometry = (output, context) => {
1248
1248
  };
1249
1249
  const deserializeAws_json1_1GetDocumentAnalysisResponse = (output, context) => {
1250
1250
  return {
1251
- AnalyzeDocumentModelVersion: smithy_client_1.expectString(output.AnalyzeDocumentModelVersion),
1251
+ AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
1252
1252
  Blocks: output.Blocks !== undefined && output.Blocks !== null
1253
1253
  ? deserializeAws_json1_1BlockList(output.Blocks, context)
1254
1254
  : undefined,
1255
1255
  DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
1256
1256
  ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
1257
1257
  : undefined,
1258
- JobStatus: smithy_client_1.expectString(output.JobStatus),
1259
- NextToken: smithy_client_1.expectString(output.NextToken),
1260
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
1258
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1259
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1260
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
1261
1261
  Warnings: output.Warnings !== undefined && output.Warnings !== null
1262
1262
  ? deserializeAws_json1_1Warnings(output.Warnings, context)
1263
1263
  : undefined,
@@ -1268,13 +1268,13 @@ const deserializeAws_json1_1GetDocumentTextDetectionResponse = (output, context)
1268
1268
  Blocks: output.Blocks !== undefined && output.Blocks !== null
1269
1269
  ? deserializeAws_json1_1BlockList(output.Blocks, context)
1270
1270
  : undefined,
1271
- DetectDocumentTextModelVersion: smithy_client_1.expectString(output.DetectDocumentTextModelVersion),
1271
+ DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
1272
1272
  DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
1273
1273
  ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
1274
1274
  : undefined,
1275
- JobStatus: smithy_client_1.expectString(output.JobStatus),
1276
- NextToken: smithy_client_1.expectString(output.NextToken),
1277
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
1275
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1276
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1277
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
1278
1278
  Warnings: output.Warnings !== undefined && output.Warnings !== null
1279
1279
  ? deserializeAws_json1_1Warnings(output.Warnings, context)
1280
1280
  : undefined,
@@ -1282,16 +1282,16 @@ const deserializeAws_json1_1GetDocumentTextDetectionResponse = (output, context)
1282
1282
  };
1283
1283
  const deserializeAws_json1_1GetExpenseAnalysisResponse = (output, context) => {
1284
1284
  return {
1285
- AnalyzeExpenseModelVersion: smithy_client_1.expectString(output.AnalyzeExpenseModelVersion),
1285
+ AnalyzeExpenseModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeExpenseModelVersion),
1286
1286
  DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
1287
1287
  ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
1288
1288
  : undefined,
1289
1289
  ExpenseDocuments: output.ExpenseDocuments !== undefined && output.ExpenseDocuments !== null
1290
1290
  ? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
1291
1291
  : undefined,
1292
- JobStatus: smithy_client_1.expectString(output.JobStatus),
1293
- NextToken: smithy_client_1.expectString(output.NextToken),
1294
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
1292
+ JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
1293
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1294
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
1295
1295
  Warnings: output.Warnings !== undefined && output.Warnings !== null
1296
1296
  ? deserializeAws_json1_1Warnings(output.Warnings, context)
1297
1297
  : undefined,
@@ -1306,7 +1306,7 @@ const deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
1306
1306
  HumanLoopActivationReasons: output.HumanLoopActivationReasons !== undefined && output.HumanLoopActivationReasons !== null
1307
1307
  ? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
1308
1308
  : undefined,
1309
- HumanLoopArn: smithy_client_1.expectString(output.HumanLoopArn),
1309
+ HumanLoopArn: (0, smithy_client_1.expectString)(output.HumanLoopArn),
1310
1310
  };
1311
1311
  };
1312
1312
  const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
@@ -1316,28 +1316,28 @@ const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
1316
1316
  if (entry === null) {
1317
1317
  return null;
1318
1318
  }
1319
- return smithy_client_1.expectString(entry);
1319
+ return (0, smithy_client_1.expectString)(entry);
1320
1320
  });
1321
1321
  return retVal;
1322
1322
  };
1323
1323
  const deserializeAws_json1_1HumanLoopQuotaExceededException = (output, context) => {
1324
1324
  return {
1325
- Code: smithy_client_1.expectString(output.Code),
1326
- Message: smithy_client_1.expectString(output.Message),
1327
- QuotaCode: smithy_client_1.expectString(output.QuotaCode),
1328
- ResourceType: smithy_client_1.expectString(output.ResourceType),
1329
- ServiceCode: smithy_client_1.expectString(output.ServiceCode),
1325
+ Code: (0, smithy_client_1.expectString)(output.Code),
1326
+ Message: (0, smithy_client_1.expectString)(output.Message),
1327
+ QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
1328
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
1329
+ ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
1330
1330
  };
1331
1331
  };
1332
1332
  const deserializeAws_json1_1IdempotentParameterMismatchException = (output, context) => {
1333
1333
  return {
1334
- Code: smithy_client_1.expectString(output.Code),
1335
- Message: smithy_client_1.expectString(output.Message),
1334
+ Code: (0, smithy_client_1.expectString)(output.Code),
1335
+ Message: (0, smithy_client_1.expectString)(output.Message),
1336
1336
  };
1337
1337
  };
1338
1338
  const deserializeAws_json1_1IdentityDocument = (output, context) => {
1339
1339
  return {
1340
- DocumentIndex: smithy_client_1.expectInt32(output.DocumentIndex),
1340
+ DocumentIndex: (0, smithy_client_1.expectInt32)(output.DocumentIndex),
1341
1341
  IdentityDocumentFields: output.IdentityDocumentFields !== undefined && output.IdentityDocumentFields !== null
1342
1342
  ? deserializeAws_json1_1IdentityDocumentFieldList(output.IdentityDocumentFields, context)
1343
1343
  : undefined,
@@ -1382,44 +1382,44 @@ const deserializeAws_json1_1IdList = (output, context) => {
1382
1382
  if (entry === null) {
1383
1383
  return null;
1384
1384
  }
1385
- return smithy_client_1.expectString(entry);
1385
+ return (0, smithy_client_1.expectString)(entry);
1386
1386
  });
1387
1387
  return retVal;
1388
1388
  };
1389
1389
  const deserializeAws_json1_1InternalServerError = (output, context) => {
1390
1390
  return {
1391
- Code: smithy_client_1.expectString(output.Code),
1392
- Message: smithy_client_1.expectString(output.Message),
1391
+ Code: (0, smithy_client_1.expectString)(output.Code),
1392
+ Message: (0, smithy_client_1.expectString)(output.Message),
1393
1393
  };
1394
1394
  };
1395
1395
  const deserializeAws_json1_1InvalidJobIdException = (output, context) => {
1396
1396
  return {
1397
- Code: smithy_client_1.expectString(output.Code),
1398
- Message: smithy_client_1.expectString(output.Message),
1397
+ Code: (0, smithy_client_1.expectString)(output.Code),
1398
+ Message: (0, smithy_client_1.expectString)(output.Message),
1399
1399
  };
1400
1400
  };
1401
1401
  const deserializeAws_json1_1InvalidKMSKeyException = (output, context) => {
1402
1402
  return {
1403
- Code: smithy_client_1.expectString(output.Code),
1404
- Message: smithy_client_1.expectString(output.Message),
1403
+ Code: (0, smithy_client_1.expectString)(output.Code),
1404
+ Message: (0, smithy_client_1.expectString)(output.Message),
1405
1405
  };
1406
1406
  };
1407
1407
  const deserializeAws_json1_1InvalidParameterException = (output, context) => {
1408
1408
  return {
1409
- Code: smithy_client_1.expectString(output.Code),
1410
- Message: smithy_client_1.expectString(output.Message),
1409
+ Code: (0, smithy_client_1.expectString)(output.Code),
1410
+ Message: (0, smithy_client_1.expectString)(output.Message),
1411
1411
  };
1412
1412
  };
1413
1413
  const deserializeAws_json1_1InvalidS3ObjectException = (output, context) => {
1414
1414
  return {
1415
- Code: smithy_client_1.expectString(output.Code),
1416
- Message: smithy_client_1.expectString(output.Message),
1415
+ Code: (0, smithy_client_1.expectString)(output.Code),
1416
+ Message: (0, smithy_client_1.expectString)(output.Message),
1417
1417
  };
1418
1418
  };
1419
1419
  const deserializeAws_json1_1LimitExceededException = (output, context) => {
1420
1420
  return {
1421
- Code: smithy_client_1.expectString(output.Code),
1422
- Message: smithy_client_1.expectString(output.Message),
1421
+ Code: (0, smithy_client_1.expectString)(output.Code),
1422
+ Message: (0, smithy_client_1.expectString)(output.Message),
1423
1423
  };
1424
1424
  };
1425
1425
  const deserializeAws_json1_1LineItemFields = (output, context) => {
@@ -1431,7 +1431,7 @@ const deserializeAws_json1_1LineItemFields = (output, context) => {
1431
1431
  };
1432
1432
  const deserializeAws_json1_1LineItemGroup = (output, context) => {
1433
1433
  return {
1434
- LineItemGroupIndex: smithy_client_1.expectInt32(output.LineItemGroupIndex),
1434
+ LineItemGroupIndex: (0, smithy_client_1.expectInt32)(output.LineItemGroupIndex),
1435
1435
  LineItems: output.LineItems !== undefined && output.LineItems !== null
1436
1436
  ? deserializeAws_json1_1LineItemList(output.LineItems, context)
1437
1437
  : undefined,
@@ -1461,8 +1461,8 @@ const deserializeAws_json1_1LineItemList = (output, context) => {
1461
1461
  };
1462
1462
  const deserializeAws_json1_1NormalizedValue = (output, context) => {
1463
1463
  return {
1464
- Value: smithy_client_1.expectString(output.Value),
1465
- ValueType: smithy_client_1.expectString(output.ValueType),
1464
+ Value: (0, smithy_client_1.expectString)(output.Value),
1465
+ ValueType: (0, smithy_client_1.expectString)(output.ValueType),
1466
1466
  };
1467
1467
  };
1468
1468
  const deserializeAws_json1_1Pages = (output, context) => {
@@ -1472,14 +1472,14 @@ const deserializeAws_json1_1Pages = (output, context) => {
1472
1472
  if (entry === null) {
1473
1473
  return null;
1474
1474
  }
1475
- return smithy_client_1.expectInt32(entry);
1475
+ return (0, smithy_client_1.expectInt32)(entry);
1476
1476
  });
1477
1477
  return retVal;
1478
1478
  };
1479
1479
  const deserializeAws_json1_1Point = (output, context) => {
1480
1480
  return {
1481
- X: smithy_client_1.limitedParseFloat32(output.X),
1482
- Y: smithy_client_1.limitedParseFloat32(output.Y),
1481
+ X: (0, smithy_client_1.limitedParseFloat32)(output.X),
1482
+ Y: (0, smithy_client_1.limitedParseFloat32)(output.Y),
1483
1483
  };
1484
1484
  };
1485
1485
  const deserializeAws_json1_1Polygon = (output, context) => {
@@ -1495,14 +1495,14 @@ const deserializeAws_json1_1Polygon = (output, context) => {
1495
1495
  };
1496
1496
  const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, context) => {
1497
1497
  return {
1498
- Code: smithy_client_1.expectString(output.Code),
1499
- Message: smithy_client_1.expectString(output.Message),
1498
+ Code: (0, smithy_client_1.expectString)(output.Code),
1499
+ Message: (0, smithy_client_1.expectString)(output.Message),
1500
1500
  };
1501
1501
  };
1502
1502
  const deserializeAws_json1_1Relationship = (output, context) => {
1503
1503
  return {
1504
1504
  Ids: output.Ids !== undefined && output.Ids !== null ? deserializeAws_json1_1IdList(output.Ids, context) : undefined,
1505
- Type: smithy_client_1.expectString(output.Type),
1505
+ Type: (0, smithy_client_1.expectString)(output.Type),
1506
1506
  };
1507
1507
  };
1508
1508
  const deserializeAws_json1_1RelationshipList = (output, context) => {
@@ -1518,34 +1518,34 @@ const deserializeAws_json1_1RelationshipList = (output, context) => {
1518
1518
  };
1519
1519
  const deserializeAws_json1_1StartDocumentAnalysisResponse = (output, context) => {
1520
1520
  return {
1521
- JobId: smithy_client_1.expectString(output.JobId),
1521
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
1522
1522
  };
1523
1523
  };
1524
1524
  const deserializeAws_json1_1StartDocumentTextDetectionResponse = (output, context) => {
1525
1525
  return {
1526
- JobId: smithy_client_1.expectString(output.JobId),
1526
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
1527
1527
  };
1528
1528
  };
1529
1529
  const deserializeAws_json1_1StartExpenseAnalysisResponse = (output, context) => {
1530
1530
  return {
1531
- JobId: smithy_client_1.expectString(output.JobId),
1531
+ JobId: (0, smithy_client_1.expectString)(output.JobId),
1532
1532
  };
1533
1533
  };
1534
1534
  const deserializeAws_json1_1ThrottlingException = (output, context) => {
1535
1535
  return {
1536
- Code: smithy_client_1.expectString(output.Code),
1537
- Message: smithy_client_1.expectString(output.Message),
1536
+ Code: (0, smithy_client_1.expectString)(output.Code),
1537
+ Message: (0, smithy_client_1.expectString)(output.Message),
1538
1538
  };
1539
1539
  };
1540
1540
  const deserializeAws_json1_1UnsupportedDocumentException = (output, context) => {
1541
1541
  return {
1542
- Code: smithy_client_1.expectString(output.Code),
1543
- Message: smithy_client_1.expectString(output.Message),
1542
+ Code: (0, smithy_client_1.expectString)(output.Code),
1543
+ Message: (0, smithy_client_1.expectString)(output.Message),
1544
1544
  };
1545
1545
  };
1546
1546
  const deserializeAws_json1_1Warning = (output, context) => {
1547
1547
  return {
1548
- ErrorCode: smithy_client_1.expectString(output.ErrorCode),
1548
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
1549
1549
  Pages: output.Pages !== undefined && output.Pages !== null
1550
1550
  ? deserializeAws_json1_1Pages(output.Pages, context)
1551
1551
  : undefined,
@@ -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,
@@ -22,7 +22,7 @@ var Textract = (function (_super) {
22
22
  }
23
23
  else if (typeof cb === "function") {
24
24
  if (typeof optionsOrCb !== "object")
25
- throw new Error("Expect http options but get " + typeof optionsOrCb);
25
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
26
  this.send(command, optionsOrCb || {}, cb);
27
27
  }
28
28
  else {
@@ -36,7 +36,7 @@ var Textract = (function (_super) {
36
36
  }
37
37
  else if (typeof cb === "function") {
38
38
  if (typeof optionsOrCb !== "object")
39
- throw new Error("Expect http options but get " + typeof optionsOrCb);
39
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
40
40
  this.send(command, optionsOrCb || {}, cb);
41
41
  }
42
42
  else {
@@ -50,7 +50,7 @@ var Textract = (function (_super) {
50
50
  }
51
51
  else if (typeof cb === "function") {
52
52
  if (typeof optionsOrCb !== "object")
53
- throw new Error("Expect http options but get " + typeof optionsOrCb);
53
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
54
54
  this.send(command, optionsOrCb || {}, cb);
55
55
  }
56
56
  else {
@@ -64,7 +64,7 @@ var Textract = (function (_super) {
64
64
  }
65
65
  else if (typeof cb === "function") {
66
66
  if (typeof optionsOrCb !== "object")
67
- throw new Error("Expect http options but get " + typeof optionsOrCb);
67
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
68
68
  this.send(command, optionsOrCb || {}, cb);
69
69
  }
70
70
  else {
@@ -78,7 +78,7 @@ var Textract = (function (_super) {
78
78
  }
79
79
  else if (typeof cb === "function") {
80
80
  if (typeof optionsOrCb !== "object")
81
- throw new Error("Expect http options but get " + typeof optionsOrCb);
81
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
82
82
  this.send(command, optionsOrCb || {}, cb);
83
83
  }
84
84
  else {
@@ -92,7 +92,7 @@ var Textract = (function (_super) {
92
92
  }
93
93
  else if (typeof cb === "function") {
94
94
  if (typeof optionsOrCb !== "object")
95
- throw new Error("Expect http options but get " + typeof optionsOrCb);
95
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
96
96
  this.send(command, optionsOrCb || {}, cb);
97
97
  }
98
98
  else {
@@ -106,7 +106,7 @@ var Textract = (function (_super) {
106
106
  }
107
107
  else if (typeof cb === "function") {
108
108
  if (typeof optionsOrCb !== "object")
109
- throw new Error("Expect http options but get " + typeof optionsOrCb);
109
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
110
110
  this.send(command, optionsOrCb || {}, cb);
111
111
  }
112
112
  else {
@@ -120,7 +120,7 @@ var Textract = (function (_super) {
120
120
  }
121
121
  else if (typeof cb === "function") {
122
122
  if (typeof optionsOrCb !== "object")
123
- throw new Error("Expect http options but get " + typeof optionsOrCb);
123
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
124
124
  this.send(command, optionsOrCb || {}, cb);
125
125
  }
126
126
  else {
@@ -134,7 +134,7 @@ var Textract = (function (_super) {
134
134
  }
135
135
  else if (typeof cb === "function") {
136
136
  if (typeof optionsOrCb !== "object")
137
- throw new Error("Expect http options but get " + typeof optionsOrCb);
137
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
138
138
  this.send(command, optionsOrCb || {}, cb);
139
139
  }
140
140
  else {
@@ -148,7 +148,7 @@ var Textract = (function (_super) {
148
148
  }
149
149
  else if (typeof cb === "function") {
150
150
  if (typeof optionsOrCb !== "object")
151
- throw new Error("Expect http options but get " + typeof optionsOrCb);
151
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
152
152
  this.send(command, optionsOrCb || {}, cb);
153
153
  }
154
154
  else {
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
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: TextractClientConfig) => {
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-textract",
3
3
  "description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
4
- "version": "3.54.1",
4
+ "version": "3.58.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.1",
22
- "@aws-sdk/config-resolver": "3.54.1",
23
- "@aws-sdk/credential-provider-node": "3.54.1",
24
- "@aws-sdk/fetch-http-handler": "3.54.1",
25
- "@aws-sdk/hash-node": "3.54.1",
26
- "@aws-sdk/invalid-dependency": "3.54.1",
27
- "@aws-sdk/middleware-content-length": "3.54.1",
28
- "@aws-sdk/middleware-host-header": "3.54.1",
29
- "@aws-sdk/middleware-logger": "3.54.1",
30
- "@aws-sdk/middleware-retry": "3.54.1",
31
- "@aws-sdk/middleware-serde": "3.54.1",
32
- "@aws-sdk/middleware-signing": "3.54.1",
33
- "@aws-sdk/middleware-stack": "3.54.1",
34
- "@aws-sdk/middleware-user-agent": "3.54.1",
35
- "@aws-sdk/node-config-provider": "3.54.1",
36
- "@aws-sdk/node-http-handler": "3.54.1",
37
- "@aws-sdk/protocol-http": "3.54.1",
38
- "@aws-sdk/smithy-client": "3.54.1",
39
- "@aws-sdk/types": "3.54.1",
40
- "@aws-sdk/url-parser": "3.54.1",
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.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
- "@aws-sdk/util-user-agent-browser": "3.54.1",
48
- "@aws-sdk/util-user-agent-node": "3.54.1",
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.58.0",
22
+ "@aws-sdk/config-resolver": "3.58.0",
23
+ "@aws-sdk/credential-provider-node": "3.58.0",
24
+ "@aws-sdk/fetch-http-handler": "3.58.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.58.0",
28
+ "@aws-sdk/middleware-host-header": "3.58.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.58.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.58.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.58.0",
35
+ "@aws-sdk/node-config-provider": "3.58.0",
36
+ "@aws-sdk/node-http-handler": "3.58.0",
37
+ "@aws-sdk/protocol-http": "3.58.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.58.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.58.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.58.0",
48
+ "@aws-sdk/util-user-agent-node": "3.58.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.58.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"