Skip to content

fix!: align EntriesTextsMode with getEntriesTextsV3 API#353

Merged
jhnns merged 1 commit into
mainfrom
fix/351-entries-texts-mode
May 24, 2026
Merged

fix!: align EntriesTextsMode with getEntriesTextsV3 API#353
jhnns merged 1 commit into
mainfrom
fix/351-entries-texts-mode

Conversation

@jhnns
Copy link
Copy Markdown
Member

@jhnns jhnns commented May 24, 2026

Summary

  • Updates EntriesTextsMode to match the v3 API (add, edit, reports) instead of legacy search modes (exact_match, starts_with, etc.)
  • Makes mode a required parameter on getEntriesTexts() and getEntriesTextsPage()
  • Updates README examples and unit tests

Fixes #351

Test plan

  • npm test passes locally
  • Verify getEntriesTexts({ term, mode: EntriesTextsMode.Add }) against a Clockodo account

Breaking change

Callers must pass mode and migrate from removed enum members (ExactMatch, StartsWith, EndsWith, Contains) to Add, Edit, or Reports.

Replace legacy search mode values with add, edit, and reports, and
require mode on getEntriesTexts and getEntriesTextsPage.

Fixes #351
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 24, 2026

Open in StackBlitz

npm i https://pkg.pr.new/clockodo@353

commit: 3802683

@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 26346953949

Coverage decreased (-0.02%) to 77.463%

Details

  • Coverage decreased (-0.02%) from the base build.
  • Patch coverage: 4 of 4 lines across 2 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1063
Covered Lines: 867
Line Coverage: 81.56%
Relevant Branches: 348
Covered Branches: 226
Branch Coverage: 64.94%
Branches in Coverage %: Yes
Coverage Strength: 14.72 hits per line

💛 - Coveralls

@jhnns jhnns marked this pull request as ready for review May 24, 2026 00:04
@jhnns jhnns merged commit a594446 into main May 24, 2026
2 checks passed
@jhnns jhnns deleted the fix/351-entries-texts-mode branch May 24, 2026 00:05
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.

getEntriesTexts - Wrong Parameters

2 participants