@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
|
@@ -25,11 +25,13 @@ export interface ApproveAssignmentRequest {
|
|
|
25
25
|
OverrideRejection?: boolean;
|
|
26
26
|
}
|
|
27
27
|
export interface ApproveAssignmentResponse {}
|
|
28
|
-
export declare
|
|
29
|
-
Approved
|
|
30
|
-
Rejected
|
|
31
|
-
Submitted
|
|
32
|
-
}
|
|
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];
|
|
33
35
|
export interface Assignment {
|
|
34
36
|
AssignmentId?: string;
|
|
35
37
|
WorkerId?: string;
|
|
@@ -58,18 +60,19 @@ export interface BonusPayment {
|
|
|
58
60
|
Reason?: string;
|
|
59
61
|
GrantTime?: Date;
|
|
60
62
|
}
|
|
61
|
-
export declare
|
|
62
|
-
DoesNotExist
|
|
63
|
-
EqualTo
|
|
64
|
-
Exists
|
|
65
|
-
GreaterThan
|
|
66
|
-
GreaterThanOrEqualTo
|
|
67
|
-
In
|
|
68
|
-
LessThan
|
|
69
|
-
LessThanOrEqualTo
|
|
70
|
-
NotEqualTo
|
|
71
|
-
NotIn
|
|
72
|
-
}
|
|
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];
|
|
73
76
|
export interface CreateAdditionalAssignmentsForHITRequest {
|
|
74
77
|
HITId: string | undefined;
|
|
75
78
|
NumberOfAdditionalAssignments: number | undefined;
|
|
@@ -93,11 +96,13 @@ export interface HITLayoutParameter {
|
|
|
93
96
|
Name: string | undefined;
|
|
94
97
|
Value: string | undefined;
|
|
95
98
|
}
|
|
96
|
-
export declare
|
|
97
|
-
Accept
|
|
98
|
-
DiscoverPreviewAndAccept
|
|
99
|
-
PreviewAndAccept
|
|
100
|
-
}
|
|
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];
|
|
101
106
|
export interface Locale {
|
|
102
107
|
Country: string | undefined;
|
|
103
108
|
Subdivision?: string;
|
|
@@ -128,19 +133,22 @@ export interface CreateHITRequest {
|
|
|
128
133
|
HITLayoutId?: string;
|
|
129
134
|
HITLayoutParameters?: HITLayoutParameter[];
|
|
130
135
|
}
|
|
131
|
-
export declare
|
|
132
|
-
MarkedForReview
|
|
133
|
-
NotReviewed
|
|
134
|
-
ReviewedAppropriate
|
|
135
|
-
ReviewedInappropriate
|
|
136
|
-
}
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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];
|
|
144
152
|
export interface HIT {
|
|
145
153
|
HITId?: string;
|
|
146
154
|
HITTypeId?: string;
|
|
@@ -194,10 +202,12 @@ export interface CreateHITWithHITTypeRequest {
|
|
|
194
202
|
export interface CreateHITWithHITTypeResponse {
|
|
195
203
|
HIT?: HIT;
|
|
196
204
|
}
|
|
197
|
-
export declare
|
|
198
|
-
Active
|
|
199
|
-
Inactive
|
|
200
|
-
}
|
|
205
|
+
export declare const QualificationTypeStatus: {
|
|
206
|
+
readonly Active: "Active";
|
|
207
|
+
readonly Inactive: "Inactive";
|
|
208
|
+
};
|
|
209
|
+
export type QualificationTypeStatus =
|
|
210
|
+
(typeof QualificationTypeStatus)[keyof typeof QualificationTypeStatus];
|
|
201
211
|
export interface CreateQualificationTypeRequest {
|
|
202
212
|
Name: string | undefined;
|
|
203
213
|
Keywords?: string;
|
|
@@ -252,20 +262,21 @@ export interface DisassociateQualificationFromWorkerRequest {
|
|
|
252
262
|
Reason?: string;
|
|
253
263
|
}
|
|
254
264
|
export interface DisassociateQualificationFromWorkerResponse {}
|
|
255
|
-
export declare
|
|
256
|
-
AssignmentAbandoned
|
|
257
|
-
AssignmentAccepted
|
|
258
|
-
AssignmentApproved
|
|
259
|
-
AssignmentRejected
|
|
260
|
-
AssignmentReturned
|
|
261
|
-
AssignmentSubmitted
|
|
262
|
-
HITCreated
|
|
263
|
-
HITDisposed
|
|
264
|
-
HITExpired
|
|
265
|
-
HITExtended
|
|
266
|
-
HITReviewable
|
|
267
|
-
Ping
|
|
268
|
-
}
|
|
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];
|
|
269
280
|
export interface GetAccountBalanceRequest {}
|
|
270
281
|
export interface GetAccountBalanceResponse {
|
|
271
282
|
AvailableBalance?: string;
|
|
@@ -295,10 +306,12 @@ export interface GetQualificationScoreRequest {
|
|
|
295
306
|
QualificationTypeId: string | undefined;
|
|
296
307
|
WorkerId: string | undefined;
|
|
297
308
|
}
|
|
298
|
-
export declare
|
|
299
|
-
Granted
|
|
300
|
-
Revoked
|
|
301
|
-
}
|
|
309
|
+
export declare const QualificationStatus: {
|
|
310
|
+
readonly Granted: "Granted";
|
|
311
|
+
readonly Revoked: "Revoked";
|
|
312
|
+
};
|
|
313
|
+
export type QualificationStatus =
|
|
314
|
+
(typeof QualificationStatus)[keyof typeof QualificationStatus];
|
|
302
315
|
export interface Qualification {
|
|
303
316
|
QualificationTypeId?: string;
|
|
304
317
|
WorkerId?: string;
|
|
@@ -387,10 +400,12 @@ export interface ListQualificationTypesResponse {
|
|
|
387
400
|
NextToken?: string;
|
|
388
401
|
QualificationTypes?: QualificationType[];
|
|
389
402
|
}
|
|
390
|
-
export declare
|
|
391
|
-
Reviewable
|
|
392
|
-
Reviewing
|
|
393
|
-
}
|
|
403
|
+
export declare const ReviewableHITStatus: {
|
|
404
|
+
readonly Reviewable: "Reviewable";
|
|
405
|
+
readonly Reviewing: "Reviewing";
|
|
406
|
+
};
|
|
407
|
+
export type ReviewableHITStatus =
|
|
408
|
+
(typeof ReviewableHITStatus)[keyof typeof ReviewableHITStatus];
|
|
394
409
|
export interface ListReviewableHITsRequest {
|
|
395
410
|
HITTypeId?: string;
|
|
396
411
|
Status?: ReviewableHITStatus | string;
|
|
@@ -402,10 +417,12 @@ export interface ListReviewableHITsResponse {
|
|
|
402
417
|
NumResults?: number;
|
|
403
418
|
HITs?: HIT[];
|
|
404
419
|
}
|
|
405
|
-
export declare
|
|
406
|
-
Assignment
|
|
407
|
-
HIT
|
|
408
|
-
}
|
|
420
|
+
export declare const ReviewPolicyLevel: {
|
|
421
|
+
readonly Assignment: "Assignment";
|
|
422
|
+
readonly HIT: "HIT";
|
|
423
|
+
};
|
|
424
|
+
export type ReviewPolicyLevel =
|
|
425
|
+
(typeof ReviewPolicyLevel)[keyof typeof ReviewPolicyLevel];
|
|
409
426
|
export interface ListReviewPolicyResultsForHITRequest {
|
|
410
427
|
HITId: string | undefined;
|
|
411
428
|
PolicyLevels?: (ReviewPolicyLevel | string)[];
|
|
@@ -414,12 +431,14 @@ export interface ListReviewPolicyResultsForHITRequest {
|
|
|
414
431
|
NextToken?: string;
|
|
415
432
|
MaxResults?: number;
|
|
416
433
|
}
|
|
417
|
-
export declare
|
|
418
|
-
Cancelled
|
|
419
|
-
Failed
|
|
420
|
-
Intended
|
|
421
|
-
Succeeded
|
|
422
|
-
}
|
|
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];
|
|
423
442
|
export interface ReviewActionDetail {
|
|
424
443
|
ActionId?: string;
|
|
425
444
|
ActionName?: string;
|
|
@@ -479,10 +498,12 @@ export interface NotifyWorkersRequest {
|
|
|
479
498
|
MessageText: string | undefined;
|
|
480
499
|
WorkerIds: string[] | undefined;
|
|
481
500
|
}
|
|
482
|
-
export declare
|
|
483
|
-
HardFailure
|
|
484
|
-
SoftFailure
|
|
485
|
-
}
|
|
501
|
+
export declare const NotifyWorkersFailureCode: {
|
|
502
|
+
readonly HardFailure: "HardFailure";
|
|
503
|
+
readonly SoftFailure: "SoftFailure";
|
|
504
|
+
};
|
|
505
|
+
export type NotifyWorkersFailureCode =
|
|
506
|
+
(typeof NotifyWorkersFailureCode)[keyof typeof NotifyWorkersFailureCode];
|
|
486
507
|
export interface NotifyWorkersFailureStatus {
|
|
487
508
|
NotifyWorkersFailureCode?: NotifyWorkersFailureCode | string;
|
|
488
509
|
NotifyWorkersFailureMessage?: string;
|
|
@@ -509,11 +530,13 @@ export interface SendBonusRequest {
|
|
|
509
530
|
UniqueRequestToken?: string;
|
|
510
531
|
}
|
|
511
532
|
export interface SendBonusResponse {}
|
|
512
|
-
export declare
|
|
513
|
-
Email
|
|
514
|
-
SNS
|
|
515
|
-
SQS
|
|
516
|
-
}
|
|
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];
|
|
517
540
|
export interface NotificationSpecification {
|
|
518
541
|
Destination: string | undefined;
|
|
519
542
|
Transport: NotificationTransport | string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mturk",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mturk Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.303.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.303.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.303.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.303.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.303.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.303.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.303.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.303.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.303.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.303.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.303.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.303.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.303.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.303.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.303.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.303.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.303.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.303.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.303.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.303.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.303.0",
|
|
44
|
+
"@aws-sdk/types": "3.303.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.303.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.303.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.303.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.303.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.303.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.303.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.303.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|