@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
21 lines • 632 B
JavaScript
import { CRUD } from '../../../../utils/crud';
export class CommunitiesPropertiesAPI extends CRUD {
_propertyId;
constructor(httpClient, baseUrl, _propertyId) {
super(httpClient, {
basePath: baseUrl,
id: _propertyId,
});
this._propertyId = _propertyId;
}
persons(id) {
if (!this._propertyId) {
throw new Error('Property ID is required');
}
return new CRUD(this._httpClient, {
basePath: `${this._config.basePath}/${this._propertyId}/persons`,
id: id,
});
}
}
//# sourceMappingURL=properties.js.map