@spytecgps/nova-orm 0.0.46 → 0.0.48

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,5 @@
1
+ import { DeviceCustomConfiguration } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { GetDeviceCustomConfigParams } from '../../types/devices';
4
+ import { Logger } from '../../types/logger';
5
+ export declare const getDeviceCustomConfigs: (novaDataSource: NovaDataSource, params: GetDeviceCustomConfigParams, logger: Logger) => Promise<DeviceCustomConfiguration[]>;
@@ -1,5 +1,5 @@
1
- import { ClientDeviceSetting, Device, DeviceType, ImeiIccidCarrier } from '../../entities';
2
- import { CreateClientDeviceSettingParams, CreateDeviceParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, GenerateIdentifierKeyParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetFilteredImeisWithStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateImeiIccidCarrierParams } from '../../types/devices';
1
+ import { ClientDeviceSetting, Device, DeviceCustomConfiguration, DeviceType, ImeiIccidCarrier } from '../../entities';
2
+ import { CreateClientDeviceSettingParams, CreateDeviceParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, GenerateIdentifierKeyParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, 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
  /**
@@ -181,4 +181,12 @@ export declare class DevicesRepository extends BaseRepository {
181
181
  * - filters.deviceStatus: The device status to filter by, optional. If not provided, all devices will be counted
182
182
  */
183
183
  getDeviceTypesModelsOrderedByDeviceCount(params: GetDeviceTypesModelsOrderedByDeviceCountParams): Promise<DeviceTypeModelWithDeviceCount[]>;
184
+ /**
185
+ * Get the device custom configuration
186
+ * @param {GetDeviceCustomConfigParams} params containing information to get the device custom configuration
187
+ * - filters.clientId: The client id
188
+ * - filters.imei: The imei of the device
189
+ * @returns The device custom configurations if found, empty array otherwise
190
+ */
191
+ getDeviceCustomConfigs(params: GetDeviceCustomConfigParams): Promise<DeviceCustomConfiguration[]>;
184
192
  }
@@ -165,3 +165,9 @@ export interface DeviceTypeModelWithDeviceCount {
165
165
  protocolMatch: string;
166
166
  deviceCount: number;
167
167
  }
168
+ export interface GetDeviceCustomConfigParams {
169
+ filters: {
170
+ clientId: number;
171
+ imei: string;
172
+ };
173
+ }
@@ -44,6 +44,7 @@ export interface CreateDeviceFirmwareParams {
44
44
  upgradeType: UpgradeType;
45
45
  stage?: string;
46
46
  postUpgradeConfig?: string;
47
+ parentId?: number;
47
48
  }
48
49
  export declare enum FirmwareUpgradeTaskStatus {
49
50
  Queued = "Queued",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",