diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-20 10:40:29 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-20 10:40:29 -1000 |
| commit | 6a59098c3096f5ebd3a61ef5268cbd480b0f1519 (patch) | |
| tree | 2192861ed6db801c030be9b67f05796c85bad20c /internal/api/interfaces.go | |
| parent | 59227d33d6e7c01fbb1ebf96ea616c5f296df7b1 (diff) | |
Implement efficient sync for Todoist and Trello APIs
- Add Todoist Sync API v9 support with incremental sync tokens
- Store sync tokens in SQLite for persistence across restarts
- Add field filtering to Trello API calls to reduce payload size
- Update handlers to use incremental sync (merge changes vs full replace)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/interfaces.go')
| -rw-r--r-- | internal/api/interfaces.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/interfaces.go b/internal/api/interfaces.go index db7e6c0..2419707 100644 --- a/internal/api/interfaces.go +++ b/internal/api/interfaces.go @@ -13,6 +13,7 @@ type TodoistAPI interface { GetProjects(ctx context.Context) ([]models.Project, error) CreateTask(ctx context.Context, content, projectID string, dueDate *time.Time, priority int) (*models.Task, error) CompleteTask(ctx context.Context, taskID string) error + Sync(ctx context.Context, syncToken string) (*TodoistSyncResponse, error) } // TrelloAPI defines the interface for Trello operations |
