Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Assignment

import type { Assignment } from "https://aws-api.deno.dev/v0.4/services/mturk.ts?docs=full";

The Assignment data structure represents a single assignment of a HIT to a Worker. The assignment tracks the Worker's efforts to complete the HIT, and contains the results for later retrieval.

interface Assignment {
AcceptTime?: Date | number | null;
Answer?: string | null;
ApprovalTime?: Date | number | null;
AssignmentId?: string | null;
AssignmentStatus?: AssignmentStatus | null;
AutoApprovalTime?: Date | number | null;
Deadline?: Date | number | null;
HITId?: string | null;
RejectionTime?: Date | number | null;
RequesterFeedback?: string | null;
SubmitTime?: Date | number | null;
WorkerId?: string | null;
}

§Properties

§
AcceptTime?: Date | number | null
[src]

The date and time the Worker accepted the assignment.

§
Answer?: string | null
[src]

The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.

§
ApprovalTime?: Date | number | null
[src]

If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.

§
AssignmentId?: string | null
[src]

A unique identifier for the assignment.

§
AssignmentStatus?: AssignmentStatus | null
[src]

The status of the assignment.

§
AutoApprovalTime?: Date | number | null
[src]

If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.

§
Deadline?: Date | number | null
[src]

The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.

§
HITId?: string | null
[src]

The ID of the HIT.

§
RejectionTime?: Date | number | null
[src]

If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.

§
RequesterFeedback?: string | null
[src]

The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.

§
SubmitTime?: Date | number | null
[src]

If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.

§
WorkerId?: string | null
[src]

The ID of the Worker who accepted the HIT.