@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
package/src/MTurkClient.ts
DELETED
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
AcceptQualificationRequestCommandInput,
|
|
54
|
-
AcceptQualificationRequestCommandOutput,
|
|
55
|
-
} from "./commands/AcceptQualificationRequestCommand";
|
|
56
|
-
import { ApproveAssignmentCommandInput, ApproveAssignmentCommandOutput } from "./commands/ApproveAssignmentCommand";
|
|
57
|
-
import {
|
|
58
|
-
AssociateQualificationWithWorkerCommandInput,
|
|
59
|
-
AssociateQualificationWithWorkerCommandOutput,
|
|
60
|
-
} from "./commands/AssociateQualificationWithWorkerCommand";
|
|
61
|
-
import {
|
|
62
|
-
CreateAdditionalAssignmentsForHITCommandInput,
|
|
63
|
-
CreateAdditionalAssignmentsForHITCommandOutput,
|
|
64
|
-
} from "./commands/CreateAdditionalAssignmentsForHITCommand";
|
|
65
|
-
import { CreateHITCommandInput, CreateHITCommandOutput } from "./commands/CreateHITCommand";
|
|
66
|
-
import { CreateHITTypeCommandInput, CreateHITTypeCommandOutput } from "./commands/CreateHITTypeCommand";
|
|
67
|
-
import {
|
|
68
|
-
CreateHITWithHITTypeCommandInput,
|
|
69
|
-
CreateHITWithHITTypeCommandOutput,
|
|
70
|
-
} from "./commands/CreateHITWithHITTypeCommand";
|
|
71
|
-
import {
|
|
72
|
-
CreateQualificationTypeCommandInput,
|
|
73
|
-
CreateQualificationTypeCommandOutput,
|
|
74
|
-
} from "./commands/CreateQualificationTypeCommand";
|
|
75
|
-
import { CreateWorkerBlockCommandInput, CreateWorkerBlockCommandOutput } from "./commands/CreateWorkerBlockCommand";
|
|
76
|
-
import { DeleteHITCommandInput, DeleteHITCommandOutput } from "./commands/DeleteHITCommand";
|
|
77
|
-
import {
|
|
78
|
-
DeleteQualificationTypeCommandInput,
|
|
79
|
-
DeleteQualificationTypeCommandOutput,
|
|
80
|
-
} from "./commands/DeleteQualificationTypeCommand";
|
|
81
|
-
import { DeleteWorkerBlockCommandInput, DeleteWorkerBlockCommandOutput } from "./commands/DeleteWorkerBlockCommand";
|
|
82
|
-
import {
|
|
83
|
-
DisassociateQualificationFromWorkerCommandInput,
|
|
84
|
-
DisassociateQualificationFromWorkerCommandOutput,
|
|
85
|
-
} from "./commands/DisassociateQualificationFromWorkerCommand";
|
|
86
|
-
import { GetAccountBalanceCommandInput, GetAccountBalanceCommandOutput } from "./commands/GetAccountBalanceCommand";
|
|
87
|
-
import { GetAssignmentCommandInput, GetAssignmentCommandOutput } from "./commands/GetAssignmentCommand";
|
|
88
|
-
import { GetFileUploadURLCommandInput, GetFileUploadURLCommandOutput } from "./commands/GetFileUploadURLCommand";
|
|
89
|
-
import { GetHITCommandInput, GetHITCommandOutput } from "./commands/GetHITCommand";
|
|
90
|
-
import {
|
|
91
|
-
GetQualificationScoreCommandInput,
|
|
92
|
-
GetQualificationScoreCommandOutput,
|
|
93
|
-
} from "./commands/GetQualificationScoreCommand";
|
|
94
|
-
import {
|
|
95
|
-
GetQualificationTypeCommandInput,
|
|
96
|
-
GetQualificationTypeCommandOutput,
|
|
97
|
-
} from "./commands/GetQualificationTypeCommand";
|
|
98
|
-
import {
|
|
99
|
-
ListAssignmentsForHITCommandInput,
|
|
100
|
-
ListAssignmentsForHITCommandOutput,
|
|
101
|
-
} from "./commands/ListAssignmentsForHITCommand";
|
|
102
|
-
import { ListBonusPaymentsCommandInput, ListBonusPaymentsCommandOutput } from "./commands/ListBonusPaymentsCommand";
|
|
103
|
-
import { ListHITsCommandInput, ListHITsCommandOutput } from "./commands/ListHITsCommand";
|
|
104
|
-
import {
|
|
105
|
-
ListHITsForQualificationTypeCommandInput,
|
|
106
|
-
ListHITsForQualificationTypeCommandOutput,
|
|
107
|
-
} from "./commands/ListHITsForQualificationTypeCommand";
|
|
108
|
-
import {
|
|
109
|
-
ListQualificationRequestsCommandInput,
|
|
110
|
-
ListQualificationRequestsCommandOutput,
|
|
111
|
-
} from "./commands/ListQualificationRequestsCommand";
|
|
112
|
-
import {
|
|
113
|
-
ListQualificationTypesCommandInput,
|
|
114
|
-
ListQualificationTypesCommandOutput,
|
|
115
|
-
} from "./commands/ListQualificationTypesCommand";
|
|
116
|
-
import { ListReviewableHITsCommandInput, ListReviewableHITsCommandOutput } from "./commands/ListReviewableHITsCommand";
|
|
117
|
-
import {
|
|
118
|
-
ListReviewPolicyResultsForHITCommandInput,
|
|
119
|
-
ListReviewPolicyResultsForHITCommandOutput,
|
|
120
|
-
} from "./commands/ListReviewPolicyResultsForHITCommand";
|
|
121
|
-
import { ListWorkerBlocksCommandInput, ListWorkerBlocksCommandOutput } from "./commands/ListWorkerBlocksCommand";
|
|
122
|
-
import {
|
|
123
|
-
ListWorkersWithQualificationTypeCommandInput,
|
|
124
|
-
ListWorkersWithQualificationTypeCommandOutput,
|
|
125
|
-
} from "./commands/ListWorkersWithQualificationTypeCommand";
|
|
126
|
-
import { NotifyWorkersCommandInput, NotifyWorkersCommandOutput } from "./commands/NotifyWorkersCommand";
|
|
127
|
-
import { RejectAssignmentCommandInput, RejectAssignmentCommandOutput } from "./commands/RejectAssignmentCommand";
|
|
128
|
-
import {
|
|
129
|
-
RejectQualificationRequestCommandInput,
|
|
130
|
-
RejectQualificationRequestCommandOutput,
|
|
131
|
-
} from "./commands/RejectQualificationRequestCommand";
|
|
132
|
-
import { SendBonusCommandInput, SendBonusCommandOutput } from "./commands/SendBonusCommand";
|
|
133
|
-
import {
|
|
134
|
-
SendTestEventNotificationCommandInput,
|
|
135
|
-
SendTestEventNotificationCommandOutput,
|
|
136
|
-
} from "./commands/SendTestEventNotificationCommand";
|
|
137
|
-
import {
|
|
138
|
-
UpdateExpirationForHITCommandInput,
|
|
139
|
-
UpdateExpirationForHITCommandOutput,
|
|
140
|
-
} from "./commands/UpdateExpirationForHITCommand";
|
|
141
|
-
import {
|
|
142
|
-
UpdateHITReviewStatusCommandInput,
|
|
143
|
-
UpdateHITReviewStatusCommandOutput,
|
|
144
|
-
} from "./commands/UpdateHITReviewStatusCommand";
|
|
145
|
-
import { UpdateHITTypeOfHITCommandInput, UpdateHITTypeOfHITCommandOutput } from "./commands/UpdateHITTypeOfHITCommand";
|
|
146
|
-
import {
|
|
147
|
-
UpdateNotificationSettingsCommandInput,
|
|
148
|
-
UpdateNotificationSettingsCommandOutput,
|
|
149
|
-
} from "./commands/UpdateNotificationSettingsCommand";
|
|
150
|
-
import {
|
|
151
|
-
UpdateQualificationTypeCommandInput,
|
|
152
|
-
UpdateQualificationTypeCommandOutput,
|
|
153
|
-
} from "./commands/UpdateQualificationTypeCommand";
|
|
154
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
155
|
-
|
|
156
|
-
export type ServiceInputTypes =
|
|
157
|
-
| AcceptQualificationRequestCommandInput
|
|
158
|
-
| ApproveAssignmentCommandInput
|
|
159
|
-
| AssociateQualificationWithWorkerCommandInput
|
|
160
|
-
| CreateAdditionalAssignmentsForHITCommandInput
|
|
161
|
-
| CreateHITCommandInput
|
|
162
|
-
| CreateHITTypeCommandInput
|
|
163
|
-
| CreateHITWithHITTypeCommandInput
|
|
164
|
-
| CreateQualificationTypeCommandInput
|
|
165
|
-
| CreateWorkerBlockCommandInput
|
|
166
|
-
| DeleteHITCommandInput
|
|
167
|
-
| DeleteQualificationTypeCommandInput
|
|
168
|
-
| DeleteWorkerBlockCommandInput
|
|
169
|
-
| DisassociateQualificationFromWorkerCommandInput
|
|
170
|
-
| GetAccountBalanceCommandInput
|
|
171
|
-
| GetAssignmentCommandInput
|
|
172
|
-
| GetFileUploadURLCommandInput
|
|
173
|
-
| GetHITCommandInput
|
|
174
|
-
| GetQualificationScoreCommandInput
|
|
175
|
-
| GetQualificationTypeCommandInput
|
|
176
|
-
| ListAssignmentsForHITCommandInput
|
|
177
|
-
| ListBonusPaymentsCommandInput
|
|
178
|
-
| ListHITsCommandInput
|
|
179
|
-
| ListHITsForQualificationTypeCommandInput
|
|
180
|
-
| ListQualificationRequestsCommandInput
|
|
181
|
-
| ListQualificationTypesCommandInput
|
|
182
|
-
| ListReviewPolicyResultsForHITCommandInput
|
|
183
|
-
| ListReviewableHITsCommandInput
|
|
184
|
-
| ListWorkerBlocksCommandInput
|
|
185
|
-
| ListWorkersWithQualificationTypeCommandInput
|
|
186
|
-
| NotifyWorkersCommandInput
|
|
187
|
-
| RejectAssignmentCommandInput
|
|
188
|
-
| RejectQualificationRequestCommandInput
|
|
189
|
-
| SendBonusCommandInput
|
|
190
|
-
| SendTestEventNotificationCommandInput
|
|
191
|
-
| UpdateExpirationForHITCommandInput
|
|
192
|
-
| UpdateHITReviewStatusCommandInput
|
|
193
|
-
| UpdateHITTypeOfHITCommandInput
|
|
194
|
-
| UpdateNotificationSettingsCommandInput
|
|
195
|
-
| UpdateQualificationTypeCommandInput;
|
|
196
|
-
|
|
197
|
-
export type ServiceOutputTypes =
|
|
198
|
-
| AcceptQualificationRequestCommandOutput
|
|
199
|
-
| ApproveAssignmentCommandOutput
|
|
200
|
-
| AssociateQualificationWithWorkerCommandOutput
|
|
201
|
-
| CreateAdditionalAssignmentsForHITCommandOutput
|
|
202
|
-
| CreateHITCommandOutput
|
|
203
|
-
| CreateHITTypeCommandOutput
|
|
204
|
-
| CreateHITWithHITTypeCommandOutput
|
|
205
|
-
| CreateQualificationTypeCommandOutput
|
|
206
|
-
| CreateWorkerBlockCommandOutput
|
|
207
|
-
| DeleteHITCommandOutput
|
|
208
|
-
| DeleteQualificationTypeCommandOutput
|
|
209
|
-
| DeleteWorkerBlockCommandOutput
|
|
210
|
-
| DisassociateQualificationFromWorkerCommandOutput
|
|
211
|
-
| GetAccountBalanceCommandOutput
|
|
212
|
-
| GetAssignmentCommandOutput
|
|
213
|
-
| GetFileUploadURLCommandOutput
|
|
214
|
-
| GetHITCommandOutput
|
|
215
|
-
| GetQualificationScoreCommandOutput
|
|
216
|
-
| GetQualificationTypeCommandOutput
|
|
217
|
-
| ListAssignmentsForHITCommandOutput
|
|
218
|
-
| ListBonusPaymentsCommandOutput
|
|
219
|
-
| ListHITsCommandOutput
|
|
220
|
-
| ListHITsForQualificationTypeCommandOutput
|
|
221
|
-
| ListQualificationRequestsCommandOutput
|
|
222
|
-
| ListQualificationTypesCommandOutput
|
|
223
|
-
| ListReviewPolicyResultsForHITCommandOutput
|
|
224
|
-
| ListReviewableHITsCommandOutput
|
|
225
|
-
| ListWorkerBlocksCommandOutput
|
|
226
|
-
| ListWorkersWithQualificationTypeCommandOutput
|
|
227
|
-
| NotifyWorkersCommandOutput
|
|
228
|
-
| RejectAssignmentCommandOutput
|
|
229
|
-
| RejectQualificationRequestCommandOutput
|
|
230
|
-
| SendBonusCommandOutput
|
|
231
|
-
| SendTestEventNotificationCommandOutput
|
|
232
|
-
| UpdateExpirationForHITCommandOutput
|
|
233
|
-
| UpdateHITReviewStatusCommandOutput
|
|
234
|
-
| UpdateHITTypeOfHITCommandOutput
|
|
235
|
-
| UpdateNotificationSettingsCommandOutput
|
|
236
|
-
| UpdateQualificationTypeCommandOutput;
|
|
237
|
-
|
|
238
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
239
|
-
/**
|
|
240
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
241
|
-
*/
|
|
242
|
-
requestHandler?: __HttpHandler;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
246
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
247
|
-
* @internal
|
|
248
|
-
*/
|
|
249
|
-
sha256?: __HashConstructor;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
253
|
-
* @internal
|
|
254
|
-
*/
|
|
255
|
-
urlParser?: __UrlParser;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* A function that can calculate the length of a request body.
|
|
259
|
-
* @internal
|
|
260
|
-
*/
|
|
261
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* A function that converts a stream into an array of bytes.
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
|
-
streamCollector?: __StreamCollector;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
271
|
-
* @internal
|
|
272
|
-
*/
|
|
273
|
-
base64Decoder?: __Decoder;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
277
|
-
* @internal
|
|
278
|
-
*/
|
|
279
|
-
base64Encoder?: __Encoder;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
283
|
-
* @internal
|
|
284
|
-
*/
|
|
285
|
-
utf8Decoder?: __Decoder;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
289
|
-
* @internal
|
|
290
|
-
*/
|
|
291
|
-
utf8Encoder?: __Encoder;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* The runtime environment.
|
|
295
|
-
* @internal
|
|
296
|
-
*/
|
|
297
|
-
runtime?: string;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
301
|
-
* trait of an operation.
|
|
302
|
-
*/
|
|
303
|
-
disableHostPrefix?: boolean;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
307
|
-
*/
|
|
308
|
-
maxAttempts?: number | __Provider<number>;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Specifies which retry algorithm to use.
|
|
312
|
-
*/
|
|
313
|
-
retryMode?: string | __Provider<string>;
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Optional logger for logging debug/info/warn/error.
|
|
317
|
-
*/
|
|
318
|
-
logger?: __Logger;
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Unique service identifier.
|
|
322
|
-
* @internal
|
|
323
|
-
*/
|
|
324
|
-
serviceId?: string;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* The AWS region to which this client will send requests
|
|
328
|
-
*/
|
|
329
|
-
region?: string | __Provider<string>;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Default credentials provider; Not available in browser runtime.
|
|
333
|
-
* @internal
|
|
334
|
-
*/
|
|
335
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
339
|
-
* @internal
|
|
340
|
-
*/
|
|
341
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
345
|
-
* @internal
|
|
346
|
-
*/
|
|
347
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
type MTurkClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
351
|
-
ClientDefaults &
|
|
352
|
-
RegionInputConfig &
|
|
353
|
-
EndpointsInputConfig &
|
|
354
|
-
RetryInputConfig &
|
|
355
|
-
HostHeaderInputConfig &
|
|
356
|
-
AwsAuthInputConfig &
|
|
357
|
-
UserAgentInputConfig;
|
|
358
|
-
/**
|
|
359
|
-
* The configuration interface of MTurkClient class constructor that set the region, credentials and other options.
|
|
360
|
-
*/
|
|
361
|
-
export interface MTurkClientConfig extends MTurkClientConfigType {}
|
|
362
|
-
|
|
363
|
-
type MTurkClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
364
|
-
Required<ClientDefaults> &
|
|
365
|
-
RegionResolvedConfig &
|
|
366
|
-
EndpointsResolvedConfig &
|
|
367
|
-
RetryResolvedConfig &
|
|
368
|
-
HostHeaderResolvedConfig &
|
|
369
|
-
AwsAuthResolvedConfig &
|
|
370
|
-
UserAgentResolvedConfig;
|
|
371
|
-
/**
|
|
372
|
-
* The resolved configuration interface of MTurkClient class. This is resolved and normalized from the {@link MTurkClientConfig | constructor configuration interface}.
|
|
373
|
-
*/
|
|
374
|
-
export interface MTurkClientResolvedConfig extends MTurkClientResolvedConfigType {}
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* <fullname>Amazon Mechanical Turk API Reference</fullname>
|
|
378
|
-
*/
|
|
379
|
-
export class MTurkClient extends __Client<
|
|
380
|
-
__HttpHandlerOptions,
|
|
381
|
-
ServiceInputTypes,
|
|
382
|
-
ServiceOutputTypes,
|
|
383
|
-
MTurkClientResolvedConfig
|
|
384
|
-
> {
|
|
385
|
-
/**
|
|
386
|
-
* The resolved configuration of MTurkClient class. This is resolved and normalized from the {@link MTurkClientConfig | constructor configuration interface}.
|
|
387
|
-
*/
|
|
388
|
-
readonly config: MTurkClientResolvedConfig;
|
|
389
|
-
|
|
390
|
-
constructor(configuration: MTurkClientConfig) {
|
|
391
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
392
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
393
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
394
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
395
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
396
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
397
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
398
|
-
super(_config_6);
|
|
399
|
-
this.config = _config_6;
|
|
400
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
401
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
402
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
403
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
404
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
405
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
410
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
411
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
412
|
-
*/
|
|
413
|
-
destroy(): void {
|
|
414
|
-
super.destroy();
|
|
415
|
-
}
|
|
416
|
-
}
|
|
@@ -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 { AcceptQualificationRequestRequest, AcceptQualificationRequestResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1AcceptQualificationRequestCommand,
|
|
18
|
-
serializeAws_json1_1AcceptQualificationRequestCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface AcceptQualificationRequestCommandInput extends AcceptQualificationRequestRequest {}
|
|
22
|
-
export interface AcceptQualificationRequestCommandOutput extends AcceptQualificationRequestResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The <code>AcceptQualificationRequest</code> operation approves a Worker's request for a Qualification.
|
|
27
|
-
* </p>
|
|
28
|
-
* <p>
|
|
29
|
-
* Only the owner of the Qualification type can grant a Qualification request for that type.
|
|
30
|
-
* </p>
|
|
31
|
-
* <p>
|
|
32
|
-
* A successful request for the <code>AcceptQualificationRequest</code> operation
|
|
33
|
-
* returns with no errors and an empty body.
|
|
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, AcceptQualificationRequestCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
39
|
-
* // const { MTurkClient, AcceptQualificationRequestCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
40
|
-
* const client = new MTurkClient(config);
|
|
41
|
-
* const command = new AcceptQualificationRequestCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link AcceptQualificationRequestCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link AcceptQualificationRequestCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export class AcceptQualificationRequestCommand extends $Command<
|
|
51
|
-
AcceptQualificationRequestCommandInput,
|
|
52
|
-
AcceptQualificationRequestCommandOutput,
|
|
53
|
-
MTurkClientResolvedConfig
|
|
54
|
-
> {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
|
|
58
|
-
constructor(readonly input: AcceptQualificationRequestCommandInput) {
|
|
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<AcceptQualificationRequestCommandInput, AcceptQualificationRequestCommandOutput> {
|
|
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 = "AcceptQualificationRequestCommand";
|
|
79
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
80
|
-
logger,
|
|
81
|
-
clientName,
|
|
82
|
-
commandName,
|
|
83
|
-
inputFilterSensitiveLog: AcceptQualificationRequestRequest.filterSensitiveLog,
|
|
84
|
-
outputFilterSensitiveLog: AcceptQualificationRequestResponse.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: AcceptQualificationRequestCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
95
|
-
return serializeAws_json1_1AcceptQualificationRequestCommand(input, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private deserialize(
|
|
99
|
-
output: __HttpResponse,
|
|
100
|
-
context: __SerdeContext
|
|
101
|
-
): Promise<AcceptQualificationRequestCommandOutput> {
|
|
102
|
-
return deserializeAws_json1_1AcceptQualificationRequestCommand(output, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Start section: command_body_extra
|
|
106
|
-
// End section: command_body_extra
|
|
107
|
-
}
|
|
@@ -1,124 +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 { ApproveAssignmentRequest, ApproveAssignmentResponse } from "../models/models_0";
|
|
15
|
-
import { MTurkClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MTurkClient";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ApproveAssignmentCommand,
|
|
18
|
-
serializeAws_json1_1ApproveAssignmentCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ApproveAssignmentCommandInput extends ApproveAssignmentRequest {}
|
|
22
|
-
export interface ApproveAssignmentCommandOutput extends ApproveAssignmentResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* The <code>ApproveAssignment</code> operation approves the results of a completed assignment.
|
|
27
|
-
* </p>
|
|
28
|
-
* <p>
|
|
29
|
-
* Approving an assignment initiates two payments from the Requester's Amazon.com account
|
|
30
|
-
* </p>
|
|
31
|
-
* <ul>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>
|
|
34
|
-
* The Worker who submitted the results is paid the reward specified in the HIT.
|
|
35
|
-
* </p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>
|
|
39
|
-
* Amazon Mechanical Turk fees are debited.
|
|
40
|
-
* </p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
* <p>
|
|
44
|
-
* If the Requester's account does not have adequate funds for these payments,
|
|
45
|
-
* the call to ApproveAssignment returns an exception, and the approval is not processed.
|
|
46
|
-
* You can include an optional feedback message with the approval,
|
|
47
|
-
* which the Worker can see in the Status section of the web site.
|
|
48
|
-
* </p>
|
|
49
|
-
* <p>
|
|
50
|
-
* You can also call this operation for assignments that were previous rejected
|
|
51
|
-
* and approve them by explicitly overriding the previous rejection.
|
|
52
|
-
* This only works on rejected assignments that were submitted within the previous 30 days
|
|
53
|
-
* and only if the assignment's related HIT has not been deleted.
|
|
54
|
-
* </p>
|
|
55
|
-
* @example
|
|
56
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
57
|
-
* ```javascript
|
|
58
|
-
* import { MTurkClient, ApproveAssignmentCommand } from "@aws-sdk/client-mturk"; // ES Modules import
|
|
59
|
-
* // const { MTurkClient, ApproveAssignmentCommand } = require("@aws-sdk/client-mturk"); // CommonJS import
|
|
60
|
-
* const client = new MTurkClient(config);
|
|
61
|
-
* const command = new ApproveAssignmentCommand(input);
|
|
62
|
-
* const response = await client.send(command);
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* @see {@link ApproveAssignmentCommandInput} for command's `input` shape.
|
|
66
|
-
* @see {@link ApproveAssignmentCommandOutput} for command's `response` shape.
|
|
67
|
-
* @see {@link MTurkClientResolvedConfig | config} for command's `input` shape.
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
export class ApproveAssignmentCommand extends $Command<
|
|
71
|
-
ApproveAssignmentCommandInput,
|
|
72
|
-
ApproveAssignmentCommandOutput,
|
|
73
|
-
MTurkClientResolvedConfig
|
|
74
|
-
> {
|
|
75
|
-
// Start section: command_properties
|
|
76
|
-
// End section: command_properties
|
|
77
|
-
|
|
78
|
-
constructor(readonly input: ApproveAssignmentCommandInput) {
|
|
79
|
-
// Start section: command_constructor
|
|
80
|
-
super();
|
|
81
|
-
// End section: command_constructor
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
|
-
resolveMiddleware(
|
|
88
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
89
|
-
configuration: MTurkClientResolvedConfig,
|
|
90
|
-
options?: __HttpHandlerOptions
|
|
91
|
-
): Handler<ApproveAssignmentCommandInput, ApproveAssignmentCommandOutput> {
|
|
92
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
93
|
-
|
|
94
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
95
|
-
|
|
96
|
-
const { logger } = configuration;
|
|
97
|
-
const clientName = "MTurkClient";
|
|
98
|
-
const commandName = "ApproveAssignmentCommand";
|
|
99
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
100
|
-
logger,
|
|
101
|
-
clientName,
|
|
102
|
-
commandName,
|
|
103
|
-
inputFilterSensitiveLog: ApproveAssignmentRequest.filterSensitiveLog,
|
|
104
|
-
outputFilterSensitiveLog: ApproveAssignmentResponse.filterSensitiveLog,
|
|
105
|
-
};
|
|
106
|
-
const { requestHandler } = configuration;
|
|
107
|
-
return stack.resolve(
|
|
108
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
109
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
110
|
-
handlerExecutionContext
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
private serialize(input: ApproveAssignmentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
115
|
-
return serializeAws_json1_1ApproveAssignmentCommand(input, context);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ApproveAssignmentCommandOutput> {
|
|
119
|
-
return deserializeAws_json1_1ApproveAssignmentCommand(output, context);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Start section: command_body_extra
|
|
123
|
-
// End section: command_body_extra
|
|
124
|
-
}
|