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

29 lines (28 loc) 938 B
export declare enum STATUS_TYPES { UNKNOWN = 0, SHIPPING = 1, EN_ROUTE = 2, OUT_FOR_DELIVERY = 3, DELIVERED = 4, DELAYED = 5 } export declare abstract class ShipperClient { abstract validateResponse(response: any, cb: any): any; abstract getActivitiesAndStatus(shipment: any): any; abstract getEta(shipment: any): Date; abstract getService(shipment: any): any; abstract getWeight(shipment: any): any; abstract getDestination(shipment: any): any; abstract requestOptions(options: any): any; options: any; private presentPostalCode; presentLocationString(location: any): string; presentLocation({ city, stateCode, countryCode, postalCode }: { city: any; stateCode: any; countryCode: any; postalCode: any; }): string; presentResponse(response: any, requestData: any, cb: any): any; requestData(requestData: any, cb: any): any; }