@spytecgps/nova-orm 0.0.82 → 0.0.83

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.
@@ -56,8 +56,12 @@ export declare class PositionRepository extends BaseRepository {
56
56
  * - filters.actualDateTo: filters by actual date to to get positions
57
57
  * - filters.speedMin: filters by speed min to get positions
58
58
  * - filters.speedMax: filters by speed max to get positions
59
- * - pageSize: the page size
60
- * - pageIndex: the page index
59
+ * - filters.odometerMin: filters by odometer min to get positions
60
+ * - filters.odometerMax: filters by odometer max to get positions
61
+ * - pagingOptions.pageSize: the page size
62
+ * - pagingOptions.pageIndex: the page index
63
+ * - sortOptions.sortField: the sort field
64
+ * - sortOptions.sortOrder: the sort order
61
65
  */
62
66
  getPositionsReportByClient(params: GetPositionsReportByClientParams): Promise<PositionReport[]>;
63
67
  }
@@ -22,7 +22,7 @@ export interface CreateAlertParams {
22
22
  export interface ReportPagination {
23
23
  pagingOptions: {
24
24
  pageSize: number | 25;
25
- pageIndex: number | 1;
25
+ pageIndex: number | 0;
26
26
  };
27
27
  sortOptions?: {
28
28
  sortField: string;
@@ -29,10 +29,16 @@ export interface GetPositionsReportByClientParams {
29
29
  actualDateTo?: Date | null;
30
30
  speedMin?: number | null;
31
31
  speedMax?: number | null;
32
+ odometerMin?: number | null;
33
+ odometerMax?: number | null;
32
34
  };
33
35
  pagingOptions: {
34
36
  pageSize: number | 25;
35
- pageIndex: number | 1;
37
+ pageIndex: number | 0;
38
+ };
39
+ sortOptions?: {
40
+ sortField: string;
41
+ sortOrder: 'ASC' | 'DESC';
36
42
  };
37
43
  }
38
44
  export interface PositionReport {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",