Files
aura-courier-mcp/dist/adapters/pathao.d.ts
T
Amirul Islam Redwan71 0606928a09
CI / Build & Quality Check (push) Has been cancelled
fix(http): add malformed JSON syntax error handling middleware and update dist
2026-09-26 00:51:21 +06:00

38 lines
1.4 KiB
TypeScript

import { CourierAdapter } from "./base.js";
import { BalanceResponse, LocationResolutionResponse, ParcelCreateRequest, ParcelResponse, SupportedCourier, TrackingResponse } from "../types.js";
export declare class PathaoAdapter implements CourierAdapter {
courierName: SupportedCourier;
private clientId;
private clientSecret;
private username;
private password;
private storeId;
private baseUrl;
private accessToken;
private tokenExpiresAt;
private cityCache;
private zoneCache;
private areaCache;
constructor(clientId: string, clientSecret: string, username: string, password: string, storeId?: string, baseUrl?: string);
isConfigured(): boolean;
private getAuthToken;
private getClient;
/**
* Dynamically resolve merchant store_id from Pathao portal if missing or default
*/
private resolveStoreId;
/**
* DeepMind Intelligent Spatial Hierarchy Resolver for Pathao
* Eliminates 422 Unprocessable Entity by matching address tokens against live Pathao geo catalog
*/
resolveLocation(address: string, req?: ParcelCreateRequest): Promise<{
cityId: number;
zoneId: number;
areaId?: number;
}>;
createParcel(req: ParcelCreateRequest): Promise<ParcelResponse>;
trackParcel(trackingCode: string): Promise<TrackingResponse>;
getBalance(): Promise<BalanceResponse>;
getLocations(cityName?: string): Promise<LocationResolutionResponse>;
}