@aws-sdk/client-translate 3.54.0 → 3.56.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 +24 -0
- package/dist-cjs/TranslateClient.js +13 -13
- package/dist-cjs/commands/CreateParallelDataCommand.js +3 -3
- package/dist-cjs/commands/DeleteParallelDataCommand.js +3 -3
- package/dist-cjs/commands/DeleteTerminologyCommand.js +3 -3
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +3 -3
- package/dist-cjs/commands/GetParallelDataCommand.js +3 -3
- package/dist-cjs/commands/GetTerminologyCommand.js +3 -3
- package/dist-cjs/commands/ImportTerminologyCommand.js +3 -3
- package/dist-cjs/commands/ListParallelDataCommand.js +3 -3
- package/dist-cjs/commands/ListTerminologiesCommand.js +3 -3
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js +3 -3
- package/dist-cjs/commands/StartTextTranslationJobCommand.js +3 -3
- package/dist-cjs/commands/StopTextTranslationJobCommand.js +3 -3
- package/dist-cjs/commands/TranslateTextCommand.js +3 -3
- package/dist-cjs/commands/UpdateParallelDataCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +120 -120
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Translate.js +14 -14
- package/dist-es/pagination/ListParallelDataPaginator.js +4 -4
- package/dist-es/pagination/ListTerminologiesPaginator.js +4 -4
- package/dist-es/pagination/ListTextTranslationJobsPaginator.js +4 -4
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -194,7 +194,7 @@ const deserializeAws_json1_1CreateParallelDataCommandError = async (output, cont
|
|
|
194
194
|
$fault: "client",
|
|
195
195
|
$metadata: deserializeMetadata(output),
|
|
196
196
|
});
|
|
197
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
197
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
const deserializeAws_json1_1DeleteParallelDataCommand = async (output, context) => {
|
|
@@ -239,7 +239,7 @@ const deserializeAws_json1_1DeleteParallelDataCommandError = async (output, cont
|
|
|
239
239
|
$fault: "client",
|
|
240
240
|
$metadata: deserializeMetadata(output),
|
|
241
241
|
});
|
|
242
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
242
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
const deserializeAws_json1_1DeleteTerminologyCommand = async (output, context) => {
|
|
@@ -281,7 +281,7 @@ const deserializeAws_json1_1DeleteTerminologyCommandError = async (output, conte
|
|
|
281
281
|
$fault: "client",
|
|
282
282
|
$metadata: deserializeMetadata(output),
|
|
283
283
|
});
|
|
284
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
284
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
const deserializeAws_json1_1DescribeTextTranslationJobCommand = async (output, context) => {
|
|
@@ -323,7 +323,7 @@ const deserializeAws_json1_1DescribeTextTranslationJobCommandError = async (outp
|
|
|
323
323
|
$fault: "client",
|
|
324
324
|
$metadata: deserializeMetadata(output),
|
|
325
325
|
});
|
|
326
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
326
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
329
|
const deserializeAws_json1_1GetParallelDataCommand = async (output, context) => {
|
|
@@ -368,7 +368,7 @@ const deserializeAws_json1_1GetParallelDataCommandError = async (output, context
|
|
|
368
368
|
$fault: "client",
|
|
369
369
|
$metadata: deserializeMetadata(output),
|
|
370
370
|
});
|
|
371
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
371
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
374
|
const deserializeAws_json1_1GetTerminologyCommand = async (output, context) => {
|
|
@@ -413,7 +413,7 @@ const deserializeAws_json1_1GetTerminologyCommandError = async (output, context)
|
|
|
413
413
|
$fault: "client",
|
|
414
414
|
$metadata: deserializeMetadata(output),
|
|
415
415
|
});
|
|
416
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
416
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
const deserializeAws_json1_1ImportTerminologyCommand = async (output, context) => {
|
|
@@ -458,7 +458,7 @@ const deserializeAws_json1_1ImportTerminologyCommandError = async (output, conte
|
|
|
458
458
|
$fault: "client",
|
|
459
459
|
$metadata: deserializeMetadata(output),
|
|
460
460
|
});
|
|
461
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
461
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
464
|
const deserializeAws_json1_1ListParallelDataCommand = async (output, context) => {
|
|
@@ -500,7 +500,7 @@ const deserializeAws_json1_1ListParallelDataCommandError = async (output, contex
|
|
|
500
500
|
$fault: "client",
|
|
501
501
|
$metadata: deserializeMetadata(output),
|
|
502
502
|
});
|
|
503
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
503
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
const deserializeAws_json1_1ListTerminologiesCommand = async (output, context) => {
|
|
@@ -542,7 +542,7 @@ const deserializeAws_json1_1ListTerminologiesCommandError = async (output, conte
|
|
|
542
542
|
$fault: "client",
|
|
543
543
|
$metadata: deserializeMetadata(output),
|
|
544
544
|
});
|
|
545
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
545
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
548
|
const deserializeAws_json1_1ListTextTranslationJobsCommand = async (output, context) => {
|
|
@@ -587,7 +587,7 @@ const deserializeAws_json1_1ListTextTranslationJobsCommandError = async (output,
|
|
|
587
587
|
$fault: "client",
|
|
588
588
|
$metadata: deserializeMetadata(output),
|
|
589
589
|
});
|
|
590
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
590
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
593
|
const deserializeAws_json1_1StartTextTranslationJobCommand = async (output, context) => {
|
|
@@ -638,7 +638,7 @@ const deserializeAws_json1_1StartTextTranslationJobCommandError = async (output,
|
|
|
638
638
|
$fault: "client",
|
|
639
639
|
$metadata: deserializeMetadata(output),
|
|
640
640
|
});
|
|
641
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
641
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
const deserializeAws_json1_1StopTextTranslationJobCommand = async (output, context) => {
|
|
@@ -680,7 +680,7 @@ const deserializeAws_json1_1StopTextTranslationJobCommandError = async (output,
|
|
|
680
680
|
$fault: "client",
|
|
681
681
|
$metadata: deserializeMetadata(output),
|
|
682
682
|
});
|
|
683
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
683
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
686
|
const deserializeAws_json1_1TranslateTextCommand = async (output, context) => {
|
|
@@ -737,7 +737,7 @@ const deserializeAws_json1_1TranslateTextCommandError = async (output, context)
|
|
|
737
737
|
$fault: "client",
|
|
738
738
|
$metadata: deserializeMetadata(output),
|
|
739
739
|
});
|
|
740
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
740
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
741
741
|
}
|
|
742
742
|
};
|
|
743
743
|
const deserializeAws_json1_1UpdateParallelDataCommand = async (output, context) => {
|
|
@@ -794,7 +794,7 @@ const deserializeAws_json1_1UpdateParallelDataCommandError = async (output, cont
|
|
|
794
794
|
$fault: "client",
|
|
795
795
|
$metadata: deserializeMetadata(output),
|
|
796
796
|
});
|
|
797
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
797
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
800
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -804,7 +804,7 @@ const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (par
|
|
|
804
804
|
$metadata: deserializeMetadata(parsedOutput),
|
|
805
805
|
...deserialized,
|
|
806
806
|
});
|
|
807
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
807
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
808
808
|
};
|
|
809
809
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
810
810
|
const body = parsedOutput.body;
|
|
@@ -813,7 +813,7 @@ const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, con
|
|
|
813
813
|
$metadata: deserializeMetadata(parsedOutput),
|
|
814
814
|
...deserialized,
|
|
815
815
|
});
|
|
816
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
816
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
817
817
|
};
|
|
818
818
|
const deserializeAws_json1_1DetectedLanguageLowConfidenceExceptionResponse = async (parsedOutput, context) => {
|
|
819
819
|
const body = parsedOutput.body;
|
|
@@ -822,7 +822,7 @@ const deserializeAws_json1_1DetectedLanguageLowConfidenceExceptionResponse = asy
|
|
|
822
822
|
$metadata: deserializeMetadata(parsedOutput),
|
|
823
823
|
...deserialized,
|
|
824
824
|
});
|
|
825
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
825
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
826
826
|
};
|
|
827
827
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
828
828
|
const body = parsedOutput.body;
|
|
@@ -831,7 +831,7 @@ const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutpu
|
|
|
831
831
|
$metadata: deserializeMetadata(parsedOutput),
|
|
832
832
|
...deserialized,
|
|
833
833
|
});
|
|
834
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
834
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
835
835
|
};
|
|
836
836
|
const deserializeAws_json1_1InvalidFilterExceptionResponse = async (parsedOutput, context) => {
|
|
837
837
|
const body = parsedOutput.body;
|
|
@@ -840,7 +840,7 @@ const deserializeAws_json1_1InvalidFilterExceptionResponse = async (parsedOutput
|
|
|
840
840
|
$metadata: deserializeMetadata(parsedOutput),
|
|
841
841
|
...deserialized,
|
|
842
842
|
});
|
|
843
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
843
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
844
844
|
};
|
|
845
845
|
const deserializeAws_json1_1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
846
846
|
const body = parsedOutput.body;
|
|
@@ -849,7 +849,7 @@ const deserializeAws_json1_1InvalidParameterValueExceptionResponse = async (pars
|
|
|
849
849
|
$metadata: deserializeMetadata(parsedOutput),
|
|
850
850
|
...deserialized,
|
|
851
851
|
});
|
|
852
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
852
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
853
853
|
};
|
|
854
854
|
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
855
855
|
const body = parsedOutput.body;
|
|
@@ -858,7 +858,7 @@ const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutpu
|
|
|
858
858
|
$metadata: deserializeMetadata(parsedOutput),
|
|
859
859
|
...deserialized,
|
|
860
860
|
});
|
|
861
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
861
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
862
862
|
};
|
|
863
863
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
864
864
|
const body = parsedOutput.body;
|
|
@@ -867,7 +867,7 @@ const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput
|
|
|
867
867
|
$metadata: deserializeMetadata(parsedOutput),
|
|
868
868
|
...deserialized,
|
|
869
869
|
});
|
|
870
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
870
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
871
871
|
};
|
|
872
872
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
873
873
|
const body = parsedOutput.body;
|
|
@@ -876,7 +876,7 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
876
876
|
$metadata: deserializeMetadata(parsedOutput),
|
|
877
877
|
...deserialized,
|
|
878
878
|
});
|
|
879
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
879
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
880
880
|
};
|
|
881
881
|
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
882
882
|
const body = parsedOutput.body;
|
|
@@ -885,7 +885,7 @@ const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedO
|
|
|
885
885
|
$metadata: deserializeMetadata(parsedOutput),
|
|
886
886
|
...deserialized,
|
|
887
887
|
});
|
|
888
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
888
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
889
889
|
};
|
|
890
890
|
const deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
891
891
|
const body = parsedOutput.body;
|
|
@@ -894,7 +894,7 @@ const deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = async (pars
|
|
|
894
894
|
$metadata: deserializeMetadata(parsedOutput),
|
|
895
895
|
...deserialized,
|
|
896
896
|
});
|
|
897
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
897
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
898
898
|
};
|
|
899
899
|
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
900
900
|
const body = parsedOutput.body;
|
|
@@ -903,7 +903,7 @@ const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutp
|
|
|
903
903
|
$metadata: deserializeMetadata(parsedOutput),
|
|
904
904
|
...deserialized,
|
|
905
905
|
});
|
|
906
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
906
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
907
907
|
};
|
|
908
908
|
const deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse = async (parsedOutput, context) => {
|
|
909
909
|
const body = parsedOutput.body;
|
|
@@ -912,12 +912,12 @@ const deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse = async (pa
|
|
|
912
912
|
$metadata: deserializeMetadata(parsedOutput),
|
|
913
913
|
...deserialized,
|
|
914
914
|
});
|
|
915
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
915
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
916
916
|
};
|
|
917
917
|
const serializeAws_json1_1CreateParallelDataRequest = (input, context) => {
|
|
918
918
|
var _a;
|
|
919
919
|
return {
|
|
920
|
-
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
920
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
921
921
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
922
922
|
...(input.EncryptionKey !== undefined &&
|
|
923
923
|
input.EncryptionKey !== null && {
|
|
@@ -1032,7 +1032,7 @@ const serializeAws_json1_1ResourceNameList = (input, context) => {
|
|
|
1032
1032
|
const serializeAws_json1_1StartTextTranslationJobRequest = (input, context) => {
|
|
1033
1033
|
var _a;
|
|
1034
1034
|
return {
|
|
1035
|
-
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1035
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1036
1036
|
...(input.DataAccessRoleArn !== undefined &&
|
|
1037
1037
|
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1038
1038
|
...(input.InputDataConfig !== undefined &&
|
|
@@ -1123,7 +1123,7 @@ const serializeAws_json1_1TranslationSettings = (input, context) => {
|
|
|
1123
1123
|
const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
|
|
1124
1124
|
var _a;
|
|
1125
1125
|
return {
|
|
1126
|
-
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1126
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1127
1127
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
1128
1128
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1129
1129
|
...(input.ParallelDataConfig !== undefined &&
|
|
@@ -1134,7 +1134,7 @@ const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
|
|
|
1134
1134
|
};
|
|
1135
1135
|
const deserializeAws_json1_1AppliedTerminology = (output, context) => {
|
|
1136
1136
|
return {
|
|
1137
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1137
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1138
1138
|
Terms: output.Terms !== undefined && output.Terms !== null
|
|
1139
1139
|
? deserializeAws_json1_1TermList(output.Terms, context)
|
|
1140
1140
|
: undefined,
|
|
@@ -1153,24 +1153,24 @@ const deserializeAws_json1_1AppliedTerminologyList = (output, context) => {
|
|
|
1153
1153
|
};
|
|
1154
1154
|
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
1155
1155
|
return {
|
|
1156
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1156
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1157
1157
|
};
|
|
1158
1158
|
};
|
|
1159
1159
|
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
1160
1160
|
return {
|
|
1161
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1161
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1162
1162
|
};
|
|
1163
1163
|
};
|
|
1164
1164
|
const deserializeAws_json1_1CreateParallelDataResponse = (output, context) => {
|
|
1165
1165
|
return {
|
|
1166
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1167
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1166
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1167
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1168
1168
|
};
|
|
1169
1169
|
};
|
|
1170
1170
|
const deserializeAws_json1_1DeleteParallelDataResponse = (output, context) => {
|
|
1171
1171
|
return {
|
|
1172
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1173
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1172
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1173
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1174
1174
|
};
|
|
1175
1175
|
};
|
|
1176
1176
|
const deserializeAws_json1_1DescribeTextTranslationJobResponse = (output, context) => {
|
|
@@ -1182,14 +1182,14 @@ const deserializeAws_json1_1DescribeTextTranslationJobResponse = (output, contex
|
|
|
1182
1182
|
};
|
|
1183
1183
|
const deserializeAws_json1_1DetectedLanguageLowConfidenceException = (output, context) => {
|
|
1184
1184
|
return {
|
|
1185
|
-
DetectedLanguageCode: smithy_client_1.expectString(output.DetectedLanguageCode),
|
|
1186
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1185
|
+
DetectedLanguageCode: (0, smithy_client_1.expectString)(output.DetectedLanguageCode),
|
|
1186
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1187
1187
|
};
|
|
1188
1188
|
};
|
|
1189
1189
|
const deserializeAws_json1_1EncryptionKey = (output, context) => {
|
|
1190
1190
|
return {
|
|
1191
|
-
Id: smithy_client_1.expectString(output.Id),
|
|
1192
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
1191
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1192
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1193
1193
|
};
|
|
1194
1194
|
};
|
|
1195
1195
|
const deserializeAws_json1_1GetParallelDataResponse = (output, context) => {
|
|
@@ -1234,35 +1234,35 @@ const deserializeAws_json1_1ImportTerminologyResponse = (output, context) => {
|
|
|
1234
1234
|
};
|
|
1235
1235
|
const deserializeAws_json1_1InputDataConfig = (output, context) => {
|
|
1236
1236
|
return {
|
|
1237
|
-
ContentType: smithy_client_1.expectString(output.ContentType),
|
|
1238
|
-
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
1237
|
+
ContentType: (0, smithy_client_1.expectString)(output.ContentType),
|
|
1238
|
+
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
1239
1239
|
};
|
|
1240
1240
|
};
|
|
1241
1241
|
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
1242
1242
|
return {
|
|
1243
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1243
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1244
1244
|
};
|
|
1245
1245
|
};
|
|
1246
1246
|
const deserializeAws_json1_1InvalidFilterException = (output, context) => {
|
|
1247
1247
|
return {
|
|
1248
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1248
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1249
1249
|
};
|
|
1250
1250
|
};
|
|
1251
1251
|
const deserializeAws_json1_1InvalidParameterValueException = (output, context) => {
|
|
1252
1252
|
return {
|
|
1253
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1253
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1254
1254
|
};
|
|
1255
1255
|
};
|
|
1256
1256
|
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
1257
1257
|
return {
|
|
1258
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1258
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1259
1259
|
};
|
|
1260
1260
|
};
|
|
1261
1261
|
const deserializeAws_json1_1JobDetails = (output, context) => {
|
|
1262
1262
|
return {
|
|
1263
|
-
DocumentsWithErrorsCount: smithy_client_1.expectInt32(output.DocumentsWithErrorsCount),
|
|
1264
|
-
InputDocumentsCount: smithy_client_1.expectInt32(output.InputDocumentsCount),
|
|
1265
|
-
TranslatedDocumentsCount: smithy_client_1.expectInt32(output.TranslatedDocumentsCount),
|
|
1263
|
+
DocumentsWithErrorsCount: (0, smithy_client_1.expectInt32)(output.DocumentsWithErrorsCount),
|
|
1264
|
+
InputDocumentsCount: (0, smithy_client_1.expectInt32)(output.InputDocumentsCount),
|
|
1265
|
+
TranslatedDocumentsCount: (0, smithy_client_1.expectInt32)(output.TranslatedDocumentsCount),
|
|
1266
1266
|
};
|
|
1267
1267
|
};
|
|
1268
1268
|
const deserializeAws_json1_1LanguageCodeStringList = (output, context) => {
|
|
@@ -1272,18 +1272,18 @@ const deserializeAws_json1_1LanguageCodeStringList = (output, context) => {
|
|
|
1272
1272
|
if (entry === null) {
|
|
1273
1273
|
return null;
|
|
1274
1274
|
}
|
|
1275
|
-
return smithy_client_1.expectString(entry);
|
|
1275
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1276
1276
|
});
|
|
1277
1277
|
return retVal;
|
|
1278
1278
|
};
|
|
1279
1279
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1280
1280
|
return {
|
|
1281
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1281
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1282
1282
|
};
|
|
1283
1283
|
};
|
|
1284
1284
|
const deserializeAws_json1_1ListParallelDataResponse = (output, context) => {
|
|
1285
1285
|
return {
|
|
1286
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1286
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1287
1287
|
ParallelDataPropertiesList: output.ParallelDataPropertiesList !== undefined && output.ParallelDataPropertiesList !== null
|
|
1288
1288
|
? deserializeAws_json1_1ParallelDataPropertiesList(output.ParallelDataPropertiesList, context)
|
|
1289
1289
|
: undefined,
|
|
@@ -1291,7 +1291,7 @@ const deserializeAws_json1_1ListParallelDataResponse = (output, context) => {
|
|
|
1291
1291
|
};
|
|
1292
1292
|
const deserializeAws_json1_1ListTerminologiesResponse = (output, context) => {
|
|
1293
1293
|
return {
|
|
1294
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1294
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1295
1295
|
TerminologyPropertiesList: output.TerminologyPropertiesList !== undefined && output.TerminologyPropertiesList !== null
|
|
1296
1296
|
? deserializeAws_json1_1TerminologyPropertiesList(output.TerminologyPropertiesList, context)
|
|
1297
1297
|
: undefined,
|
|
@@ -1299,7 +1299,7 @@ const deserializeAws_json1_1ListTerminologiesResponse = (output, context) => {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
const deserializeAws_json1_1ListTextTranslationJobsResponse = (output, context) => {
|
|
1301
1301
|
return {
|
|
1302
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1302
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1303
1303
|
TextTranslationJobPropertiesList: output.TextTranslationJobPropertiesList !== undefined && output.TextTranslationJobPropertiesList !== null
|
|
1304
1304
|
? deserializeAws_json1_1TextTranslationJobPropertiesList(output.TextTranslationJobPropertiesList, context)
|
|
1305
1305
|
: undefined,
|
|
@@ -1310,49 +1310,49 @@ const deserializeAws_json1_1OutputDataConfig = (output, context) => {
|
|
|
1310
1310
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1311
1311
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1312
1312
|
: undefined,
|
|
1313
|
-
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
1313
|
+
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
1314
1314
|
};
|
|
1315
1315
|
};
|
|
1316
1316
|
const deserializeAws_json1_1ParallelDataConfig = (output, context) => {
|
|
1317
1317
|
return {
|
|
1318
|
-
Format: smithy_client_1.expectString(output.Format),
|
|
1319
|
-
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
1318
|
+
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
1319
|
+
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
1320
1320
|
};
|
|
1321
1321
|
};
|
|
1322
1322
|
const deserializeAws_json1_1ParallelDataDataLocation = (output, context) => {
|
|
1323
1323
|
return {
|
|
1324
|
-
Location: smithy_client_1.expectString(output.Location),
|
|
1325
|
-
RepositoryType: smithy_client_1.expectString(output.RepositoryType),
|
|
1324
|
+
Location: (0, smithy_client_1.expectString)(output.Location),
|
|
1325
|
+
RepositoryType: (0, smithy_client_1.expectString)(output.RepositoryType),
|
|
1326
1326
|
};
|
|
1327
1327
|
};
|
|
1328
1328
|
const deserializeAws_json1_1ParallelDataProperties = (output, context) => {
|
|
1329
1329
|
return {
|
|
1330
|
-
Arn: smithy_client_1.expectString(output.Arn),
|
|
1330
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1331
1331
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
1332
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1332
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
1333
1333
|
: undefined,
|
|
1334
|
-
Description: smithy_client_1.expectString(output.Description),
|
|
1334
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1335
1335
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1336
1336
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1337
1337
|
: undefined,
|
|
1338
|
-
FailedRecordCount: smithy_client_1.expectLong(output.FailedRecordCount),
|
|
1339
|
-
ImportedDataSize: smithy_client_1.expectLong(output.ImportedDataSize),
|
|
1340
|
-
ImportedRecordCount: smithy_client_1.expectLong(output.ImportedRecordCount),
|
|
1338
|
+
FailedRecordCount: (0, smithy_client_1.expectLong)(output.FailedRecordCount),
|
|
1339
|
+
ImportedDataSize: (0, smithy_client_1.expectLong)(output.ImportedDataSize),
|
|
1340
|
+
ImportedRecordCount: (0, smithy_client_1.expectLong)(output.ImportedRecordCount),
|
|
1341
1341
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
1342
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
|
|
1342
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
|
|
1343
1343
|
: undefined,
|
|
1344
1344
|
LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
|
|
1345
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LatestUpdateAttemptAt)))
|
|
1345
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestUpdateAttemptAt)))
|
|
1346
1346
|
: undefined,
|
|
1347
|
-
LatestUpdateAttemptStatus: smithy_client_1.expectString(output.LatestUpdateAttemptStatus),
|
|
1348
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1349
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1347
|
+
LatestUpdateAttemptStatus: (0, smithy_client_1.expectString)(output.LatestUpdateAttemptStatus),
|
|
1348
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1349
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1350
1350
|
ParallelDataConfig: output.ParallelDataConfig !== undefined && output.ParallelDataConfig !== null
|
|
1351
1351
|
? deserializeAws_json1_1ParallelDataConfig(output.ParallelDataConfig, context)
|
|
1352
1352
|
: undefined,
|
|
1353
|
-
SkippedRecordCount: smithy_client_1.expectLong(output.SkippedRecordCount),
|
|
1354
|
-
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1355
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1353
|
+
SkippedRecordCount: (0, smithy_client_1.expectLong)(output.SkippedRecordCount),
|
|
1354
|
+
SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
|
|
1355
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1356
1356
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1357
1357
|
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
1358
1358
|
: undefined,
|
|
@@ -1376,30 +1376,30 @@ const deserializeAws_json1_1ResourceNameList = (output, context) => {
|
|
|
1376
1376
|
if (entry === null) {
|
|
1377
1377
|
return null;
|
|
1378
1378
|
}
|
|
1379
|
-
return smithy_client_1.expectString(entry);
|
|
1379
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1380
1380
|
});
|
|
1381
1381
|
return retVal;
|
|
1382
1382
|
};
|
|
1383
1383
|
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
1384
1384
|
return {
|
|
1385
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1385
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1386
1386
|
};
|
|
1387
1387
|
};
|
|
1388
1388
|
const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
1389
1389
|
return {
|
|
1390
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1390
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1391
1391
|
};
|
|
1392
1392
|
};
|
|
1393
1393
|
const deserializeAws_json1_1StartTextTranslationJobResponse = (output, context) => {
|
|
1394
1394
|
return {
|
|
1395
|
-
JobId: smithy_client_1.expectString(output.JobId),
|
|
1396
|
-
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1395
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1396
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1397
1397
|
};
|
|
1398
1398
|
};
|
|
1399
1399
|
const deserializeAws_json1_1StopTextTranslationJobResponse = (output, context) => {
|
|
1400
1400
|
return {
|
|
1401
|
-
JobId: smithy_client_1.expectString(output.JobId),
|
|
1402
|
-
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1401
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1402
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1403
1403
|
};
|
|
1404
1404
|
};
|
|
1405
1405
|
const deserializeAws_json1_1TargetLanguageCodeStringList = (output, context) => {
|
|
@@ -1409,46 +1409,46 @@ const deserializeAws_json1_1TargetLanguageCodeStringList = (output, context) =>
|
|
|
1409
1409
|
if (entry === null) {
|
|
1410
1410
|
return null;
|
|
1411
1411
|
}
|
|
1412
|
-
return smithy_client_1.expectString(entry);
|
|
1412
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1413
1413
|
});
|
|
1414
1414
|
return retVal;
|
|
1415
1415
|
};
|
|
1416
1416
|
const deserializeAws_json1_1Term = (output, context) => {
|
|
1417
1417
|
return {
|
|
1418
|
-
SourceText: smithy_client_1.expectString(output.SourceText),
|
|
1419
|
-
TargetText: smithy_client_1.expectString(output.TargetText),
|
|
1418
|
+
SourceText: (0, smithy_client_1.expectString)(output.SourceText),
|
|
1419
|
+
TargetText: (0, smithy_client_1.expectString)(output.TargetText),
|
|
1420
1420
|
};
|
|
1421
1421
|
};
|
|
1422
1422
|
const deserializeAws_json1_1TerminologyDataLocation = (output, context) => {
|
|
1423
1423
|
return {
|
|
1424
|
-
Location: smithy_client_1.expectString(output.Location),
|
|
1425
|
-
RepositoryType: smithy_client_1.expectString(output.RepositoryType),
|
|
1424
|
+
Location: (0, smithy_client_1.expectString)(output.Location),
|
|
1425
|
+
RepositoryType: (0, smithy_client_1.expectString)(output.RepositoryType),
|
|
1426
1426
|
};
|
|
1427
1427
|
};
|
|
1428
1428
|
const deserializeAws_json1_1TerminologyProperties = (output, context) => {
|
|
1429
1429
|
return {
|
|
1430
|
-
Arn: smithy_client_1.expectString(output.Arn),
|
|
1430
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1431
1431
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
1432
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1432
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
1433
1433
|
: undefined,
|
|
1434
|
-
Description: smithy_client_1.expectString(output.Description),
|
|
1435
|
-
Directionality: smithy_client_1.expectString(output.Directionality),
|
|
1434
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1435
|
+
Directionality: (0, smithy_client_1.expectString)(output.Directionality),
|
|
1436
1436
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1437
1437
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1438
1438
|
: undefined,
|
|
1439
|
-
Format: smithy_client_1.expectString(output.Format),
|
|
1439
|
+
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
1440
1440
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
1441
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
|
|
1441
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
|
|
1442
1442
|
: undefined,
|
|
1443
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1444
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1445
|
-
SizeBytes: smithy_client_1.expectInt32(output.SizeBytes),
|
|
1446
|
-
SkippedTermCount: smithy_client_1.expectInt32(output.SkippedTermCount),
|
|
1447
|
-
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1443
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1444
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1445
|
+
SizeBytes: (0, smithy_client_1.expectInt32)(output.SizeBytes),
|
|
1446
|
+
SkippedTermCount: (0, smithy_client_1.expectInt32)(output.SkippedTermCount),
|
|
1447
|
+
SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
|
|
1448
1448
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1449
1449
|
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
1450
1450
|
: undefined,
|
|
1451
|
-
TermCount: smithy_client_1.expectInt32(output.TermCount),
|
|
1451
|
+
TermCount: (0, smithy_client_1.expectInt32)(output.TermCount),
|
|
1452
1452
|
};
|
|
1453
1453
|
};
|
|
1454
1454
|
const deserializeAws_json1_1TerminologyPropertiesList = (output, context) => {
|
|
@@ -1475,14 +1475,14 @@ const deserializeAws_json1_1TermList = (output, context) => {
|
|
|
1475
1475
|
};
|
|
1476
1476
|
const deserializeAws_json1_1TextSizeLimitExceededException = (output, context) => {
|
|
1477
1477
|
return {
|
|
1478
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1478
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1479
1479
|
};
|
|
1480
1480
|
};
|
|
1481
1481
|
const deserializeAws_json1_1TextTranslationJobProperties = (output, context) => {
|
|
1482
1482
|
return {
|
|
1483
|
-
DataAccessRoleArn: smithy_client_1.expectString(output.DataAccessRoleArn),
|
|
1483
|
+
DataAccessRoleArn: (0, smithy_client_1.expectString)(output.DataAccessRoleArn),
|
|
1484
1484
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
1485
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EndTime)))
|
|
1485
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
1486
1486
|
: undefined,
|
|
1487
1487
|
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
1488
1488
|
? deserializeAws_json1_1InputDataConfig(output.InputDataConfig, context)
|
|
@@ -1490,10 +1490,10 @@ const deserializeAws_json1_1TextTranslationJobProperties = (output, context) =>
|
|
|
1490
1490
|
JobDetails: output.JobDetails !== undefined && output.JobDetails !== null
|
|
1491
1491
|
? deserializeAws_json1_1JobDetails(output.JobDetails, context)
|
|
1492
1492
|
: undefined,
|
|
1493
|
-
JobId: smithy_client_1.expectString(output.JobId),
|
|
1494
|
-
JobName: smithy_client_1.expectString(output.JobName),
|
|
1495
|
-
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1496
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1493
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1494
|
+
JobName: (0, smithy_client_1.expectString)(output.JobName),
|
|
1495
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1496
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1497
1497
|
OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
|
|
1498
1498
|
? deserializeAws_json1_1OutputDataConfig(output.OutputDataConfig, context)
|
|
1499
1499
|
: undefined,
|
|
@@ -1503,9 +1503,9 @@ const deserializeAws_json1_1TextTranslationJobProperties = (output, context) =>
|
|
|
1503
1503
|
Settings: output.Settings !== undefined && output.Settings !== null
|
|
1504
1504
|
? deserializeAws_json1_1TranslationSettings(output.Settings, context)
|
|
1505
1505
|
: undefined,
|
|
1506
|
-
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1506
|
+
SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
|
|
1507
1507
|
SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
|
|
1508
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmittedTime)))
|
|
1508
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmittedTime)))
|
|
1509
1509
|
: undefined,
|
|
1510
1510
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1511
1511
|
? deserializeAws_json1_1TargetLanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
@@ -1528,7 +1528,7 @@ const deserializeAws_json1_1TextTranslationJobPropertiesList = (output, context)
|
|
|
1528
1528
|
};
|
|
1529
1529
|
const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
1530
1530
|
return {
|
|
1531
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1531
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1532
1532
|
};
|
|
1533
1533
|
};
|
|
1534
1534
|
const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
@@ -1539,32 +1539,32 @@ const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
|
1539
1539
|
AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
|
|
1540
1540
|
? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
|
|
1541
1541
|
: undefined,
|
|
1542
|
-
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1543
|
-
TargetLanguageCode: smithy_client_1.expectString(output.TargetLanguageCode),
|
|
1544
|
-
TranslatedText: smithy_client_1.expectString(output.TranslatedText),
|
|
1542
|
+
SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
|
|
1543
|
+
TargetLanguageCode: (0, smithy_client_1.expectString)(output.TargetLanguageCode),
|
|
1544
|
+
TranslatedText: (0, smithy_client_1.expectString)(output.TranslatedText),
|
|
1545
1545
|
};
|
|
1546
1546
|
};
|
|
1547
1547
|
const deserializeAws_json1_1TranslationSettings = (output, context) => {
|
|
1548
1548
|
return {
|
|
1549
|
-
Formality: smithy_client_1.expectString(output.Formality),
|
|
1550
|
-
Profanity: smithy_client_1.expectString(output.Profanity),
|
|
1549
|
+
Formality: (0, smithy_client_1.expectString)(output.Formality),
|
|
1550
|
+
Profanity: (0, smithy_client_1.expectString)(output.Profanity),
|
|
1551
1551
|
};
|
|
1552
1552
|
};
|
|
1553
1553
|
const deserializeAws_json1_1UnsupportedLanguagePairException = (output, context) => {
|
|
1554
1554
|
return {
|
|
1555
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1556
|
-
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1557
|
-
TargetLanguageCode: smithy_client_1.expectString(output.TargetLanguageCode),
|
|
1555
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1556
|
+
SourceLanguageCode: (0, smithy_client_1.expectString)(output.SourceLanguageCode),
|
|
1557
|
+
TargetLanguageCode: (0, smithy_client_1.expectString)(output.TargetLanguageCode),
|
|
1558
1558
|
};
|
|
1559
1559
|
};
|
|
1560
1560
|
const deserializeAws_json1_1UpdateParallelDataResponse = (output, context) => {
|
|
1561
1561
|
return {
|
|
1562
1562
|
LatestUpdateAttemptAt: output.LatestUpdateAttemptAt !== undefined && output.LatestUpdateAttemptAt !== null
|
|
1563
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LatestUpdateAttemptAt)))
|
|
1563
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestUpdateAttemptAt)))
|
|
1564
1564
|
: undefined,
|
|
1565
|
-
LatestUpdateAttemptStatus: smithy_client_1.expectString(output.LatestUpdateAttemptStatus),
|
|
1566
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1567
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
1565
|
+
LatestUpdateAttemptStatus: (0, smithy_client_1.expectString)(output.LatestUpdateAttemptStatus),
|
|
1566
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1567
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1568
1568
|
};
|
|
1569
1569
|
};
|
|
1570
1570
|
const deserializeMetadata = (output) => {
|