@aws-sdk/client-mturk 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +45 -39
- package/dist-es/MTurk.js +158 -165
- package/dist-es/MTurkClient.js +22 -28
- package/dist-es/commands/AcceptQualificationRequestCommand.js +21 -28
- package/dist-es/commands/ApproveAssignmentCommand.js +21 -28
- package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +21 -28
- package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +21 -28
- package/dist-es/commands/CreateHITCommand.js +21 -28
- package/dist-es/commands/CreateHITTypeCommand.js +21 -28
- package/dist-es/commands/CreateHITWithHITTypeCommand.js +21 -28
- package/dist-es/commands/CreateQualificationTypeCommand.js +21 -28
- package/dist-es/commands/CreateWorkerBlockCommand.js +21 -28
- package/dist-es/commands/DeleteHITCommand.js +21 -28
- package/dist-es/commands/DeleteQualificationTypeCommand.js +21 -28
- package/dist-es/commands/DeleteWorkerBlockCommand.js +21 -28
- package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +21 -28
- package/dist-es/commands/GetAccountBalanceCommand.js +21 -28
- package/dist-es/commands/GetAssignmentCommand.js +21 -28
- package/dist-es/commands/GetFileUploadURLCommand.js +21 -28
- package/dist-es/commands/GetHITCommand.js +21 -28
- package/dist-es/commands/GetQualificationScoreCommand.js +21 -28
- package/dist-es/commands/GetQualificationTypeCommand.js +21 -28
- package/dist-es/commands/ListAssignmentsForHITCommand.js +21 -28
- package/dist-es/commands/ListBonusPaymentsCommand.js +21 -28
- package/dist-es/commands/ListHITsCommand.js +21 -28
- package/dist-es/commands/ListHITsForQualificationTypeCommand.js +21 -28
- package/dist-es/commands/ListQualificationRequestsCommand.js +21 -28
- package/dist-es/commands/ListQualificationTypesCommand.js +21 -28
- package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +21 -28
- package/dist-es/commands/ListReviewableHITsCommand.js +21 -28
- package/dist-es/commands/ListWorkerBlocksCommand.js +21 -28
- package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +21 -28
- package/dist-es/commands/NotifyWorkersCommand.js +21 -28
- package/dist-es/commands/RejectAssignmentCommand.js +21 -28
- package/dist-es/commands/RejectQualificationRequestCommand.js +21 -28
- package/dist-es/commands/SendBonusCommand.js +21 -28
- package/dist-es/commands/SendTestEventNotificationCommand.js +21 -28
- package/dist-es/commands/UpdateExpirationForHITCommand.js +21 -28
- package/dist-es/commands/UpdateHITReviewStatusCommand.js +21 -28
- package/dist-es/commands/UpdateHITTypeOfHITCommand.js +21 -28
- package/dist-es/commands/UpdateNotificationSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateQualificationTypeCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MTurkServiceException.js +5 -10
- package/dist-es/models/models_0.js +314 -123
- package/dist-es/pagination/ListAssignmentsForHITPaginator.js +25 -68
- package/dist-es/pagination/ListBonusPaymentsPaginator.js +25 -68
- package/dist-es/pagination/ListHITsForQualificationTypePaginator.js +25 -68
- package/dist-es/pagination/ListHITsPaginator.js +25 -68
- package/dist-es/pagination/ListQualificationRequestsPaginator.js +25 -68
- package/dist-es/pagination/ListQualificationTypesPaginator.js +25 -68
- package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js +25 -68
- package/dist-es/pagination/ListReviewableHITsPaginator.js +25 -68
- package/dist-es/pagination/ListWorkerBlocksPaginator.js +25 -68
- package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2304 -2928
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-mturk
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-mturk
|
|
@@ -413,7 +413,7 @@ exports.deserializeAws_json1_1AcceptQualificationRequestCommand = deserializeAws
|
|
|
413
413
|
const deserializeAws_json1_1AcceptQualificationRequestCommandError = async (output, context) => {
|
|
414
414
|
const parsedOutput = {
|
|
415
415
|
...output,
|
|
416
|
-
body: await
|
|
416
|
+
body: await parseErrorBody(output.body, context),
|
|
417
417
|
};
|
|
418
418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
419
|
switch (errorCode) {
|
|
@@ -450,7 +450,7 @@ exports.deserializeAws_json1_1ApproveAssignmentCommand = deserializeAws_json1_1A
|
|
|
450
450
|
const deserializeAws_json1_1ApproveAssignmentCommandError = async (output, context) => {
|
|
451
451
|
const parsedOutput = {
|
|
452
452
|
...output,
|
|
453
|
-
body: await
|
|
453
|
+
body: await parseErrorBody(output.body, context),
|
|
454
454
|
};
|
|
455
455
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
456
456
|
switch (errorCode) {
|
|
@@ -487,7 +487,7 @@ exports.deserializeAws_json1_1AssociateQualificationWithWorkerCommand = deserial
|
|
|
487
487
|
const deserializeAws_json1_1AssociateQualificationWithWorkerCommandError = async (output, context) => {
|
|
488
488
|
const parsedOutput = {
|
|
489
489
|
...output,
|
|
490
|
-
body: await
|
|
490
|
+
body: await parseErrorBody(output.body, context),
|
|
491
491
|
};
|
|
492
492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
493
493
|
switch (errorCode) {
|
|
@@ -524,7 +524,7 @@ exports.deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommand = deseria
|
|
|
524
524
|
const deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommandError = async (output, context) => {
|
|
525
525
|
const parsedOutput = {
|
|
526
526
|
...output,
|
|
527
|
-
body: await
|
|
527
|
+
body: await parseErrorBody(output.body, context),
|
|
528
528
|
};
|
|
529
529
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
530
|
switch (errorCode) {
|
|
@@ -561,7 +561,7 @@ exports.deserializeAws_json1_1CreateHITCommand = deserializeAws_json1_1CreateHIT
|
|
|
561
561
|
const deserializeAws_json1_1CreateHITCommandError = async (output, context) => {
|
|
562
562
|
const parsedOutput = {
|
|
563
563
|
...output,
|
|
564
|
-
body: await
|
|
564
|
+
body: await parseErrorBody(output.body, context),
|
|
565
565
|
};
|
|
566
566
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
567
|
switch (errorCode) {
|
|
@@ -598,7 +598,7 @@ exports.deserializeAws_json1_1CreateHITTypeCommand = deserializeAws_json1_1Creat
|
|
|
598
598
|
const deserializeAws_json1_1CreateHITTypeCommandError = async (output, context) => {
|
|
599
599
|
const parsedOutput = {
|
|
600
600
|
...output,
|
|
601
|
-
body: await
|
|
601
|
+
body: await parseErrorBody(output.body, context),
|
|
602
602
|
};
|
|
603
603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
604
|
switch (errorCode) {
|
|
@@ -635,7 +635,7 @@ exports.deserializeAws_json1_1CreateHITWithHITTypeCommand = deserializeAws_json1
|
|
|
635
635
|
const deserializeAws_json1_1CreateHITWithHITTypeCommandError = async (output, context) => {
|
|
636
636
|
const parsedOutput = {
|
|
637
637
|
...output,
|
|
638
|
-
body: await
|
|
638
|
+
body: await parseErrorBody(output.body, context),
|
|
639
639
|
};
|
|
640
640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
641
|
switch (errorCode) {
|
|
@@ -672,7 +672,7 @@ exports.deserializeAws_json1_1CreateQualificationTypeCommand = deserializeAws_js
|
|
|
672
672
|
const deserializeAws_json1_1CreateQualificationTypeCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
|
-
body: await
|
|
675
|
+
body: await parseErrorBody(output.body, context),
|
|
676
676
|
};
|
|
677
677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
678
|
switch (errorCode) {
|
|
@@ -709,7 +709,7 @@ exports.deserializeAws_json1_1CreateWorkerBlockCommand = deserializeAws_json1_1C
|
|
|
709
709
|
const deserializeAws_json1_1CreateWorkerBlockCommandError = async (output, context) => {
|
|
710
710
|
const parsedOutput = {
|
|
711
711
|
...output,
|
|
712
|
-
body: await
|
|
712
|
+
body: await parseErrorBody(output.body, context),
|
|
713
713
|
};
|
|
714
714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
715
|
switch (errorCode) {
|
|
@@ -746,7 +746,7 @@ exports.deserializeAws_json1_1DeleteHITCommand = deserializeAws_json1_1DeleteHIT
|
|
|
746
746
|
const deserializeAws_json1_1DeleteHITCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
|
-
body: await
|
|
749
|
+
body: await parseErrorBody(output.body, context),
|
|
750
750
|
};
|
|
751
751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
752
|
switch (errorCode) {
|
|
@@ -783,7 +783,7 @@ exports.deserializeAws_json1_1DeleteQualificationTypeCommand = deserializeAws_js
|
|
|
783
783
|
const deserializeAws_json1_1DeleteQualificationTypeCommandError = async (output, context) => {
|
|
784
784
|
const parsedOutput = {
|
|
785
785
|
...output,
|
|
786
|
-
body: await
|
|
786
|
+
body: await parseErrorBody(output.body, context),
|
|
787
787
|
};
|
|
788
788
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
789
|
switch (errorCode) {
|
|
@@ -820,7 +820,7 @@ exports.deserializeAws_json1_1DeleteWorkerBlockCommand = deserializeAws_json1_1D
|
|
|
820
820
|
const deserializeAws_json1_1DeleteWorkerBlockCommandError = async (output, context) => {
|
|
821
821
|
const parsedOutput = {
|
|
822
822
|
...output,
|
|
823
|
-
body: await
|
|
823
|
+
body: await parseErrorBody(output.body, context),
|
|
824
824
|
};
|
|
825
825
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
826
|
switch (errorCode) {
|
|
@@ -857,7 +857,7 @@ exports.deserializeAws_json1_1DisassociateQualificationFromWorkerCommand = deser
|
|
|
857
857
|
const deserializeAws_json1_1DisassociateQualificationFromWorkerCommandError = async (output, context) => {
|
|
858
858
|
const parsedOutput = {
|
|
859
859
|
...output,
|
|
860
|
-
body: await
|
|
860
|
+
body: await parseErrorBody(output.body, context),
|
|
861
861
|
};
|
|
862
862
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
863
|
switch (errorCode) {
|
|
@@ -894,7 +894,7 @@ exports.deserializeAws_json1_1GetAccountBalanceCommand = deserializeAws_json1_1G
|
|
|
894
894
|
const deserializeAws_json1_1GetAccountBalanceCommandError = async (output, context) => {
|
|
895
895
|
const parsedOutput = {
|
|
896
896
|
...output,
|
|
897
|
-
body: await
|
|
897
|
+
body: await parseErrorBody(output.body, context),
|
|
898
898
|
};
|
|
899
899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
900
|
switch (errorCode) {
|
|
@@ -931,7 +931,7 @@ exports.deserializeAws_json1_1GetAssignmentCommand = deserializeAws_json1_1GetAs
|
|
|
931
931
|
const deserializeAws_json1_1GetAssignmentCommandError = async (output, context) => {
|
|
932
932
|
const parsedOutput = {
|
|
933
933
|
...output,
|
|
934
|
-
body: await
|
|
934
|
+
body: await parseErrorBody(output.body, context),
|
|
935
935
|
};
|
|
936
936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
937
|
switch (errorCode) {
|
|
@@ -968,7 +968,7 @@ exports.deserializeAws_json1_1GetFileUploadURLCommand = deserializeAws_json1_1Ge
|
|
|
968
968
|
const deserializeAws_json1_1GetFileUploadURLCommandError = async (output, context) => {
|
|
969
969
|
const parsedOutput = {
|
|
970
970
|
...output,
|
|
971
|
-
body: await
|
|
971
|
+
body: await parseErrorBody(output.body, context),
|
|
972
972
|
};
|
|
973
973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
974
|
switch (errorCode) {
|
|
@@ -1005,7 +1005,7 @@ exports.deserializeAws_json1_1GetHITCommand = deserializeAws_json1_1GetHITComman
|
|
|
1005
1005
|
const deserializeAws_json1_1GetHITCommandError = async (output, context) => {
|
|
1006
1006
|
const parsedOutput = {
|
|
1007
1007
|
...output,
|
|
1008
|
-
body: await
|
|
1008
|
+
body: await parseErrorBody(output.body, context),
|
|
1009
1009
|
};
|
|
1010
1010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
1011
|
switch (errorCode) {
|
|
@@ -1042,7 +1042,7 @@ exports.deserializeAws_json1_1GetQualificationScoreCommand = deserializeAws_json
|
|
|
1042
1042
|
const deserializeAws_json1_1GetQualificationScoreCommandError = async (output, context) => {
|
|
1043
1043
|
const parsedOutput = {
|
|
1044
1044
|
...output,
|
|
1045
|
-
body: await
|
|
1045
|
+
body: await parseErrorBody(output.body, context),
|
|
1046
1046
|
};
|
|
1047
1047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1048
|
switch (errorCode) {
|
|
@@ -1079,7 +1079,7 @@ exports.deserializeAws_json1_1GetQualificationTypeCommand = deserializeAws_json1
|
|
|
1079
1079
|
const deserializeAws_json1_1GetQualificationTypeCommandError = async (output, context) => {
|
|
1080
1080
|
const parsedOutput = {
|
|
1081
1081
|
...output,
|
|
1082
|
-
body: await
|
|
1082
|
+
body: await parseErrorBody(output.body, context),
|
|
1083
1083
|
};
|
|
1084
1084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
1085
|
switch (errorCode) {
|
|
@@ -1116,7 +1116,7 @@ exports.deserializeAws_json1_1ListAssignmentsForHITCommand = deserializeAws_json
|
|
|
1116
1116
|
const deserializeAws_json1_1ListAssignmentsForHITCommandError = async (output, context) => {
|
|
1117
1117
|
const parsedOutput = {
|
|
1118
1118
|
...output,
|
|
1119
|
-
body: await
|
|
1119
|
+
body: await parseErrorBody(output.body, context),
|
|
1120
1120
|
};
|
|
1121
1121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
1122
|
switch (errorCode) {
|
|
@@ -1153,7 +1153,7 @@ exports.deserializeAws_json1_1ListBonusPaymentsCommand = deserializeAws_json1_1L
|
|
|
1153
1153
|
const deserializeAws_json1_1ListBonusPaymentsCommandError = async (output, context) => {
|
|
1154
1154
|
const parsedOutput = {
|
|
1155
1155
|
...output,
|
|
1156
|
-
body: await
|
|
1156
|
+
body: await parseErrorBody(output.body, context),
|
|
1157
1157
|
};
|
|
1158
1158
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
1159
|
switch (errorCode) {
|
|
@@ -1190,7 +1190,7 @@ exports.deserializeAws_json1_1ListHITsCommand = deserializeAws_json1_1ListHITsCo
|
|
|
1190
1190
|
const deserializeAws_json1_1ListHITsCommandError = async (output, context) => {
|
|
1191
1191
|
const parsedOutput = {
|
|
1192
1192
|
...output,
|
|
1193
|
-
body: await
|
|
1193
|
+
body: await parseErrorBody(output.body, context),
|
|
1194
1194
|
};
|
|
1195
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
1196
|
switch (errorCode) {
|
|
@@ -1227,7 +1227,7 @@ exports.deserializeAws_json1_1ListHITsForQualificationTypeCommand = deserializeA
|
|
|
1227
1227
|
const deserializeAws_json1_1ListHITsForQualificationTypeCommandError = async (output, context) => {
|
|
1228
1228
|
const parsedOutput = {
|
|
1229
1229
|
...output,
|
|
1230
|
-
body: await
|
|
1230
|
+
body: await parseErrorBody(output.body, context),
|
|
1231
1231
|
};
|
|
1232
1232
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1233
|
switch (errorCode) {
|
|
@@ -1264,7 +1264,7 @@ exports.deserializeAws_json1_1ListQualificationRequestsCommand = deserializeAws_
|
|
|
1264
1264
|
const deserializeAws_json1_1ListQualificationRequestsCommandError = async (output, context) => {
|
|
1265
1265
|
const parsedOutput = {
|
|
1266
1266
|
...output,
|
|
1267
|
-
body: await
|
|
1267
|
+
body: await parseErrorBody(output.body, context),
|
|
1268
1268
|
};
|
|
1269
1269
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1270
|
switch (errorCode) {
|
|
@@ -1301,7 +1301,7 @@ exports.deserializeAws_json1_1ListQualificationTypesCommand = deserializeAws_jso
|
|
|
1301
1301
|
const deserializeAws_json1_1ListQualificationTypesCommandError = async (output, context) => {
|
|
1302
1302
|
const parsedOutput = {
|
|
1303
1303
|
...output,
|
|
1304
|
-
body: await
|
|
1304
|
+
body: await parseErrorBody(output.body, context),
|
|
1305
1305
|
};
|
|
1306
1306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
1307
|
switch (errorCode) {
|
|
@@ -1338,7 +1338,7 @@ exports.deserializeAws_json1_1ListReviewableHITsCommand = deserializeAws_json1_1
|
|
|
1338
1338
|
const deserializeAws_json1_1ListReviewableHITsCommandError = async (output, context) => {
|
|
1339
1339
|
const parsedOutput = {
|
|
1340
1340
|
...output,
|
|
1341
|
-
body: await
|
|
1341
|
+
body: await parseErrorBody(output.body, context),
|
|
1342
1342
|
};
|
|
1343
1343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1344
|
switch (errorCode) {
|
|
@@ -1375,7 +1375,7 @@ exports.deserializeAws_json1_1ListReviewPolicyResultsForHITCommand = deserialize
|
|
|
1375
1375
|
const deserializeAws_json1_1ListReviewPolicyResultsForHITCommandError = async (output, context) => {
|
|
1376
1376
|
const parsedOutput = {
|
|
1377
1377
|
...output,
|
|
1378
|
-
body: await
|
|
1378
|
+
body: await parseErrorBody(output.body, context),
|
|
1379
1379
|
};
|
|
1380
1380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1381
|
switch (errorCode) {
|
|
@@ -1412,7 +1412,7 @@ exports.deserializeAws_json1_1ListWorkerBlocksCommand = deserializeAws_json1_1Li
|
|
|
1412
1412
|
const deserializeAws_json1_1ListWorkerBlocksCommandError = async (output, context) => {
|
|
1413
1413
|
const parsedOutput = {
|
|
1414
1414
|
...output,
|
|
1415
|
-
body: await
|
|
1415
|
+
body: await parseErrorBody(output.body, context),
|
|
1416
1416
|
};
|
|
1417
1417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1418
|
switch (errorCode) {
|
|
@@ -1449,7 +1449,7 @@ exports.deserializeAws_json1_1ListWorkersWithQualificationTypeCommand = deserial
|
|
|
1449
1449
|
const deserializeAws_json1_1ListWorkersWithQualificationTypeCommandError = async (output, context) => {
|
|
1450
1450
|
const parsedOutput = {
|
|
1451
1451
|
...output,
|
|
1452
|
-
body: await
|
|
1452
|
+
body: await parseErrorBody(output.body, context),
|
|
1453
1453
|
};
|
|
1454
1454
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1455
|
switch (errorCode) {
|
|
@@ -1486,7 +1486,7 @@ exports.deserializeAws_json1_1NotifyWorkersCommand = deserializeAws_json1_1Notif
|
|
|
1486
1486
|
const deserializeAws_json1_1NotifyWorkersCommandError = async (output, context) => {
|
|
1487
1487
|
const parsedOutput = {
|
|
1488
1488
|
...output,
|
|
1489
|
-
body: await
|
|
1489
|
+
body: await parseErrorBody(output.body, context),
|
|
1490
1490
|
};
|
|
1491
1491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1492
|
switch (errorCode) {
|
|
@@ -1523,7 +1523,7 @@ exports.deserializeAws_json1_1RejectAssignmentCommand = deserializeAws_json1_1Re
|
|
|
1523
1523
|
const deserializeAws_json1_1RejectAssignmentCommandError = async (output, context) => {
|
|
1524
1524
|
const parsedOutput = {
|
|
1525
1525
|
...output,
|
|
1526
|
-
body: await
|
|
1526
|
+
body: await parseErrorBody(output.body, context),
|
|
1527
1527
|
};
|
|
1528
1528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
1529
|
switch (errorCode) {
|
|
@@ -1560,7 +1560,7 @@ exports.deserializeAws_json1_1RejectQualificationRequestCommand = deserializeAws
|
|
|
1560
1560
|
const deserializeAws_json1_1RejectQualificationRequestCommandError = async (output, context) => {
|
|
1561
1561
|
const parsedOutput = {
|
|
1562
1562
|
...output,
|
|
1563
|
-
body: await
|
|
1563
|
+
body: await parseErrorBody(output.body, context),
|
|
1564
1564
|
};
|
|
1565
1565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
1566
|
switch (errorCode) {
|
|
@@ -1597,7 +1597,7 @@ exports.deserializeAws_json1_1SendBonusCommand = deserializeAws_json1_1SendBonus
|
|
|
1597
1597
|
const deserializeAws_json1_1SendBonusCommandError = async (output, context) => {
|
|
1598
1598
|
const parsedOutput = {
|
|
1599
1599
|
...output,
|
|
1600
|
-
body: await
|
|
1600
|
+
body: await parseErrorBody(output.body, context),
|
|
1601
1601
|
};
|
|
1602
1602
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
1603
|
switch (errorCode) {
|
|
@@ -1634,7 +1634,7 @@ exports.deserializeAws_json1_1SendTestEventNotificationCommand = deserializeAws_
|
|
|
1634
1634
|
const deserializeAws_json1_1SendTestEventNotificationCommandError = async (output, context) => {
|
|
1635
1635
|
const parsedOutput = {
|
|
1636
1636
|
...output,
|
|
1637
|
-
body: await
|
|
1637
|
+
body: await parseErrorBody(output.body, context),
|
|
1638
1638
|
};
|
|
1639
1639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
1640
|
switch (errorCode) {
|
|
@@ -1671,7 +1671,7 @@ exports.deserializeAws_json1_1UpdateExpirationForHITCommand = deserializeAws_jso
|
|
|
1671
1671
|
const deserializeAws_json1_1UpdateExpirationForHITCommandError = async (output, context) => {
|
|
1672
1672
|
const parsedOutput = {
|
|
1673
1673
|
...output,
|
|
1674
|
-
body: await
|
|
1674
|
+
body: await parseErrorBody(output.body, context),
|
|
1675
1675
|
};
|
|
1676
1676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
1677
|
switch (errorCode) {
|
|
@@ -1708,7 +1708,7 @@ exports.deserializeAws_json1_1UpdateHITReviewStatusCommand = deserializeAws_json
|
|
|
1708
1708
|
const deserializeAws_json1_1UpdateHITReviewStatusCommandError = async (output, context) => {
|
|
1709
1709
|
const parsedOutput = {
|
|
1710
1710
|
...output,
|
|
1711
|
-
body: await
|
|
1711
|
+
body: await parseErrorBody(output.body, context),
|
|
1712
1712
|
};
|
|
1713
1713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
1714
|
switch (errorCode) {
|
|
@@ -1745,7 +1745,7 @@ exports.deserializeAws_json1_1UpdateHITTypeOfHITCommand = deserializeAws_json1_1
|
|
|
1745
1745
|
const deserializeAws_json1_1UpdateHITTypeOfHITCommandError = async (output, context) => {
|
|
1746
1746
|
const parsedOutput = {
|
|
1747
1747
|
...output,
|
|
1748
|
-
body: await
|
|
1748
|
+
body: await parseErrorBody(output.body, context),
|
|
1749
1749
|
};
|
|
1750
1750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1751
1751
|
switch (errorCode) {
|
|
@@ -1782,7 +1782,7 @@ exports.deserializeAws_json1_1UpdateNotificationSettingsCommand = deserializeAws
|
|
|
1782
1782
|
const deserializeAws_json1_1UpdateNotificationSettingsCommandError = async (output, context) => {
|
|
1783
1783
|
const parsedOutput = {
|
|
1784
1784
|
...output,
|
|
1785
|
-
body: await
|
|
1785
|
+
body: await parseErrorBody(output.body, context),
|
|
1786
1786
|
};
|
|
1787
1787
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
1788
|
switch (errorCode) {
|
|
@@ -1819,7 +1819,7 @@ exports.deserializeAws_json1_1UpdateQualificationTypeCommand = deserializeAws_js
|
|
|
1819
1819
|
const deserializeAws_json1_1UpdateQualificationTypeCommandError = async (output, context) => {
|
|
1820
1820
|
const parsedOutput = {
|
|
1821
1821
|
...output,
|
|
1822
|
-
body: await
|
|
1822
|
+
body: await parseErrorBody(output.body, context),
|
|
1823
1823
|
};
|
|
1824
1824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
1825
|
switch (errorCode) {
|
|
@@ -2925,6 +2925,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2925
2925
|
}
|
|
2926
2926
|
return {};
|
|
2927
2927
|
});
|
|
2928
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2929
|
+
var _a;
|
|
2930
|
+
const value = await parseBody(errorBody, context);
|
|
2931
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2932
|
+
return value;
|
|
2933
|
+
};
|
|
2928
2934
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2929
2935
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2930
2936
|
const sanitizeErrorCode = (rawValue) => {
|