@spytecgps/nova-orm 0.0.182 → 0.0.184
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/index.js +1 -1
- package/dist/repositories/devicePairings/getDevicePairingsByImei.d.ts +5 -0
- package/dist/repositories/devicePairings/index.d.ts +8 -1
- package/dist/repositories/notificationRecipients/index.d.ts +2 -2
- package/dist/repositories/notificationRecipients/{updateUsersNotificationsUnsuscribedInfoStatus.d.ts → updateUsersNotificationsUnsubscribedInfoStatus.d.ts} +1 -1
- package/dist/repositories/tasks/getTaskSchedule.d.ts +5 -0
- package/dist/repositories/tasks/index.d.ts +8 -1
- package/dist/types/devicePairings.d.ts +5 -0
- package/dist/types/tasks.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DevicePairing } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { GetDevicePairingsByImeiParams } from '../../types/devicePairings';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const getDevicePairingsByImei: (novaDataSource: NovaDataSource, params: GetDevicePairingsByImeiParams, logger: Logger) => Promise<DevicePairing[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DevicePairing } from '../../entities';
|
|
2
|
-
import { CreateDevicePairingParams, DeleteDevicePairingParams, GetDevicePairingsParams, UpdateDevicePairingParams } from '../../types/devicePairings';
|
|
2
|
+
import { CreateDevicePairingParams, DeleteDevicePairingParams, GetDevicePairingsByImeiParams, GetDevicePairingsParams, UpdateDevicePairingParams } from '../../types/devicePairings';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class DevicePairingsRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -13,6 +13,13 @@ export declare class DevicePairingsRepository extends BaseRepository {
|
|
|
13
13
|
* @returns Promise<DevicePairing[]> the device pairings
|
|
14
14
|
*/
|
|
15
15
|
getDevicePairings(params: GetDevicePairingsParams): Promise<DevicePairing[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Get device pairings by IMEI
|
|
18
|
+
* @param params params containing information to get device pairings by IMEI with filters
|
|
19
|
+
* filters.imei: the IMEI to get device pairings
|
|
20
|
+
* @returns Promise<DevicePairing[]> the device pairings
|
|
21
|
+
*/
|
|
22
|
+
getDevicePairingsByImei(params: GetDevicePairingsByImeiParams): Promise<DevicePairing[]>;
|
|
16
23
|
/**
|
|
17
24
|
* Create device pairing
|
|
18
25
|
* @param params params containing information to create device pairing
|
|
@@ -38,7 +38,7 @@ export declare class NotificationRecipientsRepository extends BaseRepository {
|
|
|
38
38
|
*/
|
|
39
39
|
updateNotificationRecipient(params: UpdateNotificationRecipientParams): Promise<boolean>;
|
|
40
40
|
/**
|
|
41
|
-
* @deprecated The method should not be used, use '
|
|
41
|
+
* @deprecated The method should not be used, use 'updateUsersNotificationsUnsubscribedInfoStatus'
|
|
42
42
|
* Update users notifications unsubscribed status
|
|
43
43
|
* @param {UpdateUsersNotificationsUnsuscribedStatusParams} params containing information to update users notifications unsubscribed status
|
|
44
44
|
* - params.filters: Using these filters, the query will update the users notifications unsubscribed
|
|
@@ -61,7 +61,7 @@ export declare class NotificationRecipientsRepository extends BaseRepository {
|
|
|
61
61
|
* - params.values.unsubscribed: The unsubscribed flag, optional
|
|
62
62
|
* @returns array with userId of notification recipients that where updated, if no notificationRecipients where updated returns null
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
updateUsersNotificationsUnsubscribedInfoStatus(params: UpdateUsersNotificationsUnsubscribedInfoStatusParams): Promise<string[] | null>;
|
|
65
65
|
/**
|
|
66
66
|
* Delete notification recipients
|
|
67
67
|
* @param {DeleteNotificationRecipientsParams} params containing information to delete notification recipients
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { NovaDataSource } from '../../novaDataSource';
|
|
2
2
|
import { Logger } from '../../types/logger';
|
|
3
3
|
import { UpdateUsersNotificationsUnsubscribedInfoStatusParams } from '../../types/notificationRecipients';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const updateUsersNotificationsUnsubscribedInfoStatus: (novaDataSource: NovaDataSource, params: UpdateUsersNotificationsUnsubscribedInfoStatusParams, logger: Logger) => Promise<string[]>;
|
|
@@ -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
|
}
|
package/dist/types/tasks.d.ts
CHANGED