@aws-sdk/client-mturk 3.901.0 → 3.906.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/index.js +2023 -2112
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,2208 +1,2119 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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(index_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_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
100
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
101
|
-
var import_core = require("@smithy/core");
|
|
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
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
107
|
-
|
|
108
|
-
// src/endpoint/EndpointParameters.ts
|
|
109
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
110
|
-
return Object.assign(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" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "mturk-requester",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
121
32
|
};
|
|
122
33
|
|
|
123
|
-
|
|
124
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
125
72
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
130
78
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
79
|
+
class MTurkClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMTurkHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
159
110
|
}
|
|
160
|
-
|
|
161
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
162
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
163
|
-
return {
|
|
164
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
165
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
166
|
-
credentials: config.credentials()
|
|
167
|
-
};
|
|
168
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
169
112
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
177
|
-
);
|
|
178
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
179
|
-
return Object.assign(
|
|
180
|
-
runtimeConfig,
|
|
181
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
182
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
183
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
184
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
185
|
-
);
|
|
186
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class MTurkServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, MTurkServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
187
119
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
228
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
229
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
230
|
-
*/
|
|
231
|
-
destroy() {
|
|
232
|
-
super.destroy();
|
|
233
|
-
}
|
|
120
|
+
class RequestError extends MTurkServiceException {
|
|
121
|
+
name = "RequestError";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
TurkErrorCode;
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "RequestError",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, RequestError.prototype);
|
|
132
|
+
this.Message = opts.Message;
|
|
133
|
+
this.TurkErrorCode = opts.TurkErrorCode;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
class ServiceFault extends MTurkServiceException {
|
|
137
|
+
name = "ServiceFault";
|
|
138
|
+
$fault = "server";
|
|
139
|
+
Message;
|
|
140
|
+
TurkErrorCode;
|
|
141
|
+
constructor(opts) {
|
|
142
|
+
super({
|
|
143
|
+
name: "ServiceFault",
|
|
144
|
+
$fault: "server",
|
|
145
|
+
...opts,
|
|
146
|
+
});
|
|
147
|
+
Object.setPrototypeOf(this, ServiceFault.prototype);
|
|
148
|
+
this.Message = opts.Message;
|
|
149
|
+
this.TurkErrorCode = opts.TurkErrorCode;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
const AssignmentStatus = {
|
|
153
|
+
Approved: "Approved",
|
|
154
|
+
Rejected: "Rejected",
|
|
155
|
+
Submitted: "Submitted",
|
|
234
156
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
157
|
+
const Comparator = {
|
|
158
|
+
DoesNotExist: "DoesNotExist",
|
|
159
|
+
EqualTo: "EqualTo",
|
|
160
|
+
Exists: "Exists",
|
|
161
|
+
GreaterThan: "GreaterThan",
|
|
162
|
+
GreaterThanOrEqualTo: "GreaterThanOrEqualTo",
|
|
163
|
+
In: "In",
|
|
164
|
+
LessThan: "LessThan",
|
|
165
|
+
LessThanOrEqualTo: "LessThanOrEqualTo",
|
|
166
|
+
NotEqualTo: "NotEqualTo",
|
|
167
|
+
NotIn: "NotIn",
|
|
168
|
+
};
|
|
169
|
+
const HITAccessActions = {
|
|
170
|
+
Accept: "Accept",
|
|
171
|
+
DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept",
|
|
172
|
+
PreviewAndAccept: "PreviewAndAccept",
|
|
173
|
+
};
|
|
174
|
+
const HITReviewStatus = {
|
|
175
|
+
MarkedForReview: "MarkedForReview",
|
|
176
|
+
NotReviewed: "NotReviewed",
|
|
177
|
+
ReviewedAppropriate: "ReviewedAppropriate",
|
|
178
|
+
ReviewedInappropriate: "ReviewedInappropriate",
|
|
179
|
+
};
|
|
180
|
+
const HITStatus = {
|
|
181
|
+
Assignable: "Assignable",
|
|
182
|
+
Disposed: "Disposed",
|
|
183
|
+
Reviewable: "Reviewable",
|
|
184
|
+
Reviewing: "Reviewing",
|
|
185
|
+
Unassignable: "Unassignable",
|
|
186
|
+
};
|
|
187
|
+
const QualificationTypeStatus = {
|
|
188
|
+
Active: "Active",
|
|
189
|
+
Inactive: "Inactive",
|
|
190
|
+
};
|
|
191
|
+
const EventType = {
|
|
192
|
+
AssignmentAbandoned: "AssignmentAbandoned",
|
|
193
|
+
AssignmentAccepted: "AssignmentAccepted",
|
|
194
|
+
AssignmentApproved: "AssignmentApproved",
|
|
195
|
+
AssignmentRejected: "AssignmentRejected",
|
|
196
|
+
AssignmentReturned: "AssignmentReturned",
|
|
197
|
+
AssignmentSubmitted: "AssignmentSubmitted",
|
|
198
|
+
HITCreated: "HITCreated",
|
|
199
|
+
HITDisposed: "HITDisposed",
|
|
200
|
+
HITExpired: "HITExpired",
|
|
201
|
+
HITExtended: "HITExtended",
|
|
202
|
+
HITReviewable: "HITReviewable",
|
|
203
|
+
Ping: "Ping",
|
|
204
|
+
};
|
|
205
|
+
const QualificationStatus = {
|
|
206
|
+
Granted: "Granted",
|
|
207
|
+
Revoked: "Revoked",
|
|
208
|
+
};
|
|
209
|
+
const ReviewableHITStatus = {
|
|
210
|
+
Reviewable: "Reviewable",
|
|
211
|
+
Reviewing: "Reviewing",
|
|
212
|
+
};
|
|
213
|
+
const ReviewPolicyLevel = {
|
|
214
|
+
Assignment: "Assignment",
|
|
215
|
+
HIT: "HIT",
|
|
216
|
+
};
|
|
217
|
+
const ReviewActionStatus = {
|
|
218
|
+
Cancelled: "Cancelled",
|
|
219
|
+
Failed: "Failed",
|
|
220
|
+
Intended: "Intended",
|
|
221
|
+
Succeeded: "Succeeded",
|
|
222
|
+
};
|
|
223
|
+
const NotifyWorkersFailureCode = {
|
|
224
|
+
HardFailure: "HardFailure",
|
|
225
|
+
SoftFailure: "SoftFailure",
|
|
226
|
+
};
|
|
227
|
+
const NotificationTransport = {
|
|
228
|
+
Email: "Email",
|
|
229
|
+
SNS: "SNS",
|
|
230
|
+
SQS: "SQS",
|
|
262
231
|
};
|
|
263
232
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
233
|
+
const se_AcceptQualificationRequestCommand = async (input, context) => {
|
|
234
|
+
const headers = sharedHeaders("AcceptQualificationRequest");
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
237
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
+
};
|
|
239
|
+
const se_ApproveAssignmentCommand = async (input, context) => {
|
|
240
|
+
const headers = sharedHeaders("ApproveAssignment");
|
|
241
|
+
let body;
|
|
242
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
243
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
|
+
};
|
|
245
|
+
const se_AssociateQualificationWithWorkerCommand = async (input, context) => {
|
|
246
|
+
const headers = sharedHeaders("AssociateQualificationWithWorker");
|
|
247
|
+
let body;
|
|
248
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
249
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
250
|
+
};
|
|
251
|
+
const se_CreateAdditionalAssignmentsForHITCommand = async (input, context) => {
|
|
252
|
+
const headers = sharedHeaders("CreateAdditionalAssignmentsForHIT");
|
|
253
|
+
let body;
|
|
254
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
255
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
+
};
|
|
257
|
+
const se_CreateHITCommand = async (input, context) => {
|
|
258
|
+
const headers = sharedHeaders("CreateHIT");
|
|
259
|
+
let body;
|
|
260
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
261
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
+
};
|
|
263
|
+
const se_CreateHITTypeCommand = async (input, context) => {
|
|
264
|
+
const headers = sharedHeaders("CreateHITType");
|
|
265
|
+
let body;
|
|
266
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
267
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
+
};
|
|
269
|
+
const se_CreateHITWithHITTypeCommand = async (input, context) => {
|
|
270
|
+
const headers = sharedHeaders("CreateHITWithHITType");
|
|
271
|
+
let body;
|
|
272
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
273
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
+
};
|
|
275
|
+
const se_CreateQualificationTypeCommand = async (input, context) => {
|
|
276
|
+
const headers = sharedHeaders("CreateQualificationType");
|
|
277
|
+
let body;
|
|
278
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
279
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
+
};
|
|
281
|
+
const se_CreateWorkerBlockCommand = async (input, context) => {
|
|
282
|
+
const headers = sharedHeaders("CreateWorkerBlock");
|
|
283
|
+
let body;
|
|
284
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
285
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
|
+
};
|
|
287
|
+
const se_DeleteHITCommand = async (input, context) => {
|
|
288
|
+
const headers = sharedHeaders("DeleteHIT");
|
|
289
|
+
let body;
|
|
290
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
291
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
|
+
};
|
|
293
|
+
const se_DeleteQualificationTypeCommand = async (input, context) => {
|
|
294
|
+
const headers = sharedHeaders("DeleteQualificationType");
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
297
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
|
+
};
|
|
299
|
+
const se_DeleteWorkerBlockCommand = async (input, context) => {
|
|
300
|
+
const headers = sharedHeaders("DeleteWorkerBlock");
|
|
301
|
+
let body;
|
|
302
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
303
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
|
+
};
|
|
305
|
+
const se_DisassociateQualificationFromWorkerCommand = async (input, context) => {
|
|
306
|
+
const headers = sharedHeaders("DisassociateQualificationFromWorker");
|
|
307
|
+
let body;
|
|
308
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
309
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
+
};
|
|
311
|
+
const se_GetAccountBalanceCommand = async (input, context) => {
|
|
312
|
+
const headers = sharedHeaders("GetAccountBalance");
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
315
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
+
};
|
|
317
|
+
const se_GetAssignmentCommand = async (input, context) => {
|
|
318
|
+
const headers = sharedHeaders("GetAssignment");
|
|
319
|
+
let body;
|
|
320
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
321
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
|
+
};
|
|
323
|
+
const se_GetFileUploadURLCommand = async (input, context) => {
|
|
324
|
+
const headers = sharedHeaders("GetFileUploadURL");
|
|
325
|
+
let body;
|
|
326
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
327
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
|
+
};
|
|
329
|
+
const se_GetHITCommand = async (input, context) => {
|
|
330
|
+
const headers = sharedHeaders("GetHIT");
|
|
331
|
+
let body;
|
|
332
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
333
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
334
|
+
};
|
|
335
|
+
const se_GetQualificationScoreCommand = async (input, context) => {
|
|
336
|
+
const headers = sharedHeaders("GetQualificationScore");
|
|
337
|
+
let body;
|
|
338
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
339
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
340
|
+
};
|
|
341
|
+
const se_GetQualificationTypeCommand = async (input, context) => {
|
|
342
|
+
const headers = sharedHeaders("GetQualificationType");
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
345
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
|
+
};
|
|
347
|
+
const se_ListAssignmentsForHITCommand = async (input, context) => {
|
|
348
|
+
const headers = sharedHeaders("ListAssignmentsForHIT");
|
|
349
|
+
let body;
|
|
350
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
351
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
+
};
|
|
353
|
+
const se_ListBonusPaymentsCommand = async (input, context) => {
|
|
354
|
+
const headers = sharedHeaders("ListBonusPayments");
|
|
355
|
+
let body;
|
|
356
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
357
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
|
+
};
|
|
359
|
+
const se_ListHITsCommand = async (input, context) => {
|
|
360
|
+
const headers = sharedHeaders("ListHITs");
|
|
361
|
+
let body;
|
|
362
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
363
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
|
+
};
|
|
365
|
+
const se_ListHITsForQualificationTypeCommand = async (input, context) => {
|
|
366
|
+
const headers = sharedHeaders("ListHITsForQualificationType");
|
|
367
|
+
let body;
|
|
368
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
369
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
370
|
+
};
|
|
371
|
+
const se_ListQualificationRequestsCommand = async (input, context) => {
|
|
372
|
+
const headers = sharedHeaders("ListQualificationRequests");
|
|
373
|
+
let body;
|
|
374
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
375
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
376
|
+
};
|
|
377
|
+
const se_ListQualificationTypesCommand = async (input, context) => {
|
|
378
|
+
const headers = sharedHeaders("ListQualificationTypes");
|
|
379
|
+
let body;
|
|
380
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
381
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
|
+
};
|
|
383
|
+
const se_ListReviewableHITsCommand = async (input, context) => {
|
|
384
|
+
const headers = sharedHeaders("ListReviewableHITs");
|
|
385
|
+
let body;
|
|
386
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
387
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
+
};
|
|
389
|
+
const se_ListReviewPolicyResultsForHITCommand = async (input, context) => {
|
|
390
|
+
const headers = sharedHeaders("ListReviewPolicyResultsForHIT");
|
|
391
|
+
let body;
|
|
392
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
393
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
+
};
|
|
395
|
+
const se_ListWorkerBlocksCommand = async (input, context) => {
|
|
396
|
+
const headers = sharedHeaders("ListWorkerBlocks");
|
|
397
|
+
let body;
|
|
398
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
399
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
|
+
};
|
|
401
|
+
const se_ListWorkersWithQualificationTypeCommand = async (input, context) => {
|
|
402
|
+
const headers = sharedHeaders("ListWorkersWithQualificationType");
|
|
403
|
+
let body;
|
|
404
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
405
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
406
|
+
};
|
|
407
|
+
const se_NotifyWorkersCommand = async (input, context) => {
|
|
408
|
+
const headers = sharedHeaders("NotifyWorkers");
|
|
409
|
+
let body;
|
|
410
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
411
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
412
|
+
};
|
|
413
|
+
const se_RejectAssignmentCommand = async (input, context) => {
|
|
414
|
+
const headers = sharedHeaders("RejectAssignment");
|
|
415
|
+
let body;
|
|
416
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
417
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
|
+
};
|
|
419
|
+
const se_RejectQualificationRequestCommand = async (input, context) => {
|
|
420
|
+
const headers = sharedHeaders("RejectQualificationRequest");
|
|
421
|
+
let body;
|
|
422
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
423
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
424
|
+
};
|
|
425
|
+
const se_SendBonusCommand = async (input, context) => {
|
|
426
|
+
const headers = sharedHeaders("SendBonus");
|
|
427
|
+
let body;
|
|
428
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
429
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
430
|
+
};
|
|
431
|
+
const se_SendTestEventNotificationCommand = async (input, context) => {
|
|
432
|
+
const headers = sharedHeaders("SendTestEventNotification");
|
|
433
|
+
let body;
|
|
434
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
435
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
+
};
|
|
437
|
+
const se_UpdateExpirationForHITCommand = async (input, context) => {
|
|
438
|
+
const headers = sharedHeaders("UpdateExpirationForHIT");
|
|
439
|
+
let body;
|
|
440
|
+
body = JSON.stringify(se_UpdateExpirationForHITRequest(input));
|
|
441
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
442
|
+
};
|
|
443
|
+
const se_UpdateHITReviewStatusCommand = async (input, context) => {
|
|
444
|
+
const headers = sharedHeaders("UpdateHITReviewStatus");
|
|
445
|
+
let body;
|
|
446
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
447
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
|
+
};
|
|
449
|
+
const se_UpdateHITTypeOfHITCommand = async (input, context) => {
|
|
450
|
+
const headers = sharedHeaders("UpdateHITTypeOfHIT");
|
|
451
|
+
let body;
|
|
452
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
453
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
454
|
+
};
|
|
455
|
+
const se_UpdateNotificationSettingsCommand = async (input, context) => {
|
|
456
|
+
const headers = sharedHeaders("UpdateNotificationSettings");
|
|
457
|
+
let body;
|
|
458
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
459
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
460
|
+
};
|
|
461
|
+
const se_UpdateQualificationTypeCommand = async (input, context) => {
|
|
462
|
+
const headers = sharedHeaders("UpdateQualificationType");
|
|
463
|
+
let body;
|
|
464
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
465
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
466
|
+
};
|
|
467
|
+
const de_AcceptQualificationRequestCommand = async (output, context) => {
|
|
468
|
+
if (output.statusCode >= 300) {
|
|
469
|
+
return de_CommandError(output, context);
|
|
470
|
+
}
|
|
471
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
472
|
+
let contents = {};
|
|
473
|
+
contents = smithyClient._json(data);
|
|
474
|
+
const response = {
|
|
475
|
+
$metadata: deserializeMetadata(output),
|
|
476
|
+
...contents,
|
|
477
|
+
};
|
|
478
|
+
return response;
|
|
479
|
+
};
|
|
480
|
+
const de_ApproveAssignmentCommand = async (output, context) => {
|
|
481
|
+
if (output.statusCode >= 300) {
|
|
482
|
+
return de_CommandError(output, context);
|
|
483
|
+
}
|
|
484
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
485
|
+
let contents = {};
|
|
486
|
+
contents = smithyClient._json(data);
|
|
487
|
+
const response = {
|
|
488
|
+
$metadata: deserializeMetadata(output),
|
|
489
|
+
...contents,
|
|
490
|
+
};
|
|
491
|
+
return response;
|
|
492
|
+
};
|
|
493
|
+
const de_AssociateQualificationWithWorkerCommand = async (output, context) => {
|
|
494
|
+
if (output.statusCode >= 300) {
|
|
495
|
+
return de_CommandError(output, context);
|
|
496
|
+
}
|
|
497
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
498
|
+
let contents = {};
|
|
499
|
+
contents = smithyClient._json(data);
|
|
500
|
+
const response = {
|
|
501
|
+
$metadata: deserializeMetadata(output),
|
|
502
|
+
...contents,
|
|
503
|
+
};
|
|
504
|
+
return response;
|
|
505
|
+
};
|
|
506
|
+
const de_CreateAdditionalAssignmentsForHITCommand = async (output, context) => {
|
|
507
|
+
if (output.statusCode >= 300) {
|
|
508
|
+
return de_CommandError(output, context);
|
|
509
|
+
}
|
|
510
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
511
|
+
let contents = {};
|
|
512
|
+
contents = smithyClient._json(data);
|
|
513
|
+
const response = {
|
|
514
|
+
$metadata: deserializeMetadata(output),
|
|
515
|
+
...contents,
|
|
516
|
+
};
|
|
517
|
+
return response;
|
|
518
|
+
};
|
|
519
|
+
const de_CreateHITCommand = async (output, context) => {
|
|
520
|
+
if (output.statusCode >= 300) {
|
|
521
|
+
return de_CommandError(output, context);
|
|
522
|
+
}
|
|
523
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
524
|
+
let contents = {};
|
|
525
|
+
contents = de_CreateHITResponse(data);
|
|
526
|
+
const response = {
|
|
527
|
+
$metadata: deserializeMetadata(output),
|
|
528
|
+
...contents,
|
|
529
|
+
};
|
|
530
|
+
return response;
|
|
531
|
+
};
|
|
532
|
+
const de_CreateHITTypeCommand = async (output, context) => {
|
|
533
|
+
if (output.statusCode >= 300) {
|
|
534
|
+
return de_CommandError(output, context);
|
|
535
|
+
}
|
|
536
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
537
|
+
let contents = {};
|
|
538
|
+
contents = smithyClient._json(data);
|
|
539
|
+
const response = {
|
|
540
|
+
$metadata: deserializeMetadata(output),
|
|
541
|
+
...contents,
|
|
542
|
+
};
|
|
543
|
+
return response;
|
|
544
|
+
};
|
|
545
|
+
const de_CreateHITWithHITTypeCommand = async (output, context) => {
|
|
546
|
+
if (output.statusCode >= 300) {
|
|
547
|
+
return de_CommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
550
|
+
let contents = {};
|
|
551
|
+
contents = de_CreateHITWithHITTypeResponse(data);
|
|
552
|
+
const response = {
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
...contents,
|
|
555
|
+
};
|
|
556
|
+
return response;
|
|
557
|
+
};
|
|
558
|
+
const de_CreateQualificationTypeCommand = async (output, context) => {
|
|
559
|
+
if (output.statusCode >= 300) {
|
|
560
|
+
return de_CommandError(output, context);
|
|
561
|
+
}
|
|
562
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
563
|
+
let contents = {};
|
|
564
|
+
contents = de_CreateQualificationTypeResponse(data);
|
|
565
|
+
const response = {
|
|
566
|
+
$metadata: deserializeMetadata(output),
|
|
567
|
+
...contents,
|
|
568
|
+
};
|
|
569
|
+
return response;
|
|
570
|
+
};
|
|
571
|
+
const de_CreateWorkerBlockCommand = async (output, context) => {
|
|
572
|
+
if (output.statusCode >= 300) {
|
|
573
|
+
return de_CommandError(output, context);
|
|
574
|
+
}
|
|
575
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
576
|
+
let contents = {};
|
|
577
|
+
contents = smithyClient._json(data);
|
|
578
|
+
const response = {
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
...contents,
|
|
581
|
+
};
|
|
582
|
+
return response;
|
|
583
|
+
};
|
|
584
|
+
const de_DeleteHITCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
589
|
+
let contents = {};
|
|
590
|
+
contents = smithyClient._json(data);
|
|
591
|
+
const response = {
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
593
|
+
...contents,
|
|
594
|
+
};
|
|
595
|
+
return response;
|
|
596
|
+
};
|
|
597
|
+
const de_DeleteQualificationTypeCommand = async (output, context) => {
|
|
598
|
+
if (output.statusCode >= 300) {
|
|
599
|
+
return de_CommandError(output, context);
|
|
600
|
+
}
|
|
601
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
602
|
+
let contents = {};
|
|
603
|
+
contents = smithyClient._json(data);
|
|
604
|
+
const response = {
|
|
605
|
+
$metadata: deserializeMetadata(output),
|
|
606
|
+
...contents,
|
|
607
|
+
};
|
|
608
|
+
return response;
|
|
609
|
+
};
|
|
610
|
+
const de_DeleteWorkerBlockCommand = async (output, context) => {
|
|
611
|
+
if (output.statusCode >= 300) {
|
|
612
|
+
return de_CommandError(output, context);
|
|
613
|
+
}
|
|
614
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
615
|
+
let contents = {};
|
|
616
|
+
contents = smithyClient._json(data);
|
|
617
|
+
const response = {
|
|
618
|
+
$metadata: deserializeMetadata(output),
|
|
619
|
+
...contents,
|
|
620
|
+
};
|
|
621
|
+
return response;
|
|
622
|
+
};
|
|
623
|
+
const de_DisassociateQualificationFromWorkerCommand = async (output, context) => {
|
|
624
|
+
if (output.statusCode >= 300) {
|
|
625
|
+
return de_CommandError(output, context);
|
|
626
|
+
}
|
|
627
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
628
|
+
let contents = {};
|
|
629
|
+
contents = smithyClient._json(data);
|
|
630
|
+
const response = {
|
|
631
|
+
$metadata: deserializeMetadata(output),
|
|
632
|
+
...contents,
|
|
633
|
+
};
|
|
634
|
+
return response;
|
|
635
|
+
};
|
|
636
|
+
const de_GetAccountBalanceCommand = async (output, context) => {
|
|
637
|
+
if (output.statusCode >= 300) {
|
|
638
|
+
return de_CommandError(output, context);
|
|
639
|
+
}
|
|
640
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
641
|
+
let contents = {};
|
|
642
|
+
contents = smithyClient._json(data);
|
|
643
|
+
const response = {
|
|
644
|
+
$metadata: deserializeMetadata(output),
|
|
645
|
+
...contents,
|
|
646
|
+
};
|
|
647
|
+
return response;
|
|
648
|
+
};
|
|
649
|
+
const de_GetAssignmentCommand = async (output, context) => {
|
|
650
|
+
if (output.statusCode >= 300) {
|
|
651
|
+
return de_CommandError(output, context);
|
|
652
|
+
}
|
|
653
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
654
|
+
let contents = {};
|
|
655
|
+
contents = de_GetAssignmentResponse(data);
|
|
656
|
+
const response = {
|
|
657
|
+
$metadata: deserializeMetadata(output),
|
|
658
|
+
...contents,
|
|
659
|
+
};
|
|
660
|
+
return response;
|
|
661
|
+
};
|
|
662
|
+
const de_GetFileUploadURLCommand = async (output, context) => {
|
|
663
|
+
if (output.statusCode >= 300) {
|
|
664
|
+
return de_CommandError(output, context);
|
|
665
|
+
}
|
|
666
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
667
|
+
let contents = {};
|
|
668
|
+
contents = smithyClient._json(data);
|
|
669
|
+
const response = {
|
|
670
|
+
$metadata: deserializeMetadata(output),
|
|
671
|
+
...contents,
|
|
672
|
+
};
|
|
673
|
+
return response;
|
|
674
|
+
};
|
|
675
|
+
const de_GetHITCommand = async (output, context) => {
|
|
676
|
+
if (output.statusCode >= 300) {
|
|
677
|
+
return de_CommandError(output, context);
|
|
678
|
+
}
|
|
679
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
680
|
+
let contents = {};
|
|
681
|
+
contents = de_GetHITResponse(data);
|
|
682
|
+
const response = {
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
...contents,
|
|
685
|
+
};
|
|
686
|
+
return response;
|
|
687
|
+
};
|
|
688
|
+
const de_GetQualificationScoreCommand = async (output, context) => {
|
|
689
|
+
if (output.statusCode >= 300) {
|
|
690
|
+
return de_CommandError(output, context);
|
|
691
|
+
}
|
|
692
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
693
|
+
let contents = {};
|
|
694
|
+
contents = de_GetQualificationScoreResponse(data);
|
|
695
|
+
const response = {
|
|
696
|
+
$metadata: deserializeMetadata(output),
|
|
697
|
+
...contents,
|
|
698
|
+
};
|
|
699
|
+
return response;
|
|
700
|
+
};
|
|
701
|
+
const de_GetQualificationTypeCommand = async (output, context) => {
|
|
702
|
+
if (output.statusCode >= 300) {
|
|
703
|
+
return de_CommandError(output, context);
|
|
704
|
+
}
|
|
705
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
706
|
+
let contents = {};
|
|
707
|
+
contents = de_GetQualificationTypeResponse(data);
|
|
708
|
+
const response = {
|
|
709
|
+
$metadata: deserializeMetadata(output),
|
|
710
|
+
...contents,
|
|
711
|
+
};
|
|
712
|
+
return response;
|
|
713
|
+
};
|
|
714
|
+
const de_ListAssignmentsForHITCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
719
|
+
let contents = {};
|
|
720
|
+
contents = de_ListAssignmentsForHITResponse(data);
|
|
721
|
+
const response = {
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
...contents,
|
|
724
|
+
};
|
|
725
|
+
return response;
|
|
726
|
+
};
|
|
727
|
+
const de_ListBonusPaymentsCommand = async (output, context) => {
|
|
728
|
+
if (output.statusCode >= 300) {
|
|
729
|
+
return de_CommandError(output, context);
|
|
730
|
+
}
|
|
731
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
732
|
+
let contents = {};
|
|
733
|
+
contents = de_ListBonusPaymentsResponse(data);
|
|
734
|
+
const response = {
|
|
735
|
+
$metadata: deserializeMetadata(output),
|
|
736
|
+
...contents,
|
|
737
|
+
};
|
|
738
|
+
return response;
|
|
739
|
+
};
|
|
740
|
+
const de_ListHITsCommand = async (output, context) => {
|
|
741
|
+
if (output.statusCode >= 300) {
|
|
742
|
+
return de_CommandError(output, context);
|
|
743
|
+
}
|
|
744
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
745
|
+
let contents = {};
|
|
746
|
+
contents = de_ListHITsResponse(data);
|
|
747
|
+
const response = {
|
|
748
|
+
$metadata: deserializeMetadata(output),
|
|
749
|
+
...contents,
|
|
750
|
+
};
|
|
751
|
+
return response;
|
|
752
|
+
};
|
|
753
|
+
const de_ListHITsForQualificationTypeCommand = async (output, context) => {
|
|
754
|
+
if (output.statusCode >= 300) {
|
|
755
|
+
return de_CommandError(output, context);
|
|
756
|
+
}
|
|
757
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
758
|
+
let contents = {};
|
|
759
|
+
contents = de_ListHITsForQualificationTypeResponse(data);
|
|
760
|
+
const response = {
|
|
761
|
+
$metadata: deserializeMetadata(output),
|
|
762
|
+
...contents,
|
|
763
|
+
};
|
|
764
|
+
return response;
|
|
765
|
+
};
|
|
766
|
+
const de_ListQualificationRequestsCommand = async (output, context) => {
|
|
767
|
+
if (output.statusCode >= 300) {
|
|
768
|
+
return de_CommandError(output, context);
|
|
769
|
+
}
|
|
770
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
771
|
+
let contents = {};
|
|
772
|
+
contents = de_ListQualificationRequestsResponse(data);
|
|
773
|
+
const response = {
|
|
774
|
+
$metadata: deserializeMetadata(output),
|
|
775
|
+
...contents,
|
|
776
|
+
};
|
|
777
|
+
return response;
|
|
778
|
+
};
|
|
779
|
+
const de_ListQualificationTypesCommand = async (output, context) => {
|
|
780
|
+
if (output.statusCode >= 300) {
|
|
781
|
+
return de_CommandError(output, context);
|
|
782
|
+
}
|
|
783
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
784
|
+
let contents = {};
|
|
785
|
+
contents = de_ListQualificationTypesResponse(data);
|
|
786
|
+
const response = {
|
|
787
|
+
$metadata: deserializeMetadata(output),
|
|
788
|
+
...contents,
|
|
789
|
+
};
|
|
790
|
+
return response;
|
|
791
|
+
};
|
|
792
|
+
const de_ListReviewableHITsCommand = async (output, context) => {
|
|
793
|
+
if (output.statusCode >= 300) {
|
|
794
|
+
return de_CommandError(output, context);
|
|
795
|
+
}
|
|
796
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
797
|
+
let contents = {};
|
|
798
|
+
contents = de_ListReviewableHITsResponse(data);
|
|
799
|
+
const response = {
|
|
800
|
+
$metadata: deserializeMetadata(output),
|
|
801
|
+
...contents,
|
|
802
|
+
};
|
|
803
|
+
return response;
|
|
804
|
+
};
|
|
805
|
+
const de_ListReviewPolicyResultsForHITCommand = async (output, context) => {
|
|
806
|
+
if (output.statusCode >= 300) {
|
|
807
|
+
return de_CommandError(output, context);
|
|
808
|
+
}
|
|
809
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
810
|
+
let contents = {};
|
|
811
|
+
contents = de_ListReviewPolicyResultsForHITResponse(data);
|
|
812
|
+
const response = {
|
|
813
|
+
$metadata: deserializeMetadata(output),
|
|
814
|
+
...contents,
|
|
815
|
+
};
|
|
816
|
+
return response;
|
|
817
|
+
};
|
|
818
|
+
const de_ListWorkerBlocksCommand = async (output, context) => {
|
|
819
|
+
if (output.statusCode >= 300) {
|
|
820
|
+
return de_CommandError(output, context);
|
|
821
|
+
}
|
|
822
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
823
|
+
let contents = {};
|
|
824
|
+
contents = smithyClient._json(data);
|
|
825
|
+
const response = {
|
|
826
|
+
$metadata: deserializeMetadata(output),
|
|
827
|
+
...contents,
|
|
828
|
+
};
|
|
829
|
+
return response;
|
|
830
|
+
};
|
|
831
|
+
const de_ListWorkersWithQualificationTypeCommand = async (output, context) => {
|
|
832
|
+
if (output.statusCode >= 300) {
|
|
833
|
+
return de_CommandError(output, context);
|
|
834
|
+
}
|
|
835
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
836
|
+
let contents = {};
|
|
837
|
+
contents = de_ListWorkersWithQualificationTypeResponse(data);
|
|
838
|
+
const response = {
|
|
839
|
+
$metadata: deserializeMetadata(output),
|
|
840
|
+
...contents,
|
|
841
|
+
};
|
|
842
|
+
return response;
|
|
843
|
+
};
|
|
844
|
+
const de_NotifyWorkersCommand = async (output, context) => {
|
|
845
|
+
if (output.statusCode >= 300) {
|
|
846
|
+
return de_CommandError(output, context);
|
|
847
|
+
}
|
|
848
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
849
|
+
let contents = {};
|
|
850
|
+
contents = smithyClient._json(data);
|
|
851
|
+
const response = {
|
|
852
|
+
$metadata: deserializeMetadata(output),
|
|
853
|
+
...contents,
|
|
854
|
+
};
|
|
855
|
+
return response;
|
|
856
|
+
};
|
|
857
|
+
const de_RejectAssignmentCommand = async (output, context) => {
|
|
858
|
+
if (output.statusCode >= 300) {
|
|
859
|
+
return de_CommandError(output, context);
|
|
860
|
+
}
|
|
861
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
862
|
+
let contents = {};
|
|
863
|
+
contents = smithyClient._json(data);
|
|
864
|
+
const response = {
|
|
865
|
+
$metadata: deserializeMetadata(output),
|
|
866
|
+
...contents,
|
|
867
|
+
};
|
|
868
|
+
return response;
|
|
869
|
+
};
|
|
870
|
+
const de_RejectQualificationRequestCommand = async (output, context) => {
|
|
871
|
+
if (output.statusCode >= 300) {
|
|
872
|
+
return de_CommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
875
|
+
let contents = {};
|
|
876
|
+
contents = smithyClient._json(data);
|
|
877
|
+
const response = {
|
|
878
|
+
$metadata: deserializeMetadata(output),
|
|
879
|
+
...contents,
|
|
880
|
+
};
|
|
881
|
+
return response;
|
|
882
|
+
};
|
|
883
|
+
const de_SendBonusCommand = async (output, context) => {
|
|
884
|
+
if (output.statusCode >= 300) {
|
|
885
|
+
return de_CommandError(output, context);
|
|
886
|
+
}
|
|
887
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
888
|
+
let contents = {};
|
|
889
|
+
contents = smithyClient._json(data);
|
|
890
|
+
const response = {
|
|
891
|
+
$metadata: deserializeMetadata(output),
|
|
892
|
+
...contents,
|
|
893
|
+
};
|
|
894
|
+
return response;
|
|
895
|
+
};
|
|
896
|
+
const de_SendTestEventNotificationCommand = async (output, context) => {
|
|
897
|
+
if (output.statusCode >= 300) {
|
|
898
|
+
return de_CommandError(output, context);
|
|
899
|
+
}
|
|
900
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
901
|
+
let contents = {};
|
|
902
|
+
contents = smithyClient._json(data);
|
|
903
|
+
const response = {
|
|
904
|
+
$metadata: deserializeMetadata(output),
|
|
905
|
+
...contents,
|
|
906
|
+
};
|
|
907
|
+
return response;
|
|
908
|
+
};
|
|
909
|
+
const de_UpdateExpirationForHITCommand = async (output, context) => {
|
|
910
|
+
if (output.statusCode >= 300) {
|
|
911
|
+
return de_CommandError(output, context);
|
|
912
|
+
}
|
|
913
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
914
|
+
let contents = {};
|
|
915
|
+
contents = smithyClient._json(data);
|
|
916
|
+
const response = {
|
|
917
|
+
$metadata: deserializeMetadata(output),
|
|
918
|
+
...contents,
|
|
919
|
+
};
|
|
920
|
+
return response;
|
|
921
|
+
};
|
|
922
|
+
const de_UpdateHITReviewStatusCommand = async (output, context) => {
|
|
923
|
+
if (output.statusCode >= 300) {
|
|
924
|
+
return de_CommandError(output, context);
|
|
925
|
+
}
|
|
926
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
927
|
+
let contents = {};
|
|
928
|
+
contents = smithyClient._json(data);
|
|
929
|
+
const response = {
|
|
930
|
+
$metadata: deserializeMetadata(output),
|
|
931
|
+
...contents,
|
|
932
|
+
};
|
|
933
|
+
return response;
|
|
934
|
+
};
|
|
935
|
+
const de_UpdateHITTypeOfHITCommand = async (output, context) => {
|
|
936
|
+
if (output.statusCode >= 300) {
|
|
937
|
+
return de_CommandError(output, context);
|
|
938
|
+
}
|
|
939
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
940
|
+
let contents = {};
|
|
941
|
+
contents = smithyClient._json(data);
|
|
942
|
+
const response = {
|
|
943
|
+
$metadata: deserializeMetadata(output),
|
|
944
|
+
...contents,
|
|
945
|
+
};
|
|
946
|
+
return response;
|
|
947
|
+
};
|
|
948
|
+
const de_UpdateNotificationSettingsCommand = async (output, context) => {
|
|
949
|
+
if (output.statusCode >= 300) {
|
|
950
|
+
return de_CommandError(output, context);
|
|
951
|
+
}
|
|
952
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
953
|
+
let contents = {};
|
|
954
|
+
contents = smithyClient._json(data);
|
|
955
|
+
const response = {
|
|
956
|
+
$metadata: deserializeMetadata(output),
|
|
957
|
+
...contents,
|
|
958
|
+
};
|
|
959
|
+
return response;
|
|
960
|
+
};
|
|
961
|
+
const de_UpdateQualificationTypeCommand = async (output, context) => {
|
|
962
|
+
if (output.statusCode >= 300) {
|
|
963
|
+
return de_CommandError(output, context);
|
|
964
|
+
}
|
|
965
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
966
|
+
let contents = {};
|
|
967
|
+
contents = de_UpdateQualificationTypeResponse(data);
|
|
968
|
+
const response = {
|
|
969
|
+
$metadata: deserializeMetadata(output),
|
|
970
|
+
...contents,
|
|
971
|
+
};
|
|
972
|
+
return response;
|
|
973
|
+
};
|
|
974
|
+
const de_CommandError = async (output, context) => {
|
|
975
|
+
const parsedOutput = {
|
|
976
|
+
...output,
|
|
977
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
978
|
+
};
|
|
979
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
|
+
switch (errorCode) {
|
|
981
|
+
case "RequestError":
|
|
982
|
+
case "com.amazonaws.mturk#RequestError":
|
|
983
|
+
throw await de_RequestErrorRes(parsedOutput);
|
|
984
|
+
case "ServiceFault":
|
|
985
|
+
case "com.amazonaws.mturk#ServiceFault":
|
|
986
|
+
throw await de_ServiceFaultRes(parsedOutput);
|
|
987
|
+
default:
|
|
988
|
+
const parsedBody = parsedOutput.body;
|
|
989
|
+
return throwDefaultError({
|
|
990
|
+
output,
|
|
991
|
+
parsedBody,
|
|
992
|
+
errorCode,
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
};
|
|
996
|
+
const de_RequestErrorRes = async (parsedOutput, context) => {
|
|
997
|
+
const body = parsedOutput.body;
|
|
998
|
+
const deserialized = smithyClient._json(body);
|
|
999
|
+
const exception = new RequestError({
|
|
1000
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1001
|
+
...deserialized,
|
|
281
1002
|
});
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
name = "ServiceFault";
|
|
292
|
-
$fault = "server";
|
|
293
|
-
Message;
|
|
294
|
-
TurkErrorCode;
|
|
295
|
-
/**
|
|
296
|
-
* @internal
|
|
297
|
-
*/
|
|
298
|
-
constructor(opts) {
|
|
299
|
-
super({
|
|
300
|
-
name: "ServiceFault",
|
|
301
|
-
$fault: "server",
|
|
302
|
-
...opts
|
|
1003
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1004
|
+
};
|
|
1005
|
+
const de_ServiceFaultRes = async (parsedOutput, context) => {
|
|
1006
|
+
const body = parsedOutput.body;
|
|
1007
|
+
const deserialized = smithyClient._json(body);
|
|
1008
|
+
const exception = new ServiceFault({
|
|
1009
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1010
|
+
...deserialized,
|
|
303
1011
|
});
|
|
304
|
-
|
|
305
|
-
this.Message = opts.Message;
|
|
306
|
-
this.TurkErrorCode = opts.TurkErrorCode;
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
var AssignmentStatus = {
|
|
310
|
-
Approved: "Approved",
|
|
311
|
-
Rejected: "Rejected",
|
|
312
|
-
Submitted: "Submitted"
|
|
313
|
-
};
|
|
314
|
-
var Comparator = {
|
|
315
|
-
DoesNotExist: "DoesNotExist",
|
|
316
|
-
EqualTo: "EqualTo",
|
|
317
|
-
Exists: "Exists",
|
|
318
|
-
GreaterThan: "GreaterThan",
|
|
319
|
-
GreaterThanOrEqualTo: "GreaterThanOrEqualTo",
|
|
320
|
-
In: "In",
|
|
321
|
-
LessThan: "LessThan",
|
|
322
|
-
LessThanOrEqualTo: "LessThanOrEqualTo",
|
|
323
|
-
NotEqualTo: "NotEqualTo",
|
|
324
|
-
NotIn: "NotIn"
|
|
325
|
-
};
|
|
326
|
-
var HITAccessActions = {
|
|
327
|
-
Accept: "Accept",
|
|
328
|
-
DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept",
|
|
329
|
-
PreviewAndAccept: "PreviewAndAccept"
|
|
330
|
-
};
|
|
331
|
-
var HITReviewStatus = {
|
|
332
|
-
MarkedForReview: "MarkedForReview",
|
|
333
|
-
NotReviewed: "NotReviewed",
|
|
334
|
-
ReviewedAppropriate: "ReviewedAppropriate",
|
|
335
|
-
ReviewedInappropriate: "ReviewedInappropriate"
|
|
336
|
-
};
|
|
337
|
-
var HITStatus = {
|
|
338
|
-
Assignable: "Assignable",
|
|
339
|
-
Disposed: "Disposed",
|
|
340
|
-
Reviewable: "Reviewable",
|
|
341
|
-
Reviewing: "Reviewing",
|
|
342
|
-
Unassignable: "Unassignable"
|
|
343
|
-
};
|
|
344
|
-
var QualificationTypeStatus = {
|
|
345
|
-
Active: "Active",
|
|
346
|
-
Inactive: "Inactive"
|
|
347
|
-
};
|
|
348
|
-
var EventType = {
|
|
349
|
-
AssignmentAbandoned: "AssignmentAbandoned",
|
|
350
|
-
AssignmentAccepted: "AssignmentAccepted",
|
|
351
|
-
AssignmentApproved: "AssignmentApproved",
|
|
352
|
-
AssignmentRejected: "AssignmentRejected",
|
|
353
|
-
AssignmentReturned: "AssignmentReturned",
|
|
354
|
-
AssignmentSubmitted: "AssignmentSubmitted",
|
|
355
|
-
HITCreated: "HITCreated",
|
|
356
|
-
HITDisposed: "HITDisposed",
|
|
357
|
-
HITExpired: "HITExpired",
|
|
358
|
-
HITExtended: "HITExtended",
|
|
359
|
-
HITReviewable: "HITReviewable",
|
|
360
|
-
Ping: "Ping"
|
|
361
|
-
};
|
|
362
|
-
var QualificationStatus = {
|
|
363
|
-
Granted: "Granted",
|
|
364
|
-
Revoked: "Revoked"
|
|
365
|
-
};
|
|
366
|
-
var ReviewableHITStatus = {
|
|
367
|
-
Reviewable: "Reviewable",
|
|
368
|
-
Reviewing: "Reviewing"
|
|
369
|
-
};
|
|
370
|
-
var ReviewPolicyLevel = {
|
|
371
|
-
Assignment: "Assignment",
|
|
372
|
-
HIT: "HIT"
|
|
373
|
-
};
|
|
374
|
-
var ReviewActionStatus = {
|
|
375
|
-
Cancelled: "Cancelled",
|
|
376
|
-
Failed: "Failed",
|
|
377
|
-
Intended: "Intended",
|
|
378
|
-
Succeeded: "Succeeded"
|
|
379
|
-
};
|
|
380
|
-
var NotifyWorkersFailureCode = {
|
|
381
|
-
HardFailure: "HardFailure",
|
|
382
|
-
SoftFailure: "SoftFailure"
|
|
383
|
-
};
|
|
384
|
-
var NotificationTransport = {
|
|
385
|
-
Email: "Email",
|
|
386
|
-
SNS: "SNS",
|
|
387
|
-
SQS: "SQS"
|
|
1012
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
388
1013
|
};
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
395
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
396
|
-
}, "se_AcceptQualificationRequestCommand");
|
|
397
|
-
var se_ApproveAssignmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
398
|
-
const headers = sharedHeaders("ApproveAssignment");
|
|
399
|
-
let body;
|
|
400
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
401
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
402
|
-
}, "se_ApproveAssignmentCommand");
|
|
403
|
-
var se_AssociateQualificationWithWorkerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("AssociateQualificationWithWorker");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
408
|
-
}, "se_AssociateQualificationWithWorkerCommand");
|
|
409
|
-
var se_CreateAdditionalAssignmentsForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
410
|
-
const headers = sharedHeaders("CreateAdditionalAssignmentsForHIT");
|
|
411
|
-
let body;
|
|
412
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
413
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
414
|
-
}, "se_CreateAdditionalAssignmentsForHITCommand");
|
|
415
|
-
var se_CreateHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
416
|
-
const headers = sharedHeaders("CreateHIT");
|
|
417
|
-
let body;
|
|
418
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
419
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
420
|
-
}, "se_CreateHITCommand");
|
|
421
|
-
var se_CreateHITTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
422
|
-
const headers = sharedHeaders("CreateHITType");
|
|
423
|
-
let body;
|
|
424
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
425
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
426
|
-
}, "se_CreateHITTypeCommand");
|
|
427
|
-
var se_CreateHITWithHITTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
428
|
-
const headers = sharedHeaders("CreateHITWithHITType");
|
|
429
|
-
let body;
|
|
430
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
431
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
432
|
-
}, "se_CreateHITWithHITTypeCommand");
|
|
433
|
-
var se_CreateQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
434
|
-
const headers = sharedHeaders("CreateQualificationType");
|
|
435
|
-
let body;
|
|
436
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
437
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
438
|
-
}, "se_CreateQualificationTypeCommand");
|
|
439
|
-
var se_CreateWorkerBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
440
|
-
const headers = sharedHeaders("CreateWorkerBlock");
|
|
441
|
-
let body;
|
|
442
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
443
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
444
|
-
}, "se_CreateWorkerBlockCommand");
|
|
445
|
-
var se_DeleteHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("DeleteHIT");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
450
|
-
}, "se_DeleteHITCommand");
|
|
451
|
-
var se_DeleteQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
452
|
-
const headers = sharedHeaders("DeleteQualificationType");
|
|
453
|
-
let body;
|
|
454
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
455
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
456
|
-
}, "se_DeleteQualificationTypeCommand");
|
|
457
|
-
var se_DeleteWorkerBlockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
458
|
-
const headers = sharedHeaders("DeleteWorkerBlock");
|
|
459
|
-
let body;
|
|
460
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
461
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
462
|
-
}, "se_DeleteWorkerBlockCommand");
|
|
463
|
-
var se_DisassociateQualificationFromWorkerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
464
|
-
const headers = sharedHeaders("DisassociateQualificationFromWorker");
|
|
465
|
-
let body;
|
|
466
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
467
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
468
|
-
}, "se_DisassociateQualificationFromWorkerCommand");
|
|
469
|
-
var se_GetAccountBalanceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
-
const headers = sharedHeaders("GetAccountBalance");
|
|
471
|
-
let body;
|
|
472
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
473
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
474
|
-
}, "se_GetAccountBalanceCommand");
|
|
475
|
-
var se_GetAssignmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
476
|
-
const headers = sharedHeaders("GetAssignment");
|
|
477
|
-
let body;
|
|
478
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
479
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
480
|
-
}, "se_GetAssignmentCommand");
|
|
481
|
-
var se_GetFileUploadURLCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
-
const headers = sharedHeaders("GetFileUploadURL");
|
|
483
|
-
let body;
|
|
484
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
485
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
486
|
-
}, "se_GetFileUploadURLCommand");
|
|
487
|
-
var se_GetHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
-
const headers = sharedHeaders("GetHIT");
|
|
489
|
-
let body;
|
|
490
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
491
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
492
|
-
}, "se_GetHITCommand");
|
|
493
|
-
var se_GetQualificationScoreCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
494
|
-
const headers = sharedHeaders("GetQualificationScore");
|
|
495
|
-
let body;
|
|
496
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
497
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
498
|
-
}, "se_GetQualificationScoreCommand");
|
|
499
|
-
var se_GetQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
500
|
-
const headers = sharedHeaders("GetQualificationType");
|
|
501
|
-
let body;
|
|
502
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
503
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
504
|
-
}, "se_GetQualificationTypeCommand");
|
|
505
|
-
var se_ListAssignmentsForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
506
|
-
const headers = sharedHeaders("ListAssignmentsForHIT");
|
|
507
|
-
let body;
|
|
508
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
509
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
510
|
-
}, "se_ListAssignmentsForHITCommand");
|
|
511
|
-
var se_ListBonusPaymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
512
|
-
const headers = sharedHeaders("ListBonusPayments");
|
|
513
|
-
let body;
|
|
514
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
515
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
516
|
-
}, "se_ListBonusPaymentsCommand");
|
|
517
|
-
var se_ListHITsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
518
|
-
const headers = sharedHeaders("ListHITs");
|
|
519
|
-
let body;
|
|
520
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
521
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
522
|
-
}, "se_ListHITsCommand");
|
|
523
|
-
var se_ListHITsForQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
524
|
-
const headers = sharedHeaders("ListHITsForQualificationType");
|
|
525
|
-
let body;
|
|
526
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
527
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
528
|
-
}, "se_ListHITsForQualificationTypeCommand");
|
|
529
|
-
var se_ListQualificationRequestsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
530
|
-
const headers = sharedHeaders("ListQualificationRequests");
|
|
531
|
-
let body;
|
|
532
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
533
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
534
|
-
}, "se_ListQualificationRequestsCommand");
|
|
535
|
-
var se_ListQualificationTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
536
|
-
const headers = sharedHeaders("ListQualificationTypes");
|
|
537
|
-
let body;
|
|
538
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
539
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
540
|
-
}, "se_ListQualificationTypesCommand");
|
|
541
|
-
var se_ListReviewableHITsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
542
|
-
const headers = sharedHeaders("ListReviewableHITs");
|
|
543
|
-
let body;
|
|
544
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
545
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
546
|
-
}, "se_ListReviewableHITsCommand");
|
|
547
|
-
var se_ListReviewPolicyResultsForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
548
|
-
const headers = sharedHeaders("ListReviewPolicyResultsForHIT");
|
|
549
|
-
let body;
|
|
550
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
551
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
552
|
-
}, "se_ListReviewPolicyResultsForHITCommand");
|
|
553
|
-
var se_ListWorkerBlocksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
554
|
-
const headers = sharedHeaders("ListWorkerBlocks");
|
|
555
|
-
let body;
|
|
556
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
557
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
558
|
-
}, "se_ListWorkerBlocksCommand");
|
|
559
|
-
var se_ListWorkersWithQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
560
|
-
const headers = sharedHeaders("ListWorkersWithQualificationType");
|
|
561
|
-
let body;
|
|
562
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
563
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
564
|
-
}, "se_ListWorkersWithQualificationTypeCommand");
|
|
565
|
-
var se_NotifyWorkersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
566
|
-
const headers = sharedHeaders("NotifyWorkers");
|
|
567
|
-
let body;
|
|
568
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
569
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
570
|
-
}, "se_NotifyWorkersCommand");
|
|
571
|
-
var se_RejectAssignmentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
572
|
-
const headers = sharedHeaders("RejectAssignment");
|
|
573
|
-
let body;
|
|
574
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
575
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
576
|
-
}, "se_RejectAssignmentCommand");
|
|
577
|
-
var se_RejectQualificationRequestCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
578
|
-
const headers = sharedHeaders("RejectQualificationRequest");
|
|
579
|
-
let body;
|
|
580
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
581
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
582
|
-
}, "se_RejectQualificationRequestCommand");
|
|
583
|
-
var se_SendBonusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
584
|
-
const headers = sharedHeaders("SendBonus");
|
|
585
|
-
let body;
|
|
586
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
587
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
588
|
-
}, "se_SendBonusCommand");
|
|
589
|
-
var se_SendTestEventNotificationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
590
|
-
const headers = sharedHeaders("SendTestEventNotification");
|
|
591
|
-
let body;
|
|
592
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
593
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
594
|
-
}, "se_SendTestEventNotificationCommand");
|
|
595
|
-
var se_UpdateExpirationForHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
596
|
-
const headers = sharedHeaders("UpdateExpirationForHIT");
|
|
597
|
-
let body;
|
|
598
|
-
body = JSON.stringify(se_UpdateExpirationForHITRequest(input, context));
|
|
599
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
600
|
-
}, "se_UpdateExpirationForHITCommand");
|
|
601
|
-
var se_UpdateHITReviewStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
602
|
-
const headers = sharedHeaders("UpdateHITReviewStatus");
|
|
603
|
-
let body;
|
|
604
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
605
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
606
|
-
}, "se_UpdateHITReviewStatusCommand");
|
|
607
|
-
var se_UpdateHITTypeOfHITCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
608
|
-
const headers = sharedHeaders("UpdateHITTypeOfHIT");
|
|
609
|
-
let body;
|
|
610
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
611
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
612
|
-
}, "se_UpdateHITTypeOfHITCommand");
|
|
613
|
-
var se_UpdateNotificationSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
614
|
-
const headers = sharedHeaders("UpdateNotificationSettings");
|
|
615
|
-
let body;
|
|
616
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
617
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
618
|
-
}, "se_UpdateNotificationSettingsCommand");
|
|
619
|
-
var se_UpdateQualificationTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
620
|
-
const headers = sharedHeaders("UpdateQualificationType");
|
|
621
|
-
let body;
|
|
622
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
623
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
624
|
-
}, "se_UpdateQualificationTypeCommand");
|
|
625
|
-
var de_AcceptQualificationRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
626
|
-
if (output.statusCode >= 300) {
|
|
627
|
-
return de_CommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
630
|
-
let contents = {};
|
|
631
|
-
contents = (0, import_smithy_client._json)(data);
|
|
632
|
-
const response = {
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
...contents
|
|
635
|
-
};
|
|
636
|
-
return response;
|
|
637
|
-
}, "de_AcceptQualificationRequestCommand");
|
|
638
|
-
var de_ApproveAssignmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
639
|
-
if (output.statusCode >= 300) {
|
|
640
|
-
return de_CommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
643
|
-
let contents = {};
|
|
644
|
-
contents = (0, import_smithy_client._json)(data);
|
|
645
|
-
const response = {
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
...contents
|
|
648
|
-
};
|
|
649
|
-
return response;
|
|
650
|
-
}, "de_ApproveAssignmentCommand");
|
|
651
|
-
var de_AssociateQualificationWithWorkerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
652
|
-
if (output.statusCode >= 300) {
|
|
653
|
-
return de_CommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
656
|
-
let contents = {};
|
|
657
|
-
contents = (0, import_smithy_client._json)(data);
|
|
658
|
-
const response = {
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
...contents
|
|
661
|
-
};
|
|
662
|
-
return response;
|
|
663
|
-
}, "de_AssociateQualificationWithWorkerCommand");
|
|
664
|
-
var de_CreateAdditionalAssignmentsForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
665
|
-
if (output.statusCode >= 300) {
|
|
666
|
-
return de_CommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
669
|
-
let contents = {};
|
|
670
|
-
contents = (0, import_smithy_client._json)(data);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
...contents
|
|
674
|
-
};
|
|
675
|
-
return response;
|
|
676
|
-
}, "de_CreateAdditionalAssignmentsForHITCommand");
|
|
677
|
-
var de_CreateHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
678
|
-
if (output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
682
|
-
let contents = {};
|
|
683
|
-
contents = de_CreateHITResponse(data, context);
|
|
684
|
-
const response = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
...contents
|
|
687
|
-
};
|
|
688
|
-
return response;
|
|
689
|
-
}, "de_CreateHITCommand");
|
|
690
|
-
var de_CreateHITTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
695
|
-
let contents = {};
|
|
696
|
-
contents = (0, import_smithy_client._json)(data);
|
|
697
|
-
const response = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents
|
|
700
|
-
};
|
|
701
|
-
return response;
|
|
702
|
-
}, "de_CreateHITTypeCommand");
|
|
703
|
-
var de_CreateHITWithHITTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
704
|
-
if (output.statusCode >= 300) {
|
|
705
|
-
return de_CommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
708
|
-
let contents = {};
|
|
709
|
-
contents = de_CreateHITWithHITTypeResponse(data, context);
|
|
710
|
-
const response = {
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
...contents
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
}, "de_CreateHITWithHITTypeCommand");
|
|
716
|
-
var de_CreateQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
717
|
-
if (output.statusCode >= 300) {
|
|
718
|
-
return de_CommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
721
|
-
let contents = {};
|
|
722
|
-
contents = de_CreateQualificationTypeResponse(data, context);
|
|
723
|
-
const response = {
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
...contents
|
|
726
|
-
};
|
|
727
|
-
return response;
|
|
728
|
-
}, "de_CreateQualificationTypeCommand");
|
|
729
|
-
var de_CreateWorkerBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
|
-
if (output.statusCode >= 300) {
|
|
731
|
-
return de_CommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
734
|
-
let contents = {};
|
|
735
|
-
contents = (0, import_smithy_client._json)(data);
|
|
736
|
-
const response = {
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
...contents
|
|
739
|
-
};
|
|
740
|
-
return response;
|
|
741
|
-
}, "de_CreateWorkerBlockCommand");
|
|
742
|
-
var de_DeleteHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
743
|
-
if (output.statusCode >= 300) {
|
|
744
|
-
return de_CommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
747
|
-
let contents = {};
|
|
748
|
-
contents = (0, import_smithy_client._json)(data);
|
|
749
|
-
const response = {
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
...contents
|
|
752
|
-
};
|
|
753
|
-
return response;
|
|
754
|
-
}, "de_DeleteHITCommand");
|
|
755
|
-
var de_DeleteQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
|
-
if (output.statusCode >= 300) {
|
|
757
|
-
return de_CommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
760
|
-
let contents = {};
|
|
761
|
-
contents = (0, import_smithy_client._json)(data);
|
|
762
|
-
const response = {
|
|
763
|
-
$metadata: deserializeMetadata(output),
|
|
764
|
-
...contents
|
|
765
|
-
};
|
|
766
|
-
return response;
|
|
767
|
-
}, "de_DeleteQualificationTypeCommand");
|
|
768
|
-
var de_DeleteWorkerBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
-
if (output.statusCode >= 300) {
|
|
770
|
-
return de_CommandError(output, context);
|
|
771
|
-
}
|
|
772
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
773
|
-
let contents = {};
|
|
774
|
-
contents = (0, import_smithy_client._json)(data);
|
|
775
|
-
const response = {
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
...contents
|
|
778
|
-
};
|
|
779
|
-
return response;
|
|
780
|
-
}, "de_DeleteWorkerBlockCommand");
|
|
781
|
-
var de_DisassociateQualificationFromWorkerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
782
|
-
if (output.statusCode >= 300) {
|
|
783
|
-
return de_CommandError(output, context);
|
|
784
|
-
}
|
|
785
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
786
|
-
let contents = {};
|
|
787
|
-
contents = (0, import_smithy_client._json)(data);
|
|
788
|
-
const response = {
|
|
789
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
-
...contents
|
|
791
|
-
};
|
|
792
|
-
return response;
|
|
793
|
-
}, "de_DisassociateQualificationFromWorkerCommand");
|
|
794
|
-
var de_GetAccountBalanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
795
|
-
if (output.statusCode >= 300) {
|
|
796
|
-
return de_CommandError(output, context);
|
|
797
|
-
}
|
|
798
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
799
|
-
let contents = {};
|
|
800
|
-
contents = (0, import_smithy_client._json)(data);
|
|
801
|
-
const response = {
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
...contents
|
|
804
|
-
};
|
|
805
|
-
return response;
|
|
806
|
-
}, "de_GetAccountBalanceCommand");
|
|
807
|
-
var de_GetAssignmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
|
-
if (output.statusCode >= 300) {
|
|
809
|
-
return de_CommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
812
|
-
let contents = {};
|
|
813
|
-
contents = de_GetAssignmentResponse(data, context);
|
|
814
|
-
const response = {
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
...contents
|
|
817
|
-
};
|
|
818
|
-
return response;
|
|
819
|
-
}, "de_GetAssignmentCommand");
|
|
820
|
-
var de_GetFileUploadURLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
-
if (output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
825
|
-
let contents = {};
|
|
826
|
-
contents = (0, import_smithy_client._json)(data);
|
|
827
|
-
const response = {
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
...contents
|
|
830
|
-
};
|
|
831
|
-
return response;
|
|
832
|
-
}, "de_GetFileUploadURLCommand");
|
|
833
|
-
var de_GetHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
834
|
-
if (output.statusCode >= 300) {
|
|
835
|
-
return de_CommandError(output, context);
|
|
836
|
-
}
|
|
837
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
838
|
-
let contents = {};
|
|
839
|
-
contents = de_GetHITResponse(data, context);
|
|
840
|
-
const response = {
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
...contents
|
|
843
|
-
};
|
|
844
|
-
return response;
|
|
845
|
-
}, "de_GetHITCommand");
|
|
846
|
-
var de_GetQualificationScoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
847
|
-
if (output.statusCode >= 300) {
|
|
848
|
-
return de_CommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
851
|
-
let contents = {};
|
|
852
|
-
contents = de_GetQualificationScoreResponse(data, context);
|
|
853
|
-
const response = {
|
|
854
|
-
$metadata: deserializeMetadata(output),
|
|
855
|
-
...contents
|
|
856
|
-
};
|
|
857
|
-
return response;
|
|
858
|
-
}, "de_GetQualificationScoreCommand");
|
|
859
|
-
var de_GetQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
860
|
-
if (output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
864
|
-
let contents = {};
|
|
865
|
-
contents = de_GetQualificationTypeResponse(data, context);
|
|
866
|
-
const response = {
|
|
867
|
-
$metadata: deserializeMetadata(output),
|
|
868
|
-
...contents
|
|
869
|
-
};
|
|
870
|
-
return response;
|
|
871
|
-
}, "de_GetQualificationTypeCommand");
|
|
872
|
-
var de_ListAssignmentsForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
873
|
-
if (output.statusCode >= 300) {
|
|
874
|
-
return de_CommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
877
|
-
let contents = {};
|
|
878
|
-
contents = de_ListAssignmentsForHITResponse(data, context);
|
|
879
|
-
const response = {
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
...contents
|
|
882
|
-
};
|
|
883
|
-
return response;
|
|
884
|
-
}, "de_ListAssignmentsForHITCommand");
|
|
885
|
-
var de_ListBonusPaymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
886
|
-
if (output.statusCode >= 300) {
|
|
887
|
-
return de_CommandError(output, context);
|
|
888
|
-
}
|
|
889
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
890
|
-
let contents = {};
|
|
891
|
-
contents = de_ListBonusPaymentsResponse(data, context);
|
|
892
|
-
const response = {
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
...contents
|
|
895
|
-
};
|
|
896
|
-
return response;
|
|
897
|
-
}, "de_ListBonusPaymentsCommand");
|
|
898
|
-
var de_ListHITsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
899
|
-
if (output.statusCode >= 300) {
|
|
900
|
-
return de_CommandError(output, context);
|
|
901
|
-
}
|
|
902
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
903
|
-
let contents = {};
|
|
904
|
-
contents = de_ListHITsResponse(data, context);
|
|
905
|
-
const response = {
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
...contents
|
|
908
|
-
};
|
|
909
|
-
return response;
|
|
910
|
-
}, "de_ListHITsCommand");
|
|
911
|
-
var de_ListHITsForQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
912
|
-
if (output.statusCode >= 300) {
|
|
913
|
-
return de_CommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
916
|
-
let contents = {};
|
|
917
|
-
contents = de_ListHITsForQualificationTypeResponse(data, context);
|
|
918
|
-
const response = {
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
...contents
|
|
921
|
-
};
|
|
922
|
-
return response;
|
|
923
|
-
}, "de_ListHITsForQualificationTypeCommand");
|
|
924
|
-
var de_ListQualificationRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
925
|
-
if (output.statusCode >= 300) {
|
|
926
|
-
return de_CommandError(output, context);
|
|
927
|
-
}
|
|
928
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
929
|
-
let contents = {};
|
|
930
|
-
contents = de_ListQualificationRequestsResponse(data, context);
|
|
931
|
-
const response = {
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
...contents
|
|
934
|
-
};
|
|
935
|
-
return response;
|
|
936
|
-
}, "de_ListQualificationRequestsCommand");
|
|
937
|
-
var de_ListQualificationTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
938
|
-
if (output.statusCode >= 300) {
|
|
939
|
-
return de_CommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
942
|
-
let contents = {};
|
|
943
|
-
contents = de_ListQualificationTypesResponse(data, context);
|
|
944
|
-
const response = {
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
...contents
|
|
947
|
-
};
|
|
948
|
-
return response;
|
|
949
|
-
}, "de_ListQualificationTypesCommand");
|
|
950
|
-
var de_ListReviewableHITsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
-
if (output.statusCode >= 300) {
|
|
952
|
-
return de_CommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
955
|
-
let contents = {};
|
|
956
|
-
contents = de_ListReviewableHITsResponse(data, context);
|
|
957
|
-
const response = {
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
...contents
|
|
960
|
-
};
|
|
961
|
-
return response;
|
|
962
|
-
}, "de_ListReviewableHITsCommand");
|
|
963
|
-
var de_ListReviewPolicyResultsForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
964
|
-
if (output.statusCode >= 300) {
|
|
965
|
-
return de_CommandError(output, context);
|
|
966
|
-
}
|
|
967
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
968
|
-
let contents = {};
|
|
969
|
-
contents = de_ListReviewPolicyResultsForHITResponse(data, context);
|
|
970
|
-
const response = {
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
...contents
|
|
973
|
-
};
|
|
974
|
-
return response;
|
|
975
|
-
}, "de_ListReviewPolicyResultsForHITCommand");
|
|
976
|
-
var de_ListWorkerBlocksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
977
|
-
if (output.statusCode >= 300) {
|
|
978
|
-
return de_CommandError(output, context);
|
|
979
|
-
}
|
|
980
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
981
|
-
let contents = {};
|
|
982
|
-
contents = (0, import_smithy_client._json)(data);
|
|
983
|
-
const response = {
|
|
984
|
-
$metadata: deserializeMetadata(output),
|
|
985
|
-
...contents
|
|
986
|
-
};
|
|
987
|
-
return response;
|
|
988
|
-
}, "de_ListWorkerBlocksCommand");
|
|
989
|
-
var de_ListWorkersWithQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
|
-
if (output.statusCode >= 300) {
|
|
991
|
-
return de_CommandError(output, context);
|
|
992
|
-
}
|
|
993
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
994
|
-
let contents = {};
|
|
995
|
-
contents = de_ListWorkersWithQualificationTypeResponse(data, context);
|
|
996
|
-
const response = {
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
...contents
|
|
999
|
-
};
|
|
1000
|
-
return response;
|
|
1001
|
-
}, "de_ListWorkersWithQualificationTypeCommand");
|
|
1002
|
-
var de_NotifyWorkersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1003
|
-
if (output.statusCode >= 300) {
|
|
1004
|
-
return de_CommandError(output, context);
|
|
1005
|
-
}
|
|
1006
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1007
|
-
let contents = {};
|
|
1008
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1009
|
-
const response = {
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
...contents
|
|
1012
|
-
};
|
|
1013
|
-
return response;
|
|
1014
|
-
}, "de_NotifyWorkersCommand");
|
|
1015
|
-
var de_RejectAssignmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1016
|
-
if (output.statusCode >= 300) {
|
|
1017
|
-
return de_CommandError(output, context);
|
|
1018
|
-
}
|
|
1019
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1020
|
-
let contents = {};
|
|
1021
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1022
|
-
const response = {
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
...contents
|
|
1025
|
-
};
|
|
1026
|
-
return response;
|
|
1027
|
-
}, "de_RejectAssignmentCommand");
|
|
1028
|
-
var de_RejectQualificationRequestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
|
-
if (output.statusCode >= 300) {
|
|
1030
|
-
return de_CommandError(output, context);
|
|
1031
|
-
}
|
|
1032
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1033
|
-
let contents = {};
|
|
1034
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1035
|
-
const response = {
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
...contents
|
|
1038
|
-
};
|
|
1039
|
-
return response;
|
|
1040
|
-
}, "de_RejectQualificationRequestCommand");
|
|
1041
|
-
var de_SendBonusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1042
|
-
if (output.statusCode >= 300) {
|
|
1043
|
-
return de_CommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1046
|
-
let contents = {};
|
|
1047
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1048
|
-
const response = {
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
...contents
|
|
1051
|
-
};
|
|
1052
|
-
return response;
|
|
1053
|
-
}, "de_SendBonusCommand");
|
|
1054
|
-
var de_SendTestEventNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1055
|
-
if (output.statusCode >= 300) {
|
|
1056
|
-
return de_CommandError(output, context);
|
|
1057
|
-
}
|
|
1058
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1059
|
-
let contents = {};
|
|
1060
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1061
|
-
const response = {
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
...contents
|
|
1064
|
-
};
|
|
1065
|
-
return response;
|
|
1066
|
-
}, "de_SendTestEventNotificationCommand");
|
|
1067
|
-
var de_UpdateExpirationForHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1068
|
-
if (output.statusCode >= 300) {
|
|
1069
|
-
return de_CommandError(output, context);
|
|
1070
|
-
}
|
|
1071
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1072
|
-
let contents = {};
|
|
1073
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1074
|
-
const response = {
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
...contents
|
|
1077
|
-
};
|
|
1078
|
-
return response;
|
|
1079
|
-
}, "de_UpdateExpirationForHITCommand");
|
|
1080
|
-
var de_UpdateHITReviewStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1081
|
-
if (output.statusCode >= 300) {
|
|
1082
|
-
return de_CommandError(output, context);
|
|
1083
|
-
}
|
|
1084
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1085
|
-
let contents = {};
|
|
1086
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1087
|
-
const response = {
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
...contents
|
|
1090
|
-
};
|
|
1091
|
-
return response;
|
|
1092
|
-
}, "de_UpdateHITReviewStatusCommand");
|
|
1093
|
-
var de_UpdateHITTypeOfHITCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1094
|
-
if (output.statusCode >= 300) {
|
|
1095
|
-
return de_CommandError(output, context);
|
|
1096
|
-
}
|
|
1097
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1098
|
-
let contents = {};
|
|
1099
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1100
|
-
const response = {
|
|
1101
|
-
$metadata: deserializeMetadata(output),
|
|
1102
|
-
...contents
|
|
1103
|
-
};
|
|
1104
|
-
return response;
|
|
1105
|
-
}, "de_UpdateHITTypeOfHITCommand");
|
|
1106
|
-
var de_UpdateNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
|
-
if (output.statusCode >= 300) {
|
|
1108
|
-
return de_CommandError(output, context);
|
|
1109
|
-
}
|
|
1110
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1111
|
-
let contents = {};
|
|
1112
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1113
|
-
const response = {
|
|
1114
|
-
$metadata: deserializeMetadata(output),
|
|
1115
|
-
...contents
|
|
1116
|
-
};
|
|
1117
|
-
return response;
|
|
1118
|
-
}, "de_UpdateNotificationSettingsCommand");
|
|
1119
|
-
var de_UpdateQualificationTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
-
if (output.statusCode >= 300) {
|
|
1121
|
-
return de_CommandError(output, context);
|
|
1122
|
-
}
|
|
1123
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1124
|
-
let contents = {};
|
|
1125
|
-
contents = de_UpdateQualificationTypeResponse(data, context);
|
|
1126
|
-
const response = {
|
|
1127
|
-
$metadata: deserializeMetadata(output),
|
|
1128
|
-
...contents
|
|
1129
|
-
};
|
|
1130
|
-
return response;
|
|
1131
|
-
}, "de_UpdateQualificationTypeCommand");
|
|
1132
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
|
-
const parsedOutput = {
|
|
1134
|
-
...output,
|
|
1135
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1136
|
-
};
|
|
1137
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1138
|
-
switch (errorCode) {
|
|
1139
|
-
case "RequestError":
|
|
1140
|
-
case "com.amazonaws.mturk#RequestError":
|
|
1141
|
-
throw await de_RequestErrorRes(parsedOutput, context);
|
|
1142
|
-
case "ServiceFault":
|
|
1143
|
-
case "com.amazonaws.mturk#ServiceFault":
|
|
1144
|
-
throw await de_ServiceFaultRes(parsedOutput, context);
|
|
1145
|
-
default:
|
|
1146
|
-
const parsedBody = parsedOutput.body;
|
|
1147
|
-
return throwDefaultError({
|
|
1148
|
-
output,
|
|
1149
|
-
parsedBody,
|
|
1150
|
-
errorCode
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
}, "de_CommandError");
|
|
1154
|
-
var de_RequestErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1155
|
-
const body = parsedOutput.body;
|
|
1156
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1157
|
-
const exception = new RequestError({
|
|
1158
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
-
...deserialized
|
|
1160
|
-
});
|
|
1161
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1162
|
-
}, "de_RequestErrorRes");
|
|
1163
|
-
var de_ServiceFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1164
|
-
const body = parsedOutput.body;
|
|
1165
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1166
|
-
const exception = new ServiceFault({
|
|
1167
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1168
|
-
...deserialized
|
|
1169
|
-
});
|
|
1170
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1171
|
-
}, "de_ServiceFaultRes");
|
|
1172
|
-
var se_UpdateExpirationForHITRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1173
|
-
return (0, import_smithy_client.take)(input, {
|
|
1174
|
-
ExpireAt: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "ExpireAt"),
|
|
1175
|
-
HITId: []
|
|
1176
|
-
});
|
|
1177
|
-
}, "se_UpdateExpirationForHITRequest");
|
|
1178
|
-
var de_Assignment = /* @__PURE__ */ __name((output, context) => {
|
|
1179
|
-
return (0, import_smithy_client.take)(output, {
|
|
1180
|
-
AcceptTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AcceptTime"),
|
|
1181
|
-
Answer: import_smithy_client.expectString,
|
|
1182
|
-
ApprovalTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ApprovalTime"),
|
|
1183
|
-
AssignmentId: import_smithy_client.expectString,
|
|
1184
|
-
AssignmentStatus: import_smithy_client.expectString,
|
|
1185
|
-
AutoApprovalTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "AutoApprovalTime"),
|
|
1186
|
-
Deadline: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Deadline"),
|
|
1187
|
-
HITId: import_smithy_client.expectString,
|
|
1188
|
-
RejectionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "RejectionTime"),
|
|
1189
|
-
RequesterFeedback: import_smithy_client.expectString,
|
|
1190
|
-
SubmitTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SubmitTime"),
|
|
1191
|
-
WorkerId: import_smithy_client.expectString
|
|
1192
|
-
});
|
|
1193
|
-
}, "de_Assignment");
|
|
1194
|
-
var de_AssignmentList = /* @__PURE__ */ __name((output, context) => {
|
|
1195
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1196
|
-
return de_Assignment(entry, context);
|
|
1197
|
-
});
|
|
1198
|
-
return retVal;
|
|
1199
|
-
}, "de_AssignmentList");
|
|
1200
|
-
var de_BonusPayment = /* @__PURE__ */ __name((output, context) => {
|
|
1201
|
-
return (0, import_smithy_client.take)(output, {
|
|
1202
|
-
AssignmentId: import_smithy_client.expectString,
|
|
1203
|
-
BonusAmount: import_smithy_client.expectString,
|
|
1204
|
-
GrantTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "GrantTime"),
|
|
1205
|
-
Reason: import_smithy_client.expectString,
|
|
1206
|
-
WorkerId: import_smithy_client.expectString
|
|
1207
|
-
});
|
|
1208
|
-
}, "de_BonusPayment");
|
|
1209
|
-
var de_BonusPaymentList = /* @__PURE__ */ __name((output, context) => {
|
|
1210
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1211
|
-
return de_BonusPayment(entry, context);
|
|
1212
|
-
});
|
|
1213
|
-
return retVal;
|
|
1214
|
-
}, "de_BonusPaymentList");
|
|
1215
|
-
var de_CreateHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1216
|
-
return (0, import_smithy_client.take)(output, {
|
|
1217
|
-
HIT: /* @__PURE__ */ __name((_) => de_HIT(_, context), "HIT")
|
|
1218
|
-
});
|
|
1219
|
-
}, "de_CreateHITResponse");
|
|
1220
|
-
var de_CreateHITWithHITTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1221
|
-
return (0, import_smithy_client.take)(output, {
|
|
1222
|
-
HIT: /* @__PURE__ */ __name((_) => de_HIT(_, context), "HIT")
|
|
1223
|
-
});
|
|
1224
|
-
}, "de_CreateHITWithHITTypeResponse");
|
|
1225
|
-
var de_CreateQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1226
|
-
return (0, import_smithy_client.take)(output, {
|
|
1227
|
-
QualificationType: /* @__PURE__ */ __name((_) => de_QualificationType(_, context), "QualificationType")
|
|
1228
|
-
});
|
|
1229
|
-
}, "de_CreateQualificationTypeResponse");
|
|
1230
|
-
var de_GetAssignmentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1231
|
-
return (0, import_smithy_client.take)(output, {
|
|
1232
|
-
Assignment: /* @__PURE__ */ __name((_) => de_Assignment(_, context), "Assignment"),
|
|
1233
|
-
HIT: /* @__PURE__ */ __name((_) => de_HIT(_, context), "HIT")
|
|
1234
|
-
});
|
|
1235
|
-
}, "de_GetAssignmentResponse");
|
|
1236
|
-
var de_GetHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1237
|
-
return (0, import_smithy_client.take)(output, {
|
|
1238
|
-
HIT: /* @__PURE__ */ __name((_) => de_HIT(_, context), "HIT")
|
|
1239
|
-
});
|
|
1240
|
-
}, "de_GetHITResponse");
|
|
1241
|
-
var de_GetQualificationScoreResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1242
|
-
return (0, import_smithy_client.take)(output, {
|
|
1243
|
-
Qualification: /* @__PURE__ */ __name((_) => de_Qualification(_, context), "Qualification")
|
|
1244
|
-
});
|
|
1245
|
-
}, "de_GetQualificationScoreResponse");
|
|
1246
|
-
var de_GetQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1247
|
-
return (0, import_smithy_client.take)(output, {
|
|
1248
|
-
QualificationType: /* @__PURE__ */ __name((_) => de_QualificationType(_, context), "QualificationType")
|
|
1249
|
-
});
|
|
1250
|
-
}, "de_GetQualificationTypeResponse");
|
|
1251
|
-
var de_HIT = /* @__PURE__ */ __name((output, context) => {
|
|
1252
|
-
return (0, import_smithy_client.take)(output, {
|
|
1253
|
-
AssignmentDurationInSeconds: import_smithy_client.expectLong,
|
|
1254
|
-
AutoApprovalDelayInSeconds: import_smithy_client.expectLong,
|
|
1255
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
1256
|
-
Description: import_smithy_client.expectString,
|
|
1257
|
-
Expiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Expiration"),
|
|
1258
|
-
HITGroupId: import_smithy_client.expectString,
|
|
1259
|
-
HITId: import_smithy_client.expectString,
|
|
1260
|
-
HITLayoutId: import_smithy_client.expectString,
|
|
1261
|
-
HITReviewStatus: import_smithy_client.expectString,
|
|
1262
|
-
HITStatus: import_smithy_client.expectString,
|
|
1263
|
-
HITTypeId: import_smithy_client.expectString,
|
|
1264
|
-
Keywords: import_smithy_client.expectString,
|
|
1265
|
-
MaxAssignments: import_smithy_client.expectInt32,
|
|
1266
|
-
NumberOfAssignmentsAvailable: import_smithy_client.expectInt32,
|
|
1267
|
-
NumberOfAssignmentsCompleted: import_smithy_client.expectInt32,
|
|
1268
|
-
NumberOfAssignmentsPending: import_smithy_client.expectInt32,
|
|
1269
|
-
QualificationRequirements: import_smithy_client._json,
|
|
1270
|
-
Question: import_smithy_client.expectString,
|
|
1271
|
-
RequesterAnnotation: import_smithy_client.expectString,
|
|
1272
|
-
Reward: import_smithy_client.expectString,
|
|
1273
|
-
Title: import_smithy_client.expectString
|
|
1274
|
-
});
|
|
1275
|
-
}, "de_HIT");
|
|
1276
|
-
var de_HITList = /* @__PURE__ */ __name((output, context) => {
|
|
1277
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1278
|
-
return de_HIT(entry, context);
|
|
1279
|
-
});
|
|
1280
|
-
return retVal;
|
|
1281
|
-
}, "de_HITList");
|
|
1282
|
-
var de_ListAssignmentsForHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1283
|
-
return (0, import_smithy_client.take)(output, {
|
|
1284
|
-
Assignments: /* @__PURE__ */ __name((_) => de_AssignmentList(_, context), "Assignments"),
|
|
1285
|
-
NextToken: import_smithy_client.expectString,
|
|
1286
|
-
NumResults: import_smithy_client.expectInt32
|
|
1287
|
-
});
|
|
1288
|
-
}, "de_ListAssignmentsForHITResponse");
|
|
1289
|
-
var de_ListBonusPaymentsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1290
|
-
return (0, import_smithy_client.take)(output, {
|
|
1291
|
-
BonusPayments: /* @__PURE__ */ __name((_) => de_BonusPaymentList(_, context), "BonusPayments"),
|
|
1292
|
-
NextToken: import_smithy_client.expectString,
|
|
1293
|
-
NumResults: import_smithy_client.expectInt32
|
|
1294
|
-
});
|
|
1295
|
-
}, "de_ListBonusPaymentsResponse");
|
|
1296
|
-
var de_ListHITsForQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1297
|
-
return (0, import_smithy_client.take)(output, {
|
|
1298
|
-
HITs: /* @__PURE__ */ __name((_) => de_HITList(_, context), "HITs"),
|
|
1299
|
-
NextToken: import_smithy_client.expectString,
|
|
1300
|
-
NumResults: import_smithy_client.expectInt32
|
|
1301
|
-
});
|
|
1302
|
-
}, "de_ListHITsForQualificationTypeResponse");
|
|
1303
|
-
var de_ListHITsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1304
|
-
return (0, import_smithy_client.take)(output, {
|
|
1305
|
-
HITs: /* @__PURE__ */ __name((_) => de_HITList(_, context), "HITs"),
|
|
1306
|
-
NextToken: import_smithy_client.expectString,
|
|
1307
|
-
NumResults: import_smithy_client.expectInt32
|
|
1308
|
-
});
|
|
1309
|
-
}, "de_ListHITsResponse");
|
|
1310
|
-
var de_ListQualificationRequestsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1311
|
-
return (0, import_smithy_client.take)(output, {
|
|
1312
|
-
NextToken: import_smithy_client.expectString,
|
|
1313
|
-
NumResults: import_smithy_client.expectInt32,
|
|
1314
|
-
QualificationRequests: /* @__PURE__ */ __name((_) => de_QualificationRequestList(_, context), "QualificationRequests")
|
|
1315
|
-
});
|
|
1316
|
-
}, "de_ListQualificationRequestsResponse");
|
|
1317
|
-
var de_ListQualificationTypesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1318
|
-
return (0, import_smithy_client.take)(output, {
|
|
1319
|
-
NextToken: import_smithy_client.expectString,
|
|
1320
|
-
NumResults: import_smithy_client.expectInt32,
|
|
1321
|
-
QualificationTypes: /* @__PURE__ */ __name((_) => de_QualificationTypeList(_, context), "QualificationTypes")
|
|
1322
|
-
});
|
|
1323
|
-
}, "de_ListQualificationTypesResponse");
|
|
1324
|
-
var de_ListReviewableHITsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1325
|
-
return (0, import_smithy_client.take)(output, {
|
|
1326
|
-
HITs: /* @__PURE__ */ __name((_) => de_HITList(_, context), "HITs"),
|
|
1327
|
-
NextToken: import_smithy_client.expectString,
|
|
1328
|
-
NumResults: import_smithy_client.expectInt32
|
|
1329
|
-
});
|
|
1330
|
-
}, "de_ListReviewableHITsResponse");
|
|
1331
|
-
var de_ListReviewPolicyResultsForHITResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1332
|
-
return (0, import_smithy_client.take)(output, {
|
|
1333
|
-
AssignmentReviewPolicy: import_smithy_client._json,
|
|
1334
|
-
AssignmentReviewReport: /* @__PURE__ */ __name((_) => de_ReviewReport(_, context), "AssignmentReviewReport"),
|
|
1335
|
-
HITId: import_smithy_client.expectString,
|
|
1336
|
-
HITReviewPolicy: import_smithy_client._json,
|
|
1337
|
-
HITReviewReport: /* @__PURE__ */ __name((_) => de_ReviewReport(_, context), "HITReviewReport"),
|
|
1338
|
-
NextToken: import_smithy_client.expectString
|
|
1339
|
-
});
|
|
1340
|
-
}, "de_ListReviewPolicyResultsForHITResponse");
|
|
1341
|
-
var de_ListWorkersWithQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1342
|
-
return (0, import_smithy_client.take)(output, {
|
|
1343
|
-
NextToken: import_smithy_client.expectString,
|
|
1344
|
-
NumResults: import_smithy_client.expectInt32,
|
|
1345
|
-
Qualifications: /* @__PURE__ */ __name((_) => de_QualificationList(_, context), "Qualifications")
|
|
1346
|
-
});
|
|
1347
|
-
}, "de_ListWorkersWithQualificationTypeResponse");
|
|
1348
|
-
var de_Qualification = /* @__PURE__ */ __name((output, context) => {
|
|
1349
|
-
return (0, import_smithy_client.take)(output, {
|
|
1350
|
-
GrantTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "GrantTime"),
|
|
1351
|
-
IntegerValue: import_smithy_client.expectInt32,
|
|
1352
|
-
LocaleValue: import_smithy_client._json,
|
|
1353
|
-
QualificationTypeId: import_smithy_client.expectString,
|
|
1354
|
-
Status: import_smithy_client.expectString,
|
|
1355
|
-
WorkerId: import_smithy_client.expectString
|
|
1356
|
-
});
|
|
1357
|
-
}, "de_Qualification");
|
|
1358
|
-
var de_QualificationList = /* @__PURE__ */ __name((output, context) => {
|
|
1359
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1360
|
-
return de_Qualification(entry, context);
|
|
1361
|
-
});
|
|
1362
|
-
return retVal;
|
|
1363
|
-
}, "de_QualificationList");
|
|
1364
|
-
var de_QualificationRequest = /* @__PURE__ */ __name((output, context) => {
|
|
1365
|
-
return (0, import_smithy_client.take)(output, {
|
|
1366
|
-
Answer: import_smithy_client.expectString,
|
|
1367
|
-
QualificationRequestId: import_smithy_client.expectString,
|
|
1368
|
-
QualificationTypeId: import_smithy_client.expectString,
|
|
1369
|
-
SubmitTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SubmitTime"),
|
|
1370
|
-
Test: import_smithy_client.expectString,
|
|
1371
|
-
WorkerId: import_smithy_client.expectString
|
|
1372
|
-
});
|
|
1373
|
-
}, "de_QualificationRequest");
|
|
1374
|
-
var de_QualificationRequestList = /* @__PURE__ */ __name((output, context) => {
|
|
1375
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1376
|
-
return de_QualificationRequest(entry, context);
|
|
1377
|
-
});
|
|
1378
|
-
return retVal;
|
|
1379
|
-
}, "de_QualificationRequestList");
|
|
1380
|
-
var de_QualificationType = /* @__PURE__ */ __name((output, context) => {
|
|
1381
|
-
return (0, import_smithy_client.take)(output, {
|
|
1382
|
-
AnswerKey: import_smithy_client.expectString,
|
|
1383
|
-
AutoGranted: import_smithy_client.expectBoolean,
|
|
1384
|
-
AutoGrantedValue: import_smithy_client.expectInt32,
|
|
1385
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
1386
|
-
Description: import_smithy_client.expectString,
|
|
1387
|
-
IsRequestable: import_smithy_client.expectBoolean,
|
|
1388
|
-
Keywords: import_smithy_client.expectString,
|
|
1389
|
-
Name: import_smithy_client.expectString,
|
|
1390
|
-
QualificationTypeId: import_smithy_client.expectString,
|
|
1391
|
-
QualificationTypeStatus: import_smithy_client.expectString,
|
|
1392
|
-
RetryDelayInSeconds: import_smithy_client.expectLong,
|
|
1393
|
-
Test: import_smithy_client.expectString,
|
|
1394
|
-
TestDurationInSeconds: import_smithy_client.expectLong
|
|
1395
|
-
});
|
|
1396
|
-
}, "de_QualificationType");
|
|
1397
|
-
var de_QualificationTypeList = /* @__PURE__ */ __name((output, context) => {
|
|
1398
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1399
|
-
return de_QualificationType(entry, context);
|
|
1400
|
-
});
|
|
1401
|
-
return retVal;
|
|
1402
|
-
}, "de_QualificationTypeList");
|
|
1403
|
-
var de_ReviewActionDetail = /* @__PURE__ */ __name((output, context) => {
|
|
1404
|
-
return (0, import_smithy_client.take)(output, {
|
|
1405
|
-
ActionId: import_smithy_client.expectString,
|
|
1406
|
-
ActionName: import_smithy_client.expectString,
|
|
1407
|
-
CompleteTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompleteTime"),
|
|
1408
|
-
ErrorCode: import_smithy_client.expectString,
|
|
1409
|
-
Result: import_smithy_client.expectString,
|
|
1410
|
-
Status: import_smithy_client.expectString,
|
|
1411
|
-
TargetId: import_smithy_client.expectString,
|
|
1412
|
-
TargetType: import_smithy_client.expectString
|
|
1413
|
-
});
|
|
1414
|
-
}, "de_ReviewActionDetail");
|
|
1415
|
-
var de_ReviewActionDetailList = /* @__PURE__ */ __name((output, context) => {
|
|
1416
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1417
|
-
return de_ReviewActionDetail(entry, context);
|
|
1418
|
-
});
|
|
1419
|
-
return retVal;
|
|
1420
|
-
}, "de_ReviewActionDetailList");
|
|
1421
|
-
var de_ReviewReport = /* @__PURE__ */ __name((output, context) => {
|
|
1422
|
-
return (0, import_smithy_client.take)(output, {
|
|
1423
|
-
ReviewActions: /* @__PURE__ */ __name((_) => de_ReviewActionDetailList(_, context), "ReviewActions"),
|
|
1424
|
-
ReviewResults: import_smithy_client._json
|
|
1425
|
-
});
|
|
1426
|
-
}, "de_ReviewReport");
|
|
1427
|
-
var de_UpdateQualificationTypeResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1428
|
-
return (0, import_smithy_client.take)(output, {
|
|
1429
|
-
QualificationType: /* @__PURE__ */ __name((_) => de_QualificationType(_, context), "QualificationType")
|
|
1430
|
-
});
|
|
1431
|
-
}, "de_UpdateQualificationTypeResponse");
|
|
1432
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1433
|
-
httpStatusCode: output.statusCode,
|
|
1434
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1435
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1436
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1437
|
-
}), "deserializeMetadata");
|
|
1438
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(MTurkServiceException);
|
|
1439
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1440
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1441
|
-
const contents = {
|
|
1442
|
-
protocol,
|
|
1443
|
-
hostname,
|
|
1444
|
-
port,
|
|
1445
|
-
method: "POST",
|
|
1446
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1447
|
-
headers
|
|
1448
|
-
};
|
|
1449
|
-
if (resolvedHostname !== void 0) {
|
|
1450
|
-
contents.hostname = resolvedHostname;
|
|
1451
|
-
}
|
|
1452
|
-
if (body !== void 0) {
|
|
1453
|
-
contents.body = body;
|
|
1454
|
-
}
|
|
1455
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1456
|
-
}, "buildHttpRpcRequest");
|
|
1457
|
-
function sharedHeaders(operation) {
|
|
1458
|
-
return {
|
|
1459
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1460
|
-
"x-amz-target": `MTurkRequesterServiceV20170117.${operation}`
|
|
1461
|
-
};
|
|
1462
|
-
}
|
|
1463
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
1464
|
-
|
|
1465
|
-
// src/commands/AcceptQualificationRequestCommand.ts
|
|
1466
|
-
var AcceptQualificationRequestCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1467
|
-
return [
|
|
1468
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1469
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1470
|
-
];
|
|
1471
|
-
}).s("MTurkRequesterServiceV20170117", "AcceptQualificationRequest", {}).n("MTurkClient", "AcceptQualificationRequestCommand").f(void 0, void 0).ser(se_AcceptQualificationRequestCommand).de(de_AcceptQualificationRequestCommand).build() {
|
|
1472
|
-
static {
|
|
1473
|
-
__name(this, "AcceptQualificationRequestCommand");
|
|
1474
|
-
}
|
|
1014
|
+
const se_UpdateExpirationForHITRequest = (input, context) => {
|
|
1015
|
+
return smithyClient.take(input, {
|
|
1016
|
+
ExpireAt: (_) => _.getTime() / 1_000,
|
|
1017
|
+
HITId: [],
|
|
1018
|
+
});
|
|
1475
1019
|
};
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1020
|
+
const de_Assignment = (output, context) => {
|
|
1021
|
+
return smithyClient.take(output, {
|
|
1022
|
+
AcceptTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1023
|
+
Answer: smithyClient.expectString,
|
|
1024
|
+
ApprovalTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1025
|
+
AssignmentId: smithyClient.expectString,
|
|
1026
|
+
AssignmentStatus: smithyClient.expectString,
|
|
1027
|
+
AutoApprovalTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1028
|
+
Deadline: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1029
|
+
HITId: smithyClient.expectString,
|
|
1030
|
+
RejectionTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1031
|
+
RequesterFeedback: smithyClient.expectString,
|
|
1032
|
+
SubmitTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1033
|
+
WorkerId: smithyClient.expectString,
|
|
1034
|
+
});
|
|
1490
1035
|
};
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1499
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1500
|
-
];
|
|
1501
|
-
}).s("MTurkRequesterServiceV20170117", "AssociateQualificationWithWorker", {}).n("MTurkClient", "AssociateQualificationWithWorkerCommand").f(void 0, void 0).ser(se_AssociateQualificationWithWorkerCommand).de(de_AssociateQualificationWithWorkerCommand).build() {
|
|
1502
|
-
static {
|
|
1503
|
-
__name(this, "AssociateQualificationWithWorkerCommand");
|
|
1504
|
-
}
|
|
1036
|
+
const de_AssignmentList = (output, context) => {
|
|
1037
|
+
const retVal = (output || [])
|
|
1038
|
+
.filter((e) => e != null)
|
|
1039
|
+
.map((entry) => {
|
|
1040
|
+
return de_Assignment(entry);
|
|
1041
|
+
});
|
|
1042
|
+
return retVal;
|
|
1505
1043
|
};
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1515
|
-
];
|
|
1516
|
-
}).s("MTurkRequesterServiceV20170117", "CreateAdditionalAssignmentsForHIT", {}).n("MTurkClient", "CreateAdditionalAssignmentsForHITCommand").f(void 0, void 0).ser(se_CreateAdditionalAssignmentsForHITCommand).de(de_CreateAdditionalAssignmentsForHITCommand).build() {
|
|
1517
|
-
static {
|
|
1518
|
-
__name(this, "CreateAdditionalAssignmentsForHITCommand");
|
|
1519
|
-
}
|
|
1044
|
+
const de_BonusPayment = (output, context) => {
|
|
1045
|
+
return smithyClient.take(output, {
|
|
1046
|
+
AssignmentId: smithyClient.expectString,
|
|
1047
|
+
BonusAmount: smithyClient.expectString,
|
|
1048
|
+
GrantTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1049
|
+
Reason: smithyClient.expectString,
|
|
1050
|
+
WorkerId: smithyClient.expectString,
|
|
1051
|
+
});
|
|
1520
1052
|
};
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1529
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1530
|
-
];
|
|
1531
|
-
}).s("MTurkRequesterServiceV20170117", "CreateHIT", {}).n("MTurkClient", "CreateHITCommand").f(void 0, void 0).ser(se_CreateHITCommand).de(de_CreateHITCommand).build() {
|
|
1532
|
-
static {
|
|
1533
|
-
__name(this, "CreateHITCommand");
|
|
1534
|
-
}
|
|
1053
|
+
const de_BonusPaymentList = (output, context) => {
|
|
1054
|
+
const retVal = (output || [])
|
|
1055
|
+
.filter((e) => e != null)
|
|
1056
|
+
.map((entry) => {
|
|
1057
|
+
return de_BonusPayment(entry);
|
|
1058
|
+
});
|
|
1059
|
+
return retVal;
|
|
1535
1060
|
};
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
var CreateHITTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1542
|
-
return [
|
|
1543
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1544
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1545
|
-
];
|
|
1546
|
-
}).s("MTurkRequesterServiceV20170117", "CreateHITType", {}).n("MTurkClient", "CreateHITTypeCommand").f(void 0, void 0).ser(se_CreateHITTypeCommand).de(de_CreateHITTypeCommand).build() {
|
|
1547
|
-
static {
|
|
1548
|
-
__name(this, "CreateHITTypeCommand");
|
|
1549
|
-
}
|
|
1061
|
+
const de_CreateHITResponse = (output, context) => {
|
|
1062
|
+
return smithyClient.take(output, {
|
|
1063
|
+
HIT: (_) => de_HIT(_),
|
|
1064
|
+
});
|
|
1550
1065
|
};
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
var CreateHITWithHITTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1557
|
-
return [
|
|
1558
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1559
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1560
|
-
];
|
|
1561
|
-
}).s("MTurkRequesterServiceV20170117", "CreateHITWithHITType", {}).n("MTurkClient", "CreateHITWithHITTypeCommand").f(void 0, void 0).ser(se_CreateHITWithHITTypeCommand).de(de_CreateHITWithHITTypeCommand).build() {
|
|
1562
|
-
static {
|
|
1563
|
-
__name(this, "CreateHITWithHITTypeCommand");
|
|
1564
|
-
}
|
|
1066
|
+
const de_CreateHITWithHITTypeResponse = (output, context) => {
|
|
1067
|
+
return smithyClient.take(output, {
|
|
1068
|
+
HIT: (_) => de_HIT(_),
|
|
1069
|
+
});
|
|
1565
1070
|
};
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
var CreateQualificationTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1572
|
-
return [
|
|
1573
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1574
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1575
|
-
];
|
|
1576
|
-
}).s("MTurkRequesterServiceV20170117", "CreateQualificationType", {}).n("MTurkClient", "CreateQualificationTypeCommand").f(void 0, void 0).ser(se_CreateQualificationTypeCommand).de(de_CreateQualificationTypeCommand).build() {
|
|
1577
|
-
static {
|
|
1578
|
-
__name(this, "CreateQualificationTypeCommand");
|
|
1579
|
-
}
|
|
1071
|
+
const de_CreateQualificationTypeResponse = (output, context) => {
|
|
1072
|
+
return smithyClient.take(output, {
|
|
1073
|
+
QualificationType: (_) => de_QualificationType(_),
|
|
1074
|
+
});
|
|
1580
1075
|
};
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
var CreateWorkerBlockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1587
|
-
return [
|
|
1588
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1589
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1590
|
-
];
|
|
1591
|
-
}).s("MTurkRequesterServiceV20170117", "CreateWorkerBlock", {}).n("MTurkClient", "CreateWorkerBlockCommand").f(void 0, void 0).ser(se_CreateWorkerBlockCommand).de(de_CreateWorkerBlockCommand).build() {
|
|
1592
|
-
static {
|
|
1593
|
-
__name(this, "CreateWorkerBlockCommand");
|
|
1594
|
-
}
|
|
1076
|
+
const de_GetAssignmentResponse = (output, context) => {
|
|
1077
|
+
return smithyClient.take(output, {
|
|
1078
|
+
Assignment: (_) => de_Assignment(_),
|
|
1079
|
+
HIT: (_) => de_HIT(_),
|
|
1080
|
+
});
|
|
1595
1081
|
};
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
var DeleteHITCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1602
|
-
return [
|
|
1603
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1604
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1605
|
-
];
|
|
1606
|
-
}).s("MTurkRequesterServiceV20170117", "DeleteHIT", {}).n("MTurkClient", "DeleteHITCommand").f(void 0, void 0).ser(se_DeleteHITCommand).de(de_DeleteHITCommand).build() {
|
|
1607
|
-
static {
|
|
1608
|
-
__name(this, "DeleteHITCommand");
|
|
1609
|
-
}
|
|
1082
|
+
const de_GetHITResponse = (output, context) => {
|
|
1083
|
+
return smithyClient.take(output, {
|
|
1084
|
+
HIT: (_) => de_HIT(_),
|
|
1085
|
+
});
|
|
1610
1086
|
};
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
var DeleteQualificationTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1617
|
-
return [
|
|
1618
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1619
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1620
|
-
];
|
|
1621
|
-
}).s("MTurkRequesterServiceV20170117", "DeleteQualificationType", {}).n("MTurkClient", "DeleteQualificationTypeCommand").f(void 0, void 0).ser(se_DeleteQualificationTypeCommand).de(de_DeleteQualificationTypeCommand).build() {
|
|
1622
|
-
static {
|
|
1623
|
-
__name(this, "DeleteQualificationTypeCommand");
|
|
1624
|
-
}
|
|
1087
|
+
const de_GetQualificationScoreResponse = (output, context) => {
|
|
1088
|
+
return smithyClient.take(output, {
|
|
1089
|
+
Qualification: (_) => de_Qualification(_),
|
|
1090
|
+
});
|
|
1625
1091
|
};
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
var DeleteWorkerBlockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1632
|
-
return [
|
|
1633
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1634
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1635
|
-
];
|
|
1636
|
-
}).s("MTurkRequesterServiceV20170117", "DeleteWorkerBlock", {}).n("MTurkClient", "DeleteWorkerBlockCommand").f(void 0, void 0).ser(se_DeleteWorkerBlockCommand).de(de_DeleteWorkerBlockCommand).build() {
|
|
1637
|
-
static {
|
|
1638
|
-
__name(this, "DeleteWorkerBlockCommand");
|
|
1639
|
-
}
|
|
1092
|
+
const de_GetQualificationTypeResponse = (output, context) => {
|
|
1093
|
+
return smithyClient.take(output, {
|
|
1094
|
+
QualificationType: (_) => de_QualificationType(_),
|
|
1095
|
+
});
|
|
1640
1096
|
};
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1097
|
+
const de_HIT = (output, context) => {
|
|
1098
|
+
return smithyClient.take(output, {
|
|
1099
|
+
AssignmentDurationInSeconds: smithyClient.expectLong,
|
|
1100
|
+
AutoApprovalDelayInSeconds: smithyClient.expectLong,
|
|
1101
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1102
|
+
Description: smithyClient.expectString,
|
|
1103
|
+
Expiration: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1104
|
+
HITGroupId: smithyClient.expectString,
|
|
1105
|
+
HITId: smithyClient.expectString,
|
|
1106
|
+
HITLayoutId: smithyClient.expectString,
|
|
1107
|
+
HITReviewStatus: smithyClient.expectString,
|
|
1108
|
+
HITStatus: smithyClient.expectString,
|
|
1109
|
+
HITTypeId: smithyClient.expectString,
|
|
1110
|
+
Keywords: smithyClient.expectString,
|
|
1111
|
+
MaxAssignments: smithyClient.expectInt32,
|
|
1112
|
+
NumberOfAssignmentsAvailable: smithyClient.expectInt32,
|
|
1113
|
+
NumberOfAssignmentsCompleted: smithyClient.expectInt32,
|
|
1114
|
+
NumberOfAssignmentsPending: smithyClient.expectInt32,
|
|
1115
|
+
QualificationRequirements: smithyClient._json,
|
|
1116
|
+
Question: smithyClient.expectString,
|
|
1117
|
+
RequesterAnnotation: smithyClient.expectString,
|
|
1118
|
+
Reward: smithyClient.expectString,
|
|
1119
|
+
Title: smithyClient.expectString,
|
|
1120
|
+
});
|
|
1655
1121
|
};
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1664
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1665
|
-
];
|
|
1666
|
-
}).s("MTurkRequesterServiceV20170117", "GetAccountBalance", {}).n("MTurkClient", "GetAccountBalanceCommand").f(void 0, void 0).ser(se_GetAccountBalanceCommand).de(de_GetAccountBalanceCommand).build() {
|
|
1667
|
-
static {
|
|
1668
|
-
__name(this, "GetAccountBalanceCommand");
|
|
1669
|
-
}
|
|
1122
|
+
const de_HITList = (output, context) => {
|
|
1123
|
+
const retVal = (output || [])
|
|
1124
|
+
.filter((e) => e != null)
|
|
1125
|
+
.map((entry) => {
|
|
1126
|
+
return de_HIT(entry);
|
|
1127
|
+
});
|
|
1128
|
+
return retVal;
|
|
1670
1129
|
};
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
return [
|
|
1678
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1679
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1680
|
-
];
|
|
1681
|
-
}).s("MTurkRequesterServiceV20170117", "GetAssignment", {}).n("MTurkClient", "GetAssignmentCommand").f(void 0, void 0).ser(se_GetAssignmentCommand).de(de_GetAssignmentCommand).build() {
|
|
1682
|
-
static {
|
|
1683
|
-
__name(this, "GetAssignmentCommand");
|
|
1684
|
-
}
|
|
1130
|
+
const de_ListAssignmentsForHITResponse = (output, context) => {
|
|
1131
|
+
return smithyClient.take(output, {
|
|
1132
|
+
Assignments: (_) => de_AssignmentList(_),
|
|
1133
|
+
NextToken: smithyClient.expectString,
|
|
1134
|
+
NumResults: smithyClient.expectInt32,
|
|
1135
|
+
});
|
|
1685
1136
|
};
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
return [
|
|
1693
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1694
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1695
|
-
];
|
|
1696
|
-
}).s("MTurkRequesterServiceV20170117", "GetFileUploadURL", {}).n("MTurkClient", "GetFileUploadURLCommand").f(void 0, void 0).ser(se_GetFileUploadURLCommand).de(de_GetFileUploadURLCommand).build() {
|
|
1697
|
-
static {
|
|
1698
|
-
__name(this, "GetFileUploadURLCommand");
|
|
1699
|
-
}
|
|
1137
|
+
const de_ListBonusPaymentsResponse = (output, context) => {
|
|
1138
|
+
return smithyClient.take(output, {
|
|
1139
|
+
BonusPayments: (_) => de_BonusPaymentList(_),
|
|
1140
|
+
NextToken: smithyClient.expectString,
|
|
1141
|
+
NumResults: smithyClient.expectInt32,
|
|
1142
|
+
});
|
|
1700
1143
|
};
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
return [
|
|
1708
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1709
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1710
|
-
];
|
|
1711
|
-
}).s("MTurkRequesterServiceV20170117", "GetHIT", {}).n("MTurkClient", "GetHITCommand").f(void 0, void 0).ser(se_GetHITCommand).de(de_GetHITCommand).build() {
|
|
1712
|
-
static {
|
|
1713
|
-
__name(this, "GetHITCommand");
|
|
1714
|
-
}
|
|
1144
|
+
const de_ListHITsForQualificationTypeResponse = (output, context) => {
|
|
1145
|
+
return smithyClient.take(output, {
|
|
1146
|
+
HITs: (_) => de_HITList(_),
|
|
1147
|
+
NextToken: smithyClient.expectString,
|
|
1148
|
+
NumResults: smithyClient.expectInt32,
|
|
1149
|
+
});
|
|
1715
1150
|
};
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
return [
|
|
1723
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1724
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1725
|
-
];
|
|
1726
|
-
}).s("MTurkRequesterServiceV20170117", "GetQualificationScore", {}).n("MTurkClient", "GetQualificationScoreCommand").f(void 0, void 0).ser(se_GetQualificationScoreCommand).de(de_GetQualificationScoreCommand).build() {
|
|
1727
|
-
static {
|
|
1728
|
-
__name(this, "GetQualificationScoreCommand");
|
|
1729
|
-
}
|
|
1151
|
+
const de_ListHITsResponse = (output, context) => {
|
|
1152
|
+
return smithyClient.take(output, {
|
|
1153
|
+
HITs: (_) => de_HITList(_),
|
|
1154
|
+
NextToken: smithyClient.expectString,
|
|
1155
|
+
NumResults: smithyClient.expectInt32,
|
|
1156
|
+
});
|
|
1730
1157
|
};
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
return [
|
|
1738
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1739
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1740
|
-
];
|
|
1741
|
-
}).s("MTurkRequesterServiceV20170117", "GetQualificationType", {}).n("MTurkClient", "GetQualificationTypeCommand").f(void 0, void 0).ser(se_GetQualificationTypeCommand).de(de_GetQualificationTypeCommand).build() {
|
|
1742
|
-
static {
|
|
1743
|
-
__name(this, "GetQualificationTypeCommand");
|
|
1744
|
-
}
|
|
1158
|
+
const de_ListQualificationRequestsResponse = (output, context) => {
|
|
1159
|
+
return smithyClient.take(output, {
|
|
1160
|
+
NextToken: smithyClient.expectString,
|
|
1161
|
+
NumResults: smithyClient.expectInt32,
|
|
1162
|
+
QualificationRequests: (_) => de_QualificationRequestList(_),
|
|
1163
|
+
});
|
|
1745
1164
|
};
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
return [
|
|
1753
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1754
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1755
|
-
];
|
|
1756
|
-
}).s("MTurkRequesterServiceV20170117", "ListAssignmentsForHIT", {}).n("MTurkClient", "ListAssignmentsForHITCommand").f(void 0, void 0).ser(se_ListAssignmentsForHITCommand).de(de_ListAssignmentsForHITCommand).build() {
|
|
1757
|
-
static {
|
|
1758
|
-
__name(this, "ListAssignmentsForHITCommand");
|
|
1759
|
-
}
|
|
1165
|
+
const de_ListQualificationTypesResponse = (output, context) => {
|
|
1166
|
+
return smithyClient.take(output, {
|
|
1167
|
+
NextToken: smithyClient.expectString,
|
|
1168
|
+
NumResults: smithyClient.expectInt32,
|
|
1169
|
+
QualificationTypes: (_) => de_QualificationTypeList(_),
|
|
1170
|
+
});
|
|
1760
1171
|
};
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
return [
|
|
1768
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1769
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1770
|
-
];
|
|
1771
|
-
}).s("MTurkRequesterServiceV20170117", "ListBonusPayments", {}).n("MTurkClient", "ListBonusPaymentsCommand").f(void 0, void 0).ser(se_ListBonusPaymentsCommand).de(de_ListBonusPaymentsCommand).build() {
|
|
1772
|
-
static {
|
|
1773
|
-
__name(this, "ListBonusPaymentsCommand");
|
|
1774
|
-
}
|
|
1172
|
+
const de_ListReviewableHITsResponse = (output, context) => {
|
|
1173
|
+
return smithyClient.take(output, {
|
|
1174
|
+
HITs: (_) => de_HITList(_),
|
|
1175
|
+
NextToken: smithyClient.expectString,
|
|
1176
|
+
NumResults: smithyClient.expectInt32,
|
|
1177
|
+
});
|
|
1775
1178
|
};
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
];
|
|
1786
|
-
}).s("MTurkRequesterServiceV20170117", "ListHITs", {}).n("MTurkClient", "ListHITsCommand").f(void 0, void 0).ser(se_ListHITsCommand).de(de_ListHITsCommand).build() {
|
|
1787
|
-
static {
|
|
1788
|
-
__name(this, "ListHITsCommand");
|
|
1789
|
-
}
|
|
1179
|
+
const de_ListReviewPolicyResultsForHITResponse = (output, context) => {
|
|
1180
|
+
return smithyClient.take(output, {
|
|
1181
|
+
AssignmentReviewPolicy: smithyClient._json,
|
|
1182
|
+
AssignmentReviewReport: (_) => de_ReviewReport(_),
|
|
1183
|
+
HITId: smithyClient.expectString,
|
|
1184
|
+
HITReviewPolicy: smithyClient._json,
|
|
1185
|
+
HITReviewReport: (_) => de_ReviewReport(_),
|
|
1186
|
+
NextToken: smithyClient.expectString,
|
|
1187
|
+
});
|
|
1790
1188
|
};
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
return [
|
|
1798
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1799
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1800
|
-
];
|
|
1801
|
-
}).s("MTurkRequesterServiceV20170117", "ListHITsForQualificationType", {}).n("MTurkClient", "ListHITsForQualificationTypeCommand").f(void 0, void 0).ser(se_ListHITsForQualificationTypeCommand).de(de_ListHITsForQualificationTypeCommand).build() {
|
|
1802
|
-
static {
|
|
1803
|
-
__name(this, "ListHITsForQualificationTypeCommand");
|
|
1804
|
-
}
|
|
1189
|
+
const de_ListWorkersWithQualificationTypeResponse = (output, context) => {
|
|
1190
|
+
return smithyClient.take(output, {
|
|
1191
|
+
NextToken: smithyClient.expectString,
|
|
1192
|
+
NumResults: smithyClient.expectInt32,
|
|
1193
|
+
Qualifications: (_) => de_QualificationList(_),
|
|
1194
|
+
});
|
|
1805
1195
|
};
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
];
|
|
1816
|
-
}).s("MTurkRequesterServiceV20170117", "ListQualificationRequests", {}).n("MTurkClient", "ListQualificationRequestsCommand").f(void 0, void 0).ser(se_ListQualificationRequestsCommand).de(de_ListQualificationRequestsCommand).build() {
|
|
1817
|
-
static {
|
|
1818
|
-
__name(this, "ListQualificationRequestsCommand");
|
|
1819
|
-
}
|
|
1196
|
+
const de_Qualification = (output, context) => {
|
|
1197
|
+
return smithyClient.take(output, {
|
|
1198
|
+
GrantTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1199
|
+
IntegerValue: smithyClient.expectInt32,
|
|
1200
|
+
LocaleValue: smithyClient._json,
|
|
1201
|
+
QualificationTypeId: smithyClient.expectString,
|
|
1202
|
+
Status: smithyClient.expectString,
|
|
1203
|
+
WorkerId: smithyClient.expectString,
|
|
1204
|
+
});
|
|
1820
1205
|
};
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1829
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1830
|
-
];
|
|
1831
|
-
}).s("MTurkRequesterServiceV20170117", "ListQualificationTypes", {}).n("MTurkClient", "ListQualificationTypesCommand").f(void 0, void 0).ser(se_ListQualificationTypesCommand).de(de_ListQualificationTypesCommand).build() {
|
|
1832
|
-
static {
|
|
1833
|
-
__name(this, "ListQualificationTypesCommand");
|
|
1834
|
-
}
|
|
1206
|
+
const de_QualificationList = (output, context) => {
|
|
1207
|
+
const retVal = (output || [])
|
|
1208
|
+
.filter((e) => e != null)
|
|
1209
|
+
.map((entry) => {
|
|
1210
|
+
return de_Qualification(entry);
|
|
1211
|
+
});
|
|
1212
|
+
return retVal;
|
|
1835
1213
|
};
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
];
|
|
1846
|
-
}).s("MTurkRequesterServiceV20170117", "ListReviewableHITs", {}).n("MTurkClient", "ListReviewableHITsCommand").f(void 0, void 0).ser(se_ListReviewableHITsCommand).de(de_ListReviewableHITsCommand).build() {
|
|
1847
|
-
static {
|
|
1848
|
-
__name(this, "ListReviewableHITsCommand");
|
|
1849
|
-
}
|
|
1214
|
+
const de_QualificationRequest = (output, context) => {
|
|
1215
|
+
return smithyClient.take(output, {
|
|
1216
|
+
Answer: smithyClient.expectString,
|
|
1217
|
+
QualificationRequestId: smithyClient.expectString,
|
|
1218
|
+
QualificationTypeId: smithyClient.expectString,
|
|
1219
|
+
SubmitTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1220
|
+
Test: smithyClient.expectString,
|
|
1221
|
+
WorkerId: smithyClient.expectString,
|
|
1222
|
+
});
|
|
1850
1223
|
};
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1859
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1860
|
-
];
|
|
1861
|
-
}).s("MTurkRequesterServiceV20170117", "ListReviewPolicyResultsForHIT", {}).n("MTurkClient", "ListReviewPolicyResultsForHITCommand").f(void 0, void 0).ser(se_ListReviewPolicyResultsForHITCommand).de(de_ListReviewPolicyResultsForHITCommand).build() {
|
|
1862
|
-
static {
|
|
1863
|
-
__name(this, "ListReviewPolicyResultsForHITCommand");
|
|
1864
|
-
}
|
|
1224
|
+
const de_QualificationRequestList = (output, context) => {
|
|
1225
|
+
const retVal = (output || [])
|
|
1226
|
+
.filter((e) => e != null)
|
|
1227
|
+
.map((entry) => {
|
|
1228
|
+
return de_QualificationRequest(entry);
|
|
1229
|
+
});
|
|
1230
|
+
return retVal;
|
|
1865
1231
|
};
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1232
|
+
const de_QualificationType = (output, context) => {
|
|
1233
|
+
return smithyClient.take(output, {
|
|
1234
|
+
AnswerKey: smithyClient.expectString,
|
|
1235
|
+
AutoGranted: smithyClient.expectBoolean,
|
|
1236
|
+
AutoGrantedValue: smithyClient.expectInt32,
|
|
1237
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1238
|
+
Description: smithyClient.expectString,
|
|
1239
|
+
IsRequestable: smithyClient.expectBoolean,
|
|
1240
|
+
Keywords: smithyClient.expectString,
|
|
1241
|
+
Name: smithyClient.expectString,
|
|
1242
|
+
QualificationTypeId: smithyClient.expectString,
|
|
1243
|
+
QualificationTypeStatus: smithyClient.expectString,
|
|
1244
|
+
RetryDelayInSeconds: smithyClient.expectLong,
|
|
1245
|
+
Test: smithyClient.expectString,
|
|
1246
|
+
TestDurationInSeconds: smithyClient.expectLong,
|
|
1247
|
+
});
|
|
1880
1248
|
};
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1889
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1890
|
-
];
|
|
1891
|
-
}).s("MTurkRequesterServiceV20170117", "ListWorkersWithQualificationType", {}).n("MTurkClient", "ListWorkersWithQualificationTypeCommand").f(void 0, void 0).ser(se_ListWorkersWithQualificationTypeCommand).de(de_ListWorkersWithQualificationTypeCommand).build() {
|
|
1892
|
-
static {
|
|
1893
|
-
__name(this, "ListWorkersWithQualificationTypeCommand");
|
|
1894
|
-
}
|
|
1249
|
+
const de_QualificationTypeList = (output, context) => {
|
|
1250
|
+
const retVal = (output || [])
|
|
1251
|
+
.filter((e) => e != null)
|
|
1252
|
+
.map((entry) => {
|
|
1253
|
+
return de_QualificationType(entry);
|
|
1254
|
+
});
|
|
1255
|
+
return retVal;
|
|
1895
1256
|
};
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
})
|
|
1907
|
-
static {
|
|
1908
|
-
__name(this, "NotifyWorkersCommand");
|
|
1909
|
-
}
|
|
1257
|
+
const de_ReviewActionDetail = (output, context) => {
|
|
1258
|
+
return smithyClient.take(output, {
|
|
1259
|
+
ActionId: smithyClient.expectString,
|
|
1260
|
+
ActionName: smithyClient.expectString,
|
|
1261
|
+
CompleteTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1262
|
+
ErrorCode: smithyClient.expectString,
|
|
1263
|
+
Result: smithyClient.expectString,
|
|
1264
|
+
Status: smithyClient.expectString,
|
|
1265
|
+
TargetId: smithyClient.expectString,
|
|
1266
|
+
TargetType: smithyClient.expectString,
|
|
1267
|
+
});
|
|
1910
1268
|
};
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1919
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1920
|
-
];
|
|
1921
|
-
}).s("MTurkRequesterServiceV20170117", "RejectAssignment", {}).n("MTurkClient", "RejectAssignmentCommand").f(void 0, void 0).ser(se_RejectAssignmentCommand).de(de_RejectAssignmentCommand).build() {
|
|
1922
|
-
static {
|
|
1923
|
-
__name(this, "RejectAssignmentCommand");
|
|
1924
|
-
}
|
|
1269
|
+
const de_ReviewActionDetailList = (output, context) => {
|
|
1270
|
+
const retVal = (output || [])
|
|
1271
|
+
.filter((e) => e != null)
|
|
1272
|
+
.map((entry) => {
|
|
1273
|
+
return de_ReviewActionDetail(entry);
|
|
1274
|
+
});
|
|
1275
|
+
return retVal;
|
|
1925
1276
|
};
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
var RejectQualificationRequestCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1932
|
-
return [
|
|
1933
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1934
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1935
|
-
];
|
|
1936
|
-
}).s("MTurkRequesterServiceV20170117", "RejectQualificationRequest", {}).n("MTurkClient", "RejectQualificationRequestCommand").f(void 0, void 0).ser(se_RejectQualificationRequestCommand).de(de_RejectQualificationRequestCommand).build() {
|
|
1937
|
-
static {
|
|
1938
|
-
__name(this, "RejectQualificationRequestCommand");
|
|
1939
|
-
}
|
|
1277
|
+
const de_ReviewReport = (output, context) => {
|
|
1278
|
+
return smithyClient.take(output, {
|
|
1279
|
+
ReviewActions: (_) => de_ReviewActionDetailList(_),
|
|
1280
|
+
ReviewResults: smithyClient._json,
|
|
1281
|
+
});
|
|
1940
1282
|
};
|
|
1283
|
+
const de_UpdateQualificationTypeResponse = (output, context) => {
|
|
1284
|
+
return smithyClient.take(output, {
|
|
1285
|
+
QualificationType: (_) => de_QualificationType(_),
|
|
1286
|
+
});
|
|
1287
|
+
};
|
|
1288
|
+
const deserializeMetadata = (output) => ({
|
|
1289
|
+
httpStatusCode: output.statusCode,
|
|
1290
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1291
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1292
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1293
|
+
});
|
|
1294
|
+
const throwDefaultError = smithyClient.withBaseException(MTurkServiceException);
|
|
1295
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1296
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1297
|
+
const contents = {
|
|
1298
|
+
protocol,
|
|
1299
|
+
hostname,
|
|
1300
|
+
port,
|
|
1301
|
+
method: "POST",
|
|
1302
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1303
|
+
headers,
|
|
1304
|
+
};
|
|
1305
|
+
if (body !== undefined) {
|
|
1306
|
+
contents.body = body;
|
|
1307
|
+
}
|
|
1308
|
+
return new protocolHttp.HttpRequest(contents);
|
|
1309
|
+
};
|
|
1310
|
+
function sharedHeaders(operation) {
|
|
1311
|
+
return {
|
|
1312
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1313
|
+
"x-amz-target": `MTurkRequesterServiceV20170117.${operation}`,
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1941
1316
|
|
|
1942
|
-
|
|
1317
|
+
class AcceptQualificationRequestCommand extends smithyClient.Command
|
|
1318
|
+
.classBuilder()
|
|
1319
|
+
.ep(commonParams)
|
|
1320
|
+
.m(function (Command, cs, config, o) {
|
|
1321
|
+
return [
|
|
1322
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1323
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1324
|
+
];
|
|
1325
|
+
})
|
|
1326
|
+
.s("MTurkRequesterServiceV20170117", "AcceptQualificationRequest", {})
|
|
1327
|
+
.n("MTurkClient", "AcceptQualificationRequestCommand")
|
|
1328
|
+
.f(void 0, void 0)
|
|
1329
|
+
.ser(se_AcceptQualificationRequestCommand)
|
|
1330
|
+
.de(de_AcceptQualificationRequestCommand)
|
|
1331
|
+
.build() {
|
|
1332
|
+
}
|
|
1943
1333
|
|
|
1334
|
+
class ApproveAssignmentCommand extends smithyClient.Command
|
|
1335
|
+
.classBuilder()
|
|
1336
|
+
.ep(commonParams)
|
|
1337
|
+
.m(function (Command, cs, config, o) {
|
|
1338
|
+
return [
|
|
1339
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1340
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1341
|
+
];
|
|
1342
|
+
})
|
|
1343
|
+
.s("MTurkRequesterServiceV20170117", "ApproveAssignment", {})
|
|
1344
|
+
.n("MTurkClient", "ApproveAssignmentCommand")
|
|
1345
|
+
.f(void 0, void 0)
|
|
1346
|
+
.ser(se_ApproveAssignmentCommand)
|
|
1347
|
+
.de(de_ApproveAssignmentCommand)
|
|
1348
|
+
.build() {
|
|
1349
|
+
}
|
|
1944
1350
|
|
|
1351
|
+
class AssociateQualificationWithWorkerCommand extends smithyClient.Command
|
|
1352
|
+
.classBuilder()
|
|
1353
|
+
.ep(commonParams)
|
|
1354
|
+
.m(function (Command, cs, config, o) {
|
|
1355
|
+
return [
|
|
1356
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1357
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1358
|
+
];
|
|
1359
|
+
})
|
|
1360
|
+
.s("MTurkRequesterServiceV20170117", "AssociateQualificationWithWorker", {})
|
|
1361
|
+
.n("MTurkClient", "AssociateQualificationWithWorkerCommand")
|
|
1362
|
+
.f(void 0, void 0)
|
|
1363
|
+
.ser(se_AssociateQualificationWithWorkerCommand)
|
|
1364
|
+
.de(de_AssociateQualificationWithWorkerCommand)
|
|
1365
|
+
.build() {
|
|
1366
|
+
}
|
|
1945
1367
|
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
(
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
}
|
|
1368
|
+
class CreateAdditionalAssignmentsForHITCommand extends smithyClient.Command
|
|
1369
|
+
.classBuilder()
|
|
1370
|
+
.ep(commonParams)
|
|
1371
|
+
.m(function (Command, cs, config, o) {
|
|
1372
|
+
return [
|
|
1373
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1374
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1375
|
+
];
|
|
1376
|
+
})
|
|
1377
|
+
.s("MTurkRequesterServiceV20170117", "CreateAdditionalAssignmentsForHIT", {})
|
|
1378
|
+
.n("MTurkClient", "CreateAdditionalAssignmentsForHITCommand")
|
|
1379
|
+
.f(void 0, void 0)
|
|
1380
|
+
.ser(se_CreateAdditionalAssignmentsForHITCommand)
|
|
1381
|
+
.de(de_CreateAdditionalAssignmentsForHITCommand)
|
|
1382
|
+
.build() {
|
|
1383
|
+
}
|
|
1956
1384
|
|
|
1957
|
-
|
|
1385
|
+
class CreateHITCommand extends smithyClient.Command
|
|
1386
|
+
.classBuilder()
|
|
1387
|
+
.ep(commonParams)
|
|
1388
|
+
.m(function (Command, cs, config, o) {
|
|
1389
|
+
return [
|
|
1390
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1391
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1392
|
+
];
|
|
1393
|
+
})
|
|
1394
|
+
.s("MTurkRequesterServiceV20170117", "CreateHIT", {})
|
|
1395
|
+
.n("MTurkClient", "CreateHITCommand")
|
|
1396
|
+
.f(void 0, void 0)
|
|
1397
|
+
.ser(se_CreateHITCommand)
|
|
1398
|
+
.de(de_CreateHITCommand)
|
|
1399
|
+
.build() {
|
|
1400
|
+
}
|
|
1958
1401
|
|
|
1402
|
+
class CreateHITTypeCommand extends smithyClient.Command
|
|
1403
|
+
.classBuilder()
|
|
1404
|
+
.ep(commonParams)
|
|
1405
|
+
.m(function (Command, cs, config, o) {
|
|
1406
|
+
return [
|
|
1407
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1408
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1409
|
+
];
|
|
1410
|
+
})
|
|
1411
|
+
.s("MTurkRequesterServiceV20170117", "CreateHITType", {})
|
|
1412
|
+
.n("MTurkClient", "CreateHITTypeCommand")
|
|
1413
|
+
.f(void 0, void 0)
|
|
1414
|
+
.ser(se_CreateHITTypeCommand)
|
|
1415
|
+
.de(de_CreateHITTypeCommand)
|
|
1416
|
+
.build() {
|
|
1417
|
+
}
|
|
1959
1418
|
|
|
1419
|
+
class CreateHITWithHITTypeCommand extends smithyClient.Command
|
|
1420
|
+
.classBuilder()
|
|
1421
|
+
.ep(commonParams)
|
|
1422
|
+
.m(function (Command, cs, config, o) {
|
|
1423
|
+
return [
|
|
1424
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1425
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1426
|
+
];
|
|
1427
|
+
})
|
|
1428
|
+
.s("MTurkRequesterServiceV20170117", "CreateHITWithHITType", {})
|
|
1429
|
+
.n("MTurkClient", "CreateHITWithHITTypeCommand")
|
|
1430
|
+
.f(void 0, void 0)
|
|
1431
|
+
.ser(se_CreateHITWithHITTypeCommand)
|
|
1432
|
+
.de(de_CreateHITWithHITTypeCommand)
|
|
1433
|
+
.build() {
|
|
1434
|
+
}
|
|
1960
1435
|
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
(
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
}
|
|
1436
|
+
class CreateQualificationTypeCommand extends smithyClient.Command
|
|
1437
|
+
.classBuilder()
|
|
1438
|
+
.ep(commonParams)
|
|
1439
|
+
.m(function (Command, cs, config, o) {
|
|
1440
|
+
return [
|
|
1441
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1442
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1443
|
+
];
|
|
1444
|
+
})
|
|
1445
|
+
.s("MTurkRequesterServiceV20170117", "CreateQualificationType", {})
|
|
1446
|
+
.n("MTurkClient", "CreateQualificationTypeCommand")
|
|
1447
|
+
.f(void 0, void 0)
|
|
1448
|
+
.ser(se_CreateQualificationTypeCommand)
|
|
1449
|
+
.de(de_CreateQualificationTypeCommand)
|
|
1450
|
+
.build() {
|
|
1451
|
+
}
|
|
1971
1452
|
|
|
1972
|
-
|
|
1453
|
+
class CreateWorkerBlockCommand extends smithyClient.Command
|
|
1454
|
+
.classBuilder()
|
|
1455
|
+
.ep(commonParams)
|
|
1456
|
+
.m(function (Command, cs, config, o) {
|
|
1457
|
+
return [
|
|
1458
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1459
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1460
|
+
];
|
|
1461
|
+
})
|
|
1462
|
+
.s("MTurkRequesterServiceV20170117", "CreateWorkerBlock", {})
|
|
1463
|
+
.n("MTurkClient", "CreateWorkerBlockCommand")
|
|
1464
|
+
.f(void 0, void 0)
|
|
1465
|
+
.ser(se_CreateWorkerBlockCommand)
|
|
1466
|
+
.de(de_CreateWorkerBlockCommand)
|
|
1467
|
+
.build() {
|
|
1468
|
+
}
|
|
1973
1469
|
|
|
1470
|
+
class DeleteHITCommand extends smithyClient.Command
|
|
1471
|
+
.classBuilder()
|
|
1472
|
+
.ep(commonParams)
|
|
1473
|
+
.m(function (Command, cs, config, o) {
|
|
1474
|
+
return [
|
|
1475
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1476
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1477
|
+
];
|
|
1478
|
+
})
|
|
1479
|
+
.s("MTurkRequesterServiceV20170117", "DeleteHIT", {})
|
|
1480
|
+
.n("MTurkClient", "DeleteHITCommand")
|
|
1481
|
+
.f(void 0, void 0)
|
|
1482
|
+
.ser(se_DeleteHITCommand)
|
|
1483
|
+
.de(de_DeleteHITCommand)
|
|
1484
|
+
.build() {
|
|
1485
|
+
}
|
|
1974
1486
|
|
|
1487
|
+
class DeleteQualificationTypeCommand extends smithyClient.Command
|
|
1488
|
+
.classBuilder()
|
|
1489
|
+
.ep(commonParams)
|
|
1490
|
+
.m(function (Command, cs, config, o) {
|
|
1491
|
+
return [
|
|
1492
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1493
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1494
|
+
];
|
|
1495
|
+
})
|
|
1496
|
+
.s("MTurkRequesterServiceV20170117", "DeleteQualificationType", {})
|
|
1497
|
+
.n("MTurkClient", "DeleteQualificationTypeCommand")
|
|
1498
|
+
.f(void 0, void 0)
|
|
1499
|
+
.ser(se_DeleteQualificationTypeCommand)
|
|
1500
|
+
.de(de_DeleteQualificationTypeCommand)
|
|
1501
|
+
.build() {
|
|
1502
|
+
}
|
|
1975
1503
|
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
(
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
}
|
|
1504
|
+
class DeleteWorkerBlockCommand extends smithyClient.Command
|
|
1505
|
+
.classBuilder()
|
|
1506
|
+
.ep(commonParams)
|
|
1507
|
+
.m(function (Command, cs, config, o) {
|
|
1508
|
+
return [
|
|
1509
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1510
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1511
|
+
];
|
|
1512
|
+
})
|
|
1513
|
+
.s("MTurkRequesterServiceV20170117", "DeleteWorkerBlock", {})
|
|
1514
|
+
.n("MTurkClient", "DeleteWorkerBlockCommand")
|
|
1515
|
+
.f(void 0, void 0)
|
|
1516
|
+
.ser(se_DeleteWorkerBlockCommand)
|
|
1517
|
+
.de(de_DeleteWorkerBlockCommand)
|
|
1518
|
+
.build() {
|
|
1519
|
+
}
|
|
1986
1520
|
|
|
1987
|
-
|
|
1521
|
+
class DisassociateQualificationFromWorkerCommand extends smithyClient.Command
|
|
1522
|
+
.classBuilder()
|
|
1523
|
+
.ep(commonParams)
|
|
1524
|
+
.m(function (Command, cs, config, o) {
|
|
1525
|
+
return [
|
|
1526
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1527
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1528
|
+
];
|
|
1529
|
+
})
|
|
1530
|
+
.s("MTurkRequesterServiceV20170117", "DisassociateQualificationFromWorker", {})
|
|
1531
|
+
.n("MTurkClient", "DisassociateQualificationFromWorkerCommand")
|
|
1532
|
+
.f(void 0, void 0)
|
|
1533
|
+
.ser(se_DisassociateQualificationFromWorkerCommand)
|
|
1534
|
+
.de(de_DisassociateQualificationFromWorkerCommand)
|
|
1535
|
+
.build() {
|
|
1536
|
+
}
|
|
1988
1537
|
|
|
1538
|
+
class GetAccountBalanceCommand extends smithyClient.Command
|
|
1539
|
+
.classBuilder()
|
|
1540
|
+
.ep(commonParams)
|
|
1541
|
+
.m(function (Command, cs, config, o) {
|
|
1542
|
+
return [
|
|
1543
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1544
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1545
|
+
];
|
|
1546
|
+
})
|
|
1547
|
+
.s("MTurkRequesterServiceV20170117", "GetAccountBalance", {})
|
|
1548
|
+
.n("MTurkClient", "GetAccountBalanceCommand")
|
|
1549
|
+
.f(void 0, void 0)
|
|
1550
|
+
.ser(se_GetAccountBalanceCommand)
|
|
1551
|
+
.de(de_GetAccountBalanceCommand)
|
|
1552
|
+
.build() {
|
|
1553
|
+
}
|
|
1989
1554
|
|
|
1555
|
+
class GetAssignmentCommand extends smithyClient.Command
|
|
1556
|
+
.classBuilder()
|
|
1557
|
+
.ep(commonParams)
|
|
1558
|
+
.m(function (Command, cs, config, o) {
|
|
1559
|
+
return [
|
|
1560
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1561
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1562
|
+
];
|
|
1563
|
+
})
|
|
1564
|
+
.s("MTurkRequesterServiceV20170117", "GetAssignment", {})
|
|
1565
|
+
.n("MTurkClient", "GetAssignmentCommand")
|
|
1566
|
+
.f(void 0, void 0)
|
|
1567
|
+
.ser(se_GetAssignmentCommand)
|
|
1568
|
+
.de(de_GetAssignmentCommand)
|
|
1569
|
+
.build() {
|
|
1570
|
+
}
|
|
1990
1571
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
(
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
}
|
|
1572
|
+
class GetFileUploadURLCommand extends smithyClient.Command
|
|
1573
|
+
.classBuilder()
|
|
1574
|
+
.ep(commonParams)
|
|
1575
|
+
.m(function (Command, cs, config, o) {
|
|
1576
|
+
return [
|
|
1577
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1578
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1579
|
+
];
|
|
1580
|
+
})
|
|
1581
|
+
.s("MTurkRequesterServiceV20170117", "GetFileUploadURL", {})
|
|
1582
|
+
.n("MTurkClient", "GetFileUploadURLCommand")
|
|
1583
|
+
.f(void 0, void 0)
|
|
1584
|
+
.ser(se_GetFileUploadURLCommand)
|
|
1585
|
+
.de(de_GetFileUploadURLCommand)
|
|
1586
|
+
.build() {
|
|
1587
|
+
}
|
|
2001
1588
|
|
|
2002
|
-
|
|
1589
|
+
class GetHITCommand extends smithyClient.Command
|
|
1590
|
+
.classBuilder()
|
|
1591
|
+
.ep(commonParams)
|
|
1592
|
+
.m(function (Command, cs, config, o) {
|
|
1593
|
+
return [
|
|
1594
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1595
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1596
|
+
];
|
|
1597
|
+
})
|
|
1598
|
+
.s("MTurkRequesterServiceV20170117", "GetHIT", {})
|
|
1599
|
+
.n("MTurkClient", "GetHITCommand")
|
|
1600
|
+
.f(void 0, void 0)
|
|
1601
|
+
.ser(se_GetHITCommand)
|
|
1602
|
+
.de(de_GetHITCommand)
|
|
1603
|
+
.build() {
|
|
1604
|
+
}
|
|
2003
1605
|
|
|
1606
|
+
class GetQualificationScoreCommand extends smithyClient.Command
|
|
1607
|
+
.classBuilder()
|
|
1608
|
+
.ep(commonParams)
|
|
1609
|
+
.m(function (Command, cs, config, o) {
|
|
1610
|
+
return [
|
|
1611
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1612
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1613
|
+
];
|
|
1614
|
+
})
|
|
1615
|
+
.s("MTurkRequesterServiceV20170117", "GetQualificationScore", {})
|
|
1616
|
+
.n("MTurkClient", "GetQualificationScoreCommand")
|
|
1617
|
+
.f(void 0, void 0)
|
|
1618
|
+
.ser(se_GetQualificationScoreCommand)
|
|
1619
|
+
.de(de_GetQualificationScoreCommand)
|
|
1620
|
+
.build() {
|
|
1621
|
+
}
|
|
2004
1622
|
|
|
1623
|
+
class GetQualificationTypeCommand extends smithyClient.Command
|
|
1624
|
+
.classBuilder()
|
|
1625
|
+
.ep(commonParams)
|
|
1626
|
+
.m(function (Command, cs, config, o) {
|
|
1627
|
+
return [
|
|
1628
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1629
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1630
|
+
];
|
|
1631
|
+
})
|
|
1632
|
+
.s("MTurkRequesterServiceV20170117", "GetQualificationType", {})
|
|
1633
|
+
.n("MTurkClient", "GetQualificationTypeCommand")
|
|
1634
|
+
.f(void 0, void 0)
|
|
1635
|
+
.ser(se_GetQualificationTypeCommand)
|
|
1636
|
+
.de(de_GetQualificationTypeCommand)
|
|
1637
|
+
.build() {
|
|
1638
|
+
}
|
|
2005
1639
|
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
(
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
}
|
|
1640
|
+
class ListAssignmentsForHITCommand extends smithyClient.Command
|
|
1641
|
+
.classBuilder()
|
|
1642
|
+
.ep(commonParams)
|
|
1643
|
+
.m(function (Command, cs, config, o) {
|
|
1644
|
+
return [
|
|
1645
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1646
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1647
|
+
];
|
|
1648
|
+
})
|
|
1649
|
+
.s("MTurkRequesterServiceV20170117", "ListAssignmentsForHIT", {})
|
|
1650
|
+
.n("MTurkClient", "ListAssignmentsForHITCommand")
|
|
1651
|
+
.f(void 0, void 0)
|
|
1652
|
+
.ser(se_ListAssignmentsForHITCommand)
|
|
1653
|
+
.de(de_ListAssignmentsForHITCommand)
|
|
1654
|
+
.build() {
|
|
1655
|
+
}
|
|
2016
1656
|
|
|
2017
|
-
|
|
1657
|
+
class ListBonusPaymentsCommand extends smithyClient.Command
|
|
1658
|
+
.classBuilder()
|
|
1659
|
+
.ep(commonParams)
|
|
1660
|
+
.m(function (Command, cs, config, o) {
|
|
1661
|
+
return [
|
|
1662
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1663
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1664
|
+
];
|
|
1665
|
+
})
|
|
1666
|
+
.s("MTurkRequesterServiceV20170117", "ListBonusPayments", {})
|
|
1667
|
+
.n("MTurkClient", "ListBonusPaymentsCommand")
|
|
1668
|
+
.f(void 0, void 0)
|
|
1669
|
+
.ser(se_ListBonusPaymentsCommand)
|
|
1670
|
+
.de(de_ListBonusPaymentsCommand)
|
|
1671
|
+
.build() {
|
|
1672
|
+
}
|
|
2018
1673
|
|
|
1674
|
+
class ListHITsCommand extends smithyClient.Command
|
|
1675
|
+
.classBuilder()
|
|
1676
|
+
.ep(commonParams)
|
|
1677
|
+
.m(function (Command, cs, config, o) {
|
|
1678
|
+
return [
|
|
1679
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1680
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1681
|
+
];
|
|
1682
|
+
})
|
|
1683
|
+
.s("MTurkRequesterServiceV20170117", "ListHITs", {})
|
|
1684
|
+
.n("MTurkClient", "ListHITsCommand")
|
|
1685
|
+
.f(void 0, void 0)
|
|
1686
|
+
.ser(se_ListHITsCommand)
|
|
1687
|
+
.de(de_ListHITsCommand)
|
|
1688
|
+
.build() {
|
|
1689
|
+
}
|
|
2019
1690
|
|
|
1691
|
+
class ListHITsForQualificationTypeCommand extends smithyClient.Command
|
|
1692
|
+
.classBuilder()
|
|
1693
|
+
.ep(commonParams)
|
|
1694
|
+
.m(function (Command, cs, config, o) {
|
|
1695
|
+
return [
|
|
1696
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1697
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1698
|
+
];
|
|
1699
|
+
})
|
|
1700
|
+
.s("MTurkRequesterServiceV20170117", "ListHITsForQualificationType", {})
|
|
1701
|
+
.n("MTurkClient", "ListHITsForQualificationTypeCommand")
|
|
1702
|
+
.f(void 0, void 0)
|
|
1703
|
+
.ser(se_ListHITsForQualificationTypeCommand)
|
|
1704
|
+
.de(de_ListHITsForQualificationTypeCommand)
|
|
1705
|
+
.build() {
|
|
1706
|
+
}
|
|
2020
1707
|
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
(
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
}
|
|
1708
|
+
class ListQualificationRequestsCommand extends smithyClient.Command
|
|
1709
|
+
.classBuilder()
|
|
1710
|
+
.ep(commonParams)
|
|
1711
|
+
.m(function (Command, cs, config, o) {
|
|
1712
|
+
return [
|
|
1713
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1714
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1715
|
+
];
|
|
1716
|
+
})
|
|
1717
|
+
.s("MTurkRequesterServiceV20170117", "ListQualificationRequests", {})
|
|
1718
|
+
.n("MTurkClient", "ListQualificationRequestsCommand")
|
|
1719
|
+
.f(void 0, void 0)
|
|
1720
|
+
.ser(se_ListQualificationRequestsCommand)
|
|
1721
|
+
.de(de_ListQualificationRequestsCommand)
|
|
1722
|
+
.build() {
|
|
1723
|
+
}
|
|
2031
1724
|
|
|
2032
|
-
|
|
1725
|
+
class ListQualificationTypesCommand extends smithyClient.Command
|
|
1726
|
+
.classBuilder()
|
|
1727
|
+
.ep(commonParams)
|
|
1728
|
+
.m(function (Command, cs, config, o) {
|
|
1729
|
+
return [
|
|
1730
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1731
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1732
|
+
];
|
|
1733
|
+
})
|
|
1734
|
+
.s("MTurkRequesterServiceV20170117", "ListQualificationTypes", {})
|
|
1735
|
+
.n("MTurkClient", "ListQualificationTypesCommand")
|
|
1736
|
+
.f(void 0, void 0)
|
|
1737
|
+
.ser(se_ListQualificationTypesCommand)
|
|
1738
|
+
.de(de_ListQualificationTypesCommand)
|
|
1739
|
+
.build() {
|
|
1740
|
+
}
|
|
2033
1741
|
|
|
1742
|
+
class ListReviewableHITsCommand extends smithyClient.Command
|
|
1743
|
+
.classBuilder()
|
|
1744
|
+
.ep(commonParams)
|
|
1745
|
+
.m(function (Command, cs, config, o) {
|
|
1746
|
+
return [
|
|
1747
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1748
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1749
|
+
];
|
|
1750
|
+
})
|
|
1751
|
+
.s("MTurkRequesterServiceV20170117", "ListReviewableHITs", {})
|
|
1752
|
+
.n("MTurkClient", "ListReviewableHITsCommand")
|
|
1753
|
+
.f(void 0, void 0)
|
|
1754
|
+
.ser(se_ListReviewableHITsCommand)
|
|
1755
|
+
.de(de_ListReviewableHITsCommand)
|
|
1756
|
+
.build() {
|
|
1757
|
+
}
|
|
2034
1758
|
|
|
1759
|
+
class ListReviewPolicyResultsForHITCommand extends smithyClient.Command
|
|
1760
|
+
.classBuilder()
|
|
1761
|
+
.ep(commonParams)
|
|
1762
|
+
.m(function (Command, cs, config, o) {
|
|
1763
|
+
return [
|
|
1764
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1765
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1766
|
+
];
|
|
1767
|
+
})
|
|
1768
|
+
.s("MTurkRequesterServiceV20170117", "ListReviewPolicyResultsForHIT", {})
|
|
1769
|
+
.n("MTurkClient", "ListReviewPolicyResultsForHITCommand")
|
|
1770
|
+
.f(void 0, void 0)
|
|
1771
|
+
.ser(se_ListReviewPolicyResultsForHITCommand)
|
|
1772
|
+
.de(de_ListReviewPolicyResultsForHITCommand)
|
|
1773
|
+
.build() {
|
|
1774
|
+
}
|
|
2035
1775
|
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
(
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
}
|
|
1776
|
+
class ListWorkerBlocksCommand extends smithyClient.Command
|
|
1777
|
+
.classBuilder()
|
|
1778
|
+
.ep(commonParams)
|
|
1779
|
+
.m(function (Command, cs, config, o) {
|
|
1780
|
+
return [
|
|
1781
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1782
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1783
|
+
];
|
|
1784
|
+
})
|
|
1785
|
+
.s("MTurkRequesterServiceV20170117", "ListWorkerBlocks", {})
|
|
1786
|
+
.n("MTurkClient", "ListWorkerBlocksCommand")
|
|
1787
|
+
.f(void 0, void 0)
|
|
1788
|
+
.ser(se_ListWorkerBlocksCommand)
|
|
1789
|
+
.de(de_ListWorkerBlocksCommand)
|
|
1790
|
+
.build() {
|
|
1791
|
+
}
|
|
2046
1792
|
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
GetAssignmentCommand,
|
|
2064
|
-
GetFileUploadURLCommand,
|
|
2065
|
-
GetHITCommand,
|
|
2066
|
-
GetQualificationScoreCommand,
|
|
2067
|
-
GetQualificationTypeCommand,
|
|
2068
|
-
ListAssignmentsForHITCommand,
|
|
2069
|
-
ListBonusPaymentsCommand,
|
|
2070
|
-
ListHITsCommand,
|
|
2071
|
-
ListHITsForQualificationTypeCommand,
|
|
2072
|
-
ListQualificationRequestsCommand,
|
|
2073
|
-
ListQualificationTypesCommand,
|
|
2074
|
-
ListReviewableHITsCommand,
|
|
2075
|
-
ListReviewPolicyResultsForHITCommand,
|
|
2076
|
-
ListWorkerBlocksCommand,
|
|
2077
|
-
ListWorkersWithQualificationTypeCommand,
|
|
2078
|
-
NotifyWorkersCommand,
|
|
2079
|
-
RejectAssignmentCommand,
|
|
2080
|
-
RejectQualificationRequestCommand,
|
|
2081
|
-
SendBonusCommand,
|
|
2082
|
-
SendTestEventNotificationCommand,
|
|
2083
|
-
UpdateExpirationForHITCommand,
|
|
2084
|
-
UpdateHITReviewStatusCommand,
|
|
2085
|
-
UpdateHITTypeOfHITCommand,
|
|
2086
|
-
UpdateNotificationSettingsCommand,
|
|
2087
|
-
UpdateQualificationTypeCommand
|
|
2088
|
-
};
|
|
2089
|
-
var MTurk = class extends MTurkClient {
|
|
2090
|
-
static {
|
|
2091
|
-
__name(this, "MTurk");
|
|
2092
|
-
}
|
|
2093
|
-
};
|
|
2094
|
-
(0, import_smithy_client.createAggregatedClient)(commands, MTurk);
|
|
1793
|
+
class ListWorkersWithQualificationTypeCommand extends smithyClient.Command
|
|
1794
|
+
.classBuilder()
|
|
1795
|
+
.ep(commonParams)
|
|
1796
|
+
.m(function (Command, cs, config, o) {
|
|
1797
|
+
return [
|
|
1798
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1799
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1800
|
+
];
|
|
1801
|
+
})
|
|
1802
|
+
.s("MTurkRequesterServiceV20170117", "ListWorkersWithQualificationType", {})
|
|
1803
|
+
.n("MTurkClient", "ListWorkersWithQualificationTypeCommand")
|
|
1804
|
+
.f(void 0, void 0)
|
|
1805
|
+
.ser(se_ListWorkersWithQualificationTypeCommand)
|
|
1806
|
+
.de(de_ListWorkersWithQualificationTypeCommand)
|
|
1807
|
+
.build() {
|
|
1808
|
+
}
|
|
2095
1809
|
|
|
2096
|
-
|
|
1810
|
+
class NotifyWorkersCommand extends smithyClient.Command
|
|
1811
|
+
.classBuilder()
|
|
1812
|
+
.ep(commonParams)
|
|
1813
|
+
.m(function (Command, cs, config, o) {
|
|
1814
|
+
return [
|
|
1815
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1816
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1817
|
+
];
|
|
1818
|
+
})
|
|
1819
|
+
.s("MTurkRequesterServiceV20170117", "NotifyWorkers", {})
|
|
1820
|
+
.n("MTurkClient", "NotifyWorkersCommand")
|
|
1821
|
+
.f(void 0, void 0)
|
|
1822
|
+
.ser(se_NotifyWorkersCommand)
|
|
1823
|
+
.de(de_NotifyWorkersCommand)
|
|
1824
|
+
.build() {
|
|
1825
|
+
}
|
|
2097
1826
|
|
|
2098
|
-
|
|
1827
|
+
class RejectAssignmentCommand extends smithyClient.Command
|
|
1828
|
+
.classBuilder()
|
|
1829
|
+
.ep(commonParams)
|
|
1830
|
+
.m(function (Command, cs, config, o) {
|
|
1831
|
+
return [
|
|
1832
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1833
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1834
|
+
];
|
|
1835
|
+
})
|
|
1836
|
+
.s("MTurkRequesterServiceV20170117", "RejectAssignment", {})
|
|
1837
|
+
.n("MTurkClient", "RejectAssignmentCommand")
|
|
1838
|
+
.f(void 0, void 0)
|
|
1839
|
+
.ser(se_RejectAssignmentCommand)
|
|
1840
|
+
.de(de_RejectAssignmentCommand)
|
|
1841
|
+
.build() {
|
|
1842
|
+
}
|
|
2099
1843
|
|
|
2100
|
-
|
|
1844
|
+
class RejectQualificationRequestCommand extends smithyClient.Command
|
|
1845
|
+
.classBuilder()
|
|
1846
|
+
.ep(commonParams)
|
|
1847
|
+
.m(function (Command, cs, config, o) {
|
|
1848
|
+
return [
|
|
1849
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1850
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1851
|
+
];
|
|
1852
|
+
})
|
|
1853
|
+
.s("MTurkRequesterServiceV20170117", "RejectQualificationRequest", {})
|
|
1854
|
+
.n("MTurkClient", "RejectQualificationRequestCommand")
|
|
1855
|
+
.f(void 0, void 0)
|
|
1856
|
+
.ser(se_RejectQualificationRequestCommand)
|
|
1857
|
+
.de(de_RejectQualificationRequestCommand)
|
|
1858
|
+
.build() {
|
|
1859
|
+
}
|
|
2101
1860
|
|
|
2102
|
-
|
|
1861
|
+
class SendBonusCommand extends smithyClient.Command
|
|
1862
|
+
.classBuilder()
|
|
1863
|
+
.ep(commonParams)
|
|
1864
|
+
.m(function (Command, cs, config, o) {
|
|
1865
|
+
return [
|
|
1866
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1867
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1868
|
+
];
|
|
1869
|
+
})
|
|
1870
|
+
.s("MTurkRequesterServiceV20170117", "SendBonus", {})
|
|
1871
|
+
.n("MTurkClient", "SendBonusCommand")
|
|
1872
|
+
.f(void 0, void 0)
|
|
1873
|
+
.ser(se_SendBonusCommand)
|
|
1874
|
+
.de(de_SendBonusCommand)
|
|
1875
|
+
.build() {
|
|
1876
|
+
}
|
|
2103
1877
|
|
|
2104
|
-
|
|
1878
|
+
class SendTestEventNotificationCommand extends smithyClient.Command
|
|
1879
|
+
.classBuilder()
|
|
1880
|
+
.ep(commonParams)
|
|
1881
|
+
.m(function (Command, cs, config, o) {
|
|
1882
|
+
return [
|
|
1883
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1884
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1885
|
+
];
|
|
1886
|
+
})
|
|
1887
|
+
.s("MTurkRequesterServiceV20170117", "SendTestEventNotification", {})
|
|
1888
|
+
.n("MTurkClient", "SendTestEventNotificationCommand")
|
|
1889
|
+
.f(void 0, void 0)
|
|
1890
|
+
.ser(se_SendTestEventNotificationCommand)
|
|
1891
|
+
.de(de_SendTestEventNotificationCommand)
|
|
1892
|
+
.build() {
|
|
1893
|
+
}
|
|
2105
1894
|
|
|
2106
|
-
|
|
1895
|
+
class UpdateExpirationForHITCommand extends smithyClient.Command
|
|
1896
|
+
.classBuilder()
|
|
1897
|
+
.ep(commonParams)
|
|
1898
|
+
.m(function (Command, cs, config, o) {
|
|
1899
|
+
return [
|
|
1900
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1901
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1902
|
+
];
|
|
1903
|
+
})
|
|
1904
|
+
.s("MTurkRequesterServiceV20170117", "UpdateExpirationForHIT", {})
|
|
1905
|
+
.n("MTurkClient", "UpdateExpirationForHITCommand")
|
|
1906
|
+
.f(void 0, void 0)
|
|
1907
|
+
.ser(se_UpdateExpirationForHITCommand)
|
|
1908
|
+
.de(de_UpdateExpirationForHITCommand)
|
|
1909
|
+
.build() {
|
|
1910
|
+
}
|
|
2107
1911
|
|
|
2108
|
-
|
|
1912
|
+
class UpdateHITReviewStatusCommand extends smithyClient.Command
|
|
1913
|
+
.classBuilder()
|
|
1914
|
+
.ep(commonParams)
|
|
1915
|
+
.m(function (Command, cs, config, o) {
|
|
1916
|
+
return [
|
|
1917
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1918
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1919
|
+
];
|
|
1920
|
+
})
|
|
1921
|
+
.s("MTurkRequesterServiceV20170117", "UpdateHITReviewStatus", {})
|
|
1922
|
+
.n("MTurkClient", "UpdateHITReviewStatusCommand")
|
|
1923
|
+
.f(void 0, void 0)
|
|
1924
|
+
.ser(se_UpdateHITReviewStatusCommand)
|
|
1925
|
+
.de(de_UpdateHITReviewStatusCommand)
|
|
1926
|
+
.build() {
|
|
1927
|
+
}
|
|
2109
1928
|
|
|
2110
|
-
|
|
1929
|
+
class UpdateHITTypeOfHITCommand extends smithyClient.Command
|
|
1930
|
+
.classBuilder()
|
|
1931
|
+
.ep(commonParams)
|
|
1932
|
+
.m(function (Command, cs, config, o) {
|
|
1933
|
+
return [
|
|
1934
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1935
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1936
|
+
];
|
|
1937
|
+
})
|
|
1938
|
+
.s("MTurkRequesterServiceV20170117", "UpdateHITTypeOfHIT", {})
|
|
1939
|
+
.n("MTurkClient", "UpdateHITTypeOfHITCommand")
|
|
1940
|
+
.f(void 0, void 0)
|
|
1941
|
+
.ser(se_UpdateHITTypeOfHITCommand)
|
|
1942
|
+
.de(de_UpdateHITTypeOfHITCommand)
|
|
1943
|
+
.build() {
|
|
1944
|
+
}
|
|
2111
1945
|
|
|
2112
|
-
|
|
1946
|
+
class UpdateNotificationSettingsCommand extends smithyClient.Command
|
|
1947
|
+
.classBuilder()
|
|
1948
|
+
.ep(commonParams)
|
|
1949
|
+
.m(function (Command, cs, config, o) {
|
|
1950
|
+
return [
|
|
1951
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1952
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1953
|
+
];
|
|
1954
|
+
})
|
|
1955
|
+
.s("MTurkRequesterServiceV20170117", "UpdateNotificationSettings", {})
|
|
1956
|
+
.n("MTurkClient", "UpdateNotificationSettingsCommand")
|
|
1957
|
+
.f(void 0, void 0)
|
|
1958
|
+
.ser(se_UpdateNotificationSettingsCommand)
|
|
1959
|
+
.de(de_UpdateNotificationSettingsCommand)
|
|
1960
|
+
.build() {
|
|
1961
|
+
}
|
|
2113
1962
|
|
|
2114
|
-
|
|
1963
|
+
class UpdateQualificationTypeCommand extends smithyClient.Command
|
|
1964
|
+
.classBuilder()
|
|
1965
|
+
.ep(commonParams)
|
|
1966
|
+
.m(function (Command, cs, config, o) {
|
|
1967
|
+
return [
|
|
1968
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1969
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1970
|
+
];
|
|
1971
|
+
})
|
|
1972
|
+
.s("MTurkRequesterServiceV20170117", "UpdateQualificationType", {})
|
|
1973
|
+
.n("MTurkClient", "UpdateQualificationTypeCommand")
|
|
1974
|
+
.f(void 0, void 0)
|
|
1975
|
+
.ser(se_UpdateQualificationTypeCommand)
|
|
1976
|
+
.de(de_UpdateQualificationTypeCommand)
|
|
1977
|
+
.build() {
|
|
1978
|
+
}
|
|
2115
1979
|
|
|
2116
|
-
|
|
1980
|
+
const commands = {
|
|
1981
|
+
AcceptQualificationRequestCommand,
|
|
1982
|
+
ApproveAssignmentCommand,
|
|
1983
|
+
AssociateQualificationWithWorkerCommand,
|
|
1984
|
+
CreateAdditionalAssignmentsForHITCommand,
|
|
1985
|
+
CreateHITCommand,
|
|
1986
|
+
CreateHITTypeCommand,
|
|
1987
|
+
CreateHITWithHITTypeCommand,
|
|
1988
|
+
CreateQualificationTypeCommand,
|
|
1989
|
+
CreateWorkerBlockCommand,
|
|
1990
|
+
DeleteHITCommand,
|
|
1991
|
+
DeleteQualificationTypeCommand,
|
|
1992
|
+
DeleteWorkerBlockCommand,
|
|
1993
|
+
DisassociateQualificationFromWorkerCommand,
|
|
1994
|
+
GetAccountBalanceCommand,
|
|
1995
|
+
GetAssignmentCommand,
|
|
1996
|
+
GetFileUploadURLCommand,
|
|
1997
|
+
GetHITCommand,
|
|
1998
|
+
GetQualificationScoreCommand,
|
|
1999
|
+
GetQualificationTypeCommand,
|
|
2000
|
+
ListAssignmentsForHITCommand,
|
|
2001
|
+
ListBonusPaymentsCommand,
|
|
2002
|
+
ListHITsCommand,
|
|
2003
|
+
ListHITsForQualificationTypeCommand,
|
|
2004
|
+
ListQualificationRequestsCommand,
|
|
2005
|
+
ListQualificationTypesCommand,
|
|
2006
|
+
ListReviewableHITsCommand,
|
|
2007
|
+
ListReviewPolicyResultsForHITCommand,
|
|
2008
|
+
ListWorkerBlocksCommand,
|
|
2009
|
+
ListWorkersWithQualificationTypeCommand,
|
|
2010
|
+
NotifyWorkersCommand,
|
|
2011
|
+
RejectAssignmentCommand,
|
|
2012
|
+
RejectQualificationRequestCommand,
|
|
2013
|
+
SendBonusCommand,
|
|
2014
|
+
SendTestEventNotificationCommand,
|
|
2015
|
+
UpdateExpirationForHITCommand,
|
|
2016
|
+
UpdateHITReviewStatusCommand,
|
|
2017
|
+
UpdateHITTypeOfHITCommand,
|
|
2018
|
+
UpdateNotificationSettingsCommand,
|
|
2019
|
+
UpdateQualificationTypeCommand,
|
|
2020
|
+
};
|
|
2021
|
+
class MTurk extends MTurkClient {
|
|
2022
|
+
}
|
|
2023
|
+
smithyClient.createAggregatedClient(commands, MTurk);
|
|
2117
2024
|
|
|
2118
|
-
|
|
2025
|
+
const paginateListAssignmentsForHIT = core.createPaginator(MTurkClient, ListAssignmentsForHITCommand, "NextToken", "NextToken", "MaxResults");
|
|
2119
2026
|
|
|
2120
|
-
|
|
2027
|
+
const paginateListBonusPayments = core.createPaginator(MTurkClient, ListBonusPaymentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2121
2028
|
|
|
2122
|
-
|
|
2029
|
+
const paginateListHITsForQualificationType = core.createPaginator(MTurkClient, ListHITsForQualificationTypeCommand, "NextToken", "NextToken", "MaxResults");
|
|
2123
2030
|
|
|
2124
|
-
|
|
2031
|
+
const paginateListHITs = core.createPaginator(MTurkClient, ListHITsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2125
2032
|
|
|
2126
|
-
|
|
2033
|
+
const paginateListQualificationRequests = core.createPaginator(MTurkClient, ListQualificationRequestsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2127
2034
|
|
|
2128
|
-
|
|
2035
|
+
const paginateListQualificationTypes = core.createPaginator(MTurkClient, ListQualificationTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2129
2036
|
|
|
2130
|
-
|
|
2037
|
+
const paginateListReviewPolicyResultsForHIT = core.createPaginator(MTurkClient, ListReviewPolicyResultsForHITCommand, "NextToken", "NextToken", "MaxResults");
|
|
2131
2038
|
|
|
2132
|
-
|
|
2039
|
+
const paginateListReviewableHITs = core.createPaginator(MTurkClient, ListReviewableHITsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2133
2040
|
|
|
2134
|
-
|
|
2135
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
2041
|
+
const paginateListWorkerBlocks = core.createPaginator(MTurkClient, ListWorkerBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
2136
2042
|
|
|
2137
|
-
|
|
2138
|
-
MTurkServiceException,
|
|
2139
|
-
__Client,
|
|
2140
|
-
MTurkClient,
|
|
2141
|
-
MTurk,
|
|
2142
|
-
$Command,
|
|
2143
|
-
AcceptQualificationRequestCommand,
|
|
2144
|
-
ApproveAssignmentCommand,
|
|
2145
|
-
AssociateQualificationWithWorkerCommand,
|
|
2146
|
-
CreateAdditionalAssignmentsForHITCommand,
|
|
2147
|
-
CreateHITCommand,
|
|
2148
|
-
CreateHITTypeCommand,
|
|
2149
|
-
CreateHITWithHITTypeCommand,
|
|
2150
|
-
CreateQualificationTypeCommand,
|
|
2151
|
-
CreateWorkerBlockCommand,
|
|
2152
|
-
DeleteHITCommand,
|
|
2153
|
-
DeleteQualificationTypeCommand,
|
|
2154
|
-
DeleteWorkerBlockCommand,
|
|
2155
|
-
DisassociateQualificationFromWorkerCommand,
|
|
2156
|
-
GetAccountBalanceCommand,
|
|
2157
|
-
GetAssignmentCommand,
|
|
2158
|
-
GetFileUploadURLCommand,
|
|
2159
|
-
GetHITCommand,
|
|
2160
|
-
GetQualificationScoreCommand,
|
|
2161
|
-
GetQualificationTypeCommand,
|
|
2162
|
-
ListAssignmentsForHITCommand,
|
|
2163
|
-
ListBonusPaymentsCommand,
|
|
2164
|
-
ListHITsCommand,
|
|
2165
|
-
ListHITsForQualificationTypeCommand,
|
|
2166
|
-
ListQualificationRequestsCommand,
|
|
2167
|
-
ListQualificationTypesCommand,
|
|
2168
|
-
ListReviewPolicyResultsForHITCommand,
|
|
2169
|
-
ListReviewableHITsCommand,
|
|
2170
|
-
ListWorkerBlocksCommand,
|
|
2171
|
-
ListWorkersWithQualificationTypeCommand,
|
|
2172
|
-
NotifyWorkersCommand,
|
|
2173
|
-
RejectAssignmentCommand,
|
|
2174
|
-
RejectQualificationRequestCommand,
|
|
2175
|
-
SendBonusCommand,
|
|
2176
|
-
SendTestEventNotificationCommand,
|
|
2177
|
-
UpdateExpirationForHITCommand,
|
|
2178
|
-
UpdateHITReviewStatusCommand,
|
|
2179
|
-
UpdateHITTypeOfHITCommand,
|
|
2180
|
-
UpdateNotificationSettingsCommand,
|
|
2181
|
-
UpdateQualificationTypeCommand,
|
|
2182
|
-
paginateListAssignmentsForHIT,
|
|
2183
|
-
paginateListBonusPayments,
|
|
2184
|
-
paginateListHITsForQualificationType,
|
|
2185
|
-
paginateListHITs,
|
|
2186
|
-
paginateListQualificationRequests,
|
|
2187
|
-
paginateListQualificationTypes,
|
|
2188
|
-
paginateListReviewPolicyResultsForHIT,
|
|
2189
|
-
paginateListReviewableHITs,
|
|
2190
|
-
paginateListWorkerBlocks,
|
|
2191
|
-
paginateListWorkersWithQualificationType,
|
|
2192
|
-
RequestError,
|
|
2193
|
-
ServiceFault,
|
|
2194
|
-
AssignmentStatus,
|
|
2195
|
-
Comparator,
|
|
2196
|
-
HITAccessActions,
|
|
2197
|
-
HITReviewStatus,
|
|
2198
|
-
HITStatus,
|
|
2199
|
-
QualificationTypeStatus,
|
|
2200
|
-
EventType,
|
|
2201
|
-
QualificationStatus,
|
|
2202
|
-
ReviewableHITStatus,
|
|
2203
|
-
ReviewPolicyLevel,
|
|
2204
|
-
ReviewActionStatus,
|
|
2205
|
-
NotifyWorkersFailureCode,
|
|
2206
|
-
NotificationTransport
|
|
2207
|
-
});
|
|
2043
|
+
const paginateListWorkersWithQualificationType = core.createPaginator(MTurkClient, ListWorkersWithQualificationTypeCommand, "NextToken", "NextToken", "MaxResults");
|
|
2208
2044
|
|
|
2045
|
+
Object.defineProperty(exports, "$Command", {
|
|
2046
|
+
enumerable: true,
|
|
2047
|
+
get: function () { return smithyClient.Command; }
|
|
2048
|
+
});
|
|
2049
|
+
Object.defineProperty(exports, "__Client", {
|
|
2050
|
+
enumerable: true,
|
|
2051
|
+
get: function () { return smithyClient.Client; }
|
|
2052
|
+
});
|
|
2053
|
+
exports.AcceptQualificationRequestCommand = AcceptQualificationRequestCommand;
|
|
2054
|
+
exports.ApproveAssignmentCommand = ApproveAssignmentCommand;
|
|
2055
|
+
exports.AssignmentStatus = AssignmentStatus;
|
|
2056
|
+
exports.AssociateQualificationWithWorkerCommand = AssociateQualificationWithWorkerCommand;
|
|
2057
|
+
exports.Comparator = Comparator;
|
|
2058
|
+
exports.CreateAdditionalAssignmentsForHITCommand = CreateAdditionalAssignmentsForHITCommand;
|
|
2059
|
+
exports.CreateHITCommand = CreateHITCommand;
|
|
2060
|
+
exports.CreateHITTypeCommand = CreateHITTypeCommand;
|
|
2061
|
+
exports.CreateHITWithHITTypeCommand = CreateHITWithHITTypeCommand;
|
|
2062
|
+
exports.CreateQualificationTypeCommand = CreateQualificationTypeCommand;
|
|
2063
|
+
exports.CreateWorkerBlockCommand = CreateWorkerBlockCommand;
|
|
2064
|
+
exports.DeleteHITCommand = DeleteHITCommand;
|
|
2065
|
+
exports.DeleteQualificationTypeCommand = DeleteQualificationTypeCommand;
|
|
2066
|
+
exports.DeleteWorkerBlockCommand = DeleteWorkerBlockCommand;
|
|
2067
|
+
exports.DisassociateQualificationFromWorkerCommand = DisassociateQualificationFromWorkerCommand;
|
|
2068
|
+
exports.EventType = EventType;
|
|
2069
|
+
exports.GetAccountBalanceCommand = GetAccountBalanceCommand;
|
|
2070
|
+
exports.GetAssignmentCommand = GetAssignmentCommand;
|
|
2071
|
+
exports.GetFileUploadURLCommand = GetFileUploadURLCommand;
|
|
2072
|
+
exports.GetHITCommand = GetHITCommand;
|
|
2073
|
+
exports.GetQualificationScoreCommand = GetQualificationScoreCommand;
|
|
2074
|
+
exports.GetQualificationTypeCommand = GetQualificationTypeCommand;
|
|
2075
|
+
exports.HITAccessActions = HITAccessActions;
|
|
2076
|
+
exports.HITReviewStatus = HITReviewStatus;
|
|
2077
|
+
exports.HITStatus = HITStatus;
|
|
2078
|
+
exports.ListAssignmentsForHITCommand = ListAssignmentsForHITCommand;
|
|
2079
|
+
exports.ListBonusPaymentsCommand = ListBonusPaymentsCommand;
|
|
2080
|
+
exports.ListHITsCommand = ListHITsCommand;
|
|
2081
|
+
exports.ListHITsForQualificationTypeCommand = ListHITsForQualificationTypeCommand;
|
|
2082
|
+
exports.ListQualificationRequestsCommand = ListQualificationRequestsCommand;
|
|
2083
|
+
exports.ListQualificationTypesCommand = ListQualificationTypesCommand;
|
|
2084
|
+
exports.ListReviewPolicyResultsForHITCommand = ListReviewPolicyResultsForHITCommand;
|
|
2085
|
+
exports.ListReviewableHITsCommand = ListReviewableHITsCommand;
|
|
2086
|
+
exports.ListWorkerBlocksCommand = ListWorkerBlocksCommand;
|
|
2087
|
+
exports.ListWorkersWithQualificationTypeCommand = ListWorkersWithQualificationTypeCommand;
|
|
2088
|
+
exports.MTurk = MTurk;
|
|
2089
|
+
exports.MTurkClient = MTurkClient;
|
|
2090
|
+
exports.MTurkServiceException = MTurkServiceException;
|
|
2091
|
+
exports.NotificationTransport = NotificationTransport;
|
|
2092
|
+
exports.NotifyWorkersCommand = NotifyWorkersCommand;
|
|
2093
|
+
exports.NotifyWorkersFailureCode = NotifyWorkersFailureCode;
|
|
2094
|
+
exports.QualificationStatus = QualificationStatus;
|
|
2095
|
+
exports.QualificationTypeStatus = QualificationTypeStatus;
|
|
2096
|
+
exports.RejectAssignmentCommand = RejectAssignmentCommand;
|
|
2097
|
+
exports.RejectQualificationRequestCommand = RejectQualificationRequestCommand;
|
|
2098
|
+
exports.RequestError = RequestError;
|
|
2099
|
+
exports.ReviewActionStatus = ReviewActionStatus;
|
|
2100
|
+
exports.ReviewPolicyLevel = ReviewPolicyLevel;
|
|
2101
|
+
exports.ReviewableHITStatus = ReviewableHITStatus;
|
|
2102
|
+
exports.SendBonusCommand = SendBonusCommand;
|
|
2103
|
+
exports.SendTestEventNotificationCommand = SendTestEventNotificationCommand;
|
|
2104
|
+
exports.ServiceFault = ServiceFault;
|
|
2105
|
+
exports.UpdateExpirationForHITCommand = UpdateExpirationForHITCommand;
|
|
2106
|
+
exports.UpdateHITReviewStatusCommand = UpdateHITReviewStatusCommand;
|
|
2107
|
+
exports.UpdateHITTypeOfHITCommand = UpdateHITTypeOfHITCommand;
|
|
2108
|
+
exports.UpdateNotificationSettingsCommand = UpdateNotificationSettingsCommand;
|
|
2109
|
+
exports.UpdateQualificationTypeCommand = UpdateQualificationTypeCommand;
|
|
2110
|
+
exports.paginateListAssignmentsForHIT = paginateListAssignmentsForHIT;
|
|
2111
|
+
exports.paginateListBonusPayments = paginateListBonusPayments;
|
|
2112
|
+
exports.paginateListHITs = paginateListHITs;
|
|
2113
|
+
exports.paginateListHITsForQualificationType = paginateListHITsForQualificationType;
|
|
2114
|
+
exports.paginateListQualificationRequests = paginateListQualificationRequests;
|
|
2115
|
+
exports.paginateListQualificationTypes = paginateListQualificationTypes;
|
|
2116
|
+
exports.paginateListReviewPolicyResultsForHIT = paginateListReviewPolicyResultsForHIT;
|
|
2117
|
+
exports.paginateListReviewableHITs = paginateListReviewableHITs;
|
|
2118
|
+
exports.paginateListWorkerBlocks = paginateListWorkerBlocks;
|
|
2119
|
+
exports.paginateListWorkersWithQualificationType = paginateListWorkersWithQualificationType;
|