export interface SalesSummaryFilters {
  from: string;
  to: string;
  status?: string[];
  product_sku?: string;
  product_name?: string;
  min_quantity?: number;
  max_quantity?: number;
  min_weight?: number;
  max_weight?: number;
  min_sales?: number;
  max_sales?: number;
  limit?: number;
  offset?: number;
}

export interface SalesSummaryPeriod {
  from: string;
  to: string;
}

export interface SalesSummaryFiltersApplied {
  status: string[];
}

export interface ProductBreakdown {
  product_id: number;
  product_sku: string;
  product_name: string;
  total_weight: number;
  total_final_weight: number;
  total_quantity: number;
  total_sales_amount: number;
  average_price: number;
  average_weight: number;
  variant_count: number;
  image_url?: string;
  thumbnail_url?: string;
}

export interface ProductsPagination {
  total: number;
  limit: number;
  offset: number;
  has_more: boolean;
}

export interface SalesSummaryResponse {
  total_sales_amount: number;
  total_gold_weight: number;
  total_final_weight: number;
  total_orders: number;
  average_order_value: number;
  average_price: number;
  average_weight: number;
  total_discount: number;
  products_breakdown: ProductBreakdown[];
  products_pagination: ProductsPagination;
  period: SalesSummaryPeriod;
  filters: SalesSummaryFiltersApplied;
}
