@spytecgps/nova-orm 1.0.31 → 1.0.32
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/index.d.ts +2 -1
- package/dist/entities/index.js +2 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/liveLink.d.ts +15 -0
- package/dist/entities/liveLink.js +82 -0
- package/dist/entities/liveLink.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/repositories/devices/getDevices.js +3 -3
- package/dist/repositories/devices/getDevices.js.map +1 -1
- package/dist/repositories/index.d.ts +2 -1
- package/dist/repositories/index.js +2 -1
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/liveLinks/createLiveLink.d.ts +5 -0
- package/dist/repositories/liveLinks/createLiveLink.js +37 -0
- package/dist/repositories/liveLinks/createLiveLink.js.map +1 -0
- package/dist/repositories/liveLinks/getLiveLinkData.d.ts +5 -0
- package/dist/repositories/liveLinks/getLiveLinkData.js +85 -0
- package/dist/repositories/liveLinks/getLiveLinkData.js.map +1 -0
- package/dist/repositories/liveLinks/getLiveLinks.d.ts +5 -0
- package/dist/repositories/liveLinks/getLiveLinks.js +34 -0
- package/dist/repositories/liveLinks/getLiveLinks.js.map +1 -0
- package/dist/repositories/liveLinks/index.d.ts +48 -0
- package/dist/repositories/liveLinks/index.js +78 -0
- package/dist/repositories/liveLinks/index.js.map +1 -0
- package/dist/repositories/liveLinks/updateLiveLink.d.ts +4 -0
- package/dist/repositories/liveLinks/updateLiveLink.js +36 -0
- package/dist/repositories/liveLinks/updateLiveLink.js.map +1 -0
- package/dist/repositories/userConfigurations/getCustomUserAlertConfiguration.d.ts +1 -0
- package/dist/repositories/userConfigurations/getCustomUserAlertConfiguration.js +26 -22
- package/dist/repositories/userConfigurations/getCustomUserAlertConfiguration.js.map +1 -1
- package/dist/repositories/userConfigurations/getCustomUserAlertConfigurationCount.d.ts +4 -0
- package/dist/repositories/userConfigurations/getCustomUserAlertConfigurationCount.js +21 -0
- package/dist/repositories/userConfigurations/getCustomUserAlertConfigurationCount.js.map +1 -0
- package/dist/repositories/userConfigurations/index.d.ts +18 -6
- package/dist/repositories/userConfigurations/index.js +25 -6
- package/dist/repositories/userConfigurations/index.js.map +1 -1
- package/dist/types/devices.d.ts +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/liveLinks.d.ts +67 -0
- package/dist/types/liveLinks.js +2 -0
- package/dist/types/liveLinks.js.map +1 -0
- package/dist/utils/parsingTools.d.ts +2 -0
- package/dist/utils/parsingTools.js +13 -0
- package/dist/utils/parsingTools.js.map +1 -0
- package/package.json +1 -1
|
@@ -79,12 +79,24 @@ export declare class UserConfigurationsRepository extends BaseRepository {
|
|
|
79
79
|
getUserAlertConfigurations(params: GetUserAlertConfigurationsParams): Promise<UserAlertConfiguration[]>;
|
|
80
80
|
/**
|
|
81
81
|
* Get custom user alert configurations
|
|
82
|
-
* @param {GetCustomUserAlertConfigurationParams} params containing information to get
|
|
82
|
+
* @param {GetCustomUserAlertConfigurationParams} params containing information to get custom user alert configurations
|
|
83
83
|
* - filters.imei: The imei to obtain all user alert configurations from that device.
|
|
84
84
|
* - filters.clientId: The client id to obtain the configurations.
|
|
85
|
+
* - filters.userId: The user id to obtain the configurations.
|
|
86
|
+
* - filters.configId: The device custom user alert configuration id to obtain the configurations.
|
|
85
87
|
* @returns The user device time windows configurations
|
|
86
88
|
*/
|
|
87
89
|
getCustomUserAlertConfiguration(params: GetCustomUserAlertConfigurationParams): Promise<CustomUserAlertConfiguration[]>;
|
|
90
|
+
/**
|
|
91
|
+
* Get the custom user alert configurations count
|
|
92
|
+
* @param {GetCustomUserAlertConfigurationParams} params containing information to get custom user alert configurations
|
|
93
|
+
* - filters.imei: The imei to obtain all user alert configurations from that device.
|
|
94
|
+
* - filters.clientId: The client id to obtain the configurations.
|
|
95
|
+
* - filters.userId: The user id to obtain the configurations.
|
|
96
|
+
* - filters.configId: The device custom user alert configuration id to obtain the configurations.
|
|
97
|
+
* @returns The user device time windows configurations
|
|
98
|
+
*/
|
|
99
|
+
getCustomUserAlertConfigurationCount(params: GetCustomUserAlertConfigurationParams): Promise<number>;
|
|
88
100
|
/**
|
|
89
101
|
* Bulk create user alert configurations
|
|
90
102
|
* @param {BulkCreateUserAlertConfigurationsParams} params containing information to bulk create user alert configurations
|
|
@@ -128,21 +140,21 @@ export declare class UserConfigurationsRepository extends BaseRepository {
|
|
|
128
140
|
deleteUserAlertConfigurations(params: DeleteUserAlertConfigurationsParams): Promise<boolean>;
|
|
129
141
|
/**
|
|
130
142
|
* Delete custom user alert configurations
|
|
131
|
-
* @param {DeleteCustomUserAlertConfigurationParams} params containing information to delete
|
|
132
|
-
* @returns Whether the
|
|
143
|
+
* @param {DeleteCustomUserAlertConfigurationParams} params containing information to delete custom user alert configurations
|
|
144
|
+
* @returns Whether the custom user alert configurations were deleted or not
|
|
133
145
|
*/
|
|
134
146
|
deleteCustomUserAlertConfiguration(params: DeleteCustomUserAlertConfigurationParams): Promise<boolean>;
|
|
135
147
|
/**
|
|
136
148
|
* Update custom user alert configurations
|
|
137
|
-
* @param {UpdateCustomUserAlertConfigurationParams} params containing information to update
|
|
138
|
-
* - filters.configId: The device
|
|
149
|
+
* @param {UpdateCustomUserAlertConfigurationParams} params containing information to update custom user alert configurations
|
|
150
|
+
* - filters.configId: The device custom user alert configuration id to update, required
|
|
139
151
|
* - values.alertConfigurationId: The alert configuration id to update, optional
|
|
140
152
|
* - values.daysOfTheWeek: The days of the week to update, optional
|
|
141
153
|
* - values.startTime: The start time to update, optional
|
|
142
154
|
* - values.endTime: The end time to update, optional
|
|
143
155
|
* - values.filter: The filter to update, optional
|
|
144
156
|
* One of the values should be provided
|
|
145
|
-
* @returns Whether the
|
|
157
|
+
* @returns Whether the custom user alert configurations were updated or not
|
|
146
158
|
*/
|
|
147
159
|
updateCustomUserAlertConfiguration(params: UpdateCustomUserAlertConfigurationParams): Promise<boolean>;
|
|
148
160
|
}
|
|
@@ -7,6 +7,7 @@ import { deleteCustomUserAlertConfiguration } from './deleteCustomUserAlertConfi
|
|
|
7
7
|
import { deleteUserAlertConfigurations } from './deleteUserAlertConfigurations';
|
|
8
8
|
import { deleteUserConfiguration } from './deleteUserConfiguration';
|
|
9
9
|
import { getCustomUserAlertConfiguration } from './getCustomUserAlertConfiguration';
|
|
10
|
+
import { getCustomUserAlertConfigurationCount } from './getCustomUserAlertConfigurationCount';
|
|
10
11
|
import { getUserAlertConfigurations } from './getUserAlertConfigurations';
|
|
11
12
|
import { getUserConfigurations } from './getUserConfigurations';
|
|
12
13
|
import { updateCustomUserAlertConfiguration } from './updateCustomUserAlertConfiguration';
|
|
@@ -126,9 +127,11 @@ export class UserConfigurationsRepository extends BaseRepository {
|
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
129
|
* Get custom user alert configurations
|
|
129
|
-
* @param {GetCustomUserAlertConfigurationParams} params containing information to get
|
|
130
|
+
* @param {GetCustomUserAlertConfigurationParams} params containing information to get custom user alert configurations
|
|
130
131
|
* - filters.imei: The imei to obtain all user alert configurations from that device.
|
|
131
132
|
* - filters.clientId: The client id to obtain the configurations.
|
|
133
|
+
* - filters.userId: The user id to obtain the configurations.
|
|
134
|
+
* - filters.configId: The device custom user alert configuration id to obtain the configurations.
|
|
132
135
|
* @returns The user device time windows configurations
|
|
133
136
|
*/
|
|
134
137
|
async getCustomUserAlertConfiguration(params) {
|
|
@@ -138,6 +141,22 @@ export class UserConfigurationsRepository extends BaseRepository {
|
|
|
138
141
|
this.logger.trace(result, 'UserConfigurationsRepository::getCustomUserAlertConfiguration result');
|
|
139
142
|
return result;
|
|
140
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Get the custom user alert configurations count
|
|
146
|
+
* @param {GetCustomUserAlertConfigurationParams} params containing information to get custom user alert configurations
|
|
147
|
+
* - filters.imei: The imei to obtain all user alert configurations from that device.
|
|
148
|
+
* - filters.clientId: The client id to obtain the configurations.
|
|
149
|
+
* - filters.userId: The user id to obtain the configurations.
|
|
150
|
+
* - filters.configId: The device custom user alert configuration id to obtain the configurations.
|
|
151
|
+
* @returns The user device time windows configurations
|
|
152
|
+
*/
|
|
153
|
+
async getCustomUserAlertConfigurationCount(params) {
|
|
154
|
+
this.logger.trace(params, 'UserConfigurationsRepository::getCustomUserAlertConfigurationCount started with params');
|
|
155
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
156
|
+
const result = await getCustomUserAlertConfigurationCount(novaDataSource, params, this.logger);
|
|
157
|
+
this.logger.trace({ result }, 'UserConfigurationsRepository::getCustomUserAlertConfigurationCount result');
|
|
158
|
+
return result;
|
|
159
|
+
}
|
|
141
160
|
/**
|
|
142
161
|
* Bulk create user alert configurations
|
|
143
162
|
* @param {BulkCreateUserAlertConfigurationsParams} params containing information to bulk create user alert configurations
|
|
@@ -199,8 +218,8 @@ export class UserConfigurationsRepository extends BaseRepository {
|
|
|
199
218
|
}
|
|
200
219
|
/**
|
|
201
220
|
* Delete custom user alert configurations
|
|
202
|
-
* @param {DeleteCustomUserAlertConfigurationParams} params containing information to delete
|
|
203
|
-
* @returns Whether the
|
|
221
|
+
* @param {DeleteCustomUserAlertConfigurationParams} params containing information to delete custom user alert configurations
|
|
222
|
+
* @returns Whether the custom user alert configurations were deleted or not
|
|
204
223
|
*/
|
|
205
224
|
async deleteCustomUserAlertConfiguration(params) {
|
|
206
225
|
this.logger.trace(params, 'UserConfigurationsRepository::deleteCustomUserAlertConfiguration started with params');
|
|
@@ -211,15 +230,15 @@ export class UserConfigurationsRepository extends BaseRepository {
|
|
|
211
230
|
}
|
|
212
231
|
/**
|
|
213
232
|
* Update custom user alert configurations
|
|
214
|
-
* @param {UpdateCustomUserAlertConfigurationParams} params containing information to update
|
|
215
|
-
* - filters.configId: The device
|
|
233
|
+
* @param {UpdateCustomUserAlertConfigurationParams} params containing information to update custom user alert configurations
|
|
234
|
+
* - filters.configId: The device custom user alert configuration id to update, required
|
|
216
235
|
* - values.alertConfigurationId: The alert configuration id to update, optional
|
|
217
236
|
* - values.daysOfTheWeek: The days of the week to update, optional
|
|
218
237
|
* - values.startTime: The start time to update, optional
|
|
219
238
|
* - values.endTime: The end time to update, optional
|
|
220
239
|
* - values.filter: The filter to update, optional
|
|
221
240
|
* One of the values should be provided
|
|
222
|
-
* @returns Whether the
|
|
241
|
+
* @returns Whether the custom user alert configurations were updated or not
|
|
223
242
|
*/
|
|
224
243
|
async updateCustomUserAlertConfiguration(params) {
|
|
225
244
|
this.logger.trace(params, 'UserConfigurationsRepository::updateCustomUserAlertConfiguration started with params');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/userConfigurations/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAerD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA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AAC,kCAAkC,CACtC,MAAgD;QAEhD,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,MAAM,EACN,sFAAsF,CACvF,CAAA;QAED,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEjF,MAAM,MAAM,GAAG,MAAM,kCAAkC,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE5F,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,EAAE,MAAM,EAAE,EACV,yEAAyE,CAC1E,CAAA;QAED,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,kCAAkC,CACtC,MAAgD;QAEhD,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,MAAM,EACN,sFAAsF,CACvF,CAAA;QAED,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEjF,MAAM,MAAM,GAAG,MAAM,kCAAkC,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE5F,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,EAAE,MAAM,EAAE,EACV,yEAAyE,CAC1E,CAAA;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
package/dist/types/devices.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface GetDevicesParams extends OptionalReportPagination {
|
|
|
18
18
|
clientId?: number;
|
|
19
19
|
imeiList?: string[];
|
|
20
20
|
};
|
|
21
|
-
projectionOptions
|
|
21
|
+
projectionOptions?: {
|
|
22
22
|
withDeviceType?: boolean;
|
|
23
23
|
withIccidCarrier?: boolean;
|
|
24
24
|
withClientDeviceSettings?: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import * as DevicePairings from './devicePairings';
|
|
|
14
14
|
import * as Devices from './devices';
|
|
15
15
|
import * as Enums from './enums';
|
|
16
16
|
import * as Firmwares from './firmwares';
|
|
17
|
+
import * as LiveLinks from './liveLinks';
|
|
17
18
|
import * as Logger from './logger';
|
|
18
19
|
import * as NotificationRecipients from './notificationRecipients';
|
|
19
20
|
import * as Positions from './position';
|
|
@@ -28,4 +29,4 @@ import * as UserDataDeletionRequests from './userDataDeletionRequests';
|
|
|
28
29
|
import * as UserInvitations from './userInvitations';
|
|
29
30
|
import * as UserRatingRequests from './userRatingRequests';
|
|
30
31
|
import * as UserRegistrationAttempts from './userRegistrationAttempts';
|
|
31
|
-
export { Acumatica, Alerts, AlertTypes, AppFeatures, Billing, Blacklist, BLEMeshConfiguration, Boundaries, Clients, Countries, Deactivations, DeviceBehaviors, DevicePairings, Devices, Firmwares, Logger, NotificationRecipients, Positions, Security, Trips, Users, UserActivations, UserAppFeedback, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, UserRegistrationAttempts, Enums, };
|
|
32
|
+
export { Acumatica, Alerts, AlertTypes, AppFeatures, Billing, Blacklist, BLEMeshConfiguration, Boundaries, Clients, Countries, Deactivations, DeviceBehaviors, DevicePairings, Devices, Firmwares, LiveLinks, Logger, NotificationRecipients, Positions, Security, Trips, Users, UserActivations, UserAppFeedback, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, UserRegistrationAttempts, Enums, };
|
package/dist/types/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import * as DevicePairings from './devicePairings';
|
|
|
14
14
|
import * as Devices from './devices';
|
|
15
15
|
import * as Enums from './enums';
|
|
16
16
|
import * as Firmwares from './firmwares';
|
|
17
|
+
import * as LiveLinks from './liveLinks';
|
|
17
18
|
import * as Logger from './logger';
|
|
18
19
|
import * as NotificationRecipients from './notificationRecipients';
|
|
19
20
|
import * as Positions from './position';
|
|
@@ -28,5 +29,5 @@ import * as UserDataDeletionRequests from './userDataDeletionRequests';
|
|
|
28
29
|
import * as UserInvitations from './userInvitations';
|
|
29
30
|
import * as UserRatingRequests from './userRatingRequests';
|
|
30
31
|
import * as UserRegistrationAttempts from './userRegistrationAttempts';
|
|
31
|
-
export { Acumatica, Alerts, AlertTypes, AppFeatures, Billing, Blacklist, BLEMeshConfiguration, Boundaries, Clients, Countries, Deactivations, DeviceBehaviors, DevicePairings, Devices, Firmwares, Logger, NotificationRecipients, Positions, Security, Trips, Users, UserActivations, UserAppFeedback, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, UserRegistrationAttempts, Enums, };
|
|
32
|
+
export { Acumatica, Alerts, AlertTypes, AppFeatures, Billing, Blacklist, BLEMeshConfiguration, Boundaries, Clients, Countries, Deactivations, DeviceBehaviors, DevicePairings, Devices, Firmwares, LiveLinks, Logger, NotificationRecipients, Positions, Security, Trips, Users, UserActivations, UserAppFeedback, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, UserRegistrationAttempts, Enums, };
|
|
32
33
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,MAAM,MAAM,SAAS,CAAA;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,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OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,wBAAwB,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,wBAAwB,MAAM,4BAA4B,CAAA;AAEtE,OAAO,EACL,SAAS,EACT,MAAM,EACN,UAAU,EACV,WAAW,EACX,OAAO,EACP,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,OAAO,EACP,SAAS,EACT,aAAa,EACb,eAAe,EACf,cAAc,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,MAAM,EACN,sBAAsB,EACtB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,KAAK,GACN,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { OptionalReportPagination } from './common';
|
|
2
|
+
export interface CreateLiveLinkParams {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
clientId: number;
|
|
6
|
+
startDate?: Date;
|
|
7
|
+
endDate?: Date;
|
|
8
|
+
deviceAccess: string;
|
|
9
|
+
devices?: string[];
|
|
10
|
+
createdBy?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateLiveLinkParams {
|
|
13
|
+
filters: {
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
16
|
+
values: {
|
|
17
|
+
name?: string;
|
|
18
|
+
status?: string;
|
|
19
|
+
startDate?: Date;
|
|
20
|
+
endDate?: Date;
|
|
21
|
+
deviceAccess?: string;
|
|
22
|
+
devices?: string[];
|
|
23
|
+
modifiedBy?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface GetLiveLinksParams {
|
|
27
|
+
filters: {
|
|
28
|
+
id?: string;
|
|
29
|
+
clientId?: number;
|
|
30
|
+
};
|
|
31
|
+
pagingOptions?: {
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
pageIndex?: number;
|
|
34
|
+
};
|
|
35
|
+
sortOptions?: {
|
|
36
|
+
sortField: 'id' | 'clientId' | 'name' | 'status' | 'startDate' | 'endDate' | 'deviceAccess' | 'createdAt' | 'modifiedAt';
|
|
37
|
+
sortOrder: 'ASC' | 'DESC';
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface GetLiveLinkDataParams extends OptionalReportPagination {
|
|
41
|
+
filters: {
|
|
42
|
+
id: string;
|
|
43
|
+
minSendTime?: Date;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface TrackerWithLocation {
|
|
47
|
+
imei: string;
|
|
48
|
+
name: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
deviceTypeId: number;
|
|
51
|
+
color?: string;
|
|
52
|
+
icon?: string;
|
|
53
|
+
latitude?: number;
|
|
54
|
+
longitude?: number;
|
|
55
|
+
address?: string;
|
|
56
|
+
sendTime?: Date;
|
|
57
|
+
odoMileage?: number;
|
|
58
|
+
batteryPercentage?: number;
|
|
59
|
+
speed?: number;
|
|
60
|
+
hoursOfOperation?: number;
|
|
61
|
+
batteryVoltage?: number;
|
|
62
|
+
externalPowerVoltage?: number;
|
|
63
|
+
reportType?: number;
|
|
64
|
+
}
|
|
65
|
+
export interface LiveLinkData {
|
|
66
|
+
trackersWithLocation: TrackerWithLocation[];
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveLinks.js","sourceRoot":"","sources":["../../src/types/liveLinks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const tryParseFloat = (valueToParse, defaultValue = null) => {
|
|
2
|
+
const numberFloat = Number.parseFloat(valueToParse);
|
|
3
|
+
return Number.isNaN(numberFloat) ? defaultValue : numberFloat;
|
|
4
|
+
};
|
|
5
|
+
export const tryParseDate = (anyDate, defaultValue = null) => {
|
|
6
|
+
try {
|
|
7
|
+
return anyDate ? new Date(anyDate.toString()) : defaultValue;
|
|
8
|
+
}
|
|
9
|
+
catch (_error) {
|
|
10
|
+
return defaultValue;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=parsingTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parsingTools.js","sourceRoot":"","sources":["../../src/utils/parsingTools.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,YAAiB,EACjB,eAA8B,IAAI,EACnB,EAAE;IACjB,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;IACnD,OAAO,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAA;AAC/D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAY,EAAE,eAA4B,IAAI,EAAQ,EAAE;IACnF,IAAI;QACF,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAA;KAC7D;IAAC,OAAO,MAAM,EAAE;QACf,OAAO,YAAY,CAAA;KACpB;AACH,CAAC,CAAA"}
|