@4lch4/toggl-aid
Version:
A wrapper library for interacting with the Toggl API.
20 lines • 686 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReportsAPI = void 0;
const Details_1 = require("./Details");
const Summary_1 = require("./Summary");
const Weekly_1 = require("./Weekly");
class ReportsAPI {
constructor(configOpts) {
if (configOpts) {
this.weekly = new Weekly_1.Weekly(configOpts);
this.details = new Details_1.Details(configOpts);
this.summary = new Summary_1.Summary(configOpts);
}
else {
throw new Error('You must provide the configOpts parameter to use this library.');
}
}
}
exports.ReportsAPI = ReportsAPI;
//# sourceMappingURL=index.js.map