@aws-sdk/client-translate 3.301.0 → 3.303.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.
@@ -31,24 +31,21 @@ class ConflictException extends TranslateServiceException_1.TranslateServiceExce
31
31
  }
32
32
  }
33
33
  exports.ConflictException = ConflictException;
34
- var EncryptionKeyType;
35
- (function (EncryptionKeyType) {
36
- EncryptionKeyType["KMS"] = "KMS";
37
- })(EncryptionKeyType = exports.EncryptionKeyType || (exports.EncryptionKeyType = {}));
38
- var ParallelDataFormat;
39
- (function (ParallelDataFormat) {
40
- ParallelDataFormat["CSV"] = "CSV";
41
- ParallelDataFormat["TMX"] = "TMX";
42
- ParallelDataFormat["TSV"] = "TSV";
43
- })(ParallelDataFormat = exports.ParallelDataFormat || (exports.ParallelDataFormat = {}));
44
- var ParallelDataStatus;
45
- (function (ParallelDataStatus) {
46
- ParallelDataStatus["ACTIVE"] = "ACTIVE";
47
- ParallelDataStatus["CREATING"] = "CREATING";
48
- ParallelDataStatus["DELETING"] = "DELETING";
49
- ParallelDataStatus["FAILED"] = "FAILED";
50
- ParallelDataStatus["UPDATING"] = "UPDATING";
51
- })(ParallelDataStatus = exports.ParallelDataStatus || (exports.ParallelDataStatus = {}));
34
+ exports.EncryptionKeyType = {
35
+ KMS: "KMS",
36
+ };
37
+ exports.ParallelDataFormat = {
38
+ CSV: "CSV",
39
+ TMX: "TMX",
40
+ TSV: "TSV",
41
+ };
42
+ exports.ParallelDataStatus = {
43
+ ACTIVE: "ACTIVE",
44
+ CREATING: "CREATING",
45
+ DELETING: "DELETING",
46
+ FAILED: "FAILED",
47
+ UPDATING: "UPDATING",
48
+ };
52
49
  class InternalServerException extends TranslateServiceException_1.TranslateServiceException {
53
50
  constructor(opts) {
54
51
  super({
@@ -147,53 +144,46 @@ class ResourceNotFoundException extends TranslateServiceException_1.TranslateSer
147
144
  }
148
145
  }
149
146
  exports.ResourceNotFoundException = ResourceNotFoundException;
150
- var JobStatus;
151
- (function (JobStatus) {
152
- JobStatus["COMPLETED"] = "COMPLETED";
153
- JobStatus["COMPLETED_WITH_ERROR"] = "COMPLETED_WITH_ERROR";
154
- JobStatus["FAILED"] = "FAILED";
155
- JobStatus["IN_PROGRESS"] = "IN_PROGRESS";
156
- JobStatus["STOPPED"] = "STOPPED";
157
- JobStatus["STOP_REQUESTED"] = "STOP_REQUESTED";
158
- JobStatus["SUBMITTED"] = "SUBMITTED";
159
- })(JobStatus = exports.JobStatus || (exports.JobStatus = {}));
160
- var Formality;
161
- (function (Formality) {
162
- Formality["FORMAL"] = "FORMAL";
163
- Formality["INFORMAL"] = "INFORMAL";
164
- })(Formality = exports.Formality || (exports.Formality = {}));
165
- var Profanity;
166
- (function (Profanity) {
167
- Profanity["MASK"] = "MASK";
168
- })(Profanity = exports.Profanity || (exports.Profanity = {}));
169
- var TerminologyDataFormat;
170
- (function (TerminologyDataFormat) {
171
- TerminologyDataFormat["CSV"] = "CSV";
172
- TerminologyDataFormat["TMX"] = "TMX";
173
- TerminologyDataFormat["TSV"] = "TSV";
174
- })(TerminologyDataFormat = exports.TerminologyDataFormat || (exports.TerminologyDataFormat = {}));
175
- var Directionality;
176
- (function (Directionality) {
177
- Directionality["MULTI"] = "MULTI";
178
- Directionality["UNI"] = "UNI";
179
- })(Directionality = exports.Directionality || (exports.Directionality = {}));
180
- var MergeStrategy;
181
- (function (MergeStrategy) {
182
- MergeStrategy["OVERWRITE"] = "OVERWRITE";
183
- })(MergeStrategy = exports.MergeStrategy || (exports.MergeStrategy = {}));
184
- var DisplayLanguageCode;
185
- (function (DisplayLanguageCode) {
186
- DisplayLanguageCode["DE"] = "de";
187
- DisplayLanguageCode["EN"] = "en";
188
- DisplayLanguageCode["ES"] = "es";
189
- DisplayLanguageCode["FR"] = "fr";
190
- DisplayLanguageCode["IT"] = "it";
191
- DisplayLanguageCode["JA"] = "ja";
192
- DisplayLanguageCode["KO"] = "ko";
193
- DisplayLanguageCode["PT"] = "pt";
194
- DisplayLanguageCode["ZH"] = "zh";
195
- DisplayLanguageCode["ZH_TW"] = "zh-TW";
196
- })(DisplayLanguageCode = exports.DisplayLanguageCode || (exports.DisplayLanguageCode = {}));
147
+ exports.JobStatus = {
148
+ COMPLETED: "COMPLETED",
149
+ COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
150
+ FAILED: "FAILED",
151
+ IN_PROGRESS: "IN_PROGRESS",
152
+ STOPPED: "STOPPED",
153
+ STOP_REQUESTED: "STOP_REQUESTED",
154
+ SUBMITTED: "SUBMITTED",
155
+ };
156
+ exports.Formality = {
157
+ FORMAL: "FORMAL",
158
+ INFORMAL: "INFORMAL",
159
+ };
160
+ exports.Profanity = {
161
+ MASK: "MASK",
162
+ };
163
+ exports.TerminologyDataFormat = {
164
+ CSV: "CSV",
165
+ TMX: "TMX",
166
+ TSV: "TSV",
167
+ };
168
+ exports.Directionality = {
169
+ MULTI: "MULTI",
170
+ UNI: "UNI",
171
+ };
172
+ exports.MergeStrategy = {
173
+ OVERWRITE: "OVERWRITE",
174
+ };
175
+ exports.DisplayLanguageCode = {
176
+ DE: "de",
177
+ EN: "en",
178
+ ES: "es",
179
+ FR: "fr",
180
+ IT: "it",
181
+ JA: "ja",
182
+ KO: "ko",
183
+ PT: "pt",
184
+ ZH: "zh",
185
+ ZH_TW: "zh-TW",
186
+ };
197
187
  class UnsupportedDisplayLanguageCodeException extends TranslateServiceException_1.TranslateServiceException {
198
188
  constructor(opts) {
199
189
  super({
@@ -26,24 +26,21 @@ export class ConflictException extends __BaseException {
26
26
  this.Message = opts.Message;
27
27
  }
28
28
  }
29
- export var EncryptionKeyType;
30
- (function (EncryptionKeyType) {
31
- EncryptionKeyType["KMS"] = "KMS";
32
- })(EncryptionKeyType || (EncryptionKeyType = {}));
33
- export var ParallelDataFormat;
34
- (function (ParallelDataFormat) {
35
- ParallelDataFormat["CSV"] = "CSV";
36
- ParallelDataFormat["TMX"] = "TMX";
37
- ParallelDataFormat["TSV"] = "TSV";
38
- })(ParallelDataFormat || (ParallelDataFormat = {}));
39
- export var ParallelDataStatus;
40
- (function (ParallelDataStatus) {
41
- ParallelDataStatus["ACTIVE"] = "ACTIVE";
42
- ParallelDataStatus["CREATING"] = "CREATING";
43
- ParallelDataStatus["DELETING"] = "DELETING";
44
- ParallelDataStatus["FAILED"] = "FAILED";
45
- ParallelDataStatus["UPDATING"] = "UPDATING";
46
- })(ParallelDataStatus || (ParallelDataStatus = {}));
29
+ export const EncryptionKeyType = {
30
+ KMS: "KMS",
31
+ };
32
+ export const ParallelDataFormat = {
33
+ CSV: "CSV",
34
+ TMX: "TMX",
35
+ TSV: "TSV",
36
+ };
37
+ export const ParallelDataStatus = {
38
+ ACTIVE: "ACTIVE",
39
+ CREATING: "CREATING",
40
+ DELETING: "DELETING",
41
+ FAILED: "FAILED",
42
+ UPDATING: "UPDATING",
43
+ };
47
44
  export class InternalServerException extends __BaseException {
48
45
  constructor(opts) {
49
46
  super({
@@ -135,53 +132,46 @@ export class ResourceNotFoundException extends __BaseException {
135
132
  this.Message = opts.Message;
136
133
  }
137
134
  }
138
- export var JobStatus;
139
- (function (JobStatus) {
140
- JobStatus["COMPLETED"] = "COMPLETED";
141
- JobStatus["COMPLETED_WITH_ERROR"] = "COMPLETED_WITH_ERROR";
142
- JobStatus["FAILED"] = "FAILED";
143
- JobStatus["IN_PROGRESS"] = "IN_PROGRESS";
144
- JobStatus["STOPPED"] = "STOPPED";
145
- JobStatus["STOP_REQUESTED"] = "STOP_REQUESTED";
146
- JobStatus["SUBMITTED"] = "SUBMITTED";
147
- })(JobStatus || (JobStatus = {}));
148
- export var Formality;
149
- (function (Formality) {
150
- Formality["FORMAL"] = "FORMAL";
151
- Formality["INFORMAL"] = "INFORMAL";
152
- })(Formality || (Formality = {}));
153
- export var Profanity;
154
- (function (Profanity) {
155
- Profanity["MASK"] = "MASK";
156
- })(Profanity || (Profanity = {}));
157
- export var TerminologyDataFormat;
158
- (function (TerminologyDataFormat) {
159
- TerminologyDataFormat["CSV"] = "CSV";
160
- TerminologyDataFormat["TMX"] = "TMX";
161
- TerminologyDataFormat["TSV"] = "TSV";
162
- })(TerminologyDataFormat || (TerminologyDataFormat = {}));
163
- export var Directionality;
164
- (function (Directionality) {
165
- Directionality["MULTI"] = "MULTI";
166
- Directionality["UNI"] = "UNI";
167
- })(Directionality || (Directionality = {}));
168
- export var MergeStrategy;
169
- (function (MergeStrategy) {
170
- MergeStrategy["OVERWRITE"] = "OVERWRITE";
171
- })(MergeStrategy || (MergeStrategy = {}));
172
- export var DisplayLanguageCode;
173
- (function (DisplayLanguageCode) {
174
- DisplayLanguageCode["DE"] = "de";
175
- DisplayLanguageCode["EN"] = "en";
176
- DisplayLanguageCode["ES"] = "es";
177
- DisplayLanguageCode["FR"] = "fr";
178
- DisplayLanguageCode["IT"] = "it";
179
- DisplayLanguageCode["JA"] = "ja";
180
- DisplayLanguageCode["KO"] = "ko";
181
- DisplayLanguageCode["PT"] = "pt";
182
- DisplayLanguageCode["ZH"] = "zh";
183
- DisplayLanguageCode["ZH_TW"] = "zh-TW";
184
- })(DisplayLanguageCode || (DisplayLanguageCode = {}));
135
+ export const JobStatus = {
136
+ COMPLETED: "COMPLETED",
137
+ COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
138
+ FAILED: "FAILED",
139
+ IN_PROGRESS: "IN_PROGRESS",
140
+ STOPPED: "STOPPED",
141
+ STOP_REQUESTED: "STOP_REQUESTED",
142
+ SUBMITTED: "SUBMITTED",
143
+ };
144
+ export const Formality = {
145
+ FORMAL: "FORMAL",
146
+ INFORMAL: "INFORMAL",
147
+ };
148
+ export const Profanity = {
149
+ MASK: "MASK",
150
+ };
151
+ export const TerminologyDataFormat = {
152
+ CSV: "CSV",
153
+ TMX: "TMX",
154
+ TSV: "TSV",
155
+ };
156
+ export const Directionality = {
157
+ MULTI: "MULTI",
158
+ UNI: "UNI",
159
+ };
160
+ export const MergeStrategy = {
161
+ OVERWRITE: "OVERWRITE",
162
+ };
163
+ export const DisplayLanguageCode = {
164
+ DE: "de",
165
+ EN: "en",
166
+ ES: "es",
167
+ FR: "fr",
168
+ IT: "it",
169
+ JA: "ja",
170
+ KO: "ko",
171
+ PT: "pt",
172
+ ZH: "zh",
173
+ ZH_TW: "zh-TW",
174
+ };
185
175
  export class UnsupportedDisplayLanguageCodeException extends __BaseException {
186
176
  constructor(opts) {
187
177
  super({
@@ -63,10 +63,15 @@ export declare class ConflictException extends __BaseException {
63
63
  }
64
64
  /**
65
65
  * @public
66
+ * @enum
66
67
  */
67
- export declare enum EncryptionKeyType {
68
- KMS = "KMS"
69
- }
68
+ export declare const EncryptionKeyType: {
69
+ readonly KMS: "KMS";
70
+ };
71
+ /**
72
+ * @public
73
+ */
74
+ export type EncryptionKeyType = (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
70
75
  /**
71
76
  * @public
72
77
  * <p>The encryption key used to encrypt this object.</p>
@@ -83,12 +88,17 @@ export interface EncryptionKey {
83
88
  }
84
89
  /**
85
90
  * @public
91
+ * @enum
86
92
  */
87
- export declare enum ParallelDataFormat {
88
- CSV = "CSV",
89
- TMX = "TMX",
90
- TSV = "TSV"
91
- }
93
+ export declare const ParallelDataFormat: {
94
+ readonly CSV: "CSV";
95
+ readonly TMX: "TMX";
96
+ readonly TSV: "TSV";
97
+ };
98
+ /**
99
+ * @public
100
+ */
101
+ export type ParallelDataFormat = (typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
92
102
  /**
93
103
  * @public
94
104
  * <p>Specifies the format and S3 location of the parallel data input file.</p>
@@ -155,14 +165,19 @@ export interface CreateParallelDataRequest {
155
165
  }
156
166
  /**
157
167
  * @public
168
+ * @enum
158
169
  */
159
- export declare enum ParallelDataStatus {
160
- ACTIVE = "ACTIVE",
161
- CREATING = "CREATING",
162
- DELETING = "DELETING",
163
- FAILED = "FAILED",
164
- UPDATING = "UPDATING"
165
- }
170
+ export declare const ParallelDataStatus: {
171
+ readonly ACTIVE: "ACTIVE";
172
+ readonly CREATING: "CREATING";
173
+ readonly DELETING: "DELETING";
174
+ readonly FAILED: "FAILED";
175
+ readonly UPDATING: "UPDATING";
176
+ };
177
+ /**
178
+ * @public
179
+ */
180
+ export type ParallelDataStatus = (typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
166
181
  /**
167
182
  * @public
168
183
  */
@@ -393,16 +408,21 @@ export interface JobDetails {
393
408
  }
394
409
  /**
395
410
  * @public
411
+ * @enum
396
412
  */
397
- export declare enum JobStatus {
398
- COMPLETED = "COMPLETED",
399
- COMPLETED_WITH_ERROR = "COMPLETED_WITH_ERROR",
400
- FAILED = "FAILED",
401
- IN_PROGRESS = "IN_PROGRESS",
402
- STOPPED = "STOPPED",
403
- STOP_REQUESTED = "STOP_REQUESTED",
404
- SUBMITTED = "SUBMITTED"
405
- }
413
+ export declare const JobStatus: {
414
+ readonly COMPLETED: "COMPLETED";
415
+ readonly COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR";
416
+ readonly FAILED: "FAILED";
417
+ readonly IN_PROGRESS: "IN_PROGRESS";
418
+ readonly STOPPED: "STOPPED";
419
+ readonly STOP_REQUESTED: "STOP_REQUESTED";
420
+ readonly SUBMITTED: "SUBMITTED";
421
+ };
422
+ /**
423
+ * @public
424
+ */
425
+ export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
406
426
  /**
407
427
  * @public
408
428
  * <p>The output configuration properties for a batch translation job.</p>
@@ -420,17 +440,27 @@ export interface OutputDataConfig {
420
440
  }
421
441
  /**
422
442
  * @public
443
+ * @enum
423
444
  */
424
- export declare enum Formality {
425
- FORMAL = "FORMAL",
426
- INFORMAL = "INFORMAL"
427
- }
445
+ export declare const Formality: {
446
+ readonly FORMAL: "FORMAL";
447
+ readonly INFORMAL: "INFORMAL";
448
+ };
428
449
  /**
429
450
  * @public
430
451
  */
431
- export declare enum Profanity {
432
- MASK = "MASK"
433
- }
452
+ export type Formality = (typeof Formality)[keyof typeof Formality];
453
+ /**
454
+ * @public
455
+ * @enum
456
+ */
457
+ export declare const Profanity: {
458
+ readonly MASK: "MASK";
459
+ };
460
+ /**
461
+ * @public
462
+ */
463
+ export type Profanity = (typeof Profanity)[keyof typeof Profanity];
434
464
  /**
435
465
  * @public
436
466
  * <p>Optional settings that configure the translation output. Use these settings for
@@ -706,12 +736,17 @@ export interface GetParallelDataResponse {
706
736
  }
707
737
  /**
708
738
  * @public
739
+ * @enum
709
740
  */
710
- export declare enum TerminologyDataFormat {
711
- CSV = "CSV",
712
- TMX = "TMX",
713
- TSV = "TSV"
714
- }
741
+ export declare const TerminologyDataFormat: {
742
+ readonly CSV: "CSV";
743
+ readonly TMX: "TMX";
744
+ readonly TSV: "TSV";
745
+ };
746
+ /**
747
+ * @public
748
+ */
749
+ export type TerminologyDataFormat = (typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
715
750
  /**
716
751
  * @public
717
752
  */
@@ -758,11 +793,16 @@ export interface TerminologyDataLocation {
758
793
  }
759
794
  /**
760
795
  * @public
796
+ * @enum
761
797
  */
762
- export declare enum Directionality {
763
- MULTI = "MULTI",
764
- UNI = "UNI"
765
- }
798
+ export declare const Directionality: {
799
+ readonly MULTI: "MULTI";
800
+ readonly UNI: "UNI";
801
+ };
802
+ /**
803
+ * @public
804
+ */
805
+ export type Directionality = (typeof Directionality)[keyof typeof Directionality];
766
806
  /**
767
807
  * @public
768
808
  * <p>The properties of the custom terminology.</p>
@@ -874,10 +914,15 @@ export interface GetTerminologyResponse {
874
914
  }
875
915
  /**
876
916
  * @public
917
+ * @enum
877
918
  */
878
- export declare enum MergeStrategy {
879
- OVERWRITE = "OVERWRITE"
880
- }
919
+ export declare const MergeStrategy: {
920
+ readonly OVERWRITE: "OVERWRITE";
921
+ };
922
+ /**
923
+ * @public
924
+ */
925
+ export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
881
926
  /**
882
927
  * @public
883
928
  * <p>The data associated with the custom terminology. For information about the custom terminology file, see
@@ -970,19 +1015,24 @@ export interface ImportTerminologyResponse {
970
1015
  }
971
1016
  /**
972
1017
  * @public
1018
+ * @enum
973
1019
  */
974
- export declare enum DisplayLanguageCode {
975
- DE = "de",
976
- EN = "en",
977
- ES = "es",
978
- FR = "fr",
979
- IT = "it",
980
- JA = "ja",
981
- KO = "ko",
982
- PT = "pt",
983
- ZH = "zh",
984
- ZH_TW = "zh-TW"
985
- }
1020
+ export declare const DisplayLanguageCode: {
1021
+ readonly DE: "de";
1022
+ readonly EN: "en";
1023
+ readonly ES: "es";
1024
+ readonly FR: "fr";
1025
+ readonly IT: "it";
1026
+ readonly JA: "ja";
1027
+ readonly KO: "ko";
1028
+ readonly PT: "pt";
1029
+ readonly ZH: "zh";
1030
+ readonly ZH_TW: "zh-TW";
1031
+ };
1032
+ /**
1033
+ * @public
1034
+ */
1035
+ export type DisplayLanguageCode = (typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
986
1036
  /**
987
1037
  * @public
988
1038
  */
@@ -25,18 +25,22 @@ export declare class ConflictException extends __BaseException {
25
25
  Message?: string;
26
26
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
27
27
  }
28
- export declare enum EncryptionKeyType {
29
- KMS = "KMS",
30
- }
28
+ export declare const EncryptionKeyType: {
29
+ readonly KMS: "KMS";
30
+ };
31
+ export type EncryptionKeyType =
32
+ (typeof EncryptionKeyType)[keyof typeof EncryptionKeyType];
31
33
  export interface EncryptionKey {
32
34
  Type: EncryptionKeyType | string | undefined;
33
35
  Id: string | undefined;
34
36
  }
35
- export declare enum ParallelDataFormat {
36
- CSV = "CSV",
37
- TMX = "TMX",
38
- TSV = "TSV",
39
- }
37
+ export declare const ParallelDataFormat: {
38
+ readonly CSV: "CSV";
39
+ readonly TMX: "TMX";
40
+ readonly TSV: "TSV";
41
+ };
42
+ export type ParallelDataFormat =
43
+ (typeof ParallelDataFormat)[keyof typeof ParallelDataFormat];
40
44
  export interface ParallelDataConfig {
41
45
  S3Uri: string | undefined;
42
46
  Format: ParallelDataFormat | string | undefined;
@@ -53,13 +57,15 @@ export interface CreateParallelDataRequest {
53
57
  ClientToken?: string;
54
58
  Tags?: Tag[];
55
59
  }
56
- export declare enum ParallelDataStatus {
57
- ACTIVE = "ACTIVE",
58
- CREATING = "CREATING",
59
- DELETING = "DELETING",
60
- FAILED = "FAILED",
61
- UPDATING = "UPDATING",
62
- }
60
+ export declare const ParallelDataStatus: {
61
+ readonly ACTIVE: "ACTIVE";
62
+ readonly CREATING: "CREATING";
63
+ readonly DELETING: "DELETING";
64
+ readonly FAILED: "FAILED";
65
+ readonly UPDATING: "UPDATING";
66
+ };
67
+ export type ParallelDataStatus =
68
+ (typeof ParallelDataStatus)[keyof typeof ParallelDataStatus];
63
69
  export interface CreateParallelDataResponse {
64
70
  Name?: string;
65
71
  Status?: ParallelDataStatus | string;
@@ -142,26 +148,29 @@ export interface JobDetails {
142
148
  DocumentsWithErrorsCount?: number;
143
149
  InputDocumentsCount?: number;
144
150
  }
145
- export declare enum JobStatus {
146
- COMPLETED = "COMPLETED",
147
- COMPLETED_WITH_ERROR = "COMPLETED_WITH_ERROR",
148
- FAILED = "FAILED",
149
- IN_PROGRESS = "IN_PROGRESS",
150
- STOPPED = "STOPPED",
151
- STOP_REQUESTED = "STOP_REQUESTED",
152
- SUBMITTED = "SUBMITTED",
153
- }
151
+ export declare const JobStatus: {
152
+ readonly COMPLETED: "COMPLETED";
153
+ readonly COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR";
154
+ readonly FAILED: "FAILED";
155
+ readonly IN_PROGRESS: "IN_PROGRESS";
156
+ readonly STOPPED: "STOPPED";
157
+ readonly STOP_REQUESTED: "STOP_REQUESTED";
158
+ readonly SUBMITTED: "SUBMITTED";
159
+ };
160
+ export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
154
161
  export interface OutputDataConfig {
155
162
  S3Uri: string | undefined;
156
163
  EncryptionKey?: EncryptionKey;
157
164
  }
158
- export declare enum Formality {
159
- FORMAL = "FORMAL",
160
- INFORMAL = "INFORMAL",
161
- }
162
- export declare enum Profanity {
163
- MASK = "MASK",
164
- }
165
+ export declare const Formality: {
166
+ readonly FORMAL: "FORMAL";
167
+ readonly INFORMAL: "INFORMAL";
168
+ };
169
+ export type Formality = (typeof Formality)[keyof typeof Formality];
170
+ export declare const Profanity: {
171
+ readonly MASK: "MASK";
172
+ };
173
+ export type Profanity = (typeof Profanity)[keyof typeof Profanity];
165
174
  export interface TranslationSettings {
166
175
  Formality?: Formality | string;
167
176
  Profanity?: Profanity | string;
@@ -218,11 +227,13 @@ export interface GetParallelDataResponse {
218
227
  AuxiliaryDataLocation?: ParallelDataDataLocation;
219
228
  LatestUpdateAttemptAuxiliaryDataLocation?: ParallelDataDataLocation;
220
229
  }
221
- export declare enum TerminologyDataFormat {
222
- CSV = "CSV",
223
- TMX = "TMX",
224
- TSV = "TSV",
225
- }
230
+ export declare const TerminologyDataFormat: {
231
+ readonly CSV: "CSV";
232
+ readonly TMX: "TMX";
233
+ readonly TSV: "TSV";
234
+ };
235
+ export type TerminologyDataFormat =
236
+ (typeof TerminologyDataFormat)[keyof typeof TerminologyDataFormat];
226
237
  export interface GetTerminologyRequest {
227
238
  Name: string | undefined;
228
239
  TerminologyDataFormat?: TerminologyDataFormat | string;
@@ -231,10 +242,12 @@ export interface TerminologyDataLocation {
231
242
  RepositoryType: string | undefined;
232
243
  Location: string | undefined;
233
244
  }
234
- export declare enum Directionality {
235
- MULTI = "MULTI",
236
- UNI = "UNI",
237
- }
245
+ export declare const Directionality: {
246
+ readonly MULTI: "MULTI";
247
+ readonly UNI: "UNI";
248
+ };
249
+ export type Directionality =
250
+ (typeof Directionality)[keyof typeof Directionality];
238
251
  export interface TerminologyProperties {
239
252
  Name?: string;
240
253
  Description?: string;
@@ -256,9 +269,10 @@ export interface GetTerminologyResponse {
256
269
  TerminologyDataLocation?: TerminologyDataLocation;
257
270
  AuxiliaryDataLocation?: TerminologyDataLocation;
258
271
  }
259
- export declare enum MergeStrategy {
260
- OVERWRITE = "OVERWRITE",
261
- }
272
+ export declare const MergeStrategy: {
273
+ readonly OVERWRITE: "OVERWRITE";
274
+ };
275
+ export type MergeStrategy = (typeof MergeStrategy)[keyof typeof MergeStrategy];
262
276
  export interface TerminologyData {
263
277
  File: Uint8Array | undefined;
264
278
  Format: TerminologyDataFormat | string | undefined;
@@ -276,18 +290,20 @@ export interface ImportTerminologyResponse {
276
290
  TerminologyProperties?: TerminologyProperties;
277
291
  AuxiliaryDataLocation?: TerminologyDataLocation;
278
292
  }
279
- export declare enum DisplayLanguageCode {
280
- DE = "de",
281
- EN = "en",
282
- ES = "es",
283
- FR = "fr",
284
- IT = "it",
285
- JA = "ja",
286
- KO = "ko",
287
- PT = "pt",
288
- ZH = "zh",
289
- ZH_TW = "zh-TW",
290
- }
293
+ export declare const DisplayLanguageCode: {
294
+ readonly DE: "de";
295
+ readonly EN: "en";
296
+ readonly ES: "es";
297
+ readonly FR: "fr";
298
+ readonly IT: "it";
299
+ readonly JA: "ja";
300
+ readonly KO: "ko";
301
+ readonly PT: "pt";
302
+ readonly ZH: "zh";
303
+ readonly ZH_TW: "zh-TW";
304
+ };
305
+ export type DisplayLanguageCode =
306
+ (typeof DisplayLanguageCode)[keyof typeof DisplayLanguageCode];
291
307
  export interface ListLanguagesRequest {
292
308
  DisplayLanguageCode?: DisplayLanguageCode | string;
293
309
  NextToken?: string;
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.301.0",
4
+ "version": "3.303.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",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",