@aws-sdk/client-textract 3.1077.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 (83) hide show
  1. package/dist-cjs/index.js +33 -253
  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-types/commandBuilder.d.ts +18 -0
  30. package/dist-types/commands/AnalyzeDocumentCommand.d.ts +3 -8
  31. package/dist-types/commands/AnalyzeExpenseCommand.d.ts +3 -8
  32. package/dist-types/commands/AnalyzeIDCommand.d.ts +3 -8
  33. package/dist-types/commands/CreateAdapterCommand.d.ts +3 -8
  34. package/dist-types/commands/CreateAdapterVersionCommand.d.ts +3 -8
  35. package/dist-types/commands/DeleteAdapterCommand.d.ts +3 -8
  36. package/dist-types/commands/DeleteAdapterVersionCommand.d.ts +3 -8
  37. package/dist-types/commands/DetectDocumentTextCommand.d.ts +3 -8
  38. package/dist-types/commands/GetAdapterCommand.d.ts +3 -8
  39. package/dist-types/commands/GetAdapterVersionCommand.d.ts +3 -8
  40. package/dist-types/commands/GetDocumentAnalysisCommand.d.ts +3 -8
  41. package/dist-types/commands/GetDocumentTextDetectionCommand.d.ts +3 -8
  42. package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +3 -8
  43. package/dist-types/commands/GetLendingAnalysisCommand.d.ts +3 -8
  44. package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +3 -8
  45. package/dist-types/commands/ListAdapterVersionsCommand.d.ts +3 -8
  46. package/dist-types/commands/ListAdaptersCommand.d.ts +3 -8
  47. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  48. package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +3 -8
  49. package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +3 -8
  50. package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +3 -8
  51. package/dist-types/commands/StartLendingAnalysisCommand.d.ts +3 -8
  52. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  53. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  54. package/dist-types/commands/UpdateAdapterCommand.d.ts +3 -8
  55. package/dist-types/index.d.ts +1 -0
  56. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  57. package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/AnalyzeIDCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/CreateAdapterCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/CreateAdapterVersionCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/DeleteAdapterCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/DeleteAdapterVersionCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/GetAdapterCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/GetAdapterVersionCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/GetLendingAnalysisCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/GetLendingAnalysisSummaryCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/ListAdapterVersionsCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/ListAdaptersCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/StartLendingAnalysisCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/UpdateAdapterCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/index.d.ts +1 -0
  83. package/package.json +8 -8
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");
@@ -68,7 +69,7 @@ const commonParams = {
68
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
69
70
  };
70
71
 
71
- var version = "3.1076.0";
72
+ var version = "3.1077.0";
72
73
  var packageInfo = {
73
74
  version: version};
74
75
 
@@ -1638,304 +1639,83 @@ class TextractClient extends Client {
1638
1639
  }
1639
1640
  }
1640
1641
 
1641
- class AnalyzeDocumentCommand extends Command
1642
- .classBuilder()
1643
- .ep(commonParams)
1644
- .m(function (Command, cs, config, o) {
1645
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1646
- })
1647
- .s("Textract", "AnalyzeDocument", {})
1648
- .n("TextractClient", "AnalyzeDocumentCommand")
1649
- .sc(AnalyzeDocument$)
1650
- .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$) {
1651
1647
  }
1652
1648
 
