@spytecgps/nova-orm 0.0.182 → 0.0.183

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,5 @@
1
+ import { TaskSchedule } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { Logger } from '../../types/logger';
4
+ import { GetTaskScheduleParams } from '../../types/tasks';
5
+ export declare const getTaskSchedule: (novaDataSource: NovaDataSource, params: GetTaskScheduleParams, logger: Logger) => Promise<TaskSchedule>;
@@ -1,5 +1,5 @@
1
1
  import { TaskSchedule } from '../../entities';
2
- import { CreateTaskScheduleParams } from '../../types/tasks';
2
+ import { CreateTaskScheduleParams, GetTaskScheduleParams } from '../../types/tasks';
3
3
  import { BaseRepository } from '../baseRepository';
4
4
  export declare class TasksRepository extends BaseRepository {
5
5
  /**
@@ -24,4 +24,11 @@ export declare class TasksRepository extends BaseRepository {
24
24
  * @returns Promise<TaskSchedule> the created task schedule
25
25
  */
26
26
  createTaskSchedule(params: CreateTaskScheduleParams): Promise<TaskSchedule>;
27
+ /**
28
+ * Get a task schedule
29
+ * @param params params containing information to get task schedule
30
+ * params.filters.id: the ID, required
31
+ * @returns Promise<TaskSchedule> the task schedule
32
+ */
33
+ getTaskSchedule(params: GetTaskScheduleParams): Promise<TaskSchedule>;
27
34
  }
@@ -16,3 +16,8 @@ export interface CreateTaskScheduleParams {
16
16
  notes?: string;
17
17
  createdBy: string;
18
18
  }
19
+ export interface GetTaskScheduleParams {
20
+ filters: {
21
+ id: number;
22
+ };
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.182",
3
+ "version": "0.0.183",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",