@aws-sdk/client-mturk 3.35.0 → 3.38.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 (367) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/MTurk.js +0 -4
  3. package/dist-cjs/MTurkClient.js +0 -9
  4. package/dist-cjs/commands/AcceptQualificationRequestCommand.js +0 -34
  5. package/dist-cjs/commands/ApproveAssignmentCommand.js +0 -54
  6. package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js +0 -45
  7. package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +0 -47
  8. package/dist-cjs/commands/CreateHITCommand.js +0 -41
  9. package/dist-cjs/commands/CreateHITTypeCommand.js +0 -30
  10. package/dist-cjs/commands/CreateHITWithHITTypeCommand.js +0 -42
  11. package/dist-cjs/commands/CreateQualificationTypeCommand.js +0 -31
  12. package/dist-cjs/commands/CreateWorkerBlockCommand.js +0 -25
  13. package/dist-cjs/commands/DeleteHITCommand.js +0 -60
  14. package/dist-cjs/commands/DeleteQualificationTypeCommand.js +0 -43
  15. package/dist-cjs/commands/DeleteWorkerBlockCommand.js +0 -25
  16. package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js +0 -32
  17. package/dist-cjs/commands/GetAccountBalanceCommand.js +0 -27
  18. package/dist-cjs/commands/GetAssignmentCommand.js +0 -27
  19. package/dist-cjs/commands/GetFileUploadURLCommand.js +0 -42
  20. package/dist-cjs/commands/GetHITCommand.js +0 -27
  21. package/dist-cjs/commands/GetQualificationScoreCommand.js +0 -38
  22. package/dist-cjs/commands/GetQualificationTypeCommand.js +0 -27
  23. package/dist-cjs/commands/ListAssignmentsForHITCommand.js +0 -51
  24. package/dist-cjs/commands/ListBonusPaymentsCommand.js +0 -30
  25. package/dist-cjs/commands/ListHITsCommand.js +0 -31
  26. package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js +0 -30
  27. package/dist-cjs/commands/ListQualificationRequestsCommand.js +0 -32
  28. package/dist-cjs/commands/ListQualificationTypesCommand.js +0 -30
  29. package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js +0 -31
  30. package/dist-cjs/commands/ListReviewableHITsCommand.js +0 -28
  31. package/dist-cjs/commands/ListWorkerBlocksCommand.js +0 -25
  32. package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js +0 -28
  33. package/dist-cjs/commands/NotifyWorkersCommand.js +0 -34
  34. package/dist-cjs/commands/RejectAssignmentCommand.js +0 -37
  35. package/dist-cjs/commands/RejectQualificationRequestCommand.js +0 -31
  36. package/dist-cjs/commands/SendBonusCommand.js +0 -38
  37. package/dist-cjs/commands/SendTestEventNotificationCommand.js +0 -31
  38. package/dist-cjs/commands/UpdateExpirationForHITCommand.js +0 -28
  39. package/dist-cjs/commands/UpdateHITReviewStatusCommand.js +0 -29
  40. package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js +0 -32
  41. package/dist-cjs/commands/UpdateNotificationSettingsCommand.js +0 -36
  42. package/dist-cjs/commands/UpdateQualificationTypeCommand.js +0 -57
  43. package/dist-cjs/commands/index.js +42 -0
  44. package/dist-cjs/endpoints.js +1 -2
  45. package/dist-cjs/index.js +4 -53
  46. package/dist-cjs/models/index.js +0 -1
  47. package/dist-cjs/models/models_0.js +0 -295
  48. package/dist-cjs/pagination/Interfaces.js +0 -1
  49. package/dist-cjs/pagination/ListAssignmentsForHITPaginator.js +0 -11
  50. package/dist-cjs/pagination/ListBonusPaymentsPaginator.js +0 -11
  51. package/dist-cjs/pagination/ListHITsForQualificationTypePaginator.js +0 -11
  52. package/dist-cjs/pagination/ListHITsPaginator.js +0 -11
  53. package/dist-cjs/pagination/ListQualificationRequestsPaginator.js +0 -11
  54. package/dist-cjs/pagination/ListQualificationTypesPaginator.js +0 -11
  55. package/dist-cjs/pagination/ListReviewPolicyResultsForHITPaginator.js +0 -11
  56. package/dist-cjs/pagination/ListReviewableHITsPaginator.js +0 -11
  57. package/dist-cjs/pagination/ListWorkerBlocksPaginator.js +0 -11
  58. package/dist-cjs/pagination/ListWorkersWithQualificationTypePaginator.js +0 -11
  59. package/dist-cjs/pagination/index.js +14 -0
  60. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  61. package/dist-cjs/runtimeConfig.browser.js +1 -6
  62. package/dist-cjs/runtimeConfig.js +2 -7
  63. package/dist-cjs/runtimeConfig.native.js +0 -4
  64. package/dist-cjs/runtimeConfig.shared.js +0 -4
  65. package/dist-es/MTurk.js +0 -1
  66. package/dist-es/MTurkClient.js +0 -1
  67. package/dist-es/commands/AcceptQualificationRequestCommand.js +0 -1
  68. package/dist-es/commands/ApproveAssignmentCommand.js +0 -1
  69. package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +0 -1
  70. package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +0 -1
  71. package/dist-es/commands/CreateHITCommand.js +0 -1
  72. package/dist-es/commands/CreateHITTypeCommand.js +0 -1
  73. package/dist-es/commands/CreateHITWithHITTypeCommand.js +0 -1
  74. package/dist-es/commands/CreateQualificationTypeCommand.js +0 -1
  75. package/dist-es/commands/CreateWorkerBlockCommand.js +0 -1
  76. package/dist-es/commands/DeleteHITCommand.js +0 -1
  77. package/dist-es/commands/DeleteQualificationTypeCommand.js +0 -1
  78. package/dist-es/commands/DeleteWorkerBlockCommand.js +0 -1
  79. package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +0 -1
  80. package/dist-es/commands/GetAccountBalanceCommand.js +0 -1
  81. package/dist-es/commands/GetAssignmentCommand.js +0 -1
  82. package/dist-es/commands/GetFileUploadURLCommand.js +0 -1
  83. package/dist-es/commands/GetHITCommand.js +0 -1
  84. package/dist-es/commands/GetQualificationScoreCommand.js +0 -1
  85. package/dist-es/commands/GetQualificationTypeCommand.js +0 -1
  86. package/dist-es/commands/ListAssignmentsForHITCommand.js +0 -1
  87. package/dist-es/commands/ListBonusPaymentsCommand.js +0 -1
  88. package/dist-es/commands/ListHITsCommand.js +0 -1
  89. package/dist-es/commands/ListHITsForQualificationTypeCommand.js +0 -1
  90. package/dist-es/commands/ListQualificationRequestsCommand.js +0 -1
  91. package/dist-es/commands/ListQualificationTypesCommand.js +0 -1
  92. package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +0 -1
  93. package/dist-es/commands/ListReviewableHITsCommand.js +0 -1
  94. package/dist-es/commands/ListWorkerBlocksCommand.js +0 -1
  95. package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +0 -1
  96. package/dist-es/commands/NotifyWorkersCommand.js +0 -1
  97. package/dist-es/commands/RejectAssignmentCommand.js +0 -1
  98. package/dist-es/commands/RejectQualificationRequestCommand.js +0 -1
  99. package/dist-es/commands/SendBonusCommand.js +0 -1
  100. package/dist-es/commands/SendTestEventNotificationCommand.js +0 -1
  101. package/dist-es/commands/UpdateExpirationForHITCommand.js +0 -1
  102. package/dist-es/commands/UpdateHITReviewStatusCommand.js +0 -1
  103. package/dist-es/commands/UpdateHITTypeOfHITCommand.js +0 -1
  104. package/dist-es/commands/UpdateNotificationSettingsCommand.js +0 -1
  105. package/dist-es/commands/UpdateQualificationTypeCommand.js +0 -1
  106. package/dist-es/commands/index.js +39 -0
  107. package/dist-es/endpoints.js +1 -2
  108. package/dist-es/index.js +4 -53
  109. package/dist-es/models/index.js +0 -1
  110. package/dist-es/models/models_0.js +0 -1
  111. package/dist-es/pagination/Interfaces.js +0 -1
  112. package/dist-es/pagination/ListAssignmentsForHITPaginator.js +0 -1
  113. package/dist-es/pagination/ListBonusPaymentsPaginator.js +0 -1
  114. package/dist-es/pagination/ListHITsForQualificationTypePaginator.js +0 -1
  115. package/dist-es/pagination/ListHITsPaginator.js +0 -1
  116. package/dist-es/pagination/ListQualificationRequestsPaginator.js +0 -1
  117. package/dist-es/pagination/ListQualificationTypesPaginator.js +0 -1
  118. package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js +0 -1
  119. package/dist-es/pagination/ListReviewableHITsPaginator.js +0 -1
  120. package/dist-es/pagination/ListWorkerBlocksPaginator.js +0 -1
  121. package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js +0 -1
  122. package/dist-es/pagination/index.js +11 -0
  123. package/dist-es/protocols/Aws_json1_1.js +0 -1
  124. package/dist-es/runtimeConfig.browser.js +1 -2
  125. package/dist-es/runtimeConfig.js +2 -3
  126. package/dist-es/runtimeConfig.native.js +0 -1
  127. package/dist-es/runtimeConfig.shared.js +0 -1
  128. package/dist-types/commands/index.d.ts +39 -0
  129. package/dist-types/index.d.ts +4 -52
  130. package/dist-types/pagination/index.d.ts +11 -0
  131. package/dist-types/ts3.4/MTurk.d.ts +40 -511
  132. package/dist-types/ts3.4/MTurkClient.d.ts +24 -89
  133. package/dist-types/ts3.4/commands/AcceptQualificationRequestCommand.d.ts +2 -29
  134. package/dist-types/ts3.4/commands/ApproveAssignmentCommand.d.ts +2 -49
  135. package/dist-types/ts3.4/commands/AssociateQualificationWithWorkerCommand.d.ts +2 -40
  136. package/dist-types/ts3.4/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +2 -42
  137. package/dist-types/ts3.4/commands/CreateHITCommand.d.ts +2 -36
  138. package/dist-types/ts3.4/commands/CreateHITTypeCommand.d.ts +2 -25
  139. package/dist-types/ts3.4/commands/CreateHITWithHITTypeCommand.d.ts +2 -37
  140. package/dist-types/ts3.4/commands/CreateQualificationTypeCommand.d.ts +2 -26
  141. package/dist-types/ts3.4/commands/CreateWorkerBlockCommand.d.ts +2 -20
  142. package/dist-types/ts3.4/commands/DeleteHITCommand.d.ts +2 -55
  143. package/dist-types/ts3.4/commands/DeleteQualificationTypeCommand.d.ts +2 -38
  144. package/dist-types/ts3.4/commands/DeleteWorkerBlockCommand.d.ts +2 -20
  145. package/dist-types/ts3.4/commands/DisassociateQualificationFromWorkerCommand.d.ts +2 -27
  146. package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +2 -22
  147. package/dist-types/ts3.4/commands/GetAssignmentCommand.d.ts +2 -22
  148. package/dist-types/ts3.4/commands/GetFileUploadURLCommand.d.ts +2 -37
  149. package/dist-types/ts3.4/commands/GetHITCommand.d.ts +2 -22
  150. package/dist-types/ts3.4/commands/GetQualificationScoreCommand.d.ts +2 -33
  151. package/dist-types/ts3.4/commands/GetQualificationTypeCommand.d.ts +2 -22
  152. package/dist-types/ts3.4/commands/ListAssignmentsForHITCommand.d.ts +2 -46
  153. package/dist-types/ts3.4/commands/ListBonusPaymentsCommand.d.ts +2 -25
  154. package/dist-types/ts3.4/commands/ListHITsCommand.d.ts +2 -26
  155. package/dist-types/ts3.4/commands/ListHITsForQualificationTypeCommand.d.ts +2 -25
  156. package/dist-types/ts3.4/commands/ListQualificationRequestsCommand.d.ts +2 -27
  157. package/dist-types/ts3.4/commands/ListQualificationTypesCommand.d.ts +2 -25
  158. package/dist-types/ts3.4/commands/ListReviewPolicyResultsForHITCommand.d.ts +2 -26
  159. package/dist-types/ts3.4/commands/ListReviewableHITsCommand.d.ts +2 -23
  160. package/dist-types/ts3.4/commands/ListWorkerBlocksCommand.d.ts +2 -20
  161. package/dist-types/ts3.4/commands/ListWorkersWithQualificationTypeCommand.d.ts +2 -23
  162. package/dist-types/ts3.4/commands/NotifyWorkersCommand.d.ts +2 -29
  163. package/dist-types/ts3.4/commands/RejectAssignmentCommand.d.ts +2 -32
  164. package/dist-types/ts3.4/commands/RejectQualificationRequestCommand.d.ts +2 -26
  165. package/dist-types/ts3.4/commands/SendBonusCommand.d.ts +2 -33
  166. package/dist-types/ts3.4/commands/SendTestEventNotificationCommand.d.ts +2 -26
  167. package/dist-types/ts3.4/commands/UpdateExpirationForHITCommand.d.ts +2 -23
  168. package/dist-types/ts3.4/commands/UpdateHITReviewStatusCommand.d.ts +2 -24
  169. package/dist-types/ts3.4/commands/UpdateHITTypeOfHITCommand.d.ts +2 -27
  170. package/dist-types/ts3.4/commands/UpdateNotificationSettingsCommand.d.ts +2 -31
  171. package/dist-types/ts3.4/commands/UpdateQualificationTypeCommand.d.ts +2 -52
  172. package/dist-types/ts3.4/commands/index.d.ts +39 -0
  173. package/dist-types/ts3.4/index.d.ts +4 -52
  174. package/dist-types/ts3.4/models/models_0.d.ts +406 -1941
  175. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  176. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  177. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  178. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  179. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  180. package/package.json +33 -30
  181. package/dist-cjs/MTurk.js.map +0 -1
  182. package/dist-cjs/MTurkClient.js.map +0 -1
  183. package/dist-cjs/commands/AcceptQualificationRequestCommand.js.map +0 -1
  184. package/dist-cjs/commands/ApproveAssignmentCommand.js.map +0 -1
  185. package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js.map +0 -1
  186. package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js.map +0 -1
  187. package/dist-cjs/commands/CreateHITCommand.js.map +0 -1
  188. package/dist-cjs/commands/CreateHITTypeCommand.js.map +0 -1
  189. package/dist-cjs/commands/CreateHITWithHITTypeCommand.js.map +0 -1
  190. package/dist-cjs/commands/CreateQualificationTypeCommand.js.map +0 -1
  191. package/dist-cjs/commands/CreateWorkerBlockCommand.js.map +0 -1
  192. package/dist-cjs/commands/DeleteHITCommand.js.map +0 -1
  193. package/dist-cjs/commands/DeleteQualificationTypeCommand.js.map +0 -1
  194. package/dist-cjs/commands/DeleteWorkerBlockCommand.js.map +0 -1
  195. package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js.map +0 -1
  196. package/dist-cjs/commands/GetAccountBalanceCommand.js.map +0 -1
  197. package/dist-cjs/commands/GetAssignmentCommand.js.map +0 -1
  198. package/dist-cjs/commands/GetFileUploadURLCommand.js.map +0 -1
  199. package/dist-cjs/commands/GetHITCommand.js.map +0 -1
  200. package/dist-cjs/commands/GetQualificationScoreCommand.js.map +0 -1
  201. package/dist-cjs/commands/GetQualificationTypeCommand.js.map +0 -1
  202. package/dist-cjs/commands/ListAssignmentsForHITCommand.js.map +0 -1
  203. package/dist-cjs/commands/ListBonusPaymentsCommand.js.map +0 -1
  204. package/dist-cjs/commands/ListHITsCommand.js.map +0 -1
  205. package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js.map +0 -1
  206. package/dist-cjs/commands/ListQualificationRequestsCommand.js.map +0 -1
  207. package/dist-cjs/commands/ListQualificationTypesCommand.js.map +0 -1
  208. package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js.map +0 -1
  209. package/dist-cjs/commands/ListReviewableHITsCommand.js.map +0 -1
  210. package/dist-cjs/commands/ListWorkerBlocksCommand.js.map +0 -1
  211. package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js.map +0 -1
  212. package/dist-cjs/commands/NotifyWorkersCommand.js.map +0 -1
  213. package/dist-cjs/commands/RejectAssignmentCommand.js.map +0 -1
  214. package/dist-cjs/commands/RejectQualificationRequestCommand.js.map +0 -1
  215. package/dist-cjs/commands/SendBonusCommand.js.map +0 -1
  216. package/dist-cjs/commands/SendTestEventNotificationCommand.js.map +0 -1
  217. package/dist-cjs/commands/UpdateExpirationForHITCommand.js.map +0 -1
  218. package/dist-cjs/commands/UpdateHITReviewStatusCommand.js.map +0 -1
  219. package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js.map +0 -1
  220. package/dist-cjs/commands/UpdateNotificationSettingsCommand.js.map +0 -1
  221. package/dist-cjs/commands/UpdateQualificationTypeCommand.js.map +0 -1
  222. package/dist-cjs/endpoints.js.map +0 -1
  223. package/dist-cjs/index.js.map +0 -1
  224. package/dist-cjs/models/index.js.map +0 -1
  225. package/dist-cjs/models/models_0.js.map +0 -1
  226. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  227. package/dist-cjs/pagination/ListAssignmentsForHITPaginator.js.map +0 -1
  228. package/dist-cjs/pagination/ListBonusPaymentsPaginator.js.map +0 -1
  229. package/dist-cjs/pagination/ListHITsForQualificationTypePaginator.js.map +0 -1
  230. package/dist-cjs/pagination/ListHITsPaginator.js.map +0 -1
  231. package/dist-cjs/pagination/ListQualificationRequestsPaginator.js.map +0 -1
  232. package/dist-cjs/pagination/ListQualificationTypesPaginator.js.map +0 -1
  233. package/dist-cjs/pagination/ListReviewPolicyResultsForHITPaginator.js.map +0 -1
  234. package/dist-cjs/pagination/ListReviewableHITsPaginator.js.map +0 -1
  235. package/dist-cjs/pagination/ListWorkerBlocksPaginator.js.map +0 -1
  236. package/dist-cjs/pagination/ListWorkersWithQualificationTypePaginator.js.map +0 -1
  237. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  238. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  239. package/dist-cjs/runtimeConfig.js.map +0 -1
  240. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  241. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  242. package/dist-es/MTurk.js.map +0 -1
  243. package/dist-es/MTurkClient.js.map +0 -1
  244. package/dist-es/commands/AcceptQualificationRequestCommand.js.map +0 -1
  245. package/dist-es/commands/ApproveAssignmentCommand.js.map +0 -1
  246. package/dist-es/commands/AssociateQualificationWithWorkerCommand.js.map +0 -1
  247. package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js.map +0 -1
  248. package/dist-es/commands/CreateHITCommand.js.map +0 -1
  249. package/dist-es/commands/CreateHITTypeCommand.js.map +0 -1
  250. package/dist-es/commands/CreateHITWithHITTypeCommand.js.map +0 -1
  251. package/dist-es/commands/CreateQualificationTypeCommand.js.map +0 -1
  252. package/dist-es/commands/CreateWorkerBlockCommand.js.map +0 -1
  253. package/dist-es/commands/DeleteHITCommand.js.map +0 -1
  254. package/dist-es/commands/DeleteQualificationTypeCommand.js.map +0 -1
  255. package/dist-es/commands/DeleteWorkerBlockCommand.js.map +0 -1
  256. package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js.map +0 -1
  257. package/dist-es/commands/GetAccountBalanceCommand.js.map +0 -1
  258. package/dist-es/commands/GetAssignmentCommand.js.map +0 -1
  259. package/dist-es/commands/GetFileUploadURLCommand.js.map +0 -1
  260. package/dist-es/commands/GetHITCommand.js.map +0 -1
  261. package/dist-es/commands/GetQualificationScoreCommand.js.map +0 -1
  262. package/dist-es/commands/GetQualificationTypeCommand.js.map +0 -1
  263. package/dist-es/commands/ListAssignmentsForHITCommand.js.map +0 -1
  264. package/dist-es/commands/ListBonusPaymentsCommand.js.map +0 -1
  265. package/dist-es/commands/ListHITsCommand.js.map +0 -1
  266. package/dist-es/commands/ListHITsForQualificationTypeCommand.js.map +0 -1
  267. package/dist-es/commands/ListQualificationRequestsCommand.js.map +0 -1
  268. package/dist-es/commands/ListQualificationTypesCommand.js.map +0 -1
  269. package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js.map +0 -1
  270. package/dist-es/commands/ListReviewableHITsCommand.js.map +0 -1
  271. package/dist-es/commands/ListWorkerBlocksCommand.js.map +0 -1
  272. package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js.map +0 -1
  273. package/dist-es/commands/NotifyWorkersCommand.js.map +0 -1
  274. package/dist-es/commands/RejectAssignmentCommand.js.map +0 -1
  275. package/dist-es/commands/RejectQualificationRequestCommand.js.map +0 -1
  276. package/dist-es/commands/SendBonusCommand.js.map +0 -1
  277. package/dist-es/commands/SendTestEventNotificationCommand.js.map +0 -1
  278. package/dist-es/commands/UpdateExpirationForHITCommand.js.map +0 -1
  279. package/dist-es/commands/UpdateHITReviewStatusCommand.js.map +0 -1
  280. package/dist-es/commands/UpdateHITTypeOfHITCommand.js.map +0 -1
  281. package/dist-es/commands/UpdateNotificationSettingsCommand.js.map +0 -1
  282. package/dist-es/commands/UpdateQualificationTypeCommand.js.map +0 -1
  283. package/dist-es/endpoints.js.map +0 -1
  284. package/dist-es/index.js.map +0 -1
  285. package/dist-es/models/index.js.map +0 -1
  286. package/dist-es/models/models_0.js.map +0 -1
  287. package/dist-es/pagination/Interfaces.js.map +0 -1
  288. package/dist-es/pagination/ListAssignmentsForHITPaginator.js.map +0 -1
  289. package/dist-es/pagination/ListBonusPaymentsPaginator.js.map +0 -1
  290. package/dist-es/pagination/ListHITsForQualificationTypePaginator.js.map +0 -1
  291. package/dist-es/pagination/ListHITsPaginator.js.map +0 -1
  292. package/dist-es/pagination/ListQualificationRequestsPaginator.js.map +0 -1
  293. package/dist-es/pagination/ListQualificationTypesPaginator.js.map +0 -1
  294. package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js.map +0 -1
  295. package/dist-es/pagination/ListReviewableHITsPaginator.js.map +0 -1
  296. package/dist-es/pagination/ListWorkerBlocksPaginator.js.map +0 -1
  297. package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js.map +0 -1
  298. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  299. package/dist-es/runtimeConfig.browser.js.map +0 -1
  300. package/dist-es/runtimeConfig.js.map +0 -1
  301. package/dist-es/runtimeConfig.native.js.map +0 -1
  302. package/dist-es/runtimeConfig.shared.js.map +0 -1
  303. package/jest.config.js +0 -4
  304. package/src/MTurk.ts +0 -1792
  305. package/src/MTurkClient.ts +0 -416
  306. package/src/commands/AcceptQualificationRequestCommand.ts +0 -107
  307. package/src/commands/ApproveAssignmentCommand.ts +0 -124
  308. package/src/commands/AssociateQualificationWithWorkerCommand.ts +0 -123
  309. package/src/commands/CreateAdditionalAssignmentsForHITCommand.ts +0 -128
  310. package/src/commands/CreateHITCommand.ts +0 -108
  311. package/src/commands/CreateHITTypeCommand.ts +0 -100
  312. package/src/commands/CreateHITWithHITTypeCommand.ts +0 -112
  313. package/src/commands/CreateQualificationTypeCommand.ts +0 -101
  314. package/src/commands/CreateWorkerBlockCommand.ts +0 -95
  315. package/src/commands/DeleteHITCommand.ts +0 -127
  316. package/src/commands/DeleteQualificationTypeCommand.ts +0 -113
  317. package/src/commands/DeleteWorkerBlockCommand.ts +0 -95
  318. package/src/commands/DisassociateQualificationFromWorkerCommand.ts +0 -113
  319. package/src/commands/GetAccountBalanceCommand.ts +0 -97
  320. package/src/commands/GetAssignmentCommand.ts +0 -97
  321. package/src/commands/GetFileUploadURLCommand.ts +0 -112
  322. package/src/commands/GetHITCommand.ts +0 -90
  323. package/src/commands/GetQualificationScoreCommand.ts +0 -108
  324. package/src/commands/GetQualificationTypeCommand.ts +0 -97
  325. package/src/commands/ListAssignmentsForHITCommand.ts +0 -121
  326. package/src/commands/ListBonusPaymentsCommand.ts +0 -100
  327. package/src/commands/ListHITsCommand.ts +0 -94
  328. package/src/commands/ListHITsForQualificationTypeCommand.ts +0 -105
  329. package/src/commands/ListQualificationRequestsCommand.ts +0 -105
  330. package/src/commands/ListQualificationTypesCommand.ts +0 -100
  331. package/src/commands/ListReviewPolicyResultsForHITCommand.ts +0 -106
  332. package/src/commands/ListReviewableHITsCommand.ts +0 -98
  333. package/src/commands/ListWorkerBlocksCommand.ts +0 -95
  334. package/src/commands/ListWorkersWithQualificationTypeCommand.ts +0 -106
  335. package/src/commands/NotifyWorkersCommand.ts +0 -104
  336. package/src/commands/RejectAssignmentCommand.ts +0 -107
  337. package/src/commands/RejectQualificationRequestCommand.ts +0 -104
  338. package/src/commands/SendBonusCommand.ts +0 -105
  339. package/src/commands/SendTestEventNotificationCommand.ts +0 -104
  340. package/src/commands/UpdateExpirationForHITCommand.ts +0 -98
  341. package/src/commands/UpdateHITReviewStatusCommand.ts +0 -99
  342. package/src/commands/UpdateHITTypeOfHITCommand.ts +0 -102
  343. package/src/commands/UpdateNotificationSettingsCommand.ts +0 -109
  344. package/src/commands/UpdateQualificationTypeCommand.ts +0 -127
  345. package/src/endpoints.ts +0 -62
  346. package/src/index.ts +0 -53
  347. package/src/models/index.ts +0 -1
  348. package/src/models/models_0.ts +0 -3412
  349. package/src/pagination/Interfaces.ts +0 -8
  350. package/src/pagination/ListAssignmentsForHITPaginator.ts +0 -59
  351. package/src/pagination/ListBonusPaymentsPaginator.ts +0 -59
  352. package/src/pagination/ListHITsForQualificationTypePaginator.ts +0 -59
  353. package/src/pagination/ListHITsPaginator.ts +0 -55
  354. package/src/pagination/ListQualificationRequestsPaginator.ts +0 -59
  355. package/src/pagination/ListQualificationTypesPaginator.ts +0 -59
  356. package/src/pagination/ListReviewPolicyResultsForHITPaginator.ts +0 -59
  357. package/src/pagination/ListReviewableHITsPaginator.ts +0 -59
  358. package/src/pagination/ListWorkerBlocksPaginator.ts +0 -59
  359. package/src/pagination/ListWorkersWithQualificationTypePaginator.ts +0 -59
  360. package/src/protocols/Aws_json1_1.ts +0 -4803
  361. package/src/runtimeConfig.browser.ts +0 -41
  362. package/src/runtimeConfig.native.ts +0 -17
  363. package/src/runtimeConfig.shared.ts +0 -17
  364. package/src/runtimeConfig.ts +0 -46
  365. package/tsconfig.es.json +0 -10
  366. package/tsconfig.json +0 -33
  367. package/tsconfig.types.json +0 -9
