@spytecgps/nova-orm 0.0.175 → 0.0.176

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 { DeviceType } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { GetDeviceTypeByImeiParams } from '../../types/devices';
4
+ import { Logger } from '../../types/logger';
5
+ export declare const getDeviceTypeByImei: (novaDataSource: NovaDataSource, params: GetDeviceTypeByImeiParams, logger: Logger) => Promise<DeviceType>;
@@ -1,5 +1,5 @@
1
1
  import { ClientDeviceSetting, Device, DeviceCustomConfiguration, DeviceReplacement, DeviceType, IccidStatus, ImeiIccidCarrier } from '../../entities';
2
- import { CanceledDeviceWithActiveSimCard, CarrierStatus, CreateClientDeviceSettingParams, CreateDeviceParams, CreateDeviceReplacementParams, CreateDeviceTypeParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, DeviceWithUsersInfo, GenerateIdentifierKeyParams, GetCanceledDevicesWithActiveSimCardsParams, GetCarrierStatusUpdatedBeforeParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceModelByIccidParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetDeviceWithUsersInfoParams, GetFilteredImeisWithStatusParams, GetIccidStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateDeviceTypeParams, UpdateIccidStatusParams, UpdateImeiIccidCarrierParams, UpsertIccidStatusParams } from '../../types/devices';
2
+ import { CanceledDeviceWithActiveSimCard, CarrierStatus, CreateClientDeviceSettingParams, CreateDeviceParams, CreateDeviceReplacementParams, CreateDeviceTypeParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, DeviceWithUsersInfo, GenerateIdentifierKeyParams, GetCanceledDevicesWithActiveSimCardsParams, GetCarrierStatusUpdatedBeforeParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceParams, GetDevicesParams, GetDeviceTypeByImeiParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetDeviceWithUsersInfoParams, GetFilteredImeisWithStatusParams, GetIccidStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateDeviceTypeParams, UpdateIccidStatusParams, UpdateImeiIccidCarrierParams, UpsertIccidStatusParams } from '../../types/devices';
3
3
  import { BaseRepository } from './../baseRepository';
4
4
  export declare class DevicesRepository extends BaseRepository {
5
5
  /**
@@ -104,14 +104,12 @@ export declare class DevicesRepository extends BaseRepository {
104
104
  */
105
105
  getImeiIccidCarrier(params: GetImeiIccidCarrierParams): Promise<ImeiIccidCarrier>;
106
106
  /**
107
- * Get ImeiIccidCarrier
108
- * @param {GetDeviceModelByIccidParams} params containing information to get the device model by iccid
107
+ * Get DeviceTypeByImei
108
+ * @param {GetDeviceTypeByImeiParams} params containing information to get the device type by imei
109
109
  * - filters.imei: The imei of the device
110
- * @returns {Promise<{ modelFamily: string }>} The device model family
110
+ * @returns {Promise<DeviceType>} The device type record of an imei
111
111
  */
112
- getDeviceModelByIccid(params: GetDeviceModelByIccidParams): Promise<{
113
- modelFamily: string;
114
- }>;
112
+ getDeviceTypeByImei(params: GetDeviceTypeByImeiParams): Promise<DeviceType>;
115
113
  /**
116
114
  * Get ImeiIccidCarriers from a list of imeis
117
115
  * @param {GetImeiIccidCarriersParams} params containing information to get the ImeiIccidCarriers
@@ -29,7 +29,7 @@ export interface GetFilteredImeisWithStatusParams {
29
29
  status: DeviceStatus;
30
30
  };
31
31
  }
32
- export interface GetDeviceModelByIccidParams {
32
+ export interface GetDeviceTypeByImeiParams {
33
33
  filters: {
34
34
  imei: string;
35
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "0.0.175",
3
+ "version": "0.0.176",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,6 +0,0 @@
1
- import { NovaDataSource } from '../../novaDataSource';
2
- import { GetDeviceModelByIccidParams } from '../../types/devices';
3
- import { Logger } from '../../types/logger';
4
- export declare const getDeviceModelByIccid: (novaDataSource: NovaDataSource, params: GetDeviceModelByIccidParams, logger: Logger) => Promise<{
5
- modelFamily: string;
6
- }>;