@aws-sdk/client-textract 3.974.0 → 3.978.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +9 -5
- package/dist-es/Textract.js +7 -1
- package/dist-types/Textract.d.ts +15 -1
- package/dist-types/ts3.4/Textract.d.ts +19 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -1766,6 +1766,10 @@ class UpdateAdapterCommand extends smithyClient.Command
|
|
|
1766
1766
|
.build() {
|
|
1767
1767
|
}
|
|
1768
1768
|
|
|
1769
|
+
const paginateListAdapters = core.createPaginator(TextractClient, ListAdaptersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1770
|
+
|
|
1771
|
+
const paginateListAdapterVersions = core.createPaginator(TextractClient, ListAdapterVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1772
|
+
|
|
1769
1773
|
const commands = {
|
|
1770
1774
|
AnalyzeDocumentCommand,
|
|
1771
1775
|
AnalyzeExpenseCommand,
|
|
@@ -1793,13 +1797,13 @@ const commands = {
|
|
|
1793
1797
|
UntagResourceCommand,
|
|
1794
1798
|
UpdateAdapterCommand,
|
|
1795
1799
|
};
|
|
1800
|
+
const paginators = {
|
|
1801
|
+
paginateListAdapters,
|
|
1802
|
+
paginateListAdapterVersions,
|
|
1803
|
+
};
|
|
1796
1804
|
class Textract extends TextractClient {
|
|
1797
1805
|
}
|
|
1798
|
-
smithyClient.createAggregatedClient(commands, Textract);
|
|
1799
|
-
|
|
1800
|
-
const paginateListAdapters = core.createPaginator(TextractClient, ListAdaptersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1801
|
-
|
|
1802
|
-
const paginateListAdapterVersions = core.createPaginator(TextractClient, ListAdapterVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1806
|
+
smithyClient.createAggregatedClient(commands, Textract, { paginators });
|
|
1803
1807
|
|
|
1804
1808
|
const FeatureType = {
|
|
1805
1809
|
FORMS: "FORMS",
|
package/dist-es/Textract.js
CHANGED
|
@@ -24,6 +24,8 @@ import { StartLendingAnalysisCommand, } from "./commands/StartLendingAnalysisCom
|
|
|
24
24
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
25
25
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
26
26
|
import { UpdateAdapterCommand, } from "./commands/UpdateAdapterCommand";
|
|
27
|
+
import { paginateListAdapters } from "./pagination/ListAdaptersPaginator";
|
|
28
|
+
import { paginateListAdapterVersions } from "./pagination/ListAdapterVersionsPaginator";
|
|
27
29
|
import { TextractClient } from "./TextractClient";
|
|
28
30
|
const commands = {
|
|
29
31
|
AnalyzeDocumentCommand,
|
|
@@ -52,6 +54,10 @@ const commands = {
|
|
|
52
54
|
UntagResourceCommand,
|
|
53
55
|
UpdateAdapterCommand,
|
|
54
56
|
};
|
|
57
|
+
const paginators = {
|
|
58
|
+
paginateListAdapters,
|
|
59
|
+
paginateListAdapterVersions,
|
|
60
|
+
};
|
|
55
61
|
export class Textract extends TextractClient {
|
|
56
62
|
}
|
|
57
|
-
createAggregatedClient(commands, Textract);
|
|
63
|
+
createAggregatedClient(commands, Textract, { paginators });
|
package/dist-types/Textract.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
|
|
3
3
|
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
|
|
4
4
|
import { AnalyzeIDCommandInput, AnalyzeIDCommandOutput } from "./commands/AnalyzeIDCommand";
|
|
@@ -178,6 +178,20 @@ export interface Textract {
|
|
|
178
178
|
updateAdapter(args: UpdateAdapterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAdapterCommandOutput>;
|
|
179
179
|
updateAdapter(args: UpdateAdapterCommandInput, cb: (err: any, data?: UpdateAdapterCommandOutput) => void): void;
|
|
180
180
|
updateAdapter(args: UpdateAdapterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAdapterCommandOutput) => void): void;
|
|
181
|
+
/**
|
|
182
|
+
* @see {@link ListAdaptersCommand}
|
|
183
|
+
* @param args - command input.
|
|
184
|
+
* @param paginationConfig - optional pagination config.
|
|
185
|
+
* @returns AsyncIterable of {@link ListAdaptersCommandOutput}.
|
|
186
|
+
*/
|
|
187
|
+
paginateListAdapters(args?: ListAdaptersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAdaptersCommandOutput>;
|
|
188
|
+
/**
|
|
189
|
+
* @see {@link ListAdapterVersionsCommand}
|
|
190
|
+
* @param args - command input.
|
|
191
|
+
* @param paginationConfig - optional pagination config.
|
|
192
|
+
* @returns AsyncIterable of {@link ListAdapterVersionsCommandOutput}.
|
|
193
|
+
*/
|
|
194
|
+
paginateListAdapterVersions(args?: ListAdapterVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAdapterVersionsCommandOutput>;
|
|
181
195
|
}
|
|
182
196
|
/**
|
|
183
197
|
* <p>Amazon Textract detects and analyzes text in documents and converts it
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
AnalyzeDocumentCommandInput,
|
|
4
8
|
AnalyzeDocumentCommandOutput,
|
|
@@ -428,5 +432,19 @@ export interface Textract {
|
|
|
428
432
|
options: __HttpHandlerOptions,
|
|
429
433
|
cb: (err: any, data?: UpdateAdapterCommandOutput) => void
|
|
430
434
|
): void;
|
|
435
|
+
paginateListAdapters(
|
|
436
|
+
args?: ListAdaptersCommandInput,
|
|
437
|
+
paginationConfig?: Pick<
|
|
438
|
+
PaginationConfiguration,
|
|
439
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
440
|
+
>
|
|
441
|
+
): Paginator<ListAdaptersCommandOutput>;
|
|
442
|
+
paginateListAdapterVersions(
|
|
443
|
+
args?: ListAdapterVersionsCommandInput,
|
|
444
|
+
paginationConfig?: Pick<
|
|
445
|
+
PaginationConfiguration,
|
|
446
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
447
|
+
>
|
|
448
|
+
): Paginator<ListAdapterVersionsCommandOutput>;
|
|
431
449
|
}
|
|
432
450
|
export declare class Textract extends TextractClient implements Textract {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-textract",
|
|
3
3
|
"description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-textract",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|