@aws-sdk/client-textract 3.33.0 → 3.36.1

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.
Files changed (155) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Textract.js +1 -7
  3. package/{dist/cjs → dist-cjs}/TextractClient.js +8 -19
  4. package/dist-cjs/commands/AnalyzeDocumentCommand.js +36 -0
  5. package/dist-cjs/commands/AnalyzeExpenseCommand.js +36 -0
  6. package/dist-cjs/commands/DetectDocumentTextCommand.js +36 -0
  7. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +36 -0
  8. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +36 -0
  9. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +36 -0
  10. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +36 -0
  11. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  12. package/{dist/cjs → dist-cjs}/index.js +0 -1
  13. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  14. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -148
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  20. package/{dist/es → dist-es}/Textract.js +2 -8
  21. package/{dist/es → dist-es}/TextractClient.js +2 -13
  22. package/dist-es/commands/AnalyzeDocumentCommand.js +39 -0
  23. package/{dist/es → dist-es}/commands/AnalyzeExpenseCommand.js +4 -43
  24. package/dist-es/commands/DetectDocumentTextCommand.js +39 -0
  25. package/dist-es/commands/GetDocumentAnalysisCommand.js +39 -0
  26. package/dist-es/commands/GetDocumentTextDetectionCommand.js +39 -0
  27. package/dist-es/commands/StartDocumentAnalysisCommand.js +39 -0
  28. package/dist-es/commands/StartDocumentTextDetectionCommand.js +39 -0
  29. package/{dist/es → dist-es}/endpoints.js +1 -2
  30. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  31. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  32. package/{dist/es → dist-es}/models/models_0.js +0 -148
  33. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +338 -344
  34. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  35. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  36. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  37. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  38. package/{dist/types → dist-types}/Textract.d.ts +2 -2
  39. package/{dist/types → dist-types}/TextractClient.d.ts +8 -8
  40. package/{dist/types → dist-types}/commands/AnalyzeDocumentCommand.d.ts +3 -3
  41. package/{dist/types → dist-types}/commands/AnalyzeExpenseCommand.d.ts +3 -3
  42. package/{dist/types → dist-types}/commands/DetectDocumentTextCommand.d.ts +3 -3
  43. package/{dist/types → dist-types}/commands/GetDocumentAnalysisCommand.d.ts +3 -3
  44. package/{dist/types → dist-types}/commands/GetDocumentTextDetectionCommand.d.ts +3 -3
  45. package/{dist/types → dist-types}/commands/StartDocumentAnalysisCommand.d.ts +3 -3
  46. package/{dist/types → dist-types}/commands/StartDocumentTextDetectionCommand.d.ts +3 -3
  47. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  48. package/{index.ts → dist-types/index.d.ts} +0 -0
  49. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  50. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  51. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  52. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  53. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  54. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  55. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  56. package/dist-types/ts3.4/Textract.d.ts +40 -0
  57. package/{dist/types → dist-types}/ts3.4/TextractClient.d.ts +32 -99
  58. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +17 -0
  65. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  66. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  67. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +649 -0
  69. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  70. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  74. package/package.json +52 -49
  75. package/Textract.ts +0 -422
  76. package/TextractClient.ts +0 -270
  77. package/commands/AnalyzeDocumentCommand.ts +0 -124
  78. package/commands/AnalyzeExpenseCommand.ts +0 -107
  79. package/commands/DetectDocumentTextCommand.ts +0 -104
  80. package/commands/GetDocumentAnalysisCommand.ts +0 -138
  81. package/commands/GetDocumentTextDetectionCommand.ts +0 -118
  82. package/commands/StartDocumentAnalysisCommand.ts +0 -111
  83. package/commands/StartDocumentTextDetectionCommand.ts +0 -113
  84. package/dist/cjs/Textract.js.map +0 -1
  85. package/dist/cjs/TextractClient.js.map +0 -1
  86. package/dist/cjs/commands/AnalyzeDocumentCommand.js +0 -91
  87. package/dist/cjs/commands/AnalyzeDocumentCommand.js.map +0 -1
  88. package/dist/cjs/commands/AnalyzeExpenseCommand.js +0 -74
  89. package/dist/cjs/commands/AnalyzeExpenseCommand.js.map +0 -1
  90. package/dist/cjs/commands/DetectDocumentTextCommand.js +0 -71
  91. package/dist/cjs/commands/DetectDocumentTextCommand.js.map +0 -1
  92. package/dist/cjs/commands/GetDocumentAnalysisCommand.js +0 -105
  93. package/dist/cjs/commands/GetDocumentAnalysisCommand.js.map +0 -1
  94. package/dist/cjs/commands/GetDocumentTextDetectionCommand.js +0 -85
  95. package/dist/cjs/commands/GetDocumentTextDetectionCommand.js.map +0 -1
  96. package/dist/cjs/commands/StartDocumentAnalysisCommand.js +0 -78
  97. package/dist/cjs/commands/StartDocumentAnalysisCommand.js.map +0 -1
  98. package/dist/cjs/commands/StartDocumentTextDetectionCommand.js +0 -77
  99. package/dist/cjs/commands/StartDocumentTextDetectionCommand.js.map +0 -1
  100. package/dist/cjs/endpoints.js.map +0 -1
  101. package/dist/cjs/index.js.map +0 -1
  102. package/dist/cjs/models/index.js.map +0 -1
  103. package/dist/cjs/models/models_0.js.map +0 -1
  104. package/dist/cjs/package.json +0 -91
  105. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  106. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  107. package/dist/cjs/runtimeConfig.js.map +0 -1
  108. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  109. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  110. package/dist/es/Textract.js.map +0 -1
  111. package/dist/es/TextractClient.js.map +0 -1
  112. package/dist/es/commands/AnalyzeDocumentCommand.js +0 -95
  113. package/dist/es/commands/AnalyzeDocumentCommand.js.map +0 -1
  114. package/dist/es/commands/AnalyzeExpenseCommand.js.map +0 -1
  115. package/dist/es/commands/DetectDocumentTextCommand.js +0 -75
  116. package/dist/es/commands/DetectDocumentTextCommand.js.map +0 -1
  117. package/dist/es/commands/GetDocumentAnalysisCommand.js +0 -109
  118. package/dist/es/commands/GetDocumentAnalysisCommand.js.map +0 -1
  119. package/dist/es/commands/GetDocumentTextDetectionCommand.js +0 -89
  120. package/dist/es/commands/GetDocumentTextDetectionCommand.js.map +0 -1
  121. package/dist/es/commands/StartDocumentAnalysisCommand.js +0 -82
  122. package/dist/es/commands/StartDocumentAnalysisCommand.js.map +0 -1
  123. package/dist/es/commands/StartDocumentTextDetectionCommand.js +0 -81
  124. package/dist/es/commands/StartDocumentTextDetectionCommand.js.map +0 -1
  125. package/dist/es/endpoints.js.map +0 -1
  126. package/dist/es/index.js +0 -11
  127. package/dist/es/index.js.map +0 -1
  128. package/dist/es/models/index.js +0 -2
  129. package/dist/es/models/index.js.map +0 -1
  130. package/dist/es/models/models_0.js.map +0 -1
  131. package/dist/es/package.json +0 -91
  132. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  133. package/dist/es/runtimeConfig.browser.js.map +0 -1
  134. package/dist/es/runtimeConfig.js.map +0 -1
  135. package/dist/es/runtimeConfig.native.js.map +0 -1
  136. package/dist/es/runtimeConfig.shared.js.map +0 -1
  137. package/dist/types/ts3.4/Textract.d.ts +0 -212
  138. package/dist/types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +0 -65
  139. package/dist/types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +0 -48
  140. package/dist/types/ts3.4/commands/DetectDocumentTextCommand.d.ts +0 -45
  141. package/dist/types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +0 -79
  142. package/dist/types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +0 -59
  143. package/dist/types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +0 -52
  144. package/dist/types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +0 -51
  145. package/dist/types/ts3.4/models/models_0.d.ts +0 -1347
  146. package/endpoints.ts +0 -57
  147. package/jest.config.js +0 -4
  148. package/models/models_0.ts +0 -1627
  149. package/protocols/Aws_json1_1.ts +0 -2060
  150. package/runtimeConfig.browser.ts +0 -40
  151. package/runtimeConfig.native.ts +0 -16
  152. package/runtimeConfig.shared.ts +0 -16
  153. package/runtimeConfig.ts +0 -45
  154. package/tsconfig.es.json +0 -12
  155. package/tsconfig.json +0 -32
