Files
machartaa_admin_dist/dist/assets/dashboard-15bfc6b3.js
T

2 lines
1.2 KiB
JavaScript
Raw Normal View History

2026-10-20 16:52:05 +03:30
import{I as a}from"./index-1ba0f9ec.js";const n=async()=>await a.get("/admin/report"),d=async(t=10,e="all")=>(await a.get("/admin/dashboard/summary",{params:{storyLimit:t,section:e}})).data,i=async()=>(await a.get("/admin/dashboard/subscriptions-overview")).data,c=async(t={})=>(await a.get("/admin/dashboard/subscriptions-overview/chart",{params:{days:t.days??30,startDate:t.startDate,endDate:t.endDate}})).data,o=async()=>(await a.get("/admin/dashboard/subscribers-overview")).data,y=async(t={})=>(await a.get("/admin/dashboard/subscribers-overview/expiry-chart",{params:{days:t.days??30,startDate:t.startDate,endDate:t.endDate}})).data,b=async t=>(await a.get("/admin/dashboard/chart/stories",{params:{type:t.type,item_id:t.item_id,date:t.date,startDate:t.startDate,endDate:t.endDate,statType:t.statType}})).data,u=async t=>(await a.get("/admin/dashboard/chart/users",{params:{type:t.type,date:t.date,startDate:t.startDate,endDate:t.endDate,statType:t.statType}})).data,h=async t=>(await a.get("/admin/dashboard/chart/music",{params:{type:t.type,date:t.date,startDate:t.startDate,endDate:t.endDate}})).data;export{n as a,u as b,b as c,h as d,i as e,c as f,d as g,o as h,y as i};