@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.
- package/README.md +2 -0
- package/dist/entities/alert.d.ts +25 -0
- package/dist/entities/alertType.d.ts +14 -0
- package/dist/entities/assetCategory.d.ts +5 -0
- package/dist/entities/billing.d.ts +15 -0
- package/dist/entities/billingCustomerBraintree.d.ts +11 -0
- package/dist/entities/billingDeviceHistory.d.ts +11 -0
- package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -0
- package/dist/entities/billingSubscriptionBraintree.d.ts +34 -0
- package/dist/entities/blacklist.d.ts +9 -0
- package/dist/entities/blacklistType.d.ts +5 -0
- package/dist/entities/cellTower.d.ts +12 -0
- package/dist/entities/client.d.ts +22 -0
- package/dist/entities/clientConfiguration.d.ts +7 -0
- package/dist/entities/clientDeviceSetting.d.ts +14 -0
- package/dist/entities/clientType.d.ts +6 -0
- package/dist/entities/country.d.ts +16 -0
- package/dist/entities/dataSourceType.d.ts +5 -0
- package/dist/entities/deactivation.d.ts +12 -0
- package/dist/entities/deactivationReason.d.ts +6 -0
- package/dist/entities/device.d.ts +31 -0
- package/dist/entities/deviceBehavior.d.ts +22 -0
- package/dist/entities/deviceHistory.d.ts +9 -0
- package/dist/entities/deviceModelListener.d.ts +8 -0
- package/dist/entities/deviceReplacement.d.ts +11 -0
- package/dist/entities/deviceType.d.ts +23 -0
- package/dist/entities/deviceTypeEvent.d.ts +5 -0
- package/dist/entities/deviceTypeFeature.d.ts +5 -0
- package/dist/entities/deviceTypeFirmware.d.ts +11 -0
- package/dist/entities/entityTag.d.ts +8 -0
- package/dist/entities/entityType.d.ts +5 -0
- package/dist/entities/event.d.ts +6 -0
- package/dist/entities/feature.d.ts +6 -0
- package/dist/entities/firmwareUpgradeTask.d.ts +12 -0
- package/dist/entities/geofence.d.ts +20 -0
- package/dist/entities/geofenceEvent.d.ts +19 -0
- package/dist/entities/imeiIccidCarrier.d.ts +16 -0
- package/dist/entities/imeiIccidHistory.d.ts +7 -0
- package/dist/entities/index.d.ts +68 -0
- package/dist/entities/industry.d.ts +8 -0
- package/dist/entities/mobileNetwork.d.ts +9 -0
- package/dist/entities/notificationRecipient.d.ts +14 -0
- package/dist/entities/organization.d.ts +9 -0
- package/dist/entities/plan.d.ts +16 -0
- package/dist/entities/position.d.ts +18 -0
- package/dist/entities/securityRole.d.ts +7 -0
- package/dist/entities/serviceProvider.d.ts +7 -0
- package/dist/entities/serviceProviderProduct.d.ts +9 -0
- package/dist/entities/serviceProviderProductNetwork.d.ts +5 -0
- package/dist/entities/serviceProviderProductType.d.ts +5 -0
- package/dist/entities/sim.d.ts +16 -0
- package/dist/entities/trip.d.ts +24 -0
- package/dist/entities/tripCompletionStatus.d.ts +6 -0
- package/dist/entities/tripPosition.d.ts +4 -0
- package/dist/entities/user.d.ts +25 -0
- package/dist/entities/userActivation.d.ts +9 -0
- package/dist/entities/userActivationDevice.d.ts +22 -0
- package/dist/entities/userActivationEvent.d.ts +12 -0
- package/dist/entities/userActivationMetric.d.ts +38 -0
- package/dist/entities/userAlertConfiguration.d.ts +13 -0
- package/dist/entities/userAppFeedback.d.ts +10 -0
- package/dist/entities/userAppIncident.d.ts +29 -0
- package/dist/entities/userConfiguration.d.ts +18 -0
- package/dist/entities/userDataDeletionRequest.d.ts +11 -0
- package/dist/entities/userDeviceBehaviorTask.d.ts +14 -0
- package/dist/entities/userInvitation.d.ts +17 -0
- package/dist/entities/userRatingRequest.d.ts +13 -0
- package/dist/entities/userRegistrationAttempt.d.ts +35 -0
- package/dist/entities/userSecurityRole.d.ts +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +39 -0
- package/dist/novaDataSource.d.ts +56 -0
- package/dist/repositories/baseRepository.d.ts +5 -0
- package/dist/repositories/devicesRepository.d.ts +24 -0
- package/dist/repositories/index.d.ts +3 -0
- package/dist/repositories/securityRepository.d.ts +21 -0
- package/dist/types/enums.d.ts +9 -0
- package/dist/utils/uuidHelpers.d.ts +1 -0
- 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,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,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,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,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
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -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 };
|