@aws-sdk/client-mturk 3.180.0 → 3.183.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 (62) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +45 -39
  3. package/dist-es/MTurk.js +158 -165
  4. package/dist-es/MTurkClient.js +22 -28
  5. package/dist-es/commands/AcceptQualificationRequestCommand.js +21 -28
  6. package/dist-es/commands/ApproveAssignmentCommand.js +21 -28
  7. package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +21 -28
  8. package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +21 -28
  9. package/dist-es/commands/CreateHITCommand.js +21 -28
  10. package/dist-es/commands/CreateHITTypeCommand.js +21 -28
  11. package/dist-es/commands/CreateHITWithHITTypeCommand.js +21 -28
  12. package/dist-es/commands/CreateQualificationTypeCommand.js +21 -28
  13. package/dist-es/commands/CreateWorkerBlockCommand.js +21 -28
  14. package/dist-es/commands/DeleteHITCommand.js +21 -28
  15. package/dist-es/commands/DeleteQualificationTypeCommand.js +21 -28
  16. package/dist-es/commands/DeleteWorkerBlockCommand.js +21 -28
  17. package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +21 -28
  18. package/dist-es/commands/GetAccountBalanceCommand.js +21 -28
  19. package/dist-es/commands/GetAssignmentCommand.js +21 -28
  20. package/dist-es/commands/GetFileUploadURLCommand.js +21 -28
  21. package/dist-es/commands/GetHITCommand.js +21 -28
  22. package/dist-es/commands/GetQualificationScoreCommand.js +21 -28
  23. package/dist-es/commands/GetQualificationTypeCommand.js +21 -28
  24. package/dist-es/commands/ListAssignmentsForHITCommand.js +21 -28
  25. package/dist-es/commands/ListBonusPaymentsCommand.js +21 -28
  26. package/dist-es/commands/ListHITsCommand.js +21 -28
  27. package/dist-es/commands/ListHITsForQualificationTypeCommand.js +21 -28
  28. package/dist-es/commands/ListQualificationRequestsCommand.js +21 -28
  29. package/dist-es/commands/ListQualificationTypesCommand.js +21 -28
  30. package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +21 -28
  31. package/dist-es/commands/ListReviewableHITsCommand.js +21 -28
  32. package/dist-es/commands/ListWorkerBlocksCommand.js +21 -28
  33. package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +21 -28
  34. package/dist-es/commands/NotifyWorkersCommand.js +21 -28
  35. package/dist-es/commands/RejectAssignmentCommand.js +21 -28
  36. package/dist-es/commands/RejectQualificationRequestCommand.js +21 -28
  37. package/dist-es/commands/SendBonusCommand.js +21 -28
  38. package/dist-es/commands/SendTestEventNotificationCommand.js +21 -28
  39. package/dist-es/commands/UpdateExpirationForHITCommand.js +21 -28
  40. package/dist-es/commands/UpdateHITReviewStatusCommand.js +21 -28
  41. package/dist-es/commands/UpdateHITTypeOfHITCommand.js +21 -28
  42. package/dist-es/commands/UpdateNotificationSettingsCommand.js +21 -28
  43. package/dist-es/commands/UpdateQualificationTypeCommand.js +21 -28
  44. package/dist-es/endpoints.js +8 -8
  45. package/dist-es/models/MTurkServiceException.js +5 -10
  46. package/dist-es/models/models_0.js +314 -123
  47. package/dist-es/pagination/ListAssignmentsForHITPaginator.js +25 -68
  48. package/dist-es/pagination/ListBonusPaymentsPaginator.js +25 -68
  49. package/dist-es/pagination/ListHITsForQualificationTypePaginator.js +25 -68
  50. package/dist-es/pagination/ListHITsPaginator.js +25 -68
  51. package/dist-es/pagination/ListQualificationRequestsPaginator.js +25 -68
  52. package/dist-es/pagination/ListQualificationTypesPaginator.js +25 -68
  53. package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js +25 -68
  54. package/dist-es/pagination/ListReviewableHITsPaginator.js +25 -68
  55. package/dist-es/pagination/ListWorkerBlocksPaginator.js +25 -68
  56. package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js +25 -68
  57. package/dist-es/protocols/Aws_json1_1.js +2304 -2928
  58. package/dist-es/runtimeConfig.browser.js +26 -12
  59. package/dist-es/runtimeConfig.js +30 -12
  60. package/dist-es/runtimeConfig.native.js +8 -5
  61. package/dist-es/runtimeConfig.shared.js +8 -11
  62. 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 { NotifyWorkersRequestFilterSensitiveLog, NotifyWorkersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1NotifyWorkersCommand, serializeAws_json1_1NotifyWorkersCommand, } from "../protocols/Aws_json1_1";
