UNPKG

@hybeck/aramex-api-js

Version:

Packages to manage all delivery apis in one palace with typescript

15 lines (14 loc) 1.08 kB
import { Address, AramexClientConfig, Consignee, RateResponse, Shipment, ShipmentDetails, ShipmentResponse, TrackingResponse } from "./types"; export declare function initializeAramexClient(config: AramexClientConfig): void; export declare function getAramexShippingCost(origin: Address, destination: Address, shipmentDetails: ShipmentDetails): Promise<RateResponse>; export declare function requestAramexDelivery(shipment: Shipment, consignee: Consignee, details: ShipmentDetails): Promise<ShipmentResponse>; export declare function requestAramexReturn(shipment: Shipment, consignee: Consignee, details: ShipmentDetails): Promise<ShipmentResponse>; export declare function getAramexShipmentStatus(shipmentNumbers: string[]): Promise<TrackingResponse>; export declare const aramexTestCredentials: AramexClientConfig; export declare function createAramexAddress(address: Partial<Address>): Address; export declare function calculateAramexChargeableWeight(dimensions: { Length: number; Width: number; Height: number; Unit: string; }, actualWeight: number): number;