@spytecgps/nova-orm 0.0.129 → 0.0.131
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.
- package/dist/entities/alertTimeWindowConfiguration.d.ts +11 -0
- package/dist/entities/deviceAlertConfiguration.d.ts +13 -0
- package/dist/entities/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/repositories/trips/index.d.ts +2 -2
- package/dist/repositories/trips/upsertTrip.d.ts +2 -2
- package/dist/types/trip.d.ts +0 -22
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Trip } from '../../entities';
|
|
2
|
-
import { CreateTripParams, GetTripsParams, GetTripsResult, UpdateTripEndValuesParams
|
|
2
|
+
import { CreateTripParams, GetTripsParams, GetTripsResult, UpdateTripEndValuesParams } from '../../types/trip';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class TripRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -31,5 +31,5 @@ export declare class TripRepository extends BaseRepository {
|
|
|
31
31
|
* @param {UpsertTripParams} params containing information to upsert a trip
|
|
32
32
|
* @returns {boolean} true if the event was upserted, false otherwise
|
|
33
33
|
*/
|
|
34
|
-
upsertTrip(params:
|
|
34
|
+
upsertTrip(params: CreateTripParams): Promise<boolean>;
|
|
35
35
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { NovaDataSource } from '../../novaDataSource';
|
|
2
2
|
import { Logger } from '../../types/logger';
|
|
3
|
-
import {
|
|
4
|
-
export declare const upsertTrip: (novaDataSource: NovaDataSource, params:
|
|
3
|
+
import { CreateTripParams } from '../../types/trip';
|
|
4
|
+
export declare const upsertTrip: (novaDataSource: NovaDataSource, params: CreateTripParams, logger: Logger) => Promise<boolean>;
|
package/dist/types/trip.d.ts
CHANGED
|
@@ -24,28 +24,6 @@ export interface CreateTripParams {
|
|
|
24
24
|
startMessageId: string;
|
|
25
25
|
endMessageId?: string;
|
|
26
26
|
}
|
|
27
|
-
export interface UpsertTripParams {
|
|
28
|
-
id: string;
|
|
29
|
-
imei?: string;
|
|
30
|
-
startDate?: Date;
|
|
31
|
-
endDate?: Date;
|
|
32
|
-
distance?: number;
|
|
33
|
-
startLat?: number;
|
|
34
|
-
startLon?: number;
|
|
35
|
-
endLat?: number;
|
|
36
|
-
endLon?: number;
|
|
37
|
-
createdAt?: Date;
|
|
38
|
-
startAddress?: string;
|
|
39
|
-
endAddress?: string;
|
|
40
|
-
positionStart?: string;
|
|
41
|
-
positionEnd?: string;
|
|
42
|
-
tripCompletionStatusId?: TripCompletionStatus;
|
|
43
|
-
clientId?: number;
|
|
44
|
-
duration?: number;
|
|
45
|
-
tripType?: TripType;
|
|
46
|
-
startMessageId?: string;
|
|
47
|
-
endMessageId?: string;
|
|
48
|
-
}
|
|
49
27
|
export declare const requiredUpdateTripEndValuesParamsAttributes: string[];
|
|
50
28
|
export interface UpdateTripEndValuesParams {
|
|
51
29
|
filters: {
|