1653
- class AnalyzeExpenseCommand extends Command
1654
- .classBuilder()
1655
- .ep(commonParams)
1656
- .m(function (Command, cs, config, o) {
1657
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1658
- })
1659
- .s("Textract", "AnalyzeExpense", {})
1660
- .n("TextractClient", "AnalyzeExpenseCommand")
1661
- .sc(AnalyzeExpense$)
1662
- .build() {
1649
+ class AnalyzeExpenseCommand extends command(_ep0, _mw0, "AnalyzeExpense", AnalyzeExpense$) {
1663
1650
  }
1664
1651
 
1665
- class AnalyzeIDCommand extends Command
1666
- .classBuilder()
1667
- .ep(commonParams)
1668
- .m(function (Command, cs, config, o) {
1669
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1670
- })
1671
- .s("Textract", "AnalyzeID", {})
1672
- .n("TextractClient", "AnalyzeIDCommand")
1673
- .sc(AnalyzeID$)
1674
- .build() {
1652
+ class AnalyzeIDCommand extends command(_ep0, _mw0, "AnalyzeID", AnalyzeID$) {
1675
1653
  }
1676
1654
 
1677
- class CreateAdapterCommand extends Command
1678
- .classBuilder()
1679
- .ep(commonParams)
1680
- .m(function (Command, cs, config, o) {
1681
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1682
- })
1683
- .s("Textract", "CreateAdapter", {})
1684
- .n("TextractClient", "CreateAdapterCommand")
1685
- .sc(CreateAdapter$)
1686
- .build() {
1655
+ class CreateAdapterCommand extends command(_ep0, _mw0, "CreateAdapter", CreateAdapter$) {
1687
1656
  }
1688
1657
 
1689
- class CreateAdapterVersionCommand extends Command
1690
- .classBuilder()
1691
- .ep(commonParams)
1692
- .m(function (Command, cs, config, o) {
1693
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1694
- })
1695
- .s("Textract", "CreateAdapterVersion", {})
1696
- .n("TextractClient", "CreateAdapterVersionCommand")
1697
- .sc(CreateAdapterVersion$)
1698
- .build() {
1658
+ class CreateAdapterVersionCommand extends command(_ep0, _mw0, "CreateAdapterVersion", CreateAdapterVersion$) {
1699
1659
  }
1700
1660
 
1701
- class DeleteAdapterCommand extends Command
1702
- .classBuilder()
1703
- .ep(commonParams)
1704
- .m(function (Command, cs, config, o) {
1705
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1706
- })
1707
- .s("Textract", "DeleteAdapter", {})
1708
- .n("TextractClient", "DeleteAdapterCommand")
1709
- .sc(DeleteAdapter$)
1710
- .build() {
1661
+ class DeleteAdapterCommand extends command(_ep0, _mw0, "DeleteAdapter", DeleteAdapter$) {
1711
1662
  }
1712
1663
 
1713
- class DeleteAdapterVersionCommand extends Command
1714
- .classBuilder()
1715
- .ep(commonParams)
1716
- .m(function (Command, cs, config, o) {
1717
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1718
- })
1719
- .s("Textract", "DeleteAdapterVersion", {})
1720
- .n("TextractClient", "DeleteAdapterVersionCommand")
1721
- .sc(DeleteAdapterVersion$)
1722
- .build() {
1664
+ class DeleteAdapterVersionCommand extends command(_ep0, _mw0, "DeleteAdapterVersion", DeleteAdapterVersion$) {
1723
1665
  }
1724
1666
 
1725
- class DetectDocumentTextCommand extends Command
1726
- .classBuilder()
1727
- .ep(commonParams)
1728
- .m(function (Command, cs, config, o) {
1729
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1730
- })
1731
- .s("Textract", "DetectDocumentText", {})
1732
- .n("TextractClient", "DetectDocumentTextCommand")
1733
- .sc(DetectDocumentText$)
1734
- .build() {
1667
+ class DetectDocumentTextCommand extends command(_ep0, _mw0, "DetectDocumentText", DetectDocumentText$) {
1735
1668
  }
1736
1669
 
1737
- class GetAdapterCommand extends Command
1738
- .classBuilder()
1739
- .ep(commonParams)
1740
- .m(function (Command, cs, config, o) {
1741
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1742
- })
1743
- .s("Textract", "GetAdapter", {})
1744
- .n("TextractClient", "GetAdapterCommand")
1745
- .sc(GetAdapter$)
1746
- .build() {
1670
+ class GetAdapterCommand extends command(_ep0, _mw0, "GetAdapter", GetAdapter$) {
1747
1671
  }
1748
1672
 
1749
- class GetAdapterVersionCommand extends Command
1750
- .classBuilder()
1751
- .ep(commonParams)
1752
- .m(function (Command, cs, config, o) {
1753
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1754
- })
1755
- .s("Textract", "GetAdapterVersion", {})
1756
- .n("TextractClient", "GetAdapterVersionCommand")
1757
- .sc(GetAdapterVersion$)
1758
- .build() {
1673
+ class GetAdapterVersionCommand extends command(_ep0, _mw0, "GetAdapterVersion", GetAdapterVersion$) {
1759
1674
  }
1760
1675
 
1761
- class GetDocumentAnalysisCommand extends Command
1762
- .classBuilder()
1763
- .ep(commonParams)
1764
- .m(function (Command, cs, config, o) {
1765
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1766
- })
1767
- .s("Textract", "GetDocumentAnalysis", {})
1768
- .n("TextractClient", "GetDocumentAnalysisCommand")
1769
- .sc(GetDocumentAnalysis$)
1770
- .build() {
1676
+ class GetDocumentAnalysisCommand extends command(_ep0, _mw0, "GetDocumentAnalysis", GetDocumentAnalysis$) {
1771
1677
  }
1772
1678
 
1773
- class GetDocumentTextDetectionCommand extends Command
1774
- .classBuilder()
1775
- .ep(commonParams)
1776
- .m(function (Command, cs, config, o) {
1777
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1778
- })
1779
- .s("Textract", "GetDocumentTextDetection", {})
1780
- .n("TextractClient", "GetDocumentTextDetectionCommand")
1781
- .sc(GetDocumentTextDetection$)
1782
- .build() {
1679
+ class GetDocumentTextDetectionCommand extends command(_ep0, _mw0, "GetDocumentTextDetection", GetDocumentTextDetection$) {
1783
1680
  }
1784
1681
 
1785
- class GetExpenseAnalysisCommand extends Command
1786
- .classBuilder()
1787
- .ep(commonParams)
1788
- .m(function (Command, cs, config, o) {
1789
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1790
- })
1791
- .s("Textract", "GetExpenseAnalysis", {})
1792
- .n("TextractClient", "GetExpenseAnalysisCommand")
1793
- .sc(GetExpenseAnalysis$)
1794
- .build() {
1682
+ class GetExpenseAnalysisCommand extends command(_ep0, _mw0, "GetExpenseAnalysis", GetExpenseAnalysis$) {
1795
1683
  }
1796
1684
 
1797
- class GetLendingAnalysisCommand extends Command
1798
- .classBuilder()
1799
- .ep(commonParams)
1800
- .m(function (Command, cs, config, o) {
1801
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1802
- })
1803
- .s("Textract", "GetLendingAnalysis", {})
1804
- .n("TextractClient", "GetLendingAnalysisCommand")
1805
- .sc(GetLendingAnalysis$)
1806
- .build() {
1685
+ class GetLendingAnalysisCommand extends command(_ep0, _mw0, "GetLendingAnalysis", GetLendingAnalysis$) {
1807
1686
  }
1808
1687
 
1809
- class GetLendingAnalysisSummaryCommand extends Command
1810
- .classBuilder()
1811
- .ep(commonParams)
1812
- .m(function (Command, cs, config, o) {
1813
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1814
- })
1815
- .s("Textract", "GetLendingAnalysisSummary", {})
1816
- .n("TextractClient", "GetLendingAnalysisSummaryCommand")
1817
- .sc(GetLendingAnalysisSummary$)
1818
- .build() {
1688
+ class GetLendingAnalysisSummaryCommand extends command(_ep0, _mw0, "GetLendingAnalysisSummary", GetLendingAnalysisSummary$) {
1819
1689
  }
1820
1690
 
1821
- class ListAdaptersCommand extends Command
1822
- .classBuilder()
1823
- .ep(commonParams)
1824
- .m(function (Command, cs, config, o) {
1825
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1826
- })
1827
- .s("Textract", "ListAdapters", {})
1828
- .n("TextractClient", "ListAdaptersCommand")
1829
- .sc(ListAdapters$)
1830
- .build() {
1691
+ class ListAdaptersCommand extends command(_ep0, _mw0, "ListAdapters", ListAdapters$) {
1831
1692
  }
1832
1693
 
1833
- class ListAdapterVersionsCommand extends Command
1834
- .classBuilder()
1835
- .ep(commonParams)
1836
- .m(function (Command, cs, config, o) {
1837
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1838
- })
1839
- .s("Textract", "ListAdapterVersions", {})
1840
- .n("TextractClient", "ListAdapterVersionsCommand")
1841
- .sc(ListAdapterVersions$)
1842
- .build() {
1694
+ class ListAdapterVersionsCommand extends command(_ep0, _mw0, "ListAdapterVersions", ListAdapterVersions$) {
1843
1695
  }
1844
1696
 
1845
- class ListTagsForResourceCommand extends Command
1846
- .classBuilder()
1847
- .ep(commonParams)
1848
- .m(function (Command, cs, config, o) {
1849
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1850
- })
1851
- .s("Textract", "ListTagsForResource", {})
1852
- .n("TextractClient", "ListTagsForResourceCommand")
1853
- .sc(ListTagsForResource$)
1854
- .build() {
1697
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1855
1698
  }
1856
1699
 
1857
- class StartDocumentAnalysisCommand extends Command
1858
- .classBuilder()
1859
- .ep(commonParams)
1860
- .m(function (Command, cs, config, o) {
1861
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1862
- })
1863
- .s("Textract", "StartDocumentAnalysis", {})
1864
- .n("TextractClient", "StartDocumentAnalysisCommand")
1865
- .sc(StartDocumentAnalysis$)
1866
- .build() {
1700
+ class StartDocumentAnalysisCommand extends command(_ep0, _mw0, "StartDocumentAnalysis", StartDocumentAnalysis$) {
1867
1701
  }
1868
1702
 
1869
- class StartDocumentTextDetectionCommand extends Command
1870
- .classBuilder()
1871
- .ep(commonParams)
1872
- .m(function (Command, cs, config, o) {
1873
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1874
- })
1875
- .s("Textract", "StartDocumentTextDetection", {})
1876
- .n("TextractClient", "StartDocumentTextDetectionCommand")
1877
- .sc(StartDocumentTextDetection$)
1878
- .build() {
1703
+ class StartDocumentTextDetectionCommand extends command(_ep0, _mw0, "StartDocumentTextDetection", StartDocumentTextDetection$) {
1879
1704
  }
1880
1705
 
1881
- class StartExpenseAnalysisCommand extends Command
1882
- .classBuilder()
1883
- .ep(commonParams)
1884
- .m(function (Command, cs, config, o) {
1885
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1886
- })
1887
- .s("Textract", "StartExpenseAnalysis", {})
1888
- .n("TextractClient", "StartExpenseAnalysisCommand")
1889
- .sc(StartExpenseAnalysis$)
1890
- .build() {
1706
+ class StartExpenseAnalysisCommand extends command(_ep0, _mw0, "StartExpenseAnalysis", StartExpenseAnalysis$) {
1891
1707
  }
1892
1708
 
1893
- class StartLendingAnalysisCommand extends Command
1894
- .classBuilder()
1895
- .ep(commonParams)
1896
- .m(function (Command, cs, config, o) {
1897
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1898
- })
1899
- .s("Textract", "StartLendingAnalysis", {})
1900
- .n("TextractClient", "StartLendingAnalysisCommand")
1901
- .sc(StartLendingAnalysis$)
1902
- .build() {
1709
+ class StartLendingAnalysisCommand extends command(_ep0, _mw0, "StartLendingAnalysis", StartLendingAnalysis$) {
1903
1710
  }
1904
1711
 
1905
- class TagResourceCommand extends Command
1906
- .classBuilder()
1907
- .ep(commonParams)
1908
- .m(function (Command, cs, config, o) {
1909
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1910
- })
1911
- .s("Textract", "TagResource", {})
1912
- .n("TextractClient", "TagResourceCommand")
1913
- .sc(TagResource$)
1914
- .build() {
1712
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1915
1713
  }
1916
1714
 
1917
- class UntagResourceCommand extends Command
1918
- .classBuilder()
1919
- .ep(commonParams)
1920
- .m(function (Command, cs, config, o) {
1921
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1922
- })
1923
- .s("Textract", "UntagResource", {})
1924
- .n("TextractClient", "UntagResourceCommand")
1925
- .sc(UntagResource$)
1926
- .build() {
1715
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1927
1716
  }
1928
1717
 
1929
- class UpdateAdapterCommand extends Command
1930
- .classBuilder()
1931
- .ep(commonParams)
1932
- .m(function (Command, cs, config, o) {
1933
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1934
- })
1935
- .s("Textract", "UpdateAdapter", {})
1936
- .n("TextractClient", "UpdateAdapterCommand")
1937
- .sc(UpdateAdapter$)
1938
- .build() {
1718
+ class UpdateAdapterCommand extends command(_ep0, _mw0, "UpdateAdapter", UpdateAdapter$) {
1939
1719
  }
1940
1720
 
1941
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
  }
@@ -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 { GetLendingAnalysis$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetLendingAnalysisCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "GetLendingAnalysis", {})
13
- .n("TextractClient", "GetLendingAnalysisCommand")
14
- .sc(GetLendingAnalysis$)
15
- .build() {
3
+ export class GetLendingAnalysisCommand extends command(_ep0, _mw0, "GetLendingAnalysis", GetLendingAnalysis$) {
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 { GetLendingAnalysisSummary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetLendingAnalysisSummaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Textract", "GetLendingAnalysisSummary", {})
13
- .n("TextractClient", "GetLendingAnalysisSummaryCommand")
14
- .sc(GetLendingAnalysisSummary$)
15
- .build() {
3
+ export class GetLendingAnalysisSummaryCommand extends command(_ep0, _mw0, "GetLendingAnalysisSummary", GetLendingAnalysisSummary$) {
16
4
  }