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