package/src/MTurk.ts DELETED
@@ -1,1792 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- AcceptQualificationRequestCommand,
5
- AcceptQualificationRequestCommandInput,
6
- AcceptQualificationRequestCommandOutput,
7
- } from "./commands/AcceptQualificationRequestCommand";
8
- import {
9
- ApproveAssignmentCommand,
10
- ApproveAssignmentCommandInput,
11
- ApproveAssignmentCommandOutput,
12
- } from "./commands/ApproveAssignmentCommand";
13
- import {
14
- AssociateQualificationWithWorkerCommand,
15
- AssociateQualificationWithWorkerCommandInput,
16
- AssociateQualificationWithWorkerCommandOutput,
17
- } from "./commands/AssociateQualificationWithWorkerCommand";
18
- import {
19
- CreateAdditionalAssignmentsForHITCommand,
20
- CreateAdditionalAssignmentsForHITCommandInput,
21
- CreateAdditionalAssignmentsForHITCommandOutput,
22
- } from "./commands/CreateAdditionalAssignmentsForHITCommand";
23
- import { CreateHITCommand, CreateHITCommandInput, CreateHITCommandOutput } from "./commands/CreateHITCommand";
24
- import {
25
- CreateHITTypeCommand,
26
- CreateHITTypeCommandInput,
27
- CreateHITTypeCommandOutput,
28
- } from "./commands/CreateHITTypeCommand";
29
- import {
30
- CreateHITWithHITTypeCommand,
31
- CreateHITWithHITTypeCommandInput,
32
- CreateHITWithHITTypeCommandOutput,
33
- } from "./commands/CreateHITWithHITTypeCommand";
34
- import {
35
- CreateQualificationTypeCommand,
36
- CreateQualificationTypeCommandInput,
37
- CreateQualificationTypeCommandOutput,
38
- } from "./commands/CreateQualificationTypeCommand";
39
- import {
40
- CreateWorkerBlockCommand,
41
- CreateWorkerBlockCommandInput,
42
- CreateWorkerBlockCommandOutput,
43
- } from "./commands/CreateWorkerBlockCommand";
44
- import { DeleteHITCommand, DeleteHITCommandInput, DeleteHITCommandOutput } from "./commands/DeleteHITCommand";
45
- import {
46
- DeleteQualificationTypeCommand,
47
- DeleteQualificationTypeCommandInput,
48
- DeleteQualificationTypeCommandOutput,
49
- } from "./commands/DeleteQualificationTypeCommand";
50
- import {
51
- DeleteWorkerBlockCommand,
52
- DeleteWorkerBlockCommandInput,
53
- DeleteWorkerBlockCommandOutput,
54
- } from "./commands/DeleteWorkerBlockCommand";
55
- import {
56
- DisassociateQualificationFromWorkerCommand,
57
- DisassociateQualificationFromWorkerCommandInput,
58
- DisassociateQualificationFromWorkerCommandOutput,
59
- } from "./commands/DisassociateQualificationFromWorkerCommand";
60
- import {
61
- GetAccountBalanceCommand,
62
- GetAccountBalanceCommandInput,
63
- GetAccountBalanceCommandOutput,
64
- } from "./commands/GetAccountBalanceCommand";
65
- import {
66
- GetAssignmentCommand,
67
- GetAssignmentCommandInput,
68
- GetAssignmentCommandOutput,
69
- } from "./commands/GetAssignmentCommand";
70
- import {
71
- GetFileUploadURLCommand,
72
- GetFileUploadURLCommandInput,
73
- GetFileUploadURLCommandOutput,
74
- } from "./commands/GetFileUploadURLCommand";
75
- import { GetHITCommand, GetHITCommandInput, GetHITCommandOutput } from "./commands/GetHITCommand";
76
- import {
77
- GetQualificationScoreCommand,
78
- GetQualificationScoreCommandInput,
79
- GetQualificationScoreCommandOutput,
80
- } from "./commands/GetQualificationScoreCommand";
81
- import {
82
- GetQualificationTypeCommand,
83
- GetQualificationTypeCommandInput,
84
- GetQualificationTypeCommandOutput,
85
- } from "./commands/GetQualificationTypeCommand";
86
- import {
87
- ListAssignmentsForHITCommand,
88
- ListAssignmentsForHITCommandInput,
89
- ListAssignmentsForHITCommandOutput,
90
- } from "./commands/ListAssignmentsForHITCommand";
91
- import {
92
- ListBonusPaymentsCommand,
93
- ListBonusPaymentsCommandInput,
94
- ListBonusPaymentsCommandOutput,
95
- } from "./commands/ListBonusPaymentsCommand";
96
- import { ListHITsCommand, ListHITsCommandInput, ListHITsCommandOutput } from "./commands/ListHITsCommand";
97
- import {
98
- ListHITsForQualificationTypeCommand,
99
- ListHITsForQualificationTypeCommandInput,
100
- ListHITsForQualificationTypeCommandOutput,
101
- } from "./commands/ListHITsForQualificationTypeCommand";
102
- import {
103
- ListQualificationRequestsCommand,
104
- ListQualificationRequestsCommandInput,
105
- ListQualificationRequestsCommandOutput,
106
- } from "./commands/ListQualificationRequestsCommand";
107
- import {
108
- ListQualificationTypesCommand,
109
- ListQualificationTypesCommandInput,
110
- ListQualificationTypesCommandOutput,
111
- } from "./commands/ListQualificationTypesCommand";
112
- import {
113
- ListReviewableHITsCommand,
114
- ListReviewableHITsCommandInput,
115
- ListReviewableHITsCommandOutput,
116
- } from "./commands/ListReviewableHITsCommand";
117
- import {
118
- ListReviewPolicyResultsForHITCommand,
119
- ListReviewPolicyResultsForHITCommandInput,
120
- ListReviewPolicyResultsForHITCommandOutput,
121
- } from "./commands/ListReviewPolicyResultsForHITCommand";
122
- import {
123
- ListWorkerBlocksCommand,
124
- ListWorkerBlocksCommandInput,
125
- ListWorkerBlocksCommandOutput,
126
- } from "./commands/ListWorkerBlocksCommand";
127
- import {
128
- ListWorkersWithQualificationTypeCommand,
129
- ListWorkersWithQualificationTypeCommandInput,
130
- ListWorkersWithQualificationTypeCommandOutput,
131
- } from "./commands/ListWorkersWithQualificationTypeCommand";
132
- import {
133
- NotifyWorkersCommand,
134
- NotifyWorkersCommandInput,
135
- NotifyWorkersCommandOutput,
136
- } from "./commands/NotifyWorkersCommand";
137
- import {
138
- RejectAssignmentCommand,
139
- RejectAssignmentCommandInput,
140
- RejectAssignmentCommandOutput,
141
- } from "./commands/RejectAssignmentCommand";
142
- import {
143
- RejectQualificationRequestCommand,
144
- RejectQualificationRequestCommandInput,
145
- RejectQualificationRequestCommandOutput,
146
- } from "./commands/RejectQualificationRequestCommand";
147
- import { SendBonusCommand, SendBonusCommandInput, SendBonusCommandOutput } from "./commands/SendBonusCommand";
148
- import {
149
- SendTestEventNotificationCommand,
150
- SendTestEventNotificationCommandInput,
151
- SendTestEventNotificationCommandOutput,
152
- } from "./commands/SendTestEventNotificationCommand";
153
- import {
154
- UpdateExpirationForHITCommand,
155
- UpdateExpirationForHITCommandInput,
156
- UpdateExpirationForHITCommandOutput,
157
- } from "./commands/UpdateExpirationForHITCommand";
158
- import {
159
- UpdateHITReviewStatusCommand,
160
- UpdateHITReviewStatusCommandInput,
161
- UpdateHITReviewStatusCommandOutput,
162
- } from "./commands/UpdateHITReviewStatusCommand";
163
- import {
164
- UpdateHITTypeOfHITCommand,
165
- UpdateHITTypeOfHITCommandInput,
166
- UpdateHITTypeOfHITCommandOutput,
167
- } from "./commands/UpdateHITTypeOfHITCommand";
168
- import {
169
- UpdateNotificationSettingsCommand,
170
- UpdateNotificationSettingsCommandInput,
171
- UpdateNotificationSettingsCommandOutput,
172
- } from "./commands/UpdateNotificationSettingsCommand";
173
- import {
174
- UpdateQualificationTypeCommand,
175
- UpdateQualificationTypeCommandInput,
176
- UpdateQualificationTypeCommandOutput,
177
- } from "./commands/UpdateQualificationTypeCommand";
178
- import { MTurkClient } from "./MTurkClient";
179
-
180
- /**
181
- * <fullname>Amazon Mechanical Turk API Reference</fullname>
182
- */
183
- export class MTurk extends MTurkClient {
184
- /**
185
- * <p>
186
- * The <code>AcceptQualificationRequest</code> operation approves a Worker's request for a Qualification.
187
- * </p>
188
- * <p>
189
- * Only the owner of the Qualification type can grant a Qualification request for that type.
190
- * </p>
191
- * <p>
192
- * A successful request for the <code>AcceptQualificationRequest</code> operation
193
- * returns with no errors and an empty body.
194
- * </p>
195
- */
196
- public acceptQualificationRequest(
197
- args: AcceptQualificationRequestCommandInput,
198
- options?: __HttpHandlerOptions
199
- ): Promise<AcceptQualificationRequestCommandOutput>;
200
- public acceptQualificationRequest(
201
- args: AcceptQualificationRequestCommandInput,
202
- cb: (err: any, data?: AcceptQualificationRequestCommandOutput) => void
203
- ): void;
204
- public acceptQualificationRequest(
205
- args: AcceptQualificationRequestCommandInput,
206
- options: __HttpHandlerOptions,
207
- cb: (err: any, data?: AcceptQualificationRequestCommandOutput) => void
208
- ): void;
209
- public acceptQualificationRequest(
210
- args: AcceptQualificationRequestCommandInput,
211
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AcceptQualificationRequestCommandOutput) => void),
212
- cb?: (err: any, data?: AcceptQualificationRequestCommandOutput) => void
213
- ): Promise<AcceptQualificationRequestCommandOutput> | void {
214
- const command = new AcceptQualificationRequestCommand(args);
215
- if (typeof optionsOrCb === "function") {
216
- this.send(command, optionsOrCb);
217
- } else if (typeof cb === "function") {
218
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- } else {
221
- return this.send(command, optionsOrCb);
222
- }
223
- }
224
-
225
- /**
226
- * <p>
227
- * The <code>ApproveAssignment</code> operation approves the results of a completed assignment.
228
- * </p>
229
- * <p>
230
- * Approving an assignment initiates two payments from the Requester's Amazon.com account
231
- * </p>
232
- * <ul>
233
- * <li>
234
- * <p>
235
- * The Worker who submitted the results is paid the reward specified in the HIT.
236
- * </p>
237
- * </li>
238
- * <li>
239
- * <p>
240
- * Amazon Mechanical Turk fees are debited.
241
- * </p>
242
- * </li>
243
- * </ul>
244
- * <p>
245
- * If the Requester's account does not have adequate funds for these payments,
246
- * the call to ApproveAssignment returns an exception, and the approval is not processed.
247
- * You can include an optional feedback message with the approval,
248
- * which the Worker can see in the Status section of the web site.
249
- * </p>
250
- * <p>
251
- * You can also call this operation for assignments that were previous rejected
252
- * and approve them by explicitly overriding the previous rejection.
253
- * This only works on rejected assignments that were submitted within the previous 30 days
254
- * and only if the assignment's related HIT has not been deleted.
255
- * </p>
256
- */
257
- public approveAssignment(
258
- args: ApproveAssignmentCommandInput,
259
- options?: __HttpHandlerOptions
260
- ): Promise<ApproveAssignmentCommandOutput>;
261
- public approveAssignment(
262
- args: ApproveAssignmentCommandInput,
263
- cb: (err: any, data?: ApproveAssignmentCommandOutput) => void
264
- ): void;
265
- public approveAssignment(
266
- args: ApproveAssignmentCommandInput,
267
- options: __HttpHandlerOptions,
268
- cb: (err: any, data?: ApproveAssignmentCommandOutput) => void
269
- ): void;
270
- public approveAssignment(
271
- args: ApproveAssignmentCommandInput,
272
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ApproveAssignmentCommandOutput) => void),
273
- cb?: (err: any, data?: ApproveAssignmentCommandOutput) => void
274
- ): Promise<ApproveAssignmentCommandOutput> | void {
275
- const command = new ApproveAssignmentCommand(args);
276
- if (typeof optionsOrCb === "function") {
277
- this.send(command, optionsOrCb);
278
- } else if (typeof cb === "function") {
279
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
280
- this.send(command, optionsOrCb || {}, cb);
281
- } else {
282
- return this.send(command, optionsOrCb);
283
- }
284
- }
285
-
286
- /**
287
- * <p>
288
- * The <code>AssociateQualificationWithWorker</code> operation gives a Worker a
289
- * Qualification. <code>AssociateQualificationWithWorker</code> does not require that the Worker
290
- * submit a Qualification request. It gives the Qualification directly to the Worker.
291
- * </p>
292
- *
293
- * <p>
294
- * You can only assign a Qualification of a Qualification type that you created (using
295
- * the <code>CreateQualificationType</code> operation).
296
- * </p>
297
- *
298
- * <note>
299
- * <p>
300
- * Note: <code>AssociateQualificationWithWorker</code> does not affect any pending Qualification
301
- * requests for the Qualification by the Worker. If you assign a Qualification to a
302
- * Worker, then later grant a Qualification request made by the Worker, the granting of
303
- * the request may modify the Qualification score. To resolve a pending Qualification
304
- * request without affecting the Qualification the Worker already has, reject the
305
- * request with the <code>RejectQualificationRequest</code> operation.
306
- * </p>
307
- * </note>
308
- */
309
- public associateQualificationWithWorker(
310
- args: AssociateQualificationWithWorkerCommandInput,
311
- options?: __HttpHandlerOptions
312
- ): Promise<AssociateQualificationWithWorkerCommandOutput>;
313
- public associateQualificationWithWorker(
314
- args: AssociateQualificationWithWorkerCommandInput,
315
- cb: (err: any, data?: AssociateQualificationWithWorkerCommandOutput) => void
316
- ): void;
317
- public associateQualificationWithWorker(
318
- args: AssociateQualificationWithWorkerCommandInput,
319
- options: __HttpHandlerOptions,
320
- cb: (err: any, data?: AssociateQualificationWithWorkerCommandOutput) => void
321
- ): void;
322
- public associateQualificationWithWorker(
323
- args: AssociateQualificationWithWorkerCommandInput,
324
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateQualificationWithWorkerCommandOutput) => void),
325
- cb?: (err: any, data?: AssociateQualificationWithWorkerCommandOutput) => void
326
- ): Promise<AssociateQualificationWithWorkerCommandOutput> | void {
327
- const command = new AssociateQualificationWithWorkerCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- } else if (typeof cb === "function") {
331
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
- this.send(command, optionsOrCb || {}, cb);
333
- } else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
-
338
- /**
339
- * <p>
340
- * The
341
- * <code>CreateAdditionalAssignmentsForHIT</code>
342
- * operation increases the maximum number of assignments of an existing HIT.
343
- * </p>
344
- * <p>
345
- * To extend the maximum number of assignments, specify the number of additional assignments.</p>
346
- * <note>
347
- * <ul>
348
- * <li>
349
- * <p>HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more
350
- * assignments will result in an
351
- * <code>AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease</code>
352
- * exception.</p>
353
- * </li>
354
- * <li>
355
- * <p>HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an
356
- * <code>AWS.MechanicalTurk.HITTooOldForExtension</code>
357
- * exception.
358
- * </p>
359
- * </li>
360
- * </ul>
361
- * </note>
362
- */
363
- public createAdditionalAssignmentsForHIT(
364
- args: CreateAdditionalAssignmentsForHITCommandInput,
365
- options?: __HttpHandlerOptions
366
- ): Promise<CreateAdditionalAssignmentsForHITCommandOutput>;
367
- public createAdditionalAssignmentsForHIT(
368
- args: CreateAdditionalAssignmentsForHITCommandInput,
369
- cb: (err: any, data?: CreateAdditionalAssignmentsForHITCommandOutput) => void
370
- ): void;
371
- public createAdditionalAssignmentsForHIT(
372
- args: CreateAdditionalAssignmentsForHITCommandInput,
373
- options: __HttpHandlerOptions,
374
- cb: (err: any, data?: CreateAdditionalAssignmentsForHITCommandOutput) => void
375
- ): void;
376
- public createAdditionalAssignmentsForHIT(
377
- args: CreateAdditionalAssignmentsForHITCommandInput,
378
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAdditionalAssignmentsForHITCommandOutput) => void),
379
- cb?: (err: any, data?: CreateAdditionalAssignmentsForHITCommandOutput) => void
380
- ): Promise<CreateAdditionalAssignmentsForHITCommandOutput> | void {
381
- const command = new CreateAdditionalAssignmentsForHITCommand(args);
382
- if (typeof optionsOrCb === "function") {
383
- this.send(command, optionsOrCb);
384
- } else if (typeof cb === "function") {
385
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
386
- this.send(command, optionsOrCb || {}, cb);
387
- } else {
388
- return this.send(command, optionsOrCb);
389
- }
390
- }
391
-
392
- /**
393
- * <p>The <code>CreateHIT</code> operation creates a new Human Intelligence Task (HIT).
394
- * The new HIT is made available for Workers to find and accept on the Amazon Mechanical
395
- * Turk website. </p>
396
- * <p>
397
- * This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of assignments. When you pass these values to <code>CreateHIT</code>, a new HIT is created for you, with a new <code>HITTypeID</code>. The HITTypeID can be used to create additional HITs in the future without needing to specify common parameters such as the title, description and reward amount each time.</p>
398
- * <p> An alternative way to create HITs is to first generate a HITTypeID using the <code>CreateHITType</code> operation and then call the <code>CreateHITWithHITType</code> operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.
399
- * </p>
400
- *
401
- * <p>CreateHIT also supports several ways to provide question data: by providing a value
402
- * for the <code>Question</code> parameter that fully specifies the contents of the HIT, or by providing
403
- * a <code>HitLayoutId</code> and associated <code>HitLayoutParameters</code>.
404
- * </p>
405
- *
406
- * <note>
407
- * <p> If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see
408
- * <a href="https://requester.mturk.com/pricing">Amazon Mechanical Turk Pricing</a>.</p>
409
- * </note>
410
- */
411
- public createHIT(args: CreateHITCommandInput, options?: __HttpHandlerOptions): Promise<CreateHITCommandOutput>;
412
- public createHIT(args: CreateHITCommandInput, cb: (err: any, data?: CreateHITCommandOutput) => void): void;
413
- public createHIT(
414
- args: CreateHITCommandInput,
415
- options: __HttpHandlerOptions,
416
- cb: (err: any, data?: CreateHITCommandOutput) => void
417
- ): void;
418
- public createHIT(
419
- args: CreateHITCommandInput,
420
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateHITCommandOutput) => void),
421
- cb?: (err: any, data?: CreateHITCommandOutput) => void
422
- ): Promise<CreateHITCommandOutput> | void {
423
- const command = new CreateHITCommand(args);
424
- if (typeof optionsOrCb === "function") {
425
- this.send(command, optionsOrCb);
426
- } else if (typeof cb === "function") {
427
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
428
- this.send(command, optionsOrCb || {}, cb);
429
- } else {
430
- return this.send(command, optionsOrCb);
431
- }
432
- }
433
-
434
- /**
435
- * <p>
436
- * The <code>CreateHITType</code> operation creates a new HIT type. This operation
437
- * allows you to define a standard set of HIT properties to use when creating HITs.
438
- * If you register a HIT type with values that match an existing HIT type, the HIT type
439
- * ID of the existing type will be returned.
440
- * </p>
441
- */
442
- public createHITType(
443
- args: CreateHITTypeCommandInput,
444
- options?: __HttpHandlerOptions
445
- ): Promise<CreateHITTypeCommandOutput>;
446
- public createHITType(
447
- args: CreateHITTypeCommandInput,
448
- cb: (err: any, data?: CreateHITTypeCommandOutput) => void
449
- ): void;
450
- public createHITType(
451
- args: CreateHITTypeCommandInput,
452
- options: __HttpHandlerOptions,
453
- cb: (err: any, data?: CreateHITTypeCommandOutput) => void
454
- ): void;
455
- public createHITType(
456
- args: CreateHITTypeCommandInput,
457
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateHITTypeCommandOutput) => void),
458
- cb?: (err: any, data?: CreateHITTypeCommandOutput) => void
459
- ): Promise<CreateHITTypeCommandOutput> | void {
460
- const command = new CreateHITTypeCommand(args);
461
- if (typeof optionsOrCb === "function") {
462
- this.send(command, optionsOrCb);
463
- } else if (typeof cb === "function") {
464
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
465
- this.send(command, optionsOrCb || {}, cb);
466
- } else {
467
- return this.send(command, optionsOrCb);
468
- }
469
- }
470
-
471
- /**
472
- * <p>
473
- * The <code>CreateHITWithHITType</code> operation creates a new Human Intelligence Task (HIT)
474
- * using an existing HITTypeID generated by the <code>CreateHITType</code> operation.
475
- * </p>
476
- * <p>
477
- * This is an alternative way to create HITs from the <code>CreateHIT</code> operation.
478
- * This is the recommended best practice for Requesters who are creating large numbers of HITs.
479
- * </p>
480
- * <p>CreateHITWithHITType also supports several ways to provide question data:
481
- * by providing a value for the <code>Question</code> parameter that fully specifies the contents of the HIT,
482
- * or by providing a <code>HitLayoutId</code> and associated <code>HitLayoutParameters</code>.
483
- * </p>
484
- * <note>
485
- * <p>
486
- * If a HIT is created with 10 or more maximum assignments, there is an additional fee.
487
- * For more information, see <a href="https://requester.mturk.com/pricing">Amazon Mechanical Turk Pricing</a>.
488
- * </p>
489
- * </note>
490
- */
491
- public createHITWithHITType(
492
- args: CreateHITWithHITTypeCommandInput,
493
- options?: __HttpHandlerOptions
494
- ): Promise<CreateHITWithHITTypeCommandOutput>;
495
- public createHITWithHITType(
496
- args: CreateHITWithHITTypeCommandInput,
497
- cb: (err: any, data?: CreateHITWithHITTypeCommandOutput) => void
498
- ): void;
499
- public createHITWithHITType(
500
- args: CreateHITWithHITTypeCommandInput,
501
- options: __HttpHandlerOptions,
502
- cb: (err: any, data?: CreateHITWithHITTypeCommandOutput) => void
503
- ): void;
504
- public createHITWithHITType(
505
- args: CreateHITWithHITTypeCommandInput,
506
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateHITWithHITTypeCommandOutput) => void),
507
- cb?: (err: any, data?: CreateHITWithHITTypeCommandOutput) => void
508
- ): Promise<CreateHITWithHITTypeCommandOutput> | void {
509
- const command = new CreateHITWithHITTypeCommand(args);
510
- if (typeof optionsOrCb === "function") {
511
- this.send(command, optionsOrCb);
512
- } else if (typeof cb === "function") {
513
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
514
- this.send(command, optionsOrCb || {}, cb);
515
- } else {
516
- return this.send(command, optionsOrCb);
517
- }
518
- }
519
-
520
- /**
521
- * <p>
522
- * The
523
- * <code>CreateQualificationType</code>
524
- * operation creates a new Qualification type, which is represented by a
525
- * <code>QualificationType</code>
526
- * data structure.
527
- * </p>
528
- */
529
- public createQualificationType(
530
- args: CreateQualificationTypeCommandInput,
531
- options?: __HttpHandlerOptions
532
- ): Promise<CreateQualificationTypeCommandOutput>;
533
- public createQualificationType(
534
- args: CreateQualificationTypeCommandInput,
535
- cb: (err: any, data?: CreateQualificationTypeCommandOutput) => void
536
- ): void;
537
- public createQualificationType(
538
- args: CreateQualificationTypeCommandInput,
539
- options: __HttpHandlerOptions,
540
- cb: (err: any, data?: CreateQualificationTypeCommandOutput) => void
541
- ): void;
542
- public createQualificationType(
543
- args: CreateQualificationTypeCommandInput,
544
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateQualificationTypeCommandOutput) => void),
545
- cb?: (err: any, data?: CreateQualificationTypeCommandOutput) => void
546
- ): Promise<CreateQualificationTypeCommandOutput> | void {
547
- const command = new CreateQualificationTypeCommand(args);
548
- if (typeof optionsOrCb === "function") {
549
- this.send(command, optionsOrCb);
550
- } else if (typeof cb === "function") {
551
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
552
- this.send(command, optionsOrCb || {}, cb);
553
- } else {
554
- return this.send(command, optionsOrCb);
555
- }
556
- }
557
-
558
- /**
559
- * <p>The <code>CreateWorkerBlock</code> operation allows you to prevent a Worker from working on your HITs. For example, you can block a Worker who is producing poor quality work. You can block up to 100,000 Workers.</p>
560
- */
561
- public createWorkerBlock(
562
- args: CreateWorkerBlockCommandInput,
563
- options?: __HttpHandlerOptions
564
- ): Promise<CreateWorkerBlockCommandOutput>;
565
- public createWorkerBlock(
566
- args: CreateWorkerBlockCommandInput,
567
- cb: (err: any, data?: CreateWorkerBlockCommandOutput) => void
568
- ): void;
569
- public createWorkerBlock(
570
- args: CreateWorkerBlockCommandInput,
571
- options: __HttpHandlerOptions,
572
- cb: (err: any, data?: CreateWorkerBlockCommandOutput) => void
573
- ): void;
574
- public createWorkerBlock(
575
- args: CreateWorkerBlockCommandInput,
576
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateWorkerBlockCommandOutput) => void),
577
- cb?: (err: any, data?: CreateWorkerBlockCommandOutput) => void
578
- ): Promise<CreateWorkerBlockCommandOutput> | void {
579
- const command = new CreateWorkerBlockCommand(args);
580
- if (typeof optionsOrCb === "function") {
581
- this.send(command, optionsOrCb);
582
- } else if (typeof cb === "function") {
583
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
584
- this.send(command, optionsOrCb || {}, cb);
585
- } else {
586
- return this.send(command, optionsOrCb);
587
- }
588
- }
589
-
590
- /**
591
- * <p>
592
- * The <code>DeleteHIT</code> operation is used to delete HIT that is no longer needed.
593
- * Only the Requester who created the HIT can delete it.
594
- * </p>
595
- * <p>
596
- * You can only dispose of HITs that are in the <code>Reviewable</code> state,
597
- * with all of their submitted assignments already either approved or rejected.
598
- * If you call the DeleteHIT operation on a HIT that is not in the <code>Reviewable</code> state
599
- * (for example, that has not expired, or still has active assignments),
600
- * or on a HIT that is Reviewable but without all of its submitted assignments
601
- * already approved or rejected, the service will return an error.
602
- * </p>
603
- * <note>
604
- * <ul>
605
- * <li>
606
- * <p>
607
- * HITs are automatically disposed of after 120 days.
608
- * </p>
609
- * </li>
610
- * <li>
611
- * <p>
612
- * After you dispose of a HIT, you can no longer approve the HIT's rejected assignments.
613
- * </p>
614
- * </li>
615
- * <li>
616
- * <p>
617
- * Disposed HITs are not returned in results for the ListHITs operation.
618
- * </p>
619
- * </li>
620
- * <li>
621
- * <p>
622
- * Disposing HITs can improve the performance of operations such as ListReviewableHITs and ListHITs.
623
- * </p>
624
- * </li>
625
- * </ul>
626
- * </note>
627
- */
628
- public deleteHIT(args: DeleteHITCommandInput, options?: __HttpHandlerOptions): Promise<DeleteHITCommandOutput>;
629
- public deleteHIT(args: DeleteHITCommandInput, cb: (err: any, data?: DeleteHITCommandOutput) => void): void;
630
- public deleteHIT(
631
- args: DeleteHITCommandInput,
632
- options: __HttpHandlerOptions,
633
- cb: (err: any, data?: DeleteHITCommandOutput) => void
634
- ): void;
635
- public deleteHIT(
636
- args: DeleteHITCommandInput,
637
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteHITCommandOutput) => void),
638
- cb?: (err: any, data?: DeleteHITCommandOutput) => void
639
- ): Promise<DeleteHITCommandOutput> | void {
640
- const command = new DeleteHITCommand(args);
641
- if (typeof optionsOrCb === "function") {
642
- this.send(command, optionsOrCb);
643
- } else if (typeof cb === "function") {
644
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
645
- this.send(command, optionsOrCb || {}, cb);
646
- } else {
647
- return this.send(command, optionsOrCb);
648
- }
649
- }
650
-
651
- /**
652
- * <p>
653
- * The
654
- * <code>DeleteQualificationType</code>
655
- * deletes a Qualification type and deletes any HIT types that are
656
- * associated with the Qualification type.
657
- * </p>
658
- * <p>This operation does not revoke Qualifications already assigned
659
- * to Workers because the Qualifications might be needed for active HITs.
660
- * If there are any pending requests for the Qualification type, Amazon
661
- * Mechanical Turk rejects those requests. After you delete a
662
- * Qualification type, you can no longer use it to create HITs or HIT
663
- * types.</p>
664
- * <note>
665
- * <p>DeleteQualificationType must wait for all the HITs that use
666
- * the deleted Qualification type to be deleted before completing. It
667
- * may take up to 48 hours before DeleteQualificationType completes and
668
- * the unique name of the Qualification type is available for reuse with
669
- * CreateQualificationType.</p>
670
- * </note>
671
- */
672
- public deleteQualificationType(
673
- args: DeleteQualificationTypeCommandInput,
674
- options?: __HttpHandlerOptions
675
- ): Promise<DeleteQualificationTypeCommandOutput>;
676
- public deleteQualificationType(
677
- args: DeleteQualificationTypeCommandInput,
678
- cb: (err: any, data?: DeleteQualificationTypeCommandOutput) => void
679
- ): void;
680
- public deleteQualificationType(
681
- args: DeleteQualificationTypeCommandInput,
682
- options: __HttpHandlerOptions,
683
- cb: (err: any, data?: DeleteQualificationTypeCommandOutput) => void
684
- ): void;
685
- public deleteQualificationType(
686
- args: DeleteQualificationTypeCommandInput,
687
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteQualificationTypeCommandOutput) => void),
688
- cb?: (err: any, data?: DeleteQualificationTypeCommandOutput) => void
689
- ): Promise<DeleteQualificationTypeCommandOutput> | void {
690
- const command = new DeleteQualificationTypeCommand(args);
691
- if (typeof optionsOrCb === "function") {
692
- this.send(command, optionsOrCb);
693
- } else if (typeof cb === "function") {
694
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
695
- this.send(command, optionsOrCb || {}, cb);
696
- } else {
697
- return this.send(command, optionsOrCb);
698
- }
699
- }
700
-
701
- /**
702
- * <p>The <code>DeleteWorkerBlock</code> operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.</p>
703
- */
704
- public deleteWorkerBlock(
705
- args: DeleteWorkerBlockCommandInput,
706
- options?: __HttpHandlerOptions
707
- ): Promise<DeleteWorkerBlockCommandOutput>;
708
- public deleteWorkerBlock(
709
- args: DeleteWorkerBlockCommandInput,
710
- cb: (err: any, data?: DeleteWorkerBlockCommandOutput) => void
711
- ): void;
712
- public deleteWorkerBlock(
713
- args: DeleteWorkerBlockCommandInput,
714
- options: __HttpHandlerOptions,
715
- cb: (err: any, data?: DeleteWorkerBlockCommandOutput) => void
716
- ): void;
717
- public deleteWorkerBlock(
718
- args: DeleteWorkerBlockCommandInput,
719
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteWorkerBlockCommandOutput) => void),
720
- cb?: (err: any, data?: DeleteWorkerBlockCommandOutput) => void
721
- ): Promise<DeleteWorkerBlockCommandOutput> | void {
722
- const command = new DeleteWorkerBlockCommand(args);
723
- if (typeof optionsOrCb === "function") {
724
- this.send(command, optionsOrCb);
725
- } else if (typeof cb === "function") {
726
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
727
- this.send(command, optionsOrCb || {}, cb);
728
- } else {
729
- return this.send(command, optionsOrCb);
730
- }
731
- }
732
-
733
- /**
734
- * <p>
735
- * The <code>DisassociateQualificationFromWorker</code>
736
- * revokes a previously granted Qualification from a user.
737
- * </p>
738
- * <p>
739
- * You can provide a text message explaining why the Qualification was
740
- * revoked. The user who had the Qualification can see this message.
741
- * </p>
742
- */
743
- public disassociateQualificationFromWorker(
744
- args: DisassociateQualificationFromWorkerCommandInput,
745
- options?: __HttpHandlerOptions
746
- ): Promise<DisassociateQualificationFromWorkerCommandOutput>;
747
- public disassociateQualificationFromWorker(
748
- args: DisassociateQualificationFromWorkerCommandInput,
749
- cb: (err: any, data?: DisassociateQualificationFromWorkerCommandOutput) => void
750
- ): void;
751
- public disassociateQualificationFromWorker(
752
- args: DisassociateQualificationFromWorkerCommandInput,
753
- options: __HttpHandlerOptions,
754
- cb: (err: any, data?: DisassociateQualificationFromWorkerCommandOutput) => void
755
- ): void;
756
- public disassociateQualificationFromWorker(
757
- args: DisassociateQualificationFromWorkerCommandInput,
758
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisassociateQualificationFromWorkerCommandOutput) => void),
759
- cb?: (err: any, data?: DisassociateQualificationFromWorkerCommandOutput) => void
760
- ): Promise<DisassociateQualificationFromWorkerCommandOutput> | void {
761
- const command = new DisassociateQualificationFromWorkerCommand(args);
762
- if (typeof optionsOrCb === "function") {
763
- this.send(command, optionsOrCb);
764
- } else if (typeof cb === "function") {
765
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
766
- this.send(command, optionsOrCb || {}, cb);
767
- } else {
768
- return this.send(command, optionsOrCb);
769
- }
770
- }
771
-
772
- /**
773
- * <p>The <code>GetAccountBalance</code> operation retrieves the Prepaid HITs balance in your Amazon Mechanical Turk account if you are a Prepaid Requester.
774
- * Alternatively, this operation will retrieve the remaining available AWS Billing usage if you have enabled AWS Billing.
775
- * Note: If you have enabled AWS Billing and still have a remaining Prepaid HITs balance, this balance can be viewed on the My Account page in the Requester console.</p>
776
- */
777
- public getAccountBalance(
778
- args: GetAccountBalanceCommandInput,
779
- options?: __HttpHandlerOptions
780
- ): Promise<GetAccountBalanceCommandOutput>;
781
- public getAccountBalance(
782
- args: GetAccountBalanceCommandInput,
783
- cb: (err: any, data?: GetAccountBalanceCommandOutput) => void
784
- ): void;
785
- public getAccountBalance(
786
- args: GetAccountBalanceCommandInput,
787
- options: __HttpHandlerOptions,
788
- cb: (err: any, data?: GetAccountBalanceCommandOutput) => void
789
- ): void;
790
- public getAccountBalance(
791
- args: GetAccountBalanceCommandInput,
792
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAccountBalanceCommandOutput) => void),
793
- cb?: (err: any, data?: GetAccountBalanceCommandOutput) => void
794
- ): Promise<GetAccountBalanceCommandOutput> | void {
795
- const command = new GetAccountBalanceCommand(args);
796
- if (typeof optionsOrCb === "function") {
797
- this.send(command, optionsOrCb);
798
- } else if (typeof cb === "function") {
799
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
800
- this.send(command, optionsOrCb || {}, cb);
801
- } else {
802
- return this.send(command, optionsOrCb);
803
- }
804
- }
805
-
806
- /**
807
- * <p>
808
- * The <code>GetAssignment</code> operation retrieves the details of the specified Assignment.
809
- * </p>
810
- */
811
- public getAssignment(
812
- args: GetAssignmentCommandInput,
813
- options?: __HttpHandlerOptions
814
- ): Promise<GetAssignmentCommandOutput>;
815
- public getAssignment(
816
- args: GetAssignmentCommandInput,
817
- cb: (err: any, data?: GetAssignmentCommandOutput) => void
818
- ): void;
819
- public getAssignment(
820
- args: GetAssignmentCommandInput,
821
- options: __HttpHandlerOptions,
822
- cb: (err: any, data?: GetAssignmentCommandOutput) => void
823
- ): void;
824
- public getAssignment(
825
- args: GetAssignmentCommandInput,
826
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAssignmentCommandOutput) => void),
827
- cb?: (err: any, data?: GetAssignmentCommandOutput) => void
828
- ): Promise<GetAssignmentCommandOutput> | void {
829
- const command = new GetAssignmentCommand(args);
830
- if (typeof optionsOrCb === "function") {
831
- this.send(command, optionsOrCb);
832
- } else if (typeof cb === "function") {
833
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
834
- this.send(command, optionsOrCb || {}, cb);
835
- } else {
836
- return this.send(command, optionsOrCb);
837
- }
838
- }
839
-
840
- /**
841
- * <p>
842
- * The
843
- * <code>GetFileUploadURL</code>
844
- * operation generates and returns a temporary URL. You use the
845
- * temporary URL to retrieve a file uploaded by a Worker as an answer to
846
- * a FileUploadAnswer question for a HIT. The temporary URL is generated
847
- * the instant the GetFileUploadURL operation is called, and is valid
848
- * for 60 seconds. You can get a temporary file upload URL any time
849
- * until the HIT is disposed. After the HIT is disposed, any uploaded
850
- * files are deleted, and cannot be retrieved.
851
- *
852
- * Pending Deprecation on December 12, 2017. The Answer Specification
853
- * structure will no longer support the <code>FileUploadAnswer</code>
854
- * element to be used for the QuestionForm data structure.
855
- * Instead, we recommend that Requesters who want to create HITs asking
856
- * Workers to upload files to use Amazon S3.
857
- *
858
- * </p>
859
- */
860
- public getFileUploadURL(
861
- args: GetFileUploadURLCommandInput,
862
- options?: __HttpHandlerOptions
863
- ): Promise<GetFileUploadURLCommandOutput>;
864
- public getFileUploadURL(
865
- args: GetFileUploadURLCommandInput,
866
- cb: (err: any, data?: GetFileUploadURLCommandOutput) => void
867
- ): void;
868
- public getFileUploadURL(
869
- args: GetFileUploadURLCommandInput,
870
- options: __HttpHandlerOptions,
871
- cb: (err: any, data?: GetFileUploadURLCommandOutput) => void
872
- ): void;
873
- public getFileUploadURL(
874
- args: GetFileUploadURLCommandInput,
875
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetFileUploadURLCommandOutput) => void),
876
- cb?: (err: any, data?: GetFileUploadURLCommandOutput) => void
877
- ): Promise<GetFileUploadURLCommandOutput> | void {
878
- const command = new GetFileUploadURLCommand(args);
879
- if (typeof optionsOrCb === "function") {
880
- this.send(command, optionsOrCb);
881
- } else if (typeof cb === "function") {
882
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
883
- this.send(command, optionsOrCb || {}, cb);
884
- } else {
885
- return this.send(command, optionsOrCb);
886
- }
887
- }
888
-
889
- /**
890
- * <p>
891
- * The <code>GetHIT</code> operation retrieves the details of the specified HIT.
892
- * </p>
893
- */
894
- public getHIT(args: GetHITCommandInput, options?: __HttpHandlerOptions): Promise<GetHITCommandOutput>;
895
- public getHIT(args: GetHITCommandInput, cb: (err: any, data?: GetHITCommandOutput) => void): void;
896
- public getHIT(
897
- args: GetHITCommandInput,
898
- options: __HttpHandlerOptions,
899
- cb: (err: any, data?: GetHITCommandOutput) => void
900
- ): void;
901
- public getHIT(
902
- args: GetHITCommandInput,
903
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetHITCommandOutput) => void),
904
- cb?: (err: any, data?: GetHITCommandOutput) => void
905
- ): Promise<GetHITCommandOutput> | void {
906
- const command = new GetHITCommand(args);
907
- if (typeof optionsOrCb === "function") {
908
- this.send(command, optionsOrCb);
909
- } else if (typeof cb === "function") {
910
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
911
- this.send(command, optionsOrCb || {}, cb);
912
- } else {
913
- return this.send(command, optionsOrCb);
914
- }
915
- }
916
-
917
- /**
918
- * <p>
919
- * The
920
- * <code>GetQualificationScore</code>
921
- * operation returns the value of a Worker's Qualification for a given
922
- * Qualification type.
923
- * </p>
924
- * <p>
925
- * To get a Worker's Qualification, you must know the Worker's ID. The
926
- * Worker's ID is included in the assignment data returned by the
927
- * <code>ListAssignmentsForHIT</code>
928
- * operation.
929
- * </p>
930
- * <p>Only the owner of a Qualification type can query the value of
931
- * a Worker's Qualification of that type.</p>
932
- */
933
- public getQualificationScore(
934
- args: GetQualificationScoreCommandInput,
935
- options?: __HttpHandlerOptions
936
- ): Promise<GetQualificationScoreCommandOutput>;
937
- public getQualificationScore(
938
- args: GetQualificationScoreCommandInput,
939
- cb: (err: any, data?: GetQualificationScoreCommandOutput) => void
940
- ): void;
941
- public getQualificationScore(
942
- args: GetQualificationScoreCommandInput,
943
- options: __HttpHandlerOptions,
944
- cb: (err: any, data?: GetQualificationScoreCommandOutput) => void
945
- ): void;
946
- public getQualificationScore(
947
- args: GetQualificationScoreCommandInput,
948
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetQualificationScoreCommandOutput) => void),
949
- cb?: (err: any, data?: GetQualificationScoreCommandOutput) => void
950
- ): Promise<GetQualificationScoreCommandOutput> | void {
951
- const command = new GetQualificationScoreCommand(args);
952
- if (typeof optionsOrCb === "function") {
953
- this.send(command, optionsOrCb);
954
- } else if (typeof cb === "function") {
955
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
956
- this.send(command, optionsOrCb || {}, cb);
957
- } else {
958
- return this.send(command, optionsOrCb);
959
- }
960
- }
961
-
962
- /**
963
- * <p>
964
- * The <code>GetQualificationType</code>operation retrieves information about a Qualification type using its ID.
965
- * </p>
966
- */
967
- public getQualificationType(
968
- args: GetQualificationTypeCommandInput,
969
- options?: __HttpHandlerOptions
970
- ): Promise<GetQualificationTypeCommandOutput>;
971
- public getQualificationType(
972
- args: GetQualificationTypeCommandInput,
973
- cb: (err: any, data?: GetQualificationTypeCommandOutput) => void
974
- ): void;
975
- public getQualificationType(
976
- args: GetQualificationTypeCommandInput,
977
- options: __HttpHandlerOptions,
978
- cb: (err: any, data?: GetQualificationTypeCommandOutput) => void
979
- ): void;
980
- public getQualificationType(
981
- args: GetQualificationTypeCommandInput,
982
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetQualificationTypeCommandOutput) => void),
983
- cb?: (err: any, data?: GetQualificationTypeCommandOutput) => void
984
- ): Promise<GetQualificationTypeCommandOutput> | void {
985
- const command = new GetQualificationTypeCommand(args);
986
- if (typeof optionsOrCb === "function") {
987
- this.send(command, optionsOrCb);
988
- } else if (typeof cb === "function") {
989
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
990
- this.send(command, optionsOrCb || {}, cb);
991
- } else {
992
- return this.send(command, optionsOrCb);
993
- }
994
- }
995
-
996
- /**
997
- * <p>
998
- * The
999
- * <code>ListAssignmentsForHIT</code>
1000
- * operation retrieves completed assignments for a HIT. You can use this
1001
- * operation to retrieve the results for a HIT.
1002
- * </p>
1003
- * <p> You can get assignments for a HIT at any time, even if the
1004
- * HIT is not yet Reviewable. If a HIT requested multiple assignments,
1005
- * and has received some results but has not yet become Reviewable, you
1006
- * can still retrieve the partial results with this operation.
1007
- * </p>
1008
- * <p> Use the AssignmentStatus parameter to control which set of
1009
- * assignments for a HIT are returned. The ListAssignmentsForHIT
1010
- * operation
1011
- * can return submitted assignments awaiting approval, or it can return
1012
- * assignments that have already been approved or rejected. You can set
1013
- * AssignmentStatus=Approved,Rejected to get assignments that have
1014
- * already been approved and rejected together in one result set.
1015
- * </p>
1016
- * <p> Only the Requester who created the HIT can retrieve the
1017
- * assignments for that HIT.
1018
- * </p>
1019
- * <p> Results are sorted and divided into numbered pages and the
1020
- * operation returns a single page of results. You can use the
1021
- * parameters
1022
- * of the operation to control sorting and pagination.
1023
- * </p>
1024
- */
1025
- public listAssignmentsForHIT(
1026
- args: ListAssignmentsForHITCommandInput,
1027
- options?: __HttpHandlerOptions
1028
- ): Promise<ListAssignmentsForHITCommandOutput>;
1029
- public listAssignmentsForHIT(
1030
- args: ListAssignmentsForHITCommandInput,
1031
- cb: (err: any, data?: ListAssignmentsForHITCommandOutput) => void
1032
- ): void;
1033
- public listAssignmentsForHIT(
1034
- args: ListAssignmentsForHITCommandInput,
1035
- options: __HttpHandlerOptions,
1036
- cb: (err: any, data?: ListAssignmentsForHITCommandOutput) => void
1037
- ): void;
1038
- public listAssignmentsForHIT(
1039
- args: ListAssignmentsForHITCommandInput,
1040
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListAssignmentsForHITCommandOutput) => void),
1041
- cb?: (err: any, data?: ListAssignmentsForHITCommandOutput) => void
1042
- ): Promise<ListAssignmentsForHITCommandOutput> | void {
1043
- const command = new ListAssignmentsForHITCommand(args);
1044
- if (typeof optionsOrCb === "function") {
1045
- this.send(command, optionsOrCb);
1046
- } else if (typeof cb === "function") {
1047
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1048
- this.send(command, optionsOrCb || {}, cb);
1049
- } else {
1050
- return this.send(command, optionsOrCb);
1051
- }
1052
- }
1053
-
1054
- /**
1055
- * <p>
1056
- * The
1057
- * <code>ListBonusPayments</code>
1058
- * operation retrieves the amounts of bonuses you have paid to Workers
1059
- * for a given HIT or assignment.
1060
- * </p>
1061
- */
1062
- public listBonusPayments(
1063
- args: ListBonusPaymentsCommandInput,
1064
- options?: __HttpHandlerOptions
1065
- ): Promise<ListBonusPaymentsCommandOutput>;
1066
- public listBonusPayments(
1067
- args: ListBonusPaymentsCommandInput,
1068
- cb: (err: any, data?: ListBonusPaymentsCommandOutput) => void
1069
- ): void;
1070
- public listBonusPayments(
1071
- args: ListBonusPaymentsCommandInput,
1072
- options: __HttpHandlerOptions,
1073
- cb: (err: any, data?: ListBonusPaymentsCommandOutput) => void
1074
- ): void;
1075
- public listBonusPayments(
1076
- args: ListBonusPaymentsCommandInput,
1077
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListBonusPaymentsCommandOutput) => void),
1078
- cb?: (err: any, data?: ListBonusPaymentsCommandOutput) => void
1079
- ): Promise<ListBonusPaymentsCommandOutput> | void {
1080
- const command = new ListBonusPaymentsCommand(args);
1081
- if (typeof optionsOrCb === "function") {
1082
- this.send(command, optionsOrCb);
1083
- } else if (typeof cb === "function") {
1084
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1085
- this.send(command, optionsOrCb || {}, cb);
1086
- } else {
1087
- return this.send(command, optionsOrCb);
1088
- }
1089
- }
1090
-
1091
- /**
1092
- * <p>
1093
- * The
1094
- * <code>ListHITs</code>
1095
- * operation returns all of a Requester's HITs. The operation returns
1096
- * HITs of any status, except for HITs that have been deleted of with
1097
- * the DeleteHIT operation or that have been auto-deleted.
1098
- * </p>
1099
- */
1100
- public listHITs(args: ListHITsCommandInput, options?: __HttpHandlerOptions): Promise<ListHITsCommandOutput>;
1101
- public listHITs(args: ListHITsCommandInput, cb: (err: any, data?: ListHITsCommandOutput) => void): void;
1102
- public listHITs(
1103
- args: ListHITsCommandInput,
1104
- options: __HttpHandlerOptions,
1105
- cb: (err: any, data?: ListHITsCommandOutput) => void
1106
- ): void;
1107
- public listHITs(
1108
- args: ListHITsCommandInput,
1109
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListHITsCommandOutput) => void),
1110
- cb?: (err: any, data?: ListHITsCommandOutput) => void
1111
- ): Promise<ListHITsCommandOutput> | void {
1112
- const command = new ListHITsCommand(args);
1113
- if (typeof optionsOrCb === "function") {
1114
- this.send(command, optionsOrCb);
1115
- } else if (typeof cb === "function") {
1116
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1117
- this.send(command, optionsOrCb || {}, cb);
1118
- } else {
1119
- return this.send(command, optionsOrCb);
1120
- }
1121
- }
1122
-
1123
- /**
1124
- * <p>
1125
- * The <code>ListHITsForQualificationType</code> operation returns the HITs that use
1126
- * the given Qualification type for a Qualification requirement.
1127
- * The operation returns HITs of any status, except for HITs that have been deleted
1128
- * with the <code>DeleteHIT</code> operation or that have been auto-deleted.
1129
- * </p>
1130
- */
1131
- public listHITsForQualificationType(
1132
- args: ListHITsForQualificationTypeCommandInput,
1133
- options?: __HttpHandlerOptions
1134
- ): Promise<ListHITsForQualificationTypeCommandOutput>;
1135
- public listHITsForQualificationType(
1136
- args: ListHITsForQualificationTypeCommandInput,
1137
- cb: (err: any, data?: ListHITsForQualificationTypeCommandOutput) => void
1138
- ): void;
1139
- public listHITsForQualificationType(
1140
- args: ListHITsForQualificationTypeCommandInput,
1141
- options: __HttpHandlerOptions,
1142
- cb: (err: any, data?: ListHITsForQualificationTypeCommandOutput) => void
1143
- ): void;
1144
- public listHITsForQualificationType(
1145
- args: ListHITsForQualificationTypeCommandInput,
1146
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListHITsForQualificationTypeCommandOutput) => void),
1147
- cb?: (err: any, data?: ListHITsForQualificationTypeCommandOutput) => void
1148
- ): Promise<ListHITsForQualificationTypeCommandOutput> | void {
1149
- const command = new ListHITsForQualificationTypeCommand(args);
1150
- if (typeof optionsOrCb === "function") {
1151
- this.send(command, optionsOrCb);
1152
- } else if (typeof cb === "function") {
1153
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1154
- this.send(command, optionsOrCb || {}, cb);
1155
- } else {
1156
- return this.send(command, optionsOrCb);
1157
- }
1158
- }
1159
-
1160
- /**
1161
- * <p>
1162
- * The
1163
- * <code>ListQualificationRequests</code>
1164
- * operation retrieves requests for Qualifications of a particular
1165
- * Qualification type. The owner of the Qualification type calls this
1166
- * operation to poll for pending requests, and accepts them using the
1167
- * AcceptQualification operation.
1168
- * </p>
1169
- */
1170
- public listQualificationRequests(
1171
- args: ListQualificationRequestsCommandInput,
1172
- options?: __HttpHandlerOptions
1173
- ): Promise<ListQualificationRequestsCommandOutput>;
1174
- public listQualificationRequests(
1175
- args: ListQualificationRequestsCommandInput,
1176
- cb: (err: any, data?: ListQualificationRequestsCommandOutput) => void
1177
- ): void;
1178
- public listQualificationRequests(
1179
- args: ListQualificationRequestsCommandInput,
1180
- options: __HttpHandlerOptions,
1181
- cb: (err: any, data?: ListQualificationRequestsCommandOutput) => void
1182
- ): void;
1183
- public listQualificationRequests(
1184
- args: ListQualificationRequestsCommandInput,
1185
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListQualificationRequestsCommandOutput) => void),
1186
- cb?: (err: any, data?: ListQualificationRequestsCommandOutput) => void
1187
- ): Promise<ListQualificationRequestsCommandOutput> | void {
1188
- const command = new ListQualificationRequestsCommand(args);
1189
- if (typeof optionsOrCb === "function") {
1190
- this.send(command, optionsOrCb);
1191
- } else if (typeof cb === "function") {
1192
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1193
- this.send(command, optionsOrCb || {}, cb);
1194
- } else {
1195
- return this.send(command, optionsOrCb);
1196
- }
1197
- }
1198
-
1199
- /**
1200
- * <p>
1201
- * The
1202
- * <code>ListQualificationTypes</code>
1203
- * operation returns a list of Qualification types, filtered by
1204
- * an optional search term.
1205
- * </p>
1206
- */
1207
- public listQualificationTypes(
1208
- args: ListQualificationTypesCommandInput,
1209
- options?: __HttpHandlerOptions
1210
- ): Promise<ListQualificationTypesCommandOutput>;
1211
- public listQualificationTypes(
1212
- args: ListQualificationTypesCommandInput,
1213
- cb: (err: any, data?: ListQualificationTypesCommandOutput) => void
1214
- ): void;
1215
- public listQualificationTypes(
1216
- args: ListQualificationTypesCommandInput,
1217
- options: __HttpHandlerOptions,
1218
- cb: (err: any, data?: ListQualificationTypesCommandOutput) => void
1219
- ): void;
1220
- public listQualificationTypes(
1221
- args: ListQualificationTypesCommandInput,
1222
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListQualificationTypesCommandOutput) => void),
1223
- cb?: (err: any, data?: ListQualificationTypesCommandOutput) => void
1224
- ): Promise<ListQualificationTypesCommandOutput> | void {
1225
- const command = new ListQualificationTypesCommand(args);
1226
- if (typeof optionsOrCb === "function") {
1227
- this.send(command, optionsOrCb);
1228
- } else if (typeof cb === "function") {
1229
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1230
- this.send(command, optionsOrCb || {}, cb);
1231
- } else {
1232
- return this.send(command, optionsOrCb);
1233
- }
1234
- }
1235
-
1236
- /**
1237
- * <p>
1238
- * The <code>ListReviewableHITs</code> operation retrieves the HITs with Status equal to
1239
- * Reviewable or Status equal to Reviewing that belong to the Requester calling the operation.
1240
- * </p>
1241
- */
1242
- public listReviewableHITs(
1243
- args: ListReviewableHITsCommandInput,
1244
- options?: __HttpHandlerOptions
1245
- ): Promise<ListReviewableHITsCommandOutput>;
1246
- public listReviewableHITs(
1247
- args: ListReviewableHITsCommandInput,
1248
- cb: (err: any, data?: ListReviewableHITsCommandOutput) => void
1249
- ): void;
1250
- public listReviewableHITs(
1251
- args: ListReviewableHITsCommandInput,
1252
- options: __HttpHandlerOptions,
1253
- cb: (err: any, data?: ListReviewableHITsCommandOutput) => void
1254
- ): void;
1255
- public listReviewableHITs(
1256
- args: ListReviewableHITsCommandInput,
1257
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListReviewableHITsCommandOutput) => void),
1258
- cb?: (err: any, data?: ListReviewableHITsCommandOutput) => void
1259
- ): Promise<ListReviewableHITsCommandOutput> | void {
1260
- const command = new ListReviewableHITsCommand(args);
1261
- if (typeof optionsOrCb === "function") {
1262
- this.send(command, optionsOrCb);
1263
- } else if (typeof cb === "function") {
1264
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1265
- this.send(command, optionsOrCb || {}, cb);
1266
- } else {
1267
- return this.send(command, optionsOrCb);
1268
- }
1269
- }
1270
-
1271
- /**
1272
- * <p>
1273
- * The <code>ListReviewPolicyResultsForHIT</code> operation retrieves the computed results
1274
- * and the actions taken in the course of executing your Review Policies for a given HIT.
1275
- * For information about how to specify Review Policies when you call CreateHIT,
1276
- * see Review Policies. The ListReviewPolicyResultsForHIT operation can return results for both
1277
- * Assignment-level and HIT-level review results.
1278
- * </p>
1279
- */
1280
- public listReviewPolicyResultsForHIT(
1281
- args: ListReviewPolicyResultsForHITCommandInput,
1282
- options?: __HttpHandlerOptions
1283
- ): Promise<ListReviewPolicyResultsForHITCommandOutput>;
1284
- public listReviewPolicyResultsForHIT(
1285
- args: ListReviewPolicyResultsForHITCommandInput,
1286
- cb: (err: any, data?: ListReviewPolicyResultsForHITCommandOutput) => void
1287
- ): void;
1288
- public listReviewPolicyResultsForHIT(
1289
- args: ListReviewPolicyResultsForHITCommandInput,
1290
- options: __HttpHandlerOptions,
1291
- cb: (err: any, data?: ListReviewPolicyResultsForHITCommandOutput) => void
1292
- ): void;
1293
- public listReviewPolicyResultsForHIT(
1294
- args: ListReviewPolicyResultsForHITCommandInput,
1295
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListReviewPolicyResultsForHITCommandOutput) => void),
1296
- cb?: (err: any, data?: ListReviewPolicyResultsForHITCommandOutput) => void
1297
- ): Promise<ListReviewPolicyResultsForHITCommandOutput> | void {
1298
- const command = new ListReviewPolicyResultsForHITCommand(args);
1299
- if (typeof optionsOrCb === "function") {
1300
- this.send(command, optionsOrCb);
1301
- } else if (typeof cb === "function") {
1302
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1303
- this.send(command, optionsOrCb || {}, cb);
1304
- } else {
1305
- return this.send(command, optionsOrCb);
1306
- }
1307
- }
1308
-
1309
- /**
1310
- * <p>The <code>ListWorkersBlocks</code> operation retrieves a list of Workers who are blocked from working on your HITs.</p>
1311
- */
1312
- public listWorkerBlocks(
1313
- args: ListWorkerBlocksCommandInput,
1314
- options?: __HttpHandlerOptions
1315
- ): Promise<ListWorkerBlocksCommandOutput>;
1316
- public listWorkerBlocks(
1317
- args: ListWorkerBlocksCommandInput,
1318
- cb: (err: any, data?: ListWorkerBlocksCommandOutput) => void
1319
- ): void;
1320
- public listWorkerBlocks(
1321
- args: ListWorkerBlocksCommandInput,
1322
- options: __HttpHandlerOptions,
1323
- cb: (err: any, data?: ListWorkerBlocksCommandOutput) => void
1324
- ): void;
1325
- public listWorkerBlocks(
1326
- args: ListWorkerBlocksCommandInput,
1327
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListWorkerBlocksCommandOutput) => void),
1328
- cb?: (err: any, data?: ListWorkerBlocksCommandOutput) => void
1329
- ): Promise<ListWorkerBlocksCommandOutput> | void {
1330
- const command = new ListWorkerBlocksCommand(args);
1331
- if (typeof optionsOrCb === "function") {
1332
- this.send(command, optionsOrCb);
1333
- } else if (typeof cb === "function") {
1334
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1335
- this.send(command, optionsOrCb || {}, cb);
1336
- } else {
1337
- return this.send(command, optionsOrCb);
1338
- }
1339
- }
1340
-
1341
- /**
1342
- * <p>
1343
- * The <code>ListWorkersWithQualificationType</code> operation returns all of the Workers
1344
- * that have been associated with a given Qualification type.
1345
- * </p>
1346
- */
1347
- public listWorkersWithQualificationType(
1348
- args: ListWorkersWithQualificationTypeCommandInput,
1349
- options?: __HttpHandlerOptions
1350
- ): Promise<ListWorkersWithQualificationTypeCommandOutput>;
1351
- public listWorkersWithQualificationType(
1352
- args: ListWorkersWithQualificationTypeCommandInput,
1353
- cb: (err: any, data?: ListWorkersWithQualificationTypeCommandOutput) => void
1354
- ): void;
1355
- public listWorkersWithQualificationType(
1356
- args: ListWorkersWithQualificationTypeCommandInput,
1357
- options: __HttpHandlerOptions,
1358
- cb: (err: any, data?: ListWorkersWithQualificationTypeCommandOutput) => void
1359
- ): void;
1360
- public listWorkersWithQualificationType(
1361
- args: ListWorkersWithQualificationTypeCommandInput,
1362
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListWorkersWithQualificationTypeCommandOutput) => void),
1363
- cb?: (err: any, data?: ListWorkersWithQualificationTypeCommandOutput) => void
1364
- ): Promise<ListWorkersWithQualificationTypeCommandOutput> | void {
1365
- const command = new ListWorkersWithQualificationTypeCommand(args);
1366
- if (typeof optionsOrCb === "function") {
1367
- this.send(command, optionsOrCb);
1368
- } else if (typeof cb === "function") {
1369
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1370
- this.send(command, optionsOrCb || {}, cb);
1371
- } else {
1372
- return this.send(command, optionsOrCb);
1373
- }
1374
- }
1375
-
1376
- /**
1377
- * <p>
1378
- * The
1379
- * <code>NotifyWorkers</code>
1380
- * operation sends an email to one or more Workers that you specify with
1381
- * the Worker ID. You can specify up to 100 Worker IDs to send the same
1382
- * message with a single call to the NotifyWorkers operation. The
1383
- * NotifyWorkers operation will send a notification email to a Worker
1384
- * only if you have previously approved or rejected work from the
1385
- * Worker.
1386
- * </p>
1387
- */
1388
- public notifyWorkers(
1389
- args: NotifyWorkersCommandInput,
1390
- options?: __HttpHandlerOptions
1391
- ): Promise<NotifyWorkersCommandOutput>;
1392
- public notifyWorkers(
1393
- args: NotifyWorkersCommandInput,
1394
- cb: (err: any, data?: NotifyWorkersCommandOutput) => void
1395
- ): void;
1396
- public notifyWorkers(
1397
- args: NotifyWorkersCommandInput,
1398
- options: __HttpHandlerOptions,
1399
- cb: (err: any, data?: NotifyWorkersCommandOutput) => void
1400
- ): void;
1401
- public notifyWorkers(
1402
- args: NotifyWorkersCommandInput,
1403
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: NotifyWorkersCommandOutput) => void),
1404
- cb?: (err: any, data?: NotifyWorkersCommandOutput) => void
1405
- ): Promise<NotifyWorkersCommandOutput> | void {
1406
- const command = new NotifyWorkersCommand(args);
1407
- if (typeof optionsOrCb === "function") {
1408
- this.send(command, optionsOrCb);
1409
- } else if (typeof cb === "function") {
1410
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1411
- this.send(command, optionsOrCb || {}, cb);
1412
- } else {
1413
- return this.send(command, optionsOrCb);
1414
- }
1415
- }
1416
-
1417
- /**
1418
- * <p>
1419
- * The <code>RejectAssignment</code> operation rejects the results of a completed assignment.
1420
- * </p>
1421
- * <p>
1422
- * You can include an optional feedback message with the rejection,
1423
- * which the Worker can see in the Status section of the web site.
1424
- * When you include a feedback message with the rejection,
1425
- * it helps the Worker understand why the assignment was rejected,
1426
- * and can improve the quality of the results the Worker submits in the future.
1427
- * </p>
1428
- * <p>
1429
- * Only the Requester who created the HIT can reject an assignment for the HIT.
1430
- * </p>
1431
- */
1432
- public rejectAssignment(
1433
- args: RejectAssignmentCommandInput,
1434
- options?: __HttpHandlerOptions
1435
- ): Promise<RejectAssignmentCommandOutput>;
1436
- public rejectAssignment(
1437
- args: RejectAssignmentCommandInput,
1438
- cb: (err: any, data?: RejectAssignmentCommandOutput) => void
1439
- ): void;
1440
- public rejectAssignment(
1441
- args: RejectAssignmentCommandInput,
1442
- options: __HttpHandlerOptions,
1443
- cb: (err: any, data?: RejectAssignmentCommandOutput) => void
1444
- ): void;
1445
- public rejectAssignment(
1446
- args: RejectAssignmentCommandInput,
1447
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RejectAssignmentCommandOutput) => void),
1448
- cb?: (err: any, data?: RejectAssignmentCommandOutput) => void
1449
- ): Promise<RejectAssignmentCommandOutput> | void {
1450
- const command = new RejectAssignmentCommand(args);
1451
- if (typeof optionsOrCb === "function") {
1452
- this.send(command, optionsOrCb);
1453
- } else if (typeof cb === "function") {
1454
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1455
- this.send(command, optionsOrCb || {}, cb);
1456
- } else {
1457
- return this.send(command, optionsOrCb);
1458
- }
1459
- }
1460
-
1461
- /**
1462
- * <p>
1463
- * The
1464
- * <code>RejectQualificationRequest</code>
1465
- * operation rejects a user's request for a Qualification.
1466
- * </p>
1467
- * <p> You can provide a text message explaining why the request was
1468
- * rejected. The Worker who made the request can see this message.</p>
1469
- */
1470
- public rejectQualificationRequest(
1471
- args: RejectQualificationRequestCommandInput,
1472
- options?: __HttpHandlerOptions
1473
- ): Promise<RejectQualificationRequestCommandOutput>;
1474
- public rejectQualificationRequest(
1475
- args: RejectQualificationRequestCommandInput,
1476
- cb: (err: any, data?: RejectQualificationRequestCommandOutput) => void
1477
- ): void;
1478
- public rejectQualificationRequest(
1479
- args: RejectQualificationRequestCommandInput,
1480
- options: __HttpHandlerOptions,
1481
- cb: (err: any, data?: RejectQualificationRequestCommandOutput) => void
1482
- ): void;
1483
- public rejectQualificationRequest(
1484
- args: RejectQualificationRequestCommandInput,
1485
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RejectQualificationRequestCommandOutput) => void),
1486
- cb?: (err: any, data?: RejectQualificationRequestCommandOutput) => void
1487
- ): Promise<RejectQualificationRequestCommandOutput> | void {
1488
- const command = new RejectQualificationRequestCommand(args);
1489
- if (typeof optionsOrCb === "function") {
1490
- this.send(command, optionsOrCb);
1491
- } else if (typeof cb === "function") {
1492
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1493
- this.send(command, optionsOrCb || {}, cb);
1494
- } else {
1495
- return this.send(command, optionsOrCb);
1496
- }
1497
- }
1498
-
1499
- /**
1500
- * <p>
1501
- * The
1502
- * <code>SendBonus</code>
1503
- * operation issues a payment of money from your account to a Worker.
1504
- * This payment happens separately from the reward you pay to the Worker
1505
- * when you approve the Worker's assignment. The SendBonus operation
1506
- * requires the Worker's ID and the assignment ID as parameters to
1507
- * initiate payment of the bonus. You must include a message that
1508
- * explains the reason for the bonus payment, as the Worker may not be
1509
- * expecting the payment. Amazon Mechanical Turk collects a fee for
1510
- * bonus payments, similar to the HIT listing fee. This operation fails
1511
- * if your account does not have enough funds to pay for both the bonus
1512
- * and the fees.
1513
- * </p>
1514
- */
1515
- public sendBonus(args: SendBonusCommandInput, options?: __HttpHandlerOptions): Promise<SendBonusCommandOutput>;
1516
- public sendBonus(args: SendBonusCommandInput, cb: (err: any, data?: SendBonusCommandOutput) => void): void;
1517
- public sendBonus(
1518
- args: SendBonusCommandInput,
1519
- options: __HttpHandlerOptions,
1520
- cb: (err: any, data?: SendBonusCommandOutput) => void
1521
- ): void;
1522
- public sendBonus(
1523
- args: SendBonusCommandInput,
1524
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SendBonusCommandOutput) => void),
1525
- cb?: (err: any, data?: SendBonusCommandOutput) => void
1526
- ): Promise<SendBonusCommandOutput> | void {
1527
- const command = new SendBonusCommand(args);
1528
- if (typeof optionsOrCb === "function") {
1529
- this.send(command, optionsOrCb);
1530
- } else if (typeof cb === "function") {
1531
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1532
- this.send(command, optionsOrCb || {}, cb);
1533
- } else {
1534
- return this.send(command, optionsOrCb);
1535
- }
1536
- }
1537
-
1538
- /**
1539
- * <p>
1540
- * The <code>SendTestEventNotification</code> operation causes Amazon Mechanical Turk to send
1541
- * a notification message as if a HIT event occurred, according to the provided
1542
- * notification specification. This allows you to test notifications without
1543
- * setting up notifications for a real HIT type and trying to trigger them using the website.
1544
- * When you call this operation, the service attempts to send the test notification immediately.
1545
- * </p>
1546
- */
1547
- public sendTestEventNotification(
1548
- args: SendTestEventNotificationCommandInput,
1549
- options?: __HttpHandlerOptions
1550
- ): Promise<SendTestEventNotificationCommandOutput>;
1551
- public sendTestEventNotification(
1552
- args: SendTestEventNotificationCommandInput,
1553
- cb: (err: any, data?: SendTestEventNotificationCommandOutput) => void
1554
- ): void;
1555
- public sendTestEventNotification(
1556
- args: SendTestEventNotificationCommandInput,
1557
- options: __HttpHandlerOptions,
1558
- cb: (err: any, data?: SendTestEventNotificationCommandOutput) => void
1559
- ): void;
1560
- public sendTestEventNotification(
1561
- args: SendTestEventNotificationCommandInput,
1562
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SendTestEventNotificationCommandOutput) => void),
1563
- cb?: (err: any, data?: SendTestEventNotificationCommandOutput) => void
1564
- ): Promise<SendTestEventNotificationCommandOutput> | void {
1565
- const command = new SendTestEventNotificationCommand(args);
1566
- if (typeof optionsOrCb === "function") {
1567
- this.send(command, optionsOrCb);
1568
- } else if (typeof cb === "function") {
1569
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1570
- this.send(command, optionsOrCb || {}, cb);
1571
- } else {
1572
- return this.send(command, optionsOrCb);
1573
- }
1574
- }
1575
-
1576
- /**
1577
- * <p>
1578
- * The <code>UpdateExpirationForHIT</code> operation allows you update the expiration time of a HIT.
1579
- * If you update it to a time in the past, the HIT will be immediately expired.
1580
- * </p>
1581
- */
1582
- public updateExpirationForHIT(
1583
- args: UpdateExpirationForHITCommandInput,
1584
- options?: __HttpHandlerOptions
1585
- ): Promise<UpdateExpirationForHITCommandOutput>;
1586
- public updateExpirationForHIT(
1587
- args: UpdateExpirationForHITCommandInput,
1588
- cb: (err: any, data?: UpdateExpirationForHITCommandOutput) => void
1589
- ): void;
1590
- public updateExpirationForHIT(
1591
- args: UpdateExpirationForHITCommandInput,
1592
- options: __HttpHandlerOptions,
1593
- cb: (err: any, data?: UpdateExpirationForHITCommandOutput) => void
1594
- ): void;
1595
- public updateExpirationForHIT(
1596
- args: UpdateExpirationForHITCommandInput,
1597
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateExpirationForHITCommandOutput) => void),
1598
- cb?: (err: any, data?: UpdateExpirationForHITCommandOutput) => void
1599
- ): Promise<UpdateExpirationForHITCommandOutput> | void {
1600
- const command = new UpdateExpirationForHITCommand(args);
1601
- if (typeof optionsOrCb === "function") {
1602
- this.send(command, optionsOrCb);
1603
- } else if (typeof cb === "function") {
1604
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1605
- this.send(command, optionsOrCb || {}, cb);
1606
- } else {
1607
- return this.send(command, optionsOrCb);
1608
- }
1609
- }
1610
-
1611
- /**
1612
- * <p>
1613
- * The <code>UpdateHITReviewStatus</code> operation updates the status of a HIT.
1614
- * If the status is Reviewable, this operation can update the status to Reviewing,
1615
- * or it can revert a Reviewing HIT back to the Reviewable status.
1616
- * </p>
1617
- */
1618
- public updateHITReviewStatus(
1619
- args: UpdateHITReviewStatusCommandInput,
1620
- options?: __HttpHandlerOptions
1621
- ): Promise<UpdateHITReviewStatusCommandOutput>;
1622
- public updateHITReviewStatus(
1623
- args: UpdateHITReviewStatusCommandInput,
1624
- cb: (err: any, data?: UpdateHITReviewStatusCommandOutput) => void
1625
- ): void;
1626
- public updateHITReviewStatus(
1627
- args: UpdateHITReviewStatusCommandInput,
1628
- options: __HttpHandlerOptions,
1629
- cb: (err: any, data?: UpdateHITReviewStatusCommandOutput) => void
1630
- ): void;
1631
- public updateHITReviewStatus(
1632
- args: UpdateHITReviewStatusCommandInput,
1633
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateHITReviewStatusCommandOutput) => void),
1634
- cb?: (err: any, data?: UpdateHITReviewStatusCommandOutput) => void
1635
- ): Promise<UpdateHITReviewStatusCommandOutput> | void {
1636
- const command = new UpdateHITReviewStatusCommand(args);
1637
- if (typeof optionsOrCb === "function") {
1638
- this.send(command, optionsOrCb);
1639
- } else if (typeof cb === "function") {
1640
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1641
- this.send(command, optionsOrCb || {}, cb);
1642
- } else {
1643
- return this.send(command, optionsOrCb);
1644
- }
1645
- }
1646
-
1647
- /**
1648
- * <p>
1649
- * The
1650
- * <code>UpdateHITTypeOfHIT</code>
1651
- * operation allows you to change the HITType properties of a HIT. This
1652
- * operation disassociates the HIT from its old HITType properties and
1653
- * associates it with the new HITType properties. The HIT takes on the
1654
- * properties of the new HITType in place of the old ones.
1655
- * </p>
1656
- */
1657
- public updateHITTypeOfHIT(
1658
- args: UpdateHITTypeOfHITCommandInput,
1659
- options?: __HttpHandlerOptions
1660
- ): Promise<UpdateHITTypeOfHITCommandOutput>;
1661
- public updateHITTypeOfHIT(
1662
- args: UpdateHITTypeOfHITCommandInput,
1663
- cb: (err: any, data?: UpdateHITTypeOfHITCommandOutput) => void
1664
- ): void;
1665
- public updateHITTypeOfHIT(
1666
- args: UpdateHITTypeOfHITCommandInput,
1667
- options: __HttpHandlerOptions,
1668
- cb: (err: any, data?: UpdateHITTypeOfHITCommandOutput) => void
1669
- ): void;
1670
- public updateHITTypeOfHIT(
1671
- args: UpdateHITTypeOfHITCommandInput,
1672
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateHITTypeOfHITCommandOutput) => void),
1673
- cb?: (err: any, data?: UpdateHITTypeOfHITCommandOutput) => void
1674
- ): Promise<UpdateHITTypeOfHITCommandOutput> | void {
1675
- const command = new UpdateHITTypeOfHITCommand(args);
1676
- if (typeof optionsOrCb === "function") {
1677
- this.send(command, optionsOrCb);
1678
- } else if (typeof cb === "function") {
1679
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1680
- this.send(command, optionsOrCb || {}, cb);
1681
- } else {
1682
- return this.send(command, optionsOrCb);
1683
- }
1684
- }
1685
-
1686
- /**
1687
- * <p>
1688
- * The <code>UpdateNotificationSettings</code> operation creates, updates,
1689
- * disables or re-enables notifications for a HIT type.
1690
- * If you call the UpdateNotificationSettings operation for a HIT type that already has a
1691
- * notification specification, the operation replaces the old specification with a new one.
1692
- * You can call the UpdateNotificationSettings operation to enable or disable notifications
1693
- * for the HIT type, without having to modify the notification specification itself by providing
1694
- * updates to the Active status without specifying a new notification specification.
1695
- * To change the Active status of a HIT type's notifications,
1696
- * the HIT type must already have a notification specification,
1697
- * or one must be provided in the same call to <code>UpdateNotificationSettings</code>.
1698
- * </p>
1699
- */
1700
- public updateNotificationSettings(
1701
- args: UpdateNotificationSettingsCommandInput,
1702
- options?: __HttpHandlerOptions
1703
- ): Promise<UpdateNotificationSettingsCommandOutput>;
1704
- public updateNotificationSettings(
1705
- args: UpdateNotificationSettingsCommandInput,
1706
- cb: (err: any, data?: UpdateNotificationSettingsCommandOutput) => void
1707
- ): void;
1708
- public updateNotificationSettings(
1709
- args: UpdateNotificationSettingsCommandInput,
1710
- options: __HttpHandlerOptions,
1711
- cb: (err: any, data?: UpdateNotificationSettingsCommandOutput) => void
1712
- ): void;
1713
- public updateNotificationSettings(
1714
- args: UpdateNotificationSettingsCommandInput,
1715
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateNotificationSettingsCommandOutput) => void),
1716
- cb?: (err: any, data?: UpdateNotificationSettingsCommandOutput) => void
1717
- ): Promise<UpdateNotificationSettingsCommandOutput> | void {
1718
- const command = new UpdateNotificationSettingsCommand(args);
1719
- if (typeof optionsOrCb === "function") {
1720
- this.send(command, optionsOrCb);
1721
- } else if (typeof cb === "function") {
1722
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1723
- this.send(command, optionsOrCb || {}, cb);
1724
- } else {
1725
- return this.send(command, optionsOrCb);
1726
- }
1727
- }
1728
-
1729
- /**
1730
- * <p>
1731
- * The
1732
- * <code>UpdateQualificationType</code>
1733
- * operation modifies the attributes of an existing Qualification type,
1734
- * which is represented by a QualificationType data structure. Only the
1735
- * owner of a Qualification type can modify its attributes.
1736
- * </p>
1737
- * <p> Most attributes of a Qualification type can be changed after
1738
- * the type has been created. However, the Name and Keywords fields
1739
- * cannot be modified. The RetryDelayInSeconds parameter can be modified
1740
- * or added to change the delay or to enable retries, but
1741
- * RetryDelayInSeconds cannot be used to disable retries. </p>
1742
- * <p> You can use this operation to update the test for a
1743
- * Qualification type. The test is updated based on the values specified
1744
- * for the Test, TestDurationInSeconds and AnswerKey parameters. All
1745
- * three parameters specify the updated test. If you are updating the
1746
- * test for a type, you must specify the Test and TestDurationInSeconds
1747
- * parameters. The AnswerKey parameter is optional; omitting it specifies
1748
- * that the updated test does not have an answer key. </p>
1749
- * <p> If you omit the Test parameter, the test for the
1750
- * Qualification type is unchanged. There is no way to remove a test from
1751
- * a Qualification type that has one. If the type already has a test, you
1752
- * cannot update it to be AutoGranted. If the Qualification type does not
1753
- * have a test and one is provided by an update, the type will henceforth
1754
- * have a test. </p>
1755
- * <p> If you want to update the test duration or answer key for an
1756
- * existing test without changing the questions, you must specify a Test
1757
- * parameter with the original questions, along with the updated values. </p>
1758
- * <p> If you provide an updated Test but no AnswerKey, the new test
1759
- * will not have an answer key. Requests for such Qualifications must be
1760
- * granted manually. </p>
1761
- * <p> You can also update the AutoGranted and AutoGrantedValue
1762
- * attributes of the Qualification type.</p>
1763
- */
1764
- public updateQualificationType(
1765
- args: UpdateQualificationTypeCommandInput,
1766
- options?: __HttpHandlerOptions
1767
- ): Promise<UpdateQualificationTypeCommandOutput>;
1768
- public updateQualificationType(
1769
- args: UpdateQualificationTypeCommandInput,
1770
- cb: (err: any, data?: UpdateQualificationTypeCommandOutput) => void
1771
- ): void;
1772
- public updateQualificationType(
1773
- args: UpdateQualificationTypeCommandInput,
1774
- options: __HttpHandlerOptions,
1775
- cb: (err: any, data?: UpdateQualificationTypeCommandOutput) => void
1776
- ): void;
1777
- public updateQualificationType(
1778
- args: UpdateQualificationTypeCommandInput,
1779
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateQualificationTypeCommandOutput) => void),
1780
- cb?: (err: any, data?: UpdateQualificationTypeCommandOutput) => void
1781
- ): Promise<UpdateQualificationTypeCommandOutput> | void {
1782
- const command = new UpdateQualificationTypeCommand(args);
1783
- if (typeof optionsOrCb === "function") {
1784
- this.send(command, optionsOrCb);
1785
- } else if (typeof cb === "function") {
1786
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1787
- this.send(command, optionsOrCb || {}, cb);
1788
- } else {
1789
- return this.send(command, optionsOrCb);
1790
- }
1791
- }
1792
- }