export interface CatalogueItem {
  ref: string;
  label: string;
  price: number;
  tva_tx: number;
}

export interface LignePropale {
  ordre: number;
  localisation: string;
  designation: string;
  type_badge: 'forfait_reparation' | 'fourniture_pose' | 'visite_technique';
  detail: string;
  quantite: number;
  unite: string;
  prix_ht: number;
  product_ref: string | null;
  offert: boolean;
  flag_incomplet: boolean;
  match_score?: number | null;
}

export interface GenerateResponse {
  prestation_forfaitaire: boolean;
  forfait_description: string | null;
  forfait_prix_ht: number | null;
  lignes: LignePropale[];
}

export interface LicenceRecord {
  id: string;
  key_hash: string;
  email: string;
  plan: string;
  quota_month: number;
  usage_month: number;
  reset_at: string;
  active: boolean;
  allowed_ip: string | null;
  domain_lock: string | null;
  flagged: boolean;
}
