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

33 lines (32 loc) 1.02 kB
import { Builder, Parser } from 'xml2js'; import { ShipperClient, STATUS_TYPES } from './shipper'; export declare class FedexClient extends ShipperClient { private STATUS_MAP; get key(): string; get password(): string; get account(): string; get meter(): string; parser: Parser; builder: Builder; constructor(options: any); generateRequest(trk: any, reference: any): string; validateResponse(response: any, cb: any): void; presentAddress(address: any): string; getStatus(shipment: any): STATUS_TYPES.UNKNOWN | STATUS_TYPES; getActivitiesAndStatus(shipment: any): { activities: any[]; status: STATUS_TYPES; }; getEta(shipment: any): Date; getService(shipment: any): any; getWeight(shipment: any): string; getDestination(shipment: any): string; requestOptions({ trackingNumber, reference }: { trackingNumber: any; reference: any; }): { method: string; uri: string; body: string; }; }