Skip to main content

GoalProgress

type GoalProgress = {
[key: string]: unknown;
completedTaskCount: number;
percentage: number;
totalTaskCount: number;
};

Progress of a Goal.

The REST API returns these counts under total_item_count / completed_item_count, reflecting the backend's generic "item" terminology. The SDK normalizes them to totalTaskCount / completedTaskCount so the public surface consistently speaks in "tasks" (matching the rest of the SDK). The preprocess step below performs that rename after the transport layer's snake_case → camelCase conversion — do not remove it without also changing the downstream field names.

Type Declaration

Index Signature

[key: string]: unknown
NameType
completedTaskCountnumber
percentagenumber
totalTaskCountnumber