@aws-sdk/client-textract 3.478.0 → 3.481.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.
Files changed (105) hide show
  1. package/dist-cjs/commands/AnalyzeDocumentCommand.js +18 -41
  2. package/dist-cjs/commands/AnalyzeExpenseCommand.js +18 -41
  3. package/dist-cjs/commands/AnalyzeIDCommand.js +18 -41
  4. package/dist-cjs/commands/CreateAdapterCommand.js +18 -41
  5. package/dist-cjs/commands/CreateAdapterVersionCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteAdapterCommand.js +18 -41
  7. package/dist-cjs/commands/DeleteAdapterVersionCommand.js +18 -41
  8. package/dist-cjs/commands/DetectDocumentTextCommand.js +18 -41
  9. package/dist-cjs/commands/GetAdapterCommand.js +18 -41
  10. package/dist-cjs/commands/GetAdapterVersionCommand.js +18 -41
  11. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +18 -41
  12. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +18 -41
  13. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +18 -41
  14. package/dist-cjs/commands/GetLendingAnalysisCommand.js +18 -41
  15. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +18 -41
  16. package/dist-cjs/commands/ListAdapterVersionsCommand.js +18 -41
  17. package/dist-cjs/commands/ListAdaptersCommand.js +18 -41
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  19. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +18 -41
  20. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +18 -41
  21. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +18 -41
  22. package/dist-cjs/commands/StartLendingAnalysisCommand.js +18 -41
  23. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  24. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  25. package/dist-cjs/commands/UpdateAdapterCommand.js +18 -41
  26. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  27. package/dist-es/commands/AnalyzeDocumentCommand.js +18 -41
  28. package/dist-es/commands/AnalyzeExpenseCommand.js +18 -41
  29. package/dist-es/commands/AnalyzeIDCommand.js +18 -41
  30. package/dist-es/commands/CreateAdapterCommand.js +18 -41
  31. package/dist-es/commands/CreateAdapterVersionCommand.js +18 -41
  32. package/dist-es/commands/DeleteAdapterCommand.js +18 -41
  33. package/dist-es/commands/DeleteAdapterVersionCommand.js +18 -41
  34. package/dist-es/commands/DetectDocumentTextCommand.js +18 -41
  35. package/dist-es/commands/GetAdapterCommand.js +18 -41
  36. package/dist-es/commands/GetAdapterVersionCommand.js +18 -41
  37. package/dist-es/commands/GetDocumentAnalysisCommand.js +18 -41
  38. package/dist-es/commands/GetDocumentTextDetectionCommand.js +18 -41
  39. package/dist-es/commands/GetExpenseAnalysisCommand.js +18 -41
  40. package/dist-es/commands/GetLendingAnalysisCommand.js +18 -41
  41. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +18 -41
  42. package/dist-es/commands/ListAdapterVersionsCommand.js +18 -41
  43. package/dist-es/commands/ListAdaptersCommand.js +18 -41
  44. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  45. package/dist-es/commands/StartDocumentAnalysisCommand.js +18 -41
  46. package/dist-es/commands/StartDocumentTextDetectionCommand.js +18 -41
  47. package/dist-es/commands/StartExpenseAnalysisCommand.js +18 -41
  48. package/dist-es/commands/StartLendingAnalysisCommand.js +18 -41
  49. package/dist-es/commands/TagResourceCommand.js +18 -41
  50. package/dist-es/commands/UntagResourceCommand.js +18 -41
  51. package/dist-es/commands/UpdateAdapterCommand.js +18 -41
  52. package/dist-es/endpoint/EndpointParameters.js +6 -0
  53. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +6 -21
  54. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +6 -21
  55. package/dist-types/commands/AnalyzeIDCommand.d.ts +6 -21
  56. package/dist-types/commands/CreateAdapterCommand.d.ts +6 -21
  57. package/dist-types/commands/CreateAdapterVersionCommand.d.ts +6 -21
  58. package/dist-types/commands/DeleteAdapterCommand.d.ts +6 -21
  59. package/dist-types/commands/DeleteAdapterVersionCommand.d.ts +6 -21
  60. package/dist-types/commands/DetectDocumentTextCommand.d.ts +6 -21
  61. package/dist-types/commands/GetAdapterCommand.d.ts +6 -21
  62. package/dist-types/commands/GetAdapterVersionCommand.d.ts +6 -21
  63. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +6 -21
  64. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +6 -21
  65. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +6 -21
  66. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +6 -21
  67. package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +6 -21
  68. package/dist-types/commands/ListAdapterVersionsCommand.d.ts +6 -21
  69. package/dist-types/commands/ListAdaptersCommand.d.ts +6 -21
  70. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  71. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +6 -21
  72. package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +6 -21
  73. package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +6 -21
  74. package/dist-types/commands/StartLendingAnalysisCommand.d.ts +6 -21
  75. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  76. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  77. package/dist-types/commands/UpdateAdapterCommand.d.ts +6 -21
  78. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  79. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +14 -23
  81. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +14 -23
  82. package/dist-types/ts3.4/commands/CreateAdapterCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/CreateAdapterVersionCommand.d.ts +12 -24
  84. package/dist-types/ts3.4/commands/DeleteAdapterCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/DeleteAdapterVersionCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/GetAdapterCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/GetAdapterVersionCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/GetLendingAnalysisCommand.d.ts +14 -23
  93. package/dist-types/ts3.4/commands/GetLendingAnalysisSummaryCommand.d.ts +12 -24
  94. package/dist-types/ts3.4/commands/ListAdapterVersionsCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/ListAdaptersCommand.d.ts +14 -23
  96. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +12 -24
  98. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +12 -24
  99. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +12 -24
  100. package/dist-types/ts3.4/commands/StartLendingAnalysisCommand.d.ts +12 -24
  101. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/UpdateAdapterCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  105. package/package.json +9 -9
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_AnalyzeIDCommand, se_AnalyzeIDCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class AnalyzeIDCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, AnalyzeIDCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "AnalyzeIDCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "AnalyzeID",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_AnalyzeIDCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_AnalyzeIDCommand(output, context);
46
- }
7
+ export class AnalyzeIDCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "AnalyzeID", {})
19
+ .n("TextractClient", "AnalyzeIDCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_AnalyzeIDCommand)
22
+ .de(de_AnalyzeIDCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateAdapterCommand, se_CreateAdapterCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateAdapterCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateAdapterCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "CreateAdapterCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "CreateAdapter",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateAdapterCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateAdapterCommand(output, context);
46
- }
7
+ export class CreateAdapterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "CreateAdapter", {})
19
+ .n("TextractClient", "CreateAdapterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateAdapterCommand)
22
+ .de(de_CreateAdapterCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateAdapterVersionCommand, se_CreateAdapterVersionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateAdapterVersionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateAdapterVersionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "CreateAdapterVersionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "CreateAdapterVersion",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateAdapterVersionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateAdapterVersionCommand(output, context);
46
- }
7
+ export class CreateAdapterVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "CreateAdapterVersion", {})
19
+ .n("TextractClient", "CreateAdapterVersionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateAdapterVersionCommand)
22
+ .de(de_CreateAdapterVersionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DeleteAdapterCommand, se_DeleteAdapterCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DeleteAdapterCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteAdapterCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "DeleteAdapterCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "DeleteAdapter",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DeleteAdapterCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteAdapterCommand(output, context);
46
- }
7
+ export class DeleteAdapterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "DeleteAdapter", {})
19
+ .n("TextractClient", "DeleteAdapterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteAdapterCommand)
22
+ .de(de_DeleteAdapterCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DeleteAdapterVersionCommand, se_DeleteAdapterVersionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DeleteAdapterVersionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteAdapterVersionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "DeleteAdapterVersionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "DeleteAdapterVersion",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DeleteAdapterVersionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteAdapterVersionCommand(output, context);
46
- }
7
+ export class DeleteAdapterVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "DeleteAdapterVersion", {})
19
+ .n("TextractClient", "DeleteAdapterVersionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteAdapterVersionCommand)
22
+ .de(de_DeleteAdapterVersionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DetectDocumentTextCommand, se_DetectDocumentTextCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DetectDocumentTextCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DetectDocumentTextCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "DetectDocumentTextCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "DetectDocumentText",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DetectDocumentTextCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DetectDocumentTextCommand(output, context);
46
- }
7
+ export class DetectDocumentTextCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "DetectDocumentText", {})
19
+ .n("TextractClient", "DetectDocumentTextCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DetectDocumentTextCommand)
22
+ .de(de_DetectDocumentTextCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetAdapterCommand, se_GetAdapterCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetAdapterCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetAdapterCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "GetAdapterCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "GetAdapter",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetAdapterCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetAdapterCommand(output, context);
46
- }
7
+ export class GetAdapterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "GetAdapter", {})
19
+ .n("TextractClient", "GetAdapterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAdapterCommand)
22
+ .de(de_GetAdapterCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetAdapterVersionCommand, se_GetAdapterVersionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetAdapterVersionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetAdapterVersionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "GetAdapterVersionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "GetAdapterVersion",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetAdapterVersionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetAdapterVersionCommand(output, context);
46
- }
7
+ export class GetAdapterVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "GetAdapterVersion", {})
19
+ .n("TextractClient", "GetAdapterVersionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAdapterVersionCommand)
22
+ .de(de_GetAdapterVersionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetDocumentAnalysisCommand, se_GetDocumentAnalysisCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetDocumentAnalysisCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetDocumentAnalysisCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "TextractClient";
26
- const commandName = "GetDocumentAnalysisCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Textract",
35
- operation: "GetDocumentAnalysis",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetDocumentAnalysisCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetDocumentAnalysisCommand(output, context);
46
- }
7
+ export class GetDocumentAnalysisCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Textract", "GetDocumentAnalysis", {})
19
+ .n("TextractClient", "GetDocumentAnalysisCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetDocumentAnalysisCommand)
22
+ .de(de_GetDocumentAnalysisCommand)
23
+ .build() {
47
24
  }