diff options
Diffstat (limited to 'internal/models')
| -rw-r--r-- | internal/models/types.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/models/types.go b/internal/models/types.go index 6f8c405..f74d264 100644 --- a/internal/models/types.go +++ b/internal/models/types.go @@ -20,6 +20,15 @@ type Task struct { URL string `json:"url"` CreatedAt time.Time `json:"created_at"` IsRecurring bool `json:"is_recurring"` + + // Recurrence (doot-native tasks only). RecurrenceSeriesID != "" is the + // real "is this task recurring" indicator -- IsRecurring above predates + // this feature and is never set by it. + RecurrenceFreq string `json:"recurrence_freq,omitempty"` + RecurrenceInterval int `json:"recurrence_interval,omitempty"` + RecurrenceWeekdays []int `json:"recurrence_weekdays,omitempty"` + RecurrenceSeriesID string `json:"recurrence_series_id,omitempty"` + NextOccurrenceOverride *time.Time `json:"next_occurrence_override,omitempty"` } // Meal represents a meal from PlanToEat |
