@aws-sdk/client-translate 3.118.1 → 3.127.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/CHANGELOG.md +31 -0
- package/dist-cjs/Translate.js +15 -0
- package/dist-cjs/commands/ListLanguagesCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +48 -2
- package/dist-cjs/pagination/ListLanguagesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +267 -194
- package/dist-es/Translate.js +15 -0
- package/dist-es/commands/ListLanguagesCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +39 -0
- package/dist-es/pagination/ListLanguagesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +254 -167
- package/dist-types/Translate.d.ts +15 -8
- package/dist-types/TranslateClient.d.ts +3 -2
- package/dist-types/commands/ImportTerminologyCommand.d.ts +8 -8
- package/dist-types/commands/ListLanguagesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +144 -32
- package/dist-types/pagination/ListLanguagesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/Translate.d.ts +5 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/ListLanguagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +58 -0
- package/dist-types/ts3.4/pagination/ListLanguagesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +26 -26
|
@@ -236,6 +236,7 @@ export declare enum Profanity {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
export interface TranslationSettings {
|
|
239
|
+
|
|
239
240
|
Formality?: Formality | string;
|
|
240
241
|
|
|
241
242
|
Profanity?: Profanity | string;
|
|
@@ -482,6 +483,63 @@ export declare namespace ImportTerminologyResponse {
|
|
|
482
483
|
|
|
483
484
|
const filterSensitiveLog: (obj: ImportTerminologyResponse) => any;
|
|
484
485
|
}
|
|
486
|
+
export declare enum DisplayLanguageCode {
|
|
487
|
+
DE = "de",
|
|
488
|
+
EN = "en",
|
|
489
|
+
ES = "es",
|
|
490
|
+
FR = "fr",
|
|
491
|
+
IT = "it",
|
|
492
|
+
JA = "ja",
|
|
493
|
+
KO = "ko",
|
|
494
|
+
PT = "pt",
|
|
495
|
+
ZH = "zh",
|
|
496
|
+
ZH_TW = "zh-TW"
|
|
497
|
+
}
|
|
498
|
+
export interface ListLanguagesRequest {
|
|
499
|
+
|
|
500
|
+
DisplayLanguageCode?: DisplayLanguageCode | string;
|
|
501
|
+
|
|
502
|
+
NextToken?: string;
|
|
503
|
+
|
|
504
|
+
MaxResults?: number;
|
|
505
|
+
}
|
|
506
|
+
export declare namespace ListLanguagesRequest {
|
|
507
|
+
|
|
508
|
+
const filterSensitiveLog: (obj: ListLanguagesRequest) => any;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export interface Language {
|
|
512
|
+
|
|
513
|
+
LanguageName: string | undefined;
|
|
514
|
+
|
|
515
|
+
LanguageCode: string | undefined;
|
|
516
|
+
}
|
|
517
|
+
export declare namespace Language {
|
|
518
|
+
|
|
519
|
+
const filterSensitiveLog: (obj: Language) => any;
|
|
520
|
+
}
|
|
521
|
+
export interface ListLanguagesResponse {
|
|
522
|
+
|
|
523
|
+
Languages?: Language[];
|
|
524
|
+
|
|
525
|
+
DisplayLanguageCode?: DisplayLanguageCode | string;
|
|
526
|
+
|
|
527
|
+
NextToken?: string;
|
|
528
|
+
}
|
|
529
|
+
export declare namespace ListLanguagesResponse {
|
|
530
|
+
|
|
531
|
+
const filterSensitiveLog: (obj: ListLanguagesResponse) => any;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
export declare class UnsupportedDisplayLanguageCodeException extends __BaseException {
|
|
535
|
+
readonly name: "UnsupportedDisplayLanguageCodeException";
|
|
536
|
+
readonly $fault: "client";
|
|
537
|
+
Message?: string;
|
|
538
|
+
|
|
539
|
+
DisplayLanguageCode?: string;
|
|
540
|
+
|
|
541
|
+
constructor(opts: __ExceptionOptionType<UnsupportedDisplayLanguageCodeException, __BaseException>);
|
|
542
|
+
}
|
|
485
543
|
export interface ListParallelDataRequest {
|
|
486
544
|
|
|
487
545
|
NextToken?: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "../commands/ListLanguagesCommand";
|
|
3
|
+
import { TranslatePaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare function paginateListLanguages(config: TranslatePaginationConfiguration, input: ListLanguagesCommandInput, ...additionalArguments: any): Paginator<ListLanguagesCommandOutput>;
|
|
@@ -7,6 +7,7 @@ import { DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobComma
|
|
|
7
7
|
import { GetParallelDataCommandInput, GetParallelDataCommandOutput } from "../commands/GetParallelDataCommand";
|
|
8
8
|
import { GetTerminologyCommandInput, GetTerminologyCommandOutput } from "../commands/GetTerminologyCommand";
|
|
9
9
|
import { ImportTerminologyCommandInput, ImportTerminologyCommandOutput } from "../commands/ImportTerminologyCommand";
|
|
10
|
+
import { ListLanguagesCommandInput, ListLanguagesCommandOutput } from "../commands/ListLanguagesCommand";
|
|
10
11
|
import { ListParallelDataCommandInput, ListParallelDataCommandOutput } from "../commands/ListParallelDataCommand";
|
|
11
12
|
import { ListTerminologiesCommandInput, ListTerminologiesCommandOutput } from "../commands/ListTerminologiesCommand";
|
|
12
13
|
import { ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput } from "../commands/ListTextTranslationJobsCommand";
|
|
@@ -21,6 +22,7 @@ export declare const serializeAws_json1_1DescribeTextTranslationJobCommand: (inp
|
|
|
21
22
|
export declare const serializeAws_json1_1GetParallelDataCommand: (input: GetParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
22
23
|
export declare const serializeAws_json1_1GetTerminologyCommand: (input: GetTerminologyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
24
|
export declare const serializeAws_json1_1ImportTerminologyCommand: (input: ImportTerminologyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
|
+
export declare const serializeAws_json1_1ListLanguagesCommand: (input: ListLanguagesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
26
|
export declare const serializeAws_json1_1ListParallelDataCommand: (input: ListParallelDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
27
|
export declare const serializeAws_json1_1ListTerminologiesCommand: (input: ListTerminologiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
26
28
|
export declare const serializeAws_json1_1ListTextTranslationJobsCommand: (input: ListTextTranslationJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -35,6 +37,7 @@ export declare const deserializeAws_json1_1DescribeTextTranslationJobCommand: (o
|
|
|
35
37
|
export declare const deserializeAws_json1_1GetParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetParallelDataCommandOutput>;
|
|
36
38
|
export declare const deserializeAws_json1_1GetTerminologyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTerminologyCommandOutput>;
|
|
37
39
|
export declare const deserializeAws_json1_1ImportTerminologyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportTerminologyCommandOutput>;
|
|
40
|
+
export declare const deserializeAws_json1_1ListLanguagesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLanguagesCommandOutput>;
|
|
38
41
|
export declare const deserializeAws_json1_1ListParallelDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListParallelDataCommandOutput>;
|
|
39
42
|
export declare const deserializeAws_json1_1ListTerminologiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTerminologiesCommandOutput>;
|
|
40
43
|
export declare const deserializeAws_json1_1ListTextTranslationJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTextTranslationJobsCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-translate",
|
|
3
3
|
"description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|