@aws-sdk/client-mturk 3.934.0 → 3.936.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/index.js +81 -80
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +80 -0
- package/dist-es/models/errors.js +33 -0
- package/dist-es/models/models_0.js +1 -113
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +184 -0
- package/dist-types/models/errors.d.ts +30 -0
- package/dist-types/models/models_0.d.ts +1 -214
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +103 -0
- package/dist-types/ts3.4/models/errors.d.ts +16 -0
- package/dist-types/ts3.4/models/models_0.d.ts +15 -119
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MTurkServiceException as __BaseException } from "./MTurkServiceException";
|
|
1
|
+
import { AssignmentStatus, Comparator, EventType, HITAccessActions, HITReviewStatus, HITStatus, NotificationTransport, NotifyWorkersFailureCode, QualificationStatus, QualificationTypeStatus, ReviewableHITStatus, ReviewActionStatus, ReviewPolicyLevel } from "./enums";
|
|
3
2
|
/**
|
|
4
3
|
* @public
|
|
5
4
|
*/
|
|
@@ -23,34 +22,6 @@ export interface AcceptQualificationRequestRequest {
|
|
|
23
22
|
*/
|
|
24
23
|
export interface AcceptQualificationRequestResponse {
|
|
25
24
|
}
|
|
26
|
-
/**
|
|
27
|
-
* <p>Your request is invalid.</p>
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
export declare class RequestError extends __BaseException {
|
|
31
|
-
readonly name: "RequestError";
|
|
32
|
-
readonly $fault: "client";
|
|
33
|
-
Message?: string | undefined;
|
|
34
|
-
TurkErrorCode?: string | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
constructor(opts: __ExceptionOptionType<RequestError, __BaseException>);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* <p>Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.</p>
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare class ServiceFault extends __BaseException {
|
|
45
|
-
readonly name: "ServiceFault";
|
|
46
|
-
readonly $fault: "server";
|
|
47
|
-
Message?: string | undefined;
|
|
48
|
-
TurkErrorCode?: string | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
|
-
constructor(opts: __ExceptionOptionType<ServiceFault, __BaseException>);
|
|
53
|
-
}
|
|
54
25
|
/**
|
|
55
26
|
* @public
|
|
56
27
|
*/
|
|
@@ -82,19 +53,6 @@ export interface ApproveAssignmentRequest {
|
|
|
82
53
|
*/
|
|
83
54
|
export interface ApproveAssignmentResponse {
|
|
84
55
|
}
|
|
85
|
-
/**
|
|
86
|
-
* @public
|
|
87
|
-
* @enum
|
|
88
|
-
*/
|
|
89
|
-
export declare const AssignmentStatus: {
|
|
90
|
-
readonly Approved: "Approved";
|
|
91
|
-
readonly Rejected: "Rejected";
|
|
92
|
-
readonly Submitted: "Submitted";
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
export type AssignmentStatus = (typeof AssignmentStatus)[keyof typeof AssignmentStatus];
|
|
98
56
|
/**
|
|
99
57
|
* <p> The Assignment data structure represents a single assignment
|
|
100
58
|
* of a HIT to a Worker. The assignment tracks the Worker's efforts to
|
|
@@ -252,26 +210,6 @@ export interface BonusPayment {
|
|
|
252
210
|
*/
|
|
253
211
|
GrantTime?: Date | undefined;
|
|
254
212
|
}
|
|
255
|
-
/**
|
|
256
|
-
* @public
|
|
257
|
-
* @enum
|
|
258
|
-
*/
|
|
259
|
-
export declare const Comparator: {
|
|
260
|
-
readonly DoesNotExist: "DoesNotExist";
|
|
261
|
-
readonly EqualTo: "EqualTo";
|
|
262
|
-
readonly Exists: "Exists";
|
|
263
|
-
readonly GreaterThan: "GreaterThan";
|
|
264
|
-
readonly GreaterThanOrEqualTo: "GreaterThanOrEqualTo";
|
|
265
|
-
readonly In: "In";
|
|
266
|
-
readonly LessThan: "LessThan";
|
|
267
|
-
readonly LessThanOrEqualTo: "LessThanOrEqualTo";
|
|
268
|
-
readonly NotEqualTo: "NotEqualTo";
|
|
269
|
-
readonly NotIn: "NotIn";
|
|
270
|
-
};
|
|
271
|
-
/**
|
|
272
|
-
* @public
|
|
273
|
-
*/
|
|
274
|
-
export type Comparator = (typeof Comparator)[keyof typeof Comparator];
|
|
275
213
|
/**
|
|
276
214
|
* @public
|
|
277
215
|
*/
|
|
@@ -395,19 +333,6 @@ export interface HITLayoutParameter {
|
|
|
395
333
|
*/
|
|
396
334
|
Value: string | undefined;
|
|
397
335
|
}
|
|
398
|
-
/**
|
|
399
|
-
* @public
|
|
400
|
-
* @enum
|
|
401
|
-
*/
|
|
402
|
-
export declare const HITAccessActions: {
|
|
403
|
-
readonly Accept: "Accept";
|
|
404
|
-
readonly DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept";
|
|
405
|
-
readonly PreviewAndAccept: "PreviewAndAccept";
|
|
406
|
-
};
|
|
407
|
-
/**
|
|
408
|
-
* @public
|
|
409
|
-
*/
|
|
410
|
-
export type HITAccessActions = (typeof HITAccessActions)[keyof typeof HITAccessActions];
|
|
411
336
|
/**
|
|
412
337
|
* <p>The Locale data structure represents a geographical region or location.</p>
|
|
413
338
|
* @public
|
|
@@ -697,35 +622,6 @@ export interface CreateHITRequest {
|
|
|
697
622
|
*/
|
|
698
623
|
HITLayoutParameters?: HITLayoutParameter[] | undefined;
|
|
699
624
|
}
|
|
700
|
-
/**
|
|
701
|
-
* @public
|
|
702
|
-
* @enum
|
|
703
|
-
*/
|
|
704
|
-
export declare const HITReviewStatus: {
|
|
705
|
-
readonly MarkedForReview: "MarkedForReview";
|
|
706
|
-
readonly NotReviewed: "NotReviewed";
|
|
707
|
-
readonly ReviewedAppropriate: "ReviewedAppropriate";
|
|
708
|
-
readonly ReviewedInappropriate: "ReviewedInappropriate";
|
|
709
|
-
};
|
|
710
|
-
/**
|
|
711
|
-
* @public
|
|
712
|
-
*/
|
|
713
|
-
export type HITReviewStatus = (typeof HITReviewStatus)[keyof typeof HITReviewStatus];
|
|
714
|
-
/**
|
|
715
|
-
* @public
|
|
716
|
-
* @enum
|
|
717
|
-
*/
|
|
718
|
-
export declare const HITStatus: {
|
|
719
|
-
readonly Assignable: "Assignable";
|
|
720
|
-
readonly Disposed: "Disposed";
|
|
721
|
-
readonly Reviewable: "Reviewable";
|
|
722
|
-
readonly Reviewing: "Reviewing";
|
|
723
|
-
readonly Unassignable: "Unassignable";
|
|
724
|
-
};
|
|
725
|
-
/**
|
|
726
|
-
* @public
|
|
727
|
-
*/
|
|
728
|
-
export type HITStatus = (typeof HITStatus)[keyof typeof HITStatus];
|
|
729
625
|
/**
|
|
730
626
|
* <p> The HIT data structure represents a single HIT, including
|
|
731
627
|
* all the information necessary for a Worker to accept and complete the
|
|
@@ -1087,18 +983,6 @@ export interface CreateHITWithHITTypeResponse {
|
|
|
1087
983
|
*/
|
|
1088
984
|
HIT?: HIT | undefined;
|
|
1089
985
|
}
|
|
1090
|
-
/**
|
|
1091
|
-
* @public
|
|
1092
|
-
* @enum
|
|
1093
|
-
*/
|
|
1094
|
-
export declare const QualificationTypeStatus: {
|
|
1095
|
-
readonly Active: "Active";
|
|
1096
|
-
readonly Inactive: "Inactive";
|
|
1097
|
-
};
|
|
1098
|
-
/**
|
|
1099
|
-
* @public
|
|
1100
|
-
*/
|
|
1101
|
-
export type QualificationTypeStatus = (typeof QualificationTypeStatus)[keyof typeof QualificationTypeStatus];
|
|
1102
986
|
/**
|
|
1103
987
|
* @public
|
|
1104
988
|
*/
|
|
@@ -1415,28 +1299,6 @@ export interface DisassociateQualificationFromWorkerRequest {
|
|
|
1415
1299
|
*/
|
|
1416
1300
|
export interface DisassociateQualificationFromWorkerResponse {
|
|
1417
1301
|
}
|
|
1418
|
-
/**
|
|
1419
|
-
* @public
|
|
1420
|
-
* @enum
|
|
1421
|
-
*/
|
|
1422
|
-
export declare const EventType: {
|
|
1423
|
-
readonly AssignmentAbandoned: "AssignmentAbandoned";
|
|
1424
|
-
readonly AssignmentAccepted: "AssignmentAccepted";
|
|
1425
|
-
readonly AssignmentApproved: "AssignmentApproved";
|
|
1426
|
-
readonly AssignmentRejected: "AssignmentRejected";
|
|
1427
|
-
readonly AssignmentReturned: "AssignmentReturned";
|
|
1428
|
-
readonly AssignmentSubmitted: "AssignmentSubmitted";
|
|
1429
|
-
readonly HITCreated: "HITCreated";
|
|
1430
|
-
readonly HITDisposed: "HITDisposed";
|
|
1431
|
-
readonly HITExpired: "HITExpired";
|
|
1432
|
-
readonly HITExtended: "HITExtended";
|
|
1433
|
-
readonly HITReviewable: "HITReviewable";
|
|
1434
|
-
readonly Ping: "Ping";
|
|
1435
|
-
};
|
|
1436
|
-
/**
|
|
1437
|
-
* @public
|
|
1438
|
-
*/
|
|
1439
|
-
export type EventType = (typeof EventType)[keyof typeof EventType];
|
|
1440
1302
|
/**
|
|
1441
1303
|
* @public
|
|
1442
1304
|
*/
|
|
@@ -1549,18 +1411,6 @@ export interface GetQualificationScoreRequest {
|
|
|
1549
1411
|
*/
|
|
1550
1412
|
WorkerId: string | undefined;
|
|
1551
1413
|
}
|
|
1552
|
-
/**
|
|
1553
|
-
* @public
|
|
1554
|
-
* @enum
|
|
1555
|
-
*/
|
|
1556
|
-
export declare const QualificationStatus: {
|
|
1557
|
-
readonly Granted: "Granted";
|
|
1558
|
-
readonly Revoked: "Revoked";
|
|
1559
|
-
};
|
|
1560
|
-
/**
|
|
1561
|
-
* @public
|
|
1562
|
-
*/
|
|
1563
|
-
export type QualificationStatus = (typeof QualificationStatus)[keyof typeof QualificationStatus];
|
|
1564
1414
|
/**
|
|
1565
1415
|
* <p>The Qualification data structure represents a Qualification
|
|
1566
1416
|
* assigned to a user, including the Qualification type and the value
|
|
@@ -2005,18 +1855,6 @@ export interface ListQualificationTypesResponse {
|
|
|
2005
1855
|
*/
|
|
2006
1856
|
QualificationTypes?: QualificationType[] | undefined;
|
|
2007
1857
|
}
|
|
2008
|
-
/**
|
|
2009
|
-
* @public
|
|
2010
|
-
* @enum
|
|
2011
|
-
*/
|
|
2012
|
-
export declare const ReviewableHITStatus: {
|
|
2013
|
-
readonly Reviewable: "Reviewable";
|
|
2014
|
-
readonly Reviewing: "Reviewing";
|
|
2015
|
-
};
|
|
2016
|
-
/**
|
|
2017
|
-
* @public
|
|
2018
|
-
*/
|
|
2019
|
-
export type ReviewableHITStatus = (typeof ReviewableHITStatus)[keyof typeof ReviewableHITStatus];
|
|
2020
1858
|
/**
|
|
2021
1859
|
* @public
|
|
2022
1860
|
*/
|
|
@@ -2075,18 +1913,6 @@ export interface ListReviewableHITsResponse {
|
|
|
2075
1913
|
*/
|
|
2076
1914
|
HITs?: HIT[] | undefined;
|
|
2077
1915
|
}
|
|
2078
|
-
/**
|
|
2079
|
-
* @public
|
|
2080
|
-
* @enum
|
|
2081
|
-
*/
|
|
2082
|
-
export declare const ReviewPolicyLevel: {
|
|
2083
|
-
readonly Assignment: "Assignment";
|
|
2084
|
-
readonly HIT: "HIT";
|
|
2085
|
-
};
|
|
2086
|
-
/**
|
|
2087
|
-
* @public
|
|
2088
|
-
*/
|
|
2089
|
-
export type ReviewPolicyLevel = (typeof ReviewPolicyLevel)[keyof typeof ReviewPolicyLevel];
|
|
2090
1916
|
/**
|
|
2091
1917
|
* @public
|
|
2092
1918
|
*/
|
|
@@ -2131,20 +1957,6 @@ export interface ListReviewPolicyResultsForHITRequest {
|
|
|
2131
1957
|
*/
|
|
2132
1958
|
MaxResults?: number | undefined;
|
|
2133
1959
|
}
|
|
2134
|
-
/**
|
|
2135
|
-
* @public
|
|
2136
|
-
* @enum
|
|
2137
|
-
*/
|
|
2138
|
-
export declare const ReviewActionStatus: {
|
|
2139
|
-
readonly Cancelled: "Cancelled";
|
|
2140
|
-
readonly Failed: "Failed";
|
|
2141
|
-
readonly Intended: "Intended";
|
|
2142
|
-
readonly Succeeded: "Succeeded";
|
|
2143
|
-
};
|
|
2144
|
-
/**
|
|
2145
|
-
* @public
|
|
2146
|
-
*/
|
|
2147
|
-
export type ReviewActionStatus = (typeof ReviewActionStatus)[keyof typeof ReviewActionStatus];
|
|
2148
1960
|
/**
|
|
2149
1961
|
* <p> Both the AssignmentReviewReport and the HITReviewReport
|
|
2150
1962
|
* elements contains the ReviewActionDetail data structure. This
|
|
@@ -2457,18 +2269,6 @@ export interface NotifyWorkersRequest {
|
|
|
2457
2269
|
*/
|
|
2458
2270
|
WorkerIds: string[] | undefined;
|
|
2459
2271
|
}
|
|
2460
|
-
/**
|
|
2461
|
-
* @public
|
|
2462
|
-
* @enum
|
|
2463
|
-
*/
|
|
2464
|
-
export declare const NotifyWorkersFailureCode: {
|
|
2465
|
-
readonly HardFailure: "HardFailure";
|
|
2466
|
-
readonly SoftFailure: "SoftFailure";
|
|
2467
|
-
};
|
|
2468
|
-
/**
|
|
2469
|
-
* @public
|
|
2470
|
-
*/
|
|
2471
|
-
export type NotifyWorkersFailureCode = (typeof NotifyWorkersFailureCode)[keyof typeof NotifyWorkersFailureCode];
|
|
2472
2272
|
/**
|
|
2473
2273
|
* <p> When MTurk encounters an issue with notifying the Workers
|
|
2474
2274
|
* you specified, it returns back this object with failure details.
|
|
@@ -2602,19 +2402,6 @@ export interface SendBonusRequest {
|
|
|
2602
2402
|
*/
|
|
2603
2403
|
export interface SendBonusResponse {
|
|
2604
2404
|
}
|
|
2605
|
-
/**
|
|
2606
|
-
* @public
|
|
2607
|
-
* @enum
|
|
2608
|
-
*/
|
|
2609
|
-
export declare const NotificationTransport: {
|
|
2610
|
-
readonly Email: "Email";
|
|
2611
|
-
readonly SNS: "SNS";
|
|
2612
|
-
readonly SQS: "SQS";
|
|
2613
|
-
};
|
|
2614
|
-
/**
|
|
2615
|
-
* @public
|
|
2616
|
-
*/
|
|
2617
|
-
export type NotificationTransport = (typeof NotificationTransport)[keyof typeof NotificationTransport];
|
|
2618
2405
|
/**
|
|
2619
2406
|
* <p>The NotificationSpecification data structure describes a HIT
|
|
2620
2407
|
* event notification for a HIT type.</p>
|
|
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { MTurkExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
9
11
|
export { MTurkServiceException } from "./models/MTurkServiceException";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export declare const AssignmentStatus: {
|
|
2
|
+
readonly Approved: "Approved";
|
|
3
|
+
readonly Rejected: "Rejected";
|
|
4
|
+
readonly Submitted: "Submitted";
|
|
5
|
+
};
|
|
6
|
+
export type AssignmentStatus =
|
|
7
|
+
(typeof AssignmentStatus)[keyof typeof AssignmentStatus];
|
|
8
|
+
export declare const Comparator: {
|
|
9
|
+
readonly DoesNotExist: "DoesNotExist";
|
|
10
|
+
readonly EqualTo: "EqualTo";
|
|
11
|
+
readonly Exists: "Exists";
|
|
12
|
+
readonly GreaterThan: "GreaterThan";
|
|
13
|
+
readonly GreaterThanOrEqualTo: "GreaterThanOrEqualTo";
|
|
14
|
+
readonly In: "In";
|
|
15
|
+
readonly LessThan: "LessThan";
|
|
16
|
+
readonly LessThanOrEqualTo: "LessThanOrEqualTo";
|
|
17
|
+
readonly NotEqualTo: "NotEqualTo";
|
|
18
|
+
readonly NotIn: "NotIn";
|
|
19
|
+
};
|
|
20
|
+
export type Comparator = (typeof Comparator)[keyof typeof Comparator];
|
|
21
|
+
export declare const HITAccessActions: {
|
|
22
|
+
readonly Accept: "Accept";
|
|
23
|
+
readonly DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept";
|
|
24
|
+
readonly PreviewAndAccept: "PreviewAndAccept";
|
|
25
|
+
};
|
|
26
|
+
export type HITAccessActions =
|
|
27
|
+
(typeof HITAccessActions)[keyof typeof HITAccessActions];
|
|
28
|
+
export declare const HITReviewStatus: {
|
|
29
|
+
readonly MarkedForReview: "MarkedForReview";
|
|
30
|
+
readonly NotReviewed: "NotReviewed";
|
|
31
|
+
readonly ReviewedAppropriate: "ReviewedAppropriate";
|
|
32
|
+
readonly ReviewedInappropriate: "ReviewedInappropriate";
|
|
33
|
+
};
|
|
34
|
+
export type HITReviewStatus =
|
|
35
|
+
(typeof HITReviewStatus)[keyof typeof HITReviewStatus];
|
|
36
|
+
export declare const HITStatus: {
|
|
37
|
+
readonly Assignable: "Assignable";
|
|
38
|
+
readonly Disposed: "Disposed";
|
|
39
|
+
readonly Reviewable: "Reviewable";
|
|
40
|
+
readonly Reviewing: "Reviewing";
|
|
41
|
+
readonly Unassignable: "Unassignable";
|
|
42
|
+
};
|
|
43
|
+
export type HITStatus = (typeof HITStatus)[keyof typeof HITStatus];
|
|
44
|
+
export declare const QualificationTypeStatus: {
|
|
45
|
+
readonly Active: "Active";
|
|
46
|
+
readonly Inactive: "Inactive";
|
|
47
|
+
};
|
|
48
|
+
export type QualificationTypeStatus =
|
|
49
|
+
(typeof QualificationTypeStatus)[keyof typeof QualificationTypeStatus];
|
|
50
|
+
export declare const EventType: {
|
|
51
|
+
readonly AssignmentAbandoned: "AssignmentAbandoned";
|
|
52
|
+
readonly AssignmentAccepted: "AssignmentAccepted";
|
|
53
|
+
readonly AssignmentApproved: "AssignmentApproved";
|
|
54
|
+
readonly AssignmentRejected: "AssignmentRejected";
|
|
55
|
+
readonly AssignmentReturned: "AssignmentReturned";
|
|
56
|
+
readonly AssignmentSubmitted: "AssignmentSubmitted";
|
|
57
|
+
readonly HITCreated: "HITCreated";
|
|
58
|
+
readonly HITDisposed: "HITDisposed";
|
|
59
|
+
readonly HITExpired: "HITExpired";
|
|
60
|
+
readonly HITExtended: "HITExtended";
|
|
61
|
+
readonly HITReviewable: "HITReviewable";
|
|
62
|
+
readonly Ping: "Ping";
|
|
63
|
+
};
|
|
64
|
+
export type EventType = (typeof EventType)[keyof typeof EventType];
|
|
65
|
+
export declare const QualificationStatus: {
|
|
66
|
+
readonly Granted: "Granted";
|
|
67
|
+
readonly Revoked: "Revoked";
|
|
68
|
+
};
|
|
69
|
+
export type QualificationStatus =
|
|
70
|
+
(typeof QualificationStatus)[keyof typeof QualificationStatus];
|
|
71
|
+
export declare const ReviewableHITStatus: {
|
|
72
|
+
readonly Reviewable: "Reviewable";
|
|
73
|
+
readonly Reviewing: "Reviewing";
|
|
74
|
+
};
|
|
75
|
+
export type ReviewableHITStatus =
|
|
76
|
+
(typeof ReviewableHITStatus)[keyof typeof ReviewableHITStatus];
|
|
77
|
+
export declare const ReviewPolicyLevel: {
|
|
78
|
+
readonly Assignment: "Assignment";
|
|
79
|
+
readonly HIT: "HIT";
|
|
80
|
+
};
|
|
81
|
+
export type ReviewPolicyLevel =
|
|
82
|
+
(typeof ReviewPolicyLevel)[keyof typeof ReviewPolicyLevel];
|
|
83
|
+
export declare const ReviewActionStatus: {
|
|
84
|
+
readonly Cancelled: "Cancelled";
|
|
85
|
+
readonly Failed: "Failed";
|
|
86
|
+
readonly Intended: "Intended";
|
|
87
|
+
readonly Succeeded: "Succeeded";
|
|
88
|
+
};
|
|
89
|
+
export type ReviewActionStatus =
|
|
90
|
+
(typeof ReviewActionStatus)[keyof typeof ReviewActionStatus];
|
|
91
|
+
export declare const NotifyWorkersFailureCode: {
|
|
92
|
+
readonly HardFailure: "HardFailure";
|
|
93
|
+
readonly SoftFailure: "SoftFailure";
|
|
94
|
+
};
|
|
95
|
+
export type NotifyWorkersFailureCode =
|
|
96
|
+
(typeof NotifyWorkersFailureCode)[keyof typeof NotifyWorkersFailureCode];
|
|
97
|
+
export declare const NotificationTransport: {
|
|
98
|
+
readonly Email: "Email";
|
|
99
|
+
readonly SNS: "SNS";
|
|
100
|
+
readonly SQS: "SQS";
|
|
101
|
+
};
|
|
102
|
+
export type NotificationTransport =
|
|
103
|
+
(typeof NotificationTransport)[keyof typeof NotificationTransport];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { MTurkServiceException as __BaseException } from "./MTurkServiceException";
|
|
3
|
+
export declare class RequestError extends __BaseException {
|
|
4
|
+
readonly name: "RequestError";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
Message?: string | undefined;
|
|
7
|
+
TurkErrorCode?: string | undefined;
|
|
8
|
+
constructor(opts: __ExceptionOptionType<RequestError, __BaseException>);
|
|
9
|
+
}
|
|
10
|
+
export declare class ServiceFault extends __BaseException {
|
|
11
|
+
readonly name: "ServiceFault";
|
|
12
|
+
readonly $fault: "server";
|
|
13
|
+
Message?: string | undefined;
|
|
14
|
+
TurkErrorCode?: string | undefined;
|
|
15
|
+
constructor(opts: __ExceptionOptionType<ServiceFault, __BaseException>);
|
|
16
|
+
}
|
|
@@ -1,37 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
AssignmentStatus,
|
|
3
|
+
Comparator,
|
|
4
|
+
EventType,
|
|
5
|
+
HITAccessActions,
|
|
6
|
+
HITReviewStatus,
|
|
7
|
+
HITStatus,
|
|
8
|
+
NotificationTransport,
|
|
9
|
+
NotifyWorkersFailureCode,
|
|
10
|
+
QualificationStatus,
|
|
11
|
+
QualificationTypeStatus,
|
|
12
|
+
ReviewableHITStatus,
|
|
13
|
+
ReviewActionStatus,
|
|
14
|
+
ReviewPolicyLevel,
|
|
15
|
+
} from "./enums";
|
|
3
16
|
export interface AcceptQualificationRequestRequest {
|
|
4
17
|
QualificationRequestId: string | undefined;
|
|
5
18
|
IntegerValue?: number | undefined;
|
|
6
19
|
}
|
|
7
20
|
export interface AcceptQualificationRequestResponse {}
|
|
8
|
-
export declare class RequestError extends __BaseException {
|
|
9
|
-
readonly name: "RequestError";
|
|
10
|
-
readonly $fault: "client";
|
|
11
|
-
Message?: string | undefined;
|
|
12
|
-
TurkErrorCode?: string | undefined;
|
|
13
|
-
constructor(opts: __ExceptionOptionType<RequestError, __BaseException>);
|
|
14
|
-
}
|
|
15
|
-
export declare class ServiceFault extends __BaseException {
|
|
16
|
-
readonly name: "ServiceFault";
|
|
17
|
-
readonly $fault: "server";
|
|
18
|
-
Message?: string | undefined;
|
|
19
|
-
TurkErrorCode?: string | undefined;
|
|
20
|
-
constructor(opts: __ExceptionOptionType<ServiceFault, __BaseException>);
|
|
21
|
-
}
|
|
22
21
|
export interface ApproveAssignmentRequest {
|
|
23
22
|
AssignmentId: string | undefined;
|
|
24
23
|
RequesterFeedback?: string | undefined;
|
|
25
24
|
OverrideRejection?: boolean | undefined;
|
|
26
25
|
}
|
|
27
26
|
export interface ApproveAssignmentResponse {}
|
|
28
|
-
export declare const AssignmentStatus: {
|
|
29
|
-
readonly Approved: "Approved";
|
|
30
|
-
readonly Rejected: "Rejected";
|
|
31
|
-
readonly Submitted: "Submitted";
|
|
32
|
-
};
|
|
33
|
-
export type AssignmentStatus =
|
|
34
|
-
(typeof AssignmentStatus)[keyof typeof AssignmentStatus];
|
|
35
27
|
export interface Assignment {
|
|
36
28
|
AssignmentId?: string | undefined;
|
|
37
29
|
WorkerId?: string | undefined;
|
|
@@ -60,19 +52,6 @@ export interface BonusPayment {
|
|
|
60
52
|
Reason?: string | undefined;
|
|
61
53
|
GrantTime?: Date | undefined;
|
|
62
54
|
}
|
|
63
|
-
export declare const Comparator: {
|
|
64
|
-
readonly DoesNotExist: "DoesNotExist";
|
|
65
|
-
readonly EqualTo: "EqualTo";
|
|
66
|
-
readonly Exists: "Exists";
|
|
67
|
-
readonly GreaterThan: "GreaterThan";
|
|
68
|
-
readonly GreaterThanOrEqualTo: "GreaterThanOrEqualTo";
|
|
69
|
-
readonly In: "In";
|
|
70
|
-
readonly LessThan: "LessThan";
|
|
71
|
-
readonly LessThanOrEqualTo: "LessThanOrEqualTo";
|
|
72
|
-
readonly NotEqualTo: "NotEqualTo";
|
|
73
|
-
readonly NotIn: "NotIn";
|
|
74
|
-
};
|
|
75
|
-
export type Comparator = (typeof Comparator)[keyof typeof Comparator];
|
|
76
55
|
export interface CreateAdditionalAssignmentsForHITRequest {
|
|
77
56
|
HITId: string | undefined;
|
|
78
57
|
NumberOfAdditionalAssignments: number | undefined;
|
|
@@ -96,13 +75,6 @@ export interface HITLayoutParameter {
|
|
|
96
75
|
Name: string | undefined;
|
|
97
76
|
Value: string | undefined;
|
|
98
77
|
}
|
|
99
|
-
export declare const HITAccessActions: {
|
|
100
|
-
readonly Accept: "Accept";
|
|
101
|
-
readonly DiscoverPreviewAndAccept: "DiscoverPreviewAndAccept";
|
|
102
|
-
readonly PreviewAndAccept: "PreviewAndAccept";
|
|
103
|
-
};
|
|
104
|
-
export type HITAccessActions =
|
|
105
|
-
(typeof HITAccessActions)[keyof typeof HITAccessActions];
|
|
106
78
|
export interface Locale {
|
|
107
79
|
Country: string | undefined;
|
|
108
80
|
Subdivision?: string | undefined;
|
|
@@ -133,22 +105,6 @@ export interface CreateHITRequest {
|
|
|
133
105
|
HITLayoutId?: string | undefined;
|
|
134
106
|
HITLayoutParameters?: HITLayoutParameter[] | undefined;
|
|
135
107
|
}
|
|
136
|
-
export declare const HITReviewStatus: {
|
|
137
|
-
readonly MarkedForReview: "MarkedForReview";
|
|
138
|
-
readonly NotReviewed: "NotReviewed";
|
|
139
|
-
readonly ReviewedAppropriate: "ReviewedAppropriate";
|
|
140
|
-
readonly ReviewedInappropriate: "ReviewedInappropriate";
|
|
141
|
-
};
|
|
142
|
-
export type HITReviewStatus =
|
|
143
|
-
(typeof HITReviewStatus)[keyof typeof HITReviewStatus];
|
|
144
|
-
export declare const HITStatus: {
|
|
145
|
-
readonly Assignable: "Assignable";
|
|
146
|
-
readonly Disposed: "Disposed";
|
|
147
|
-
readonly Reviewable: "Reviewable";
|
|
148
|
-
readonly Reviewing: "Reviewing";
|
|
149
|
-
readonly Unassignable: "Unassignable";
|
|
150
|
-
};
|
|
151
|
-
export type HITStatus = (typeof HITStatus)[keyof typeof HITStatus];
|
|
152
108
|
export interface HIT {
|
|
153
109
|
HITId?: string | undefined;
|
|
154
110
|
HITTypeId?: string | undefined;
|
|
@@ -202,12 +158,6 @@ export interface CreateHITWithHITTypeRequest {
|
|
|
202
158
|
export interface CreateHITWithHITTypeResponse {
|
|
203
159
|
HIT?: HIT | undefined;
|
|
204
160
|
}
|
|
205
|
-
export declare const QualificationTypeStatus: {
|
|
206
|
-
readonly Active: "Active";
|
|
207
|
-
readonly Inactive: "Inactive";
|
|
208
|
-
};
|
|
209
|
-
export type QualificationTypeStatus =
|
|
210
|
-
(typeof QualificationTypeStatus)[keyof typeof QualificationTypeStatus];
|
|
211
161
|
export interface CreateQualificationTypeRequest {
|
|
212
162
|
Name: string | undefined;
|
|
213
163
|
Keywords?: string | undefined;
|
|
@@ -262,21 +212,6 @@ export interface DisassociateQualificationFromWorkerRequest {
|
|
|
262
212
|
Reason?: string | undefined;
|
|
263
213
|
}
|
|
264
214
|
export interface DisassociateQualificationFromWorkerResponse {}
|
|
265
|
-
export declare const EventType: {
|
|
266
|
-
readonly AssignmentAbandoned: "AssignmentAbandoned";
|
|
267
|
-
readonly AssignmentAccepted: "AssignmentAccepted";
|
|
268
|
-
readonly AssignmentApproved: "AssignmentApproved";
|
|
269
|
-
readonly AssignmentRejected: "AssignmentRejected";
|
|
270
|
-
readonly AssignmentReturned: "AssignmentReturned";
|
|
271
|
-
readonly AssignmentSubmitted: "AssignmentSubmitted";
|
|
272
|
-
readonly HITCreated: "HITCreated";
|
|
273
|
-
readonly HITDisposed: "HITDisposed";
|
|
274
|
-
readonly HITExpired: "HITExpired";
|
|
275
|
-
readonly HITExtended: "HITExtended";
|
|
276
|
-
readonly HITReviewable: "HITReviewable";
|
|
277
|
-
readonly Ping: "Ping";
|
|
278
|
-
};
|
|
279
|
-
export type EventType = (typeof EventType)[keyof typeof EventType];
|
|
280
215
|
export interface GetAccountBalanceRequest {}
|
|
281
216
|
export interface GetAccountBalanceResponse {
|
|
282
217
|
AvailableBalance?: string | undefined;
|
|
@@ -306,12 +241,6 @@ export interface GetQualificationScoreRequest {
|
|
|
306
241
|
QualificationTypeId: string | undefined;
|
|
307
242
|
WorkerId: string | undefined;
|
|
308
243
|
}
|
|
309
|
-
export declare const QualificationStatus: {
|
|
310
|
-
readonly Granted: "Granted";
|
|
311
|
-
readonly Revoked: "Revoked";
|
|
312
|
-
};
|
|
313
|
-
export type QualificationStatus =
|
|
314
|
-
(typeof QualificationStatus)[keyof typeof QualificationStatus];
|
|
315
244
|
export interface Qualification {
|
|
316
245
|
QualificationTypeId?: string | undefined;
|
|
317
246
|
WorkerId?: string | undefined;
|
|
@@ -400,12 +329,6 @@ export interface ListQualificationTypesResponse {
|
|
|
400
329
|
NextToken?: string | undefined;
|
|
401
330
|
QualificationTypes?: QualificationType[] | undefined;
|
|
402
331
|
}
|
|
403
|
-
export declare const ReviewableHITStatus: {
|
|
404
|
-
readonly Reviewable: "Reviewable";
|
|
405
|
-
readonly Reviewing: "Reviewing";
|
|
406
|
-
};
|
|
407
|
-
export type ReviewableHITStatus =
|
|
408
|
-
(typeof ReviewableHITStatus)[keyof typeof ReviewableHITStatus];
|
|
409
332
|
export interface ListReviewableHITsRequest {
|
|
410
333
|
HITTypeId?: string | undefined;
|
|
411
334
|
Status?: ReviewableHITStatus | undefined;
|
|
@@ -417,12 +340,6 @@ export interface ListReviewableHITsResponse {
|
|
|
417
340
|
NumResults?: number | undefined;
|
|
418
341
|
HITs?: HIT[] | undefined;
|
|
419
342
|
}
|
|
420
|
-
export declare const ReviewPolicyLevel: {
|
|
421
|
-
readonly Assignment: "Assignment";
|
|
422
|
-
readonly HIT: "HIT";
|
|
423
|
-
};
|
|
424
|
-
export type ReviewPolicyLevel =
|
|
425
|
-
(typeof ReviewPolicyLevel)[keyof typeof ReviewPolicyLevel];
|
|
426
343
|
export interface ListReviewPolicyResultsForHITRequest {
|
|
427
344
|
HITId: string | undefined;
|
|
428
345
|
PolicyLevels?: ReviewPolicyLevel[] | undefined;
|
|
@@ -431,14 +348,6 @@ export interface ListReviewPolicyResultsForHITRequest {
|
|
|
431
348
|
NextToken?: string | undefined;
|
|
432
349
|
MaxResults?: number | undefined;
|
|
433
350
|
}
|
|
434
|
-
export declare const ReviewActionStatus: {
|
|
435
|
-
readonly Cancelled: "Cancelled";
|
|
436
|
-
readonly Failed: "Failed";
|
|
437
|
-
readonly Intended: "Intended";
|
|
438
|
-
readonly Succeeded: "Succeeded";
|
|
439
|
-
};
|
|
440
|
-
export type ReviewActionStatus =
|
|
441
|
-
(typeof ReviewActionStatus)[keyof typeof ReviewActionStatus];
|
|
442
351
|
export interface ReviewActionDetail {
|
|
443
352
|
ActionId?: string | undefined;
|
|
444
353
|
ActionName?: string | undefined;
|
|
@@ -498,12 +407,6 @@ export interface NotifyWorkersRequest {
|
|
|
498
407
|
MessageText: string | undefined;
|
|
499
408
|
WorkerIds: string[] | undefined;
|
|
500
409
|
}
|
|
501
|
-
export declare const NotifyWorkersFailureCode: {
|
|
502
|
-
readonly HardFailure: "HardFailure";
|
|
503
|
-
readonly SoftFailure: "SoftFailure";
|
|
504
|
-
};
|
|
505
|
-
export type NotifyWorkersFailureCode =
|
|
506
|
-
(typeof NotifyWorkersFailureCode)[keyof typeof NotifyWorkersFailureCode];
|
|
507
410
|
export interface NotifyWorkersFailureStatus {
|
|
508
411
|
NotifyWorkersFailureCode?: NotifyWorkersFailureCode | undefined;
|
|
509
412
|
NotifyWorkersFailureMessage?: string | undefined;
|
|
@@ -530,13 +433,6 @@ export interface SendBonusRequest {
|
|
|
530
433
|
UniqueRequestToken?: string | undefined;
|
|
531
434
|
}
|
|
532
435
|
export interface SendBonusResponse {}
|
|
533
|
-
export declare const NotificationTransport: {
|
|
534
|
-
readonly Email: "Email";
|
|
535
|
-
readonly SNS: "SNS";
|
|
536
|
-
readonly SQS: "SQS";
|
|
537
|
-
};
|
|
538
|
-
export type NotificationTransport =
|
|
539
|
-
(typeof NotificationTransport)[keyof typeof NotificationTransport];
|
|
540
436
|
export interface NotificationSpecification {
|
|
541
437
|
Destination: string | undefined;
|
|
542
438
|
Transport: NotificationTransport | undefined;
|