export type Metric = {
  label: string;
  value: string;
  delta: string;
};

export type LotSnapshot = {
  id: string;
  lotCode: string;
  supplier: string;
  item: string;
  availableQty: string;
  lotStatus: "ACTIVE" | "HOLD" | "AGING";
  attentionStatus: "LOW_STOCK" | "AGING" | "HOLD";
  reason: string;
};

export type DashboardActivity = {
  id: string;
  summary: string;
  occurredAt: string;
};

export type DashboardAgeBucket = {
  label: string;
  percentage: number;
  count: number;
  tone: "moss" | "teal" | "danger";
};

export type DashboardPartner = {
  name: string;
  detail: string;
  inventoryValue: string;
};

export type DashboardVolumePoint = {
  label: string;
  purchaseQty: number;
  salesQty: number;
};

export type DashboardData = {
  metrics: Metric[];
  averageReceiptAcceptance: string;
  averageReceiptAcceptanceCopy: string;
  lotAgeDistribution: DashboardAgeBucket[];
  recentActivity: DashboardActivity[];
  criticalLots: LotSnapshot[];
  topPartners: DashboardPartner[];
  monthlyVolume: DashboardVolumePoint[];
};
