@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,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListAssignmentsForHITCommand,
|
|
5
|
-
ListAssignmentsForHITCommandInput,
|
|
6
|
-
ListAssignmentsForHITCommandOutput,
|
|
7
|
-
} from "../commands/ListAssignmentsForHITCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListAssignmentsForHITCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListAssignmentsForHITCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListAssignmentsForHITCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListAssignmentsForHITCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListAssignmentsForHITCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listAssignmentsForHIT(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListAssignmentsForHIT(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListAssignmentsForHITCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListAssignmentsForHITCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListAssignmentsForHITCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListBonusPaymentsCommand,
|
|
5
|
-
ListBonusPaymentsCommandInput,
|
|
6
|
-
ListBonusPaymentsCommandOutput,
|
|
7
|
-
} from "../commands/ListBonusPaymentsCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListBonusPaymentsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListBonusPaymentsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListBonusPaymentsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListBonusPaymentsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListBonusPaymentsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listBonusPayments(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListBonusPayments(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListBonusPaymentsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListBonusPaymentsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListBonusPaymentsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListHITsForQualificationTypeCommand,
|
|
5
|
-
ListHITsForQualificationTypeCommandInput,
|
|
6
|
-
ListHITsForQualificationTypeCommandOutput,
|
|
7
|
-
} from "../commands/ListHITsForQualificationTypeCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListHITsForQualificationTypeCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListHITsForQualificationTypeCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListHITsForQualificationTypeCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListHITsForQualificationTypeCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListHITsForQualificationTypeCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listHITsForQualificationType(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListHITsForQualificationType(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListHITsForQualificationTypeCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListHITsForQualificationTypeCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListHITsForQualificationTypeCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListHITsCommand, ListHITsCommandInput, ListHITsCommandOutput } from "../commands/ListHITsCommand";
|
|
4
|
-
import { MTurk } from "../MTurk";
|
|
5
|
-
import { MTurkClient } from "../MTurkClient";
|
|
6
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: MTurkClient,
|
|
13
|
-
input: ListHITsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListHITsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListHITsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: MTurk,
|
|
24
|
-
input: ListHITsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListHITsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listHITs(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListHITs(
|
|
31
|
-
config: MTurkPaginationConfiguration,
|
|
32
|
-
input: ListHITsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListHITsCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
36
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListHITsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.NextToken = token;
|
|
41
|
-
input["MaxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof MTurk) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof MTurkClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.NextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListQualificationRequestsCommand,
|
|
5
|
-
ListQualificationRequestsCommandInput,
|
|
6
|
-
ListQualificationRequestsCommandOutput,
|
|
7
|
-
} from "../commands/ListQualificationRequestsCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListQualificationRequestsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListQualificationRequestsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListQualificationRequestsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListQualificationRequestsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListQualificationRequestsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listQualificationRequests(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListQualificationRequests(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListQualificationRequestsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListQualificationRequestsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListQualificationRequestsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListQualificationTypesCommand,
|
|
5
|
-
ListQualificationTypesCommandInput,
|
|
6
|
-
ListQualificationTypesCommandOutput,
|
|
7
|
-
} from "../commands/ListQualificationTypesCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListQualificationTypesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListQualificationTypesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListQualificationTypesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListQualificationTypesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListQualificationTypesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listQualificationTypes(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListQualificationTypes(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListQualificationTypesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListQualificationTypesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListQualificationTypesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListReviewPolicyResultsForHITCommand,
|
|
5
|
-
ListReviewPolicyResultsForHITCommandInput,
|
|
6
|
-
ListReviewPolicyResultsForHITCommandOutput,
|
|
7
|
-
} from "../commands/ListReviewPolicyResultsForHITCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListReviewPolicyResultsForHITCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListReviewPolicyResultsForHITCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListReviewPolicyResultsForHITCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListReviewPolicyResultsForHITCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListReviewPolicyResultsForHITCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listReviewPolicyResultsForHIT(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListReviewPolicyResultsForHIT(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListReviewPolicyResultsForHITCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListReviewPolicyResultsForHITCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListReviewPolicyResultsForHITCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListReviewableHITsCommand,
|
|
5
|
-
ListReviewableHITsCommandInput,
|
|
6
|
-
ListReviewableHITsCommandOutput,
|
|
7
|
-
} from "../commands/ListReviewableHITsCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListReviewableHITsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListReviewableHITsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListReviewableHITsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListReviewableHITsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListReviewableHITsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listReviewableHITs(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListReviewableHITs(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListReviewableHITsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListReviewableHITsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListReviewableHITsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListWorkerBlocksCommand,
|
|
5
|
-
ListWorkerBlocksCommandInput,
|
|
6
|
-
ListWorkerBlocksCommandOutput,
|
|
7
|
-
} from "../commands/ListWorkerBlocksCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListWorkerBlocksCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListWorkerBlocksCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListWorkerBlocksCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListWorkerBlocksCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListWorkerBlocksCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listWorkerBlocks(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListWorkerBlocks(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListWorkerBlocksCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListWorkerBlocksCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListWorkerBlocksCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListWorkersWithQualificationTypeCommand,
|
|
5
|
-
ListWorkersWithQualificationTypeCommandInput,
|
|
6
|
-
ListWorkersWithQualificationTypeCommandOutput,
|
|
7
|
-
} from "../commands/ListWorkersWithQualificationTypeCommand";
|
|
8
|
-
import { MTurk } from "../MTurk";
|
|
9
|
-
import { MTurkClient } from "../MTurkClient";
|
|
10
|
-
import { MTurkPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MTurkClient,
|
|
17
|
-
input: ListWorkersWithQualificationTypeCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListWorkersWithQualificationTypeCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListWorkersWithQualificationTypeCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MTurk,
|
|
28
|
-
input: ListWorkersWithQualificationTypeCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListWorkersWithQualificationTypeCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listWorkersWithQualificationType(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListWorkersWithQualificationType(
|
|
35
|
-
config: MTurkPaginationConfiguration,
|
|
36
|
-
input: ListWorkersWithQualificationTypeCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListWorkersWithQualificationTypeCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListWorkersWithQualificationTypeCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MTurk) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MTurkClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MTurk | MTurkClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|