import {instance} from "./axios";
import {InstituteReports} from "../models/InstituteReports";
import {RiviewCharts} from "../models/Riview/RiviewCharts";


export async function getRiviewStats(statisticsOptions:any) {

    return instance.get<RiviewCharts>("api/riview/v1/institution/statistics",
        {
            params: statisticsOptions,
            withCache: true});
}


export async function getInstituteReports(role: string) {
        return instance.get<{ 'reports': InstituteReports }>("api/riview/v1/institution/report?evaluation=1");
}