6
- var NotifyWorkersCommand = (function (_super) {
7
- __extends(NotifyWorkersCommand, _super);
8
- function NotifyWorkersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class NotifyWorkersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- NotifyWorkersCommand.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 = "NotifyWorkersCommand";
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 = "NotifyWorkersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: NotifyWorkersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: NotifyWorkersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- NotifyWorkersCommand.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_1NotifyWorkersCommand(input, context);
33
- };
34
- NotifyWorkersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1NotifyWorkersCommand(output, context);
36
- };
37
- return NotifyWorkersCommand;
38
- }($Command));
39
- export { NotifyWorkersCommand };
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 { RejectAssignmentRequestFilterSensitiveLog, RejectAssignmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RejectAssignmentCommand, serializeAws_json1_1RejectAssignmentCommand, } from "../protocols/Aws_json1_1";
6
- var RejectAssignmentCommand = (function (_super) {
7
- __extends(RejectAssignmentCommand, _super);
8
- function RejectAssignmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RejectAssignmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RejectAssignmentCommand.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 = "RejectAssignmentCommand";
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 = "RejectAssignmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RejectAssignmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RejectAssignmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RejectAssignmentCommand.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_1RejectAssignmentCommand(input, context);
33
- };
34
- RejectAssignmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RejectAssignmentCommand(output, context);
36
- };
37
- return RejectAssignmentCommand;
38
- }($Command));
39
- export { RejectAssignmentCommand };
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 { RejectQualificationRequestRequestFilterSensitiveLog, RejectQualificationRequestResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RejectQualificationRequestCommand, serializeAws_json1_1RejectQualificationRequestCommand, } from "../protocols/Aws_json1_1";
6
- var RejectQualificationRequestCommand = (function (_super) {
7
- __extends(RejectQualificationRequestCommand, _super);
8
- function RejectQualificationRequestCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RejectQualificationRequestCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RejectQualificationRequestCommand.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 = "RejectQualificationRequestCommand";
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 = "RejectQualificationRequestCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RejectQualificationRequestRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RejectQualificationRequestResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RejectQualificationRequestCommand.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_1RejectQualificationRequestCommand(input, context);
33
- };
34
- RejectQualificationRequestCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RejectQualificationRequestCommand(output, context);
36
- };
37
- return RejectQualificationRequestCommand;
38
- }($Command));
39
- export { RejectQualificationRequestCommand };
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 { SendBonusRequestFilterSensitiveLog, SendBonusResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SendBonusCommand, serializeAws_json1_1SendBonusCommand } from "../protocols/Aws_json1_1";
6
- var SendBonusCommand = (function (_super) {
7
- __extends(SendBonusCommand, _super);
8
- function SendBonusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SendBonusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SendBonusCommand.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 = "SendBonusCommand";
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 = "SendBonusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SendBonusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SendBonusResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SendBonusCommand.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_1SendBonusCommand(input, context);
33
- };
34
- SendBonusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SendBonusCommand(output, context);
36
- };
37
- return SendBonusCommand;
38
- }($Command));
39
- export { SendBonusCommand };
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 { SendTestEventNotificationRequestFilterSensitiveLog, SendTestEventNotificationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SendTestEventNotificationCommand, serializeAws_json1_1SendTestEventNotificationCommand, } from "../protocols/Aws_json1_1";
6
- var SendTestEventNotificationCommand = (function (_super) {
7
- __extends(SendTestEventNotificationCommand, _super);
8
- function SendTestEventNotificationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SendTestEventNotificationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SendTestEventNotificationCommand.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 = "SendTestEventNotificationCommand";
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 = "SendTestEventNotificationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SendTestEventNotificationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SendTestEventNotificationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SendTestEventNotificationCommand.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_1SendTestEventNotificationCommand(input, context);
33
- };
34
- SendTestEventNotificationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SendTestEventNotificationCommand(output, context);
36
- };
37
- return SendTestEventNotificationCommand;
38
- }($Command));
39
- export { SendTestEventNotificationCommand };
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 { UpdateExpirationForHITRequestFilterSensitiveLog, UpdateExpirationForHITResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateExpirationForHITCommand, serializeAws_json1_1UpdateExpirationForHITCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateExpirationForHITCommand = (function (_super) {
7
- __extends(UpdateExpirationForHITCommand, _super);
8
- function UpdateExpirationForHITCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateExpirationForHITCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateExpirationForHITCommand.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 = "UpdateExpirationForHITCommand";
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 = "UpdateExpirationForHITCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateExpirationForHITRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateExpirationForHITResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateExpirationForHITCommand.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_1UpdateExpirationForHITCommand(input, context);
33
- };
34
- UpdateExpirationForHITCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateExpirationForHITCommand(output, context);
36
- };
37
- return UpdateExpirationForHITCommand;
38
- }($Command));
39
- export { UpdateExpirationForHITCommand };
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 { UpdateHITReviewStatusRequestFilterSensitiveLog, UpdateHITReviewStatusResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateHITReviewStatusCommand, serializeAws_json1_1UpdateHITReviewStatusCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateHITReviewStatusCommand = (function (_super) {
7
- __extends(UpdateHITReviewStatusCommand, _super);
8
- function UpdateHITReviewStatusCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateHITReviewStatusCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateHITReviewStatusCommand.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 = "UpdateHITReviewStatusCommand";
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 = "UpdateHITReviewStatusCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateHITReviewStatusRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateHITReviewStatusResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateHITReviewStatusCommand.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_1UpdateHITReviewStatusCommand(input, context);
33
- };
34
- UpdateHITReviewStatusCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateHITReviewStatusCommand(output, context);
36
- };
37
- return UpdateHITReviewStatusCommand;
38
- }($Command));
39
- export { UpdateHITReviewStatusCommand };
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 { UpdateHITTypeOfHITRequestFilterSensitiveLog, UpdateHITTypeOfHITResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateHITTypeOfHITCommand, serializeAws_json1_1UpdateHITTypeOfHITCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateHITTypeOfHITCommand = (function (_super) {
7
- __extends(UpdateHITTypeOfHITCommand, _super);
8
- function UpdateHITTypeOfHITCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateHITTypeOfHITCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateHITTypeOfHITCommand.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 = "UpdateHITTypeOfHITCommand";
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 = "UpdateHITTypeOfHITCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateHITTypeOfHITRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateHITTypeOfHITResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateHITTypeOfHITCommand.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_1UpdateHITTypeOfHITCommand(input, context);
33
- };
34
- UpdateHITTypeOfHITCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateHITTypeOfHITCommand(output, context);
36
- };
37
- return UpdateHITTypeOfHITCommand;
38
- }($Command));
39
- export { UpdateHITTypeOfHITCommand };
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 { UpdateNotificationSettingsRequestFilterSensitiveLog, UpdateNotificationSettingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateNotificationSettingsCommand, serializeAws_json1_1UpdateNotificationSettingsCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateNotificationSettingsCommand = (function (_super) {
7
- __extends(UpdateNotificationSettingsCommand, _super);
8
- function UpdateNotificationSettingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateNotificationSettingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateNotificationSettingsCommand.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 = "UpdateNotificationSettingsCommand";
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 = "UpdateNotificationSettingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateNotificationSettingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateNotificationSettingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateNotificationSettingsCommand.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_1UpdateNotificationSettingsCommand(input, context);
33
- };
34
- UpdateNotificationSettingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateNotificationSettingsCommand(output, context);
36
- };
37
- return UpdateNotificationSettingsCommand;
38
- }($Command));
39
- export { UpdateNotificationSettingsCommand };
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 { UpdateQualificationTypeRequestFilterSensitiveLog, UpdateQualificationTypeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateQualificationTypeCommand, serializeAws_json1_1UpdateQualificationTypeCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateQualificationTypeCommand = (function (_super) {
7
- __extends(UpdateQualificationTypeCommand, _super);
8
- function UpdateQualificationTypeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateQualificationTypeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateQualificationTypeCommand.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 = "UpdateQualificationTypeCommand";
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 = "UpdateQualificationTypeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateQualificationTypeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateQualificationTypeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateQualificationTypeCommand.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_1UpdateQualificationTypeCommand(input, context);
33
- };
34
- UpdateQualificationTypeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateQualificationTypeCommand(output, context);
36
- };
37
- return UpdateQualificationTypeCommand;
38
- }($Command));
39
- export { UpdateQualificationTypeCommand };
31
+ }
32
+ }