UNPKG

tipi-services

Version:

Node.js library to access wrapping REST API of tipi backend services

21 lines (15 loc) 523 B
const Service = require('../../../Service'); const Endpoints = require('./Endpoints') class ReportsService extends Service { constructor(baseUrl) { super() this.endpoints = Endpoints(baseUrl) } async invoicingOverall (query) { return this.sendRequest({ endpoint: this.endpoints.invoicingOverall, query }) } async activeSubscriptionOwners (query) { return this.sendRequest({ endpoint: this.endpoints.activeSubscriptionOwners, query }) } } module.exports = ReportsService