import { api, PaginatedResult } from "@/lib/api"; export interface CustomerApi { id: string; email: string; full_name: string | null; phone: string | null; is_blocked: boolean; created_at: string; orders_count: number; bookings_count: number; total_spent: number; } export async function adminListCustomers(search?: string): Promise> { const qs = search ? `?search=${encodeURIComponent(search)}&per_page=100` : "?per_page=100"; return api.get>(`/admin/customers${qs}`); } export async function adminBlockCustomer(id: string, is_blocked: boolean): Promise { return api.patch(`/admin/customers/${id}`, { is_blocked }); }