This commit is contained in:
2026-05-15 21:44:46 +02:00
parent cefc7e9f32
commit afbe310dd7
4 changed files with 179 additions and 8 deletions
+13
View File
@@ -69,6 +69,17 @@ export interface DayStat {
label: string;
count: number;
}
export interface DayRevenueStat {
day: string;
label: string;
revenue: number;
}
export interface HourStat {
hour: number;
label: string;
count: number;
revenue: number;
}
export interface ProductStat {
product_id: number;
name: string;
@@ -81,6 +92,8 @@ export interface AdminStats {
summary: StatsSummary;
by_weekday: WeekdayStat[];
by_day_30: DayStat[];
by_day_revenue: DayRevenueStat[];
by_hour: HourStat[];
top_products: ProductStat[];
}