import { useResourceByName } from "../../../react-openapi"; export interface ReportParams { periods?: ("weekly" | "monthly" | "yearly" | "fyly" | "full")[]; rolling?: boolean; report_date?: string; group_by?: ("payee" | "tags")[]; ignore_self?: boolean; include_transactions?: boolean; } export function useReport(params: ReportParams) { const { useList } = useResourceByName("reports"); return useList({ ...params, periods: params.periods, group_by: params.group_by, }); }