@orchesty/connector-sage-hr
v2.0.0
Published
[](https://www.npmjs.com/package/@orchesty/connector-sage-hr) [](https://github.com/Orchesty/orchesty-nodejs-co
Readme
Sage HR Connector
An Orchesty connector for Sage HR, a cloud-based human resources management solution that helps you remotely track, manage, and engage your employees.
Application Type
Basic
This connector authenticates using an API key sent via the X-Auth-Token header. The base URL is built dynamically from your company subdomain: https://{subdomain}.sage.hr/api/.
| Field | Description |
|---|---|
| subdomain | Your Sage HR company subdomain (e.g. my-company) |
| api_key | Your Sage HR API key |
Components
| Class | Type | Description |
|---|---|---|
| SageHrGetProjectsBatch | Batch | Paginates through all timesheet projects via GET /timesheets/projects |
| SageHrListEmployeesBatch | Batch | Paginates through all employees via GET /employees |
Setup
Credentials
- Log in to your Sage HR account as an admin.
- Navigate to Settings → Integrations → API and click Enable API Access.
- Copy the generated API key.
- Your subdomain is the part of your Sage HR URL before
.sage.hr(e.g.my-companyfrommy-company.sage.hr). - In Orchesty, open the Sage HR application settings and fill in both fields.
API Documentation
Sage HR Developer Portal: https://developer.sage.com/hr/
Installation & Usage
Install the package:
npm install @orchesty/connector-sage-hr @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-sage-hr @orchesty/nodejs-sdkRegister the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import SageHrApplication from '@orchesty/connector-sage-hr/dist/SageHrApplication';
import SageHrGetProjectsBatch from '@orchesty/connector-sage-hr/dist/Batch/SageHrGetProjectsBatch';
import SageHrListEmployeesBatch from '@orchesty/connector-sage-hr/dist/Batch/SageHrListEmployeesBatch';
const app = new SageHrApplication();
container.setApplication(app);
container.setNode(new SageHrGetProjectsBatch(), app);
container.setNode(new SageHrListEmployeesBatch(), 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
