/** * Core airline data interface */ export interface Airline { /** Unique internal identifier */ id: string; /** Official airline name */ name: string; /** IATA airline code (2-letter) */ iata_code: string | null; /** ICAO airline code (3-letter) */ icao_code: string | null; /** Radio callsign */ callsign: string | null; /** Country of registration */ country: string; /** ISO country code (2-letter) */ country_code: string; /** Year airline was founded */ founded: number | null; /** Airline alliance membership */ alliance: string | null; /** Primary hub airports (IATA codes) */ hubs: string[]; /** Secondary hub airports (IATA codes) */ secondary_hubs: string[]; /** Total number of aircraft in fleet */ fleet_size: number; /** Service quality score (0.0-1.0) */ fanciness_score: number; /** Price multiplier for flights */ base_price_multiplier: number; /** Aircraft types operated */ aircraft_types: string[]; /** Airline features and services */ features: string[]; /** Whether airline is currently operating */ active: boolean; } /** * Pre-processed airline data with indices for fast lookups */ export interface AirlineData { meta: { count: number; generated: string; description: string; }; airlines: Airline[]; indices?: { byId: Record; byIata: Record; byIcao: Record; byCountry: Record; byAlliance: Record; byActive: Record; }; } /** * Airline alliance types */ export type AirlineAlliance = | 'OneWorld' | 'Star Alliance' | 'SkyTeam' | null;