@aws-sdk/client-mturk 3.50.0 → 3.53.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 (77) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/MTurkServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +34 -3
  5. package/dist-cjs/protocols/Aws_json1_1.js +274 -884
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/MTurkServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +30 -1
  9. package/dist-es/protocols/Aws_json1_1.js +665 -1037
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/MTurkServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +16 -7
  13. package/dist-types/ts3.4/MTurk.d.ts +200 -0
  14. package/dist-types/ts3.4/MTurkClient.d.ts +112 -0
  15. package/dist-types/ts3.4/commands/AcceptQualificationRequestCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/ApproveAssignmentCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/AssociateQualificationWithWorkerCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/CreateHITCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/CreateHITTypeCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/CreateHITWithHITTypeCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/CreateQualificationTypeCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/CreateWorkerBlockCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/DeleteHITCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/DeleteQualificationTypeCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/DeleteWorkerBlockCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/DisassociateQualificationFromWorkerCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/GetAssignmentCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/GetFileUploadURLCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/GetHITCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/GetQualificationScoreCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/GetQualificationTypeCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/ListAssignmentsForHITCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/ListBonusPaymentsCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/ListHITsCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/ListHITsForQualificationTypeCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/ListQualificationRequestsCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListQualificationTypesCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/ListReviewPolicyResultsForHITCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/ListReviewableHITsCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/ListWorkerBlocksCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/ListWorkersWithQualificationTypeCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/NotifyWorkersCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/RejectAssignmentCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/RejectQualificationRequestCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/SendBonusCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/SendTestEventNotificationCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/UpdateExpirationForHITCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/UpdateHITReviewStatusCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/UpdateHITTypeOfHITCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/UpdateNotificationSettingsCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/UpdateQualificationTypeCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +39 -0
  55. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  56. package/dist-types/ts3.4/index.d.ts +6 -0
  57. package/dist-types/ts3.4/models/MTurkServiceException.d.ts +6 -0
  58. package/dist-types/ts3.4/models/index.d.ts +1 -0
  59. package/dist-types/ts3.4/models/models_0.d.ts +1274 -0
  60. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  61. package/dist-types/ts3.4/pagination/ListAssignmentsForHITPaginator.d.ts +4 -0
  62. package/dist-types/ts3.4/pagination/ListBonusPaymentsPaginator.d.ts +4 -0
  63. package/dist-types/ts3.4/pagination/ListHITsForQualificationTypePaginator.d.ts +4 -0
  64. package/dist-types/ts3.4/pagination/ListHITsPaginator.d.ts +4 -0
  65. package/dist-types/ts3.4/pagination/ListQualificationRequestsPaginator.d.ts +4 -0
  66. package/dist-types/ts3.4/pagination/ListQualificationTypesPaginator.d.ts +4 -0
  67. package/dist-types/ts3.4/pagination/ListReviewPolicyResultsForHITPaginator.d.ts +4 -0
  68. package/dist-types/ts3.4/pagination/ListReviewableHITsPaginator.d.ts +4 -0
  69. package/dist-types/ts3.4/pagination/ListWorkerBlocksPaginator.d.ts +4 -0
  70. package/dist-types/ts3.4/pagination/ListWorkersWithQualificationTypePaginator.d.ts +4 -0
  71. package/dist-types/ts3.4/pagination/index.d.ts +11 -0
  72. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +119 -0
  73. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  74. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  75. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  76. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  77. package/package.json +33 -33
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./MTurkClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { MTurkServiceException } from "./models/MTurkServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var MTurkServiceException = (function (_super) {
4
+ __extends(MTurkServiceException, _super);
5
+ function MTurkServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, MTurkServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return MTurkServiceException;
11
+ }(__ServiceException));
12
+ export { MTurkServiceException };
@@ -1,4 +1,5 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { MTurkServiceException as __BaseException } from "./MTurkServiceException";
2
3
  export var AcceptQualificationRequestRequest;
3
4
  (function (AcceptQualificationRequestRequest) {
4
5
  AcceptQualificationRequestRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -7,6 +8,34 @@ export var AcceptQualificationRequestResponse;
7
8
  (function (AcceptQualificationRequestResponse) {
8
9
  AcceptQualificationRequestResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
10
  })(AcceptQualificationRequestResponse || (AcceptQualificationRequestResponse = {}));
11
+ var RequestError = (function (_super) {
12
+ __extends(RequestError, _super);
13
+ function RequestError(opts) {
14
+ var _this = _super.call(this, __assign({ name: "RequestError", $fault: "client" }, opts)) || this;
15
+ _this.name = "RequestError";
16
+ _this.$fault = "client";
17
+ Object.setPrototypeOf(_this, RequestError.prototype);
18
+ _this.Message = opts.Message;
19
+ _this.TurkErrorCode = opts.TurkErrorCode;
20
+ return _this;
21
+ }
22
+ return RequestError;
23
+ }(__BaseException));
24
+ export { RequestError };
25
+ var ServiceFault = (function (_super) {
26
+ __extends(ServiceFault, _super);
27
+ function ServiceFault(opts) {
28
+ var _this = _super.call(this, __assign({ name: "ServiceFault", $fault: "server" }, opts)) || this;
29
+ _this.name = "ServiceFault";
30
+ _this.$fault = "server";
31
+ Object.setPrototypeOf(_this, ServiceFault.prototype);
32
+ _this.Message = opts.Message;
33
+ _this.TurkErrorCode = opts.TurkErrorCode;
34
+ return _this;
35
+ }
36
+ return ServiceFault;
37
+ }(__BaseException));
38
+ export { ServiceFault };
10
39
  export var ApproveAssignmentRequest;
11
40
  (function (ApproveAssignmentRequest) {
12
41
  ApproveAssignmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };