@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
25 lines • 823 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommunitiesPropertiesAPI = void 0;
const crud_1 = require("../../../../utils/crud");
class CommunitiesPropertiesAPI extends crud_1.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_1.CRUD(this._httpClient, {
basePath: `${this._config.basePath}/${this._propertyId}/persons`,
id: id,
});
}
}
exports.CommunitiesPropertiesAPI = CommunitiesPropertiesAPI;
//# sourceMappingURL=properties.js.map