@spytecgps/nova-orm 0.0.4 → 0.0.6

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 (80) hide show
  1. package/README.md +2 -0
  2. package/dist/entities/alert.d.ts +25 -0
  3. package/dist/entities/alertType.d.ts +14 -0
  4. package/dist/entities/assetCategory.d.ts +5 -0
  5. package/dist/entities/billing.d.ts +15 -0
  6. package/dist/entities/billingCustomerBraintree.d.ts +11 -0
  7. package/dist/entities/billingDeviceHistory.d.ts +11 -0
  8. package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -0
  9. package/dist/entities/billingSubscriptionBraintree.d.ts +34 -0
  10. package/dist/entities/blacklist.d.ts +9 -0
  11. package/dist/entities/blacklistType.d.ts +5 -0
  12. package/dist/entities/cellTower.d.ts +12 -0
  13. package/dist/entities/client.d.ts +22 -0
  14. package/dist/entities/clientConfiguration.d.ts +7 -0
  15. package/dist/entities/clientDeviceSetting.d.ts +14 -0
  16. package/dist/entities/clientType.d.ts +6 -0
  17. package/dist/entities/country.d.ts +16 -0
  18. package/dist/entities/dataSourceType.d.ts +5 -0
  19. package/dist/entities/deactivation.d.ts +12 -0
  20. package/dist/entities/deactivationReason.d.ts +6 -0
  21. package/dist/entities/device.d.ts +31 -0
  22. package/dist/entities/deviceBehavior.d.ts +22 -0
  23. package/dist/entities/deviceHistory.d.ts +9 -0
  24. package/dist/entities/deviceModelListener.d.ts +8 -0
  25. package/dist/entities/deviceReplacement.d.ts +11 -0
  26. package/dist/entities/deviceType.d.ts +23 -0
  27. package/dist/entities/deviceTypeEvent.d.ts +5 -0
  28. package/dist/entities/deviceTypeFeature.d.ts +5 -0
  29. package/dist/entities/deviceTypeFirmware.d.ts +11 -0
  30. package/dist/entities/entityTag.d.ts +8 -0
  31. package/dist/entities/entityType.d.ts +5 -0
  32. package/dist/entities/event.d.ts +6 -0
  33. package/dist/entities/feature.d.ts +6 -0
  34. package/dist/entities/firmwareUpgradeTask.d.ts +12 -0
  35. package/dist/entities/geofence.d.ts +20 -0
  36. package/dist/entities/geofenceEvent.d.ts +19 -0
  37. package/dist/entities/imeiIccidCarrier.d.ts +16 -0
  38. package/dist/entities/imeiIccidHistory.d.ts +7 -0
  39. package/dist/entities/index.d.ts +68 -0
  40. package/dist/entities/industry.d.ts +8 -0
  41. package/dist/entities/mobileNetwork.d.ts +9 -0
  42. package/dist/entities/notificationRecipient.d.ts +14 -0
  43. package/dist/entities/organization.d.ts +9 -0
  44. package/dist/entities/plan.d.ts +16 -0
  45. package/dist/entities/position.d.ts +18 -0
  46. package/dist/entities/securityRole.d.ts +7 -0
  47. package/dist/entities/serviceProvider.d.ts +7 -0
  48. package/dist/entities/serviceProviderProduct.d.ts +9 -0
  49. package/dist/entities/serviceProviderProductNetwork.d.ts +5 -0
  50. package/dist/entities/serviceProviderProductType.d.ts +5 -0
  51. package/dist/entities/sim.d.ts +16 -0
  52. package/dist/entities/trip.d.ts +24 -0
  53. package/dist/entities/tripCompletionStatus.d.ts +6 -0
  54. package/dist/entities/tripPosition.d.ts +4 -0
  55. package/dist/entities/user.d.ts +25 -0
  56. package/dist/entities/userActivation.d.ts +9 -0
  57. package/dist/entities/userActivationDevice.d.ts +22 -0
  58. package/dist/entities/userActivationEvent.d.ts +12 -0
  59. package/dist/entities/userActivationMetric.d.ts +38 -0
  60. package/dist/entities/userAlertConfiguration.d.ts +13 -0
  61. package/dist/entities/userAppFeedback.d.ts +10 -0
  62. package/dist/entities/userAppIncident.d.ts +29 -0
  63. package/dist/entities/userConfiguration.d.ts +18 -0
  64. package/dist/entities/userDataDeletionRequest.d.ts +11 -0
  65. package/dist/entities/userDeviceBehaviorTask.d.ts +14 -0
  66. package/dist/entities/userInvitation.d.ts +17 -0
  67. package/dist/entities/userRatingRequest.d.ts +13 -0
  68. package/dist/entities/userRegistrationAttempt.d.ts +35 -0
  69. package/dist/entities/userSecurityRole.d.ts +6 -0
  70. package/dist/index.d.ts +5 -0
  71. package/dist/index.js +2 -0
  72. package/dist/index.js.LICENSE.txt +39 -0
  73. package/dist/novaDataSource.d.ts +56 -0
  74. package/dist/repositories/baseRepository.d.ts +5 -0
  75. package/dist/repositories/devicesRepository.d.ts +24 -0
  76. package/dist/repositories/index.d.ts +3 -0
  77. package/dist/repositories/securityRepository.d.ts +21 -0
  78. package/dist/types/enums.d.ts +9 -0
  79. package/dist/utils/uuidHelpers.d.ts +1 -0
  80. package/package.json +4 -4
