{"id":18777513,"url":"https://github.com/onify/hub-functions","last_synced_at":"2025-04-13T10:32:24.045Z","repository":{"id":113735893,"uuid":"555018505","full_name":"onify/hub-functions","owner":"onify","description":"Onify Hub Functions - A set of server side based on Node.js and REST-API","archived":false,"fork":false,"pushed_at":"2024-01-22T10:45:11.000Z","size":1137,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-01-22T13:54:42.396Z","etag":null,"topics":["activedirectory","dustin","functions","mssql","onify","onify-functions","rest-api","sftp","xml"],"latest_commit_sha":null,"homepage":"https://onify.co","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-10-20T20:06:09.000Z","updated_at":"2023-04-06T08:27:10.000Z","dependencies_parsed_at":"2024-01-22T12:41:13.963Z","dependency_job_id":"f21d4c28-4c15-4a34-9579-4c40c799b843","html_url":"https://github.com/onify/hub-functions","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fhub-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fhub-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fhub-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onify%2Fhub-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onify","download_url":"https://codeload.github.com/onify/hub-functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223581918,"owners_count":17168655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activedirectory","dustin","functions","mssql","onify","onify-functions","rest-api","sftp","xml"],"created_at":"2024-11-07T20:11:23.798Z","updated_at":"2024-11-07T20:11:24.423Z","avatar_url":"https://github.com/onify.png","language":"JavaScript","readme":"# Onify Hub Functions\n\n[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)\n![Test suite](https://github.com/onify/hub-functions/workflows/Build%20latest/badge.svg)\n\n**Onify Hub Functions** is a set of _server side_ helper functions for Onify Hub. This container usually runs in the same context/namespace as api and worker. The functions main purpose is to add functions that is used in Onify Flow (BPMN). Functions are built in [Node.js](https://nodejs.org/).\n\n\u003e Functions are a complement and sometime even a replacement for Onify Agent (scripts).\n\n## Changelog\n\n### latest\n\n### 1.6.0\n\n* chore: use node 18\n* chore: add GitHub workflow for building branch\n* test: fix test after node 18 update\n\n### 1.5.0\n\n* feature: `/excel/read` - New function: Read (and parse) uploaded excel file\n\n### 1.4.2\n\n* chore: bump fast-xml-parser from 4.0.11 to 4.2.4\n\n### 1.4.1\n\n* improve: `/ldap/search` - Convert binary attributes objectSid and objectGuid to text\n* improve: `/ldap/search` - Adjusted query parameters and response handling\n* fix: `/ldap/search` - Handled test script and property logic bugs\n\n### 1.4.0\n\n* feature: `/ldap/search` - New function: Search LDAP server\n\n### 1.3.3\n\n* improve: add rejectUnauthorized for /activedirectory/users\n\n### 1.3.2\n\n* improve: `/dustin/prepare/order` - ContactPhone is now optional for BuyerParty\n* fix: `/dustin/prepare/order` - Price could not be 0\n* fix: `/dustin/prepare/order` - ItemDetail is now array, not ListOfItemDetail\n\n### 1.3.1\n\n* fix: do not require CommodityCode for Dustin order\n\n### 1.3.0\n\n* feature: new function: /stfp/list - List files/folders on STFP server\n\n### 1.2.0\n\n* feature: new function: /dustin/prepare/order - Prepare EDI order for Dustin\n\n### 1.1.0\n\n* feature: new function: /activedirectory/users - Get users from Active Directory\n\n### 1.0.0\n\nFirst release...\n\n## Deploy\n\nCheckout how to use the `hub-functions` container together with the other services [here](https://github.com/onify/install/blob/default/containers.md).\n\n### Docker\n\nHere is an example how to run in Docker.\n\n```yaml\nfunctions:\n  image: eu.gcr.io/onify-images/hub/functions:latest\n  pull_policy: always\n  restart: always\n  ports:\n    - 8282:8282\n```\n\n### Kubernetes\n\nHere is an example how to run in Kubernetes.\n\n```yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: onify-functions\nspec:\n  selector:\n    matchLabels:\n      app: functions\n  template:\n    metadata:\n      labels:\n        app: functions\n    spec:\n      imagePullSecrets:\n        - name: onify-regcred\n      containers:\n        - name: functions\n          image: eu.gcr.io/onify-images/hub/functions:latest\n          ports:\n            - name: functions\n              containerPort: 8282\n---\napiVersion: v1\nkind: Service\nmetadata:\n  name: onify-functions\nspec:\n  ports:\n    - protocol: TCP\n      name: functions\n      port: 8282\n  selector:\n    app: functions\n```\n\n## Run\n\nTo run it, just execute command `npm start`.\n\n### Run in debug mode\n\nIn VSCode, there is a built-in debugging functionality. To run in debug mode, please press F5. This will execute the commands\nstated in the launch.json file. You may place in break points in the line/s of code to verify a current status of variables during the process.  \n\nIn the upper right section of the code editor, you will see the debug controls for triggering when to play/pause the flow during runtime.\n\n## Release\n\n1. Update changelog in `README.md`\n2. Update version in `package.json`\n3. Commit the changes\n4. Run `git tag v*.*.*` (eg. 1.1.0)\n5. Run `git push --tags`\n\n## Support\n\n* Community/forum: https://support.onify.co/discuss\n* Documentation: https://support.onify.co/docs\n* Support and SLA: https://support.onify.co/docs/get-support\n\n## Contribute\n\nSharing is caring! :-) Please feel free to contribute! Please read [Code of Conduct](CODE_OF_CONDUCT.md) first.\nYou can also create a new request (issue): https://github.com/onify/hub-functions/issues/new.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonify%2Fhub-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonify%2Fhub-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonify%2Fhub-functions/lists"}