@boostengine/collections 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,84 +1,63 @@
1
1
  # @boostengine/collections
2
2
 
3
- > Production-ready **Postman Collections (v2.1.0)** and **Environment Templates** for Indian eCommerce APIs: **Razorpay Payment Gateway** and **EasyEcom WMS & ERP**.
3
+ > Production-ready **Postman Collections (Schema v2.1.0)** and **Environment Templates** for the world's leading eCommerce & Payment APIs: **Razorpay, Cashfree, PhonePe, Paytm, Stripe, EasyEcom WMS, Shiprocket, Delhivery, and Shopify**.
4
4
 
5
- Includes a zero-install **CLI tool** (`npx @boostengine/collections export`) to dump ready-to-import Postman JSON files into any project in 1 second.
5
+ Includes a zero-install **1-second CLI tool** (`npx @boostengine/collections export all`) to dump ready-to-import Postman JSON files into any project instantly.
6
6
 
7
7
  ---
8
8
 
9
- ## ⚡ Quickstart (CLI)
9
+ ## ⚡ 1-Click Quickstart (CLI)
10
10
 
11
- Export complete collections and environment variables into your current working directory without installing:
11
+ Export any or all collections and environment variables into your project:
12
12
 
13
13
  ```bash
14
- # Export all collections & environments
14
+ # Export all 9 collections & environments (18 files)
15
15
  npx @boostengine/collections export all
16
16
 
17
17
  # Or export individually:
18
18
  npx @boostengine/collections export razorpay
19
+ npx @boostengine/collections export cashfree
20
+ npx @boostengine/collections export phonepe
21
+ npx @boostengine/collections export paytm
22
+ npx @boostengine/collections export stripe
19
23
  npx @boostengine/collections export easyecom
24
+ npx @boostengine/collections export shiprocket
25
+ npx @boostengine/collections export delhivery
26
+ npx @boostengine/collections export shopify
20
27
 
21
- # Inspect available endpoints inside terminal:
28
+ # Inspect available endpoints inside your terminal:
22
29
  npx @boostengine/collections info razorpay
30
+ npx @boostengine/collections info cashfree
31
+ npx @boostengine/collections info shiprocket
23
32
  ```
24
33
 
25
34
  ### 📥 How to Import into Postman / Bruno / Insomnia:
26
- 1. Open **Postman** (or Insomnia / Bruno / ThunderClient).
27
- 2. Click **Import** (Top left).
35
+ 1. Open **Postman** (or Insomnia / Bruno / ThunderClient / Hoppscotch).
36
+ 2. Click **Import** (Top left corner).
28
37
  3. Drag & drop the exported `*.collection.json` and `*.env.json` files.
29
- 4. Select the imported Environment from top-right dropdown, paste your API keys, and start sending requests!
38
+ 4. Select the imported Environment from the top-right dropdown, enter your API keys, and start sending requests!
30
39
 
31
40
  ---
32
41
 
33
- ## 📦 What's Included
34
-
35
- ### 1. 💳 Razorpay eCommerce API Collection (`razorpay.collection.json`)
36
- Official REST APIs configured with Basic Authentication:
37
- * **Orders API**:
38
- - `POST /v1/orders` (Create order with amount, currency, notes, receipt)
39
- - `GET /v1/orders/:id` (Fetch order details)
40
- - `GET /v1/orders/:id/payments` (Fetch all payments attempted against order)
41
- - `GET /v1/orders` (List recent orders with pagination)
42
- * **Payments API**:
43
- - `GET /v1/payments/:id` (Fetch payment status, UPI VPA, card details)
44
- - `POST /v1/payments/:id/capture` (Manual payment capture)
45
- - `PATCH /v1/payments/:id` (Update custom payment notes)
46
- * **Refunds API**:
47
- - `POST /v1/payments/:id/refund` (Instant & normal customer refunds)
48
- - `GET /v1/refunds/:id` (Check refund status)
49
- - `GET /v1/refunds` (List recent refunds)
50
- * **Webhook Simulator**:
51
- - `order.paid` mock payload
52
- - `payment.failed` mock payload
53
- - `payment.captured` mock payload
54
- - `refund.processed` mock payload
55
- - HMAC SHA256 signature verification guidance
42
+ ## 📦 What's Included (9 Exhaustive Enterprise Collections)
56
43
 
