@spytecgps/nova-orm 0.0.112 → 0.0.114
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.
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { DeviceWithUsersInfo, GetDeviceWithUsersInfoParams } from '../../types/devices';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const getDeviceWithUsersInfo: (novaDataSource: NovaDataSource, params: GetDeviceWithUsersInfoParams, logger: Logger) => Promise<DeviceWithUsersInfo[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClientDeviceSetting, Device, DeviceCustomConfiguration, DeviceReplacement, DeviceType, IccidStatus, ImeiIccidCarrier } from '../../entities';
|
|
2
|
-
import { CanceledDeviceWithActiveSimCard, CarrierStatus, CreateClientDeviceSettingParams, CreateDeviceParams, CreateDeviceReplacementParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, GenerateIdentifierKeyParams, GetCanceledDevicesWithActiveSimCardsParams, GetCarrierStatusUpdatedBeforeParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetFilteredImeisWithStatusParams, GetIccidStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateIccidStatusParams, UpdateImeiIccidCarrierParams, UpsertIccidStatusParams } from '../../types/devices';
|
|
2
|
+
import { CanceledDeviceWithActiveSimCard, CarrierStatus, CreateClientDeviceSettingParams, CreateDeviceParams, CreateDeviceReplacementParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, DeviceWithUsersInfo, GenerateIdentifierKeyParams, GetCanceledDevicesWithActiveSimCardsParams, GetCarrierStatusUpdatedBeforeParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetDeviceWithUsersInfoParams, GetFilteredImeisWithStatusParams, GetIccidStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateIccidStatusParams, UpdateImeiIccidCarrierParams, UpsertIccidStatusParams } from '../../types/devices';
|
|
3
3
|
import { BaseRepository } from './../baseRepository';
|
|
4
4
|
export declare class DevicesRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -244,4 +244,11 @@ export declare class DevicesRepository extends BaseRepository {
|
|
|
244
244
|
* @returns Whether the iccid status was upserted
|
|
245
245
|
*/
|
|
246
246
|
upsertIccidStatus(params: UpsertIccidStatusParams): Promise<boolean>;
|
|
247
|
+
/**
|
|
248
|
+
* Get device with users info
|
|
249
|
+
* @param {GetDeviceWithUsersInfoParams} params containing information to get device with users info
|
|
250
|
+
* - filters.imei: The imei of the device
|
|
251
|
+
* @returns The device with users info
|
|
252
|
+
*/
|
|
253
|
+
getDeviceWithUsersInfo(params: GetDeviceWithUsersInfoParams): Promise<DeviceWithUsersInfo[]>;
|
|
247
254
|
}
|
package/dist/types/devices.d.ts
CHANGED
|
@@ -236,3 +236,29 @@ export interface UpsertIccidStatusParams {
|
|
|
236
236
|
updateProcessing: boolean;
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
+
export interface GetDeviceWithUsersInfoParams {
|
|
240
|
+
filters: {
|
|
241
|
+
imei: string;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export interface DeviceWithUsersInfo {
|
|
245
|
+
clientName: string;
|
|
246
|
+
username: string;
|
|
247
|
+
email: string;
|
|
248
|
+
latestPositionCreatedAt: Date;
|
|
249
|
+
latestPositionActualDate: Date;
|
|
250
|
+
latestPositionLatitude: number;
|
|
251
|
+
latestPositionLongitude: number;
|
|
252
|
+
latestPositionOdometer: number;
|
|
253
|
+
latestPositionSpeed: number;
|
|
254
|
+
deviceStatus: DeviceStatus;
|
|
255
|
+
alertName: string;
|
|
256
|
+
alertValue: string;
|
|
257
|
+
smsNotification: boolean;
|
|
258
|
+
emailNotification: boolean;
|
|
259
|
+
servicePlan: string;
|
|
260
|
+
iccid: string;
|
|
261
|
+
deviceName: string;
|
|
262
|
+
roleName: string;
|
|
263
|
+
subscriptionId: number;
|
|
264
|
+
}
|