@arrowsphere/api-client 3.108.0 → 3.108.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.
- package/CHANGELOG.md +5 -0
- package/build/licenses/licensesClient.js +8 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.108.1] - 2024.04.12
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- [License schedules tasks] Fixes get all schedules tasks to prevent breaking changes of api
|
|
10
|
+
|
|
6
11
|
## [3.108.0] - 2024.04.08
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -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
|
-
[
|
|
449
|
-
|
|
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