@aws-sdk/client-mturk 3.489.0 → 3.495.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-cjs/MTurk.js +1 -89
- package/dist-cjs/MTurkClient.js +1 -43
- package/dist-cjs/commands/AcceptQualificationRequestCommand.js +1 -28
- package/dist-cjs/commands/ApproveAssignmentCommand.js +1 -28
- package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js +1 -28
- package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +1 -28
- package/dist-cjs/commands/CreateHITCommand.js +1 -28
- package/dist-cjs/commands/CreateHITTypeCommand.js +1 -28
- package/dist-cjs/commands/CreateHITWithHITTypeCommand.js +1 -28
- package/dist-cjs/commands/CreateQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/CreateWorkerBlockCommand.js +1 -28
- package/dist-cjs/commands/DeleteHITCommand.js +1 -28
- package/dist-cjs/commands/DeleteQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/DeleteWorkerBlockCommand.js +1 -28
- package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js +1 -28
- package/dist-cjs/commands/GetAccountBalanceCommand.js +1 -28
- package/dist-cjs/commands/GetAssignmentCommand.js +1 -28
- package/dist-cjs/commands/GetFileUploadURLCommand.js +1 -28
- package/dist-cjs/commands/GetHITCommand.js +1 -28
- package/dist-cjs/commands/GetQualificationScoreCommand.js +1 -28
- package/dist-cjs/commands/GetQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/ListAssignmentsForHITCommand.js +1 -28
- package/dist-cjs/commands/ListBonusPaymentsCommand.js +1 -28
- package/dist-cjs/commands/ListHITsCommand.js +1 -28
- package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/ListQualificationRequestsCommand.js +1 -28
- package/dist-cjs/commands/ListQualificationTypesCommand.js +1 -28
- package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js +1 -28
- package/dist-cjs/commands/ListReviewableHITsCommand.js +1 -28
- package/dist-cjs/commands/ListWorkerBlocksCommand.js +1 -28
- package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/NotifyWorkersCommand.js +1 -28
- package/dist-cjs/commands/RejectAssignmentCommand.js +1 -28
- package/dist-cjs/commands/RejectQualificationRequestCommand.js +1 -28
- package/dist-cjs/commands/SendBonusCommand.js +1 -28
- package/dist-cjs/commands/SendTestEventNotificationCommand.js +1 -28
- package/dist-cjs/commands/UpdateExpirationForHITCommand.js +1 -28
- package/dist-cjs/commands/UpdateHITReviewStatusCommand.js +1 -28
- package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js +1 -28
- package/dist-cjs/commands/UpdateNotificationSettingsCommand.js +1 -28
- package/dist-cjs/commands/UpdateQualificationTypeCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -42
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3097 -11
- package/dist-cjs/models/MTurkServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -114
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAssignmentsForHITPaginator.js +1 -7
- package/dist-cjs/pagination/ListBonusPaymentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListHITsForQualificationTypePaginator.js +1 -7
- package/dist-cjs/pagination/ListHITsPaginator.js +1 -7
- package/dist-cjs/pagination/ListQualificationRequestsPaginator.js +1 -7
- package/dist-cjs/pagination/ListQualificationTypesPaginator.js +1 -7
- package/dist-cjs/pagination/ListReviewPolicyResultsForHITPaginator.js +1 -7
- package/dist-cjs/pagination/ListReviewableHITsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkerBlocksPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkersWithQualificationTypePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -14
- package/dist-cjs/protocols/Aws_json1_1.js +1 -2049
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MTurkServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class MTurkServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, MTurkServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.MTurkServiceException = MTurkServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,114 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationTransport = exports.NotifyWorkersFailureCode = exports.ReviewActionStatus = exports.ReviewPolicyLevel = exports.ReviewableHITStatus = exports.QualificationStatus = exports.EventType = exports.QualificationTypeStatus = exports.HITStatus = exports.HITReviewStatus = exports.HITAccessActions = exports.Comparator = exports.AssignmentStatus = exports.ServiceFault = exports.RequestError = void 0;
|
|
4
|
-
const MTurkServiceException_1 = require("./MTurkServiceException");
|
|
5
|
-
class RequestError extends MTurkServiceException_1.MTurkServiceException {
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "RequestError",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
this.name = "RequestError";
|
|
13
|
-
this.$fault = "client";
|
|
14
|
-
Object.setPrototypeOf(this, RequestError.prototype);
|
|
15
|
-
this.Message = opts.Message;
|
|
16
|
-
this.TurkErrorCode = opts.TurkErrorCode;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.RequestError = RequestError;
|
|
20
|
-
class ServiceFault extends MTurkServiceException_1.MTurkServiceException {
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "ServiceFault",
|
|
24
|
-
$fault: "server",
|
|
25
|
-
...opts,
|
|
26
|
-
});
|
|
27
|
-
this.name = "ServiceFault";
|
|
28
|
-
this.$fault = "server";
|
|
29
|
-
Object.setPrototypeOf(this, ServiceFault.prototype);
|
|
30
|
-
this.Message = opts.Message;
|
|
31
|
-
this.TurkErrorCode = opts.TurkErrorCode;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.ServiceFault = ServiceFault;
|
|
35
|
-
exports.AssignmentStatus = {
|
|
36
|
-
Approved: "Approved",
|
|
37
|
-
Rejected: "Rejected",
|
|
38
|
-
Submitted: "Submitted",
|
|
39
|
-
};
|
|
40
|
-
exports.Comparator = {
|
|
41
|
-
DoesNotExist: "DoesNotExist",
|
|
42
|
-
EqualTo: "EqualTo",
|
|
43
|
-
Exists: "Exists",
|
|
44
|
-
GreaterThan: "GreaterThan",
|
|
45
|
-
GreaterThanOrEqualTo: "GreaterThanOrEqualTo",
|
|
46
|
-
In: "In",
|
|
47
|
-
LessThan: "LessThan",
|
|
48
|
-
LessThanOrEqualTo: "LessThanOrEqualTo",
|
|
49
|
-
NotEqualTo: "NotEqualTo",
|
|
50
|
-
NotIn: "NotIn",
|
|
51
|
-
};
|
|
52
|
-
exports.HITAccessActions = {
|
|
53
|
-
Accept: "Accept",
|
|
54
|
-
DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept",
|
|
55
|
-
PreviewAndAccept: "PreviewAndAccept",
|
|
56
|
-
};
|
|
57
|
-
exports.HITReviewStatus = {
|
|
58
|
-
MarkedForReview: "MarkedForReview",
|
|
59
|
-
NotReviewed: "NotReviewed",
|
|
60
|
-
ReviewedAppropriate: "ReviewedAppropriate",
|
|
61
|
-
ReviewedInappropriate: "ReviewedInappropriate",
|
|
62
|
-
};
|
|
63
|
-
exports.HITStatus = {
|
|
64
|
-
Assignable: "Assignable",
|
|
65
|
-
Disposed: "Disposed",
|
|
66
|
-
Reviewable: "Reviewable",
|
|
67
|
-
Reviewing: "Reviewing",
|
|
68
|
-
Unassignable: "Unassignable",
|
|
69
|
-
};
|
|
70
|
-
exports.QualificationTypeStatus = {
|
|
71
|
-
Active: "Active",
|
|
72
|
-
Inactive: "Inactive",
|
|
73
|
-
};
|
|
74
|
-
exports.EventType = {
|
|
75
|
-
AssignmentAbandoned: "AssignmentAbandoned",
|
|
76
|
-
AssignmentAccepted: "AssignmentAccepted",
|
|
77
|
-
AssignmentApproved: "AssignmentApproved",
|
|
78
|
-
AssignmentRejected: "AssignmentRejected",
|
|
79
|
-
AssignmentReturned: "AssignmentReturned",
|
|
80
|
-
AssignmentSubmitted: "AssignmentSubmitted",
|
|
81
|
-
HITCreated: "HITCreated",
|
|
82
|
-
HITDisposed: "HITDisposed",
|
|
83
|
-
HITExpired: "HITExpired",
|
|
84
|
-
HITExtended: "HITExtended",
|
|
85
|
-
HITReviewable: "HITReviewable",
|
|
86
|
-
Ping: "Ping",
|
|
87
|
-
};
|
|
88
|
-
exports.QualificationStatus = {
|
|
89
|
-
Granted: "Granted",
|
|
90
|
-
Revoked: "Revoked",
|
|
91
|
-
};
|
|
92
|
-
exports.ReviewableHITStatus = {
|
|
93
|
-
Reviewable: "Reviewable",
|
|
94
|
-
Reviewing: "Reviewing",
|
|
95
|
-
};
|
|
96
|
-
exports.ReviewPolicyLevel = {
|
|
97
|
-
Assignment: "Assignment",
|
|
98
|
-
HIT: "HIT",
|
|
99
|
-
};
|
|
100
|
-
exports.ReviewActionStatus = {
|
|
101
|
-
Cancelled: "Cancelled",
|
|
102
|
-
Failed: "Failed",
|
|
103
|
-
Intended: "Intended",
|
|
104
|
-
Succeeded: "Succeeded",
|
|
105
|
-
};
|
|
106
|
-
exports.NotifyWorkersFailureCode = {
|
|
107
|
-
HardFailure: "HardFailure",
|
|
108
|
-
SoftFailure: "SoftFailure",
|
|
109
|
-
};
|
|
110
|
-
exports.NotificationTransport = {
|
|
111
|
-
Email: "Email",
|
|
112
|
-
SNS: "SNS",
|
|
113
|
-
SQS: "SQS",
|
|
114
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListAssignmentsForHIT = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListAssignmentsForHITCommand_1 = require("../commands/ListAssignmentsForHITCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListAssignmentsForHIT = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListAssignmentsForHITCommand_1.ListAssignmentsForHITCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListBonusPayments = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListBonusPaymentsCommand_1 = require("../commands/ListBonusPaymentsCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListBonusPayments = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListBonusPaymentsCommand_1.ListBonusPaymentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListHITsForQualificationType = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListHITsForQualificationTypeCommand_1 = require("../commands/ListHITsForQualificationTypeCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListHITsForQualificationType = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListHITsForQualificationTypeCommand_1.ListHITsForQualificationTypeCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListHITs = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListHITsCommand_1 = require("../commands/ListHITsCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListHITs = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListHITsCommand_1.ListHITsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListQualificationRequests = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListQualificationRequestsCommand_1 = require("../commands/ListQualificationRequestsCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListQualificationRequests = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListQualificationRequestsCommand_1.ListQualificationRequestsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListQualificationTypes = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListQualificationTypesCommand_1 = require("../commands/ListQualificationTypesCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListQualificationTypes = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListQualificationTypesCommand_1.ListQualificationTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListReviewPolicyResultsForHIT = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListReviewPolicyResultsForHITCommand_1 = require("../commands/ListReviewPolicyResultsForHITCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListReviewPolicyResultsForHIT = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListReviewPolicyResultsForHITCommand_1.ListReviewPolicyResultsForHITCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListReviewableHITs = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListReviewableHITsCommand_1 = require("../commands/ListReviewableHITsCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListReviewableHITs = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListReviewableHITsCommand_1.ListReviewableHITsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListWorkerBlocks = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListWorkerBlocksCommand_1 = require("../commands/ListWorkerBlocksCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListWorkerBlocks = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListWorkerBlocksCommand_1.ListWorkerBlocksCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListWorkersWithQualificationType = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListWorkersWithQualificationTypeCommand_1 = require("../commands/ListWorkersWithQualificationTypeCommand");
|
|
6
|
-
const MTurkClient_1 = require("../MTurkClient");
|
|
7
|
-
exports.paginateListWorkersWithQualificationType = (0, core_1.createPaginator)(MTurkClient_1.MTurkClient, ListWorkersWithQualificationTypeCommand_1.ListWorkersWithQualificationTypeCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ListAssignmentsForHITPaginator"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ListBonusPaymentsPaginator"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./ListHITsForQualificationTypePaginator"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./ListHITsPaginator"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./ListQualificationRequestsPaginator"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./ListQualificationTypesPaginator"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./ListReviewPolicyResultsForHITPaginator"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./ListReviewableHITsPaginator"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./ListWorkerBlocksPaginator"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./ListWorkersWithQualificationTypePaginator"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|