@aws-sdk/client-mturk 3.478.0 → 3.481.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 (161) hide show
  1. package/dist-cjs/commands/AcceptQualificationRequestCommand.js +18 -41
  2. package/dist-cjs/commands/ApproveAssignmentCommand.js +18 -41
  3. package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js +18 -41
  4. package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +18 -41
  5. package/dist-cjs/commands/CreateHITCommand.js +18 -41
  6. package/dist-cjs/commands/CreateHITTypeCommand.js +18 -41
  7. package/dist-cjs/commands/CreateHITWithHITTypeCommand.js +18 -41
  8. package/dist-cjs/commands/CreateQualificationTypeCommand.js +18 -41
  9. package/dist-cjs/commands/CreateWorkerBlockCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteHITCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteQualificationTypeCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteWorkerBlockCommand.js +18 -41
  13. package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js +18 -41
  14. package/dist-cjs/commands/GetAccountBalanceCommand.js +18 -41
  15. package/dist-cjs/commands/GetAssignmentCommand.js +18 -41
  16. package/dist-cjs/commands/GetFileUploadURLCommand.js +18 -41
  17. package/dist-cjs/commands/GetHITCommand.js +18 -41
  18. package/dist-cjs/commands/GetQualificationScoreCommand.js +18 -41
  19. package/dist-cjs/commands/GetQualificationTypeCommand.js +18 -41
  20. package/dist-cjs/commands/ListAssignmentsForHITCommand.js +18 -41
  21. package/dist-cjs/commands/ListBonusPaymentsCommand.js +18 -41
  22. package/dist-cjs/commands/ListHITsCommand.js +18 -41
  23. package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js +18 -41
  24. package/dist-cjs/commands/ListQualificationRequestsCommand.js +18 -41
  25. package/dist-cjs/commands/ListQualificationTypesCommand.js +18 -41
  26. package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js +18 -41
  27. package/dist-cjs/commands/ListReviewableHITsCommand.js +18 -41
  28. package/dist-cjs/commands/ListWorkerBlocksCommand.js +18 -41
  29. package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js +18 -41
  30. package/dist-cjs/commands/NotifyWorkersCommand.js +18 -41
  31. package/dist-cjs/commands/RejectAssignmentCommand.js +18 -41
  32. package/dist-cjs/commands/RejectQualificationRequestCommand.js +18 -41
  33. package/dist-cjs/commands/SendBonusCommand.js +18 -41
  34. package/dist-cjs/commands/SendTestEventNotificationCommand.js +18 -41
  35. package/dist-cjs/commands/UpdateExpirationForHITCommand.js +18 -41
  36. package/dist-cjs/commands/UpdateHITReviewStatusCommand.js +18 -41
  37. package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js +18 -41
  38. package/dist-cjs/commands/UpdateNotificationSettingsCommand.js +18 -41
  39. package/dist-cjs/commands/UpdateQualificationTypeCommand.js +18 -41
  40. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  41. package/dist-es/commands/AcceptQualificationRequestCommand.js +18 -41
  42. package/dist-es/commands/ApproveAssignmentCommand.js +18 -41
  43. package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +18 -41
  44. package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +18 -41
  45. package/dist-es/commands/CreateHITCommand.js +18 -41
  46. package/dist-es/commands/CreateHITTypeCommand.js +18 -41
  47. package/dist-es/commands/CreateHITWithHITTypeCommand.js +18 -41
  48. package/dist-es/commands/CreateQualificationTypeCommand.js +18 -41
  49. package/dist-es/commands/CreateWorkerBlockCommand.js +18 -41
  50. package/dist-es/commands/DeleteHITCommand.js +18 -41
  51. package/dist-es/commands/DeleteQualificationTypeCommand.js +18 -41
  52. package/dist-es/commands/DeleteWorkerBlockCommand.js +18 -41
  53. package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +18 -41
  54. package/dist-es/commands/GetAccountBalanceCommand.js +18 -41
  55. package/dist-es/commands/GetAssignmentCommand.js +18 -41
  56. package/dist-es/commands/GetFileUploadURLCommand.js +18 -41
  57. package/dist-es/commands/GetHITCommand.js +18 -41
  58. package/dist-es/commands/GetQualificationScoreCommand.js +18 -41
  59. package/dist-es/commands/GetQualificationTypeCommand.js +18 -41
  60. package/dist-es/commands/ListAssignmentsForHITCommand.js +18 -41
  61. package/dist-es/commands/ListBonusPaymentsCommand.js +18 -41
  62. package/dist-es/commands/ListHITsCommand.js +18 -41
  63. package/dist-es/commands/ListHITsForQualificationTypeCommand.js +18 -41
  64. package/dist-es/commands/ListQualificationRequestsCommand.js +18 -41
  65. package/dist-es/commands/ListQualificationTypesCommand.js +18 -41
  66. package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +18 -41
  67. package/dist-es/commands/ListReviewableHITsCommand.js +18 -41
  68. package/dist-es/commands/ListWorkerBlocksCommand.js +18 -41
  69. package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +18 -41
  70. package/dist-es/commands/NotifyWorkersCommand.js +18 -41
  71. package/dist-es/commands/RejectAssignmentCommand.js +18 -41
  72. package/dist-es/commands/RejectQualificationRequestCommand.js +18 -41
  73. package/dist-es/commands/SendBonusCommand.js +18 -41
  74. package/dist-es/commands/SendTestEventNotificationCommand.js +18 -41
  75. package/dist-es/commands/UpdateExpirationForHITCommand.js +18 -41
  76. package/dist-es/commands/UpdateHITReviewStatusCommand.js +18 -41
  77. package/dist-es/commands/UpdateHITTypeOfHITCommand.js +18 -41
  78. package/dist-es/commands/UpdateNotificationSettingsCommand.js +18 -41
  79. package/dist-es/commands/UpdateQualificationTypeCommand.js +18 -41
  80. package/dist-es/endpoint/EndpointParameters.js +6 -0
  81. package/dist-types/commands/AcceptQualificationRequestCommand.d.ts +6 -21
  82. package/dist-types/commands/ApproveAssignmentCommand.d.ts +6 -21
  83. package/dist-types/commands/AssociateQualificationWithWorkerCommand.d.ts +6 -21
  84. package/dist-types/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +6 -21
  85. package/dist-types/commands/CreateHITCommand.d.ts +6 -21
  86. package/dist-types/commands/CreateHITTypeCommand.d.ts +6 -21
  87. package/dist-types/commands/CreateHITWithHITTypeCommand.d.ts +6 -21
  88. package/dist-types/commands/CreateQualificationTypeCommand.d.ts +6 -21
  89. package/dist-types/commands/CreateWorkerBlockCommand.d.ts +6 -21
  90. package/dist-types/commands/DeleteHITCommand.d.ts +6 -21
  91. package/dist-types/commands/DeleteQualificationTypeCommand.d.ts +6 -21
  92. package/dist-types/commands/DeleteWorkerBlockCommand.d.ts +6 -21
  93. package/dist-types/commands/DisassociateQualificationFromWorkerCommand.d.ts +6 -21
  94. package/dist-types/commands/GetAccountBalanceCommand.d.ts +6 -21
  95. package/dist-types/commands/GetAssignmentCommand.d.ts +6 -21
  96. package/dist-types/commands/GetFileUploadURLCommand.d.ts +6 -21
  97. package/dist-types/commands/GetHITCommand.d.ts +6 -21
  98. package/dist-types/commands/GetQualificationScoreCommand.d.ts +6 -21
  99. package/dist-types/commands/GetQualificationTypeCommand.d.ts +6 -21
  100. package/dist-types/commands/ListAssignmentsForHITCommand.d.ts +6 -21
  101. package/dist-types/commands/ListBonusPaymentsCommand.d.ts +6 -21
  102. package/dist-types/commands/ListHITsCommand.d.ts +6 -21
  103. package/dist-types/commands/ListHITsForQualificationTypeCommand.d.ts +6 -21
  104. package/dist-types/commands/ListQualificationRequestsCommand.d.ts +6 -21
  105. package/dist-types/commands/ListQualificationTypesCommand.d.ts +6 -21
  106. package/dist-types/commands/ListReviewPolicyResultsForHITCommand.d.ts +6 -21
  107. package/dist-types/commands/ListReviewableHITsCommand.d.ts +6 -21
  108. package/dist-types/commands/ListWorkerBlocksCommand.d.ts +6 -21
  109. package/dist-types/commands/ListWorkersWithQualificationTypeCommand.d.ts +6 -21
  110. package/dist-types/commands/NotifyWorkersCommand.d.ts +6 -21
  111. package/dist-types/commands/RejectAssignmentCommand.d.ts +6 -21
  112. package/dist-types/commands/RejectQualificationRequestCommand.d.ts +6 -21
  113. package/dist-types/commands/SendBonusCommand.d.ts +6 -21
  114. package/dist-types/commands/SendTestEventNotificationCommand.d.ts +6 -21
  115. package/dist-types/commands/UpdateExpirationForHITCommand.d.ts +6 -21
  116. package/dist-types/commands/UpdateHITReviewStatusCommand.d.ts +6 -21
  117. package/dist-types/commands/UpdateHITTypeOfHITCommand.d.ts +6 -21
  118. package/dist-types/commands/UpdateNotificationSettingsCommand.d.ts +6 -21
  119. package/dist-types/commands/UpdateQualificationTypeCommand.d.ts +6 -21
  120. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  121. package/dist-types/ts3.4/commands/AcceptQualificationRequestCommand.d.ts +12 -24
  122. package/dist-types/ts3.4/commands/ApproveAssignmentCommand.d.ts +14 -23
  123. package/dist-types/ts3.4/commands/AssociateQualificationWithWorkerCommand.d.ts +12 -24
  124. package/dist-types/ts3.4/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +12 -24
  125. package/dist-types/ts3.4/commands/CreateHITCommand.d.ts +14 -23
  126. package/dist-types/ts3.4/commands/CreateHITTypeCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/CreateHITWithHITTypeCommand.d.ts +12 -24
  128. package/dist-types/ts3.4/commands/CreateQualificationTypeCommand.d.ts +12 -24
  129. package/dist-types/ts3.4/commands/CreateWorkerBlockCommand.d.ts +14 -23
  130. package/dist-types/ts3.4/commands/DeleteHITCommand.d.ts +14 -23
  131. package/dist-types/ts3.4/commands/DeleteQualificationTypeCommand.d.ts +12 -24
  132. package/dist-types/ts3.4/commands/DeleteWorkerBlockCommand.d.ts +14 -23
  133. package/dist-types/ts3.4/commands/DisassociateQualificationFromWorkerCommand.d.ts +12 -24
  134. package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +14 -23
  135. package/dist-types/ts3.4/commands/GetAssignmentCommand.d.ts +14 -23
  136. package/dist-types/ts3.4/commands/GetFileUploadURLCommand.d.ts +14 -23
  137. package/dist-types/ts3.4/commands/GetHITCommand.d.ts +12 -23
  138. package/dist-types/ts3.4/commands/GetQualificationScoreCommand.d.ts +12 -24
  139. package/dist-types/ts3.4/commands/GetQualificationTypeCommand.d.ts +12 -24
  140. package/dist-types/ts3.4/commands/ListAssignmentsForHITCommand.d.ts +12 -24
  141. package/dist-types/ts3.4/commands/ListBonusPaymentsCommand.d.ts +14 -23
  142. package/dist-types/ts3.4/commands/ListHITsCommand.d.ts +14 -23
  143. package/dist-types/ts3.4/commands/ListHITsForQualificationTypeCommand.d.ts +12 -24
  144. package/dist-types/ts3.4/commands/ListQualificationRequestsCommand.d.ts +12 -24
  145. package/dist-types/ts3.4/commands/ListQualificationTypesCommand.d.ts +12 -24
  146. package/dist-types/ts3.4/commands/ListReviewPolicyResultsForHITCommand.d.ts +12 -24
  147. package/dist-types/ts3.4/commands/ListReviewableHITsCommand.d.ts +14 -23
  148. package/dist-types/ts3.4/commands/ListWorkerBlocksCommand.d.ts +14 -23
  149. package/dist-types/ts3.4/commands/ListWorkersWithQualificationTypeCommand.d.ts +12 -24
  150. package/dist-types/ts3.4/commands/NotifyWorkersCommand.d.ts +14 -23
  151. package/dist-types/ts3.4/commands/RejectAssignmentCommand.d.ts +14 -23
  152. package/dist-types/ts3.4/commands/RejectQualificationRequestCommand.d.ts +12 -24
  153. package/dist-types/ts3.4/commands/SendBonusCommand.d.ts +14 -23
  154. package/dist-types/ts3.4/commands/SendTestEventNotificationCommand.d.ts +12 -24
  155. package/dist-types/ts3.4/commands/UpdateExpirationForHITCommand.d.ts +12 -24
  156. package/dist-types/ts3.4/commands/UpdateHITReviewStatusCommand.d.ts +12 -24
  157. package/dist-types/ts3.4/commands/UpdateHITTypeOfHITCommand.d.ts +14 -23
  158. package/dist-types/ts3.4/commands/UpdateNotificationSettingsCommand.d.ts +12 -24
  159. package/dist-types/ts3.4/commands/UpdateQualificationTypeCommand.d.ts +12 -24
  160. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  161. package/package.json +9 -9
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_SendTestEventNotificationCommand, se_SendTestEventNotificationCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class SendTestEventNotificationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SendTestEventNotificationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MTurkClient";
26
- const commandName = "SendTestEventNotificationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MTurkRequesterServiceV20170117",
35
- operation: "SendTestEventNotification",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SendTestEventNotificationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SendTestEventNotificationCommand(output, context);
46
- }
7
+ export class SendTestEventNotificationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MTurkRequesterServiceV20170117", "SendTestEventNotification", {})
19
+ .n("MTurkClient", "SendTestEventNotificationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SendTestEventNotificationCommand)
22
+ .de(de_SendTestEventNotificationCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateExpirationForHITCommand, se_UpdateExpirationForHITCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateExpirationForHITCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateExpirationForHITCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MTurkClient";
26
- const commandName = "UpdateExpirationForHITCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MTurkRequesterServiceV20170117",
35
- operation: "UpdateExpirationForHIT",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateExpirationForHITCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateExpirationForHITCommand(output, context);
46
- }
7
+ export class UpdateExpirationForHITCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MTurkRequesterServiceV20170117", "UpdateExpirationForHIT", {})
19
+ .n("MTurkClient", "UpdateExpirationForHITCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateExpirationForHITCommand)
22
+ .de(de_UpdateExpirationForHITCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateHITReviewStatusCommand, se_UpdateHITReviewStatusCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateHITReviewStatusCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateHITReviewStatusCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MTurkClient";
26
- const commandName = "UpdateHITReviewStatusCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MTurkRequesterServiceV20170117",
35
- operation: "UpdateHITReviewStatus",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateHITReviewStatusCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateHITReviewStatusCommand(output, context);
46
- }
7
+ export class UpdateHITReviewStatusCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MTurkRequesterServiceV20170117", "UpdateHITReviewStatus", {})
19
+ .n("MTurkClient", "UpdateHITReviewStatusCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateHITReviewStatusCommand)
22
+ .de(de_UpdateHITReviewStatusCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateHITTypeOfHITCommand, se_UpdateHITTypeOfHITCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateHITTypeOfHITCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateHITTypeOfHITCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MTurkClient";
26
- const commandName = "UpdateHITTypeOfHITCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MTurkRequesterServiceV20170117",
35
- operation: "UpdateHITTypeOfHIT",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateHITTypeOfHITCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateHITTypeOfHITCommand(output, context);
46
- }
7
+ export class UpdateHITTypeOfHITCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MTurkRequesterServiceV20170117", "UpdateHITTypeOfHIT", {})
19
+ .n("MTurkClient", "UpdateHITTypeOfHITCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateHITTypeOfHITCommand)
22
+ .de(de_UpdateHITTypeOfHITCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateNotificationSettingsCommand, se_UpdateNotificationSettingsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateNotificationSettingsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateNotificationSettingsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MTurkClient";
26
- const commandName = "UpdateNotificationSettingsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MTurkRequesterServiceV20170117",
35
- operation: "UpdateNotificationSettings",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateNotificationSettingsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateNotificationSettingsCommand(output, context);
46
- }
7
+ export class UpdateNotificationSettingsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MTurkRequesterServiceV20170117", "UpdateNotificationSettings", {})
19
+ .n("MTurkClient", "UpdateNotificationSettingsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateNotificationSettingsCommand)
22
+ .de(de_UpdateNotificationSettingsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateQualificationTypeCommand, se_UpdateQualificationTypeCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateQualificationTypeCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateQualificationTypeCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MTurkClient";
26
- const commandName = "UpdateQualificationTypeCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MTurkRequesterServiceV20170117",
35
- operation: "UpdateQualificationType",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateQualificationTypeCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateQualificationTypeCommand(output, context);
46
- }
7
+ export class UpdateQualificationTypeCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MTurkRequesterServiceV20170117", "UpdateQualificationType", {})
19
+ .n("MTurkClient", "UpdateQualificationTypeCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateQualificationTypeCommand)
22
+ .de(de_UpdateQualificationTypeCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "mturk-requester",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AcceptQualificationRequestRequest, AcceptQualificationRequestResponse } from "../models/models_0";
5
4
  import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AcceptQualificationRequestCommandInput extends AcceptQualificat
21
20
  */
22
21
  export interface AcceptQualificationRequestCommandOutput extends AcceptQualificationRequestResponse, __MetadataBearer {
23
22
  }
23
+ declare const AcceptQualificationRequestCommand_base: {
24
+ new (input: AcceptQualificationRequestCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptQualificationRequestCommandInput, AcceptQualificationRequestCommandOutput, MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -65,23 +68,5 @@ export interface AcceptQualificationRequestCommandOutput extends AcceptQualifica
65
68
  * <p>Base exception class for all service exceptions from MTurk service.</p>
66
69
  *
67
70
  */
68
- export declare class AcceptQualificationRequestCommand extends $Command<AcceptQualificationRequestCommandInput, AcceptQualificationRequestCommandOutput, MTurkClientResolvedConfig> {
69
- readonly input: AcceptQualificationRequestCommandInput;
70
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
71
- /**
72
- * @public
73
- */
74
- constructor(input: AcceptQualificationRequestCommandInput);
75
- /**
76
- * @internal
77
- */
78
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AcceptQualificationRequestCommandInput, AcceptQualificationRequestCommandOutput>;
79
- /**
80
- * @internal
81
- */
82
- private serialize;
83
- /**
84
- * @internal
85
- */
86
- private deserialize;
71
+ export declare class AcceptQualificationRequestCommand extends AcceptQualificationRequestCommand_base {
87
72
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { ApproveAssignmentRequest, ApproveAssignmentResponse } from "../models/models_0";
5
4
  import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface ApproveAssignmentCommandInput extends ApproveAssignmentRequest
21
20
  */
22
21
  export interface ApproveAssignmentCommandOutput extends ApproveAssignmentResponse, __MetadataBearer {
23
22
  }
23
+ declare const ApproveAssignmentCommand_base: {
24
+ new (input: ApproveAssignmentCommandInput): import("@smithy/smithy-client").CommandImpl<ApproveAssignmentCommandInput, ApproveAssignmentCommandOutput, MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -86,23 +89,5 @@ export interface ApproveAssignmentCommandOutput extends ApproveAssignmentRespons
86
89
  * <p>Base exception class for all service exceptions from MTurk service.</p>
87
90
  *
88
91
  */
89
- export declare class ApproveAssignmentCommand extends $Command<ApproveAssignmentCommandInput, ApproveAssignmentCommandOutput, MTurkClientResolvedConfig> {
90
- readonly input: ApproveAssignmentCommandInput;
91
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
92
- /**
93
- * @public
94
- */
95
- constructor(input: ApproveAssignmentCommandInput);
96
- /**
97
- * @internal
98
- */
99
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ApproveAssignmentCommandInput, ApproveAssignmentCommandOutput>;
100
- /**
101
- * @internal
102
- */
103
- private serialize;
104
- /**
105
- * @internal
106
- */
107
- private deserialize;
92
+ export declare class ApproveAssignmentCommand extends ApproveAssignmentCommand_base {
108
93
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AssociateQualificationWithWorkerRequest, AssociateQualificationWithWorkerResponse } from "../models/models_0";
5
4
  import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AssociateQualificationWithWorkerCommandInput extends AssociateQ
21
20
  */
22
21
  export interface AssociateQualificationWithWorkerCommandOutput extends AssociateQualificationWithWorkerResponse, __MetadataBearer {
23
22
  }
23
+ declare const AssociateQualificationWithWorkerCommand_base: {
24
+ new (input: AssociateQualificationWithWorkerCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateQualificationWithWorkerCommandInput, AssociateQualificationWithWorkerCommandOutput, MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -78,23 +81,5 @@ export interface AssociateQualificationWithWorkerCommandOutput extends Associate
78
81
  * <p>Base exception class for all service exceptions from MTurk service.</p>
79
82
  *
80
83
  */
81
- export declare class AssociateQualificationWithWorkerCommand extends $Command<AssociateQualificationWithWorkerCommandInput, AssociateQualificationWithWorkerCommandOutput, MTurkClientResolvedConfig> {
82
- readonly input: AssociateQualificationWithWorkerCommandInput;
83
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
84
- /**
85
- * @public
86
- */
87
- constructor(input: AssociateQualificationWithWorkerCommandInput);
88
- /**
89
- * @internal
90
- */
91
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateQualificationWithWorkerCommandInput, AssociateQualificationWithWorkerCommandOutput>;
92
- /**
93
- * @internal
94
- */
95
- private serialize;
96
- /**
97
- * @internal
98
- */
99
- private deserialize;
84
+ export declare class AssociateQualificationWithWorkerCommand extends AssociateQualificationWithWorkerCommand_base {
100
85
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateAdditionalAssignmentsForHITRequest, CreateAdditionalAssignmentsForHITResponse } from "../models/models_0";
5
4
  import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateAdditionalAssignmentsForHITCommandInput extends CreateAdd
21
20
  */
22
21
  export interface CreateAdditionalAssignmentsForHITCommandOutput extends CreateAdditionalAssignmentsForHITResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateAdditionalAssignmentsForHITCommand_base: {
24
+ new (input: CreateAdditionalAssignmentsForHITCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAdditionalAssignmentsForHITCommandInput, CreateAdditionalAssignmentsForHITCommandOutput, MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>
@@ -79,23 +82,5 @@ export interface CreateAdditionalAssignmentsForHITCommandOutput extends CreateAd
79
82
  * <p>Base exception class for all service exceptions from MTurk service.</p>
80
83
  *
81
84
  */
82
- export declare class CreateAdditionalAssignmentsForHITCommand extends $Command<CreateAdditionalAssignmentsForHITCommandInput, CreateAdditionalAssignmentsForHITCommandOutput, MTurkClientResolvedConfig> {
83
- readonly input: CreateAdditionalAssignmentsForHITCommandInput;
84
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
- /**
86
- * @public
87
- */
88
- constructor(input: CreateAdditionalAssignmentsForHITCommandInput);
89
- /**
90
- * @internal
91
- */
92
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAdditionalAssignmentsForHITCommandInput, CreateAdditionalAssignmentsForHITCommandOutput>;
93
- /**
94
- * @internal
95
- */
96
- private serialize;
97
- /**
98
- * @internal
99
- */
100
- private deserialize;
85
+ export declare class CreateAdditionalAssignmentsForHITCommand extends CreateAdditionalAssignmentsForHITCommand_base {
101
86
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateHITRequest, CreateHITResponse } from "../models/models_0";
5
4
  import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateHITCommandInput extends CreateHITRequest {
21
20
  */
22
21
  export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateHITCommand_base: {
24
+ new (input: CreateHITCommandInput): import("@smithy/smithy-client").CommandImpl<CreateHITCommandInput, CreateHITCommandOutput, MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>The <code>CreateHIT</code> operation creates a new Human Intelligence Task (HIT).
@@ -183,23 +186,5 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
183
186
  * <p>Base exception class for all service exceptions from MTurk service.</p>
184
187
  *
185
188
  */
186
- export declare class CreateHITCommand extends $Command<CreateHITCommandInput, CreateHITCommandOutput, MTurkClientResolvedConfig> {
187
- readonly input: CreateHITCommandInput;
188
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
189
- /**
190
- * @public
191
- */
192
- constructor(input: CreateHITCommandInput);
193
- /**
194
- * @internal
195
- */
196
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MTurkClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateHITCommandInput, CreateHITCommandOutput>;
197
- /**
198
- * @internal
199
- */
200
- private serialize;
201
- /**
202
- * @internal
203
- */
204
- private deserialize;
189
+ export declare class CreateHITCommand extends CreateHITCommand_base {
205
190
  }