export type CountryBasic = {
  id: number;
  name: string;
  native: string;
  emoji: string;
};

export type CityBasic = {
  id: number;
  name: string;
  country_id: number;
  latitude: number;
  longitude: number;
};

export type CityTemperature = {
  id: number;
  name: string;
  min: number;
  max: number;
  date: string;
}

export type HotColdCity = {
  city_id: number;
  city_name: string;
  country_id: number;
  country_name: string;
  max_temp: number;
  date: string;
  hottest_rank: number;
  coldest_rank: number;
}

export type ComboOption = {
  id: number;
  name: string;
  emoji?: string;
  country_id?: number;
}

export type MeteoResponseType = {
  latitude: number;
  longitude: number;
  generationtime_ms: number;
  utc_offset_seconds: number;
  timezone: string;
  timezone_abbreviation: string;
  elevation: number;
  daily_units: {
    time: string;
    temperature_2m_max: string;
    temperature_2m_min: string;
  },
  daily: {
    time: string[];
    temperature_2m_max: number[];
    temperature_2m_min: number[];
  },
}

export type MeteoData = {
  id: number;
  max: number;
  min: number;
  date: string;
}

export enum UnitsEnum {
  METRIC = 'METRIC',
  IMPERIAL = 'IMPERIAL'
}