@@ -1,53 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { AnalyzeExpenseRequest, AnalyzeExpenseResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1AnalyzeExpenseCommand, serializeAws_json1_1AnalyzeExpenseCommand, } from "../protocols/Aws_json1_1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Analyzes an input document for financially related relationships between text.</p>
8
- * <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
9
- * <ul>
10
- * <li>
11
- * <p>
12
- * <code>LineItemGroups</code>- A data set containing <code>LineItems</code> which
13
- * store information about the lines of text, such as an item purchased and its price on a receipt.</p>
14
- * </li>
15
- * <li>
16
- * <p>
17
- * <code>SummaryFields</code>- Contains all other information a receipt, such as header information
18
- * or the vendors name.</p>
19
- * </li>
20
- * </ul>
21
- * @example
22
- * Use a bare-bones client and the command you need to make an API call.
23
- * ```javascript
24
- * import { TextractClient, AnalyzeExpenseCommand } from "@aws-sdk/client-textract"; // ES Modules import
25
- * // const { TextractClient, AnalyzeExpenseCommand } = require("@aws-sdk/client-textract"); // CommonJS import
26
- * const client = new TextractClient(config);
27
- * const command = new AnalyzeExpenseCommand(input);
28
- * const response = await client.send(command);
29
- * ```
30
- *
31
- * @see {@link AnalyzeExpenseCommandInput} for command's `input` shape.
32
- * @see {@link AnalyzeExpenseCommandOutput} for command's `response` shape.
33
- * @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
34
- *
35
- */
36
- var AnalyzeExpenseCommand = /** @class */ (function (_super) {
4
+ import { AnalyzeExpenseRequest, AnalyzeExpenseResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1AnalyzeExpenseCommand, serializeAws_json1_1AnalyzeExpenseCommand, } from "../protocols/Aws_json1_1";
6
+ var AnalyzeExpenseCommand = (function (_super) {
37
7
  __extends(AnalyzeExpenseCommand, _super);
38
- // Start section: command_properties
39
- // End section: command_properties
40
8
  function AnalyzeExpenseCommand(input) {
41
- var _this =
42
- // Start section: command_constructor
43
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
44
10
  _this.input = input;
45
11
  return _this;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  AnalyzeExpenseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
52
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
53
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -75,4 +37,3 @@ var AnalyzeExpenseCommand = /** @class */ (function (_super) {
75
37
  return AnalyzeExpenseCommand;
76
38
  }($Command));
77
39
  export { AnalyzeExpenseCommand };
78
- //# sourceMappingURL=AnalyzeExpenseCommand.js.map
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DetectDocumentTextRequest, DetectDocumentTextResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DetectDocumentTextCommand, serializeAws_json1_1DetectDocumentTextCommand, } from "../protocols/Aws_json1_1";
6
+ var DetectDocumentTextCommand = (function (_super) {
7
+ __extends(DetectDocumentTextCommand, _super);
8
+ function DetectDocumentTextCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DetectDocumentTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TextractClient";
18
+ var commandName = "DetectDocumentTextCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DetectDocumentTextRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DetectDocumentTextResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DetectDocumentTextCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DetectDocumentTextCommand(input, context);
33
+ };
34
+ DetectDocumentTextCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DetectDocumentTextCommand(output, context);
36
+ };
37
+ return DetectDocumentTextCommand;
38
+ }($Command));
39
+ export { DetectDocumentTextCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetDocumentAnalysisRequest, GetDocumentAnalysisResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1GetDocumentAnalysisCommand, serializeAws_json1_1GetDocumentAnalysisCommand, } from "../protocols/Aws_json1_1";
6
+ var GetDocumentAnalysisCommand = (function (_super) {
7
+ __extends(GetDocumentAnalysisCommand, _super);
8
+ function GetDocumentAnalysisCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetDocumentAnalysisCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TextractClient";
18
+ var commandName = "GetDocumentAnalysisCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetDocumentAnalysisRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetDocumentAnalysisResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetDocumentAnalysisCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1GetDocumentAnalysisCommand(input, context);
33
+ };
34
+ GetDocumentAnalysisCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1GetDocumentAnalysisCommand(output, context);
36
+ };
37
+ return GetDocumentAnalysisCommand;
38
+ }($Command));
39
+ export { GetDocumentAnalysisCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetDocumentTextDetectionRequest, GetDocumentTextDetectionResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1GetDocumentTextDetectionCommand, serializeAws_json1_1GetDocumentTextDetectionCommand, } from "../protocols/Aws_json1_1";
6
+ var GetDocumentTextDetectionCommand = (function (_super) {
7
+ __extends(GetDocumentTextDetectionCommand, _super);
8
+ function GetDocumentTextDetectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetDocumentTextDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TextractClient";
18
+ var commandName = "GetDocumentTextDetectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetDocumentTextDetectionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetDocumentTextDetectionResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetDocumentTextDetectionCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1GetDocumentTextDetectionCommand(input, context);
33
+ };
34
+ GetDocumentTextDetectionCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1GetDocumentTextDetectionCommand(output, context);
36
+ };
37
+ return GetDocumentTextDetectionCommand;
38
+ }($Command));
39
+ export { GetDocumentTextDetectionCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StartDocumentAnalysisRequest, StartDocumentAnalysisResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1StartDocumentAnalysisCommand, serializeAws_json1_1StartDocumentAnalysisCommand, } from "../protocols/Aws_json1_1";
6
+ var StartDocumentAnalysisCommand = (function (_super) {
7
+ __extends(StartDocumentAnalysisCommand, _super);
8
+ function StartDocumentAnalysisCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ StartDocumentAnalysisCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TextractClient";
18
+ var commandName = "StartDocumentAnalysisCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: StartDocumentAnalysisRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: StartDocumentAnalysisResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartDocumentAnalysisCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1StartDocumentAnalysisCommand(input, context);
33
+ };
34
+ StartDocumentAnalysisCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1StartDocumentAnalysisCommand(output, context);
36
+ };
37
+ return StartDocumentAnalysisCommand;
38
+ }($Command));
39
+ export { StartDocumentAnalysisCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StartDocumentTextDetectionRequest, StartDocumentTextDetectionResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1StartDocumentTextDetectionCommand, serializeAws_json1_1StartDocumentTextDetectionCommand, } from "../protocols/Aws_json1_1";
6
+ var StartDocumentTextDetectionCommand = (function (_super) {
7
+ __extends(StartDocumentTextDetectionCommand, _super);
8
+ function StartDocumentTextDetectionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ StartDocumentTextDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TextractClient";
18
+ var commandName = "StartDocumentTextDetectionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: StartDocumentTextDetectionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: StartDocumentTextDetectionResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartDocumentTextDetectionCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1StartDocumentTextDetectionCommand(input, context);
33
+ };
34
+ StartDocumentTextDetectionCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1StartDocumentTextDetectionCommand(output, context);
36
+ };
37
+ return StartDocumentTextDetectionCommand;
38
+ }($Command));
39
+ export { StartDocumentTextDetectionCommand };
@@ -47,7 +47,6 @@ var partitionHash = {
47
47
  };
