From 2be5b6e2bf149dfe79344d8746825a64ed3b644c Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 10 May 2026 16:37:59 +0200 Subject: [PATCH] chore: build --- frontend-admin/src/api/api_admin.ts | 26 +++++++++++++++++++------- mobile/src/api/api.ts | 4 ---- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/frontend-admin/src/api/api_admin.ts b/frontend-admin/src/api/api_admin.ts index c9546b73..ebe26110 100644 --- a/frontend-admin/src/api/api_admin.ts +++ b/frontend-admin/src/api/api_admin.ts @@ -53,7 +53,6 @@ export const logoutAdmin = async (): Promise => { } }; -// ── 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[]; } diff --git a/mobile/src/api/api.ts b/mobile/src/api/api.ts index dc713f26..b3b1675b 100644 --- a/mobile/src/api/api.ts +++ b/mobile/src/api/api.ts @@ -111,10 +111,6 @@ export const logoutUser = async (): Promise => { } }; -// ============================================ -// PRODUCTS -// ============================================ - export interface Category { id: number; name: string;