@aws-sdk/client-mturk 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/MTurk.js +0 -4
- package/dist-cjs/MTurkClient.js +0 -9
- package/dist-cjs/commands/AcceptQualificationRequestCommand.js +0 -34
- package/dist-cjs/commands/ApproveAssignmentCommand.js +0 -54
- package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js +0 -45
- package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +0 -47
- package/dist-cjs/commands/CreateHITCommand.js +0 -41
- package/dist-cjs/commands/CreateHITTypeCommand.js +0 -30
- package/dist-cjs/commands/CreateHITWithHITTypeCommand.js +0 -42
- package/dist-cjs/commands/CreateQualificationTypeCommand.js +0 -31
- package/dist-cjs/commands/CreateWorkerBlockCommand.js +0 -25
- package/dist-cjs/commands/DeleteHITCommand.js +0 -60
- package/dist-cjs/commands/DeleteQualificationTypeCommand.js +0 -43
- package/dist-cjs/commands/DeleteWorkerBlockCommand.js +0 -25
- package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js +0 -32
- package/dist-cjs/commands/GetAccountBalanceCommand.js +0 -27
- package/dist-cjs/commands/GetAssignmentCommand.js +0 -27
- package/dist-cjs/commands/GetFileUploadURLCommand.js +0 -42
- package/dist-cjs/commands/GetHITCommand.js +0 -27
- package/dist-cjs/commands/GetQualificationScoreCommand.js +0 -38
- package/dist-cjs/commands/GetQualificationTypeCommand.js +0 -27
- package/dist-cjs/commands/ListAssignmentsForHITCommand.js +0 -51
- package/dist-cjs/commands/ListBonusPaymentsCommand.js +0 -30
- package/dist-cjs/commands/ListHITsCommand.js +0 -31
- package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js +0 -30
- package/dist-cjs/commands/ListQualificationRequestsCommand.js +0 -32
- package/dist-cjs/commands/ListQualificationTypesCommand.js +0 -30
- package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js +0 -31
- package/dist-cjs/commands/ListReviewableHITsCommand.js +0 -28
- package/dist-cjs/commands/ListWorkerBlocksCommand.js +0 -25
- package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js +0 -28
- package/dist-cjs/commands/NotifyWorkersCommand.js +0 -34
- package/dist-cjs/commands/RejectAssignmentCommand.js +0 -37
- package/dist-cjs/commands/RejectQualificationRequestCommand.js +0 -31
- package/dist-cjs/commands/SendBonusCommand.js +0 -38
- package/dist-cjs/commands/SendTestEventNotificationCommand.js +0 -31
- package/dist-cjs/commands/UpdateExpirationForHITCommand.js +0 -28
- package/dist-cjs/commands/UpdateHITReviewStatusCommand.js +0 -29
- package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js +0 -32
- package/dist-cjs/commands/UpdateNotificationSettingsCommand.js +0 -36
- package/dist-cjs/commands/UpdateQualificationTypeCommand.js +0 -57
- package/dist-cjs/commands/index.js +42 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -53
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -295
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAssignmentsForHITPaginator.js +0 -11
- package/dist-cjs/pagination/ListBonusPaymentsPaginator.js +0 -11
- package/dist-cjs/pagination/ListHITsForQualificationTypePaginator.js +0 -11
- package/dist-cjs/pagination/ListHITsPaginator.js +0 -11
- package/dist-cjs/pagination/ListQualificationRequestsPaginator.js +0 -11
- package/dist-cjs/pagination/ListQualificationTypesPaginator.js +0 -11
- package/dist-cjs/pagination/ListReviewPolicyResultsForHITPaginator.js +0 -11
- package/dist-cjs/pagination/ListReviewableHITsPaginator.js +0 -11
- package/dist-cjs/pagination/ListWorkerBlocksPaginator.js +0 -11
- package/dist-cjs/pagination/ListWorkersWithQualificationTypePaginator.js +0 -11
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/MTurk.js +0 -1
- package/dist-es/MTurkClient.js +0 -1
- package/dist-es/commands/AcceptQualificationRequestCommand.js +0 -1
- package/dist-es/commands/ApproveAssignmentCommand.js +0 -1
- package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +0 -1
- package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +0 -1
- package/dist-es/commands/CreateHITCommand.js +0 -1
- package/dist-es/commands/CreateHITTypeCommand.js +0 -1
- package/dist-es/commands/CreateHITWithHITTypeCommand.js +0 -1
- package/dist-es/commands/CreateQualificationTypeCommand.js +0 -1
- package/dist-es/commands/CreateWorkerBlockCommand.js +0 -1
- package/dist-es/commands/DeleteHITCommand.js +0 -1
- package/dist-es/commands/DeleteQualificationTypeCommand.js +0 -1
- package/dist-es/commands/DeleteWorkerBlockCommand.js +0 -1
- package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +0 -1
- package/dist-es/commands/GetAccountBalanceCommand.js +0 -1
- package/dist-es/commands/GetAssignmentCommand.js +0 -1
- package/dist-es/commands/GetFileUploadURLCommand.js +0 -1
- package/dist-es/commands/GetHITCommand.js +0 -1
- package/dist-es/commands/GetQualificationScoreCommand.js +0 -1
- package/dist-es/commands/GetQualificationTypeCommand.js +0 -1
- package/dist-es/commands/ListAssignmentsForHITCommand.js +0 -1
- package/dist-es/commands/ListBonusPaymentsCommand.js +0 -1
- package/dist-es/commands/ListHITsCommand.js +0 -1
- package/dist-es/commands/ListHITsForQualificationTypeCommand.js +0 -1
- package/dist-es/commands/ListQualificationRequestsCommand.js +0 -1
- package/dist-es/commands/ListQualificationTypesCommand.js +0 -1
- package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +0 -1
- package/dist-es/commands/ListReviewableHITsCommand.js +0 -1
- package/dist-es/commands/ListWorkerBlocksCommand.js +0 -1
- package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +0 -1
- package/dist-es/commands/NotifyWorkersCommand.js +0 -1
- package/dist-es/commands/RejectAssignmentCommand.js +0 -1
- package/dist-es/commands/RejectQualificationRequestCommand.js +0 -1
- package/dist-es/commands/SendBonusCommand.js +0 -1
- package/dist-es/commands/SendTestEventNotificationCommand.js +0 -1
- package/dist-es/commands/UpdateExpirationForHITCommand.js +0 -1
- package/dist-es/commands/UpdateHITReviewStatusCommand.js +0 -1
- package/dist-es/commands/UpdateHITTypeOfHITCommand.js +0 -1
- package/dist-es/commands/UpdateNotificationSettingsCommand.js +0 -1
- package/dist-es/commands/UpdateQualificationTypeCommand.js +0 -1
- package/dist-es/commands/index.js +39 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -53
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAssignmentsForHITPaginator.js +0 -1
- package/dist-es/pagination/ListBonusPaymentsPaginator.js +0 -1
- package/dist-es/pagination/ListHITsForQualificationTypePaginator.js +0 -1
- package/dist-es/pagination/ListHITsPaginator.js +0 -1
- package/dist-es/pagination/ListQualificationRequestsPaginator.js +0 -1
- package/dist-es/pagination/ListQualificationTypesPaginator.js +0 -1
- package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js +0 -1
- package/dist-es/pagination/ListReviewableHITsPaginator.js +0 -1
- package/dist-es/pagination/ListWorkerBlocksPaginator.js +0 -1
- package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js +0 -1
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +39 -0
- package/dist-types/index.d.ts +4 -52
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/MTurk.d.ts +40 -511
- package/dist-types/ts3.4/MTurkClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/AcceptQualificationRequestCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/ApproveAssignmentCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/AssociateQualificationWithWorkerCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/CreateHITCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/CreateHITTypeCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CreateHITWithHITTypeCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/CreateQualificationTypeCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/CreateWorkerBlockCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteHITCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/DeleteQualificationTypeCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DeleteWorkerBlockCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisassociateQualificationFromWorkerCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetAssignmentCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetFileUploadURLCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/GetHITCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetQualificationScoreCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/GetQualificationTypeCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListAssignmentsForHITCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/ListBonusPaymentsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListHITsCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListHITsForQualificationTypeCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListQualificationRequestsCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListQualificationTypesCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListReviewPolicyResultsForHITCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListReviewableHITsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListWorkerBlocksCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListWorkersWithQualificationTypeCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/NotifyWorkersCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/RejectAssignmentCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/RejectQualificationRequestCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/SendBonusCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/SendTestEventNotificationCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/UpdateExpirationForHITCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UpdateHITReviewStatusCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateHITTypeOfHITCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/UpdateNotificationSettingsCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/UpdateQualificationTypeCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/index.d.ts +39 -0
- package/dist-types/ts3.4/index.d.ts +4 -52
- package/dist-types/ts3.4/models/models_0.d.ts +406 -1941
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/MTurk.js.map +0 -1
- package/dist-cjs/MTurkClient.js.map +0 -1
- package/dist-cjs/commands/AcceptQualificationRequestCommand.js.map +0 -1
- package/dist-cjs/commands/ApproveAssignmentCommand.js.map +0 -1
- package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js.map +0 -1
- package/dist-cjs/commands/CreateHITCommand.js.map +0 -1
- package/dist-cjs/commands/CreateHITTypeCommand.js.map +0 -1
- package/dist-cjs/commands/CreateHITWithHITTypeCommand.js.map +0 -1
- package/dist-cjs/commands/CreateQualificationTypeCommand.js.map +0 -1
- package/dist-cjs/commands/CreateWorkerBlockCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteHITCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteQualificationTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteWorkerBlockCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js.map +0 -1
- package/dist-cjs/commands/GetAccountBalanceCommand.js.map +0 -1
- package/dist-cjs/commands/GetAssignmentCommand.js.map +0 -1
- package/dist-cjs/commands/GetFileUploadURLCommand.js.map +0 -1
- package/dist-cjs/commands/GetHITCommand.js.map +0 -1
- package/dist-cjs/commands/GetQualificationScoreCommand.js.map +0 -1
- package/dist-cjs/commands/GetQualificationTypeCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssignmentsForHITCommand.js.map +0 -1
- package/dist-cjs/commands/ListBonusPaymentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListHITsCommand.js.map +0 -1
- package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js.map +0 -1
- package/dist-cjs/commands/ListQualificationRequestsCommand.js.map +0 -1
- package/dist-cjs/commands/ListQualificationTypesCommand.js.map +0 -1
- package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js.map +0 -1
- package/dist-cjs/commands/ListReviewableHITsCommand.js.map +0 -1
- package/dist-cjs/commands/ListWorkerBlocksCommand.js.map +0 -1
- package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js.map +0 -1
- package/dist-cjs/commands/NotifyWorkersCommand.js.map +0 -1
- package/dist-cjs/commands/RejectAssignmentCommand.js.map +0 -1
- package/dist-cjs/commands/RejectQualificationRequestCommand.js.map +0 -1
- package/dist-cjs/commands/SendBonusCommand.js.map +0 -1
- package/dist-cjs/commands/SendTestEventNotificationCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateExpirationForHITCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateHITReviewStatusCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateNotificationSettingsCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateQualificationTypeCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAssignmentsForHITPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListBonusPaymentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListHITsForQualificationTypePaginator.js.map +0 -1
- package/dist-cjs/pagination/ListHITsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListQualificationRequestsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListQualificationTypesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListReviewPolicyResultsForHITPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListReviewableHITsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListWorkerBlocksPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListWorkersWithQualificationTypePaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/MTurk.js.map +0 -1
- package/dist-es/MTurkClient.js.map +0 -1
- package/dist-es/commands/AcceptQualificationRequestCommand.js.map +0 -1
- package/dist-es/commands/ApproveAssignmentCommand.js.map +0 -1
- package/dist-es/commands/AssociateQualificationWithWorkerCommand.js.map +0 -1
- package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js.map +0 -1
- package/dist-es/commands/CreateHITCommand.js.map +0 -1
- package/dist-es/commands/CreateHITTypeCommand.js.map +0 -1
- package/dist-es/commands/CreateHITWithHITTypeCommand.js.map +0 -1
- package/dist-es/commands/CreateQualificationTypeCommand.js.map +0 -1
- package/dist-es/commands/CreateWorkerBlockCommand.js.map +0 -1
- package/dist-es/commands/DeleteHITCommand.js.map +0 -1
- package/dist-es/commands/DeleteQualificationTypeCommand.js.map +0 -1
- package/dist-es/commands/DeleteWorkerBlockCommand.js.map +0 -1
- package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js.map +0 -1
- package/dist-es/commands/GetAccountBalanceCommand.js.map +0 -1
- package/dist-es/commands/GetAssignmentCommand.js.map +0 -1
- package/dist-es/commands/GetFileUploadURLCommand.js.map +0 -1
- package/dist-es/commands/GetHITCommand.js.map +0 -1
- package/dist-es/commands/GetQualificationScoreCommand.js.map +0 -1
- package/dist-es/commands/GetQualificationTypeCommand.js.map +0 -1
- package/dist-es/commands/ListAssignmentsForHITCommand.js.map +0 -1
- package/dist-es/commands/ListBonusPaymentsCommand.js.map +0 -1
- package/dist-es/commands/ListHITsCommand.js.map +0 -1
- package/dist-es/commands/ListHITsForQualificationTypeCommand.js.map +0 -1
- package/dist-es/commands/ListQualificationRequestsCommand.js.map +0 -1
- package/dist-es/commands/ListQualificationTypesCommand.js.map +0 -1
- package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js.map +0 -1
- package/dist-es/commands/ListReviewableHITsCommand.js.map +0 -1
- package/dist-es/commands/ListWorkerBlocksCommand.js.map +0 -1
- package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js.map +0 -1
- package/dist-es/commands/NotifyWorkersCommand.js.map +0 -1
- package/dist-es/commands/RejectAssignmentCommand.js.map +0 -1
- package/dist-es/commands/RejectQualificationRequestCommand.js.map +0 -1
- package/dist-es/commands/SendBonusCommand.js.map +0 -1
- package/dist-es/commands/SendTestEventNotificationCommand.js.map +0 -1
- package/dist-es/commands/UpdateExpirationForHITCommand.js.map +0 -1
- package/dist-es/commands/UpdateHITReviewStatusCommand.js.map +0 -1
- package/dist-es/commands/UpdateHITTypeOfHITCommand.js.map +0 -1
- package/dist-es/commands/UpdateNotificationSettingsCommand.js.map +0 -1
- package/dist-es/commands/UpdateQualificationTypeCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAssignmentsForHITPaginator.js.map +0 -1
- package/dist-es/pagination/ListBonusPaymentsPaginator.js.map +0 -1
- package/dist-es/pagination/ListHITsForQualificationTypePaginator.js.map +0 -1
- package/dist-es/pagination/ListHITsPaginator.js.map +0 -1
- package/dist-es/pagination/ListQualificationRequestsPaginator.js.map +0 -1
- package/dist-es/pagination/ListQualificationTypesPaginator.js.map +0 -1
- package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js.map +0 -1
- package/dist-es/pagination/ListReviewableHITsPaginator.js.map +0 -1
- package/dist-es/pagination/ListWorkerBlocksPaginator.js.map +0 -1
- package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/MTurk.ts +0 -1792
- package/src/MTurkClient.ts +0 -416
- package/src/commands/AcceptQualificationRequestCommand.ts +0 -107
- package/src/commands/ApproveAssignmentCommand.ts +0 -124
- package/src/commands/AssociateQualificationWithWorkerCommand.ts +0 -123
- package/src/commands/CreateAdditionalAssignmentsForHITCommand.ts +0 -128
- package/src/commands/CreateHITCommand.ts +0 -108
- package/src/commands/CreateHITTypeCommand.ts +0 -100
- package/src/commands/CreateHITWithHITTypeCommand.ts +0 -112
- package/src/commands/CreateQualificationTypeCommand.ts +0 -101
- package/src/commands/CreateWorkerBlockCommand.ts +0 -95
- package/src/commands/DeleteHITCommand.ts +0 -127
- package/src/commands/DeleteQualificationTypeCommand.ts +0 -113
- package/src/commands/DeleteWorkerBlockCommand.ts +0 -95
- package/src/commands/DisassociateQualificationFromWorkerCommand.ts +0 -113
- package/src/commands/GetAccountBalanceCommand.ts +0 -97
- package/src/commands/GetAssignmentCommand.ts +0 -97
- package/src/commands/GetFileUploadURLCommand.ts +0 -112
- package/src/commands/GetHITCommand.ts +0 -90
- package/src/commands/GetQualificationScoreCommand.ts +0 -108
- package/src/commands/GetQualificationTypeCommand.ts +0 -97
- package/src/commands/ListAssignmentsForHITCommand.ts +0 -121
- package/src/commands/ListBonusPaymentsCommand.ts +0 -100
- package/src/commands/ListHITsCommand.ts +0 -94
- package/src/commands/ListHITsForQualificationTypeCommand.ts +0 -105
- package/src/commands/ListQualificationRequestsCommand.ts +0 -105
- package/src/commands/ListQualificationTypesCommand.ts +0 -100
- package/src/commands/ListReviewPolicyResultsForHITCommand.ts +0 -106
- package/src/commands/ListReviewableHITsCommand.ts +0 -98
- package/src/commands/ListWorkerBlocksCommand.ts +0 -95
- package/src/commands/ListWorkersWithQualificationTypeCommand.ts +0 -106
- package/src/commands/NotifyWorkersCommand.ts +0 -104
- package/src/commands/RejectAssignmentCommand.ts +0 -107
- package/src/commands/RejectQualificationRequestCommand.ts +0 -104
- package/src/commands/SendBonusCommand.ts +0 -105
- package/src/commands/SendTestEventNotificationCommand.ts +0 -104
- package/src/commands/UpdateExpirationForHITCommand.ts +0 -98
- package/src/commands/UpdateHITReviewStatusCommand.ts +0 -99
- package/src/commands/UpdateHITTypeOfHITCommand.ts +0 -102
- package/src/commands/UpdateNotificationSettingsCommand.ts +0 -109
- package/src/commands/UpdateQualificationTypeCommand.ts +0 -127
- package/src/endpoints.ts +0 -62
- package/src/index.ts +0 -53
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3412
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAssignmentsForHITPaginator.ts +0 -59
- package/src/pagination/ListBonusPaymentsPaginator.ts +0 -59
- package/src/pagination/ListHITsForQualificationTypePaginator.ts +0 -59
- package/src/pagination/ListHITsPaginator.ts +0 -55
- package/src/pagination/ListQualificationRequestsPaginator.ts +0 -59
- package/src/pagination/ListQualificationTypesPaginator.ts +0 -59
- package/src/pagination/ListReviewPolicyResultsForHITPaginator.ts +0 -59
- package/src/pagination/ListReviewableHITsPaginator.ts +0 -59
- package/src/pagination/ListWorkerBlocksPaginator.ts +0 -59
- package/src/pagination/ListWorkersWithQualificationTypePaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -4803
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { AssociateQualificationWithWorkerRequest, AssociateQualificationWithWorkerResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1AssociateQualificationWithWorkerCommand,
|
|
18
|
-
serializeAws_json1_1AssociateQualificationWithWorkerCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface AssociateQualificationWithWorkerCommandInput extends AssociateQualificationWithWorkerRequest {}
|
|
22
|
-
export interface AssociateQualificationWithWorkerCommandOutput
|
|
23
|
-
extends AssociateQualificationWithWorkerResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>
|
|
28
|
-
* The <code>AssociateQualificationWithWorker</code> operation gives a Worker a
|
|
29
|
-
* Qualification. <code>AssociateQualificationWithWorker</code> does not require that the Worker
|
|
30
|
-
* submit a Qualification request. It gives the Qualification directly to the Worker.
|
|
31
|
-
* </p>
|
|
32
|
-
*
|
|
33
|
-
* <p>
|
|
34
|
-
* You can only assign a Qualification of a Qualification type that you created (using
|
|
35
|
-
* the <code>CreateQualificationType</code> operation).
|
|
36
|
-
* </p>
|
|
37
|
-
*
|
|
38
|
-
* <note>
|
|
39
|
-
* <p>
|
|
40
|
-
* Note: <code>AssociateQualificationWithWorker</code> does not affect any pending Qualification
|
|
41
|
-
* requests for the Qualification by the Worker. If you assign a Qualification to a
|
|
42
|
-
* Worker, then later grant a Qualification request made by the Worker, the granting of
|
|
43
|
-
* the request may modify the Qualification score. To resolve a pending Qualification
|
|
44
|
-
* request without affecting the Qualification the Worker already has, reject the
|
|
45
|
-
* request with the <code>RejectQualificationRequest</code> operation.
|
|
46
|
-
* </p>
|
|
47
|
-
* </note>
|
|
48
|
-
* @example
|
|
49
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
-
* ```javascript
|
|
51
|
-
* import { MTurkClient, AssociateQualificationWithWorkerCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
52
|
-
* // const { MTurkClient, AssociateQualificationWithWorkerCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
53
|
-
* const client = new MTurkClient(config);
|
|
54
|
-
* const command = new AssociateQualificationWithWorkerCommand(input);
|
|
55
|
-
* const response = await client.send(command);
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @see {@link AssociateQualificationWithWorkerCommandInput} for command's `input` shape.
|
|
59
|
-
* @see {@link AssociateQualificationWithWorkerCommandOutput} for command's `response` shape.
|
|
60
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
export class AssociateQualificationWithWorkerCommand extends $Command<
|
|
64
|
-
AssociateQualificationWithWorkerCommandInput,
|
|
65
|
-
AssociateQualificationWithWorkerCommandOutput,
|
|
66
|
-
MTurkClientResolvedConfig
|
|
67
|
-
> {
|
|
68
|
-
// Start section: command_properties
|
|
69
|
-
// End section: command_properties
|
|
70
|
-
|
|
71
|
-
constructor(readonly input: AssociateQualificationWithWorkerCommandInput) {
|
|
72
|
-
// Start section: command_constructor
|
|
73
|
-
super();
|
|
74
|
-
// End section: command_constructor
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
resolveMiddleware(
|
|
81
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
82
|
-
configuration: MTurkClientResolvedConfig,
|
|
83
|
-
options?: __HttpHandlerOptions
|
|
84
|
-
): Handler<AssociateQualificationWithWorkerCommandInput, AssociateQualificationWithWorkerCommandOutput> {
|
|
85
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
86
|
-
|
|
87
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
88
|
-
|
|
89
|
-
const { logger } = configuration;
|
|
90
|
-
const clientName = "MTurkClient";
|
|
91
|
-
const commandName = "AssociateQualificationWithWorkerCommand";
|
|
92
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
93
|
-
logger,
|
|
94
|
-
clientName,
|
|
95
|
-
commandName,
|
|
96
|
-
inputFilterSensitiveLog: AssociateQualificationWithWorkerRequest.filterSensitiveLog,
|
|
97
|
-
outputFilterSensitiveLog: AssociateQualificationWithWorkerResponse.filterSensitiveLog,
|
|
98
|
-
};
|
|
99
|
-
const { requestHandler } = configuration;
|
|
100
|
-
return stack.resolve(
|
|
101
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
102
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
103
|
-
handlerExecutionContext
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
private serialize(
|
|
108
|
-
input: AssociateQualificationWithWorkerCommandInput,
|
|
109
|
-
context: __SerdeContext
|
|
110
|
-
): Promise<__HttpRequest> {
|
|
111
|
-
return serializeAws_json1_1AssociateQualificationWithWorkerCommand(input, context);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
private deserialize(
|
|
115
|
-
output: __HttpResponse,
|
|
116
|
-
context: __SerdeContext
|
|
117
|
-
): Promise<AssociateQualificationWithWorkerCommandOutput> {
|
|
118
|
-
return deserializeAws_json1_1AssociateQualificationWithWorkerCommand(output, context);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Start section: command_body_extra
|
|
122
|
-
// End section: command_body_extra
|
|
123
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
CreateAdditionalAssignmentsForHITRequest,
|
|
16
|
-
CreateAdditionalAssignmentsForHITResponse,
|
|
17
|
-
} from "../models/models_0";
|
|
18
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
19
|
-
import {
|
|
20
|
-
deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommand,
|
|
21
|
-
serializeAws_json1_1CreateAdditionalAssignmentsForHITCommand,
|
|
22
|
-
} from "../protocols/Aws_json1_1";
|
|
23
|
-
|
|
24
|
-
export interface CreateAdditionalAssignmentsForHITCommandInput extends CreateAdditionalAssignmentsForHITRequest {}
|
|
25
|
-
export interface CreateAdditionalAssignmentsForHITCommandOutput
|
|
26
|
-
extends CreateAdditionalAssignmentsForHITResponse,
|
|
27
|
-
__MetadataBearer {}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* <p>
|
|
31
|
-
* The
|
|
32
|
-
* <code>CreateAdditionalAssignmentsForHIT</code>
|
|
33
|
-
* operation increases the maximum number of assignments of an existing HIT.
|
|
34
|
-
* </p>
|
|
35
|
-
* <p>
|
|
36
|
-
* To extend the maximum number of assignments, specify the number of additional assignments.</p>
|
|
37
|
-
* <note>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more
|
|
41
|
-
* assignments will result in an
|
|
42
|
-
* <code>AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease</code>
|
|
43
|
-
* exception.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an
|
|
47
|
-
* <code>AWS.MechanicalTurk.HITTooOldForExtension</code>
|
|
48
|
-
* exception.
|
|
49
|
-
* </p>
|
|
50
|
-
* </li>
|
|
51
|
-
* </ul>
|
|
52
|
-
* </note>
|
|
53
|
-
* @example
|
|
54
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
55
|
-
* ```javascript
|
|
56
|
-
* import { MTurkClient, CreateAdditionalAssignmentsForHITCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
57
|
-
* // const { MTurkClient, CreateAdditionalAssignmentsForHITCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
58
|
-
* const client = new MTurkClient(config);
|
|
59
|
-
* const command = new CreateAdditionalAssignmentsForHITCommand(input);
|
|
60
|
-
* const response = await client.send(command);
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @see {@link CreateAdditionalAssignmentsForHITCommandInput} for command's `input` shape.
|
|
64
|
-
* @see {@link CreateAdditionalAssignmentsForHITCommandOutput} for command's `response` shape.
|
|
65
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
export class CreateAdditionalAssignmentsForHITCommand extends $Command<
|
|
69
|
-
CreateAdditionalAssignmentsForHITCommandInput,
|
|
70
|
-
CreateAdditionalAssignmentsForHITCommandOutput,
|
|
71
|
-
MTurkClientResolvedConfig
|
|
72
|
-
> {
|
|
73
|
-
// Start section: command_properties
|
|
74
|
-
// End section: command_properties
|
|
75
|
-
|
|
76
|
-
constructor(readonly input: CreateAdditionalAssignmentsForHITCommandInput) {
|
|
77
|
-
// Start section: command_constructor
|
|
78
|
-
super();
|
|
79
|
-
// End section: command_constructor
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
resolveMiddleware(
|
|
86
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
87
|
-
configuration: MTurkClientResolvedConfig,
|
|
88
|
-
options?: __HttpHandlerOptions
|
|
89
|
-
): Handler<CreateAdditionalAssignmentsForHITCommandInput, CreateAdditionalAssignmentsForHITCommandOutput> {
|
|
90
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
91
|
-
|
|
92
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
93
|
-
|
|
94
|
-
const { logger } = configuration;
|
|
95
|
-
const clientName = "MTurkClient";
|
|
96
|
-
const commandName = "CreateAdditionalAssignmentsForHITCommand";
|
|
97
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
98
|
-
logger,
|
|
99
|
-
clientName,
|
|
100
|
-
commandName,
|
|
101
|
-
inputFilterSensitiveLog: CreateAdditionalAssignmentsForHITRequest.filterSensitiveLog,
|
|
102
|
-
outputFilterSensitiveLog: CreateAdditionalAssignmentsForHITResponse.filterSensitiveLog,
|
|
103
|
-
};
|
|
104
|
-
const { requestHandler } = configuration;
|
|
105
|
-
return stack.resolve(
|
|
106
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
107
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
108
|
-
handlerExecutionContext
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private serialize(
|
|
113
|
-
input: CreateAdditionalAssignmentsForHITCommandInput,
|
|
114
|
-
context: __SerdeContext
|
|
115
|
-
): Promise<__HttpRequest> {
|
|
116
|
-
return serializeAws_json1_1CreateAdditionalAssignmentsForHITCommand(input, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private deserialize(
|
|
120
|
-
output: __HttpResponse,
|
|
121
|
-
context: __SerdeContext
|
|
122
|
-
): Promise<CreateAdditionalAssignmentsForHITCommandOutput> {
|
|
123
|
-
return deserializeAws_json1_1CreateAdditionalAssignmentsForHITCommand(output, context);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// Start section: command_body_extra
|
|
127
|
-
// End section: command_body_extra
|
|
128
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CreateHITRequest, CreateHITResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import { deserializeAws_json1_1CreateHITCommand, serializeAws_json1_1CreateHITCommand } from "../protocols/Aws_json1_1";
|
|
17
|
-
|
|
18
|
-
export interface CreateHITCommandInput extends CreateHITRequest {}
|
|
19
|
-
export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBearer {}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* <p>The <code>CreateHIT</code> operation creates a new Human Intelligence Task (HIT).
|
|
23
|
-
* The new HIT is made available for Workers to find and accept on the Amazon Mechanical
|
|
24
|
-
* Turk website. </p>
|
|
25
|
-
* <p>
|
|
26
|
-
* This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of assignments. When you pass these values to <code>CreateHIT</code>, a new HIT is created for you, with a new <code>HITTypeID</code>. The HITTypeID can be used to create additional HITs in the future without needing to specify common parameters such as the title, description and reward amount each time.</p>
|
|
27
|
-
* <p> An alternative way to create HITs is to first generate a HITTypeID using the <code>CreateHITType</code> operation and then call the <code>CreateHITWithHITType</code> operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.
|
|
28
|
-
* </p>
|
|
29
|
-
*
|
|
30
|
-
* <p>CreateHIT also supports several ways to provide question data: by providing a value
|
|
31
|
-
* for the <code>Question</code> parameter that fully specifies the contents of the HIT, or by providing
|
|
32
|
-
* a <code>HitLayoutId</code> and associated <code>HitLayoutParameters</code>.
|
|
33
|
-
* </p>
|
|
34
|
-
*
|
|
35
|
-
* <note>
|
|
36
|
-
* <p> If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see
|
|
37
|
-
* <a href="https://requester.mturk.com/pricing">Amazon Mechanical Turk Pricing</a>.</p>
|
|
38
|
-
* </note>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { MTurkClient, CreateHITCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
43
|
-
* // const { MTurkClient, CreateHITCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
44
|
-
* const client = new MTurkClient(config);
|
|
45
|
-
* const command = new CreateHITCommand(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link CreateHITCommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link CreateHITCommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
export class CreateHITCommand extends $Command<
|
|
55
|
-
CreateHITCommandInput,
|
|
56
|
-
CreateHITCommandOutput,
|
|
57
|
-
MTurkClientResolvedConfig
|
|
58
|
-
> {
|
|
59
|
-
// Start section: command_properties
|
|
60
|
-
// End section: command_properties
|
|
61
|
-
|
|
62
|
-
constructor(readonly input: CreateHITCommandInput) {
|
|
63
|
-
// Start section: command_constructor
|
|
64
|
-
super();
|
|
65
|
-
// End section: command_constructor
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
resolveMiddleware(
|
|
72
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
73
|
-
configuration: MTurkClientResolvedConfig,
|
|
74
|
-
options?: __HttpHandlerOptions
|
|
75
|
-
): Handler<CreateHITCommandInput, CreateHITCommandOutput> {
|
|
76
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
77
|
-
|
|
78
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
79
|
-
|
|
80
|
-
const { logger } = configuration;
|
|
81
|
-
const clientName = "MTurkClient";
|
|
82
|
-
const commandName = "CreateHITCommand";
|
|
83
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
84
|
-
logger,
|
|
85
|
-
clientName,
|
|
86
|
-
commandName,
|
|
87
|
-
inputFilterSensitiveLog: CreateHITRequest.filterSensitiveLog,
|
|
88
|
-
outputFilterSensitiveLog: CreateHITResponse.filterSensitiveLog,
|
|
89
|
-
};
|
|
90
|
-
const { requestHandler } = configuration;
|
|
91
|
-
return stack.resolve(
|
|
92
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
93
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
94
|
-
handlerExecutionContext
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private serialize(input: CreateHITCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
99
|
-
return serializeAws_json1_1CreateHITCommand(input, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateHITCommandOutput> {
|
|
103
|
-
return deserializeAws_json1_1CreateHITCommand(output, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Start section: command_body_extra
|
|
107
|
-
// End section: command_body_extra
|
|
108
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CreateHITTypeRequest, CreateHITTypeResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateHITTypeCommand,
|
|
18
|
-
serializeAws_json1_1CreateHITTypeCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateHITTypeCommandInput extends CreateHITTypeRequest {}
|
|
22
|
-
export interface CreateHITTypeCommandOutput extends CreateHITTypeResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The <code>CreateHITType</code> operation creates a new HIT type. This operation
|
|
27
|
-
* allows you to define a standard set of HIT properties to use when creating HITs.
|
|
28
|
-
* If you register a HIT type with values that match an existing HIT type, the HIT type
|
|
29
|
-
* ID of the existing type will be returned.
|
|
30
|
-
* </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { MTurkClient, CreateHITTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
35
|
-
* // const { MTurkClient, CreateHITTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
36
|
-
* const client = new MTurkClient(config);
|
|
37
|
-
* const command = new CreateHITTypeCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link CreateHITTypeCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link CreateHITTypeCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class CreateHITTypeCommand extends $Command<
|
|
47
|
-
CreateHITTypeCommandInput,
|
|
48
|
-
CreateHITTypeCommandOutput,
|
|
49
|
-
MTurkClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: CreateHITTypeCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: MTurkClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<CreateHITTypeCommandInput, CreateHITTypeCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "MTurkClient";
|
|
74
|
-
const commandName = "CreateHITTypeCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: CreateHITTypeRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: CreateHITTypeResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: CreateHITTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_1CreateHITTypeCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateHITTypeCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1CreateHITTypeCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CreateHITWithHITTypeRequest, CreateHITWithHITTypeResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateHITWithHITTypeCommand,
|
|
18
|
-
serializeAws_json1_1CreateHITWithHITTypeCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateHITWithHITTypeCommandInput extends CreateHITWithHITTypeRequest {}
|
|
22
|
-
export interface CreateHITWithHITTypeCommandOutput extends CreateHITWithHITTypeResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The <code>CreateHITWithHITType</code> operation creates a new Human Intelligence Task (HIT)
|
|
27
|
-
* using an existing HITTypeID generated by the <code>CreateHITType</code> operation.
|
|
28
|
-
* </p>
|
|
29
|
-
* <p>
|
|
30
|
-
* This is an alternative way to create HITs from the <code>CreateHIT</code> operation.
|
|
31
|
-
* This is the recommended best practice for Requesters who are creating large numbers of HITs.
|
|
32
|
-
* </p>
|
|
33
|
-
* <p>CreateHITWithHITType also supports several ways to provide question data:
|
|
34
|
-
* by providing a value for the <code>Question</code> parameter that fully specifies the contents of the HIT,
|
|
35
|
-
* or by providing a <code>HitLayoutId</code> and associated <code>HitLayoutParameters</code>.
|
|
36
|
-
* </p>
|
|
37
|
-
* <note>
|
|
38
|
-
* <p>
|
|
39
|
-
* If a HIT is created with 10 or more maximum assignments, there is an additional fee.
|
|
40
|
-
* For more information, see <a href="https://requester.mturk.com/pricing">Amazon Mechanical Turk Pricing</a>.
|
|
41
|
-
* </p>
|
|
42
|
-
* </note>
|
|
43
|
-
* @example
|
|
44
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
-
* ```javascript
|
|
46
|
-
* import { MTurkClient, CreateHITWithHITTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
47
|
-
* // const { MTurkClient, CreateHITWithHITTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
48
|
-
* const client = new MTurkClient(config);
|
|
49
|
-
* const command = new CreateHITWithHITTypeCommand(input);
|
|
50
|
-
* const response = await client.send(command);
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @see {@link CreateHITWithHITTypeCommandInput} for command's `input` shape.
|
|
54
|
-
* @see {@link CreateHITWithHITTypeCommandOutput} for command's `response` shape.
|
|
55
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
export class CreateHITWithHITTypeCommand extends $Command<
|
|
59
|
-
CreateHITWithHITTypeCommandInput,
|
|
60
|
-
CreateHITWithHITTypeCommandOutput,
|
|
61
|
-
MTurkClientResolvedConfig
|
|
62
|
-
> {
|
|
63
|
-
// Start section: command_properties
|
|
64
|
-
// End section: command_properties
|
|
65
|
-
|
|
66
|
-
constructor(readonly input: CreateHITWithHITTypeCommandInput) {
|
|
67
|
-
// Start section: command_constructor
|
|
68
|
-
super();
|
|
69
|
-
// End section: command_constructor
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
resolveMiddleware(
|
|
76
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
77
|
-
configuration: MTurkClientResolvedConfig,
|
|
78
|
-
options?: __HttpHandlerOptions
|
|
79
|
-
): Handler<CreateHITWithHITTypeCommandInput, CreateHITWithHITTypeCommandOutput> {
|
|
80
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
81
|
-
|
|
82
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
83
|
-
|
|
84
|
-
const { logger } = configuration;
|
|
85
|
-
const clientName = "MTurkClient";
|
|
86
|
-
const commandName = "CreateHITWithHITTypeCommand";
|
|
87
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
88
|
-
logger,
|
|
89
|
-
clientName,
|
|
90
|
-
commandName,
|
|
91
|
-
inputFilterSensitiveLog: CreateHITWithHITTypeRequest.filterSensitiveLog,
|
|
92
|
-
outputFilterSensitiveLog: CreateHITWithHITTypeResponse.filterSensitiveLog,
|
|
93
|
-
};
|
|
94
|
-
const { requestHandler } = configuration;
|
|
95
|
-
return stack.resolve(
|
|
96
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
97
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
98
|
-
handlerExecutionContext
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private serialize(input: CreateHITWithHITTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
103
|
-
return serializeAws_json1_1CreateHITWithHITTypeCommand(input, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateHITWithHITTypeCommandOutput> {
|
|
107
|
-
return deserializeAws_json1_1CreateHITWithHITTypeCommand(output, context);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Start section: command_body_extra
|
|
111
|
-
// End section: command_body_extra
|
|
112
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CreateQualificationTypeRequest, CreateQualificationTypeResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1CreateQualificationTypeCommand,
|
|
18
|
-
serializeAws_json1_1CreateQualificationTypeCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface CreateQualificationTypeCommandInput extends CreateQualificationTypeRequest {}
|
|
22
|
-
export interface CreateQualificationTypeCommandOutput extends CreateQualificationTypeResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The
|
|
27
|
-
* <code>CreateQualificationType</code>
|
|
28
|
-
* operation creates a new Qualification type, which is represented by a
|
|
29
|
-
* <code>QualificationType</code>
|
|
30
|
-
* data structure.
|
|
31
|
-
* </p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { MTurkClient, CreateQualificationTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
36
|
-
* // const { MTurkClient, CreateQualificationTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
37
|
-
* const client = new MTurkClient(config);
|
|
38
|
-
* const command = new CreateQualificationTypeCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link CreateQualificationTypeCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link CreateQualificationTypeCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class CreateQualificationTypeCommand extends $Command<
|
|
48
|
-
CreateQualificationTypeCommandInput,
|
|
49
|
-
CreateQualificationTypeCommandOutput,
|
|
50
|
-
MTurkClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: CreateQualificationTypeCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: MTurkClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<CreateQualificationTypeCommandInput, CreateQualificationTypeCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "MTurkClient";
|
|
75
|
-
const commandName = "CreateQualificationTypeCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: CreateQualificationTypeRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: CreateQualificationTypeResponse.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: CreateQualificationTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_1CreateQualificationTypeCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateQualificationTypeCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_1CreateQualificationTypeCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|