diff --git a/src/lib/api/materialisation.ts b/src/lib/api/materialisation.ts index 39d7a02..36f6888 100644 --- a/src/lib/api/materialisation.ts +++ b/src/lib/api/materialisation.ts @@ -88,7 +88,7 @@ export async function triggerMaterialisation( } try { - const response = await fetch(`${API_BASE_URL}/admin/clubs/${clubId}/materialisation-trigger`, { + const response = await fetch(`${API_BASE_URL}/admin/clubs/${clubId}/slot-materialize`, { method: 'POST', credentials: 'include', headers: { diff --git a/src/types/bookings.ts b/src/types/bookings.ts index 4ea71c0..02f5429 100644 --- a/src/types/bookings.ts +++ b/src/types/bookings.ts @@ -66,11 +66,10 @@ export interface BookingDetail { updated_at: string; // ISO 8601 provider?: ProviderInfo; etag?: string; // from ETag response header - // Optional policy fields (if backend adds them) - policies?: { - cancel_grace_minutes?: number; - cancel_grace_anchor?: 'start' | 'end'; - move_window_days?: number; + policies: { + cancel_grace_minutes: number; // default: 15 + cancel_grace_anchor: 'start' | 'end'; // current: 'start' + move_window_days: number; // default: 14, 0 = no limit }; }