@aws-sdk/client-mturk 3.183.0 → 3.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/MTurk.js +165 -158
  4. package/dist-es/MTurkClient.js +28 -22
  5. package/dist-es/commands/AcceptQualificationRequestCommand.js +28 -21
  6. package/dist-es/commands/ApproveAssignmentCommand.js +28 -21
  7. package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +28 -21
  8. package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +28 -21
  9. package/dist-es/commands/CreateHITCommand.js +28 -21
  10. package/dist-es/commands/CreateHITTypeCommand.js +28 -21
  11. package/dist-es/commands/CreateHITWithHITTypeCommand.js +28 -21
  12. package/dist-es/commands/CreateQualificationTypeCommand.js +28 -21
  13. package/dist-es/commands/CreateWorkerBlockCommand.js +28 -21
  14. package/dist-es/commands/DeleteHITCommand.js +28 -21
  15. package/dist-es/commands/DeleteQualificationTypeCommand.js +28 -21
  16. package/dist-es/commands/DeleteWorkerBlockCommand.js +28 -21
  17. package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +28 -21
  18. package/dist-es/commands/GetAccountBalanceCommand.js +28 -21
  19. package/dist-es/commands/GetAssignmentCommand.js +28 -21
  20. package/dist-es/commands/GetFileUploadURLCommand.js +28 -21
  21. package/dist-es/commands/GetHITCommand.js +28 -21
  22. package/dist-es/commands/GetQualificationScoreCommand.js +28 -21
  23. package/dist-es/commands/GetQualificationTypeCommand.js +28 -21
  24. package/dist-es/commands/ListAssignmentsForHITCommand.js +28 -21
  25. package/dist-es/commands/ListBonusPaymentsCommand.js +28 -21
  26. package/dist-es/commands/ListHITsCommand.js +28 -21
  27. package/dist-es/commands/ListHITsForQualificationTypeCommand.js +28 -21
  28. package/dist-es/commands/ListQualificationRequestsCommand.js +28 -21
  29. package/dist-es/commands/ListQualificationTypesCommand.js +28 -21
  30. package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +28 -21
  31. package/dist-es/commands/ListReviewableHITsCommand.js +28 -21
  32. package/dist-es/commands/ListWorkerBlocksCommand.js +28 -21
  33. package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +28 -21
  34. package/dist-es/commands/NotifyWorkersCommand.js +28 -21
  35. package/dist-es/commands/RejectAssignmentCommand.js +28 -21
  36. package/dist-es/commands/RejectQualificationRequestCommand.js +28 -21
  37. package/dist-es/commands/SendBonusCommand.js +28 -21
  38. package/dist-es/commands/SendTestEventNotificationCommand.js +28 -21
  39. package/dist-es/commands/UpdateExpirationForHITCommand.js +28 -21
  40. package/dist-es/commands/UpdateHITReviewStatusCommand.js +28 -21
  41. package/dist-es/commands/UpdateHITTypeOfHITCommand.js +28 -21
  42. package/dist-es/commands/UpdateNotificationSettingsCommand.js +28 -21
  43. package/dist-es/commands/UpdateQualificationTypeCommand.js +28 -21
  44. package/dist-es/endpoints.js +8 -8
  45. package/dist-es/models/MTurkServiceException.js +10 -5
  46. package/dist-es/models/models_0.js +123 -314
  47. package/dist-es/pagination/ListAssignmentsForHITPaginator.js +68 -25
  48. package/dist-es/pagination/ListBonusPaymentsPaginator.js +68 -25
  49. package/dist-es/pagination/ListHITsForQualificationTypePaginator.js +68 -25
  50. package/dist-es/pagination/ListHITsPaginator.js +68 -25
  51. package/dist-es/pagination/ListQualificationRequestsPaginator.js +68 -25
  52. package/dist-es/pagination/ListQualificationTypesPaginator.js +68 -25
  53. package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js +68 -25
  54. package/dist-es/pagination/ListReviewableHITsPaginator.js +68 -25
  55. package/dist-es/pagination/ListWorkerBlocksPaginator.js +68 -25
  56. package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js +68 -25
  57. package/dist-es/protocols/Aws_json1_1.js +2941 -2304
  58. package/dist-es/runtimeConfig.browser.js +12 -26
  59. package/dist-es/runtimeConfig.js +12 -30
  60. package/dist-es/runtimeConfig.native.js +5 -8
  61. package/dist-es/runtimeConfig.shared.js +11 -8
  62. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { NotifyWorkersRequestFilterSensitiveLog, NotifyWorkersResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1NotifyWorkersCommand, serializeAws_json1_1NotifyWorkersCommand, } from "../protocols/Aws_json1_1";
