@spytecgps/nova-orm 0.0.36 → 0.0.38
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/dist/entities/client.d.ts +4 -0
- package/dist/entities/deviceCustomConfiguration.d.ts +9 -0
- package/dist/entities/devicePromotion.d.ts +17 -0
- package/dist/entities/deviceType.d.ts +5 -0
- package/dist/entities/index.d.ts +4 -1
- package/dist/entities/promotion.d.ts +21 -0
- package/dist/index.js +1 -1
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.d.ts +3 -0
- package/dist/repositories/devices/index.d.ts +7 -1
- package/dist/types/devices.d.ts +12 -0
- package/package.json +1 -1
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { Relation } from 'typeorm';
|
|
3
3
|
import { ClientType } from './clientType';
|
|
4
4
|
import { Device } from './device';
|
|
5
|
+
import { DeviceCustomConfiguration } from './deviceCustomConfiguration';
|
|
5
6
|
import { Organization } from './organization';
|
|
7
|
+
import { Promotion } from './promotion';
|
|
6
8
|
import { User } from './user';
|
|
7
9
|
export declare class Client {
|
|
8
10
|
id: number;
|
|
@@ -26,4 +28,6 @@ export declare class Client {
|
|
|
26
28
|
organization: Relation<Organization>;
|
|
27
29
|
users: Relation<User>[];
|
|
28
30
|
devices: Relation<Device>[];
|
|
31
|
+
promotions: Relation<Promotion>[];
|
|
32
|
+
deviceCustomConfigurations: Relation<DeviceCustomConfiguration>[];
|
|
29
33
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Relation } from 'typeorm';
|
|
2
|
+
import { Client } from './client';
|
|
3
|
+
import { Promotion } from './promotion';
|
|
4
|
+
export declare class DevicePromotion {
|
|
5
|
+
imei: string;
|
|
6
|
+
promotionId: number;
|
|
7
|
+
promotion: Relation<Promotion>;
|
|
8
|
+
clientId: number;
|
|
9
|
+
client: Relation<Client>;
|
|
10
|
+
marketPlace: string;
|
|
11
|
+
asin: string;
|
|
12
|
+
promotionType: string;
|
|
13
|
+
promotionDiscount: number;
|
|
14
|
+
promotionDiscountBillingCycles: number;
|
|
15
|
+
promotionFreeServiceMonths: number;
|
|
16
|
+
appliedAt: Date;
|
|
17
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { Relation } from 'typeorm';
|
|
2
|
+
import { Device } from './device';
|
|
3
|
+
import { Promotion } from './promotion';
|
|
1
4
|
export declare class DeviceType {
|
|
2
5
|
id: number;
|
|
3
6
|
brand: string;
|
|
@@ -20,4 +23,6 @@ export declare class DeviceType {
|
|
|
20
23
|
landingPage: string | null;
|
|
21
24
|
troubleshooting: string | null;
|
|
22
25
|
protocol: string | null;
|
|
26
|
+
promotions: Relation<Promotion>[];
|
|
27
|
+
devices: Relation<Device>[];
|
|
23
28
|
}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -21,8 +21,10 @@ import { Deactivation } from './deactivation';
|
|
|
21
21
|
import { DeactivationReason } from './deactivationReason';
|
|
22
22
|
import { Device } from './device';
|
|
23
23
|
import { DeviceBehavior } from './deviceBehavior';
|
|
24
|
+
import { DeviceCustomConfiguration } from './deviceCustomConfiguration';
|
|
24
25
|
import { DeviceHistory } from './deviceHistory';
|
|
25
26
|
import { DeviceModelListener } from './deviceModelListener';
|
|
27
|
+
import { DevicePromotion } from './devicePromotion';
|
|
26
28
|
import { DeviceReplacement } from './deviceReplacement';
|
|
27
29
|
import { DeviceType } from './deviceType';
|
|
28
30
|
import { DeviceTypeEvent } from './deviceTypeEvent';
|
|
@@ -41,6 +43,7 @@ import { NotificationRecipient } from './notificationRecipient';
|
|
|
41
43
|
import { Organization } from './organization';
|
|
42
44
|
import { Plan } from './plan';
|
|
43
45
|
import { Position } from './position';
|
|
46
|
+
import { Promotion } from './promotion';
|
|
44
47
|
import { SecurityRole } from './securityRole';
|
|
45
48
|
import { ServiceProvider } from './serviceProvider';
|
|
46
49
|
import { ServiceProviderProduct } from './serviceProviderProduct';
|
|
@@ -65,4 +68,4 @@ import { UserInvitation } from './userInvitation';
|
|
|
65
68
|
import { UserRatingRequest } from './userRatingRequest';
|
|
66
69
|
import { UserRegistrationAttempt } from './userRegistrationAttempt';
|
|
67
70
|
import { UserSecurityRole } from './userSecurityRole';
|
|
68
|
-
export { Alert, AlertType, AssetCategory, Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Blacklist, BlacklistType, CellTower, Client, ClientConfiguration, ClientDeviceSetting, ClientType, Country, DataSourceType, Deactivation, DeactivationReason, Device, DeviceBehavior, DeviceHistory, DeviceModelListener, DeviceReplacement, DeviceType, DeviceTypeEvent, DeviceTypeFeature, DeviceTypeFirmware, EntityTag, EntityType, Event, Feature, FirmwareUpgradeTask, Boundary, BoundaryEvent, ImeiIccidCarrier, ImeiIccidHistory, Industry, MobileNetwork, NotificationRecipient, Organization, Plan, Position, SecurityRole, ServiceProvider, ServiceProviderProduct, ServiceProviderProductNetwork, ServiceProviderProductType, Sim, Trip, TripCompletionStatus, TripPosition, User, UserActivation, UserActivationDevice, UserActivationEvent, UserActivationMetric, UserAlertConfiguration, UserAppFeedback, UserAppIncident, UserConfiguration, UserDataDeletionRequest, UserDeviceBehaviorTask, UserInvitation, UserRatingRequest, UserRegistrationAttempt, UserSecurityRole, };
|
|
71
|
+
export { Alert, AlertType, AssetCategory, Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Blacklist, BlacklistType, CellTower, Client, ClientConfiguration, ClientDeviceSetting, ClientType, Country, DataSourceType, Deactivation, DeactivationReason, Device, DeviceBehavior, DeviceCustomConfiguration, DeviceHistory, DeviceModelListener, DevicePromotion, DeviceReplacement, DeviceType, DeviceTypeEvent, DeviceTypeFeature, DeviceTypeFirmware, EntityTag, EntityType, Event, Feature, FirmwareUpgradeTask, Boundary, BoundaryEvent, ImeiIccidCarrier, ImeiIccidHistory, Industry, MobileNetwork, NotificationRecipient, Organization, Plan, Position, Promotion, SecurityRole, ServiceProvider, ServiceProviderProduct, ServiceProviderProductNetwork, ServiceProviderProductType, Sim, Trip, TripCompletionStatus, TripPosition, User, UserActivation, UserActivationDevice, UserActivationEvent, UserActivationMetric, UserAlertConfiguration, UserAppFeedback, UserAppIncident, UserConfiguration, UserDataDeletionRequest, UserDeviceBehaviorTask, UserInvitation, UserRatingRequest, UserRegistrationAttempt, UserSecurityRole, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Relation } from 'typeorm';
|
|
2
|
+
import { Client } from './client';
|
|
3
|
+
import { DeviceType } from './deviceType';
|
|
4
|
+
export declare class Promotion {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
clientId: number;
|
|
9
|
+
client: Relation<Client>;
|
|
10
|
+
imei: string | null;
|
|
11
|
+
deviceTypeId: number;
|
|
12
|
+
deviceType: Relation<DeviceType>;
|
|
13
|
+
asin: string;
|
|
14
|
+
type: string;
|
|
15
|
+
discount: number;
|
|
16
|
+
discountBillingCycles: number;
|
|
17
|
+
freeServiceMonths: number;
|
|
18
|
+
startDate: Date;
|
|
19
|
+
endDate: Date;
|
|
20
|
+
status: string;
|
|
21
|
+
}
|