@boostengine/collections 1.0.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.
@@ -0,0 +1,100 @@
1
+ interface PostmanInfo {
2
+ _postman_id: string;
3
+ name: string;
4
+ description: string;
5
+ schema: string;
6
+ }
7
+ interface PostmanAuth {
8
+ type: string;
9
+ basic?: {
10
+ key: string;
11
+ value: string;
12
+ type: string;
13
+ }[];
14
+ bearer?: {
15
+ key: string;
16
+ value: string;
17
+ type: string;
18
+ }[];
19
+ [key: string]: any;
20
+ }
21
+ interface PostmanRequest {
22
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
23
+ header: {
24
+ key: string;
25
+ value: string;
26
+ description?: string;
27
+ }[];
28
+ body?: {
29
+ mode: 'raw' | 'urlencoded' | 'formdata';
30
+ raw?: string;
31
+ [key: string]: any;
32
+ };
33
+ url: {
34
+ raw: string;
35
+ host?: string[];
36
+ path?: string[];
37
+ query?: {
38
+ key: string;
39
+ value: string;
40
+ description?: string;
41
+ }[];
42
+ };
43
+ description?: string;
44
+ }
45
+ interface PostmanItem {
46
+ name: string;
47
+ description?: string;
48
+ request?: PostmanRequest;
49
+ item?: PostmanItem[];
50
+ }
51
+ interface PostmanCollection {
52
+ info: PostmanInfo;
53
+ auth?: PostmanAuth;
54
+ item: PostmanItem[];
55
+ [key: string]: any;
56
+ }
57
+ interface PostmanEnvironmentVariable {
58
+ key: string;
59
+ value: string;
60
+ type: 'default' | 'secret';
61
+ enabled: boolean;
62
+ }
63
+ interface PostmanEnvironment {
64
+ id: string;
65
+ name: string;
66
+ values: PostmanEnvironmentVariable[];
67
+ _postman_variable_scope: string;
68
+ }
69
+ type CollectionName = 'razorpay' | 'easyecom';
70
+ interface CollectionSummary {
71
+ id: string;
72
+ name: string;
73
+ provider: string;
74
+ requestCount: number;
75
+ folders: string[];
76
+ docsUrl: string;
77
+ }
78
+
79
+ declare const razorpayCollection: PostmanCollection;
80
+ declare const easyecomCollection: PostmanCollection;
81
+ declare const razorpayEnvironment: PostmanEnvironment;
82
+ declare const easyecomEnvironment: PostmanEnvironment;
83
+ /**
84
+ * List all available collections with endpoint counts and folders.
85
+ */
86
+ declare function listCollections(): CollectionSummary[];
87
+ /**
88
+ * Get a specific Postman Collection by name.
89
+ */
90
+ declare function getCollection(name: CollectionName): PostmanCollection;
91
+ /**
92
+ * Get a specific Postman Environment by name.
93
+ */
94
+ declare function getEnvironment(name: CollectionName): PostmanEnvironment;
95
+ /**
96
+ * Export collection and environment files to a specified directory.
97
+ */
98
+ declare function exportToDirectory(name: CollectionName | 'all', targetDir?: string): string[];
99
+
100
+ export { type CollectionName, type CollectionSummary, type PostmanAuth, type PostmanCollection, type PostmanEnvironment, type PostmanEnvironmentVariable, type PostmanInfo, type PostmanItem, type PostmanRequest, easyecomCollection, easyecomEnvironment, exportToDirectory, getCollection, getEnvironment, listCollections, razorpayCollection, razorpayEnvironment };
@@ -0,0 +1,100 @@
1
+ interface PostmanInfo {
2
+ _postman_id: string;
3
+ name: string;
4
+ description: string;
5
+ schema: string;
6
+ }
7
+ interface PostmanAuth {
8
+ type: string;
9
+ basic?: {
10
+ key: string;
11
+ value: string;
12
+ type: string;
13
+ }[];
14
+ bearer?: {
15
+ key: string;
16
+ value: string;
17
+ type: string;
18
+ }[];
19
+ [key: string]: any;
20
+ }
21
+ interface PostmanRequest {
22
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
23
+ header: {
24
+ key: string;
25
+ value: string;
26
+ description?: string;
27
+ }[];
28
+ body?: {
29
+ mode: 'raw' | 'urlencoded' | 'formdata';
30
+ raw?: string;
31
+ [key: string]: any;
32
+ };
33
+ url: {
34
+ raw: string;
35
+ host?: string[];
36
+ path?: string[];
37
+ query?: {
38
+ key: string;
39
+ value: string;
40
+ description?: string;
41
+ }[];
42
+ };
43
+ description?: string;
44
+ }
45
+ interface PostmanItem {
46
+ name: string;
47
+ description?: string;
48
+ request?: PostmanRequest;
49
+ item?: PostmanItem[];
50
+ }
51
+ interface PostmanCollection {
52
+ info: PostmanInfo;
53
+ auth?: PostmanAuth;
54
+ item: PostmanItem[];
55
+ [key: string]: any;
56
+ }
57
+ interface PostmanEnvironmentVariable {
58
+ key: string;
59
+ value: string;
60
+ type: 'default' | 'secret';
61
+ enabled: boolean;
62
+ }
63
+ interface PostmanEnvironment {
64
+ id: string;
65
+ name: string;
66
+ values: PostmanEnvironmentVariable[];
67
+ _postman_variable_scope: string;
68
+ }
69
+ type CollectionName = 'razorpay' | 'easyecom';
70
+ interface CollectionSummary {
71
+ id: string;
72
+ name: string;
73
+ provider: string;
74
+ requestCount: number;
75
+ folders: string[];
76
+ docsUrl: string;
77
+ }
78
+
79
+ declare const razorpayCollection: PostmanCollection;
80
+ declare const easyecomCollection: PostmanCollection;
81
+ declare const razorpayEnvironment: PostmanEnvironment;
82
+ declare const easyecomEnvironment: PostmanEnvironment;
83
+ /**
84
+ * List all available collections with endpoint counts and folders.
85
+ */
86
+ declare function listCollections(): CollectionSummary[];
87
+ /**
88
+ * Get a specific Postman Collection by name.
89
+ */
90
+ declare function getCollection(name: CollectionName): PostmanCollection;
91
+ /**
92
+ * Get a specific Postman Environment by name.
93
+ */
94
+ declare function getEnvironment(name: CollectionName): PostmanEnvironment;
95
+ /**
96
+ * Export collection and environment files to a specified directory.
97
+ */
98
+ declare function exportToDirectory(name: CollectionName | 'all', targetDir?: string): string[];
99
+
100
+ export { type CollectionName, type CollectionSummary, type PostmanAuth, type PostmanCollection, type PostmanEnvironment, type PostmanEnvironmentVariable, type PostmanInfo, type PostmanItem, type PostmanRequest, easyecomCollection, easyecomEnvironment, exportToDirectory, getCollection, getEnvironment, listCollections, razorpayCollection, razorpayEnvironment };
package/dist/index.mjs ADDED
@@ -0,0 +1,145 @@
1
+ import s from'fs';import y from'path';var l={info:{_postman_id:"9b12a83e-105b-4832-8419-a86d5e789012",name:"Razorpay eCommerce API Collection",description:"Production-ready Postman Collection for Razorpay Payment Gateway APIs (Orders, Payments, Refunds, and Webhook Payloads). Maintained by Boost Engine (@boostengine/collections).",schema:"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},auth:{type:"basic",basic:[{key:"username",value:"{{razorpay_key_id}}",type:"string"},{key:"password",value:"{{razorpay_key_secret}}",type:"string"}]},item:[{name:"Orders",description:"APIs to create and manage checkout orders in Razorpay.",item:[{name:"1. Create Order",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
2
+ "amount": 99900,
3
+ "currency": "INR",
4
+ "receipt": "rcpt_boost_001",
5
+ "notes": {
6
+ "customer_name": "Aman Sharma",
7
+ "customer_email": "aman@example.com",
8
+ "customer_phone": "+919876543210"
9
+ }
10
+ }`},url:{raw:"{{razorpay_base_url}}/v1/orders",host:["{{razorpay_base_url}}"],path:["v1","orders"]},description:"Creates a new Razorpay Order. Amount is in the smallest currency sub-unit (e.g. 99900 paise = \u20B9999.00)."}},{name:"2. Fetch Order by ID",request:{method:"GET",header:[],url:{raw:"{{razorpay_base_url}}/v1/orders/{{order_id}}",host:["{{razorpay_base_url}}"],path:["v1","orders","{{order_id}}"]},description:"Fetches details of a specific Razorpay Order by its Order ID (e.g. order_EKwxwAgItmmXdp)."}},{name:"3. Fetch Payments for an Order",request:{method:"GET",header:[],url:{raw:"{{razorpay_base_url}}/v1/orders/{{order_id}}/payments",host:["{{razorpay_base_url}}"],path:["v1","orders","{{order_id}}","payments"]},description:"Retrieves all payment attempts (authorized, captured, failed) associated with this Order ID."}},{name:"4. List All Orders",request:{method:"GET",header:[],url:{raw:"{{razorpay_base_url}}/v1/orders?count=10",host:["{{razorpay_base_url}}"],path:["v1","orders"],query:[{key:"count",value:"10",description:"Number of orders to retrieve"}]},description:"Lists recent orders created on the merchant account."}}]},{name:"Payments",description:"APIs to fetch, capture, and manage individual payments.",item:[{name:"1. Fetch Payment by ID",request:{method:"GET",header:[],url:{raw:"{{razorpay_base_url}}/v1/payments/{{payment_id}}",host:["{{razorpay_base_url}}"],path:["v1","payments","{{payment_id}}"]},description:"Fetches payment details such as status (captured, authorized), payment method (upi, card, netbanking), card details, or UPI VPA."}},{name:"2. Capture Payment",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
11
+ "amount": 99900,
12
+ "currency": "INR"
13
+ }`},url:{raw:"{{razorpay_base_url}}/v1/payments/{{payment_id}}/capture",host:["{{razorpay_base_url}}"],path:["v1","payments","{{payment_id}}","capture"]},description:"Captures an authorized payment manually if auto-capture is disabled."}},{name:"3. Update Payment Notes",request:{method:"PATCH",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
14
+ "notes": {
15
+ "erp_sync_status": "SYNCED",
16
+ "warehouse_id": "WH_MUMBAI_01"
17
+ }
18
+ }`},url:{raw:"{{razorpay_base_url}}/v1/payments/{{payment_id}}",host:["{{razorpay_base_url}}"],path:["v1","payments","{{payment_id}}"]},description:"Updates custom metadata notes for a payment."}}]},{name:"Refunds",description:"APIs to process instant and normal customer refunds.",item:[{name:"1. Create Refund",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
19
+ "amount": 99900,
20
+ "speed": "optimum",
21
+ "notes": {
22
+ "reason": "Customer returned product due to size issue"
23
+ },
24
+ "receipt": "rfnd_boost_001"
25
+ }`},url:{raw:"{{razorpay_base_url}}/v1/payments/{{payment_id}}/refund",host:["{{razorpay_base_url}}"],path:["v1","payments","{{payment_id}}","refund"]},description:"Refunds a captured payment either fully or partially."}},{name:"2. Fetch Refund by ID",request:{method:"GET",header:[],url:{raw:"{{razorpay_base_url}}/v1/refunds/{{refund_id}}",host:["{{razorpay_base_url}}"],path:["v1","refunds","{{refund_id}}"]},description:"Fetches status of a refund (processed, pending, failed)."}},{name:"3. List All Refunds",request:{method:"GET",header:[],url:{raw:"{{razorpay_base_url}}/v1/refunds?count=10",host:["{{razorpay_base_url}}"],path:["v1","refunds"],query:[{key:"count",value:"10"}]},description:"Lists recent refunds processed on this account."}}]},{name:"Webhooks Simulator",description:"Sample payloads & HMAC SHA256 signature verification tests for Razorpay Webhooks.",item:[{name:"Payload: order.paid",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"},{key:"X-Razorpay-Signature",value:"{{computed_webhook_signature}}"}],body:{mode:"raw",raw:`{
26
+ "entity": "event",
27
+ "account_id": "acc_test123",
28
+ "event": "order.paid",
29
+ "contains": ["order", "payment"],
30
+ "payload": {
31
+ "payment": {
32
+ "entity": {
33
+ "id": "pay_test_001",
34
+ "entity": "payment",
35
+ "amount": 99900,
36
+ "currency": "INR",
37
+ "status": "captured",
38
+ "order_id": "order_test_001",
39
+ "method": "upi",
40
+ "vpa": "success@razorpay"
41
+ }
42
+ },
43
+ "order": {
44
+ "entity": {
45
+ "id": "order_test_001",
46
+ "entity": "order",
47
+ "amount": 99900,
48
+ "amount_paid": 99900,
49
+ "status": "paid",
50
+ "receipt": "rcpt_boost_001"
51
+ }
52
+ }
53
+ },
54
+ "created_at": 1690000000
55
+ }`},url:{raw:"{{local_webhook_url}}",host:["{{local_webhook_url}}"]},description:"Simulates an order.paid webhook sent by Razorpay to your server."}},{name:"Payload: payment.failed",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"},{key:"X-Razorpay-Signature",value:"{{computed_webhook_signature}}"}],body:{mode:"raw",raw:`{
56
+ "entity": "event",
57
+ "account_id": "acc_test123",
58
+ "event": "payment.failed",
59
+ "contains": ["payment"],
60
+ "payload": {
61
+ "payment": {
62
+ "entity": {
63
+ "id": "pay_failed_001",
64
+ "amount": 99900,
65
+ "currency": "INR",
66
+ "status": "failed",
67
+ "order_id": "order_test_001",
68
+ "error_code": "BAD_REQUEST_ERROR",
69
+ "error_description": "Payment was declined by user's bank"
70
+ }
71
+ }
72
+ },
73
+ "created_at": 1690000000
74
+ }`},url:{raw:"{{local_webhook_url}}",host:["{{local_webhook_url}}"]},description:"Simulates a payment.failed webhook sent when customer cancels or card/UPI fails."}}]}]};var u={info:{_postman_id:"8f21bc90-2134-4b45-9128-b12a83e01290",name:"EasyEcom eCommerce & Warehouse API Collection",description:"Production-ready Postman Collection for EasyEcom Inventory, Orders, Multi-Warehouse Stock, and Courier Manifest APIs. Maintained by Boost Engine (@boostengine/collections).",schema:"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},auth:{type:"bearer",bearer:[{key:"token",value:"{{easyecom_api_token}}",type:"string"}]},item:[{name:"Orders",description:"APIs to push new storefront orders, fetch pending orders, and manage fulfillment status in EasyEcom.",item:[{name:"1. Fetch Pending Orders",request:{method:"GET",header:[],url:{raw:"{{easyecom_base_url}}/orders/v2/getOrders?status=pending&limit=20",host:["{{easyecom_base_url}}"],path:["orders","v2","getOrders"],query:[{key:"status",value:"pending"},{key:"limit",value:"20"}]},description:"Fetches unfulfilled / pending orders waiting for picklist and invoice generation."}},{name:"2. Create / Push Store Order",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
75
+ "order_details": {
76
+ "order_reference_id": "ORD_BOOST_9821",
77
+ "order_date": "2026-09-08 18:30:00",
78
+ "payment_mode": "Prepaid",
79
+ "marketplace": "CustomStore",
80
+ "customer_details": {
81
+ "first_name": "Rahul",
82
+ "last_name": "Verma",
83
+ "email": "rahul.verma@example.com",
84
+ "contact_number": "9876543210"
85
+ },
86
+ "shipping_address": {
87
+ "address_line_1": "Flat 402, Skyline Residency, Link Road",
88
+ "city": "Mumbai",
89
+ "state": "Maharashtra",
90
+ "pin_code": "400053",
91
+ "country": "India"
92
+ },
93
+ "order_items": [
94
+ {
95
+ "sku": "TEE-ANIME-BLK-L",
96
+ "item_title": "Oversized Anime Black T-Shirt (Large)",
97
+ "quantity": 1,
98
+ "selling_price": 799,
99
+ "tax_percentage": 5,
100
+ "discount": 0
101
+ }
102
+ ],
103
+ "total_amount": 799,
104
+ "shipping_charges": 0
105
+ }
106
+ }`},url:{raw:"{{easyecom_base_url}}/orders/v2/createOrder",host:["{{easyecom_base_url}}"],path:["orders","v2","createOrder"]},description:"Pushes a new order from your custom eCommerce store or mobile app into EasyEcom ERP."}},{name:"3. Update Order Status",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
107
+ "order_reference_id": "ORD_BOOST_9821",
108
+ "status": "shipped",
109
+ "tracking_number": "AWB_DELHIVERY_1092831",
110
+ "courier_name": "Delhivery Surface"
111
+ }`},url:{raw:"{{easyecom_base_url}}/orders/v2/updateOrderStatus",host:["{{easyecom_base_url}}"],path:["orders","v2","updateOrderStatus"]},description:"Updates order fulfillment status (e.g. packed, shipped, delivered, rto)."}},{name:"4. Cancel Order",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
112
+ "order_reference_id": "ORD_BOOST_9821",
113
+ "cancellation_reason": "Customer requested cancellation before dispatch"
114
+ }`},url:{raw:"{{easyecom_base_url}}/orders/v2/cancelOrder",host:["{{easyecom_base_url}}"],path:["orders","v2","cancelOrder"]},description:"Cancels an order before it is dispatched and restores inventory in EasyEcom warehouse."}}]},{name:"Inventory & Multi-Warehouse Stock",description:"APIs to query and sync live stock levels across central and regional fulfillment centers.",item:[{name:"1. Get Inventory by SKU",request:{method:"GET",header:[],url:{raw:"{{easyecom_base_url}}/inventory/v2/getInventoryDetails?sku={{sku}}",host:["{{easyecom_base_url}}"],path:["inventory","v2","getInventoryDetails"],query:[{key:"sku",value:"{{sku}}"}]},description:"Fetches current physical stock, allocated stock, and sellable stock for a specific SKU."}},{name:"2. Update Warehouse Stock",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
115
+ "warehouse_id": "{{warehouse_id}}",
116
+ "sku": "TEE-ANIME-BLK-L",
117
+ "quantity": 50,
118
+ "update_type": "absolute",
119
+ "remarks": "New batch inward stock from manufacturer"
120
+ }`},url:{raw:"{{easyecom_base_url}}/inventory/v2/updateInventory",host:["{{easyecom_base_url}}"],path:["inventory","v2","updateInventory"]},description:"Updates warehouse inventory. Supports update_type 'absolute' (set exact count) or 'incremental' (add/subtract)."}},{name:"3. Get All Warehouses List",request:{method:"GET",header:[],url:{raw:"{{easyecom_base_url}}/inventory/v2/getWarehouses",host:["{{easyecom_base_url}}"],path:["inventory","v2","getWarehouses"]},description:"Retrieves the list of active warehouse locations and fulfillment centers."}}]},{name:"Master Catalog & SKUs",description:"APIs to manage master product catalog, HSN codes, dimensions, and weights.",item:[{name:"1. Get Master Products",request:{method:"GET",header:[],url:{raw:"{{easyecom_base_url}}/catalog/v2/getMasterProducts?limit=20&page=1",host:["{{easyecom_base_url}}"],path:["catalog","v2","getMasterProducts"],query:[{key:"limit",value:"20"},{key:"page",value:"1"}]},description:"Fetches master product catalog records with weights, dimensions, and barcodes."}},{name:"2. Create / Update Master SKU",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
121
+ "sku": "TEE-ANIME-BLK-L",
122
+ "product_name": "Oversized Anime Black T-Shirt (Large)",
123
+ "brand": "Boost Wear",
124
+ "category": "Apparel",
125
+ "hsn_code": "61091000",
126
+ "tax_rate": 5,
127
+ "mrp": 1499,
128
+ "selling_price": 799,
129
+ "weight_in_grams": 250,
130
+ "dimensions": {
131
+ "length": 30,
132
+ "width": 25,
133
+ "height": 3
134
+ }
135
+ }`},url:{raw:"{{easyecom_base_url}}/catalog/v2/createProduct",host:["{{easyecom_base_url}}"],path:["catalog","v2","createProduct"]},description:"Registers or updates a master SKU with dimensions and HSN code in EasyEcom."}}]},{name:"Shipping & Manifests",description:"APIs to generate Airway Bills (AWB), shipping labels, and handover manifests.",item:[{name:"1. Generate AWB / Shipping Label",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
136
+ "order_reference_id": "ORD_BOOST_9821",
137
+ "courier_id": "delhivery_surface",
138
+ "pickup_warehouse_id": "{{warehouse_id}}"
139
+ }`},url:{raw:"{{easyecom_base_url}}/shipping/v2/generateAwb",host:["{{easyecom_base_url}}"],path:["shipping","v2","generateAwb"]},description:"Assigns courier and generates shipping label & AWB tracking number for an order."}},{name:"2. Create Courier Handover Manifest",request:{method:"POST",header:[{key:"Content-Type",value:"application/json"}],body:{mode:"raw",raw:`{
140
+ "courier_name": "Delhivery",
141
+ "warehouse_id": "{{warehouse_id}}",
142
+ "order_ids": ["ORD_BOOST_9821"]
143
+ }`},url:{raw:"{{easyecom_base_url}}/shipping/v2/createManifest",host:["{{easyecom_base_url}}"],path:["shipping","v2","createManifest"]},description:"Creates a courier manifest PDF when handing over physical parcels to delivery rider."}}]}]};var p={id:"razorpay-environment-template",name:"Razorpay Environment (Boost Engine)",values:[{key:"razorpay_base_url",value:"https://api.razorpay.com",type:"default",enabled:true},{key:"razorpay_key_id",value:"rzp_test_YOUR_KEY_HERE",type:"secret",enabled:true},{key:"razorpay_key_secret",value:"YOUR_KEY_SECRET_HERE",type:"secret",enabled:true},{key:"order_id",value:"order_test_001",type:"default",enabled:true},{key:"payment_id",value:"pay_test_001",type:"default",enabled:true},{key:"refund_id",value:"rfnd_test_001",type:"default",enabled:true},{key:"local_webhook_url",value:"http://localhost:3000/api/webhooks/razorpay",type:"default",enabled:true},{key:"computed_webhook_signature",value:"sample_hmac_signature_hex",type:"default",enabled:true}],_postman_variable_scope:"environment"};var m={id:"easyecom-environment-template",name:"EasyEcom Environment (Boost Engine)",values:[{key:"easyecom_base_url",value:"https://api.easyecom.com",type:"default",enabled:true},{key:"easyecom_api_token",value:"YOUR_EASYECOM_API_TOKEN_HERE",type:"secret",enabled:true},{key:"warehouse_id",value:"WH_PRIMARY_01",type:"default",enabled:true},{key:"sku",value:"TEE-ANIME-BLK-L",type:"default",enabled:true}],_postman_variable_scope:"environment"};var f=l,w=u,k=p,g=m,r={razorpay:{collection:f,environment:k,provider:"Razorpay Payments",docsUrl:"https://razorpay.com/docs/api"},easyecom:{collection:w,environment:g,provider:"EasyEcom WMS & ERP",docsUrl:"https://api.easyecom.com/documentation"}};function q(){return Object.keys(r).map(a=>{let e=r[a],o=e.collection.item.map(t=>t.name),n=0;for(let t of e.collection.item)t.item?n+=t.item.length:t.request&&(n+=1);return {id:a,name:e.collection.info.name,provider:e.provider,requestCount:n,folders:o,docsUrl:e.docsUrl}})}function j(a){let e=r[a];if(!e)throw new Error(`Collection "${a}" not found. Available: ${Object.keys(r).join(", ")}`);return e.collection}function M(a){let e=r[a];if(!e)throw new Error(`Environment "${a}" not found. Available: ${Object.keys(r).join(", ")}`);return e.environment}function N(a,e=process.cwd()){s.existsSync(e)||s.mkdirSync(e,{recursive:true});let o=[],n=a==="all"?Object.keys(r):[a];for(let t of n){let i=r[t];if(!i)continue;let d=y.join(e,`${t}.collection.json`),c=y.join(e,`${t}.env.json`);s.writeFileSync(d,JSON.stringify(i.collection,null,2),"utf8"),s.writeFileSync(c,JSON.stringify(i.environment,null,2),"utf8"),o.push(d,c);}return o}
144
+ export{w as easyecomCollection,g as easyecomEnvironment,N as exportToDirectory,j as getCollection,M as getEnvironment,q as listCollections,f as razorpayCollection,k as razorpayEnvironment};//# sourceMappingURL=index.mjs.map
145
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../collections/razorpay.collection.json","../collections/easyecom.collection.json","../environments/razorpay.env.json","../environments/easyecom.env.json","../src/index.ts"],"names":["razorpay_collection_default","easyecom_collection_default","razorpay_env_default","easyecom_env_default","razorpayCollection","easyecomCollection","razorpayEnvironment","easyecomEnvironment","registry","listCollections","key","entry","folders","item","requestCount","folder","getCollection","name","getEnvironment","exportToDirectory","targetDir","fs","exportedFiles","targets","colFile","path","envFile"],"mappings":"sCAAA,IAAAA,CAAAA,CAAA,CACE,IAAA,CAAQ,CACN,WAAA,CAAe,sCAAA,CACf,IAAA,CAAQ,mCAAA,CACR,YAAe,iLAAA,CACf,MAAA,CAAU,sEACZ,CAAA,CACA,IAAA,CAAQ,CACN,IAAA,CAAQ,OAAA,CACR,MAAS,CACP,CACE,GAAA,CAAO,UAAA,CACP,MAAS,qBAAA,CACT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,gBAAA,CAAkB,CAAA,CACxDa,EAAUD,CAAAA,CAAK,IAAA,CAAKL,CAAAA,CAAW,CAAA,EAAGP,CAAI,CAAA,SAAA,CAAW,EAEvDQ,CAAAA,CAAG,aAAA,CAAcG,CAAAA,CAAS,IAAA,CAAK,SAAA,CAAUb,CAAAA,CAAM,WAAY,IAAA,CAAM,CAAC,EAAG,MAAM,CAAA,CAC3EU,EAAG,aAAA,CAAcK,CAAAA,CAAS,IAAA,CAAK,SAAA,CAAUf,CAAAA,CAAM,WAAA,CAAa,KAAM,CAAC,CAAA,CAAG,MAAM,CAAA,CAE5EW,CAAAA,CAAc,IAAA,CAAKE,EAASE,CAAO,EACrC,CAEA,OAAOJ,CACT","file":"index.mjs","sourcesContent":["{\n \"info\": {\n \"_postman_id\": \"9b12a83e-105b-4832-8419-a86d5e789012\",\n \"name\": \"Razorpay eCommerce API Collection\",\n \"description\": \"Production-ready Postman Collection for Razorpay Payment Gateway APIs (Orders, Payments, Refunds, and Webhook Payloads). Maintained by Boost Engine (@boostengine/collections).\",\n \"schema\": \"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\"\n },\n \"auth\": {\n \"type\": \"basic\",\n \"basic\": [\n {\n \"key\": \"username\",\n \"value\": \"{{razorpay_key_id}}\",\n \"type\": \"string\"\n },\n {\n \"key\": \"password\",\n \"value\": \"{{razorpay_key_secret}}\",\n \"type\": \"string\"\n }\n ]\n },\n \"item\": [\n {\n \"name\": \"Orders\",\n \"description\": \"APIs to create and manage checkout orders in Razorpay.\",\n \"item\": [\n {\n \"name\": \"1. Create Order\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"amount\\\": 99900,\\n \\\"currency\\\": \\\"INR\\\",\\n \\\"receipt\\\": \\\"rcpt_boost_001\\\",\\n \\\"notes\\\": {\\n \\\"customer_name\\\": \\\"Aman Sharma\\\",\\n \\\"customer_email\\\": \\\"aman@example.com\\\",\\n \\\"customer_phone\\\": \\\"+919876543210\\\"\\n }\\n}\"\n },\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/orders\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"orders\"]\n },\n \"description\": \"Creates a new Razorpay Order. Amount is in the smallest currency sub-unit (e.g. 99900 paise = ₹999.00).\"\n }\n },\n {\n \"name\": \"2. Fetch Order by ID\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/orders/{{order_id}}\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"orders\", \"{{order_id}}\"]\n },\n \"description\": \"Fetches details of a specific Razorpay Order by its Order ID (e.g. order_EKwxwAgItmmXdp).\"\n }\n },\n {\n \"name\": \"3. Fetch Payments for an Order\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/orders/{{order_id}}/payments\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"orders\", \"{{order_id}}\", \"payments\"]\n },\n \"description\": \"Retrieves all payment attempts (authorized, captured, failed) associated with this Order ID.\"\n }\n },\n {\n \"name\": \"4. List All Orders\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/orders?count=10\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"orders\"],\n \"query\": [\n {\n \"key\": \"count\",\n \"value\": \"10\",\n \"description\": \"Number of orders to retrieve\"\n }\n ]\n },\n \"description\": \"Lists recent orders created on the merchant account.\"\n }\n }\n ]\n },\n {\n \"name\": \"Payments\",\n \"description\": \"APIs to fetch, capture, and manage individual payments.\",\n \"item\": [\n {\n \"name\": \"1. Fetch Payment by ID\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/payments/{{payment_id}}\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"payments\", \"{{payment_id}}\"]\n },\n \"description\": \"Fetches payment details such as status (captured, authorized), payment method (upi, card, netbanking), card details, or UPI VPA.\"\n }\n },\n {\n \"name\": \"2. Capture Payment\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"amount\\\": 99900,\\n \\\"currency\\\": \\\"INR\\\"\\n}\"\n },\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/payments/{{payment_id}}/capture\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"payments\", \"{{payment_id}}\", \"capture\"]\n },\n \"description\": \"Captures an authorized payment manually if auto-capture is disabled.\"\n }\n },\n {\n \"name\": \"3. Update Payment Notes\",\n \"request\": {\n \"method\": \"PATCH\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"notes\\\": {\\n \\\"erp_sync_status\\\": \\\"SYNCED\\\",\\n \\\"warehouse_id\\\": \\\"WH_MUMBAI_01\\\"\\n }\\n}\"\n },\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/payments/{{payment_id}}\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"payments\", \"{{payment_id}}\"]\n },\n \"description\": \"Updates custom metadata notes for a payment.\"\n }\n }\n ]\n },\n {\n \"name\": \"Refunds\",\n \"description\": \"APIs to process instant and normal customer refunds.\",\n \"item\": [\n {\n \"name\": \"1. Create Refund\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"amount\\\": 99900,\\n \\\"speed\\\": \\\"optimum\\\",\\n \\\"notes\\\": {\\n \\\"reason\\\": \\\"Customer returned product due to size issue\\\"\\n },\\n \\\"receipt\\\": \\\"rfnd_boost_001\\\"\\n}\"\n },\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/payments/{{payment_id}}/refund\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"payments\", \"{{payment_id}}\", \"refund\"]\n },\n \"description\": \"Refunds a captured payment either fully or partially.\"\n }\n },\n {\n \"name\": \"2. Fetch Refund by ID\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/refunds/{{refund_id}}\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"refunds\", \"{{refund_id}}\"]\n },\n \"description\": \"Fetches status of a refund (processed, pending, failed).\"\n }\n },\n {\n \"name\": \"3. List All Refunds\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{razorpay_base_url}}/v1/refunds?count=10\",\n \"host\": [\"{{razorpay_base_url}}\"],\n \"path\": [\"v1\", \"refunds\"],\n \"query\": [\n {\n \"key\": \"count\",\n \"value\": \"10\"\n }\n ]\n },\n \"description\": \"Lists recent refunds processed on this account.\"\n }\n }\n ]\n },\n {\n \"name\": \"Webhooks Simulator\",\n \"description\": \"Sample payloads & HMAC SHA256 signature verification tests for Razorpay Webhooks.\",\n \"item\": [\n {\n \"name\": \"Payload: order.paid\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"X-Razorpay-Signature\",\n \"value\": \"{{computed_webhook_signature}}\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"entity\\\": \\\"event\\\",\\n \\\"account_id\\\": \\\"acc_test123\\\",\\n \\\"event\\\": \\\"order.paid\\\",\\n \\\"contains\\\": [\\\"order\\\", \\\"payment\\\"],\\n \\\"payload\\\": {\\n \\\"payment\\\": {\\n \\\"entity\\\": {\\n \\\"id\\\": \\\"pay_test_001\\\",\\n \\\"entity\\\": \\\"payment\\\",\\n \\\"amount\\\": 99900,\\n \\\"currency\\\": \\\"INR\\\",\\n \\\"status\\\": \\\"captured\\\",\\n \\\"order_id\\\": \\\"order_test_001\\\",\\n \\\"method\\\": \\\"upi\\\",\\n \\\"vpa\\\": \\\"success@razorpay\\\"\\n }\\n },\\n \\\"order\\\": {\\n \\\"entity\\\": {\\n \\\"id\\\": \\\"order_test_001\\\",\\n \\\"entity\\\": \\\"order\\\",\\n \\\"amount\\\": 99900,\\n \\\"amount_paid\\\": 99900,\\n \\\"status\\\": \\\"paid\\\",\\n \\\"receipt\\\": \\\"rcpt_boost_001\\\"\\n }\\n }\\n },\\n \\\"created_at\\\": 1690000000\\n}\"\n },\n \"url\": {\n \"raw\": \"{{local_webhook_url}}\",\n \"host\": [\"{{local_webhook_url}}\"]\n },\n \"description\": \"Simulates an order.paid webhook sent by Razorpay to your server.\"\n }\n },\n {\n \"name\": \"Payload: payment.failed\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"X-Razorpay-Signature\",\n \"value\": \"{{computed_webhook_signature}}\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"entity\\\": \\\"event\\\",\\n \\\"account_id\\\": \\\"acc_test123\\\",\\n \\\"event\\\": \\\"payment.failed\\\",\\n \\\"contains\\\": [\\\"payment\\\"],\\n \\\"payload\\\": {\\n \\\"payment\\\": {\\n \\\"entity\\\": {\\n \\\"id\\\": \\\"pay_failed_001\\\",\\n \\\"amount\\\": 99900,\\n \\\"currency\\\": \\\"INR\\\",\\n \\\"status\\\": \\\"failed\\\",\\n \\\"order_id\\\": \\\"order_test_001\\\",\\n \\\"error_code\\\": \\\"BAD_REQUEST_ERROR\\\",\\n \\\"error_description\\\": \\\"Payment was declined by user's bank\\\"\\n }\\n }\\n },\\n \\\"created_at\\\": 1690000000\\n}\"\n },\n \"url\": {\n \"raw\": \"{{local_webhook_url}}\",\n \"host\": [\"{{local_webhook_url}}\"]\n },\n \"description\": \"Simulates a payment.failed webhook sent when customer cancels or card/UPI fails.\"\n }\n }\n ]\n }\n ]\n}\n","{\n \"info\": {\n \"_postman_id\": \"8f21bc90-2134-4b45-9128-b12a83e01290\",\n \"name\": \"EasyEcom eCommerce & Warehouse API Collection\",\n \"description\": \"Production-ready Postman Collection for EasyEcom Inventory, Orders, Multi-Warehouse Stock, and Courier Manifest APIs. Maintained by Boost Engine (@boostengine/collections).\",\n \"schema\": \"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\"\n },\n \"auth\": {\n \"type\": \"bearer\",\n \"bearer\": [\n {\n \"key\": \"token\",\n \"value\": \"{{easyecom_api_token}}\",\n \"type\": \"string\"\n }\n ]\n },\n \"item\": [\n {\n \"name\": \"Orders\",\n \"description\": \"APIs to push new storefront orders, fetch pending orders, and manage fulfillment status in EasyEcom.\",\n \"item\": [\n {\n \"name\": \"1. Fetch Pending Orders\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/orders/v2/getOrders?status=pending&limit=20\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"orders\", \"v2\", \"getOrders\"],\n \"query\": [\n {\n \"key\": \"status\",\n \"value\": \"pending\"\n },\n {\n \"key\": \"limit\",\n \"value\": \"20\"\n }\n ]\n },\n \"description\": \"Fetches unfulfilled / pending orders waiting for picklist and invoice generation.\"\n }\n },\n {\n \"name\": \"2. Create / Push Store Order\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"order_details\\\": {\\n \\\"order_reference_id\\\": \\\"ORD_BOOST_9821\\\",\\n \\\"order_date\\\": \\\"2026-09-08 18:30:00\\\",\\n \\\"payment_mode\\\": \\\"Prepaid\\\",\\n \\\"marketplace\\\": \\\"CustomStore\\\",\\n \\\"customer_details\\\": {\\n \\\"first_name\\\": \\\"Rahul\\\",\\n \\\"last_name\\\": \\\"Verma\\\",\\n \\\"email\\\": \\\"rahul.verma@example.com\\\",\\n \\\"contact_number\\\": \\\"9876543210\\\"\\n },\\n \\\"shipping_address\\\": {\\n \\\"address_line_1\\\": \\\"Flat 402, Skyline Residency, Link Road\\\",\\n \\\"city\\\": \\\"Mumbai\\\",\\n \\\"state\\\": \\\"Maharashtra\\\",\\n \\\"pin_code\\\": \\\"400053\\\",\\n \\\"country\\\": \\\"India\\\"\\n },\\n \\\"order_items\\\": [\\n {\\n \\\"sku\\\": \\\"TEE-ANIME-BLK-L\\\",\\n \\\"item_title\\\": \\\"Oversized Anime Black T-Shirt (Large)\\\",\\n \\\"quantity\\\": 1,\\n \\\"selling_price\\\": 799,\\n \\\"tax_percentage\\\": 5,\\n \\\"discount\\\": 0\\n }\\n ],\\n \\\"total_amount\\\": 799,\\n \\\"shipping_charges\\\": 0\\n }\\n}\"\n },\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/orders/v2/createOrder\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"orders\", \"v2\", \"createOrder\"]\n },\n \"description\": \"Pushes a new order from your custom eCommerce store or mobile app into EasyEcom ERP.\"\n }\n },\n {\n \"name\": \"3. Update Order Status\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"order_reference_id\\\": \\\"ORD_BOOST_9821\\\",\\n \\\"status\\\": \\\"shipped\\\",\\n \\\"tracking_number\\\": \\\"AWB_DELHIVERY_1092831\\\",\\n \\\"courier_name\\\": \\\"Delhivery Surface\\\"\\n}\"\n },\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/orders/v2/updateOrderStatus\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"orders\", \"v2\", \"updateOrderStatus\"]\n },\n \"description\": \"Updates order fulfillment status (e.g. packed, shipped, delivered, rto).\"\n }\n },\n {\n \"name\": \"4. Cancel Order\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"order_reference_id\\\": \\\"ORD_BOOST_9821\\\",\\n \\\"cancellation_reason\\\": \\\"Customer requested cancellation before dispatch\\\"\\n}\"\n },\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/orders/v2/cancelOrder\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"orders\", \"v2\", \"cancelOrder\"]\n },\n \"description\": \"Cancels an order before it is dispatched and restores inventory in EasyEcom warehouse.\"\n }\n }\n ]\n },\n {\n \"name\": \"Inventory & Multi-Warehouse Stock\",\n \"description\": \"APIs to query and sync live stock levels across central and regional fulfillment centers.\",\n \"item\": [\n {\n \"name\": \"1. Get Inventory by SKU\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/inventory/v2/getInventoryDetails?sku={{sku}}\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"inventory\", \"v2\", \"getInventoryDetails\"],\n \"query\": [\n {\n \"key\": \"sku\",\n \"value\": \"{{sku}}\"\n }\n ]\n },\n \"description\": \"Fetches current physical stock, allocated stock, and sellable stock for a specific SKU.\"\n }\n },\n {\n \"name\": \"2. Update Warehouse Stock\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"warehouse_id\\\": \\\"{{warehouse_id}}\\\",\\n \\\"sku\\\": \\\"TEE-ANIME-BLK-L\\\",\\n \\\"quantity\\\": 50,\\n \\\"update_type\\\": \\\"absolute\\\",\\n \\\"remarks\\\": \\\"New batch inward stock from manufacturer\\\"\\n}\"\n },\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/inventory/v2/updateInventory\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"inventory\", \"v2\", \"updateInventory\"]\n },\n \"description\": \"Updates warehouse inventory. Supports update_type 'absolute' (set exact count) or 'incremental' (add/subtract).\"\n }\n },\n {\n \"name\": \"3. Get All Warehouses List\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/inventory/v2/getWarehouses\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"inventory\", \"v2\", \"getWarehouses\"]\n },\n \"description\": \"Retrieves the list of active warehouse locations and fulfillment centers.\"\n }\n }\n ]\n },\n {\n \"name\": \"Master Catalog & SKUs\",\n \"description\": \"APIs to manage master product catalog, HSN codes, dimensions, and weights.\",\n \"item\": [\n {\n \"name\": \"1. Get Master Products\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [],\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/catalog/v2/getMasterProducts?limit=20&page=1\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"catalog\", \"v2\", \"getMasterProducts\"],\n \"query\": [\n {\n \"key\": \"limit\",\n \"value\": \"20\"\n },\n {\n \"key\": \"page\",\n \"value\": \"1\"\n }\n ]\n },\n \"description\": \"Fetches master product catalog records with weights, dimensions, and barcodes.\"\n }\n },\n {\n \"name\": \"2. Create / Update Master SKU\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"sku\\\": \\\"TEE-ANIME-BLK-L\\\",\\n \\\"product_name\\\": \\\"Oversized Anime Black T-Shirt (Large)\\\",\\n \\\"brand\\\": \\\"Boost Wear\\\",\\n \\\"category\\\": \\\"Apparel\\\",\\n \\\"hsn_code\\\": \\\"61091000\\\",\\n \\\"tax_rate\\\": 5,\\n \\\"mrp\\\": 1499,\\n \\\"selling_price\\\": 799,\\n \\\"weight_in_grams\\\": 250,\\n \\\"dimensions\\\": {\\n \\\"length\\\": 30,\\n \\\"width\\\": 25,\\n \\\"height\\\": 3\\n }\\n}\"\n },\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/catalog/v2/createProduct\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"catalog\", \"v2\", \"createProduct\"]\n },\n \"description\": \"Registers or updates a master SKU with dimensions and HSN code in EasyEcom.\"\n }\n }\n ]\n },\n {\n \"name\": \"Shipping & Manifests\",\n \"description\": \"APIs to generate Airway Bills (AWB), shipping labels, and handover manifests.\",\n \"item\": [\n {\n \"name\": \"1. Generate AWB / Shipping Label\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"order_reference_id\\\": \\\"ORD_BOOST_9821\\\",\\n \\\"courier_id\\\": \\\"delhivery_surface\\\",\\n \\\"pickup_warehouse_id\\\": \\\"{{warehouse_id}}\\\"\\n}\"\n },\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/shipping/v2/generateAwb\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"shipping\", \"v2\", \"generateAwb\"]\n },\n \"description\": \"Assigns courier and generates shipping label & AWB tracking number for an order.\"\n }\n },\n {\n \"name\": \"2. Create Courier Handover Manifest\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"Content-Type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\n \\\"courier_name\\\": \\\"Delhivery\\\",\\n \\\"warehouse_id\\\": \\\"{{warehouse_id}}\\\",\\n \\\"order_ids\\\": [\\\"ORD_BOOST_9821\\\"]\\n}\"\n },\n \"url\": {\n \"raw\": \"{{easyecom_base_url}}/shipping/v2/createManifest\",\n \"host\": [\"{{easyecom_base_url}}\"],\n \"path\": [\"shipping\", \"v2\", \"createManifest\"]\n },\n \"description\": \"Creates a courier manifest PDF when handing over physical parcels to delivery rider.\"\n }\n }\n ]\n }\n ]\n}\n","{\n \"id\": \"razorpay-environment-template\",\n \"name\": \"Razorpay Environment (Boost Engine)\",\n \"values\": [\n {\n \"key\": \"razorpay_base_url\",\n \"value\": \"https://api.razorpay.com\",\n \"type\": \"default\",\n \"enabled\": true\n },\n {\n \"key\": \"razorpay_key_id\",\n \"value\": \"rzp_test_YOUR_KEY_HERE\",\n \"type\": \"secret\",\n \"enabled\": true\n },\n {\n \"key\": \"razorpay_key_secret\",\n \"value\": \"YOUR_KEY_SECRET_HERE\",\n \"type\": \"secret\",\n \"enabled\": true\n },\n {\n \"key\": \"order_id\",\n \"value\": \"order_test_001\",\n \"type\": \"default\",\n \"enabled\": true\n },\n {\n \"key\": \"payment_id\",\n \"value\": \"pay_test_001\",\n \"type\": \"default\",\n \"enabled\": true\n },\n {\n \"key\": \"refund_id\",\n \"value\": \"rfnd_test_001\",\n \"type\": \"default\",\n \"enabled\": true\n },\n {\n \"key\": \"local_webhook_url\",\n \"value\": \"http://localhost:3000/api/webhooks/razorpay\",\n \"type\": \"default\",\n \"enabled\": true\n },\n {\n \"key\": \"computed_webhook_signature\",\n \"value\": \"sample_hmac_signature_hex\",\n \"type\": \"default\",\n \"enabled\": true\n }\n ],\n \"_postman_variable_scope\": \"environment\"\n}\n","{\n \"id\": \"easyecom-environment-template\",\n \"name\": \"EasyEcom Environment (Boost Engine)\",\n \"values\": [\n {\n \"key\": \"easyecom_base_url\",\n \"value\": \"https://api.easyecom.com\",\n \"type\": \"default\",\n \"enabled\": true\n },\n {\n \"key\": \"easyecom_api_token\",\n \"value\": \"YOUR_EASYECOM_API_TOKEN_HERE\",\n \"type\": \"secret\",\n \"enabled\": true\n },\n {\n \"key\": \"warehouse_id\",\n \"value\": \"WH_PRIMARY_01\",\n \"type\": \"default\",\n \"enabled\": true\n },\n {\n \"key\": \"sku\",\n \"value\": \"TEE-ANIME-BLK-L\",\n \"type\": \"default\",\n \"enabled\": true\n }\n ],\n \"_postman_variable_scope\": \"environment\"\n}\n","import fs from 'fs';\nimport path from 'path';\nimport {\n PostmanCollection,\n PostmanEnvironment,\n CollectionName,\n CollectionSummary,\n} from './types';\n\n// Inlined or required JSON objects for zero runtime path fragility\nimport razorpayCollectionJson from '../collections/razorpay.collection.json';\nimport easyecomCollectionJson from '../collections/easyecom.collection.json';\nimport razorpayEnvironmentJson from '../environments/razorpay.env.json';\nimport easyecomEnvironmentJson from '../environments/easyecom.env.json';\n\nexport * from './types';\n\nexport const razorpayCollection: PostmanCollection = razorpayCollectionJson as unknown as PostmanCollection;\nexport const easyecomCollection: PostmanCollection = easyecomCollectionJson as unknown as PostmanCollection;\nexport const razorpayEnvironment: PostmanEnvironment = razorpayEnvironmentJson as unknown as PostmanEnvironment;\nexport const easyecomEnvironment: PostmanEnvironment = easyecomEnvironmentJson as unknown as PostmanEnvironment;\n\nconst registry: Record<\n CollectionName,\n {\n collection: PostmanCollection;\n environment: PostmanEnvironment;\n provider: string;\n docsUrl: string;\n }\n> = {\n razorpay: {\n collection: razorpayCollection,\n environment: razorpayEnvironment,\n provider: 'Razorpay Payments',\n docsUrl: 'https://razorpay.com/docs/api',\n },\n easyecom: {\n collection: easyecomCollection,\n environment: easyecomEnvironment,\n provider: 'EasyEcom WMS & ERP',\n docsUrl: 'https://api.easyecom.com/documentation',\n },\n};\n\n/**\n * List all available collections with endpoint counts and folders.\n */\nexport function listCollections(): CollectionSummary[] {\n return (Object.keys(registry) as CollectionName[]).map((key) => {\n const entry = registry[key];\n const folders = entry.collection.item.map((item) => item.name);\n let requestCount = 0;\n for (const folder of entry.collection.item) {\n if (folder.item) {\n requestCount += folder.item.length;\n } else if (folder.request) {\n requestCount += 1;\n }\n }\n\n return {\n id: key,\n name: entry.collection.info.name,\n provider: entry.provider,\n requestCount,\n folders,\n docsUrl: entry.docsUrl,\n };\n });\n}\n\n/**\n * Get a specific Postman Collection by name.\n */\nexport function getCollection(name: CollectionName): PostmanCollection {\n const entry = registry[name];\n if (!entry) {\n throw new Error(`Collection \"${name}\" not found. Available: ${Object.keys(registry).join(', ')}`);\n }\n return entry.collection;\n}\n\n/**\n * Get a specific Postman Environment by name.\n */\nexport function getEnvironment(name: CollectionName): PostmanEnvironment {\n const entry = registry[name];\n if (!entry) {\n throw new Error(`Environment \"${name}\" not found. Available: ${Object.keys(registry).join(', ')}`);\n }\n return entry.environment;\n}\n\n/**\n * Export collection and environment files to a specified directory.\n */\nexport function exportToDirectory(name: CollectionName | 'all', targetDir: string = process.cwd()): string[] {\n if (!fs.existsSync(targetDir)) {\n fs.mkdirSync(targetDir, { recursive: true });\n }\n\n const exportedFiles: string[] = [];\n const targets: CollectionName[] = name === 'all' ? (Object.keys(registry) as CollectionName[]) : [name];\n\n for (const item of targets) {\n const entry = registry[item];\n if (!entry) continue;\n\n const colFile = path.join(targetDir, `${item}.collection.json`);\n const envFile = path.join(targetDir, `${item}.env.json`);\n\n fs.writeFileSync(colFile, JSON.stringify(entry.collection, null, 2), 'utf8');\n fs.writeFileSync(envFile, JSON.stringify(entry.environment, null, 2), 'utf8');\n\n exportedFiles.push(colFile, envFile);\n }\n\n return exportedFiles;\n}\n"]}
@@ -0,0 +1,31 @@
1
+ {
2
+ "id": "easyecom-environment-template",
3
+ "name": "EasyEcom Environment (Boost Engine)",
4
+ "values": [
5
+ {
6
+ "key": "easyecom_base_url",
7
+ "value": "https://api.easyecom.com",
8
+ "type": "default",
9
+ "enabled": true
10
+ },
11
+ {
12
+ "key": "easyecom_api_token",
13
+ "value": "YOUR_EASYECOM_API_TOKEN_HERE",
14
+ "type": "secret",
15
+ "enabled": true
16
+ },
17
+ {
18
+ "key": "warehouse_id",
19
+ "value": "WH_PRIMARY_01",
20
+ "type": "default",
21
+ "enabled": true
22
+ },
23
+ {
24
+ "key": "sku",
25
+ "value": "TEE-ANIME-BLK-L",
26
+ "type": "default",
27
+ "enabled": true
28
+ }
29
+ ],
30
+ "_postman_variable_scope": "environment"
31
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "id": "razorpay-environment-template",
3
+ "name": "Razorpay Environment (Boost Engine)",
4
+ "values": [
5
+ {
6
+ "key": "razorpay_base_url",
7
+ "value": "https://api.razorpay.com",
8
+ "type": "default",
9
+ "enabled": true
10
+ },
11
+ {
12
+ "key": "razorpay_key_id",
13
+ "value": "rzp_test_YOUR_KEY_HERE",
14
+ "type": "secret",
15
+ "enabled": true
16
+ },
17
+ {
18
+ "key": "razorpay_key_secret",
19
+ "value": "YOUR_KEY_SECRET_HERE",
20
+ "type": "secret",
21
+ "enabled": true
22
+ },
23
+ {
24
+ "key": "order_id",
25
+ "value": "order_test_001",
26
+ "type": "default",
27
+ "enabled": true
28
+ },
29
+ {
30
+ "key": "payment_id",
31
+ "value": "pay_test_001",
32
+ "type": "default",
33
+ "enabled": true
34
+ },
35
+ {
36
+ "key": "refund_id",
37
+ "value": "rfnd_test_001",
38
+ "type": "default",
39
+ "enabled": true
40
+ },
41
+ {
42
+ "key": "local_webhook_url",
43
+ "value": "http://localhost:3000/api/webhooks/razorpay",
44
+ "type": "default",
45
+ "enabled": true
46
+ },
47
+ {
48
+ "key": "computed_webhook_signature",
49
+ "value": "sample_hmac_signature_hex",
50
+ "type": "default",
51
+ "enabled": true
52
+ }
53
+ ],
54
+ "_postman_variable_scope": "environment"
55
+ }
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@boostengine/collections",
3
+ "version": "1.0.0",
4
+ "description": "Production-ready Postman Collections & Environments for Indian eCommerce APIs (Razorpay, EasyEcom WMS, Shipping). Includes 1-click CLI export.",
5
+ "author": "Boost Engine <boostengine001@gmail.com>",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "postman",
9
+ "postman-collection",
10
+ "razorpay",
11
+ "easyecom",
12
+ "ecommerce-apis",
13
+ "payment-gateway",
14
+ "warehouse-management",
15
+ "india-ecommerce",
16
+ "api-testing",
17
+ "rest-api"
18
+ ],
19
+ "bin": {
20
+ "boost-collections": "./bin/cli.cjs"
21
+ },
22
+ "main": "./dist/index.cjs",
23
+ "module": "./dist/index.mjs",
24
+ "types": "./dist/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.mjs",
29
+ "require": "./dist/index.cjs"
30
+ }
31
+ },
32
+ "files": [
33
+ "collections",
34
+ "environments",
35
+ "bin",
36
+ "dist",
37
+ "README.md"
38
+ ],
39
+ "scripts": {
40
+ "build": "tsup",
41
+ "test": "node test-suite.cjs",
42
+ "sync": "node scripts/sync-upstream.cjs",
43
+ "prepublishOnly": "npm run build && npm test"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^20.14.0",
47
+ "tsup": "^8.3.5",
48
+ "typescript": "^5.6.3"
49
+ }
50
+ }