feat(appointment): enhance booking window functionality with day/week/month options and update defaults

This commit is contained in:
hamed
2026-07-27 19:16:10 +03:30
parent 15abcb5c8a
commit 2963e2ac74
6 changed files with 131 additions and 18 deletions
+2 -2
View File
@@ -170,7 +170,7 @@ Which days of a month are bookable — used by the public calendar to grey out u
"disabled_dates": ["2026-06-01", "2026-06-17", "2026-06-26"],
"enabled_dates": ["2026-06-15", "2026-06-16", "2026-06-18"],
"online_booking_enabled": true,
"booking_window": { "value": 1, "unit": "month" }
"booking_window": { "value": 3, "unit": "month" }
}
}
```
@@ -180,7 +180,7 @@ Which days of a month are bookable — used by the public calendar to grey out u
| `disabled_dates` | string[] | `Y-m-d` days with no bookable slot (holiday / closed override / non-working / past / out-of-window) |
| `enabled_dates` | string[] | `Y-m-d` days with at least one slot |
| `online_booking_enabled` | boolean | Doctor's online-booking flag |
| `booking_window` | object | `{ value, unit }``unit` is `week` or `month` |
| `booking_window` | object | `{ value, unit }``unit` is `day`, `week` or `month` (default `3 month`) |
### Errors
| Code | HTTP | Description |