chore: build

This commit is contained in:
2026-05-10 16:37:59 +02:00
parent 71ccbd553e
commit 2be5b6e2bf
2 changed files with 19 additions and 11 deletions
+19 -7
View File
@@ -53,7 +53,6 @@ export const logoutAdmin = async (): Promise<void> => {
}
};
// ── Types stats ──────────────────────────────────────────────────────────────
export interface StatsSummary {
total_orders: number;
total_revenue: number;
@@ -61,14 +60,27 @@ export interface StatsSummary {
top_product: string;
avg_per_day: number;
}
export interface WeekdayStat { weekday: string; count: number; }
export interface DayStat { day: string; label: string; count: number; }
export interface ProductStat { product_id: number; name: string; quantity: number; order_count: number; revenue: number; }
export interface WeekdayStat {
weekday: string;
count: number;
}
export interface DayStat {
day: string;
label: string;
count: number;
}
export interface ProductStat {
product_id: number;
name: string;
quantity: number;
order_count: number;
revenue: number;
}
export interface AdminStats {
summary: StatsSummary;
by_weekday: WeekdayStat[];
by_day_30: DayStat[];
summary: StatsSummary;
by_weekday: WeekdayStat[];
by_day_30: DayStat[];
top_products: ProductStat[];
}
-4
View File
@@ -111,10 +111,6 @@ export const logoutUser = async (): Promise<void> => {
}
};
// ============================================
// PRODUCTS
// ============================================
export interface Category {
id: number;
name: string;