@spytecgps/nova-orm 0.0.199 → 0.0.201
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.
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { Logger } from '../../types/logger';
|
|
3
|
+
import { DeleteTaskParams } from '../../types/tasks';
|
|
4
|
+
export declare const deleteTask: (novaDataSource: NovaDataSource, params: DeleteTaskParams, logger: Logger) => Promise<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceTask, Task, TaskSchedule } from '../../entities';
|
|
2
|
-
import { AddTaskScheduleDevicesParams, CompleteTaskParams, CreateTaskParams, CreateTaskScheduleParams, DeleteTaskScheduleDevicesParams, DeleteTaskScheduleParams, GetDeviceTasksParams, GetTaskScheduleParams, GetTaskSchedulesParams, GetTasksParams, SetTaskScheduleDevicesParams, UpdateTaskParams, UpdateTaskScheduleParams } from '../../types/tasks';
|
|
2
|
+
import { AddTaskScheduleDevicesParams, CompleteTaskParams, CreateTaskParams, CreateTaskScheduleParams, DeleteTaskParams, DeleteTaskScheduleDevicesParams, DeleteTaskScheduleParams, GetDeviceTasksParams, GetTaskScheduleParams, GetTaskSchedulesParams, GetTasksParams, SetTaskScheduleDevicesParams, UpdateTaskParams, UpdateTaskScheduleParams } from '../../types/tasks';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class TasksRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -10,12 +10,12 @@ export declare class TasksRepository extends BaseRepository {
|
|
|
10
10
|
* params.title: the title, required
|
|
11
11
|
* params.description: the description, required
|
|
12
12
|
* params.repeats: whether the task repeats, required
|
|
13
|
-
* params.dueDate: the due date,
|
|
14
|
-
* params.dueOdometer: the due odometer,
|
|
15
|
-
* params.dueActiveHours: the due active hours,
|
|
16
|
-
* params.intervalDays: the interval days,
|
|
17
|
-
* params.intervalOdometer: the interval odometer,
|
|
18
|
-
* params.intervalActiveHours: the interval active hours,
|
|
13
|
+
* params.dueDate: the due date, optional
|
|
14
|
+
* params.dueOdometer: the due odometer, optional
|
|
15
|
+
* params.dueActiveHours: the due active hours, optional
|
|
16
|
+
* params.intervalDays: the interval days, optional
|
|
17
|
+
* params.intervalOdometer: the interval odometer, optional
|
|
18
|
+
* params.intervalActiveHours: the interval active hours, optional
|
|
19
19
|
* params.intervalStartDate: the interval start date, optional
|
|
20
20
|
* params.intervalStartingOdometer: the interval starting odometer, optional
|
|
21
21
|
* params.intervalStartingActiveHours: the interval starting active hours, optional
|
|
@@ -39,15 +39,15 @@ export declare class TasksRepository extends BaseRepository {
|
|
|
39
39
|
* params.values.title: the title, optional
|
|
40
40
|
* params.values.description: the description, optional
|
|
41
41
|
* params.values.repeats: whether the task repeats, optional
|
|
42
|
-
* params.values.dueDate: the due date,
|
|
43
|
-
* params.values.dueOdometer: the due odometer,
|
|
44
|
-
* params.values.dueActiveHours: the due active hours,
|
|
45
|
-
* params.values.intervalDays: the interval days,
|
|
46
|
-
* params.values.intervalOdometer: the interval odometer,
|
|
47
|
-
* params.values.intervalActiveHours: the interval active hours,
|
|
48
|
-
* params.values.intervalStartDate: the interval start date
|
|
49
|
-
* params.values.intervalStartingOdometer: the interval starting odometer
|
|
50
|
-
* params.values.intervalStartingActiveHours: the interval starting active hours
|
|
42
|
+
* params.values.dueDate: the due date, optional
|
|
43
|
+
* params.values.dueOdometer: the due odometer, optional
|
|
44
|
+
* params.values.dueActiveHours: the due active hours, optional
|
|
45
|
+
* params.values.intervalDays: the interval days, optional
|
|
46
|
+
* params.values.intervalOdometer: the interval odometer, optional
|
|
47
|
+
* params.values.intervalActiveHours: the interval active hours, optional
|
|
48
|
+
* params.values.intervalStartDate: the interval start date, optional
|
|
49
|
+
* params.values.intervalStartingOdometer: the interval starting odometer, optional
|
|
50
|
+
* params.values.intervalStartingActiveHours: the interval starting active hours, optional
|
|
51
51
|
* params.values.notes: the notes, optional
|
|
52
52
|
* params.values.modifiedBy: the modified by, required
|
|
53
53
|
* @returns Promise<boolean> whether the task schedule was updated
|
|
@@ -217,4 +217,12 @@ export declare class TasksRepository extends BaseRepository {
|
|
|
217
217
|
* @returns Promise<boolean> whether the task was completed
|
|
218
218
|
*/
|
|
219
219
|
completeTask(params: CompleteTaskParams): Promise<boolean>;
|
|
220
|
+
/**
|
|
221
|
+
* Delete an existing task
|
|
222
|
+
* @param params params containing information to delete task
|
|
223
|
+
* params.id: the ID, required
|
|
224
|
+
* params.deletedBy: the user performing the delete action, required
|
|
225
|
+
* @returns Promise<boolean> whether the task was deleted
|
|
226
|
+
*/
|
|
227
|
+
deleteTask(params: DeleteTaskParams): Promise<boolean>;
|
|
220
228
|
}
|
package/dist/types/tasks.d.ts
CHANGED