@orchesty/connector-fabis
v2.0.1
Published
Readme
Fabis Connector
An Orchesty connector for Fabis, an application for managing employee training, medical examinations, and workplace incidents in a single platform.
Application Type
Basic (client credentials)
This connector extends Basic application but internally uses a client credentials OAuth2 token flow. It exchanges a Client ID and Client Secret for a Bearer access token, which is cached and automatically refreshed before expiry.
| Field | Description |
|---|---|
| client_id | Your Fabis client ID |
| client_secret | Your Fabis client secret |
Components
| Class | Type | Description |
|---|---|---|
| FabisImportBatchConnector | Connector | Batch-imports an array of employee records (personal data, employment, addresses) via POST /api/v1/Import/Batch |
Setup
Credentials
Access to the Fabis API requires a contractual arrangement. Contact your Fabis/Precontrol account representative to obtain your client ID and client secret for API access at api.precontrol.cz.
Installation & Usage
Install the package:
npm install @orchesty/connector-fabis @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-fabis @orchesty/nodejs-sdkRegister the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import CacheService from '@orchesty/nodejs-sdk/dist/lib/Cache/CacheService';
import FabisApplication from '@orchesty/connector-fabis/dist/FabisApplication';
import FabisImportBatchConnector from '@orchesty/connector-fabis/dist/Connector/FabisImportBatchConnector';
const app = new FabisApplication(container.get(CacheService));
container.setApplication(app);
container.setNode(new FabisImportBatchConnector(), app);License
This connector is released under the Apache License 2.0. See the LICENSE file for the full license text.
Contributing
Contributions are welcome! This connector is part of the open-source Orchesty Node.js Connectors monorepo.
For guidelines on how to create or update connectors — including project setup, coding conventions, and how to write tests — please refer to the Contributing to Connectors guide.
All contributions should include:
- Source code in
src/following the existing connector structure - Tests in
src/**/__tests__/withinput.json,mock.json, andoutput.jsonfixtures - An updated
CHANGELOG.mdentry
