18 lines
575 B
TypeScript
18 lines
575 B
TypeScript
|
|
import axios from '@/api'
|
||
|
|
|
||
|
|
export const getSystemHealth = () => axios.get('/stats/system')
|
||
|
|
|
||
|
|
export const getConversationStats = (days = 30) =>
|
||
|
|
axios.get('/stats/conversations', { params: { days } })
|
||
|
|
|
||
|
|
export const getKnowledgeStats = (days = 30) =>
|
||
|
|
axios.get('/stats/knowledge', { params: { days } })
|
||
|
|
|
||
|
|
export const getKanbanStats = (days = 30) =>
|
||
|
|
axios.get('/stats/kanban', { params: { days } })
|
||
|
|
|
||
|
|
export const getCommunityStats = (days = 30) =>
|
||
|
|
axios.get('/stats/community', { params: { days } })
|
||
|
|
|
||
|
|
export const getPersonalInsights = () => axios.get('/stats/insights')
|