@aws-sdk/client-translate 3.50.0 → 3.53.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 +28 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/TranslateServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +193 -1
- package/dist-cjs/protocols/Aws_json1_1.js +179 -597
- package/dist-es/index.js +1 -0
- package/dist-es/models/TranslateServiceException.js +12 -0
- package/dist-es/models/models_0.js +179 -1
- package/dist-es/protocols/Aws_json1_1.js +356 -629
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/TranslateServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +98 -40
- package/dist-types/ts3.4/Translate.d.ts +75 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +87 -0
- package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/TranslateServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +721 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListParallelDataPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTerminologiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTextTranslationJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +44 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
* **clients:** update clients as of 2022/02/23 ([#3356](https://github.com/aws/aws-sdk-js-v3/issues/3356)) ([b6b2e25](https://github.com/aws/aws-sdk-js-v3/commit/b6b2e258add12c73d807483ca078401a6d84a12b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-translate
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @aws-sdk/client-translate
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
35
|
|
|
8
36
|
**Note:** Version bump only for package @aws-sdk/client-translate
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslateServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Translate"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./TranslateClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var TranslateServiceException_1 = require("./models/TranslateServiceException");
|
|
11
|
+
Object.defineProperty(exports, "TranslateServiceException", { enumerable: true, get: function () { return TranslateServiceException_1.TranslateServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslateServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class TranslateServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, TranslateServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.TranslateServiceException = TranslateServiceException;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TextTranslationJobFilter = exports.InvalidFilterException = exports.ListTerminologiesResponse = exports.ListTerminologiesRequest = exports.ListParallelDataResponse = exports.ListParallelDataRequest = exports.ImportTerminologyResponse = exports.ImportTerminologyRequest = exports.TerminologyData = exports.MergeStrategy = exports.GetTerminologyResponse = exports.TerminologyProperties = exports.Directionality = exports.TerminologyDataLocation = exports.GetTerminologyRequest = exports.TerminologyDataFormat = exports.GetParallelDataResponse = exports.ParallelDataProperties = exports.ParallelDataDataLocation = exports.GetParallelDataRequest = exports.DescribeTextTranslationJobResponse = exports.TextTranslationJobProperties = exports.TranslationSettings = exports.Profanity = exports.Formality = exports.OutputDataConfig = exports.JobStatus = exports.JobDetails = exports.InputDataConfig = exports.DescribeTextTranslationJobRequest = exports.DeleteTerminologyRequest = exports.ResourceNotFoundException = exports.DeleteParallelDataResponse = exports.DeleteParallelDataRequest = exports.ConcurrentModificationException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.InternalServerException = exports.CreateParallelDataResponse = exports.ParallelDataStatus = exports.CreateParallelDataRequest = exports.ParallelDataConfig = exports.ParallelDataFormat = exports.EncryptionKey = exports.EncryptionKeyType = exports.ConflictException = exports.AppliedTerminology = exports.Term = void 0;
|
|
4
|
+
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = exports.StartTextTranslationJobResponse = exports.StartTextTranslationJobRequest = exports.ListTextTranslationJobsResponse = exports.ListTextTranslationJobsRequest = void 0;
|
|
4
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const TranslateServiceException_1 = require("./TranslateServiceException");
|
|
5
7
|
var Term;
|
|
6
8
|
(function (Term) {
|
|
7
9
|
Term.filterSensitiveLog = (obj) => ({
|
|
@@ -14,6 +16,20 @@ var AppliedTerminology;
|
|
|
14
16
|
...obj,
|
|
15
17
|
});
|
|
16
18
|
})(AppliedTerminology = exports.AppliedTerminology || (exports.AppliedTerminology = {}));
|
|
19
|
+
class ConflictException extends TranslateServiceException_1.TranslateServiceException {
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "ConflictException",
|
|
23
|
+
$fault: "client",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
this.name = "ConflictException";
|
|
27
|
+
this.$fault = "client";
|
|
28
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
29
|
+
this.Message = opts.Message;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ConflictException = ConflictException;
|
|
17
33
|
var EncryptionKeyType;
|
|
18
34
|
(function (EncryptionKeyType) {
|
|
19
35
|
EncryptionKeyType["KMS"] = "KMS";
|
|
@@ -56,6 +72,90 @@ var CreateParallelDataResponse;
|
|
|
56
72
|
...obj,
|
|
57
73
|
});
|
|
58
74
|
})(CreateParallelDataResponse = exports.CreateParallelDataResponse || (exports.CreateParallelDataResponse = {}));
|
|
75
|
+
class InternalServerException extends TranslateServiceException_1.TranslateServiceException {
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "InternalServerException",
|
|
79
|
+
$fault: "server",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
this.name = "InternalServerException";
|
|
83
|
+
this.$fault = "server";
|
|
84
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
85
|
+
this.Message = opts.Message;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.InternalServerException = InternalServerException;
|
|
89
|
+
class InvalidParameterValueException extends TranslateServiceException_1.TranslateServiceException {
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "InvalidParameterValueException",
|
|
93
|
+
$fault: "client",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
this.name = "InvalidParameterValueException";
|
|
97
|
+
this.$fault = "client";
|
|
98
|
+
Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
|
|
99
|
+
this.Message = opts.Message;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.InvalidParameterValueException = InvalidParameterValueException;
|
|
103
|
+
class InvalidRequestException extends TranslateServiceException_1.TranslateServiceException {
|
|
104
|
+
constructor(opts) {
|
|
105
|
+
super({
|
|
106
|
+
name: "InvalidRequestException",
|
|
107
|
+
$fault: "client",
|
|
108
|
+
...opts,
|
|
109
|
+
});
|
|
110
|
+
this.name = "InvalidRequestException";
|
|
111
|
+
this.$fault = "client";
|
|
112
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
113
|
+
this.Message = opts.Message;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
117
|
+
class LimitExceededException extends TranslateServiceException_1.TranslateServiceException {
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "LimitExceededException",
|
|
121
|
+
$fault: "client",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
this.name = "LimitExceededException";
|
|
125
|
+
this.$fault = "client";
|
|
126
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
127
|
+
this.Message = opts.Message;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.LimitExceededException = LimitExceededException;
|
|
131
|
+
class TooManyRequestsException extends TranslateServiceException_1.TranslateServiceException {
|
|
132
|
+
constructor(opts) {
|
|
133
|
+
super({
|
|
134
|
+
name: "TooManyRequestsException",
|
|
135
|
+
$fault: "client",
|
|
136
|
+
...opts,
|
|
137
|
+
});
|
|
138
|
+
this.name = "TooManyRequestsException";
|
|
139
|
+
this.$fault = "client";
|
|
140
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
141
|
+
this.Message = opts.Message;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
145
|
+
class ConcurrentModificationException extends TranslateServiceException_1.TranslateServiceException {
|
|
146
|
+
constructor(opts) {
|
|
147
|
+
super({
|
|
148
|
+
name: "ConcurrentModificationException",
|
|
149
|
+
$fault: "client",
|
|
150
|
+
...opts,
|
|
151
|
+
});
|
|
152
|
+
this.name = "ConcurrentModificationException";
|
|
153
|
+
this.$fault = "client";
|
|
154
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
155
|
+
this.Message = opts.Message;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
59
159
|
var DeleteParallelDataRequest;
|
|
60
160
|
(function (DeleteParallelDataRequest) {
|
|
61
161
|
DeleteParallelDataRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -68,6 +168,20 @@ var DeleteParallelDataResponse;
|
|
|
68
168
|
...obj,
|
|
69
169
|
});
|
|
70
170
|
})(DeleteParallelDataResponse = exports.DeleteParallelDataResponse || (exports.DeleteParallelDataResponse = {}));
|
|
171
|
+
class ResourceNotFoundException extends TranslateServiceException_1.TranslateServiceException {
|
|
172
|
+
constructor(opts) {
|
|
173
|
+
super({
|
|
174
|
+
name: "ResourceNotFoundException",
|
|
175
|
+
$fault: "client",
|
|
176
|
+
...opts,
|
|
177
|
+
});
|
|
178
|
+
this.name = "ResourceNotFoundException";
|
|
179
|
+
this.$fault = "client";
|
|
180
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
181
|
+
this.Message = opts.Message;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
71
185
|
var DeleteTerminologyRequest;
|
|
72
186
|
(function (DeleteTerminologyRequest) {
|
|
73
187
|
DeleteTerminologyRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -108,6 +222,11 @@ var OutputDataConfig;
|
|
|
108
222
|
...obj,
|
|
109
223
|
});
|
|
110
224
|
})(OutputDataConfig = exports.OutputDataConfig || (exports.OutputDataConfig = {}));
|
|
225
|
+
var Formality;
|
|
226
|
+
(function (Formality) {
|
|
227
|
+
Formality["FORMAL"] = "FORMAL";
|
|
228
|
+
Formality["INFORMAL"] = "INFORMAL";
|
|
229
|
+
})(Formality = exports.Formality || (exports.Formality = {}));
|
|
111
230
|
var Profanity;
|
|
112
231
|
(function (Profanity) {
|
|
113
232
|
Profanity["MASK"] = "MASK";
|
|
@@ -237,6 +356,20 @@ var ListTerminologiesResponse;
|
|
|
237
356
|
...obj,
|
|
238
357
|
});
|
|
239
358
|
})(ListTerminologiesResponse = exports.ListTerminologiesResponse || (exports.ListTerminologiesResponse = {}));
|
|
359
|
+
class InvalidFilterException extends TranslateServiceException_1.TranslateServiceException {
|
|
360
|
+
constructor(opts) {
|
|
361
|
+
super({
|
|
362
|
+
name: "InvalidFilterException",
|
|
363
|
+
$fault: "client",
|
|
364
|
+
...opts,
|
|
365
|
+
});
|
|
366
|
+
this.name = "InvalidFilterException";
|
|
367
|
+
this.$fault = "client";
|
|
368
|
+
Object.setPrototypeOf(this, InvalidFilterException.prototype);
|
|
369
|
+
this.Message = opts.Message;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
exports.InvalidFilterException = InvalidFilterException;
|
|
240
373
|
var TextTranslationJobFilter;
|
|
241
374
|
(function (TextTranslationJobFilter) {
|
|
242
375
|
TextTranslationJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -267,6 +400,22 @@ var StartTextTranslationJobResponse;
|
|
|
267
400
|
...obj,
|
|
268
401
|
});
|
|
269
402
|
})(StartTextTranslationJobResponse = exports.StartTextTranslationJobResponse || (exports.StartTextTranslationJobResponse = {}));
|
|
403
|
+
class UnsupportedLanguagePairException extends TranslateServiceException_1.TranslateServiceException {
|
|
404
|
+
constructor(opts) {
|
|
405
|
+
super({
|
|
406
|
+
name: "UnsupportedLanguagePairException",
|
|
407
|
+
$fault: "client",
|
|
408
|
+
...opts,
|
|
409
|
+
});
|
|
410
|
+
this.name = "UnsupportedLanguagePairException";
|
|
411
|
+
this.$fault = "client";
|
|
412
|
+
Object.setPrototypeOf(this, UnsupportedLanguagePairException.prototype);
|
|
413
|
+
this.Message = opts.Message;
|
|
414
|
+
this.SourceLanguageCode = opts.SourceLanguageCode;
|
|
415
|
+
this.TargetLanguageCode = opts.TargetLanguageCode;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
exports.UnsupportedLanguagePairException = UnsupportedLanguagePairException;
|
|
270
419
|
var StopTextTranslationJobRequest;
|
|
271
420
|
(function (StopTextTranslationJobRequest) {
|
|
272
421
|
StopTextTranslationJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -279,6 +428,49 @@ var StopTextTranslationJobResponse;
|
|
|
279
428
|
...obj,
|
|
280
429
|
});
|
|
281
430
|
})(StopTextTranslationJobResponse = exports.StopTextTranslationJobResponse || (exports.StopTextTranslationJobResponse = {}));
|
|
431
|
+
class DetectedLanguageLowConfidenceException extends TranslateServiceException_1.TranslateServiceException {
|
|
432
|
+
constructor(opts) {
|
|
433
|
+
super({
|
|
434
|
+
name: "DetectedLanguageLowConfidenceException",
|
|
435
|
+
$fault: "client",
|
|
436
|
+
...opts,
|
|
437
|
+
});
|
|
438
|
+
this.name = "DetectedLanguageLowConfidenceException";
|
|
439
|
+
this.$fault = "client";
|
|
440
|
+
Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
|
|
441
|
+
this.Message = opts.Message;
|
|
442
|
+
this.DetectedLanguageCode = opts.DetectedLanguageCode;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
exports.DetectedLanguageLowConfidenceException = DetectedLanguageLowConfidenceException;
|
|
446
|
+
class ServiceUnavailableException extends TranslateServiceException_1.TranslateServiceException {
|
|
447
|
+
constructor(opts) {
|
|
448
|
+
super({
|
|
449
|
+
name: "ServiceUnavailableException",
|
|
450
|
+
$fault: "server",
|
|
451
|
+
...opts,
|
|
452
|
+
});
|
|
453
|
+
this.name = "ServiceUnavailableException";
|
|
454
|
+
this.$fault = "server";
|
|
455
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
456
|
+
this.Message = opts.Message;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
460
|
+
class TextSizeLimitExceededException extends TranslateServiceException_1.TranslateServiceException {
|
|
461
|
+
constructor(opts) {
|
|
462
|
+
super({
|
|
463
|
+
name: "TextSizeLimitExceededException",
|
|
464
|
+
$fault: "client",
|
|
465
|
+
...opts,
|
|
466
|
+
});
|
|
467
|
+
this.name = "TextSizeLimitExceededException";
|
|
468
|
+
this.$fault = "client";
|
|
469
|
+
Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
|
|
470
|
+
this.Message = opts.Message;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
exports.TextSizeLimitExceededException = TextSizeLimitExceededException;
|
|
282
474
|
var TranslateTextRequest;
|
|
283
475
|
(function (TranslateTextRequest) {
|
|
284
476
|
TranslateTextRequest.filterSensitiveLog = (obj) => ({
|