@aws-sdk/client-mturk 3.300.0 → 3.303.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/models/models_0.js +80 -93
- package/dist-es/models/models_0.js +80 -93
- package/dist-types/commands/AcceptQualificationRequestCommand.d.ts +1 -1
- package/dist-types/commands/ApproveAssignmentCommand.d.ts +1 -1
- package/dist-types/commands/AssociateQualificationWithWorkerCommand.d.ts +1 -1
- package/dist-types/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +1 -1
- package/dist-types/commands/CreateHITCommand.d.ts +14 -14
- package/dist-types/commands/CreateHITTypeCommand.d.ts +6 -6
- package/dist-types/commands/CreateHITWithHITTypeCommand.d.ts +9 -9
- package/dist-types/commands/CreateQualificationTypeCommand.d.ts +1 -1
- package/dist-types/commands/CreateWorkerBlockCommand.d.ts +1 -1
- package/dist-types/commands/DeleteHITCommand.d.ts +1 -1
- package/dist-types/commands/DeleteQualificationTypeCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWorkerBlockCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateQualificationFromWorkerCommand.d.ts +1 -1
- package/dist-types/commands/GetAssignmentCommand.d.ts +1 -1
- package/dist-types/commands/GetFileUploadURLCommand.d.ts +1 -1
- package/dist-types/commands/GetHITCommand.d.ts +1 -1
- package/dist-types/commands/GetQualificationScoreCommand.d.ts +1 -1
- package/dist-types/commands/GetQualificationTypeCommand.d.ts +1 -1
- package/dist-types/commands/ListAssignmentsForHITCommand.d.ts +2 -2
- package/dist-types/commands/ListBonusPaymentsCommand.d.ts +1 -1
- package/dist-types/commands/ListHITsCommand.d.ts +1 -1
- package/dist-types/commands/ListHITsForQualificationTypeCommand.d.ts +1 -1
- package/dist-types/commands/ListQualificationRequestsCommand.d.ts +1 -1
- package/dist-types/commands/ListQualificationTypesCommand.d.ts +1 -1
- package/dist-types/commands/ListReviewPolicyResultsForHITCommand.d.ts +2 -2
- package/dist-types/commands/ListReviewableHITsCommand.d.ts +1 -1
- package/dist-types/commands/ListWorkerBlocksCommand.d.ts +1 -1
- package/dist-types/commands/ListWorkersWithQualificationTypeCommand.d.ts +1 -1
- package/dist-types/commands/NotifyWorkersCommand.d.ts +2 -2
- package/dist-types/commands/RejectAssignmentCommand.d.ts +1 -1
- package/dist-types/commands/RejectQualificationRequestCommand.d.ts +1 -1
- package/dist-types/commands/SendBonusCommand.d.ts +1 -1
- package/dist-types/commands/SendTestEventNotificationCommand.d.ts +3 -3
- package/dist-types/commands/UpdateExpirationForHITCommand.d.ts +1 -1
- package/dist-types/commands/UpdateHITReviewStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateHITTypeOfHITCommand.d.ts +1 -1
- package/dist-types/commands/UpdateNotificationSettingsCommand.d.ts +3 -3
- package/dist-types/commands/UpdateQualificationTypeCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +145 -80
- package/dist-types/ts3.4/models/models_0.d.ts +103 -80
- package/package.json +34 -34
|
@@ -32,96 +32,83 @@ class ServiceFault extends MTurkServiceException_1.MTurkServiceException {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
exports.ServiceFault = ServiceFault;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
ReviewActionStatus["Succeeded"] = "Succeeded";
|
|
116
|
-
})(ReviewActionStatus = exports.ReviewActionStatus || (exports.ReviewActionStatus = {}));
|
|
117
|
-
var NotifyWorkersFailureCode;
|
|
118
|
-
(function (NotifyWorkersFailureCode) {
|
|
119
|
-
NotifyWorkersFailureCode["HardFailure"] = "HardFailure";
|
|
120
|
-
NotifyWorkersFailureCode["SoftFailure"] = "SoftFailure";
|
|
121
|
-
})(NotifyWorkersFailureCode = exports.NotifyWorkersFailureCode || (exports.NotifyWorkersFailureCode = {}));
|
|
122
|
-
var NotificationTransport;
|
|
123
|
-
(function (NotificationTransport) {
|
|
124
|
-
NotificationTransport["Email"] = "Email";
|
|
125
|
-
NotificationTransport["SNS"] = "SNS";
|
|
126
|
-
NotificationTransport["SQS"] = "SQS";
|
|
127
|
-
})(NotificationTransport = exports.NotificationTransport || (exports.NotificationTransport = {}));
|
|
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
|
+
};
|
|
@@ -27,96 +27,83 @@ export class ServiceFault extends __BaseException {
|
|
|
27
27
|
this.TurkErrorCode = opts.TurkErrorCode;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
ReviewActionStatus["Succeeded"] = "Succeeded";
|
|
111
|
-
})(ReviewActionStatus || (ReviewActionStatus = {}));
|
|
112
|
-
export var NotifyWorkersFailureCode;
|
|
113
|
-
(function (NotifyWorkersFailureCode) {
|
|
114
|
-
NotifyWorkersFailureCode["HardFailure"] = "HardFailure";
|
|
115
|
-
NotifyWorkersFailureCode["SoftFailure"] = "SoftFailure";
|
|
116
|
-
})(NotifyWorkersFailureCode || (NotifyWorkersFailureCode = {}));
|
|
117
|
-
export var NotificationTransport;
|
|
118
|
-
(function (NotificationTransport) {
|
|
119
|
-
NotificationTransport["Email"] = "Email";
|
|
120
|
-
NotificationTransport["SNS"] = "SNS";
|
|
121
|
-
NotificationTransport["SQS"] = "SQS";
|
|
122
|
-
})(NotificationTransport || (NotificationTransport = {}));
|
|
30
|
+
export const AssignmentStatus = {
|
|
31
|
+
Approved: "Approved",
|
|
32
|
+
Rejected: "Rejected",
|
|
33
|
+
Submitted: "Submitted",
|
|
34
|
+
};
|
|
35
|
+
export const Comparator = {
|
|
36
|
+
DoesNotExist: "DoesNotExist",
|
|
37
|
+
EqualTo: "EqualTo",
|
|
38
|
+
Exists: "Exists",
|
|
39
|
+
GreaterThan: "GreaterThan",
|
|
40
|
+
GreaterThanOrEqualTo: "GreaterThanOrEqualTo",
|
|
41
|
+
In: "In",
|
|
42
|
+
LessThan: "LessThan",
|
|
43
|
+
LessThanOrEqualTo: "LessThanOrEqualTo",
|
|
44
|
+
NotEqualTo: "NotEqualTo",
|
|
45
|
+
NotIn: "NotIn",
|
|
46
|
+
};
|
|
47
|
+
export const HITAccessActions = {
|
|
48
|
+
Accept: "Accept",
|
|
49
|
+
DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept",
|
|
50
|
+
PreviewAndAccept: "PreviewAndAccept",
|
|
51
|
+
};
|
|
52
|
+
export const HITReviewStatus = {
|
|
53
|
+
MarkedForReview: "MarkedForReview",
|
|
54
|
+
NotReviewed: "NotReviewed",
|
|
55
|
+
ReviewedAppropriate: "ReviewedAppropriate",
|
|
56
|
+
ReviewedInappropriate: "ReviewedInappropriate",
|
|
57
|
+
};
|
|
58
|
+
export const HITStatus = {
|
|
59
|
+
Assignable: "Assignable",
|
|
60
|
+
Disposed: "Disposed",
|
|
61
|
+
Reviewable: "Reviewable",
|
|
62
|
+
Reviewing: "Reviewing",
|
|
63
|
+
Unassignable: "Unassignable",
|
|
64
|
+
};
|
|
65
|
+
export const QualificationTypeStatus = {
|
|
66
|
+
Active: "Active",
|
|
67
|
+
Inactive: "Inactive",
|
|
68
|
+
};
|
|
69
|
+
export const EventType = {
|
|
70
|
+
AssignmentAbandoned: "AssignmentAbandoned",
|
|
71
|
+
AssignmentAccepted: "AssignmentAccepted",
|
|
72
|
+
AssignmentApproved: "AssignmentApproved",
|
|
73
|
+
AssignmentRejected: "AssignmentRejected",
|
|
74
|
+
AssignmentReturned: "AssignmentReturned",
|
|
75
|
+
AssignmentSubmitted: "AssignmentSubmitted",
|
|
76
|
+
HITCreated: "HITCreated",
|
|
77
|
+
HITDisposed: "HITDisposed",
|
|
78
|
+
HITExpired: "HITExpired",
|
|
79
|
+
HITExtended: "HITExtended",
|
|
80
|
+
HITReviewable: "HITReviewable",
|
|
81
|
+
Ping: "Ping",
|
|
82
|
+
};
|
|
83
|
+
export const QualificationStatus = {
|
|
84
|
+
Granted: "Granted",
|
|
85
|
+
Revoked: "Revoked",
|
|
86
|
+
};
|
|
87
|
+
export const ReviewableHITStatus = {
|
|
88
|
+
Reviewable: "Reviewable",
|
|
89
|
+
Reviewing: "Reviewing",
|
|
90
|
+
};
|
|
91
|
+
export const ReviewPolicyLevel = {
|
|
92
|
+
Assignment: "Assignment",
|
|
93
|
+
HIT: "HIT",
|
|
94
|
+
};
|
|
95
|
+
export const ReviewActionStatus = {
|
|
96
|
+
Cancelled: "Cancelled",
|
|
97
|
+
Failed: "Failed",
|
|
98
|
+
Intended: "Intended",
|
|
99
|
+
Succeeded: "Succeeded",
|
|
100
|
+
};
|
|
101
|
+
export const NotifyWorkersFailureCode = {
|
|
102
|
+
HardFailure: "HardFailure",
|
|
103
|
+
SoftFailure: "SoftFailure",
|
|
104
|
+
};
|
|
105
|
+
export const NotificationTransport = {
|
|
106
|
+
Email: "Email",
|
|
107
|
+
SNS: "SNS",
|
|
108
|
+
SQS: "SQS",
|
|
109
|
+
};
|
|
@@ -35,7 +35,7 @@ export interface AcceptQualificationRequestCommandOutput extends AcceptQualifica
|
|
|
35
35
|
* import { MTurkClient, AcceptQualificationRequestCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
36
36
|
* // const { MTurkClient, AcceptQualificationRequestCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
37
37
|
* const client = new MTurkClient(config);
|
|
38
|
-
* const input = {
|
|
38
|
+
* const input = { // AcceptQualificationRequestRequest
|
|
39
39
|
* QualificationRequestId: "STRING_VALUE", // required
|
|
40
40
|
* IntegerValue: Number("int"),
|
|
41
41
|
* };
|
|
@@ -55,7 +55,7 @@ export interface ApproveAssignmentCommandOutput extends ApproveAssignmentRespons
|
|
|
55
55
|
* import { MTurkClient, ApproveAssignmentCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
56
56
|
* // const { MTurkClient, ApproveAssignmentCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
57
57
|
* const client = new MTurkClient(config);
|
|
58
|
-
* const input = {
|
|
58
|
+
* const input = { // ApproveAssignmentRequest
|
|
59
59
|
* AssignmentId: "STRING_VALUE", // required
|
|
60
60
|
* RequesterFeedback: "STRING_VALUE",
|
|
61
61
|
* OverrideRejection: true || false,
|
|
@@ -46,7 +46,7 @@ export interface AssociateQualificationWithWorkerCommandOutput extends Associate
|
|
|
46
46
|
* import { MTurkClient, AssociateQualificationWithWorkerCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
47
47
|
* // const { MTurkClient, AssociateQualificationWithWorkerCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
48
48
|
* const client = new MTurkClient(config);
|
|
49
|
-
* const input = {
|
|
49
|
+
* const input = { // AssociateQualificationWithWorkerRequest
|
|
50
50
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
51
51
|
* WorkerId: "STRING_VALUE", // required
|
|
52
52
|
* IntegerValue: Number("int"),
|
|
@@ -48,7 +48,7 @@ export interface CreateAdditionalAssignmentsForHITCommandOutput extends CreateAd
|
|
|
48
48
|
* import { MTurkClient, CreateAdditionalAssignmentsForHITCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
49
49
|
* // const { MTurkClient, CreateAdditionalAssignmentsForHITCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
50
50
|
* const client = new MTurkClient(config);
|
|
51
|
-
* const input = {
|
|
51
|
+
* const input = { // CreateAdditionalAssignmentsForHITRequest
|
|
52
52
|
* HITId: "STRING_VALUE", // required
|
|
53
53
|
* NumberOfAdditionalAssignments: Number("int"), // required
|
|
54
54
|
* UniqueRequestToken: "STRING_VALUE",
|
|
@@ -42,7 +42,7 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
42
42
|
* import { MTurkClient, CreateHITCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
43
43
|
* // const { MTurkClient, CreateHITCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
44
44
|
* const client = new MTurkClient(config);
|
|
45
|
-
* const input = {
|
|
45
|
+
* const input = { // CreateHITRequest
|
|
46
46
|
* MaxAssignments: Number("int"),
|
|
47
47
|
* AutoApprovalDelayInSeconds: Number("long"),
|
|
48
48
|
* LifetimeInSeconds: Number("long"), // required
|
|
@@ -53,15 +53,15 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
53
53
|
* Description: "STRING_VALUE", // required
|
|
54
54
|
* Question: "STRING_VALUE",
|
|
55
55
|
* RequesterAnnotation: "STRING_VALUE",
|
|
56
|
-
* QualificationRequirements: [
|
|
57
|
-
* {
|
|
56
|
+
* QualificationRequirements: [ // QualificationRequirementList
|
|
57
|
+
* { // QualificationRequirement
|
|
58
58
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
59
59
|
* Comparator: "STRING_VALUE", // required
|
|
60
|
-
* IntegerValues: [
|
|
60
|
+
* IntegerValues: [ // IntegerList
|
|
61
61
|
* Number("int"),
|
|
62
62
|
* ],
|
|
63
|
-
* LocaleValues: [
|
|
64
|
-
* {
|
|
63
|
+
* LocaleValues: [ // LocaleList
|
|
64
|
+
* { // Locale
|
|
65
65
|
* Country: "STRING_VALUE", // required
|
|
66
66
|
* Subdivision: "STRING_VALUE",
|
|
67
67
|
* },
|
|
@@ -71,16 +71,16 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
71
71
|
* },
|
|
72
72
|
* ],
|
|
73
73
|
* UniqueRequestToken: "STRING_VALUE",
|
|
74
|
-
* AssignmentReviewPolicy: {
|
|
74
|
+
* AssignmentReviewPolicy: { // ReviewPolicy
|
|
75
75
|
* PolicyName: "STRING_VALUE", // required
|
|
76
|
-
* Parameters: [
|
|
77
|
-
* {
|
|
76
|
+
* Parameters: [ // PolicyParameterList
|
|
77
|
+
* { // PolicyParameter
|
|
78
78
|
* Key: "STRING_VALUE",
|
|
79
|
-
* Values: [
|
|
79
|
+
* Values: [ // StringList
|
|
80
80
|
* "STRING_VALUE",
|
|
81
81
|
* ],
|
|
82
|
-
* MapEntries: [
|
|
83
|
-
* {
|
|
82
|
+
* MapEntries: [ // ParameterMapEntryList
|
|
83
|
+
* { // ParameterMapEntry
|
|
84
84
|
* Key: "STRING_VALUE",
|
|
85
85
|
* Values: [
|
|
86
86
|
* "STRING_VALUE",
|
|
@@ -110,8 +110,8 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
110
110
|
* ],
|
|
111
111
|
* },
|
|
112
112
|
* HITLayoutId: "STRING_VALUE",
|
|
113
|
-
* HITLayoutParameters: [
|
|
114
|
-
* {
|
|
113
|
+
* HITLayoutParameters: [ // HITLayoutParameterList
|
|
114
|
+
* { // HITLayoutParameter
|
|
115
115
|
* Name: "STRING_VALUE", // required
|
|
116
116
|
* Value: "STRING_VALUE", // required
|
|
117
117
|
* },
|
|
@@ -31,22 +31,22 @@ export interface CreateHITTypeCommandOutput extends CreateHITTypeResponse, __Met
|
|
|
31
31
|
* import { MTurkClient, CreateHITTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
32
32
|
* // const { MTurkClient, CreateHITTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
33
33
|
* const client = new MTurkClient(config);
|
|
34
|
-
* const input = {
|
|
34
|
+
* const input = { // CreateHITTypeRequest
|
|
35
35
|
* AutoApprovalDelayInSeconds: Number("long"),
|
|
36
36
|
* AssignmentDurationInSeconds: Number("long"), // required
|
|
37
37
|
* Reward: "STRING_VALUE", // required
|
|
38
38
|
* Title: "STRING_VALUE", // required
|
|
39
39
|
* Keywords: "STRING_VALUE",
|
|
40
40
|
* Description: "STRING_VALUE", // required
|
|
41
|
-
* QualificationRequirements: [
|
|
42
|
-
* {
|
|
41
|
+
* QualificationRequirements: [ // QualificationRequirementList
|
|
42
|
+
* { // QualificationRequirement
|
|
43
43
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
44
44
|
* Comparator: "STRING_VALUE", // required
|
|
45
|
-
* IntegerValues: [
|
|
45
|
+
* IntegerValues: [ // IntegerList
|
|
46
46
|
* Number("int"),
|
|
47
47
|
* ],
|
|
48
|
-
* LocaleValues: [
|
|
49
|
-
* {
|
|
48
|
+
* LocaleValues: [ // LocaleList
|
|
49
|
+
* { // Locale
|
|
50
50
|
* Country: "STRING_VALUE", // required
|
|
51
51
|
* Subdivision: "STRING_VALUE",
|
|
52
52
|
* },
|
|
@@ -43,23 +43,23 @@ export interface CreateHITWithHITTypeCommandOutput extends CreateHITWithHITTypeR
|
|
|
43
43
|
* import { MTurkClient, CreateHITWithHITTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
44
44
|
* // const { MTurkClient, CreateHITWithHITTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
45
45
|
* const client = new MTurkClient(config);
|
|
46
|
-
* const input = {
|
|
46
|
+
* const input = { // CreateHITWithHITTypeRequest
|
|
47
47
|
* HITTypeId: "STRING_VALUE", // required
|
|
48
48
|
* MaxAssignments: Number("int"),
|
|
49
49
|
* LifetimeInSeconds: Number("long"), // required
|
|
50
50
|
* Question: "STRING_VALUE",
|
|
51
51
|
* RequesterAnnotation: "STRING_VALUE",
|
|
52
52
|
* UniqueRequestToken: "STRING_VALUE",
|
|
53
|
-
* AssignmentReviewPolicy: {
|
|
53
|
+
* AssignmentReviewPolicy: { // ReviewPolicy
|
|
54
54
|
* PolicyName: "STRING_VALUE", // required
|
|
55
|
-
* Parameters: [
|
|
56
|
-
* {
|
|
55
|
+
* Parameters: [ // PolicyParameterList
|
|
56
|
+
* { // PolicyParameter
|
|
57
57
|
* Key: "STRING_VALUE",
|
|
58
|
-
* Values: [
|
|
58
|
+
* Values: [ // StringList
|
|
59
59
|
* "STRING_VALUE",
|
|
60
60
|
* ],
|
|
61
|
-
* MapEntries: [
|
|
62
|
-
* {
|
|
61
|
+
* MapEntries: [ // ParameterMapEntryList
|
|
62
|
+
* { // ParameterMapEntry
|
|
63
63
|
* Key: "STRING_VALUE",
|
|
64
64
|
* Values: [
|
|
65
65
|
* "STRING_VALUE",
|
|
@@ -89,8 +89,8 @@ export interface CreateHITWithHITTypeCommandOutput extends CreateHITWithHITTypeR
|
|
|
89
89
|
* ],
|
|
90
90
|
* },
|
|
91
91
|
* HITLayoutId: "STRING_VALUE",
|
|
92
|
-
* HITLayoutParameters: [
|
|
93
|
-
* {
|
|
92
|
+
* HITLayoutParameters: [ // HITLayoutParameterList
|
|
93
|
+
* { // HITLayoutParameter
|
|
94
94
|
* Name: "STRING_VALUE", // required
|
|
95
95
|
* Value: "STRING_VALUE", // required
|
|
96
96
|
* },
|
|
@@ -32,7 +32,7 @@ export interface CreateQualificationTypeCommandOutput extends CreateQualificatio
|
|
|
32
32
|
* import { MTurkClient, CreateQualificationTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
33
33
|
* // const { MTurkClient, CreateQualificationTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
34
34
|
* const client = new MTurkClient(config);
|
|
35
|
-
* const input = {
|
|
35
|
+
* const input = { // CreateQualificationTypeRequest
|
|
36
36
|
* Name: "STRING_VALUE", // required
|
|
37
37
|
* Keywords: "STRING_VALUE",
|
|
38
38
|
* Description: "STRING_VALUE", // required
|
|
@@ -26,7 +26,7 @@ export interface CreateWorkerBlockCommandOutput extends CreateWorkerBlockRespons
|
|
|
26
26
|
* import { MTurkClient, CreateWorkerBlockCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
27
27
|
* // const { MTurkClient, CreateWorkerBlockCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
28
28
|
* const client = new MTurkClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CreateWorkerBlockRequest
|
|
30
30
|
* WorkerId: "STRING_VALUE", // required
|
|
31
31
|
* Reason: "STRING_VALUE", // required
|
|
32
32
|
* };
|
|
@@ -61,7 +61,7 @@ export interface DeleteHITCommandOutput extends DeleteHITResponse, __MetadataBea
|
|
|
61
61
|
* import { MTurkClient, DeleteHITCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
62
62
|
* // const { MTurkClient, DeleteHITCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
63
63
|
* const client = new MTurkClient(config);
|
|
64
|
-
* const input = {
|
|
64
|
+
* const input = { // DeleteHITRequest
|
|
65
65
|
* HITId: "STRING_VALUE", // required
|
|
66
66
|
* };
|
|
67
67
|
* const command = new DeleteHITCommand(input);
|
|
@@ -44,7 +44,7 @@ export interface DeleteQualificationTypeCommandOutput extends DeleteQualificatio
|
|
|
44
44
|
* import { MTurkClient, DeleteQualificationTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
45
45
|
* // const { MTurkClient, DeleteQualificationTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
46
46
|
* const client = new MTurkClient(config);
|
|
47
|
-
* const input = {
|
|
47
|
+
* const input = { // DeleteQualificationTypeRequest
|
|
48
48
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
49
49
|
* };
|
|
50
50
|
* const command = new DeleteQualificationTypeCommand(input);
|
|
@@ -26,7 +26,7 @@ export interface DeleteWorkerBlockCommandOutput extends DeleteWorkerBlockRespons
|
|
|
26
26
|
* import { MTurkClient, DeleteWorkerBlockCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
27
27
|
* // const { MTurkClient, DeleteWorkerBlockCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
28
28
|
* const client = new MTurkClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // DeleteWorkerBlockRequest
|
|
30
30
|
* WorkerId: "STRING_VALUE", // required
|
|
31
31
|
* Reason: "STRING_VALUE",
|
|
32
32
|
* };
|
|
@@ -33,7 +33,7 @@ export interface DisassociateQualificationFromWorkerCommandOutput extends Disass
|
|
|
33
33
|
* import { MTurkClient, DisassociateQualificationFromWorkerCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
34
34
|
* // const { MTurkClient, DisassociateQualificationFromWorkerCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
35
35
|
* const client = new MTurkClient(config);
|
|
36
|
-
* const input = {
|
|
36
|
+
* const input = { // DisassociateQualificationFromWorkerRequest
|
|
37
37
|
* WorkerId: "STRING_VALUE", // required
|
|
38
38
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
39
39
|
* Reason: "STRING_VALUE",
|
|
@@ -28,7 +28,7 @@ export interface GetAssignmentCommandOutput extends GetAssignmentResponse, __Met
|
|
|
28
28
|
* import { MTurkClient, GetAssignmentCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
29
29
|
* // const { MTurkClient, GetAssignmentCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
30
30
|
* const client = new MTurkClient(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // GetAssignmentRequest
|
|
32
32
|
* AssignmentId: "STRING_VALUE", // required
|
|
33
33
|
* };
|
|
34
34
|
* const command = new GetAssignmentCommand(input);
|
|
@@ -43,7 +43,7 @@ export interface GetFileUploadURLCommandOutput extends GetFileUploadURLResponse,
|
|
|
43
43
|
* import { MTurkClient, GetFileUploadURLCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
44
44
|
* // const { MTurkClient, GetFileUploadURLCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
45
45
|
* const client = new MTurkClient(config);
|
|
46
|
-
* const input = {
|
|
46
|
+
* const input = { // GetFileUploadURLRequest
|
|
47
47
|
* AssignmentId: "STRING_VALUE", // required
|
|
48
48
|
* QuestionIdentifier: "STRING_VALUE", // required
|
|
49
49
|
* };
|