@aws-sdk/client-mturk 3.312.0 → 3.316.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/MTurk.js +43 -546
- package/dist-cjs/protocols/Aws_json1_1.js +304 -1064
- package/dist-es/MTurk.js +43 -546
- package/dist-es/protocols/Aws_json1_1.js +305 -1065
- package/dist-types/MTurk.d.ts +47 -475
- package/dist-types/ts3.4/MTurk.d.ts +2 -1
- package/package.json +6 -6
|
@@ -1,209 +1,209 @@
|
|
|
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
6
|
const headers = sharedHeaders("AcceptQualificationRequest");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_ApproveAssignmentCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("ApproveAssignment");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_AssociateQualificationWithWorkerCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("AssociateQualificationWithWorker");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_CreateAdditionalAssignmentsForHITCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateAdditionalAssignmentsForHIT");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_CreateHITCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("CreateHIT");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_CreateHITTypeCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("CreateHITType");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_CreateHITWithHITTypeCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("CreateHITWithHITType");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_CreateQualificationTypeCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("CreateQualificationType");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_CreateWorkerBlockCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("CreateWorkerBlock");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DeleteHITCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DeleteHIT");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_DeleteQualificationTypeCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DeleteQualificationType");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_DeleteWorkerBlockCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DeleteWorkerBlock");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_DisassociateQualificationFromWorkerCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("DisassociateQualificationFromWorker");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_GetAccountBalanceCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("GetAccountBalance");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_GetAssignmentCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("GetAssignment");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_GetFileUploadURLCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("GetFileUploadURL");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_GetHITCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("GetHIT");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_GetQualificationScoreCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("GetQualificationScore");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_GetQualificationTypeCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("GetQualificationType");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_ListAssignmentsForHITCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("ListAssignmentsForHIT");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const se_ListBonusPaymentsCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("ListBonusPayments");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const se_ListHITsCommand = async (input, context) => {
|
|
132
132
|
const headers = sharedHeaders("ListHITs");
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
137
|
export const se_ListHITsForQualificationTypeCommand = async (input, context) => {
|
|
138
138
|
const headers = sharedHeaders("ListHITsForQualificationType");
|
|
139
139
|
let body;
|
|
140
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
141
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
142
|
};
|
|
143
143
|
export const se_ListQualificationRequestsCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("ListQualificationRequests");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
export const se_ListQualificationTypesCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("ListQualificationTypes");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
export const se_ListReviewableHITsCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("ListReviewableHITs");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
export const se_ListReviewPolicyResultsForHITCommand = async (input, context) => {
|
|
162
162
|
const headers = sharedHeaders("ListReviewPolicyResultsForHIT");
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
167
|
export const se_ListWorkerBlocksCommand = async (input, context) => {
|
|
168
168
|
const headers = sharedHeaders("ListWorkerBlocks");
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
171
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
172
|
};
|
|
173
173
|
export const se_ListWorkersWithQualificationTypeCommand = async (input, context) => {
|
|
174
174
|
const headers = sharedHeaders("ListWorkersWithQualificationType");
|
|
175
175
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
176
|
+
body = JSON.stringify(_json(input));
|
|
177
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
178
|
};
|
|
179
179
|
export const se_NotifyWorkersCommand = async (input, context) => {
|
|
180
180
|
const headers = sharedHeaders("NotifyWorkers");
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
185
|
export const se_RejectAssignmentCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("RejectAssignment");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
export const se_RejectQualificationRequestCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("RejectQualificationRequest");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
export const se_SendBonusCommand = async (input, context) => {
|
|
198
198
|
const headers = sharedHeaders("SendBonus");
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
203
|
export const se_SendTestEventNotificationCommand = async (input, context) => {
|
|
204
204
|
const headers = sharedHeaders("SendTestEventNotification");
|
|
205
205
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
207
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
208
|
};
|
|
209
209
|
export const se_UpdateExpirationForHITCommand = async (input, context) => {
|
|
@@ -215,25 +215,25 @@ export const se_UpdateExpirationForHITCommand = async (input, context) => {
|
|
|
215
215
|
export const se_UpdateHITReviewStatusCommand = async (input, context) => {
|
|
216
216
|
const headers = sharedHeaders("UpdateHITReviewStatus");
|
|
217
217
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(_json(input));
|
|
219
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
220
|
};
|
|
221
221
|
export const se_UpdateHITTypeOfHITCommand = async (input, context) => {
|
|
222
222
|
const headers = sharedHeaders("UpdateHITTypeOfHIT");
|
|
223
223
|
let body;
|
|
224
|
-
body = JSON.stringify(
|
|
224
|
+
body = JSON.stringify(_json(input));
|
|
225
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
226
|
};
|
|
227
227
|
export const se_UpdateNotificationSettingsCommand = async (input, context) => {
|
|
228
228
|
const headers = sharedHeaders("UpdateNotificationSettings");
|
|
229
229
|
let body;
|
|
230
|
-
body = JSON.stringify(
|
|
230
|
+
body = JSON.stringify(_json(input));
|
|
231
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
232
|
};
|
|
233
233
|
export const se_UpdateQualificationTypeCommand = async (input, context) => {
|
|
234
234
|
const headers = sharedHeaders("UpdateQualificationType");
|
|
235
235
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify(_json(input));
|
|
237
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
238
|
};
|
|
239
239
|
export const de_AcceptQualificationRequestCommand = async (output, context) => {
|
|
@@ -242,12 +242,12 @@ export const de_AcceptQualificationRequestCommand = async (output, context) => {
|
|
|
242
242
|
}
|
|
243
243
|
const data = await parseBody(output.body, context);
|
|
244
244
|
let contents = {};
|
|
245
|
-
contents =
|
|
245
|
+
contents = _json(data);
|
|
246
246
|
const response = {
|
|
247
247
|
$metadata: deserializeMetadata(output),
|
|
248
248
|
...contents,
|
|
249
249
|
};
|
|
250
|
-
return
|
|
250
|
+
return response;
|
|
251
251
|
};
|
|
252
252
|
const de_AcceptQualificationRequestCommandError = async (output, context) => {
|
|
253
253
|
const parsedOutput = {
|
|
@@ -264,10 +264,9 @@ const de_AcceptQualificationRequestCommandError = async (output, context) => {
|
|
|
264
264
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
265
265
|
default:
|
|
266
266
|
const parsedBody = parsedOutput.body;
|
|
267
|
-
throwDefaultError({
|
|
267
|
+
return throwDefaultError({
|
|
268
268
|
output,
|
|
269
269
|
parsedBody,
|
|
270
|
-
exceptionCtor: __BaseException,
|
|
271
270
|
errorCode,
|
|
272
271
|
});
|
|
273
272
|
}
|
|
@@ -278,12 +277,12 @@ export const de_ApproveAssignmentCommand = async (output, context) => {
|
|
|
278
277
|
}
|
|
279
278
|
const data = await parseBody(output.body, context);
|
|
280
279
|
let contents = {};
|
|
281
|
-
contents =
|
|
280
|
+
contents = _json(data);
|
|
282
281
|
const response = {
|
|
283
282
|
$metadata: deserializeMetadata(output),
|
|
284
283
|
...contents,
|
|
285
284
|
};
|
|
286
|
-
return
|
|
285
|
+
return response;
|
|
287
286
|
};
|
|
288
287
|
const de_ApproveAssignmentCommandError = async (output, context) => {
|
|
289
288
|
const parsedOutput = {
|
|
@@ -300,10 +299,9 @@ const de_ApproveAssignmentCommandError = async (output, context) => {
|
|
|
300
299
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
301
300
|
default:
|
|
302
301
|
const parsedBody = parsedOutput.body;
|
|
303
|
-
throwDefaultError({
|
|
302
|
+
return throwDefaultError({
|
|
304
303
|
output,
|
|
305
304
|
parsedBody,
|
|
306
|
-
exceptionCtor: __BaseException,
|
|
307
305
|
errorCode,
|
|
308
306
|
});
|
|
309
307
|
}
|
|
@@ -314,12 +312,12 @@ export const de_AssociateQualificationWithWorkerCommand = async (output, context
|
|
|
314
312
|
}
|
|
315
313
|
const data = await parseBody(output.body, context);
|
|
316
314
|
let contents = {};
|
|
317
|
-
contents =
|
|
315
|
+
contents = _json(data);
|
|
318
316
|
const response = {
|
|
319
317
|
$metadata: deserializeMetadata(output),
|
|
320
318
|
...contents,
|
|
321
319
|
};
|
|
322
|
-
return
|
|
320
|
+
return response;
|
|
323
321
|
};
|
|
324
322
|
const de_AssociateQualificationWithWorkerCommandError = async (output, context) => {
|
|
325
323
|
const parsedOutput = {
|
|
@@ -336,10 +334,9 @@ const de_AssociateQualificationWithWorkerCommandError = async (output, context)
|
|
|
336
334
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
337
335
|
default:
|
|
338
336
|
const parsedBody = parsedOutput.body;
|
|
339
|
-
throwDefaultError({
|
|
337
|
+
return throwDefaultError({
|
|
340
338
|
output,
|
|
341
339
|
parsedBody,
|
|
342
|
-
exceptionCtor: __BaseException,
|
|
343
340
|
errorCode,
|
|
344
341
|
});
|
|
345
342
|
}
|
|
@@ -350,12 +347,12 @@ export const de_CreateAdditionalAssignmentsForHITCommand = async (output, contex
|
|
|
350
347
|
}
|
|
351
348
|
const data = await parseBody(output.body, context);
|
|
352
349
|
let contents = {};
|
|
353
|
-
contents =
|
|
350
|
+
contents = _json(data);
|
|
354
351
|
const response = {
|
|
355
352
|
$metadata: deserializeMetadata(output),
|
|
356
353
|
...contents,
|
|
357
354
|
};
|
|
358
|
-
return
|
|
355
|
+
return response;
|
|
359
356
|
};
|
|
360
357
|
const de_CreateAdditionalAssignmentsForHITCommandError = async (output, context) => {
|
|
361
358
|
const parsedOutput = {
|
|
@@ -372,10 +369,9 @@ const de_CreateAdditionalAssignmentsForHITCommandError = async (output, context)
|
|
|
372
369
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
373
370
|
default:
|
|
374
371
|
const parsedBody = parsedOutput.body;
|
|
375
|
-
throwDefaultError({
|
|
372
|
+
return throwDefaultError({
|
|
376
373
|
output,
|
|
377
374
|
parsedBody,
|
|
378
|
-
exceptionCtor: __BaseException,
|
|
379
375
|
errorCode,
|
|
380
376
|
});
|
|
381
377
|
}
|
|
@@ -391,7 +387,7 @@ export const de_CreateHITCommand = async (output, context) => {
|
|
|
391
387
|
$metadata: deserializeMetadata(output),
|
|
392
388
|
...contents,
|
|
393
389
|
};
|
|
394
|
-
return
|
|
390
|
+
return response;
|
|
395
391
|
};
|
|
396
392
|
const de_CreateHITCommandError = async (output, context) => {
|
|
397
393
|
const parsedOutput = {
|
|
@@ -408,10 +404,9 @@ const de_CreateHITCommandError = async (output, context) => {
|
|
|
408
404
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
409
405
|
default:
|
|
410
406
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
throwDefaultError({
|
|
407
|
+
return throwDefaultError({
|
|
412
408
|
output,
|
|
413
409
|
parsedBody,
|
|
414
|
-
exceptionCtor: __BaseException,
|
|
415
410
|
errorCode,
|
|
416
411
|
});
|
|
417
412
|
}
|
|
@@ -422,12 +417,12 @@ export const de_CreateHITTypeCommand = async (output, context) => {
|
|
|
422
417
|
}
|
|
423
418
|
const data = await parseBody(output.body, context);
|
|
424
419
|
let contents = {};
|
|
425
|
-
contents =
|
|
420
|
+
contents = _json(data);
|
|
426
421
|
const response = {
|
|
427
422
|
$metadata: deserializeMetadata(output),
|
|
428
423
|
...contents,
|
|
429
424
|
};
|
|
430
|
-
return
|
|
425
|
+
return response;
|
|
431
426
|
};
|
|
432
427
|
const de_CreateHITTypeCommandError = async (output, context) => {
|
|
433
428
|
const parsedOutput = {
|
|
@@ -444,10 +439,9 @@ const de_CreateHITTypeCommandError = async (output, context) => {
|
|
|
444
439
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
445
440
|
default:
|
|
446
441
|
const parsedBody = parsedOutput.body;
|
|
447
|
-
throwDefaultError({
|
|
442
|
+
return throwDefaultError({
|
|
448
443
|
output,
|
|
449
444
|
parsedBody,
|
|
450
|
-
exceptionCtor: __BaseException,
|
|
451
445
|
errorCode,
|
|
452
446
|
});
|
|
453
447
|
}
|
|
@@ -463,7 +457,7 @@ export const de_CreateHITWithHITTypeCommand = async (output, context) => {
|
|
|
463
457
|
$metadata: deserializeMetadata(output),
|
|
464
458
|
...contents,
|
|
465
459
|
};
|
|
466
|
-
return
|
|
460
|
+
return response;
|
|
467
461
|
};
|
|
468
462
|
const de_CreateHITWithHITTypeCommandError = async (output, context) => {
|
|
469
463
|
const parsedOutput = {
|
|
@@ -480,10 +474,9 @@ const de_CreateHITWithHITTypeCommandError = async (output, context) => {
|
|
|
480
474
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
481
475
|
default:
|
|
482
476
|
const parsedBody = parsedOutput.body;
|
|
483
|
-
throwDefaultError({
|
|
477
|
+
return throwDefaultError({
|
|
484
478
|
output,
|
|
485
479
|
parsedBody,
|
|
486
|
-
exceptionCtor: __BaseException,
|
|
487
480
|
errorCode,
|
|
488
481
|
});
|
|
489
482
|
}
|
|
@@ -499,7 +492,7 @@ export const de_CreateQualificationTypeCommand = async (output, context) => {
|
|
|
499
492
|
$metadata: deserializeMetadata(output),
|
|
500
493
|
...contents,
|
|
501
494
|
};
|
|
502
|
-
return
|
|
495
|
+
return response;
|
|
503
496
|
};
|
|
504
497
|
const de_CreateQualificationTypeCommandError = async (output, context) => {
|
|
505
498
|
const parsedOutput = {
|
|
@@ -516,10 +509,9 @@ const de_CreateQualificationTypeCommandError = async (output, context) => {
|
|
|
516
509
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
517
510
|
default:
|
|
518
511
|
const parsedBody = parsedOutput.body;
|
|
519
|
-
throwDefaultError({
|
|
512
|
+
return throwDefaultError({
|
|
520
513
|
output,
|
|
521
514
|
parsedBody,
|
|
522
|
-
exceptionCtor: __BaseException,
|
|
523
515
|
errorCode,
|
|
524
516
|
});
|
|
525
517
|
}
|
|
@@ -530,12 +522,12 @@ export const de_CreateWorkerBlockCommand = async (output, context) => {
|
|
|
530
522
|
}
|
|
531
523
|
const data = await parseBody(output.body, context);
|
|
532
524
|
let contents = {};
|
|
533
|
-
contents =
|
|
525
|
+
contents = _json(data);
|
|
534
526
|
const response = {
|
|
535
527
|
$metadata: deserializeMetadata(output),
|
|
536
528
|
...contents,
|
|
537
529
|
};
|
|
538
|
-
return
|
|
530
|
+
return response;
|
|
539
531
|
};
|
|
540
532
|
const de_CreateWorkerBlockCommandError = async (output, context) => {
|
|
541
533
|
const parsedOutput = {
|
|
@@ -552,10 +544,9 @@ const de_CreateWorkerBlockCommandError = async (output, context) => {
|
|
|
552
544
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
553
545
|
default:
|
|
554
546
|
const parsedBody = parsedOutput.body;
|
|
555
|
-
throwDefaultError({
|
|
547
|
+
return throwDefaultError({
|
|
556
548
|
output,
|
|
557
549
|
parsedBody,
|
|
558
|
-
exceptionCtor: __BaseException,
|
|
559
550
|
errorCode,
|
|
560
551
|
});
|
|
561
552
|
}
|
|
@@ -566,12 +557,12 @@ export const de_DeleteHITCommand = async (output, context) => {
|
|
|
566
557
|
}
|
|
567
558
|
const data = await parseBody(output.body, context);
|
|
568
559
|
let contents = {};
|
|
569
|
-
contents =
|
|
560
|
+
contents = _json(data);
|
|
570
561
|
const response = {
|
|
571
562
|
$metadata: deserializeMetadata(output),
|
|
572
563
|
...contents,
|
|
573
564
|
};
|
|
574
|
-
return
|
|
565
|
+
return response;
|
|
575
566
|
};
|
|
576
567
|
const de_DeleteHITCommandError = async (output, context) => {
|
|
577
568
|
const parsedOutput = {
|
|
@@ -588,10 +579,9 @@ const de_DeleteHITCommandError = async (output, context) => {
|
|
|
588
579
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
589
580
|
default:
|
|
590
581
|
const parsedBody = parsedOutput.body;
|
|
591
|
-
throwDefaultError({
|
|
582
|
+
return throwDefaultError({
|
|
592
583
|
output,
|
|
593
584
|
parsedBody,
|
|
594
|
-
exceptionCtor: __BaseException,
|
|
595
585
|
errorCode,
|
|
596
586
|
});
|
|
597
587
|
}
|
|
@@ -602,12 +592,12 @@ export const de_DeleteQualificationTypeCommand = async (output, context) => {
|
|
|
602
592
|
}
|
|
603
593
|
const data = await parseBody(output.body, context);
|
|
604
594
|
let contents = {};
|
|
605
|
-
contents =
|
|
595
|
+
contents = _json(data);
|
|
606
596
|
const response = {
|
|
607
597
|
$metadata: deserializeMetadata(output),
|
|
608
598
|
...contents,
|
|
609
599
|
};
|
|
610
|
-
return
|
|
600
|
+
return response;
|
|
611
601
|
};
|
|
612
602
|
const de_DeleteQualificationTypeCommandError = async (output, context) => {
|
|
613
603
|
const parsedOutput = {
|
|
@@ -624,10 +614,9 @@ const de_DeleteQualificationTypeCommandError = async (output, context) => {
|
|
|
624
614
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
625
615
|
default:
|
|
626
616
|
const parsedBody = parsedOutput.body;
|
|
627
|
-
throwDefaultError({
|
|
617
|
+
return throwDefaultError({
|
|
628
618
|
output,
|
|
629
619
|
parsedBody,
|
|
630
|
-
exceptionCtor: __BaseException,
|
|
631
620
|
errorCode,
|
|
632
621
|
});
|
|
633
622
|
}
|
|
@@ -638,12 +627,12 @@ export const de_DeleteWorkerBlockCommand = async (output, context) => {
|
|
|
638
627
|
}
|
|
639
628
|
const data = await parseBody(output.body, context);
|
|
640
629
|
let contents = {};
|
|
641
|
-
contents =
|
|
630
|
+
contents = _json(data);
|
|
642
631
|
const response = {
|
|
643
632
|
$metadata: deserializeMetadata(output),
|
|
644
633
|
...contents,
|
|
645
634
|
};
|
|
646
|
-
return
|
|
635
|
+
return response;
|
|
647
636
|
};
|
|
648
637
|
const de_DeleteWorkerBlockCommandError = async (output, context) => {
|
|
649
638
|
const parsedOutput = {
|
|
@@ -660,10 +649,9 @@ const de_DeleteWorkerBlockCommandError = async (output, context) => {
|
|
|
660
649
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
661
650
|
default:
|
|
662
651
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
throwDefaultError({
|
|
652
|
+
return throwDefaultError({
|
|
664
653
|
output,
|
|
665
654
|
parsedBody,
|
|
666
|
-
exceptionCtor: __BaseException,
|
|
667
655
|
errorCode,
|
|
668
656
|
});
|
|
669
657
|
}
|
|
@@ -674,12 +662,12 @@ export const de_DisassociateQualificationFromWorkerCommand = async (output, cont
|
|
|
674
662
|
}
|
|
675
663
|
const data = await parseBody(output.body, context);
|
|
676
664
|
let contents = {};
|
|
677
|
-
contents =
|
|
665
|
+
contents = _json(data);
|
|
678
666
|
const response = {
|
|
679
667
|
$metadata: deserializeMetadata(output),
|
|
680
668
|
...contents,
|
|
681
669
|
};
|
|
682
|
-
return
|
|
670
|
+
return response;
|
|
683
671
|
};
|
|
684
672
|
const de_DisassociateQualificationFromWorkerCommandError = async (output, context) => {
|
|
685
673
|
const parsedOutput = {
|
|
@@ -696,10 +684,9 @@ const de_DisassociateQualificationFromWorkerCommandError = async (output, contex
|
|
|
696
684
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
697
685
|
default:
|
|
698
686
|
const parsedBody = parsedOutput.body;
|
|
699
|
-
throwDefaultError({
|
|
687
|
+
return throwDefaultError({
|
|
700
688
|
output,
|
|
701
689
|
parsedBody,
|
|
702
|
-
exceptionCtor: __BaseException,
|
|
703
690
|
errorCode,
|
|
704
691
|
});
|
|
705
692
|
}
|
|
@@ -710,12 +697,12 @@ export const de_GetAccountBalanceCommand = async (output, context) => {
|
|
|
710
697
|
}
|
|
711
698
|
const data = await parseBody(output.body, context);
|
|
712
699
|
let contents = {};
|
|
713
|
-
contents =
|
|
700
|
+
contents = _json(data);
|
|
714
701
|
const response = {
|
|
715
702
|
$metadata: deserializeMetadata(output),
|
|
716
703
|
...contents,
|
|
717
704
|
};
|
|
718
|
-
return
|
|
705
|
+
return response;
|
|
719
706
|
};
|
|
720
707
|
const de_GetAccountBalanceCommandError = async (output, context) => {
|
|
721
708
|
const parsedOutput = {
|
|
@@ -732,10 +719,9 @@ const de_GetAccountBalanceCommandError = async (output, context) => {
|
|
|
732
719
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
733
720
|
default:
|
|
734
721
|
const parsedBody = parsedOutput.body;
|
|
735
|
-
throwDefaultError({
|
|
722
|
+
return throwDefaultError({
|
|
736
723
|
output,
|
|
737
724
|
parsedBody,
|
|
738
|
-
exceptionCtor: __BaseException,
|
|
739
725
|
errorCode,
|
|
740
726
|
});
|
|
741
727
|
}
|
|
@@ -751,7 +737,7 @@ export const de_GetAssignmentCommand = async (output, context) => {
|
|
|
751
737
|
$metadata: deserializeMetadata(output),
|
|
752
738
|
...contents,
|
|
753
739
|
};
|
|
754
|
-
return
|
|
740
|
+
return response;
|
|
755
741
|
};
|
|
756
742
|
const de_GetAssignmentCommandError = async (output, context) => {
|
|
757
743
|
const parsedOutput = {
|
|
@@ -768,10 +754,9 @@ const de_GetAssignmentCommandError = async (output, context) => {
|
|
|
768
754
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
769
755
|
default:
|
|
770
756
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
throwDefaultError({
|
|
757
|
+
return throwDefaultError({
|
|
772
758
|
output,
|
|
773
759
|
parsedBody,
|
|
774
|
-
exceptionCtor: __BaseException,
|
|
775
760
|
errorCode,
|
|
776
761
|
});
|
|
777
762
|
}
|
|
@@ -782,12 +767,12 @@ export const de_GetFileUploadURLCommand = async (output, context) => {
|
|
|
782
767
|
}
|
|
783
768
|
const data = await parseBody(output.body, context);
|
|
784
769
|
let contents = {};
|
|
785
|
-
contents =
|
|
770
|
+
contents = _json(data);
|
|
786
771
|
const response = {
|
|
787
772
|
$metadata: deserializeMetadata(output),
|
|
788
773
|
...contents,
|
|
789
774
|
};
|
|
790
|
-
return
|
|
775
|
+
return response;
|
|
791
776
|
};
|
|
792
777
|
const de_GetFileUploadURLCommandError = async (output, context) => {
|
|
793
778
|
const parsedOutput = {
|
|
@@ -804,10 +789,9 @@ const de_GetFileUploadURLCommandError = async (output, context) => {
|
|
|
804
789
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
805
790
|
default:
|
|
806
791
|
const parsedBody = parsedOutput.body;
|
|
807
|
-
throwDefaultError({
|
|
792
|
+
return throwDefaultError({
|
|
808
793
|
output,
|
|
809
794
|
parsedBody,
|
|
810
|
-
exceptionCtor: __BaseException,
|
|
811
795
|
errorCode,
|
|
812
796
|
});
|
|
813
797
|
}
|
|
@@ -823,7 +807,7 @@ export const de_GetHITCommand = async (output, context) => {
|
|
|
823
807
|
$metadata: deserializeMetadata(output),
|
|
824
808
|
...contents,
|
|
825
809
|
};
|
|
826
|
-
return
|
|
810
|
+
return response;
|
|
827
811
|
};
|
|
828
812
|
const de_GetHITCommandError = async (output, context) => {
|
|
829
813
|
const parsedOutput = {
|
|
@@ -840,10 +824,9 @@ const de_GetHITCommandError = async (output, context) => {
|
|
|
840
824
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
841
825
|
default:
|
|
842
826
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
throwDefaultError({
|
|
827
|
+
return throwDefaultError({
|
|
844
828
|
output,
|
|
845
829
|
parsedBody,
|
|
846
|
-
exceptionCtor: __BaseException,
|
|
847
830
|
errorCode,
|
|
848
831
|
});
|
|
849
832
|
}
|
|
@@ -859,7 +842,7 @@ export const de_GetQualificationScoreCommand = async (output, context) => {
|
|
|
859
842
|
$metadata: deserializeMetadata(output),
|
|
860
843
|
...contents,
|
|
861
844
|
};
|
|
862
|
-
return
|
|
845
|
+
return response;
|
|
863
846
|
};
|
|
864
847
|
const de_GetQualificationScoreCommandError = async (output, context) => {
|
|
865
848
|
const parsedOutput = {
|
|
@@ -876,10 +859,9 @@ const de_GetQualificationScoreCommandError = async (output, context) => {
|
|
|
876
859
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
877
860
|
default:
|
|
878
861
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
throwDefaultError({
|
|
862
|
+
return throwDefaultError({
|
|
880
863
|
output,
|
|
881
864
|
parsedBody,
|
|
882
|
-
exceptionCtor: __BaseException,
|
|
883
865
|
errorCode,
|
|
884
866
|
});
|
|
885
867
|
}
|
|
@@ -895,7 +877,7 @@ export const de_GetQualificationTypeCommand = async (output, context) => {
|
|
|
895
877
|
$metadata: deserializeMetadata(output),
|
|
896
878
|
...contents,
|
|
897
879
|
};
|
|
898
|
-
return
|
|
880
|
+
return response;
|
|
899
881
|
};
|
|
900
882
|
const de_GetQualificationTypeCommandError = async (output, context) => {
|
|
901
883
|
const parsedOutput = {
|
|
@@ -912,10 +894,9 @@ const de_GetQualificationTypeCommandError = async (output, context) => {
|
|
|
912
894
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
913
895
|
default:
|
|
914
896
|
const parsedBody = parsedOutput.body;
|
|
915
|
-
throwDefaultError({
|
|
897
|
+
return throwDefaultError({
|
|
916
898
|
output,
|
|
917
899
|
parsedBody,
|
|
918
|
-
exceptionCtor: __BaseException,
|
|
919
900
|
errorCode,
|
|
920
901
|
});
|
|
921
902
|
}
|
|
@@ -931,7 +912,7 @@ export const de_ListAssignmentsForHITCommand = async (output, context) => {
|
|
|
931
912
|
$metadata: deserializeMetadata(output),
|
|
932
913
|
...contents,
|
|
933
914
|
};
|
|
934
|
-
return
|
|
915
|
+
return response;
|
|
935
916
|
};
|
|
936
917
|
const de_ListAssignmentsForHITCommandError = async (output, context) => {
|
|
937
918
|
const parsedOutput = {
|
|
@@ -948,10 +929,9 @@ const de_ListAssignmentsForHITCommandError = async (output, context) => {
|
|
|
948
929
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
949
930
|
default:
|
|
950
931
|
const parsedBody = parsedOutput.body;
|
|
951
|
-
throwDefaultError({
|
|
932
|
+
return throwDefaultError({
|
|
952
933
|
output,
|
|
953
934
|
parsedBody,
|
|
954
|
-
exceptionCtor: __BaseException,
|
|
955
935
|
errorCode,
|
|
956
936
|
});
|
|
957
937
|
}
|
|
@@ -967,7 +947,7 @@ export const de_ListBonusPaymentsCommand = async (output, context) => {
|
|
|
967
947
|
$metadata: deserializeMetadata(output),
|
|
968
948
|
...contents,
|
|
969
949
|
};
|
|
970
|
-
return
|
|
950
|
+
return response;
|
|
971
951
|
};
|
|
972
952
|
const de_ListBonusPaymentsCommandError = async (output, context) => {
|
|
973
953
|
const parsedOutput = {
|
|
@@ -984,10 +964,9 @@ const de_ListBonusPaymentsCommandError = async (output, context) => {
|
|
|
984
964
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
985
965
|
default:
|
|
986
966
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
throwDefaultError({
|
|
967
|
+
return throwDefaultError({
|
|
988
968
|
output,
|
|
989
969
|
parsedBody,
|
|
990
|
-
exceptionCtor: __BaseException,
|
|
991
970
|
errorCode,
|
|
992
971
|
});
|
|
993
972
|
}
|
|
@@ -1003,7 +982,7 @@ export const de_ListHITsCommand = async (output, context) => {
|
|
|
1003
982
|
$metadata: deserializeMetadata(output),
|
|
1004
983
|
...contents,
|
|
1005
984
|
};
|
|
1006
|
-
return
|
|
985
|
+
return response;
|
|
1007
986
|
};
|
|
1008
987
|
const de_ListHITsCommandError = async (output, context) => {
|
|
1009
988
|
const parsedOutput = {
|
|
@@ -1020,10 +999,9 @@ const de_ListHITsCommandError = async (output, context) => {
|
|
|
1020
999
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1021
1000
|
default:
|
|
1022
1001
|
const parsedBody = parsedOutput.body;
|
|
1023
|
-
throwDefaultError({
|
|
1002
|
+
return throwDefaultError({
|
|
1024
1003
|
output,
|
|
1025
1004
|
parsedBody,
|
|
1026
|
-
exceptionCtor: __BaseException,
|
|
1027
1005
|
errorCode,
|
|
1028
1006
|
});
|
|
1029
1007
|
}
|
|
@@ -1039,7 +1017,7 @@ export const de_ListHITsForQualificationTypeCommand = async (output, context) =>
|
|
|
1039
1017
|
$metadata: deserializeMetadata(output),
|
|
1040
1018
|
...contents,
|
|
1041
1019
|
};
|
|
1042
|
-
return
|
|
1020
|
+
return response;
|
|
1043
1021
|
};
|
|
1044
1022
|
const de_ListHITsForQualificationTypeCommandError = async (output, context) => {
|
|
1045
1023
|
const parsedOutput = {
|
|
@@ -1056,10 +1034,9 @@ const de_ListHITsForQualificationTypeCommandError = async (output, context) => {
|
|
|
1056
1034
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1057
1035
|
default:
|
|
1058
1036
|
const parsedBody = parsedOutput.body;
|
|
1059
|
-
throwDefaultError({
|
|
1037
|
+
return throwDefaultError({
|
|
1060
1038
|
output,
|
|
1061
1039
|
parsedBody,
|
|
1062
|
-
exceptionCtor: __BaseException,
|
|
1063
1040
|
errorCode,
|
|
1064
1041
|
});
|
|
1065
1042
|
}
|
|
@@ -1075,7 +1052,7 @@ export const de_ListQualificationRequestsCommand = async (output, context) => {
|
|
|
1075
1052
|
$metadata: deserializeMetadata(output),
|
|
1076
1053
|
...contents,
|
|
1077
1054
|
};
|
|
1078
|
-
return
|
|
1055
|
+
return response;
|
|
1079
1056
|
};
|
|
1080
1057
|
const de_ListQualificationRequestsCommandError = async (output, context) => {
|
|
1081
1058
|
const parsedOutput = {
|
|
@@ -1092,10 +1069,9 @@ const de_ListQualificationRequestsCommandError = async (output, context) => {
|
|
|
1092
1069
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1093
1070
|
default:
|
|
1094
1071
|
const parsedBody = parsedOutput.body;
|
|
1095
|
-
throwDefaultError({
|
|
1072
|
+
return throwDefaultError({
|
|
1096
1073
|
output,
|
|
1097
1074
|
parsedBody,
|
|
1098
|
-
exceptionCtor: __BaseException,
|
|
1099
1075
|
errorCode,
|
|
1100
1076
|
});
|
|
1101
1077
|
}
|
|
@@ -1111,7 +1087,7 @@ export const de_ListQualificationTypesCommand = async (output, context) => {
|
|
|
1111
1087
|
$metadata: deserializeMetadata(output),
|
|
1112
1088
|
...contents,
|
|
1113
1089
|
};
|
|
1114
|
-
return
|
|
1090
|
+
return response;
|
|
1115
1091
|
};
|
|
1116
1092
|
const de_ListQualificationTypesCommandError = async (output, context) => {
|
|
1117
1093
|
const parsedOutput = {
|
|
@@ -1128,10 +1104,9 @@ const de_ListQualificationTypesCommandError = async (output, context) => {
|
|
|
1128
1104
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1129
1105
|
default:
|
|
1130
1106
|
const parsedBody = parsedOutput.body;
|
|
1131
|
-
throwDefaultError({
|
|
1107
|
+
return throwDefaultError({
|
|
1132
1108
|
output,
|
|
1133
1109
|
parsedBody,
|
|
1134
|
-
exceptionCtor: __BaseException,
|
|
1135
1110
|
errorCode,
|
|
1136
1111
|
});
|
|
1137
1112
|
}
|
|
@@ -1147,7 +1122,7 @@ export const de_ListReviewableHITsCommand = async (output, context) => {
|
|
|
1147
1122
|
$metadata: deserializeMetadata(output),
|
|
1148
1123
|
...contents,
|
|
1149
1124
|
};
|
|
1150
|
-
return
|
|
1125
|
+
return response;
|
|
1151
1126
|
};
|
|
1152
1127
|
const de_ListReviewableHITsCommandError = async (output, context) => {
|
|
1153
1128
|
const parsedOutput = {
|
|
@@ -1164,10 +1139,9 @@ const de_ListReviewableHITsCommandError = async (output, context) => {
|
|
|
1164
1139
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1165
1140
|
default:
|
|
1166
1141
|
const parsedBody = parsedOutput.body;
|
|
1167
|
-
throwDefaultError({
|
|
1142
|
+
return throwDefaultError({
|
|
1168
1143
|
output,
|
|
1169
1144
|
parsedBody,
|
|
1170
|
-
exceptionCtor: __BaseException,
|
|
1171
1145
|
errorCode,
|
|
1172
1146
|
});
|
|
1173
1147
|
}
|
|
@@ -1183,7 +1157,7 @@ export const de_ListReviewPolicyResultsForHITCommand = async (output, context) =
|
|
|
1183
1157
|
$metadata: deserializeMetadata(output),
|
|
1184
1158
|
...contents,
|
|
1185
1159
|
};
|
|
1186
|
-
return
|
|
1160
|
+
return response;
|
|
1187
1161
|
};
|
|
1188
1162
|
const de_ListReviewPolicyResultsForHITCommandError = async (output, context) => {
|
|
1189
1163
|
const parsedOutput = {
|
|
@@ -1200,10 +1174,9 @@ const de_ListReviewPolicyResultsForHITCommandError = async (output, context) =>
|
|
|
1200
1174
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1201
1175
|
default:
|
|
1202
1176
|
const parsedBody = parsedOutput.body;
|
|
1203
|
-
throwDefaultError({
|
|
1177
|
+
return throwDefaultError({
|
|
1204
1178
|
output,
|
|
1205
1179
|
parsedBody,
|
|
1206
|
-
exceptionCtor: __BaseException,
|
|
1207
1180
|
errorCode,
|
|
1208
1181
|
});
|
|
1209
1182
|
}
|
|
@@ -1214,12 +1187,12 @@ export const de_ListWorkerBlocksCommand = async (output, context) => {
|
|
|
1214
1187
|
}
|
|
1215
1188
|
const data = await parseBody(output.body, context);
|
|
1216
1189
|
let contents = {};
|
|
1217
|
-
contents =
|
|
1190
|
+
contents = _json(data);
|
|
1218
1191
|
const response = {
|
|
1219
1192
|
$metadata: deserializeMetadata(output),
|
|
1220
1193
|
...contents,
|
|
1221
1194
|
};
|
|
1222
|
-
return
|
|
1195
|
+
return response;
|
|
1223
1196
|
};
|
|
1224
1197
|
const de_ListWorkerBlocksCommandError = async (output, context) => {
|
|
1225
1198
|
const parsedOutput = {
|
|
@@ -1236,10 +1209,9 @@ const de_ListWorkerBlocksCommandError = async (output, context) => {
|
|
|
1236
1209
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1237
1210
|
default:
|
|
1238
1211
|
const parsedBody = parsedOutput.body;
|
|
1239
|
-
throwDefaultError({
|
|
1212
|
+
return throwDefaultError({
|
|
1240
1213
|
output,
|
|
1241
1214
|
parsedBody,
|
|
1242
|
-
exceptionCtor: __BaseException,
|
|
1243
1215
|
errorCode,
|
|
1244
1216
|
});
|
|
1245
1217
|
}
|
|
@@ -1255,7 +1227,7 @@ export const de_ListWorkersWithQualificationTypeCommand = async (output, context
|
|
|
1255
1227
|
$metadata: deserializeMetadata(output),
|
|
1256
1228
|
...contents,
|
|
1257
1229
|
};
|
|
1258
|
-
return
|
|
1230
|
+
return response;
|
|
1259
1231
|
};
|
|
1260
1232
|
const de_ListWorkersWithQualificationTypeCommandError = async (output, context) => {
|
|
1261
1233
|
const parsedOutput = {
|
|
@@ -1272,10 +1244,9 @@ const de_ListWorkersWithQualificationTypeCommandError = async (output, context)
|
|
|
1272
1244
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1273
1245
|
default:
|
|
1274
1246
|
const parsedBody = parsedOutput.body;
|
|
1275
|
-
throwDefaultError({
|
|
1247
|
+
return throwDefaultError({
|
|
1276
1248
|
output,
|
|
1277
1249
|
parsedBody,
|
|
1278
|
-
exceptionCtor: __BaseException,
|
|
1279
1250
|
errorCode,
|
|
1280
1251
|
});
|
|
1281
1252
|
}
|
|
@@ -1286,12 +1257,12 @@ export const de_NotifyWorkersCommand = async (output, context) => {
|
|
|
1286
1257
|
}
|
|
1287
1258
|
const data = await parseBody(output.body, context);
|
|
1288
1259
|
let contents = {};
|
|
1289
|
-
contents =
|
|
1260
|
+
contents = _json(data);
|
|
1290
1261
|
const response = {
|
|
1291
1262
|
$metadata: deserializeMetadata(output),
|
|
1292
1263
|
...contents,
|
|
1293
1264
|
};
|
|
1294
|
-
return
|
|
1265
|
+
return response;
|
|
1295
1266
|
};
|
|
1296
1267
|
const de_NotifyWorkersCommandError = async (output, context) => {
|
|
1297
1268
|
const parsedOutput = {
|
|
@@ -1308,10 +1279,9 @@ const de_NotifyWorkersCommandError = async (output, context) => {
|
|
|
1308
1279
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1309
1280
|
default:
|
|
1310
1281
|
const parsedBody = parsedOutput.body;
|
|
1311
|
-
throwDefaultError({
|
|
1282
|
+
return throwDefaultError({
|
|
1312
1283
|
output,
|
|
1313
1284
|
parsedBody,
|
|
1314
|
-
exceptionCtor: __BaseException,
|
|
1315
1285
|
errorCode,
|
|
1316
1286
|
});
|
|
1317
1287
|
}
|
|
@@ -1322,12 +1292,12 @@ export const de_RejectAssignmentCommand = async (output, context) => {
|
|
|
1322
1292
|
}
|
|
1323
1293
|
const data = await parseBody(output.body, context);
|
|
1324
1294
|
let contents = {};
|
|
1325
|
-
contents =
|
|
1295
|
+
contents = _json(data);
|
|
1326
1296
|
const response = {
|
|
1327
1297
|
$metadata: deserializeMetadata(output),
|
|
1328
1298
|
...contents,
|
|
1329
1299
|
};
|
|
1330
|
-
return
|
|
1300
|
+
return response;
|
|
1331
1301
|
};
|
|
1332
1302
|
const de_RejectAssignmentCommandError = async (output, context) => {
|
|
1333
1303
|
const parsedOutput = {
|
|
@@ -1344,10 +1314,9 @@ const de_RejectAssignmentCommandError = async (output, context) => {
|
|
|
1344
1314
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1345
1315
|
default:
|
|
1346
1316
|
const parsedBody = parsedOutput.body;
|
|
1347
|
-
throwDefaultError({
|
|
1317
|
+
return throwDefaultError({
|
|
1348
1318
|
output,
|
|
1349
1319
|
parsedBody,
|
|
1350
|
-
exceptionCtor: __BaseException,
|
|
1351
1320
|
errorCode,
|
|
1352
1321
|
});
|
|
1353
1322
|
}
|
|
@@ -1358,12 +1327,12 @@ export const de_RejectQualificationRequestCommand = async (output, context) => {
|
|
|
1358
1327
|
}
|
|
1359
1328
|
const data = await parseBody(output.body, context);
|
|
1360
1329
|
let contents = {};
|
|
1361
|
-
contents =
|
|
1330
|
+
contents = _json(data);
|
|
1362
1331
|
const response = {
|
|
1363
1332
|
$metadata: deserializeMetadata(output),
|
|
1364
1333
|
...contents,
|
|
1365
1334
|
};
|
|
1366
|
-
return
|
|
1335
|
+
return response;
|
|
1367
1336
|
};
|
|
1368
1337
|
const de_RejectQualificationRequestCommandError = async (output, context) => {
|
|
1369
1338
|
const parsedOutput = {
|
|
@@ -1380,10 +1349,9 @@ const de_RejectQualificationRequestCommandError = async (output, context) => {
|
|
|
1380
1349
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1381
1350
|
default:
|
|
1382
1351
|
const parsedBody = parsedOutput.body;
|
|
1383
|
-
throwDefaultError({
|
|
1352
|
+
return throwDefaultError({
|
|
1384
1353
|
output,
|
|
1385
1354
|
parsedBody,
|
|
1386
|
-
exceptionCtor: __BaseException,
|
|
1387
1355
|
errorCode,
|
|
1388
1356
|
});
|
|
1389
1357
|
}
|
|
@@ -1394,12 +1362,12 @@ export const de_SendBonusCommand = async (output, context) => {
|
|
|
1394
1362
|
}
|
|
1395
1363
|
const data = await parseBody(output.body, context);
|
|
1396
1364
|
let contents = {};
|
|
1397
|
-
contents =
|
|
1365
|
+
contents = _json(data);
|
|
1398
1366
|
const response = {
|
|
1399
1367
|
$metadata: deserializeMetadata(output),
|
|
1400
1368
|
...contents,
|
|
1401
1369
|
};
|
|
1402
|
-
return
|
|
1370
|
+
return response;
|
|
1403
1371
|
};
|
|
1404
1372
|
const de_SendBonusCommandError = async (output, context) => {
|
|
1405
1373
|
const parsedOutput = {
|
|
@@ -1416,10 +1384,9 @@ const de_SendBonusCommandError = async (output, context) => {
|
|
|
1416
1384
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1417
1385
|
default:
|
|
1418
1386
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
throwDefaultError({
|
|
1387
|
+
return throwDefaultError({
|
|
1420
1388
|
output,
|
|
1421
1389
|
parsedBody,
|
|
1422
|
-
exceptionCtor: __BaseException,
|
|
1423
1390
|
errorCode,
|
|
1424
1391
|
});
|
|
1425
1392
|
}
|
|
@@ -1430,12 +1397,12 @@ export const de_SendTestEventNotificationCommand = async (output, context) => {
|
|
|
1430
1397
|
}
|
|
1431
1398
|
const data = await parseBody(output.body, context);
|
|
1432
1399
|
let contents = {};
|
|
1433
|
-
contents =
|
|
1400
|
+
contents = _json(data);
|
|
1434
1401
|
const response = {
|
|
1435
1402
|
$metadata: deserializeMetadata(output),
|
|
1436
1403
|
...contents,
|
|
1437
1404
|
};
|
|
1438
|
-
return
|
|
1405
|
+
return response;
|
|
1439
1406
|
};
|
|
1440
1407
|
const de_SendTestEventNotificationCommandError = async (output, context) => {
|
|
1441
1408
|
const parsedOutput = {
|
|
@@ -1452,10 +1419,9 @@ const de_SendTestEventNotificationCommandError = async (output, context) => {
|
|
|
1452
1419
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1453
1420
|
default:
|
|
1454
1421
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
throwDefaultError({
|
|
1422
|
+
return throwDefaultError({
|
|
1456
1423
|
output,
|
|
1457
1424
|
parsedBody,
|
|
1458
|
-
exceptionCtor: __BaseException,
|
|
1459
1425
|
errorCode,
|
|
1460
1426
|
});
|
|
1461
1427
|
}
|
|
@@ -1466,12 +1432,12 @@ export const de_UpdateExpirationForHITCommand = async (output, context) => {
|
|
|
1466
1432
|
}
|
|
1467
1433
|
const data = await parseBody(output.body, context);
|
|
1468
1434
|
let contents = {};
|
|
1469
|
-
contents =
|
|
1435
|
+
contents = _json(data);
|
|
1470
1436
|
const response = {
|
|
1471
1437
|
$metadata: deserializeMetadata(output),
|
|
1472
1438
|
...contents,
|
|
1473
1439
|
};
|
|
1474
|
-
return
|
|
1440
|
+
return response;
|
|
1475
1441
|
};
|
|
1476
1442
|
const de_UpdateExpirationForHITCommandError = async (output, context) => {
|
|
1477
1443
|
const parsedOutput = {
|
|
@@ -1488,10 +1454,9 @@ const de_UpdateExpirationForHITCommandError = async (output, context) => {
|
|
|
1488
1454
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1489
1455
|
default:
|
|
1490
1456
|
const parsedBody = parsedOutput.body;
|
|
1491
|
-
throwDefaultError({
|
|
1457
|
+
return throwDefaultError({
|
|
1492
1458
|
output,
|
|
1493
1459
|
parsedBody,
|
|
1494
|
-
exceptionCtor: __BaseException,
|
|
1495
1460
|
errorCode,
|
|
1496
1461
|
});
|
|
1497
1462
|
}
|
|
@@ -1502,12 +1467,12 @@ export const de_UpdateHITReviewStatusCommand = async (output, context) => {
|
|
|
1502
1467
|
}
|
|
1503
1468
|
const data = await parseBody(output.body, context);
|
|
1504
1469
|
let contents = {};
|
|
1505
|
-
contents =
|
|
1470
|
+
contents = _json(data);
|
|
1506
1471
|
const response = {
|
|
1507
1472
|
$metadata: deserializeMetadata(output),
|
|
1508
1473
|
...contents,
|
|
1509
1474
|
};
|
|
1510
|
-
return
|
|
1475
|
+
return response;
|
|
1511
1476
|
};
|
|
1512
1477
|
const de_UpdateHITReviewStatusCommandError = async (output, context) => {
|
|
1513
1478
|
const parsedOutput = {
|
|
@@ -1524,10 +1489,9 @@ const de_UpdateHITReviewStatusCommandError = async (output, context) => {
|
|
|
1524
1489
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1525
1490
|
default:
|
|
1526
1491
|
const parsedBody = parsedOutput.body;
|
|
1527
|
-
throwDefaultError({
|
|
1492
|
+
return throwDefaultError({
|
|
1528
1493
|
output,
|
|
1529
1494
|
parsedBody,
|
|
1530
|
-
exceptionCtor: __BaseException,
|
|
1531
1495
|
errorCode,
|
|
1532
1496
|
});
|
|
1533
1497
|
}
|
|
@@ -1538,12 +1502,12 @@ export const de_UpdateHITTypeOfHITCommand = async (output, context) => {
|
|
|
1538
1502
|
}
|
|
1539
1503
|
const data = await parseBody(output.body, context);
|
|
1540
1504
|
let contents = {};
|
|
1541
|
-
contents =
|
|
1505
|
+
contents = _json(data);
|
|
1542
1506
|
const response = {
|
|
1543
1507
|
$metadata: deserializeMetadata(output),
|
|
1544
1508
|
...contents,
|
|
1545
1509
|
};
|
|
1546
|
-
return
|
|
1510
|
+
return response;
|
|
1547
1511
|
};
|
|
1548
1512
|
const de_UpdateHITTypeOfHITCommandError = async (output, context) => {
|
|
1549
1513
|
const parsedOutput = {
|
|
@@ -1560,10 +1524,9 @@ const de_UpdateHITTypeOfHITCommandError = async (output, context) => {
|
|
|
1560
1524
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1561
1525
|
default:
|
|
1562
1526
|
const parsedBody = parsedOutput.body;
|
|
1563
|
-
throwDefaultError({
|
|
1527
|
+
return throwDefaultError({
|
|
1564
1528
|
output,
|
|
1565
1529
|
parsedBody,
|
|
1566
|
-
exceptionCtor: __BaseException,
|
|
1567
1530
|
errorCode,
|
|
1568
1531
|
});
|
|
1569
1532
|
}
|
|
@@ -1574,12 +1537,12 @@ export const de_UpdateNotificationSettingsCommand = async (output, context) => {
|
|
|
1574
1537
|
}
|
|
1575
1538
|
const data = await parseBody(output.body, context);
|
|
1576
1539
|
let contents = {};
|
|
1577
|
-
contents =
|
|
1540
|
+
contents = _json(data);
|
|
1578
1541
|
const response = {
|
|
1579
1542
|
$metadata: deserializeMetadata(output),
|
|
1580
1543
|
...contents,
|
|
1581
1544
|
};
|
|
1582
|
-
return
|
|
1545
|
+
return response;
|
|
1583
1546
|
};
|
|
1584
1547
|
const de_UpdateNotificationSettingsCommandError = async (output, context) => {
|
|
1585
1548
|
const parsedOutput = {
|
|
@@ -1596,10 +1559,9 @@ const de_UpdateNotificationSettingsCommandError = async (output, context) => {
|
|
|
1596
1559
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1597
1560
|
default:
|
|
1598
1561
|
const parsedBody = parsedOutput.body;
|
|
1599
|
-
throwDefaultError({
|
|
1562
|
+
return throwDefaultError({
|
|
1600
1563
|
output,
|
|
1601
1564
|
parsedBody,
|
|
1602
|
-
exceptionCtor: __BaseException,
|
|
1603
1565
|
errorCode,
|
|
1604
1566
|
});
|
|
1605
1567
|
}
|
|
@@ -1615,7 +1577,7 @@ export const de_UpdateQualificationTypeCommand = async (output, context) => {
|
|
|
1615
1577
|
$metadata: deserializeMetadata(output),
|
|
1616
1578
|
...contents,
|
|
1617
1579
|
};
|
|
1618
|
-
return
|
|
1580
|
+
return response;
|
|
1619
1581
|
};
|
|
1620
1582
|
const de_UpdateQualificationTypeCommandError = async (output, context) => {
|
|
1621
1583
|
const parsedOutput = {
|
|
@@ -1632,17 +1594,16 @@ const de_UpdateQualificationTypeCommandError = async (output, context) => {
|
|
|
1632
1594
|
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1633
1595
|
default:
|
|
1634
1596
|
const parsedBody = parsedOutput.body;
|
|
1635
|
-
throwDefaultError({
|
|
1597
|
+
return throwDefaultError({
|
|
1636
1598
|
output,
|
|
1637
1599
|
parsedBody,
|
|
1638
|
-
exceptionCtor: __BaseException,
|
|
1639
1600
|
errorCode,
|
|
1640
1601
|
});
|
|
1641
1602
|
}
|
|
1642
1603
|
};
|
|
1643
1604
|
const de_RequestErrorRes = async (parsedOutput, context) => {
|
|
1644
1605
|
const body = parsedOutput.body;
|
|
1645
|
-
const deserialized =
|
|
1606
|
+
const deserialized = _json(body);
|
|
1646
1607
|
const exception = new RequestError({
|
|
1647
1608
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1648
1609
|
...deserialized,
|
|
@@ -1651,1008 +1612,286 @@ const de_RequestErrorRes = async (parsedOutput, context) => {
|
|
|
1651
1612
|
};
|
|
1652
1613
|
const de_ServiceFaultRes = async (parsedOutput, context) => {
|
|
1653
1614
|
const body = parsedOutput.body;
|
|
1654
|
-
const deserialized =
|
|
1615
|
+
const deserialized = _json(body);
|
|
1655
1616
|
const exception = new ServiceFault({
|
|
1656
1617
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1657
1618
|
...deserialized,
|
|
1658
1619
|
});
|
|
1659
1620
|
return __decorateServiceException(exception, body);
|
|
1660
1621
|
};
|
|
1661
|
-
const se_AcceptQualificationRequestRequest = (input, context) => {
|
|
1662
|
-
return {
|
|
1663
|
-
...(input.IntegerValue != null && { IntegerValue: input.IntegerValue }),
|
|
1664
|
-
...(input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId }),
|
|
1665
|
-
};
|
|
1666
|
-
};
|
|
1667
|
-
const se_ApproveAssignmentRequest = (input, context) => {
|
|
1668
|
-
return {
|
|
1669
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1670
|
-
...(input.OverrideRejection != null && { OverrideRejection: input.OverrideRejection }),
|
|
1671
|
-
...(input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }),
|
|
1672
|
-
};
|
|
1673
|
-
};
|
|
1674
|
-
const se_AssignmentStatusList = (input, context) => {
|
|
1675
|
-
return input
|
|
1676
|
-
.filter((e) => e != null)
|
|
1677
|
-
.map((entry) => {
|
|
1678
|
-
return entry;
|
|
1679
|
-
});
|
|
1680
|
-
};
|
|
1681
|
-
const se_AssociateQualificationWithWorkerRequest = (input, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
...(input.IntegerValue != null && { IntegerValue: input.IntegerValue }),
|
|
1684
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1685
|
-
...(input.SendNotification != null && { SendNotification: input.SendNotification }),
|
|
1686
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1687
|
-
};
|
|
1688
|
-
};
|
|
1689
|
-
const se_CreateAdditionalAssignmentsForHITRequest = (input, context) => {
|
|
1690
|
-
return {
|
|
1691
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1692
|
-
...(input.NumberOfAdditionalAssignments != null && {
|
|
1693
|
-
NumberOfAdditionalAssignments: input.NumberOfAdditionalAssignments,
|
|
1694
|
-
}),
|
|
1695
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1696
|
-
};
|
|
1697
|
-
};
|
|
1698
|
-
const se_CreateHITRequest = (input, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
...(input.AssignmentDurationInSeconds != null && {
|
|
1701
|
-
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
1702
|
-
}),
|
|
1703
|
-
...(input.AssignmentReviewPolicy != null && {
|
|
1704
|
-
AssignmentReviewPolicy: se_ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
1705
|
-
}),
|
|
1706
|
-
...(input.AutoApprovalDelayInSeconds != null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds }),
|
|
1707
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1708
|
-
...(input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId }),
|
|
1709
|
-
...(input.HITLayoutParameters != null && {
|
|
1710
|
-
HITLayoutParameters: se_HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
1711
|
-
}),
|
|
1712
|
-
...(input.HITReviewPolicy != null && { HITReviewPolicy: se_ReviewPolicy(input.HITReviewPolicy, context) }),
|
|
1713
|
-
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1714
|
-
...(input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds }),
|
|
1715
|
-
...(input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments }),
|
|
1716
|
-
...(input.QualificationRequirements != null && {
|
|
1717
|
-
QualificationRequirements: se_QualificationRequirementList(input.QualificationRequirements, context),
|
|
1718
|
-
}),
|
|
1719
|
-
...(input.Question != null && { Question: input.Question }),
|
|
1720
|
-
...(input.RequesterAnnotation != null && { RequesterAnnotation: input.RequesterAnnotation }),
|
|
1721
|
-
...(input.Reward != null && { Reward: input.Reward }),
|
|
1722
|
-
...(input.Title != null && { Title: input.Title }),
|
|
1723
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1724
|
-
};
|
|
1725
|
-
};
|
|
1726
|
-
const se_CreateHITTypeRequest = (input, context) => {
|
|
1727
|
-
return {
|
|
1728
|
-
...(input.AssignmentDurationInSeconds != null && {
|
|
1729
|
-
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
1730
|
-
}),
|
|
1731
|
-
...(input.AutoApprovalDelayInSeconds != null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds }),
|
|
1732
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1733
|
-
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1734
|
-
...(input.QualificationRequirements != null && {
|
|
1735
|
-
QualificationRequirements: se_QualificationRequirementList(input.QualificationRequirements, context),
|
|
1736
|
-
}),
|
|
1737
|
-
...(input.Reward != null && { Reward: input.Reward }),
|
|
1738
|
-
...(input.Title != null && { Title: input.Title }),
|
|
1739
|
-
};
|
|
1740
|
-
};
|
|
1741
|
-
const se_CreateHITWithHITTypeRequest = (input, context) => {
|
|
1742
|
-
return {
|
|
1743
|
-
...(input.AssignmentReviewPolicy != null && {
|
|
1744
|
-
AssignmentReviewPolicy: se_ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
1745
|
-
}),
|
|
1746
|
-
...(input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId }),
|
|
1747
|
-
...(input.HITLayoutParameters != null && {
|
|
1748
|
-
HITLayoutParameters: se_HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
1749
|
-
}),
|
|
1750
|
-
...(input.HITReviewPolicy != null && { HITReviewPolicy: se_ReviewPolicy(input.HITReviewPolicy, context) }),
|
|
1751
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
1752
|
-
...(input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds }),
|
|
1753
|
-
...(input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments }),
|
|
1754
|
-
...(input.Question != null && { Question: input.Question }),
|
|
1755
|
-
...(input.RequesterAnnotation != null && { RequesterAnnotation: input.RequesterAnnotation }),
|
|
1756
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
1757
|
-
};
|
|
1758
|
-
};
|
|
1759
|
-
const se_CreateQualificationTypeRequest = (input, context) => {
|
|
1760
|
-
return {
|
|
1761
|
-
...(input.AnswerKey != null && { AnswerKey: input.AnswerKey }),
|
|
1762
|
-
...(input.AutoGranted != null && { AutoGranted: input.AutoGranted }),
|
|
1763
|
-
...(input.AutoGrantedValue != null && { AutoGrantedValue: input.AutoGrantedValue }),
|
|
1764
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1765
|
-
...(input.Keywords != null && { Keywords: input.Keywords }),
|
|
1766
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1767
|
-
...(input.QualificationTypeStatus != null && { QualificationTypeStatus: input.QualificationTypeStatus }),
|
|
1768
|
-
...(input.RetryDelayInSeconds != null && { RetryDelayInSeconds: input.RetryDelayInSeconds }),
|
|
1769
|
-
...(input.Test != null && { Test: input.Test }),
|
|
1770
|
-
...(input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }),
|
|
1771
|
-
};
|
|
1772
|
-
};
|
|
1773
|
-
const se_CreateWorkerBlockRequest = (input, context) => {
|
|
1774
|
-
return {
|
|
1775
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
1776
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
const se_CustomerIdList = (input, context) => {
|
|
1780
|
-
return input
|
|
1781
|
-
.filter((e) => e != null)
|
|
1782
|
-
.map((entry) => {
|
|
1783
|
-
return entry;
|
|
1784
|
-
});
|
|
1785
|
-
};
|
|
1786
|
-
const se_DeleteHITRequest = (input, context) => {
|
|
1787
|
-
return {
|
|
1788
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1789
|
-
};
|
|
1790
|
-
};
|
|
1791
|
-
const se_DeleteQualificationTypeRequest = (input, context) => {
|
|
1792
|
-
return {
|
|
1793
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
const se_DeleteWorkerBlockRequest = (input, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
1799
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const se_DisassociateQualificationFromWorkerRequest = (input, context) => {
|
|
1803
|
-
return {
|
|
1804
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1805
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
1806
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
|
-
const se_EventTypeList = (input, context) => {
|
|
1810
|
-
return input
|
|
1811
|
-
.filter((e) => e != null)
|
|
1812
|
-
.map((entry) => {
|
|
1813
|
-
return entry;
|
|
1814
|
-
});
|
|
1815
|
-
};
|
|
1816
|
-
const se_GetAccountBalanceRequest = (input, context) => {
|
|
1817
|
-
return {};
|
|
1818
|
-
};
|
|
1819
|
-
const se_GetAssignmentRequest = (input, context) => {
|
|
1820
|
-
return {
|
|
1821
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1822
|
-
};
|
|
1823
|
-
};
|
|
1824
|
-
const se_GetFileUploadURLRequest = (input, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1827
|
-
...(input.QuestionIdentifier != null && { QuestionIdentifier: input.QuestionIdentifier }),
|
|
1828
|
-
};
|
|
1829
|
-
};
|
|
1830
|
-
const se_GetHITRequest = (input, context) => {
|
|
1831
|
-
return {
|
|
1832
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1833
|
-
};
|
|
1834
|
-
};
|
|
1835
|
-
const se_GetQualificationScoreRequest = (input, context) => {
|
|
1836
|
-
return {
|
|
1837
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1838
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
const se_GetQualificationTypeRequest = (input, context) => {
|
|
1842
|
-
return {
|
|
1843
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1844
|
-
};
|
|
1845
|
-
};
|
|
1846
|
-
const se_HITLayoutParameter = (input, context) => {
|
|
1847
|
-
return {
|
|
1848
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1849
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1850
|
-
};
|
|
1851
|
-
};
|
|
1852
|
-
const se_HITLayoutParameterList = (input, context) => {
|
|
1853
|
-
return input
|
|
1854
|
-
.filter((e) => e != null)
|
|
1855
|
-
.map((entry) => {
|
|
1856
|
-
return se_HITLayoutParameter(entry, context);
|
|
1857
|
-
});
|
|
1858
|
-
};
|
|
1859
|
-
const se_IntegerList = (input, context) => {
|
|
1860
|
-
return input
|
|
1861
|
-
.filter((e) => e != null)
|
|
1862
|
-
.map((entry) => {
|
|
1863
|
-
return entry;
|
|
1864
|
-
});
|
|
1865
|
-
};
|
|
1866
|
-
const se_ListAssignmentsForHITRequest = (input, context) => {
|
|
1867
|
-
return {
|
|
1868
|
-
...(input.AssignmentStatuses != null && {
|
|
1869
|
-
AssignmentStatuses: se_AssignmentStatusList(input.AssignmentStatuses, context),
|
|
1870
|
-
}),
|
|
1871
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1872
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1873
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1874
|
-
};
|
|
1875
|
-
};
|
|
1876
|
-
const se_ListBonusPaymentsRequest = (input, context) => {
|
|
1877
|
-
return {
|
|
1878
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
1879
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1880
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1881
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1882
|
-
};
|
|
1883
|
-
};
|
|
1884
|
-
const se_ListHITsForQualificationTypeRequest = (input, context) => {
|
|
1885
|
-
return {
|
|
1886
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1887
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1888
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1889
|
-
};
|
|
1890
|
-
};
|
|
1891
|
-
const se_ListHITsRequest = (input, context) => {
|
|
1892
|
-
return {
|
|
1893
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1894
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1895
|
-
};
|
|
1896
|
-
};
|
|
1897
|
-
const se_ListQualificationRequestsRequest = (input, context) => {
|
|
1898
|
-
return {
|
|
1899
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1900
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1901
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
const se_ListQualificationTypesRequest = (input, context) => {
|
|
1905
|
-
return {
|
|
1906
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1907
|
-
...(input.MustBeOwnedByCaller != null && { MustBeOwnedByCaller: input.MustBeOwnedByCaller }),
|
|
1908
|
-
...(input.MustBeRequestable != null && { MustBeRequestable: input.MustBeRequestable }),
|
|
1909
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1910
|
-
...(input.Query != null && { Query: input.Query }),
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
const se_ListReviewableHITsRequest = (input, context) => {
|
|
1914
|
-
return {
|
|
1915
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
1916
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1917
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1918
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1919
|
-
};
|
|
1920
|
-
};
|
|
1921
|
-
const se_ListReviewPolicyResultsForHITRequest = (input, context) => {
|
|
1922
|
-
return {
|
|
1923
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
1924
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1925
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1926
|
-
...(input.PolicyLevels != null && { PolicyLevels: se_ReviewPolicyLevelList(input.PolicyLevels, context) }),
|
|
1927
|
-
...(input.RetrieveActions != null && { RetrieveActions: input.RetrieveActions }),
|
|
1928
|
-
...(input.RetrieveResults != null && { RetrieveResults: input.RetrieveResults }),
|
|
1929
|
-
};
|
|
1930
|
-
};
|
|
1931
|
-
const se_ListWorkerBlocksRequest = (input, context) => {
|
|
1932
|
-
return {
|
|
1933
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1934
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1935
|
-
};
|
|
1936
|
-
};
|
|
1937
|
-
const se_ListWorkersWithQualificationTypeRequest = (input, context) => {
|
|
1938
|
-
return {
|
|
1939
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1940
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1941
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
1942
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1943
|
-
};
|
|
1944
|
-
};
|
|
1945
|
-
const se_Locale = (input, context) => {
|
|
1946
|
-
return {
|
|
1947
|
-
...(input.Country != null && { Country: input.Country }),
|
|
1948
|
-
...(input.Subdivision != null && { Subdivision: input.Subdivision }),
|
|
1949
|
-
};
|
|
1950
|
-
};
|
|
1951
|
-
const se_LocaleList = (input, context) => {
|
|
1952
|
-
return input
|
|
1953
|
-
.filter((e) => e != null)
|
|
1954
|
-
.map((entry) => {
|
|
1955
|
-
return se_Locale(entry, context);
|
|
1956
|
-
});
|
|
1957
|
-
};
|
|
1958
|
-
const se_NotificationSpecification = (input, context) => {
|
|
1959
|
-
return {
|
|
1960
|
-
...(input.Destination != null && { Destination: input.Destination }),
|
|
1961
|
-
...(input.EventTypes != null && { EventTypes: se_EventTypeList(input.EventTypes, context) }),
|
|
1962
|
-
...(input.Transport != null && { Transport: input.Transport }),
|
|
1963
|
-
...(input.Version != null && { Version: input.Version }),
|
|
1964
|
-
};
|
|
1965
|
-
};
|
|
1966
|
-
const se_NotifyWorkersRequest = (input, context) => {
|
|
1967
|
-
return {
|
|
1968
|
-
...(input.MessageText != null && { MessageText: input.MessageText }),
|
|
1969
|
-
...(input.Subject != null && { Subject: input.Subject }),
|
|
1970
|
-
...(input.WorkerIds != null && { WorkerIds: se_CustomerIdList(input.WorkerIds, context) }),
|
|
1971
|
-
};
|
|
1972
|
-
};
|
|
1973
|
-
const se_ParameterMapEntry = (input, context) => {
|
|
1974
|
-
return {
|
|
1975
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1976
|
-
...(input.Values != null && { Values: se_StringList(input.Values, context) }),
|
|
1977
|
-
};
|
|
1978
|
-
};
|
|
1979
|
-
const se_ParameterMapEntryList = (input, context) => {
|
|
1980
|
-
return input
|
|
1981
|
-
.filter((e) => e != null)
|
|
1982
|
-
.map((entry) => {
|
|
1983
|
-
return se_ParameterMapEntry(entry, context);
|
|
1984
|
-
});
|
|
1985
|
-
};
|
|
1986
|
-
const se_PolicyParameter = (input, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1989
|
-
...(input.MapEntries != null && { MapEntries: se_ParameterMapEntryList(input.MapEntries, context) }),
|
|
1990
|
-
...(input.Values != null && { Values: se_StringList(input.Values, context) }),
|
|
1991
|
-
};
|
|
1992
|
-
};
|
|
1993
|
-
const se_PolicyParameterList = (input, context) => {
|
|
1994
|
-
return input
|
|
1995
|
-
.filter((e) => e != null)
|
|
1996
|
-
.map((entry) => {
|
|
1997
|
-
return se_PolicyParameter(entry, context);
|
|
1998
|
-
});
|
|
1999
|
-
};
|
|
2000
|
-
const se_QualificationRequirement = (input, context) => {
|
|
2001
|
-
return {
|
|
2002
|
-
...(input.ActionsGuarded != null && { ActionsGuarded: input.ActionsGuarded }),
|
|
2003
|
-
...(input.Comparator != null && { Comparator: input.Comparator }),
|
|
2004
|
-
...(input.IntegerValues != null && { IntegerValues: se_IntegerList(input.IntegerValues, context) }),
|
|
2005
|
-
...(input.LocaleValues != null && { LocaleValues: se_LocaleList(input.LocaleValues, context) }),
|
|
2006
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2007
|
-
...(input.RequiredToPreview != null && { RequiredToPreview: input.RequiredToPreview }),
|
|
2008
|
-
};
|
|
2009
|
-
};
|
|
2010
|
-
const se_QualificationRequirementList = (input, context) => {
|
|
2011
|
-
return input
|
|
2012
|
-
.filter((e) => e != null)
|
|
2013
|
-
.map((entry) => {
|
|
2014
|
-
return se_QualificationRequirement(entry, context);
|
|
2015
|
-
});
|
|
2016
|
-
};
|
|
2017
|
-
const se_RejectAssignmentRequest = (input, context) => {
|
|
2018
|
-
return {
|
|
2019
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2020
|
-
...(input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }),
|
|
2021
|
-
};
|
|
2022
|
-
};
|
|
2023
|
-
const se_RejectQualificationRequestRequest = (input, context) => {
|
|
2024
|
-
return {
|
|
2025
|
-
...(input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId }),
|
|
2026
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
2027
|
-
};
|
|
2028
|
-
};
|
|
2029
|
-
const se_ReviewPolicy = (input, context) => {
|
|
2030
|
-
return {
|
|
2031
|
-
...(input.Parameters != null && { Parameters: se_PolicyParameterList(input.Parameters, context) }),
|
|
2032
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
2033
|
-
};
|
|
2034
|
-
};
|
|
2035
|
-
const se_ReviewPolicyLevelList = (input, context) => {
|
|
2036
|
-
return input
|
|
2037
|
-
.filter((e) => e != null)
|
|
2038
|
-
.map((entry) => {
|
|
2039
|
-
return entry;
|
|
2040
|
-
});
|
|
2041
|
-
};
|
|
2042
|
-
const se_SendBonusRequest = (input, context) => {
|
|
2043
|
-
return {
|
|
2044
|
-
...(input.AssignmentId != null && { AssignmentId: input.AssignmentId }),
|
|
2045
|
-
...(input.BonusAmount != null && { BonusAmount: input.BonusAmount }),
|
|
2046
|
-
...(input.Reason != null && { Reason: input.Reason }),
|
|
2047
|
-
...(input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }),
|
|
2048
|
-
...(input.WorkerId != null && { WorkerId: input.WorkerId }),
|
|
2049
|
-
};
|
|
2050
|
-
};
|
|
2051
|
-
const se_SendTestEventNotificationRequest = (input, context) => {
|
|
2052
|
-
return {
|
|
2053
|
-
...(input.Notification != null && { Notification: se_NotificationSpecification(input.Notification, context) }),
|
|
2054
|
-
...(input.TestEventType != null && { TestEventType: input.TestEventType }),
|
|
2055
|
-
};
|
|
2056
|
-
};
|
|
2057
|
-
const se_StringList = (input, context) => {
|
|
2058
|
-
return input
|
|
2059
|
-
.filter((e) => e != null)
|
|
2060
|
-
.map((entry) => {
|
|
2061
|
-
return entry;
|
|
2062
|
-
});
|
|
2063
|
-
};
|
|
2064
1622
|
const se_UpdateExpirationForHITRequest = (input, context) => {
|
|
2065
|
-
return {
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
};
|
|
2069
|
-
};
|
|
2070
|
-
const se_UpdateHITReviewStatusRequest = (input, context) => {
|
|
2071
|
-
return {
|
|
2072
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
2073
|
-
...(input.Revert != null && { Revert: input.Revert }),
|
|
2074
|
-
};
|
|
2075
|
-
};
|
|
2076
|
-
const se_UpdateHITTypeOfHITRequest = (input, context) => {
|
|
2077
|
-
return {
|
|
2078
|
-
...(input.HITId != null && { HITId: input.HITId }),
|
|
2079
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2080
|
-
};
|
|
2081
|
-
};
|
|
2082
|
-
const se_UpdateNotificationSettingsRequest = (input, context) => {
|
|
2083
|
-
return {
|
|
2084
|
-
...(input.Active != null && { Active: input.Active }),
|
|
2085
|
-
...(input.HITTypeId != null && { HITTypeId: input.HITTypeId }),
|
|
2086
|
-
...(input.Notification != null && { Notification: se_NotificationSpecification(input.Notification, context) }),
|
|
2087
|
-
};
|
|
2088
|
-
};
|
|
2089
|
-
const se_UpdateQualificationTypeRequest = (input, context) => {
|
|
2090
|
-
return {
|
|
2091
|
-
...(input.AnswerKey != null && { AnswerKey: input.AnswerKey }),
|
|
2092
|
-
...(input.AutoGranted != null && { AutoGranted: input.AutoGranted }),
|
|
2093
|
-
...(input.AutoGrantedValue != null && { AutoGrantedValue: input.AutoGrantedValue }),
|
|
2094
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2095
|
-
...(input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }),
|
|
2096
|
-
...(input.QualificationTypeStatus != null && { QualificationTypeStatus: input.QualificationTypeStatus }),
|
|
2097
|
-
...(input.RetryDelayInSeconds != null && { RetryDelayInSeconds: input.RetryDelayInSeconds }),
|
|
2098
|
-
...(input.Test != null && { Test: input.Test }),
|
|
2099
|
-
...(input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }),
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
2102
|
-
const de_AcceptQualificationRequestResponse = (output, context) => {
|
|
2103
|
-
return {};
|
|
2104
|
-
};
|
|
2105
|
-
const de_ApproveAssignmentResponse = (output, context) => {
|
|
2106
|
-
return {};
|
|
1623
|
+
return take(input, {
|
|
1624
|
+
ExpireAt: (_) => Math.round(_.getTime() / 1000),
|
|
1625
|
+
HITId: [],
|
|
1626
|
+
});
|
|
2107
1627
|
};
|
|
2108
1628
|
const de_Assignment = (output, context) => {
|
|
2109
|
-
return {
|
|
2110
|
-
AcceptTime:
|
|
2111
|
-
Answer: __expectString
|
|
2112
|
-
ApprovalTime:
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RejectionTime)))
|
|
2124
|
-
: undefined,
|
|
2125
|
-
RequesterFeedback: __expectString(output.RequesterFeedback),
|
|
2126
|
-
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
2127
|
-
WorkerId: __expectString(output.WorkerId),
|
|
2128
|
-
};
|
|
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
|
+
});
|
|
2129
1643
|
};
|
|
2130
1644
|
const de_AssignmentList = (output, context) => {
|
|
2131
1645
|
const retVal = (output || [])
|
|
2132
1646
|
.filter((e) => e != null)
|
|
2133
1647
|
.map((entry) => {
|
|
2134
|
-
if (entry === null) {
|
|
2135
|
-
return null;
|
|
2136
|
-
}
|
|
2137
1648
|
return de_Assignment(entry, context);
|
|
2138
1649
|
});
|
|
2139
1650
|
return retVal;
|
|
2140
1651
|
};
|
|
2141
|
-
const de_AssociateQualificationWithWorkerResponse = (output, context) => {
|
|
2142
|
-
return {};
|
|
2143
|
-
};
|
|
2144
1652
|
const de_BonusPayment = (output, context) => {
|
|
2145
|
-
return {
|
|
2146
|
-
AssignmentId: __expectString
|
|
2147
|
-
BonusAmount: __expectString
|
|
2148
|
-
GrantTime:
|
|
2149
|
-
Reason: __expectString
|
|
2150
|
-
WorkerId: __expectString
|
|
2151
|
-
};
|
|
1653
|
+
return take(output, {
|
|
1654
|
+
AssignmentId: __expectString,
|
|
1655
|
+
BonusAmount: __expectString,
|
|
1656
|
+
GrantTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1657
|
+
Reason: __expectString,
|
|
1658
|
+
WorkerId: __expectString,
|
|
1659
|
+
});
|
|
2152
1660
|
};
|
|
2153
1661
|
const de_BonusPaymentList = (output, context) => {
|
|
2154
1662
|
const retVal = (output || [])
|
|
2155
1663
|
.filter((e) => e != null)
|
|
2156
1664
|
.map((entry) => {
|
|
2157
|
-
if (entry === null) {
|
|
2158
|
-
return null;
|
|
2159
|
-
}
|
|
2160
1665
|
return de_BonusPayment(entry, context);
|
|
2161
1666
|
});
|
|
2162
1667
|
return retVal;
|
|
2163
1668
|
};
|
|
2164
|
-
const de_CreateAdditionalAssignmentsForHITResponse = (output, context) => {
|
|
2165
|
-
return {};
|
|
2166
|
-
};
|
|
2167
1669
|
const de_CreateHITResponse = (output, context) => {
|
|
2168
|
-
return {
|
|
2169
|
-
HIT:
|
|
2170
|
-
};
|
|
2171
|
-
};
|
|
2172
|
-
const de_CreateHITTypeResponse = (output, context) => {
|
|
2173
|
-
return {
|
|
2174
|
-
HITTypeId: __expectString(output.HITTypeId),
|
|
2175
|
-
};
|
|
1670
|
+
return take(output, {
|
|
1671
|
+
HIT: (_) => de_HIT(_, context),
|
|
1672
|
+
});
|
|
2176
1673
|
};
|
|
2177
1674
|
const de_CreateHITWithHITTypeResponse = (output, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
HIT:
|
|
2180
|
-
};
|
|
1675
|
+
return take(output, {
|
|
1676
|
+
HIT: (_) => de_HIT(_, context),
|
|
1677
|
+
});
|
|
2181
1678
|
};
|
|
2182
1679
|
const de_CreateQualificationTypeResponse = (output, context) => {
|
|
2183
|
-
return {
|
|
2184
|
-
QualificationType:
|
|
2185
|
-
};
|
|
2186
|
-
};
|
|
2187
|
-
const de_CreateWorkerBlockResponse = (output, context) => {
|
|
2188
|
-
return {};
|
|
2189
|
-
};
|
|
2190
|
-
const de_DeleteHITResponse = (output, context) => {
|
|
2191
|
-
return {};
|
|
2192
|
-
};
|
|
2193
|
-
const de_DeleteQualificationTypeResponse = (output, context) => {
|
|
2194
|
-
return {};
|
|
2195
|
-
};
|
|
2196
|
-
const de_DeleteWorkerBlockResponse = (output, context) => {
|
|
2197
|
-
return {};
|
|
2198
|
-
};
|
|
2199
|
-
const de_DisassociateQualificationFromWorkerResponse = (output, context) => {
|
|
2200
|
-
return {};
|
|
2201
|
-
};
|
|
2202
|
-
const de_GetAccountBalanceResponse = (output, context) => {
|
|
2203
|
-
return {
|
|
2204
|
-
AvailableBalance: __expectString(output.AvailableBalance),
|
|
2205
|
-
OnHoldBalance: __expectString(output.OnHoldBalance),
|
|
2206
|
-
};
|
|
1680
|
+
return take(output, {
|
|
1681
|
+
QualificationType: (_) => de_QualificationType(_, context),
|
|
1682
|
+
});
|
|
2207
1683
|
};
|
|
2208
1684
|
const de_GetAssignmentResponse = (output, context) => {
|
|
2209
|
-
return {
|
|
2210
|
-
Assignment:
|
|
2211
|
-
HIT:
|
|
2212
|
-
};
|
|
2213
|
-
};
|
|
2214
|
-
const de_GetFileUploadURLResponse = (output, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
FileUploadURL: __expectString(output.FileUploadURL),
|
|
2217
|
-
};
|
|
1685
|
+
return take(output, {
|
|
1686
|
+
Assignment: (_) => de_Assignment(_, context),
|
|
1687
|
+
HIT: (_) => de_HIT(_, context),
|
|
1688
|
+
});
|
|
2218
1689
|
};
|
|
2219
1690
|
const de_GetHITResponse = (output, context) => {
|
|
2220
|
-
return {
|
|
2221
|
-
HIT:
|
|
2222
|
-
};
|
|
1691
|
+
return take(output, {
|
|
1692
|
+
HIT: (_) => de_HIT(_, context),
|
|
1693
|
+
});
|
|
2223
1694
|
};
|
|
2224
1695
|
const de_GetQualificationScoreResponse = (output, context) => {
|
|
2225
|
-
return {
|
|
2226
|
-
Qualification:
|
|
2227
|
-
};
|
|
1696
|
+
return take(output, {
|
|
1697
|
+
Qualification: (_) => de_Qualification(_, context),
|
|
1698
|
+
});
|
|
2228
1699
|
};
|
|
2229
1700
|
const de_GetQualificationTypeResponse = (output, context) => {
|
|
2230
|
-
return {
|
|
2231
|
-
QualificationType:
|
|
2232
|
-
};
|
|
1701
|
+
return take(output, {
|
|
1702
|
+
QualificationType: (_) => de_QualificationType(_, context),
|
|
1703
|
+
});
|
|
2233
1704
|
};
|
|
2234
1705
|
const de_HIT = (output, context) => {
|
|
2235
|
-
return {
|
|
2236
|
-
AssignmentDurationInSeconds: __expectLong
|
|
2237
|
-
AutoApprovalDelayInSeconds: __expectLong
|
|
2238
|
-
CreationTime:
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
RequesterAnnotation: __expectString(output.RequesterAnnotation),
|
|
2259
|
-
Reward: __expectString(output.Reward),
|
|
2260
|
-
Title: __expectString(output.Title),
|
|
2261
|
-
};
|
|
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
|
+
});
|
|
2262
1729
|
};
|
|
2263
1730
|
const de_HITList = (output, context) => {
|
|
2264
1731
|
const retVal = (output || [])
|
|
2265
1732
|
.filter((e) => e != null)
|
|
2266
1733
|
.map((entry) => {
|
|
2267
|
-
if (entry === null) {
|
|
2268
|
-
return null;
|
|
2269
|
-
}
|
|
2270
1734
|
return de_HIT(entry, context);
|
|
2271
1735
|
});
|
|
2272
1736
|
return retVal;
|
|
2273
1737
|
};
|
|
2274
|
-
const de_IntegerList = (output, context) => {
|
|
2275
|
-
const retVal = (output || [])
|
|
2276
|
-
.filter((e) => e != null)
|
|
2277
|
-
.map((entry) => {
|
|
2278
|
-
if (entry === null) {
|
|
2279
|
-
return null;
|
|
2280
|
-
}
|
|
2281
|
-
return __expectInt32(entry);
|
|
2282
|
-
});
|
|
2283
|
-
return retVal;
|
|
2284
|
-
};
|
|
2285
1738
|
const de_ListAssignmentsForHITResponse = (output, context) => {
|
|
2286
|
-
return {
|
|
2287
|
-
Assignments:
|
|
2288
|
-
NextToken: __expectString
|
|
2289
|
-
NumResults: __expectInt32
|
|
2290
|
-
};
|
|
1739
|
+
return take(output, {
|
|
1740
|
+
Assignments: (_) => de_AssignmentList(_, context),
|
|
1741
|
+
NextToken: __expectString,
|
|
1742
|
+
NumResults: __expectInt32,
|
|
1743
|
+
});
|
|
2291
1744
|
};
|
|
2292
1745
|
const de_ListBonusPaymentsResponse = (output, context) => {
|
|
2293
|
-
return {
|
|
2294
|
-
BonusPayments:
|
|
2295
|
-
NextToken: __expectString
|
|
2296
|
-
NumResults: __expectInt32
|
|
2297
|
-
};
|
|
1746
|
+
return take(output, {
|
|
1747
|
+
BonusPayments: (_) => de_BonusPaymentList(_, context),
|
|
1748
|
+
NextToken: __expectString,
|
|
1749
|
+
NumResults: __expectInt32,
|
|
1750
|
+
});
|
|
2298
1751
|
};
|
|
2299
1752
|
const de_ListHITsForQualificationTypeResponse = (output, context) => {
|
|
2300
|
-
return {
|
|
2301
|
-
HITs:
|
|
2302
|
-
NextToken: __expectString
|
|
2303
|
-
NumResults: __expectInt32
|
|
2304
|
-
};
|
|
1753
|
+
return take(output, {
|
|
1754
|
+
HITs: (_) => de_HITList(_, context),
|
|
1755
|
+
NextToken: __expectString,
|
|
1756
|
+
NumResults: __expectInt32,
|
|
1757
|
+
});
|
|
2305
1758
|
};
|
|
2306
1759
|
const de_ListHITsResponse = (output, context) => {
|
|
2307
|
-
return {
|
|
2308
|
-
HITs:
|
|
2309
|
-
NextToken: __expectString
|
|
2310
|
-
NumResults: __expectInt32
|
|
2311
|
-
};
|
|
1760
|
+
return take(output, {
|
|
1761
|
+
HITs: (_) => de_HITList(_, context),
|
|
1762
|
+
NextToken: __expectString,
|
|
1763
|
+
NumResults: __expectInt32,
|
|
1764
|
+
});
|
|
2312
1765
|
};
|
|
2313
1766
|
const de_ListQualificationRequestsResponse = (output, context) => {
|
|
2314
|
-
return {
|
|
2315
|
-
NextToken: __expectString
|
|
2316
|
-
NumResults: __expectInt32
|
|
2317
|
-
QualificationRequests:
|
|
2318
|
-
|
|
2319
|
-
: undefined,
|
|
2320
|
-
};
|
|
1767
|
+
return take(output, {
|
|
1768
|
+
NextToken: __expectString,
|
|
1769
|
+
NumResults: __expectInt32,
|
|
1770
|
+
QualificationRequests: (_) => de_QualificationRequestList(_, context),
|
|
1771
|
+
});
|
|
2321
1772
|
};
|
|
2322
1773
|
const de_ListQualificationTypesResponse = (output, context) => {
|
|
2323
|
-
return {
|
|
2324
|
-
NextToken: __expectString
|
|
2325
|
-
NumResults: __expectInt32
|
|
2326
|
-
QualificationTypes:
|
|
2327
|
-
};
|
|
2328
|
-
};
|
|
2329
|
-
const de_ListReviewableHITsResponse = (output, context) => {
|
|
2330
|
-
return {
|
|
2331
|
-
HITs: output.HITs != null ? de_HITList(output.HITs, context) : undefined,
|
|
2332
|
-
NextToken: __expectString(output.NextToken),
|
|
2333
|
-
NumResults: __expectInt32(output.NumResults),
|
|
2334
|
-
};
|
|
2335
|
-
};
|
|
2336
|
-
const de_ListReviewPolicyResultsForHITResponse = (output, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
AssignmentReviewPolicy: output.AssignmentReviewPolicy != null ? de_ReviewPolicy(output.AssignmentReviewPolicy, context) : undefined,
|
|
2339
|
-
AssignmentReviewReport: output.AssignmentReviewReport != null ? de_ReviewReport(output.AssignmentReviewReport, context) : undefined,
|
|
2340
|
-
HITId: __expectString(output.HITId),
|
|
2341
|
-
HITReviewPolicy: output.HITReviewPolicy != null ? de_ReviewPolicy(output.HITReviewPolicy, context) : undefined,
|
|
2342
|
-
HITReviewReport: output.HITReviewReport != null ? de_ReviewReport(output.HITReviewReport, context) : undefined,
|
|
2343
|
-
NextToken: __expectString(output.NextToken),
|
|
2344
|
-
};
|
|
2345
|
-
};
|
|
2346
|
-
const de_ListWorkerBlocksResponse = (output, context) => {
|
|
2347
|
-
return {
|
|
2348
|
-
NextToken: __expectString(output.NextToken),
|
|
2349
|
-
NumResults: __expectInt32(output.NumResults),
|
|
2350
|
-
WorkerBlocks: output.WorkerBlocks != null ? de_WorkerBlockList(output.WorkerBlocks, context) : undefined,
|
|
2351
|
-
};
|
|
2352
|
-
};
|
|
2353
|
-
const de_ListWorkersWithQualificationTypeResponse = (output, context) => {
|
|
2354
|
-
return {
|
|
2355
|
-
NextToken: __expectString(output.NextToken),
|
|
2356
|
-
NumResults: __expectInt32(output.NumResults),
|
|
2357
|
-
Qualifications: output.Qualifications != null ? de_QualificationList(output.Qualifications, context) : undefined,
|
|
2358
|
-
};
|
|
2359
|
-
};
|
|
2360
|
-
const de_Locale = (output, context) => {
|
|
2361
|
-
return {
|
|
2362
|
-
Country: __expectString(output.Country),
|
|
2363
|
-
Subdivision: __expectString(output.Subdivision),
|
|
2364
|
-
};
|
|
2365
|
-
};
|
|
2366
|
-
const de_LocaleList = (output, context) => {
|
|
2367
|
-
const retVal = (output || [])
|
|
2368
|
-
.filter((e) => e != null)
|
|
2369
|
-
.map((entry) => {
|
|
2370
|
-
if (entry === null) {
|
|
2371
|
-
return null;
|
|
2372
|
-
}
|
|
2373
|
-
return de_Locale(entry, context);
|
|
1774
|
+
return take(output, {
|
|
1775
|
+
NextToken: __expectString,
|
|
1776
|
+
NumResults: __expectInt32,
|
|
1777
|
+
QualificationTypes: (_) => de_QualificationTypeList(_, context),
|
|
2374
1778
|
});
|
|
2375
|
-
return retVal;
|
|
2376
|
-
};
|
|
2377
|
-
const de_NotifyWorkersFailureStatus = (output, context) => {
|
|
2378
|
-
return {
|
|
2379
|
-
NotifyWorkersFailureCode: __expectString(output.NotifyWorkersFailureCode),
|
|
2380
|
-
NotifyWorkersFailureMessage: __expectString(output.NotifyWorkersFailureMessage),
|
|
2381
|
-
WorkerId: __expectString(output.WorkerId),
|
|
2382
|
-
};
|
|
2383
1779
|
};
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
return null;
|
|
2390
|
-
}
|
|
2391
|
-
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,
|
|
2392
1785
|
});
|
|
2393
|
-
return retVal;
|
|
2394
|
-
};
|
|
2395
|
-
const de_NotifyWorkersResponse = (output, context) => {
|
|
2396
|
-
return {
|
|
2397
|
-
NotifyWorkersFailureStatuses: output.NotifyWorkersFailureStatuses != null
|
|
2398
|
-
? de_NotifyWorkersFailureStatusList(output.NotifyWorkersFailureStatuses, context)
|
|
2399
|
-
: undefined,
|
|
2400
|
-
};
|
|
2401
|
-
};
|
|
2402
|
-
const de_ParameterMapEntry = (output, context) => {
|
|
2403
|
-
return {
|
|
2404
|
-
Key: __expectString(output.Key),
|
|
2405
|
-
Values: output.Values != null ? de_StringList(output.Values, context) : undefined,
|
|
2406
|
-
};
|
|
2407
1786
|
};
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
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,
|
|
2416
1795
|
});
|
|
2417
|
-
return retVal;
|
|
2418
|
-
};
|
|
2419
|
-
const de_PolicyParameter = (output, context) => {
|
|
2420
|
-
return {
|
|
2421
|
-
Key: __expectString(output.Key),
|
|
2422
|
-
MapEntries: output.MapEntries != null ? de_ParameterMapEntryList(output.MapEntries, context) : undefined,
|
|
2423
|
-
Values: output.Values != null ? de_StringList(output.Values, context) : undefined,
|
|
2424
|
-
};
|
|
2425
1796
|
};
|
|
2426
|
-
const
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
return null;
|
|
2432
|
-
}
|
|
2433
|
-
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),
|
|
2434
1802
|
});
|
|
2435
|
-
return retVal;
|
|
2436
1803
|
};
|
|
2437
1804
|
const de_Qualification = (output, context) => {
|
|
2438
|
-
return {
|
|
2439
|
-
GrantTime:
|
|
2440
|
-
IntegerValue: __expectInt32
|
|
2441
|
-
LocaleValue:
|
|
2442
|
-
QualificationTypeId: __expectString
|
|
2443
|
-
Status: __expectString
|
|
2444
|
-
WorkerId: __expectString
|
|
2445
|
-
};
|
|
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
|
+
});
|
|
2446
1813
|
};
|
|
2447
1814
|
const de_QualificationList = (output, context) => {
|
|
2448
1815
|
const retVal = (output || [])
|
|
2449
1816
|
.filter((e) => e != null)
|
|
2450
1817
|
.map((entry) => {
|
|
2451
|
-
if (entry === null) {
|
|
2452
|
-
return null;
|
|
2453
|
-
}
|
|
2454
1818
|
return de_Qualification(entry, context);
|
|
2455
1819
|
});
|
|
2456
1820
|
return retVal;
|
|
2457
1821
|
};
|
|
2458
1822
|
const de_QualificationRequest = (output, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
Answer: __expectString
|
|
2461
|
-
QualificationRequestId: __expectString
|
|
2462
|
-
QualificationTypeId: __expectString
|
|
2463
|
-
SubmitTime:
|
|
2464
|
-
Test: __expectString
|
|
2465
|
-
WorkerId: __expectString
|
|
2466
|
-
};
|
|
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
|
+
});
|
|
2467
1831
|
};
|
|
2468
1832
|
const de_QualificationRequestList = (output, context) => {
|
|
2469
1833
|
const retVal = (output || [])
|
|
2470
1834
|
.filter((e) => e != null)
|
|
2471
1835
|
.map((entry) => {
|
|
2472
|
-
if (entry === null) {
|
|
2473
|
-
return null;
|
|
2474
|
-
}
|
|
2475
1836
|
return de_QualificationRequest(entry, context);
|
|
2476
1837
|
});
|
|
2477
1838
|
return retVal;
|
|
2478
1839
|
};
|
|
2479
|
-
const de_QualificationRequirement = (output, context) => {
|
|
2480
|
-
return {
|
|
2481
|
-
ActionsGuarded: __expectString(output.ActionsGuarded),
|
|
2482
|
-
Comparator: __expectString(output.Comparator),
|
|
2483
|
-
IntegerValues: output.IntegerValues != null ? de_IntegerList(output.IntegerValues, context) : undefined,
|
|
2484
|
-
LocaleValues: output.LocaleValues != null ? de_LocaleList(output.LocaleValues, context) : undefined,
|
|
2485
|
-
QualificationTypeId: __expectString(output.QualificationTypeId),
|
|
2486
|
-
RequiredToPreview: __expectBoolean(output.RequiredToPreview),
|
|
2487
|
-
};
|
|
2488
|
-
};
|
|
2489
|
-
const de_QualificationRequirementList = (output, context) => {
|
|
2490
|
-
const retVal = (output || [])
|
|
2491
|
-
.filter((e) => e != null)
|
|
2492
|
-
.map((entry) => {
|
|
2493
|
-
if (entry === null) {
|
|
2494
|
-
return null;
|
|
2495
|
-
}
|
|
2496
|
-
return de_QualificationRequirement(entry, context);
|
|
2497
|
-
});
|
|
2498
|
-
return retVal;
|
|
2499
|
-
};
|
|
2500
1840
|
const de_QualificationType = (output, context) => {
|
|
2501
|
-
return {
|
|
2502
|
-
AnswerKey: __expectString
|
|
2503
|
-
AutoGranted: __expectBoolean
|
|
2504
|
-
AutoGrantedValue: __expectInt32
|
|
2505
|
-
CreationTime:
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
TestDurationInSeconds: __expectLong(output.TestDurationInSeconds),
|
|
2517
|
-
};
|
|
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
|
+
});
|
|
2518
1856
|
};
|
|
2519
1857
|
const de_QualificationTypeList = (output, context) => {
|
|
2520
1858
|
const retVal = (output || [])
|
|
2521
1859
|
.filter((e) => e != null)
|
|
2522
1860
|
.map((entry) => {
|
|
2523
|
-
if (entry === null) {
|
|
2524
|
-
return null;
|
|
2525
|
-
}
|
|
2526
1861
|
return de_QualificationType(entry, context);
|
|
2527
1862
|
});
|
|
2528
1863
|
return retVal;
|
|
2529
1864
|
};
|
|
2530
|
-
const de_RejectAssignmentResponse = (output, context) => {
|
|
2531
|
-
return {};
|
|
2532
|
-
};
|
|
2533
|
-
const de_RejectQualificationRequestResponse = (output, context) => {
|
|
2534
|
-
return {};
|
|
2535
|
-
};
|
|
2536
|
-
const de_RequestError = (output, context) => {
|
|
2537
|
-
return {
|
|
2538
|
-
Message: __expectString(output.Message),
|
|
2539
|
-
TurkErrorCode: __expectString(output.TurkErrorCode),
|
|
2540
|
-
};
|
|
2541
|
-
};
|
|
2542
1865
|
const de_ReviewActionDetail = (output, context) => {
|
|
2543
|
-
return {
|
|
2544
|
-
ActionId: __expectString
|
|
2545
|
-
ActionName: __expectString
|
|
2546
|
-
CompleteTime:
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
TargetType: __expectString(output.TargetType),
|
|
2554
|
-
};
|
|
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
|
+
});
|
|
2555
1876
|
};
|
|
2556
1877
|
const de_ReviewActionDetailList = (output, context) => {
|
|
2557
1878
|
const retVal = (output || [])
|
|
2558
1879
|
.filter((e) => e != null)
|
|
2559
1880
|
.map((entry) => {
|
|
2560
|
-
if (entry === null) {
|
|
2561
|
-
return null;
|
|
2562
|
-
}
|
|
2563
1881
|
return de_ReviewActionDetail(entry, context);
|
|
2564
1882
|
});
|
|
2565
1883
|
return retVal;
|
|
2566
1884
|
};
|
|
2567
|
-
const de_ReviewPolicy = (output, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
Parameters: output.Parameters != null ? de_PolicyParameterList(output.Parameters, context) : undefined,
|
|
2570
|
-
PolicyName: __expectString(output.PolicyName),
|
|
2571
|
-
};
|
|
2572
|
-
};
|
|
2573
1885
|
const de_ReviewReport = (output, context) => {
|
|
2574
|
-
return {
|
|
2575
|
-
ReviewActions:
|
|
2576
|
-
ReviewResults:
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
const de_ReviewResultDetail = (output, context) => {
|
|
2580
|
-
return {
|
|
2581
|
-
ActionId: __expectString(output.ActionId),
|
|
2582
|
-
Key: __expectString(output.Key),
|
|
2583
|
-
QuestionId: __expectString(output.QuestionId),
|
|
2584
|
-
SubjectId: __expectString(output.SubjectId),
|
|
2585
|
-
SubjectType: __expectString(output.SubjectType),
|
|
2586
|
-
Value: __expectString(output.Value),
|
|
2587
|
-
};
|
|
2588
|
-
};
|
|
2589
|
-
const de_ReviewResultDetailList = (output, context) => {
|
|
2590
|
-
const retVal = (output || [])
|
|
2591
|
-
.filter((e) => e != null)
|
|
2592
|
-
.map((entry) => {
|
|
2593
|
-
if (entry === null) {
|
|
2594
|
-
return null;
|
|
2595
|
-
}
|
|
2596
|
-
return de_ReviewResultDetail(entry, context);
|
|
2597
|
-
});
|
|
2598
|
-
return retVal;
|
|
2599
|
-
};
|
|
2600
|
-
const de_SendBonusResponse = (output, context) => {
|
|
2601
|
-
return {};
|
|
2602
|
-
};
|
|
2603
|
-
const de_SendTestEventNotificationResponse = (output, context) => {
|
|
2604
|
-
return {};
|
|
2605
|
-
};
|
|
2606
|
-
const de_ServiceFault = (output, context) => {
|
|
2607
|
-
return {
|
|
2608
|
-
Message: __expectString(output.Message),
|
|
2609
|
-
TurkErrorCode: __expectString(output.TurkErrorCode),
|
|
2610
|
-
};
|
|
2611
|
-
};
|
|
2612
|
-
const de_StringList = (output, context) => {
|
|
2613
|
-
const retVal = (output || [])
|
|
2614
|
-
.filter((e) => e != null)
|
|
2615
|
-
.map((entry) => {
|
|
2616
|
-
if (entry === null) {
|
|
2617
|
-
return null;
|
|
2618
|
-
}
|
|
2619
|
-
return __expectString(entry);
|
|
1886
|
+
return take(output, {
|
|
1887
|
+
ReviewActions: (_) => de_ReviewActionDetailList(_, context),
|
|
1888
|
+
ReviewResults: _json,
|
|
2620
1889
|
});
|
|
2621
|
-
return retVal;
|
|
2622
|
-
};
|
|
2623
|
-
const de_UpdateExpirationForHITResponse = (output, context) => {
|
|
2624
|
-
return {};
|
|
2625
|
-
};
|
|
2626
|
-
const de_UpdateHITReviewStatusResponse = (output, context) => {
|
|
2627
|
-
return {};
|
|
2628
|
-
};
|
|
2629
|
-
const de_UpdateHITTypeOfHITResponse = (output, context) => {
|
|
2630
|
-
return {};
|
|
2631
|
-
};
|
|
2632
|
-
const de_UpdateNotificationSettingsResponse = (output, context) => {
|
|
2633
|
-
return {};
|
|
2634
1890
|
};
|
|
2635
1891
|
const de_UpdateQualificationTypeResponse = (output, context) => {
|
|
2636
|
-
return {
|
|
2637
|
-
QualificationType:
|
|
2638
|
-
};
|
|
2639
|
-
};
|
|
2640
|
-
const de_WorkerBlock = (output, context) => {
|
|
2641
|
-
return {
|
|
2642
|
-
Reason: __expectString(output.Reason),
|
|
2643
|
-
WorkerId: __expectString(output.WorkerId),
|
|
2644
|
-
};
|
|
2645
|
-
};
|
|
2646
|
-
const de_WorkerBlockList = (output, context) => {
|
|
2647
|
-
const retVal = (output || [])
|
|
2648
|
-
.filter((e) => e != null)
|
|
2649
|
-
.map((entry) => {
|
|
2650
|
-
if (entry === null) {
|
|
2651
|
-
return null;
|
|
2652
|
-
}
|
|
2653
|
-
return de_WorkerBlock(entry, context);
|
|
1892
|
+
return take(output, {
|
|
1893
|
+
QualificationType: (_) => de_QualificationType(_, context),
|
|
2654
1894
|
});
|
|
2655
|
-
return retVal;
|
|
2656
1895
|
};
|
|
2657
1896
|
const deserializeMetadata = (output) => ({
|
|
2658
1897
|
httpStatusCode: output.statusCode,
|
|
@@ -2667,6 +1906,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2667
1906
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2668
1907
|
};
|
|
2669
1908
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1909
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2670
1910
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2671
1911
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2672
1912
|
const contents = {
|