@aws-sdk/client-textract 3.1076.0 → 3.1078.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 (95) hide show
  1. package/dist-cjs/index.js +36 -255
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AnalyzeDocumentCommand.js +2 -14
  4. package/dist-es/commands/AnalyzeExpenseCommand.js +2 -14
  5. package/dist-es/commands/AnalyzeIDCommand.js +2 -14
  6. package/dist-es/commands/CreateAdapterCommand.js +2 -14
  7. package/dist-es/commands/CreateAdapterVersionCommand.js +2 -14
  8. package/dist-es/commands/DeleteAdapterCommand.js +2 -14
  9. package/dist-es/commands/DeleteAdapterVersionCommand.js +2 -14
  10. package/dist-es/commands/DetectDocumentTextCommand.js +2 -14
  11. package/dist-es/commands/GetAdapterCommand.js +2 -14
  12. package/dist-es/commands/GetAdapterVersionCommand.js +2 -14
  13. package/dist-es/commands/GetDocumentAnalysisCommand.js +2 -14
  14. package/dist-es/commands/GetDocumentTextDetectionCommand.js +2 -14
  15. package/dist-es/commands/GetExpenseAnalysisCommand.js +2 -14
  16. package/dist-es/commands/GetLendingAnalysisCommand.js +2 -14
  17. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +2 -14
  18. package/dist-es/commands/ListAdapterVersionsCommand.js +2 -14
  19. package/dist-es/commands/ListAdaptersCommand.js +2 -14
  20. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  21. package/dist-es/commands/StartDocumentAnalysisCommand.js +2 -14
  22. package/dist-es/commands/StartDocumentTextDetectionCommand.js +2 -14
  23. package/dist-es/commands/StartExpenseAnalysisCommand.js +2 -14
  24. package/dist-es/commands/StartLendingAnalysisCommand.js +2 -14
  25. package/dist-es/commands/TagResourceCommand.js +2 -14
  26. package/dist-es/commands/UntagResourceCommand.js +2 -14
  27. package/dist-es/commands/UpdateAdapterCommand.js +2 -14
  28. package/dist-es/index.js +1 -0
  29. package/dist-es/runtimeConfig.browser.js +0 -2
  30. package/dist-es/runtimeConfig.js +1 -2
  31. package/dist-es/runtimeConfig.native.js +0 -2
  32. package/dist-es/runtimeConfig.shared.js +2 -0
  33. package/dist-types/commandBuilder.d.ts +18 -0
  34. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +3 -8
  35. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +3 -8
  36. package/dist-types/commands/AnalyzeIDCommand.d.ts +3 -8
  37. package/dist-types/commands/CreateAdapterCommand.d.ts +3 -8
  38. package/dist-types/commands/CreateAdapterVersionCommand.d.ts +3 -8
  39. package/dist-types/commands/DeleteAdapterCommand.d.ts +3 -8
  40. package/dist-types/commands/DeleteAdapterVersionCommand.d.ts +3 -8
  41. package/dist-types/commands/DetectDocumentTextCommand.d.ts +3 -8
  42. package/dist-types/commands/GetAdapterCommand.d.ts +3 -8
  43. package/dist-types/commands/GetAdapterVersionCommand.d.ts +3 -8
  44. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +3 -8
  45. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +3 -8
  46. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +3 -8
  47. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +3 -8
  48. package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +3 -8
  49. package/dist-types/commands/ListAdapterVersionsCommand.d.ts +3 -8
  50. package/dist-types/commands/ListAdaptersCommand.d.ts +3 -8
  51. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  52. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +3 -8
  53. package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +3 -8
  54. package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +3 -8
  55. package/dist-types/commands/StartLendingAnalysisCommand.d.ts +3 -8
  56. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  57. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  58. package/dist-types/commands/UpdateAdapterCommand.d.ts +3 -8
  59. package/dist-types/index.d.ts +1 -0
  60. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  61. package/dist-types/runtimeConfig.d.ts +1 -1
  62. package/dist-types/runtimeConfig.native.d.ts +1 -1
  63. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  64. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  65. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/CreateAdapterCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/CreateAdapterVersionCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/DeleteAdapterCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/DeleteAdapterVersionCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/GetAdapterCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/GetAdapterVersionCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/GetLendingAnalysisCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/GetLendingAnalysisSummaryCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/ListAdapterVersionsCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/ListAdaptersCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/StartLendingAnalysisCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/UpdateAdapterCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/index.d.ts +1 -0
  91. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  92. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  93. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  94. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  95. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultTextractHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -1516,6 +1518,7 @@ const getRuntimeConfig$1 = (config) => {
1516
1518
  serviceTarget: "Textract",
1517
1519
  },
