chore: build
Frontend Admin - EAS Build / build (push) Failing after 58m6s

This commit is contained in:
2026-06-23 20:45:58 +02:00
parent a9c53c3b62
commit bafed46be6
2 changed files with 146 additions and 1 deletions
+23
View File
@@ -104,6 +104,28 @@ export interface ProductQuantityBreakdown {
quantities: QuantityStat[];
}
export interface DailyProductItem {
product_id: number;
name: string;
quantity: number;
order_count: number;
revenue: number;
}
export interface DailyCategoryDetail {
category: string;
category_color: string;
total_quantity: number;
total_revenue: number;
products: DailyProductItem[];
}
export interface DailyDetail {
date: string;
total_orders: number;
total_quantity: number;
total_revenue: number;
categories: DailyCategoryDetail[];
}
export type StatSection = "commandes" | "revenus" | "produits" | "heures" | "jours" | "doses";
export interface AdminStats {
@@ -114,6 +136,7 @@ export interface AdminStats {
by_hour: HourStat[];
top_products: ProductStat[];
by_quantity: ProductQuantityBreakdown[];
daily_detail?: DailyDetail;
reset_at_commandes?: string;
reset_at_revenus?: string;
reset_at_produits?: string;