@aws-sdk/client-mturk 3.489.0 → 3.495.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 +1 -89
- package/dist-cjs/MTurkClient.js +1 -43
- package/dist-cjs/commands/AcceptQualificationRequestCommand.js +1 -28
- package/dist-cjs/commands/ApproveAssignmentCommand.js +1 -28
- package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js +1 -28
- package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +1 -28
- package/dist-cjs/commands/CreateHITCommand.js +1 -28
- package/dist-cjs/commands/CreateHITTypeCommand.js +1 -28
- package/dist-cjs/commands/CreateHITWithHITTypeCommand.js +1 -28
- package/dist-cjs/commands/CreateQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/CreateWorkerBlockCommand.js +1 -28
- package/dist-cjs/commands/DeleteHITCommand.js +1 -28
- package/dist-cjs/commands/DeleteQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/DeleteWorkerBlockCommand.js +1 -28
- package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js +1 -28
- package/dist-cjs/commands/GetAccountBalanceCommand.js +1 -28
- package/dist-cjs/commands/GetAssignmentCommand.js +1 -28
- package/dist-cjs/commands/GetFileUploadURLCommand.js +1 -28
- package/dist-cjs/commands/GetHITCommand.js +1 -28
- package/dist-cjs/commands/GetQualificationScoreCommand.js +1 -28
- package/dist-cjs/commands/GetQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/ListAssignmentsForHITCommand.js +1 -28
- package/dist-cjs/commands/ListBonusPaymentsCommand.js +1 -28
- package/dist-cjs/commands/ListHITsCommand.js +1 -28
- package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/ListQualificationRequestsCommand.js +1 -28
- package/dist-cjs/commands/ListQualificationTypesCommand.js +1 -28
- package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js +1 -28
- package/dist-cjs/commands/ListReviewableHITsCommand.js +1 -28
- package/dist-cjs/commands/ListWorkerBlocksCommand.js +1 -28
- package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/NotifyWorkersCommand.js +1 -28
- package/dist-cjs/commands/RejectAssignmentCommand.js +1 -28
- package/dist-cjs/commands/RejectQualificationRequestCommand.js +1 -28
- package/dist-cjs/commands/SendBonusCommand.js +1 -28
- package/dist-cjs/commands/SendTestEventNotificationCommand.js +1 -28
- package/dist-cjs/commands/UpdateExpirationForHITCommand.js +1 -28
- package/dist-cjs/commands/UpdateHITReviewStatusCommand.js +1 -28
- package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js +1 -28
- package/dist-cjs/commands/UpdateNotificationSettingsCommand.js +1 -28
- package/dist-cjs/commands/UpdateQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -42
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3097 -11
- package/dist-cjs/models/MTurkServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -114
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAssignmentsForHITPaginator.js +1 -7
- package/dist-cjs/pagination/ListBonusPaymentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListHITsForQualificationTypePaginator.js +1 -7
- package/dist-cjs/pagination/ListHITsPaginator.js +1 -7
- package/dist-cjs/pagination/ListQualificationRequestsPaginator.js +1 -7
- package/dist-cjs/pagination/ListQualificationTypesPaginator.js +1 -7
- package/dist-cjs/pagination/ListReviewPolicyResultsForHITPaginator.js +1 -7
- package/dist-cjs/pagination/ListReviewableHITsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkerBlocksPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkersWithQualificationTypePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -14
- package/dist-cjs/protocols/Aws_json1_1.js +1 -2049
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,3098 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AcceptQualificationRequestCommand: () => AcceptQualificationRequestCommand,
|
|
25
|
+
ApproveAssignmentCommand: () => ApproveAssignmentCommand,
|
|
26
|
+
AssignmentStatus: () => AssignmentStatus,
|
|
27
|
+
AssociateQualificationWithWorkerCommand: () => AssociateQualificationWithWorkerCommand,
|
|
28
|
+
Comparator: () => Comparator,
|
|
29
|
+
CreateAdditionalAssignmentsForHITCommand: () => CreateAdditionalAssignmentsForHITCommand,
|
|
30
|
+
CreateHITCommand: () => CreateHITCommand,
|
|
31
|
+
CreateHITTypeCommand: () => CreateHITTypeCommand,
|
|
32
|
+
CreateHITWithHITTypeCommand: () => CreateHITWithHITTypeCommand,
|
|
33
|
+
CreateQualificationTypeCommand: () => CreateQualificationTypeCommand,
|
|
34
|
+
CreateWorkerBlockCommand: () => CreateWorkerBlockCommand,
|
|
35
|
+
DeleteHITCommand: () => DeleteHITCommand,
|
|
36
|
+
DeleteQualificationTypeCommand: () => DeleteQualificationTypeCommand,
|
|
37
|
+
DeleteWorkerBlockCommand: () => DeleteWorkerBlockCommand,
|
|
38
|
+
DisassociateQualificationFromWorkerCommand: () => DisassociateQualificationFromWorkerCommand,
|
|
39
|
+
EventType: () => EventType,
|
|
40
|
+
GetAccountBalanceCommand: () => GetAccountBalanceCommand,
|
|
41
|
+
GetAssignmentCommand: () => GetAssignmentCommand,
|
|
42
|
+
GetFileUploadURLCommand: () => GetFileUploadURLCommand,
|
|
43
|
+
GetHITCommand: () => GetHITCommand,
|
|
44
|
+
GetQualificationScoreCommand: () => GetQualificationScoreCommand,
|
|
45
|
+
GetQualificationTypeCommand: () => GetQualificationTypeCommand,
|
|
46
|
+
HITAccessActions: () => HITAccessActions,
|
|
47
|
+
HITReviewStatus: () => HITReviewStatus,
|
|
48
|
+
HITStatus: () => HITStatus,
|
|
49
|
+
ListAssignmentsForHITCommand: () => ListAssignmentsForHITCommand,
|
|
50
|
+
ListBonusPaymentsCommand: () => ListBonusPaymentsCommand,
|
|
51
|
+
ListHITsCommand: () => ListHITsCommand,
|
|
52
|
+
ListHITsForQualificationTypeCommand: () => ListHITsForQualificationTypeCommand,
|
|
53
|
+
ListQualificationRequestsCommand: () => ListQualificationRequestsCommand,
|
|
54
|
+
ListQualificationTypesCommand: () => ListQualificationTypesCommand,
|
|
55
|
+
ListReviewPolicyResultsForHITCommand: () => ListReviewPolicyResultsForHITCommand,
|
|
56
|
+
ListReviewableHITsCommand: () => ListReviewableHITsCommand,
|
|
57
|
+
ListWorkerBlocksCommand: () => ListWorkerBlocksCommand,
|
|
58
|
+
ListWorkersWithQualificationTypeCommand: () => ListWorkersWithQualificationTypeCommand,
|
|
59
|
+
MTurk: () => MTurk,
|
|
60
|
+
MTurkClient: () => MTurkClient,
|
|
61
|
+
MTurkServiceException: () => MTurkServiceException,
|
|
62
|
+
NotificationTransport: () => NotificationTransport,
|
|
63
|
+
NotifyWorkersCommand: () => NotifyWorkersCommand,
|
|
64
|
+
NotifyWorkersFailureCode: () => NotifyWorkersFailureCode,
|
|
65
|
+
QualificationStatus: () => QualificationStatus,
|
|
66
|
+
QualificationTypeStatus: () => QualificationTypeStatus,
|
|
67
|
+
RejectAssignmentCommand: () => RejectAssignmentCommand,
|
|
68
|
+
RejectQualificationRequestCommand: () => RejectQualificationRequestCommand,
|
|
69
|
+
RequestError: () => RequestError,
|
|
70
|
+
ReviewActionStatus: () => ReviewActionStatus,
|
|
71
|
+
ReviewPolicyLevel: () => ReviewPolicyLevel,
|
|
72
|
+
ReviewableHITStatus: () => ReviewableHITStatus,
|
|
73
|
+
SendBonusCommand: () => SendBonusCommand,
|
|
74
|
+
SendTestEventNotificationCommand: () => SendTestEventNotificationCommand,
|
|
75
|
+
ServiceFault: () => ServiceFault,
|
|
76
|
+
UpdateExpirationForHITCommand: () => UpdateExpirationForHITCommand,
|
|
77
|
+
UpdateHITReviewStatusCommand: () => UpdateHITReviewStatusCommand,
|
|
78
|
+
UpdateHITTypeOfHITCommand: () => UpdateHITTypeOfHITCommand,
|
|
79
|
+
UpdateNotificationSettingsCommand: () => UpdateNotificationSettingsCommand,
|
|
80
|
+
UpdateQualificationTypeCommand: () => UpdateQualificationTypeCommand,
|
|
81
|
+
__Client: () => import_smithy_client.Client,
|
|
82
|
+
paginateListAssignmentsForHIT: () => paginateListAssignmentsForHIT,
|
|
83
|
+
paginateListBonusPayments: () => paginateListBonusPayments,
|
|
84
|
+
paginateListHITs: () => paginateListHITs,
|
|
85
|
+
paginateListHITsForQualificationType: () => paginateListHITsForQualificationType,
|
|
86
|
+
paginateListQualificationRequests: () => paginateListQualificationRequests,
|
|
87
|
+
paginateListQualificationTypes: () => paginateListQualificationTypes,
|
|
88
|
+
paginateListReviewPolicyResultsForHIT: () => paginateListReviewPolicyResultsForHIT,
|
|
89
|
+
paginateListReviewableHITs: () => paginateListReviewableHITs,
|
|
90
|
+
paginateListWorkerBlocks: () => paginateListWorkerBlocks,
|
|
91
|
+
paginateListWorkersWithQualificationType: () => paginateListWorkersWithQualificationType
|
|
92
|
+
});
|
|
93
|
+
module.exports = __toCommonJS(src_exports);
|
|
94
|
+
|
|
95
|
+
// src/MTurkClient.ts
|
|
96
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
97
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
98
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
99
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
100
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
101
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
102
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
103
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
104
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
// src/endpoint/EndpointParameters.ts
|
|
108
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
109
|
+
return {
|
|
110
|
+
...options,
|
|
111
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
112
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
113
|
+
defaultSigningName: "mturk-requester"
|
|
114
|
+
};
|
|
115
|
+
}, "resolveClientEndpointParameters");
|
|
116
|
+
var commonParams = {
|
|
117
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
118
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
119
|
+
Region: { type: "builtInParams", name: "region" },
|
|
120
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
// src/MTurkClient.ts
|
|
124
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
125
|
+
|
|
126
|
+
// src/runtimeExtensions.ts
|
|
127
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
128
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
129
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
130
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
131
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
132
|
+
const extensionConfiguration = {
|
|
133
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
134
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
135
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
136
|
+
};
|
|
137
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
138
|
+
return {
|
|
139
|
+
...runtimeConfig,
|
|
140
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
141
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
142
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
143
|
+
};
|
|
144
|
+
}, "resolveRuntimeExtensions");
|
|
145
|
+
|
|
146
|
+
// src/MTurkClient.ts
|
|
147
|
+
var _MTurkClient = class _MTurkClient extends import_smithy_client.Client {
|
|
148
|
+
constructor(...[configuration]) {
|
|
149
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
150
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
151
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
152
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
153
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
154
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
155
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
156
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
157
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
158
|
+
super(_config_8);
|
|
159
|
+
this.config = _config_8;
|
|
160
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
161
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
162
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
163
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
164
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
165
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
166
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
170
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
171
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
172
|
+
*/
|
|
173
|
+
destroy() {
|
|
174
|
+
super.destroy();
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
__name(_MTurkClient, "MTurkClient");
|
|
178
|
+
var MTurkClient = _MTurkClient;
|
|
179
|
+
|
|
180
|
+
// src/MTurk.ts
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
// src/commands/AcceptQualificationRequestCommand.ts
|
|
184
|
+
|
|
185
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
186
|
+
|
|
187
|
+
var import_types = require("@smithy/types");
|
|
188
|
+
|
|
189
|
+
// src/protocols/Aws_json1_1.ts
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
// src/models/MTurkServiceException.ts
|
|
194
|
+
|
|
195
|
+
var _MTurkServiceException = class _MTurkServiceException extends import_smithy_client.ServiceException {
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
constructor(options) {
|
|
200
|
+
super(options);
|
|
201
|
+
Object.setPrototypeOf(this, _MTurkServiceException.prototype);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
__name(_MTurkServiceException, "MTurkServiceException");
|
|
205
|
+
var MTurkServiceException = _MTurkServiceException;
|
|
206
|
+
|
|
207
|
+
// src/models/models_0.ts
|
|
208
|
+
var _RequestError = class _RequestError extends MTurkServiceException {
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "RequestError",
|
|
215
|
+
$fault: "client",
|
|
216
|
+
...opts
|
|
217
|
+
});
|
|
218
|
+
this.name = "RequestError";
|
|
219
|
+
this.$fault = "client";
|
|
220
|
+
Object.setPrototypeOf(this, _RequestError.prototype);
|
|
221
|
+
this.Message = opts.Message;
|
|
222
|
+
this.TurkErrorCode = opts.TurkErrorCode;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
__name(_RequestError, "RequestError");
|
|
226
|
+
var RequestError = _RequestError;
|
|
227
|
+
var _ServiceFault = class _ServiceFault extends MTurkServiceException {
|
|
228
|
+
/**
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
231
|
+
constructor(opts) {
|
|
232
|
+
super({
|
|
233
|
+
name: "ServiceFault",
|
|
234
|
+
$fault: "server",
|
|
235
|
+
...opts
|
|
236
|
+
});
|
|
237
|
+
this.name = "ServiceFault";
|
|
238
|
+
this.$fault = "server";
|
|
239
|
+
Object.setPrototypeOf(this, _ServiceFault.prototype);
|
|
240
|
+
this.Message = opts.Message;
|
|
241
|
+
this.TurkErrorCode = opts.TurkErrorCode;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
__name(_ServiceFault, "ServiceFault");
|
|
245
|
+
var ServiceFault = _ServiceFault;
|
|
246
|
+
var AssignmentStatus = {
|
|
247
|
+
Approved: "Approved",
|
|
248
|
+
Rejected: "Rejected",
|
|
249
|
+
Submitted: "Submitted"
|
|
250
|
+
};
|
|
251
|
+
var Comparator = {
|
|
252
|
+
DoesNotExist: "DoesNotExist",
|
|
253
|
+
EqualTo: "EqualTo",
|
|
254
|
+
Exists: "Exists",
|
|
255
|
+
GreaterThan: "GreaterThan",
|
|
256
|
+
GreaterThanOrEqualTo: "GreaterThanOrEqualTo",
|
|
257
|
+
In: "In",
|
|
258
|
+
LessThan: "LessThan",
|
|
259
|
+
LessThanOrEqualTo: "LessThanOrEqualTo",
|
|
260
|
+
NotEqualTo: "NotEqualTo",
|
|
261
|
+
NotIn: "NotIn"
|
|
262
|
+
};
|
|
263
|
+
var HITAccessActions = {
|
|
264
|
+
Accept: "Accept",
|
|
265
|
+
DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept",
|
|
266
|
+
PreviewAndAccept: "PreviewAndAccept"
|
|
267
|
+
};
|
|
268
|
+
var HITReviewStatus = {
|
|
269
|
+
MarkedForReview: "MarkedForReview",
|
|
270
|
+
NotReviewed: "NotReviewed",
|
|
271
|
+
ReviewedAppropriate: "ReviewedAppropriate",
|
|
272
|
+
ReviewedInappropriate: "ReviewedInappropriate"
|
|
273
|
+
};
|
|
274
|
+
var HITStatus = {
|
|
275
|
+
Assignable: "Assignable",
|
|
276
|
+
Disposed: "Disposed",
|
|
277
|
+
Reviewable: "Reviewable",
|
|
278
|
+
Reviewing: "Reviewing",
|
|
279
|
+
Unassignable: "Unassignable"
|
|
280
|
+
};
|
|
281
|
+
var QualificationTypeStatus = {
|
|
282
|
+
Active: "Active",
|
|
283
|
+
Inactive: "Inactive"
|
|
284
|
+
};
|
|
285
|
+
var EventType = {
|
|
286
|
+
AssignmentAbandoned: "AssignmentAbandoned",
|
|
287
|
+
AssignmentAccepted: "AssignmentAccepted",
|
|
288
|
+
AssignmentApproved: "AssignmentApproved",
|
|
289
|
+
AssignmentRejected: "AssignmentRejected",
|
|
290
|
+
AssignmentReturned: "AssignmentReturned",
|
|
291
|
+
AssignmentSubmitted: "AssignmentSubmitted",
|
|
292
|
+
HITCreated: "HITCreated",
|
|
293
|
+
HITDisposed: "HITDisposed",
|
|
294
|
+
HITExpired: "HITExpired",
|
|
295
|
+
HITExtended: "HITExtended",
|
|
296
|
+
HITReviewable: "HITReviewable",
|
|
297
|
+
Ping: "Ping"
|
|
298
|
+
};
|
|
299
|
+
var QualificationStatus = {
|
|
300
|
+
Granted: "Granted",
|
|
301
|
+
Revoked: "Revoked"
|
|
302
|
+
};
|
|
303
|
+
var ReviewableHITStatus = {
|
|
304
|
+
Reviewable: "Reviewable",
|
|
305
|
+
Reviewing: "Reviewing"
|
|
306
|
+
};
|
|
307
|
+
var ReviewPolicyLevel = {
|
|
308
|
+
Assignment: "Assignment",
|
|
309
|
+
HIT: "HIT"
|
|
310
|
+
};
|
|
311
|
+
var ReviewActionStatus = {
|
|
312
|
+
Cancelled: "Cancelled",
|
|
313
|
+
Failed: "Failed",
|
|
314
|
+
Intended: "Intended",
|
|
315
|
+
Succeeded: "Succeeded"
|
|
316
|
+
};
|
|
317
|
+
var NotifyWorkersFailureCode = {
|
|
318
|
+
HardFailure: "HardFailure",
|
|
319
|
+
SoftFailure: "SoftFailure"
|
|
320
|
+
};
|
|
321
|
+
var NotificationTransport = {
|
|
322
|
+
Email: "Email",
|
|
323
|
+
SNS: "SNS",
|
|
324
|
+
SQS: "SQS"
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
// src/protocols/Aws_json1_1.ts
|
|
328
|
+
var se_AcceptQualificationRequestCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
329
|
+
const headers = sharedHeaders("AcceptQualificationRequest");
|
|
330
|
+
let body;
|
|
331
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
332
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
333
|
+
}, "se_AcceptQualificationRequestCommand");
|
|
334
|
+
var se_ApproveAssignmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
335
|
+
const headers = sharedHeaders("ApproveAssignment");
|
|
336
|
+
let body;
|
|
337
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
338
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
339
|
+
}, "se_ApproveAssignmentCommand");
|
|
340
|
+
var se_AssociateQualificationWithWorkerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
341
|
+
const headers = sharedHeaders("AssociateQualificationWithWorker");
|
|
342
|
+
let body;
|
|
343
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
344
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
345
|
+
}, "se_AssociateQualificationWithWorkerCommand");
|
|
346
|
+
var se_CreateAdditionalAssignmentsForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
347
|
+
const headers = sharedHeaders("CreateAdditionalAssignmentsForHIT");
|
|
348
|
+
let body;
|
|
349
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
350
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
351
|
+
}, "se_CreateAdditionalAssignmentsForHITCommand");
|
|
352
|
+
var se_CreateHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
353
|
+
const headers = sharedHeaders("CreateHIT");
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
356
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
357
|
+
}, "se_CreateHITCommand");
|
|
358
|
+
var se_CreateHITTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
359
|
+
const headers = sharedHeaders("CreateHITType");
|
|
360
|
+
let body;
|
|
361
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
362
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
363
|
+
}, "se_CreateHITTypeCommand");
|
|
364
|
+
var se_CreateHITWithHITTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
365
|
+
const headers = sharedHeaders("CreateHITWithHITType");
|
|
366
|
+
let body;
|
|
367
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
368
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
369
|
+
}, "se_CreateHITWithHITTypeCommand");
|
|
370
|
+
var se_CreateQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
371
|
+
const headers = sharedHeaders("CreateQualificationType");
|
|
372
|
+
let body;
|
|
373
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
374
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
375
|
+
}, "se_CreateQualificationTypeCommand");
|
|
376
|
+
var se_CreateWorkerBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
377
|
+
const headers = sharedHeaders("CreateWorkerBlock");
|
|
378
|
+
let body;
|
|
379
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
380
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
381
|
+
}, "se_CreateWorkerBlockCommand");
|
|
382
|
+
var se_DeleteHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
383
|
+
const headers = sharedHeaders("DeleteHIT");
|
|
384
|
+
let body;
|
|
385
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
386
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
387
|
+
}, "se_DeleteHITCommand");
|
|
388
|
+
var se_DeleteQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
389
|
+
const headers = sharedHeaders("DeleteQualificationType");
|
|
390
|
+
let body;
|
|
391
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
392
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
393
|
+
}, "se_DeleteQualificationTypeCommand");
|
|
394
|
+
var se_DeleteWorkerBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
395
|
+
const headers = sharedHeaders("DeleteWorkerBlock");
|
|
396
|
+
let body;
|
|
397
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
398
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
399
|
+
}, "se_DeleteWorkerBlockCommand");
|
|
400
|
+
var se_DisassociateQualificationFromWorkerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
401
|
+
const headers = sharedHeaders("DisassociateQualificationFromWorker");
|
|
402
|
+
let body;
|
|
403
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
404
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
405
|
+
}, "se_DisassociateQualificationFromWorkerCommand");
|
|
406
|
+
var se_GetAccountBalanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
407
|
+
const headers = sharedHeaders("GetAccountBalance");
|
|
408
|
+
let body;
|
|
409
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
410
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
411
|
+
}, "se_GetAccountBalanceCommand");
|
|
412
|
+
var se_GetAssignmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
413
|
+
const headers = sharedHeaders("GetAssignment");
|
|
414
|
+
let body;
|
|
415
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
416
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
417
|
+
}, "se_GetAssignmentCommand");
|
|
418
|
+
var se_GetFileUploadURLCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
419
|
+
const headers = sharedHeaders("GetFileUploadURL");
|
|
420
|
+
let body;
|
|
421
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
422
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
423
|
+
}, "se_GetFileUploadURLCommand");
|
|
424
|
+
var se_GetHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
+
const headers = sharedHeaders("GetHIT");
|
|
426
|
+
let body;
|
|
427
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
428
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
429
|
+
}, "se_GetHITCommand");
|
|
430
|
+
var se_GetQualificationScoreCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
431
|
+
const headers = sharedHeaders("GetQualificationScore");
|
|
432
|
+
let body;
|
|
433
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
434
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
435
|
+
}, "se_GetQualificationScoreCommand");
|
|
436
|
+
var se_GetQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
437
|
+
const headers = sharedHeaders("GetQualificationType");
|
|
438
|
+
let body;
|
|
439
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
440
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
441
|
+
}, "se_GetQualificationTypeCommand");
|
|
442
|
+
var se_ListAssignmentsForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
443
|
+
const headers = sharedHeaders("ListAssignmentsForHIT");
|
|
444
|
+
let body;
|
|
445
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
446
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
447
|
+
}, "se_ListAssignmentsForHITCommand");
|
|
448
|
+
var se_ListBonusPaymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
449
|
+
const headers = sharedHeaders("ListBonusPayments");
|
|
450
|
+
let body;
|
|
451
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
452
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
453
|
+
}, "se_ListBonusPaymentsCommand");
|
|
454
|
+
var se_ListHITsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
455
|
+
const headers = sharedHeaders("ListHITs");
|
|
456
|
+
let body;
|
|
457
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
458
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
459
|
+
}, "se_ListHITsCommand");
|
|
460
|
+
var se_ListHITsForQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
461
|
+
const headers = sharedHeaders("ListHITsForQualificationType");
|
|
462
|
+
let body;
|
|
463
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
464
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
465
|
+
}, "se_ListHITsForQualificationTypeCommand");
|
|
466
|
+
var se_ListQualificationRequestsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
467
|
+
const headers = sharedHeaders("ListQualificationRequests");
|
|
468
|
+
let body;
|
|
469
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
470
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
471
|
+
}, "se_ListQualificationRequestsCommand");
|
|
472
|
+
var se_ListQualificationTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
473
|
+
const headers = sharedHeaders("ListQualificationTypes");
|
|
474
|
+
let body;
|
|
475
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
476
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
477
|
+
}, "se_ListQualificationTypesCommand");
|
|
478
|
+
var se_ListReviewableHITsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
479
|
+
const headers = sharedHeaders("ListReviewableHITs");
|
|
480
|
+
let body;
|
|
481
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
482
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
483
|
+
}, "se_ListReviewableHITsCommand");
|
|
484
|
+
var se_ListReviewPolicyResultsForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
485
|
+
const headers = sharedHeaders("ListReviewPolicyResultsForHIT");
|
|
486
|
+
let body;
|
|
487
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
488
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
489
|
+
}, "se_ListReviewPolicyResultsForHITCommand");
|
|
490
|
+
var se_ListWorkerBlocksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
491
|
+
const headers = sharedHeaders("ListWorkerBlocks");
|
|
492
|
+
let body;
|
|
493
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
494
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
495
|
+
}, "se_ListWorkerBlocksCommand");
|
|
496
|
+
var se_ListWorkersWithQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
497
|
+
const headers = sharedHeaders("ListWorkersWithQualificationType");
|
|
498
|
+
let body;
|
|
499
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
500
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
501
|
+
}, "se_ListWorkersWithQualificationTypeCommand");
|
|
502
|
+
var se_NotifyWorkersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
503
|
+
const headers = sharedHeaders("NotifyWorkers");
|
|
504
|
+
let body;
|
|
505
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
506
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
507
|
+
}, "se_NotifyWorkersCommand");
|
|
508
|
+
var se_RejectAssignmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
509
|
+
const headers = sharedHeaders("RejectAssignment");
|
|
510
|
+
let body;
|
|
511
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
512
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
513
|
+
}, "se_RejectAssignmentCommand");
|
|
514
|
+
var se_RejectQualificationRequestCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
515
|
+
const headers = sharedHeaders("RejectQualificationRequest");
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
518
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
519
|
+
}, "se_RejectQualificationRequestCommand");
|
|
520
|
+
var se_SendBonusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
+
const headers = sharedHeaders("SendBonus");
|
|
522
|
+
let body;
|
|
523
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
524
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
525
|
+
}, "se_SendBonusCommand");
|
|
526
|
+
var se_SendTestEventNotificationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
527
|
+
const headers = sharedHeaders("SendTestEventNotification");
|
|
528
|
+
let body;
|
|
529
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
530
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
531
|
+
}, "se_SendTestEventNotificationCommand");
|
|
532
|
+
var se_UpdateExpirationForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
533
|
+
const headers = sharedHeaders("UpdateExpirationForHIT");
|
|
534
|
+
let body;
|
|
535
|
+
body = JSON.stringify(se_UpdateExpirationForHITRequest(input, context));
|
|
536
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
537
|
+
}, "se_UpdateExpirationForHITCommand");
|
|
538
|
+
var se_UpdateHITReviewStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
539
|
+
const headers = sharedHeaders("UpdateHITReviewStatus");
|
|
540
|
+
let body;
|
|
541
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
542
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
543
|
+
}, "se_UpdateHITReviewStatusCommand");
|
|
544
|
+
var se_UpdateHITTypeOfHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
545
|
+
const headers = sharedHeaders("UpdateHITTypeOfHIT");
|
|
546
|
+
let body;
|
|
547
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
548
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
549
|
+
}, "se_UpdateHITTypeOfHITCommand");
|
|
550
|
+
var se_UpdateNotificationSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
551
|
+
const headers = sharedHeaders("UpdateNotificationSettings");
|
|
552
|
+
let body;
|
|
553
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
554
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
555
|
+
}, "se_UpdateNotificationSettingsCommand");
|
|
556
|
+
var se_UpdateQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
557
|
+
const headers = sharedHeaders("UpdateQualificationType");
|
|
558
|
+
let body;
|
|
559
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
560
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
561
|
+
}, "se_UpdateQualificationTypeCommand");
|
|
562
|
+
var de_AcceptQualificationRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
563
|
+
if (output.statusCode >= 300) {
|
|
564
|
+
return de_AcceptQualificationRequestCommandError(output, context);
|
|
565
|
+
}
|
|
566
|
+
const data = await parseBody(output.body, context);
|
|
567
|
+
let contents = {};
|
|
568
|
+
contents = (0, import_smithy_client._json)(data);
|
|
569
|
+
const response = {
|
|
570
|
+
$metadata: deserializeMetadata(output),
|
|
571
|
+
...contents
|
|
572
|
+
};
|
|
573
|
+
return response;
|
|
574
|
+
}, "de_AcceptQualificationRequestCommand");
|
|
575
|
+
var de_AcceptQualificationRequestCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
576
|
+
const parsedOutput = {
|
|
577
|
+
...output,
|
|
578
|
+
body: await parseErrorBody(output.body, context)
|
|
579
|
+
};
|
|
580
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
|
+
switch (errorCode) {
|
|
582
|
+
case "RequestError":
|
|
583
|
+
case "com.amazonaws.mturk#RequestError":
|
|
584
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
585
|
+
case "ServiceFault":
|
|
586
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
587
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
588
|
+
default:
|
|
589
|
+
const parsedBody = parsedOutput.body;
|
|
590
|
+
return throwDefaultError({
|
|
591
|
+
output,
|
|
592
|
+
parsedBody,
|
|
593
|
+
errorCode
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
}, "de_AcceptQualificationRequestCommandError");
|
|
597
|
+
var de_ApproveAssignmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
598
|
+
if (output.statusCode >= 300) {
|
|
599
|
+
return de_ApproveAssignmentCommandError(output, context);
|
|
600
|
+
}
|
|
601
|
+
const data = await parseBody(output.body, context);
|
|
602
|
+
let contents = {};
|
|
603
|
+
contents = (0, import_smithy_client._json)(data);
|
|
604
|
+
const response = {
|
|
605
|
+
$metadata: deserializeMetadata(output),
|
|
606
|
+
...contents
|
|
607
|
+
};
|
|
608
|
+
return response;
|
|
609
|
+
}, "de_ApproveAssignmentCommand");
|
|
610
|
+
var de_ApproveAssignmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
611
|
+
const parsedOutput = {
|
|
612
|
+
...output,
|
|
613
|
+
body: await parseErrorBody(output.body, context)
|
|
614
|
+
};
|
|
615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
|
+
switch (errorCode) {
|
|
617
|
+
case "RequestError":
|
|
618
|
+
case "com.amazonaws.mturk#RequestError":
|
|
619
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
620
|
+
case "ServiceFault":
|
|
621
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
622
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
623
|
+
default:
|
|
624
|
+
const parsedBody = parsedOutput.body;
|
|
625
|
+
return throwDefaultError({
|
|
626
|
+
output,
|
|
627
|
+
parsedBody,
|
|
628
|
+
errorCode
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
}, "de_ApproveAssignmentCommandError");
|
|
632
|
+
var de_AssociateQualificationWithWorkerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
|
+
if (output.statusCode >= 300) {
|
|
634
|
+
return de_AssociateQualificationWithWorkerCommandError(output, context);
|
|
635
|
+
}
|
|
636
|
+
const data = await parseBody(output.body, context);
|
|
637
|
+
let contents = {};
|
|
638
|
+
contents = (0, import_smithy_client._json)(data);
|
|
639
|
+
const response = {
|
|
640
|
+
$metadata: deserializeMetadata(output),
|
|
641
|
+
...contents
|
|
642
|
+
};
|
|
643
|
+
return response;
|
|
644
|
+
}, "de_AssociateQualificationWithWorkerCommand");
|
|
645
|
+
var de_AssociateQualificationWithWorkerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
+
const parsedOutput = {
|
|
647
|
+
...output,
|
|
648
|
+
body: await parseErrorBody(output.body, context)
|
|
649
|
+
};
|
|
650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
+
switch (errorCode) {
|
|
652
|
+
case "RequestError":
|
|
653
|
+
case "com.amazonaws.mturk#RequestError":
|
|
654
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
655
|
+
case "ServiceFault":
|
|
656
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
657
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
658
|
+
default:
|
|
659
|
+
const parsedBody = parsedOutput.body;
|
|
660
|
+
return throwDefaultError({
|
|
661
|
+
output,
|
|
662
|
+
parsedBody,
|
|
663
|
+
errorCode
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
}, "de_AssociateQualificationWithWorkerCommandError");
|
|
667
|
+
var de_CreateAdditionalAssignmentsForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
|
+
if (output.statusCode >= 300) {
|
|
669
|
+
return de_CreateAdditionalAssignmentsForHITCommandError(output, context);
|
|
670
|
+
}
|
|
671
|
+
const data = await parseBody(output.body, context);
|
|
672
|
+
let contents = {};
|
|
673
|
+
contents = (0, import_smithy_client._json)(data);
|
|
674
|
+
const response = {
|
|
675
|
+
$metadata: deserializeMetadata(output),
|
|
676
|
+
...contents
|
|
677
|
+
};
|
|
678
|
+
return response;
|
|
679
|
+
}, "de_CreateAdditionalAssignmentsForHITCommand");
|
|
680
|
+
var de_CreateAdditionalAssignmentsForHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
+
const parsedOutput = {
|
|
682
|
+
...output,
|
|
683
|
+
body: await parseErrorBody(output.body, context)
|
|
684
|
+
};
|
|
685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
|
+
switch (errorCode) {
|
|
687
|
+
case "RequestError":
|
|
688
|
+
case "com.amazonaws.mturk#RequestError":
|
|
689
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
690
|
+
case "ServiceFault":
|
|
691
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
692
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
693
|
+
default:
|
|
694
|
+
const parsedBody = parsedOutput.body;
|
|
695
|
+
return throwDefaultError({
|
|
696
|
+
output,
|
|
697
|
+
parsedBody,
|
|
698
|
+
errorCode
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
}, "de_CreateAdditionalAssignmentsForHITCommandError");
|
|
702
|
+
var de_CreateHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
703
|
+
if (output.statusCode >= 300) {
|
|
704
|
+
return de_CreateHITCommandError(output, context);
|
|
705
|
+
}
|
|
706
|
+
const data = await parseBody(output.body, context);
|
|
707
|
+
let contents = {};
|
|
708
|
+
contents = de_CreateHITResponse(data, context);
|
|
709
|
+
const response = {
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
...contents
|
|
712
|
+
};
|
|
713
|
+
return response;
|
|
714
|
+
}, "de_CreateHITCommand");
|
|
715
|
+
var de_CreateHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
+
const parsedOutput = {
|
|
717
|
+
...output,
|
|
718
|
+
body: await parseErrorBody(output.body, context)
|
|
719
|
+
};
|
|
720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
+
switch (errorCode) {
|
|
722
|
+
case "RequestError":
|
|
723
|
+
case "com.amazonaws.mturk#RequestError":
|
|
724
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
725
|
+
case "ServiceFault":
|
|
726
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
727
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
728
|
+
default:
|
|
729
|
+
const parsedBody = parsedOutput.body;
|
|
730
|
+
return throwDefaultError({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
errorCode
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
}, "de_CreateHITCommandError");
|
|
737
|
+
var de_CreateHITTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
738
|
+
if (output.statusCode >= 300) {
|
|
739
|
+
return de_CreateHITTypeCommandError(output, context);
|
|
740
|
+
}
|
|
741
|
+
const data = await parseBody(output.body, context);
|
|
742
|
+
let contents = {};
|
|
743
|
+
contents = (0, import_smithy_client._json)(data);
|
|
744
|
+
const response = {
|
|
745
|
+
$metadata: deserializeMetadata(output),
|
|
746
|
+
...contents
|
|
747
|
+
};
|
|
748
|
+
return response;
|
|
749
|
+
}, "de_CreateHITTypeCommand");
|
|
750
|
+
var de_CreateHITTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
751
|
+
const parsedOutput = {
|
|
752
|
+
...output,
|
|
753
|
+
body: await parseErrorBody(output.body, context)
|
|
754
|
+
};
|
|
755
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
+
switch (errorCode) {
|
|
757
|
+
case "RequestError":
|
|
758
|
+
case "com.amazonaws.mturk#RequestError":
|
|
759
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
760
|
+
case "ServiceFault":
|
|
761
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
762
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
763
|
+
default:
|
|
764
|
+
const parsedBody = parsedOutput.body;
|
|
765
|
+
return throwDefaultError({
|
|
766
|
+
output,
|
|
767
|
+
parsedBody,
|
|
768
|
+
errorCode
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
}, "de_CreateHITTypeCommandError");
|
|
772
|
+
var de_CreateHITWithHITTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
773
|
+
if (output.statusCode >= 300) {
|
|
774
|
+
return de_CreateHITWithHITTypeCommandError(output, context);
|
|
775
|
+
}
|
|
776
|
+
const data = await parseBody(output.body, context);
|
|
777
|
+
let contents = {};
|
|
778
|
+
contents = de_CreateHITWithHITTypeResponse(data, context);
|
|
779
|
+
const response = {
|
|
780
|
+
$metadata: deserializeMetadata(output),
|
|
781
|
+
...contents
|
|
782
|
+
};
|
|
783
|
+
return response;
|
|
784
|
+
}, "de_CreateHITWithHITTypeCommand");
|
|
785
|
+
var de_CreateHITWithHITTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
786
|
+
const parsedOutput = {
|
|
787
|
+
...output,
|
|
788
|
+
body: await parseErrorBody(output.body, context)
|
|
789
|
+
};
|
|
790
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
|
+
switch (errorCode) {
|
|
792
|
+
case "RequestError":
|
|
793
|
+
case "com.amazonaws.mturk#RequestError":
|
|
794
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
795
|
+
case "ServiceFault":
|
|
796
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
797
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
798
|
+
default:
|
|
799
|
+
const parsedBody = parsedOutput.body;
|
|
800
|
+
return throwDefaultError({
|
|
801
|
+
output,
|
|
802
|
+
parsedBody,
|
|
803
|
+
errorCode
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
}, "de_CreateHITWithHITTypeCommandError");
|
|
807
|
+
var de_CreateQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
|
+
if (output.statusCode >= 300) {
|
|
809
|
+
return de_CreateQualificationTypeCommandError(output, context);
|
|
810
|
+
}
|
|
811
|
+
const data = await parseBody(output.body, context);
|
|
812
|
+
let contents = {};
|
|
813
|
+
contents = de_CreateQualificationTypeResponse(data, context);
|
|
814
|
+
const response = {
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
...contents
|
|
817
|
+
};
|
|
818
|
+
return response;
|
|
819
|
+
}, "de_CreateQualificationTypeCommand");
|
|
820
|
+
var de_CreateQualificationTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
+
const parsedOutput = {
|
|
822
|
+
...output,
|
|
823
|
+
body: await parseErrorBody(output.body, context)
|
|
824
|
+
};
|
|
825
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
+
switch (errorCode) {
|
|
827
|
+
case "RequestError":
|
|
828
|
+
case "com.amazonaws.mturk#RequestError":
|
|
829
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
830
|
+
case "ServiceFault":
|
|
831
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
832
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
833
|
+
default:
|
|
834
|
+
const parsedBody = parsedOutput.body;
|
|
835
|
+
return throwDefaultError({
|
|
836
|
+
output,
|
|
837
|
+
parsedBody,
|
|
838
|
+
errorCode
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
}, "de_CreateQualificationTypeCommandError");
|
|
842
|
+
var de_CreateWorkerBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
|
+
if (output.statusCode >= 300) {
|
|
844
|
+
return de_CreateWorkerBlockCommandError(output, context);
|
|
845
|
+
}
|
|
846
|
+
const data = await parseBody(output.body, context);
|
|
847
|
+
let contents = {};
|
|
848
|
+
contents = (0, import_smithy_client._json)(data);
|
|
849
|
+
const response = {
|
|
850
|
+
$metadata: deserializeMetadata(output),
|
|
851
|
+
...contents
|
|
852
|
+
};
|
|
853
|
+
return response;
|
|
854
|
+
}, "de_CreateWorkerBlockCommand");
|
|
855
|
+
var de_CreateWorkerBlockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
856
|
+
const parsedOutput = {
|
|
857
|
+
...output,
|
|
858
|
+
body: await parseErrorBody(output.body, context)
|
|
859
|
+
};
|
|
860
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
|
+
switch (errorCode) {
|
|
862
|
+
case "RequestError":
|
|
863
|
+
case "com.amazonaws.mturk#RequestError":
|
|
864
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
865
|
+
case "ServiceFault":
|
|
866
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
867
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
868
|
+
default:
|
|
869
|
+
const parsedBody = parsedOutput.body;
|
|
870
|
+
return throwDefaultError({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
errorCode
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
}, "de_CreateWorkerBlockCommandError");
|
|
877
|
+
var de_DeleteHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
878
|
+
if (output.statusCode >= 300) {
|
|
879
|
+
return de_DeleteHITCommandError(output, context);
|
|
880
|
+
}
|
|
881
|
+
const data = await parseBody(output.body, context);
|
|
882
|
+
let contents = {};
|
|
883
|
+
contents = (0, import_smithy_client._json)(data);
|
|
884
|
+
const response = {
|
|
885
|
+
$metadata: deserializeMetadata(output),
|
|
886
|
+
...contents
|
|
887
|
+
};
|
|
888
|
+
return response;
|
|
889
|
+
}, "de_DeleteHITCommand");
|
|
890
|
+
var de_DeleteHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
|
+
const parsedOutput = {
|
|
892
|
+
...output,
|
|
893
|
+
body: await parseErrorBody(output.body, context)
|
|
894
|
+
};
|
|
895
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
|
+
switch (errorCode) {
|
|
897
|
+
case "RequestError":
|
|
898
|
+
case "com.amazonaws.mturk#RequestError":
|
|
899
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
900
|
+
case "ServiceFault":
|
|
901
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
902
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
903
|
+
default:
|
|
904
|
+
const parsedBody = parsedOutput.body;
|
|
905
|
+
return throwDefaultError({
|
|
906
|
+
output,
|
|
907
|
+
parsedBody,
|
|
908
|
+
errorCode
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
}, "de_DeleteHITCommandError");
|
|
912
|
+
var de_DeleteQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
913
|
+
if (output.statusCode >= 300) {
|
|
914
|
+
return de_DeleteQualificationTypeCommandError(output, context);
|
|
915
|
+
}
|
|
916
|
+
const data = await parseBody(output.body, context);
|
|
917
|
+
let contents = {};
|
|
918
|
+
contents = (0, import_smithy_client._json)(data);
|
|
919
|
+
const response = {
|
|
920
|
+
$metadata: deserializeMetadata(output),
|
|
921
|
+
...contents
|
|
922
|
+
};
|
|
923
|
+
return response;
|
|
924
|
+
}, "de_DeleteQualificationTypeCommand");
|
|
925
|
+
var de_DeleteQualificationTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
|
+
const parsedOutput = {
|
|
927
|
+
...output,
|
|
928
|
+
body: await parseErrorBody(output.body, context)
|
|
929
|
+
};
|
|
930
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
+
switch (errorCode) {
|
|
932
|
+
case "RequestError":
|
|
933
|
+
case "com.amazonaws.mturk#RequestError":
|
|
934
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
935
|
+
case "ServiceFault":
|
|
936
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
937
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
938
|
+
default:
|
|
939
|
+
const parsedBody = parsedOutput.body;
|
|
940
|
+
return throwDefaultError({
|
|
941
|
+
output,
|
|
942
|
+
parsedBody,
|
|
943
|
+
errorCode
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
}, "de_DeleteQualificationTypeCommandError");
|
|
947
|
+
var de_DeleteWorkerBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
948
|
+
if (output.statusCode >= 300) {
|
|
949
|
+
return de_DeleteWorkerBlockCommandError(output, context);
|
|
950
|
+
}
|
|
951
|
+
const data = await parseBody(output.body, context);
|
|
952
|
+
let contents = {};
|
|
953
|
+
contents = (0, import_smithy_client._json)(data);
|
|
954
|
+
const response = {
|
|
955
|
+
$metadata: deserializeMetadata(output),
|
|
956
|
+
...contents
|
|
957
|
+
};
|
|
958
|
+
return response;
|
|
959
|
+
}, "de_DeleteWorkerBlockCommand");
|
|
960
|
+
var de_DeleteWorkerBlockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
961
|
+
const parsedOutput = {
|
|
962
|
+
...output,
|
|
963
|
+
body: await parseErrorBody(output.body, context)
|
|
964
|
+
};
|
|
965
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
+
switch (errorCode) {
|
|
967
|
+
case "RequestError":
|
|
968
|
+
case "com.amazonaws.mturk#RequestError":
|
|
969
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
970
|
+
case "ServiceFault":
|
|
971
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
972
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
973
|
+
default:
|
|
974
|
+
const parsedBody = parsedOutput.body;
|
|
975
|
+
return throwDefaultError({
|
|
976
|
+
output,
|
|
977
|
+
parsedBody,
|
|
978
|
+
errorCode
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
}, "de_DeleteWorkerBlockCommandError");
|
|
982
|
+
var de_DisassociateQualificationFromWorkerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
|
+
if (output.statusCode >= 300) {
|
|
984
|
+
return de_DisassociateQualificationFromWorkerCommandError(output, context);
|
|
985
|
+
}
|
|
986
|
+
const data = await parseBody(output.body, context);
|
|
987
|
+
let contents = {};
|
|
988
|
+
contents = (0, import_smithy_client._json)(data);
|
|
989
|
+
const response = {
|
|
990
|
+
$metadata: deserializeMetadata(output),
|
|
991
|
+
...contents
|
|
992
|
+
};
|
|
993
|
+
return response;
|
|
994
|
+
}, "de_DisassociateQualificationFromWorkerCommand");
|
|
995
|
+
var de_DisassociateQualificationFromWorkerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
996
|
+
const parsedOutput = {
|
|
997
|
+
...output,
|
|
998
|
+
body: await parseErrorBody(output.body, context)
|
|
999
|
+
};
|
|
1000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
+
switch (errorCode) {
|
|
1002
|
+
case "RequestError":
|
|
1003
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1004
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1005
|
+
case "ServiceFault":
|
|
1006
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1007
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1008
|
+
default:
|
|
1009
|
+
const parsedBody = parsedOutput.body;
|
|
1010
|
+
return throwDefaultError({
|
|
1011
|
+
output,
|
|
1012
|
+
parsedBody,
|
|
1013
|
+
errorCode
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
}, "de_DisassociateQualificationFromWorkerCommandError");
|
|
1017
|
+
var de_GetAccountBalanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
+
if (output.statusCode >= 300) {
|
|
1019
|
+
return de_GetAccountBalanceCommandError(output, context);
|
|
1020
|
+
}
|
|
1021
|
+
const data = await parseBody(output.body, context);
|
|
1022
|
+
let contents = {};
|
|
1023
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1024
|
+
const response = {
|
|
1025
|
+
$metadata: deserializeMetadata(output),
|
|
1026
|
+
...contents
|
|
1027
|
+
};
|
|
1028
|
+
return response;
|
|
1029
|
+
}, "de_GetAccountBalanceCommand");
|
|
1030
|
+
var de_GetAccountBalanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
|
+
const parsedOutput = {
|
|
1032
|
+
...output,
|
|
1033
|
+
body: await parseErrorBody(output.body, context)
|
|
1034
|
+
};
|
|
1035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
|
+
switch (errorCode) {
|
|
1037
|
+
case "RequestError":
|
|
1038
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1039
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1040
|
+
case "ServiceFault":
|
|
1041
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1042
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1043
|
+
default:
|
|
1044
|
+
const parsedBody = parsedOutput.body;
|
|
1045
|
+
return throwDefaultError({
|
|
1046
|
+
output,
|
|
1047
|
+
parsedBody,
|
|
1048
|
+
errorCode
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
}, "de_GetAccountBalanceCommandError");
|
|
1052
|
+
var de_GetAssignmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1053
|
+
if (output.statusCode >= 300) {
|
|
1054
|
+
return de_GetAssignmentCommandError(output, context);
|
|
1055
|
+
}
|
|
1056
|
+
const data = await parseBody(output.body, context);
|
|
1057
|
+
let contents = {};
|
|
1058
|
+
contents = de_GetAssignmentResponse(data, context);
|
|
1059
|
+
const response = {
|
|
1060
|
+
$metadata: deserializeMetadata(output),
|
|
1061
|
+
...contents
|
|
1062
|
+
};
|
|
1063
|
+
return response;
|
|
1064
|
+
}, "de_GetAssignmentCommand");
|
|
1065
|
+
var de_GetAssignmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
|
+
const parsedOutput = {
|
|
1067
|
+
...output,
|
|
1068
|
+
body: await parseErrorBody(output.body, context)
|
|
1069
|
+
};
|
|
1070
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
|
+
switch (errorCode) {
|
|
1072
|
+
case "RequestError":
|
|
1073
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1074
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1075
|
+
case "ServiceFault":
|
|
1076
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1077
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1078
|
+
default:
|
|
1079
|
+
const parsedBody = parsedOutput.body;
|
|
1080
|
+
return throwDefaultError({
|
|
1081
|
+
output,
|
|
1082
|
+
parsedBody,
|
|
1083
|
+
errorCode
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
}, "de_GetAssignmentCommandError");
|
|
1087
|
+
var de_GetFileUploadURLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1088
|
+
if (output.statusCode >= 300) {
|
|
1089
|
+
return de_GetFileUploadURLCommandError(output, context);
|
|
1090
|
+
}
|
|
1091
|
+
const data = await parseBody(output.body, context);
|
|
1092
|
+
let contents = {};
|
|
1093
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1094
|
+
const response = {
|
|
1095
|
+
$metadata: deserializeMetadata(output),
|
|
1096
|
+
...contents
|
|
1097
|
+
};
|
|
1098
|
+
return response;
|
|
1099
|
+
}, "de_GetFileUploadURLCommand");
|
|
1100
|
+
var de_GetFileUploadURLCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1101
|
+
const parsedOutput = {
|
|
1102
|
+
...output,
|
|
1103
|
+
body: await parseErrorBody(output.body, context)
|
|
1104
|
+
};
|
|
1105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
+
switch (errorCode) {
|
|
1107
|
+
case "RequestError":
|
|
1108
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1109
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1110
|
+
case "ServiceFault":
|
|
1111
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1112
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1113
|
+
default:
|
|
1114
|
+
const parsedBody = parsedOutput.body;
|
|
1115
|
+
return throwDefaultError({
|
|
1116
|
+
output,
|
|
1117
|
+
parsedBody,
|
|
1118
|
+
errorCode
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
}, "de_GetFileUploadURLCommandError");
|
|
1122
|
+
var de_GetHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1123
|
+
if (output.statusCode >= 300) {
|
|
1124
|
+
return de_GetHITCommandError(output, context);
|
|
1125
|
+
}
|
|
1126
|
+
const data = await parseBody(output.body, context);
|
|
1127
|
+
let contents = {};
|
|
1128
|
+
contents = de_GetHITResponse(data, context);
|
|
1129
|
+
const response = {
|
|
1130
|
+
$metadata: deserializeMetadata(output),
|
|
1131
|
+
...contents
|
|
1132
|
+
};
|
|
1133
|
+
return response;
|
|
1134
|
+
}, "de_GetHITCommand");
|
|
1135
|
+
var de_GetHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1136
|
+
const parsedOutput = {
|
|
1137
|
+
...output,
|
|
1138
|
+
body: await parseErrorBody(output.body, context)
|
|
1139
|
+
};
|
|
1140
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
|
+
switch (errorCode) {
|
|
1142
|
+
case "RequestError":
|
|
1143
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1144
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1145
|
+
case "ServiceFault":
|
|
1146
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1147
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1148
|
+
default:
|
|
1149
|
+
const parsedBody = parsedOutput.body;
|
|
1150
|
+
return throwDefaultError({
|
|
1151
|
+
output,
|
|
1152
|
+
parsedBody,
|
|
1153
|
+
errorCode
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
}, "de_GetHITCommandError");
|
|
1157
|
+
var de_GetQualificationScoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1158
|
+
if (output.statusCode >= 300) {
|
|
1159
|
+
return de_GetQualificationScoreCommandError(output, context);
|
|
1160
|
+
}
|
|
1161
|
+
const data = await parseBody(output.body, context);
|
|
1162
|
+
let contents = {};
|
|
1163
|
+
contents = de_GetQualificationScoreResponse(data, context);
|
|
1164
|
+
const response = {
|
|
1165
|
+
$metadata: deserializeMetadata(output),
|
|
1166
|
+
...contents
|
|
1167
|
+
};
|
|
1168
|
+
return response;
|
|
1169
|
+
}, "de_GetQualificationScoreCommand");
|
|
1170
|
+
var de_GetQualificationScoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
|
+
const parsedOutput = {
|
|
1172
|
+
...output,
|
|
1173
|
+
body: await parseErrorBody(output.body, context)
|
|
1174
|
+
};
|
|
1175
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
|
+
switch (errorCode) {
|
|
1177
|
+
case "RequestError":
|
|
1178
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1179
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1180
|
+
case "ServiceFault":
|
|
1181
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1182
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1183
|
+
default:
|
|
1184
|
+
const parsedBody = parsedOutput.body;
|
|
1185
|
+
return throwDefaultError({
|
|
1186
|
+
output,
|
|
1187
|
+
parsedBody,
|
|
1188
|
+
errorCode
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
}, "de_GetQualificationScoreCommandError");
|
|
1192
|
+
var de_GetQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1193
|
+
if (output.statusCode >= 300) {
|
|
1194
|
+
return de_GetQualificationTypeCommandError(output, context);
|
|
1195
|
+
}
|
|
1196
|
+
const data = await parseBody(output.body, context);
|
|
1197
|
+
let contents = {};
|
|
1198
|
+
contents = de_GetQualificationTypeResponse(data, context);
|
|
1199
|
+
const response = {
|
|
1200
|
+
$metadata: deserializeMetadata(output),
|
|
1201
|
+
...contents
|
|
1202
|
+
};
|
|
1203
|
+
return response;
|
|
1204
|
+
}, "de_GetQualificationTypeCommand");
|
|
1205
|
+
var de_GetQualificationTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1206
|
+
const parsedOutput = {
|
|
1207
|
+
...output,
|
|
1208
|
+
body: await parseErrorBody(output.body, context)
|
|
1209
|
+
};
|
|
1210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
+
switch (errorCode) {
|
|
1212
|
+
case "RequestError":
|
|
1213
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1214
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1215
|
+
case "ServiceFault":
|
|
1216
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1217
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1218
|
+
default:
|
|
1219
|
+
const parsedBody = parsedOutput.body;
|
|
1220
|
+
return throwDefaultError({
|
|
1221
|
+
output,
|
|
1222
|
+
parsedBody,
|
|
1223
|
+
errorCode
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
}, "de_GetQualificationTypeCommandError");
|
|
1227
|
+
var de_ListAssignmentsForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1228
|
+
if (output.statusCode >= 300) {
|
|
1229
|
+
return de_ListAssignmentsForHITCommandError(output, context);
|
|
1230
|
+
}
|
|
1231
|
+
const data = await parseBody(output.body, context);
|
|
1232
|
+
let contents = {};
|
|
1233
|
+
contents = de_ListAssignmentsForHITResponse(data, context);
|
|
1234
|
+
const response = {
|
|
1235
|
+
$metadata: deserializeMetadata(output),
|
|
1236
|
+
...contents
|
|
1237
|
+
};
|
|
1238
|
+
return response;
|
|
1239
|
+
}, "de_ListAssignmentsForHITCommand");
|
|
1240
|
+
var de_ListAssignmentsForHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1241
|
+
const parsedOutput = {
|
|
1242
|
+
...output,
|
|
1243
|
+
body: await parseErrorBody(output.body, context)
|
|
1244
|
+
};
|
|
1245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
+
switch (errorCode) {
|
|
1247
|
+
case "RequestError":
|
|
1248
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1249
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1250
|
+
case "ServiceFault":
|
|
1251
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1252
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1253
|
+
default:
|
|
1254
|
+
const parsedBody = parsedOutput.body;
|
|
1255
|
+
return throwDefaultError({
|
|
1256
|
+
output,
|
|
1257
|
+
parsedBody,
|
|
1258
|
+
errorCode
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
}, "de_ListAssignmentsForHITCommandError");
|
|
1262
|
+
var de_ListBonusPaymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1263
|
+
if (output.statusCode >= 300) {
|
|
1264
|
+
return de_ListBonusPaymentsCommandError(output, context);
|
|
1265
|
+
}
|
|
1266
|
+
const data = await parseBody(output.body, context);
|
|
1267
|
+
let contents = {};
|
|
1268
|
+
contents = de_ListBonusPaymentsResponse(data, context);
|
|
1269
|
+
const response = {
|
|
1270
|
+
$metadata: deserializeMetadata(output),
|
|
1271
|
+
...contents
|
|
1272
|
+
};
|
|
1273
|
+
return response;
|
|
1274
|
+
}, "de_ListBonusPaymentsCommand");
|
|
1275
|
+
var de_ListBonusPaymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1276
|
+
const parsedOutput = {
|
|
1277
|
+
...output,
|
|
1278
|
+
body: await parseErrorBody(output.body, context)
|
|
1279
|
+
};
|
|
1280
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
+
switch (errorCode) {
|
|
1282
|
+
case "RequestError":
|
|
1283
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1284
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1285
|
+
case "ServiceFault":
|
|
1286
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1287
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1288
|
+
default:
|
|
1289
|
+
const parsedBody = parsedOutput.body;
|
|
1290
|
+
return throwDefaultError({
|
|
1291
|
+
output,
|
|
1292
|
+
parsedBody,
|
|
1293
|
+
errorCode
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
}, "de_ListBonusPaymentsCommandError");
|
|
1297
|
+
var de_ListHITsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1298
|
+
if (output.statusCode >= 300) {
|
|
1299
|
+
return de_ListHITsCommandError(output, context);
|
|
1300
|
+
}
|
|
1301
|
+
const data = await parseBody(output.body, context);
|
|
1302
|
+
let contents = {};
|
|
1303
|
+
contents = de_ListHITsResponse(data, context);
|
|
1304
|
+
const response = {
|
|
1305
|
+
$metadata: deserializeMetadata(output),
|
|
1306
|
+
...contents
|
|
1307
|
+
};
|
|
1308
|
+
return response;
|
|
1309
|
+
}, "de_ListHITsCommand");
|
|
1310
|
+
var de_ListHITsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1311
|
+
const parsedOutput = {
|
|
1312
|
+
...output,
|
|
1313
|
+
body: await parseErrorBody(output.body, context)
|
|
1314
|
+
};
|
|
1315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
+
switch (errorCode) {
|
|
1317
|
+
case "RequestError":
|
|
1318
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1319
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1320
|
+
case "ServiceFault":
|
|
1321
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1322
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1323
|
+
default:
|
|
1324
|
+
const parsedBody = parsedOutput.body;
|
|
1325
|
+
return throwDefaultError({
|
|
1326
|
+
output,
|
|
1327
|
+
parsedBody,
|
|
1328
|
+
errorCode
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
}, "de_ListHITsCommandError");
|
|
1332
|
+
var de_ListHITsForQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1333
|
+
if (output.statusCode >= 300) {
|
|
1334
|
+
return de_ListHITsForQualificationTypeCommandError(output, context);
|
|
1335
|
+
}
|
|
1336
|
+
const data = await parseBody(output.body, context);
|
|
1337
|
+
let contents = {};
|
|
1338
|
+
contents = de_ListHITsForQualificationTypeResponse(data, context);
|
|
1339
|
+
const response = {
|
|
1340
|
+
$metadata: deserializeMetadata(output),
|
|
1341
|
+
...contents
|
|
1342
|
+
};
|
|
1343
|
+
return response;
|
|
1344
|
+
}, "de_ListHITsForQualificationTypeCommand");
|
|
1345
|
+
var de_ListHITsForQualificationTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1346
|
+
const parsedOutput = {
|
|
1347
|
+
...output,
|
|
1348
|
+
body: await parseErrorBody(output.body, context)
|
|
1349
|
+
};
|
|
1350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
|
+
switch (errorCode) {
|
|
1352
|
+
case "RequestError":
|
|
1353
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1354
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1355
|
+
case "ServiceFault":
|
|
1356
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1357
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1358
|
+
default:
|
|
1359
|
+
const parsedBody = parsedOutput.body;
|
|
1360
|
+
return throwDefaultError({
|
|
1361
|
+
output,
|
|
1362
|
+
parsedBody,
|
|
1363
|
+
errorCode
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
}, "de_ListHITsForQualificationTypeCommandError");
|
|
1367
|
+
var de_ListQualificationRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1368
|
+
if (output.statusCode >= 300) {
|
|
1369
|
+
return de_ListQualificationRequestsCommandError(output, context);
|
|
1370
|
+
}
|
|
1371
|
+
const data = await parseBody(output.body, context);
|
|
1372
|
+
let contents = {};
|
|
1373
|
+
contents = de_ListQualificationRequestsResponse(data, context);
|
|
1374
|
+
const response = {
|
|
1375
|
+
$metadata: deserializeMetadata(output),
|
|
1376
|
+
...contents
|
|
1377
|
+
};
|
|
1378
|
+
return response;
|
|
1379
|
+
}, "de_ListQualificationRequestsCommand");
|
|
1380
|
+
var de_ListQualificationRequestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
|
+
const parsedOutput = {
|
|
1382
|
+
...output,
|
|
1383
|
+
body: await parseErrorBody(output.body, context)
|
|
1384
|
+
};
|
|
1385
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
+
switch (errorCode) {
|
|
1387
|
+
case "RequestError":
|
|
1388
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1389
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1390
|
+
case "ServiceFault":
|
|
1391
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1392
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1393
|
+
default:
|
|
1394
|
+
const parsedBody = parsedOutput.body;
|
|
1395
|
+
return throwDefaultError({
|
|
1396
|
+
output,
|
|
1397
|
+
parsedBody,
|
|
1398
|
+
errorCode
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
}, "de_ListQualificationRequestsCommandError");
|
|
1402
|
+
var de_ListQualificationTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1403
|
+
if (output.statusCode >= 300) {
|
|
1404
|
+
return de_ListQualificationTypesCommandError(output, context);
|
|
1405
|
+
}
|
|
1406
|
+
const data = await parseBody(output.body, context);
|
|
1407
|
+
let contents = {};
|
|
1408
|
+
contents = de_ListQualificationTypesResponse(data, context);
|
|
1409
|
+
const response = {
|
|
1410
|
+
$metadata: deserializeMetadata(output),
|
|
1411
|
+
...contents
|
|
1412
|
+
};
|
|
1413
|
+
return response;
|
|
1414
|
+
}, "de_ListQualificationTypesCommand");
|
|
1415
|
+
var de_ListQualificationTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
|
+
const parsedOutput = {
|
|
1417
|
+
...output,
|
|
1418
|
+
body: await parseErrorBody(output.body, context)
|
|
1419
|
+
};
|
|
1420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
+
switch (errorCode) {
|
|
1422
|
+
case "RequestError":
|
|
1423
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1424
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1425
|
+
case "ServiceFault":
|
|
1426
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1427
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1428
|
+
default:
|
|
1429
|
+
const parsedBody = parsedOutput.body;
|
|
1430
|
+
return throwDefaultError({
|
|
1431
|
+
output,
|
|
1432
|
+
parsedBody,
|
|
1433
|
+
errorCode
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
}, "de_ListQualificationTypesCommandError");
|
|
1437
|
+
var de_ListReviewableHITsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
+
if (output.statusCode >= 300) {
|
|
1439
|
+
return de_ListReviewableHITsCommandError(output, context);
|
|
1440
|
+
}
|
|
1441
|
+
const data = await parseBody(output.body, context);
|
|
1442
|
+
let contents = {};
|
|
1443
|
+
contents = de_ListReviewableHITsResponse(data, context);
|
|
1444
|
+
const response = {
|
|
1445
|
+
$metadata: deserializeMetadata(output),
|
|
1446
|
+
...contents
|
|
1447
|
+
};
|
|
1448
|
+
return response;
|
|
1449
|
+
}, "de_ListReviewableHITsCommand");
|
|
1450
|
+
var de_ListReviewableHITsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1451
|
+
const parsedOutput = {
|
|
1452
|
+
...output,
|
|
1453
|
+
body: await parseErrorBody(output.body, context)
|
|
1454
|
+
};
|
|
1455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
|
+
switch (errorCode) {
|
|
1457
|
+
case "RequestError":
|
|
1458
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1459
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1460
|
+
case "ServiceFault":
|
|
1461
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1462
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1463
|
+
default:
|
|
1464
|
+
const parsedBody = parsedOutput.body;
|
|
1465
|
+
return throwDefaultError({
|
|
1466
|
+
output,
|
|
1467
|
+
parsedBody,
|
|
1468
|
+
errorCode
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1471
|
+
}, "de_ListReviewableHITsCommandError");
|
|
1472
|
+
var de_ListReviewPolicyResultsForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1473
|
+
if (output.statusCode >= 300) {
|
|
1474
|
+
return de_ListReviewPolicyResultsForHITCommandError(output, context);
|
|
1475
|
+
}
|
|
1476
|
+
const data = await parseBody(output.body, context);
|
|
1477
|
+
let contents = {};
|
|
1478
|
+
contents = de_ListReviewPolicyResultsForHITResponse(data, context);
|
|
1479
|
+
const response = {
|
|
1480
|
+
$metadata: deserializeMetadata(output),
|
|
1481
|
+
...contents
|
|
1482
|
+
};
|
|
1483
|
+
return response;
|
|
1484
|
+
}, "de_ListReviewPolicyResultsForHITCommand");
|
|
1485
|
+
var de_ListReviewPolicyResultsForHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
|
+
const parsedOutput = {
|
|
1487
|
+
...output,
|
|
1488
|
+
body: await parseErrorBody(output.body, context)
|
|
1489
|
+
};
|
|
1490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
|
+
switch (errorCode) {
|
|
1492
|
+
case "RequestError":
|
|
1493
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1494
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1495
|
+
case "ServiceFault":
|
|
1496
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1497
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1498
|
+
default:
|
|
1499
|
+
const parsedBody = parsedOutput.body;
|
|
1500
|
+
return throwDefaultError({
|
|
1501
|
+
output,
|
|
1502
|
+
parsedBody,
|
|
1503
|
+
errorCode
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
}, "de_ListReviewPolicyResultsForHITCommandError");
|
|
1507
|
+
var de_ListWorkerBlocksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1508
|
+
if (output.statusCode >= 300) {
|
|
1509
|
+
return de_ListWorkerBlocksCommandError(output, context);
|
|
1510
|
+
}
|
|
1511
|
+
const data = await parseBody(output.body, context);
|
|
1512
|
+
let contents = {};
|
|
1513
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1514
|
+
const response = {
|
|
1515
|
+
$metadata: deserializeMetadata(output),
|
|
1516
|
+
...contents
|
|
1517
|
+
};
|
|
1518
|
+
return response;
|
|
1519
|
+
}, "de_ListWorkerBlocksCommand");
|
|
1520
|
+
var de_ListWorkerBlocksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
|
+
const parsedOutput = {
|
|
1522
|
+
...output,
|
|
1523
|
+
body: await parseErrorBody(output.body, context)
|
|
1524
|
+
};
|
|
1525
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
+
switch (errorCode) {
|
|
1527
|
+
case "RequestError":
|
|
1528
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1529
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1530
|
+
case "ServiceFault":
|
|
1531
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1532
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1533
|
+
default:
|
|
1534
|
+
const parsedBody = parsedOutput.body;
|
|
1535
|
+
return throwDefaultError({
|
|
1536
|
+
output,
|
|
1537
|
+
parsedBody,
|
|
1538
|
+
errorCode
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
}, "de_ListWorkerBlocksCommandError");
|
|
1542
|
+
var de_ListWorkersWithQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1543
|
+
if (output.statusCode >= 300) {
|
|
1544
|
+
return de_ListWorkersWithQualificationTypeCommandError(output, context);
|
|
1545
|
+
}
|
|
1546
|
+
const data = await parseBody(output.body, context);
|
|
1547
|
+
let contents = {};
|
|
1548
|
+
contents = de_ListWorkersWithQualificationTypeResponse(data, context);
|
|
1549
|
+
const response = {
|
|
1550
|
+
$metadata: deserializeMetadata(output),
|
|
1551
|
+
...contents
|
|
1552
|
+
};
|
|
1553
|
+
return response;
|
|
1554
|
+
}, "de_ListWorkersWithQualificationTypeCommand");
|
|
1555
|
+
var de_ListWorkersWithQualificationTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
|
+
const parsedOutput = {
|
|
1557
|
+
...output,
|
|
1558
|
+
body: await parseErrorBody(output.body, context)
|
|
1559
|
+
};
|
|
1560
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
+
switch (errorCode) {
|
|
1562
|
+
case "RequestError":
|
|
1563
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1564
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1565
|
+
case "ServiceFault":
|
|
1566
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1567
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1568
|
+
default:
|
|
1569
|
+
const parsedBody = parsedOutput.body;
|
|
1570
|
+
return throwDefaultError({
|
|
1571
|
+
output,
|
|
1572
|
+
parsedBody,
|
|
1573
|
+
errorCode
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
}, "de_ListWorkersWithQualificationTypeCommandError");
|
|
1577
|
+
var de_NotifyWorkersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1578
|
+
if (output.statusCode >= 300) {
|
|
1579
|
+
return de_NotifyWorkersCommandError(output, context);
|
|
1580
|
+
}
|
|
1581
|
+
const data = await parseBody(output.body, context);
|
|
1582
|
+
let contents = {};
|
|
1583
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1584
|
+
const response = {
|
|
1585
|
+
$metadata: deserializeMetadata(output),
|
|
1586
|
+
...contents
|
|
1587
|
+
};
|
|
1588
|
+
return response;
|
|
1589
|
+
}, "de_NotifyWorkersCommand");
|
|
1590
|
+
var de_NotifyWorkersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
|
+
const parsedOutput = {
|
|
1592
|
+
...output,
|
|
1593
|
+
body: await parseErrorBody(output.body, context)
|
|
1594
|
+
};
|
|
1595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
+
switch (errorCode) {
|
|
1597
|
+
case "RequestError":
|
|
1598
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1599
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1600
|
+
case "ServiceFault":
|
|
1601
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1602
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1603
|
+
default:
|
|
1604
|
+
const parsedBody = parsedOutput.body;
|
|
1605
|
+
return throwDefaultError({
|
|
1606
|
+
output,
|
|
1607
|
+
parsedBody,
|
|
1608
|
+
errorCode
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
}, "de_NotifyWorkersCommandError");
|
|
1612
|
+
var de_RejectAssignmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1613
|
+
if (output.statusCode >= 300) {
|
|
1614
|
+
return de_RejectAssignmentCommandError(output, context);
|
|
1615
|
+
}
|
|
1616
|
+
const data = await parseBody(output.body, context);
|
|
1617
|
+
let contents = {};
|
|
1618
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1619
|
+
const response = {
|
|
1620
|
+
$metadata: deserializeMetadata(output),
|
|
1621
|
+
...contents
|
|
1622
|
+
};
|
|
1623
|
+
return response;
|
|
1624
|
+
}, "de_RejectAssignmentCommand");
|
|
1625
|
+
var de_RejectAssignmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1626
|
+
const parsedOutput = {
|
|
1627
|
+
...output,
|
|
1628
|
+
body: await parseErrorBody(output.body, context)
|
|
1629
|
+
};
|
|
1630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
+
switch (errorCode) {
|
|
1632
|
+
case "RequestError":
|
|
1633
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1634
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1635
|
+
case "ServiceFault":
|
|
1636
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1637
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1638
|
+
default:
|
|
1639
|
+
const parsedBody = parsedOutput.body;
|
|
1640
|
+
return throwDefaultError({
|
|
1641
|
+
output,
|
|
1642
|
+
parsedBody,
|
|
1643
|
+
errorCode
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
}, "de_RejectAssignmentCommandError");
|
|
1647
|
+
var de_RejectQualificationRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1648
|
+
if (output.statusCode >= 300) {
|
|
1649
|
+
return de_RejectQualificationRequestCommandError(output, context);
|
|
1650
|
+
}
|
|
1651
|
+
const data = await parseBody(output.body, context);
|
|
1652
|
+
let contents = {};
|
|
1653
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1654
|
+
const response = {
|
|
1655
|
+
$metadata: deserializeMetadata(output),
|
|
1656
|
+
...contents
|
|
1657
|
+
};
|
|
1658
|
+
return response;
|
|
1659
|
+
}, "de_RejectQualificationRequestCommand");
|
|
1660
|
+
var de_RejectQualificationRequestCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1661
|
+
const parsedOutput = {
|
|
1662
|
+
...output,
|
|
1663
|
+
body: await parseErrorBody(output.body, context)
|
|
1664
|
+
};
|
|
1665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
|
+
switch (errorCode) {
|
|
1667
|
+
case "RequestError":
|
|
1668
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1669
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1670
|
+
case "ServiceFault":
|
|
1671
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1672
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1673
|
+
default:
|
|
1674
|
+
const parsedBody = parsedOutput.body;
|
|
1675
|
+
return throwDefaultError({
|
|
1676
|
+
output,
|
|
1677
|
+
parsedBody,
|
|
1678
|
+
errorCode
|
|
1679
|
+
});
|
|
1680
|
+
}
|
|
1681
|
+
}, "de_RejectQualificationRequestCommandError");
|
|
1682
|
+
var de_SendBonusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
|
+
if (output.statusCode >= 300) {
|
|
1684
|
+
return de_SendBonusCommandError(output, context);
|
|
1685
|
+
}
|
|
1686
|
+
const data = await parseBody(output.body, context);
|
|
1687
|
+
let contents = {};
|
|
1688
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1689
|
+
const response = {
|
|
1690
|
+
$metadata: deserializeMetadata(output),
|
|
1691
|
+
...contents
|
|
1692
|
+
};
|
|
1693
|
+
return response;
|
|
1694
|
+
}, "de_SendBonusCommand");
|
|
1695
|
+
var de_SendBonusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1696
|
+
const parsedOutput = {
|
|
1697
|
+
...output,
|
|
1698
|
+
body: await parseErrorBody(output.body, context)
|
|
1699
|
+
};
|
|
1700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
+
switch (errorCode) {
|
|
1702
|
+
case "RequestError":
|
|
1703
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1704
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1705
|
+
case "ServiceFault":
|
|
1706
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1707
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1708
|
+
default:
|
|
1709
|
+
const parsedBody = parsedOutput.body;
|
|
1710
|
+
return throwDefaultError({
|
|
1711
|
+
output,
|
|
1712
|
+
parsedBody,
|
|
1713
|
+
errorCode
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
}, "de_SendBonusCommandError");
|
|
1717
|
+
var de_SendTestEventNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1718
|
+
if (output.statusCode >= 300) {
|
|
1719
|
+
return de_SendTestEventNotificationCommandError(output, context);
|
|
1720
|
+
}
|
|
1721
|
+
const data = await parseBody(output.body, context);
|
|
1722
|
+
let contents = {};
|
|
1723
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1724
|
+
const response = {
|
|
1725
|
+
$metadata: deserializeMetadata(output),
|
|
1726
|
+
...contents
|
|
1727
|
+
};
|
|
1728
|
+
return response;
|
|
1729
|
+
}, "de_SendTestEventNotificationCommand");
|
|
1730
|
+
var de_SendTestEventNotificationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1731
|
+
const parsedOutput = {
|
|
1732
|
+
...output,
|
|
1733
|
+
body: await parseErrorBody(output.body, context)
|
|
1734
|
+
};
|
|
1735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
+
switch (errorCode) {
|
|
1737
|
+
case "RequestError":
|
|
1738
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1739
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1740
|
+
case "ServiceFault":
|
|
1741
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1742
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1743
|
+
default:
|
|
1744
|
+
const parsedBody = parsedOutput.body;
|
|
1745
|
+
return throwDefaultError({
|
|
1746
|
+
output,
|
|
1747
|
+
parsedBody,
|
|
1748
|
+
errorCode
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1751
|
+
}, "de_SendTestEventNotificationCommandError");
|
|
1752
|
+
var de_UpdateExpirationForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1753
|
+
if (output.statusCode >= 300) {
|
|
1754
|
+
return de_UpdateExpirationForHITCommandError(output, context);
|
|
1755
|
+
}
|
|
1756
|
+
const data = await parseBody(output.body, context);
|
|
1757
|
+
let contents = {};
|
|
1758
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1759
|
+
const response = {
|
|
1760
|
+
$metadata: deserializeMetadata(output),
|
|
1761
|
+
...contents
|
|
1762
|
+
};
|
|
1763
|
+
return response;
|
|
1764
|
+
}, "de_UpdateExpirationForHITCommand");
|
|
1765
|
+
var de_UpdateExpirationForHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1766
|
+
const parsedOutput = {
|
|
1767
|
+
...output,
|
|
1768
|
+
body: await parseErrorBody(output.body, context)
|
|
1769
|
+
};
|
|
1770
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
|
+
switch (errorCode) {
|
|
1772
|
+
case "RequestError":
|
|
1773
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1774
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1775
|
+
case "ServiceFault":
|
|
1776
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1777
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1778
|
+
default:
|
|
1779
|
+
const parsedBody = parsedOutput.body;
|
|
1780
|
+
return throwDefaultError({
|
|
1781
|
+
output,
|
|
1782
|
+
parsedBody,
|
|
1783
|
+
errorCode
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
}, "de_UpdateExpirationForHITCommandError");
|
|
1787
|
+
var de_UpdateHITReviewStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1788
|
+
if (output.statusCode >= 300) {
|
|
1789
|
+
return de_UpdateHITReviewStatusCommandError(output, context);
|
|
1790
|
+
}
|
|
1791
|
+
const data = await parseBody(output.body, context);
|
|
1792
|
+
let contents = {};
|
|
1793
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1794
|
+
const response = {
|
|
1795
|
+
$metadata: deserializeMetadata(output),
|
|
1796
|
+
...contents
|
|
1797
|
+
};
|
|
1798
|
+
return response;
|
|
1799
|
+
}, "de_UpdateHITReviewStatusCommand");
|
|
1800
|
+
var de_UpdateHITReviewStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1801
|
+
const parsedOutput = {
|
|
1802
|
+
...output,
|
|
1803
|
+
body: await parseErrorBody(output.body, context)
|
|
1804
|
+
};
|
|
1805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
|
+
switch (errorCode) {
|
|
1807
|
+
case "RequestError":
|
|
1808
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1809
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1810
|
+
case "ServiceFault":
|
|
1811
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1812
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1813
|
+
default:
|
|
1814
|
+
const parsedBody = parsedOutput.body;
|
|
1815
|
+
return throwDefaultError({
|
|
1816
|
+
output,
|
|
1817
|
+
parsedBody,
|
|
1818
|
+
errorCode
|
|
1819
|
+
});
|
|
1820
|
+
}
|
|
1821
|
+
}, "de_UpdateHITReviewStatusCommandError");
|
|
1822
|
+
var de_UpdateHITTypeOfHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1823
|
+
if (output.statusCode >= 300) {
|
|
1824
|
+
return de_UpdateHITTypeOfHITCommandError(output, context);
|
|
1825
|
+
}
|
|
1826
|
+
const data = await parseBody(output.body, context);
|
|
1827
|
+
let contents = {};
|
|
1828
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1829
|
+
const response = {
|
|
1830
|
+
$metadata: deserializeMetadata(output),
|
|
1831
|
+
...contents
|
|
1832
|
+
};
|
|
1833
|
+
return response;
|
|
1834
|
+
}, "de_UpdateHITTypeOfHITCommand");
|
|
1835
|
+
var de_UpdateHITTypeOfHITCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
|
+
const parsedOutput = {
|
|
1837
|
+
...output,
|
|
1838
|
+
body: await parseErrorBody(output.body, context)
|
|
1839
|
+
};
|
|
1840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
|
+
switch (errorCode) {
|
|
1842
|
+
case "RequestError":
|
|
1843
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1844
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1845
|
+
case "ServiceFault":
|
|
1846
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1847
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1848
|
+
default:
|
|
1849
|
+
const parsedBody = parsedOutput.body;
|
|
1850
|
+
return throwDefaultError({
|
|
1851
|
+
output,
|
|
1852
|
+
parsedBody,
|
|
1853
|
+
errorCode
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
}, "de_UpdateHITTypeOfHITCommandError");
|
|
1857
|
+
var de_UpdateNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1858
|
+
if (output.statusCode >= 300) {
|
|
1859
|
+
return de_UpdateNotificationSettingsCommandError(output, context);
|
|
1860
|
+
}
|
|
1861
|
+
const data = await parseBody(output.body, context);
|
|
1862
|
+
let contents = {};
|
|
1863
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1864
|
+
const response = {
|
|
1865
|
+
$metadata: deserializeMetadata(output),
|
|
1866
|
+
...contents
|
|
1867
|
+
};
|
|
1868
|
+
return response;
|
|
1869
|
+
}, "de_UpdateNotificationSettingsCommand");
|
|
1870
|
+
var de_UpdateNotificationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1871
|
+
const parsedOutput = {
|
|
1872
|
+
...output,
|
|
1873
|
+
body: await parseErrorBody(output.body, context)
|
|
1874
|
+
};
|
|
1875
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1876
|
+
switch (errorCode) {
|
|
1877
|
+
case "RequestError":
|
|
1878
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1879
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1880
|
+
case "ServiceFault":
|
|
1881
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1882
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1883
|
+
default:
|
|
1884
|
+
const parsedBody = parsedOutput.body;
|
|
1885
|
+
return throwDefaultError({
|
|
1886
|
+
output,
|
|
1887
|
+
parsedBody,
|
|
1888
|
+
errorCode
|
|
1889
|
+
});
|
|
1890
|
+
}
|
|
1891
|
+
}, "de_UpdateNotificationSettingsCommandError");
|
|
1892
|
+
var de_UpdateQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1893
|
+
if (output.statusCode >= 300) {
|
|
1894
|
+
return de_UpdateQualificationTypeCommandError(output, context);
|
|
1895
|
+
}
|
|
1896
|
+
const data = await parseBody(output.body, context);
|
|
1897
|
+
let contents = {};
|
|
1898
|
+
contents = de_UpdateQualificationTypeResponse(data, context);
|
|
1899
|
+
const response = {
|
|
1900
|
+
$metadata: deserializeMetadata(output),
|
|
1901
|
+
...contents
|
|
1902
|
+
};
|
|
1903
|
+
return response;
|
|
1904
|
+
}, "de_UpdateQualificationTypeCommand");
|
|
1905
|
+
var de_UpdateQualificationTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1906
|
+
const parsedOutput = {
|
|
1907
|
+
...output,
|
|
1908
|
+
body: await parseErrorBody(output.body, context)
|
|
1909
|
+
};
|
|
1910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
+
switch (errorCode) {
|
|
1912
|
+
case "RequestError":
|
|
1913
|
+
case "com.amazonaws.mturk#RequestError":
|
|
1914
|
+
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1915
|
+
case "ServiceFault":
|
|
1916
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
1917
|
+
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1918
|
+
default:
|
|
1919
|
+
const parsedBody = parsedOutput.body;
|
|
1920
|
+
return throwDefaultError({
|
|
1921
|
+
output,
|
|
1922
|
+
parsedBody,
|
|
1923
|
+
errorCode
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
}, "de_UpdateQualificationTypeCommandError");
|
|
1927
|
+
var de_RequestErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1928
|
+
const body = parsedOutput.body;
|
|
1929
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1930
|
+
const exception = new RequestError({
|
|
1931
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1932
|
+
...deserialized
|
|
1933
|
+
});
|
|
1934
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1935
|
+
}, "de_RequestErrorRes");
|
|
1936
|
+
var de_ServiceFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1937
|
+
const body = parsedOutput.body;
|
|
1938
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1939
|
+
const exception = new ServiceFault({
|
|
1940
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1941
|
+
...deserialized
|
|
1942
|
+
});
|
|
1943
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1944
|
+
}, "de_ServiceFaultRes");
|
|
1945
|
+
var se_UpdateExpirationForHITRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1946
|
+
return (0, import_smithy_client.take)(input, {
|
|
1947
|
+
ExpireAt: (_) => Math.round(_.getTime() / 1e3),
|
|
1948
|
+
HITId: []
|
|
1949
|
+
});
|
|
1950
|
+
}, "se_UpdateExpirationForHITRequest");
|
|
1951
|
+
var de_Assignment = /* @__PURE__ */ __name((output, context) => {
|
|
1952
|
+
return (0, import_smithy_client.take)(output, {
|
|
1953
|
+
AcceptTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1954
|
+
Answer: import_smithy_client.expectString,
|
|
1955
|
+
ApprovalTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1956
|
+
AssignmentId: import_smithy_client.expectString,
|
|
1957
|
+
AssignmentStatus: import_smithy_client.expectString,
|
|
1958
|
+
AutoApprovalTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1959
|
+
Deadline: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1960
|
+
HITId: import_smithy_client.expectString,
|
|
1961
|
+
RejectionTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1962
|
+
RequesterFeedback: import_smithy_client.expectString,
|
|
1963
|
+
SubmitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1964
|
+
WorkerId: import_smithy_client.expectString
|
|
1965
|
+
});
|
|
1966
|
+
}, "de_Assignment");
|
|
1967
|
+
var de_AssignmentList = /* @__PURE__ */ __name((output, context) => {
|
|
1968
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1969
|
+
return de_Assignment(entry, context);
|
|
1970
|
+
});
|
|
1971
|
+
return retVal;
|
|
1972
|
+
}, "de_AssignmentList");
|
|
1973
|
+
var de_BonusPayment = /* @__PURE__ */ __name((output, context) => {
|
|
1974
|
+
return (0, import_smithy_client.take)(output, {
|
|
1975
|
+
AssignmentId: import_smithy_client.expectString,
|
|
1976
|
+
BonusAmount: import_smithy_client.expectString,
|
|
1977
|
+
GrantTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1978
|
+
Reason: import_smithy_client.expectString,
|
|
1979
|
+
WorkerId: import_smithy_client.expectString
|
|
1980
|
+
});
|
|
1981
|
+
}, "de_BonusPayment");
|
|
1982
|
+
var de_BonusPaymentList = /* @__PURE__ */ __name((output, context) => {
|
|
1983
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1984
|
+
return de_BonusPayment(entry, context);
|
|
1985
|
+
});
|
|
1986
|
+
return retVal;
|
|
1987
|
+
}, "de_BonusPaymentList");
|
|
1988
|
+
var de_CreateHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1989
|
+
return (0, import_smithy_client.take)(output, {
|
|
1990
|
+
HIT: (_) => de_HIT(_, context)
|
|
1991
|
+
});
|
|
1992
|
+
}, "de_CreateHITResponse");
|
|
1993
|
+
var de_CreateHITWithHITTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1994
|
+
return (0, import_smithy_client.take)(output, {
|
|
1995
|
+
HIT: (_) => de_HIT(_, context)
|
|
1996
|
+
});
|
|
1997
|
+
}, "de_CreateHITWithHITTypeResponse");
|
|
1998
|
+
var de_CreateQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1999
|
+
return (0, import_smithy_client.take)(output, {
|
|
2000
|
+
QualificationType: (_) => de_QualificationType(_, context)
|
|
2001
|
+
});
|
|
2002
|
+
}, "de_CreateQualificationTypeResponse");
|
|
2003
|
+
var de_GetAssignmentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2004
|
+
return (0, import_smithy_client.take)(output, {
|
|
2005
|
+
Assignment: (_) => de_Assignment(_, context),
|
|
2006
|
+
HIT: (_) => de_HIT(_, context)
|
|
2007
|
+
});
|
|
2008
|
+
}, "de_GetAssignmentResponse");
|
|
2009
|
+
var de_GetHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2010
|
+
return (0, import_smithy_client.take)(output, {
|
|
2011
|
+
HIT: (_) => de_HIT(_, context)
|
|
2012
|
+
});
|
|
2013
|
+
}, "de_GetHITResponse");
|
|
2014
|
+
var de_GetQualificationScoreResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2015
|
+
return (0, import_smithy_client.take)(output, {
|
|
2016
|
+
Qualification: (_) => de_Qualification(_, context)
|
|
2017
|
+
});
|
|
2018
|
+
}, "de_GetQualificationScoreResponse");
|
|
2019
|
+
var de_GetQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2020
|
+
return (0, import_smithy_client.take)(output, {
|
|
2021
|
+
QualificationType: (_) => de_QualificationType(_, context)
|
|
2022
|
+
});
|
|
2023
|
+
}, "de_GetQualificationTypeResponse");
|
|
2024
|
+
var de_HIT = /* @__PURE__ */ __name((output, context) => {
|
|
2025
|
+
return (0, import_smithy_client.take)(output, {
|
|
2026
|
+
AssignmentDurationInSeconds: import_smithy_client.expectLong,
|
|
2027
|
+
AutoApprovalDelayInSeconds: import_smithy_client.expectLong,
|
|
2028
|
+
CreationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2029
|
+
Description: import_smithy_client.expectString,
|
|
2030
|
+
Expiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2031
|
+
HITGroupId: import_smithy_client.expectString,
|
|
2032
|
+
HITId: import_smithy_client.expectString,
|
|
2033
|
+
HITLayoutId: import_smithy_client.expectString,
|
|
2034
|
+
HITReviewStatus: import_smithy_client.expectString,
|
|
2035
|
+
HITStatus: import_smithy_client.expectString,
|
|
2036
|
+
HITTypeId: import_smithy_client.expectString,
|
|
2037
|
+
Keywords: import_smithy_client.expectString,
|
|
2038
|
+
MaxAssignments: import_smithy_client.expectInt32,
|
|
2039
|
+
NumberOfAssignmentsAvailable: import_smithy_client.expectInt32,
|
|
2040
|
+
NumberOfAssignmentsCompleted: import_smithy_client.expectInt32,
|
|
2041
|
+
NumberOfAssignmentsPending: import_smithy_client.expectInt32,
|
|
2042
|
+
QualificationRequirements: import_smithy_client._json,
|
|
2043
|
+
Question: import_smithy_client.expectString,
|
|
2044
|
+
RequesterAnnotation: import_smithy_client.expectString,
|
|
2045
|
+
Reward: import_smithy_client.expectString,
|
|
2046
|
+
Title: import_smithy_client.expectString
|
|
2047
|
+
});
|
|
2048
|
+
}, "de_HIT");
|
|
2049
|
+
var de_HITList = /* @__PURE__ */ __name((output, context) => {
|
|
2050
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2051
|
+
return de_HIT(entry, context);
|
|
2052
|
+
});
|
|
2053
|
+
return retVal;
|
|
2054
|
+
}, "de_HITList");
|
|
2055
|
+
var de_ListAssignmentsForHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2056
|
+
return (0, import_smithy_client.take)(output, {
|
|
2057
|
+
Assignments: (_) => de_AssignmentList(_, context),
|
|
2058
|
+
NextToken: import_smithy_client.expectString,
|
|
2059
|
+
NumResults: import_smithy_client.expectInt32
|
|
2060
|
+
});
|
|
2061
|
+
}, "de_ListAssignmentsForHITResponse");
|
|
2062
|
+
var de_ListBonusPaymentsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2063
|
+
return (0, import_smithy_client.take)(output, {
|
|
2064
|
+
BonusPayments: (_) => de_BonusPaymentList(_, context),
|
|
2065
|
+
NextToken: import_smithy_client.expectString,
|
|
2066
|
+
NumResults: import_smithy_client.expectInt32
|
|
2067
|
+
});
|
|
2068
|
+
}, "de_ListBonusPaymentsResponse");
|
|
2069
|
+
var de_ListHITsForQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2070
|
+
return (0, import_smithy_client.take)(output, {
|
|
2071
|
+
HITs: (_) => de_HITList(_, context),
|
|
2072
|
+
NextToken: import_smithy_client.expectString,
|
|
2073
|
+
NumResults: import_smithy_client.expectInt32
|
|
2074
|
+
});
|
|
2075
|
+
}, "de_ListHITsForQualificationTypeResponse");
|
|
2076
|
+
var de_ListHITsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2077
|
+
return (0, import_smithy_client.take)(output, {
|
|
2078
|
+
HITs: (_) => de_HITList(_, context),
|
|
2079
|
+
NextToken: import_smithy_client.expectString,
|
|
2080
|
+
NumResults: import_smithy_client.expectInt32
|
|
2081
|
+
});
|
|
2082
|
+
}, "de_ListHITsResponse");
|
|
2083
|
+
var de_ListQualificationRequestsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2084
|
+
return (0, import_smithy_client.take)(output, {
|
|
2085
|
+
NextToken: import_smithy_client.expectString,
|
|
2086
|
+
NumResults: import_smithy_client.expectInt32,
|
|
2087
|
+
QualificationRequests: (_) => de_QualificationRequestList(_, context)
|
|
2088
|
+
});
|
|
2089
|
+
}, "de_ListQualificationRequestsResponse");
|
|
2090
|
+
var de_ListQualificationTypesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2091
|
+
return (0, import_smithy_client.take)(output, {
|
|
2092
|
+
NextToken: import_smithy_client.expectString,
|
|
2093
|
+
NumResults: import_smithy_client.expectInt32,
|
|
2094
|
+
QualificationTypes: (_) => de_QualificationTypeList(_, context)
|
|
2095
|
+
});
|
|
2096
|
+
}, "de_ListQualificationTypesResponse");
|
|
2097
|
+
var de_ListReviewableHITsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2098
|
+
return (0, import_smithy_client.take)(output, {
|
|
2099
|
+
HITs: (_) => de_HITList(_, context),
|
|
2100
|
+
NextToken: import_smithy_client.expectString,
|
|
2101
|
+
NumResults: import_smithy_client.expectInt32
|
|
2102
|
+
});
|
|
2103
|
+
}, "de_ListReviewableHITsResponse");
|
|
2104
|
+
var de_ListReviewPolicyResultsForHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2105
|
+
return (0, import_smithy_client.take)(output, {
|
|
2106
|
+
AssignmentReviewPolicy: import_smithy_client._json,
|
|
2107
|
+
AssignmentReviewReport: (_) => de_ReviewReport(_, context),
|
|
2108
|
+
HITId: import_smithy_client.expectString,
|
|
2109
|
+
HITReviewPolicy: import_smithy_client._json,
|
|
2110
|
+
HITReviewReport: (_) => de_ReviewReport(_, context),
|
|
2111
|
+
NextToken: import_smithy_client.expectString
|
|
2112
|
+
});
|
|
2113
|
+
}, "de_ListReviewPolicyResultsForHITResponse");
|
|
2114
|
+
var de_ListWorkersWithQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2115
|
+
return (0, import_smithy_client.take)(output, {
|
|
2116
|
+
NextToken: import_smithy_client.expectString,
|
|
2117
|
+
NumResults: import_smithy_client.expectInt32,
|
|
2118
|
+
Qualifications: (_) => de_QualificationList(_, context)
|
|
2119
|
+
});
|
|
2120
|
+
}, "de_ListWorkersWithQualificationTypeResponse");
|
|
2121
|
+
var de_Qualification = /* @__PURE__ */ __name((output, context) => {
|
|
2122
|
+
return (0, import_smithy_client.take)(output, {
|
|
2123
|
+
GrantTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2124
|
+
IntegerValue: import_smithy_client.expectInt32,
|
|
2125
|
+
LocaleValue: import_smithy_client._json,
|
|
2126
|
+
QualificationTypeId: import_smithy_client.expectString,
|
|
2127
|
+
Status: import_smithy_client.expectString,
|
|
2128
|
+
WorkerId: import_smithy_client.expectString
|
|
2129
|
+
});
|
|
2130
|
+
}, "de_Qualification");
|
|
2131
|
+
var de_QualificationList = /* @__PURE__ */ __name((output, context) => {
|
|
2132
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2133
|
+
return de_Qualification(entry, context);
|
|
2134
|
+
});
|
|
2135
|
+
return retVal;
|
|
2136
|
+
}, "de_QualificationList");
|
|
2137
|
+
var de_QualificationRequest = /* @__PURE__ */ __name((output, context) => {
|
|
2138
|
+
return (0, import_smithy_client.take)(output, {
|
|
2139
|
+
Answer: import_smithy_client.expectString,
|
|
2140
|
+
QualificationRequestId: import_smithy_client.expectString,
|
|
2141
|
+
QualificationTypeId: import_smithy_client.expectString,
|
|
2142
|
+
SubmitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2143
|
+
Test: import_smithy_client.expectString,
|
|
2144
|
+
WorkerId: import_smithy_client.expectString
|
|
2145
|
+
});
|
|
2146
|
+
}, "de_QualificationRequest");
|
|
2147
|
+
var de_QualificationRequestList = /* @__PURE__ */ __name((output, context) => {
|
|
2148
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2149
|
+
return de_QualificationRequest(entry, context);
|
|
2150
|
+
});
|
|
2151
|
+
return retVal;
|
|
2152
|
+
}, "de_QualificationRequestList");
|
|
2153
|
+
var de_QualificationType = /* @__PURE__ */ __name((output, context) => {
|
|
2154
|
+
return (0, import_smithy_client.take)(output, {
|
|
2155
|
+
AnswerKey: import_smithy_client.expectString,
|
|
2156
|
+
AutoGranted: import_smithy_client.expectBoolean,
|
|
2157
|
+
AutoGrantedValue: import_smithy_client.expectInt32,
|
|
2158
|
+
CreationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2159
|
+
Description: import_smithy_client.expectString,
|
|
2160
|
+
IsRequestable: import_smithy_client.expectBoolean,
|
|
2161
|
+
Keywords: import_smithy_client.expectString,
|
|
2162
|
+
Name: import_smithy_client.expectString,
|
|
2163
|
+
QualificationTypeId: import_smithy_client.expectString,
|
|
2164
|
+
QualificationTypeStatus: import_smithy_client.expectString,
|
|
2165
|
+
RetryDelayInSeconds: import_smithy_client.expectLong,
|
|
2166
|
+
Test: import_smithy_client.expectString,
|
|
2167
|
+
TestDurationInSeconds: import_smithy_client.expectLong
|
|
2168
|
+
});
|
|
2169
|
+
}, "de_QualificationType");
|
|
2170
|
+
var de_QualificationTypeList = /* @__PURE__ */ __name((output, context) => {
|
|
2171
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2172
|
+
return de_QualificationType(entry, context);
|
|
2173
|
+
});
|
|
2174
|
+
return retVal;
|
|
2175
|
+
}, "de_QualificationTypeList");
|
|
2176
|
+
var de_ReviewActionDetail = /* @__PURE__ */ __name((output, context) => {
|
|
2177
|
+
return (0, import_smithy_client.take)(output, {
|
|
2178
|
+
ActionId: import_smithy_client.expectString,
|
|
2179
|
+
ActionName: import_smithy_client.expectString,
|
|
2180
|
+
CompleteTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2181
|
+
ErrorCode: import_smithy_client.expectString,
|
|
2182
|
+
Result: import_smithy_client.expectString,
|
|
2183
|
+
Status: import_smithy_client.expectString,
|
|
2184
|
+
TargetId: import_smithy_client.expectString,
|
|
2185
|
+
TargetType: import_smithy_client.expectString
|
|
2186
|
+
});
|
|
2187
|
+
}, "de_ReviewActionDetail");
|
|
2188
|
+
var de_ReviewActionDetailList = /* @__PURE__ */ __name((output, context) => {
|
|
2189
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2190
|
+
return de_ReviewActionDetail(entry, context);
|
|
2191
|
+
});
|
|
2192
|
+
return retVal;
|
|
2193
|
+
}, "de_ReviewActionDetailList");
|
|
2194
|
+
var de_ReviewReport = /* @__PURE__ */ __name((output, context) => {
|
|
2195
|
+
return (0, import_smithy_client.take)(output, {
|
|
2196
|
+
ReviewActions: (_) => de_ReviewActionDetailList(_, context),
|
|
2197
|
+
ReviewResults: import_smithy_client._json
|
|
2198
|
+
});
|
|
2199
|
+
}, "de_ReviewReport");
|
|
2200
|
+
var de_UpdateQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2201
|
+
return (0, import_smithy_client.take)(output, {
|
|
2202
|
+
QualificationType: (_) => de_QualificationType(_, context)
|
|
2203
|
+
});
|
|
2204
|
+
}, "de_UpdateQualificationTypeResponse");
|
|
2205
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2206
|
+
httpStatusCode: output.statusCode,
|
|
2207
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2208
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2209
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2210
|
+
}), "deserializeMetadata");
|
|
2211
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2212
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(MTurkServiceException);
|
|
2213
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2214
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2215
|
+
const contents = {
|
|
2216
|
+
protocol,
|
|
2217
|
+
hostname,
|
|
2218
|
+
port,
|
|
2219
|
+
method: "POST",
|
|
2220
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2221
|
+
headers
|
|
2222
|
+
};
|
|
2223
|
+
if (resolvedHostname !== void 0) {
|
|
2224
|
+
contents.hostname = resolvedHostname;
|
|
2225
|
+
}
|
|
2226
|
+
if (body !== void 0) {
|
|
2227
|
+
contents.body = body;
|
|
2228
|
+
}
|
|
2229
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
2230
|
+
}, "buildHttpRpcRequest");
|
|
2231
|
+
function sharedHeaders(operation) {
|
|
2232
|
+
return {
|
|
2233
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2234
|
+
"x-amz-target": `MTurkRequesterServiceV20170117.${operation}`
|
|
2235
|
+
};
|
|
2236
|
+
}
|
|
2237
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
2238
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2239
|
+
if (encoded.length) {
|
|
2240
|
+
return JSON.parse(encoded);
|
|
2241
|
+
}
|
|
2242
|
+
return {};
|
|
2243
|
+
}), "parseBody");
|
|
2244
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2245
|
+
const value = await parseBody(errorBody, context);
|
|
2246
|
+
value.message = value.message ?? value.Message;
|
|
2247
|
+
return value;
|
|
2248
|
+
}, "parseErrorBody");
|
|
2249
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2250
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2251
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2252
|
+
let cleanValue = rawValue;
|
|
2253
|
+
if (typeof cleanValue === "number") {
|
|
2254
|
+
cleanValue = cleanValue.toString();
|
|
2255
|
+
}
|
|
2256
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2257
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2258
|
+
}
|
|
2259
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2260
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2261
|
+
}
|
|
2262
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2263
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2264
|
+
}
|
|
2265
|
+
return cleanValue;
|
|
2266
|
+
}, "sanitizeErrorCode");
|
|
2267
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2268
|
+
if (headerKey !== void 0) {
|
|
2269
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2270
|
+
}
|
|
2271
|
+
if (data.code !== void 0) {
|
|
2272
|
+
return sanitizeErrorCode(data.code);
|
|
2273
|
+
}
|
|
2274
|
+
if (data["__type"] !== void 0) {
|
|
2275
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2276
|
+
}
|
|
2277
|
+
}, "loadRestJsonErrorCode");
|
|
2278
|
+
|
|
2279
|
+
// src/commands/AcceptQualificationRequestCommand.ts
|
|
2280
|
+
var _AcceptQualificationRequestCommand = class _AcceptQualificationRequestCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2281
|
+
...commonParams
|
|
2282
|
+
}).m(function(Command, cs, config, o) {
|
|
2283
|
+
return [
|
|
2284
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2285
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2286
|
+
];
|
|
2287
|
+
}).s("MTurkRequesterServiceV20170117", "AcceptQualificationRequest", {}).n("MTurkClient", "AcceptQualificationRequestCommand").f(void 0, void 0).ser(se_AcceptQualificationRequestCommand).de(de_AcceptQualificationRequestCommand).build() {
|
|
2288
|
+
};
|
|
2289
|
+
__name(_AcceptQualificationRequestCommand, "AcceptQualificationRequestCommand");
|
|
2290
|
+
var AcceptQualificationRequestCommand = _AcceptQualificationRequestCommand;
|
|
2291
|
+
|
|
2292
|
+
// src/commands/ApproveAssignmentCommand.ts
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
var _ApproveAssignmentCommand = class _ApproveAssignmentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2298
|
+
...commonParams
|
|
2299
|
+
}).m(function(Command, cs, config, o) {
|
|
2300
|
+
return [
|
|
2301
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2302
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2303
|
+
];
|
|
2304
|
+
}).s("MTurkRequesterServiceV20170117", "ApproveAssignment", {}).n("MTurkClient", "ApproveAssignmentCommand").f(void 0, void 0).ser(se_ApproveAssignmentCommand).de(de_ApproveAssignmentCommand).build() {
|
|
2305
|
+
};
|
|
2306
|
+
__name(_ApproveAssignmentCommand, "ApproveAssignmentCommand");
|
|
2307
|
+
var ApproveAssignmentCommand = _ApproveAssignmentCommand;
|
|
2308
|
+
|
|
2309
|
+
// src/commands/AssociateQualificationWithWorkerCommand.ts
|
|
2310
|
+
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
var _AssociateQualificationWithWorkerCommand = class _AssociateQualificationWithWorkerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2315
|
+
...commonParams
|
|
2316
|
+
}).m(function(Command, cs, config, o) {
|
|
2317
|
+
return [
|
|
2318
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2319
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2320
|
+
];
|
|
2321
|
+
}).s("MTurkRequesterServiceV20170117", "AssociateQualificationWithWorker", {}).n("MTurkClient", "AssociateQualificationWithWorkerCommand").f(void 0, void 0).ser(se_AssociateQualificationWithWorkerCommand).de(de_AssociateQualificationWithWorkerCommand).build() {
|
|
2322
|
+
};
|
|
2323
|
+
__name(_AssociateQualificationWithWorkerCommand, "AssociateQualificationWithWorkerCommand");
|
|
2324
|
+
var AssociateQualificationWithWorkerCommand = _AssociateQualificationWithWorkerCommand;
|
|
2325
|
+
|
|
2326
|
+
// src/commands/CreateAdditionalAssignmentsForHITCommand.ts
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
var _CreateAdditionalAssignmentsForHITCommand = class _CreateAdditionalAssignmentsForHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2332
|
+
...commonParams
|
|
2333
|
+
}).m(function(Command, cs, config, o) {
|
|
2334
|
+
return [
|
|
2335
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2336
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2337
|
+
];
|
|
2338
|
+
}).s("MTurkRequesterServiceV20170117", "CreateAdditionalAssignmentsForHIT", {}).n("MTurkClient", "CreateAdditionalAssignmentsForHITCommand").f(void 0, void 0).ser(se_CreateAdditionalAssignmentsForHITCommand).de(de_CreateAdditionalAssignmentsForHITCommand).build() {
|
|
2339
|
+
};
|
|
2340
|
+
__name(_CreateAdditionalAssignmentsForHITCommand, "CreateAdditionalAssignmentsForHITCommand");
|
|
2341
|
+
var CreateAdditionalAssignmentsForHITCommand = _CreateAdditionalAssignmentsForHITCommand;
|
|
2342
|
+
|
|
2343
|
+
// src/commands/CreateHITCommand.ts
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
var _CreateHITCommand = class _CreateHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2349
|
+
...commonParams
|
|
2350
|
+
}).m(function(Command, cs, config, o) {
|
|
2351
|
+
return [
|
|
2352
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2353
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2354
|
+
];
|
|
2355
|
+
}).s("MTurkRequesterServiceV20170117", "CreateHIT", {}).n("MTurkClient", "CreateHITCommand").f(void 0, void 0).ser(se_CreateHITCommand).de(de_CreateHITCommand).build() {
|
|
2356
|
+
};
|
|
2357
|
+
__name(_CreateHITCommand, "CreateHITCommand");
|
|
2358
|
+
var CreateHITCommand = _CreateHITCommand;
|
|
2359
|
+
|
|
2360
|
+
// src/commands/CreateHITTypeCommand.ts
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
var _CreateHITTypeCommand = class _CreateHITTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2366
|
+
...commonParams
|
|
2367
|
+
}).m(function(Command, cs, config, o) {
|
|
2368
|
+
return [
|
|
2369
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2370
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2371
|
+
];
|
|
2372
|
+
}).s("MTurkRequesterServiceV20170117", "CreateHITType", {}).n("MTurkClient", "CreateHITTypeCommand").f(void 0, void 0).ser(se_CreateHITTypeCommand).de(de_CreateHITTypeCommand).build() {
|
|
2373
|
+
};
|
|
2374
|
+
__name(_CreateHITTypeCommand, "CreateHITTypeCommand");
|
|
2375
|
+
var CreateHITTypeCommand = _CreateHITTypeCommand;
|
|
2376
|
+
|
|
2377
|
+
// src/commands/CreateHITWithHITTypeCommand.ts
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
var _CreateHITWithHITTypeCommand = class _CreateHITWithHITTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2383
|
+
...commonParams
|
|
2384
|
+
}).m(function(Command, cs, config, o) {
|
|
2385
|
+
return [
|
|
2386
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2387
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2388
|
+
];
|
|
2389
|
+
}).s("MTurkRequesterServiceV20170117", "CreateHITWithHITType", {}).n("MTurkClient", "CreateHITWithHITTypeCommand").f(void 0, void 0).ser(se_CreateHITWithHITTypeCommand).de(de_CreateHITWithHITTypeCommand).build() {
|
|
2390
|
+
};
|
|
2391
|
+
__name(_CreateHITWithHITTypeCommand, "CreateHITWithHITTypeCommand");
|
|
2392
|
+
var CreateHITWithHITTypeCommand = _CreateHITWithHITTypeCommand;
|
|
2393
|
+
|
|
2394
|
+
// src/commands/CreateQualificationTypeCommand.ts
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
var _CreateQualificationTypeCommand = class _CreateQualificationTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2400
|
+
...commonParams
|
|
2401
|
+
}).m(function(Command, cs, config, o) {
|
|
2402
|
+
return [
|
|
2403
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2404
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2405
|
+
];
|
|
2406
|
+
}).s("MTurkRequesterServiceV20170117", "CreateQualificationType", {}).n("MTurkClient", "CreateQualificationTypeCommand").f(void 0, void 0).ser(se_CreateQualificationTypeCommand).de(de_CreateQualificationTypeCommand).build() {
|
|
2407
|
+
};
|
|
2408
|
+
__name(_CreateQualificationTypeCommand, "CreateQualificationTypeCommand");
|
|
2409
|
+
var CreateQualificationTypeCommand = _CreateQualificationTypeCommand;
|
|
2410
|
+
|
|
2411
|
+
// src/commands/CreateWorkerBlockCommand.ts
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
var _CreateWorkerBlockCommand = class _CreateWorkerBlockCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2417
|
+
...commonParams
|
|
2418
|
+
}).m(function(Command, cs, config, o) {
|
|
2419
|
+
return [
|
|
2420
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2421
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2422
|
+
];
|
|
2423
|
+
}).s("MTurkRequesterServiceV20170117", "CreateWorkerBlock", {}).n("MTurkClient", "CreateWorkerBlockCommand").f(void 0, void 0).ser(se_CreateWorkerBlockCommand).de(de_CreateWorkerBlockCommand).build() {
|
|
2424
|
+
};
|
|
2425
|
+
__name(_CreateWorkerBlockCommand, "CreateWorkerBlockCommand");
|
|
2426
|
+
var CreateWorkerBlockCommand = _CreateWorkerBlockCommand;
|
|
2427
|
+
|
|
2428
|
+
// src/commands/DeleteHITCommand.ts
|
|
2429
|
+
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
var _DeleteHITCommand = class _DeleteHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2434
|
+
...commonParams
|
|
2435
|
+
}).m(function(Command, cs, config, o) {
|
|
2436
|
+
return [
|
|
2437
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2438
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2439
|
+
];
|
|
2440
|
+
}).s("MTurkRequesterServiceV20170117", "DeleteHIT", {}).n("MTurkClient", "DeleteHITCommand").f(void 0, void 0).ser(se_DeleteHITCommand).de(de_DeleteHITCommand).build() {
|
|
2441
|
+
};
|
|
2442
|
+
__name(_DeleteHITCommand, "DeleteHITCommand");
|
|
2443
|
+
var DeleteHITCommand = _DeleteHITCommand;
|
|
2444
|
+
|
|
2445
|
+
// src/commands/DeleteQualificationTypeCommand.ts
|
|
2446
|
+
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
|
|
2450
|
+
var _DeleteQualificationTypeCommand = class _DeleteQualificationTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2451
|
+
...commonParams
|
|
2452
|
+
}).m(function(Command, cs, config, o) {
|
|
2453
|
+
return [
|
|
2454
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2455
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2456
|
+
];
|
|
2457
|
+
}).s("MTurkRequesterServiceV20170117", "DeleteQualificationType", {}).n("MTurkClient", "DeleteQualificationTypeCommand").f(void 0, void 0).ser(se_DeleteQualificationTypeCommand).de(de_DeleteQualificationTypeCommand).build() {
|
|
2458
|
+
};
|
|
2459
|
+
__name(_DeleteQualificationTypeCommand, "DeleteQualificationTypeCommand");
|
|
2460
|
+
var DeleteQualificationTypeCommand = _DeleteQualificationTypeCommand;
|
|
2461
|
+
|
|
2462
|
+
// src/commands/DeleteWorkerBlockCommand.ts
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
var _DeleteWorkerBlockCommand = class _DeleteWorkerBlockCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2468
|
+
...commonParams
|
|
2469
|
+
}).m(function(Command, cs, config, o) {
|
|
2470
|
+
return [
|
|
2471
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2472
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2473
|
+
];
|
|
2474
|
+
}).s("MTurkRequesterServiceV20170117", "DeleteWorkerBlock", {}).n("MTurkClient", "DeleteWorkerBlockCommand").f(void 0, void 0).ser(se_DeleteWorkerBlockCommand).de(de_DeleteWorkerBlockCommand).build() {
|
|
2475
|
+
};
|
|
2476
|
+
__name(_DeleteWorkerBlockCommand, "DeleteWorkerBlockCommand");
|
|
2477
|
+
var DeleteWorkerBlockCommand = _DeleteWorkerBlockCommand;
|
|
2478
|
+
|
|
2479
|
+
// src/commands/DisassociateQualificationFromWorkerCommand.ts
|
|
2480
|
+
|
|
2481
|
+
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
var _DisassociateQualificationFromWorkerCommand = class _DisassociateQualificationFromWorkerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2485
|
+
...commonParams
|
|
2486
|
+
}).m(function(Command, cs, config, o) {
|
|
2487
|
+
return [
|
|
2488
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2489
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2490
|
+
];
|
|
2491
|
+
}).s("MTurkRequesterServiceV20170117", "DisassociateQualificationFromWorker", {}).n("MTurkClient", "DisassociateQualificationFromWorkerCommand").f(void 0, void 0).ser(se_DisassociateQualificationFromWorkerCommand).de(de_DisassociateQualificationFromWorkerCommand).build() {
|
|
2492
|
+
};
|
|
2493
|
+
__name(_DisassociateQualificationFromWorkerCommand, "DisassociateQualificationFromWorkerCommand");
|
|
2494
|
+
var DisassociateQualificationFromWorkerCommand = _DisassociateQualificationFromWorkerCommand;
|
|
2495
|
+
|
|
2496
|
+
// src/commands/GetAccountBalanceCommand.ts
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
var _GetAccountBalanceCommand = class _GetAccountBalanceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2502
|
+
...commonParams
|
|
2503
|
+
}).m(function(Command, cs, config, o) {
|
|
2504
|
+
return [
|
|
2505
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2506
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2507
|
+
];
|
|
2508
|
+
}).s("MTurkRequesterServiceV20170117", "GetAccountBalance", {}).n("MTurkClient", "GetAccountBalanceCommand").f(void 0, void 0).ser(se_GetAccountBalanceCommand).de(de_GetAccountBalanceCommand).build() {
|
|
2509
|
+
};
|
|
2510
|
+
__name(_GetAccountBalanceCommand, "GetAccountBalanceCommand");
|
|
2511
|
+
var GetAccountBalanceCommand = _GetAccountBalanceCommand;
|
|
2512
|
+
|
|
2513
|
+
// src/commands/GetAssignmentCommand.ts
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
var _GetAssignmentCommand = class _GetAssignmentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2519
|
+
...commonParams
|
|
2520
|
+
}).m(function(Command, cs, config, o) {
|
|
2521
|
+
return [
|
|
2522
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2523
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2524
|
+
];
|
|
2525
|
+
}).s("MTurkRequesterServiceV20170117", "GetAssignment", {}).n("MTurkClient", "GetAssignmentCommand").f(void 0, void 0).ser(se_GetAssignmentCommand).de(de_GetAssignmentCommand).build() {
|
|
2526
|
+
};
|
|
2527
|
+
__name(_GetAssignmentCommand, "GetAssignmentCommand");
|
|
2528
|
+
var GetAssignmentCommand = _GetAssignmentCommand;
|
|
2529
|
+
|
|
2530
|
+
// src/commands/GetFileUploadURLCommand.ts
|
|
2531
|
+
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
var _GetFileUploadURLCommand = class _GetFileUploadURLCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2536
|
+
...commonParams
|
|
2537
|
+
}).m(function(Command, cs, config, o) {
|
|
2538
|
+
return [
|
|
2539
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2540
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2541
|
+
];
|
|
2542
|
+
}).s("MTurkRequesterServiceV20170117", "GetFileUploadURL", {}).n("MTurkClient", "GetFileUploadURLCommand").f(void 0, void 0).ser(se_GetFileUploadURLCommand).de(de_GetFileUploadURLCommand).build() {
|
|
2543
|
+
};
|
|
2544
|
+
__name(_GetFileUploadURLCommand, "GetFileUploadURLCommand");
|
|
2545
|
+
var GetFileUploadURLCommand = _GetFileUploadURLCommand;
|
|
2546
|
+
|
|
2547
|
+
// src/commands/GetHITCommand.ts
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
var _GetHITCommand = class _GetHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2553
|
+
...commonParams
|
|
2554
|
+
}).m(function(Command, cs, config, o) {
|
|
2555
|
+
return [
|
|
2556
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2557
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2558
|
+
];
|
|
2559
|
+
}).s("MTurkRequesterServiceV20170117", "GetHIT", {}).n("MTurkClient", "GetHITCommand").f(void 0, void 0).ser(se_GetHITCommand).de(de_GetHITCommand).build() {
|
|
2560
|
+
};
|
|
2561
|
+
__name(_GetHITCommand, "GetHITCommand");
|
|
2562
|
+
var GetHITCommand = _GetHITCommand;
|
|
2563
|
+
|
|
2564
|
+
// src/commands/GetQualificationScoreCommand.ts
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
var _GetQualificationScoreCommand = class _GetQualificationScoreCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2570
|
+
...commonParams
|
|
2571
|
+
}).m(function(Command, cs, config, o) {
|
|
2572
|
+
return [
|
|
2573
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2574
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2575
|
+
];
|
|
2576
|
+
}).s("MTurkRequesterServiceV20170117", "GetQualificationScore", {}).n("MTurkClient", "GetQualificationScoreCommand").f(void 0, void 0).ser(se_GetQualificationScoreCommand).de(de_GetQualificationScoreCommand).build() {
|
|
2577
|
+
};
|
|
2578
|
+
__name(_GetQualificationScoreCommand, "GetQualificationScoreCommand");
|
|
2579
|
+
var GetQualificationScoreCommand = _GetQualificationScoreCommand;
|
|
2580
|
+
|
|
2581
|
+
// src/commands/GetQualificationTypeCommand.ts
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
var _GetQualificationTypeCommand = class _GetQualificationTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2587
|
+
...commonParams
|
|
2588
|
+
}).m(function(Command, cs, config, o) {
|
|
2589
|
+
return [
|
|
2590
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2591
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2592
|
+
];
|
|
2593
|
+
}).s("MTurkRequesterServiceV20170117", "GetQualificationType", {}).n("MTurkClient", "GetQualificationTypeCommand").f(void 0, void 0).ser(se_GetQualificationTypeCommand).de(de_GetQualificationTypeCommand).build() {
|
|
2594
|
+
};
|
|
2595
|
+
__name(_GetQualificationTypeCommand, "GetQualificationTypeCommand");
|
|
2596
|
+
var GetQualificationTypeCommand = _GetQualificationTypeCommand;
|
|
2597
|
+
|
|
2598
|
+
// src/commands/ListAssignmentsForHITCommand.ts
|
|
2599
|
+
|
|
2600
|
+
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
var _ListAssignmentsForHITCommand = class _ListAssignmentsForHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2604
|
+
...commonParams
|
|
2605
|
+
}).m(function(Command, cs, config, o) {
|
|
2606
|
+
return [
|
|
2607
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2608
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2609
|
+
];
|
|
2610
|
+
}).s("MTurkRequesterServiceV20170117", "ListAssignmentsForHIT", {}).n("MTurkClient", "ListAssignmentsForHITCommand").f(void 0, void 0).ser(se_ListAssignmentsForHITCommand).de(de_ListAssignmentsForHITCommand).build() {
|
|
2611
|
+
};
|
|
2612
|
+
__name(_ListAssignmentsForHITCommand, "ListAssignmentsForHITCommand");
|
|
2613
|
+
var ListAssignmentsForHITCommand = _ListAssignmentsForHITCommand;
|
|
2614
|
+
|
|
2615
|
+
// src/commands/ListBonusPaymentsCommand.ts
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
var _ListBonusPaymentsCommand = class _ListBonusPaymentsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2621
|
+
...commonParams
|
|
2622
|
+
}).m(function(Command, cs, config, o) {
|
|
2623
|
+
return [
|
|
2624
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2625
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2626
|
+
];
|
|
2627
|
+
}).s("MTurkRequesterServiceV20170117", "ListBonusPayments", {}).n("MTurkClient", "ListBonusPaymentsCommand").f(void 0, void 0).ser(se_ListBonusPaymentsCommand).de(de_ListBonusPaymentsCommand).build() {
|
|
2628
|
+
};
|
|
2629
|
+
__name(_ListBonusPaymentsCommand, "ListBonusPaymentsCommand");
|
|
2630
|
+
var ListBonusPaymentsCommand = _ListBonusPaymentsCommand;
|
|
2631
|
+
|
|
2632
|
+
// src/commands/ListHITsCommand.ts
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
|
|
2636
|
+
|
|
2637
|
+
var _ListHITsCommand = class _ListHITsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2638
|
+
...commonParams
|
|
2639
|
+
}).m(function(Command, cs, config, o) {
|
|
2640
|
+
return [
|
|
2641
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2642
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2643
|
+
];
|
|
2644
|
+
}).s("MTurkRequesterServiceV20170117", "ListHITs", {}).n("MTurkClient", "ListHITsCommand").f(void 0, void 0).ser(se_ListHITsCommand).de(de_ListHITsCommand).build() {
|
|
2645
|
+
};
|
|
2646
|
+
__name(_ListHITsCommand, "ListHITsCommand");
|
|
2647
|
+
var ListHITsCommand = _ListHITsCommand;
|
|
2648
|
+
|
|
2649
|
+
// src/commands/ListHITsForQualificationTypeCommand.ts
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
|
|
2653
|
+
|
|
2654
|
+
var _ListHITsForQualificationTypeCommand = class _ListHITsForQualificationTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2655
|
+
...commonParams
|
|
2656
|
+
}).m(function(Command, cs, config, o) {
|
|
2657
|
+
return [
|
|
2658
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2659
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2660
|
+
];
|
|
2661
|
+
}).s("MTurkRequesterServiceV20170117", "ListHITsForQualificationType", {}).n("MTurkClient", "ListHITsForQualificationTypeCommand").f(void 0, void 0).ser(se_ListHITsForQualificationTypeCommand).de(de_ListHITsForQualificationTypeCommand).build() {
|
|
2662
|
+
};
|
|
2663
|
+
__name(_ListHITsForQualificationTypeCommand, "ListHITsForQualificationTypeCommand");
|
|
2664
|
+
var ListHITsForQualificationTypeCommand = _ListHITsForQualificationTypeCommand;
|
|
2665
|
+
|
|
2666
|
+
// src/commands/ListQualificationRequestsCommand.ts
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
var _ListQualificationRequestsCommand = class _ListQualificationRequestsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2672
|
+
...commonParams
|
|
2673
|
+
}).m(function(Command, cs, config, o) {
|
|
2674
|
+
return [
|
|
2675
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2676
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2677
|
+
];
|
|
2678
|
+
}).s("MTurkRequesterServiceV20170117", "ListQualificationRequests", {}).n("MTurkClient", "ListQualificationRequestsCommand").f(void 0, void 0).ser(se_ListQualificationRequestsCommand).de(de_ListQualificationRequestsCommand).build() {
|
|
2679
|
+
};
|
|
2680
|
+
__name(_ListQualificationRequestsCommand, "ListQualificationRequestsCommand");
|
|
2681
|
+
var ListQualificationRequestsCommand = _ListQualificationRequestsCommand;
|
|
2682
|
+
|
|
2683
|
+
// src/commands/ListQualificationTypesCommand.ts
|
|
2684
|
+
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
var _ListQualificationTypesCommand = class _ListQualificationTypesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2689
|
+
...commonParams
|
|
2690
|
+
}).m(function(Command, cs, config, o) {
|
|
2691
|
+
return [
|
|
2692
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2693
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2694
|
+
];
|
|
2695
|
+
}).s("MTurkRequesterServiceV20170117", "ListQualificationTypes", {}).n("MTurkClient", "ListQualificationTypesCommand").f(void 0, void 0).ser(se_ListQualificationTypesCommand).de(de_ListQualificationTypesCommand).build() {
|
|
2696
|
+
};
|
|
2697
|
+
__name(_ListQualificationTypesCommand, "ListQualificationTypesCommand");
|
|
2698
|
+
var ListQualificationTypesCommand = _ListQualificationTypesCommand;
|
|
2699
|
+
|
|
2700
|
+
// src/commands/ListReviewableHITsCommand.ts
|
|
2701
|
+
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
var _ListReviewableHITsCommand = class _ListReviewableHITsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2706
|
+
...commonParams
|
|
2707
|
+
}).m(function(Command, cs, config, o) {
|
|
2708
|
+
return [
|
|
2709
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2710
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2711
|
+
];
|
|
2712
|
+
}).s("MTurkRequesterServiceV20170117", "ListReviewableHITs", {}).n("MTurkClient", "ListReviewableHITsCommand").f(void 0, void 0).ser(se_ListReviewableHITsCommand).de(de_ListReviewableHITsCommand).build() {
|
|
2713
|
+
};
|
|
2714
|
+
__name(_ListReviewableHITsCommand, "ListReviewableHITsCommand");
|
|
2715
|
+
var ListReviewableHITsCommand = _ListReviewableHITsCommand;
|
|
2716
|
+
|
|
2717
|
+
// src/commands/ListReviewPolicyResultsForHITCommand.ts
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
var _ListReviewPolicyResultsForHITCommand = class _ListReviewPolicyResultsForHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2723
|
+
...commonParams
|
|
2724
|
+
}).m(function(Command, cs, config, o) {
|
|
2725
|
+
return [
|
|
2726
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2727
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2728
|
+
];
|
|
2729
|
+
}).s("MTurkRequesterServiceV20170117", "ListReviewPolicyResultsForHIT", {}).n("MTurkClient", "ListReviewPolicyResultsForHITCommand").f(void 0, void 0).ser(se_ListReviewPolicyResultsForHITCommand).de(de_ListReviewPolicyResultsForHITCommand).build() {
|
|
2730
|
+
};
|
|
2731
|
+
__name(_ListReviewPolicyResultsForHITCommand, "ListReviewPolicyResultsForHITCommand");
|
|
2732
|
+
var ListReviewPolicyResultsForHITCommand = _ListReviewPolicyResultsForHITCommand;
|
|
2733
|
+
|
|
2734
|
+
// src/commands/ListWorkerBlocksCommand.ts
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
var _ListWorkerBlocksCommand = class _ListWorkerBlocksCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2740
|
+
...commonParams
|
|
2741
|
+
}).m(function(Command, cs, config, o) {
|
|
2742
|
+
return [
|
|
2743
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2744
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2745
|
+
];
|
|
2746
|
+
}).s("MTurkRequesterServiceV20170117", "ListWorkerBlocks", {}).n("MTurkClient", "ListWorkerBlocksCommand").f(void 0, void 0).ser(se_ListWorkerBlocksCommand).de(de_ListWorkerBlocksCommand).build() {
|
|
2747
|
+
};
|
|
2748
|
+
__name(_ListWorkerBlocksCommand, "ListWorkerBlocksCommand");
|
|
2749
|
+
var ListWorkerBlocksCommand = _ListWorkerBlocksCommand;
|
|
2750
|
+
|
|
2751
|
+
// src/commands/ListWorkersWithQualificationTypeCommand.ts
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
var _ListWorkersWithQualificationTypeCommand = class _ListWorkersWithQualificationTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2757
|
+
...commonParams
|
|
2758
|
+
}).m(function(Command, cs, config, o) {
|
|
2759
|
+
return [
|
|
2760
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2761
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2762
|
+
];
|
|
2763
|
+
}).s("MTurkRequesterServiceV20170117", "ListWorkersWithQualificationType", {}).n("MTurkClient", "ListWorkersWithQualificationTypeCommand").f(void 0, void 0).ser(se_ListWorkersWithQualificationTypeCommand).de(de_ListWorkersWithQualificationTypeCommand).build() {
|
|
2764
|
+
};
|
|
2765
|
+
__name(_ListWorkersWithQualificationTypeCommand, "ListWorkersWithQualificationTypeCommand");
|
|
2766
|
+
var ListWorkersWithQualificationTypeCommand = _ListWorkersWithQualificationTypeCommand;
|
|
2767
|
+
|
|
2768
|
+
// src/commands/NotifyWorkersCommand.ts
|
|
2769
|
+
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
var _NotifyWorkersCommand = class _NotifyWorkersCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2774
|
+
...commonParams
|
|
2775
|
+
}).m(function(Command, cs, config, o) {
|
|
2776
|
+
return [
|
|
2777
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2778
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2779
|
+
];
|
|
2780
|
+
}).s("MTurkRequesterServiceV20170117", "NotifyWorkers", {}).n("MTurkClient", "NotifyWorkersCommand").f(void 0, void 0).ser(se_NotifyWorkersCommand).de(de_NotifyWorkersCommand).build() {
|
|
2781
|
+
};
|
|
2782
|
+
__name(_NotifyWorkersCommand, "NotifyWorkersCommand");
|
|
2783
|
+
var NotifyWorkersCommand = _NotifyWorkersCommand;
|
|
2784
|
+
|
|
2785
|
+
// src/commands/RejectAssignmentCommand.ts
|
|
2786
|
+
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
var _RejectAssignmentCommand = class _RejectAssignmentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2791
|
+
...commonParams
|
|
2792
|
+
}).m(function(Command, cs, config, o) {
|
|
2793
|
+
return [
|
|
2794
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2795
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2796
|
+
];
|
|
2797
|
+
}).s("MTurkRequesterServiceV20170117", "RejectAssignment", {}).n("MTurkClient", "RejectAssignmentCommand").f(void 0, void 0).ser(se_RejectAssignmentCommand).de(de_RejectAssignmentCommand).build() {
|
|
2798
|
+
};
|
|
2799
|
+
__name(_RejectAssignmentCommand, "RejectAssignmentCommand");
|
|
2800
|
+
var RejectAssignmentCommand = _RejectAssignmentCommand;
|
|
2801
|
+
|
|
2802
|
+
// src/commands/RejectQualificationRequestCommand.ts
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
var _RejectQualificationRequestCommand = class _RejectQualificationRequestCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2808
|
+
...commonParams
|
|
2809
|
+
}).m(function(Command, cs, config, o) {
|
|
2810
|
+
return [
|
|
2811
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2812
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2813
|
+
];
|
|
2814
|
+
}).s("MTurkRequesterServiceV20170117", "RejectQualificationRequest", {}).n("MTurkClient", "RejectQualificationRequestCommand").f(void 0, void 0).ser(se_RejectQualificationRequestCommand).de(de_RejectQualificationRequestCommand).build() {
|
|
2815
|
+
};
|
|
2816
|
+
__name(_RejectQualificationRequestCommand, "RejectQualificationRequestCommand");
|
|
2817
|
+
var RejectQualificationRequestCommand = _RejectQualificationRequestCommand;
|
|
2818
|
+
|
|
2819
|
+
// src/commands/SendBonusCommand.ts
|
|
2820
|
+
|
|
2821
|
+
|
|
2822
|
+
|
|
2823
|
+
|
|
2824
|
+
var _SendBonusCommand = class _SendBonusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2825
|
+
...commonParams
|
|
2826
|
+
}).m(function(Command, cs, config, o) {
|
|
2827
|
+
return [
|
|
2828
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2829
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2830
|
+
];
|
|
2831
|
+
}).s("MTurkRequesterServiceV20170117", "SendBonus", {}).n("MTurkClient", "SendBonusCommand").f(void 0, void 0).ser(se_SendBonusCommand).de(de_SendBonusCommand).build() {
|
|
2832
|
+
};
|
|
2833
|
+
__name(_SendBonusCommand, "SendBonusCommand");
|
|
2834
|
+
var SendBonusCommand = _SendBonusCommand;
|
|
2835
|
+
|
|
2836
|
+
// src/commands/SendTestEventNotificationCommand.ts
|
|
2837
|
+
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
var _SendTestEventNotificationCommand = class _SendTestEventNotificationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2842
|
+
...commonParams
|
|
2843
|
+
}).m(function(Command, cs, config, o) {
|
|
2844
|
+
return [
|
|
2845
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2846
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2847
|
+
];
|
|
2848
|
+
}).s("MTurkRequesterServiceV20170117", "SendTestEventNotification", {}).n("MTurkClient", "SendTestEventNotificationCommand").f(void 0, void 0).ser(se_SendTestEventNotificationCommand).de(de_SendTestEventNotificationCommand).build() {
|
|
2849
|
+
};
|
|
2850
|
+
__name(_SendTestEventNotificationCommand, "SendTestEventNotificationCommand");
|
|
2851
|
+
var SendTestEventNotificationCommand = _SendTestEventNotificationCommand;
|
|
2852
|
+
|
|
2853
|
+
// src/commands/UpdateExpirationForHITCommand.ts
|
|
2854
|
+
|
|
2855
|
+
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
var _UpdateExpirationForHITCommand = class _UpdateExpirationForHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2859
|
+
...commonParams
|
|
2860
|
+
}).m(function(Command, cs, config, o) {
|
|
2861
|
+
return [
|
|
2862
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2863
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2864
|
+
];
|
|
2865
|
+
}).s("MTurkRequesterServiceV20170117", "UpdateExpirationForHIT", {}).n("MTurkClient", "UpdateExpirationForHITCommand").f(void 0, void 0).ser(se_UpdateExpirationForHITCommand).de(de_UpdateExpirationForHITCommand).build() {
|
|
2866
|
+
};
|
|
2867
|
+
__name(_UpdateExpirationForHITCommand, "UpdateExpirationForHITCommand");
|
|
2868
|
+
var UpdateExpirationForHITCommand = _UpdateExpirationForHITCommand;
|
|
2869
|
+
|
|
2870
|
+
// src/commands/UpdateHITReviewStatusCommand.ts
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+
|
|
2875
|
+
var _UpdateHITReviewStatusCommand = class _UpdateHITReviewStatusCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2876
|
+
...commonParams
|
|
2877
|
+
}).m(function(Command, cs, config, o) {
|
|
2878
|
+
return [
|
|
2879
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2880
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2881
|
+
];
|
|
2882
|
+
}).s("MTurkRequesterServiceV20170117", "UpdateHITReviewStatus", {}).n("MTurkClient", "UpdateHITReviewStatusCommand").f(void 0, void 0).ser(se_UpdateHITReviewStatusCommand).de(de_UpdateHITReviewStatusCommand).build() {
|
|
2883
|
+
};
|
|
2884
|
+
__name(_UpdateHITReviewStatusCommand, "UpdateHITReviewStatusCommand");
|
|
2885
|
+
var UpdateHITReviewStatusCommand = _UpdateHITReviewStatusCommand;
|
|
2886
|
+
|
|
2887
|
+
// src/commands/UpdateHITTypeOfHITCommand.ts
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
var _UpdateHITTypeOfHITCommand = class _UpdateHITTypeOfHITCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2893
|
+
...commonParams
|
|
2894
|
+
}).m(function(Command, cs, config, o) {
|
|
2895
|
+
return [
|
|
2896
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2897
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2898
|
+
];
|
|
2899
|
+
}).s("MTurkRequesterServiceV20170117", "UpdateHITTypeOfHIT", {}).n("MTurkClient", "UpdateHITTypeOfHITCommand").f(void 0, void 0).ser(se_UpdateHITTypeOfHITCommand).de(de_UpdateHITTypeOfHITCommand).build() {
|
|
2900
|
+
};
|
|
2901
|
+
__name(_UpdateHITTypeOfHITCommand, "UpdateHITTypeOfHITCommand");
|
|
2902
|
+
var UpdateHITTypeOfHITCommand = _UpdateHITTypeOfHITCommand;
|
|
2903
|
+
|
|
2904
|
+
// src/commands/UpdateNotificationSettingsCommand.ts
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
var _UpdateNotificationSettingsCommand = class _UpdateNotificationSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2910
|
+
...commonParams
|
|
2911
|
+
}).m(function(Command, cs, config, o) {
|
|
2912
|
+
return [
|
|
2913
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2914
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2915
|
+
];
|
|
2916
|
+
}).s("MTurkRequesterServiceV20170117", "UpdateNotificationSettings", {}).n("MTurkClient", "UpdateNotificationSettingsCommand").f(void 0, void 0).ser(se_UpdateNotificationSettingsCommand).de(de_UpdateNotificationSettingsCommand).build() {
|
|
2917
|
+
};
|
|
2918
|
+
__name(_UpdateNotificationSettingsCommand, "UpdateNotificationSettingsCommand");
|
|
2919
|
+
var UpdateNotificationSettingsCommand = _UpdateNotificationSettingsCommand;
|
|
2920
|
+
|
|
2921
|
+
// src/commands/UpdateQualificationTypeCommand.ts
|
|
2922
|
+
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
var _UpdateQualificationTypeCommand = class _UpdateQualificationTypeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2927
|
+
...commonParams
|
|
2928
|
+
}).m(function(Command, cs, config, o) {
|
|
2929
|
+
return [
|
|
2930
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2931
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2932
|
+
];
|
|
2933
|
+
}).s("MTurkRequesterServiceV20170117", "UpdateQualificationType", {}).n("MTurkClient", "UpdateQualificationTypeCommand").f(void 0, void 0).ser(se_UpdateQualificationTypeCommand).de(de_UpdateQualificationTypeCommand).build() {
|
|
2934
|
+
};
|
|
2935
|
+
__name(_UpdateQualificationTypeCommand, "UpdateQualificationTypeCommand");
|
|
2936
|
+
var UpdateQualificationTypeCommand = _UpdateQualificationTypeCommand;
|
|
2937
|
+
|
|
2938
|
+
// src/MTurk.ts
|
|
2939
|
+
var commands = {
|
|
2940
|
+
AcceptQualificationRequestCommand,
|
|
2941
|
+
ApproveAssignmentCommand,
|
|
2942
|
+
AssociateQualificationWithWorkerCommand,
|
|
2943
|
+
CreateAdditionalAssignmentsForHITCommand,
|
|
2944
|
+
CreateHITCommand,
|
|
2945
|
+
CreateHITTypeCommand,
|
|
2946
|
+
CreateHITWithHITTypeCommand,
|
|
2947
|
+
CreateQualificationTypeCommand,
|
|
2948
|
+
CreateWorkerBlockCommand,
|
|
2949
|
+
DeleteHITCommand,
|
|
2950
|
+
DeleteQualificationTypeCommand,
|
|
2951
|
+
DeleteWorkerBlockCommand,
|
|
2952
|
+
DisassociateQualificationFromWorkerCommand,
|
|
2953
|
+
GetAccountBalanceCommand,
|
|
2954
|
+
GetAssignmentCommand,
|
|
2955
|
+
GetFileUploadURLCommand,
|
|
2956
|
+
GetHITCommand,
|
|
2957
|
+
GetQualificationScoreCommand,
|
|
2958
|
+
GetQualificationTypeCommand,
|
|
2959
|
+
ListAssignmentsForHITCommand,
|
|
2960
|
+
ListBonusPaymentsCommand,
|
|
2961
|
+
ListHITsCommand,
|
|
2962
|
+
ListHITsForQualificationTypeCommand,
|
|
2963
|
+
ListQualificationRequestsCommand,
|
|
2964
|
+
ListQualificationTypesCommand,
|
|
2965
|
+
ListReviewableHITsCommand,
|
|
2966
|
+
ListReviewPolicyResultsForHITCommand,
|
|
2967
|
+
ListWorkerBlocksCommand,
|
|
2968
|
+
ListWorkersWithQualificationTypeCommand,
|
|
2969
|
+
NotifyWorkersCommand,
|
|
2970
|
+
RejectAssignmentCommand,
|
|
2971
|
+
RejectQualificationRequestCommand,
|
|
2972
|
+
SendBonusCommand,
|
|
2973
|
+
SendTestEventNotificationCommand,
|
|
2974
|
+
UpdateExpirationForHITCommand,
|
|
2975
|
+
UpdateHITReviewStatusCommand,
|
|
2976
|
+
UpdateHITTypeOfHITCommand,
|
|
2977
|
+
UpdateNotificationSettingsCommand,
|
|
2978
|
+
UpdateQualificationTypeCommand
|
|
2979
|
+
};
|
|
2980
|
+
var _MTurk = class _MTurk extends MTurkClient {
|
|
2981
|
+
};
|
|
2982
|
+
__name(_MTurk, "MTurk");
|
|
2983
|
+
var MTurk = _MTurk;
|
|
2984
|
+
(0, import_smithy_client.createAggregatedClient)(commands, MTurk);
|
|
2985
|
+
|
|
2986
|
+
// src/pagination/ListAssignmentsForHITPaginator.ts
|
|
2987
|
+
var import_core = require("@smithy/core");
|
|
2988
|
+
var paginateListAssignmentsForHIT = (0, import_core.createPaginator)(MTurkClient, ListAssignmentsForHITCommand, "NextToken", "NextToken", "MaxResults");
|
|
2989
|
+
|
|
2990
|
+
// src/pagination/ListBonusPaymentsPaginator.ts
|
|
2991
|
+
|
|
2992
|
+
var paginateListBonusPayments = (0, import_core.createPaginator)(MTurkClient, ListBonusPaymentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2993
|
+
|
|
2994
|
+
// src/pagination/ListHITsForQualificationTypePaginator.ts
|
|
2995
|
+
|
|
2996
|
+
var paginateListHITsForQualificationType = (0, import_core.createPaginator)(MTurkClient, ListHITsForQualificationTypeCommand, "NextToken", "NextToken", "MaxResults");
|
|
2997
|
+
|
|
2998
|
+
// src/pagination/ListHITsPaginator.ts
|
|
2999
|
+
|
|
3000
|
+
var paginateListHITs = (0, import_core.createPaginator)(MTurkClient, ListHITsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3001
|
+
|
|
3002
|
+
// src/pagination/ListQualificationRequestsPaginator.ts
|
|
3003
|
+
|
|
3004
|
+
var paginateListQualificationRequests = (0, import_core.createPaginator)(MTurkClient, ListQualificationRequestsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3005
|
+
|
|
3006
|
+
// src/pagination/ListQualificationTypesPaginator.ts
|
|
3007
|
+
|
|
3008
|
+
var paginateListQualificationTypes = (0, import_core.createPaginator)(MTurkClient, ListQualificationTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
3009
|
+
|
|
3010
|
+
// src/pagination/ListReviewPolicyResultsForHITPaginator.ts
|
|
3011
|
+
|
|
3012
|
+
var paginateListReviewPolicyResultsForHIT = (0, import_core.createPaginator)(MTurkClient, ListReviewPolicyResultsForHITCommand, "NextToken", "NextToken", "MaxResults");
|
|
3013
|
+
|
|
3014
|
+
// src/pagination/ListReviewableHITsPaginator.ts
|
|
3015
|
+
|
|
3016
|
+
var paginateListReviewableHITs = (0, import_core.createPaginator)(MTurkClient, ListReviewableHITsCommand, "NextToken", "NextToken", "MaxResults");
|
|
3017
|
+
|
|
3018
|
+
// src/pagination/ListWorkerBlocksPaginator.ts
|
|
3019
|
+
|
|
3020
|
+
var paginateListWorkerBlocks = (0, import_core.createPaginator)(MTurkClient, ListWorkerBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
3021
|
+
|
|
3022
|
+
// src/pagination/ListWorkersWithQualificationTypePaginator.ts
|
|
3023
|
+
|
|
3024
|
+
var paginateListWorkersWithQualificationType = (0, import_core.createPaginator)(MTurkClient, ListWorkersWithQualificationTypeCommand, "NextToken", "NextToken", "MaxResults");
|
|
3025
|
+
|
|
3026
|
+
// src/index.ts
|
|
3027
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3028
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3029
|
+
0 && (module.exports = {
|
|
3030
|
+
AcceptQualificationRequestCommand,
|
|
3031
|
+
ApproveAssignmentCommand,
|
|
3032
|
+
AssignmentStatus,
|
|
3033
|
+
AssociateQualificationWithWorkerCommand,
|
|
3034
|
+
Comparator,
|
|
3035
|
+
CreateAdditionalAssignmentsForHITCommand,
|
|
3036
|
+
CreateHITCommand,
|
|
3037
|
+
CreateHITTypeCommand,
|
|
3038
|
+
CreateHITWithHITTypeCommand,
|
|
3039
|
+
CreateQualificationTypeCommand,
|
|
3040
|
+
CreateWorkerBlockCommand,
|
|
3041
|
+
DeleteHITCommand,
|
|
3042
|
+
DeleteQualificationTypeCommand,
|
|
3043
|
+
DeleteWorkerBlockCommand,
|
|
3044
|
+
DisassociateQualificationFromWorkerCommand,
|
|
3045
|
+
EventType,
|
|
3046
|
+
GetAccountBalanceCommand,
|
|
3047
|
+
GetAssignmentCommand,
|
|
3048
|
+
GetFileUploadURLCommand,
|
|
3049
|
+
GetHITCommand,
|
|
3050
|
+
GetQualificationScoreCommand,
|
|
3051
|
+
GetQualificationTypeCommand,
|
|
3052
|
+
HITAccessActions,
|
|
3053
|
+
HITReviewStatus,
|
|
3054
|
+
HITStatus,
|
|
3055
|
+
ListAssignmentsForHITCommand,
|
|
3056
|
+
ListBonusPaymentsCommand,
|
|
3057
|
+
ListHITsCommand,
|
|
3058
|
+
ListHITsForQualificationTypeCommand,
|
|
3059
|
+
ListQualificationRequestsCommand,
|
|
3060
|
+
ListQualificationTypesCommand,
|
|
3061
|
+
ListReviewPolicyResultsForHITCommand,
|
|
3062
|
+
ListReviewableHITsCommand,
|
|
3063
|
+
ListWorkerBlocksCommand,
|
|
3064
|
+
ListWorkersWithQualificationTypeCommand,
|
|
3065
|
+
MTurk,
|
|
3066
|
+
MTurkClient,
|
|
3067
|
+
MTurkServiceException,
|
|
3068
|
+
NotificationTransport,
|
|
3069
|
+
NotifyWorkersCommand,
|
|
3070
|
+
NotifyWorkersFailureCode,
|
|
3071
|
+
QualificationStatus,
|
|
3072
|
+
QualificationTypeStatus,
|
|
3073
|
+
RejectAssignmentCommand,
|
|
3074
|
+
RejectQualificationRequestCommand,
|
|
3075
|
+
RequestError,
|
|
3076
|
+
ReviewActionStatus,
|
|
3077
|
+
ReviewPolicyLevel,
|
|
3078
|
+
ReviewableHITStatus,
|
|
3079
|
+
SendBonusCommand,
|
|
3080
|
+
SendTestEventNotificationCommand,
|
|
3081
|
+
ServiceFault,
|
|
3082
|
+
UpdateExpirationForHITCommand,
|
|
3083
|
+
UpdateHITReviewStatusCommand,
|
|
3084
|
+
UpdateHITTypeOfHITCommand,
|
|
3085
|
+
UpdateNotificationSettingsCommand,
|
|
3086
|
+
UpdateQualificationTypeCommand,
|
|
3087
|
+
__Client,
|
|
3088
|
+
paginateListAssignmentsForHIT,
|
|
3089
|
+
paginateListBonusPayments,
|
|
3090
|
+
paginateListHITs,
|
|
3091
|
+
paginateListHITsForQualificationType,
|
|
3092
|
+
paginateListQualificationRequests,
|
|
3093
|
+
paginateListQualificationTypes,
|
|
3094
|
+
paginateListReviewPolicyResultsForHIT,
|
|
3095
|
+
paginateListReviewableHITs,
|
|
3096
|
+
paginateListWorkerBlocks,
|
|
3097
|
+
paginateListWorkersWithQualificationType
|
|
3098
|
+
});
|