@spytecgps/nova-orm 0.0.60 → 0.0.61

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,6 +1,7 @@
1
+ import { InsertResult } from 'typeorm';
1
2
  import { Position } from '../../entities';
2
3
  import { NovaDataSource } from '../../novaDataSource';
3
4
  import { Logger } from '../../types/logger';
4
5
  import { CreatePositionParams } from '../../types/position';
5
6
  export declare const createPosition: (novaDataSource: NovaDataSource, params: CreatePositionParams, logger: Logger) => Promise<Position>;
6
- export declare const upsertPositions: (novaDataSource: NovaDataSource, params: CreatePositionParams[], logger: Logger) => Promise<any>;
7
+ export declare const upsertPositions: (novaDataSource: NovaDataSource, params: CreatePositionParams[], logger: Logger) => Promise<InsertResult>;
@@ -1,3 +1,4 @@
1
+ import { InsertResult } from 'typeorm';
1
2
  import { Position } from '../../entities';
2
3
  import { CreatePositionParams, GetPositionsByImeiParams, GetPositionsReportByClientParams, PositionReport } from '../../types/position';
3
4
  import { BaseRepository } from '../baseRepository';
@@ -39,7 +40,7 @@ export declare class PositionRepository extends BaseRepository {
39
40
  * - gpsUtcTime: the time the gps was set
40
41
  * - externalBatteryPercentage: the external battery percentage reported by the device
41
42
  */
42
- upsertPositions(params: CreatePositionParams[]): Promise<any>;
43
+ upsertPositions(params: CreatePositionParams[]): Promise<InsertResult>;
43
44
  /**
44
45
  * Get positions by imei
45
46
  * @param {GetPositionsByImeiParams} params containing information to get positions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",