57
- ---
58
-
59
- ### 2. 🏬 EasyEcom Warehouse & ERP Collection (`easyecom.collection.json`)
60
- Official REST APIs configured with Bearer Token Authentication:
61
- * **Orders API**:
62
- - `GET /orders/v2/getOrders` (Fetch pending & unfulfilled orders)
63
- - `POST /orders/v2/createOrder` (Push new storefront orders into ERP)
64
- - `POST /orders/v2/updateOrderStatus` (Update fulfillment status to Shipped/Delivered)
65
- - `POST /orders/v2/cancelOrder` (Cancel order and auto-restore warehouse inventory)
66
- * **Inventory & Multi-Warehouse Stock**:
67
- - `GET /inventory/v2/getInventoryDetails` (Check sellable stock by SKU)
68
- - `POST /inventory/v2/updateInventory` (Sync warehouse inventory count)
69
- - `GET /inventory/v2/getWarehouses` (List all active fulfillment centers)
70
- * **Master Catalog**:
71
- - `GET /catalog/v2/getMasterProducts` (Fetch product master records)
72
- - `POST /catalog/v2/createProduct` (Register master SKU with HSN code & dimensions)
73
- * **Shipping & Manifests**:
74
- - `POST /shipping/v2/generateAwb` (Generate shipping label & tracking number)
75
- - `POST /shipping/v2/createManifest` (Create courier handover manifest PDF)
44
+ | Provider | Category | Modules & Endpoints Included |
45
+ | :--- | :--- | :--- |
46
+ | **Razorpay** | 💳 Payments | Orders, Payments & Manual Capture, Payment Links, Dynamic UPI QR, Smart Collect (Virtual Accounts), Customers & Tokenized Card Vault, GST Invoices, Subscriptions & Plans, Refunds, Webhook Simulator (`order.paid`, `payment.failed`, `refund.processed`, `virtual_account.credited`) |
47
+ | **Cashfree** | 💳 Payments & Banking | Orders (Drop-in Session), Seamless Direct UPI Intent/Collect/Netbanking, Payment Links, Bank Account Verification (Penny Drop), UPI VPA Verification, PAN Verification, Instant Payouts & Disbursals, Subscriptions, Refunds, Webhooks (`PAYMENT_SUCCESS`, `PAYMENT_FAILED`, `REFUND_STATUS`) |
48
+ | **PhonePe** | 💳 Payments | Standard Hosted Pay Page, Custom Mobile App UPI Intent, UPI Collect (VPA handle), Dynamic QR Codes, S2S Status Check (`/pg/v1/status`), Refunds, S2S Webhook Simulator with automatic Base64 & SHA256 `X-VERIFY` pre-request calculation |
49
+ | **Paytm** | 💳 Payments | Initiate Transaction Token, Checkout SDK session, Transaction Status Verification (`/v3/order/status`), Refund Initiation & Status, S2S Webhook Callback simulator |
50
+ | **Stripe** | 💳 Global | Checkout Sessions, PaymentIntents (Cards/Wallets), Customers & Saved Payment Methods, Products & Subscriptions, Refunds & Disputes, Webhooks Simulator |
51
+ | **EasyEcom** | 🏬 WMS / ERP | Storefront Orders Push, Pending Orders, Status Updates, Multi-Warehouse Stock Sync, Single & Bulk SKU updates, Master Catalog SKUs & Barcodes, Dispatch Manifests, Inward Returns Reconciliation |
52
+ | **Shiprocket** | 🚚 Logistics | Auth JWT, Domestic & International Pincode Serviceability & Rates, Custom & Bulk Orders, Customer Address Update, Reverse Return Orders, AWB Generation, Courier Pickup Request, Manifests, Thermal Shipping Labels, Tax Invoices, Live Tracking, NDR Actions (Re-attempt / RTO), Webhooks |
53
+ | **Delhivery** | 🚚 Logistics | Pincode Serviceability Check, Rate & Freight Calculator, Bulk Waybill Pool, Surface/Express CMU Manifest, Address Update, Cancel Shipment, Warehouse Pickup Request, Packing Slips & PDF Barcode Labels, Live Package Tracking, Webhooks |
54
+ | **Shopify** | 🛍️ Storefront | Products & Multi-variant catalog, Orders & Status Filter, Fulfillments & Tracking Number attachment, Customers API, Multi-location Inventory Levels, Webhooks |
76
55
 
77
56
  ---
78
57
 
79
58
  ## 💻 Programmatic Node.js / TypeScript Usage
80
59
 
81
- You can also install this package as a dev dependency to programmatically parse or mock endpoints in your backend tests:
60
+ You can also install this package as a dependency to programmatically parse or mock endpoints in backend integration tests:
82
61
 
83
62
  ```bash
84
63
  npm install -D @boostengine/collections
@@ -86,26 +65,34 @@ npm install -D @boostengine/collections
86
65
 
87
66
  ```typescript
88
67
  import {
89
- razorpayCollection,
90
- easyecomCollection,
91
68
  listCollections,
92
69
  getCollection,
93
- exportToDirectory,
70
+ razorpayCollection,
71
+ cashfreeCollection,
72
+ phonepeCollection,
73
+ paytmCollection,
74
+ shiprocketCollection,
94
75
  } from '@boostengine/collections';
95
76
 