48
48
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
49
49
  return __generator(this, function (_a) {
50
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "textract", regionHash: regionHash, partitionHash: partitionHash }))];
50
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "textract", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
File without changes
@@ -1,23 +1,14 @@
1
1
  import { __assign } from "tslib";
2
2
  export var AccessDeniedException;
3
3
  (function (AccessDeniedException) {
4
- /**
5
- * @internal
6
- */
7
4
  AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
8
5
  })(AccessDeniedException || (AccessDeniedException = {}));
9
6
  export var S3Object;
10
7
  (function (S3Object) {
11
- /**
12
- * @internal
13
- */
14
8
  S3Object.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
9
  })(S3Object || (S3Object = {}));
16
10
  export var Document;
17
11
  (function (Document) {
18
- /**
19
- * @internal
20
- */
21
12
  Document.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
13
  })(Document || (Document = {}));
23
14
  export var FeatureType;
@@ -32,23 +23,14 @@ export var ContentClassifier;
32
23
  })(ContentClassifier || (ContentClassifier = {}));
33
24
  export var HumanLoopDataAttributes;
34
25
  (function (HumanLoopDataAttributes) {
35
- /**
36
- * @internal
37
- */
38
26
  HumanLoopDataAttributes.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
39
27
  })(HumanLoopDataAttributes || (HumanLoopDataAttributes = {}));
