@spytecgps/nova-orm 0.0.25 → 0.0.27

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.
Files changed (29) hide show
  1. package/dist/entities/clientDeviceSetting.d.ts +0 -1
  2. package/dist/entities/deactivation.d.ts +1 -2
  3. package/dist/entities/device.d.ts +2 -2
  4. package/dist/entities/deviceBehavior.d.ts +0 -1
  5. package/dist/entities/deviceHistory.d.ts +0 -1
  6. package/dist/entities/imeiIccidCarrier.d.ts +2 -0
  7. package/dist/index.js +1 -1
  8. package/dist/repositories/devices/createClientDeviceSetting.d.ts +5 -0
  9. package/dist/repositories/devices/createDevice.d.ts +5 -0
  10. package/dist/repositories/devices/deleteDevice.d.ts +4 -0
  11. package/dist/repositories/devices/generateDeviceIdentifierKey.d.ts +4 -0
  12. package/dist/repositories/devices/getClientDeviceSetting.d.ts +5 -0
  13. package/dist/repositories/devices/getClientDeviceSettings.d.ts +5 -0
  14. package/dist/repositories/devices/getDevice.d.ts +5 -0
  15. package/dist/repositories/devices/getDevices.d.ts +5 -0
  16. package/dist/repositories/devices/getFilteredImeisWithStatus.d.ts +4 -0
  17. package/dist/repositories/devices/getImeiIccidCarrier.d.ts +5 -0
  18. package/dist/repositories/devices/getImeiIccidCarriers.d.ts +5 -0
  19. package/dist/repositories/devices/index.d.ts +158 -8
  20. package/dist/repositories/devices/updateClientDeviceSetting.d.ts +4 -0
  21. package/dist/repositories/devices/updateDevice.d.ts +4 -0
  22. package/dist/repositories/devices/updateImeiIccidCarrier.d.ts +4 -0
  23. package/dist/types/devices.d.ts +135 -6
  24. package/dist/utils/boolToNumberTransformer.d.ts +5 -0
  25. package/dist/utils/consoleLogger.d.ts +10 -0
  26. package/package.json +1 -1
  27. package/dist/repositories/devices/getDeviceByImei.d.ts +0 -5
  28. package/dist/repositories/devices/getDevicesByDeviceTypeId.d.ts +0 -5
  29. package/dist/utils/writeToLog.d.ts +0 -2
@@ -1,7 +1,6 @@
1
1
  export declare class ClientDeviceSetting {
2
2
  id: number;
3
3
  clientId: number;
4
- deviceId: number;
5
4
  imei: string;
6
5
  movingPingFrequency: number | null;
7
6
  stoppedPingFrequency: number | null;
@@ -1,9 +1,8 @@
1
1
  export declare class Deactivation {
2
2
  id: number;
3
3
  imei: string;
4
- deviceId: number;
5
4
  clientId: number;
6
- billingId: number;
5
+ billingSubscriptionId: string | null;
7
6
  deactivationReason: string | null;
8
7
  deactivationReasonId: number | null;
9
8
  createdBy: string;
@@ -1,5 +1,6 @@
1
1
  import { Relation } from 'typeorm';
2
2
  import { Client } from './client';
3
+ import { ClientDeviceSetting } from './clientDeviceSetting';
3
4
  import { DeviceType } from './deviceType';
4
5
  import { ImeiIccidCarrier } from './imeiIccidCarrier';
5
6
  export declare class Device {
@@ -12,8 +13,6 @@ export declare class Device {
12
13
  clientId: number;
13
14
  client: Relation<Client>;
14
15
  createdAt: Date | null;
15
- brand: string | null;
16
- model: string | null;
17
16
  name: string | null;
18
17
  status: string | null;
19
18
  iccid: string | null;
@@ -28,4 +27,5 @@ export declare class Device {
28
27
  assetCategoryId: number | null;
29
28
  usageRegion: string | null;
30
29
  iccidCarrier?: ImeiIccidCarrier;
30
+ clientDeviceSetting?: ClientDeviceSetting;
31
31
  }
@@ -10,7 +10,6 @@ export declare class DeviceBehavior {
10
10
  extraParams: object | null;
11
11
  pendingNotes: string | null;
12
12
  clientId: number | null;
13
- deviceId: number | null;
14
13
  imei: string | null;
15
14
  icon: string | null;
16
15
  confirmationNotes: string | null;
@@ -1,7 +1,6 @@
1
1
  export declare class DeviceHistory {
2
2
  id: string;
3
3
  clientId: number | null;
4
- deviceId: number | null;
5
4
  imei: string;
6
5
  trackerName: string | null;
7
6
  status: string | null;
@@ -1,3 +1,4 @@
1
+ import { ServiceProvider } from './serviceProvider';
1
2
  export declare class ImeiIccidCarrier {
2
3
  id: number;
3
4
  imei: string | null;
@@ -13,4 +14,5 @@ export declare class ImeiIccidCarrier {
13
14
  apn: string | null;
14
15
  createdAt: Date | null;
15
16
  modifiedAt: Date | null;
17
+ serviceProvider?: ServiceProvider;
16
18
  }