Skip to content

Fix/scheduler availability endpoint#720

Merged
radenkovic merged 5 commits intomainfrom
fix/scheduler-availability-endpoint
Mar 23, 2026
Merged

Fix/scheduler availability endpoint#720
radenkovic merged 5 commits intomainfrom
fix/scheduler-availability-endpoint

Conversation

@radenkovic
Copy link
Copy Markdown
Contributor

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

yun-jay and others added 2 commits March 23, 2026 14:59
…oint

- Rename AvailabilityTimeSlot, AvailabilityResponse, and GetAvailabilityQueryParams
  with a Scheduler prefix to avoid naming collisions with the existing calendar
  availability types in src/models/availability.ts
- Fix startTime/endTime in GetSchedulerAvailabilityQueryParams from string to number
  (unix timestamps) to match the AvailabilityTimeSlot fields and SDK conventions
- Rename the public method from list() to get() since the endpoint returns a single
  AvailabilityResponse object, not a paginated list — internal delegation to _find()
  is unchanged
- Update GetAvailabilityParams interface name to GetSchedulerAvailabilityParams
- Expand test coverage from 1 to 5 cases: configurationId, slug, clientId, bookingId,
  and slug with special characters

Made-with: Cursor
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.62%. Comparing base (45a1414) to head (daaac3f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
+ Coverage   98.61%   98.62%   +0.01%     
==========================================
  Files          35       36       +1     
  Lines         793      800       +7     
  Branches       69       69              
==========================================
+ Hits          782      789       +7     
  Misses         11       11              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@radenkovic radenkovic merged commit 8ecd912 into main Mar 23, 2026
10 checks passed
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.

3 participants