@aws-sdk/client-mturk 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +349 -1220
- package/dist-es/protocols/Aws_json1_1.js +350 -1221
- package/package.json +6 -6
|
@@ -1,356 +1,239 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { RequestError, ServiceFault, } from "../models/models_0";
|
|
4
4
|
import { MTurkServiceException as __BaseException } from "../models/MTurkServiceException";
|
|
5
5
|
export const se_AcceptQualificationRequestCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.AcceptQualificationRequest",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("AcceptQualificationRequest");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_ApproveAssignmentCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ApproveAssignment",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("ApproveAssignment");
|
|
19
13
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_AssociateQualificationWithWorkerCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.AssociateQualificationWithWorker",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("AssociateQualificationWithWorker");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateAdditionalAssignmentsForHITCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.CreateAdditionalAssignmentsForHIT",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateAdditionalAssignmentsForHIT");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_CreateHITCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.CreateHIT",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateHIT");
|
|
46
31
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_CreateHITTypeCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.CreateHITType",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("CreateHITType");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_CreateHITWithHITTypeCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.CreateHITWithHITType",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("CreateHITWithHITType");
|
|
64
43
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_CreateQualificationTypeCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.CreateQualificationType",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("CreateQualificationType");
|
|
73
49
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_CreateWorkerBlockCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.CreateWorkerBlock",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("CreateWorkerBlock");
|
|
82
55
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DeleteHITCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.DeleteHIT",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteHIT");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DeleteQualificationTypeCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.DeleteQualificationType",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteQualificationType");
|
|
100
67
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DeleteWorkerBlockCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.DeleteWorkerBlock",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DeleteWorkerBlock");
|
|
109
73
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DisassociateQualificationFromWorkerCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.DisassociateQualificationFromWorker",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DisassociateQualificationFromWorker");
|
|
118
79
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_GetAccountBalanceCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.GetAccountBalance",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("GetAccountBalance");
|
|
127
85
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_GetAssignmentCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.GetAssignment",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("GetAssignment");
|
|
136
91
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_GetFileUploadURLCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.GetFileUploadURL",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("GetFileUploadURL");
|
|
145
97
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_GetHITCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.GetHIT",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("GetHIT");
|
|
154
103
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_GetQualificationScoreCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.GetQualificationScore",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("GetQualificationScore");
|
|
163
109
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_GetQualificationTypeCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.GetQualificationType",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("GetQualificationType");
|
|
172
115
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_ListAssignmentsForHITCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListAssignmentsForHIT",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("ListAssignmentsForHIT");
|
|
181
121
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_ListBonusPaymentsCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListBonusPayments",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("ListBonusPayments");
|
|
190
127
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_ListHITsCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListHITs",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("ListHITs");
|
|
199
133
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_ListHITsForQualificationTypeCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListHITsForQualificationType",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("ListHITsForQualificationType");
|
|
208
139
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_ListQualificationRequestsCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListQualificationRequests",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("ListQualificationRequests");
|
|
217
145
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_ListQualificationTypesCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListQualificationTypes",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("ListQualificationTypes");
|
|
226
151
|
let body;
|
|
227
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_ListReviewableHITsCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListReviewableHITs",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("ListReviewableHITs");
|
|
235
157
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_ListReviewPolicyResultsForHITCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListReviewPolicyResultsForHIT",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("ListReviewPolicyResultsForHIT");
|
|
244
163
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
166
|
};
|
|
248
167
|
export const se_ListWorkerBlocksCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListWorkerBlocks",
|
|
252
|
-
};
|
|
168
|
+
const headers = sharedHeaders("ListWorkerBlocks");
|
|
253
169
|
let body;
|
|
254
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
255
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
172
|
};
|
|
257
173
|
export const se_ListWorkersWithQualificationTypeCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-amz-json-1.1",
|
|
260
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.ListWorkersWithQualificationType",
|
|
261
|
-
};
|
|
174
|
+
const headers = sharedHeaders("ListWorkersWithQualificationType");
|
|
262
175
|
let body;
|
|
263
|
-
body = JSON.stringify(
|
|
176
|
+
body = JSON.stringify(_json(input));
|
|
264
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
178
|
};
|
|
266
179
|
export const se_NotifyWorkersCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.1",
|
|
269
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.NotifyWorkers",
|
|
270
|
-
};
|
|
180
|
+
const headers = sharedHeaders("NotifyWorkers");
|
|
271
181
|
let body;
|
|
272
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
273
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
184
|
};
|
|
275
185
|
export const se_RejectAssignmentCommand = async (input, context) => {
|
|
276
|
-
const headers =
|
|
277
|
-
"content-type": "application/x-amz-json-1.1",
|
|
278
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.RejectAssignment",
|
|
279
|
-
};
|
|
186
|
+
const headers = sharedHeaders("RejectAssignment");
|
|
280
187
|
let body;
|
|
281
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
282
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
190
|
};
|
|
284
191
|
export const se_RejectQualificationRequestCommand = async (input, context) => {
|
|
285
|
-
const headers =
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.RejectQualificationRequest",
|
|
288
|
-
};
|
|
192
|
+
const headers = sharedHeaders("RejectQualificationRequest");
|
|
289
193
|
let body;
|
|
290
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
291
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
196
|
};
|
|
293
197
|
export const se_SendBonusCommand = async (input, context) => {
|
|
294
|
-
const headers =
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.SendBonus",
|
|
297
|
-
};
|
|
198
|
+
const headers = sharedHeaders("SendBonus");
|
|
298
199
|
let body;
|
|
299
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
300
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
202
|
};
|
|
302
203
|
export const se_SendTestEventNotificationCommand = async (input, context) => {
|
|
303
|
-
const headers =
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.SendTestEventNotification",
|
|
306
|
-
};
|
|
204
|
+
const headers = sharedHeaders("SendTestEventNotification");
|
|
307
205
|
let body;
|
|
308
|
-
body = JSON.stringify(
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
309
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
208
|
};
|
|
311
209
|
export const se_UpdateExpirationForHITCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateExpirationForHIT",
|
|
315
|
-
};
|
|
210
|
+
const headers = sharedHeaders("UpdateExpirationForHIT");
|
|
316
211
|
let body;
|
|
317
212
|
body = JSON.stringify(se_UpdateExpirationForHITRequest(input, context));
|
|
318
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
214
|
};
|
|
320
215
|
export const se_UpdateHITReviewStatusCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateHITReviewStatus",
|
|
324
|
-
};
|
|
216
|
+
const headers = sharedHeaders("UpdateHITReviewStatus");
|
|
325
217
|
let body;
|
|
326
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(_json(input));
|
|
327
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
220
|
};
|
|
329
221
|
export const se_UpdateHITTypeOfHITCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateHITTypeOfHIT",
|
|
333
|
-
};
|
|
222
|
+
const headers = sharedHeaders("UpdateHITTypeOfHIT");
|
|
334
223
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
224
|
+
body = JSON.stringify(_json(input));
|
|
336
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
226
|
};
|
|
338
227
|
export const se_UpdateNotificationSettingsCommand = async (input, context) => {
|
|
339
|
-
const headers =
|
|
340
|
-
"content-type": "application/x-amz-json-1.1",
|
|
341
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateNotificationSettings",
|
|
342
|
-
};
|
|
228
|
+
const headers = sharedHeaders("UpdateNotificationSettings");
|
|
343
229
|
let body;
|
|
344
|
-
body = JSON.stringify(
|
|
230
|
+
body = JSON.stringify(_json(input));
|
|
345
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
232
|
};
|
|
347
233
|
export const se_UpdateQualificationTypeCommand = async (input, context) => {
|
|
348
|
-
const headers =
|
|
349
|
-
"content-type": "application/x-amz-json-1.1",
|
|
350
|
-
"x-amz-target": "MTurkRequesterServiceV20170117.UpdateQualificationType",
|
|
351
|
-
};
|
|
234
|
+
const headers = sharedHeaders("UpdateQualificationType");
|
|
352
235
|
let body;
|
|
353
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify(_json(input));
|
|
354
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
238
|
};
|
|
356
239
|
export const de_AcceptQualificationRequestCommand = async (output, context) => {
|
|
@@ -359,12 +242,12 @@ export const de_AcceptQualificationRequestCommand = async (output, context) => {
|
|
|
359
242
|
}
|
|
360
243
|
const data = await parseBody(output.body, context);
|
|
361
244
|
let contents = {};
|
|
362
|
-
contents =
|
|
245
|
+
contents = _json(data);
|
|
363
246
|
const response = {
|
|
364
247
|
$metadata: deserializeMetadata(output),
|
|
365
248
|
...contents,
|
|
366
249
|
};
|
|
367
|
-
return
|
|
250
|
+
return response;
|
|
368
251
|
};
|
|
369
252
|
const de_AcceptQualificationRequestCommandError = async (output, context) => {
|
|
370
253
|
const parsedOutput = {
|
|
@@ -381,10 +264,9 @@ const de_AcceptQualificationRequestCommandError = async (output, context) => {
|
|
|
381
264
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
382
265
|
default:
|
|
383
266
|
const parsedBody = parsedOutput.body;
|
|
384
|
-
throwDefaultError({
|
|
267
|
+
return throwDefaultError({
|
|
385
268
|
output,
|
|
386
269
|
parsedBody,
|
|
387
|
-
exceptionCtor: __BaseException,
|
|
388
270
|
errorCode,
|
|
389
271
|
});
|
|
390
272
|
}
|
|
@@ -395,12 +277,12 @@ export const de_ApproveAssignmentCommand = async (output, context) => {
|
|
|
395
277
|
}
|
|
396
278
|
const data = await parseBody(output.body, context);
|
|
397
279
|
let contents = {};
|
|
398
|
-
contents =
|
|
280
|
+
contents = _json(data);
|
|
399
281
|
const response = {
|
|
400
282
|
$metadata: deserializeMetadata(output),
|
|
401
283
|
...contents,
|
|
402
284
|
};
|
|
403
|
-
return
|
|
285
|
+
return response;
|
|
404
286
|
};
|
|
405
287
|
const de_ApproveAssignmentCommandError = async (output, context) => {
|
|
406
288
|
const parsedOutput = {
|
|
@@ -417,10 +299,9 @@ const de_ApproveAssignmentCommandError = async (output, context) => {
|
|
|
417
299
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
418
300
|
default:
|
|
419
301
|
const parsedBody = parsedOutput.body;
|
|
420
|
-
throwDefaultError({
|
|
302
|
+
return throwDefaultError({
|
|
421
303
|
output,
|
|
422
304
|
parsedBody,
|
|
423
|
-
exceptionCtor: __BaseException,
|
|
424
305
|
errorCode,
|
|
425
306
|
});
|
|
426
307
|
}
|
|
@@ -431,12 +312,12 @@ export const de_AssociateQualificationWithWorkerCommand = async (output, context
|
|
|
431
312
|
}
|
|
432
313
|
const data = await parseBody(output.body, context);
|
|
433
314
|
let contents = {};
|
|
434
|
-
contents =
|
|
315
|
+
contents = _json(data);
|
|
435
316
|
const response = {
|
|
436
317
|
$metadata: deserializeMetadata(output),
|
|
437
318
|
...contents,
|
|
438
319
|
};
|
|
439
|
-
return
|
|
320
|
+
return response;
|
|
440
321
|
};
|
|
441
322
|
const de_AssociateQualificationWithWorkerCommandError = async (output, context) => {
|
|
442
323
|
const parsedOutput = {
|
|
@@ -453,10 +334,9 @@ const de_AssociateQualificationWithWorkerCommandError = async (output, context)
|
|
|
453
334
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
454
335
|
default:
|
|
455
336
|
const parsedBody = parsedOutput.body;
|
|
456
|
-
throwDefaultError({
|
|
337
|
+
return throwDefaultError({
|
|
457
338
|
output,
|
|
458
339
|
parsedBody,
|
|
459
|
-
exceptionCtor: __BaseException,
|
|
460
340
|
errorCode,
|
|
461
341
|
});
|
|
462
342
|
}
|
|
@@ -467,12 +347,12 @@ export const de_CreateAdditionalAssignmentsForHITCommand = async (output, contex
|
|
|
467
347
|
}
|
|
468
348
|
const data = await parseBody(output.body, context);
|
|
469
349
|
let contents = {};
|
|
470
|
-
contents =
|
|
350
|
+
contents = _json(data);
|
|
471
351
|
const response = {
|
|
472
352
|
$metadata: deserializeMetadata(output),
|
|
473
353
|
...contents,
|
|
474
354
|
};
|
|
475
|
-
return
|
|
355
|
+
return response;
|
|
476
356
|
};
|
|
477
357
|
const de_CreateAdditionalAssignmentsForHITCommandError = async (output, context) => {
|
|
478
358
|
const parsedOutput = {
|
|
@@ -489,10 +369,9 @@ const de_CreateAdditionalAssignmentsForHITCommandError = async (output, context)
|
|
|
489
369
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
490
370
|
default:
|
|
491
371
|
const parsedBody = parsedOutput.body;
|
|
492
|
-
throwDefaultError({
|
|
372
|
+
return throwDefaultError({
|
|
493
373
|
output,
|
|
494
374
|
parsedBody,
|
|
495
|
-
exceptionCtor: __BaseException,
|
|
496
375
|
errorCode,
|
|
497
376
|
});
|
|
498
377
|
}
|
|
@@ -508,7 +387,7 @@ export const de_CreateHITCommand = async (output, context) => {
|
|
|
508
387
|
$metadata: deserializeMetadata(output),
|
|
509
388
|
...contents,
|
|
510
389
|
};
|
|
511
|
-
return
|
|
390
|
+
return response;
|
|
512
391
|
};
|
|
513
392
|
const de_CreateHITCommandError = async (output, context) => {
|
|
514
393
|
const parsedOutput = {
|
|
@@ -525,10 +404,9 @@ const de_CreateHITCommandError = async (output, context) => {
|
|
|
525
404
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
526
405
|
default:
|
|
527
406
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
throwDefaultError({
|
|
407
|
+
return throwDefaultError({
|
|
529
408
|
output,
|
|
530
409
|
parsedBody,
|
|
531
|
-
exceptionCtor: __BaseException,
|
|
532
410
|
errorCode,
|
|
533
411
|
});
|
|
534
412
|
}
|
|
@@ -539,12 +417,12 @@ export const de_CreateHITTypeCommand = async (output, context) => {
|
|
|
539
417
|
}
|
|
540
418
|
const data = await parseBody(output.body, context);
|
|
541
419
|
let contents = {};
|
|
542
|
-
contents =
|
|
420
|
+
contents = _json(data);
|
|
543
421
|
const response = {
|
|
544
422
|
$metadata: deserializeMetadata(output),
|
|
545
423
|
...contents,
|
|
546
424
|
};
|
|
547
|
-
return
|
|
425
|
+
return response;
|
|
548
426
|
};
|
|
549
427
|
const de_CreateHITTypeCommandError = async (output, context) => {
|
|
550
428
|
const parsedOutput = {
|
|
@@ -561,10 +439,9 @@ const de_CreateHITTypeCommandError = async (output, context) => {
|
|
|
561
439
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
562
440
|
default:
|
|
563
441
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
throwDefaultError({
|
|
442
|
+
return throwDefaultError({
|
|
565
443
|
output,
|
|
566
444
|
parsedBody,
|
|
567
|
-
exceptionCtor: __BaseException,
|
|
568
445
|
errorCode,
|
|
569
446
|
});
|
|
570
447
|
}
|
|
@@ -580,7 +457,7 @@ export const de_CreateHITWithHITTypeCommand = async (output, context) => {
|
|
|
580
457
|
$metadata: deserializeMetadata(output),
|
|
581
458
|
...contents,
|
|
582
459
|
};
|
|
583
|
-
return
|
|
460
|
+
return response;
|
|
584
461
|
};
|
|
585
462
|
const de_CreateHITWithHITTypeCommandError = async (output, context) => {
|
|
586
463
|
const parsedOutput = {
|
|
@@ -597,10 +474,9 @@ const de_CreateHITWithHITTypeCommandError = async (output, context) => {
|
|
|
597
474
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
598
475
|
default:
|
|
599
476
|
const parsedBody = parsedOutput.body;
|
|
600
|
-
throwDefaultError({
|
|
477
|
+
return throwDefaultError({
|
|
601
478
|
output,
|
|
602
479
|
parsedBody,
|
|
603
|
-
exceptionCtor: __BaseException,
|
|
604
480
|
errorCode,
|
|
605
481
|
});
|
|
606
482
|
}
|
|
@@ -616,7 +492,7 @@ export const de_CreateQualificationTypeCommand = async (output, context) => {
|
|
|
616
492
|
$metadata: deserializeMetadata(output),
|
|
617
493
|
...contents,
|
|
618
494
|
};
|
|
619
|
-
return
|
|
495
|
+
return response;
|
|
620
496
|
};
|
|
621
497
|
const de_CreateQualificationTypeCommandError = async (output, context) => {
|
|
622
498
|
const parsedOutput = {
|
|
@@ -633,10 +509,9 @@ const de_CreateQualificationTypeCommandError = async (output, context) => {
|
|
|
633
509
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
634
510
|
default:
|
|
635
511
|
const parsedBody = parsedOutput.body;
|
|
636
|
-
throwDefaultError({
|
|
512
|
+
return throwDefaultError({
|
|
637
513
|
output,
|
|
638
514
|
parsedBody,
|
|
639
|
-
exceptionCtor: __BaseException,
|
|
640
515
|
errorCode,
|
|
641
516
|
});
|
|
642
517
|
}
|
|
@@ -647,12 +522,12 @@ export const de_CreateWorkerBlockCommand = async (output, context) => {
|
|
|
647
522
|
}
|
|
648
523
|
const data = await parseBody(output.body, context);
|
|
649
524
|
let contents = {};
|
|
650
|
-
contents =
|
|
525
|
+
contents = _json(data);
|
|
651
526
|
const response = {
|
|
652
527
|
$metadata: deserializeMetadata(output),
|
|
653
528
|
...contents,
|
|
654
529
|
};
|
|
655
|
-
return
|
|
530
|
+
return response;
|
|
656
531
|
};
|
|
657
532
|
const de_CreateWorkerBlockCommandError = async (output, context) => {
|
|
658
533
|
const parsedOutput = {
|
|
@@ -669,10 +544,9 @@ const de_CreateWorkerBlockCommandError = async (output, context) => {
|
|
|
669
544
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
670
545
|
default:
|
|
671
546
|
const parsedBody = parsedOutput.body;
|
|
672
|
-
throwDefaultError({
|
|
547
|
+
return throwDefaultError({
|
|
673
548
|
output,
|
|
674
549
|
parsedBody,
|
|
675
|
-
exceptionCtor: __BaseException,
|
|
676
550
|
errorCode,
|
|
677
551
|
});
|
|
678
552
|
}
|
|
@@ -683,12 +557,12 @@ export const de_DeleteHITCommand = async (output, context) => {
|
|
|
683
557
|
}
|
|
684
558
|
const data = await parseBody(output.body, context);
|
|
685
559
|
let contents = {};
|
|
686
|
-
contents =
|
|
560
|
+
contents = _json(data);
|
|
687
561
|
const response = {
|
|
688
562
|
$metadata: deserializeMetadata(output),
|
|
689
563
|
...contents,
|
|
690
564
|
};
|
|
691
|
-
return
|
|
565
|
+
return response;
|
|
692
566
|
};
|
|
693
567
|
const de_DeleteHITCommandError = async (output, context) => {
|
|
694
568
|
const parsedOutput = {
|
|
@@ -705,10 +579,9 @@ const de_DeleteHITCommandError = async (output, context) => {
|
|
|
705
579
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
706
580
|
default:
|
|
707
581
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
throwDefaultError({
|
|
582
|
+
return throwDefaultError({
|
|
709
583
|
output,
|
|
710
584
|
parsedBody,
|
|
711
|
-
exceptionCtor: __BaseException,
|
|
712
585
|
errorCode,
|
|
713
586
|
});
|
|
714
587
|
}
|
|
@@ -719,12 +592,12 @@ export const de_DeleteQualificationTypeCommand = async (output, context) => {
|
|
|
719
592
|
}
|
|
720
593
|
const data = await parseBody(output.body, context);
|
|
721
594
|
let contents = {};
|
|
722
|
-
contents =
|
|
595
|
+
contents = _json(data);
|
|
723
596
|
const response = {
|
|
724
597
|
$metadata: deserializeMetadata(output),
|
|
725
598
|
...contents,
|
|
726
599
|
};
|
|
727
|
-
return
|
|
600
|
+
return response;
|
|
728
601
|
};
|
|
729
602
|
const de_DeleteQualificationTypeCommandError = async (output, context) => {
|
|
730
603
|
const parsedOutput = {
|
|
@@ -741,10 +614,9 @@ const de_DeleteQualificationTypeCommandError = async (output, context) => {
|
|
|
741
614
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
742
615
|
default:
|
|
743
616
|
const parsedBody = parsedOutput.body;
|
|
744
|
-
throwDefaultError({
|
|
617
|
+
return throwDefaultError({
|
|
745
618
|
output,
|
|
746
619
|
parsedBody,
|
|
747
|
-
exceptionCtor: __BaseException,
|
|
748
620
|
errorCode,
|
|
749
621
|
});
|
|
750
622
|
}
|
|
@@ -755,12 +627,12 @@ export const de_DeleteWorkerBlockCommand = async (output, context) => {
|
|
|
755
627
|
}
|
|
756
628
|
const data = await parseBody(output.body, context);
|
|
757
629
|
let contents = {};
|
|
758
|
-
contents =
|
|
630
|
+
contents = _json(data);
|
|
759
631
|
const response = {
|
|
760
632
|
$metadata: deserializeMetadata(output),
|
|
761
633
|
...contents,
|
|
762
634
|
};
|
|
763
|
-
return
|
|
635
|
+
return response;
|
|
764
636
|
};
|
|
765
637
|
const de_DeleteWorkerBlockCommandError = async (output, context) => {
|
|
766
638
|
const parsedOutput = {
|
|
@@ -777,10 +649,9 @@ const de_DeleteWorkerBlockCommandError = async (output, context) => {
|
|
|
777
649
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
778
650
|
default:
|
|
779
651
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
throwDefaultError({
|
|
652
|
+
return throwDefaultError({
|
|
781
653
|
output,
|
|
782
654
|
parsedBody,
|
|
783
|
-
exceptionCtor: __BaseException,
|
|
784
655
|
errorCode,
|
|
785
656
|
});
|
|
786
657
|
}
|
|
@@ -791,12 +662,12 @@ export const de_DisassociateQualificationFromWorkerCommand = async (output, cont
|
|
|
791
662
|
}
|
|
792
663
|
const data = await parseBody(output.body, context);
|
|
793
664
|
let contents = {};
|
|
794
|
-
contents =
|
|
665
|
+
contents = _json(data);
|
|
795
666
|
const response = {
|
|
796
667
|
$metadata: deserializeMetadata(output),
|
|
797
668
|
...contents,
|
|
798
669
|
};
|
|
799
|
-
return
|
|
670
|
+
return response;
|
|
800
671
|
};
|
|
801
672
|
const de_DisassociateQualificationFromWorkerCommandError = async (output, context) => {
|
|
802
673
|
const parsedOutput = {
|
|
@@ -813,10 +684,9 @@ const de_DisassociateQualificationFromWorkerCommandError = async (output, contex
|
|
|
813
684
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
814
685
|
default:
|
|
815
686
|
const parsedBody = parsedOutput.body;
|
|
816
|
-
throwDefaultError({
|
|
687
|
+
return throwDefaultError({
|
|
817
688
|
output,
|
|
818
689
|
parsedBody,
|
|
819
|
-
exceptionCtor: __BaseException,
|
|
820
690
|
errorCode,
|
|
821
691
|
});
|
|
822
692
|
}
|
|
@@ -827,12 +697,12 @@ export const de_GetAccountBalanceCommand = async (output, context) => {
|
|
|
827
697
|
}
|
|
828
698
|
const data = await parseBody(output.body, context);
|
|
829
699
|
let contents = {};
|
|
830
|
-
contents =
|
|
700
|
+
contents = _json(data);
|
|
831
701
|
const response = {
|
|
832
702
|
$metadata: deserializeMetadata(output),
|
|
833
703
|
...contents,
|
|
834
704
|
};
|
|
835
|
-
return
|
|
705
|
+
return response;
|
|
836
706
|
};
|
|
837
707
|
const de_GetAccountBalanceCommandError = async (output, context) => {
|
|
838
708
|
const parsedOutput = {
|
|
@@ -849,10 +719,9 @@ const de_GetAccountBalanceCommandError = async (output, context) => {
|
|
|
849
719
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
850
720
|
default:
|
|
851
721
|
const parsedBody = parsedOutput.body;
|
|
852
|
-
throwDefaultError({
|
|
722
|
+
return throwDefaultError({
|
|
853
723
|
output,
|
|
854
724
|
parsedBody,
|
|
855
|
-
exceptionCtor: __BaseException,
|
|
856
725
|
errorCode,
|
|
857
726
|
});
|
|
858
727
|
}
|
|
@@ -868,7 +737,7 @@ export const de_GetAssignmentCommand = async (output, context) => {
|
|
|
868
737
|
$metadata: deserializeMetadata(output),
|
|
869
738
|
...contents,
|
|
870
739
|
};
|
|
871
|
-
return
|
|
740
|
+
return response;
|
|
872
741
|
};
|
|
873
742
|
const de_GetAssignmentCommandError = async (output, context) => {
|
|
874
743
|
const parsedOutput = {
|
|
@@ -885,10 +754,9 @@ const de_GetAssignmentCommandError = async (output, context) => {
|
|
|
885
754
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
886
755
|
default:
|
|
887
756
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
throwDefaultError({
|
|
757
|
+
return throwDefaultError({
|
|
889
758
|
output,
|
|
890
759
|
parsedBody,
|
|
891
|
-
exceptionCtor: __BaseException,
|
|
892
760
|
errorCode,
|
|
893
761
|
});
|
|
894
762
|
}
|
|
@@ -899,12 +767,12 @@ export const de_GetFileUploadURLCommand = async (output, context) => {
|
|
|
899
767
|
}
|
|
900
768
|
const data = await parseBody(output.body, context);
|
|
901
769
|
let contents = {};
|
|
902
|
-
contents =
|
|
770
|
+
contents = _json(data);
|
|
903
771
|
const response = {
|
|
904
772
|
$metadata: deserializeMetadata(output),
|
|
905
773
|
...contents,
|
|
906
774
|
};
|
|
907
|
-
return
|
|
775
|
+
return response;
|
|
908
776
|
};
|
|
909
777
|
const de_GetFileUploadURLCommandError = async (output, context) => {
|
|
910
778
|
const parsedOutput = {
|
|
@@ -921,10 +789,9 @@ const de_GetFileUploadURLCommandError = async (output, context) => {
|
|
|
921
789
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
922
790
|
default:
|
|
923
791
|
const parsedBody = parsedOutput.body;
|
|
924
|
-
throwDefaultError({
|
|
792
|
+
return throwDefaultError({
|
|
925
793
|
output,
|
|
926
794
|
parsedBody,
|
|
927
|
-
exceptionCtor: __BaseException,
|
|
928
795
|
errorCode,
|
|
929
796
|
});
|
|
930
797
|
}
|
|
@@ -940,7 +807,7 @@ export const de_GetHITCommand = async (output, context) => {
|
|
|
940
807
|
$metadata: deserializeMetadata(output),
|
|
941
808
|
...contents,
|
|
942
809
|
};
|
|
943
|
-
return
|
|
810
|
+
return response;
|
|
944
811
|
};
|
|
945
812
|
const de_GetHITCommandError = async (output, context) => {
|
|
946
813
|
const parsedOutput = {
|
|
@@ -957,10 +824,9 @@ const de_GetHITCommandError = async (output, context) => {
|
|
|
957
824
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
958
825
|
default:
|
|
959
826
|
const parsedBody = parsedOutput.body;
|
|
960
|
-
throwDefaultError({
|
|
827
|
+
return throwDefaultError({
|
|
961
828
|
output,
|
|
962
829
|
parsedBody,
|
|
963
|
-
exceptionCtor: __BaseException,
|
|
964
830
|
errorCode,
|
|
965
831
|
});
|
|
966
832
|
}
|
|
@@ -976,7 +842,7 @@ export const de_GetQualificationScoreCommand = async (output, context) => {
|
|
|
976
842
|
$metadata: deserializeMetadata(output),
|
|
977
843
|
...contents,
|
|
978
844
|
};
|
|
979
|
-
return
|
|
845
|
+
return response;
|
|
980
846
|
};
|
|
981
847
|
const de_GetQualificationScoreCommandError = async (output, context) => {
|
|
982
848
|
const parsedOutput = {
|
|
@@ -993,10 +859,9 @@ const de_GetQualificationScoreCommandError = async (output, context) => {
|
|
|
993
859
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
994
860
|
default:
|
|
995
861
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
throwDefaultError({
|
|
862
|
+
return throwDefaultError({
|
|
997
863
|
output,
|
|
998
864
|
parsedBody,
|
|
999
|
-
exceptionCtor: __BaseException,
|
|
1000
865
|
errorCode,
|
|
1001
866
|
});
|
|
1002
867
|
}
|
|
@@ -1012,7 +877,7 @@ export const de_GetQualificationTypeCommand = async (output, context) => {
|
|
|
1012
877
|
$metadata: deserializeMetadata(output),
|
|
1013
878
|
...contents,
|
|
1014
879
|
};
|
|
1015
|
-
return
|
|
880
|
+
return response;
|
|
1016
881
|
};
|
|
1017
882
|
const de_GetQualificationTypeCommandError = async (output, context) => {
|
|
1018
883
|
const parsedOutput = {
|
|
@@ -1029,10 +894,9 @@ const de_GetQualificationTypeCommandError = async (output, context) => {
|
|
|
1029
894
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1030
895
|
default:
|
|
1031
896
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
throwDefaultError({
|
|
897
|
+
return throwDefaultError({
|
|
1033
898
|
output,
|
|
1034
899
|
parsedBody,
|
|
1035
|
-
exceptionCtor: __BaseException,
|
|
1036
900
|
errorCode,
|
|
1037
901
|
});
|
|
1038
902
|
}
|
|
@@ -1048,7 +912,7 @@ export const de_ListAssignmentsForHITCommand = async (output, context) => {
|
|
|
1048
912
|
$metadata: deserializeMetadata(output),
|
|
1049
913
|
...contents,
|
|
1050
914
|
};
|
|
1051
|
-
return
|
|
915
|
+
return response;
|
|
1052
916
|
};
|
|
1053
917
|
const de_ListAssignmentsForHITCommandError = async (output, context) => {
|
|
1054
918
|
const parsedOutput = {
|
|
@@ -1065,10 +929,9 @@ const de_ListAssignmentsForHITCommandError = async (output, context) => {
|
|
|
1065
929
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1066
930
|
default:
|
|
1067
931
|
const parsedBody = parsedOutput.body;
|
|
1068
|
-
throwDefaultError({
|
|
932
|
+
return throwDefaultError({
|
|
1069
933
|
output,
|
|
1070
934
|
parsedBody,
|
|
1071
|
-
exceptionCtor: __BaseException,
|
|
1072
935
|
errorCode,
|
|
1073
936
|
});
|
|
1074
937
|
}
|
|
@@ -1084,7 +947,7 @@ export const de_ListBonusPaymentsCommand = async (output, context) => {
|
|
|
1084
947
|
$metadata: deserializeMetadata(output),
|
|
1085
948
|
...contents,
|
|
1086
949
|
};
|
|
1087
|
-
return
|
|
950
|
+
return response;
|
|
1088
951
|
};
|
|
1089
952
|
const de_ListBonusPaymentsCommandError = async (output, context) => {
|
|
1090
953
|
const parsedOutput = {
|
|
@@ -1101,10 +964,9 @@ const de_ListBonusPaymentsCommandError = async (output, context) => {
|
|
|
1101
964
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1102
965
|
default:
|
|
1103
966
|
const parsedBody = parsedOutput.body;
|
|
1104
|
-
throwDefaultError({
|
|
967
|
+
return throwDefaultError({
|
|
1105
968
|
output,
|
|
1106
969
|
parsedBody,
|
|
1107
|
-
exceptionCtor: __BaseException,
|
|
1108
970
|
errorCode,
|
|
1109
971
|
});
|
|
1110
972
|
}
|
|
@@ -1120,7 +982,7 @@ export const de_ListHITsCommand = async (output, context) => {
|
|
|
1120
982
|
$metadata: deserializeMetadata(output),
|
|
1121
983
|
...contents,
|
|
1122
984
|
};
|
|
1123
|
-
return
|
|
985
|
+
return response;
|
|
1124
986
|
};
|
|
1125
987
|
const de_ListHITsCommandError = async (output, context) => {
|
|
1126
988
|
const parsedOutput = {
|
|
@@ -1137,10 +999,9 @@ const de_ListHITsCommandError = async (output, context) => {
|
|
|
1137
999
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1138
1000
|
default:
|
|
1139
1001
|
const parsedBody = parsedOutput.body;
|
|
1140
|
-
throwDefaultError({
|
|
1002
|
+
return throwDefaultError({
|
|
1141
1003
|
output,
|
|
1142
1004
|
parsedBody,
|
|
1143
|
-
exceptionCtor: __BaseException,
|
|
1144
1005
|
errorCode,
|
|
1145
1006
|
});
|
|
1146
1007
|
}
|
|
@@ -1156,7 +1017,7 @@ export const de_ListHITsForQualificationTypeCommand = async (output, context) =>
|
|
|
1156
1017
|
$metadata: deserializeMetadata(output),
|
|
1157
1018
|
...contents,
|
|
1158
1019
|
};
|
|
1159
|
-
return
|
|
1020
|
+
return response;
|
|
1160
1021
|
};
|
|
1161
1022
|
const de_ListHITsForQualificationTypeCommandError = async (output, context) => {
|
|
1162
1023
|
const parsedOutput = {
|
|
@@ -1173,10 +1034,9 @@ const de_ListHITsForQualificationTypeCommandError = async (output, context) => {
|
|
|
1173
1034
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1174
1035
|
default:
|
|
1175
1036
|
const parsedBody = parsedOutput.body;
|
|
1176
|
-
throwDefaultError({
|
|
1037
|
+
return throwDefaultError({
|
|
1177
1038
|
output,
|
|
1178
1039
|
parsedBody,
|
|
1179
|
-
exceptionCtor: __BaseException,
|
|
1180
1040
|
errorCode,
|
|
1181
1041
|
});
|
|
1182
1042
|
}
|
|
@@ -1192,7 +1052,7 @@ export const de_ListQualificationRequestsCommand = async (output, context) => {
|
|
|
1192
1052
|
$metadata: deserializeMetadata(output),
|
|
1193
1053
|
...contents,
|
|
1194
1054
|
};
|
|
1195
|
-
return
|
|
1055
|
+
return response;
|
|
1196
1056
|
};
|
|
1197
1057
|
const de_ListQualificationRequestsCommandError = async (output, context) => {
|
|
1198
1058
|
const parsedOutput = {
|
|
@@ -1209,10 +1069,9 @@ const de_ListQualificationRequestsCommandError = async (output, context) => {
|
|
|
1209
1069
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1210
1070
|
default:
|
|
1211
1071
|
const parsedBody = parsedOutput.body;
|
|
1212
|
-
throwDefaultError({
|
|
1072
|
+
return throwDefaultError({
|
|
1213
1073
|
output,
|
|
1214
1074
|
parsedBody,
|
|
1215
|
-
exceptionCtor: __BaseException,
|
|
1216
1075
|
errorCode,
|
|
1217
1076
|
});
|
|
1218
1077
|
}
|
|
@@ -1228,7 +1087,7 @@ export const de_ListQualificationTypesCommand = async (output, context) => {
|
|
|
1228
1087
|
$metadata: deserializeMetadata(output),
|
|
1229
1088
|
...contents,
|
|
1230
1089
|
};
|
|
1231
|
-
return
|
|
1090
|
+
return response;
|
|
1232
1091
|
};
|
|
1233
1092
|
const de_ListQualificationTypesCommandError = async (output, context) => {
|
|
1234
1093
|
const parsedOutput = {
|
|
@@ -1245,10 +1104,9 @@ const de_ListQualificationTypesCommandError = async (output, context) => {
|
|
|
1245
1104
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1246
1105
|
default:
|
|
1247
1106
|
const parsedBody = parsedOutput.body;
|
|
1248
|
-
throwDefaultError({
|
|
1107
|
+
return throwDefaultError({
|
|
1249
1108
|
output,
|
|
1250
1109
|
parsedBody,
|
|
1251
|
-
exceptionCtor: __BaseException,
|
|
1252
1110
|
errorCode,
|
|
1253
1111
|
});
|
|
1254
1112
|
}
|
|
@@ -1264,7 +1122,7 @@ export const de_ListReviewableHITsCommand = async (output, context) => {
|
|
|
1264
1122
|
$metadata: deserializeMetadata(output),
|
|
1265
1123
|
...contents,
|
|
1266
1124
|
};
|
|
1267
|
-
return
|
|
1125
|
+
return response;
|
|
1268
1126
|
};
|
|
1269
1127
|
const de_ListReviewableHITsCommandError = async (output, context) => {
|
|
1270
1128
|
const parsedOutput = {
|
|
@@ -1281,10 +1139,9 @@ const de_ListReviewableHITsCommandError = async (output, context) => {
|
|
|
1281
1139
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1282
1140
|
default:
|
|
1283
1141
|
const parsedBody = parsedOutput.body;
|
|
1284
|
-
throwDefaultError({
|
|
1142
|
+
return throwDefaultError({
|
|
1285
1143
|
output,
|
|
1286
1144
|
parsedBody,
|
|
1287
|
-
exceptionCtor: __BaseException,
|
|
1288
1145
|
errorCode,
|
|
1289
1146
|
});
|
|
1290
1147
|
}
|
|
@@ -1300,7 +1157,7 @@ export const de_ListReviewPolicyResultsForHITCommand = async (output, context) =
|
|
|
1300
1157
|
$metadata: deserializeMetadata(output),
|
|
1301
1158
|
...contents,
|
|
1302
1159
|
};
|
|
1303
|
-
return
|
|
1160
|
+
return response;
|
|
1304
1161
|
};
|
|
1305
1162
|
const de_ListReviewPolicyResultsForHITCommandError = async (output, context) => {
|
|
1306
1163
|
const parsedOutput = {
|
|
@@ -1317,10 +1174,9 @@ const de_ListReviewPolicyResultsForHITCommandError = async (output, context) =>
|
|
|
1317
1174
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1318
1175
|
default:
|
|
1319
1176
|
const parsedBody = parsedOutput.body;
|
|
1320
|
-
throwDefaultError({
|
|
1177
|
+
return throwDefaultError({
|
|
1321
1178
|
output,
|
|
1322
1179
|
parsedBody,
|
|
1323
|
-
exceptionCtor: __BaseException,
|
|
1324
1180
|
errorCode,
|
|
1325
1181
|
});
|
|
1326
1182
|
}
|
|
@@ -1331,12 +1187,12 @@ export const de_ListWorkerBlocksCommand = async (output, context) => {
|
|
|
1331
1187
|
}
|
|
1332
1188
|
const data = await parseBody(output.body, context);
|
|
1333
1189
|
let contents = {};
|
|
1334
|
-
contents =
|
|
1190
|
+
contents = _json(data);
|
|
1335
1191
|
const response = {
|
|
1336
1192
|
$metadata: deserializeMetadata(output),
|
|
1337
1193
|
...contents,
|
|
1338
1194
|
};
|
|
1339
|
-
return
|
|
1195
|
+
return response;
|
|
1340
1196
|
};
|
|
1341
1197
|
const de_ListWorkerBlocksCommandError = async (output, context) => {
|
|
1342
1198
|
const parsedOutput = {
|
|
@@ -1353,10 +1209,9 @@ const de_ListWorkerBlocksCommandError = async (output, context) => {
|
|
|
1353
1209
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1354
1210
|
default:
|
|
1355
1211
|
const parsedBody = parsedOutput.body;
|
|
1356
|
-
throwDefaultError({
|
|
1212
|
+
return throwDefaultError({
|
|
1357
1213
|
output,
|
|
1358
1214
|
parsedBody,
|
|
1359
|
-
exceptionCtor: __BaseException,
|
|
1360
1215
|
errorCode,
|
|
1361
1216
|
});
|
|
1362
1217
|
}
|
|
@@ -1372,7 +1227,7 @@ export const de_ListWorkersWithQualificationTypeCommand = async (output, context
|
|
|
1372
1227
|
$metadata: deserializeMetadata(output),
|
|
1373
1228
|
...contents,
|
|
1374
1229
|
};
|
|
1375
|
-
return
|
|
1230
|
+
return response;
|
|
1376
1231
|
};
|
|
1377
1232
|
const de_ListWorkersWithQualificationTypeCommandError = async (output, context) => {
|
|
1378
1233
|
const parsedOutput = {
|
|
@@ -1389,10 +1244,9 @@ const de_ListWorkersWithQualificationTypeCommandError = async (output, context)
|
|
|
1389
1244
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1390
1245
|
default:
|
|
1391
1246
|
const parsedBody = parsedOutput.body;
|
|
1392
|
-
throwDefaultError({
|
|
1247
|
+
return throwDefaultError({
|
|
1393
1248
|
output,
|
|
1394
1249
|
parsedBody,
|
|
1395
|
-
exceptionCtor: __BaseException,
|
|
1396
1250
|
errorCode,
|
|
1397
1251
|
});
|
|
1398
1252
|
}
|
|
@@ -1403,12 +1257,12 @@ export const de_NotifyWorkersCommand = async (output, context) => {
|
|
|
1403
1257
|
}
|
|
1404
1258
|
const data = await parseBody(output.body, context);
|
|
1405
1259
|
let contents = {};
|
|
1406
|
-
contents =
|
|
1260
|
+
contents = _json(data);
|
|
1407
1261
|
const response = {
|
|
1408
1262
|
$metadata: deserializeMetadata(output),
|
|
1409
1263
|
...contents,
|
|
1410
1264
|
};
|
|
1411
|
-
return
|
|
1265
|
+
return response;
|
|
1412
1266
|
};
|
|
1413
1267
|
const de_NotifyWorkersCommandError = async (output, context) => {
|
|
1414
1268
|
const parsedOutput = {
|
|
@@ -1425,10 +1279,9 @@ const de_NotifyWorkersCommandError = async (output, context) => {
|
|
|
1425
1279
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1426
1280
|
default:
|
|
1427
1281
|
const parsedBody = parsedOutput.body;
|
|
1428
|
-
throwDefaultError({
|
|
1282
|
+
return throwDefaultError({
|
|
1429
1283
|
output,
|
|
1430
1284
|
parsedBody,
|
|
1431
|
-
exceptionCtor: __BaseException,
|
|
1432
1285
|
errorCode,
|
|
1433
1286
|
});
|
|
1434
1287
|
}
|
|
@@ -1439,12 +1292,12 @@ export const de_RejectAssignmentCommand = async (output, context) => {
|
|
|
1439
1292
|
}
|
|
1440
1293
|
const data = await parseBody(output.body, context);
|
|
1441
1294
|
let contents = {};
|
|
1442
|
-
contents =
|
|
1295
|
+
contents = _json(data);
|
|
1443
1296
|
const response = {
|
|
1444
1297
|
$metadata: deserializeMetadata(output),
|
|
1445
1298
|
...contents,
|
|
1446
1299
|
};
|
|
1447
|
-
return
|
|
1300
|
+
return response;
|
|
1448
1301
|
};
|
|
1449
1302
|
const de_RejectAssignmentCommandError = async (output, context) => {
|
|
1450
1303
|
const parsedOutput = {
|
|
@@ -1461,10 +1314,9 @@ const de_RejectAssignmentCommandError = async (output, context) => {
|
|
|
1461
1314
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1462
1315
|
default:
|
|
1463
1316
|
const parsedBody = parsedOutput.body;
|
|
1464
|
-
throwDefaultError({
|
|
1317
|
+
return throwDefaultError({
|
|
1465
1318
|
output,
|
|
1466
1319
|
parsedBody,
|
|
1467
|
-
exceptionCtor: __BaseException,
|
|
1468
1320
|
errorCode,
|
|
1469
1321
|
});
|
|
1470
1322
|
}
|
|
@@ -1475,12 +1327,12 @@ export const de_RejectQualificationRequestCommand = async (output, context) => {
|
|
|
1475
1327
|
}
|
|
1476
1328
|
const data = await parseBody(output.body, context);
|
|
1477
1329
|
let contents = {};
|
|
1478
|
-
contents =
|
|
1330
|
+
contents = _json(data);
|
|
1479
1331
|
const response = {
|
|
1480
1332
|
$metadata: deserializeMetadata(output),
|
|
1481
1333
|
...contents,
|
|
1482
1334
|
};
|
|
1483
|
-
return
|
|
1335
|
+
return response;
|
|
1484
1336
|
};
|
|
1485
1337
|
const de_RejectQualificationRequestCommandError = async (output, context) => {
|
|
1486
1338
|
const parsedOutput = {
|
|
@@ -1497,10 +1349,9 @@ const de_RejectQualificationRequestCommandError = async (output, context) => {
|
|
|
1497
1349
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1498
1350
|
default:
|
|
1499
1351
|
const parsedBody = parsedOutput.body;
|
|
1500
|
-
throwDefaultError({
|
|
1352
|
+
return throwDefaultError({
|
|
1501
1353
|
output,
|
|
1502
1354
|
parsedBody,
|
|
1503
|
-
exceptionCtor: __BaseException,
|
|
1504
1355
|
errorCode,
|
|
1505
1356
|
});
|
|
1506
1357
|
}
|
|
@@ -1511,12 +1362,12 @@ export const de_SendBonusCommand = async (output, context) => {
|
|
|
1511
1362
|
}
|
|
1512
1363
|
const data = await parseBody(output.body, context);
|
|
1513
1364
|
let contents = {};
|
|
1514
|
-
contents =
|
|
1365
|
+
contents = _json(data);
|
|
1515
1366
|
const response = {
|
|
1516
1367
|
$metadata: deserializeMetadata(output),
|
|
1517
1368
|
...contents,
|
|
1518
1369
|
};
|
|
1519
|
-
return
|
|
1370
|
+
return response;
|
|
1520
1371
|
};
|
|
1521
1372
|
const de_SendBonusCommandError = async (output, context) => {
|
|
1522
1373
|
const parsedOutput = {
|
|
@@ -1533,10 +1384,9 @@ const de_SendBonusCommandError = async (output, context) => {
|
|
|
1533
1384
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1534
1385
|
default:
|
|
1535
1386
|
const parsedBody = parsedOutput.body;
|
|
1536
|
-
throwDefaultError({
|
|
1387
|
+
return throwDefaultError({
|
|
1537
1388
|
output,
|
|
1538
1389
|
parsedBody,
|
|
1539
|
-
exceptionCtor: __BaseException,
|
|
1540
1390
|
errorCode,
|
|
1541
1391
|
});
|
|
1542
1392
|
}
|
|
@@ -1547,12 +1397,12 @@ export const de_SendTestEventNotificationCommand = async (output, context) => {
|
|
|
1547
1397
|
}
|
|
1548
1398
|
const data = await parseBody(output.body, context);
|
|
1549
1399
|
let contents = {};
|
|
1550
|
-
contents =
|
|
1400
|
+
contents = _json(data);
|
|
1551
1401
|
const response = {
|
|
1552
1402
|
$metadata: deserializeMetadata(output),
|
|
1553
1403
|
...contents,
|
|
1554
1404
|
};
|
|
1555
|
-
return
|
|
1405
|
+
return response;
|
|
1556
1406
|
};
|
|
1557
1407
|
const de_SendTestEventNotificationCommandError = async (output, context) => {
|
|
1558
1408
|
const parsedOutput = {
|
|
@@ -1569,10 +1419,9 @@ const de_SendTestEventNotificationCommandError = async (output, context) => {
|
|
|
1569
1419
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1570
1420
|
default:
|
|
1571
1421
|
const parsedBody = parsedOutput.body;
|
|
1572
|
-
throwDefaultError({
|
|
1422
|
+
return throwDefaultError({
|
|
1573
1423
|
output,
|
|
1574
1424
|
parsedBody,
|
|
1575
|
-
exceptionCtor: __BaseException,
|
|
1576
1425
|
errorCode,
|
|
1577
1426
|
});
|
|
1578
1427
|
}
|
|
@@ -1583,12 +1432,12 @@ export const de_UpdateExpirationForHITCommand = async (output, context) => {
|
|
|
1583
1432
|
}
|
|
1584
1433
|
const data = await parseBody(output.body, context);
|
|
1585
1434
|
let contents = {};
|
|
1586
|
-
contents =
|
|
1435
|
+
contents = _json(data);
|
|
1587
1436
|
const response = {
|
|
1588
1437
|
$metadata: deserializeMetadata(output),
|
|
1589
1438
|
...contents,
|
|
1590
1439
|
};
|
|
1591
|
-
return
|
|
1440
|
+
return response;
|
|
1592
1441
|
};
|
|
1593
1442
|
const de_UpdateExpirationForHITCommandError = async (output, context) => {
|
|
1594
1443
|
const parsedOutput = {
|
|
@@ -1605,10 +1454,9 @@ const de_UpdateExpirationForHITCommandError = async (output, context) => {
|
|
|
1605
1454
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1606
1455
|
default:
|
|
1607
1456
|
const parsedBody = parsedOutput.body;
|
|
1608
|
-
throwDefaultError({
|
|
1457
|
+
return throwDefaultError({
|
|
1609
1458
|
output,
|
|
1610
1459
|
parsedBody,
|
|
1611
|
-
exceptionCtor: __BaseException,
|
|
1612
1460
|
errorCode,
|
|
1613
1461
|
});
|
|
1614
1462
|
}
|
|
@@ -1619,12 +1467,12 @@ export const de_UpdateHITReviewStatusCommand = async (output, context) => {
|
|
|
1619
1467
|
}
|
|
1620
1468
|
const data = await parseBody(output.body, context);
|
|
1621
1469
|
let contents = {};
|
|
1622
|
-
contents =
|
|
1470
|
+
contents = _json(data);
|
|
1623
1471
|
const response = {
|
|
1624
1472
|
$metadata: deserializeMetadata(output),
|
|
1625
1473
|
...contents,
|
|
1626
1474
|
};
|
|
1627
|
-
return
|
|
1475
|
+
return response;
|
|
1628
1476
|
};
|
|
1629
1477
|
const de_UpdateHITReviewStatusCommandError = async (output, context) => {
|
|
1630
1478
|
const parsedOutput = {
|
|
@@ -1641,10 +1489,9 @@ const de_UpdateHITReviewStatusCommandError = async (output, context) => {
|
|
|
1641
1489
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1642
1490
|
default:
|
|
1643
1491
|
const parsedBody = parsedOutput.body;
|
|
1644
|
-
throwDefaultError({
|
|
1492
|
+
return throwDefaultError({
|
|
1645
1493
|
output,
|
|
1646
1494
|
parsedBody,
|
|
1647
|
-
exceptionCtor: __BaseException,
|
|
1648
1495
|
errorCode,
|
|
1649
1496
|
});
|
|
1650
1497
|
}
|
|
@@ -1655,12 +1502,12 @@ export const de_UpdateHITTypeOfHITCommand = async (output, context) => {
|
|
|
1655
1502
|
}
|
|
1656
1503
|
const data = await parseBody(output.body, context);
|
|
1657
1504
|
let contents = {};
|
|
1658
|
-
contents =
|
|
1505
|
+
contents = _json(data);
|
|
1659
1506
|
const response = {
|
|
1660
1507
|
$metadata: deserializeMetadata(output),
|
|
1661
1508
|
...contents,
|
|
1662
1509
|
};
|
|
1663
|
-
return
|
|
1510
|
+
return response;
|
|
1664
1511
|
};
|
|
1665
1512
|
const de_UpdateHITTypeOfHITCommandError = async (output, context) => {
|
|
1666
1513
|
const parsedOutput = {
|
|
@@ -1677,10 +1524,9 @@ const de_UpdateHITTypeOfHITCommandError = async (output, context) => {
|
|
|
1677
1524
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1678
1525
|
default:
|
|
1679
1526
|
const parsedBody = parsedOutput.body;
|
|
1680
|
-
throwDefaultError({
|
|
1527
|
+
return throwDefaultError({
|
|
1681
1528
|
output,
|
|
1682
1529
|
parsedBody,
|
|
1683
|
-
exceptionCtor: __BaseException,
|
|
1684
1530
|
errorCode,
|
|
1685
1531
|
});
|
|
1686
1532
|
}
|
|
@@ -1691,12 +1537,12 @@ export const de_UpdateNotificationSettingsCommand = async (output, context) => {
|
|
|
1691
1537
|
}
|
|
1692
1538
|
const data = await parseBody(output.body, context);
|
|
1693
1539
|
let contents = {};
|
|
1694
|
-
contents =
|
|
1540
|
+
contents = _json(data);
|
|
1695
1541
|
const response = {
|
|
1696
1542
|
$metadata: deserializeMetadata(output),
|
|
1697
1543
|
...contents,
|
|
1698
1544
|
};
|
|
1699
|
-
return
|
|
1545
|
+
return response;
|
|
1700
1546
|
};
|
|
1701
1547
|
const de_UpdateNotificationSettingsCommandError = async (output, context) => {
|
|
1702
1548
|
const parsedOutput = {
|
|
@@ -1713,10 +1559,9 @@ const de_UpdateNotificationSettingsCommandError = async (output, context) => {
|
|
|
1713
1559
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1714
1560
|
default:
|
|
1715
1561
|
const parsedBody = parsedOutput.body;
|
|
1716
|
-
throwDefaultError({
|
|
1562
|
+
return throwDefaultError({
|
|
1717
1563
|
output,
|
|
1718
1564
|
parsedBody,
|
|
1719
|
-
exceptionCtor: __BaseException,
|
|
1720
1565
|
errorCode,
|
|
1721
1566
|
});
|
|
1722
1567
|
}
|
|
@@ -1732,7 +1577,7 @@ export const de_UpdateQualificationTypeCommand = async (output, context) => {
|
|
|
1732
1577
|
$metadata: deserializeMetadata(output),
|
|
1733
1578
|
...contents,
|
|
1734
1579
|
};
|
|
1735
|
-
return
|
|
1580
|
+
return response;
|
|
1736
1581
|
};
|
|
1737
1582
|
const de_UpdateQualificationTypeCommandError = async (output, context) => {
|
|
1738
1583
|
const parsedOutput = {
|
|
@@ -1749,17 +1594,16 @@ const de_UpdateQualificationTypeCommandError = async (output, context) => {
|
|
|
1749
1594
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1750
1595
|
default:
|
|
1751
1596
|
const parsedBody = parsedOutput.body;
|
|
1752
|
-
throwDefaultError({
|
|
1597
|
+
return throwDefaultError({
|
|
1753
1598
|
output,
|
|
1754
1599
|
parsedBody,
|
|
1755
|
-
exceptionCtor: __BaseException,
|
|
1756
1600
|
errorCode,
|
|
1757
1601
|
});
|
|
1758
1602
|
}
|
|
1759
1603
|
};
|
|
1760
1604
|
const de_RequestErrorRes = async (parsedOutput, context) => {
|
|
1761
1605
|
const body = parsedOutput.body;
|
|
1762
|
-
const deserialized =
|
|
1606
|
+
const deserialized = _json(body);
|
|
1763
1607
|
const exception = new RequestError({
|
|
1764
1608
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1765
1609
|
...deserialized,
|
|
@@ -1768,1008 +1612,286 @@ const de_RequestErrorRes = async (parsedOutput, context) => {
|
|
|
1768
1612
|
};
|
|
1769
1613
|
const de_ServiceFaultRes = async (parsedOutput, context) => {
|
|
1770
1614
|
const body = parsedOutput.body;
|
|
1771
|
-
const deserialized =
|
|
1615
|
+
const deserialized = _json(body);
|
|
1772
1616
|
const exception = new ServiceFault({
|
|
1773
1617
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1774
1618
|
...deserialized,
|
|
1775
1619
|
});
|
|
1776
1620
|
return __decorateServiceException(exception, body);
|
|
1777
1621
|
};
|
|
1778
|
-
const se_AcceptQualificationRequestRequest = (input, context) => {
|
|
1779
|
-
return {
|
|
1780
|
-
...(input.IntegerValue != null && { IntegerValue: input.IntegerValue }),
|
|
1781
|
-
...(input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId }),
|
|
1782
|
-
};
|
|
1783
|
-
};
|
|
1784
|
-
const se_ApproveAssignmentRequest = (input, context) => {
|
|
1785
|
-
return {
|
|
1786
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1787
|
-
...(input.OverrideRejection != null && { OverrideRejection: input.OverrideRejection }),
|
|
1788
|
-
...(input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }),
|
|
1789
|
-
};
|
|
1790
|
-
};
|
|
1791
|
-
const se_AssignmentStatusList = (input, context) => {
|
|
1792
|
-
return input
|
|
1793
|
-
.filter((e) => e != null)
|
|
1794
|
-
.map((entry) => {
|
|
1795
|
-
return entry;
|
|
1796
|
-
});
|
|
1797
|
-
};
|
|
1798
|
-
const se_AssociateQualificationWithWorkerRequest = (input, context) => {
|
|
1799
|
-
return {
|
|
1800
|
-
...(input.IntegerValue != null && { IntegerValue: input.IntegerValue }),
|
|
1801
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1802
|
-
...(input.SendNotification != null && { SendNotification: input.SendNotification }),
|
|
1803
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1804
|
-
};
|
|
1805
|
-
};
|
|
1806
|
-
const se_CreateAdditionalAssignmentsForHITRequest = (input, context) => {
|
|
1807
|
-
return {
|
|
1808
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1809
|
-
...(input.NumberOfAdditionalAssignments != null && {
|
|
1810
|
-
NumberOfAdditionalAssignments: input.NumberOfAdditionalAssignments,
|
|
1811
|
-
}),
|
|
1812
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1813
|
-
};
|
|
1814
|
-
};
|
|
1815
|
-
const se_CreateHITRequest = (input, context) => {
|
|
1816
|
-
return {
|
|
1817
|
-
...(input.AssignmentDurationInSeconds != null && {
|
|
1818
|
-
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
1819
|
-
}),
|
|
1820
|
-
...(input.AssignmentReviewPolicy != null && {
|
|
1821
|
-
AssignmentReviewPolicy: se_ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
1822
|
-
}),
|
|
1823
|
-
...(input.AutoApprovalDelayInSeconds != null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds }),
|
|
1824
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1825
|
-
...(input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId }),
|
|
1826
|
-
...(input.HITLayoutParameters != null && {
|
|
1827
|
-
HITLayoutParameters: se_HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
1828
|
-
}),
|
|
1829
|
-
...(input.HITReviewPolicy != null && { HITReviewPolicy: se_ReviewPolicy(input.HITReviewPolicy, context) }),
|
|
1830
|
-
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1831
|
-
...(input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds }),
|
|
1832
|
-
...(input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments }),
|
|
1833
|
-
...(input.QualificationRequirements != null && {
|
|
1834
|
-
QualificationRequirements: se_QualificationRequirementList(input.QualificationRequirements, context),
|
|
1835
|
-
}),
|
|
1836
|
-
...(input.Question != null && { Question: input.Question }),
|
|
1837
|
-
...(input.RequesterAnnotation != null && { RequesterAnnotation: input.RequesterAnnotation }),
|
|
1838
|
-
...(input.Reward != null && { Reward: input.Reward }),
|
|
1839
|
-
...(input.Title != null && { Title: input.Title }),
|
|
1840
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1841
|
-
};
|
|
1842
|
-
};
|
|
1843
|
-
const se_CreateHITTypeRequest = (input, context) => {
|
|
1844
|
-
return {
|
|
1845
|
-
...(input.AssignmentDurationInSeconds != null && {
|
|
1846
|
-
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
1847
|
-
}),
|
|
1848
|
-
...(input.AutoApprovalDelayInSeconds != null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds }),
|
|
1849
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1850
|
-
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1851
|
-
...(input.QualificationRequirements != null && {
|
|
1852
|
-
QualificationRequirements: se_QualificationRequirementList(input.QualificationRequirements, context),
|
|
1853
|
-
}),
|
|
1854
|
-
...(input.Reward != null && { Reward: input.Reward }),
|
|
1855
|
-
...(input.Title != null && { Title: input.Title }),
|
|
1856
|
-
};
|
|
1857
|
-
};
|
|
1858
|
-
const se_CreateHITWithHITTypeRequest = (input, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
...(input.AssignmentReviewPolicy != null && {
|
|
1861
|
-
AssignmentReviewPolicy: se_ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
1862
|
-
}),
|
|
1863
|
-
...(input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId }),
|
|
1864
|
-
...(input.HITLayoutParameters != null && {
|
|
1865
|
-
HITLayoutParameters: se_HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
1866
|
-
}),
|
|
1867
|
-
...(input.HITReviewPolicy != null && { HITReviewPolicy: se_ReviewPolicy(input.HITReviewPolicy, context) }),
|
|
1868
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
1869
|
-
...(input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds }),
|
|
1870
|
-
...(input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments }),
|
|
1871
|
-
...(input.Question != null && { Question: input.Question }),
|
|
1872
|
-
...(input.RequesterAnnotation != null && { RequesterAnnotation: input.RequesterAnnotation }),
|
|
1873
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1874
|
-
};
|
|
1875
|
-
};
|
|
1876
|
-
const se_CreateQualificationTypeRequest = (input, context) => {
|
|
1877
|
-
return {
|
|
1878
|
-
...(input.AnswerKey != null && { AnswerKey: input.AnswerKey }),
|
|
1879
|
-
...(input.AutoGranted != null && { AutoGranted: input.AutoGranted }),
|
|
1880
|
-
...(input.AutoGrantedValue != null && { AutoGrantedValue: input.AutoGrantedValue }),
|
|
1881
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1882
|
-
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1883
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1884
|
-
...(input.QualificationTypeStatus != null && { QualificationTypeStatus: input.QualificationTypeStatus }),
|
|
1885
|
-
...(input.RetryDelayInSeconds != null && { RetryDelayInSeconds: input.RetryDelayInSeconds }),
|
|
1886
|
-
...(input.Test != null && { Test: input.Test }),
|
|
1887
|
-
...(input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }),
|
|
1888
|
-
};
|
|
1889
|
-
};
|
|
1890
|
-
const se_CreateWorkerBlockRequest = (input, context) => {
|
|
1891
|
-
return {
|
|
1892
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
1893
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1894
|
-
};
|
|
1895
|
-
};
|
|
1896
|
-
const se_CustomerIdList = (input, context) => {
|
|
1897
|
-
return input
|
|
1898
|
-
.filter((e) => e != null)
|
|
1899
|
-
.map((entry) => {
|
|
1900
|
-
return entry;
|
|
1901
|
-
});
|
|
1902
|
-
};
|
|
1903
|
-
const se_DeleteHITRequest = (input, context) => {
|
|
1904
|
-
return {
|
|
1905
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1906
|
-
};
|
|
1907
|
-
};
|
|
1908
|
-
const se_DeleteQualificationTypeRequest = (input, context) => {
|
|
1909
|
-
return {
|
|
1910
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
const se_DeleteWorkerBlockRequest = (input, context) => {
|
|
1914
|
-
return {
|
|
1915
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
1916
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
const se_DisassociateQualificationFromWorkerRequest = (input, context) => {
|
|
1920
|
-
return {
|
|
1921
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1922
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
1923
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const se_EventTypeList = (input, context) => {
|
|
1927
|
-
return input
|
|
1928
|
-
.filter((e) => e != null)
|
|
1929
|
-
.map((entry) => {
|
|
1930
|
-
return entry;
|
|
1931
|
-
});
|
|
1932
|
-
};
|
|
1933
|
-
const se_GetAccountBalanceRequest = (input, context) => {
|
|
1934
|
-
return {};
|
|
1935
|
-
};
|
|
1936
|
-
const se_GetAssignmentRequest = (input, context) => {
|
|
1937
|
-
return {
|
|
1938
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1939
|
-
};
|
|
1940
|
-
};
|
|
1941
|
-
const se_GetFileUploadURLRequest = (input, context) => {
|
|
1942
|
-
return {
|
|
1943
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1944
|
-
...(input.QuestionIdentifier != null && { QuestionIdentifier: input.QuestionIdentifier }),
|
|
1945
|
-
};
|
|
1946
|
-
};
|
|
1947
|
-
const se_GetHITRequest = (input, context) => {
|
|
1948
|
-
return {
|
|
1949
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1950
|
-
};
|
|
1951
|
-
};
|
|
1952
|
-
const se_GetQualificationScoreRequest = (input, context) => {
|
|
1953
|
-
return {
|
|
1954
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1955
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1956
|
-
};
|
|
1957
|
-
};
|
|
1958
|
-
const se_GetQualificationTypeRequest = (input, context) => {
|
|
1959
|
-
return {
|
|
1960
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1961
|
-
};
|
|
1962
|
-
};
|
|
1963
|
-
const se_HITLayoutParameter = (input, context) => {
|
|
1964
|
-
return {
|
|
1965
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1966
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1967
|
-
};
|
|
1968
|
-
};
|
|
1969
|
-
const se_HITLayoutParameterList = (input, context) => {
|
|
1970
|
-
return input
|
|
1971
|
-
.filter((e) => e != null)
|
|
1972
|
-
.map((entry) => {
|
|
1973
|
-
return se_HITLayoutParameter(entry, context);
|
|
1974
|
-
});
|
|
1975
|
-
};
|
|
1976
|
-
const se_IntegerList = (input, context) => {
|
|
1977
|
-
return input
|
|
1978
|
-
.filter((e) => e != null)
|
|
1979
|
-
.map((entry) => {
|
|
1980
|
-
return entry;
|
|
1981
|
-
});
|
|
1982
|
-
};
|
|
1983
|
-
const se_ListAssignmentsForHITRequest = (input, context) => {
|
|
1984
|
-
return {
|
|
1985
|
-
...(input.AssignmentStatuses != null && {
|
|
1986
|
-
AssignmentStatuses: se_AssignmentStatusList(input.AssignmentStatuses, context),
|
|
1987
|
-
}),
|
|
1988
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1989
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1990
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1991
|
-
};
|
|
1992
|
-
};
|
|
1993
|
-
const se_ListBonusPaymentsRequest = (input, context) => {
|
|
1994
|
-
return {
|
|
1995
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1996
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1997
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1998
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1999
|
-
};
|
|
2000
|
-
};
|
|
2001
|
-
const se_ListHITsForQualificationTypeRequest = (input, context) => {
|
|
2002
|
-
return {
|
|
2003
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2004
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2005
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2006
|
-
};
|
|
2007
|
-
};
|
|
2008
|
-
const se_ListHITsRequest = (input, context) => {
|
|
2009
|
-
return {
|
|
2010
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2011
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2012
|
-
};
|
|
2013
|
-
};
|
|
2014
|
-
const se_ListQualificationRequestsRequest = (input, context) => {
|
|
2015
|
-
return {
|
|
2016
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2017
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2018
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2019
|
-
};
|
|
2020
|
-
};
|
|
2021
|
-
const se_ListQualificationTypesRequest = (input, context) => {
|
|
2022
|
-
return {
|
|
2023
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2024
|
-
...(input.MustBeOwnedByCaller != null && { MustBeOwnedByCaller: input.MustBeOwnedByCaller }),
|
|
2025
|
-
...(input.MustBeRequestable != null && { MustBeRequestable: input.MustBeRequestable }),
|
|
2026
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2027
|
-
...(input.Query != null && { Query: input.Query }),
|
|
2028
|
-
};
|
|
2029
|
-
};
|
|
2030
|
-
const se_ListReviewableHITsRequest = (input, context) => {
|
|
2031
|
-
return {
|
|
2032
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2033
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2034
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2035
|
-
...(input.Status != null && { Status: input.Status }),
|
|
2036
|
-
};
|
|
2037
|
-
};
|
|
2038
|
-
const se_ListReviewPolicyResultsForHITRequest = (input, context) => {
|
|
2039
|
-
return {
|
|
2040
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
2041
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2042
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2043
|
-
...(input.PolicyLevels != null && { PolicyLevels: se_ReviewPolicyLevelList(input.PolicyLevels, context) }),
|
|
2044
|
-
...(input.RetrieveActions != null && { RetrieveActions: input.RetrieveActions }),
|
|
2045
|
-
...(input.RetrieveResults != null && { RetrieveResults: input.RetrieveResults }),
|
|
2046
|
-
};
|
|
2047
|
-
};
|
|
2048
|
-
const se_ListWorkerBlocksRequest = (input, context) => {
|
|
2049
|
-
return {
|
|
2050
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2051
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2052
|
-
};
|
|
2053
|
-
};
|
|
2054
|
-
const se_ListWorkersWithQualificationTypeRequest = (input, context) => {
|
|
2055
|
-
return {
|
|
2056
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2057
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2058
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2059
|
-
...(input.Status != null && { Status: input.Status }),
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
const se_Locale = (input, context) => {
|
|
2063
|
-
return {
|
|
2064
|
-
...(input.Country != null && { Country: input.Country }),
|
|
2065
|
-
...(input.Subdivision != null && { Subdivision: input.Subdivision }),
|
|
2066
|
-
};
|
|
2067
|
-
};
|
|
2068
|
-
const se_LocaleList = (input, context) => {
|
|
2069
|
-
return input
|
|
2070
|
-
.filter((e) => e != null)
|
|
2071
|
-
.map((entry) => {
|
|
2072
|
-
return se_Locale(entry, context);
|
|
2073
|
-
});
|
|
2074
|
-
};
|
|
2075
|
-
const se_NotificationSpecification = (input, context) => {
|
|
2076
|
-
return {
|
|
2077
|
-
...(input.Destination != null && { Destination: input.Destination }),
|
|
2078
|
-
...(input.EventTypes != null && { EventTypes: se_EventTypeList(input.EventTypes, context) }),
|
|
2079
|
-
...(input.Transport != null && { Transport: input.Transport }),
|
|
2080
|
-
...(input.Version != null && { Version: input.Version }),
|
|
2081
|
-
};
|
|
2082
|
-
};
|
|
2083
|
-
const se_NotifyWorkersRequest = (input, context) => {
|
|
2084
|
-
return {
|
|
2085
|
-
...(input.MessageText != null && { MessageText: input.MessageText }),
|
|
2086
|
-
...(input.Subject != null && { Subject: input.Subject }),
|
|
2087
|
-
...(input.WorkerIds != null && { WorkerIds: se_CustomerIdList(input.WorkerIds, context) }),
|
|
2088
|
-
};
|
|
2089
|
-
};
|
|
2090
|
-
const se_ParameterMapEntry = (input, context) => {
|
|
2091
|
-
return {
|
|
2092
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2093
|
-
...(input.Values != null && { Values: se_StringList(input.Values, context) }),
|
|
2094
|
-
};
|
|
2095
|
-
};
|
|
2096
|
-
const se_ParameterMapEntryList = (input, context) => {
|
|
2097
|
-
return input
|
|
2098
|
-
.filter((e) => e != null)
|
|
2099
|
-
.map((entry) => {
|
|
2100
|
-
return se_ParameterMapEntry(entry, context);
|
|
2101
|
-
});
|
|
2102
|
-
};
|
|
2103
|
-
const se_PolicyParameter = (input, context) => {
|
|
2104
|
-
return {
|
|
2105
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2106
|
-
...(input.MapEntries != null && { MapEntries: se_ParameterMapEntryList(input.MapEntries, context) }),
|
|
2107
|
-
...(input.Values != null && { Values: se_StringList(input.Values, context) }),
|
|
2108
|
-
};
|
|
2109
|
-
};
|
|
2110
|
-
const se_PolicyParameterList = (input, context) => {
|
|
2111
|
-
return input
|
|
2112
|
-
.filter((e) => e != null)
|
|
2113
|
-
.map((entry) => {
|
|
2114
|
-
return se_PolicyParameter(entry, context);
|
|
2115
|
-
});
|
|
2116
|
-
};
|
|
2117
|
-
const se_QualificationRequirement = (input, context) => {
|
|
2118
|
-
return {
|
|
2119
|
-
...(input.ActionsGuarded != null && { ActionsGuarded: input.ActionsGuarded }),
|
|
2120
|
-
...(input.Comparator != null && { Comparator: input.Comparator }),
|
|
2121
|
-
...(input.IntegerValues != null && { IntegerValues: se_IntegerList(input.IntegerValues, context) }),
|
|
2122
|
-
...(input.LocaleValues != null && { LocaleValues: se_LocaleList(input.LocaleValues, context) }),
|
|
2123
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2124
|
-
...(input.RequiredToPreview != null && { RequiredToPreview: input.RequiredToPreview }),
|
|
2125
|
-
};
|
|
2126
|
-
};
|
|
2127
|
-
const se_QualificationRequirementList = (input, context) => {
|
|
2128
|
-
return input
|
|
2129
|
-
.filter((e) => e != null)
|
|
2130
|
-
.map((entry) => {
|
|
2131
|
-
return se_QualificationRequirement(entry, context);
|
|
2132
|
-
});
|
|
2133
|
-
};
|
|
2134
|
-
const se_RejectAssignmentRequest = (input, context) => {
|
|
2135
|
-
return {
|
|
2136
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2137
|
-
...(input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }),
|
|
2138
|
-
};
|
|
2139
|
-
};
|
|
2140
|
-
const se_RejectQualificationRequestRequest = (input, context) => {
|
|
2141
|
-
return {
|
|
2142
|
-
...(input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId }),
|
|
2143
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
2144
|
-
};
|
|
2145
|
-
};
|
|
2146
|
-
const se_ReviewPolicy = (input, context) => {
|
|
2147
|
-
return {
|
|
2148
|
-
...(input.Parameters != null && { Parameters: se_PolicyParameterList(input.Parameters, context) }),
|
|
2149
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
2150
|
-
};
|
|
2151
|
-
};
|
|
2152
|
-
const se_ReviewPolicyLevelList = (input, context) => {
|
|
2153
|
-
return input
|
|
2154
|
-
.filter((e) => e != null)
|
|
2155
|
-
.map((entry) => {
|
|
2156
|
-
return entry;
|
|
2157
|
-
});
|
|
2158
|
-
};
|
|
2159
|
-
const se_SendBonusRequest = (input, context) => {
|
|
2160
|
-
return {
|
|
2161
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2162
|
-
...(input.BonusAmount != null && { BonusAmount: input.BonusAmount }),
|
|
2163
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
2164
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
2165
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
2166
|
-
};
|
|
2167
|
-
};
|
|
2168
|
-
const se_SendTestEventNotificationRequest = (input, context) => {
|
|
2169
|
-
return {
|
|
2170
|
-
...(input.Notification != null && { Notification: se_NotificationSpecification(input.Notification, context) }),
|
|
2171
|
-
...(input.TestEventType != null && { TestEventType: input.TestEventType }),
|
|
2172
|
-
};
|
|
2173
|
-
};
|
|
2174
|
-
const se_StringList = (input, context) => {
|
|
2175
|
-
return input
|
|
2176
|
-
.filter((e) => e != null)
|
|
2177
|
-
.map((entry) => {
|
|
2178
|
-
return entry;
|
|
2179
|
-
});
|
|
2180
|
-
};
|
|
2181
1622
|
const se_UpdateExpirationForHITRequest = (input, context) => {
|
|
2182
|
-
return {
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
};
|
|
2186
|
-
};
|
|
2187
|
-
const se_UpdateHITReviewStatusRequest = (input, context) => {
|
|
2188
|
-
return {
|
|
2189
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
2190
|
-
...(input.Revert != null && { Revert: input.Revert }),
|
|
2191
|
-
};
|
|
2192
|
-
};
|
|
2193
|
-
const se_UpdateHITTypeOfHITRequest = (input, context) => {
|
|
2194
|
-
return {
|
|
2195
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
2196
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2197
|
-
};
|
|
2198
|
-
};
|
|
2199
|
-
const se_UpdateNotificationSettingsRequest = (input, context) => {
|
|
2200
|
-
return {
|
|
2201
|
-
...(input.Active != null && { Active: input.Active }),
|
|
2202
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2203
|
-
...(input.Notification != null && { Notification: se_NotificationSpecification(input.Notification, context) }),
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
const se_UpdateQualificationTypeRequest = (input, context) => {
|
|
2207
|
-
return {
|
|
2208
|
-
...(input.AnswerKey != null && { AnswerKey: input.AnswerKey }),
|
|
2209
|
-
...(input.AutoGranted != null && { AutoGranted: input.AutoGranted }),
|
|
2210
|
-
...(input.AutoGrantedValue != null && { AutoGrantedValue: input.AutoGrantedValue }),
|
|
2211
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2212
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2213
|
-
...(input.QualificationTypeStatus != null && { QualificationTypeStatus: input.QualificationTypeStatus }),
|
|
2214
|
-
...(input.RetryDelayInSeconds != null && { RetryDelayInSeconds: input.RetryDelayInSeconds }),
|
|
2215
|
-
...(input.Test != null && { Test: input.Test }),
|
|
2216
|
-
...(input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }),
|
|
2217
|
-
};
|
|
2218
|
-
};
|
|
2219
|
-
const de_AcceptQualificationRequestResponse = (output, context) => {
|
|
2220
|
-
return {};
|
|
2221
|
-
};
|
|
2222
|
-
const de_ApproveAssignmentResponse = (output, context) => {
|
|
2223
|
-
return {};
|
|
1623
|
+
return take(input, {
|
|
1624
|
+
ExpireAt: (_) => Math.round(_.getTime() / 1000),
|
|
1625
|
+
HITId: [],
|
|
1626
|
+
});
|
|
2224
1627
|
};
|
|
2225
1628
|
const de_Assignment = (output, context) => {
|
|
2226
|
-
return {
|
|
2227
|
-
AcceptTime:
|
|
2228
|
-
Answer: __expectString
|
|
2229
|
-
ApprovalTime:
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RejectionTime)))
|
|
2241
|
-
: undefined,
|
|
2242
|
-
RequesterFeedback: __expectString(output.RequesterFeedback),
|
|
2243
|
-
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
2244
|
-
WorkerId: __expectString(output.WorkerId),
|
|
2245
|
-
};
|
|
1629
|
+
return take(output, {
|
|
1630
|
+
AcceptTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1631
|
+
Answer: __expectString,
|
|
1632
|
+
ApprovalTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1633
|
+
AssignmentId: __expectString,
|
|
1634
|
+
AssignmentStatus: __expectString,
|
|
1635
|
+
AutoApprovalTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1636
|
+
Deadline: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1637
|
+
HITId: __expectString,
|
|
1638
|
+
RejectionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1639
|
+
RequesterFeedback: __expectString,
|
|
1640
|
+
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1641
|
+
WorkerId: __expectString,
|
|
1642
|
+
});
|
|
2246
1643
|
};
|
|
2247
1644
|
const de_AssignmentList = (output, context) => {
|
|
2248
1645
|
const retVal = (output || [])
|
|
2249
1646
|
.filter((e) => e != null)
|
|
2250
1647
|
.map((entry) => {
|
|
2251
|
-
if (entry === null) {
|
|
2252
|
-
return null;
|
|
2253
|
-
}
|
|
2254
1648
|
return de_Assignment(entry, context);
|
|
2255
1649
|
});
|
|
2256
1650
|
return retVal;
|
|
2257
1651
|
};
|
|
2258
|
-
const de_AssociateQualificationWithWorkerResponse = (output, context) => {
|
|
2259
|
-
return {};
|
|
2260
|
-
};
|
|
2261
1652
|
const de_BonusPayment = (output, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
AssignmentId: __expectString
|
|
2264
|
-
BonusAmount: __expectString
|
|
2265
|
-
GrantTime:
|
|
2266
|
-
Reason: __expectString
|
|
2267
|
-
WorkerId: __expectString
|
|
2268
|
-
};
|
|
1653
|
+
return take(output, {
|
|
1654
|
+
AssignmentId: __expectString,
|
|
1655
|
+
BonusAmount: __expectString,
|
|
1656
|
+
GrantTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1657
|
+
Reason: __expectString,
|
|
1658
|
+
WorkerId: __expectString,
|
|
1659
|
+
});
|
|
2269
1660
|
};
|
|
2270
1661
|
const de_BonusPaymentList = (output, context) => {
|
|
2271
1662
|
const retVal = (output || [])
|
|
2272
1663
|
.filter((e) => e != null)
|
|
2273
1664
|
.map((entry) => {
|
|
2274
|
-
if (entry === null) {
|
|
2275
|
-
return null;
|
|
2276
|
-
}
|
|
2277
1665
|
return de_BonusPayment(entry, context);
|
|
2278
1666
|
});
|
|
2279
1667
|
return retVal;
|
|
2280
1668
|
};
|
|
2281
|
-
const de_CreateAdditionalAssignmentsForHITResponse = (output, context) => {
|
|
2282
|
-
return {};
|
|
2283
|
-
};
|
|
2284
1669
|
const de_CreateHITResponse = (output, context) => {
|
|
2285
|
-
return {
|
|
2286
|
-
HIT:
|
|
2287
|
-
};
|
|
2288
|
-
};
|
|
2289
|
-
const de_CreateHITTypeResponse = (output, context) => {
|
|
2290
|
-
return {
|
|
2291
|
-
HITTypeId: __expectString(output.HITTypeId),
|
|
2292
|
-
};
|
|
1670
|
+
return take(output, {
|
|
1671
|
+
HIT: (_) => de_HIT(_, context),
|
|
1672
|
+
});
|
|
2293
1673
|
};
|
|
2294
1674
|
const de_CreateHITWithHITTypeResponse = (output, context) => {
|
|
2295
|
-
return {
|
|
2296
|
-
HIT:
|
|
2297
|
-
};
|
|
1675
|
+
return take(output, {
|
|
1676
|
+
HIT: (_) => de_HIT(_, context),
|
|
1677
|
+
});
|
|
2298
1678
|
};
|
|
2299
1679
|
const de_CreateQualificationTypeResponse = (output, context) => {
|
|
2300
|
-
return {
|
|
2301
|
-
QualificationType:
|
|
2302
|
-
};
|
|
2303
|
-
};
|
|
2304
|
-
const de_CreateWorkerBlockResponse = (output, context) => {
|
|
2305
|
-
return {};
|
|
2306
|
-
};
|
|
2307
|
-
const de_DeleteHITResponse = (output, context) => {
|
|
2308
|
-
return {};
|
|
2309
|
-
};
|
|
2310
|
-
const de_DeleteQualificationTypeResponse = (output, context) => {
|
|
2311
|
-
return {};
|
|
2312
|
-
};
|
|
2313
|
-
const de_DeleteWorkerBlockResponse = (output, context) => {
|
|
2314
|
-
return {};
|
|
2315
|
-
};
|
|
2316
|
-
const de_DisassociateQualificationFromWorkerResponse = (output, context) => {
|
|
2317
|
-
return {};
|
|
2318
|
-
};
|
|
2319
|
-
const de_GetAccountBalanceResponse = (output, context) => {
|
|
2320
|
-
return {
|
|
2321
|
-
AvailableBalance: __expectString(output.AvailableBalance),
|
|
2322
|
-
OnHoldBalance: __expectString(output.OnHoldBalance),
|
|
2323
|
-
};
|
|
1680
|
+
return take(output, {
|
|
1681
|
+
QualificationType: (_) => de_QualificationType(_, context),
|
|
1682
|
+
});
|
|
2324
1683
|
};
|
|
2325
1684
|
const de_GetAssignmentResponse = (output, context) => {
|
|
2326
|
-
return {
|
|
2327
|
-
Assignment:
|
|
2328
|
-
HIT:
|
|
2329
|
-
};
|
|
2330
|
-
};
|
|
2331
|
-
const de_GetFileUploadURLResponse = (output, context) => {
|
|
2332
|
-
return {
|
|
2333
|
-
FileUploadURL: __expectString(output.FileUploadURL),
|
|
2334
|
-
};
|
|
1685
|
+
return take(output, {
|
|
1686
|
+
Assignment: (_) => de_Assignment(_, context),
|
|
1687
|
+
HIT: (_) => de_HIT(_, context),
|
|
1688
|
+
});
|
|
2335
1689
|
};
|
|
2336
1690
|
const de_GetHITResponse = (output, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
HIT:
|
|
2339
|
-
};
|
|
1691
|
+
return take(output, {
|
|
1692
|
+
HIT: (_) => de_HIT(_, context),
|
|
1693
|
+
});
|
|
2340
1694
|
};
|
|
2341
1695
|
const de_GetQualificationScoreResponse = (output, context) => {
|
|
2342
|
-
return {
|
|
2343
|
-
Qualification:
|
|
2344
|
-
};
|
|
1696
|
+
return take(output, {
|
|
1697
|
+
Qualification: (_) => de_Qualification(_, context),
|
|
1698
|
+
});
|
|
2345
1699
|
};
|
|
2346
1700
|
const de_GetQualificationTypeResponse = (output, context) => {
|
|
2347
|
-
return {
|
|
2348
|
-
QualificationType:
|
|
2349
|
-
};
|
|
1701
|
+
return take(output, {
|
|
1702
|
+
QualificationType: (_) => de_QualificationType(_, context),
|
|
1703
|
+
});
|
|
2350
1704
|
};
|
|
2351
1705
|
const de_HIT = (output, context) => {
|
|
2352
|
-
return {
|
|
2353
|
-
AssignmentDurationInSeconds: __expectLong
|
|
2354
|
-
AutoApprovalDelayInSeconds: __expectLong
|
|
2355
|
-
CreationTime:
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
RequesterAnnotation: __expectString(output.RequesterAnnotation),
|
|
2376
|
-
Reward: __expectString(output.Reward),
|
|
2377
|
-
Title: __expectString(output.Title),
|
|
2378
|
-
};
|
|
1706
|
+
return take(output, {
|
|
1707
|
+
AssignmentDurationInSeconds: __expectLong,
|
|
1708
|
+
AutoApprovalDelayInSeconds: __expectLong,
|
|
1709
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1710
|
+
Description: __expectString,
|
|
1711
|
+
Expiration: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1712
|
+
HITGroupId: __expectString,
|
|
1713
|
+
HITId: __expectString,
|
|
1714
|
+
HITLayoutId: __expectString,
|
|
1715
|
+
HITReviewStatus: __expectString,
|
|
1716
|
+
HITStatus: __expectString,
|
|
1717
|
+
HITTypeId: __expectString,
|
|
1718
|
+
Keywords: __expectString,
|
|
1719
|
+
MaxAssignments: __expectInt32,
|
|
1720
|
+
NumberOfAssignmentsAvailable: __expectInt32,
|
|
1721
|
+
NumberOfAssignmentsCompleted: __expectInt32,
|
|
1722
|
+
NumberOfAssignmentsPending: __expectInt32,
|
|
1723
|
+
QualificationRequirements: _json,
|
|
1724
|
+
Question: __expectString,
|
|
1725
|
+
RequesterAnnotation: __expectString,
|
|
1726
|
+
Reward: __expectString,
|
|
1727
|
+
Title: __expectString,
|
|
1728
|
+
});
|
|
2379
1729
|
};
|
|
2380
1730
|
const de_HITList = (output, context) => {
|
|
2381
1731
|
const retVal = (output || [])
|
|
2382
1732
|
.filter((e) => e != null)
|
|
2383
1733
|
.map((entry) => {
|
|
2384
|
-
if (entry === null) {
|
|
2385
|
-
return null;
|
|
2386
|
-
}
|
|
2387
1734
|
return de_HIT(entry, context);
|
|
2388
1735
|
});
|
|
2389
1736
|
return retVal;
|
|
2390
1737
|
};
|
|
2391
|
-
const de_IntegerList = (output, context) => {
|
|
2392
|
-
const retVal = (output || [])
|
|
2393
|
-
.filter((e) => e != null)
|
|
2394
|
-
.map((entry) => {
|
|
2395
|
-
if (entry === null) {
|
|
2396
|
-
return null;
|
|
2397
|
-
}
|
|
2398
|
-
return __expectInt32(entry);
|
|
2399
|
-
});
|
|
2400
|
-
return retVal;
|
|
2401
|
-
};
|
|
2402
1738
|
const de_ListAssignmentsForHITResponse = (output, context) => {
|
|
2403
|
-
return {
|
|
2404
|
-
Assignments:
|
|
2405
|
-
NextToken: __expectString
|
|
2406
|
-
NumResults: __expectInt32
|
|
2407
|
-
};
|
|
1739
|
+
return take(output, {
|
|
1740
|
+
Assignments: (_) => de_AssignmentList(_, context),
|
|
1741
|
+
NextToken: __expectString,
|
|
1742
|
+
NumResults: __expectInt32,
|
|
1743
|
+
});
|
|
2408
1744
|
};
|
|
2409
1745
|
const de_ListBonusPaymentsResponse = (output, context) => {
|
|
2410
|
-
return {
|
|
2411
|
-
BonusPayments:
|
|
2412
|
-
NextToken: __expectString
|
|
2413
|
-
NumResults: __expectInt32
|
|
2414
|
-
};
|
|
1746
|
+
return take(output, {
|
|
1747
|
+
BonusPayments: (_) => de_BonusPaymentList(_, context),
|
|
1748
|
+
NextToken: __expectString,
|
|
1749
|
+
NumResults: __expectInt32,
|
|
1750
|
+
});
|
|
2415
1751
|
};
|
|
2416
1752
|
const de_ListHITsForQualificationTypeResponse = (output, context) => {
|
|
2417
|
-
return {
|
|
2418
|
-
HITs:
|
|
2419
|
-
NextToken: __expectString
|
|
2420
|
-
NumResults: __expectInt32
|
|
2421
|
-
};
|
|
1753
|
+
return take(output, {
|
|
1754
|
+
HITs: (_) => de_HITList(_, context),
|
|
1755
|
+
NextToken: __expectString,
|
|
1756
|
+
NumResults: __expectInt32,
|
|
1757
|
+
});
|
|
2422
1758
|
};
|
|
2423
1759
|
const de_ListHITsResponse = (output, context) => {
|
|
2424
|
-
return {
|
|
2425
|
-
HITs:
|
|
2426
|
-
NextToken: __expectString
|
|
2427
|
-
NumResults: __expectInt32
|
|
2428
|
-
};
|
|
1760
|
+
return take(output, {
|
|
1761
|
+
HITs: (_) => de_HITList(_, context),
|
|
1762
|
+
NextToken: __expectString,
|
|
1763
|
+
NumResults: __expectInt32,
|
|
1764
|
+
});
|
|
2429
1765
|
};
|
|
2430
1766
|
const de_ListQualificationRequestsResponse = (output, context) => {
|
|
2431
|
-
return {
|
|
2432
|
-
NextToken: __expectString
|
|
2433
|
-
NumResults: __expectInt32
|
|
2434
|
-
QualificationRequests:
|
|
2435
|
-
|
|
2436
|
-
: undefined,
|
|
2437
|
-
};
|
|
1767
|
+
return take(output, {
|
|
1768
|
+
NextToken: __expectString,
|
|
1769
|
+
NumResults: __expectInt32,
|
|
1770
|
+
QualificationRequests: (_) => de_QualificationRequestList(_, context),
|
|
1771
|
+
});
|
|
2438
1772
|
};
|
|
2439
1773
|
const de_ListQualificationTypesResponse = (output, context) => {
|
|
2440
|
-
return {
|
|
2441
|
-
NextToken: __expectString
|
|
2442
|
-
NumResults: __expectInt32
|
|
2443
|
-
QualificationTypes:
|
|
2444
|
-
};
|
|
2445
|
-
};
|
|
2446
|
-
const de_ListReviewableHITsResponse = (output, context) => {
|
|
2447
|
-
return {
|
|
2448
|
-
HITs: output.HITs != null ? de_HITList(output.HITs, context) : undefined,
|
|
2449
|
-
NextToken: __expectString(output.NextToken),
|
|
2450
|
-
NumResults: __expectInt32(output.NumResults),
|
|
2451
|
-
};
|
|
2452
|
-
};
|
|
2453
|
-
const de_ListReviewPolicyResultsForHITResponse = (output, context) => {
|
|
2454
|
-
return {
|
|
2455
|
-
AssignmentReviewPolicy: output.AssignmentReviewPolicy != null ? de_ReviewPolicy(output.AssignmentReviewPolicy, context) : undefined,
|
|
2456
|
-
AssignmentReviewReport: output.AssignmentReviewReport != null ? de_ReviewReport(output.AssignmentReviewReport, context) : undefined,
|
|
2457
|
-
HITId: __expectString(output.HITId),
|
|
2458
|
-
HITReviewPolicy: output.HITReviewPolicy != null ? de_ReviewPolicy(output.HITReviewPolicy, context) : undefined,
|
|
2459
|
-
HITReviewReport: output.HITReviewReport != null ? de_ReviewReport(output.HITReviewReport, context) : undefined,
|
|
2460
|
-
NextToken: __expectString(output.NextToken),
|
|
2461
|
-
};
|
|
2462
|
-
};
|
|
2463
|
-
const de_ListWorkerBlocksResponse = (output, context) => {
|
|
2464
|
-
return {
|
|
2465
|
-
NextToken: __expectString(output.NextToken),
|
|
2466
|
-
NumResults: __expectInt32(output.NumResults),
|
|
2467
|
-
WorkerBlocks: output.WorkerBlocks != null ? de_WorkerBlockList(output.WorkerBlocks, context) : undefined,
|
|
2468
|
-
};
|
|
2469
|
-
};
|
|
2470
|
-
const de_ListWorkersWithQualificationTypeResponse = (output, context) => {
|
|
2471
|
-
return {
|
|
2472
|
-
NextToken: __expectString(output.NextToken),
|
|
2473
|
-
NumResults: __expectInt32(output.NumResults),
|
|
2474
|
-
Qualifications: output.Qualifications != null ? de_QualificationList(output.Qualifications, context) : undefined,
|
|
2475
|
-
};
|
|
2476
|
-
};
|
|
2477
|
-
const de_Locale = (output, context) => {
|
|
2478
|
-
return {
|
|
2479
|
-
Country: __expectString(output.Country),
|
|
2480
|
-
Subdivision: __expectString(output.Subdivision),
|
|
2481
|
-
};
|
|
2482
|
-
};
|
|
2483
|
-
const de_LocaleList = (output, context) => {
|
|
2484
|
-
const retVal = (output || [])
|
|
2485
|
-
.filter((e) => e != null)
|
|
2486
|
-
.map((entry) => {
|
|
2487
|
-
if (entry === null) {
|
|
2488
|
-
return null;
|
|
2489
|
-
}
|
|
2490
|
-
return de_Locale(entry, context);
|
|
1774
|
+
return take(output, {
|
|
1775
|
+
NextToken: __expectString,
|
|
1776
|
+
NumResults: __expectInt32,
|
|
1777
|
+
QualificationTypes: (_) => de_QualificationTypeList(_, context),
|
|
2491
1778
|
});
|
|
2492
|
-
return retVal;
|
|
2493
1779
|
};
|
|
2494
|
-
const
|
|
2495
|
-
return {
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
};
|
|
2500
|
-
};
|
|
2501
|
-
const de_NotifyWorkersFailureStatusList = (output, context) => {
|
|
2502
|
-
const retVal = (output || [])
|
|
2503
|
-
.filter((e) => e != null)
|
|
2504
|
-
.map((entry) => {
|
|
2505
|
-
if (entry === null) {
|
|
2506
|
-
return null;
|
|
2507
|
-
}
|
|
2508
|
-
return de_NotifyWorkersFailureStatus(entry, context);
|
|
1780
|
+
const de_ListReviewableHITsResponse = (output, context) => {
|
|
1781
|
+
return take(output, {
|
|
1782
|
+
HITs: (_) => de_HITList(_, context),
|
|
1783
|
+
NextToken: __expectString,
|
|
1784
|
+
NumResults: __expectInt32,
|
|
2509
1785
|
});
|
|
2510
|
-
return retVal;
|
|
2511
|
-
};
|
|
2512
|
-
const de_NotifyWorkersResponse = (output, context) => {
|
|
2513
|
-
return {
|
|
2514
|
-
NotifyWorkersFailureStatuses: output.NotifyWorkersFailureStatuses != null
|
|
2515
|
-
? de_NotifyWorkersFailureStatusList(output.NotifyWorkersFailureStatuses, context)
|
|
2516
|
-
: undefined,
|
|
2517
|
-
};
|
|
2518
|
-
};
|
|
2519
|
-
const de_ParameterMapEntry = (output, context) => {
|
|
2520
|
-
return {
|
|
2521
|
-
Key: __expectString(output.Key),
|
|
2522
|
-
Values: output.Values != null ? de_StringList(output.Values, context) : undefined,
|
|
2523
|
-
};
|
|
2524
1786
|
};
|
|
2525
|
-
const
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
1787
|
+
const de_ListReviewPolicyResultsForHITResponse = (output, context) => {
|
|
1788
|
+
return take(output, {
|
|
1789
|
+
AssignmentReviewPolicy: _json,
|
|
1790
|
+
AssignmentReviewReport: (_) => de_ReviewReport(_, context),
|
|
1791
|
+
HITId: __expectString,
|
|
1792
|
+
HITReviewPolicy: _json,
|
|
1793
|
+
HITReviewReport: (_) => de_ReviewReport(_, context),
|
|
1794
|
+
NextToken: __expectString,
|
|
2533
1795
|
});
|
|
2534
|
-
return retVal;
|
|
2535
1796
|
};
|
|
2536
|
-
const
|
|
2537
|
-
return {
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
};
|
|
2542
|
-
};
|
|
2543
|
-
const de_PolicyParameterList = (output, context) => {
|
|
2544
|
-
const retVal = (output || [])
|
|
2545
|
-
.filter((e) => e != null)
|
|
2546
|
-
.map((entry) => {
|
|
2547
|
-
if (entry === null) {
|
|
2548
|
-
return null;
|
|
2549
|
-
}
|
|
2550
|
-
return de_PolicyParameter(entry, context);
|
|
1797
|
+
const de_ListWorkersWithQualificationTypeResponse = (output, context) => {
|
|
1798
|
+
return take(output, {
|
|
1799
|
+
NextToken: __expectString,
|
|
1800
|
+
NumResults: __expectInt32,
|
|
1801
|
+
Qualifications: (_) => de_QualificationList(_, context),
|
|
2551
1802
|
});
|
|
2552
|
-
return retVal;
|
|
2553
1803
|
};
|
|
2554
1804
|
const de_Qualification = (output, context) => {
|
|
2555
|
-
return {
|
|
2556
|
-
GrantTime:
|
|
2557
|
-
IntegerValue: __expectInt32
|
|
2558
|
-
LocaleValue:
|
|
2559
|
-
QualificationTypeId: __expectString
|
|
2560
|
-
Status: __expectString
|
|
2561
|
-
WorkerId: __expectString
|
|
2562
|
-
};
|
|
1805
|
+
return take(output, {
|
|
1806
|
+
GrantTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1807
|
+
IntegerValue: __expectInt32,
|
|
1808
|
+
LocaleValue: _json,
|
|
1809
|
+
QualificationTypeId: __expectString,
|
|
1810
|
+
Status: __expectString,
|
|
1811
|
+
WorkerId: __expectString,
|
|
1812
|
+
});
|
|
2563
1813
|
};
|
|
2564
1814
|
const de_QualificationList = (output, context) => {
|
|
2565
1815
|
const retVal = (output || [])
|
|
2566
1816
|
.filter((e) => e != null)
|
|
2567
1817
|
.map((entry) => {
|
|
2568
|
-
if (entry === null) {
|
|
2569
|
-
return null;
|
|
2570
|
-
}
|
|
2571
1818
|
return de_Qualification(entry, context);
|
|
2572
1819
|
});
|
|
2573
1820
|
return retVal;
|
|
2574
1821
|
};
|
|
2575
1822
|
const de_QualificationRequest = (output, context) => {
|
|
2576
|
-
return {
|
|
2577
|
-
Answer: __expectString
|
|
2578
|
-
QualificationRequestId: __expectString
|
|
2579
|
-
QualificationTypeId: __expectString
|
|
2580
|
-
SubmitTime:
|
|
2581
|
-
Test: __expectString
|
|
2582
|
-
WorkerId: __expectString
|
|
2583
|
-
};
|
|
1823
|
+
return take(output, {
|
|
1824
|
+
Answer: __expectString,
|
|
1825
|
+
QualificationRequestId: __expectString,
|
|
1826
|
+
QualificationTypeId: __expectString,
|
|
1827
|
+
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1828
|
+
Test: __expectString,
|
|
1829
|
+
WorkerId: __expectString,
|
|
1830
|
+
});
|
|
2584
1831
|
};
|
|
2585
1832
|
const de_QualificationRequestList = (output, context) => {
|
|
2586
1833
|
const retVal = (output || [])
|
|
2587
1834
|
.filter((e) => e != null)
|
|
2588
1835
|
.map((entry) => {
|
|
2589
|
-
if (entry === null) {
|
|
2590
|
-
return null;
|
|
2591
|
-
}
|
|
2592
1836
|
return de_QualificationRequest(entry, context);
|
|
2593
1837
|
});
|
|
2594
1838
|
return retVal;
|
|
2595
1839
|
};
|
|
2596
|
-
const de_QualificationRequirement = (output, context) => {
|
|
2597
|
-
return {
|
|
2598
|
-
ActionsGuarded: __expectString(output.ActionsGuarded),
|
|
2599
|
-
Comparator: __expectString(output.Comparator),
|
|
2600
|
-
IntegerValues: output.IntegerValues != null ? de_IntegerList(output.IntegerValues, context) : undefined,
|
|
2601
|
-
LocaleValues: output.LocaleValues != null ? de_LocaleList(output.LocaleValues, context) : undefined,
|
|
2602
|
-
QualificationTypeId: __expectString(output.QualificationTypeId),
|
|
2603
|
-
RequiredToPreview: __expectBoolean(output.RequiredToPreview),
|
|
2604
|
-
};
|
|
2605
|
-
};
|
|
2606
|
-
const de_QualificationRequirementList = (output, context) => {
|
|
2607
|
-
const retVal = (output || [])
|
|
2608
|
-
.filter((e) => e != null)
|
|
2609
|
-
.map((entry) => {
|
|
2610
|
-
if (entry === null) {
|
|
2611
|
-
return null;
|
|
2612
|
-
}
|
|
2613
|
-
return de_QualificationRequirement(entry, context);
|
|
2614
|
-
});
|
|
2615
|
-
return retVal;
|
|
2616
|
-
};
|
|
2617
1840
|
const de_QualificationType = (output, context) => {
|
|
2618
|
-
return {
|
|
2619
|
-
AnswerKey: __expectString
|
|
2620
|
-
AutoGranted: __expectBoolean
|
|
2621
|
-
AutoGrantedValue: __expectInt32
|
|
2622
|
-
CreationTime:
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
TestDurationInSeconds: __expectLong(output.TestDurationInSeconds),
|
|
2634
|
-
};
|
|
1841
|
+
return take(output, {
|
|
1842
|
+
AnswerKey: __expectString,
|
|
1843
|
+
AutoGranted: __expectBoolean,
|
|
1844
|
+
AutoGrantedValue: __expectInt32,
|
|
1845
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1846
|
+
Description: __expectString,
|
|
1847
|
+
IsRequestable: __expectBoolean,
|
|
1848
|
+
Keywords: __expectString,
|
|
1849
|
+
Name: __expectString,
|
|
1850
|
+
QualificationTypeId: __expectString,
|
|
1851
|
+
QualificationTypeStatus: __expectString,
|
|
1852
|
+
RetryDelayInSeconds: __expectLong,
|
|
1853
|
+
Test: __expectString,
|
|
1854
|
+
TestDurationInSeconds: __expectLong,
|
|
1855
|
+
});
|
|
2635
1856
|
};
|
|
2636
1857
|
const de_QualificationTypeList = (output, context) => {
|
|
2637
1858
|
const retVal = (output || [])
|
|
2638
1859
|
.filter((e) => e != null)
|
|
2639
1860
|
.map((entry) => {
|
|
2640
|
-
if (entry === null) {
|
|
2641
|
-
return null;
|
|
2642
|
-
}
|
|
2643
1861
|
return de_QualificationType(entry, context);
|
|
2644
1862
|
});
|
|
2645
1863
|
return retVal;
|
|
2646
1864
|
};
|
|
2647
|
-
const de_RejectAssignmentResponse = (output, context) => {
|
|
2648
|
-
return {};
|
|
2649
|
-
};
|
|
2650
|
-
const de_RejectQualificationRequestResponse = (output, context) => {
|
|
2651
|
-
return {};
|
|
2652
|
-
};
|
|
2653
|
-
const de_RequestError = (output, context) => {
|
|
2654
|
-
return {
|
|
2655
|
-
Message: __expectString(output.Message),
|
|
2656
|
-
TurkErrorCode: __expectString(output.TurkErrorCode),
|
|
2657
|
-
};
|
|
2658
|
-
};
|
|
2659
1865
|
const de_ReviewActionDetail = (output, context) => {
|
|
2660
|
-
return {
|
|
2661
|
-
ActionId: __expectString
|
|
2662
|
-
ActionName: __expectString
|
|
2663
|
-
CompleteTime:
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
TargetType: __expectString(output.TargetType),
|
|
2671
|
-
};
|
|
1866
|
+
return take(output, {
|
|
1867
|
+
ActionId: __expectString,
|
|
1868
|
+
ActionName: __expectString,
|
|
1869
|
+
CompleteTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1870
|
+
ErrorCode: __expectString,
|
|
1871
|
+
Result: __expectString,
|
|
1872
|
+
Status: __expectString,
|
|
1873
|
+
TargetId: __expectString,
|
|
1874
|
+
TargetType: __expectString,
|
|
1875
|
+
});
|
|
2672
1876
|
};
|
|
2673
1877
|
const de_ReviewActionDetailList = (output, context) => {
|
|
2674
1878
|
const retVal = (output || [])
|
|
2675
1879
|
.filter((e) => e != null)
|
|
2676
1880
|
.map((entry) => {
|
|
2677
|
-
if (entry === null) {
|
|
2678
|
-
return null;
|
|
2679
|
-
}
|
|
2680
1881
|
return de_ReviewActionDetail(entry, context);
|
|
2681
1882
|
});
|
|
2682
1883
|
return retVal;
|
|
2683
1884
|
};
|
|
2684
|
-
const de_ReviewPolicy = (output, context) => {
|
|
2685
|
-
return {
|
|
2686
|
-
Parameters: output.Parameters != null ? de_PolicyParameterList(output.Parameters, context) : undefined,
|
|
2687
|
-
PolicyName: __expectString(output.PolicyName),
|
|
2688
|
-
};
|
|
2689
|
-
};
|
|
2690
1885
|
const de_ReviewReport = (output, context) => {
|
|
2691
|
-
return {
|
|
2692
|
-
ReviewActions:
|
|
2693
|
-
ReviewResults:
|
|
2694
|
-
};
|
|
2695
|
-
};
|
|
2696
|
-
const de_ReviewResultDetail = (output, context) => {
|
|
2697
|
-
return {
|
|
2698
|
-
ActionId: __expectString(output.ActionId),
|
|
2699
|
-
Key: __expectString(output.Key),
|
|
2700
|
-
QuestionId: __expectString(output.QuestionId),
|
|
2701
|
-
SubjectId: __expectString(output.SubjectId),
|
|
2702
|
-
SubjectType: __expectString(output.SubjectType),
|
|
2703
|
-
Value: __expectString(output.Value),
|
|
2704
|
-
};
|
|
2705
|
-
};
|
|
2706
|
-
const de_ReviewResultDetailList = (output, context) => {
|
|
2707
|
-
const retVal = (output || [])
|
|
2708
|
-
.filter((e) => e != null)
|
|
2709
|
-
.map((entry) => {
|
|
2710
|
-
if (entry === null) {
|
|
2711
|
-
return null;
|
|
2712
|
-
}
|
|
2713
|
-
return de_ReviewResultDetail(entry, context);
|
|
2714
|
-
});
|
|
2715
|
-
return retVal;
|
|
2716
|
-
};
|
|
2717
|
-
const de_SendBonusResponse = (output, context) => {
|
|
2718
|
-
return {};
|
|
2719
|
-
};
|
|
2720
|
-
const de_SendTestEventNotificationResponse = (output, context) => {
|
|
2721
|
-
return {};
|
|
2722
|
-
};
|
|
2723
|
-
const de_ServiceFault = (output, context) => {
|
|
2724
|
-
return {
|
|
2725
|
-
Message: __expectString(output.Message),
|
|
2726
|
-
TurkErrorCode: __expectString(output.TurkErrorCode),
|
|
2727
|
-
};
|
|
2728
|
-
};
|
|
2729
|
-
const de_StringList = (output, context) => {
|
|
2730
|
-
const retVal = (output || [])
|
|
2731
|
-
.filter((e) => e != null)
|
|
2732
|
-
.map((entry) => {
|
|
2733
|
-
if (entry === null) {
|
|
2734
|
-
return null;
|
|
2735
|
-
}
|
|
2736
|
-
return __expectString(entry);
|
|
1886
|
+
return take(output, {
|
|
1887
|
+
ReviewActions: (_) => de_ReviewActionDetailList(_, context),
|
|
1888
|
+
ReviewResults: _json,
|
|
2737
1889
|
});
|
|
2738
|
-
return retVal;
|
|
2739
|
-
};
|
|
2740
|
-
const de_UpdateExpirationForHITResponse = (output, context) => {
|
|
2741
|
-
return {};
|
|
2742
|
-
};
|
|
2743
|
-
const de_UpdateHITReviewStatusResponse = (output, context) => {
|
|
2744
|
-
return {};
|
|
2745
|
-
};
|
|
2746
|
-
const de_UpdateHITTypeOfHITResponse = (output, context) => {
|
|
2747
|
-
return {};
|
|
2748
|
-
};
|
|
2749
|
-
const de_UpdateNotificationSettingsResponse = (output, context) => {
|
|
2750
|
-
return {};
|
|
2751
1890
|
};
|
|
2752
1891
|
const de_UpdateQualificationTypeResponse = (output, context) => {
|
|
2753
|
-
return {
|
|
2754
|
-
QualificationType:
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
const de_WorkerBlock = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
Reason: __expectString(output.Reason),
|
|
2760
|
-
WorkerId: __expectString(output.WorkerId),
|
|
2761
|
-
};
|
|
2762
|
-
};
|
|
2763
|
-
const de_WorkerBlockList = (output, context) => {
|
|
2764
|
-
const retVal = (output || [])
|
|
2765
|
-
.filter((e) => e != null)
|
|
2766
|
-
.map((entry) => {
|
|
2767
|
-
if (entry === null) {
|
|
2768
|
-
return null;
|
|
2769
|
-
}
|
|
2770
|
-
return de_WorkerBlock(entry, context);
|
|
1892
|
+
return take(output, {
|
|
1893
|
+
QualificationType: (_) => de_QualificationType(_, context),
|
|
2771
1894
|
});
|
|
2772
|
-
return retVal;
|
|
2773
1895
|
};
|
|
2774
1896
|
const deserializeMetadata = (output) => ({
|
|
2775
1897
|
httpStatusCode: output.statusCode,
|
|
@@ -2784,6 +1906,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2784
1906
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2785
1907
|
};
|
|
2786
1908
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1909
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2787
1910
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2788
1911
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2789
1912
|
const contents = {
|
|
@@ -2802,6 +1925,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2802
1925
|
}
|
|
2803
1926
|
return new __HttpRequest(contents);
|
|
2804
1927
|
};
|
|
1928
|
+
function sharedHeaders(operation) {
|
|
1929
|
+
return {
|
|
1930
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1931
|
+
"x-amz-target": `MTurkRequesterServiceV20170117.${operation}`,
|
|
1932
|
+
};
|
|
1933
|
+
}
|
|
2805
1934
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2806
1935
|
if (encoded.length) {
|
|
2807
1936
|
return JSON.parse(encoded);
|