@spytecgps/nova-orm 0.0.36 → 0.0.38
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/client.d.ts +4 -0
- package/dist/entities/deviceCustomConfiguration.d.ts +9 -0
- package/dist/entities/devicePromotion.d.ts +17 -0
- package/dist/entities/deviceType.d.ts +5 -0
- package/dist/entities/index.d.ts +4 -1
- package/dist/entities/promotion.d.ts +21 -0
- package/dist/index.js +1 -1
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.d.ts +3 -0
- package/dist/repositories/devices/index.d.ts +7 -1
- package/dist/types/devices.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { DeviceTypeModelWithDeviceCount, GetDeviceTypesModelsOrderedByDeviceCountParams } from '../../types/devices';
|
|
3
|
+
export declare const getDeviceTypesModelsOrderedByDeviceCount: (novaDataSource: NovaDataSource, params: GetDeviceTypesModelsOrderedByDeviceCountParams) => Promise<DeviceTypeModelWithDeviceCount[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClientDeviceSetting, Device, DeviceType, ImeiIccidCarrier } from '../../entities';
|
|
2
|
-
import { CreateClientDeviceSettingParams, CreateDeviceParams, DeleteDeviceParams, GenerateIdentifierKeyParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesParams, GetFilteredImeisWithStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateImeiIccidCarrierParams } from '../../types/devices';
|
|
2
|
+
import { CreateClientDeviceSettingParams, CreateDeviceParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, GenerateIdentifierKeyParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetFilteredImeisWithStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateImeiIccidCarrierParams } from '../../types/devices';
|
|
3
3
|
import { BaseRepository } from './../baseRepository';
|
|
4
4
|
export declare class DevicesRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -175,4 +175,10 @@ export declare class DevicesRepository extends BaseRepository {
|
|
|
175
175
|
* @returns {Promise<boolean>} Whether the ClientDeviceSetting was updated
|
|
176
176
|
*/
|
|
177
177
|
updateClientDeviceSetting(params: UpdateClientDeviceSettingParams): Promise<boolean>;
|
|
178
|
+
/**
|
|
179
|
+
* Get a list of DeviceTypeModel with the count of associated devices, ordered by device count
|
|
180
|
+
* @param {GetDeviceTypesModelsOrderedByDeviceCountParams} params containing information to get DeviceTypeModelWithDeviceCount
|
|
181
|
+
* - filters.deviceStatus: The device status to filter by, optional. If not provided, all devices will be counted
|
|
182
|
+
*/
|
|
183
|
+
getDeviceTypesModelsOrderedByDeviceCount(params: GetDeviceTypesModelsOrderedByDeviceCountParams): Promise<DeviceTypeModelWithDeviceCount[]>;
|
|
178
184
|
}
|
package/dist/types/devices.d.ts
CHANGED
|
@@ -151,3 +151,15 @@ export interface UpdateClientDeviceSettingParams {
|
|
|
151
151
|
externalBatteryInformation?: boolean;
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
+
export interface GetDeviceTypesModelsOrderedByDeviceCountParams {
|
|
155
|
+
filters: {
|
|
156
|
+
deviceStatus?: DeviceStatus;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export interface DeviceTypeModelWithDeviceCount {
|
|
160
|
+
id: number;
|
|
161
|
+
model: string;
|
|
162
|
+
protocol: string;
|
|
163
|
+
protocolMatch: string;
|
|
164
|
+
deviceCount: number;
|
|
165
|
+
}
|