fix(build): add pg and @types/pg dependencies, add master courier fallbacks and compile live tracking (v2.4.1)

This commit is contained in:
root
2026-10-04 09:04:31 +00:00
parent be3eb4fcd9
commit caa1a0c81e
19 changed files with 1261 additions and 186 deletions
+17 -1
View File
@@ -10,10 +10,26 @@ export declare class PathaoAdapter implements CourierAdapter {
private baseUrl;
private accessToken;
private tokenExpiresAt;
constructor(clientId: string, clientSecret: string, username: string, password: string, storeId: string, baseUrl: string);
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>;