From 8c26b6c668d41706d24f0fc976865d460719834c Mon Sep 17 00:00:00 2001 From: Amirul Islam Redwan Date: Mon, 21 Sep 2026 01:28:48 +0000 Subject: [PATCH] docs: complete masking of store IDs and project references across all docs and configs --- MASTER_OPERATIONS_MANUAL.md | 8 ++++---- README.md | 8 ++++---- src/adapters/pathao.ts | 6 +++--- src/config.ts | 4 ++-- tsconfig.json | 11 ++++++++--- 5 files changed, 21 insertions(+), 16 deletions(-) diff --git a/MASTER_OPERATIONS_MANUAL.md b/MASTER_OPERATIONS_MANUAL.md index 53967de..dbf8d17 100644 --- a/MASTER_OPERATIONS_MANUAL.md +++ b/MASTER_OPERATIONS_MANUAL.md @@ -50,10 +50,10 @@ Aura Courier MCP seamlessly interfaces with all tier-1 Bangladesh courier APIs u | Provider | Endpoint / Base URL | Merchant Account / IDs | Auth Header / Secret | Operational Status | | :--- | :--- | :--- | :--- | :--- | | **Steadfast** | `https://portal.packzy.com/api/v1` | Account: `` (ID: ``) | `Api-Key`: ``
`Secret-Key`: `` | **Active**: `get_balance` verified 200 OK. Order booking pending carrier-side toggle. | -| **Pathao** | `https://api-hermes.pathao.com` | User: ``
Store: `` (ID: `356230`) | `Client-ID`: ``
`Client-Secret`: `` | **100% Active**: OAuth2 token issuing, price calculation, auto-geocoding live. | -| **RedX** | `https://openapi.redx.com.bd/v1.0.0-beta` | Shop ID: `1051948`
Pickup Store ID: `544445` | `API-ACCESS-TOKEN`: ``
(JWT Bearer Token) | **100% Active**: 2,849 delivery areas and parcel booking verified. | +| **Pathao** | `https://api-hermes.pathao.com` | User: ``
Store: `` (ID: ``) | `Client-ID`: ``
`Client-Secret`: `` | **100% Active**: OAuth2 token issuing, price calculation, auto-geocoding live. | +| **RedX** | `https://openapi.redx.com.bd/v1.0.0-beta` | Shop ID: ``
Pickup Store ID: `` | `API-ACCESS-TOKEN`: ``
(JWT Bearer Token) | **100% Active**: 2,849 delivery areas and parcel booking verified. | | **Paperfly** | `https://api.paperfly.com.bd` | Store: ``
User: `` | `paperflykey`: ``
Basic Auth: `` / `` | **100% Active**: Order placement (`new_order_v2.php`) and tracking verified. | -| **Google Maps** | `https://maps.googleapis.com` | Project: `gen-lang-client-0867410794` | ``
(Field Masked) | **100% Active**: Geocoding, Routes API, and Dynamic Map Studio active. | +| **Google Maps** | `https://maps.googleapis.com` | Project: `` | ``
(Field Masked) | **100% Active**: Geocoding, Routes API, and Dynamic Map Studio active. | --- @@ -73,7 +73,7 @@ Aura Courier MCP seamlessly interfaces with all tier-1 Bangladesh courier APIs u }' ``` * **Store Management**: `GET /aladdin/api/v1/stores` - - Active Store: `356230` ("", Bosila 40 Feet, Dhaka) + - Active Store: `` ("", Central Hub, Dhaka) * **Parcel Booking**: `POST /aladdin/api/v1/orders` - Required Fields: `store_id`, `recipient_name`, `recipient_phone` (11 digits), `recipient_address` (10-220 chars), `delivery_type` (48), `item_type` (2), `item_weight` (0.5 to 10 kg), `amount_to_collect` (integer). - Spatial Hierarchy: `recipient_city`, `recipient_zone`, `recipient_area` are auto-resolved from our intelligent catalog matcher; if unresolvable, they are safely omitted so Pathao's server-side geocoder infers them directly. diff --git a/README.md b/README.md index 53967de..dbf8d17 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,10 @@ Aura Courier MCP seamlessly interfaces with all tier-1 Bangladesh courier APIs u | Provider | Endpoint / Base URL | Merchant Account / IDs | Auth Header / Secret | Operational Status | | :--- | :--- | :--- | :--- | :--- | | **Steadfast** | `https://portal.packzy.com/api/v1` | Account: `` (ID: ``) | `Api-Key`: ``
`Secret-Key`: `` | **Active**: `get_balance` verified 200 OK. Order booking pending carrier-side toggle. | -| **Pathao** | `https://api-hermes.pathao.com` | User: ``
Store: `` (ID: `356230`) | `Client-ID`: ``
`Client-Secret`: `` | **100% Active**: OAuth2 token issuing, price calculation, auto-geocoding live. | -| **RedX** | `https://openapi.redx.com.bd/v1.0.0-beta` | Shop ID: `1051948`
Pickup Store ID: `544445` | `API-ACCESS-TOKEN`: ``
(JWT Bearer Token) | **100% Active**: 2,849 delivery areas and parcel booking verified. | +| **Pathao** | `https://api-hermes.pathao.com` | User: ``
Store: `` (ID: ``) | `Client-ID`: ``
`Client-Secret`: `` | **100% Active**: OAuth2 token issuing, price calculation, auto-geocoding live. | +| **RedX** | `https://openapi.redx.com.bd/v1.0.0-beta` | Shop ID: ``
Pickup Store ID: `` | `API-ACCESS-TOKEN`: ``
(JWT Bearer Token) | **100% Active**: 2,849 delivery areas and parcel booking verified. | | **Paperfly** | `https://api.paperfly.com.bd` | Store: ``
User: `` | `paperflykey`: ``
Basic Auth: `` / `` | **100% Active**: Order placement (`new_order_v2.php`) and tracking verified. | -| **Google Maps** | `https://maps.googleapis.com` | Project: `gen-lang-client-0867410794` | ``
(Field Masked) | **100% Active**: Geocoding, Routes API, and Dynamic Map Studio active. | +| **Google Maps** | `https://maps.googleapis.com` | Project: `` | ``
(Field Masked) | **100% Active**: Geocoding, Routes API, and Dynamic Map Studio active. | --- @@ -73,7 +73,7 @@ Aura Courier MCP seamlessly interfaces with all tier-1 Bangladesh courier APIs u }' ``` * **Store Management**: `GET /aladdin/api/v1/stores` - - Active Store: `356230` ("", Bosila 40 Feet, Dhaka) + - Active Store: `` ("", Central Hub, Dhaka) * **Parcel Booking**: `POST /aladdin/api/v1/orders` - Required Fields: `store_id`, `recipient_name`, `recipient_phone` (11 digits), `recipient_address` (10-220 chars), `delivery_type` (48), `item_type` (2), `item_weight` (0.5 to 10 kg), `amount_to_collect` (integer). - Spatial Hierarchy: `recipient_city`, `recipient_zone`, `recipient_area` are auto-resolved from our intelligent catalog matcher; if unresolvable, they are safely omitted so Pathao's server-side geocoder infers them directly. diff --git a/src/adapters/pathao.ts b/src/adapters/pathao.ts index 876199e..d88ca59 100644 --- a/src/adapters/pathao.ts +++ b/src/adapters/pathao.ts @@ -30,14 +30,14 @@ export class PathaoAdapter implements CourierAdapter { clientSecret: string, username: string, password: string, - storeId: string = "356230", + storeId: string = "", baseUrl: string = "https://api-hermes.pathao.com" ) { this.clientId = clientId; this.clientSecret = clientSecret; this.username = username; this.password = password; - this.storeId = storeId || "356230"; + this.storeId = storeId || process.env.PATHAO_STORE_ID || ""; this.baseUrl = baseUrl || "https://api-hermes.pathao.com"; } @@ -95,7 +95,7 @@ export class PathaoAdapter implements CourierAdapter { } catch (err: any) { console.warn("Pathao store resolution notice:", err.message); } - return 356230; // Aura Merchant registered store id + return Number(this.storeId) || 0; // Aura Merchant registered store id } /** diff --git a/src/config.ts b/src/config.ts index 2084270..b2ef34a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -66,14 +66,14 @@ export function loadConfig(src: EnvSource = process.env): CourierConfig { clientSecret: pathaoClientSecret, username: src.PATHAO_USERNAME || "", password: src.PATHAO_PASSWORD || "", - storeId: src.PATHAO_STORE_ID || "356230", + storeId: src.PATHAO_STORE_ID || "", baseUrl: src.PATHAO_BASE_URL || "https://api-hermes.pathao.com", enabled: Boolean(pathaoClientId && pathaoClientSecret), }, redx: { apiToken: src.REDX_API_TOKEN || "", baseUrl: src.REDX_BASE_URL || "https://openapi.redx.com.bd/v1.0.0-beta", - pickupStoreId: src.REDX_PICKUP_STORE_ID || "544445", + pickupStoreId: src.REDX_PICKUP_STORE_ID || "", enabled: Boolean(src.REDX_API_TOKEN), }, paperfly: { diff --git a/tsconfig.json b/tsconfig.json index 86dcde8..978422f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,10 @@ "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", - "lib": ["ES2022"], + "lib": [ + "ES2022", + "DOM" + ], "outDir": "./dist", "rootDir": "./src", "strict": true, @@ -12,5 +15,7 @@ "forceConsistentCasingInFileNames": true, "declaration": true }, - "include": ["src/**/*"] -} + "include": [ + "src/**/*" + ] +} \ No newline at end of file