- Implement GET /availability endpoint with mandatory 15-minute buffer collision detection - Extract availability engine to app/services/availability.py with tzdata ZoneInfo support - Implement Group Workshop Rosters API (GET /rosters, POST /rosters/quick-checkin) - Support quick check-in for existing bookings and walk-in registrations with optional cash acknowledgment - Record administrative audit log entries for roster check-ins and walk-ins - Add comprehensive unit and integration tests Refs: #6
23 lines
391 B
Python
23 lines
391 B
Python
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class SlotRead(BaseModel):
|
|
start: str
|
|
end: str
|
|
|
|
|
|
class DayAvailabilityRead(BaseModel):
|
|
date: str
|
|
slots: list[SlotRead]
|
|
|
|
|
|
class AvailabilityResponse(BaseModel):
|
|
service_id: str
|
|
service_name: str
|
|
duration_minutes: int
|
|
buffer_minutes: int
|
|
timezone: str
|
|
days: list[DayAvailabilityRead]
|