fix(http): add malformed JSON syntax error handling middleware and update dist
CI / Build & Quality Check (push) Has been cancelled

This commit is contained in:
Amirul Islam Redwan71
2026-09-26 00:51:21 +06:00
parent 42cdaefd82
commit 0606928a09
18 changed files with 1032 additions and 288 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>;