@spytecgps/nova-orm 0.0.5 → 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/dist/index.js +2 -5
- package/dist/index.js.LICENSE.txt +39 -0
- package/dist/utils/uuidHelpers.d.ts +0 -1
- package/package.json +2 -2
- package/dist/entities/alert.js +0 -118
- package/dist/entities/alertType.js +0 -65
- package/dist/entities/assetCategory.js +0 -29
- package/dist/entities/billing.js +0 -81
- package/dist/entities/billingCustomerBraintree.js +0 -53
- package/dist/entities/billingDeviceHistory.js +0 -52
- package/dist/entities/billingStatusHistoryBraintree.js +0 -55
- package/dist/entities/billingSubscriptionBraintree.js +0 -169
- package/dist/entities/blacklist.js +0 -44
- package/dist/entities/blacklistType.js +0 -28
- package/dist/entities/cellTower.js +0 -56
- package/dist/entities/client.js +0 -96
- package/dist/entities/clientConfiguration.js +0 -42
- package/dist/entities/clientDeviceSetting.js +0 -76
- package/dist/entities/clientType.js +0 -32
- package/dist/entities/country.js +0 -76
- package/dist/entities/dataSourceType.js +0 -28
- package/dist/entities/deactivation.js +0 -63
- package/dist/entities/deactivationReason.js +0 -36
- package/dist/entities/device.js +0 -123
- package/dist/entities/deviceBehavior.js +0 -105
- package/dist/entities/deviceHistory.js +0 -44
- package/dist/entities/deviceModelListener.js +0 -40
- package/dist/entities/deviceReplacement.js +0 -49
- package/dist/entities/deviceType.js +0 -100
- package/dist/entities/deviceTypeEvent.js +0 -29
- package/dist/entities/deviceTypeFeature.js +0 -29
- package/dist/entities/deviceTypeFirmware.js +0 -57
- package/dist/entities/entityTag.js +0 -42
- package/dist/entities/entityType.js +0 -28
- package/dist/entities/event.js +0 -32
- package/dist/entities/feature.js +0 -32
- package/dist/entities/firmwareUpgradeTask.js +0 -53
- package/dist/entities/geofence.js +0 -86
- package/dist/entities/geofenceEvent.js +0 -87
- package/dist/entities/imeiIccidCarrier.js +0 -78
- package/dist/entities/imeiIccidHistory.js +0 -38
- package/dist/entities/index.js +0 -68
- package/dist/entities/industry.js +0 -40
- package/dist/entities/mobileNetwork.js +0 -44
- package/dist/entities/notificationRecipient.js +0 -70
- package/dist/entities/organization.js +0 -40
- package/dist/entities/plan.js +0 -72
- package/dist/entities/position.js +0 -84
- package/dist/entities/securityRole.js +0 -36
- package/dist/entities/serviceProvider.js +0 -36
- package/dist/entities/serviceProviderProduct.js +0 -54
- package/dist/entities/serviceProviderProductNetwork.js +0 -28
- package/dist/entities/serviceProviderProductType.js +0 -28
- package/dist/entities/sim.js +0 -78
- package/dist/entities/trip.js +0 -103
- package/dist/entities/tripCompletionStatus.js +0 -32
- package/dist/entities/tripPosition.js +0 -24
- package/dist/entities/user.js +0 -116
- package/dist/entities/userActivation.js +0 -45
- package/dist/entities/userActivationDevice.js +0 -105
- package/dist/entities/userActivationEvent.js +0 -52
- package/dist/entities/userActivationMetric.js +0 -167
- package/dist/entities/userAlertConfiguration.js +0 -68
- package/dist/entities/userAppFeedback.js +0 -45
- package/dist/entities/userAppIncident.js +0 -131
- package/dist/entities/userConfiguration.js +0 -87
- package/dist/entities/userDataDeletionRequest.js +0 -48
- package/dist/entities/userDeviceBehaviorTask.js +0 -61
- package/dist/entities/userInvitation.js +0 -75
- package/dist/entities/userRatingRequest.js +0 -63
- package/dist/entities/userRegistrationAttempt.js +0 -145
- package/dist/entities/userSecurityRole.js +0 -30
- package/dist/novaDataSource.js +0 -59
- package/dist/repositories/baseRepository.js +0 -5
- package/dist/repositories/devicesRepository.js +0 -122
- package/dist/repositories/index.js +0 -3
- package/dist/repositories/securityRepository.js +0 -99
- package/dist/types/enums.js +0 -11
- package/dist/utils/uuidHelpers.js +0 -6
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let Deactivation = class Deactivation {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], Deactivation.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'imei', length: 15 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Deactivation.prototype, "imei", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('int', { name: 'deviceId' }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], Deactivation.prototype, "deviceId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('int', { name: 'clientId' }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], Deactivation.prototype, "clientId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('int', { name: 'billingId' }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], Deactivation.prototype, "billingId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', {
|
|
35
|
-
name: 'deactivationReason',
|
|
36
|
-
nullable: true,
|
|
37
|
-
length: 2000,
|
|
38
|
-
}),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], Deactivation.prototype, "deactivationReason", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('tinyint', { name: 'deactivationReasonId', nullable: true }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], Deactivation.prototype, "deactivationReasonId", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'createdBy', length: 50 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Deactivation.prototype, "createdBy", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('datetime', { name: 'createdAt' }),
|
|
51
|
-
__metadata("design:type", Date)
|
|
52
|
-
], Deactivation.prototype, "createdAt", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('datetime', { name: 'scheduledDate', nullable: true }),
|
|
55
|
-
__metadata("design:type", Date)
|
|
56
|
-
], Deactivation.prototype, "scheduledDate", void 0);
|
|
57
|
-
Deactivation = __decorate([
|
|
58
|
-
Index('ixDeactivationClientId', ['clientId'], {}),
|
|
59
|
-
Index('ixDeactivationDeactivationReasonId', ['deactivationReasonId'], {}),
|
|
60
|
-
Index('ixDeactivationImei', ['imei'], {}),
|
|
61
|
-
Entity('deactivation', { schema: 'nova' })
|
|
62
|
-
], Deactivation);
|
|
63
|
-
export { Deactivation };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let DeactivationReason = class DeactivationReason {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], DeactivationReason.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'text', length: 255 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], DeactivationReason.prototype, "text", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'code', length: 50 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], DeactivationReason.prototype, "code", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('tinyint', {
|
|
27
|
-
name: 'customerVisible',
|
|
28
|
-
width: 1,
|
|
29
|
-
default: () => "'1'",
|
|
30
|
-
}),
|
|
31
|
-
__metadata("design:type", Boolean)
|
|
32
|
-
], DeactivationReason.prototype, "customerVisible", void 0);
|
|
33
|
-
DeactivationReason = __decorate([
|
|
34
|
-
Entity('deactivationReason', { schema: 'nova' })
|
|
35
|
-
], DeactivationReason);
|
|
36
|
-
export { DeactivationReason };
|
package/dist/entities/device.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let Device = class Device {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], Device.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'identifier', length: 100 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Device.prototype, "identifier", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'identifierKey', length: 255 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Device.prototype, "identifierKey", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('smallint', { name: 'deviceTypeId' }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], Device.prototype, "deviceTypeId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'imei', length: 15 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Device.prototype, "imei", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('int', { name: 'clientId', nullable: true }),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], Device.prototype, "clientId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('datetime', {
|
|
39
|
-
name: 'createdAt',
|
|
40
|
-
nullable: true,
|
|
41
|
-
default: () => 'CURRENT_TIMESTAMP',
|
|
42
|
-
}),
|
|
43
|
-
__metadata("design:type", Date)
|
|
44
|
-
], Device.prototype, "createdAt", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'brand', nullable: true, length: 50 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Device.prototype, "brand", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('varchar', { name: 'model', nullable: true, length: 50 }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Device.prototype, "model", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('varchar', { name: 'name', nullable: true, length: 255 }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], Device.prototype, "name", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Column('varchar', { name: 'status', nullable: true, length: 10 }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], Device.prototype, "status", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
Column('varchar', { name: 'iccid', nullable: true, length: 25 }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Device.prototype, "iccid", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
Column('datetime', { name: 'modifiedAt', nullable: true }),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], Device.prototype, "modifiedAt", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
Column('binary', { name: 'createdBy', nullable: true, length: 16 }),
|
|
71
|
-
__metadata("design:type", Buffer)
|
|
72
|
-
], Device.prototype, "createdBy", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
Column('binary', { name: 'modifiedBy', nullable: true, length: 16 }),
|
|
75
|
-
__metadata("design:type", Buffer)
|
|
76
|
-
], Device.prototype, "modifiedBy", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
Column('tinyint', { name: 'forward', nullable: true, width: 1 }),
|
|
79
|
-
__metadata("design:type", Boolean)
|
|
80
|
-
], Device.prototype, "forward", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
Column('varchar', { name: 'color', nullable: true, length: 25 }),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], Device.prototype, "color", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
Column('varchar', { name: 'icon', nullable: true, length: 50 }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], Device.prototype, "icon", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
Column('varchar', { name: 'description', nullable: true, length: 500 }),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], Device.prototype, "description", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
Column('tinyint', { name: 'dataSourceTypeId', nullable: true }),
|
|
95
|
-
__metadata("design:type", Number)
|
|
96
|
-
], Device.prototype, "dataSourceTypeId", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
Column('varchar', { name: 'sievaUserName', nullable: true, length: 100 }),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], Device.prototype, "sievaUserName", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
Column('int', { name: 'sievaBatchId', nullable: true }),
|
|
103
|
-
__metadata("design:type", Number)
|
|
104
|
-
], Device.prototype, "sievaBatchId", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
Column('tinyint', { name: 'assetCategoryId', nullable: true }),
|
|
107
|
-
__metadata("design:type", Number)
|
|
108
|
-
], Device.prototype, "assetCategoryId", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
Column('varchar', { name: 'usageRegion', nullable: true, length: 25 }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], Device.prototype, "usageRegion", void 0);
|
|
113
|
-
Device = __decorate([
|
|
114
|
-
Index('ixuDeviceIdentifierKey', ['identifierKey'], { unique: true }),
|
|
115
|
-
Index('ixDeviceClientId', ['clientId'], {}),
|
|
116
|
-
Index('ixDeviceDeviceTypeId', ['deviceTypeId'], {}),
|
|
117
|
-
Index('ixDeviceIccidImei', ['iccid', 'imei'], {}),
|
|
118
|
-
Index('ixDeviceImei', ['imei'], {}),
|
|
119
|
-
Index('ixDeviceImeiLower', { synchronize: false }),
|
|
120
|
-
Index('ixDeviceStatus', ['status'], {}),
|
|
121
|
-
Entity('device', { schema: 'nova' })
|
|
122
|
-
], Device);
|
|
123
|
-
export { Device };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let DeviceBehavior = class DeviceBehavior {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], DeviceBehavior.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('smallint', { name: 'deviceTypeId' }),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], DeviceBehavior.prototype, "deviceTypeId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'name', length: 25 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], DeviceBehavior.prototype, "name", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'description', length: 1000 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], DeviceBehavior.prototype, "description", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'type', nullable: true, length: 25 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], DeviceBehavior.prototype, "type", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'status', length: 10 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], DeviceBehavior.prototype, "status", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('varchar', { name: 'behaviorName', length: 50 }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], DeviceBehavior.prototype, "behaviorName", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('json', { name: 'behaviorParams', nullable: true }),
|
|
43
|
-
__metadata("design:type", Object)
|
|
44
|
-
], DeviceBehavior.prototype, "behaviorParams", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('json', { name: 'extraParams', nullable: true }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], DeviceBehavior.prototype, "extraParams", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('varchar', { name: 'pendingNotes', nullable: true, length: 1000 }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], DeviceBehavior.prototype, "pendingNotes", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('int', { name: 'clientId', nullable: true }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], DeviceBehavior.prototype, "clientId", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Column('int', { name: 'deviceId', nullable: true }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], DeviceBehavior.prototype, "deviceId", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
Column('varchar', { name: 'imei', nullable: true, length: 15 }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], DeviceBehavior.prototype, "imei", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
Column('varchar', { name: 'icon', nullable: true, length: 50 }),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], DeviceBehavior.prototype, "icon", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
Column('varchar', {
|
|
71
|
-
name: 'confirmationNotes',
|
|
72
|
-
nullable: true,
|
|
73
|
-
length: 1000,
|
|
74
|
-
}),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], DeviceBehavior.prototype, "confirmationNotes", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
Column('tinyint', { name: 'ordinalPosition', default: () => "'1'" }),
|
|
79
|
-
__metadata("design:type", Number)
|
|
80
|
-
], DeviceBehavior.prototype, "ordinalPosition", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
Column('varchar', { name: 'stage', nullable: true, length: 10 }),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], DeviceBehavior.prototype, "stage", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
Column('json', { name: 'additionalSettings', nullable: true }),
|
|
87
|
-
__metadata("design:type", Object)
|
|
88
|
-
], DeviceBehavior.prototype, "additionalSettings", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
Column('tinyint', {
|
|
91
|
-
name: 'blocking',
|
|
92
|
-
nullable: true,
|
|
93
|
-
width: 1,
|
|
94
|
-
default: () => "'1'",
|
|
95
|
-
}),
|
|
96
|
-
__metadata("design:type", Boolean)
|
|
97
|
-
], DeviceBehavior.prototype, "blocking", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
Column('varchar', { name: 'displayType', nullable: true, length: 25 }),
|
|
100
|
-
__metadata("design:type", String)
|
|
101
|
-
], DeviceBehavior.prototype, "displayType", void 0);
|
|
102
|
-
DeviceBehavior = __decorate([
|
|
103
|
-
Entity('deviceBehavior', { schema: 'nova' })
|
|
104
|
-
], DeviceBehavior);
|
|
105
|
-
export { DeviceBehavior };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let DeviceHistory = class DeviceHistory {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", String)
|
|
16
|
-
], DeviceHistory.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('int', { name: 'clientId', nullable: true }),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], DeviceHistory.prototype, "clientId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('int', { name: 'deviceId', nullable: true }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], DeviceHistory.prototype, "deviceId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'imei', length: 15 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], DeviceHistory.prototype, "imei", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'trackerName', nullable: true, length: 255 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], DeviceHistory.prototype, "trackerName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'status', nullable: true, length: 10 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], DeviceHistory.prototype, "status", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('datetime', { name: 'createAt', nullable: true }),
|
|
39
|
-
__metadata("design:type", Date)
|
|
40
|
-
], DeviceHistory.prototype, "createAt", void 0);
|
|
41
|
-
DeviceHistory = __decorate([
|
|
42
|
-
Entity('deviceHistory', { schema: 'nova' })
|
|
43
|
-
], DeviceHistory);
|
|
44
|
-
export { DeviceHistory };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let DeviceModelListener = class DeviceModelListener {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], DeviceModelListener.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'url', nullable: true, length: 1000 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], DeviceModelListener.prototype, "url", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('smallint', { name: 'portNumber', nullable: true }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], DeviceModelListener.prototype, "portNumber", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'protocol', nullable: true, length: 5 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], DeviceModelListener.prototype, "protocol", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('smallint', { name: 'deviceTypeId', nullable: true }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], DeviceModelListener.prototype, "deviceTypeId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'status', nullable: true, length: 10 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], DeviceModelListener.prototype, "status", void 0);
|
|
37
|
-
DeviceModelListener = __decorate([
|
|
38
|
-
Entity('deviceModelListener', { schema: 'nova' })
|
|
39
|
-
], DeviceModelListener);
|
|
40
|
-
export { DeviceModelListener };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let DeviceReplacement = class DeviceReplacement {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], DeviceReplacement.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'imeiOld', length: 15 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], DeviceReplacement.prototype, "imeiOld", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'iccidOld', length: 15 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], DeviceReplacement.prototype, "iccidOld", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'imeiNew', length: 25 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], DeviceReplacement.prototype, "imeiNew", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'iccidNew', length: 25 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], DeviceReplacement.prototype, "iccidNew", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('binary', { name: 'userId', length: 16 }),
|
|
35
|
-
__metadata("design:type", Buffer)
|
|
36
|
-
], DeviceReplacement.prototype, "userId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('int', { name: 'clientId' }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], DeviceReplacement.prototype, "clientId", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('datetime', { name: 'createAt' }),
|
|
43
|
-
__metadata("design:type", Date)
|
|
44
|
-
], DeviceReplacement.prototype, "createAt", void 0);
|
|
45
|
-
DeviceReplacement = __decorate([
|
|
46
|
-
Index('ixDeviceReplacementClientId', ['clientId'], {}),
|
|
47
|
-
Entity('deviceReplacement', { schema: 'nova' })
|
|
48
|
-
], DeviceReplacement);
|
|
49
|
-
export { DeviceReplacement };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
-
let DeviceType = class DeviceType {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], DeviceType.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'brand', length: 50 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], DeviceType.prototype, "brand", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'model', length: 50 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], DeviceType.prototype, "model", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'modelFamily', length: 50 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], DeviceType.prototype, "modelFamily", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'description', nullable: true, length: 500 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], DeviceType.prototype, "description", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'tags', nullable: true, length: 255 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], DeviceType.prototype, "tags", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('varchar', { name: 'url', nullable: true, length: 1000 }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], DeviceType.prototype, "url", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('varchar', { name: 'name', nullable: true, length: 50 }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], DeviceType.prototype, "name", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'pictureUrl', nullable: true, length: 1000 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], DeviceType.prototype, "pictureUrl", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('varchar', { name: 'userManualUrl', nullable: true, length: 1000 }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], DeviceType.prototype, "userManualUrl", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('varchar', { name: 'notes', nullable: true, length: 2000 }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], DeviceType.prototype, "notes", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Column('tinyint', { name: 'supported', nullable: true, width: 1 }),
|
|
59
|
-
__metadata("design:type", Boolean)
|
|
60
|
-
], DeviceType.prototype, "supported", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
Column('tinyint', { name: 'activatable', nullable: true, width: 1 }),
|
|
63
|
-
__metadata("design:type", Boolean)
|
|
64
|
-
], DeviceType.prototype, "activatable", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
Column('tinyint', { name: 'selfActivatable', nullable: true, width: 1 }),
|
|
67
|
-
__metadata("design:type", Boolean)
|
|
68
|
-
], DeviceType.prototype, "selfActivatable", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
Column('smallint', { name: 'port', nullable: true }),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], DeviceType.prototype, "port", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
Column('varchar', { name: 'protocolMatch', nullable: true, length: 5 }),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], DeviceType.prototype, "protocolMatch", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
Column('varchar', { name: 'stage', nullable: true, length: 10 }),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], DeviceType.prototype, "stage", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
Column('varchar', { name: 'identifierType', length: 10 }),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], DeviceType.prototype, "identifierType", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
Column('varchar', { name: 'landingPage', nullable: true, length: 1000 }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], DeviceType.prototype, "landingPage", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
Column('varchar', { name: 'troubleshooting', nullable: true, length: 1000 }),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], DeviceType.prototype, "troubleshooting", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
Column('varchar', { name: 'protocol', nullable: true, length: 50 }),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], DeviceType.prototype, "protocol", void 0);
|
|
97
|
-
DeviceType = __decorate([
|
|
98
|
-
Entity('deviceType', { schema: 'nova' })
|
|
99
|
-
], DeviceType);
|
|
100
|
-
export { DeviceType };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, Index } from 'typeorm';
|
|
11
|
-
let DeviceTypeEvent = class DeviceTypeEvent {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
Column('smallint', { primary: true, name: 'deviceTypeId' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], DeviceTypeEvent.prototype, "deviceTypeId", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { primary: true, name: 'eventKey', length: 50 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], DeviceTypeEvent.prototype, "eventKey", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'value', length: 255 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], DeviceTypeEvent.prototype, "value", void 0);
|
|
25
|
-
DeviceTypeEvent = __decorate([
|
|
26
|
-
Index('ixDeviceTypeEventEventKey', ['eventKey'], {}),
|
|
27
|
-
Entity('deviceTypeEvent', { schema: 'nova' })
|
|
28
|
-
], DeviceTypeEvent);
|
|
29
|
-
export { DeviceTypeEvent };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, Entity, Index } from 'typeorm';
|
|
11
|
-
let DeviceTypeFeature = class DeviceTypeFeature {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
Column('smallint', { primary: true, name: 'deviceTypeId' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], DeviceTypeFeature.prototype, "deviceTypeId", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { primary: true, name: 'featureKey', length: 50 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], DeviceTypeFeature.prototype, "featureKey", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'value', length: 255 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], DeviceTypeFeature.prototype, "value", void 0);
|
|
25
|
-
DeviceTypeFeature = __decorate([
|
|
26
|
-
Index('ixDeviceTypeFeatureFeatureKey', ['featureKey'], {}),
|
|
27
|
-
Entity('deviceTypeFeature', { schema: 'nova' })
|
|
28
|
-
], DeviceTypeFeature);
|
|
29
|
-
export { DeviceTypeFeature };
|