@eleva-io/erp-sdk
Version:
SDK oficial para el ERP de Eleva
40 lines • 1.63 kB
JavaScript
import { CommonAreaReportsAPI } from './common-area';
import { MeetingReportsAPI } from './meeting';
import { PropertyReportsAPI } from './property';
import { ResidentReportsAPI } from './resident';
export class CommunityReportsAPI {
_httpClient;
_baseUrl;
constructor(_httpClient, _baseUrl) {
this._httpClient = _httpClient;
this._baseUrl = _baseUrl;
}
async propertiesList(params) {
return this._httpClient.getBinary(`${this._baseUrl}/properties-list`, params);
}
async propertiesDebts(params) {
return this._httpClient.getBinary(`${this._baseUrl}/properties-debts`, params);
}
async residentsList(params) {
return this._httpClient.getBinary(`${this._baseUrl}/residents-list`, params);
}
async residentsDebts(params) {
return this._httpClient.getBinary(`${this._baseUrl}/residents-debts`, params);
}
async crossCommonAreaReservations(params) {
return this._httpClient.getBinary(`${this._baseUrl}/common-areas/reservations`, params);
}
property(propertyId) {
return new PropertyReportsAPI(this._httpClient, `${this._baseUrl}/properties/${propertyId}`);
}
resident(residentId) {
return new ResidentReportsAPI(this._httpClient, `${this._baseUrl}/residents/${residentId}`);
}
meeting(meetingId) {
return new MeetingReportsAPI(this._httpClient, `${this._baseUrl}/meetings/${meetingId}`);
}
commonArea(commonAreaId) {
return new CommonAreaReportsAPI(this._httpClient, `${this._baseUrl}/common-areas/${commonAreaId}`);
}
}
//# sourceMappingURL=community.js.map