@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) • 796 B
TypeScript
import { ShipperClient, STATUS_TYPES } from './shipper';
declare class AmazonClient extends ShipperClient {
private STATUS_MAP;
constructor(options: any);
validateResponse(response: any, cb: any): any;
getService(): void;
getWeight(): void;
getDestination(data: any): string;
getEta(data: any): Date;
presentStatus(data: any): STATUS_TYPES;
getActivitiesAndStatus(data: any): {
activities: any[];
status: STATUS_TYPES;
};
requestOptions({ orderID, orderingShipmentId }: {
orderID: any;
orderingShipmentId: any;
}): {
method: string;
gzip: boolean;
headers: {
accept: string;
'accept-encoding': string;
};
uri: string;
};
}
export { AmazonClient };