import { IUrlTimeRange } from '@typings/common/url';
import { IParsedFlightId } from '@typings/flight/flight-id';

export type IScheduleDateParams = IUrlTimeRange & {
    dateFrom: Date;
    dateTo: Date;
};

export type IScheduleRouteDirectionParams = IScheduleDateParams & {
    departure: string;
    arrival: string;
    connections?: number;
};

export type IScheduleRouteParams = {
    outbound: IScheduleRouteDirectionParams;
    inbound?: IScheduleRouteDirectionParams;
};

export type IScheduleDetailsParams = {
    departure: string;
    arrival: string;
    flights: IParsedFlightId[];
}
