import { FlightStatus } from '@typings/enums';
import { IFlightLegEquipment } from '@typings/equipment';
import {
    IFlightLegArrivalStation,
    IFlightLegDepartureStation,
} from './flight-station';
import { IFlightTransitions } from './flight-transition';
import { IOperatingBy } from '@typings/operating-by';

export type IFlightLegFlags = {
    checkinAvailable: boolean;
    returnToAirport: boolean;
    routeChanged: boolean;
};

export type IFlightLeg = {
    arrival: IFlightLegArrivalStation;
    dayChange: number;
    departure: IFlightLegDepartureStation;
    equipment: IFlightLegEquipment;
    flags: IFlightLegFlags;
    flyingTime: string;
    index: number;
    operatingBy: IOperatingBy;
    status: FlightStatus;
    updated: string;
    transition?: IFlightTransitions;
};
