UNPKG

@heuristical/trackit

Version:

This module allows you to connect to many shipping carriers like UPS and FedEx and download tracking data for your packages in a common schema

26 lines (25 loc) 834 B
import { ShipperClient, STATUS_TYPES } from './shipper'; declare class OnTracClient extends ShipperClient { private STATUS_MAP; constructor(options: any); validateResponse(response: any, cb: any): any; extractSummaryField(shipment: any, name: any): any; getEta(shipment: any): Date; getService(shipment: any): string; getWeight(shipment: any): any; presentAddress(location: any): any; presentStatus(status: any): STATUS_TYPES.UNKNOWN | STATUS_TYPES; presentTimestamp(ts: any): Date; getActivitiesAndStatus(shipment: any): { activities: any[]; status: STATUS_TYPES; }; getDestination(shipment: any): string; requestOptions({ trackingNumber }: { trackingNumber: any; }): { method: string; uri: string; }; } export { OnTracClient };