import type { AdminOrderListItem } from "./orders.js";

export type DashboardSummary = {
  totals: {
    orders: number;
    pendingOrders: number;
    completedOrders: number;
    customers: number;
    products: number;
    activeProducts: number;
    lowStockProducts: number;
    revenue: number;
  };
  orderStatusBreakdown: Array<{ status: string; count: number }>;
  paymentStatusBreakdown: Array<{ status: string; count: number }>;
  recentOrders: AdminOrderListItem[];
  lowStockProducts: Array<{
    id: number;
    sku: string;
    name: string;
    slug: string;
    stockQuantity: number;
    status: string;
  }>;
  topProducts: Array<{
    productId: number | null;
    productName: string;
    sku: string;
    quantitySold: number;
    revenue: number;
  }>;
};
