import { i as t } from "./index-CwSaRXXg.js";
const c = {
  getDashboardStats: async () => await t.get(
    "/api/administration/applications/application-analytics/dashboard"
  ),
  getApplicationAnalytics: async (a) => await t.get(
    `/api/administration/applications/application-analytics/${a}/analytics`
  ),
  getApplicationActivity: async (a, i = 1, n = 20) => await t.get(
    `/api/administration/applications/application-analytics/${a}/recent-activity`,
    {
      params: { page: i, pageSize: n }
    }
  ),
  getDeviceStats: async (a = 30, i) => await t.get(
    "/api/administration/applications/application-analytics/device-stats",
    {
      params: { period: a },
      signal: i?.signal
    }
  ),
  getEngagementMetrics: async (a = 30, i) => await t.get(
    "/api/administration/applications/application-analytics/engagement",
    {
      params: { period: a },
      signal: i?.signal
    }
  ),
  getTopModules: async (a = 10, i = 30) => await t.get(
    "/api/administration/applications/application-analytics/modules/top",
    {
      params: { limit: a, period: i }
    }
  ),
  getHierarchyData: async (a = 0, i, n = 30) => {
    const p = { level: a, period: n };
    return i && (p.applicationId = i), await t.get(
      "/api/administration/applications/application-analytics/hierarchy",
      { params: p }
    );
  },
  getTrendsByApplication: async (a = 30) => await t.get(
    "/api/administration/applications/application-analytics/trends-by-application",
    { params: { period: a } }
  )
};
export {
  c as a
};
//# sourceMappingURL=applicationAnalyticsApi-B8AhFYLr.js.map