96
- // List available collection summaries
97
- const available = listCollections();
98
- console.log(available);
77
+ // 1. List metadata and available folders:
78
+ console.log(listCollections());
79
+
80
+ // 2. Access raw Postman JSON collections programmatically:
81
+ console.log('Razorpay requests:', razorpayCollection.item.length);
82
+ console.log('Cashfree schema:', cashfreeCollection.info.schema);
83
+ ```
84
+
85
+ ---
99
86
 
100
- // Access raw Postman Schema v2.1.0 JSON object
101
- console.log(razorpayCollection.info.name);
102
- console.log(easyecomCollection.item.length);
87
+ ## 🔄 Updating Upstream Collections
103
88
 
104
- // Programmatically dump files in CI/CD or setup scripts
105
- exportToDirectory('all', './postman');
89
+ Run the built-in sync audit tool to check upstream API versions:
90
+
91
+ ```bash
92
+ npm run sync:upstream
106
93
  ```
107
94
 
108
95
  ---
109
96
 
110
97
  ## 📄 License
111
- MIT © [Boost Engine](https://github.com/boostengine)
98
+ MIT © Boost Engine Team
package/bin/cli.cjs CHANGED
@@ -14,6 +14,34 @@ const collections = {
14
14
  docs: 'https://razorpay.com/docs/api',
15
15
  description: 'Orders, Payments, Refunds & Webhook Simulator',
16
16
  },
17
+ cashfree: {
18
+ name: 'Cashfree Payments API Collection',
19
+ collectionFile: path.join(collectionsDir, 'cashfree.collection.json'),
20
+ envFile: path.join(envsDir, 'cashfree.env.json'),
21
+ docs: 'https://docs.cashfree.com/reference',
22
+ description: 'Payment Gateway PG v2023-08-01 Orders, Payments, Refunds, Webhooks',
23
+ },
24
+ phonepe: {
25
+ name: 'PhonePe Payment Gateway Collection',
26
+ collectionFile: path.join(collectionsDir, 'phonepe.collection.json'),
27
+ envFile: path.join(envsDir, 'phonepe.env.json'),
28
+ docs: 'https://developer.phonepe.com/v1/reference',
29
+ description: 'Standard Pay, Order Status Check, Refunds & S2S Webhooks',
30
+ },
31
+ paytm: {
32
+ name: 'Paytm Payment Gateway Collection',
33
+ collectionFile: path.join(collectionsDir, 'paytm.collection.json'),
34
+ envFile: path.join(envsDir, 'paytm.env.json'),
35
+ docs: 'https://developer.paytm.com/docs/api',
36
+ description: 'Initiate Transaction, Status Check, Refunds & S2S Callback',
37
+ },
38
+ stripe: {
39
+ name: 'Stripe Global Payments Collection',
40
+ collectionFile: path.join(collectionsDir, 'stripe.collection.json'),
41
+ envFile: path.join(envsDir, 'stripe.env.json'),
42
+ docs: 'https://stripe.com/docs/api',
43
+ description: 'Checkout Sessions, PaymentIntents, Customers & Refunds',
44
+ },
17
45
  easyecom: {
18
46
  name: 'EasyEcom eCommerce & Warehouse API Collection',
19
47
  collectionFile: path.join(collectionsDir, 'easyecom.collection.json'),
@@ -21,6 +49,27 @@ const collections = {
21
49
  docs: 'https://api.easyecom.com/documentation',
22
50
  description: 'Orders, Multi-Warehouse Inventory, Catalog & Shipping Manifests',
23
51
  },
52
+ shiprocket: {
53
+ name: 'Shiprocket Logistics API Collection',
54
+ collectionFile: path.join(collectionsDir, 'shiprocket.collection.json'),
55
+ envFile: path.join(envsDir, 'shiprocket.env.json'),
56
+ docs: 'https://apidocs.shiprocket.in',
57
+ description: 'Auth, Pincode Serviceability, Order Creation, AWB & Live Tracking',
58
+ },
59
+ delhivery: {
60
+ name: 'Delhivery Express Shipping Collection',
61
+ collectionFile: path.join(collectionsDir, 'delhivery.collection.json'),
62
+ envFile: path.join(envsDir, 'delhivery.env.json'),
63
+ docs: 'https://delhivery.com/developer',
64
+ description: 'Pin-codes Serviceability, Waybill Creation & Live Package Tracking',
65
+ },
66
+ shopify: {
67
+ name: 'Shopify Admin REST API Collection',
68
+ collectionFile: path.join(collectionsDir, 'shopify.collection.json'),
69
+ envFile: path.join(envsDir, 'shopify.env.json'),
70
+ docs: 'https://shopify.dev/docs/api/admin-rest',
71
+ description: 'Storefront Products, Orders, Inventory Levels & Webhooks',
72
+ },
24
73
  };
25
74
 
26
75
  const args = process.argv.slice(2);