export interface UatStats {
  siruta: string;
  uat_name: string;
  county: string;
  da_count: number;
  da_total_value: number;
  notice_count: number;
  notice_total_value: number;
  total_contracts: number;
  total_value: number;
}

export interface NationalStats {
  total_authorities: number;
  total_suppliers: number;
  total_da: number;
  total_contracts: number;
  total_initiere: number;
  total_all: number;
  total_value: number;
  uats_with_data: number;
  unmatched_cuis: number;
}

export interface CountyStats {
  county: string;
  uat_count: number;
  total_contracts: number;
  total_value: number;
}

export interface FeedItem {
  id: number;
  type: string;
  name: string;
  value: number;
  date: string;
  authority_name: string;
  authority_county: string | null;
  supplier_name: string | null;
  cpv_code: string;
  cpv_name: string;
  seap_url: string | null;
}

export type YearFilter = 'all' | number;

export type ChoroplethMetric = 'value' | 'direct' | 'hhi' | 'topshare' | 'q4spike';

export interface MapFilters {
  year: YearFilter;
  metric: ChoroplethMetric;
}

export interface UatMetric {
  siruta: string;
  metric_value: number;
  total_contracts: number;
  total_value: number;
  distinct_suppliers: number;
}
