@aws-sdk/client-mturk 3.51.0 → 3.54.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.
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)); };