40
28
  export var HumanLoopConfig;
41
29
  (function (HumanLoopConfig) {
42
- /**
43
- * @internal
44
- */
45
30
  HumanLoopConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
31
  })(HumanLoopConfig || (HumanLoopConfig = {}));
47
32
  export var AnalyzeDocumentRequest;
48
33
  (function (AnalyzeDocumentRequest) {
49
- /**
50
- * @internal
51
- */
52
34
  AnalyzeDocumentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
53
35
  })(AnalyzeDocumentRequest || (AnalyzeDocumentRequest = {}));
54
36
  export var BlockType;
@@ -68,23 +50,14 @@ export var EntityType;
68
50
  })(EntityType || (EntityType = {}));
69
51
  export var BoundingBox;
70
52
  (function (BoundingBox) {
71
- /**
72
- * @internal
73
- */
74
53
  BoundingBox.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
54
  })(BoundingBox || (BoundingBox = {}));
76
55
  export var Point;
77
56
  (function (Point) {
78
- /**
79
- * @internal
80
- */
81
57
  Point.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
58
  })(Point || (Point = {}));
83
59
  export var Geometry;
84
60
  (function (Geometry) {
85
- /**
86
- * @internal
87
- */
88
61
  Geometry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
62
  })(Geometry || (Geometry = {}));
