@aws-sdk/client-mturk 3.183.0 → 3.186.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/MTurk.js +165 -158
- package/dist-es/MTurkClient.js +28 -22
- package/dist-es/commands/AcceptQualificationRequestCommand.js +28 -21
- package/dist-es/commands/ApproveAssignmentCommand.js +28 -21
- package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +28 -21
- package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +28 -21
- package/dist-es/commands/CreateHITCommand.js +28 -21
- package/dist-es/commands/CreateHITTypeCommand.js +28 -21
- package/dist-es/commands/CreateHITWithHITTypeCommand.js +28 -21
- package/dist-es/commands/CreateQualificationTypeCommand.js +28 -21
- package/dist-es/commands/CreateWorkerBlockCommand.js +28 -21
- package/dist-es/commands/DeleteHITCommand.js +28 -21
- package/dist-es/commands/DeleteQualificationTypeCommand.js +28 -21
- package/dist-es/commands/DeleteWorkerBlockCommand.js +28 -21
- package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +28 -21
- package/dist-es/commands/GetAccountBalanceCommand.js +28 -21
- package/dist-es/commands/GetAssignmentCommand.js +28 -21
- package/dist-es/commands/GetFileUploadURLCommand.js +28 -21
- package/dist-es/commands/GetHITCommand.js +28 -21
- package/dist-es/commands/GetQualificationScoreCommand.js +28 -21
- package/dist-es/commands/GetQualificationTypeCommand.js +28 -21
- package/dist-es/commands/ListAssignmentsForHITCommand.js +28 -21
- package/dist-es/commands/ListBonusPaymentsCommand.js +28 -21
- package/dist-es/commands/ListHITsCommand.js +28 -21
- package/dist-es/commands/ListHITsForQualificationTypeCommand.js +28 -21
- package/dist-es/commands/ListQualificationRequestsCommand.js +28 -21
- package/dist-es/commands/ListQualificationTypesCommand.js +28 -21
- package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +28 -21
- package/dist-es/commands/ListReviewableHITsCommand.js +28 -21
- package/dist-es/commands/ListWorkerBlocksCommand.js +28 -21
- package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +28 -21
- package/dist-es/commands/NotifyWorkersCommand.js +28 -21
- package/dist-es/commands/RejectAssignmentCommand.js +28 -21
- package/dist-es/commands/RejectQualificationRequestCommand.js +28 -21
- package/dist-es/commands/SendBonusCommand.js +28 -21
- package/dist-es/commands/SendTestEventNotificationCommand.js +28 -21
- package/dist-es/commands/UpdateExpirationForHITCommand.js +28 -21
- package/dist-es/commands/UpdateHITReviewStatusCommand.js +28 -21
- package/dist-es/commands/UpdateHITTypeOfHITCommand.js +28 -21
- package/dist-es/commands/UpdateNotificationSettingsCommand.js +28 -21
- package/dist-es/commands/UpdateQualificationTypeCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MTurkServiceException.js +10 -5
- package/dist-es/models/models_0.js +123 -314
- package/dist-es/pagination/ListAssignmentsForHITPaginator.js +68 -25
- package/dist-es/pagination/ListBonusPaymentsPaginator.js +68 -25
- package/dist-es/pagination/ListHITsForQualificationTypePaginator.js +68 -25
- package/dist-es/pagination/ListHITsPaginator.js +68 -25
- package/dist-es/pagination/ListQualificationRequestsPaginator.js +68 -25
- package/dist-es/pagination/ListQualificationTypesPaginator.js +68 -25
- package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js +68 -25
- package/dist-es/pagination/ListReviewableHITsPaginator.js +68 -25
- package/dist-es/pagination/ListWorkerBlocksPaginator.js +68 -25
- package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +2941 -2304
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/dist-es/MTurkClient.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var MTurkClient = (function (_super) {
|
|
13
|
+
__extends(MTurkClient, _super);
|
|
14
|
+
function MTurkClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
MTurkClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return MTurkClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { MTurkClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AcceptQualificationRequestRequestFilterSensitiveLog, AcceptQualificationRequestResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AcceptQualificationRequestCommand, serializeAws_json1_1AcceptQualificationRequestCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AcceptQualificationRequestCommand = (function (_super) {
|
|
7
|
+
__extends(AcceptQualificationRequestCommand, _super);
|
|
8
|
+
function AcceptQualificationRequestCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AcceptQualificationRequestCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "AcceptQualificationRequestCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AcceptQualificationRequestRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AcceptQualificationRequestResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AcceptQualificationRequestCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AcceptQualificationRequestCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AcceptQualificationRequestCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AcceptQualificationRequestCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AcceptQualificationRequestCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AcceptQualificationRequestCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ApproveAssignmentRequestFilterSensitiveLog, ApproveAssignmentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1ApproveAssignmentCommand, serializeAws_json1_1ApproveAssignmentCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ApproveAssignmentCommand = (function (_super) {
|
|
7
|
+
__extends(ApproveAssignmentCommand, _super);
|
|
8
|
+
function ApproveAssignmentCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ApproveAssignmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "ApproveAssignmentCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ApproveAssignmentRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ApproveAssignmentResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ApproveAssignmentCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1ApproveAssignmentCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ApproveAssignmentCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1ApproveAssignmentCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ApproveAssignmentCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ApproveAssignmentCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssociateQualificationWithWorkerRequestFilterSensitiveLog, AssociateQualificationWithWorkerResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AssociateQualificationWithWorkerCommand, serializeAws_json1_1AssociateQualificationWithWorkerCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AssociateQualificationWithWorkerCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateQualificationWithWorkerCommand, _super);
|
|
8
|
+
function AssociateQualificationWithWorkerCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AssociateQualificationWithWorkerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "AssociateQualificationWithWorkerCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AssociateQualificationWithWorkerRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AssociateQualificationWithWorkerResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateQualificationWithWorkerCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AssociateQualificationWithWorkerCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AssociateQualificationWithWorkerCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AssociateQualificationWithWorkerCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AssociateQualificationWithWorkerCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateQualificationWithWorkerCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateAdditionalAssignmentsForHITRequestFilterSensitiveLog, CreateAdditionalAssignmentsForHITResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommand, serializeAws_json1_1CreateAdditionalAssignmentsForHITCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateAdditionalAssignmentsForHITCommand = (function (_super) {
|
|
7
|
+
__extends(CreateAdditionalAssignmentsForHITCommand, _super);
|
|
8
|
+
function CreateAdditionalAssignmentsForHITCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateAdditionalAssignmentsForHITCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "CreateAdditionalAssignmentsForHITCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateAdditionalAssignmentsForHITRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateAdditionalAssignmentsForHITResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateAdditionalAssignmentsForHITCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateAdditionalAssignmentsForHITCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateAdditionalAssignmentsForHITCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateAdditionalAssignmentsForHITCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateAdditionalAssignmentsForHITCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateHITRequestFilterSensitiveLog, CreateHITResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateHITCommand, serializeAws_json1_1CreateHITCommand } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateHITCommand = (function (_super) {
|
|
7
|
+
__extends(CreateHITCommand, _super);
|
|
8
|
+
function CreateHITCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateHITCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "CreateHITCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateHITRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateHITResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateHITCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateHITCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateHITCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateHITCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateHITCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateHITCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateHITTypeRequestFilterSensitiveLog, CreateHITTypeResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateHITTypeCommand, serializeAws_json1_1CreateHITTypeCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateHITTypeCommand = (function (_super) {
|
|
7
|
+
__extends(CreateHITTypeCommand, _super);
|
|
8
|
+
function CreateHITTypeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateHITTypeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "CreateHITTypeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateHITTypeRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateHITTypeResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateHITTypeCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateHITTypeCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateHITTypeCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateHITTypeCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateHITTypeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateHITTypeCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateHITWithHITTypeRequestFilterSensitiveLog, CreateHITWithHITTypeResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateHITWithHITTypeCommand, serializeAws_json1_1CreateHITWithHITTypeCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateHITWithHITTypeCommand = (function (_super) {
|
|
7
|
+
__extends(CreateHITWithHITTypeCommand, _super);
|
|
8
|
+
function CreateHITWithHITTypeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateHITWithHITTypeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "CreateHITWithHITTypeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateHITWithHITTypeRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateHITWithHITTypeResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateHITWithHITTypeCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateHITWithHITTypeCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateHITWithHITTypeCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateHITWithHITTypeCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateHITWithHITTypeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateHITWithHITTypeCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateQualificationTypeRequestFilterSensitiveLog, CreateQualificationTypeResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateQualificationTypeCommand, serializeAws_json1_1CreateQualificationTypeCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateQualificationTypeCommand = (function (_super) {
|
|
7
|
+
__extends(CreateQualificationTypeCommand, _super);
|
|
8
|
+
function CreateQualificationTypeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateQualificationTypeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "CreateQualificationTypeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateQualificationTypeRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateQualificationTypeResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateQualificationTypeCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateQualificationTypeCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateQualificationTypeCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateQualificationTypeCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateQualificationTypeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateQualificationTypeCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateWorkerBlockRequestFilterSensitiveLog, CreateWorkerBlockResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateWorkerBlockCommand, serializeAws_json1_1CreateWorkerBlockCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateWorkerBlockCommand = (function (_super) {
|
|
7
|
+
__extends(CreateWorkerBlockCommand, _super);
|
|
8
|
+
function CreateWorkerBlockCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateWorkerBlockCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MTurkClient";
|
|
18
|
+
var commandName = "CreateWorkerBlockCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateWorkerBlockRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateWorkerBlockResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateWorkerBlockCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateWorkerBlockCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateWorkerBlockCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateWorkerBlockCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateWorkerBlockCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateWorkerBlockCommand };
|