summaryrefslogtreecommitdiff
path: root/internal/models/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models/types.go')
-rw-r--r--internal/models/types.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/models/types.go b/internal/models/types.go
index 31308fc..245f25f 100644
--- a/internal/models/types.go
+++ b/internal/models/types.go
@@ -60,6 +60,12 @@ type Card struct {
URL string `json:"url"`
}
+// Project represents a Todoist project
+type Project struct {
+ ID string `json:"id"`
+ Name string `json:"name"`
+}
+
// CacheMetadata tracks when data was last fetched
type CacheMetadata struct {
Key string `json:"key"`
@@ -79,6 +85,7 @@ type DashboardData struct {
Notes []Note `json:"notes"`
Meals []Meal `json:"meals"`
Boards []Board `json:"boards,omitempty"`
+ Projects []Project `json:"projects,omitempty"`
LastUpdated time.Time `json:"last_updated"`
Errors []string `json:"errors,omitempty"`
}