90
63
  export var RelationshipType;
@@ -95,9 +68,6 @@ export var RelationshipType;
95
68
  })(RelationshipType || (RelationshipType = {}));
96
69
  export var Relationship;
97
70
  (function (Relationship) {
98
- /**
99
- * @internal
100
- */
101
71
  Relationship.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
72
  })(Relationship || (Relationship = {}));
103
73
  export var SelectionStatus;
@@ -112,177 +82,102 @@ export var TextType;
112
82
  })(TextType || (TextType = {}));
113
83
  export var Block;
114
84
  (function (Block) {
115
- /**
116
- * @internal
117
- */
118
85
  Block.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
86
  })(Block || (Block = {}));
120
87
  export var DocumentMetadata;
121
88
  (function (DocumentMetadata) {
122
- /**
123
- * @internal
124
- */
125
89
  DocumentMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
90
  })(DocumentMetadata || (DocumentMetadata = {}));
127
91
  export var HumanLoopActivationOutput;
128
92
  (function (HumanLoopActivationOutput) {
129
- /**
130
- * @internal
131
- */
132
93
  HumanLoopActivationOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
94
  })(HumanLoopActivationOutput || (HumanLoopActivationOutput = {}));
134
95
  export var AnalyzeDocumentResponse;
135
96
  (function (AnalyzeDocumentResponse) {
136
- /**
137
- * @internal
138
- */
139
97
  AnalyzeDocumentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
98
  })(AnalyzeDocumentResponse || (AnalyzeDocumentResponse = {}));
141
99
  export var BadDocumentException;
142
100
  (function (BadDocumentException) {
143
- /**
144
- * @internal
145
- */
146
101
  BadDocumentException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
102
  })(BadDocumentException || (BadDocumentException = {}));
148
103
  export var DocumentTooLargeException;
149
104
  (function (DocumentTooLargeException) {
150
- /**
151
- * @internal
152
- */
153
105
  DocumentTooLargeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
106
  })(DocumentTooLargeException || (DocumentTooLargeException = {}));
155
107
  export var HumanLoopQuotaExceededException;
156
108
  (function (HumanLoopQuotaExceededException) {
157
- /**
158
- * @internal
159
- */
160
109
  HumanLoopQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
110
  })(HumanLoopQuotaExceededException || (HumanLoopQuotaExceededException = {}));
162
111
  export var InternalServerError;
163
112
  (function (InternalServerError) {
164
- /**
165
- * @internal
166
- */
167
113
  InternalServerError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
114
  })(InternalServerError || (InternalServerError = {}));
169
115
  export var InvalidParameterException;
170
116
  (function (InvalidParameterException) {
171
- /**
172
- * @internal
173
- */
174
117
  InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
118
  })(InvalidParameterException || (InvalidParameterException = {}));
