@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
19 lines • 642 B
JavaScript
import { CRUD } from '../../../../utils/crud';
import { ContactsPersonsAddressesAPI } from './addresses';
export class ContactsPersonsAPI extends 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 ContactsPersonsAddressesAPI(this._httpClient, `${this._config.basePath}/${this._personId}/addresses`, id);
}
}
//# sourceMappingURL=persons.js.map