@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) • 807 B
TypeScript
import { Parser } from 'xml2js';
import { ShipperClient, STATUS_TYPES } from './shipper';
declare class A1Client extends ShipperClient {
private STATUS_MAP;
parser: Parser;
constructor(options: any);
validateResponse(response: any, cb: any): void;
presentAddress(address: any): string;
getStatus(shipment: any): STATUS_TYPES.UNKNOWN | STATUS_TYPES.UNKNOWN | STATUS_TYPES;
getActivitiesAndStatus(shipment: any): {
activities: any[];
status: STATUS_TYPES;
};
getEta(shipment: any): Date;
getService(shipment: any): any;
getWeight(shipment: any): any;
getDestination(shipment: any): string;
requestOptions({ trackingNumber }: {
trackingNumber: any;
}): {
method: string;
uri: string;
};
}
export { A1Client };