176
119
  export var InvalidS3ObjectException;
177
120
  (function (InvalidS3ObjectException) {
178
- /**
179
- * @internal
180
- */
181
121
  InvalidS3ObjectException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
182
122
  })(InvalidS3ObjectException || (InvalidS3ObjectException = {}));
183
123
  export var ProvisionedThroughputExceededException;
184
124
  (function (ProvisionedThroughputExceededException) {
185
- /**
186
- * @internal
187
- */
188
125
  ProvisionedThroughputExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
126
  })(ProvisionedThroughputExceededException || (ProvisionedThroughputExceededException = {}));
190
127
  export var ThrottlingException;
191
128
  (function (ThrottlingException) {
192
- /**
193
- * @internal
194
- */
195
129
  ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
130
  })(ThrottlingException || (ThrottlingException = {}));
197
131
  export var UnsupportedDocumentException;
198
132
  (function (UnsupportedDocumentException) {
199
- /**
200
- * @internal
201
- */
202
133
  UnsupportedDocumentException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
134
  })(UnsupportedDocumentException || (UnsupportedDocumentException = {}));
204
135
  export var AnalyzeExpenseRequest;
205
136
  (function (AnalyzeExpenseRequest) {
206
- /**
207
- * @internal
208
- */
209
137
  AnalyzeExpenseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
210
138
  })(AnalyzeExpenseRequest || (AnalyzeExpenseRequest = {}));
211
139
  export var ExpenseDetection;
212
140
  (function (ExpenseDetection) {
213
- /**
214
- * @internal
215
- */
216
141
  ExpenseDetection.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
142
  })(ExpenseDetection || (ExpenseDetection = {}));
218
143
  export var ExpenseType;
219
144
  (function (ExpenseType) {
220
- /**
221
- * @internal
222
- */
223
145
  ExpenseType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
146
  })(ExpenseType || (ExpenseType = {}));
225
147
  export var ExpenseField;
226
148
  (function (ExpenseField) {
227
- /**
228
- * @internal
229
- */
230
149
  ExpenseField.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
150
  })(ExpenseField || (ExpenseField = {}));
232
151
  export var LineItemFields;
233
152
  (function (LineItemFields) {
234
- /**
235
- * @internal
236
- */
237
153
  LineItemFields.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
154
  })(LineItemFields || (LineItemFields = {}));
239
155
  export var LineItemGroup;
240
156
  (function (LineItemGroup) {
241
- /**
242
- * @internal
243
- */
244
157
  LineItemGroup.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
158
  })(LineItemGroup || (LineItemGroup = {}));
246
159
  export var ExpenseDocument;
247
160
  (function (ExpenseDocument) {
248
- /**
249
- * @internal
250
- */
251
161
  ExpenseDocument.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
162
  })(ExpenseDocument || (ExpenseDocument = {}));
253
163
  export var AnalyzeExpenseResponse;
254
164
  (function (AnalyzeExpenseResponse) {
255
- /**
256
- * @internal
257
- */
258
165
  AnalyzeExpenseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
166
  })(AnalyzeExpenseResponse || (AnalyzeExpenseResponse = {}));
260
167
  export var DetectDocumentTextRequest;
261
168
  (function (DetectDocumentTextRequest) {
262
- /**
263
- * @internal
264
- */
265
169
  DetectDocumentTextRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
266
170
  })(DetectDocumentTextRequest || (DetectDocumentTextRequest = {}));
267
171
  export var DetectDocumentTextResponse;
268
172
  (function (DetectDocumentTextResponse) {
269
- /**
270
- * @internal
271
- */
272
173
  DetectDocumentTextResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
273
174
  })(DetectDocumentTextResponse || (DetectDocumentTextResponse = {}));
274
175
  export var DocumentLocation;
275
176
  (function (DocumentLocation) {
276
- /**
277
- * @internal
278
- */
279
177
  DocumentLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
280
178
  })(DocumentLocation || (DocumentLocation = {}));
281
179
  export var GetDocumentAnalysisRequest;
282
180
  (function (GetDocumentAnalysisRequest) {
283
- /**
284
- * @internal
285
- */
286
181
  GetDocumentAnalysisRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
182
  })(GetDocumentAnalysisRequest || (GetDocumentAnalysisRequest = {}));
