UNPKG

@eleva-io/erp-sdk

Version:

SDK oficial para el ERP de Eleva

26 lines 873 B
import { CRUD } from '../../../../utils/crud'; class _CommunityEmployeeCRUD extends CRUD { } export class CommunitiesEmployeesAPI { _httpClient; _baseUrl; _crud; constructor(_httpClient, _baseUrl) { this._httpClient = _httpClient; this._baseUrl = _baseUrl; this._crud = new _CommunityEmployeeCRUD(this._httpClient, { basePath: this._baseUrl }); } create(data) { return this._crud.create(data); } update(personId, economicActivityId, data) { return this._httpClient.patch(`${this._baseUrl}/${economicActivityId}/employee/${personId}`, data); } delete(personId, economicActivityId) { return this._httpClient.delete(`${this._baseUrl}/${economicActivityId}/employee/${personId}`); } find(query) { return this._crud.find(query); } } //# sourceMappingURL=employees.js.map