@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,98 +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 { ListReviewableHITsRequest, ListReviewableHITsResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListReviewableHITsCommand,
|
|
18
|
-
serializeAws_json1_1ListReviewableHITsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListReviewableHITsCommandInput extends ListReviewableHITsRequest {}
|
|
22
|
-
export interface ListReviewableHITsCommandOutput extends ListReviewableHITsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The <code>ListReviewableHITs</code> operation retrieves the HITs with Status equal to
|
|
27
|
-
* Reviewable or Status equal to Reviewing that belong to the Requester calling the operation.
|
|
28
|
-
* </p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { MTurkClient, ListReviewableHITsCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
33
|
-
* // const { MTurkClient, ListReviewableHITsCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
34
|
-
* const client = new MTurkClient(config);
|
|
35
|
-
* const command = new ListReviewableHITsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link ListReviewableHITsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link ListReviewableHITsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class ListReviewableHITsCommand extends $Command<
|
|
45
|
-
ListReviewableHITsCommandInput,
|
|
46
|
-
ListReviewableHITsCommandOutput,
|
|
47
|
-
MTurkClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: ListReviewableHITsCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: MTurkClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<ListReviewableHITsCommandInput, ListReviewableHITsCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "MTurkClient";
|
|
72
|
-
const commandName = "ListReviewableHITsCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: ListReviewableHITsRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: ListReviewableHITsResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: ListReviewableHITsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1ListReviewableHITsCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListReviewableHITsCommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1ListReviewableHITsCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,95 +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 { ListWorkerBlocksRequest, ListWorkerBlocksResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListWorkerBlocksCommand,
|
|
18
|
-
serializeAws_json1_1ListWorkerBlocksCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListWorkerBlocksCommandInput extends ListWorkerBlocksRequest {}
|
|
22
|
-
export interface ListWorkerBlocksCommandOutput extends ListWorkerBlocksResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>The <code>ListWorkersBlocks</code> operation retrieves a list of Workers who are blocked from working on your HITs.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { MTurkClient, ListWorkerBlocksCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
30
|
-
* // const { MTurkClient, ListWorkerBlocksCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
31
|
-
* const client = new MTurkClient(config);
|
|
32
|
-
* const command = new ListWorkerBlocksCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListWorkerBlocksCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListWorkerBlocksCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListWorkerBlocksCommand extends $Command<
|
|
42
|
-
ListWorkerBlocksCommandInput,
|
|
43
|
-
ListWorkerBlocksCommandOutput,
|
|
44
|
-
MTurkClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListWorkerBlocksCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: MTurkClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListWorkerBlocksCommandInput, ListWorkerBlocksCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "MTurkClient";
|
|
69
|
-
const commandName = "ListWorkerBlocksCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListWorkerBlocksRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListWorkerBlocksResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListWorkerBlocksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1ListWorkerBlocksCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListWorkerBlocksCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1ListWorkerBlocksCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,106 +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 { ListWorkersWithQualificationTypeRequest, ListWorkersWithQualificationTypeResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListWorkersWithQualificationTypeCommand,
|
|
18
|
-
serializeAws_json1_1ListWorkersWithQualificationTypeCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListWorkersWithQualificationTypeCommandInput extends ListWorkersWithQualificationTypeRequest {}
|
|
22
|
-
export interface ListWorkersWithQualificationTypeCommandOutput
|
|
23
|
-
extends ListWorkersWithQualificationTypeResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>
|
|
28
|
-
* The <code>ListWorkersWithQualificationType</code> operation returns all of the Workers
|
|
29
|
-
* that have been associated with a given Qualification type.
|
|
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, ListWorkersWithQualificationTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
35
|
-
* // const { MTurkClient, ListWorkersWithQualificationTypeCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
36
|
-
* const client = new MTurkClient(config);
|
|
37
|
-
* const command = new ListWorkersWithQualificationTypeCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link ListWorkersWithQualificationTypeCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link ListWorkersWithQualificationTypeCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class ListWorkersWithQualificationTypeCommand extends $Command<
|
|
47
|
-
ListWorkersWithQualificationTypeCommandInput,
|
|
48
|
-
ListWorkersWithQualificationTypeCommandOutput,
|
|
49
|
-
MTurkClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: ListWorkersWithQualificationTypeCommandInput) {
|
|
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<ListWorkersWithQualificationTypeCommandInput, ListWorkersWithQualificationTypeCommandOutput> {
|
|
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 = "ListWorkersWithQualificationTypeCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: ListWorkersWithQualificationTypeRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: ListWorkersWithQualificationTypeResponse.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(
|
|
91
|
-
input: ListWorkersWithQualificationTypeCommandInput,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_1ListWorkersWithQualificationTypeCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(
|
|
98
|
-
output: __HttpResponse,
|
|
99
|
-
context: __SerdeContext
|
|
100
|
-
): Promise<ListWorkersWithQualificationTypeCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1ListWorkersWithQualificationTypeCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|
|
@@ -1,104 +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 { NotifyWorkersRequest, NotifyWorkersResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1NotifyWorkersCommand,
|
|
18
|
-
serializeAws_json1_1NotifyWorkersCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface NotifyWorkersCommandInput extends NotifyWorkersRequest {}
|
|
22
|
-
export interface NotifyWorkersCommandOutput extends NotifyWorkersResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The
|
|
27
|
-
* <code>NotifyWorkers</code>
|
|
28
|
-
* operation sends an email to one or more Workers that you specify with
|
|
29
|
-
* the Worker ID. You can specify up to 100 Worker IDs to send the same
|
|
30
|
-
* message with a single call to the NotifyWorkers operation. The
|
|
31
|
-
* NotifyWorkers operation will send a notification email to a Worker
|
|
32
|
-
* only if you have previously approved or rejected work from the
|
|
33
|
-
* Worker.
|
|
34
|
-
* </p>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { MTurkClient, NotifyWorkersCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
39
|
-
* // const { MTurkClient, NotifyWorkersCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
40
|
-
* const client = new MTurkClient(config);
|
|
41
|
-
* const command = new NotifyWorkersCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link NotifyWorkersCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link NotifyWorkersCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export class NotifyWorkersCommand extends $Command<
|
|
51
|
-
NotifyWorkersCommandInput,
|
|
52
|
-
NotifyWorkersCommandOutput,
|
|
53
|
-
MTurkClientResolvedConfig
|
|
54
|
-
> {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
|
|
58
|
-
constructor(readonly input: NotifyWorkersCommandInput) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
|
-
super();
|
|
61
|
-
// End section: command_constructor
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
resolveMiddleware(
|
|
68
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
69
|
-
configuration: MTurkClientResolvedConfig,
|
|
70
|
-
options?: __HttpHandlerOptions
|
|
71
|
-
): Handler<NotifyWorkersCommandInput, NotifyWorkersCommandOutput> {
|
|
72
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
73
|
-
|
|
74
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
75
|
-
|
|
76
|
-
const { logger } = configuration;
|
|
77
|
-
const clientName = "MTurkClient";
|
|
78
|
-
const commandName = "NotifyWorkersCommand";
|
|
79
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
80
|
-
logger,
|
|
81
|
-
clientName,
|
|
82
|
-
commandName,
|
|
83
|
-
inputFilterSensitiveLog: NotifyWorkersRequest.filterSensitiveLog,
|
|
84
|
-
outputFilterSensitiveLog: NotifyWorkersResponse.filterSensitiveLog,
|
|
85
|
-
};
|
|
86
|
-
const { requestHandler } = configuration;
|
|
87
|
-
return stack.resolve(
|
|
88
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
89
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
90
|
-
handlerExecutionContext
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private serialize(input: NotifyWorkersCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
95
|
-
return serializeAws_json1_1NotifyWorkersCommand(input, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<NotifyWorkersCommandOutput> {
|
|
99
|
-
return deserializeAws_json1_1NotifyWorkersCommand(output, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Start section: command_body_extra
|
|
103
|
-
// End section: command_body_extra
|
|
104
|
-
}
|
|
@@ -1,107 +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 { RejectAssignmentRequest, RejectAssignmentResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1RejectAssignmentCommand,
|
|
18
|
-
serializeAws_json1_1RejectAssignmentCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface RejectAssignmentCommandInput extends RejectAssignmentRequest {}
|
|
22
|
-
export interface RejectAssignmentCommandOutput extends RejectAssignmentResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The <code>RejectAssignment</code> operation rejects the results of a completed assignment.
|
|
27
|
-
* </p>
|
|
28
|
-
* <p>
|
|
29
|
-
* You can include an optional feedback message with the rejection,
|
|
30
|
-
* which the Worker can see in the Status section of the web site.
|
|
31
|
-
* When you include a feedback message with the rejection,
|
|
32
|
-
* it helps the Worker understand why the assignment was rejected,
|
|
33
|
-
* and can improve the quality of the results the Worker submits in the future.
|
|
34
|
-
* </p>
|
|
35
|
-
* <p>
|
|
36
|
-
* Only the Requester who created the HIT can reject an assignment for the HIT.
|
|
37
|
-
* </p>
|
|
38
|
-
* @example
|
|
39
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
40
|
-
* ```javascript
|
|
41
|
-
* import { MTurkClient, RejectAssignmentCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
42
|
-
* // const { MTurkClient, RejectAssignmentCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
43
|
-
* const client = new MTurkClient(config);
|
|
44
|
-
* const command = new RejectAssignmentCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @see {@link RejectAssignmentCommandInput} for command's `input` shape.
|
|
49
|
-
* @see {@link RejectAssignmentCommandOutput} for command's `response` shape.
|
|
50
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
export class RejectAssignmentCommand extends $Command<
|
|
54
|
-
RejectAssignmentCommandInput,
|
|
55
|
-
RejectAssignmentCommandOutput,
|
|
56
|
-
MTurkClientResolvedConfig
|
|
57
|
-
> {
|
|
58
|
-
// Start section: command_properties
|
|
59
|
-
// End section: command_properties
|
|
60
|
-
|
|
61
|
-
constructor(readonly input: RejectAssignmentCommandInput) {
|
|
62
|
-
// Start section: command_constructor
|
|
63
|
-
super();
|
|
64
|
-
// End section: command_constructor
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
resolveMiddleware(
|
|
71
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
72
|
-
configuration: MTurkClientResolvedConfig,
|
|
73
|
-
options?: __HttpHandlerOptions
|
|
74
|
-
): Handler<RejectAssignmentCommandInput, RejectAssignmentCommandOutput> {
|
|
75
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
76
|
-
|
|
77
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
78
|
-
|
|
79
|
-
const { logger } = configuration;
|
|
80
|
-
const clientName = "MTurkClient";
|
|
81
|
-
const commandName = "RejectAssignmentCommand";
|
|
82
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
83
|
-
logger,
|
|
84
|
-
clientName,
|
|
85
|
-
commandName,
|
|
86
|
-
inputFilterSensitiveLog: RejectAssignmentRequest.filterSensitiveLog,
|
|
87
|
-
outputFilterSensitiveLog: RejectAssignmentResponse.filterSensitiveLog,
|
|
88
|
-
};
|
|
89
|
-
const { requestHandler } = configuration;
|
|
90
|
-
return stack.resolve(
|
|
91
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
92
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
93
|
-
handlerExecutionContext
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private serialize(input: RejectAssignmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
98
|
-
return serializeAws_json1_1RejectAssignmentCommand(input, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RejectAssignmentCommandOutput> {
|
|
102
|
-
return deserializeAws_json1_1RejectAssignmentCommand(output, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Start section: command_body_extra
|
|
106
|
-
// End section: command_body_extra
|
|
107
|
-
}
|
|
@@ -1,104 +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 { RejectQualificationRequestRequest, RejectQualificationRequestResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1RejectQualificationRequestCommand,
|
|
18
|
-
serializeAws_json1_1RejectQualificationRequestCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface RejectQualificationRequestCommandInput extends RejectQualificationRequestRequest {}
|
|
22
|
-
export interface RejectQualificationRequestCommandOutput extends RejectQualificationRequestResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The
|
|
27
|
-
* <code>RejectQualificationRequest</code>
|
|
28
|
-
* operation rejects a user's request for a Qualification.
|
|
29
|
-
* </p>
|
|
30
|
-
* <p> You can provide a text message explaining why the request was
|
|
31
|
-
* rejected. The Worker who made the request can see this message.</p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { MTurkClient, RejectQualificationRequestCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
36
|
-
* // const { MTurkClient, RejectQualificationRequestCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
37
|
-
* const client = new MTurkClient(config);
|
|
38
|
-
* const command = new RejectQualificationRequestCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link RejectQualificationRequestCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link RejectQualificationRequestCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class RejectQualificationRequestCommand extends $Command<
|
|
48
|
-
RejectQualificationRequestCommandInput,
|
|
49
|
-
RejectQualificationRequestCommandOutput,
|
|
50
|
-
MTurkClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: RejectQualificationRequestCommandInput) {
|
|
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<RejectQualificationRequestCommandInput, RejectQualificationRequestCommandOutput> {
|
|
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 = "RejectQualificationRequestCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: RejectQualificationRequestRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: RejectQualificationRequestResponse.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: RejectQualificationRequestCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_1RejectQualificationRequestCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(
|
|
96
|
-
output: __HttpResponse,
|
|
97
|
-
context: __SerdeContext
|
|
98
|
-
): Promise<RejectQualificationRequestCommandOutput> {
|
|
99
|
-
return deserializeAws_json1_1RejectQualificationRequestCommand(output, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Start section: command_body_extra
|
|
103
|
-
// End section: command_body_extra
|
|
104
|
-
}
|