troi-library
Advanced tools
Comparing version 1.1.1 to 1.2.0
11
index.js
@@ -133,3 +133,3 @@ import debugModule from "debug"; | ||
await this.makeRequest({ | ||
return await this.makeRequest({ | ||
url: "/billings/hours", | ||
@@ -164,3 +164,3 @@ headers: { "Content-Type": "application/json" }, | ||
await this.makeRequest({ | ||
return await this.makeRequest({ | ||
url: `/billings/hours/${billingId}`, | ||
@@ -200,5 +200,4 @@ headers: { "Content-Type": "application/json" }, | ||
const requestUrl = `${this.baseUrl}${url}${ | ||
params ? `?${new URLSearchParams(params)}` : "" | ||
}`; | ||
const requestUrl = `${this.baseUrl}${url}${params ? `?${new URLSearchParams(params)}` : "" | ||
}`; | ||
const requestOptions = { | ||
@@ -232,3 +231,3 @@ method: method, | ||
async getCalendarEvents(type, startDate, endDate) { | ||
async getCalendarEvents(startDate, endDate, type = "") { | ||
const calendarEvents = await this.makeRequest({ | ||
@@ -235,0 +234,0 @@ url: "/calendarEvents", |
{ | ||
"name": "troi-library", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "API library wrapper to interact with troi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8788
227