288
183
  export var JobStatus;
@@ -294,100 +189,57 @@ export var JobStatus;
294
189
  })(JobStatus || (JobStatus = {}));
295
190
  export var Warning;
296
191
  (function (Warning) {
297
- /**
298
- * @internal
299
- */
300
192
  Warning.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
301
193
  })(Warning || (Warning = {}));
302
194
  export var GetDocumentAnalysisResponse;
303
195
  (function (GetDocumentAnalysisResponse) {
304
- /**
305
- * @internal
306
- */
307
196
  GetDocumentAnalysisResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
308
197
  })(GetDocumentAnalysisResponse || (GetDocumentAnalysisResponse = {}));
309
198
  export var InvalidJobIdException;
310
199
  (function (InvalidJobIdException) {
311
- /**
312
- * @internal
313
- */
314
200
  InvalidJobIdException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
315
201
  })(InvalidJobIdException || (InvalidJobIdException = {}));
316
202
  export var InvalidKMSKeyException;
317
203
  (function (InvalidKMSKeyException) {
318
- /**
319
- * @internal
320
- */
321
204
  InvalidKMSKeyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
322
205
  })(InvalidKMSKeyException || (InvalidKMSKeyException = {}));
323
206
  export var GetDocumentTextDetectionRequest;
324
207
  (function (GetDocumentTextDetectionRequest) {
325
- /**
326
- * @internal
327
- */
328
208
  GetDocumentTextDetectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
329
209
  })(GetDocumentTextDetectionRequest || (GetDocumentTextDetectionRequest = {}));
330
210
  export var GetDocumentTextDetectionResponse;
331
211
  (function (GetDocumentTextDetectionResponse) {
332
- /**
333
- * @internal
334
- */
335
212
  GetDocumentTextDetectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
336
213
  })(GetDocumentTextDetectionResponse || (GetDocumentTextDetectionResponse = {}));
337
214
  export var IdempotentParameterMismatchException;
338
215
  (function (IdempotentParameterMismatchException) {
339
- /**
340
- * @internal
341
- */
342
216
  IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
343
217
  })(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
344
218
  export var LimitExceededException;
345
219
  (function (LimitExceededException) {
346
- /**
347
- * @internal
348
- */
349
220
  LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
350
221
  })(LimitExceededException || (LimitExceededException = {}));
351
222
  export var NotificationChannel;
352
223
  (function (NotificationChannel) {
353
- /**
354
- * @internal
355
- */
356
224
  NotificationChannel.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
357
225
  })(NotificationChannel || (NotificationChannel = {}));
358
226
  export var OutputConfig;
359
227
  (function (OutputConfig) {
360
- /**
361
- * @internal
362
- */
363
228
  OutputConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
364
229
  })(OutputConfig || (OutputConfig = {}));
365
230
  export var StartDocumentAnalysisRequest;
366
231
  (function (StartDocumentAnalysisRequest) {
367
- /**
368
- * @internal
369
- */
370
232
  StartDocumentAnalysisRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
371
233
  })(StartDocumentAnalysisRequest || (StartDocumentAnalysisRequest = {}));
372
234
  export var StartDocumentAnalysisResponse;
373
235
  (function (StartDocumentAnalysisResponse) {
374
- /**
375
- * @internal
376
- */
377
236
  StartDocumentAnalysisResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
378
237
  })(StartDocumentAnalysisResponse || (StartDocumentAnalysisResponse = {}));
379
238
  export var StartDocumentTextDetectionRequest;
380
239
  (function (StartDocumentTextDetectionRequest) {
381
- /**
382
- * @internal
383
- */
384
240
  StartDocumentTextDetectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
385
241
  })(StartDocumentTextDetectionRequest || (StartDocumentTextDetectionRequest = {}));
386
242
  export var StartDocumentTextDetectionResponse;
387
243
  (function (StartDocumentTextDetectionResponse) {
388
- /**
389
- * @internal
390
- */
391
244
  StartDocumentTextDetectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
392
245
  })(StartDocumentTextDetectionResponse || (StartDocumentTextDetectionResponse = {}));
393
- //# sourceMappingURL=models_0.js.map