1518
1520
  serviceId: config?.serviceId ?? "Textract",
1521
+ sha256: config?.sha256 ?? Sha256,
1519
1522
  urlParser: config?.urlParser ?? parseUrl,
1520
1523
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1521
1524
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1549,7 +1552,6 @@ const getRuntimeConfig = (config) => {
1549
1552
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1550
1553
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1551
1554
  }, config),
1552
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1553
1555
  streamCollector: config?.streamCollector ?? streamCollector,
1554
1556
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1555
1557
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1637,304 +1639,83 @@ class TextractClient extends Client {
1637
1639
  }
1638
1640
  }
1639
1641
 
1640
- class AnalyzeDocumentCommand extends Command
1641
- .classBuilder()
1642
- .ep(commonParams)
1643
- .m(function (Command, cs, config, o) {
1644
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1645
- })
1646
- .s("Textract", "AnalyzeDocument", {})
1647
- .n("TextractClient", "AnalyzeDocumentCommand")
1648
- .sc(AnalyzeDocument$)
1649
- .build() {
1642
+ const command = makeBuilder(commonParams, "Textract", "TextractClient", getEndpointPlugin);
1643
+ const _ep0 = {};
1644
+ const _mw0 = (Command, cs, config, o) => [];
1645
+
1646
+ class AnalyzeDocumentCommand extends command(_ep0, _mw0, "AnalyzeDocument", AnalyzeDocument$) {
1650
1647
  }
1651
1648
 
1652
- class AnalyzeExpenseCommand extends Command
1653
- .classBuilder()
1654
- .ep(commonParams)
1655
- .m(function (Command, cs, config, o) {
1656
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1657
- })
1658
- .s("Textract", "AnalyzeExpense", {})
1659
- .n("TextractClient", "AnalyzeExpenseCommand")
1660
- .sc(AnalyzeExpense$)
1661
- .build() {
1649
+ class AnalyzeExpenseCommand extends command(_ep0, _mw0, "AnalyzeExpense", AnalyzeExpense$) {
1662
1650
  }
1663
1651
 
1664
- class AnalyzeIDCommand extends Command
1665
- .classBuilder()
1666
- .ep(commonParams)
1667
- .m(function (Command, cs, config, o) {
1668
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1669
- })
1670
- .s("Textract", "AnalyzeID", {})
1671
- .n("TextractClient", "AnalyzeIDCommand")
1672
- .sc(AnalyzeID$)
1673
- .build() {
1652
+ class AnalyzeIDCommand extends command(_ep0, _mw0, "AnalyzeID", AnalyzeID$) {
1674
1653
  }
1675
1654
 
1676
- class CreateAdapterCommand extends Command
1677
- .classBuilder()
1678
- .ep(commonParams)
1679
- .m(function (Command, cs, config, o) {
1680
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1681
- })
1682
- .s("Textract", "CreateAdapter", {})
1683
- .n("TextractClient", "CreateAdapterCommand")
1684
- .sc(CreateAdapter$)
1685
- .build() {
1655
+ class CreateAdapterCommand extends command(_ep0, _mw0, "CreateAdapter", CreateAdapter$) {
1686
1656
  }
1687
1657
 
1688
- class CreateAdapterVersionCommand extends Command
1689
- .classBuilder()
1690
- .ep(commonParams)
1691
- .m(function (Command, cs, config, o) {
1692
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1693
- })
1694
- .s("Textract", "CreateAdapterVersion", {})
1695
- .n("TextractClient", "CreateAdapterVersionCommand")
1696
- .sc(CreateAdapterVersion$)
1697
- .build() {
1658
+ class CreateAdapterVersionCommand extends command(_ep0, _mw0, "CreateAdapterVersion", CreateAdapterVersion$) {
1698
1659
  }
1699
1660
 
1700
- class DeleteAdapterCommand extends Command
1701
- .classBuilder()
1702
- .ep(commonParams)
1703
- .m(function (Command, cs, config, o) {
1704
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1705
- })
1706
- .s("Textract", "DeleteAdapter", {})
1707
- .n("TextractClient", "DeleteAdapterCommand")
1708
- .sc(DeleteAdapter$)
1709
- .build() {
1661
+ class DeleteAdapterCommand extends command(_ep0, _mw0, "DeleteAdapter", DeleteAdapter$) {
1710
1662
  }
1711
1663
 
1712
- class DeleteAdapterVersionCommand extends Command
1713
- .classBuilder()
1714
- .ep(commonParams)
1715
- .m(function (Command, cs, config, o) {
1716
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1717
- })
1718
- .s("Textract", "DeleteAdapterVersion", {})
1719
- .n("TextractClient", "DeleteAdapterVersionCommand")
1720
- .sc(DeleteAdapterVersion$)
1721
- .build() {
1664
+ class DeleteAdapterVersionCommand extends command(_ep0, _mw0, "DeleteAdapterVersion", DeleteAdapterVersion$) {
1722
1665
  }
1723
1666
 
1724
- class DetectDocumentTextCommand extends Command
1725
- .classBuilder()
1726
- .ep(commonParams)
1727
- .m(function (Command, cs, config, o) {
1728
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1729
- })
1730
- .s("Textract", "DetectDocumentText", {})
1731
- .n("TextractClient", "DetectDocumentTextCommand")
1732
- .sc(DetectDocumentText$)
1733
- .build() {
1667
+ class DetectDocumentTextCommand extends command(_ep0, _mw0, "DetectDocumentText", DetectDocumentText$) {
1734
1668
  }
1735
1669
 
1736
- class GetAdapterCommand extends Command
1737
- .classBuilder()
1738
- .ep(commonParams)
1739
- .m(function (Command, cs, config, o) {
1740
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1741
- })
1742
- .s("Textract", "GetAdapter", {})
1743
- .n("TextractClient", "GetAdapterCommand")
1744
- .sc(GetAdapter$)
1745
- .build() {
1670
+ class GetAdapterCommand extends command(_ep0, _mw0, "GetAdapter", GetAdapter$) {
1746
1671
  }
1747
1672
 
1748
- class GetAdapterVersionCommand extends Command
1749
- .classBuilder()
1750
- .ep(commonParams)
1751
- .m(function (Command, cs, config, o) {
1752
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1753
- })
1754
- .s("Textract", "GetAdapterVersion", {})
1755
- .n("TextractClient", "GetAdapterVersionCommand")
1756
- .sc(GetAdapterVersion$)
1757
- .build() {
1673
+ class GetAdapterVersionCommand extends command(_ep0, _mw0, "GetAdapterVersion", GetAdapterVersion$) {
1758
1674
  }
1759
1675
 
1760
- class GetDocumentAnalysisCommand extends Command
1761
- .classBuilder()
1762
- .ep(commonParams)
1763
- .m(function (Command, cs, config, o) {
1764
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1765
- })
1766
- .s("Textract", "GetDocumentAnalysis", {})
1767
- .n("TextractClient", "GetDocumentAnalysisCommand")
1768
- .sc(GetDocumentAnalysis$)
1769
- .build() {
1676
+ class GetDocumentAnalysisCommand extends command(_ep0, _mw0, "GetDocumentAnalysis", GetDocumentAnalysis$) {
1770
1677
  }
1771
1678
 
1772
- class GetDocumentTextDetectionCommand extends Command
1773
- .classBuilder()
1774
- .ep(commonParams)
1775
- .m(function (Command, cs, config, o) {
1776
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1777
- })
1778
- .s("Textract", "GetDocumentTextDetection", {})
1779
- .n("TextractClient", "GetDocumentTextDetectionCommand")
1780
- .sc(GetDocumentTextDetection$)
1781
- .build() {
1679
+ class GetDocumentTextDetectionCommand extends command(_ep0, _mw0, "GetDocumentTextDetection", GetDocumentTextDetection$) {
1782
1680
  }
1783
1681
 
1784
- class GetExpenseAnalysisCommand extends Command
1785
- .classBuilder()
1786
- .ep(commonParams)
1787
- .m(function (Command, cs, config, o) {
1788
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1789
- })
1790
- .s("Textract", "GetExpenseAnalysis", {})
1791
- .n("TextractClient", "GetExpenseAnalysisCommand")
1792
- .sc(GetExpenseAnalysis$)
1793
- .build() {
1682
+ class GetExpenseAnalysisCommand extends command(_ep0, _mw0, "GetExpenseAnalysis", GetExpenseAnalysis$) {
1794
1683
  }
1795
1684
 
1796
- class GetLendingAnalysisCommand extends Command
1797
- .classBuilder()
1798
- .ep(commonParams)
1799
- .m(function (Command, cs, config, o) {
1800
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1801
- })
1802
- .s("Textract", "GetLendingAnalysis", {})
1803
- .n("TextractClient", "GetLendingAnalysisCommand")
1804
- .sc(GetLendingAnalysis$)
1805
- .build() {
1685
+ class GetLendingAnalysisCommand extends command(_ep0, _mw0, "GetLendingAnalysis", GetLendingAnalysis$) {
1806
1686
  }
1807
1687
 
1808
- class GetLendingAnalysisSummaryCommand extends Command
1809
- .classBuilder()
1810
- .ep(commonParams)
1811
- .m(function (Command, cs, config, o) {
1812
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1813
- })
1814
- .s("Textract", "GetLendingAnalysisSummary", {})
1815
- .n("TextractClient", "GetLendingAnalysisSummaryCommand")
1816
- .sc(GetLendingAnalysisSummary$)
1817
- .build() {
1688
+ class GetLendingAnalysisSummaryCommand extends command(_ep0, _mw0, "GetLendingAnalysisSummary", GetLendingAnalysisSummary$) {
1818
1689
  }
1819
1690
 
1820
- class ListAdaptersCommand extends Command
1821
- .classBuilder()
1822
- .ep(commonParams)
1823
- .m(function (Command, cs, config, o) {
1824
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1825
- })
1826
- .s("Textract", "ListAdapters", {})
1827
- .n("TextractClient", "ListAdaptersCommand")
1828
- .sc(ListAdapters$)
1829
- .build() {
1691
+ class ListAdaptersCommand extends command(_ep0, _mw0, "ListAdapters", ListAdapters$) {
1830
1692
  }
1831
1693
 
1832
- class ListAdapterVersionsCommand extends Command
1833
- .classBuilder()
1834
- .ep(commonParams)
1835
- .m(function (Command, cs, config, o) {
1836
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1837
- })
1838
- .s("Textract", "ListAdapterVersions", {})
1839
- .n("TextractClient", "ListAdapterVersionsCommand")
1840
- .sc(ListAdapterVersions$)
1841
- .build() {
1694
+ class ListAdapterVersionsCommand extends command(_ep0, _mw0, "ListAdapterVersions", ListAdapterVersions$) {
1842
1695
  }
1843
1696
 
1844
- class ListTagsForResourceCommand extends Command
1845
- .classBuilder()
1846
- .ep(commonParams)
1847
- .m(function (Command, cs, config, o) {
1848
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1849
- })
1850
- .s("Textract", "ListTagsForResource", {})
1851
- .n("TextractClient", "ListTagsForResourceCommand")
1852
- .sc(ListTagsForResource$)
1853
- .build() {
1697
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1854
1698
  }
1855
1699
 
1856
- class StartDocumentAnalysisCommand extends Command
1857
- .classBuilder()
1858
- .ep(commonParams)
1859
- .m(function (Command, cs, config, o) {
1860
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1861
- })
1862
- .s("Textract", "StartDocumentAnalysis", {})
1863
- .n("TextractClient", "StartDocumentAnalysisCommand")
1864
- .sc(StartDocumentAnalysis$)
1865
- .build() {
1700
+ class StartDocumentAnalysisCommand extends command(_ep0, _mw0, "StartDocumentAnalysis", StartDocumentAnalysis$) {
1866
1701
  }
1867
1702
 
1868
- class StartDocumentTextDetectionCommand extends Command
1869
- .classBuilder()
1870
- .ep(commonParams)
1871
- .m(function (Command, cs, config, o) {
1872
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1873
- })
1874
- .s("Textract", "StartDocumentTextDetection", {})
1875
- .n("TextractClient", "StartDocumentTextDetectionCommand")
1876
- .sc(StartDocumentTextDetection$)
1877
- .build() {
1703
+ class StartDocumentTextDetectionCommand extends command(_ep0, _mw0, "StartDocumentTextDetection", StartDocumentTextDetection$) {
1878
1704
  }
1879
1705
 
1880
- class StartExpenseAnalysisCommand extends Command
1881
- .classBuilder()
1882
- .ep(commonParams)
1883
- .m(function (Command, cs, config, o) {
1884
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1885
- })
1886
- .s("Textract", "StartExpenseAnalysis", {})
1887
- .n("TextractClient", "StartExpenseAnalysisCommand")
1888
- .sc(StartExpenseAnalysis$)
1889
- .build() {
1706
+ class StartExpenseAnalysisCommand extends command(_ep0, _mw0, "StartExpenseAnalysis", StartExpenseAnalysis$) {
1890
1707
  }
1891
1708
 
1892
- class StartLendingAnalysisCommand extends Command
1893
- .classBuilder()
1894
- .ep(commonParams)
1895
- .m(function (Command, cs, config, o) {
1896
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1897
- })
1898
- .s("Textract", "StartLendingAnalysis", {})
1899
- .n("TextractClient", "StartLendingAnalysisCommand")
1900
- .sc(StartLendingAnalysis$)
1901
- .build() {
1709
+ class StartLendingAnalysisCommand extends command(_ep0, _mw0, "StartLendingAnalysis", StartLendingAnalysis$) {
1902
1710
  }
1903
1711
 
1904
- class TagResourceCommand extends Command
1905
- .classBuilder()
1906
- .ep(commonParams)
1907
- .m(function (Command, cs, config, o) {
1908
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1909
- })
1910
- .s("Textract", "TagResource", {})
1911
- .n("TextractClient", "TagResourceCommand")
1912
- .sc(TagResource$)
1913
- .build() {
1712
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1914
1713
  }
1915
1714
 
1916
- class UntagResourceCommand extends Command
1917
- .classBuilder()
1918
- .ep(commonParams)
1919
- .m(function (Command, cs, config, o) {
1920
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1921
- })
1922
- .s("Textract", "UntagResource", {})
1923
- .n("TextractClient", "UntagResourceCommand")
1924
- .sc(UntagResource$)
1925
- .build() {
1715
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1926
1716
  }
1927
1717
 
1928
- class UpdateAdapterCommand extends Command
1929
- .classBuilder()
1930
- .ep(commonParams)
1931
- .m(function (Command, cs, config, o) {
1932
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1933
- })
1934
- .s("Textract", "UpdateAdapter", {})
1935
- .n("TextractClient", "UpdateAdapterCommand")
1936
- .sc(UpdateAdapter$)
1937
- .build() {
1718
+ class UpdateAdapterCommand extends command(_ep0, _mw0, "UpdateAdapter", UpdateAdapter$) {
1938
1719
  }
1939
1720
 
1940
1721
  const paginateListAdapters = createPaginator(TextractClient, ListAdaptersCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "Textract", "TextractClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AnalyzeDocument$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AnalyzeDocumentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "AnalyzeDocument", {})
13
- .n("TextractClient", "AnalyzeDocumentCommand")
14
- .sc(AnalyzeDocument$)
15
- .build() {
3
+ export class AnalyzeDocumentCommand extends command(_ep0, _mw0, "AnalyzeDocument", AnalyzeDocument$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AnalyzeExpense$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AnalyzeExpenseCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "AnalyzeExpense", {})
13
- .n("TextractClient", "AnalyzeExpenseCommand")
14
- .sc(AnalyzeExpense$)
15
- .build() {
3
+ export class AnalyzeExpenseCommand extends command(_ep0, _mw0, "AnalyzeExpense", AnalyzeExpense$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AnalyzeID$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AnalyzeIDCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "AnalyzeID", {})
13
- .n("TextractClient", "AnalyzeIDCommand")
14
- .sc(AnalyzeID$)
15
- .build() {
3
+ export class AnalyzeIDCommand extends command(_ep0, _mw0, "AnalyzeID", AnalyzeID$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAdapter$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAdapterCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "CreateAdapter", {})
13
- .n("TextractClient", "CreateAdapterCommand")
14
- .sc(CreateAdapter$)
15
- .build() {
3
+ export class CreateAdapterCommand extends command(_ep0, _mw0, "CreateAdapter", CreateAdapter$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAdapterVersion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAdapterVersionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "CreateAdapterVersion", {})
13
- .n("TextractClient", "CreateAdapterVersionCommand")
14
- .sc(CreateAdapterVersion$)
15
- .build() {
3
+ export class CreateAdapterVersionCommand extends command(_ep0, _mw0, "CreateAdapterVersion", CreateAdapterVersion$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteAdapter$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteAdapterCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "DeleteAdapter", {})
13
- .n("TextractClient", "DeleteAdapterCommand")
14
- .sc(DeleteAdapter$)
15
- .build() {
3
+ export class DeleteAdapterCommand extends command(_ep0, _mw0, "DeleteAdapter", DeleteAdapter$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteAdapterVersion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteAdapterVersionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "DeleteAdapterVersion", {})
13
- .n("TextractClient", "DeleteAdapterVersionCommand")
14
- .sc(DeleteAdapterVersion$)
15
- .build() {
3
+ export class DeleteAdapterVersionCommand extends command(_ep0, _mw0, "DeleteAdapterVersion", DeleteAdapterVersion$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DetectDocumentText$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DetectDocumentTextCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "DetectDocumentText", {})
13
- .n("TextractClient", "DetectDocumentTextCommand")
14
- .sc(DetectDocumentText$)
15
- .build() {
3
+ export class DetectDocumentTextCommand extends command(_ep0, _mw0, "DetectDocumentText", DetectDocumentText$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetAdapter$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAdapterCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "GetAdapter", {})
13
- .n("TextractClient", "GetAdapterCommand")
14
- .sc(GetAdapter$)
15
- .build() {
3
+ export class GetAdapterCommand extends command(_ep0, _mw0, "GetAdapter", GetAdapter$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetAdapterVersion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAdapterVersionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "GetAdapterVersion", {})
13
- .n("TextractClient", "GetAdapterVersionCommand")
14
- .sc(GetAdapterVersion$)
15
- .build() {
3
+ export class GetAdapterVersionCommand extends command(_ep0, _mw0, "GetAdapterVersion", GetAdapterVersion$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetDocumentAnalysis$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDocumentAnalysisCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "GetDocumentAnalysis", {})
13
- .n("TextractClient", "GetDocumentAnalysisCommand")
14
- .sc(GetDocumentAnalysis$)
15
- .build() {
3
+ export class GetDocumentAnalysisCommand extends command(_ep0, _mw0, "GetDocumentAnalysis", GetDocumentAnalysis$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetDocumentTextDetection$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDocumentTextDetectionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "GetDocumentTextDetection", {})
13
- .n("TextractClient", "GetDocumentTextDetectionCommand")
14
- .sc(GetDocumentTextDetection$)
15
- .build() {
3
+ export class GetDocumentTextDetectionCommand extends command(_ep0, _mw0, "GetDocumentTextDetection", GetDocumentTextDetection$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetExpenseAnalysis$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetExpenseAnalysisCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "GetExpenseAnalysis", {})
13
- .n("TextractClient", "GetExpenseAnalysisCommand")
14
- .sc(GetExpenseAnalysis$)
15
- .build() {
3
+ export class GetExpenseAnalysisCommand extends command(_ep0, _mw0, "GetExpenseAnalysis", GetExpenseAnalysis$) {
16
4
  }