Skip to content

fix(focus): align focus endpoints with TickTick Open API v1#20

Merged
JeelyWu merged 1 commit into
masterfrom
fix/focus
May 15, 2026
Merged

fix(focus): align focus endpoints with TickTick Open API v1#20
JeelyWu merged 1 commit into
masterfrom
fix/focus

Conversation

@JeelyWu
Copy link
Copy Markdown
Owner

@JeelyWu JeelyWu commented May 15, 2026

Summary

  • Add required type query parameter to GetFocus and ListFocus (0=pomodoro, 1=timer)
  • Fix focus DTO field mapping to match official API schema:
    • type (was mode)
    • note (was title)
    • startTime / endTime (was startDate / endDate)
  • Fix time format to yyyy-MM-dd'T'HH:mm:ssZ (API rejects RFC3339 colon in timezone offset)
  • Remove unsupported focus start and focus stop commands — TickTick Open API v1 has no create/stop endpoints for focus
  • Update CLI: add --type flag to focus ls and focus get
  • Update all tests and READMEs

Test plan

  • go test ./... passes
  • make build succeeds

Related issues

Closes focus endpoint compatibility issues:

  • focus get missing required type parameter
  • focus ls missing required type parameter
  • focus start / focus stop calling non-existent POST endpoints

🤖 Generated with Claude Code

- Add required `type` query parameter to GetFocus and ListFocus
  (0=pomodoro, 1=timer)
- Fix focus DTO field mapping to match official API schema:
  `type` (was `mode`), `note` (was `title`), `startTime`/`endTime`
- Fix time format to `yyyy-MM-dd'T'HH:mm:ssZ` (API rejects RFC3339)
- Remove unsupported `focus start` and `focus stop` commands
  (TickTick Open API v1 has no create/stop endpoints for focus)
- Update CLI: add `--type` flag to `focus ls` and `focus get`
- Update all tests and READMEs

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@JeelyWu JeelyWu merged commit 5d6716c into master May 15, 2026
1 check passed
@JeelyWu JeelyWu deleted the fix/focus branch May 16, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant