@boostengine/collections 1.1.0 → 1.1.2
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 +61 -68
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -1,98 +1,91 @@
|
|
|
1
|
-
# @boostengine/collections
|
|
1
|
+
# @boostengine/collections 📮
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@boostengine/collections)
|
|
4
|
+
[](https://www.npmjs.com/package/@boostengine/collections)
|
|
5
|
+
[](https://github.com/boostengine/boostengine/blob/main/LICENSE)
|
|
6
|
+
[](https://www.postman.com/)
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
> **Pre-built, production-ready Postman Collections (Schema v2.1.0) and Environments for Indian and global eCommerce APIs: Razorpay, Cashfree, PhonePe, Paytm, Stripe, EasyEcom WMS, Shiprocket, Delhivery, and Shopify.**
|
|
9
|
+
|
|
10
|
+
Test endpoints, simulate webhook payloads, and verify signatures in Postman with zero manual JSON schema authoring.
|
|
6
11
|
|
|
7
12
|
---
|
|
8
13
|
|
|
9
|
-
##
|
|
14
|
+
## 📸 Postman Workspace Hierarchy Preview
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
Postman Collections (@boostengine/collections)
|
|
18
|
+
├── 💳 Payment Gateways
|
|
19
|
+
│ ├── [POST] Cashfree - Create Order Token (UPI / Intent)
|
|
20
|
+
│ ├── [POST] Razorpay - Create Standard Order
|
|
21
|
+
│ ├── [POST] PhonePe - Check Payment Status
|
|
22
|
+
│ ├── [POST] Stripe - Create PaymentIntent
|
|
23
|
+
│ └── [POST] Webhooks - Simulate PAYMENT_SUCCESS
|
|
24
|
+
├── 🚚 Logistics & Courier APIs
|
|
25
|
+
│ ├── [GET] Shiprocket - Pincode Serviceability & Rate Check
|
|
26
|
+
│ ├── [POST] Delhivery - Generate AWB & Schedule Pickup
|
|
27
|
+
│ └── [GET] Unified Tracking - Multi-Hub Checkpoints
|
|
28
|
+
└── 📦 WMS & Multi-Channel Inventory
|
|
29
|
+
├── [POST] EasyEcom - Stock Sync by SKU
|
|
30
|
+
└── [GET] Shopify Storefront - Catalog Graph Query
|
|
31
|
+
```
|
|
10
32
|
|
|
11
|
-
|
|
33
|
+
---
|
|
12
34
|
|
|
13
|
-
|
|
14
|
-
# Export all 9 collections & environments (18 files)
|
|
15
|
-
npx @boostengine/collections export all
|
|
16
|
-
|
|
17
|
-
# Or export individually:
|
|
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
|
|
23
|
-
npx @boostengine/collections export easyecom
|
|
24
|
-
npx @boostengine/collections export shiprocket
|
|
25
|
-
npx @boostengine/collections export delhivery
|
|
26
|
-
npx @boostengine/collections export shopify
|
|
27
|
-
|
|
28
|
-
# Inspect available endpoints inside your terminal:
|
|
29
|
-
npx @boostengine/collections info razorpay
|
|
30
|
-
npx @boostengine/collections info cashfree
|
|
31
|
-
npx @boostengine/collections info shiprocket
|
|
32
|
-
```
|
|
35
|
+
## 🌟 Key Highlights
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
4. Select the imported Environment from the top-right dropdown, enter your API keys, and start sending requests!
|
|
37
|
+
- **🎯 1-Click Postman Import**: Import pre-configured collections with dynamic test scripts and pre-request HMAC hashing scripts.
|
|
38
|
+
- **🔐 Environment Variables**: Includes `.postman_environment.json` templates with sandboxes and production endpoints.
|
|
39
|
+
- **⚡ Webhook Simulators**: Pre-configured mock payloads for simulating real-world gateway events.
|
|
40
|
+
- **🛠️ Programmatic Access**: Inspect and export schemas directly inside Node.js scripts or CI/CD pipelines.
|
|
39
41
|
|
|
40
42
|
---
|
|
41
43
|
|
|
42
|
-
## 📦
|
|
44
|
+
## 📦 Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# npm
|
|
48
|
+
npm install @boostengine/collections
|
|
43
49
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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 |
|
|
50
|
+
# pnpm
|
|
51
|
+
pnpm add @boostengine/collections
|
|
52
|
+
|
|
53
|
+
# yarn
|
|
54
|
+
yarn add @boostengine/collections
|
|
55
|
+
```
|
|
55
56
|
|
|
56
57
|
---
|
|
57
58
|
|
|
58
|
-
##
|
|
59
|
+
## 🚀 Quickstart Guide
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
### 1. Export Collections to Your Local Workspace via CLI
|
|
61
62
|
|
|
62
63
|
```bash
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
# Export all collections into a ./postman folder
|
|
65
|
+
npx @boostengine/collections export ./postman
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
listCollections,
|
|
69
|
-
getCollection,
|
|
70
|
-
razorpayCollection,
|
|
71
|
-
cashfreeCollection,
|
|
72
|
-
phonepeCollection,
|
|
73
|
-
paytmCollection,
|
|
74
|
-
shiprocketCollection,
|
|
75
|
-
} from '@boostengine/collections';
|
|
76
|
-
|
|
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);
|
|
67
|
+
# List all available collection schemas
|
|
68
|
+
npx @boostengine/collections list
|
|
83
69
|
```
|
|
84
70
|
|
|
85
71
|
---
|
|
86
72
|
|
|
87
|
-
|
|
73
|
+
### 2. Programmatic Node.js Usage
|
|
88
74
|
|
|
89
|
-
|
|
75
|
+
```typescript
|
|
76
|
+
import { getCollection, getEnvironment, listCollections } from '@boostengine/collections';
|
|
90
77
|
|
|
91
|
-
|
|
92
|
-
|
|
78
|
+
// List all available API collections
|
|
79
|
+
console.log(listCollections());
|
|
80
|
+
// ['razorpay', 'cashfree', 'phonepe', 'shiprocket', 'delhivery', 'easyecom']
|
|
81
|
+
|
|
82
|
+
// Get the Cashfree Postman JSON
|
|
83
|
+
const cashfreeCollection = getCollection('cashfree');
|
|
84
|
+
console.log(cashfreeCollection.info.name); // "Cashfree Payment Gateway"
|
|
93
85
|
```
|
|
94
86
|
|
|
95
87
|
---
|
|
96
88
|
|
|
97
89
|
## 📄 License
|
|
98
|
-
|
|
90
|
+
|
|
91
|
+
MIT © [Boost Engine](https://github.com/boostengine)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boostengine/collections",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Production-ready Postman Collections (Schema v2.1.0) & Environments for Razorpay, Cashfree, PhonePe, Paytm, Stripe, EasyEcom WMS, Shiprocket, Delhivery & Shopify.",
|
|
5
5
|
"author": "Boost Engine <boostengine001@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,18 @@
|
|
|
22
22
|
"warehouse-management",
|
|
23
23
|
"india-ecommerce",
|
|
24
24
|
"api-testing",
|
|
25
|
-
"rest-api"
|
|
25
|
+
"rest-api",
|
|
26
|
+
"ecommerce-api-collections"
|
|
26
27
|
],
|
|
28
|
+
"homepage": "https://github.com/boostengine/boostengine/tree/main/packages/boost-collections#readme",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/boostengine/boostengine.git",
|
|
32
|
+
"directory": "packages/boost-collections"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/boostengine/boostengine/issues"
|
|
36
|
+
},
|
|
27
37
|
"bin": {
|
|
28
38
|
"boost-collections": "./bin/cli.cjs"
|
|
29
39
|
},
|