@spytecgps/nova-orm 0.0.131 → 0.0.133
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 +1 -1
- package/dist/entities/deviceAlertConfiguration.d.ts +1 -1
- package/dist/entities/trip.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/repositories/trips/getTripById.d.ts +1 -1
- package/dist/repositories/userConfigurations/getDeviceAlertTimeWindows.d.ts +5 -0
- package/dist/repositories/userConfigurations/getUserAlertTimeWindows.d.ts +5 -0
- package/dist/repositories/userConfigurations/index.d.ts +17 -2
- package/dist/types/trip.d.ts +2 -2
- package/dist/types/userConfigurations.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Trip } from '../../entities';
|
|
2
2
|
import { NovaDataSource } from '../../novaDataSource';
|
|
3
3
|
import { Logger } from '../../types/logger';
|
|
4
|
-
export declare const getTripById: (novaDataSource: NovaDataSource,
|
|
4
|
+
export declare const getTripById: (novaDataSource: NovaDataSource, tripGuid: string, logger: Logger) => Promise<Trip>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DeviceAlertConfiguration } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
import { GetDeviceAlertTimeWindowsParams } from '../../types/userConfigurations';
|
|
5
|
+
export declare const getDeviceAlertTimeWindows: (novaDataSource: NovaDataSource, params: GetDeviceAlertTimeWindowsParams, logger: Logger) => Promise<DeviceAlertConfiguration[]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AlertTimeWindowConfiguration } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
import { GetUserAlertTimeWindowsParams } from '../../types/userConfigurations';
|
|
5
|
+
export declare const getUserAlertTimeWindows: (novaDataSource: NovaDataSource, params: GetUserAlertTimeWindowsParams, logger: Logger) => Promise<AlertTimeWindowConfiguration[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserAlertConfiguration, UserConfiguration } from '../../entities';
|
|
2
|
-
import { BulkCreateUserAlertConfigurationsParams, CreateUserConfigurationParams, DeleteUserAlertConfigurationsParams, DeleteUserConfigurationParams, GetUserAlertConfigurationsParams, GetUserConfigurationsParams, UpdateUserAlertConfigurationsParams, UpdateUserConfigurationParams } from '../../types/userConfigurations';
|
|
1
|
+
import { AlertTimeWindowConfiguration, DeviceAlertConfiguration, UserAlertConfiguration, UserConfiguration } from '../../entities';
|
|
2
|
+
import { BulkCreateUserAlertConfigurationsParams, CreateUserConfigurationParams, DeleteUserAlertConfigurationsParams, DeleteUserConfigurationParams, GetDeviceAlertTimeWindowsParams, GetUserAlertConfigurationsParams, GetUserAlertTimeWindowsParams, GetUserConfigurationsParams, UpdateUserAlertConfigurationsParams, UpdateUserConfigurationParams } from '../../types/userConfigurations';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class UserConfigurationsRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -62,6 +62,21 @@ export declare class UserConfigurationsRepository extends BaseRepository {
|
|
|
62
62
|
* @returns The user alert configurations
|
|
63
63
|
*/
|
|
64
64
|
getUserAlertConfigurations(params: GetUserAlertConfigurationsParams): Promise<UserAlertConfiguration[]>;
|
|
65
|
+
/**
|
|
66
|
+
* Get user alert time windows configurations
|
|
67
|
+
* @param {GetUserAlertTimeWindowsParams} params containing information to get user alert time windows configurations
|
|
68
|
+
* - filters.userId: The user id to obtain all user alert configurations from that user.
|
|
69
|
+
* - filters.clientId: The client id to obtain the configurations.
|
|
70
|
+
* @returns The user alert time windows configurations
|
|
71
|
+
*/
|
|
72
|
+
getUserAlertTimeWindows(params: GetUserAlertTimeWindowsParams): Promise<AlertTimeWindowConfiguration[]>;
|
|
73
|
+
/**
|
|
74
|
+
* Get device alert time windows configurations
|
|
75
|
+
* @param {GetDeviceAlertTimeWindowsParams} params containing information to get device alert time windows configurations
|
|
76
|
+
* - filters.imei: The imei to obtain all user alert configurations from that device.
|
|
77
|
+
* @returns The user device time windows configurations
|
|
78
|
+
*/
|
|
79
|
+
getDeviceAlertTimeWindows(params: GetDeviceAlertTimeWindowsParams): Promise<DeviceAlertConfiguration[]>;
|
|
65
80
|
/**
|
|
66
81
|
* Bulk create user alert configurations
|
|
67
82
|
* @param {BulkCreateUserAlertConfigurationsParams} params containing information to bulk create user alert configurations
|
package/dist/types/trip.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReportPagination } from './common';
|
|
|
3
3
|
import { TripCompletionStatus, TripType } from './enums';
|
|
4
4
|
export declare const requiredCreateTripParamsAttributes: string[];
|
|
5
5
|
export interface CreateTripParams {
|
|
6
|
-
|
|
6
|
+
tripGuid: string;
|
|
7
7
|
imei: string;
|
|
8
8
|
startDate: Date;
|
|
9
9
|
endDate?: Date;
|
|
@@ -27,7 +27,7 @@ export interface CreateTripParams {
|
|
|
27
27
|
export declare const requiredUpdateTripEndValuesParamsAttributes: string[];
|
|
28
28
|
export interface UpdateTripEndValuesParams {
|
|
29
29
|
filters: {
|
|
30
|
-
|
|
30
|
+
tripGuid: string;
|
|
31
31
|
};
|
|
32
32
|
values: {
|
|
33
33
|
endDate: Date;
|
|
@@ -45,6 +45,17 @@ export interface GetUserAlertConfigurationsParams {
|
|
|
45
45
|
includeBeta: boolean;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
+
export interface GetUserAlertTimeWindowsParams {
|
|
49
|
+
filters: {
|
|
50
|
+
userId?: string;
|
|
51
|
+
clientId?: number;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface GetDeviceAlertTimeWindowsParams {
|
|
55
|
+
filters: {
|
|
56
|
+
imei: string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
48
59
|
export interface CreateUserAlertConfigurationParams {
|
|
49
60
|
id?: number;
|
|
50
61
|
userId: string;
|