{"_id":"@dms-one/n8n-nodes-flex","_rev":"6-71d1c2237f33d22723419611ed8910ea","name":"@dms-one/n8n-nodes-flex","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@dms-one/n8n-nodes-flex","version":"0.1.0","keywords":["n8n-community-node-package"],"author":{"name":"Zoltan Tolnai","email":"tolnai.zoltan@dmsone.hu"},"license":"MIT","_id":"@dms-one/n8n-nodes-flex@0.1.0","maintainers":[{"name":"tolnai.zoltan.dms","email":"tolnai.zoltan@dmsone.hu"}],"homepage":"https://github.com/dmsreg/n8n-nodes-dmsone-flex#readme","bugs":{"url":"https://github.com/dmsreg/n8n-nodes-dmsone-flex/issues"},"n8n":{"nodes":["dist/nodes/Flex/Flex.node.js"],"strict":true,"credentials":["dist/credentials/FlexApi.credentials.js"],"n8nNodesApiVersion":1},"dist":{"shasum":"5fba47878fd54cb99fa8a9c0b74e2ef39d1f6767","tarball":"https://registry.npmjs.org/@dms-one/n8n-nodes-flex/-/n8n-nodes-flex-0.1.0.tgz","fileCount":25,"integrity":"sha512-BK51R8lErFfVf+yjfbNC8PGpCjot7cj5jNo71jUgi1KTCyBeasQF+hzh4V+FbCJC78AXosx4CLgRHloVTbZDzw==","signatures":[{"sig":"MEQCIFEow03VZ1N73uvoOLawZWJzewJDw4b6RwchdwLT8yZbAiAYudZ2kLdS2Qb+oQYBbWYDGXYGqS8kWsYwt6DMnC42zA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":173949},"gitHead":"ab9903da3ecdecf143278184213ed30ba1bc6132","scripts":{"dev":"n8n-node dev","lint":"n8n-node lint","build":"n8n-node build","release":"n8n-node release","lint:fix":"n8n-node lint --fix","build:watch":"tsc --watch","prepublishOnly":"n8n-node prerelease"},"_npmUser":{"name":"tolnai.zoltan.dms","email":"tolnai.zoltan@dmsone.hu"},"repository":{"url":"git+https://github.com/dmsreg/n8n-nodes-dmsone-flex.git","type":"git"},"_npmVersion":"10.9.3","description":"A n8n node package to interact with Flex API","directories":{},"_nodeVersion":"22.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.32.0","prettier":"3.6.2","release-it":"^19.0.4","typescript":"5.9.2","@types/node":"^24.10.1","@n8n/node-cli":"*"},"peerDependencies":{"n8n-workflow":"*"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-flex_0.1.0_1776341647047_0.8299140748375458","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@dms-one/n8n-nodes-flex","version":"0.1.2","keywords":["n8n-community-node-package"],"author":{"name":"Zoltan Tolnai","email":"tolnai.zoltan@dmsone.hu"},"license":"MIT","_id":"@dms-one/n8n-nodes-flex@0.1.2","maintainers":[{"name":"tolnai.zoltan.dms","email":"tolnai.zoltan@dmsone.hu"}],"homepage":"https://github.com/dmsreg/n8n-nodes-dmsone-flex#readme","bugs":{"url":"https://github.com/dmsreg/n8n-nodes-dmsone-flex/issues"},"n8n":{"nodes":["dist/nodes/Flex/Flex.node.js"],"strict":true,"credentials":["dist/credentials/FlexApi.credentials.js"],"n8nNodesApiVersion":1},"dist":{"shasum":"4b0d41cf0da887d7085e7b170f7b340ab452e58f","tarball":"https://registry.npmjs.org/@dms-one/n8n-nodes-flex/-/n8n-nodes-flex-0.1.2.tgz","fileCount":25,"integrity":"sha512-yfQbz8E2lHnMM1qNykJRyiEWgNdOAbQEjctDTOTJaPeTUPH9uJqJ5kh0Fa0rx1FxIkAT1E8rxi9iRWp0WKHLZw==","signatures":[{"sig":"MEUCIQC8yZlCv01gOeJK4XTFOKcd8kIpumC8hZRkLiobVSOLAgIgd/d/aQgIk7AbtxO0wl5dqBc2qDqCdrkBUndETAcEySM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dms-one%2fn8n-nodes-flex@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":188116},"gitHead":"c60947992b912b80e444800bf97a1d996ca5836e","scripts":{"dev":"n8n-node dev","lint":"n8n-node lint","build":"n8n-node build","release":"n8n-node release","lint:fix":"n8n-node lint --fix","build:watch":"tsc --watch","prepublishOnly":"n8n-node prerelease"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7b3b9e80-0b9b-4ecc-b8a2-277a25996dbc"}},"repository":{"url":"git+https://github.com/dmsreg/n8n-nodes-dmsone-flex.git","type":"git"},"_npmVersion":"11.11.0","description":"A n8n node package to interact with Flex API","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.32.0","prettier":"3.6.2","release-it":"^19.0.4","typescript":"5.9.2","@types/node":"^24.10.1","@n8n/node-cli":"^0.23.0"},"peerDependencies":{"n8n-workflow":"*"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-flex_0.1.2_1776347160634_0.6698945767675153","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@dms-one/n8n-nodes-flex","version":"0.1.3","keywords":["n8n-community-node-package"],"author":{"name":"Zoltan Tolnai","email":"tolnai.zoltan@dmsone.hu"},"license":"MIT","_id":"@dms-one/n8n-nodes-flex@0.1.3","maintainers":[{"name":"yanoo","email":"negyes.janos@dmsone.hu"},{"name":"nagydaniel","email":"nagy.daniel@dmsone.hu"},{"name":"tolnai.zoltan.dms","email":"tolnai.zoltan@dmsone.hu"}],"homepage":"https://github.com/dmsreg/n8n-nodes-dmsone-flex.git","bugs":{"url":"https://github.com/dmsreg/n8n-nodes-dmsone-flex/issues"},"n8n":{"nodes":["dist/nodes/Flex/Flex.node.js"],"strict":true,"credentials":["dist/credentials/FlexApi.credentials.js"],"n8nNodesApiVersion":1},"dist":{"shasum":"fff4b3af77f38ae5eae0e7314e71ce8f9e709226","tarball":"https://registry.npmjs.org/@dms-one/n8n-nodes-flex/-/n8n-nodes-flex-0.1.3.tgz","fileCount":25,"integrity":"sha512-ZBQ93qZSx3H4lhXQLr7/KOCk9pcEsg2dCi1CE3bG3wnrfVu0Gbi8gTiMmBFhpo2IcaMQOCXaRXEcGYgIT+NipA==","signatures":[{"sig":"MEUCIQCVVPtQ6MiT1GS69Al01BLBuL8UkyLcadXZoZJDMyYImAIgd8satMVVCHa3vhfe2um9N9A/M/JYtJos1kmy1EBLWr4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dms-one%2fn8n-nodes-flex@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":193073},"gitHead":"ec65cf56a62a6433e0f8cb207dfe8a3911726776","scripts":{"dev":"n8n-node dev","lint":"n8n-node lint","build":"n8n-node build","release":"n8n-node release","lint:fix":"n8n-node lint --fix","build:watch":"tsc --watch","prepublishOnly":"n8n-node prerelease"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7b3b9e80-0b9b-4ecc-b8a2-277a25996dbc"}},"repository":{"url":"git+https://github.com/dmsreg/n8n-nodes-dmsone-flex.git","type":"git"},"_npmVersion":"11.11.0","description":"A n8n node package to interact with Flex API","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"eslint":"9.32.0","prettier":"3.6.2","release-it":"^19.0.4","typescript":"5.9.2","@types/node":"^24.10.1","@n8n/node-cli":"^0.23.0"},"peerDependencies":{"n8n-workflow":"*"},"_npmOperationalInternal":{"tmp":"tmp/n8n-nodes-flex_0.1.3_1778074698023_0.1013515687391","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@dms-one/n8n-nodes-flex","version":"0.1.4","description":"A n8n node package to interact with Flex API","license":"MIT","homepage":"https://github.com/dmsreg/n8n-nodes-dmsone-flex.git","keywords":["n8n-community-node-package"],"author":{"name":"Zoltan Tolnai","email":"tolnai.zoltan@dmsone.hu"},"repository":{"type":"git","url":"git+https://github.com/dmsreg/n8n-nodes-dmsone-flex.git"},"scripts":{"build":"n8n-node build","build:watch":"tsc --watch","dev":"n8n-node dev","lint":"n8n-node lint","lint:fix":"n8n-node lint --fix","release":"n8n-node release","prepublishOnly":"n8n-node prerelease"},"n8n":{"n8nNodesApiVersion":1,"strict":true,"credentials":["dist/credentials/FlexApi.credentials.js"],"nodes":["dist/nodes/Flex/Flex.node.js"]},"devDependencies":{"@n8n/node-cli":"^0.23.0","@types/node":"^24.10.1","eslint":"9.32.0","prettier":"3.6.2","release-it":"^19.0.4","typescript":"5.9.2"},"peerDependencies":{"n8n-workflow":"*"},"publishConfig":{"access":"public","provenance":true},"gitHead":"36057b956be6497dd5b137d567ad675693aac73c","_id":"@dms-one/n8n-nodes-flex@0.1.4","bugs":{"url":"https://github.com/dmsreg/n8n-nodes-dmsone-flex/issues"},"_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-m3VQsRdikCE90kSHrnciCFfov+lI0FNVsTjHT6/DtB+D+ab8gkiQDou1xtAHjNvw/DvX2FabHw2VLc4DWy6fgQ==","shasum":"9f16f6005be7072628a37d7eaafda56db682dc18","tarball":"https://registry.npmjs.org/@dms-one/n8n-nodes-flex/-/n8n-nodes-flex-0.1.4.tgz","fileCount":25,"unpackedSize":193425,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dms-one%2fn8n-nodes-flex@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCM+4yzng5ngTwyQxZHD7/sgrA9bhUKgBmV+WGBgYZg7AIgYJ5ueD9ua5G2w9+u0sfJOq0XJRblJGmu+vqFUu1rrVY="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7b3b9e80-0b9b-4ecc-b8a2-277a25996dbc"}},"directories":{},"maintainers":[{"name":"yanoo","email":"negyes.janos@dmsone.hu"},{"name":"nagydaniel","email":"nagy.daniel@dmsone.hu"},{"name":"tolnai.zoltan.dms","email":"tolnai.zoltan@dmsone.hu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/n8n-nodes-flex_0.1.4_1778156567636_0.4215424926582423"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-16T12:14:06.955Z","modified":"2026-05-07T12:22:48.133Z","0.1.0":"2026-04-16T12:14:07.309Z","0.1.2":"2026-04-16T13:46:00.819Z","0.1.3":"2026-05-06T13:38:18.194Z","0.1.4":"2026-05-07T12:22:47.803Z"},"bugs":{"url":"https://github.com/dmsreg/n8n-nodes-dmsone-flex/issues"},"author":{"name":"Zoltan Tolnai","email":"tolnai.zoltan@dmsone.hu"},"license":"MIT","homepage":"https://github.com/dmsreg/n8n-nodes-dmsone-flex.git","keywords":["n8n-community-node-package"],"repository":{"type":"git","url":"git+https://github.com/dmsreg/n8n-nodes-dmsone-flex.git"},"description":"A n8n node package to interact with Flex API","maintainers":[{"name":"yanoo","email":"negyes.janos@dmsone.hu"},{"name":"nagydaniel","email":"nagy.daniel@dmsone.hu"},{"name":"tolnai.zoltan.dms","email":"tolnai.zoltan@dmsone.hu"}],"readme":"# @dms-one/n8n-nodes-flex\n\n[n8n](https://n8n.io/) community node package for **DMS One Flex** — document and workflow APIs you can call from workflows.\n\nFlex is the web-facing layer of the DMS One stack. This package exposes a single **Flex** node with multiple resources (tasks, users, workflow tasks).\n\n**Contents:** [Installation](#installation) · [Credentials and tokens](#credentials-and-tokens) · [Impersonation header](#impersonation-station-token-only) · [Resources and operations](#resources-and-operations) · [Example workflow](#example-workflow) · [Links](#links)\n\n---\n\n## Installation\n\nInstall as a [community node](https://docs.n8n.io/integrations/community-nodes/installation/) (self-hosted n8n). The package name is:\n\n`@dms-one/n8n-nodes-flex`\n\nAfter installation, add **Flex API** credentials (see below) and use the **Flex** node in your workflows.\n\nFor packaging standards and submitting to the community index, see [Submit community nodes](https://docs.n8n.io/integrations/creating-nodes/deploy/submit-community-nodes/) and the [verification guidelines](https://docs.n8n.io/integrations/creating-nodes/build/reference/verification-guidelines/).\n\n---\n\n## Credentials and tokens\n\nCreate **Flex API** credentials in n8n and set:\n\n| Field | Purpose |\n| --- | --- |\n| **Base URL** | Flex API root (default `https://flex.dmsone.hu/api`). Use your tenant URL if your organization hosts Flex elsewhere. |\n| **Authentication Method** | `Personal Access Token` or `Station Token`. |\n| **Token** | The secret string for the chosen method. |\n| **Impersonated User Email** | Shown only for **Station Token** — optional email of the user to act as (see [Impersonation](#impersonation-station-token-only)). |\n| **Ignore SSL Issues** | Only for dev/self-signed certs; not recommended in production. |\n\n### Personal Access Token (PAT)\n\n1. Sign in to your organization’s **Flex** web application (e.g. [flex.dmsone.hu](https://flex.dmsone.hu) if that is your tenant).\n2. Open the **user / account menu** (typically from your name or avatar in the UI).\n3. Use the menu entry for **personal access tokens** (wording may match your Flex locale) and **create** a new token.\n4. Copy the token into n8n **Token** and set **Authentication Method** to **Personal Access Token**.\n\nPATs run API calls **as you**. They can **expire**; renew or replace the token in credentials when Flex reports it invalid.\n\n### Station token\n\nA **station** (machine / integration) token is a **service** credential, usually **created or distributed by a Flex administrator** in your organization — not from the same personal menu as a PAT. Paste it into **Token** and set **Authentication Method** to **Station Token**.\n\nUse a station token when automation should run under a dedicated integration account and optionally **impersonate** different users via email (below).\n\n---\n\n## Impersonation (station token only)\n\nWhen **Authentication Method** is **Station Token**, you can set **Impersonated User Email** to a Flex user’s **email address**.\n\nFor each HTTP request, the credential adds:\n\n`X-Impersonated-User-Email: <that email>`\n\nso the Flex API treats the call as that user (subject to server-side permissions). If the field is **empty**, that header is **not** sent and the call uses the station token’s own identity.\n\n**Personal Access Token** mode does **not** use this header; the PAT already identifies a single user.\n\n---\n\n## Resources and operations\n\nIn the **Flex** node, pick a **Resource**, then an **Operation**.\n\n### Task (`task`)\n\n| Operation | What it does |\n| --- | --- |\n| **Create** | Start a new DMS task (`POST /dms/task/start`). |\n| **Comment** | Add a comment on a task. |\n| **Accept** | Accept a task. |\n| **Complete** | Mark a task complete. |\n| **List** | List tasks by status (`in-progress`, `completed`, `pending`, `all`). |\n\n### User (`user`)\n\n| Operation | What it does |\n| --- | --- |\n| **Get by Username** | Resolve a user by Flex username. |\n\n### Workflow (`workflow`)\n\nWorkflow operations target **workflow engine** tasks (templates, assignments, attachments), distinct from the simple **Task** resource above.\n\n| Operation | What it does |\n| --- | --- |\n| **Get Available Templates** | List workflow templates. |\n| **Get Template Details** | Metadata / required fields for a template. |\n| **Start Workflow** | Start a process from a template (including metadata and optional files). |\n| **Get My Tasks** | Tasks assigned to the current (or impersonated) user. |\n| **Get Task Details** | Full detail for one workflow task. |\n| **Complete Task** | Complete a workflow task with result and optional comment. |\n| **Get Task Comments** / **Add Task Comment** | Read or add comments on a workflow task. |\n| **Get Task Attachments** / **Get Task Related Attachments** | List attachments for a task. |\n| **Download Attachment** | Download a file by attachment GUID. |\n\n---\n\n## Example workflow\n\n**Goal:** Start a workflow from a template, using fields returned by Flex.\n\n1. **Credentials** — Create **Flex API** with a PAT or station token (+ impersonation email if needed). Test with **Credential → Test** (calls `GET …/diag`).\n2. **Trigger** — e.g. **Manual Trigger** or your real trigger (webhook, schedule).\n3. **Flex (1)** — Resource **Workflow**, operation **Get Available Templates**. Note a `id` (and name) of the template you need.\n4. **Flex (2)** — Resource **Workflow**, operation **Get Template Details**, **Template ID** from step 3. Inspect the output so you know required metadata keys and types.\n5. **Flex (3)** — Resource **Workflow**, operation **Start Workflow**. Choose the same template, fill **metadata** (and optional binary **files**) according to step 2’s structure. Execute the workflow.\n\nA smaller alternative: **Workflow → Get My Tasks** → **Get Task Details** on one task id → **Add Task Comment** to append a note from n8n.\n\n---\n\n## Links\n\n- [Flex](https://flex.dmsone.hu) (default product URL; yours may differ.)\n- [n8n community nodes](https://docs.n8n.io/integrations/community-nodes/)\n- [Submit community nodes](https://docs.n8n.io/integrations/creating-nodes/deploy/submit-community-nodes/)\n- Source: [github.com/dmsreg/n8n-nodes-dmsone-flex](https://github.com/dmsreg/n8n-nodes-dmsone-flex)\n\n## License\n\nMIT (see `license` in [package.json](package.json)).\n","readmeFilename":"README.md"}