Add monthly statistics dashboard

This commit is contained in:
2026-08-05 14:25:08 +02:00
parent cfc4ef45a8
commit eafd718e64
5 changed files with 1091 additions and 0 deletions
+5
View File
@@ -7,6 +7,7 @@ import type {
PeriodOverview,
PeriodType,
RecurringBilling,
StatisticsOverview,
TicketMeta,
TicketPeriod,
UserRole,
@@ -299,6 +300,10 @@ export function getPeriodOverview(type: PeriodType, period: string) {
return request<PeriodOverview>(`/api/periods/${periodPath(type)}/${period}/overview`);
}
export function getStatisticsOverview(month: string) {
return request<StatisticsOverview>(`/api/statistics/months/${month}`);
}
export function getTicketPeriod(type: PeriodType, period: string, ticketId: string) {
return request<TicketPeriod>(`/api/periods/${periodPath(type)}/${period}/tickets/${ticketId}`);
}