/** Who set a vehicle's tank size: typed by hand (never replaced) or estimated from make and model. */
export type FuelTankSource = "manual" | "estimated";

export interface CompanyFuelTankVehicle {
  id: number;
  numberplate: string;
  mark: string | null;
  model: string | null;
  fuel_tank_capacity: number | null;
  fuel_tank_capacity_source: FuelTankSource | null;
  /** A telematics box: its gauge needs the tank size to give litres. */
  has_box: boolean;
  site: { id: number; name: string } | null;
}

export interface CompanyFuelTanks {
  summary: { vehicles: number; missing: number; manual: number; estimated: number };
  vehicles: CompanyFuelTankVehicle[];
}

/** missing: the vehicles without a size. all: every size not typed by hand. */
export type FuelTankEstimateScope = "missing" | "all";
