@orchesty/connector-servant
v2.0.0
Published
[](https://www.npmjs.com/package/@orchesty/connector-servant) [](https://github.com/Orchesty/orchesty-nodejs-co
Downloads
152
Readme
Servant Connector
An Orchesty connector for Servant (Webskladservant), a Czech warehouse management system (WMS) for e-commerce order and inventory operations.
Application Type
Basic
This connector authenticates using a username and password against the Servant SOAP API at https://www.webskladservant.cz/impl/SAPI/V5/?wsdl. Most operations use SOAP; ServantGetWarehouses uses a REST endpoint.
| Field | Description |
|---|---|
| user | Your Servant account username (email) |
| password | Your Servant account password |
Note: The
getRequestDto()method is intentionally not supported — SOAP operations are invoked directly using thesoapnpm package. Thewarehouse_idfield is used in the application context to specify the default warehouse.
Components
| Class | Type | Description |
|---|---|---|
| ServantGetCarriers | Connector | Retrieves available carriers via SOAP action GetCarriers |
| ServantGetWarehouses | Connector | Retrieves available warehouses via GET https://www.webskladservant.cz/impl/SAPI/rest.php?type=warehouses |
| ServantImportIssue | Connector | Imports an issue/dispatch order via SOAP action ImportIssue |
| ServantImportProducts | Connector | Imports product definitions via SOAP action ImportProducts |
| ServantGetInventory | Batch | Fetches all inventory items via SOAP action GetInventory; merges duplicates by item code |
| ServantGetIssueOrdersByDate | Batch | Fetches issue orders within a date interval via SOAP action GetIssueOrdersByDate; tracks last run with a 14-day offset |
Setup
Credentials
- Log in to your Webskladservant account.
- In the Orchesty Servant application settings, enter your User (email) and Password.
- Set the Warehouse ID if required for your configuration.
Contact your Servant account manager for API access and credentials if needed.
Installation & Usage
Install the package:
npm install @orchesty/connector-servant @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-servant @orchesty/nodejs-sdkThis connector uses the soap package to communicate with the Servant WSDL endpoint. Register the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import ServantApplication from '@orchesty/connector-servant/dist/ServantApplication';
import ServantGetCarriers from '@orchesty/connector-servant/dist/Connector/ServantGetCarriers';
import ServantGetWarehouses from '@orchesty/connector-servant/dist/Connector/ServantGetWarehouses';
import ServantImportIssue from '@orchesty/connector-servant/dist/Connector/ServantImportIssue';
import ServantImportProducts from '@orchesty/connector-servant/dist/Connector/ServantImportProducts';
import ServantGetInventory from '@orchesty/connector-servant/dist/Batch/ServantGetInventory';
import ServantGetIssueOrdersByDate from '@orchesty/connector-servant/dist/Batch/ServantGetIssueOrdersByDate';
const app = new ServantApplication();
container.setApplication(app);
container.setNode(new ServantGetCarriers(), app);
container.setNode(new ServantGetWarehouses(), app);
container.setNode(new ServantImportIssue(), app);
container.setNode(new ServantImportProducts(), app);
container.setNode(new ServantGetInventory(), app);
container.setNode(new ServantGetIssueOrdersByDate(), 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
