{"_id":"@digitalnodecom/node-red-contrib-servicetrade","_rev":"12-e3c527fcc3e9a3f36fa013113ef8a681","name":"@digitalnodecom/node-red-contrib-servicetrade","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.3":{"name":"@digitalnodecom/node-red-contrib-servicetrade","version":"1.0.3","keywords":["node-red","auth","config-node"],"author":{"name":"Marko Matevski"},"license":"MIT","_id":"@digitalnodecom/node-red-contrib-servicetrade@1.0.3","maintainers":[{"name":"trajcheee","email":"trajche@kralev.eu"},{"name":"riste","email":"riste@digitalnode.com"},{"name":"bojanataseva","email":"bojana@digitalnode.com"}],"dist":{"shasum":"0aa0dee1f01e90f284a561951231e57702bdb353","tarball":"https://registry.npmjs.org/@digitalnodecom/node-red-contrib-servicetrade/-/node-red-contrib-servicetrade-1.0.3.tgz","fileCount":12,"integrity":"sha512-UywuZ8PQxq09M2mj5m2usIgIgGvFyXtJRvW1VnF5ZYHjbcTxroReZK8QalfolRQCNdVpXkY5L/11jiaLTpJyXQ==","signatures":[{"sig":"MEUCIQDGtjmrXwWzCENrqmSwW/2tzCT7DhwifAeU6v8QEVn9lQIgTqfkebvXkg+9oWAMacYWpOCqh3t4bqH8WUr0X/as13c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34440},"main":"auth-config-node.js","_npmUser":{"name":"bojanataseva","email":"bojana@digitalnode.com"},"node-red":{"nodes":{"json-to-csv":"json-to-csv.js","st-data-node":"st-data-node.js","auth-config-node":"auth-config-node.js"}},"repository":{"url":"https://github.com/digitalnodecom/node-red-contrib-servicetrade","type":"git"},"description":"A custom Node-RED config node for ServiceTrade API authentication and GET method","directories":{},"dependencies":{"axios":"^1.0.0","json2csv":"^6.0.0-alpha.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-servicetrade_1.0.3_1741635937743_0.11595035977072277","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@digitalnodecom/node-red-contrib-servicetrade","version":"1.1.0","keywords":["node-red","auth","config-node"],"author":{"name":"Marko Matevski"},"license":"MIT","_id":"@digitalnodecom/node-red-contrib-servicetrade@1.1.0","maintainers":[{"name":"trajcheee","email":"trajche@kralev.eu"},{"name":"riste","email":"riste@digitalnode.com"},{"name":"bojanataseva","email":"bojana@digitalnode.com"}],"dist":{"shasum":"9cdaebedd0a98d20897006a84e9d1163d1f74b3d","tarball":"https://registry.npmjs.org/@digitalnodecom/node-red-contrib-servicetrade/-/node-red-contrib-servicetrade-1.1.0.tgz","fileCount":12,"integrity":"sha512-AC0/gaAdPQlwnKBP5dysZD8eUCbeY3y0jmrZm+AB4K3c5ltgmsmBtINPOrqLJZxC1wrCr4ULNlII1PLYT5w6JA==","signatures":[{"sig":"MEUCIEdVWG5dGMh5wxhi9OVG+s+rJ3T+EVOeNIUFegvQF21JAiEAoN2nO5vY4wAtxH6djPevqRLPnaYpZBA2WiQGq7bxKHE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38156},"main":"auth-config-node.js","_npmUser":{"name":"bojanataseva","email":"bojana@digitalnode.com"},"node-red":{"nodes":{"json-to-csv":"json-to-csv.js","st-data-node":"st-data-node.js","auth-config-node":"auth-config-node.js"}},"repository":{"url":"https://github.com/digitalnodecom/node-red-contrib-servicetrade","type":"git"},"description":"A custom Node-RED config node for ServiceTrade API authentication and GET method","directories":{},"dependencies":{"axios":"^1.0.0","json2csv":"^6.0.0-alpha.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-servicetrade_1.1.0_1744045379277_0.3885592317872473","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@digitalnodecom/node-red-contrib-servicetrade","version":"1.1.1","keywords":["node-red","auth","config-node"],"author":{"name":"Marko Matevski"},"license":"MIT","_id":"@digitalnodecom/node-red-contrib-servicetrade@1.1.1","maintainers":[{"name":"trajcheee","email":"trajche@kralev.eu"},{"name":"riste","email":"riste@digitalnode.com"},{"name":"bojanataseva","email":"bojana@digitalnode.com"}],"dist":{"shasum":"ab1318acb8f6e6cb6e6811924259d13735a89e46","tarball":"https://registry.npmjs.org/@digitalnodecom/node-red-contrib-servicetrade/-/node-red-contrib-servicetrade-1.1.1.tgz","fileCount":12,"integrity":"sha512-SpvxlL/zRPkcsEM+cYl3rc4TcOVDUxnTcuq51Om0i/Rkz/ymawI34gHTCSSHj2mqGBMxk9nS95SLJ4VP4yc8Lg==","signatures":[{"sig":"MEQCIHeLftvXSwP/OSk09cKtLiRC4mID8MPjbrSavy3HDjtuAiBr/Oe/GqODapXwOesC6btm1UmeMWm3eKia2SBGSI1r6w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38341},"main":"auth-config-node.js","_npmUser":{"name":"bojanataseva","email":"bojana@digitalnode.com"},"node-red":{"nodes":{"json-to-csv":"json-to-csv.js","st-data-node":"st-data-node.js","auth-config-node":"auth-config-node.js"}},"repository":{"url":"https://github.com/digitalnodecom/node-red-contrib-servicetrade","type":"git"},"description":"A custom Node-RED config node for ServiceTrade API authentication and GET method","directories":{},"dependencies":{"axios":"^1.0.0","json2csv":"^6.0.0-alpha.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-servicetrade_1.1.1_1744204519143_0.1438566071641938","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@digitalnodecom/node-red-contrib-servicetrade","version":"1.2.0","keywords":["node-red","auth","config-node"],"author":{"name":"Marko Matevski"},"license":"MIT","_id":"@digitalnodecom/node-red-contrib-servicetrade@1.2.0","maintainers":[{"name":"trajcheee","email":"trajche@kralev.eu"},{"name":"riste","email":"riste@digitalnode.com"},{"name":"bojanataseva","email":"bojana@digitalnode.com"},{"name":"kic10","email":"hristijan@digitalnode.com"}],"dist":{"shasum":"fce75ee7ad139f69e5d1bc9983b57797d37d21f8","tarball":"https://registry.npmjs.org/@digitalnodecom/node-red-contrib-servicetrade/-/node-red-contrib-servicetrade-1.2.0.tgz","fileCount":12,"integrity":"sha512-tshT0hzwWu0G/VYJge8J/2jqUL6ZMi37dok6sR/askQipVNy/VX1g4fz+qktvWgA0Xz9eaVWBQgmSL/W0vYa9A==","signatures":[{"sig":"MEQCICehQUN33IkF09iKabtRvB5o2fJObCKzB16/Nbh6UH/sAiA5ciSxYQBO5hB5Zd1FC6NXFmbMLvvT3ix0XLiK+3Sx+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38593},"main":"auth-config-node.js","_npmUser":{"name":"bojanataseva","email":"bojana@digitalnode.com"},"node-red":{"nodes":{"json-to-csv":"json-to-csv.js","st-data-node":"st-data-node.js","auth-config-node":"auth-config-node.js"}},"repository":{"url":"https://github.com/digitalnodecom/node-red-contrib-servicetrade","type":"git"},"description":"A custom Node-RED config node for ServiceTrade API authentication and GET method","directories":{},"dependencies":{"axios":"^1.0.0","json2csv":"^6.0.0-alpha.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/node-red-contrib-servicetrade_1.2.0_1754578061722_0.408926423988234","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-03-10T19:45:37.651Z","modified":"2026-01-13T22:33:55.318Z","1.0.1":"2025-03-10T18:16:33.841Z","1.0.2":"2025-03-10T18:44:07.485Z","1.0.3":"2025-03-10T19:45:37.962Z","1.1.0":"2025-04-07T17:02:59.454Z","1.1.1":"2025-04-09T13:15:19.306Z","1.2.0":"2025-08-07T14:47:41.930Z"},"author":{"name":"Marko Matevski"},"license":"MIT","keywords":["node-red","auth","config-node"],"repository":{"url":"https://github.com/digitalnodecom/node-red-contrib-servicetrade","type":"git"},"description":"A custom Node-RED config node for ServiceTrade API authentication and GET method","maintainers":[{"email":"trajche@kralev.eu","name":"trajcheee"},{"email":"simon@digitalnode.com","name":"simonanastasov"}],"readme":"# ServiceTrade GET Data Node\n\n## Overview\n\nThe ServiceTrade GET Data Node is a Node-RED node that enables you to make GET requests to the ServiceTrade API. This node requires authentication through a separate Auth Config Node that manages your ServiceTrade credentials.\n\n## Prerequisites\n\n- Node-RED installed and running\n- Valid ServiceTrade account credentials\n- Auth Config Node installed and configured\n\n\n### Configuration Fields\n\n| Field | Description |\n|-------|-------------|\n| Name | A name to identify this node in your flow |\n| Auth Config | Select the Auth Config Node that contains your ServiceTrade credentials |\n| URL | The base URL for the ServiceTrade API (typically `https://api.servicetrade.com/api`) |\n| Objects | Select from a comprehensive list of ServiceTrade objects to query |\n| Limit | The maximum number of records to return per request |\n| Page | The page number for paginated results |\n\n### Available ServiceTrade Objects\n\nThe node supports all ServiceTrade API objects, including:\n\n- Account\n- Activity\n- Appointment\n- Asset\n- Contact\n- Contract\n- Invoice\n- Job\n- Quote\n- User\n- ...and many more (see dropdown in the node configuration for the complete list)\n\n## Usage Examples\n\n### Basic GET Request\n\n1. Configure the Auth Config Node with your ServiceTrade credentials\n2. Configure the GET Data Node with:\n   - Auth Config: Your auth node\n   - URL: `https://api.servicetrade.com/api`\n   - Objects: `job`\n   - Limit: 10\n   - Page: 1\n\nThis will retrieve the first 10 jobs from your ServiceTrade account.\n\n### Dynamic Requests\n\nYou can override the node's configuration using message properties:\n\n```javascript\nmsg.url = \"https://api.servicetrade.com/api\";\nmsg.payload = {\n    servicetradeobject: \"quote\"\n};\nmsg.limit = 20;\nmsg.page = 2;\nreturn msg;\n```\n\n## Input\n\nThe node accepts the following inputs through the incoming message:\n\n| Property | Type | Description |\n|----------|------|-------------|\n| `msg.url` | String | Overrides the configured URL |\n| `msg.servicetradeobject` | String | Overrides the configured ServiceTrade object |\n| `msg.limit` | Number | Overrides the configured limit |\n| `msg.page` | Number | Overrides the configured page |\n\n\n## Error Handling\n\nThe node will report errors in the following situations:\n- Auth Config is not set\n- URL is not specified\n- Authentication fails\n- API request fails\n\n## Notes on Authentication\n\nThis node works in conjunction with the Auth Config Node, which manages your ServiceTrade credentials. The Auth Config Node:\n\n1. Securely stores your username and password\n2. Obtains an authentication token from the ServiceTrade API\n3. Provides this token to the GET Data Node for API requests\n\n\n## Troubleshooting\n\n- **Error: Auth Config not set** - Ensure you have created and selected an Auth Config Node\n- **Error: URL not specified** - Verify that either the URL field is configured or `msg.url` is provided\n- **Authentication errors** - Check your username and password in the Auth Config Node\n- **API errors** - Refer to the ServiceTrade API documentation for specific error codes\n\n","readmeFilename":"README.md"}