@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
23 lines • 806 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommunitiesBlocksAPI = void 0;
const crud_1 = require("../../../../utils/crud");
const properties_1 = require("./properties");
class CommunitiesBlocksAPI extends crud_1.CRUD {
_blockId;
constructor(httpClient, baseUrl, _blockId) {
super(httpClient, {
basePath: baseUrl,
id: _blockId,
});
this._blockId = _blockId;
}
properties(id) {
if (!this._blockId) {
throw new Error('Block ID is required');
}
return new properties_1.CommunitiesPropertiesAPI(this._httpClient, `${this._config.basePath}/${this._blockId}/properties`, id);
}
}
exports.CommunitiesBlocksAPI = CommunitiesBlocksAPI;
//# sourceMappingURL=blocks.js.map