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