This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user