@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
24 lines (23 loc) • 708 B
TypeScript
import { ShipperClient, STATUS_TYPES } from './shipper';
declare class LasershipClient extends ShipperClient {
private STATUS_MAP;
constructor(options: any);
validateResponse(response: any, cb: any): any;
presentAddress(address: any): string;
presentStatus(eventType: any): STATUS_TYPES;
getActivitiesAndStatus(shipment: any): {
activities: any[];
status: any;
};
getEta(shipment: any): Date;
getService(): void;
getWeight(shipment: any): string;
getDestination(shipment: any): string;
requestOptions({ trackingNumber }: {
trackingNumber: any;
}): {
method: string;
uri: string;
};
}
export { LasershipClient };