@arrowsphere/api-client 3.108.0 → 3.108.1-rc.bdj.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -440,15 +440,18 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
440
440
  return new getResult_1.GetResult(scheduleTasksResult_1.ScheduleTasksResult, await this.post(payload, parameters));
441
441
  }
442
442
  async getSchedulesTasks(licenseReference, parameters = {}) {
443
+ var _a;
443
444
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
444
445
  const response = await this.get(parameters);
445
446
  //A workaround, the public api endpoint is not returning "schedulesTasks" in the payload
446
447
  //@todo: remove this workaround when the public api endpoint is fixed
447
- response[getResult_1.GetResultFields.COLUMN_DATA] = {
448
- [getSchedulesTasksResult_1.GetSchedulesTasksResultFields.COLUMN_SCHEDULES_TASKS]: getResult_1.GetResultFields.COLUMN_DATA in response
449
- ? response[getResult_1.GetResultFields.COLUMN_DATA]
450
- : [],
451
- };
448
+ if (!((_a = response[getResult_1.GetResultFields.COLUMN_DATA]) === null || _a === void 0 ? void 0 : _a[getSchedulesTasksResult_1.GetSchedulesTasksResultFields.COLUMN_SCHEDULES_TASKS])) {
449
+ response[getResult_1.GetResultFields.COLUMN_DATA] = {
450
+ [getSchedulesTasksResult_1.GetSchedulesTasksResultFields.COLUMN_SCHEDULES_TASKS]: getResult_1.GetResultFields.COLUMN_DATA in response
451
+ ? response[getResult_1.GetResultFields.COLUMN_DATA]
452
+ : [],
453
+ };
454
+ }
452
455
  return new getResult_1.GetResult(getSchedulesTasksResult_1.GetSchedulesTasksResult, response);
453
456
  }
454
457
  async getLicenseDailyPredictions(licenseReference, parameters = {}) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.108.0",
7
+ "version": "3.108.1-rc.bdj.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",