@aws-sdk/client-mturk 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AcceptQualificationRequestCommand.js +2 -2
- package/dist-cjs/commands/ApproveAssignmentCommand.js +2 -2
- package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js +2 -2
- package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +2 -2
- package/dist-cjs/commands/CreateHITCommand.js +2 -2
- package/dist-cjs/commands/CreateHITTypeCommand.js +2 -2
- package/dist-cjs/commands/CreateHITWithHITTypeCommand.js +2 -2
- package/dist-cjs/commands/CreateQualificationTypeCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkerBlockCommand.js +2 -2
- package/dist-cjs/commands/DeleteHITCommand.js +2 -2
- package/dist-cjs/commands/DeleteQualificationTypeCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkerBlockCommand.js +2 -2
- package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js +2 -2
- package/dist-cjs/commands/GetAccountBalanceCommand.js +2 -2
- package/dist-cjs/commands/GetAssignmentCommand.js +2 -2
- package/dist-cjs/commands/GetFileUploadURLCommand.js +2 -2
- package/dist-cjs/commands/GetHITCommand.js +2 -2
- package/dist-cjs/commands/GetQualificationScoreCommand.js +2 -2
- package/dist-cjs/commands/GetQualificationTypeCommand.js +2 -2
- package/dist-cjs/commands/ListAssignmentsForHITCommand.js +2 -2
- package/dist-cjs/commands/ListBonusPaymentsCommand.js +2 -2
- package/dist-cjs/commands/ListHITsCommand.js +2 -2
- package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js +2 -2
- package/dist-cjs/commands/ListQualificationRequestsCommand.js +2 -2
- package/dist-cjs/commands/ListQualificationTypesCommand.js +2 -2
- package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js +2 -2
- package/dist-cjs/commands/ListReviewableHITsCommand.js +2 -2
- package/dist-cjs/commands/ListWorkerBlocksCommand.js +2 -2
- package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js +2 -2
- package/dist-cjs/commands/NotifyWorkersCommand.js +2 -2
- package/dist-cjs/commands/RejectAssignmentCommand.js +2 -2
- package/dist-cjs/commands/RejectQualificationRequestCommand.js +2 -2
- package/dist-cjs/commands/SendBonusCommand.js +2 -2
- package/dist-cjs/commands/SendTestEventNotificationCommand.js +2 -2
- package/dist-cjs/commands/UpdateExpirationForHITCommand.js +2 -2
- package/dist-cjs/commands/UpdateHITReviewStatusCommand.js +2 -2
- package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js +2 -2
- package/dist-cjs/commands/UpdateNotificationSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateQualificationTypeCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +598 -630
- package/dist-es/commands/AcceptQualificationRequestCommand.js +3 -3
- package/dist-es/commands/ApproveAssignmentCommand.js +3 -3
- package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +3 -3
- package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +3 -3
- package/dist-es/commands/CreateHITCommand.js +3 -3
- package/dist-es/commands/CreateHITTypeCommand.js +3 -3
- package/dist-es/commands/CreateHITWithHITTypeCommand.js +3 -3
- package/dist-es/commands/CreateQualificationTypeCommand.js +3 -3
- package/dist-es/commands/CreateWorkerBlockCommand.js +3 -3
- package/dist-es/commands/DeleteHITCommand.js +3 -3
- package/dist-es/commands/DeleteQualificationTypeCommand.js +3 -3
- package/dist-es/commands/DeleteWorkerBlockCommand.js +3 -3
- package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +3 -3
- package/dist-es/commands/GetAccountBalanceCommand.js +3 -3
- package/dist-es/commands/GetAssignmentCommand.js +3 -3
- package/dist-es/commands/GetFileUploadURLCommand.js +3 -3
- package/dist-es/commands/GetHITCommand.js +3 -3
- package/dist-es/commands/GetQualificationScoreCommand.js +3 -3
- package/dist-es/commands/GetQualificationTypeCommand.js +3 -3
- package/dist-es/commands/ListAssignmentsForHITCommand.js +3 -3
- package/dist-es/commands/ListBonusPaymentsCommand.js +3 -3
- package/dist-es/commands/ListHITsCommand.js +3 -3
- package/dist-es/commands/ListHITsForQualificationTypeCommand.js +3 -3
- package/dist-es/commands/ListQualificationRequestsCommand.js +3 -3
- package/dist-es/commands/ListQualificationTypesCommand.js +3 -3
- package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +3 -3
- package/dist-es/commands/ListReviewableHITsCommand.js +3 -3
- package/dist-es/commands/ListWorkerBlocksCommand.js +3 -3
- package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +3 -3
- package/dist-es/commands/NotifyWorkersCommand.js +3 -3
- package/dist-es/commands/RejectAssignmentCommand.js +3 -3
- package/dist-es/commands/RejectQualificationRequestCommand.js +3 -3
- package/dist-es/commands/SendBonusCommand.js +3 -3
- package/dist-es/commands/SendTestEventNotificationCommand.js +3 -3
- package/dist-es/commands/UpdateExpirationForHITCommand.js +3 -3
- package/dist-es/commands/UpdateHITReviewStatusCommand.js +3 -3
- package/dist-es/commands/UpdateHITTypeOfHITCommand.js +3 -3
- package/dist-es/commands/UpdateNotificationSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateQualificationTypeCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +518 -550
- package/dist-types/protocols/Aws_json1_1.d.ts +312 -78
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +78 -78
- package/package.json +35 -35
|
@@ -1,416 +1,416 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_DeleteQualificationTypeCommand = exports.de_DeleteHITCommand = exports.de_CreateWorkerBlockCommand = exports.de_CreateQualificationTypeCommand = exports.de_CreateHITWithHITTypeCommand = exports.de_CreateHITTypeCommand = exports.de_CreateHITCommand = exports.de_CreateAdditionalAssignmentsForHITCommand = exports.de_AssociateQualificationWithWorkerCommand = exports.de_ApproveAssignmentCommand = exports.de_AcceptQualificationRequestCommand = exports.se_UpdateQualificationTypeCommand = exports.se_UpdateNotificationSettingsCommand = exports.se_UpdateHITTypeOfHITCommand = exports.se_UpdateHITReviewStatusCommand = exports.se_UpdateExpirationForHITCommand = exports.se_SendTestEventNotificationCommand = exports.se_SendBonusCommand = exports.se_RejectQualificationRequestCommand = exports.se_RejectAssignmentCommand = exports.se_NotifyWorkersCommand = exports.se_ListWorkersWithQualificationTypeCommand = exports.se_ListWorkerBlocksCommand = exports.se_ListReviewPolicyResultsForHITCommand = exports.se_ListReviewableHITsCommand = exports.se_ListQualificationTypesCommand = exports.se_ListQualificationRequestsCommand = exports.se_ListHITsForQualificationTypeCommand = exports.se_ListHITsCommand = exports.se_ListBonusPaymentsCommand = exports.se_ListAssignmentsForHITCommand = exports.se_GetQualificationTypeCommand = exports.se_GetQualificationScoreCommand = exports.se_GetHITCommand = exports.se_GetFileUploadURLCommand = exports.se_GetAssignmentCommand = exports.se_GetAccountBalanceCommand = exports.se_DisassociateQualificationFromWorkerCommand = exports.se_DeleteWorkerBlockCommand = exports.se_DeleteQualificationTypeCommand = exports.se_DeleteHITCommand = exports.se_CreateWorkerBlockCommand = exports.se_CreateQualificationTypeCommand = exports.se_CreateHITWithHITTypeCommand = exports.se_CreateHITTypeCommand = exports.se_CreateHITCommand = exports.se_CreateAdditionalAssignmentsForHITCommand = exports.se_AssociateQualificationWithWorkerCommand = exports.se_ApproveAssignmentCommand = exports.se_AcceptQualificationRequestCommand = void 0;
|
|
4
|
+
exports.de_UpdateQualificationTypeCommand = exports.de_UpdateNotificationSettingsCommand = exports.de_UpdateHITTypeOfHITCommand = exports.de_UpdateHITReviewStatusCommand = exports.de_UpdateExpirationForHITCommand = exports.de_SendTestEventNotificationCommand = exports.de_SendBonusCommand = exports.de_RejectQualificationRequestCommand = exports.de_RejectAssignmentCommand = exports.de_NotifyWorkersCommand = exports.de_ListWorkersWithQualificationTypeCommand = exports.de_ListWorkerBlocksCommand = exports.de_ListReviewPolicyResultsForHITCommand = exports.de_ListReviewableHITsCommand = exports.de_ListQualificationTypesCommand = exports.de_ListQualificationRequestsCommand = exports.de_ListHITsForQualificationTypeCommand = exports.de_ListHITsCommand = exports.de_ListBonusPaymentsCommand = exports.de_ListAssignmentsForHITCommand = exports.de_GetQualificationTypeCommand = exports.de_GetQualificationScoreCommand = exports.de_GetHITCommand = exports.de_GetFileUploadURLCommand = exports.de_GetAssignmentCommand = exports.de_GetAccountBalanceCommand = exports.de_DisassociateQualificationFromWorkerCommand = exports.de_DeleteWorkerBlockCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const MTurkServiceException_1 = require("../models/MTurkServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_AcceptQualificationRequestCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "MTurkRequesterServiceV20170117.AcceptQualificationRequest",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_AcceptQualificationRequestRequest(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_AcceptQualificationRequestCommand = se_AcceptQualificationRequestCommand;
|
|
19
|
+
const se_ApproveAssignmentCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "MTurkRequesterServiceV20170117.ApproveAssignment",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_ApproveAssignmentRequest(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_ApproveAssignmentCommand = se_ApproveAssignmentCommand;
|
|
29
|
+
const se_AssociateQualificationWithWorkerCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "MTurkRequesterServiceV20170117.AssociateQualificationWithWorker",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_AssociateQualificationWithWorkerRequest(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_AssociateQualificationWithWorkerCommand = se_AssociateQualificationWithWorkerCommand;
|
|
39
|
+
const se_CreateAdditionalAssignmentsForHITCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "MTurkRequesterServiceV20170117.CreateAdditionalAssignmentsForHIT",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_CreateAdditionalAssignmentsForHITRequest(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_CreateAdditionalAssignmentsForHITCommand = se_CreateAdditionalAssignmentsForHITCommand;
|
|
49
|
+
const se_CreateHITCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "MTurkRequesterServiceV20170117.CreateHIT",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_CreateHITRequest(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_CreateHITCommand = se_CreateHITCommand;
|
|
59
|
+
const se_CreateHITTypeCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "MTurkRequesterServiceV20170117.CreateHITType",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_CreateHITTypeRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_CreateHITTypeCommand = se_CreateHITTypeCommand;
|
|
69
|
+
const se_CreateHITWithHITTypeCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "MTurkRequesterServiceV20170117.CreateHITWithHITType",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_CreateHITWithHITTypeRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_CreateHITWithHITTypeCommand = se_CreateHITWithHITTypeCommand;
|
|
79
|
+
const se_CreateQualificationTypeCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "MTurkRequesterServiceV20170117.CreateQualificationType",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_CreateQualificationTypeRequest(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_CreateQualificationTypeCommand = se_CreateQualificationTypeCommand;
|
|
89
|
+
const se_CreateWorkerBlockCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "MTurkRequesterServiceV20170117.CreateWorkerBlock",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_CreateWorkerBlockRequest(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_CreateWorkerBlockCommand = se_CreateWorkerBlockCommand;
|
|
99
|
+
const se_DeleteHITCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "MTurkRequesterServiceV20170117.DeleteHIT",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_DeleteHITRequest(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_DeleteHITCommand = se_DeleteHITCommand;
|
|
109
|
+
const se_DeleteQualificationTypeCommand = async (input, context) => {
|
|
110
110
|
const headers = {
|
|
111
111
|
"content-type": "application/x-amz-json-1.1",
|
|
112
112
|
"x-amz-target": "MTurkRequesterServiceV20170117.DeleteQualificationType",
|
|
113
113
|
};
|
|
114
114
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
115
|
+
body = JSON.stringify(se_DeleteQualificationTypeRequest(input, context));
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
118
|
+
exports.se_DeleteQualificationTypeCommand = se_DeleteQualificationTypeCommand;
|
|
119
|
+
const se_DeleteWorkerBlockCommand = async (input, context) => {
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/x-amz-json-1.1",
|
|
122
122
|
"x-amz-target": "MTurkRequesterServiceV20170117.DeleteWorkerBlock",
|
|
123
123
|
};
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify(se_DeleteWorkerBlockRequest(input, context));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_DeleteWorkerBlockCommand = se_DeleteWorkerBlockCommand;
|
|
129
|
+
const se_DisassociateQualificationFromWorkerCommand = async (input, context) => {
|
|
130
130
|
const headers = {
|
|
131
131
|
"content-type": "application/x-amz-json-1.1",
|
|
132
132
|
"x-amz-target": "MTurkRequesterServiceV20170117.DisassociateQualificationFromWorker",
|
|
133
133
|
};
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(se_DisassociateQualificationFromWorkerRequest(input, context));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_DisassociateQualificationFromWorkerCommand = se_DisassociateQualificationFromWorkerCommand;
|
|
139
|
+
const se_GetAccountBalanceCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "MTurkRequesterServiceV20170117.GetAccountBalance",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_GetAccountBalanceRequest(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_GetAccountBalanceCommand = se_GetAccountBalanceCommand;
|
|
149
|
+
const se_GetAssignmentCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "MTurkRequesterServiceV20170117.GetAssignment",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_GetAssignmentRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
159
|
-
const
|
|
158
|
+
exports.se_GetAssignmentCommand = se_GetAssignmentCommand;
|
|
159
|
+
const se_GetFileUploadURLCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "MTurkRequesterServiceV20170117.GetFileUploadURL",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_GetFileUploadURLRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_GetFileUploadURLCommand = se_GetFileUploadURLCommand;
|
|
169
|
+
const se_GetHITCommand = async (input, context) => {
|
|
170
170
|
const headers = {
|
|
171
171
|
"content-type": "application/x-amz-json-1.1",
|
|
172
172
|
"x-amz-target": "MTurkRequesterServiceV20170117.GetHIT",
|
|
173
173
|
};
|
|
174
174
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify(se_GetHITRequest(input, context));
|
|
176
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
177
|
};
|
|
178
|
-
exports.
|
|
179
|
-
const
|
|
178
|
+
exports.se_GetHITCommand = se_GetHITCommand;
|
|
179
|
+
const se_GetQualificationScoreCommand = async (input, context) => {
|
|
180
180
|
const headers = {
|
|
181
181
|
"content-type": "application/x-amz-json-1.1",
|
|
182
182
|
"x-amz-target": "MTurkRequesterServiceV20170117.GetQualificationScore",
|
|
183
183
|
};
|
|
184
184
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
185
|
+
body = JSON.stringify(se_GetQualificationScoreRequest(input, context));
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
188
|
+
exports.se_GetQualificationScoreCommand = se_GetQualificationScoreCommand;
|
|
189
|
+
const se_GetQualificationTypeCommand = async (input, context) => {
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/x-amz-json-1.1",
|
|
192
192
|
"x-amz-target": "MTurkRequesterServiceV20170117.GetQualificationType",
|
|
193
193
|
};
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify(se_GetQualificationTypeRequest(input, context));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_GetQualificationTypeCommand = se_GetQualificationTypeCommand;
|
|
199
|
+
const se_ListAssignmentsForHITCommand = async (input, context) => {
|
|
200
200
|
const headers = {
|
|
201
201
|
"content-type": "application/x-amz-json-1.1",
|
|
202
202
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListAssignmentsForHIT",
|
|
203
203
|
};
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify(se_ListAssignmentsForHITRequest(input, context));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_ListAssignmentsForHITCommand = se_ListAssignmentsForHITCommand;
|
|
209
|
+
const se_ListBonusPaymentsCommand = async (input, context) => {
|
|
210
210
|
const headers = {
|
|
211
211
|
"content-type": "application/x-amz-json-1.1",
|
|
212
212
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListBonusPayments",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify(se_ListBonusPaymentsRequest(input, context));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.se_ListBonusPaymentsCommand = se_ListBonusPaymentsCommand;
|
|
219
|
+
const se_ListHITsCommand = async (input, context) => {
|
|
220
220
|
const headers = {
|
|
221
221
|
"content-type": "application/x-amz-json-1.1",
|
|
222
222
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListHITs",
|
|
223
223
|
};
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify(se_ListHITsRequest(input, context));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_ListHITsCommand = se_ListHITsCommand;
|
|
229
|
+
const se_ListHITsForQualificationTypeCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListHITsForQualificationType",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_ListHITsForQualificationTypeRequest(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
exports.
|
|
239
|
-
const
|
|
238
|
+
exports.se_ListHITsForQualificationTypeCommand = se_ListHITsForQualificationTypeCommand;
|
|
239
|
+
const se_ListQualificationRequestsCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListQualificationRequests",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_ListQualificationRequestsRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_ListQualificationRequestsCommand = se_ListQualificationRequestsCommand;
|
|
249
|
+
const se_ListQualificationTypesCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.1",
|
|
252
252
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListQualificationTypes",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_ListQualificationTypesRequest(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
exports.
|
|
259
|
-
const
|
|
258
|
+
exports.se_ListQualificationTypesCommand = se_ListQualificationTypesCommand;
|
|
259
|
+
const se_ListReviewableHITsCommand = async (input, context) => {
|
|
260
260
|
const headers = {
|
|
261
261
|
"content-type": "application/x-amz-json-1.1",
|
|
262
262
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListReviewableHITs",
|
|
263
263
|
};
|
|
264
264
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify(se_ListReviewableHITsRequest(input, context));
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_ListReviewableHITsCommand = se_ListReviewableHITsCommand;
|
|
269
|
+
const se_ListReviewPolicyResultsForHITCommand = async (input, context) => {
|
|
270
270
|
const headers = {
|
|
271
271
|
"content-type": "application/x-amz-json-1.1",
|
|
272
272
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListReviewPolicyResultsForHIT",
|
|
273
273
|
};
|
|
274
274
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
275
|
+
body = JSON.stringify(se_ListReviewPolicyResultsForHITRequest(input, context));
|
|
276
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
277
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
278
|
+
exports.se_ListReviewPolicyResultsForHITCommand = se_ListReviewPolicyResultsForHITCommand;
|
|
279
|
+
const se_ListWorkerBlocksCommand = async (input, context) => {
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/x-amz-json-1.1",
|
|
282
282
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListWorkerBlocks",
|
|
283
283
|
};
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify(se_ListWorkerBlocksRequest(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_ListWorkerBlocksCommand = se_ListWorkerBlocksCommand;
|
|
289
|
+
const se_ListWorkersWithQualificationTypeCommand = async (input, context) => {
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/x-amz-json-1.1",
|
|
292
292
|
"x-amz-target": "MTurkRequesterServiceV20170117.ListWorkersWithQualificationType",
|
|
293
293
|
};
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
295
|
+
body = JSON.stringify(se_ListWorkersWithQualificationTypeRequest(input, context));
|
|
296
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
297
|
};
|
|
298
|
-
exports.
|
|
299
|
-
const
|
|
298
|
+
exports.se_ListWorkersWithQualificationTypeCommand = se_ListWorkersWithQualificationTypeCommand;
|
|
299
|
+
const se_NotifyWorkersCommand = async (input, context) => {
|
|
300
300
|
const headers = {
|
|
301
301
|
"content-type": "application/x-amz-json-1.1",
|
|
302
302
|
"x-amz-target": "MTurkRequesterServiceV20170117.NotifyWorkers",
|
|
303
303
|
};
|
|
304
304
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
305
|
+
body = JSON.stringify(se_NotifyWorkersRequest(input, context));
|
|
306
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
307
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
308
|
+
exports.se_NotifyWorkersCommand = se_NotifyWorkersCommand;
|
|
309
|
+
const se_RejectAssignmentCommand = async (input, context) => {
|
|
310
310
|
const headers = {
|
|
311
311
|
"content-type": "application/x-amz-json-1.1",
|
|
312
312
|
"x-amz-target": "MTurkRequesterServiceV20170117.RejectAssignment",
|
|
313
313
|
};
|
|
314
314
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
315
|
+
body = JSON.stringify(se_RejectAssignmentRequest(input, context));
|
|
316
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
317
|
};
|
|
318
|
-
exports.
|
|
319
|
-
const
|
|
318
|
+
exports.se_RejectAssignmentCommand = se_RejectAssignmentCommand;
|
|
319
|
+
const se_RejectQualificationRequestCommand = async (input, context) => {
|
|
320
320
|
const headers = {
|
|
321
321
|
"content-type": "application/x-amz-json-1.1",
|
|
322
322
|
"x-amz-target": "MTurkRequesterServiceV20170117.RejectQualificationRequest",
|
|
323
323
|
};
|
|
324
324
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
325
|
+
body = JSON.stringify(se_RejectQualificationRequestRequest(input, context));
|
|
326
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
327
|
};
|
|
328
|
-
exports.
|
|
329
|
-
const
|
|
328
|
+
exports.se_RejectQualificationRequestCommand = se_RejectQualificationRequestCommand;
|
|
329
|
+
const se_SendBonusCommand = async (input, context) => {
|
|
330
330
|
const headers = {
|
|
331
331
|
"content-type": "application/x-amz-json-1.1",
|
|
332
332
|
"x-amz-target": "MTurkRequesterServiceV20170117.SendBonus",
|
|
333
333
|
};
|
|
334
334
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
335
|
+
body = JSON.stringify(se_SendBonusRequest(input, context));
|
|
336
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
337
|
};
|
|
338
|
-
exports.
|
|
339
|
-
const
|
|
338
|
+
exports.se_SendBonusCommand = se_SendBonusCommand;
|
|
339
|
+
const se_SendTestEventNotificationCommand = async (input, context) => {
|
|
340
340
|
const headers = {
|
|
341
341
|
"content-type": "application/x-amz-json-1.1",
|
|
342
342
|
"x-amz-target": "MTurkRequesterServiceV20170117.SendTestEventNotification",
|
|
343
343
|
};
|
|
344
344
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
345
|
+
body = JSON.stringify(se_SendTestEventNotificationRequest(input, context));
|
|
346
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
347
|
};
|
|
348
|
-
exports.
|
|
349
|
-
const
|
|
348
|
+
exports.se_SendTestEventNotificationCommand = se_SendTestEventNotificationCommand;
|
|
349
|
+
const se_UpdateExpirationForHITCommand = async (input, context) => {
|
|
350
350
|
const headers = {
|
|
351
351
|
"content-type": "application/x-amz-json-1.1",
|
|
352
352
|
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateExpirationForHIT",
|
|
353
353
|
};
|
|
354
354
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
355
|
+
body = JSON.stringify(se_UpdateExpirationForHITRequest(input, context));
|
|
356
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
357
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
358
|
+
exports.se_UpdateExpirationForHITCommand = se_UpdateExpirationForHITCommand;
|
|
359
|
+
const se_UpdateHITReviewStatusCommand = async (input, context) => {
|
|
360
360
|
const headers = {
|
|
361
361
|
"content-type": "application/x-amz-json-1.1",
|
|
362
362
|
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateHITReviewStatus",
|
|
363
363
|
};
|
|
364
364
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
365
|
+
body = JSON.stringify(se_UpdateHITReviewStatusRequest(input, context));
|
|
366
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
367
|
};
|
|
368
|
-
exports.
|
|
369
|
-
const
|
|
368
|
+
exports.se_UpdateHITReviewStatusCommand = se_UpdateHITReviewStatusCommand;
|
|
369
|
+
const se_UpdateHITTypeOfHITCommand = async (input, context) => {
|
|
370
370
|
const headers = {
|
|
371
371
|
"content-type": "application/x-amz-json-1.1",
|
|
372
372
|
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateHITTypeOfHIT",
|
|
373
373
|
};
|
|
374
374
|
let body;
|
|
375
|
-
body = JSON.stringify(
|
|
375
|
+
body = JSON.stringify(se_UpdateHITTypeOfHITRequest(input, context));
|
|
376
376
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
377
|
};
|
|
378
|
-
exports.
|
|
379
|
-
const
|
|
378
|
+
exports.se_UpdateHITTypeOfHITCommand = se_UpdateHITTypeOfHITCommand;
|
|
379
|
+
const se_UpdateNotificationSettingsCommand = async (input, context) => {
|
|
380
380
|
const headers = {
|
|
381
381
|
"content-type": "application/x-amz-json-1.1",
|
|
382
382
|
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateNotificationSettings",
|
|
383
383
|
};
|
|
384
384
|
let body;
|
|
385
|
-
body = JSON.stringify(
|
|
385
|
+
body = JSON.stringify(se_UpdateNotificationSettingsRequest(input, context));
|
|
386
386
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
387
|
};
|
|
388
|
-
exports.
|
|
389
|
-
const
|
|
388
|
+
exports.se_UpdateNotificationSettingsCommand = se_UpdateNotificationSettingsCommand;
|
|
389
|
+
const se_UpdateQualificationTypeCommand = async (input, context) => {
|
|
390
390
|
const headers = {
|
|
391
391
|
"content-type": "application/x-amz-json-1.1",
|
|
392
392
|
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateQualificationType",
|
|
393
393
|
};
|
|
394
394
|
let body;
|
|
395
|
-
body = JSON.stringify(
|
|
395
|
+
body = JSON.stringify(se_UpdateQualificationTypeRequest(input, context));
|
|
396
396
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
397
|
};
|
|
398
|
-
exports.
|
|
399
|
-
const
|
|
398
|
+
exports.se_UpdateQualificationTypeCommand = se_UpdateQualificationTypeCommand;
|
|
399
|
+
const de_AcceptQualificationRequestCommand = async (output, context) => {
|
|
400
400
|
if (output.statusCode >= 300) {
|
|
401
|
-
return
|
|
401
|
+
return de_AcceptQualificationRequestCommandError(output, context);
|
|
402
402
|
}
|
|
403
403
|
const data = await parseBody(output.body, context);
|
|
404
404
|
let contents = {};
|
|
405
|
-
contents =
|
|
405
|
+
contents = de_AcceptQualificationRequestResponse(data, context);
|
|
406
406
|
const response = {
|
|
407
407
|
$metadata: deserializeMetadata(output),
|
|
408
408
|
...contents,
|
|
409
409
|
};
|
|
410
410
|
return Promise.resolve(response);
|
|
411
411
|
};
|
|
412
|
-
exports.
|
|
413
|
-
const
|
|
412
|
+
exports.de_AcceptQualificationRequestCommand = de_AcceptQualificationRequestCommand;
|
|
413
|
+
const de_AcceptQualificationRequestCommandError = async (output, context) => {
|
|
414
414
|
const parsedOutput = {
|
|
415
415
|
...output,
|
|
416
416
|
body: await parseErrorBody(output.body, context),
|
|
@@ -419,10 +419,10 @@ const deserializeAws_json1_1AcceptQualificationRequestCommandError = async (outp
|
|
|
419
419
|
switch (errorCode) {
|
|
420
420
|
case "RequestError":
|
|
421
421
|
case "com.amazonaws.mturk#RequestError":
|
|
422
|
-
throw await
|
|
422
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
423
423
|
case "ServiceFault":
|
|
424
424
|
case "com.amazonaws.mturk#ServiceFault":
|
|
425
|
-
throw await
|
|
425
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
426
426
|
default:
|
|
427
427
|
const parsedBody = parsedOutput.body;
|
|
428
428
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -433,21 +433,21 @@ const deserializeAws_json1_1AcceptQualificationRequestCommandError = async (outp
|
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
-
const
|
|
436
|
+
const de_ApproveAssignmentCommand = async (output, context) => {
|
|
437
437
|
if (output.statusCode >= 300) {
|
|
438
|
-
return
|
|
438
|
+
return de_ApproveAssignmentCommandError(output, context);
|
|
439
439
|
}
|
|
440
440
|
const data = await parseBody(output.body, context);
|
|
441
441
|
let contents = {};
|
|
442
|
-
contents =
|
|
442
|
+
contents = de_ApproveAssignmentResponse(data, context);
|
|
443
443
|
const response = {
|
|
444
444
|
$metadata: deserializeMetadata(output),
|
|
445
445
|
...contents,
|
|
446
446
|
};
|
|
447
447
|
return Promise.resolve(response);
|
|
448
448
|
};
|
|
449
|
-
exports.
|
|
450
|
-
const
|
|
449
|
+
exports.de_ApproveAssignmentCommand = de_ApproveAssignmentCommand;
|
|
450
|
+
const de_ApproveAssignmentCommandError = async (output, context) => {
|
|
451
451
|
const parsedOutput = {
|
|
452
452
|
...output,
|
|
453
453
|
body: await parseErrorBody(output.body, context),
|
|
@@ -456,10 +456,10 @@ const deserializeAws_json1_1ApproveAssignmentCommandError = async (output, conte
|
|
|
456
456
|
switch (errorCode) {
|
|
457
457
|
case "RequestError":
|
|
458
458
|
case "com.amazonaws.mturk#RequestError":
|
|
459
|
-
throw await
|
|
459
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
460
460
|
case "ServiceFault":
|
|
461
461
|
case "com.amazonaws.mturk#ServiceFault":
|
|
462
|
-
throw await
|
|
462
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
463
463
|
default:
|
|
464
464
|
const parsedBody = parsedOutput.body;
|
|
465
465
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -470,21 +470,21 @@ const deserializeAws_json1_1ApproveAssignmentCommandError = async (output, conte
|
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
|
-
const
|
|
473
|
+
const de_AssociateQualificationWithWorkerCommand = async (output, context) => {
|
|
474
474
|
if (output.statusCode >= 300) {
|
|
475
|
-
return
|
|
475
|
+
return de_AssociateQualificationWithWorkerCommandError(output, context);
|
|
476
476
|
}
|
|
477
477
|
const data = await parseBody(output.body, context);
|
|
478
478
|
let contents = {};
|
|
479
|
-
contents =
|
|
479
|
+
contents = de_AssociateQualificationWithWorkerResponse(data, context);
|
|
480
480
|
const response = {
|
|
481
481
|
$metadata: deserializeMetadata(output),
|
|
482
482
|
...contents,
|
|
483
483
|
};
|
|
484
484
|
return Promise.resolve(response);
|
|
485
485
|
};
|
|
486
|
-
exports.
|
|
487
|
-
const
|
|
486
|
+
exports.de_AssociateQualificationWithWorkerCommand = de_AssociateQualificationWithWorkerCommand;
|
|
487
|
+
const de_AssociateQualificationWithWorkerCommandError = async (output, context) => {
|
|
488
488
|
const parsedOutput = {
|
|
489
489
|
...output,
|
|
490
490
|
body: await parseErrorBody(output.body, context),
|
|
@@ -493,10 +493,10 @@ const deserializeAws_json1_1AssociateQualificationWithWorkerCommandError = async
|
|
|
493
493
|
switch (errorCode) {
|
|
494
494
|
case "RequestError":
|
|
495
495
|
case "com.amazonaws.mturk#RequestError":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
497
497
|
case "ServiceFault":
|
|
498
498
|
case "com.amazonaws.mturk#ServiceFault":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
500
500
|
default:
|
|
501
501
|
const parsedBody = parsedOutput.body;
|
|
502
502
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -507,21 +507,21 @@ const deserializeAws_json1_1AssociateQualificationWithWorkerCommandError = async
|
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
|
-
const
|
|
510
|
+
const de_CreateAdditionalAssignmentsForHITCommand = async (output, context) => {
|
|
511
511
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
512
|
+
return de_CreateAdditionalAssignmentsForHITCommandError(output, context);
|
|
513
513
|
}
|
|
514
514
|
const data = await parseBody(output.body, context);
|
|
515
515
|
let contents = {};
|
|
516
|
-
contents =
|
|
516
|
+
contents = de_CreateAdditionalAssignmentsForHITResponse(data, context);
|
|
517
517
|
const response = {
|
|
518
518
|
$metadata: deserializeMetadata(output),
|
|
519
519
|
...contents,
|
|
520
520
|
};
|
|
521
521
|
return Promise.resolve(response);
|
|
522
522
|
};
|
|
523
|
-
exports.
|
|
524
|
-
const
|
|
523
|
+
exports.de_CreateAdditionalAssignmentsForHITCommand = de_CreateAdditionalAssignmentsForHITCommand;
|
|
524
|
+
const de_CreateAdditionalAssignmentsForHITCommandError = async (output, context) => {
|
|
525
525
|
const parsedOutput = {
|
|
526
526
|
...output,
|
|
527
527
|
body: await parseErrorBody(output.body, context),
|
|
@@ -530,10 +530,10 @@ const deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommandError = asyn
|
|
|
530
530
|
switch (errorCode) {
|
|
531
531
|
case "RequestError":
|
|
532
532
|
case "com.amazonaws.mturk#RequestError":
|
|
533
|
-
throw await
|
|
533
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
534
534
|
case "ServiceFault":
|
|
535
535
|
case "com.amazonaws.mturk#ServiceFault":
|
|
536
|
-
throw await
|
|
536
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
537
537
|
default:
|
|
538
538
|
const parsedBody = parsedOutput.body;
|
|
539
539
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -544,21 +544,21 @@ const deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommandError = asyn
|
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
546
|
};
|
|
547
|
-
const
|
|
547
|
+
const de_CreateHITCommand = async (output, context) => {
|
|
548
548
|
if (output.statusCode >= 300) {
|
|
549
|
-
return
|
|
549
|
+
return de_CreateHITCommandError(output, context);
|
|
550
550
|
}
|
|
551
551
|
const data = await parseBody(output.body, context);
|
|
552
552
|
let contents = {};
|
|
553
|
-
contents =
|
|
553
|
+
contents = de_CreateHITResponse(data, context);
|
|
554
554
|
const response = {
|
|
555
555
|
$metadata: deserializeMetadata(output),
|
|
556
556
|
...contents,
|
|
557
557
|
};
|
|
558
558
|
return Promise.resolve(response);
|
|
559
559
|
};
|
|
560
|
-
exports.
|
|
561
|
-
const
|
|
560
|
+
exports.de_CreateHITCommand = de_CreateHITCommand;
|
|
561
|
+
const de_CreateHITCommandError = async (output, context) => {
|
|
562
562
|
const parsedOutput = {
|
|
563
563
|
...output,
|
|
564
564
|
body: await parseErrorBody(output.body, context),
|
|
@@ -567,10 +567,10 @@ const deserializeAws_json1_1CreateHITCommandError = async (output, context) => {
|
|
|
567
567
|
switch (errorCode) {
|
|
568
568
|
case "RequestError":
|
|
569
569
|
case "com.amazonaws.mturk#RequestError":
|
|
570
|
-
throw await
|
|
570
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
571
571
|
case "ServiceFault":
|
|
572
572
|
case "com.amazonaws.mturk#ServiceFault":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
574
574
|
default:
|
|
575
575
|
const parsedBody = parsedOutput.body;
|
|
576
576
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -581,21 +581,21 @@ const deserializeAws_json1_1CreateHITCommandError = async (output, context) => {
|
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
const
|
|
584
|
+
const de_CreateHITTypeCommand = async (output, context) => {
|
|
585
585
|
if (output.statusCode >= 300) {
|
|
586
|
-
return
|
|
586
|
+
return de_CreateHITTypeCommandError(output, context);
|
|
587
587
|
}
|
|
588
588
|
const data = await parseBody(output.body, context);
|
|
589
589
|
let contents = {};
|
|
590
|
-
contents =
|
|
590
|
+
contents = de_CreateHITTypeResponse(data, context);
|
|
591
591
|
const response = {
|
|
592
592
|
$metadata: deserializeMetadata(output),
|
|
593
593
|
...contents,
|
|
594
594
|
};
|
|
595
595
|
return Promise.resolve(response);
|
|
596
596
|
};
|
|
597
|
-
exports.
|
|
598
|
-
const
|
|
597
|
+
exports.de_CreateHITTypeCommand = de_CreateHITTypeCommand;
|
|
598
|
+
const de_CreateHITTypeCommandError = async (output, context) => {
|
|
599
599
|
const parsedOutput = {
|
|
600
600
|
...output,
|
|
601
601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -604,10 +604,10 @@ const deserializeAws_json1_1CreateHITTypeCommandError = async (output, context)
|
|
|
604
604
|
switch (errorCode) {
|
|
605
605
|
case "RequestError":
|
|
606
606
|
case "com.amazonaws.mturk#RequestError":
|
|
607
|
-
throw await
|
|
607
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
608
608
|
case "ServiceFault":
|
|
609
609
|
case "com.amazonaws.mturk#ServiceFault":
|
|
610
|
-
throw await
|
|
610
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
611
611
|
default:
|
|
612
612
|
const parsedBody = parsedOutput.body;
|
|
613
613
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -618,21 +618,21 @@ const deserializeAws_json1_1CreateHITTypeCommandError = async (output, context)
|
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
|
-
const
|
|
621
|
+
const de_CreateHITWithHITTypeCommand = async (output, context) => {
|
|
622
622
|
if (output.statusCode >= 300) {
|
|
623
|
-
return
|
|
623
|
+
return de_CreateHITWithHITTypeCommandError(output, context);
|
|
624
624
|
}
|
|
625
625
|
const data = await parseBody(output.body, context);
|
|
626
626
|
let contents = {};
|
|
627
|
-
contents =
|
|
627
|
+
contents = de_CreateHITWithHITTypeResponse(data, context);
|
|
628
628
|
const response = {
|
|
629
629
|
$metadata: deserializeMetadata(output),
|
|
630
630
|
...contents,
|
|
631
631
|
};
|
|
632
632
|
return Promise.resolve(response);
|
|
633
633
|
};
|
|
634
|
-
exports.
|
|
635
|
-
const
|
|
634
|
+
exports.de_CreateHITWithHITTypeCommand = de_CreateHITWithHITTypeCommand;
|
|
635
|
+
const de_CreateHITWithHITTypeCommandError = async (output, context) => {
|
|
636
636
|
const parsedOutput = {
|
|
637
637
|
...output,
|
|
638
638
|
body: await parseErrorBody(output.body, context),
|
|
@@ -641,10 +641,10 @@ const deserializeAws_json1_1CreateHITWithHITTypeCommandError = async (output, co
|
|
|
641
641
|
switch (errorCode) {
|
|
642
642
|
case "RequestError":
|
|
643
643
|
case "com.amazonaws.mturk#RequestError":
|
|
644
|
-
throw await
|
|
644
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
645
645
|
case "ServiceFault":
|
|
646
646
|
case "com.amazonaws.mturk#ServiceFault":
|
|
647
|
-
throw await
|
|
647
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
648
648
|
default:
|
|
649
649
|
const parsedBody = parsedOutput.body;
|
|
650
650
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -655,21 +655,21 @@ const deserializeAws_json1_1CreateHITWithHITTypeCommandError = async (output, co
|
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
};
|
|
658
|
-
const
|
|
658
|
+
const de_CreateQualificationTypeCommand = async (output, context) => {
|
|
659
659
|
if (output.statusCode >= 300) {
|
|
660
|
-
return
|
|
660
|
+
return de_CreateQualificationTypeCommandError(output, context);
|
|
661
661
|
}
|
|
662
662
|
const data = await parseBody(output.body, context);
|
|
663
663
|
let contents = {};
|
|
664
|
-
contents =
|
|
664
|
+
contents = de_CreateQualificationTypeResponse(data, context);
|
|
665
665
|
const response = {
|
|
666
666
|
$metadata: deserializeMetadata(output),
|
|
667
667
|
...contents,
|
|
668
668
|
};
|
|
669
669
|
return Promise.resolve(response);
|
|
670
670
|
};
|
|
671
|
-
exports.
|
|
672
|
-
const
|
|
671
|
+
exports.de_CreateQualificationTypeCommand = de_CreateQualificationTypeCommand;
|
|
672
|
+
const de_CreateQualificationTypeCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
675
|
body: await parseErrorBody(output.body, context),
|
|
@@ -678,10 +678,10 @@ const deserializeAws_json1_1CreateQualificationTypeCommandError = async (output,
|
|
|
678
678
|
switch (errorCode) {
|
|
679
679
|
case "RequestError":
|
|
680
680
|
case "com.amazonaws.mturk#RequestError":
|
|
681
|
-
throw await
|
|
681
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
682
682
|
case "ServiceFault":
|
|
683
683
|
case "com.amazonaws.mturk#ServiceFault":
|
|
684
|
-
throw await
|
|
684
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
685
685
|
default:
|
|
686
686
|
const parsedBody = parsedOutput.body;
|
|
687
687
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -692,21 +692,21 @@ const deserializeAws_json1_1CreateQualificationTypeCommandError = async (output,
|
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
|
-
const
|
|
695
|
+
const de_CreateWorkerBlockCommand = async (output, context) => {
|
|
696
696
|
if (output.statusCode >= 300) {
|
|
697
|
-
return
|
|
697
|
+
return de_CreateWorkerBlockCommandError(output, context);
|
|
698
698
|
}
|
|
699
699
|
const data = await parseBody(output.body, context);
|
|
700
700
|
let contents = {};
|
|
701
|
-
contents =
|
|
701
|
+
contents = de_CreateWorkerBlockResponse(data, context);
|
|
702
702
|
const response = {
|
|
703
703
|
$metadata: deserializeMetadata(output),
|
|
704
704
|
...contents,
|
|
705
705
|
};
|
|
706
706
|
return Promise.resolve(response);
|
|
707
707
|
};
|
|
708
|
-
exports.
|
|
709
|
-
const
|
|
708
|
+
exports.de_CreateWorkerBlockCommand = de_CreateWorkerBlockCommand;
|
|
709
|
+
const de_CreateWorkerBlockCommandError = async (output, context) => {
|
|
710
710
|
const parsedOutput = {
|
|
711
711
|
...output,
|
|
712
712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -715,10 +715,10 @@ const deserializeAws_json1_1CreateWorkerBlockCommandError = async (output, conte
|
|
|
715
715
|
switch (errorCode) {
|
|
716
716
|
case "RequestError":
|
|
717
717
|
case "com.amazonaws.mturk#RequestError":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
719
719
|
case "ServiceFault":
|
|
720
720
|
case "com.amazonaws.mturk#ServiceFault":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
722
722
|
default:
|
|
723
723
|
const parsedBody = parsedOutput.body;
|
|
724
724
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -729,21 +729,21 @@ const deserializeAws_json1_1CreateWorkerBlockCommandError = async (output, conte
|
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
|
-
const
|
|
732
|
+
const de_DeleteHITCommand = async (output, context) => {
|
|
733
733
|
if (output.statusCode >= 300) {
|
|
734
|
-
return
|
|
734
|
+
return de_DeleteHITCommandError(output, context);
|
|
735
735
|
}
|
|
736
736
|
const data = await parseBody(output.body, context);
|
|
737
737
|
let contents = {};
|
|
738
|
-
contents =
|
|
738
|
+
contents = de_DeleteHITResponse(data, context);
|
|
739
739
|
const response = {
|
|
740
740
|
$metadata: deserializeMetadata(output),
|
|
741
741
|
...contents,
|
|
742
742
|
};
|
|
743
743
|
return Promise.resolve(response);
|
|
744
744
|
};
|
|
745
|
-
exports.
|
|
746
|
-
const
|
|
745
|
+
exports.de_DeleteHITCommand = de_DeleteHITCommand;
|
|
746
|
+
const de_DeleteHITCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
749
|
body: await parseErrorBody(output.body, context),
|
|
@@ -752,10 +752,10 @@ const deserializeAws_json1_1DeleteHITCommandError = async (output, context) => {
|
|
|
752
752
|
switch (errorCode) {
|
|
753
753
|
case "RequestError":
|
|
754
754
|
case "com.amazonaws.mturk#RequestError":
|
|
755
|
-
throw await
|
|
755
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
756
756
|
case "ServiceFault":
|
|
757
757
|
case "com.amazonaws.mturk#ServiceFault":
|
|
758
|
-
throw await
|
|
758
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
759
759
|
default:
|
|
760
760
|
const parsedBody = parsedOutput.body;
|
|
761
761
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -766,21 +766,21 @@ const deserializeAws_json1_1DeleteHITCommandError = async (output, context) => {
|
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
|
-
const
|
|
769
|
+
const de_DeleteQualificationTypeCommand = async (output, context) => {
|
|
770
770
|
if (output.statusCode >= 300) {
|
|
771
|
-
return
|
|
771
|
+
return de_DeleteQualificationTypeCommandError(output, context);
|
|
772
772
|
}
|
|
773
773
|
const data = await parseBody(output.body, context);
|
|
774
774
|
let contents = {};
|
|
775
|
-
contents =
|
|
775
|
+
contents = de_DeleteQualificationTypeResponse(data, context);
|
|
776
776
|
const response = {
|
|
777
777
|
$metadata: deserializeMetadata(output),
|
|
778
778
|
...contents,
|
|
779
779
|
};
|
|
780
780
|
return Promise.resolve(response);
|
|
781
781
|
};
|
|
782
|
-
exports.
|
|
783
|
-
const
|
|
782
|
+
exports.de_DeleteQualificationTypeCommand = de_DeleteQualificationTypeCommand;
|
|
783
|
+
const de_DeleteQualificationTypeCommandError = async (output, context) => {
|
|
784
784
|
const parsedOutput = {
|
|
785
785
|
...output,
|
|
786
786
|
body: await parseErrorBody(output.body, context),
|
|
@@ -789,10 +789,10 @@ const deserializeAws_json1_1DeleteQualificationTypeCommandError = async (output,
|
|
|
789
789
|
switch (errorCode) {
|
|
790
790
|
case "RequestError":
|
|
791
791
|
case "com.amazonaws.mturk#RequestError":
|
|
792
|
-
throw await
|
|
792
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
793
793
|
case "ServiceFault":
|
|
794
794
|
case "com.amazonaws.mturk#ServiceFault":
|
|
795
|
-
throw await
|
|
795
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
796
796
|
default:
|
|
797
797
|
const parsedBody = parsedOutput.body;
|
|
798
798
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -803,21 +803,21 @@ const deserializeAws_json1_1DeleteQualificationTypeCommandError = async (output,
|
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
|
-
const
|
|
806
|
+
const de_DeleteWorkerBlockCommand = async (output, context) => {
|
|
807
807
|
if (output.statusCode >= 300) {
|
|
808
|
-
return
|
|
808
|
+
return de_DeleteWorkerBlockCommandError(output, context);
|
|
809
809
|
}
|
|
810
810
|
const data = await parseBody(output.body, context);
|
|
811
811
|
let contents = {};
|
|
812
|
-
contents =
|
|
812
|
+
contents = de_DeleteWorkerBlockResponse(data, context);
|
|
813
813
|
const response = {
|
|
814
814
|
$metadata: deserializeMetadata(output),
|
|
815
815
|
...contents,
|
|
816
816
|
};
|
|
817
817
|
return Promise.resolve(response);
|
|
818
818
|
};
|
|
819
|
-
exports.
|
|
820
|
-
const
|
|
819
|
+
exports.de_DeleteWorkerBlockCommand = de_DeleteWorkerBlockCommand;
|
|
820
|
+
const de_DeleteWorkerBlockCommandError = async (output, context) => {
|
|
821
821
|
const parsedOutput = {
|
|
822
822
|
...output,
|
|
823
823
|
body: await parseErrorBody(output.body, context),
|
|
@@ -826,10 +826,10 @@ const deserializeAws_json1_1DeleteWorkerBlockCommandError = async (output, conte
|
|
|
826
826
|
switch (errorCode) {
|
|
827
827
|
case "RequestError":
|
|
828
828
|
case "com.amazonaws.mturk#RequestError":
|
|
829
|
-
throw await
|
|
829
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
830
830
|
case "ServiceFault":
|
|
831
831
|
case "com.amazonaws.mturk#ServiceFault":
|
|
832
|
-
throw await
|
|
832
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
833
833
|
default:
|
|
834
834
|
const parsedBody = parsedOutput.body;
|
|
835
835
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -840,21 +840,21 @@ const deserializeAws_json1_1DeleteWorkerBlockCommandError = async (output, conte
|
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
|
-
const
|
|
843
|
+
const de_DisassociateQualificationFromWorkerCommand = async (output, context) => {
|
|
844
844
|
if (output.statusCode >= 300) {
|
|
845
|
-
return
|
|
845
|
+
return de_DisassociateQualificationFromWorkerCommandError(output, context);
|
|
846
846
|
}
|
|
847
847
|
const data = await parseBody(output.body, context);
|
|
848
848
|
let contents = {};
|
|
849
|
-
contents =
|
|
849
|
+
contents = de_DisassociateQualificationFromWorkerResponse(data, context);
|
|
850
850
|
const response = {
|
|
851
851
|
$metadata: deserializeMetadata(output),
|
|
852
852
|
...contents,
|
|
853
853
|
};
|
|
854
854
|
return Promise.resolve(response);
|
|
855
855
|
};
|
|
856
|
-
exports.
|
|
857
|
-
const
|
|
856
|
+
exports.de_DisassociateQualificationFromWorkerCommand = de_DisassociateQualificationFromWorkerCommand;
|
|
857
|
+
const de_DisassociateQualificationFromWorkerCommandError = async (output, context) => {
|
|
858
858
|
const parsedOutput = {
|
|
859
859
|
...output,
|
|
860
860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -863,10 +863,10 @@ const deserializeAws_json1_1DisassociateQualificationFromWorkerCommandError = as
|
|
|
863
863
|
switch (errorCode) {
|
|
864
864
|
case "RequestError":
|
|
865
865
|
case "com.amazonaws.mturk#RequestError":
|
|
866
|
-
throw await
|
|
866
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
867
867
|
case "ServiceFault":
|
|
868
868
|
case "com.amazonaws.mturk#ServiceFault":
|
|
869
|
-
throw await
|
|
869
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
870
870
|
default:
|
|
871
871
|
const parsedBody = parsedOutput.body;
|
|
872
872
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -877,21 +877,21 @@ const deserializeAws_json1_1DisassociateQualificationFromWorkerCommandError = as
|
|
|
877
877
|
});
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
|
-
const
|
|
880
|
+
const de_GetAccountBalanceCommand = async (output, context) => {
|
|
881
881
|
if (output.statusCode >= 300) {
|
|
882
|
-
return
|
|
882
|
+
return de_GetAccountBalanceCommandError(output, context);
|
|
883
883
|
}
|
|
884
884
|
const data = await parseBody(output.body, context);
|
|
885
885
|
let contents = {};
|
|
886
|
-
contents =
|
|
886
|
+
contents = de_GetAccountBalanceResponse(data, context);
|
|
887
887
|
const response = {
|
|
888
888
|
$metadata: deserializeMetadata(output),
|
|
889
889
|
...contents,
|
|
890
890
|
};
|
|
891
891
|
return Promise.resolve(response);
|
|
892
892
|
};
|
|
893
|
-
exports.
|
|
894
|
-
const
|
|
893
|
+
exports.de_GetAccountBalanceCommand = de_GetAccountBalanceCommand;
|
|
894
|
+
const de_GetAccountBalanceCommandError = async (output, context) => {
|
|
895
895
|
const parsedOutput = {
|
|
896
896
|
...output,
|
|
897
897
|
body: await parseErrorBody(output.body, context),
|
|
@@ -900,10 +900,10 @@ const deserializeAws_json1_1GetAccountBalanceCommandError = async (output, conte
|
|
|
900
900
|
switch (errorCode) {
|
|
901
901
|
case "RequestError":
|
|
902
902
|
case "com.amazonaws.mturk#RequestError":
|
|
903
|
-
throw await
|
|
903
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
904
904
|
case "ServiceFault":
|
|
905
905
|
case "com.amazonaws.mturk#ServiceFault":
|
|
906
|
-
throw await
|
|
906
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
907
907
|
default:
|
|
908
908
|
const parsedBody = parsedOutput.body;
|
|
909
909
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -914,21 +914,21 @@ const deserializeAws_json1_1GetAccountBalanceCommandError = async (output, conte
|
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
};
|
|
917
|
-
const
|
|
917
|
+
const de_GetAssignmentCommand = async (output, context) => {
|
|
918
918
|
if (output.statusCode >= 300) {
|
|
919
|
-
return
|
|
919
|
+
return de_GetAssignmentCommandError(output, context);
|
|
920
920
|
}
|
|
921
921
|
const data = await parseBody(output.body, context);
|
|
922
922
|
let contents = {};
|
|
923
|
-
contents =
|
|
923
|
+
contents = de_GetAssignmentResponse(data, context);
|
|
924
924
|
const response = {
|
|
925
925
|
$metadata: deserializeMetadata(output),
|
|
926
926
|
...contents,
|
|
927
927
|
};
|
|
928
928
|
return Promise.resolve(response);
|
|
929
929
|
};
|
|
930
|
-
exports.
|
|
931
|
-
const
|
|
930
|
+
exports.de_GetAssignmentCommand = de_GetAssignmentCommand;
|
|
931
|
+
const de_GetAssignmentCommandError = async (output, context) => {
|
|
932
932
|
const parsedOutput = {
|
|
933
933
|
...output,
|
|
934
934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -937,10 +937,10 @@ const deserializeAws_json1_1GetAssignmentCommandError = async (output, context)
|
|
|
937
937
|
switch (errorCode) {
|
|
938
938
|
case "RequestError":
|
|
939
939
|
case "com.amazonaws.mturk#RequestError":
|
|
940
|
-
throw await
|
|
940
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
941
941
|
case "ServiceFault":
|
|
942
942
|
case "com.amazonaws.mturk#ServiceFault":
|
|
943
|
-
throw await
|
|
943
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
944
944
|
default:
|
|
945
945
|
const parsedBody = parsedOutput.body;
|
|
946
946
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -951,21 +951,21 @@ const deserializeAws_json1_1GetAssignmentCommandError = async (output, context)
|
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
953
|
};
|
|
954
|
-
const
|
|
954
|
+
const de_GetFileUploadURLCommand = async (output, context) => {
|
|
955
955
|
if (output.statusCode >= 300) {
|
|
956
|
-
return
|
|
956
|
+
return de_GetFileUploadURLCommandError(output, context);
|
|
957
957
|
}
|
|
958
958
|
const data = await parseBody(output.body, context);
|
|
959
959
|
let contents = {};
|
|
960
|
-
contents =
|
|
960
|
+
contents = de_GetFileUploadURLResponse(data, context);
|
|
961
961
|
const response = {
|
|
962
962
|
$metadata: deserializeMetadata(output),
|
|
963
963
|
...contents,
|
|
964
964
|
};
|
|
965
965
|
return Promise.resolve(response);
|
|
966
966
|
};
|
|
967
|
-
exports.
|
|
968
|
-
const
|
|
967
|
+
exports.de_GetFileUploadURLCommand = de_GetFileUploadURLCommand;
|
|
968
|
+
const de_GetFileUploadURLCommandError = async (output, context) => {
|
|
969
969
|
const parsedOutput = {
|
|
970
970
|
...output,
|
|
971
971
|
body: await parseErrorBody(output.body, context),
|
|
@@ -974,10 +974,10 @@ const deserializeAws_json1_1GetFileUploadURLCommandError = async (output, contex
|
|
|
974
974
|
switch (errorCode) {
|
|
975
975
|
case "RequestError":
|
|
976
976
|
case "com.amazonaws.mturk#RequestError":
|
|
977
|
-
throw await
|
|
977
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
978
978
|
case "ServiceFault":
|
|
979
979
|
case "com.amazonaws.mturk#ServiceFault":
|
|
980
|
-
throw await
|
|
980
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
981
981
|
default:
|
|
982
982
|
const parsedBody = parsedOutput.body;
|
|
983
983
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -988,21 +988,21 @@ const deserializeAws_json1_1GetFileUploadURLCommandError = async (output, contex
|
|
|
988
988
|
});
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
|
-
const
|
|
991
|
+
const de_GetHITCommand = async (output, context) => {
|
|
992
992
|
if (output.statusCode >= 300) {
|
|
993
|
-
return
|
|
993
|
+
return de_GetHITCommandError(output, context);
|
|
994
994
|
}
|
|
995
995
|
const data = await parseBody(output.body, context);
|
|
996
996
|
let contents = {};
|
|
997
|
-
contents =
|
|
997
|
+
contents = de_GetHITResponse(data, context);
|
|
998
998
|
const response = {
|
|
999
999
|
$metadata: deserializeMetadata(output),
|
|
1000
1000
|
...contents,
|
|
1001
1001
|
};
|
|
1002
1002
|
return Promise.resolve(response);
|
|
1003
1003
|
};
|
|
1004
|
-
exports.
|
|
1005
|
-
const
|
|
1004
|
+
exports.de_GetHITCommand = de_GetHITCommand;
|
|
1005
|
+
const de_GetHITCommandError = async (output, context) => {
|
|
1006
1006
|
const parsedOutput = {
|
|
1007
1007
|
...output,
|
|
1008
1008
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1011,10 +1011,10 @@ const deserializeAws_json1_1GetHITCommandError = async (output, context) => {
|
|
|
1011
1011
|
switch (errorCode) {
|
|
1012
1012
|
case "RequestError":
|
|
1013
1013
|
case "com.amazonaws.mturk#RequestError":
|
|
1014
|
-
throw await
|
|
1014
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1015
1015
|
case "ServiceFault":
|
|
1016
1016
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1017
|
-
throw await
|
|
1017
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1018
1018
|
default:
|
|
1019
1019
|
const parsedBody = parsedOutput.body;
|
|
1020
1020
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1025,21 +1025,21 @@ const deserializeAws_json1_1GetHITCommandError = async (output, context) => {
|
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
|
-
const
|
|
1028
|
+
const de_GetQualificationScoreCommand = async (output, context) => {
|
|
1029
1029
|
if (output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
1030
|
+
return de_GetQualificationScoreCommandError(output, context);
|
|
1031
1031
|
}
|
|
1032
1032
|
const data = await parseBody(output.body, context);
|
|
1033
1033
|
let contents = {};
|
|
1034
|
-
contents =
|
|
1034
|
+
contents = de_GetQualificationScoreResponse(data, context);
|
|
1035
1035
|
const response = {
|
|
1036
1036
|
$metadata: deserializeMetadata(output),
|
|
1037
1037
|
...contents,
|
|
1038
1038
|
};
|
|
1039
1039
|
return Promise.resolve(response);
|
|
1040
1040
|
};
|
|
1041
|
-
exports.
|
|
1042
|
-
const
|
|
1041
|
+
exports.de_GetQualificationScoreCommand = de_GetQualificationScoreCommand;
|
|
1042
|
+
const de_GetQualificationScoreCommandError = async (output, context) => {
|
|
1043
1043
|
const parsedOutput = {
|
|
1044
1044
|
...output,
|
|
1045
1045
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1048,10 +1048,10 @@ const deserializeAws_json1_1GetQualificationScoreCommandError = async (output, c
|
|
|
1048
1048
|
switch (errorCode) {
|
|
1049
1049
|
case "RequestError":
|
|
1050
1050
|
case "com.amazonaws.mturk#RequestError":
|
|
1051
|
-
throw await
|
|
1051
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1052
1052
|
case "ServiceFault":
|
|
1053
1053
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1054
|
-
throw await
|
|
1054
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1055
1055
|
default:
|
|
1056
1056
|
const parsedBody = parsedOutput.body;
|
|
1057
1057
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1062,21 +1062,21 @@ const deserializeAws_json1_1GetQualificationScoreCommandError = async (output, c
|
|
|
1062
1062
|
});
|
|
1063
1063
|
}
|
|
1064
1064
|
};
|
|
1065
|
-
const
|
|
1065
|
+
const de_GetQualificationTypeCommand = async (output, context) => {
|
|
1066
1066
|
if (output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
1067
|
+
return de_GetQualificationTypeCommandError(output, context);
|
|
1068
1068
|
}
|
|
1069
1069
|
const data = await parseBody(output.body, context);
|
|
1070
1070
|
let contents = {};
|
|
1071
|
-
contents =
|
|
1071
|
+
contents = de_GetQualificationTypeResponse(data, context);
|
|
1072
1072
|
const response = {
|
|
1073
1073
|
$metadata: deserializeMetadata(output),
|
|
1074
1074
|
...contents,
|
|
1075
1075
|
};
|
|
1076
1076
|
return Promise.resolve(response);
|
|
1077
1077
|
};
|
|
1078
|
-
exports.
|
|
1079
|
-
const
|
|
1078
|
+
exports.de_GetQualificationTypeCommand = de_GetQualificationTypeCommand;
|
|
1079
|
+
const de_GetQualificationTypeCommandError = async (output, context) => {
|
|
1080
1080
|
const parsedOutput = {
|
|
1081
1081
|
...output,
|
|
1082
1082
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1085,10 +1085,10 @@ const deserializeAws_json1_1GetQualificationTypeCommandError = async (output, co
|
|
|
1085
1085
|
switch (errorCode) {
|
|
1086
1086
|
case "RequestError":
|
|
1087
1087
|
case "com.amazonaws.mturk#RequestError":
|
|
1088
|
-
throw await
|
|
1088
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1089
1089
|
case "ServiceFault":
|
|
1090
1090
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1091
|
-
throw await
|
|
1091
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1092
1092
|
default:
|
|
1093
1093
|
const parsedBody = parsedOutput.body;
|
|
1094
1094
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1099,21 +1099,21 @@ const deserializeAws_json1_1GetQualificationTypeCommandError = async (output, co
|
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
1102
|
-
const
|
|
1102
|
+
const de_ListAssignmentsForHITCommand = async (output, context) => {
|
|
1103
1103
|
if (output.statusCode >= 300) {
|
|
1104
|
-
return
|
|
1104
|
+
return de_ListAssignmentsForHITCommandError(output, context);
|
|
1105
1105
|
}
|
|
1106
1106
|
const data = await parseBody(output.body, context);
|
|
1107
1107
|
let contents = {};
|
|
1108
|
-
contents =
|
|
1108
|
+
contents = de_ListAssignmentsForHITResponse(data, context);
|
|
1109
1109
|
const response = {
|
|
1110
1110
|
$metadata: deserializeMetadata(output),
|
|
1111
1111
|
...contents,
|
|
1112
1112
|
};
|
|
1113
1113
|
return Promise.resolve(response);
|
|
1114
1114
|
};
|
|
1115
|
-
exports.
|
|
1116
|
-
const
|
|
1115
|
+
exports.de_ListAssignmentsForHITCommand = de_ListAssignmentsForHITCommand;
|
|
1116
|
+
const de_ListAssignmentsForHITCommandError = async (output, context) => {
|
|
1117
1117
|
const parsedOutput = {
|
|
1118
1118
|
...output,
|
|
1119
1119
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1122,10 +1122,10 @@ const deserializeAws_json1_1ListAssignmentsForHITCommandError = async (output, c
|
|
|
1122
1122
|
switch (errorCode) {
|
|
1123
1123
|
case "RequestError":
|
|
1124
1124
|
case "com.amazonaws.mturk#RequestError":
|
|
1125
|
-
throw await
|
|
1125
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1126
1126
|
case "ServiceFault":
|
|
1127
1127
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1128
|
-
throw await
|
|
1128
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1129
1129
|
default:
|
|
1130
1130
|
const parsedBody = parsedOutput.body;
|
|
1131
1131
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1136,21 +1136,21 @@ const deserializeAws_json1_1ListAssignmentsForHITCommandError = async (output, c
|
|
|
1136
1136
|
});
|
|
1137
1137
|
}
|
|
1138
1138
|
};
|
|
1139
|
-
const
|
|
1139
|
+
const de_ListBonusPaymentsCommand = async (output, context) => {
|
|
1140
1140
|
if (output.statusCode >= 300) {
|
|
1141
|
-
return
|
|
1141
|
+
return de_ListBonusPaymentsCommandError(output, context);
|
|
1142
1142
|
}
|
|
1143
1143
|
const data = await parseBody(output.body, context);
|
|
1144
1144
|
let contents = {};
|
|
1145
|
-
contents =
|
|
1145
|
+
contents = de_ListBonusPaymentsResponse(data, context);
|
|
1146
1146
|
const response = {
|
|
1147
1147
|
$metadata: deserializeMetadata(output),
|
|
1148
1148
|
...contents,
|
|
1149
1149
|
};
|
|
1150
1150
|
return Promise.resolve(response);
|
|
1151
1151
|
};
|
|
1152
|
-
exports.
|
|
1153
|
-
const
|
|
1152
|
+
exports.de_ListBonusPaymentsCommand = de_ListBonusPaymentsCommand;
|
|
1153
|
+
const de_ListBonusPaymentsCommandError = async (output, context) => {
|
|
1154
1154
|
const parsedOutput = {
|
|
1155
1155
|
...output,
|
|
1156
1156
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1159,10 +1159,10 @@ const deserializeAws_json1_1ListBonusPaymentsCommandError = async (output, conte
|
|
|
1159
1159
|
switch (errorCode) {
|
|
1160
1160
|
case "RequestError":
|
|
1161
1161
|
case "com.amazonaws.mturk#RequestError":
|
|
1162
|
-
throw await
|
|
1162
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1163
1163
|
case "ServiceFault":
|
|
1164
1164
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1165
|
-
throw await
|
|
1165
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1166
1166
|
default:
|
|
1167
1167
|
const parsedBody = parsedOutput.body;
|
|
1168
1168
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1173,21 +1173,21 @@ const deserializeAws_json1_1ListBonusPaymentsCommandError = async (output, conte
|
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
1175
|
};
|
|
1176
|
-
const
|
|
1176
|
+
const de_ListHITsCommand = async (output, context) => {
|
|
1177
1177
|
if (output.statusCode >= 300) {
|
|
1178
|
-
return
|
|
1178
|
+
return de_ListHITsCommandError(output, context);
|
|
1179
1179
|
}
|
|
1180
1180
|
const data = await parseBody(output.body, context);
|
|
1181
1181
|
let contents = {};
|
|
1182
|
-
contents =
|
|
1182
|
+
contents = de_ListHITsResponse(data, context);
|
|
1183
1183
|
const response = {
|
|
1184
1184
|
$metadata: deserializeMetadata(output),
|
|
1185
1185
|
...contents,
|
|
1186
1186
|
};
|
|
1187
1187
|
return Promise.resolve(response);
|
|
1188
1188
|
};
|
|
1189
|
-
exports.
|
|
1190
|
-
const
|
|
1189
|
+
exports.de_ListHITsCommand = de_ListHITsCommand;
|
|
1190
|
+
const de_ListHITsCommandError = async (output, context) => {
|
|
1191
1191
|
const parsedOutput = {
|
|
1192
1192
|
...output,
|
|
1193
1193
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1196,10 +1196,10 @@ const deserializeAws_json1_1ListHITsCommandError = async (output, context) => {
|
|
|
1196
1196
|
switch (errorCode) {
|
|
1197
1197
|
case "RequestError":
|
|
1198
1198
|
case "com.amazonaws.mturk#RequestError":
|
|
1199
|
-
throw await
|
|
1199
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1200
1200
|
case "ServiceFault":
|
|
1201
1201
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1202
|
-
throw await
|
|
1202
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1203
1203
|
default:
|
|
1204
1204
|
const parsedBody = parsedOutput.body;
|
|
1205
1205
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1210,21 +1210,21 @@ const deserializeAws_json1_1ListHITsCommandError = async (output, context) => {
|
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
const
|
|
1213
|
+
const de_ListHITsForQualificationTypeCommand = async (output, context) => {
|
|
1214
1214
|
if (output.statusCode >= 300) {
|
|
1215
|
-
return
|
|
1215
|
+
return de_ListHITsForQualificationTypeCommandError(output, context);
|
|
1216
1216
|
}
|
|
1217
1217
|
const data = await parseBody(output.body, context);
|
|
1218
1218
|
let contents = {};
|
|
1219
|
-
contents =
|
|
1219
|
+
contents = de_ListHITsForQualificationTypeResponse(data, context);
|
|
1220
1220
|
const response = {
|
|
1221
1221
|
$metadata: deserializeMetadata(output),
|
|
1222
1222
|
...contents,
|
|
1223
1223
|
};
|
|
1224
1224
|
return Promise.resolve(response);
|
|
1225
1225
|
};
|
|
1226
|
-
exports.
|
|
1227
|
-
const
|
|
1226
|
+
exports.de_ListHITsForQualificationTypeCommand = de_ListHITsForQualificationTypeCommand;
|
|
1227
|
+
const de_ListHITsForQualificationTypeCommandError = async (output, context) => {
|
|
1228
1228
|
const parsedOutput = {
|
|
1229
1229
|
...output,
|
|
1230
1230
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1233,10 +1233,10 @@ const deserializeAws_json1_1ListHITsForQualificationTypeCommandError = async (ou
|
|
|
1233
1233
|
switch (errorCode) {
|
|
1234
1234
|
case "RequestError":
|
|
1235
1235
|
case "com.amazonaws.mturk#RequestError":
|
|
1236
|
-
throw await
|
|
1236
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1237
1237
|
case "ServiceFault":
|
|
1238
1238
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1239
|
-
throw await
|
|
1239
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1240
1240
|
default:
|
|
1241
1241
|
const parsedBody = parsedOutput.body;
|
|
1242
1242
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1247,21 +1247,21 @@ const deserializeAws_json1_1ListHITsForQualificationTypeCommandError = async (ou
|
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
};
|
|
1250
|
-
const
|
|
1250
|
+
const de_ListQualificationRequestsCommand = async (output, context) => {
|
|
1251
1251
|
if (output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
1252
|
+
return de_ListQualificationRequestsCommandError(output, context);
|
|
1253
1253
|
}
|
|
1254
1254
|
const data = await parseBody(output.body, context);
|
|
1255
1255
|
let contents = {};
|
|
1256
|
-
contents =
|
|
1256
|
+
contents = de_ListQualificationRequestsResponse(data, context);
|
|
1257
1257
|
const response = {
|
|
1258
1258
|
$metadata: deserializeMetadata(output),
|
|
1259
1259
|
...contents,
|
|
1260
1260
|
};
|
|
1261
1261
|
return Promise.resolve(response);
|
|
1262
1262
|
};
|
|
1263
|
-
exports.
|
|
1264
|
-
const
|
|
1263
|
+
exports.de_ListQualificationRequestsCommand = de_ListQualificationRequestsCommand;
|
|
1264
|
+
const de_ListQualificationRequestsCommandError = async (output, context) => {
|
|
1265
1265
|
const parsedOutput = {
|
|
1266
1266
|
...output,
|
|
1267
1267
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1270,10 +1270,10 @@ const deserializeAws_json1_1ListQualificationRequestsCommandError = async (outpu
|
|
|
1270
1270
|
switch (errorCode) {
|
|
1271
1271
|
case "RequestError":
|
|
1272
1272
|
case "com.amazonaws.mturk#RequestError":
|
|
1273
|
-
throw await
|
|
1273
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1274
1274
|
case "ServiceFault":
|
|
1275
1275
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1276
|
-
throw await
|
|
1276
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1277
1277
|
default:
|
|
1278
1278
|
const parsedBody = parsedOutput.body;
|
|
1279
1279
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1284,21 +1284,21 @@ const deserializeAws_json1_1ListQualificationRequestsCommandError = async (outpu
|
|
|
1284
1284
|
});
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
|
-
const
|
|
1287
|
+
const de_ListQualificationTypesCommand = async (output, context) => {
|
|
1288
1288
|
if (output.statusCode >= 300) {
|
|
1289
|
-
return
|
|
1289
|
+
return de_ListQualificationTypesCommandError(output, context);
|
|
1290
1290
|
}
|
|
1291
1291
|
const data = await parseBody(output.body, context);
|
|
1292
1292
|
let contents = {};
|
|
1293
|
-
contents =
|
|
1293
|
+
contents = de_ListQualificationTypesResponse(data, context);
|
|
1294
1294
|
const response = {
|
|
1295
1295
|
$metadata: deserializeMetadata(output),
|
|
1296
1296
|
...contents,
|
|
1297
1297
|
};
|
|
1298
1298
|
return Promise.resolve(response);
|
|
1299
1299
|
};
|
|
1300
|
-
exports.
|
|
1301
|
-
const
|
|
1300
|
+
exports.de_ListQualificationTypesCommand = de_ListQualificationTypesCommand;
|
|
1301
|
+
const de_ListQualificationTypesCommandError = async (output, context) => {
|
|
1302
1302
|
const parsedOutput = {
|
|
1303
1303
|
...output,
|
|
1304
1304
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1307,10 +1307,10 @@ const deserializeAws_json1_1ListQualificationTypesCommandError = async (output,
|
|
|
1307
1307
|
switch (errorCode) {
|
|
1308
1308
|
case "RequestError":
|
|
1309
1309
|
case "com.amazonaws.mturk#RequestError":
|
|
1310
|
-
throw await
|
|
1310
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1311
1311
|
case "ServiceFault":
|
|
1312
1312
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1313
|
-
throw await
|
|
1313
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1314
1314
|
default:
|
|
1315
1315
|
const parsedBody = parsedOutput.body;
|
|
1316
1316
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1321,21 +1321,21 @@ const deserializeAws_json1_1ListQualificationTypesCommandError = async (output,
|
|
|
1321
1321
|
});
|
|
1322
1322
|
}
|
|
1323
1323
|
};
|
|
1324
|
-
const
|
|
1324
|
+
const de_ListReviewableHITsCommand = async (output, context) => {
|
|
1325
1325
|
if (output.statusCode >= 300) {
|
|
1326
|
-
return
|
|
1326
|
+
return de_ListReviewableHITsCommandError(output, context);
|
|
1327
1327
|
}
|
|
1328
1328
|
const data = await parseBody(output.body, context);
|
|
1329
1329
|
let contents = {};
|
|
1330
|
-
contents =
|
|
1330
|
+
contents = de_ListReviewableHITsResponse(data, context);
|
|
1331
1331
|
const response = {
|
|
1332
1332
|
$metadata: deserializeMetadata(output),
|
|
1333
1333
|
...contents,
|
|
1334
1334
|
};
|
|
1335
1335
|
return Promise.resolve(response);
|
|
1336
1336
|
};
|
|
1337
|
-
exports.
|
|
1338
|
-
const
|
|
1337
|
+
exports.de_ListReviewableHITsCommand = de_ListReviewableHITsCommand;
|
|
1338
|
+
const de_ListReviewableHITsCommandError = async (output, context) => {
|
|
1339
1339
|
const parsedOutput = {
|
|
1340
1340
|
...output,
|
|
1341
1341
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1344,10 +1344,10 @@ const deserializeAws_json1_1ListReviewableHITsCommandError = async (output, cont
|
|
|
1344
1344
|
switch (errorCode) {
|
|
1345
1345
|
case "RequestError":
|
|
1346
1346
|
case "com.amazonaws.mturk#RequestError":
|
|
1347
|
-
throw await
|
|
1347
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1348
1348
|
case "ServiceFault":
|
|
1349
1349
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1350
|
-
throw await
|
|
1350
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1351
1351
|
default:
|
|
1352
1352
|
const parsedBody = parsedOutput.body;
|
|
1353
1353
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1358,21 +1358,21 @@ const deserializeAws_json1_1ListReviewableHITsCommandError = async (output, cont
|
|
|
1358
1358
|
});
|
|
1359
1359
|
}
|
|
1360
1360
|
};
|
|
1361
|
-
const
|
|
1361
|
+
const de_ListReviewPolicyResultsForHITCommand = async (output, context) => {
|
|
1362
1362
|
if (output.statusCode >= 300) {
|
|
1363
|
-
return
|
|
1363
|
+
return de_ListReviewPolicyResultsForHITCommandError(output, context);
|
|
1364
1364
|
}
|
|
1365
1365
|
const data = await parseBody(output.body, context);
|
|
1366
1366
|
let contents = {};
|
|
1367
|
-
contents =
|
|
1367
|
+
contents = de_ListReviewPolicyResultsForHITResponse(data, context);
|
|
1368
1368
|
const response = {
|
|
1369
1369
|
$metadata: deserializeMetadata(output),
|
|
1370
1370
|
...contents,
|
|
1371
1371
|
};
|
|
1372
1372
|
return Promise.resolve(response);
|
|
1373
1373
|
};
|
|
1374
|
-
exports.
|
|
1375
|
-
const
|
|
1374
|
+
exports.de_ListReviewPolicyResultsForHITCommand = de_ListReviewPolicyResultsForHITCommand;
|
|
1375
|
+
const de_ListReviewPolicyResultsForHITCommandError = async (output, context) => {
|
|
1376
1376
|
const parsedOutput = {
|
|
1377
1377
|
...output,
|
|
1378
1378
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1381,10 +1381,10 @@ const deserializeAws_json1_1ListReviewPolicyResultsForHITCommandError = async (o
|
|
|
1381
1381
|
switch (errorCode) {
|
|
1382
1382
|
case "RequestError":
|
|
1383
1383
|
case "com.amazonaws.mturk#RequestError":
|
|
1384
|
-
throw await
|
|
1384
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1385
1385
|
case "ServiceFault":
|
|
1386
1386
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1387
|
-
throw await
|
|
1387
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1388
1388
|
default:
|
|
1389
1389
|
const parsedBody = parsedOutput.body;
|
|
1390
1390
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1395,21 +1395,21 @@ const deserializeAws_json1_1ListReviewPolicyResultsForHITCommandError = async (o
|
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
|
-
const
|
|
1398
|
+
const de_ListWorkerBlocksCommand = async (output, context) => {
|
|
1399
1399
|
if (output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1400
|
+
return de_ListWorkerBlocksCommandError(output, context);
|
|
1401
1401
|
}
|
|
1402
1402
|
const data = await parseBody(output.body, context);
|
|
1403
1403
|
let contents = {};
|
|
1404
|
-
contents =
|
|
1404
|
+
contents = de_ListWorkerBlocksResponse(data, context);
|
|
1405
1405
|
const response = {
|
|
1406
1406
|
$metadata: deserializeMetadata(output),
|
|
1407
1407
|
...contents,
|
|
1408
1408
|
};
|
|
1409
1409
|
return Promise.resolve(response);
|
|
1410
1410
|
};
|
|
1411
|
-
exports.
|
|
1412
|
-
const
|
|
1411
|
+
exports.de_ListWorkerBlocksCommand = de_ListWorkerBlocksCommand;
|
|
1412
|
+
const de_ListWorkerBlocksCommandError = async (output, context) => {
|
|
1413
1413
|
const parsedOutput = {
|
|
1414
1414
|
...output,
|
|
1415
1415
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1418,10 +1418,10 @@ const deserializeAws_json1_1ListWorkerBlocksCommandError = async (output, contex
|
|
|
1418
1418
|
switch (errorCode) {
|
|
1419
1419
|
case "RequestError":
|
|
1420
1420
|
case "com.amazonaws.mturk#RequestError":
|
|
1421
|
-
throw await
|
|
1421
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1422
1422
|
case "ServiceFault":
|
|
1423
1423
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1424
|
-
throw await
|
|
1424
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1425
1425
|
default:
|
|
1426
1426
|
const parsedBody = parsedOutput.body;
|
|
1427
1427
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1432,21 +1432,21 @@ const deserializeAws_json1_1ListWorkerBlocksCommandError = async (output, contex
|
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
|
-
const
|
|
1435
|
+
const de_ListWorkersWithQualificationTypeCommand = async (output, context) => {
|
|
1436
1436
|
if (output.statusCode >= 300) {
|
|
1437
|
-
return
|
|
1437
|
+
return de_ListWorkersWithQualificationTypeCommandError(output, context);
|
|
1438
1438
|
}
|
|
1439
1439
|
const data = await parseBody(output.body, context);
|
|
1440
1440
|
let contents = {};
|
|
1441
|
-
contents =
|
|
1441
|
+
contents = de_ListWorkersWithQualificationTypeResponse(data, context);
|
|
1442
1442
|
const response = {
|
|
1443
1443
|
$metadata: deserializeMetadata(output),
|
|
1444
1444
|
...contents,
|
|
1445
1445
|
};
|
|
1446
1446
|
return Promise.resolve(response);
|
|
1447
1447
|
};
|
|
1448
|
-
exports.
|
|
1449
|
-
const
|
|
1448
|
+
exports.de_ListWorkersWithQualificationTypeCommand = de_ListWorkersWithQualificationTypeCommand;
|
|
1449
|
+
const de_ListWorkersWithQualificationTypeCommandError = async (output, context) => {
|
|
1450
1450
|
const parsedOutput = {
|
|
1451
1451
|
...output,
|
|
1452
1452
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1455,10 +1455,10 @@ const deserializeAws_json1_1ListWorkersWithQualificationTypeCommandError = async
|
|
|
1455
1455
|
switch (errorCode) {
|
|
1456
1456
|
case "RequestError":
|
|
1457
1457
|
case "com.amazonaws.mturk#RequestError":
|
|
1458
|
-
throw await
|
|
1458
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1459
1459
|
case "ServiceFault":
|
|
1460
1460
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1461
|
-
throw await
|
|
1461
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1462
1462
|
default:
|
|
1463
1463
|
const parsedBody = parsedOutput.body;
|
|
1464
1464
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1469,21 +1469,21 @@ const deserializeAws_json1_1ListWorkersWithQualificationTypeCommandError = async
|
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const de_NotifyWorkersCommand = async (output, context) => {
|
|
1473
1473
|
if (output.statusCode >= 300) {
|
|
1474
|
-
return
|
|
1474
|
+
return de_NotifyWorkersCommandError(output, context);
|
|
1475
1475
|
}
|
|
1476
1476
|
const data = await parseBody(output.body, context);
|
|
1477
1477
|
let contents = {};
|
|
1478
|
-
contents =
|
|
1478
|
+
contents = de_NotifyWorkersResponse(data, context);
|
|
1479
1479
|
const response = {
|
|
1480
1480
|
$metadata: deserializeMetadata(output),
|
|
1481
1481
|
...contents,
|
|
1482
1482
|
};
|
|
1483
1483
|
return Promise.resolve(response);
|
|
1484
1484
|
};
|
|
1485
|
-
exports.
|
|
1486
|
-
const
|
|
1485
|
+
exports.de_NotifyWorkersCommand = de_NotifyWorkersCommand;
|
|
1486
|
+
const de_NotifyWorkersCommandError = async (output, context) => {
|
|
1487
1487
|
const parsedOutput = {
|
|
1488
1488
|
...output,
|
|
1489
1489
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1492,10 +1492,10 @@ const deserializeAws_json1_1NotifyWorkersCommandError = async (output, context)
|
|
|
1492
1492
|
switch (errorCode) {
|
|
1493
1493
|
case "RequestError":
|
|
1494
1494
|
case "com.amazonaws.mturk#RequestError":
|
|
1495
|
-
throw await
|
|
1495
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1496
1496
|
case "ServiceFault":
|
|
1497
1497
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1498
|
-
throw await
|
|
1498
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1499
1499
|
default:
|
|
1500
1500
|
const parsedBody = parsedOutput.body;
|
|
1501
1501
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1506,21 +1506,21 @@ const deserializeAws_json1_1NotifyWorkersCommandError = async (output, context)
|
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
|
-
const
|
|
1509
|
+
const de_RejectAssignmentCommand = async (output, context) => {
|
|
1510
1510
|
if (output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
1511
|
+
return de_RejectAssignmentCommandError(output, context);
|
|
1512
1512
|
}
|
|
1513
1513
|
const data = await parseBody(output.body, context);
|
|
1514
1514
|
let contents = {};
|
|
1515
|
-
contents =
|
|
1515
|
+
contents = de_RejectAssignmentResponse(data, context);
|
|
1516
1516
|
const response = {
|
|
1517
1517
|
$metadata: deserializeMetadata(output),
|
|
1518
1518
|
...contents,
|
|
1519
1519
|
};
|
|
1520
1520
|
return Promise.resolve(response);
|
|
1521
1521
|
};
|
|
1522
|
-
exports.
|
|
1523
|
-
const
|
|
1522
|
+
exports.de_RejectAssignmentCommand = de_RejectAssignmentCommand;
|
|
1523
|
+
const de_RejectAssignmentCommandError = async (output, context) => {
|
|
1524
1524
|
const parsedOutput = {
|
|
1525
1525
|
...output,
|
|
1526
1526
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1529,10 +1529,10 @@ const deserializeAws_json1_1RejectAssignmentCommandError = async (output, contex
|
|
|
1529
1529
|
switch (errorCode) {
|
|
1530
1530
|
case "RequestError":
|
|
1531
1531
|
case "com.amazonaws.mturk#RequestError":
|
|
1532
|
-
throw await
|
|
1532
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1533
1533
|
case "ServiceFault":
|
|
1534
1534
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1535
|
-
throw await
|
|
1535
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1536
1536
|
default:
|
|
1537
1537
|
const parsedBody = parsedOutput.body;
|
|
1538
1538
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1543,21 +1543,21 @@ const deserializeAws_json1_1RejectAssignmentCommandError = async (output, contex
|
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
};
|
|
1546
|
-
const
|
|
1546
|
+
const de_RejectQualificationRequestCommand = async (output, context) => {
|
|
1547
1547
|
if (output.statusCode >= 300) {
|
|
1548
|
-
return
|
|
1548
|
+
return de_RejectQualificationRequestCommandError(output, context);
|
|
1549
1549
|
}
|
|
1550
1550
|
const data = await parseBody(output.body, context);
|
|
1551
1551
|
let contents = {};
|
|
1552
|
-
contents =
|
|
1552
|
+
contents = de_RejectQualificationRequestResponse(data, context);
|
|
1553
1553
|
const response = {
|
|
1554
1554
|
$metadata: deserializeMetadata(output),
|
|
1555
1555
|
...contents,
|
|
1556
1556
|
};
|
|
1557
1557
|
return Promise.resolve(response);
|
|
1558
1558
|
};
|
|
1559
|
-
exports.
|
|
1560
|
-
const
|
|
1559
|
+
exports.de_RejectQualificationRequestCommand = de_RejectQualificationRequestCommand;
|
|
1560
|
+
const de_RejectQualificationRequestCommandError = async (output, context) => {
|
|
1561
1561
|
const parsedOutput = {
|
|
1562
1562
|
...output,
|
|
1563
1563
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1566,10 +1566,10 @@ const deserializeAws_json1_1RejectQualificationRequestCommandError = async (outp
|
|
|
1566
1566
|
switch (errorCode) {
|
|
1567
1567
|
case "RequestError":
|
|
1568
1568
|
case "com.amazonaws.mturk#RequestError":
|
|
1569
|
-
throw await
|
|
1569
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1570
1570
|
case "ServiceFault":
|
|
1571
1571
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1572
|
-
throw await
|
|
1572
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1573
1573
|
default:
|
|
1574
1574
|
const parsedBody = parsedOutput.body;
|
|
1575
1575
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1580,21 +1580,21 @@ const deserializeAws_json1_1RejectQualificationRequestCommandError = async (outp
|
|
|
1580
1580
|
});
|
|
1581
1581
|
}
|
|
1582
1582
|
};
|
|
1583
|
-
const
|
|
1583
|
+
const de_SendBonusCommand = async (output, context) => {
|
|
1584
1584
|
if (output.statusCode >= 300) {
|
|
1585
|
-
return
|
|
1585
|
+
return de_SendBonusCommandError(output, context);
|
|
1586
1586
|
}
|
|
1587
1587
|
const data = await parseBody(output.body, context);
|
|
1588
1588
|
let contents = {};
|
|
1589
|
-
contents =
|
|
1589
|
+
contents = de_SendBonusResponse(data, context);
|
|
1590
1590
|
const response = {
|
|
1591
1591
|
$metadata: deserializeMetadata(output),
|
|
1592
1592
|
...contents,
|
|
1593
1593
|
};
|
|
1594
1594
|
return Promise.resolve(response);
|
|
1595
1595
|
};
|
|
1596
|
-
exports.
|
|
1597
|
-
const
|
|
1596
|
+
exports.de_SendBonusCommand = de_SendBonusCommand;
|
|
1597
|
+
const de_SendBonusCommandError = async (output, context) => {
|
|
1598
1598
|
const parsedOutput = {
|
|
1599
1599
|
...output,
|
|
1600
1600
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1603,10 +1603,10 @@ const deserializeAws_json1_1SendBonusCommandError = async (output, context) => {
|
|
|
1603
1603
|
switch (errorCode) {
|
|
1604
1604
|
case "RequestError":
|
|
1605
1605
|
case "com.amazonaws.mturk#RequestError":
|
|
1606
|
-
throw await
|
|
1606
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1607
1607
|
case "ServiceFault":
|
|
1608
1608
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1609
|
-
throw await
|
|
1609
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1610
1610
|
default:
|
|
1611
1611
|
const parsedBody = parsedOutput.body;
|
|
1612
1612
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1617,21 +1617,21 @@ const deserializeAws_json1_1SendBonusCommandError = async (output, context) => {
|
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
1619
|
};
|
|
1620
|
-
const
|
|
1620
|
+
const de_SendTestEventNotificationCommand = async (output, context) => {
|
|
1621
1621
|
if (output.statusCode >= 300) {
|
|
1622
|
-
return
|
|
1622
|
+
return de_SendTestEventNotificationCommandError(output, context);
|
|
1623
1623
|
}
|
|
1624
1624
|
const data = await parseBody(output.body, context);
|
|
1625
1625
|
let contents = {};
|
|
1626
|
-
contents =
|
|
1626
|
+
contents = de_SendTestEventNotificationResponse(data, context);
|
|
1627
1627
|
const response = {
|
|
1628
1628
|
$metadata: deserializeMetadata(output),
|
|
1629
1629
|
...contents,
|
|
1630
1630
|
};
|
|
1631
1631
|
return Promise.resolve(response);
|
|
1632
1632
|
};
|
|
1633
|
-
exports.
|
|
1634
|
-
const
|
|
1633
|
+
exports.de_SendTestEventNotificationCommand = de_SendTestEventNotificationCommand;
|
|
1634
|
+
const de_SendTestEventNotificationCommandError = async (output, context) => {
|
|
1635
1635
|
const parsedOutput = {
|
|
1636
1636
|
...output,
|
|
1637
1637
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1640,10 +1640,10 @@ const deserializeAws_json1_1SendTestEventNotificationCommandError = async (outpu
|
|
|
1640
1640
|
switch (errorCode) {
|
|
1641
1641
|
case "RequestError":
|
|
1642
1642
|
case "com.amazonaws.mturk#RequestError":
|
|
1643
|
-
throw await
|
|
1643
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1644
1644
|
case "ServiceFault":
|
|
1645
1645
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1646
|
-
throw await
|
|
1646
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1647
1647
|
default:
|
|
1648
1648
|
const parsedBody = parsedOutput.body;
|
|
1649
1649
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1654,21 +1654,21 @@ const deserializeAws_json1_1SendTestEventNotificationCommandError = async (outpu
|
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
1656
1656
|
};
|
|
1657
|
-
const
|
|
1657
|
+
const de_UpdateExpirationForHITCommand = async (output, context) => {
|
|
1658
1658
|
if (output.statusCode >= 300) {
|
|
1659
|
-
return
|
|
1659
|
+
return de_UpdateExpirationForHITCommandError(output, context);
|
|
1660
1660
|
}
|
|
1661
1661
|
const data = await parseBody(output.body, context);
|
|
1662
1662
|
let contents = {};
|
|
1663
|
-
contents =
|
|
1663
|
+
contents = de_UpdateExpirationForHITResponse(data, context);
|
|
1664
1664
|
const response = {
|
|
1665
1665
|
$metadata: deserializeMetadata(output),
|
|
1666
1666
|
...contents,
|
|
1667
1667
|
};
|
|
1668
1668
|
return Promise.resolve(response);
|
|
1669
1669
|
};
|
|
1670
|
-
exports.
|
|
1671
|
-
const
|
|
1670
|
+
exports.de_UpdateExpirationForHITCommand = de_UpdateExpirationForHITCommand;
|
|
1671
|
+
const de_UpdateExpirationForHITCommandError = async (output, context) => {
|
|
1672
1672
|
const parsedOutput = {
|
|
1673
1673
|
...output,
|
|
1674
1674
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1677,10 +1677,10 @@ const deserializeAws_json1_1UpdateExpirationForHITCommandError = async (output,
|
|
|
1677
1677
|
switch (errorCode) {
|
|
1678
1678
|
case "RequestError":
|
|
1679
1679
|
case "com.amazonaws.mturk#RequestError":
|
|
1680
|
-
throw await
|
|
1680
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1681
1681
|
case "ServiceFault":
|
|
1682
1682
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1683
|
-
throw await
|
|
1683
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1684
1684
|
default:
|
|
1685
1685
|
const parsedBody = parsedOutput.body;
|
|
1686
1686
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1691,21 +1691,21 @@ const deserializeAws_json1_1UpdateExpirationForHITCommandError = async (output,
|
|
|
1691
1691
|
});
|
|
1692
1692
|
}
|
|
1693
1693
|
};
|
|
1694
|
-
const
|
|
1694
|
+
const de_UpdateHITReviewStatusCommand = async (output, context) => {
|
|
1695
1695
|
if (output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
1696
|
+
return de_UpdateHITReviewStatusCommandError(output, context);
|
|
1697
1697
|
}
|
|
1698
1698
|
const data = await parseBody(output.body, context);
|
|
1699
1699
|
let contents = {};
|
|
1700
|
-
contents =
|
|
1700
|
+
contents = de_UpdateHITReviewStatusResponse(data, context);
|
|
1701
1701
|
const response = {
|
|
1702
1702
|
$metadata: deserializeMetadata(output),
|
|
1703
1703
|
...contents,
|
|
1704
1704
|
};
|
|
1705
1705
|
return Promise.resolve(response);
|
|
1706
1706
|
};
|
|
1707
|
-
exports.
|
|
1708
|
-
const
|
|
1707
|
+
exports.de_UpdateHITReviewStatusCommand = de_UpdateHITReviewStatusCommand;
|
|
1708
|
+
const de_UpdateHITReviewStatusCommandError = async (output, context) => {
|
|
1709
1709
|
const parsedOutput = {
|
|
1710
1710
|
...output,
|
|
1711
1711
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1714,10 +1714,10 @@ const deserializeAws_json1_1UpdateHITReviewStatusCommandError = async (output, c
|
|
|
1714
1714
|
switch (errorCode) {
|
|
1715
1715
|
case "RequestError":
|
|
1716
1716
|
case "com.amazonaws.mturk#RequestError":
|
|
1717
|
-
throw await
|
|
1717
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1718
1718
|
case "ServiceFault":
|
|
1719
1719
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1720
|
-
throw await
|
|
1720
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1721
1721
|
default:
|
|
1722
1722
|
const parsedBody = parsedOutput.body;
|
|
1723
1723
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1728,21 +1728,21 @@ const deserializeAws_json1_1UpdateHITReviewStatusCommandError = async (output, c
|
|
|
1728
1728
|
});
|
|
1729
1729
|
}
|
|
1730
1730
|
};
|
|
1731
|
-
const
|
|
1731
|
+
const de_UpdateHITTypeOfHITCommand = async (output, context) => {
|
|
1732
1732
|
if (output.statusCode >= 300) {
|
|
1733
|
-
return
|
|
1733
|
+
return de_UpdateHITTypeOfHITCommandError(output, context);
|
|
1734
1734
|
}
|
|
1735
1735
|
const data = await parseBody(output.body, context);
|
|
1736
1736
|
let contents = {};
|
|
1737
|
-
contents =
|
|
1737
|
+
contents = de_UpdateHITTypeOfHITResponse(data, context);
|
|
1738
1738
|
const response = {
|
|
1739
1739
|
$metadata: deserializeMetadata(output),
|
|
1740
1740
|
...contents,
|
|
1741
1741
|
};
|
|
1742
1742
|
return Promise.resolve(response);
|
|
1743
1743
|
};
|
|
1744
|
-
exports.
|
|
1745
|
-
const
|
|
1744
|
+
exports.de_UpdateHITTypeOfHITCommand = de_UpdateHITTypeOfHITCommand;
|
|
1745
|
+
const de_UpdateHITTypeOfHITCommandError = async (output, context) => {
|
|
1746
1746
|
const parsedOutput = {
|
|
1747
1747
|
...output,
|
|
1748
1748
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1751,10 +1751,10 @@ const deserializeAws_json1_1UpdateHITTypeOfHITCommandError = async (output, cont
|
|
|
1751
1751
|
switch (errorCode) {
|
|
1752
1752
|
case "RequestError":
|
|
1753
1753
|
case "com.amazonaws.mturk#RequestError":
|
|
1754
|
-
throw await
|
|
1754
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1755
1755
|
case "ServiceFault":
|
|
1756
1756
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1757
|
-
throw await
|
|
1757
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1758
1758
|
default:
|
|
1759
1759
|
const parsedBody = parsedOutput.body;
|
|
1760
1760
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1765,21 +1765,21 @@ const deserializeAws_json1_1UpdateHITTypeOfHITCommandError = async (output, cont
|
|
|
1765
1765
|
});
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
|
-
const
|
|
1768
|
+
const de_UpdateNotificationSettingsCommand = async (output, context) => {
|
|
1769
1769
|
if (output.statusCode >= 300) {
|
|
1770
|
-
return
|
|
1770
|
+
return de_UpdateNotificationSettingsCommandError(output, context);
|
|
1771
1771
|
}
|
|
1772
1772
|
const data = await parseBody(output.body, context);
|
|
1773
1773
|
let contents = {};
|
|
1774
|
-
contents =
|
|
1774
|
+
contents = de_UpdateNotificationSettingsResponse(data, context);
|
|
1775
1775
|
const response = {
|
|
1776
1776
|
$metadata: deserializeMetadata(output),
|
|
1777
1777
|
...contents,
|
|
1778
1778
|
};
|
|
1779
1779
|
return Promise.resolve(response);
|
|
1780
1780
|
};
|
|
1781
|
-
exports.
|
|
1782
|
-
const
|
|
1781
|
+
exports.de_UpdateNotificationSettingsCommand = de_UpdateNotificationSettingsCommand;
|
|
1782
|
+
const de_UpdateNotificationSettingsCommandError = async (output, context) => {
|
|
1783
1783
|
const parsedOutput = {
|
|
1784
1784
|
...output,
|
|
1785
1785
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1788,10 +1788,10 @@ const deserializeAws_json1_1UpdateNotificationSettingsCommandError = async (outp
|
|
|
1788
1788
|
switch (errorCode) {
|
|
1789
1789
|
case "RequestError":
|
|
1790
1790
|
case "com.amazonaws.mturk#RequestError":
|
|
1791
|
-
throw await
|
|
1791
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1792
1792
|
case "ServiceFault":
|
|
1793
1793
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1794
|
-
throw await
|
|
1794
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1795
1795
|
default:
|
|
1796
1796
|
const parsedBody = parsedOutput.body;
|
|
1797
1797
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1802,21 +1802,21 @@ const deserializeAws_json1_1UpdateNotificationSettingsCommandError = async (outp
|
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
};
|
|
1805
|
-
const
|
|
1805
|
+
const de_UpdateQualificationTypeCommand = async (output, context) => {
|
|
1806
1806
|
if (output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
1807
|
+
return de_UpdateQualificationTypeCommandError(output, context);
|
|
1808
1808
|
}
|
|
1809
1809
|
const data = await parseBody(output.body, context);
|
|
1810
1810
|
let contents = {};
|
|
1811
|
-
contents =
|
|
1811
|
+
contents = de_UpdateQualificationTypeResponse(data, context);
|
|
1812
1812
|
const response = {
|
|
1813
1813
|
$metadata: deserializeMetadata(output),
|
|
1814
1814
|
...contents,
|
|
1815
1815
|
};
|
|
1816
1816
|
return Promise.resolve(response);
|
|
1817
1817
|
};
|
|
1818
|
-
exports.
|
|
1819
|
-
const
|
|
1818
|
+
exports.de_UpdateQualificationTypeCommand = de_UpdateQualificationTypeCommand;
|
|
1819
|
+
const de_UpdateQualificationTypeCommandError = async (output, context) => {
|
|
1820
1820
|
const parsedOutput = {
|
|
1821
1821
|
...output,
|
|
1822
1822
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1825,10 +1825,10 @@ const deserializeAws_json1_1UpdateQualificationTypeCommandError = async (output,
|
|
|
1825
1825
|
switch (errorCode) {
|
|
1826
1826
|
case "RequestError":
|
|
1827
1827
|
case "com.amazonaws.mturk#RequestError":
|
|
1828
|
-
throw await
|
|
1828
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1829
1829
|
case "ServiceFault":
|
|
1830
1830
|
case "com.amazonaws.mturk#ServiceFault":
|
|
1831
|
-
throw await
|
|
1831
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1832
1832
|
default:
|
|
1833
1833
|
const parsedBody = parsedOutput.body;
|
|
1834
1834
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1839,45 +1839,45 @@ const deserializeAws_json1_1UpdateQualificationTypeCommandError = async (output,
|
|
|
1839
1839
|
});
|
|
1840
1840
|
}
|
|
1841
1841
|
};
|
|
1842
|
-
const
|
|
1842
|
+
const de_RequestErrorRes = async (parsedOutput, context) => {
|
|
1843
1843
|
const body = parsedOutput.body;
|
|
1844
|
-
const deserialized =
|
|
1844
|
+
const deserialized = de_RequestError(body, context);
|
|
1845
1845
|
const exception = new models_0_1.RequestError({
|
|
1846
1846
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1847
1847
|
...deserialized,
|
|
1848
1848
|
});
|
|
1849
1849
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1850
1850
|
};
|
|
1851
|
-
const
|
|
1851
|
+
const de_ServiceFaultRes = async (parsedOutput, context) => {
|
|
1852
1852
|
const body = parsedOutput.body;
|
|
1853
|
-
const deserialized =
|
|
1853
|
+
const deserialized = de_ServiceFault(body, context);
|
|
1854
1854
|
const exception = new models_0_1.ServiceFault({
|
|
1855
1855
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1856
1856
|
...deserialized,
|
|
1857
1857
|
});
|
|
1858
1858
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1859
1859
|
};
|
|
1860
|
-
const
|
|
1860
|
+
const se_AcceptQualificationRequestRequest = (input, context) => {
|
|
1861
1861
|
return {
|
|
1862
1862
|
...(input.IntegerValue != null && { IntegerValue: input.IntegerValue }),
|
|
1863
1863
|
...(input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId }),
|
|
1864
1864
|
};
|
|
1865
1865
|
};
|
|
1866
|
-
const
|
|
1866
|
+
const se_ApproveAssignmentRequest = (input, context) => {
|
|
1867
1867
|
return {
|
|
1868
1868
|
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1869
1869
|
...(input.OverrideRejection != null && { OverrideRejection: input.OverrideRejection }),
|
|
1870
1870
|
...(input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }),
|
|
1871
1871
|
};
|
|
1872
1872
|
};
|
|
1873
|
-
const
|
|
1873
|
+
const se_AssignmentStatusList = (input, context) => {
|
|
1874
1874
|
return input
|
|
1875
1875
|
.filter((e) => e != null)
|
|
1876
1876
|
.map((entry) => {
|
|
1877
1877
|
return entry;
|
|
1878
1878
|
});
|
|
1879
1879
|
};
|
|
1880
|
-
const
|
|
1880
|
+
const se_AssociateQualificationWithWorkerRequest = (input, context) => {
|
|
1881
1881
|
return {
|
|
1882
1882
|
...(input.IntegerValue != null && { IntegerValue: input.IntegerValue }),
|
|
1883
1883
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
@@ -1885,7 +1885,7 @@ const serializeAws_json1_1AssociateQualificationWithWorkerRequest = (input, cont
|
|
|
1885
1885
|
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1886
1886
|
};
|
|
1887
1887
|
};
|
|
1888
|
-
const
|
|
1888
|
+
const se_CreateAdditionalAssignmentsForHITRequest = (input, context) => {
|
|
1889
1889
|
return {
|
|
1890
1890
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
1891
1891
|
...(input.NumberOfAdditionalAssignments != null && {
|
|
@@ -1894,28 +1894,26 @@ const serializeAws_json1_1CreateAdditionalAssignmentsForHITRequest = (input, con
|
|
|
1894
1894
|
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1895
1895
|
};
|
|
1896
1896
|
};
|
|
1897
|
-
const
|
|
1897
|
+
const se_CreateHITRequest = (input, context) => {
|
|
1898
1898
|
return {
|
|
1899
1899
|
...(input.AssignmentDurationInSeconds != null && {
|
|
1900
1900
|
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
1901
1901
|
}),
|
|
1902
1902
|
...(input.AssignmentReviewPolicy != null && {
|
|
1903
|
-
AssignmentReviewPolicy:
|
|
1903
|
+
AssignmentReviewPolicy: se_ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
1904
1904
|
}),
|
|
1905
1905
|
...(input.AutoApprovalDelayInSeconds != null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds }),
|
|
1906
1906
|
...(input.Description != null && { Description: input.Description }),
|
|
1907
1907
|
...(input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId }),
|
|
1908
1908
|
...(input.HITLayoutParameters != null && {
|
|
1909
|
-
HITLayoutParameters:
|
|
1910
|
-
}),
|
|
1911
|
-
...(input.HITReviewPolicy != null && {
|
|
1912
|
-
HITReviewPolicy: serializeAws_json1_1ReviewPolicy(input.HITReviewPolicy, context),
|
|
1909
|
+
HITLayoutParameters: se_HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
1913
1910
|
}),
|
|
1911
|
+
...(input.HITReviewPolicy != null && { HITReviewPolicy: se_ReviewPolicy(input.HITReviewPolicy, context) }),
|
|
1914
1912
|
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1915
1913
|
...(input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds }),
|
|
1916
1914
|
...(input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments }),
|
|
1917
1915
|
...(input.QualificationRequirements != null && {
|
|
1918
|
-
QualificationRequirements:
|
|
1916
|
+
QualificationRequirements: se_QualificationRequirementList(input.QualificationRequirements, context),
|
|
1919
1917
|
}),
|
|
1920
1918
|
...(input.Question != null && { Question: input.Question }),
|
|
1921
1919
|
...(input.RequesterAnnotation != null && { RequesterAnnotation: input.RequesterAnnotation }),
|
|
@@ -1924,7 +1922,7 @@ const serializeAws_json1_1CreateHITRequest = (input, context) => {
|
|
|
1924
1922
|
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1925
1923
|
};
|
|
1926
1924
|
};
|
|
1927
|
-
const
|
|
1925
|
+
const se_CreateHITTypeRequest = (input, context) => {
|
|
1928
1926
|
return {
|
|
1929
1927
|
...(input.AssignmentDurationInSeconds != null && {
|
|
1930
1928
|
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
@@ -1933,24 +1931,22 @@ const serializeAws_json1_1CreateHITTypeRequest = (input, context) => {
|
|
|
1933
1931
|
...(input.Description != null && { Description: input.Description }),
|
|
1934
1932
|
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1935
1933
|
...(input.QualificationRequirements != null && {
|
|
1936
|
-
QualificationRequirements:
|
|
1934
|
+
QualificationRequirements: se_QualificationRequirementList(input.QualificationRequirements, context),
|
|
1937
1935
|
}),
|
|
1938
1936
|
...(input.Reward != null && { Reward: input.Reward }),
|
|
1939
1937
|
...(input.Title != null && { Title: input.Title }),
|
|
1940
1938
|
};
|
|
1941
1939
|
};
|
|
1942
|
-
const
|
|
1940
|
+
const se_CreateHITWithHITTypeRequest = (input, context) => {
|
|
1943
1941
|
return {
|
|
1944
1942
|
...(input.AssignmentReviewPolicy != null && {
|
|
1945
|
-
AssignmentReviewPolicy:
|
|
1943
|
+
AssignmentReviewPolicy: se_ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
1946
1944
|
}),
|
|
1947
1945
|
...(input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId }),
|
|
1948
1946
|
...(input.HITLayoutParameters != null && {
|
|
1949
|
-
HITLayoutParameters:
|
|
1950
|
-
}),
|
|
1951
|
-
...(input.HITReviewPolicy != null && {
|
|
1952
|
-
HITReviewPolicy: serializeAws_json1_1ReviewPolicy(input.HITReviewPolicy, context),
|
|
1947
|
+
HITLayoutParameters: se_HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
1953
1948
|
}),
|
|
1949
|
+
...(input.HITReviewPolicy != null && { HITReviewPolicy: se_ReviewPolicy(input.HITReviewPolicy, context) }),
|
|
1954
1950
|
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
1955
1951
|
...(input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds }),
|
|
1956
1952
|
...(input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments }),
|
|
@@ -1959,7 +1955,7 @@ const serializeAws_json1_1CreateHITWithHITTypeRequest = (input, context) => {
|
|
|
1959
1955
|
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1960
1956
|
};
|
|
1961
1957
|
};
|
|
1962
|
-
const
|
|
1958
|
+
const se_CreateQualificationTypeRequest = (input, context) => {
|
|
1963
1959
|
return {
|
|
1964
1960
|
...(input.AnswerKey != null && { AnswerKey: input.AnswerKey }),
|
|
1965
1961
|
...(input.AutoGranted != null && { AutoGranted: input.AutoGranted }),
|
|
@@ -1973,110 +1969,110 @@ const serializeAws_json1_1CreateQualificationTypeRequest = (input, context) => {
|
|
|
1973
1969
|
...(input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }),
|
|
1974
1970
|
};
|
|
1975
1971
|
};
|
|
1976
|
-
const
|
|
1972
|
+
const se_CreateWorkerBlockRequest = (input, context) => {
|
|
1977
1973
|
return {
|
|
1978
1974
|
...(input.Reason != null && { Reason: input.Reason }),
|
|
1979
1975
|
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1980
1976
|
};
|
|
1981
1977
|
};
|
|
1982
|
-
const
|
|
1978
|
+
const se_CustomerIdList = (input, context) => {
|
|
1983
1979
|
return input
|
|
1984
1980
|
.filter((e) => e != null)
|
|
1985
1981
|
.map((entry) => {
|
|
1986
1982
|
return entry;
|
|
1987
1983
|
});
|
|
1988
1984
|
};
|
|
1989
|
-
const
|
|
1985
|
+
const se_DeleteHITRequest = (input, context) => {
|
|
1990
1986
|
return {
|
|
1991
1987
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
1992
1988
|
};
|
|
1993
1989
|
};
|
|
1994
|
-
const
|
|
1990
|
+
const se_DeleteQualificationTypeRequest = (input, context) => {
|
|
1995
1991
|
return {
|
|
1996
1992
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1997
1993
|
};
|
|
1998
1994
|
};
|
|
1999
|
-
const
|
|
1995
|
+
const se_DeleteWorkerBlockRequest = (input, context) => {
|
|
2000
1996
|
return {
|
|
2001
1997
|
...(input.Reason != null && { Reason: input.Reason }),
|
|
2002
1998
|
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
2003
1999
|
};
|
|
2004
2000
|
};
|
|
2005
|
-
const
|
|
2001
|
+
const se_DisassociateQualificationFromWorkerRequest = (input, context) => {
|
|
2006
2002
|
return {
|
|
2007
2003
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2008
2004
|
...(input.Reason != null && { Reason: input.Reason }),
|
|
2009
2005
|
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
2010
2006
|
};
|
|
2011
2007
|
};
|
|
2012
|
-
const
|
|
2008
|
+
const se_EventTypeList = (input, context) => {
|
|
2013
2009
|
return input
|
|
2014
2010
|
.filter((e) => e != null)
|
|
2015
2011
|
.map((entry) => {
|
|
2016
2012
|
return entry;
|
|
2017
2013
|
});
|
|
2018
2014
|
};
|
|
2019
|
-
const
|
|
2015
|
+
const se_GetAccountBalanceRequest = (input, context) => {
|
|
2020
2016
|
return {};
|
|
2021
2017
|
};
|
|
2022
|
-
const
|
|
2018
|
+
const se_GetAssignmentRequest = (input, context) => {
|
|
2023
2019
|
return {
|
|
2024
2020
|
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2025
2021
|
};
|
|
2026
2022
|
};
|
|
2027
|
-
const
|
|
2023
|
+
const se_GetFileUploadURLRequest = (input, context) => {
|
|
2028
2024
|
return {
|
|
2029
2025
|
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2030
2026
|
...(input.QuestionIdentifier != null && { QuestionIdentifier: input.QuestionIdentifier }),
|
|
2031
2027
|
};
|
|
2032
2028
|
};
|
|
2033
|
-
const
|
|
2029
|
+
const se_GetHITRequest = (input, context) => {
|
|
2034
2030
|
return {
|
|
2035
2031
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
2036
2032
|
};
|
|
2037
2033
|
};
|
|
2038
|
-
const
|
|
2034
|
+
const se_GetQualificationScoreRequest = (input, context) => {
|
|
2039
2035
|
return {
|
|
2040
2036
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2041
2037
|
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
2042
2038
|
};
|
|
2043
2039
|
};
|
|
2044
|
-
const
|
|
2040
|
+
const se_GetQualificationTypeRequest = (input, context) => {
|
|
2045
2041
|
return {
|
|
2046
2042
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2047
2043
|
};
|
|
2048
2044
|
};
|
|
2049
|
-
const
|
|
2045
|
+
const se_HITLayoutParameter = (input, context) => {
|
|
2050
2046
|
return {
|
|
2051
2047
|
...(input.Name != null && { Name: input.Name }),
|
|
2052
2048
|
...(input.Value != null && { Value: input.Value }),
|
|
2053
2049
|
};
|
|
2054
2050
|
};
|
|
2055
|
-
const
|
|
2051
|
+
const se_HITLayoutParameterList = (input, context) => {
|
|
2056
2052
|
return input
|
|
2057
2053
|
.filter((e) => e != null)
|
|
2058
2054
|
.map((entry) => {
|
|
2059
|
-
return
|
|
2055
|
+
return se_HITLayoutParameter(entry, context);
|
|
2060
2056
|
});
|
|
2061
2057
|
};
|
|
2062
|
-
const
|
|
2058
|
+
const se_IntegerList = (input, context) => {
|
|
2063
2059
|
return input
|
|
2064
2060
|
.filter((e) => e != null)
|
|
2065
2061
|
.map((entry) => {
|
|
2066
2062
|
return entry;
|
|
2067
2063
|
});
|
|
2068
2064
|
};
|
|
2069
|
-
const
|
|
2065
|
+
const se_ListAssignmentsForHITRequest = (input, context) => {
|
|
2070
2066
|
return {
|
|
2071
2067
|
...(input.AssignmentStatuses != null && {
|
|
2072
|
-
AssignmentStatuses:
|
|
2068
|
+
AssignmentStatuses: se_AssignmentStatusList(input.AssignmentStatuses, context),
|
|
2073
2069
|
}),
|
|
2074
2070
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
2075
2071
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2076
2072
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2077
2073
|
};
|
|
2078
2074
|
};
|
|
2079
|
-
const
|
|
2075
|
+
const se_ListBonusPaymentsRequest = (input, context) => {
|
|
2080
2076
|
return {
|
|
2081
2077
|
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2082
2078
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
@@ -2084,27 +2080,27 @@ const serializeAws_json1_1ListBonusPaymentsRequest = (input, context) => {
|
|
|
2084
2080
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2085
2081
|
};
|
|
2086
2082
|
};
|
|
2087
|
-
const
|
|
2083
|
+
const se_ListHITsForQualificationTypeRequest = (input, context) => {
|
|
2088
2084
|
return {
|
|
2089
2085
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2090
2086
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2091
2087
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2092
2088
|
};
|
|
2093
2089
|
};
|
|
2094
|
-
const
|
|
2090
|
+
const se_ListHITsRequest = (input, context) => {
|
|
2095
2091
|
return {
|
|
2096
2092
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2097
2093
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2098
2094
|
};
|
|
2099
2095
|
};
|
|
2100
|
-
const
|
|
2096
|
+
const se_ListQualificationRequestsRequest = (input, context) => {
|
|
2101
2097
|
return {
|
|
2102
2098
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2103
2099
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2104
2100
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2105
2101
|
};
|
|
2106
2102
|
};
|
|
2107
|
-
const
|
|
2103
|
+
const se_ListQualificationTypesRequest = (input, context) => {
|
|
2108
2104
|
return {
|
|
2109
2105
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2110
2106
|
...(input.MustBeOwnedByCaller != null && { MustBeOwnedByCaller: input.MustBeOwnedByCaller }),
|
|
@@ -2113,7 +2109,7 @@ const serializeAws_json1_1ListQualificationTypesRequest = (input, context) => {
|
|
|
2113
2109
|
...(input.Query != null && { Query: input.Query }),
|
|
2114
2110
|
};
|
|
2115
2111
|
};
|
|
2116
|
-
const
|
|
2112
|
+
const se_ListReviewableHITsRequest = (input, context) => {
|
|
2117
2113
|
return {
|
|
2118
2114
|
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2119
2115
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -2121,25 +2117,23 @@ const serializeAws_json1_1ListReviewableHITsRequest = (input, context) => {
|
|
|
2121
2117
|
...(input.Status != null && { Status: input.Status }),
|
|
2122
2118
|
};
|
|
2123
2119
|
};
|
|
2124
|
-
const
|
|
2120
|
+
const se_ListReviewPolicyResultsForHITRequest = (input, context) => {
|
|
2125
2121
|
return {
|
|
2126
2122
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
2127
2123
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2128
2124
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2129
|
-
...(input.PolicyLevels != null && {
|
|
2130
|
-
PolicyLevels: serializeAws_json1_1ReviewPolicyLevelList(input.PolicyLevels, context),
|
|
2131
|
-
}),
|
|
2125
|
+
...(input.PolicyLevels != null && { PolicyLevels: se_ReviewPolicyLevelList(input.PolicyLevels, context) }),
|
|
2132
2126
|
...(input.RetrieveActions != null && { RetrieveActions: input.RetrieveActions }),
|
|
2133
2127
|
...(input.RetrieveResults != null && { RetrieveResults: input.RetrieveResults }),
|
|
2134
2128
|
};
|
|
2135
2129
|
};
|
|
2136
|
-
const
|
|
2130
|
+
const se_ListWorkerBlocksRequest = (input, context) => {
|
|
2137
2131
|
return {
|
|
2138
2132
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2139
2133
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2140
2134
|
};
|
|
2141
2135
|
};
|
|
2142
|
-
const
|
|
2136
|
+
const se_ListWorkersWithQualificationTypeRequest = (input, context) => {
|
|
2143
2137
|
return {
|
|
2144
2138
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2145
2139
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
@@ -2147,108 +2141,104 @@ const serializeAws_json1_1ListWorkersWithQualificationTypeRequest = (input, cont
|
|
|
2147
2141
|
...(input.Status != null && { Status: input.Status }),
|
|
2148
2142
|
};
|
|
2149
2143
|
};
|
|
2150
|
-
const
|
|
2144
|
+
const se_Locale = (input, context) => {
|
|
2151
2145
|
return {
|
|
2152
2146
|
...(input.Country != null && { Country: input.Country }),
|
|
2153
2147
|
...(input.Subdivision != null && { Subdivision: input.Subdivision }),
|
|
2154
2148
|
};
|
|
2155
2149
|
};
|
|
2156
|
-
const
|
|
2150
|
+
const se_LocaleList = (input, context) => {
|
|
2157
2151
|
return input
|
|
2158
2152
|
.filter((e) => e != null)
|
|
2159
2153
|
.map((entry) => {
|
|
2160
|
-
return
|
|
2154
|
+
return se_Locale(entry, context);
|
|
2161
2155
|
});
|
|
2162
2156
|
};
|
|
2163
|
-
const
|
|
2157
|
+
const se_NotificationSpecification = (input, context) => {
|
|
2164
2158
|
return {
|
|
2165
2159
|
...(input.Destination != null && { Destination: input.Destination }),
|
|
2166
|
-
...(input.EventTypes != null && { EventTypes:
|
|
2160
|
+
...(input.EventTypes != null && { EventTypes: se_EventTypeList(input.EventTypes, context) }),
|
|
2167
2161
|
...(input.Transport != null && { Transport: input.Transport }),
|
|
2168
2162
|
...(input.Version != null && { Version: input.Version }),
|
|
2169
2163
|
};
|
|
2170
2164
|
};
|
|
2171
|
-
const
|
|
2165
|
+
const se_NotifyWorkersRequest = (input, context) => {
|
|
2172
2166
|
return {
|
|
2173
2167
|
...(input.MessageText != null && { MessageText: input.MessageText }),
|
|
2174
2168
|
...(input.Subject != null && { Subject: input.Subject }),
|
|
2175
|
-
...(input.WorkerIds != null && { WorkerIds:
|
|
2169
|
+
...(input.WorkerIds != null && { WorkerIds: se_CustomerIdList(input.WorkerIds, context) }),
|
|
2176
2170
|
};
|
|
2177
2171
|
};
|
|
2178
|
-
const
|
|
2172
|
+
const se_ParameterMapEntry = (input, context) => {
|
|
2179
2173
|
return {
|
|
2180
2174
|
...(input.Key != null && { Key: input.Key }),
|
|
2181
|
-
...(input.Values != null && { Values:
|
|
2175
|
+
...(input.Values != null && { Values: se_StringList(input.Values, context) }),
|
|
2182
2176
|
};
|
|
2183
2177
|
};
|
|
2184
|
-
const
|
|
2178
|
+
const se_ParameterMapEntryList = (input, context) => {
|
|
2185
2179
|
return input
|
|
2186
2180
|
.filter((e) => e != null)
|
|
2187
2181
|
.map((entry) => {
|
|
2188
|
-
return
|
|
2182
|
+
return se_ParameterMapEntry(entry, context);
|
|
2189
2183
|
});
|
|
2190
2184
|
};
|
|
2191
|
-
const
|
|
2185
|
+
const se_PolicyParameter = (input, context) => {
|
|
2192
2186
|
return {
|
|
2193
2187
|
...(input.Key != null && { Key: input.Key }),
|
|
2194
|
-
...(input.MapEntries != null && {
|
|
2195
|
-
|
|
2196
|
-
}),
|
|
2197
|
-
...(input.Values != null && { Values: serializeAws_json1_1StringList(input.Values, context) }),
|
|
2188
|
+
...(input.MapEntries != null && { MapEntries: se_ParameterMapEntryList(input.MapEntries, context) }),
|
|
2189
|
+
...(input.Values != null && { Values: se_StringList(input.Values, context) }),
|
|
2198
2190
|
};
|
|
2199
2191
|
};
|
|
2200
|
-
const
|
|
2192
|
+
const se_PolicyParameterList = (input, context) => {
|
|
2201
2193
|
return input
|
|
2202
2194
|
.filter((e) => e != null)
|
|
2203
2195
|
.map((entry) => {
|
|
2204
|
-
return
|
|
2196
|
+
return se_PolicyParameter(entry, context);
|
|
2205
2197
|
});
|
|
2206
2198
|
};
|
|
2207
|
-
const
|
|
2199
|
+
const se_QualificationRequirement = (input, context) => {
|
|
2208
2200
|
return {
|
|
2209
2201
|
...(input.ActionsGuarded != null && { ActionsGuarded: input.ActionsGuarded }),
|
|
2210
2202
|
...(input.Comparator != null && { Comparator: input.Comparator }),
|
|
2211
|
-
...(input.IntegerValues != null && {
|
|
2212
|
-
|
|
2213
|
-
}),
|
|
2214
|
-
...(input.LocaleValues != null && { LocaleValues: serializeAws_json1_1LocaleList(input.LocaleValues, context) }),
|
|
2203
|
+
...(input.IntegerValues != null && { IntegerValues: se_IntegerList(input.IntegerValues, context) }),
|
|
2204
|
+
...(input.LocaleValues != null && { LocaleValues: se_LocaleList(input.LocaleValues, context) }),
|
|
2215
2205
|
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2216
2206
|
...(input.RequiredToPreview != null && { RequiredToPreview: input.RequiredToPreview }),
|
|
2217
2207
|
};
|
|
2218
2208
|
};
|
|
2219
|
-
const
|
|
2209
|
+
const se_QualificationRequirementList = (input, context) => {
|
|
2220
2210
|
return input
|
|
2221
2211
|
.filter((e) => e != null)
|
|
2222
2212
|
.map((entry) => {
|
|
2223
|
-
return
|
|
2213
|
+
return se_QualificationRequirement(entry, context);
|
|
2224
2214
|
});
|
|
2225
2215
|
};
|
|
2226
|
-
const
|
|
2216
|
+
const se_RejectAssignmentRequest = (input, context) => {
|
|
2227
2217
|
return {
|
|
2228
2218
|
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2229
2219
|
...(input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }),
|
|
2230
2220
|
};
|
|
2231
2221
|
};
|
|
2232
|
-
const
|
|
2222
|
+
const se_RejectQualificationRequestRequest = (input, context) => {
|
|
2233
2223
|
return {
|
|
2234
2224
|
...(input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId }),
|
|
2235
2225
|
...(input.Reason != null && { Reason: input.Reason }),
|
|
2236
2226
|
};
|
|
2237
2227
|
};
|
|
2238
|
-
const
|
|
2228
|
+
const se_ReviewPolicy = (input, context) => {
|
|
2239
2229
|
return {
|
|
2240
|
-
...(input.Parameters != null && { Parameters:
|
|
2230
|
+
...(input.Parameters != null && { Parameters: se_PolicyParameterList(input.Parameters, context) }),
|
|
2241
2231
|
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
2242
2232
|
};
|
|
2243
2233
|
};
|
|
2244
|
-
const
|
|
2234
|
+
const se_ReviewPolicyLevelList = (input, context) => {
|
|
2245
2235
|
return input
|
|
2246
2236
|
.filter((e) => e != null)
|
|
2247
2237
|
.map((entry) => {
|
|
2248
2238
|
return entry;
|
|
2249
2239
|
});
|
|
2250
2240
|
};
|
|
2251
|
-
const
|
|
2241
|
+
const se_SendBonusRequest = (input, context) => {
|
|
2252
2242
|
return {
|
|
2253
2243
|
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2254
2244
|
...(input.BonusAmount != null && { BonusAmount: input.BonusAmount }),
|
|
@@ -2257,49 +2247,45 @@ const serializeAws_json1_1SendBonusRequest = (input, context) => {
|
|
|
2257
2247
|
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
2258
2248
|
};
|
|
2259
2249
|
};
|
|
2260
|
-
const
|
|
2250
|
+
const se_SendTestEventNotificationRequest = (input, context) => {
|
|
2261
2251
|
return {
|
|
2262
|
-
...(input.Notification != null && {
|
|
2263
|
-
Notification: serializeAws_json1_1NotificationSpecification(input.Notification, context),
|
|
2264
|
-
}),
|
|
2252
|
+
...(input.Notification != null && { Notification: se_NotificationSpecification(input.Notification, context) }),
|
|
2265
2253
|
...(input.TestEventType != null && { TestEventType: input.TestEventType }),
|
|
2266
2254
|
};
|
|
2267
2255
|
};
|
|
2268
|
-
const
|
|
2256
|
+
const se_StringList = (input, context) => {
|
|
2269
2257
|
return input
|
|
2270
2258
|
.filter((e) => e != null)
|
|
2271
2259
|
.map((entry) => {
|
|
2272
2260
|
return entry;
|
|
2273
2261
|
});
|
|
2274
2262
|
};
|
|
2275
|
-
const
|
|
2263
|
+
const se_UpdateExpirationForHITRequest = (input, context) => {
|
|
2276
2264
|
return {
|
|
2277
2265
|
...(input.ExpireAt != null && { ExpireAt: Math.round(input.ExpireAt.getTime() / 1000) }),
|
|
2278
2266
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
2279
2267
|
};
|
|
2280
2268
|
};
|
|
2281
|
-
const
|
|
2269
|
+
const se_UpdateHITReviewStatusRequest = (input, context) => {
|
|
2282
2270
|
return {
|
|
2283
2271
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
2284
2272
|
...(input.Revert != null && { Revert: input.Revert }),
|
|
2285
2273
|
};
|
|
2286
2274
|
};
|
|
2287
|
-
const
|
|
2275
|
+
const se_UpdateHITTypeOfHITRequest = (input, context) => {
|
|
2288
2276
|
return {
|
|
2289
2277
|
...(input.HITId != null && { HITId: input.HITId }),
|
|
2290
2278
|
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2291
2279
|
};
|
|
2292
2280
|
};
|
|
2293
|
-
const
|
|
2281
|
+
const se_UpdateNotificationSettingsRequest = (input, context) => {
|
|
2294
2282
|
return {
|
|
2295
2283
|
...(input.Active != null && { Active: input.Active }),
|
|
2296
2284
|
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2297
|
-
...(input.Notification != null && {
|
|
2298
|
-
Notification: serializeAws_json1_1NotificationSpecification(input.Notification, context),
|
|
2299
|
-
}),
|
|
2285
|
+
...(input.Notification != null && { Notification: se_NotificationSpecification(input.Notification, context) }),
|
|
2300
2286
|
};
|
|
2301
2287
|
};
|
|
2302
|
-
const
|
|
2288
|
+
const se_UpdateQualificationTypeRequest = (input, context) => {
|
|
2303
2289
|
return {
|
|
2304
2290
|
...(input.AnswerKey != null && { AnswerKey: input.AnswerKey }),
|
|
2305
2291
|
...(input.AutoGranted != null && { AutoGranted: input.AutoGranted }),
|
|
@@ -2312,13 +2298,13 @@ const serializeAws_json1_1UpdateQualificationTypeRequest = (input, context) => {
|
|
|
2312
2298
|
...(input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }),
|
|
2313
2299
|
};
|
|
2314
2300
|
};
|
|
2315
|
-
const
|
|
2301
|
+
const de_AcceptQualificationRequestResponse = (output, context) => {
|
|
2316
2302
|
return {};
|
|
2317
2303
|
};
|
|
2318
|
-
const
|
|
2304
|
+
const de_ApproveAssignmentResponse = (output, context) => {
|
|
2319
2305
|
return {};
|
|
2320
2306
|
};
|
|
2321
|
-
const
|
|
2307
|
+
const de_Assignment = (output, context) => {
|
|
2322
2308
|
return {
|
|
2323
2309
|
AcceptTime: output.AcceptTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AcceptTime))) : undefined,
|
|
2324
2310
|
Answer: (0, smithy_client_1.expectString)(output.Answer),
|
|
@@ -2340,21 +2326,21 @@ const deserializeAws_json1_1Assignment = (output, context) => {
|
|
|
2340
2326
|
WorkerId: (0, smithy_client_1.expectString)(output.WorkerId),
|
|
2341
2327
|
};
|
|
2342
2328
|
};
|
|
2343
|
-
const
|
|
2329
|
+
const de_AssignmentList = (output, context) => {
|
|
2344
2330
|
const retVal = (output || [])
|
|
2345
2331
|
.filter((e) => e != null)
|
|
2346
2332
|
.map((entry) => {
|
|
2347
2333
|
if (entry === null) {
|
|
2348
2334
|
return null;
|
|
2349
2335
|
}
|
|
2350
|
-
return
|
|
2336
|
+
return de_Assignment(entry, context);
|
|
2351
2337
|
});
|
|
2352
2338
|
return retVal;
|
|
2353
2339
|
};
|
|
2354
|
-
const
|
|
2340
|
+
const de_AssociateQualificationWithWorkerResponse = (output, context) => {
|
|
2355
2341
|
return {};
|
|
2356
2342
|
};
|
|
2357
|
-
const
|
|
2343
|
+
const de_BonusPayment = (output, context) => {
|
|
2358
2344
|
return {
|
|
2359
2345
|
AssignmentId: (0, smithy_client_1.expectString)(output.AssignmentId),
|
|
2360
2346
|
BonusAmount: (0, smithy_client_1.expectString)(output.BonusAmount),
|
|
@@ -2363,92 +2349,88 @@ const deserializeAws_json1_1BonusPayment = (output, context) => {
|
|
|
2363
2349
|
WorkerId: (0, smithy_client_1.expectString)(output.WorkerId),
|
|
2364
2350
|
};
|
|
2365
2351
|
};
|
|
2366
|
-
const
|
|
2352
|
+
const de_BonusPaymentList = (output, context) => {
|
|
2367
2353
|
const retVal = (output || [])
|
|
2368
2354
|
.filter((e) => e != null)
|
|
2369
2355
|
.map((entry) => {
|
|
2370
2356
|
if (entry === null) {
|
|
2371
2357
|
return null;
|
|
2372
2358
|
}
|
|
2373
|
-
return
|
|
2359
|
+
return de_BonusPayment(entry, context);
|
|
2374
2360
|
});
|
|
2375
2361
|
return retVal;
|
|
2376
2362
|
};
|
|
2377
|
-
const
|
|
2363
|
+
const de_CreateAdditionalAssignmentsForHITResponse = (output, context) => {
|
|
2378
2364
|
return {};
|
|
2379
2365
|
};
|
|
2380
|
-
const
|
|
2366
|
+
const de_CreateHITResponse = (output, context) => {
|
|
2381
2367
|
return {
|
|
2382
|
-
HIT: output.HIT != null ?
|
|
2368
|
+
HIT: output.HIT != null ? de_HIT(output.HIT, context) : undefined,
|
|
2383
2369
|
};
|
|
2384
2370
|
};
|
|
2385
|
-
const
|
|
2371
|
+
const de_CreateHITTypeResponse = (output, context) => {
|
|
2386
2372
|
return {
|
|
2387
2373
|
HITTypeId: (0, smithy_client_1.expectString)(output.HITTypeId),
|
|
2388
2374
|
};
|
|
2389
2375
|
};
|
|
2390
|
-
const
|
|
2376
|
+
const de_CreateHITWithHITTypeResponse = (output, context) => {
|
|
2391
2377
|
return {
|
|
2392
|
-
HIT: output.HIT != null ?
|
|
2378
|
+
HIT: output.HIT != null ? de_HIT(output.HIT, context) : undefined,
|
|
2393
2379
|
};
|
|
2394
2380
|
};
|
|
2395
|
-
const
|
|
2381
|
+
const de_CreateQualificationTypeResponse = (output, context) => {
|
|
2396
2382
|
return {
|
|
2397
|
-
QualificationType: output.QualificationType != null
|
|
2398
|
-
? deserializeAws_json1_1QualificationType(output.QualificationType, context)
|
|
2399
|
-
: undefined,
|
|
2383
|
+
QualificationType: output.QualificationType != null ? de_QualificationType(output.QualificationType, context) : undefined,
|
|
2400
2384
|
};
|
|
2401
2385
|
};
|
|
2402
|
-
const
|
|
2386
|
+
const de_CreateWorkerBlockResponse = (output, context) => {
|
|
2403
2387
|
return {};
|
|
2404
2388
|
};
|
|
2405
|
-
const
|
|
2389
|
+
const de_DeleteHITResponse = (output, context) => {
|
|
2406
2390
|
return {};
|
|
2407
2391
|
};
|
|
2408
|
-
const
|
|
2392
|
+
const de_DeleteQualificationTypeResponse = (output, context) => {
|
|
2409
2393
|
return {};
|
|
2410
2394
|
};
|
|
2411
|
-
const
|
|
2395
|
+
const de_DeleteWorkerBlockResponse = (output, context) => {
|
|
2412
2396
|
return {};
|
|
2413
2397
|
};
|
|
2414
|
-
const
|
|
2398
|
+
const de_DisassociateQualificationFromWorkerResponse = (output, context) => {
|
|
2415
2399
|
return {};
|
|
2416
2400
|
};
|
|
2417
|
-
const
|
|
2401
|
+
const de_GetAccountBalanceResponse = (output, context) => {
|
|
2418
2402
|
return {
|
|
2419
2403
|
AvailableBalance: (0, smithy_client_1.expectString)(output.AvailableBalance),
|
|
2420
2404
|
OnHoldBalance: (0, smithy_client_1.expectString)(output.OnHoldBalance),
|
|
2421
2405
|
};
|
|
2422
2406
|
};
|
|
2423
|
-
const
|
|
2407
|
+
const de_GetAssignmentResponse = (output, context) => {
|
|
2424
2408
|
return {
|
|
2425
|
-
Assignment: output.Assignment != null ?
|
|
2426
|
-
HIT: output.HIT != null ?
|
|
2409
|
+
Assignment: output.Assignment != null ? de_Assignment(output.Assignment, context) : undefined,
|
|
2410
|
+
HIT: output.HIT != null ? de_HIT(output.HIT, context) : undefined,
|
|
2427
2411
|
};
|
|
2428
2412
|
};
|
|
2429
|
-
const
|
|
2413
|
+
const de_GetFileUploadURLResponse = (output, context) => {
|
|
2430
2414
|
return {
|
|
2431
2415
|
FileUploadURL: (0, smithy_client_1.expectString)(output.FileUploadURL),
|
|
2432
2416
|
};
|
|
2433
2417
|
};
|
|
2434
|
-
const
|
|
2418
|
+
const de_GetHITResponse = (output, context) => {
|
|
2435
2419
|
return {
|
|
2436
|
-
HIT: output.HIT != null ?
|
|
2420
|
+
HIT: output.HIT != null ? de_HIT(output.HIT, context) : undefined,
|
|
2437
2421
|
};
|
|
2438
2422
|
};
|
|
2439
|
-
const
|
|
2423
|
+
const de_GetQualificationScoreResponse = (output, context) => {
|
|
2440
2424
|
return {
|
|
2441
|
-
Qualification: output.Qualification != null ?
|
|
2425
|
+
Qualification: output.Qualification != null ? de_Qualification(output.Qualification, context) : undefined,
|
|
2442
2426
|
};
|
|
2443
2427
|
};
|
|
2444
|
-
const
|
|
2428
|
+
const de_GetQualificationTypeResponse = (output, context) => {
|
|
2445
2429
|
return {
|
|
2446
|
-
QualificationType: output.QualificationType != null
|
|
2447
|
-
? deserializeAws_json1_1QualificationType(output.QualificationType, context)
|
|
2448
|
-
: undefined,
|
|
2430
|
+
QualificationType: output.QualificationType != null ? de_QualificationType(output.QualificationType, context) : undefined,
|
|
2449
2431
|
};
|
|
2450
2432
|
};
|
|
2451
|
-
const
|
|
2433
|
+
const de_HIT = (output, context) => {
|
|
2452
2434
|
return {
|
|
2453
2435
|
AssignmentDurationInSeconds: (0, smithy_client_1.expectLong)(output.AssignmentDurationInSeconds),
|
|
2454
2436
|
AutoApprovalDelayInSeconds: (0, smithy_client_1.expectLong)(output.AutoApprovalDelayInSeconds),
|
|
@@ -2469,7 +2451,7 @@ const deserializeAws_json1_1HIT = (output, context) => {
|
|
|
2469
2451
|
NumberOfAssignmentsCompleted: (0, smithy_client_1.expectInt32)(output.NumberOfAssignmentsCompleted),
|
|
2470
2452
|
NumberOfAssignmentsPending: (0, smithy_client_1.expectInt32)(output.NumberOfAssignmentsPending),
|
|
2471
2453
|
QualificationRequirements: output.QualificationRequirements != null
|
|
2472
|
-
?
|
|
2454
|
+
? de_QualificationRequirementList(output.QualificationRequirements, context)
|
|
2473
2455
|
: undefined,
|
|
2474
2456
|
Question: (0, smithy_client_1.expectString)(output.Question),
|
|
2475
2457
|
RequesterAnnotation: (0, smithy_client_1.expectString)(output.RequesterAnnotation),
|
|
@@ -2477,18 +2459,18 @@ const deserializeAws_json1_1HIT = (output, context) => {
|
|
|
2477
2459
|
Title: (0, smithy_client_1.expectString)(output.Title),
|
|
2478
2460
|
};
|
|
2479
2461
|
};
|
|
2480
|
-
const
|
|
2462
|
+
const de_HITList = (output, context) => {
|
|
2481
2463
|
const retVal = (output || [])
|
|
2482
2464
|
.filter((e) => e != null)
|
|
2483
2465
|
.map((entry) => {
|
|
2484
2466
|
if (entry === null) {
|
|
2485
2467
|
return null;
|
|
2486
2468
|
}
|
|
2487
|
-
return
|
|
2469
|
+
return de_HIT(entry, context);
|
|
2488
2470
|
});
|
|
2489
2471
|
return retVal;
|
|
2490
2472
|
};
|
|
2491
|
-
const
|
|
2473
|
+
const de_IntegerList = (output, context) => {
|
|
2492
2474
|
const retVal = (output || [])
|
|
2493
2475
|
.filter((e) => e != null)
|
|
2494
2476
|
.map((entry) => {
|
|
@@ -2499,188 +2481,180 @@ const deserializeAws_json1_1IntegerList = (output, context) => {
|
|
|
2499
2481
|
});
|
|
2500
2482
|
return retVal;
|
|
2501
2483
|
};
|
|
2502
|
-
const
|
|
2484
|
+
const de_ListAssignmentsForHITResponse = (output, context) => {
|
|
2503
2485
|
return {
|
|
2504
|
-
Assignments: output.Assignments != null ?
|
|
2486
|
+
Assignments: output.Assignments != null ? de_AssignmentList(output.Assignments, context) : undefined,
|
|
2505
2487
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2506
2488
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2507
2489
|
};
|
|
2508
2490
|
};
|
|
2509
|
-
const
|
|
2491
|
+
const de_ListBonusPaymentsResponse = (output, context) => {
|
|
2510
2492
|
return {
|
|
2511
|
-
BonusPayments: output.BonusPayments != null ?
|
|
2493
|
+
BonusPayments: output.BonusPayments != null ? de_BonusPaymentList(output.BonusPayments, context) : undefined,
|
|
2512
2494
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2513
2495
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2514
2496
|
};
|
|
2515
2497
|
};
|
|
2516
|
-
const
|
|
2498
|
+
const de_ListHITsForQualificationTypeResponse = (output, context) => {
|
|
2517
2499
|
return {
|
|
2518
|
-
HITs: output.HITs != null ?
|
|
2500
|
+
HITs: output.HITs != null ? de_HITList(output.HITs, context) : undefined,
|
|
2519
2501
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2520
2502
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2521
2503
|
};
|
|
2522
2504
|
};
|
|
2523
|
-
const
|
|
2505
|
+
const de_ListHITsResponse = (output, context) => {
|
|
2524
2506
|
return {
|
|
2525
|
-
HITs: output.HITs != null ?
|
|
2507
|
+
HITs: output.HITs != null ? de_HITList(output.HITs, context) : undefined,
|
|
2526
2508
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2527
2509
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2528
2510
|
};
|
|
2529
2511
|
};
|
|
2530
|
-
const
|
|
2512
|
+
const de_ListQualificationRequestsResponse = (output, context) => {
|
|
2531
2513
|
return {
|
|
2532
2514
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2533
2515
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2534
2516
|
QualificationRequests: output.QualificationRequests != null
|
|
2535
|
-
?
|
|
2517
|
+
? de_QualificationRequestList(output.QualificationRequests, context)
|
|
2536
2518
|
: undefined,
|
|
2537
2519
|
};
|
|
2538
2520
|
};
|
|
2539
|
-
const
|
|
2521
|
+
const de_ListQualificationTypesResponse = (output, context) => {
|
|
2540
2522
|
return {
|
|
2541
2523
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2542
2524
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2543
|
-
QualificationTypes: output.QualificationTypes != null
|
|
2544
|
-
? deserializeAws_json1_1QualificationTypeList(output.QualificationTypes, context)
|
|
2545
|
-
: undefined,
|
|
2525
|
+
QualificationTypes: output.QualificationTypes != null ? de_QualificationTypeList(output.QualificationTypes, context) : undefined,
|
|
2546
2526
|
};
|
|
2547
2527
|
};
|
|
2548
|
-
const
|
|
2528
|
+
const de_ListReviewableHITsResponse = (output, context) => {
|
|
2549
2529
|
return {
|
|
2550
|
-
HITs: output.HITs != null ?
|
|
2530
|
+
HITs: output.HITs != null ? de_HITList(output.HITs, context) : undefined,
|
|
2551
2531
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2552
2532
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2553
2533
|
};
|
|
2554
2534
|
};
|
|
2555
|
-
const
|
|
2535
|
+
const de_ListReviewPolicyResultsForHITResponse = (output, context) => {
|
|
2556
2536
|
return {
|
|
2557
|
-
AssignmentReviewPolicy: output.AssignmentReviewPolicy != null
|
|
2558
|
-
|
|
2559
|
-
: undefined,
|
|
2560
|
-
AssignmentReviewReport: output.AssignmentReviewReport != null
|
|
2561
|
-
? deserializeAws_json1_1ReviewReport(output.AssignmentReviewReport, context)
|
|
2562
|
-
: undefined,
|
|
2537
|
+
AssignmentReviewPolicy: output.AssignmentReviewPolicy != null ? de_ReviewPolicy(output.AssignmentReviewPolicy, context) : undefined,
|
|
2538
|
+
AssignmentReviewReport: output.AssignmentReviewReport != null ? de_ReviewReport(output.AssignmentReviewReport, context) : undefined,
|
|
2563
2539
|
HITId: (0, smithy_client_1.expectString)(output.HITId),
|
|
2564
|
-
HITReviewPolicy: output.HITReviewPolicy != null ?
|
|
2565
|
-
HITReviewReport: output.HITReviewReport != null ?
|
|
2540
|
+
HITReviewPolicy: output.HITReviewPolicy != null ? de_ReviewPolicy(output.HITReviewPolicy, context) : undefined,
|
|
2541
|
+
HITReviewReport: output.HITReviewReport != null ? de_ReviewReport(output.HITReviewReport, context) : undefined,
|
|
2566
2542
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2567
2543
|
};
|
|
2568
2544
|
};
|
|
2569
|
-
const
|
|
2545
|
+
const de_ListWorkerBlocksResponse = (output, context) => {
|
|
2570
2546
|
return {
|
|
2571
2547
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2572
2548
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2573
|
-
WorkerBlocks: output.WorkerBlocks != null ?
|
|
2549
|
+
WorkerBlocks: output.WorkerBlocks != null ? de_WorkerBlockList(output.WorkerBlocks, context) : undefined,
|
|
2574
2550
|
};
|
|
2575
2551
|
};
|
|
2576
|
-
const
|
|
2552
|
+
const de_ListWorkersWithQualificationTypeResponse = (output, context) => {
|
|
2577
2553
|
return {
|
|
2578
2554
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2579
2555
|
NumResults: (0, smithy_client_1.expectInt32)(output.NumResults),
|
|
2580
|
-
Qualifications: output.Qualifications != null
|
|
2581
|
-
? deserializeAws_json1_1QualificationList(output.Qualifications, context)
|
|
2582
|
-
: undefined,
|
|
2556
|
+
Qualifications: output.Qualifications != null ? de_QualificationList(output.Qualifications, context) : undefined,
|
|
2583
2557
|
};
|
|
2584
2558
|
};
|
|
2585
|
-
const
|
|
2559
|
+
const de_Locale = (output, context) => {
|
|
2586
2560
|
return {
|
|
2587
2561
|
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
2588
2562
|
Subdivision: (0, smithy_client_1.expectString)(output.Subdivision),
|
|
2589
2563
|
};
|
|
2590
2564
|
};
|
|
2591
|
-
const
|
|
2565
|
+
const de_LocaleList = (output, context) => {
|
|
2592
2566
|
const retVal = (output || [])
|
|
2593
2567
|
.filter((e) => e != null)
|
|
2594
2568
|
.map((entry) => {
|
|
2595
2569
|
if (entry === null) {
|
|
2596
2570
|
return null;
|
|
2597
2571
|
}
|
|
2598
|
-
return
|
|
2572
|
+
return de_Locale(entry, context);
|
|
2599
2573
|
});
|
|
2600
2574
|
return retVal;
|
|
2601
2575
|
};
|
|
2602
|
-
const
|
|
2576
|
+
const de_NotifyWorkersFailureStatus = (output, context) => {
|
|
2603
2577
|
return {
|
|
2604
2578
|
NotifyWorkersFailureCode: (0, smithy_client_1.expectString)(output.NotifyWorkersFailureCode),
|
|
2605
2579
|
NotifyWorkersFailureMessage: (0, smithy_client_1.expectString)(output.NotifyWorkersFailureMessage),
|
|
2606
2580
|
WorkerId: (0, smithy_client_1.expectString)(output.WorkerId),
|
|
2607
2581
|
};
|
|
2608
2582
|
};
|
|
2609
|
-
const
|
|
2583
|
+
const de_NotifyWorkersFailureStatusList = (output, context) => {
|
|
2610
2584
|
const retVal = (output || [])
|
|
2611
2585
|
.filter((e) => e != null)
|
|
2612
2586
|
.map((entry) => {
|
|
2613
2587
|
if (entry === null) {
|
|
2614
2588
|
return null;
|
|
2615
2589
|
}
|
|
2616
|
-
return
|
|
2590
|
+
return de_NotifyWorkersFailureStatus(entry, context);
|
|
2617
2591
|
});
|
|
2618
2592
|
return retVal;
|
|
2619
2593
|
};
|
|
2620
|
-
const
|
|
2594
|
+
const de_NotifyWorkersResponse = (output, context) => {
|
|
2621
2595
|
return {
|
|
2622
2596
|
NotifyWorkersFailureStatuses: output.NotifyWorkersFailureStatuses != null
|
|
2623
|
-
?
|
|
2597
|
+
? de_NotifyWorkersFailureStatusList(output.NotifyWorkersFailureStatuses, context)
|
|
2624
2598
|
: undefined,
|
|
2625
2599
|
};
|
|
2626
2600
|
};
|
|
2627
|
-
const
|
|
2601
|
+
const de_ParameterMapEntry = (output, context) => {
|
|
2628
2602
|
return {
|
|
2629
2603
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2630
|
-
Values: output.Values != null ?
|
|
2604
|
+
Values: output.Values != null ? de_StringList(output.Values, context) : undefined,
|
|
2631
2605
|
};
|
|
2632
2606
|
};
|
|
2633
|
-
const
|
|
2607
|
+
const de_ParameterMapEntryList = (output, context) => {
|
|
2634
2608
|
const retVal = (output || [])
|
|
2635
2609
|
.filter((e) => e != null)
|
|
2636
2610
|
.map((entry) => {
|
|
2637
2611
|
if (entry === null) {
|
|
2638
2612
|
return null;
|
|
2639
2613
|
}
|
|
2640
|
-
return
|
|
2614
|
+
return de_ParameterMapEntry(entry, context);
|
|
2641
2615
|
});
|
|
2642
2616
|
return retVal;
|
|
2643
2617
|
};
|
|
2644
|
-
const
|
|
2618
|
+
const de_PolicyParameter = (output, context) => {
|
|
2645
2619
|
return {
|
|
2646
2620
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2647
|
-
MapEntries: output.MapEntries != null ?
|
|
2648
|
-
Values: output.Values != null ?
|
|
2621
|
+
MapEntries: output.MapEntries != null ? de_ParameterMapEntryList(output.MapEntries, context) : undefined,
|
|
2622
|
+
Values: output.Values != null ? de_StringList(output.Values, context) : undefined,
|
|
2649
2623
|
};
|
|
2650
2624
|
};
|
|
2651
|
-
const
|
|
2625
|
+
const de_PolicyParameterList = (output, context) => {
|
|
2652
2626
|
const retVal = (output || [])
|
|
2653
2627
|
.filter((e) => e != null)
|
|
2654
2628
|
.map((entry) => {
|
|
2655
2629
|
if (entry === null) {
|
|
2656
2630
|
return null;
|
|
2657
2631
|
}
|
|
2658
|
-
return
|
|
2632
|
+
return de_PolicyParameter(entry, context);
|
|
2659
2633
|
});
|
|
2660
2634
|
return retVal;
|
|
2661
2635
|
};
|
|
2662
|
-
const
|
|
2636
|
+
const de_Qualification = (output, context) => {
|
|
2663
2637
|
return {
|
|
2664
2638
|
GrantTime: output.GrantTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.GrantTime))) : undefined,
|
|
2665
2639
|
IntegerValue: (0, smithy_client_1.expectInt32)(output.IntegerValue),
|
|
2666
|
-
LocaleValue: output.LocaleValue != null ?
|
|
2640
|
+
LocaleValue: output.LocaleValue != null ? de_Locale(output.LocaleValue, context) : undefined,
|
|
2667
2641
|
QualificationTypeId: (0, smithy_client_1.expectString)(output.QualificationTypeId),
|
|
2668
2642
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2669
2643
|
WorkerId: (0, smithy_client_1.expectString)(output.WorkerId),
|
|
2670
2644
|
};
|
|
2671
2645
|
};
|
|
2672
|
-
const
|
|
2646
|
+
const de_QualificationList = (output, context) => {
|
|
2673
2647
|
const retVal = (output || [])
|
|
2674
2648
|
.filter((e) => e != null)
|
|
2675
2649
|
.map((entry) => {
|
|
2676
2650
|
if (entry === null) {
|
|
2677
2651
|
return null;
|
|
2678
2652
|
}
|
|
2679
|
-
return
|
|
2653
|
+
return de_Qualification(entry, context);
|
|
2680
2654
|
});
|
|
2681
2655
|
return retVal;
|
|
2682
2656
|
};
|
|
2683
|
-
const
|
|
2657
|
+
const de_QualificationRequest = (output, context) => {
|
|
2684
2658
|
return {
|
|
2685
2659
|
Answer: (0, smithy_client_1.expectString)(output.Answer),
|
|
2686
2660
|
QualificationRequestId: (0, smithy_client_1.expectString)(output.QualificationRequestId),
|
|
@@ -2690,39 +2664,39 @@ const deserializeAws_json1_1QualificationRequest = (output, context) => {
|
|
|
2690
2664
|
WorkerId: (0, smithy_client_1.expectString)(output.WorkerId),
|
|
2691
2665
|
};
|
|
2692
2666
|
};
|
|
2693
|
-
const
|
|
2667
|
+
const de_QualificationRequestList = (output, context) => {
|
|
2694
2668
|
const retVal = (output || [])
|
|
2695
2669
|
.filter((e) => e != null)
|
|
2696
2670
|
.map((entry) => {
|
|
2697
2671
|
if (entry === null) {
|
|
2698
2672
|
return null;
|
|
2699
2673
|
}
|
|
2700
|
-
return
|
|
2674
|
+
return de_QualificationRequest(entry, context);
|
|
2701
2675
|
});
|
|
2702
2676
|
return retVal;
|
|
2703
2677
|
};
|
|
2704
|
-
const
|
|
2678
|
+
const de_QualificationRequirement = (output, context) => {
|
|
2705
2679
|
return {
|
|
2706
2680
|
ActionsGuarded: (0, smithy_client_1.expectString)(output.ActionsGuarded),
|
|
2707
2681
|
Comparator: (0, smithy_client_1.expectString)(output.Comparator),
|
|
2708
|
-
IntegerValues: output.IntegerValues != null ?
|
|
2709
|
-
LocaleValues: output.LocaleValues != null ?
|
|
2682
|
+
IntegerValues: output.IntegerValues != null ? de_IntegerList(output.IntegerValues, context) : undefined,
|
|
2683
|
+
LocaleValues: output.LocaleValues != null ? de_LocaleList(output.LocaleValues, context) : undefined,
|
|
2710
2684
|
QualificationTypeId: (0, smithy_client_1.expectString)(output.QualificationTypeId),
|
|
2711
2685
|
RequiredToPreview: (0, smithy_client_1.expectBoolean)(output.RequiredToPreview),
|
|
2712
2686
|
};
|
|
2713
2687
|
};
|
|
2714
|
-
const
|
|
2688
|
+
const de_QualificationRequirementList = (output, context) => {
|
|
2715
2689
|
const retVal = (output || [])
|
|
2716
2690
|
.filter((e) => e != null)
|
|
2717
2691
|
.map((entry) => {
|
|
2718
2692
|
if (entry === null) {
|
|
2719
2693
|
return null;
|
|
2720
2694
|
}
|
|
2721
|
-
return
|
|
2695
|
+
return de_QualificationRequirement(entry, context);
|
|
2722
2696
|
});
|
|
2723
2697
|
return retVal;
|
|
2724
2698
|
};
|
|
2725
|
-
const
|
|
2699
|
+
const de_QualificationType = (output, context) => {
|
|
2726
2700
|
return {
|
|
2727
2701
|
AnswerKey: (0, smithy_client_1.expectString)(output.AnswerKey),
|
|
2728
2702
|
AutoGranted: (0, smithy_client_1.expectBoolean)(output.AutoGranted),
|
|
@@ -2741,30 +2715,30 @@ const deserializeAws_json1_1QualificationType = (output, context) => {
|
|
|
2741
2715
|
TestDurationInSeconds: (0, smithy_client_1.expectLong)(output.TestDurationInSeconds),
|
|
2742
2716
|
};
|
|
2743
2717
|
};
|
|
2744
|
-
const
|
|
2718
|
+
const de_QualificationTypeList = (output, context) => {
|
|
2745
2719
|
const retVal = (output || [])
|
|
2746
2720
|
.filter((e) => e != null)
|
|
2747
2721
|
.map((entry) => {
|
|
2748
2722
|
if (entry === null) {
|
|
2749
2723
|
return null;
|
|
2750
2724
|
}
|
|
2751
|
-
return
|
|
2725
|
+
return de_QualificationType(entry, context);
|
|
2752
2726
|
});
|
|
2753
2727
|
return retVal;
|
|
2754
2728
|
};
|
|
2755
|
-
const
|
|
2729
|
+
const de_RejectAssignmentResponse = (output, context) => {
|
|
2756
2730
|
return {};
|
|
2757
2731
|
};
|
|
2758
|
-
const
|
|
2732
|
+
const de_RejectQualificationRequestResponse = (output, context) => {
|
|
2759
2733
|
return {};
|
|
2760
2734
|
};
|
|
2761
|
-
const
|
|
2735
|
+
const de_RequestError = (output, context) => {
|
|
2762
2736
|
return {
|
|
2763
2737
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2764
2738
|
TurkErrorCode: (0, smithy_client_1.expectString)(output.TurkErrorCode),
|
|
2765
2739
|
};
|
|
2766
2740
|
};
|
|
2767
|
-
const
|
|
2741
|
+
const de_ReviewActionDetail = (output, context) => {
|
|
2768
2742
|
return {
|
|
2769
2743
|
ActionId: (0, smithy_client_1.expectString)(output.ActionId),
|
|
2770
2744
|
ActionName: (0, smithy_client_1.expectString)(output.ActionName),
|
|
@@ -2778,34 +2752,30 @@ const deserializeAws_json1_1ReviewActionDetail = (output, context) => {
|
|
|
2778
2752
|
TargetType: (0, smithy_client_1.expectString)(output.TargetType),
|
|
2779
2753
|
};
|
|
2780
2754
|
};
|
|
2781
|
-
const
|
|
2755
|
+
const de_ReviewActionDetailList = (output, context) => {
|
|
2782
2756
|
const retVal = (output || [])
|
|
2783
2757
|
.filter((e) => e != null)
|
|
2784
2758
|
.map((entry) => {
|
|
2785
2759
|
if (entry === null) {
|
|
2786
2760
|
return null;
|
|
2787
2761
|
}
|
|
2788
|
-
return
|
|
2762
|
+
return de_ReviewActionDetail(entry, context);
|
|
2789
2763
|
});
|
|
2790
2764
|
return retVal;
|
|
2791
2765
|
};
|
|
2792
|
-
const
|
|
2766
|
+
const de_ReviewPolicy = (output, context) => {
|
|
2793
2767
|
return {
|
|
2794
|
-
Parameters: output.Parameters != null ?
|
|
2768
|
+
Parameters: output.Parameters != null ? de_PolicyParameterList(output.Parameters, context) : undefined,
|
|
2795
2769
|
PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
|
|
2796
2770
|
};
|
|
2797
2771
|
};
|
|
2798
|
-
const
|
|
2772
|
+
const de_ReviewReport = (output, context) => {
|
|
2799
2773
|
return {
|
|
2800
|
-
ReviewActions: output.ReviewActions != null
|
|
2801
|
-
|
|
2802
|
-
: undefined,
|
|
2803
|
-
ReviewResults: output.ReviewResults != null
|
|
2804
|
-
? deserializeAws_json1_1ReviewResultDetailList(output.ReviewResults, context)
|
|
2805
|
-
: undefined,
|
|
2774
|
+
ReviewActions: output.ReviewActions != null ? de_ReviewActionDetailList(output.ReviewActions, context) : undefined,
|
|
2775
|
+
ReviewResults: output.ReviewResults != null ? de_ReviewResultDetailList(output.ReviewResults, context) : undefined,
|
|
2806
2776
|
};
|
|
2807
2777
|
};
|
|
2808
|
-
const
|
|
2778
|
+
const de_ReviewResultDetail = (output, context) => {
|
|
2809
2779
|
return {
|
|
2810
2780
|
ActionId: (0, smithy_client_1.expectString)(output.ActionId),
|
|
2811
2781
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
@@ -2815,30 +2785,30 @@ const deserializeAws_json1_1ReviewResultDetail = (output, context) => {
|
|
|
2815
2785
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2816
2786
|
};
|
|
2817
2787
|
};
|
|
2818
|
-
const
|
|
2788
|
+
const de_ReviewResultDetailList = (output, context) => {
|
|
2819
2789
|
const retVal = (output || [])
|
|
2820
2790
|
.filter((e) => e != null)
|
|
2821
2791
|
.map((entry) => {
|
|
2822
2792
|
if (entry === null) {
|
|
2823
2793
|
return null;
|
|
2824
2794
|
}
|
|
2825
|
-
return
|
|
2795
|
+
return de_ReviewResultDetail(entry, context);
|
|
2826
2796
|
});
|
|
2827
2797
|
return retVal;
|
|
2828
2798
|
};
|
|
2829
|
-
const
|
|
2799
|
+
const de_SendBonusResponse = (output, context) => {
|
|
2830
2800
|
return {};
|
|
2831
2801
|
};
|
|
2832
|
-
const
|
|
2802
|
+
const de_SendTestEventNotificationResponse = (output, context) => {
|
|
2833
2803
|
return {};
|
|
2834
2804
|
};
|
|
2835
|
-
const
|
|
2805
|
+
const de_ServiceFault = (output, context) => {
|
|
2836
2806
|
return {
|
|
2837
2807
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2838
2808
|
TurkErrorCode: (0, smithy_client_1.expectString)(output.TurkErrorCode),
|
|
2839
2809
|
};
|
|
2840
2810
|
};
|
|
2841
|
-
const
|
|
2811
|
+
const de_StringList = (output, context) => {
|
|
2842
2812
|
const retVal = (output || [])
|
|
2843
2813
|
.filter((e) => e != null)
|
|
2844
2814
|
.map((entry) => {
|
|
@@ -2849,39 +2819,37 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
2849
2819
|
});
|
|
2850
2820
|
return retVal;
|
|
2851
2821
|
};
|
|
2852
|
-
const
|
|
2822
|
+
const de_UpdateExpirationForHITResponse = (output, context) => {
|
|
2853
2823
|
return {};
|
|
2854
2824
|
};
|
|
2855
|
-
const
|
|
2825
|
+
const de_UpdateHITReviewStatusResponse = (output, context) => {
|
|
2856
2826
|
return {};
|
|
2857
2827
|
};
|
|
2858
|
-
const
|
|
2828
|
+
const de_UpdateHITTypeOfHITResponse = (output, context) => {
|
|
2859
2829
|
return {};
|
|
2860
2830
|
};
|
|
2861
|
-
const
|
|
2831
|
+
const de_UpdateNotificationSettingsResponse = (output, context) => {
|
|
2862
2832
|
return {};
|
|
2863
2833
|
};
|
|
2864
|
-
const
|
|
2834
|
+
const de_UpdateQualificationTypeResponse = (output, context) => {
|
|
2865
2835
|
return {
|
|
2866
|
-
QualificationType: output.QualificationType != null
|
|
2867
|
-
? deserializeAws_json1_1QualificationType(output.QualificationType, context)
|
|
2868
|
-
: undefined,
|
|
2836
|
+
QualificationType: output.QualificationType != null ? de_QualificationType(output.QualificationType, context) : undefined,
|
|
2869
2837
|
};
|
|
2870
2838
|
};
|
|
2871
|
-
const
|
|
2839
|
+
const de_WorkerBlock = (output, context) => {
|
|
2872
2840
|
return {
|
|
2873
2841
|
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
2874
2842
|
WorkerId: (0, smithy_client_1.expectString)(output.WorkerId),
|
|
2875
2843
|
};
|
|
2876
2844
|
};
|
|
2877
|
-
const
|
|
2845
|
+
const de_WorkerBlockList = (output, context) => {
|
|
2878
2846
|
const retVal = (output || [])
|
|
2879
2847
|
.filter((e) => e != null)
|
|
2880
2848
|
.map((entry) => {
|
|
2881
2849
|
if (entry === null) {
|
|
2882
2850
|
return null;
|
|
2883
2851
|
}
|
|
2884
|
-
return
|
|
2852
|
+
return de_WorkerBlock(entry, context);
|
|
2885
2853
|
});
|
|
2886
2854
|
return retVal;
|
|
2887
2855
|
};
|