@spytecgps/nova-orm 0.0.180 → 0.0.182
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/taskSchedule.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/repositories/index.d.ts +2 -1
- package/dist/repositories/notificationRecipients/index.d.ts +2 -2
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedInfoStatus.d.ts +1 -1
- package/dist/repositories/tasks/createTaskSchedule.d.ts +5 -0
- package/dist/repositories/tasks/index.d.ts +27 -0
- package/dist/types/tasks.d.ts +18 -0
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ import { FirmwaresRepository } from './firmwares';
|
|
|
16
16
|
import { NotificationRecipientsRepository } from './notificationRecipients';
|
|
17
17
|
import { PositionRepository } from './positions';
|
|
18
18
|
import { SecurityRepository } from './security';
|
|
19
|
+
import { TasksRepository } from './tasks';
|
|
19
20
|
import { TripRepository } from './trips';
|
|
20
21
|
import { UserActivationsRepository } from './userActivations';
|
|
21
22
|
import { UserAppFeedbackRepository } from './userAppFeedback';
|
|
@@ -26,4 +27,4 @@ import { UserInvitationsRepository } from './userInvitations';
|
|
|
26
27
|
import { UserRatingRequestsRepository } from './userRatingRequests';
|
|
27
28
|
import { UserRegistrationAttemptsRepository } from './userRegistrationAttempts';
|
|
28
29
|
import { UsersRepository } from './users';
|
|
29
|
-
export { AcumaticaRepository, AempTokenRepository, AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BlacklistRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeactivationsRepository, DeviceBehaviorsRepository, DevicePairingsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, TripRepository, UserActivationsRepository, UserAppFeedbackRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UserRegistrationAttemptsRepository, UsersRepository, };
|
|
30
|
+
export { AcumaticaRepository, AempTokenRepository, AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BlacklistRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeactivationsRepository, DeviceBehaviorsRepository, DevicePairingsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, TasksRepository, TripRepository, UserActivationsRepository, UserAppFeedbackRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UserRegistrationAttemptsRepository, UsersRepository, };
|
|
@@ -59,9 +59,9 @@ export declare class NotificationRecipientsRepository extends BaseRepository {
|
|
|
59
59
|
* - params.filters.userPhone: The user phone
|
|
60
60
|
* - params.filters.userCountryCode: The user country code
|
|
61
61
|
* - params.values.unsubscribed: The unsubscribed flag, optional
|
|
62
|
-
* @returns
|
|
62
|
+
* @returns array with userId of notification recipients that where updated, if no notificationRecipients where updated returns null
|
|
63
63
|
*/
|
|
64
|
-
updateUsersNotificationsUnsuscribedInfoStatus(params: UpdateUsersNotificationsUnsubscribedInfoStatusParams): Promise<
|
|
64
|
+
updateUsersNotificationsUnsuscribedInfoStatus(params: UpdateUsersNotificationsUnsubscribedInfoStatusParams): Promise<string[]>;
|
|
65
65
|
/**
|
|
66
66
|
* Delete notification recipients
|
|
67
67
|
* @param {DeleteNotificationRecipientsParams} params containing information to delete notification recipients
|
package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedInfoStatus.d.ts
CHANGED
|
@@ -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 updateUsersNotificationsUnsuscribedInfoStatus: (novaDataSource: NovaDataSource, params: UpdateUsersNotificationsUnsubscribedInfoStatusParams, logger: Logger) => Promise<
|
|
4
|
+
export declare const updateUsersNotificationsUnsuscribedInfoStatus: (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 { CreateTaskScheduleParams } from '../../types/tasks';
|
|
5
|
+
export declare const createTaskSchedule: (novaDataSource: NovaDataSource, params: CreateTaskScheduleParams, logger: Logger) => Promise<TaskSchedule>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TaskSchedule } from '../../entities';
|
|
2
|
+
import { CreateTaskScheduleParams } from '../../types/tasks';
|
|
3
|
+
import { BaseRepository } from '../baseRepository';
|
|
4
|
+
export declare class TasksRepository extends BaseRepository {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new task schedule
|
|
7
|
+
* @param params params containing information to create task schedule
|
|
8
|
+
* params.id: the ID, optional. If not provided, a new ID will be generated
|
|
9
|
+
* params.clientId: the client ID, required
|
|
10
|
+
* params.title: the title, required
|
|
11
|
+
* params.description: the description, required
|
|
12
|
+
* params.repeats: whether the task repeats, required
|
|
13
|
+
* params.dueDate: the due date, required if repeats is false
|
|
14
|
+
* params.dueOdometer: the due odometer, required if repeats is false
|
|
15
|
+
* params.dueActiveHours: the due active hours, required if repeats is false
|
|
16
|
+
* params.intervalDays: the interval days, required if repeats is true
|
|
17
|
+
* params.intervalOdometer: the interval odometer, required if repeats is true
|
|
18
|
+
* params.intervalActiveHours: the interval active hours, required if repeats is true
|
|
19
|
+
* params.intervalStartDate: the interval start date, optional
|
|
20
|
+
* params.intervalStartingOdometer: the interval starting odometer, optional
|
|
21
|
+
* params.intervalStartingActiveHours: the interval starting active hours, optional
|
|
22
|
+
* params.notes: the notes, optional
|
|
23
|
+
* params.createdBy: the created by, required
|
|
24
|
+
* @returns Promise<TaskSchedule> the created task schedule
|
|
25
|
+
*/
|
|
26
|
+
createTaskSchedule(params: CreateTaskScheduleParams): Promise<TaskSchedule>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CreateTaskScheduleParams {
|
|
2
|
+
id?: number;
|
|
3
|
+
clientId: number;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
repeats: boolean;
|
|
7
|
+
dueDate?: Date;
|
|
8
|
+
dueOdometer?: number;
|
|
9
|
+
dueActiveHours?: number;
|
|
10
|
+
intervalDays?: number;
|
|
11
|
+
intervalStartDate?: Date;
|
|
12
|
+
intervalOdometer?: number;
|
|
13
|
+
intervalStartingOdometer?: number;
|
|
14
|
+
intervalActiveHours?: number;
|
|
15
|
+
intervalStartingActiveHours?: number;
|
|
16
|
+
notes?: string;
|
|
17
|
+
createdBy: string;
|
|
18
|
+
}
|