UNPKG

@eleva-io/erp-sdk

Version:

SDK oficial para el ERP de Eleva

26 lines 801 B
import { CRUD } from '../../../../utils/crud'; class _CommunityProviderCRUD extends CRUD { } export class CommunitiesProvidersAPI { _httpClient; _baseUrl; _crud; constructor(_httpClient, _baseUrl) { this._httpClient = _httpClient; this._baseUrl = _baseUrl; this._crud = new _CommunityProviderCRUD(this._httpClient, { basePath: this._baseUrl }); } create(data) { return this._crud.create(data); } update(id, typeId, data) { return this._httpClient.patch(`${this._baseUrl}/${typeId}/provider/${id}`, data); } delete(id, typeId) { return this._httpClient.delete(`${this._baseUrl}/${typeId}/provider/${id}`); } find(query) { return this._crud.find(query); } } //# sourceMappingURL=providers.js.map