export type ProductShareStat = {
  name?: string | null;
  total_price?: number | null;
  count?: number | null;
};

export type ProductSummaryItem = {
  product_id?: number | null;
  product_name?: string | null;
  product_type?: string | null;
  total_sales?: number | null;
  total_weight?: number | null;
  success_sales?: number | null;
  failed_sales?: number | null;
  waiting_sales?: number | null;
  card_payments?: number | null;
  cash_payments?: number | null;
  check_payments?: number | null;
  credit_payments?: number | null;
  extra_items?: number | null;
  pre_sale_items?: number | null;
  item_share_stats?: ProductShareStat[];
};

export interface TransactionSummary {
  success_transactions?: number | null;
  failed_transactions?: number | null;
  waiting_transactions?: number | null;
  total_transactions?: number | null;
  total_amount?: number | null;
  total_weight?: number | null;
}

export type BrokerSharingSummary = {
  name?: string | null;
  total_price?: number | null;
  count?: number | null;
};

export type DashboardResponse = {
  transaction_summary?: TransactionSummary;
  product_summary?: ProductSummaryItem[];
  brokers_sharing_summary?: BrokerSharingSummary[];
};
