@spytecgps/nova-orm 0.0.185 → 0.0.186

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 { DeleteTaskScheduleParams } from '../../types/tasks';
4
+ export declare const deleteTaskSchedule: (novaDataSource: NovaDataSource, params: DeleteTaskScheduleParams, logger: Logger) => Promise<boolean>;
@@ -1,5 +1,5 @@
1
1
  import { TaskSchedule } from '../../entities';
2
- import { CreateTaskScheduleParams, GetTaskScheduleParams, UpdateTaskScheduleParams } from '../../types/tasks';
2
+ import { CreateTaskScheduleParams, DeleteTaskScheduleParams, GetTaskScheduleParams, UpdateTaskScheduleParams } from '../../types/tasks';
3
3
  import { BaseRepository } from '../baseRepository';
4
4
  export declare class TasksRepository extends BaseRepository {
5
5
  /**
@@ -53,4 +53,12 @@ export declare class TasksRepository extends BaseRepository {
53
53
  * @returns Promise<boolean> whether the task schedule was updated
54
54
  */
55
55
  updateTaskSchedule(params: UpdateTaskScheduleParams): Promise<boolean>;
56
+ /**
57
+ * Delete an existing task schedule
58
+ * @param params params containing information to delete task schedule
59
+ * params.id: the ID, required
60
+ * params.deletedBy: the user performing the delete action, required
61
+ * @returns Promise<boolean> whether the task schedule was deleted
62
+ */
63
+ deleteTaskSchedule(params: DeleteTaskScheduleParams): Promise<boolean>;
56
64
  }
@@ -43,3 +43,7 @@ export interface UpdateTaskScheduleParams {
43
43
  modifiedBy: string;
44
44
  };
45
45
  }
46
+ export interface DeleteTaskScheduleParams {
47
+ id: number;
48
+ deletedBy: string;
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.185",
3
+ "version": "0.0.186",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",