UNPKG

@eleva-io/erp-sdk

Version:

SDK oficial para el ERP de Eleva

44 lines 1.81 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommunityReportsAPI = void 0; const common_area_1 = require("./common-area"); const meeting_1 = require("./meeting"); const property_1 = require("./property"); const resident_1 = require("./resident"); 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 property_1.PropertyReportsAPI(this._httpClient, `${this._baseUrl}/properties/${propertyId}`); } resident(residentId) { return new resident_1.ResidentReportsAPI(this._httpClient, `${this._baseUrl}/residents/${residentId}`); } meeting(meetingId) { return new meeting_1.MeetingReportsAPI(this._httpClient, `${this._baseUrl}/meetings/${meetingId}`); } commonArea(commonAreaId) { return new common_area_1.CommonAreaReportsAPI(this._httpClient, `${this._baseUrl}/common-areas/${commonAreaId}`); } } exports.CommunityReportsAPI = CommunityReportsAPI; //# sourceMappingURL=community.js.map