@spytecgps/nova-orm 0.0.190 → 0.0.191
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceTask, TaskSchedule } from '../../entities';
|
|
2
|
-
import { CreateTaskScheduleParams, DeleteTaskScheduleParams, GetDeviceTasksParams, GetTaskScheduleParams, GetTaskSchedulesParams, UpdateTaskScheduleParams } from '../../types/tasks';
|
|
2
|
+
import { CreateTaskScheduleParams, DeleteTaskScheduleParams, GetDeviceTasksParams, GetTaskScheduleParams, GetTaskSchedulesParams, SetTaskScheduleDevicesParams, UpdateTaskScheduleParams } from '../../types/tasks';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class TasksRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -112,4 +112,14 @@ export declare class TasksRepository extends BaseRepository {
|
|
|
112
112
|
* @returns Promise<DeviceTask[]> the device tasks corresponding to the filters
|
|
113
113
|
*/
|
|
114
114
|
getDeviceTasks(params: GetDeviceTasksParams): Promise<DeviceTask[]>;
|
|
115
|
+
/**
|
|
116
|
+
* Sets the imeis associated with a task schedule.
|
|
117
|
+
* This operation replaces all the existing records associated with the taskScheduleId, with the supplied imeis.
|
|
118
|
+
* @param params params containing information to set task schedule devices
|
|
119
|
+
* params.taskScheduleId: the task schedule ID, required.
|
|
120
|
+
* params.imeis: the IMEIs, optional. If not provided, all the existing records associated with the taskScheduleId will be deleted.
|
|
121
|
+
* @returns Promise<boolean> whether the task schedule devices were set
|
|
122
|
+
* If the task schedule does not exist, the function will return false
|
|
123
|
+
*/
|
|
124
|
+
setTaskScheduleDevices(params: SetTaskScheduleDevicesParams): Promise<boolean>;
|
|
115
125
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { Logger } from '../../types/logger';
|
|
3
|
+
import { SetTaskScheduleDevicesParams } from '../../types/tasks';
|
|
4
|
+
export declare const setTaskScheduleDevices: (novaDataSource: NovaDataSource, params: SetTaskScheduleDevicesParams, logger: Logger) => Promise<boolean>;
|
package/dist/types/tasks.d.ts
CHANGED