{"_id":"@decogro/n8n-nodes-decogro","_rev":"6-7236b24e084a8fa9a173e9c266a6716a","name":"@decogro/n8n-nodes-decogro","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@decogro/n8n-nodes-decogro","version":"1.0.0","keywords":["n8n","automation","workflow","decogro"],"author":{"name":"Decogro Dev Team"},"license":"MIT","_id":"@decogro/n8n-nodes-decogro@1.0.0","maintainers":[{"name":"harolddecogro","email":"harold@decogro.com"}],"n8n":{"nodes":["dist/nodes/Decogro/Decogro.node.js"],"credentials":["dist/nodes/Decogro/Decogro.credentials.js"]},"dist":{"shasum":"300c86bfbe9953d5fbea381f847ccd10458c716d","tarball":"https://registry.npmjs.org/@decogro/n8n-nodes-decogro/-/n8n-nodes-decogro-1.0.0.tgz","fileCount":15,"integrity":"sha512-n+OXWS16yfjUlPsIcssI3O34KOPOhUgwU8Q5fV7nzop2022zKS++tTYEN42Zn2hRBASOVma5hIllyZutxqgMog==","signatures":[{"sig":"MEYCIQD9dYt/owtZLRdFRGMIGe2UcZwcqPSnEjwsM6xm1FjsoAIhAN+EQBfWR6lt4QY9Km5vOzKHC4axwMlrTlERpqShO2ja","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108213},"main":"dist/index.js","gitHead":"6a1e6a9191e35c8dfd3757ee107c832dbab60312","scripts":{"dev":"tsc --watch","build":"tsc && npm run copy-assets","copy-assets":"copy nodes\\Decogro\\Decogro.icon.svg dist\\nodes\\Decogro\\"},"_npmUser":{"name":"harolddecogro","email":"harold@decogro.com"},"_npmVersion":"10.9.2","description":"n8n custom node for Decogro integrations","directories":{},"_nodeVersion":"22.13.0","dependencies":{"n8n-workflow":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^18.18.0"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-decogro_1.0.0_1756090759764_0.0008733829650136027","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@decogro/n8n-nodes-decogro","version":"1.0.1","keywords":["n8n","automation","workflow","decogro"],"author":{"name":"Decogro Dev Team"},"license":"MIT","_id":"@decogro/n8n-nodes-decogro@1.0.1","maintainers":[{"name":"harolddecogro","email":"harold@decogro.com"}],"n8n":{"nodes":["dist/nodes/Decogro/Decogro.node.js"],"credentials":["dist/nodes/Decogro/Decogro.credentials.js"]},"dist":{"shasum":"1ab619bd095866f09400f5ce6e598386d1e1e656","tarball":"https://registry.npmjs.org/@decogro/n8n-nodes-decogro/-/n8n-nodes-decogro-1.0.1.tgz","fileCount":15,"integrity":"sha512-hmz7qBIF2mR6tIYLhUlIJQdPoFfYIfdflvwvUvP7UvePKDTKVEjLBHRipcqdTvXk6hX4vS8Vbca9Z48jL2VMNA==","signatures":[{"sig":"MEUCIQDByAr1boYBg0MHsly9/w45K2MSA98MiL/lYIvQDaJwPwIgNYZ/9O8wVCBoZNS9QfHWAmXQRAoWw4sJ+/lvl07QMKM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123017},"main":"dist/index.js","gitHead":"4debcd7fb0172ac1074c39ac38472f930a690881","scripts":{"dev":"tsc --watch","build":"tsc && npm run copy-assets","copy-assets":"copy nodes\\Decogro\\Decogro.icon.svg dist\\nodes\\Decogro\\"},"_npmUser":{"name":"harolddecogro","email":"harold@decogro.com"},"_npmVersion":"10.9.2","description":"n8n custom node for Decogro integrations","directories":{},"_nodeVersion":"22.13.0","dependencies":{"n8n-workflow":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^18.18.0"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-decogro_1.0.1_1756306620463_0.08312283215880112","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@decogro/n8n-nodes-decogro","version":"1.0.2","keywords":["n8n","automation","workflow","decogro"],"author":{"name":"Decogro Dev Team"},"license":"MIT","_id":"@decogro/n8n-nodes-decogro@1.0.2","maintainers":[{"name":"harolddecogro","email":"harold@decogro.com"}],"n8n":{"nodes":["dist/nodes/Decogro/Decogro.node.js"],"credentials":["dist/nodes/Decogro/Decogro.credentials.js"]},"dist":{"shasum":"ad4b7d607c7a15afe59aa0db0d3e062502bf869d","tarball":"https://registry.npmjs.org/@decogro/n8n-nodes-decogro/-/n8n-nodes-decogro-1.0.2.tgz","fileCount":15,"integrity":"sha512-cLl/3kxoPhUjJJU3Oja+GCkV3iXnitxOy3Es4UvhGbmBY/aakFFrFztZpo5GTKasbF6+ZO4MoMg+REae6z3xBQ==","signatures":[{"sig":"MEQCID6nrhTOHbnD487gunUx1IexFZNuJ60S7d3QRWe9vrMkAiBsv1ITaCgI3GTbPpnHIMoNV/GVEqsO9Qpma7pbaYclMQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130825},"main":"dist/index.js","gitHead":"02889216dcae697ab65a37c7026575a09eea2025","scripts":{"dev":"tsc --watch","build":"tsc && npm run copy-assets","copy-assets":"copy nodes\\Decogro\\Decogro.icon.svg dist\\nodes\\Decogro\\"},"_npmUser":{"name":"harolddecogro","email":"harold@decogro.com"},"_npmVersion":"10.9.2","description":"n8n custom node for Decogro integrations","directories":{},"_nodeVersion":"22.13.0","dependencies":{"n8n-workflow":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^18.18.0"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-decogro_1.0.2_1756393147252_0.48801073938893325","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@decogro/n8n-nodes-decogro","version":"1.0.3","keywords":["n8n","automation","workflow","decogro"],"author":{"name":"Decogro Dev Team"},"license":"MIT","_id":"@decogro/n8n-nodes-decogro@1.0.3","maintainers":[{"name":"harolddecogro","email":"harold@decogro.com"}],"n8n":{"nodes":["dist/nodes/Decogro/Decogro.node.js"],"credentials":["dist/nodes/Decogro/Decogro.credentials.js"]},"dist":{"shasum":"026adf8086c8a368be418c91ee65d279d0e45df3","tarball":"https://registry.npmjs.org/@decogro/n8n-nodes-decogro/-/n8n-nodes-decogro-1.0.3.tgz","fileCount":15,"integrity":"sha512-isFVY43M46gdYYhjgf98qnTstOe8/4J+vXRGWhU8WLELNo9w1+WOrTZj8JxZajJrx2TTp4g+Qw8UQsUfhgxveg==","signatures":[{"sig":"MEUCIQC/RzIB5IEWPVbv/bDe17Ko1fTATj2KdhELUDpxJJHSiwIgGGAA3SXGkWaw1gnyiQLRSlXLM6wJGyBIZQ85iD8mMbI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":137260},"main":"dist/index.js","gitHead":"002a031048ee50709d2bddfc11e6d713225e590d","scripts":{"dev":"tsc --watch","build":"tsc && npm run copy-assets","copy-assets":"copy nodes\\Decogro\\Decogro.icon.svg dist\\nodes\\Decogro\\"},"_npmUser":{"name":"harolddecogro","email":"harold@decogro.com"},"_npmVersion":"10.9.2","description":"n8n custom node for Decogro integrations","directories":{},"_nodeVersion":"22.13.0","dependencies":{"n8n-workflow":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^18.18.0"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-decogro_1.0.3_1756479580793_0.7910818367551078","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@decogro/n8n-nodes-decogro","version":"1.0.4","keywords":["n8n","automation","workflow","decogro"],"author":{"name":"Decogro Dev Team"},"license":"MIT","_id":"@decogro/n8n-nodes-decogro@1.0.4","maintainers":[{"name":"harolddecogro","email":"harold@decogro.com"}],"n8n":{"nodes":["dist/nodes/Decogro/Decogro.node.js"],"credentials":["dist/nodes/Decogro/Decogro.credentials.js"]},"dist":{"shasum":"589d07e416cc638de8c0537c1d8ab6027484b5ab","tarball":"https://registry.npmjs.org/@decogro/n8n-nodes-decogro/-/n8n-nodes-decogro-1.0.4.tgz","fileCount":15,"integrity":"sha512-Z/XQ2NpyFeWmWsGsI4IFeeZuKQKpCyRcQlmgMAynXkS80DODqEx59bX/F22ibGmhs1KiwJnaY3Mcrjv1ePGfFA==","signatures":[{"sig":"MEYCIQCMXgko15wcOX2mTBLCdjkfbEM1LMoaSOLyE4/r15+PNAIhAKp2suRORn2oVZsfJcZHomrY7uj/F2Vk6iy8swO2cLzQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":138441},"main":"dist/index.js","gitHead":"27eeb00c9320257f9ca4781677ebdbc39b539652","scripts":{"dev":"tsc --watch","build":"tsc && npm run copy-assets","copy-assets":"copy nodes\\Decogro\\Decogro.icon.svg dist\\nodes\\Decogro\\"},"_npmUser":{"name":"harolddecogro","email":"harold@decogro.com"},"_npmVersion":"10.9.2","description":"n8n custom node for Decogro integrations","directories":{},"_nodeVersion":"22.13.0","dependencies":{"n8n-workflow":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^18.18.0"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-decogro_1.0.4_1757602610064_0.9435251907700453","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@decogro/n8n-nodes-decogro","version":"1.0.5","description":"n8n custom node for Decogro integrations","author":{"name":"Decogro Dev Team"},"license":"MIT","main":"dist/index.js","scripts":{"build":"tsc && npm run copy-assets","dev":"tsc --watch","copy-assets":"copy nodes\\Decogro\\Decogro.icon.svg dist\\nodes\\Decogro\\"},"keywords":["n8n","automation","workflow","decogro"],"n8n":{"nodes":["dist/nodes/Decogro/Decogro.node.js"],"credentials":["dist/nodes/Decogro/Decogro.credentials.js"]},"dependencies":{"n8n-workflow":"^1.0.0"},"devDependencies":{"typescript":"^5.5.0","@types/node":"^18.18.0"},"_id":"@decogro/n8n-nodes-decogro@1.0.5","gitHead":"6a093c2fd6f1b0c6ff05537a2748004656433497","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Kjl7tlnNkzaA3SeVPJ2nTRLN8AHRxiClHgsEq9oea2FQ5Ll3UcOFRdl6WIfUhmf7Paulq/zZC55D4Cr+2zv2Mg==","shasum":"bd9ddb2115aeb0da5e760fc4907f23dc8ec44345","tarball":"https://registry.npmjs.org/@decogro/n8n-nodes-decogro/-/n8n-nodes-decogro-1.0.5.tgz","fileCount":16,"unpackedSize":138585,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICPmlcJBbeLqndG+jpLja891+8uZIPQNkDHmAIrSey/mAiEA0p/0z4CD4gvYONTWx0kOHuaEsk99zI/SY092iteUgyw="}]},"_npmUser":{"name":"harolddecogro","email":"harold@decogro.com"},"directories":{},"maintainers":[{"name":"harolddecogro","email":"harold@decogro.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/n8n-nodes-decogro_1.0.5_1762959458336_0.4011385205489364"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-25T02:59:19.691Z","modified":"2025-11-12T14:57:38.727Z","1.0.0":"2025-08-25T02:59:19.907Z","1.0.1":"2025-08-27T14:57:00.649Z","1.0.2":"2025-08-28T14:59:07.445Z","1.0.3":"2025-08-29T14:59:41.006Z","1.0.4":"2025-09-11T14:56:50.237Z","1.0.5":"2025-11-12T14:57:38.515Z"},"author":{"name":"Decogro Dev Team"},"license":"MIT","keywords":["n8n","automation","workflow","decogro"],"description":"n8n custom node for Decogro integrations","maintainers":[{"name":"harolddecogro","email":"harold@decogro.com"}],"readme":"# n8n Decogro Node\r\n\r\nA comprehensive n8n custom node for integrating with Decogro API services. This node provides complete access to Decogro's order management, contact management, company management, file operations, and administrative functions.\r\n\r\n## Features\r\n\r\n- 🎯 **Resource-Based Organization** - Operations grouped into logical categories\r\n- 📦 **Order Management** - Create, update, retrieve orders and manage order items\r\n- 👥 **Contact & Company Management** - Full CRUD operations for contacts and companies\r\n- 📁 **File Operations** - Upload and retrieve files\r\n- ⚙️ **Admin Operations** - Access approvals, fees, delivery methods, and more\r\n- 🔐 **Secure Authentication** - Bearer token authentication\r\n- 📊 **Pagination Support** - Built-in limit/offset pagination for list operations\r\n\r\n## Installation\r\n\r\n1. Clone this repository\r\n2. Install dependencies:\r\n   ```bash\r\n   npm install\r\n   ```\r\n3. Build the project:\r\n   ```bash\r\n   npm run build\r\n   ```\r\n4. Copy the `dist` folder to your n8n custom nodes directory\r\n\r\n## Usage\r\n\r\n### Setup Credentials\r\n\r\n1. In n8n, go to Settings > Credentials\r\n2. Add new credentials and select \"Decogro API\"\r\n3. Enter your:\r\n   - **API Key**: Your Decogro API key (Bearer token format)\r\n   - **Base URL**: Your Decogro API base URL (e.g., `http://localhost:3000/`)\r\n\r\n### Using the Node\r\n\r\n1. Add the \"Decogro\" node to your workflow\r\n2. Select a **Resource** from the dropdown:\r\n   - **Order** - Order-related operations\r\n   - **Contact** - Contact management\r\n   - **Company** - Company management\r\n   - **Files** - File operations\r\n   - **Admin** - Administrative functions\r\n3. Choose an **Operation** within that resource\r\n4. Configure any required parameters (IDs, JSON bodies, etc.)\r\n\r\n## Available Operations\r\n\r\n### 📦 Order Operations\r\n- **Get Orders** - Retrieve orders with pagination\r\n- **Create Order** - Create new orders with detailed specifications\r\n- **Update Order** - Update existing orders\r\n- **Get Order Items** - Retrieve items for a specific order\r\n- **Add Manual Payment** - Add manual payments to orders\r\n- **Add Approval** - Add approval requests to orders\r\n- **Create Order Imprint** - Create imprints for order groups\r\n- **Recalculate Group** - Recalculate pricing for order groups\r\n- **Request Payment** - Send payment requests for orders\r\n\r\n### 👥 Contact Operations\r\n- **Get Contacts** - Retrieve contacts with search and pagination\r\n- **Create Contact** - Create new contacts\r\n- **Update Contact** - Update existing contacts\r\n- **Get Contact Addresses** - Retrieve addresses for contacts\r\n- **Add Contact Address** - Add addresses to contacts\r\n\r\n### 🏢 Company Operations\r\n- **Get Companies** - Retrieve companies with search and pagination\r\n- **Create Company** - Create new companies\r\n- **Update Company** - Update existing companies\r\n\r\n### 📁 Files Operations\r\n- **Get Files** - Retrieve file listings with pagination\r\n- **Upload File** - Upload files using binary data\r\n\r\n### ⚙️ Admin Operations\r\n- **Get Approvals** - Retrieve approval configurations\r\n- **Get Fees** - Retrieve fee structures\r\n- **Get Delivery Methods** - Retrieve delivery options\r\n- **Get Payment Terms** - Retrieve payment term configurations\r\n- **Get Categories** - Retrieve product categories\r\n- **Get Pricing Matrices** - Retrieve pricing matrix configurations\r\n- **Get Users** - Retrieve user accounts\r\n- **Get Email Templates** - Retrieve email template configurations\r\n\r\n## Development\r\n\r\n- `npm run build` - Build the project\r\n- `npm run dev` - Build in watch mode\r\n- `npm run copy-assets` - Copy icon assets to dist folder\r\n\r\n## Configuration Examples\r\n\r\n### Creating an Order\r\n```json\r\n{\r\n  \"name\": \"Summer T-Shirt Order\",\r\n  \"customer\": {\r\n    \"contact_id\": 1,\r\n    \"billing_address\": {\r\n      \"company\": \"ABC Company\",\r\n      \"billing_name\": \"John Doe\",\r\n      \"billing_address1\": \"123 Main St\",\r\n      \"billing_city\": \"New York\",\r\n      \"billing_state\": \"NY\",\r\n      \"billing_zip\": \"10001\"\r\n    }\r\n  },\r\n  \"info\": {\r\n    \"in_hands_date\": \"2025-09-19\",\r\n    \"delivery_method\": 1,\r\n    \"owner\": 1\r\n  },\r\n  \"line_groups\": [{\r\n    \"items\": [{\r\n      \"category_id\": 1,\r\n      \"description\": \"Cotton T-Shirt\",\r\n      \"price\": 10,\r\n      \"qty\": 50\r\n    }]\r\n  }]\r\n}\r\n```\r\n\r\n### Creating a Contact\r\n```json\r\n{\r\n  \"First Name\": \"John\",\r\n  \"Last Name\": \"Doe\",\r\n  \"Email\": \"john.doe@example.com\",\r\n  \"Phone\": \"+1-555-0123\",\r\n  \"Company\": 1,\r\n  \"Job Title\": \"Manager\"\r\n}\r\n```\r\n\r\n## Output Format\r\n\r\nAll operations return a structured response:\r\n```json\r\n{\r\n  \"operation\": \"getOrders\",\r\n  \"data\": {\r\n    // API response data\r\n  },\r\n  \"metadata\": {\r\n    \"method\": \"GET\",\r\n    \"endpoint\": \"order\",\r\n    \"timestamp\": \"2025-01-27T10:30:00.000Z\",\r\n    \"limit\": 10,\r\n    \"offset\": 0,\r\n    \"page\": 1\r\n  }\r\n}\r\n```\r\n\r\n## Error Handling\r\n\r\nThe node supports error handling through n8n's continue-on-fail mechanism. Failed requests return:\r\n```json\r\n{\r\n  \"error\": \"Error message\",\r\n  \"operation\": \"operationName\",\r\n  \"timestamp\": \"2025-01-27T10:30:00.000Z\"\r\n}\r\n```\r\n\r\n## API Compatibility\r\n\r\nThis node is designed to work with Decogro API endpoints and supports:\r\n- Bearer token authentication\r\n- JSON request/response format\r\n- File upload via multipart/form-data\r\n- Standard HTTP methods (GET, POST, PATCH)\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}