Skip to main content

Goal

type Goal = {
[key: string]: unknown;
childOrder: number;
completedAt: Date | null;
createdAt: Date;
creatorUid: string;
deadline: string | null;
description: string | null;
id: string;
isCompleted: boolean;
isDeleted: boolean;
name: string;
ownerId: string;
ownerType: "USER" | "WORKSPACE";
parentGoalId: string | null;
progress?: {
[key: string]: unknown;
completedTaskCount: number;
percentage: number;
totalTaskCount: number;
};
responsibleUid: string | null;
updatedAt: Date;
};

Represents a goal in Todoist. Goals support dual ownership: personal (ownerType=USER) and workspace (ownerType=WORKSPACE).

Type Declaration

Index Signature

[key: string]: unknown
NameType
childOrdernumber
completedAtDate | null
createdAtDate
creatorUidstring
deadlinestring | null
descriptionstring | null
idstring
isCompletedboolean
isDeletedboolean
namestring
ownerIdstring
ownerType"USER" | "WORKSPACE"
parentGoalIdstring | null
progress?{ [key: string]: unknown; completedTaskCount: number; percentage: number; totalTaskCount: number; }
progress.completedTaskCountnumber
progress.percentagenumber
progress.totalTaskCountnumber
responsibleUidstring | null
updatedAtDate