diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-07-12 11:06:32 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-07-12 11:06:32 +0000 |
| commit | f31b4722243b8b69564c94e47e07678153c31815 (patch) | |
| tree | 9b66a2132b7c40c3ca189aa151327aeec33cc18b /internal/models/widget.go | |
| parent | b1c76cdf30b7d491f3791588c8aa8c66ee5a0950 (diff) | |
feat(widget): capture and forward RecurringEventID for calendar events
Diffstat (limited to 'internal/models/widget.go')
| -rw-r--r-- | internal/models/widget.go | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/internal/models/widget.go b/internal/models/widget.go index 54a6eee..cbaf19c 100644 --- a/internal/models/widget.go +++ b/internal/models/widget.go @@ -6,17 +6,18 @@ import "time" // Source values: "doot", "trello", "plantoeat", "calendar", "gtasks" // Type values: "task", "event" type WidgetItem struct { - ID string `json:"id"` - Title string `json:"title"` - Source string `json:"source"` - Type string `json:"type"` - Start *time.Time `json:"start,omitempty"` // nil = no specific time (floating task) - End *time.Time `json:"end,omitempty"` - IsAllDay bool `json:"is_all_day"` - IsOverdue bool `json:"is_overdue"` - DueDate *time.Time `json:"due_date,omitempty"` // doot tasks only -- see TimelineItemToWidgetItem - URL string `json:"url,omitempty"` - Completable bool `json:"completable"` // true = doot task (checkbox shown) + ID string `json:"id"` + Title string `json:"title"` + Source string `json:"source"` + Type string `json:"type"` + Start *time.Time `json:"start,omitempty"` // nil = no specific time (floating task) + End *time.Time `json:"end,omitempty"` + IsAllDay bool `json:"is_all_day"` + IsOverdue bool `json:"is_overdue"` + DueDate *time.Time `json:"due_date,omitempty"` // doot tasks only -- see TimelineItemToWidgetItem + URL string `json:"url,omitempty"` + Completable bool `json:"completable"` // true = doot task (checkbox shown) + RecurringEventID string `json:"recurring_event_id,omitempty"` } // WidgetResponse is the full /api/widget response body. |
