import { api as client } from "../auth/http"; import { unwrap } from "@/utils/endpoint"; import { URL_CONSTANTS } from "@/constants/URLS"; import type { ReportQueryInput, ReportResult } from "@/types/reports"; export const reportsService = { run: async ({ key, ...params }: ReportQueryInput): Promise => { const response = await client.get( URL_CONSTANTS.REPORTS.RUN(key), { params }, ); return unwrap(response.data); }, };