@aws-sdk/client-translate 3.750.0 → 3.772.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 +26 -26
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
Brevity: () => Brevity,
|
|
25
25
|
ConcurrentModificationException: () => ConcurrentModificationException,
|
|
26
26
|
ConflictException: () => ConflictException,
|
|
@@ -81,7 +81,7 @@ __export(src_exports, {
|
|
|
81
81
|
paginateListTerminologies: () => paginateListTerminologies,
|
|
82
82
|
paginateListTextTranslationJobs: () => paginateListTextTranslationJobs
|
|
83
83
|
});
|
|
84
|
-
module.exports = __toCommonJS(
|
|
84
|
+
module.exports = __toCommonJS(index_exports);
|
|
85
85
|
|
|
86
86
|
// src/TranslateClient.ts
|
|
87
87
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
@@ -208,9 +208,9 @@ var TranslateClient = class extends import_smithy_client.Client {
|
|
|
208
208
|
this.middlewareStack.use(
|
|
209
209
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
210
210
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultTranslateHttpAuthSchemeParametersProvider,
|
|
211
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
211
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
212
212
|
"aws.auth#sigv4": config.credentials
|
|
213
|
-
})
|
|
213
|
+
}), "identityProviderConfigProvider")
|
|
214
214
|
})
|
|
215
215
|
);
|
|
216
216
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -1243,12 +1243,12 @@ var se_ImportTerminologyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
1243
1243
|
MergeStrategy: [],
|
|
1244
1244
|
Name: [],
|
|
1245
1245
|
Tags: import_smithy_client._json,
|
|
1246
|
-
TerminologyData: (_) => se_TerminologyData(_, context)
|
|
1246
|
+
TerminologyData: /* @__PURE__ */ __name((_) => se_TerminologyData(_, context), "TerminologyData")
|
|
1247
1247
|
});
|
|
1248
1248
|
}, "se_ImportTerminologyRequest");
|
|
1249
1249
|
var se_ListTextTranslationJobsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1250
1250
|
return (0, import_smithy_client.take)(input, {
|
|
1251
|
-
Filter: (_) => se_TextTranslationJobFilter(_, context),
|
|
1251
|
+
Filter: /* @__PURE__ */ __name((_) => se_TextTranslationJobFilter(_, context), "Filter"),
|
|
1252
1252
|
MaxResults: [],
|
|
1253
1253
|
NextToken: []
|
|
1254
1254
|
});
|
|
@@ -1278,13 +1278,13 @@ var se_TextTranslationJobFilter = /* @__PURE__ */ __name((input, context) => {
|
|
|
1278
1278
|
return (0, import_smithy_client.take)(input, {
|
|
1279
1279
|
JobName: [],
|
|
1280
1280
|
JobStatus: [],
|
|
1281
|
-
SubmittedAfterTime: (_) => _.getTime() / 1e3,
|
|
1282
|
-
SubmittedBeforeTime: (_) => _.getTime() / 1e3
|
|
1281
|
+
SubmittedAfterTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "SubmittedAfterTime"),
|
|
1282
|
+
SubmittedBeforeTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "SubmittedBeforeTime")
|
|
1283
1283
|
});
|
|
1284
1284
|
}, "se_TextTranslationJobFilter");
|
|
1285
1285
|
var se_TranslateDocumentRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1286
1286
|
return (0, import_smithy_client.take)(input, {
|
|
1287
|
-
Document: (_) => se_Document(_, context),
|
|
1287
|
+
Document: /* @__PURE__ */ __name((_) => se_Document(_, context), "Document"),
|
|
1288
1288
|
Settings: import_smithy_client._json,
|
|
1289
1289
|
SourceLanguageCode: [],
|
|
1290
1290
|
TargetLanguageCode: [],
|
|
@@ -1301,7 +1301,7 @@ var se_UpdateParallelDataRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
1301
1301
|
}, "se_UpdateParallelDataRequest");
|
|
1302
1302
|
var de_DescribeTextTranslationJobResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1303
1303
|
return (0, import_smithy_client.take)(output, {
|
|
1304
|
-
TextTranslationJobProperties: (_) => de_TextTranslationJobProperties(_, context)
|
|
1304
|
+
TextTranslationJobProperties: /* @__PURE__ */ __name((_) => de_TextTranslationJobProperties(_, context), "TextTranslationJobProperties")
|
|
1305
1305
|
});
|
|
1306
1306
|
}, "de_DescribeTextTranslationJobResponse");
|
|
1307
1307
|
var de_GetParallelDataResponse = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1309,51 +1309,51 @@ var de_GetParallelDataResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
1309
1309
|
AuxiliaryDataLocation: import_smithy_client._json,
|
|
1310
1310
|
DataLocation: import_smithy_client._json,
|
|
1311
1311
|
LatestUpdateAttemptAuxiliaryDataLocation: import_smithy_client._json,
|
|
1312
|
-
ParallelDataProperties: (_) => de_ParallelDataProperties(_, context)
|
|
1312
|
+
ParallelDataProperties: /* @__PURE__ */ __name((_) => de_ParallelDataProperties(_, context), "ParallelDataProperties")
|
|
1313
1313
|
});
|
|
1314
1314
|
}, "de_GetParallelDataResponse");
|
|
1315
1315
|
var de_GetTerminologyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1316
1316
|
return (0, import_smithy_client.take)(output, {
|
|
1317
1317
|
AuxiliaryDataLocation: import_smithy_client._json,
|
|
1318
1318
|
TerminologyDataLocation: import_smithy_client._json,
|
|
1319
|
-
TerminologyProperties: (_) => de_TerminologyProperties(_, context)
|
|
1319
|
+
TerminologyProperties: /* @__PURE__ */ __name((_) => de_TerminologyProperties(_, context), "TerminologyProperties")
|
|
1320
1320
|
});
|
|
1321
1321
|
}, "de_GetTerminologyResponse");
|
|
1322
1322
|
var de_ImportTerminologyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1323
1323
|
return (0, import_smithy_client.take)(output, {
|
|
1324
1324
|
AuxiliaryDataLocation: import_smithy_client._json,
|
|
1325
|
-
TerminologyProperties: (_) => de_TerminologyProperties(_, context)
|
|
1325
|
+
TerminologyProperties: /* @__PURE__ */ __name((_) => de_TerminologyProperties(_, context), "TerminologyProperties")
|
|
1326
1326
|
});
|
|
1327
1327
|
}, "de_ImportTerminologyResponse");
|
|
1328
1328
|
var de_ListParallelDataResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1329
1329
|
return (0, import_smithy_client.take)(output, {
|
|
1330
1330
|
NextToken: import_smithy_client.expectString,
|
|
1331
|
-
ParallelDataPropertiesList: (_) => de_ParallelDataPropertiesList(_, context)
|
|
1331
|
+
ParallelDataPropertiesList: /* @__PURE__ */ __name((_) => de_ParallelDataPropertiesList(_, context), "ParallelDataPropertiesList")
|
|
1332
1332
|
});
|
|
1333
1333
|
}, "de_ListParallelDataResponse");
|
|
1334
1334
|
var de_ListTerminologiesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1335
1335
|
return (0, import_smithy_client.take)(output, {
|
|
1336
1336
|
NextToken: import_smithy_client.expectString,
|
|
1337
|
-
TerminologyPropertiesList: (_) => de_TerminologyPropertiesList(_, context)
|
|
1337
|
+
TerminologyPropertiesList: /* @__PURE__ */ __name((_) => de_TerminologyPropertiesList(_, context), "TerminologyPropertiesList")
|
|
1338
1338
|
});
|
|
1339
1339
|
}, "de_ListTerminologiesResponse");
|
|
1340
1340
|
var de_ListTextTranslationJobsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1341
1341
|
return (0, import_smithy_client.take)(output, {
|
|
1342
1342
|
NextToken: import_smithy_client.expectString,
|
|
1343
|
-
TextTranslationJobPropertiesList: (_) => de_TextTranslationJobPropertiesList(_, context)
|
|
1343
|
+
TextTranslationJobPropertiesList: /* @__PURE__ */ __name((_) => de_TextTranslationJobPropertiesList(_, context), "TextTranslationJobPropertiesList")
|
|
1344
1344
|
});
|
|
1345
1345
|
}, "de_ListTextTranslationJobsResponse");
|
|
1346
1346
|
var de_ParallelDataProperties = /* @__PURE__ */ __name((output, context) => {
|
|
1347
1347
|
return (0, import_smithy_client.take)(output, {
|
|
1348
1348
|
Arn: import_smithy_client.expectString,
|
|
1349
|
-
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1349
|
+
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
1350
1350
|
Description: import_smithy_client.expectString,
|
|
1351
1351
|
EncryptionKey: import_smithy_client._json,
|
|
1352
1352
|
FailedRecordCount: import_smithy_client.expectLong,
|
|
1353
1353
|
ImportedDataSize: import_smithy_client.expectLong,
|
|
1354
1354
|
ImportedRecordCount: import_smithy_client.expectLong,
|
|
1355
|
-
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1356
|
-
LatestUpdateAttemptAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1355
|
+
LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
|
|
1356
|
+
LatestUpdateAttemptAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LatestUpdateAttemptAt"),
|
|
1357
1357
|
LatestUpdateAttemptStatus: import_smithy_client.expectString,
|
|
1358
1358
|
Message: import_smithy_client.expectString,
|
|
1359
1359
|
Name: import_smithy_client.expectString,
|
|
@@ -1373,12 +1373,12 @@ var de_ParallelDataPropertiesList = /* @__PURE__ */ __name((output, context) =>
|
|
|
1373
1373
|
var de_TerminologyProperties = /* @__PURE__ */ __name((output, context) => {
|
|
1374
1374
|
return (0, import_smithy_client.take)(output, {
|
|
1375
1375
|
Arn: import_smithy_client.expectString,
|
|
1376
|
-
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1376
|
+
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
1377
1377
|
Description: import_smithy_client.expectString,
|
|
1378
1378
|
Directionality: import_smithy_client.expectString,
|
|
1379
1379
|
EncryptionKey: import_smithy_client._json,
|
|
1380
1380
|
Format: import_smithy_client.expectString,
|
|
1381
|
-
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1381
|
+
LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
|
|
1382
1382
|
Message: import_smithy_client.expectString,
|
|
1383
1383
|
Name: import_smithy_client.expectString,
|
|
1384
1384
|
SizeBytes: import_smithy_client.expectInt32,
|
|
@@ -1397,7 +1397,7 @@ var de_TerminologyPropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
|
1397
1397
|
var de_TextTranslationJobProperties = /* @__PURE__ */ __name((output, context) => {
|
|
1398
1398
|
return (0, import_smithy_client.take)(output, {
|
|
1399
1399
|
DataAccessRoleArn: import_smithy_client.expectString,
|
|
1400
|
-
EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1400
|
+
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
1401
1401
|
InputDataConfig: import_smithy_client._json,
|
|
1402
1402
|
JobDetails: import_smithy_client._json,
|
|
1403
1403
|
JobId: import_smithy_client.expectString,
|
|
@@ -1408,7 +1408,7 @@ var de_TextTranslationJobProperties = /* @__PURE__ */ __name((output, context) =
|
|
|
1408
1408
|
ParallelDataNames: import_smithy_client._json,
|
|
1409
1409
|
Settings: import_smithy_client._json,
|
|
1410
1410
|
SourceLanguageCode: import_smithy_client.expectString,
|
|
1411
|
-
SubmittedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1411
|
+
SubmittedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SubmittedTime"),
|
|
1412
1412
|
TargetLanguageCodes: import_smithy_client._json,
|
|
1413
1413
|
TerminologyNames: import_smithy_client._json
|
|
1414
1414
|
});
|
|
@@ -1430,12 +1430,12 @@ var de_TranslateDocumentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
1430
1430
|
AppliedTerminologies: import_smithy_client._json,
|
|
1431
1431
|
SourceLanguageCode: import_smithy_client.expectString,
|
|
1432
1432
|
TargetLanguageCode: import_smithy_client.expectString,
|
|
1433
|
-
TranslatedDocument: (_) => de_TranslatedDocument(_, context)
|
|
1433
|
+
TranslatedDocument: /* @__PURE__ */ __name((_) => de_TranslatedDocument(_, context), "TranslatedDocument")
|
|
1434
1434
|
});
|
|
1435
1435
|
}, "de_TranslateDocumentResponse");
|
|
1436
1436
|
var de_UpdateParallelDataResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1437
1437
|
return (0, import_smithy_client.take)(output, {
|
|
1438
|
-
LatestUpdateAttemptAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1438
|
+
LatestUpdateAttemptAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LatestUpdateAttemptAt"),
|
|
1439
1439
|
LatestUpdateAttemptStatus: import_smithy_client.expectString,
|
|
1440
1440
|
Name: import_smithy_client.expectString,
|
|
1441
1441
|
Status: import_smithy_client.expectString
|
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.772.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-translate",
|
|
@@ -20,38 +20,38 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.758.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.772.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.772.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.758.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
30
30
|
"@aws-sdk/types": "3.734.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.743.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.758.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.0.1",
|
|
35
|
-
"@smithy/core": "^3.1.
|
|
35
|
+
"@smithy/core": "^3.1.5",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.1",
|
|
37
37
|
"@smithy/hash-node": "^4.0.1",
|
|
38
38
|
"@smithy/invalid-dependency": "^4.0.1",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.0.1",
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.0.
|
|
41
|
-
"@smithy/middleware-retry": "^4.0.
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.0.6",
|
|
41
|
+
"@smithy/middleware-retry": "^4.0.7",
|
|
42
42
|
"@smithy/middleware-serde": "^4.0.2",
|
|
43
43
|
"@smithy/middleware-stack": "^4.0.1",
|
|
44
44
|
"@smithy/node-config-provider": "^4.0.1",
|
|
45
|
-
"@smithy/node-http-handler": "^4.0.
|
|
45
|
+
"@smithy/node-http-handler": "^4.0.3",
|
|
46
46
|
"@smithy/protocol-http": "^5.0.1",
|
|
47
|
-
"@smithy/smithy-client": "^4.1.
|
|
47
|
+
"@smithy/smithy-client": "^4.1.6",
|
|
48
48
|
"@smithy/types": "^4.1.0",
|
|
49
49
|
"@smithy/url-parser": "^4.0.1",
|
|
50
50
|
"@smithy/util-base64": "^4.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.0.7",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.0.7",
|
|
55
55
|
"@smithy/util-endpoints": "^3.0.1",
|
|
56
56
|
"@smithy/util-middleware": "^4.0.1",
|
|
57
57
|
"@smithy/util-retry": "^4.0.1",
|