feat: Implement resource booking functionality

- Add service timeline builder for appointments to manage available slots.
- Create a hook to fetch resource booking services with effective durations.
- Develop ResourceBookingSlotController to handle API requests for resource booking slots.
- Implement ResourceBookingSlotService to calculate available time slots based on resource occupancy and service durations.
- Add tests for resource appointment creation and booking slot functionality to ensure correct behavior and edge cases.
This commit is contained in:
hamed
2026-08-03 14:34:23 +03:30
parent 981261ed3a
commit 4f69bc9044
21 changed files with 2045 additions and 514 deletions
+2
View File
@@ -1243,6 +1243,8 @@ export interface ResourceServiceOffering {
effective_price_rials: number;
duration_source: string | null;
price_source: string;
/** بخشِ سرویس — مودالِ رزرو منبع سرویس‌ها را زیر بخششان گروه می‌کند. */
service_section?: { uuid: string; name: string };
}
/** گزینهٔ انتخاب سرویس در مودال منبع. */