import { apiEndpoints } from "@/lib/api/endpoints"; import { fetchWithAuth } from "@/lib/auth/client"; import type { PlatformReport, ReportsResponse, ReportStatus } from "@/types/api"; export async function listPlatformReports( params: Record = {}, ) { return fetchWithAuth(apiEndpoints.reports.superAdmin(params)); } export async function updatePlatformReportStatus( reportId: string, status: ReportStatus, resolutionNote?: string, ) { return fetchWithAuth(apiEndpoints.reports.updateStatus(reportId), { method: "PATCH", body: JSON.stringify({ status, resolutionNote }), }); }