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

CourseWork

import type { CourseWork } from "https://googleapis.deno.dev/v1/classroom:v1.ts";

Course work created by a teacher for students of the course.

interface CourseWork {
alternateLink?: string;
assigneeMode?: "ASSIGNEE_MODE_UNSPECIFIED" | "ALL_STUDENTS" | "INDIVIDUAL_STUDENTS";
assignment?: Assignment;
associatedWithDeveloper?: boolean;
courseId?: string;
creationTime?: Date;
creatorUserId?: string;
description?: string;
dueDate?: Date;
dueTime?: TimeOfDay;
gradeCategory?: GradeCategory;
id?: string;
individualStudentsOptions?: IndividualStudentsOptions;
materials?: Material[];
maxPoints?: number;
multipleChoiceQuestion?: MultipleChoiceQuestion;
scheduledTime?: Date;
state?:
| "COURSE_WORK_STATE_UNSPECIFIED"
| "PUBLISHED"
| "DRAFT"
| "DELETED";
submissionModificationMode?: "SUBMISSION_MODIFICATION_MODE_UNSPECIFIED" | "MODIFIABLE_UNTIL_TURNED_IN" | "MODIFIABLE";
title?: string;
topicId?: string;
updateTime?: Date;
workType?:
| "COURSE_WORK_TYPE_UNSPECIFIED"
| "ASSIGNMENT"
| "SHORT_ANSWER_QUESTION"
| "MULTIPLE_CHOICE_QUESTION";
}

§Properties

§
assigneeMode?: "ASSIGNEE_MODE_UNSPECIFIED" | "ALL_STUDENTS" | "INDIVIDUAL_STUDENTS"
[src]

Assignee mode of the coursework. If unspecified, the default value is ALL_STUDENTS.

§
assignment?: Assignment
[src]

Assignment details. This is populated only when work_type is ASSIGNMENT. Read-only.

§
associatedWithDeveloper?: boolean
[src]

Whether this course work item is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only.

§
courseId?: string
[src]

Identifier of the course. Read-only.

§
creationTime?: Date
[src]

Timestamp when this course work was created. Read-only.

§
creatorUserId?: string
[src]

Identifier for the user that created the coursework. Read-only.

§
description?: string
[src]

Optional description of this course work. If set, the description must be a valid UTF-8 string containing no more than 30,000 characters.

§
dueDate?: Date
[src]

Optional date, in UTC, that submissions for this course work are due. This must be specified if due_time is specified.

§
dueTime?: TimeOfDay
[src]

Optional time of day, in UTC, that submissions for this course work are due. This must be specified if due_date is specified.

§
gradeCategory?: GradeCategory
[src]

The category that this coursework's grade contributes to. Present only when a category has been chosen for the coursework. May be used in calculating the overall grade. Read-only.

§
id?: string
[src]

Classroom-assigned identifier of this course work, unique per course. Read-only.

§
individualStudentsOptions?: IndividualStudentsOptions
[src]

Identifiers of students with access to the coursework. This field is set only if assigneeMode is INDIVIDUAL_STUDENTS. If the assigneeMode is INDIVIDUAL_STUDENTS, then only students specified in this field are assigned the coursework.

§
materials?: Material[]
[src]

Additional materials. CourseWork must have no more than 20 material items.

§
maxPoints?: number
[src]

Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be a non-negative integer value.

§
multipleChoiceQuestion?: MultipleChoiceQuestion
[src]

Multiple choice question details. For read operations, this field is populated only when work_type is MULTIPLE_CHOICE_QUESTION. For write operations, this field must be specified when creating course work with a work_type of MULTIPLE_CHOICE_QUESTION, and it must not be set otherwise.

§
scheduledTime?: Date
[src]

Optional timestamp when this course work is scheduled to be published.

§
state?: "COURSE_WORK_STATE_UNSPECIFIED" | "PUBLISHED" | "DRAFT" | "DELETED"
[src]

Status of this course work. If unspecified, the default state is DRAFT.

§
submissionModificationMode?: "SUBMISSION_MODIFICATION_MODE_UNSPECIFIED" | "MODIFIABLE_UNTIL_TURNED_IN" | "MODIFIABLE"
[src]

Setting to determine when students are allowed to modify submissions. If unspecified, the default value is MODIFIABLE_UNTIL_TURNED_IN.

§
title?: string
[src]

Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters.

§
topicId?: string
[src]

Identifier for the topic that this coursework is associated with. Must match an existing topic in the course.

§
updateTime?: Date
[src]

Timestamp of the most recent change to this course work. Read-only.

§
workType?: "COURSE_WORK_TYPE_UNSPECIFIED" | "ASSIGNMENT" | "SHORT_ANSWER_QUESTION" | "MULTIPLE_CHOICE_QUESTION"
[src]

Type of this course work. The type is set when the course work is created and cannot be changed.