@aws-sdk/client-translate 3.29.0 → 3.33.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 +32 -0
- package/dist/cjs/TranslateClient.js +13 -13
- package/dist/cjs/TranslateClient.js.map +1 -1
- package/dist/cjs/commands/CreateParallelDataCommand.js +3 -3
- package/dist/cjs/commands/CreateParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteParallelDataCommand.js +3 -3
- package/dist/cjs/commands/DeleteParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTerminologyCommand.js +3 -3
- package/dist/cjs/commands/DeleteTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/DescribeTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/GetParallelDataCommand.js +3 -3
- package/dist/cjs/commands/GetParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/GetTerminologyCommand.js +3 -3
- package/dist/cjs/commands/GetTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/ImportTerminologyCommand.js +3 -3
- package/dist/cjs/commands/ImportTerminologyCommand.js.map +1 -1
- package/dist/cjs/commands/ListParallelDataCommand.js +3 -3
- package/dist/cjs/commands/ListParallelDataCommand.js.map +1 -1
- package/dist/cjs/commands/ListTerminologiesCommand.js +3 -3
- package/dist/cjs/commands/ListTerminologiesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTextTranslationJobsCommand.js +3 -3
- package/dist/cjs/commands/ListTextTranslationJobsCommand.js.map +1 -1
- package/dist/cjs/commands/StartTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/StartTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/StopTextTranslationJobCommand.js +3 -3
- package/dist/cjs/commands/StopTextTranslationJobCommand.js.map +1 -1
- package/dist/cjs/commands/TranslateTextCommand.js +3 -3
- package/dist/cjs/commands/TranslateTextCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateParallelDataCommand.js +3 -3
- package/dist/cjs/commands/UpdateParallelDataCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_json1_1.js +89 -87
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/ListParallelDataPaginator.js +4 -4
- package/dist/es/pagination/ListParallelDataPaginator.js.map +1 -1
- package/dist/es/pagination/ListTerminologiesPaginator.js +4 -4
- package/dist/es/pagination/ListTerminologiesPaginator.js.map +1 -1
- package/dist/es/pagination/ListTextTranslationJobsPaginator.js +4 -4
- package/dist/es/pagination/ListTextTranslationJobsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +11 -9
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_json1_1.ts +13 -8
- package/tsconfig.json +1 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./TranslateClient"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./Translate"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands/CreateParallelDataCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands/DeleteParallelDataCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./commands/DeleteTerminologyCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./commands/DescribeTextTranslationJobCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./commands/GetParallelDataCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./commands/GetTerminologyCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./commands/ImportTerminologyCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./commands/ListParallelDataCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./pagination/ListParallelDataPaginator"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./commands/ListTerminologiesCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./pagination/ListTerminologiesPaginator"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./commands/ListTextTranslationJobsCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./pagination/ListTextTranslationJobsPaginator"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./commands/StartTextTranslationJobCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./commands/StopTextTranslationJobCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./commands/TranslateTextCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./commands/UpdateParallelDataCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./models/index"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,sDAA4B;AAC5B,+EAAqD;AACrD,+EAAqD;AACrD,8EAAoD;AACpD,uFAA6D;AAC7D,4EAAkD;AAClD,2EAAiD;AACjD,8EAAoD;AACpD,6EAAmD;AACnD,iFAAuD;AACvD,8EAAoD;AACpD,kFAAwD;AACxD,oFAA0D;AAC1D,wFAA8D;AAC9D,oFAA0D;AAC1D,mFAAyD;AACzD,0EAAgD;AAChD,+EAAqD;AACrD,kEAAwC;AACxC,yDAA+B"}
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
|
package/dist/cjs/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.33.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.33.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.33.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.33.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.33.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.33.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0",
|
|
59
59
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
62
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
63
63
|
"@types/node": "^12.7.5",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rimraf": "^3.0.0",
|
|
68
68
|
"ts-jest": "^26.4.1",
|
|
69
69
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.
|
|
70
|
+
"typescript": "~4.3.5"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=10.0.0"
|
|
@@ -1337,7 +1337,7 @@ const deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse = async (pa
|
|
|
1337
1337
|
const serializeAws_json1_1CreateParallelDataRequest = (input, context) => {
|
|
1338
1338
|
var _a;
|
|
1339
1339
|
return {
|
|
1340
|
-
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a :
|
|
1340
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1341
1341
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
1342
1342
|
...(input.EncryptionKey !== undefined &&
|
|
1343
1343
|
input.EncryptionKey !== null && {
|
|
@@ -1448,7 +1448,7 @@ const serializeAws_json1_1ResourceNameList = (input, context) => {
|
|
|
1448
1448
|
const serializeAws_json1_1StartTextTranslationJobRequest = (input, context) => {
|
|
1449
1449
|
var _a;
|
|
1450
1450
|
return {
|
|
1451
|
-
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a :
|
|
1451
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1452
1452
|
...(input.DataAccessRoleArn !== undefined &&
|
|
1453
1453
|
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1454
1454
|
...(input.InputDataConfig !== undefined &&
|
|
@@ -1527,7 +1527,7 @@ const serializeAws_json1_1TranslateTextRequest = (input, context) => {
|
|
|
1527
1527
|
const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
|
|
1528
1528
|
var _a;
|
|
1529
1529
|
return {
|
|
1530
|
-
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a :
|
|
1530
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1531
1531
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
1532
1532
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1533
1533
|
...(input.ParallelDataConfig !== undefined &&
|
|
@@ -1538,7 +1538,7 @@ const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
|
|
|
1538
1538
|
};
|
|
1539
1539
|
const deserializeAws_json1_1AppliedTerminology = (output, context) => {
|
|
1540
1540
|
return {
|
|
1541
|
-
Name:
|
|
1541
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1542
1542
|
Terms: output.Terms !== undefined && output.Terms !== null
|
|
1543
1543
|
? deserializeAws_json1_1TermList(output.Terms, context)
|
|
1544
1544
|
: undefined,
|
|
@@ -1556,24 +1556,24 @@ const deserializeAws_json1_1AppliedTerminologyList = (output, context) => {
|
|
|
1556
1556
|
};
|
|
1557
1557
|
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
1558
1558
|
return {
|
|
1559
|
-
Message:
|
|
1559
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
1562
|
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
1563
1563
|
return {
|
|
1564
|
-
Message:
|
|
1564
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1565
1565
|
};
|
|
1566
1566
|
};
|
|
1567
1567
|
const deserializeAws_json1_1CreateParallelDataResponse = (output, context) => {
|
|
1568
1568
|
return {
|
|
1569
|
-
Name:
|
|
1570
|
-
Status:
|
|
1569
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1570
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
1571
1571
|
};
|
|
1572
1572
|
};
|
|
1573
1573
|
const deserializeAws_json1_1DeleteParallelDataResponse = (output, context) => {
|
|
1574
1574
|
return {
|
|
1575
|
-
Name:
|
|
1576
|
-
Status:
|
|
1575
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1576
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
1577
1577
|
};
|
|
1578
1578
|
};
|
|
1579
1579
|
const deserializeAws_json1_1DescribeTextTranslationJobResponse = (output, context) => {
|
|
@@ -1585,14 +1585,14 @@ const deserializeAws_json1_1DescribeTextTranslationJobResponse = (output, contex
|
|
|
1585
1585
|
};
|
|
1586
1586
|
const deserializeAws_json1_1DetectedLanguageLowConfidenceException = (output, context) => {
|
|
1587
1587
|
return {
|
|
1588
|
-
DetectedLanguageCode:
|
|
1589
|
-
Message:
|
|
1588
|
+
DetectedLanguageCode: smithy_client_1.expectString(output.DetectedLanguageCode),
|
|
1589
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1590
1590
|
};
|
|
1591
1591
|
};
|
|
1592
1592
|
const deserializeAws_json1_1EncryptionKey = (output, context) => {
|
|
1593
1593
|
return {
|
|
1594
|
-
Id:
|
|
1595
|
-
Type:
|
|
1594
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
1595
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
1596
1596
|
};
|
|
1597
1597
|
};
|
|
1598
1598
|
const deserializeAws_json1_1GetParallelDataResponse = (output, context) => {
|
|
@@ -1631,35 +1631,35 @@ const deserializeAws_json1_1ImportTerminologyResponse = (output, context) => {
|
|
|
1631
1631
|
};
|
|
1632
1632
|
const deserializeAws_json1_1InputDataConfig = (output, context) => {
|
|
1633
1633
|
return {
|
|
1634
|
-
ContentType:
|
|
1635
|
-
S3Uri:
|
|
1634
|
+
ContentType: smithy_client_1.expectString(output.ContentType),
|
|
1635
|
+
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
1636
1636
|
};
|
|
1637
1637
|
};
|
|
1638
1638
|
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
1639
1639
|
return {
|
|
1640
|
-
Message:
|
|
1640
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1641
1641
|
};
|
|
1642
1642
|
};
|
|
1643
1643
|
const deserializeAws_json1_1InvalidFilterException = (output, context) => {
|
|
1644
1644
|
return {
|
|
1645
|
-
Message:
|
|
1645
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1646
1646
|
};
|
|
1647
1647
|
};
|
|
1648
1648
|
const deserializeAws_json1_1InvalidParameterValueException = (output, context) => {
|
|
1649
1649
|
return {
|
|
1650
|
-
Message:
|
|
1650
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1651
1651
|
};
|
|
1652
1652
|
};
|
|
1653
1653
|
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
1654
1654
|
return {
|
|
1655
|
-
Message:
|
|
1655
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1656
1656
|
};
|
|
1657
1657
|
};
|
|
1658
1658
|
const deserializeAws_json1_1JobDetails = (output, context) => {
|
|
1659
1659
|
return {
|
|
1660
|
-
DocumentsWithErrorsCount:
|
|
1661
|
-
InputDocumentsCount:
|
|
1662
|
-
TranslatedDocumentsCount:
|
|
1660
|
+
DocumentsWithErrorsCount: smithy_client_1.expectInt32(output.DocumentsWithErrorsCount),
|
|
1661
|
+
InputDocumentsCount: smithy_client_1.expectInt32(output.InputDocumentsCount),
|
|
1662
|
+
TranslatedDocumentsCount: smithy_client_1.expectInt32(output.TranslatedDocumentsCount),
|
|
1663
1663
|
};
|
|
1664
1664
|
};
|
|
1665
1665
|
const deserializeAws_json1_1LanguageCodeStringList = (output, context) => {
|
|
@@ -1669,17 +1669,17 @@ const deserializeAws_json1_1LanguageCodeStringList = (output, context) => {
|
|
|
1669
1669
|
if (entry === null) {
|
|
1670
1670
|
return null;
|
|
1671
1671
|
}
|
|
1672
|
-
return
|
|
1672
|
+
return smithy_client_1.expectString(entry);
|
|
1673
1673
|
});
|
|
1674
1674
|
};
|
|
1675
1675
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1676
1676
|
return {
|
|
1677
|
-
Message:
|
|
1677
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1678
1678
|
};
|
|
1679
1679
|
};
|
|
1680
1680
|
const deserializeAws_json1_1ListParallelDataResponse = (output, context) => {
|
|
1681
1681
|
return {
|
|
1682
|
-
NextToken:
|
|
1682
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1683
1683
|
ParallelDataPropertiesList: output.ParallelDataPropertiesList !== undefined && output.ParallelDataPropertiesList !== null
|
|
1684
1684
|
? deserializeAws_json1_1ParallelDataPropertiesList(output.ParallelDataPropertiesList, context)
|
|
1685
1685
|
: undefined,
|
|
@@ -1687,7 +1687,7 @@ const deserializeAws_json1_1ListParallelDataResponse = (output, context) => {
|
|
|
1687
1687
|
};
|
|
1688
1688
|
const deserializeAws_json1_1ListTerminologiesResponse = (output, context) => {
|
|
1689
1689
|
return {
|
|
1690
|
-
NextToken:
|
|
1690
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1691
1691
|
TerminologyPropertiesList: output.TerminologyPropertiesList !== undefined && output.TerminologyPropertiesList !== null
|
|
1692
1692
|
? deserializeAws_json1_1TerminologyPropertiesList(output.TerminologyPropertiesList, context)
|
|
1693
1693
|
: undefined,
|
|
@@ -1695,7 +1695,7 @@ const deserializeAws_json1_1ListTerminologiesResponse = (output, context) => {
|
|
|
1695
1695
|
};
|
|
1696
1696
|
const deserializeAws_json1_1ListTextTranslationJobsResponse = (output, context) => {
|
|
1697
1697
|
return {
|
|
1698
|
-
NextToken:
|
|
1698
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1699
1699
|
TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList !== undefined && output.TextTranslationJobPropertiesList !== null
|
|
1700
1700
|
? deserializeAws_json1_1TextTranslationJobPropertiesList(output.TextTranslationJobPropertiesList, context)
|
|
1701
1701
|
: undefined,
|
|
@@ -1703,49 +1703,49 @@ const deserializeAws_json1_1ListTextTranslationJobsResponse = (output, context)
|
|
|
1703
1703
|
};
|
|
1704
1704
|
const deserializeAws_json1_1OutputDataConfig = (output, context) => {
|
|
1705
1705
|
return {
|
|
1706
|
-
S3Uri:
|
|
1706
|
+
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
1707
1707
|
};
|
|
1708
1708
|
};
|
|
1709
1709
|
const deserializeAws_json1_1ParallelDataConfig = (output, context) => {
|
|
1710
1710
|
return {
|
|
1711
|
-
Format:
|
|
1712
|
-
S3Uri:
|
|
1711
|
+
Format: smithy_client_1.expectString(output.Format),
|
|
1712
|
+
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
1713
1713
|
};
|
|
1714
1714
|
};
|
|
1715
1715
|
const deserializeAws_json1_1ParallelDataDataLocation = (output, context) => {
|
|
1716
1716
|
return {
|
|
1717
|
-
Location:
|
|
1718
|
-
RepositoryType:
|
|
1717
|
+
Location: smithy_client_1.expectString(output.Location),
|
|
1718
|
+
RepositoryType: smithy_client_1.expectString(output.RepositoryType),
|
|
1719
1719
|
};
|
|
1720
1720
|
};
|
|
1721
1721
|
const deserializeAws_json1_1ParallelDataProperties = (output, context) => {
|
|
1722
1722
|
return {
|
|
1723
|
-
Arn:
|
|
1723
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
1724
1724
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
1725
|
-
?
|
|
1725
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1726
1726
|
: undefined,
|
|
1727
|
-
Description:
|
|
1727
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
1728
1728
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1729
1729
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1730
1730
|
: undefined,
|
|
1731
|
-
FailedRecordCount:
|
|
1732
|
-
ImportedDataSize:
|
|
1733
|
-
ImportedRecordCount:
|
|
1731
|
+
FailedRecordCount: smithy_client_1.expectLong(output.FailedRecordCount),
|
|
1732
|
+
ImportedDataSize: smithy_client_1.expectLong(output.ImportedDataSize),
|
|
1733
|
+
ImportedRecordCount: smithy_client_1.expectLong(output.ImportedRecordCount),
|
|
1734
1734
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
1735
|
-
?
|
|
1735
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
|
|
1736
1736
|
: undefined,
|
|
1737
1737
|
LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
|
|
1738
|
-
?
|
|
1738
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LatestUpdateAttemptAt)))
|
|
1739
1739
|
: undefined,
|
|
1740
|
-
LatestUpdateAttemptStatus:
|
|
1741
|
-
Message:
|
|
1742
|
-
Name:
|
|
1740
|
+
LatestUpdateAttemptStatus: smithy_client_1.expectString(output.LatestUpdateAttemptStatus),
|
|
1741
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1742
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1743
1743
|
ParallelDataConfig: output.ParallelDataConfig !== undefined && output.ParallelDataConfig !== null
|
|
1744
1744
|
? deserializeAws_json1_1ParallelDataConfig(output.ParallelDataConfig, context)
|
|
1745
1745
|
: undefined,
|
|
1746
|
-
SkippedRecordCount:
|
|
1747
|
-
SourceLanguageCode:
|
|
1748
|
-
Status:
|
|
1746
|
+
SkippedRecordCount: smithy_client_1.expectLong(output.SkippedRecordCount),
|
|
1747
|
+
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1748
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
1749
1749
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1750
1750
|
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
1751
1751
|
: undefined,
|
|
@@ -1768,29 +1768,29 @@ const deserializeAws_json1_1ResourceNameList = (output, context) => {
|
|
|
1768
1768
|
if (entry === null) {
|
|
1769
1769
|
return null;
|
|
1770
1770
|
}
|
|
1771
|
-
return
|
|
1771
|
+
return smithy_client_1.expectString(entry);
|
|
1772
1772
|
});
|
|
1773
1773
|
};
|
|
1774
1774
|
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
1775
1775
|
return {
|
|
1776
|
-
Message:
|
|
1776
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1777
1777
|
};
|
|
1778
1778
|
};
|
|
1779
1779
|
const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
1780
1780
|
return {
|
|
1781
|
-
Message:
|
|
1781
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1782
1782
|
};
|
|
1783
1783
|
};
|
|
1784
1784
|
const deserializeAws_json1_1StartTextTranslationJobResponse = (output, context) => {
|
|
1785
1785
|
return {
|
|
1786
|
-
JobId:
|
|
1787
|
-
JobStatus:
|
|
1786
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
1787
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1788
1788
|
};
|
|
1789
1789
|
};
|
|
1790
1790
|
const deserializeAws_json1_1StopTextTranslationJobResponse = (output, context) => {
|
|
1791
1791
|
return {
|
|
1792
|
-
JobId:
|
|
1793
|
-
JobStatus:
|
|
1792
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
1793
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1794
1794
|
};
|
|
1795
1795
|
};
|
|
1796
1796
|
const deserializeAws_json1_1TargetLanguageCodeStringList = (output, context) => {
|
|
@@ -1800,41 +1800,41 @@ const deserializeAws_json1_1TargetLanguageCodeStringList = (output, context) =>
|
|
|
1800
1800
|
if (entry === null) {
|
|
1801
1801
|
return null;
|
|
1802
1802
|
}
|
|
1803
|
-
return
|
|
1803
|
+
return smithy_client_1.expectString(entry);
|
|
1804
1804
|
});
|
|
1805
1805
|
};
|
|
1806
1806
|
const deserializeAws_json1_1Term = (output, context) => {
|
|
1807
1807
|
return {
|
|
1808
|
-
SourceText:
|
|
1809
|
-
TargetText:
|
|
1808
|
+
SourceText: smithy_client_1.expectString(output.SourceText),
|
|
1809
|
+
TargetText: smithy_client_1.expectString(output.TargetText),
|
|
1810
1810
|
};
|
|
1811
1811
|
};
|
|
1812
1812
|
const deserializeAws_json1_1TerminologyDataLocation = (output, context) => {
|
|
1813
1813
|
return {
|
|
1814
|
-
Location:
|
|
1815
|
-
RepositoryType:
|
|
1814
|
+
Location: smithy_client_1.expectString(output.Location),
|
|
1815
|
+
RepositoryType: smithy_client_1.expectString(output.RepositoryType),
|
|
1816
1816
|
};
|
|
1817
1817
|
};
|
|
1818
1818
|
const deserializeAws_json1_1TerminologyProperties = (output, context) => {
|
|
1819
1819
|
return {
|
|
1820
|
-
Arn:
|
|
1820
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
1821
1821
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
1822
|
-
?
|
|
1822
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1823
1823
|
: undefined,
|
|
1824
|
-
Description:
|
|
1824
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
1825
1825
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1826
1826
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1827
1827
|
: undefined,
|
|
1828
1828
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
1829
|
-
?
|
|
1829
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
|
|
1830
1830
|
: undefined,
|
|
1831
|
-
Name:
|
|
1832
|
-
SizeBytes:
|
|
1833
|
-
SourceLanguageCode:
|
|
1831
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1832
|
+
SizeBytes: smithy_client_1.expectInt32(output.SizeBytes),
|
|
1833
|
+
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1834
1834
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1835
1835
|
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
1836
1836
|
: undefined,
|
|
1837
|
-
TermCount:
|
|
1837
|
+
TermCount: smithy_client_1.expectInt32(output.TermCount),
|
|
1838
1838
|
};
|
|
1839
1839
|
};
|
|
1840
1840
|
const deserializeAws_json1_1TerminologyPropertiesList = (output, context) => {
|
|
@@ -1859,32 +1859,34 @@ const deserializeAws_json1_1TermList = (output, context) => {
|
|
|
1859
1859
|
};
|
|
1860
1860
|
const deserializeAws_json1_1TextSizeLimitExceededException = (output, context) => {
|
|
1861
1861
|
return {
|
|
1862
|
-
Message:
|
|
1862
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1863
1863
|
};
|
|
1864
1864
|
};
|
|
1865
1865
|
const deserializeAws_json1_1TextTranslationJobProperties = (output, context) => {
|
|
1866
1866
|
return {
|
|
1867
|
-
DataAccessRoleArn:
|
|
1868
|
-
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
1867
|
+
DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
|
|
1868
|
+
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
1869
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
|
|
1870
|
+
: undefined,
|
|
1869
1871
|
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
1870
1872
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
1871
1873
|
: undefined,
|
|
1872
1874
|
JobDetails: output.JobDetails !== undefined && output.JobDetails !== null
|
|
1873
1875
|
? deserializeAws_json1_1JobDetails(output.JobDetails, context)
|
|
1874
1876
|
: undefined,
|
|
1875
|
-
JobId:
|
|
1876
|
-
JobName:
|
|
1877
|
-
JobStatus:
|
|
1878
|
-
Message:
|
|
1877
|
+
JobId: smithy_client_1.expectString(output.JobId),
|
|
1878
|
+
JobName: smithy_client_1.expectString(output.JobName),
|
|
1879
|
+
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1880
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1879
1881
|
OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
|
|
1880
1882
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
1881
1883
|
: undefined,
|
|
1882
1884
|
ParallelDataNames: output.ParallelDataNames !== undefined && output.ParallelDataNames !== null
|
|
1883
1885
|
? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
|
|
1884
1886
|
: undefined,
|
|
1885
|
-
SourceLanguageCode:
|
|
1887
|
+
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1886
1888
|
SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
|
|
1887
|
-
?
|
|
1889
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmittedTime)))
|
|
1888
1890
|
: undefined,
|
|
1889
1891
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1890
1892
|
? deserializeAws_json1_1TargetLanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
@@ -1906,7 +1908,7 @@ const deserializeAws_json1_1TextTranslationJobPropertiesList = (output, context)
|
|
|
1906
1908
|
};
|
|
1907
1909
|
const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
1908
1910
|
return {
|
|
1909
|
-
Message:
|
|
1911
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1910
1912
|
};
|
|
1911
1913
|
};
|
|
1912
1914
|
const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
@@ -1914,26 +1916,26 @@ const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
|
1914
1916
|
AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
|
|
1915
1917
|
? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
|
|
1916
1918
|
: undefined,
|
|
1917
|
-
SourceLanguageCode:
|
|
1918
|
-
TargetLanguageCode:
|
|
1919
|
-
TranslatedText:
|
|
1919
|
+
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1920
|
+
TargetLanguageCode: smithy_client_1.expectString(output.TargetLanguageCode),
|
|
1921
|
+
TranslatedText: smithy_client_1.expectString(output.TranslatedText),
|
|
1920
1922
|
};
|
|
1921
1923
|
};
|
|
1922
1924
|
const deserializeAws_json1_1UnsupportedLanguagePairException = (output, context) => {
|
|
1923
1925
|
return {
|
|
1924
|
-
Message:
|
|
1925
|
-
SourceLanguageCode:
|
|
1926
|
-
TargetLanguageCode:
|
|
1926
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1927
|
+
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1928
|
+
TargetLanguageCode: smithy_client_1.expectString(output.TargetLanguageCode),
|
|
1927
1929
|
};
|
|
1928
1930
|
};
|
|
1929
1931
|
const deserializeAws_json1_1UpdateParallelDataResponse = (output, context) => {
|
|
1930
1932
|
return {
|
|
1931
1933
|
LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
|
|
1932
|
-
?
|
|
1934
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LatestUpdateAttemptAt)))
|
|
1933
1935
|
: undefined,
|
|
1934
|
-
LatestUpdateAttemptStatus:
|
|
1935
|
-
Name:
|
|
1936
|
-
Status:
|
|
1936
|
+
LatestUpdateAttemptStatus: smithy_client_1.expectString(output.LatestUpdateAttemptStatus),
|
|
1937
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1938
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
1937
1939
|
};
|
|
1938
1940
|
};
|
|
1939
1941
|
const deserializeMetadata = (output) => {
|