5
- export class NotifyWorkersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ NotifyWorkersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: NotifyWorkersRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: NotifyWorkersResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1NotifyWorkersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ NotifyWorkersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1NotifyWorkersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return NotifyWorkersCommand;
38
+ }($Command));
39
+ export { NotifyWorkersCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { RejectAssignmentRequestFilterSensitiveLog, RejectAssignmentResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1RejectAssignmentCommand, serializeAws_json1_1RejectAssignmentCommand, } from "../protocols/Aws_json1_1";
5
- export class RejectAssignmentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RejectAssignmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: RejectAssignmentRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: RejectAssignmentResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1RejectAssignmentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RejectAssignmentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1RejectAssignmentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RejectAssignmentCommand;
38
+ }($Command));
39
+ export { RejectAssignmentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { RejectQualificationRequestRequestFilterSensitiveLog, RejectQualificationRequestResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1RejectQualificationRequestCommand, serializeAws_json1_1RejectQualificationRequestCommand, } from "../protocols/Aws_json1_1";
5
- export class RejectQualificationRequestCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RejectQualificationRequestCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: RejectQualificationRequestRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: RejectQualificationRequestResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1RejectQualificationRequestCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RejectQualificationRequestCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1RejectQualificationRequestCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RejectQualificationRequestCommand;
38
+ }($Command));
39
+ export { RejectQualificationRequestCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { SendBonusRequestFilterSensitiveLog, SendBonusResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1SendBonusCommand, serializeAws_json1_1SendBonusCommand } from "../protocols/Aws_json1_1";
5
- export class SendBonusCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SendBonusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: SendBonusRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SendBonusResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1SendBonusCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SendBonusCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1SendBonusCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SendBonusCommand;
38
+ }($Command));
39
+ export { SendBonusCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { SendTestEventNotificationRequestFilterSensitiveLog, SendTestEventNotificationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1SendTestEventNotificationCommand, serializeAws_json1_1SendTestEventNotificationCommand, } from "../protocols/Aws_json1_1";
5
- export class SendTestEventNotificationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ SendTestEventNotificationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: SendTestEventNotificationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: SendTestEventNotificationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1SendTestEventNotificationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ SendTestEventNotificationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1SendTestEventNotificationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return SendTestEventNotificationCommand;
38
+ }($Command));
39
+ export { SendTestEventNotificationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateExpirationForHITRequestFilterSensitiveLog, UpdateExpirationForHITResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateExpirationForHITCommand, serializeAws_json1_1UpdateExpirationForHITCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateExpirationForHITCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateExpirationForHITCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: UpdateExpirationForHITRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateExpirationForHITResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1UpdateExpirationForHITCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateExpirationForHITCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateExpirationForHITCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateExpirationForHITCommand;
38
+ }($Command));
39
+ export { UpdateExpirationForHITCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateHITReviewStatusRequestFilterSensitiveLog, UpdateHITReviewStatusResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateHITReviewStatusCommand, serializeAws_json1_1UpdateHITReviewStatusCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateHITReviewStatusCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateHITReviewStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: UpdateHITReviewStatusRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateHITReviewStatusResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1UpdateHITReviewStatusCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateHITReviewStatusCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateHITReviewStatusCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateHITReviewStatusCommand;
38
+ }($Command));
39
+ export { UpdateHITReviewStatusCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateHITTypeOfHITRequestFilterSensitiveLog, UpdateHITTypeOfHITResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateHITTypeOfHITCommand, serializeAws_json1_1UpdateHITTypeOfHITCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateHITTypeOfHITCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateHITTypeOfHITCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: UpdateHITTypeOfHITRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateHITTypeOfHITResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1UpdateHITTypeOfHITCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateHITTypeOfHITCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateHITTypeOfHITCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateHITTypeOfHITCommand;
38
+ }($Command));
39
+ export { UpdateHITTypeOfHITCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateNotificationSettingsRequestFilterSensitiveLog, UpdateNotificationSettingsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateNotificationSettingsCommand, serializeAws_json1_1UpdateNotificationSettingsCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateNotificationSettingsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateNotificationSettingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: UpdateNotificationSettingsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateNotificationSettingsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1UpdateNotificationSettingsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateNotificationSettingsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateNotificationSettingsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateNotificationSettingsCommand;
38
+ }($Command));
39
+ export { UpdateNotificationSettingsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateQualificationTypeRequestFilterSensitiveLog, UpdateQualificationTypeResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateQualificationTypeCommand, serializeAws_json1_1UpdateQualificationTypeCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateQualificationTypeCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateQualificationTypeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
20
23
  inputFilterSensitiveLog: UpdateQualificationTypeRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateQualificationTypeResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
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) {
27
32
  return serializeAws_json1_1UpdateQualificationTypeCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateQualificationTypeCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateQualificationTypeCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateQualificationTypeCommand;
38
+ }($Command));
39
+ export { UpdateQualificationTypeCommand };