import{st as e}from"./index-Cz-yne81.js";const t={list:async t=>(await e.get(`/api/dashboards/widget-types/`,{params:t})).data,get:async t=>(await e.get(`/api/dashboards/widget-types/${t}/`)).data,create:async t=>(await e.post(`/api/dashboards/widget-types/`,t)).data,update:async(t,n)=>(await e.patch(`/api/dashboards/widget-types/${t}/`,n)).data,delete:async t=>(await e.delete(`/api/dashboards/widget-types/${t}/`)).data},n={list:async t=>(await e.get(`/api/dashboards/dashboards/`,{params:t})).data,get:async t=>(await e.get(`/api/dashboards/dashboards/${t}/`)).data,getDefault:async()=>(await e.get(`/api/dashboards/dashboards/my-dashboards/`)).data,create:async t=>(await e.post(`/api/dashboards/dashboards/`,t)).data,duplicate:async t=>(await e.post(`/api/dashboards/dashboards/${t}/duplicate/`)).data,delete:async t=>(await e.delete(`/api/dashboards/dashboards/${t}/`)).data},r={list:async t=>(await e.get(`/api/dashboards/group-assignments/`,{params:t})).data,create:async t=>(await e.post(`/api/dashboards/group-assignments/`,t)).data,delete:async t=>(await e.delete("/api/dashboards/group-assignments/${id}/")).data,bulkAssign:async(t,n)=>(await e.post(`/api/dashboards/group-assignments/bulk_assign/`,{role_id:t,dashboard_ids:n})).data},i={list:async t=>(await e.get(`/api/dashboards/widgets/`,{params:{dashboard:t}})).data,get:async t=>(await e.get(`/api/dashboards/widgets/${t}/`)).data,create:async t=>(await e.post(`/api/dashboards/widgets/`,t)).data,update:async(t,n)=>(await e.patch(`/api/dashboards/widgets/${t}/`,n)).data,delete:async t=>(await e.delete(`/api/dashboards/widgets/${t}/`)).data,updateLayout:async(t,n)=>(await e.post(`/api/dashboards/widgets/bulk-update-layout/`,{dashboard_id:t,layouts:n})).data},a={fetch:async(t,n)=>({success:!0,data:(await e.get(`/api/dashboards/widgets/data/${t}/`,{params:n})).data})},o={list:async t=>(await e.get(`/todos/`,{params:t})).data,get:async t=>(await e.get(`/todos/${t}/`)).data,create:async t=>(await e.post(`/todos/`,t)).data,update:async(t,n)=>(await e.patch(`/todos/${t}/`,n)).data,delete:async t=>(await e.delete(`/todos/${t}/`)).data,complete:async t=>(await e.post(`/todos/${t}/complete/`)).data,incomplete:async t=>(await e.post(`/todos/${t}/incomplete/`)).data,bulkUpdate:async t=>(await e.post(`/todos/bulk-update/`,t)).data,reorder:async t=>(await e.post(`/todos/reorder/`,{items:t})).data,myTodos:async t=>(await e.get(`/todos/my-todos/`,{params:t})).data,today:async()=>(await e.get(`/todos/today/`)).data,overdue:async()=>(await e.get(`/todos/overdue/`)).data,upcoming:async()=>(await e.get(`/todos/upcoming/`)).data,stats:async()=>(await e.get(`/todos/stats/`)).data};export{a,o as i,i as n,t as o,n as r,r as t};