@@ -0,0 +1,16 @@
1
+ export declare class Plan {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ billingFrequencyMonths: number;
6
+ price: number;
7
+ trialPeriod: string | null;
8
+ discount: number | null;
9
+ platform: string | null;
10
+ planGroup: string | null;
11
+ gracePeriod: string | null;
12
+ status: string;
13
+ platformPrice: number | null;
14
+ servicePlan: string | null;
15
+ contractLengthMonths: number;
16
+ }
@@ -0,0 +1,18 @@
1
+ /// <reference types="node" />
2
+ export declare class Position {
3
+ id: string;
4
+ imei: string | null;
5
+ lat: number | null;
6
+ lon: number | null;
7
+ actualDate: Date;
8
+ speed: number | null;
9
+ odometer: number | null;
10
+ createdAt: Date | null;
11
+ messageId: Buffer;
12
+ fromMigration: boolean | null;
13
+ batteryPercentage: number | null;
14
+ clientId: number | null;
15
+ address: string | null;
16
+ sendTime: Date | null;
17
+ gpsUtcTime: Date | null;
18
+ }
@@ -0,0 +1,7 @@
1
+ export declare class SecurityRole {
2
+ id: number;
3
+ key: string;
4
+ name: string;
5
+ description: string;
6
+ ordinalPosition: number;
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class ServiceProvider {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ loginUrl: string | null;
6
+ apn: string | null;
7
+ }
@@ -0,0 +1,9 @@
1
+ export declare class ServiceProviderProduct {
2
+ id: number;
3
+ productId: string;
4
+ name: string;
5
+ serviceProviderProductTypeId: number | null;
6
+ serviceProviderProductNetworkId: number | null;
7
+ mbIncluded: number | null;
8
+ bundleCost: string | null;
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ServiceProviderProductNetwork {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ServiceProviderProductType {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ }
@@ -0,0 +1,16 @@
1
+ export declare class Sim {
2
+ id: number;
3
+ imei: string | null;
4
+ iccid: string | null;
5
+ carrier: number | null;
6
+ phone: string | null;
7
+ deviceTypeId: number | null;
8
+ serviceProviderProductId: number | null;
9
+ isValid: boolean;
10
+ realModel: string | null;
11
+ po: string | null;
12
+ outOfInventory: boolean;
13
+ apn: string | null;
14
+ createdAt: Date | null;
15
+ modifiedAt: Date | null;
16
+ }
@@ -0,0 +1,24 @@
1
+ /// <reference types="node" />
2
+ export declare class Trip {
3
+ id: string;
4
+ deviceId: number;
5
+ imei: string;
6
+ startDate: Date | null;
7
+ endDate: Date | null;
8
+ distance: number | null;
9
+ startLat: number | null;
10
+ startLon: number | null;
11
+ endLat: number | null;
12
+ endLon: number | null;
13
+ createdAt: Date | null;
14
+ startAddress: string | null;
15
+ endAddress: string | null;
16
+ positionStart: string | null;
17
+ positionEnd: string | null;
18
+ tripCompletionStatusId: number;
19
+ clientId: number | null;
20
+ duration: number | null;
21
+ tripType: number | null;
22
+ startMessageId: Buffer | null;
23
+ endMessageId: Buffer | null;
24
+ }
@@ -0,0 +1,6 @@
1
+ export declare class TripCompletionStatus {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ statusId: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ export declare class TripPosition {
2
+ tripId: string;
3
+ positionId: string;
4
+ }
@@ -0,0 +1,25 @@
1
+ /// <reference types="node" />
2
+ export declare class User {
3
+ id: Buffer;
4
+ firstName: string;
5
+ lastName: string;
6
+ companyName: string | null;
7
+ telephone: string | null;
8
+ street: string | null;
9
+ postalCode: string | null;
10
+ city: string | null;
11
+ region: string | null;
12
+ email: string;
13
+ userName: string;
14
+ createdAt: Date | null;
15
+ modifiedAt: Date | null;
16
+ status: string | null;
17
+ clientId: number;
18
+ pincode: string | null;
19
+ isAdmin: boolean;
20
+ countryId: number | null;
21
+ dataSourceTypeId: number | null;
22
+ preferredUserName: string | null;
23
+ lastLoginAt: Date | null;
24
+ emailVerified: boolean;
25
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="node" />
2
+ export declare class UserActivation {
3
+ id: number;
4
+ createdAt: Date | null;
5
+ status: string | null;
6
+ userId: Buffer;
7
+ legacyCreatedAt: Date | null;
8
+ clientId: number;
9
+ }
@@ -0,0 +1,22 @@
1
+ export declare class UserActivationDevice {
2
+ id: number;
3
+ userActivationId: number;
4
+ deviceId: number;
5
+ imei: string;
6
+ model: string | null;
7
+ billingInterval: string | null;
8
+ deviceName: string | null;
9
+ createdAt: Date | null;
10
+ modifiedAt: Date | null;
11
+ status: string | null;
12
+ trackingReason: string | null;
13
+ deviceColor: string | null;
14
+ notificationByEmail: boolean | null;
15
+ notificationBySms: boolean | null;
16
+ planAnnual: boolean | null;
17
+ dataSourceTypeId: number | null;
18
+ subscriptionId: string | null;
19
+ platform: string | null;
20
+ eventType: string | null;
21
+ planCode: string | null;
22
+ }
@@ -0,0 +1,12 @@
1
+ /// <reference types="node" />
2
+ export declare class UserActivationEvent {
3
+ userId: Buffer;
4
+ eventId: Buffer;
5
+ eventName: string;
6
+ eventValue: string | null;
7
+ eventMetadata: string | null;
8
+ createdAt: Date;
9
+ platform: string | null;
10
+ ip: string | null;
11
+ userAgent: string | null;
12
+ }
@@ -0,0 +1,38 @@
1
+ /// <reference types="node" />
2
+ export declare class UserActivationMetric {
3
+ id: number;
4
+ userId: Buffer;
5
+ firstName: string;
6
+ lastName: string;
7
+ email: string;
8
+ phone: string | null;
9
+ trackingReason: string | null;
10
+ companyName: string | null;
11
+ role: string | null;
12
+ industry: string | null;
13
+ devicesActivatingCategory: string | null;
14
+ assetsCountRange: string | null;
15
+ devicesActivatingCount: string | null;
16
+ plan: string | null;
17
+ usersInvitedCount: string | null;
18
+ meetingScheduled: boolean | null;
19
+ createdAt: Date;
20
+ modifiedAt: Date | null;
21
+ planAnnual: string | null;
22
+ planId: string | null;
23
+ spyEnvironment: string | null;
24
+ jarvisScore: number | null;
25
+ enrichmentCompanyDescription: string | null;
26
+ jarvisEnrichmentCompanyEin: string | null;
27
+ enrichmentCompanyEmployees: string | null;
28
+ enrichmentCompanyIndustry: string | null;
29
+ enrichmentCompanyLocation: string | null;
30
+ enrichmentCompanyName: string | null;
31
+ enrichmentCompanyRevenue: string | null;
32
+ enrichmentPrivateDomain: string | null;
33
+ enrichmentPublicTicker: string | null;
34
+ enrichmentRole: string | null;
35
+ enrichmentTags: string | null;
36
+ jenrichmentTitle: string | null;
37
+ enrichmentVerifiedEmployment: string | null;
38
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ export declare class UserAlertConfiguration {
3
+ id: number;
4
+ userId: Buffer;
5
+ smsNotification: boolean | null;
6
+ emailNotification: boolean | null;
7
+ alertTypeId: number;
8
+ alertValue: string | null;
9
+ appNotification: boolean | null;
10
+ dataSourceTypeId: number | null;
11
+ pushNotification: boolean;
12
+ alertMetadata: string | null;
13
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="node" />
2
+ export declare class UserAppFeedback {
3
+ id: number;
4
+ userId: Buffer;
5
+ platform: string;
6
+ appVersion: string;
7
+ feedback: string | null;
8
+ createdAt: Date;
9
+ amazonReviewDate: Date | null;
10
+ }
@@ -0,0 +1,29 @@
1
+ /// <reference types="node" />
2
+ export declare class UserAppIncident {
3
+ id: number;
4
+ userId: Buffer;
5
+ userName: string | null;
6
+ userEmail: string | null;
7
+ deviceOs: string;
8
+ deviceManufacturer: string | null;
9
+ deviceModel: string | null;
10
+ stage: string;
11
+ appVersion: string;
12
+ createdAt: Date;
13
+ errorMessage: string | null;
14
+ errorFirstReceivedAt: Date | null;
15
+ errorReceivedAt: Date | null;
16
+ deviceJailbroken: boolean | null;
17
+ deviceOsVersion: string | null;
18
+ deviceFreeMemory: number | null;
19
+ deviceTotalMemory: number | null;
20
+ deviceCharging: boolean | null;
21
+ deviceBatteryLevel: number | null;
22
+ deviceNetworkAccess: string | null;
23
+ appActiveScreen: string | null;
24
+ appInForeground: boolean | null;
25
+ appDurationInForeground: number | null;
26
+ appBundleId: string | null;
27
+ incidentUrl: string | null;
28
+ errorId: string | null;
29
+ }
@@ -0,0 +1,18 @@
1
+ /// <reference types="node" />
2
+ export declare class UserConfiguration {
3
+ id: number;
4
+ userId: Buffer;
5
+ isMetric: boolean;
6
+ timezone: string | null;
7
+ movementTripThreshold: number | null;
8
+ stopTripThreshold: number | null;
9
+ createdAt: Date | null;
10
+ modifiedAt: Date | null;
11
+ defaultMapLayer: string | null;
12
+ speedUnits: string | null;
13
+ distanceUnits: string | null;
14
+ alertsNotificationsOn: boolean | null;
15
+ dataSourceTypeId: number | null;
16
+ homepage: string | null;
17
+ temperatureUnits: string | null;
18
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ export declare class UserDataDeletionRequest {
3
+ id: number;
4
+ userId: Buffer;
5
+ clientId: number;
6
+ userSecurityRoleName: string;
7
+ email: string;
8
+ status: string | null;
9
+ createdAt: Date | null;
10
+ modifiedAt: Date | null;
11
+ }
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ export declare class UserDeviceBehaviorTask {
3
+ id: string;
4
+ deviceBehaviorId: number;
5
+ clientId: number;
6
+ userId: Buffer;
7
+ imei: string;
8
+ behaviorName: string;
9
+ behaviorParams: object | null;
10
+ status: string;
11
+ createdAt: Date;
12
+ modifiedOn: Date | null;
13
+ extraParams: object | null;
14
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="node" />
2
+ export declare class UserInvitation {
3
+ id: Buffer;
4
+ inviterClientId: string;
5
+ inviterUserId: Buffer;
6
+ inviteeEmail: string;
7
+ inviteeSecurityRoleId: number;
8
+ status: string;
9
+ createdAt: Date;
10
+ modifiedAt: Date;
11
+ inviteeUserId: Buffer | null;
12
+ trackerImeis: string | null;
13
+ trackerAccess: string | null;
14
+ minAccessDate: Date | null;
15
+ boundaries: string | null;
16
+ boundaryAccess: string | null;
17
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ export declare class UserRatingRequest {
3
+ id: number;
4
+ userId: Buffer;
5
+ clientId: number;
6
+ deviceManufacturer: string;
7
+ deviceOs: string;
8
+ deviceOsVersion: string;
9
+ appVersion: string;
10
+ requestDate: Date | null;
11
+ amazonRequestDate: Date | null;
12
+ deviceIdentifierKey: string | null;
13
+ }
@@ -0,0 +1,35 @@
1
+ /// <reference types="node" />
2
+ export declare class UserRegistrationAttempt {
3
+ id: number;
4
+ firstName: string | null;
5
+ lastName: string | null;
6
+ email: string | null;
7
+ phoneNumber: string | null;
8
+ phoneCode: string | null;
9
+ phoneCodeCountryId: string | null;
10
+ companyName: string | null;
11
+ street: string | null;
12
+ state: string | null;
13
+ postalCode: string | null;
14
+ country: string | null;
15
+ pin: number | null;
16
+ imei: string | null;
17
+ deviceType: string | null;
18
+ deviceName: string | null;
19
+ orderId: string | null;
20
+ trackingReason: string | null;
21
+ userName: string | null;
22
+ plan: string | null;
23
+ billingFrequency: string | null;
24
+ planId: string | null;
25
+ subscriptionSource: string | null;
26
+ subscriptionId: string | null;
27
+ platform: string | null;
28
+ status: string | null;
29
+ createdAt: Date | null;
30
+ lastUpdatedAt: Date | null;
31
+ city: string | null;
32
+ clientId: number | null;
33
+ countryCode: string | null;
34
+ tempUserId: Buffer | null;
35
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="node" />
2
+ export declare class UserSecurityRole {
3
+ clientId: number;
4
+ userId: Buffer;
5
+ securityRoleId: number;
6
+ }
@@ -0,0 +1,5 @@
1
+ import * as Entities from './entities';
2
+ import { NovaDataSource, NovaDataSourceConfig } from './novaDataSource';
3
+ import * as Repositories from './repositories';
4
+ import * as Enums from './types/enums';
5
+ export { Entities, Repositories, Enums, NovaDataSourceConfig, NovaDataSource };