@arrowsphere/api-client 3.109.0 → 3.110.0-rc.cpu.2
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
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.110.0] - 2024.04.18
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [License schedules tasks] Update/Get/Delete scheduled tasks
|
|
10
|
+
|
|
6
11
|
## [3.109.0] - 2024.04.12
|
|
7
12
|
|
|
8
13
|
### Fixed
|
|
@@ -27,6 +27,7 @@ import { EndCustomerOrganizationUnitFiltersParameters, EndCustomerOrganizationUn
|
|
|
27
27
|
import { ConsumptionDailyPrediction } from '../consumption';
|
|
28
28
|
import { GetSchedulesTasksResult } from './entities/schedule/getSchedulesTasksResult';
|
|
29
29
|
import { GetScheduledTasksResult } from './entities/schedule/getScheduledTasksResult';
|
|
30
|
+
import { GetScheduleTaskResult } from './entities/schedule/getScheduleTaskResult';
|
|
30
31
|
/**
|
|
31
32
|
* Parameters passable to the request for refining search.
|
|
32
33
|
*/
|
|
@@ -243,6 +244,7 @@ export declare type ScheduleTasks = {
|
|
|
243
244
|
seats: number;
|
|
244
245
|
executionDate: string;
|
|
245
246
|
};
|
|
247
|
+
export declare type UpdateScheduledTaskRequestType = Omit<ScheduleTasks, 'executionDate'>;
|
|
246
248
|
export declare type LicensePricingRate = {
|
|
247
249
|
rateType: RateTypeEnum;
|
|
248
250
|
rateValue: number;
|
|
@@ -401,6 +403,9 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
401
403
|
*/
|
|
402
404
|
getSchedulesTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetSchedulesTasksResult>>;
|
|
403
405
|
getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
|
|
406
|
+
updateScheduledTask(licenseReference: string, scheduledTaskId: number, payload: UpdateScheduledTaskRequestType, parameters?: Parameters): Promise<void>;
|
|
407
|
+
getScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<GetResult<GetScheduleTaskResult>>;
|
|
408
|
+
deleteScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<void>;
|
|
404
409
|
getLicenseDailyPredictions(licenseReference: string, parameters?: Parameters): Promise<GetResult<ConsumptionDailyPrediction>>;
|
|
405
410
|
saveSpecialdBid(licenseReference: string, payload: SaveSpecialBidInputType, parameters?: Parameters): Promise<void>;
|
|
406
411
|
rewriteRateHistory(licenseReference: string, payload: RewriteRateHistoryInputType, parameters?: Parameters): Promise<void>;
|
|
@@ -21,6 +21,7 @@ const bulkArguments_1 = require("./types/bulkArguments");
|
|
|
21
21
|
const consumption_1 = require("../consumption");
|
|
22
22
|
const getSchedulesTasksResult_1 = require("./entities/schedule/getSchedulesTasksResult");
|
|
23
23
|
const getScheduledTasksResult_1 = require("./entities/schedule/getScheduledTasksResult");
|
|
24
|
+
const getScheduleTaskResult_1 = require("./entities/schedule/getScheduleTaskResult");
|
|
24
25
|
/**
|
|
25
26
|
* Parameters passable to the request for refining search.
|
|
26
27
|
*/
|
|
@@ -464,6 +465,18 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
464
465
|
const response = await this.get(parameters);
|
|
465
466
|
return new getResult_1.GetResult(getScheduledTasksResult_1.GetScheduledTasksResult, response);
|
|
466
467
|
}
|
|
468
|
+
async updateScheduledTask(licenseReference, scheduledTaskId, payload, parameters = {}) {
|
|
469
|
+
this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
|
|
470
|
+
return await this.patch(payload, parameters);
|
|
471
|
+
}
|
|
472
|
+
async getScheduledTask(licenseReference, scheduledTaskId, parameters = {}) {
|
|
473
|
+
this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
|
|
474
|
+
return new getResult_1.GetResult(getScheduleTaskResult_1.GetScheduleTaskResult, await this.get(parameters));
|
|
475
|
+
}
|
|
476
|
+
async deleteScheduledTask(licenseReference, scheduledTaskId, parameters = {}) {
|
|
477
|
+
this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
|
|
478
|
+
return this.delete(parameters);
|
|
479
|
+
}
|
|
467
480
|
async getLicenseDailyPredictions(licenseReference, parameters = {}) {
|
|
468
481
|
this.path = `/${licenseReference}/predictions/daily`;
|
|
469
482
|
return new getResult_1.GetResult(consumption_1.ConsumptionDailyPrediction, await this.get(parameters));
|
package/package.json
CHANGED