from enum import IntEnum class AssignmentStatus(IntEnum): # boto3.mturk specific Submitted = 0 # same thing as Reviewable Approved = 1 Rejected = 2 # GRL specific Accepted = 3 PreviewState = 4 # Invalid = 5 # NotExist = 6 class HitStatus(IntEnum): """ https://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_HITDataStructureArticle.html """ # Official boto3.mturk Assignable = 0 Unassignable = 1 Reviewable = 2 Reviewing = 3 Disposed = 4 # GRL Specific NotExist = 5 class HitReviewStatus(IntEnum): NotReviewed = 0 MarkedForReview = 1 ReviewedAppropriate = 2 ReviewedInappropriate = 3 class ReportValue(IntEnum): """ The reason a user reported a task. """ # Used to indicate the user exited the task without giving feedback REASON_UNKNOWN = 0 # Task is in the wrong language/country, unanswerable question, won't proceed to # next question, loading forever, error message TECHNICAL_ERROR = 1 # Task ended (completed or failed, and showed the user some dialog # indicating the task was over), but failed to redirect NO_REDIRECT = 2 # Asked for full name, home address, identity on another site, cc# PRIVACY_INVASION = 3 # Asked about children, employer, medical issues, drug use, STDs, etc. UNCOMFORTABLE_TOPICS = 4 # Asked to install software, signup/login to external site, access webcam, # promise to pay using external site, etc. ASKED_FOR_NOT_ALLOWED_ACTION = 5 # Task doesn't work well on a mobile device BAD_ON_MOBILE = 6 # Too long, too boring, confusing, complicated, too many # open-ended/free-response questions DIDNT_LIKE = 7