/** * Auto-generated file. Do not change. */ import { AdditionalDates } from './AdditionalDates'; import { AirShipmentLeg } from './AirShipmentLeg'; import { OceanShipmentLeg } from './OceanShipmentLeg'; import { RailShipmentLeg } from './RailShipmentLeg'; import { ShipmentNode } from './ShipmentNode'; import { TransportationMode } from './TransportationMode'; import { TruckingShipmentLeg } from './TruckingShipmentLeg'; import { Type } from './Type'; import { ApiObjectRef } from '../types/ApiObjectRef'; import { Option } from 'fp-ts/lib/Option'; import { ResolvableObject } from '../types/Link'; import { TypedApiObject } from '../types/TypedApiObject'; export declare type ShipmentLeg = { /** * Type of the object */ readonly _object: Type.ShipmentLeg; /** * JSON-schema: integer * @example 948211 */ readonly id: number; readonly shipment: ApiObjectRef; /** * JSON-schema: string (date-time) * @example "1970-01-01T10:05:08+01:00" */ readonly estimated_arrival_date?: string; /** * JSON-schema: string (date-time) * @example "1970-01-01T10:05:08+01:00" */ readonly actual_arrival_date?: string; /** * JSON-schema: string (date-time) * @example "1970-01-01T10:05:08+01:00" */ readonly estimated_departure_date?: string; /** * JSON-schema: string (date-time) * @example "1970-01-01T10:05:08+01:00" */ readonly actual_departure_date?: string; readonly additional_dates?: AdditionalDates; readonly origin: ShipmentNode; readonly destination: ShipmentNode; readonly transportation_mode: TransportationMode; /** * JSON-schema: string * @example "Liberty Carrier" */ readonly carrier_name?: string; readonly air_leg?: AirShipmentLeg; readonly ocean_leg?: OceanShipmentLeg; readonly trucking_leg?: TruckingShipmentLeg; readonly rail_leg?: RailShipmentLeg; /** * [DEPRECATED] See additional_dates * @deprecated Do not use! This field is deprecated. * * JSON-schema: string (date) * @example "1970-01-01" */ readonly cargo_ready_date?: string; }; export declare type LiftedShipmentLeg = TypedApiObject & Omit & { readonly estimated_arrival_date?: Date; readonly actual_arrival_date?: Date; readonly estimated_departure_date?: Date; readonly actual_departure_date?: Date; readonly shipment: Option; }; /** * Lifts an object return from a Flexport API responses into the SDK domain by augmenting them with higher level properties. */ export declare const liftShipmentLeg: (original: ShipmentLeg) => LiftedShipmentLeg;