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

Task

import type { Task } from "https://googleapis.deno.dev/v1/tasks:v1.ts";
interface Task {
readonly assignmentInfo?: AssignmentInfo;
completed?: string;
deleted?: boolean;
due?: string;
etag?: string;
hidden?: boolean;
id?: string;
readonly kind?: string;
readonly links?: {
description?: string;
link?: string;
type?: string;
}
[]
;
notes?: string;
readonly parent?: string;
readonly position?: string;
readonly selfLink?: string;
status?: string;
title?: string;
readonly updated?: string;
readonly webViewLink?: string;
}

§Properties

§
readonly assignmentInfo?: AssignmentInfo
[src]

Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.

§
completed?: string
[src]

Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.

§
deleted?: boolean
[src]

Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.

§
due?: string
[src]

Scheduled date for the task (as an RFC 3339 timestamp). Optional. This represents the day that the task should be done, or that the task is visible on the calendar grid. It doesn't represent the deadline of the task. Only date information is recorded; the time portion of the timestamp is discarded when setting this field. It isn't possible to read or write the time that a task is scheduled for using the API.

§
etag?: string
[src]

ETag of the resource.

§
hidden?: boolean
[src]

Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.

§
id?: string
[src]

Task identifier.

§
readonly kind?: string
[src]

Output only. Type of the resource. This is always "tasks#task".

§
notes?: string
[src]

Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.

§
readonly parent?: string
[src]

Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the "move" method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.

§
readonly position?: string
[src]

Output only. String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). Use the "move" method to move the task to another position.

§
status?: string
[src]

Status of the task. This is either "needsAction" or "completed".

§
title?: string
[src]

Title of the task. Maximum length allowed: 1024 characters.

§
readonly updated?: string
[src]

Output only. Last modification time of the task (as a RFC 3339 timestamp).