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