@aws-sdk/client-mturk 3.186.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 +8 -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,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 { ListAssignmentsForHITRequestFilterSensitiveLog, ListAssignmentsForHITResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListAssignmentsForHITCommand, serializeAws_json1_1ListAssignmentsForHITCommand, } from "../protocols/Aws_json1_1";
6
- var ListAssignmentsForHITCommand = (function (_super) {
7
- __extends(ListAssignmentsForHITCommand, _super);
8
- function ListAssignmentsForHITCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAssignmentsForHITCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAssignmentsForHITCommand.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 = "ListAssignmentsForHITCommand";
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 = "ListAssignmentsForHITCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAssignmentsForHITRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAssignmentsForHITResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAssignmentsForHITCommand.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_1ListAssignmentsForHITCommand(input, context);
33
- };
34
- ListAssignmentsForHITCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListAssignmentsForHITCommand(output, context);
36
- };
37
- return ListAssignmentsForHITCommand;
38
- }($Command));
39
- export { ListAssignmentsForHITCommand };
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 { ListBonusPaymentsRequestFilterSensitiveLog, ListBonusPaymentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListBonusPaymentsCommand, serializeAws_json1_1ListBonusPaymentsCommand, } from "../protocols/Aws_json1_1";
6
- var ListBonusPaymentsCommand = (function (_super) {
7
- __extends(ListBonusPaymentsCommand, _super);
8
- function ListBonusPaymentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListBonusPaymentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListBonusPaymentsCommand.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 = "ListBonusPaymentsCommand";
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 = "ListBonusPaymentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListBonusPaymentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListBonusPaymentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListBonusPaymentsCommand.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_1ListBonusPaymentsCommand(input, context);
33
- };
34
- ListBonusPaymentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListBonusPaymentsCommand(output, context);
36
- };
37
- return ListBonusPaymentsCommand;
38
- }($Command));
39
- export { ListBonusPaymentsCommand };
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 { ListHITsRequestFilterSensitiveLog, ListHITsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListHITsCommand, serializeAws_json1_1ListHITsCommand } from "../protocols/Aws_json1_1";
6
- var ListHITsCommand = (function (_super) {
7
- __extends(ListHITsCommand, _super);
8
- function ListHITsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListHITsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListHITsCommand.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 = "ListHITsCommand";
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 = "ListHITsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListHITsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListHITsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListHITsCommand.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_1ListHITsCommand(input, context);
33
- };
34
- ListHITsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListHITsCommand(output, context);
36
- };
37
- return ListHITsCommand;
38
- }($Command));
39
- export { ListHITsCommand };
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 { ListHITsForQualificationTypeRequestFilterSensitiveLog, ListHITsForQualificationTypeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListHITsForQualificationTypeCommand, serializeAws_json1_1ListHITsForQualificationTypeCommand, } from "../protocols/Aws_json1_1";
6
- var ListHITsForQualificationTypeCommand = (function (_super) {
7
- __extends(ListHITsForQualificationTypeCommand, _super);
8
- function ListHITsForQualificationTypeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListHITsForQualificationTypeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListHITsForQualificationTypeCommand.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 = "ListHITsForQualificationTypeCommand";
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 = "ListHITsForQualificationTypeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListHITsForQualificationTypeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListHITsForQualificationTypeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListHITsForQualificationTypeCommand.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_1ListHITsForQualificationTypeCommand(input, context);
33
- };
34
- ListHITsForQualificationTypeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListHITsForQualificationTypeCommand(output, context);
36
- };
37
- return ListHITsForQualificationTypeCommand;
38
- }($Command));
39
- export { ListHITsForQualificationTypeCommand };
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 { ListQualificationRequestsRequestFilterSensitiveLog, ListQualificationRequestsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListQualificationRequestsCommand, serializeAws_json1_1ListQualificationRequestsCommand, } from "../protocols/Aws_json1_1";
6
- var ListQualificationRequestsCommand = (function (_super) {
7
- __extends(ListQualificationRequestsCommand, _super);
8
- function ListQualificationRequestsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListQualificationRequestsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListQualificationRequestsCommand.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 = "ListQualificationRequestsCommand";
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 = "ListQualificationRequestsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListQualificationRequestsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListQualificationRequestsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListQualificationRequestsCommand.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_1ListQualificationRequestsCommand(input, context);
33
- };
34
- ListQualificationRequestsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListQualificationRequestsCommand(output, context);
36
- };
37
- return ListQualificationRequestsCommand;
38
- }($Command));
39
- export { ListQualificationRequestsCommand };
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 { ListQualificationTypesRequestFilterSensitiveLog, ListQualificationTypesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListQualificationTypesCommand, serializeAws_json1_1ListQualificationTypesCommand, } from "../protocols/Aws_json1_1";
6
- var ListQualificationTypesCommand = (function (_super) {
7
- __extends(ListQualificationTypesCommand, _super);
8
- function ListQualificationTypesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListQualificationTypesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListQualificationTypesCommand.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 = "ListQualificationTypesCommand";
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 = "ListQualificationTypesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListQualificationTypesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListQualificationTypesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListQualificationTypesCommand.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_1ListQualificationTypesCommand(input, context);
33
- };
34
- ListQualificationTypesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListQualificationTypesCommand(output, context);
36
- };
37
- return ListQualificationTypesCommand;
38
- }($Command));
39
- export { ListQualificationTypesCommand };
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 { ListReviewPolicyResultsForHITRequestFilterSensitiveLog, ListReviewPolicyResultsForHITResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListReviewPolicyResultsForHITCommand, serializeAws_json1_1ListReviewPolicyResultsForHITCommand, } from "../protocols/Aws_json1_1";
6
- var ListReviewPolicyResultsForHITCommand = (function (_super) {
7
- __extends(ListReviewPolicyResultsForHITCommand, _super);
8
- function ListReviewPolicyResultsForHITCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListReviewPolicyResultsForHITCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListReviewPolicyResultsForHITCommand.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 = "ListReviewPolicyResultsForHITCommand";
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 = "ListReviewPolicyResultsForHITCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListReviewPolicyResultsForHITRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListReviewPolicyResultsForHITResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListReviewPolicyResultsForHITCommand.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_1ListReviewPolicyResultsForHITCommand(input, context);
33
- };
34
- ListReviewPolicyResultsForHITCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListReviewPolicyResultsForHITCommand(output, context);
36
- };
37
- return ListReviewPolicyResultsForHITCommand;
38
- }($Command));
39
- export { ListReviewPolicyResultsForHITCommand };
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 { ListReviewableHITsRequestFilterSensitiveLog, ListReviewableHITsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListReviewableHITsCommand, serializeAws_json1_1ListReviewableHITsCommand, } from "../protocols/Aws_json1_1";
6
- var ListReviewableHITsCommand = (function (_super) {
7
- __extends(ListReviewableHITsCommand, _super);
8
- function ListReviewableHITsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListReviewableHITsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListReviewableHITsCommand.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 = "ListReviewableHITsCommand";
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 = "ListReviewableHITsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListReviewableHITsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListReviewableHITsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListReviewableHITsCommand.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_1ListReviewableHITsCommand(input, context);
33
- };
34
- ListReviewableHITsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListReviewableHITsCommand(output, context);
36
- };
37
- return ListReviewableHITsCommand;
38
- }($Command));
39
- export { ListReviewableHITsCommand };
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 { ListWorkerBlocksRequestFilterSensitiveLog, ListWorkerBlocksResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListWorkerBlocksCommand, serializeAws_json1_1ListWorkerBlocksCommand, } from "../protocols/Aws_json1_1";
6
- var ListWorkerBlocksCommand = (function (_super) {
7
- __extends(ListWorkerBlocksCommand, _super);
8
- function ListWorkerBlocksCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListWorkerBlocksCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListWorkerBlocksCommand.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 = "ListWorkerBlocksCommand";
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 = "ListWorkerBlocksCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListWorkerBlocksRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListWorkerBlocksResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListWorkerBlocksCommand.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_1ListWorkerBlocksCommand(input, context);
33
- };
34
- ListWorkerBlocksCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListWorkerBlocksCommand(output, context);
36
- };
37
- return ListWorkerBlocksCommand;
38
- }($Command));
39
- export { ListWorkerBlocksCommand };
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 { ListWorkersWithQualificationTypeRequestFilterSensitiveLog, ListWorkersWithQualificationTypeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListWorkersWithQualificationTypeCommand, serializeAws_json1_1ListWorkersWithQualificationTypeCommand, } from "../protocols/Aws_json1_1";
6
- var ListWorkersWithQualificationTypeCommand = (function (_super) {
7
- __extends(ListWorkersWithQualificationTypeCommand, _super);
8
- function ListWorkersWithQualificationTypeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListWorkersWithQualificationTypeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListWorkersWithQualificationTypeCommand.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 = "ListWorkersWithQualificationTypeCommand";
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 = "ListWorkersWithQualificationTypeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListWorkersWithQualificationTypeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListWorkersWithQualificationTypeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListWorkersWithQualificationTypeCommand.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_1ListWorkersWithQualificationTypeCommand(input, context);
33
- };
34
- ListWorkersWithQualificationTypeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListWorkersWithQualificationTypeCommand(output, context);
36
- };
37
- return ListWorkersWithQualificationTypeCommand;
38
- }($Command));
39
- export { ListWorkersWithQualificationTypeCommand };
31
+ }
32
+ }