@spytecgps/nova-orm 0.0.5 → 0.0.7
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 +41 -0
- package/dist/utils/uuidHelpers.d.ts +0 -1
- package/package.json +3 -3
- 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,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 MobileNetwork = class MobileNetwork {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], MobileNetwork.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('tinyint', { name: 'mcc' }),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], MobileNetwork.prototype, "mcc", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('tinyint', { name: 'mnc' }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], MobileNetwork.prototype, "mnc", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'networkName', nullable: true, length: 255 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], MobileNetwork.prototype, "networkName", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'operatorName', nullable: true, length: 100 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], MobileNetwork.prototype, "operatorName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'countryCode', nullable: true, length: 50 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], MobileNetwork.prototype, "countryCode", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('varchar', { name: 'countryName', nullable: true, length: 100 }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], MobileNetwork.prototype, "countryName", void 0);
|
|
41
|
-
MobileNetwork = __decorate([
|
|
42
|
-
Entity('mobileNetwork', { schema: 'nova' })
|
|
43
|
-
], MobileNetwork);
|
|
44
|
-
export { MobileNetwork };
|
|
@@ -1,70 +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 NotificationRecipient = class NotificationRecipient {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], NotificationRecipient.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('int', { name: 'clientId' }),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], NotificationRecipient.prototype, "clientId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('tinyint', { name: 'notificationType' }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], NotificationRecipient.prototype, "notificationType", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'recipient', length: 100 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], NotificationRecipient.prototype, "recipient", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('tinyint', { name: 'isEnabled', width: 1 }),
|
|
31
|
-
__metadata("design:type", Boolean)
|
|
32
|
-
], NotificationRecipient.prototype, "isEnabled", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('tinyint', { name: 'isUserProfile', width: 1 }),
|
|
35
|
-
__metadata("design:type", Boolean)
|
|
36
|
-
], NotificationRecipient.prototype, "isUserProfile", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('datetime', { name: 'createdAt', default: () => 'CURRENT_TIMESTAMP' }),
|
|
39
|
-
__metadata("design:type", Date)
|
|
40
|
-
], NotificationRecipient.prototype, "createdAt", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('datetime', {
|
|
43
|
-
name: 'modifiedAt',
|
|
44
|
-
default: () => 'CURRENT_TIMESTAMP',
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:type", Date)
|
|
47
|
-
], NotificationRecipient.prototype, "modifiedAt", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
Column('tinyint', { name: 'dataSourceTypeId', nullable: true }),
|
|
50
|
-
__metadata("design:type", Number)
|
|
51
|
-
], NotificationRecipient.prototype, "dataSourceTypeId", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
Column('tinyint', { name: 'unsubscribed', width: 1, default: () => "'0'" }),
|
|
54
|
-
__metadata("design:type", Boolean)
|
|
55
|
-
], NotificationRecipient.prototype, "unsubscribed", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
Column('binary', { name: 'userId', nullable: true, length: 16 }),
|
|
58
|
-
__metadata("design:type", Buffer)
|
|
59
|
-
], NotificationRecipient.prototype, "userId", void 0);
|
|
60
|
-
NotificationRecipient = __decorate([
|
|
61
|
-
Index('ixuNotificationRecipientClientIdRecipientUserId', ['clientId', 'recipient', 'userId'], {
|
|
62
|
-
unique: true,
|
|
63
|
-
}),
|
|
64
|
-
Index('ixNotificationRecipientClientId', ['clientId'], {}),
|
|
65
|
-
Index('ixNotificationRecipientIsEnabled', ['isEnabled'], {}),
|
|
66
|
-
Index('ixNotificationRecipientIsUserProfile', ['isUserProfile'], {}),
|
|
67
|
-
Index('ixNotificationRecipientNotificationType', ['notificationType'], {}),
|
|
68
|
-
Entity('notificationRecipient', { schema: 'nova' })
|
|
69
|
-
], NotificationRecipient);
|
|
70
|
-
export { NotificationRecipient };
|
|
@@ -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 Organization = class Organization {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], Organization.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'name', length: 255 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Organization.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'description', nullable: true, length: 500 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Organization.prototype, "description", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'websiteUrl', nullable: true, length: 1000 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], Organization.prototype, "websiteUrl", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'address', nullable: true, length: 255 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Organization.prototype, "address", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('binary', { name: 'mainContact', length: 16 }),
|
|
35
|
-
__metadata("design:type", Buffer)
|
|
36
|
-
], Organization.prototype, "mainContact", void 0);
|
|
37
|
-
Organization = __decorate([
|
|
38
|
-
Entity('organization', { schema: 'nova' })
|
|
39
|
-
], Organization);
|
|
40
|
-
export { Organization };
|
package/dist/entities/plan.js
DELETED
|
@@ -1,72 +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 } from 'typeorm';
|
|
11
|
-
let Plan = class Plan {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
Column('varchar', { primary: true, name: 'id', length: 50 }),
|
|
15
|
-
__metadata("design:type", String)
|
|
16
|
-
], Plan.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'name', length: 50 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Plan.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'description', length: 255 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Plan.prototype, "description", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('tinyint', { name: 'billingFrequencyMonths' }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], Plan.prototype, "billingFrequencyMonths", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('float', { name: 'price' }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], Plan.prototype, "price", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('varchar', { name: 'trialPeriod', nullable: true, length: 25 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Plan.prototype, "trialPeriod", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('float', { name: 'discount', nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], Plan.prototype, "discount", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('varchar', { name: 'platform', nullable: true, length: 25 }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], Plan.prototype, "platform", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'planGroup', nullable: true, length: 25 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Plan.prototype, "planGroup", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('varchar', { name: 'gracePeriod', nullable: true, length: 25 }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Plan.prototype, "gracePeriod", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('char', { name: 'status', length: 1 }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], Plan.prototype, "status", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Column('float', { name: 'platformPrice', nullable: true }),
|
|
59
|
-
__metadata("design:type", Number)
|
|
60
|
-
], Plan.prototype, "platformPrice", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
Column('varchar', { name: 'servicePlan', nullable: true, length: 10 }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Plan.prototype, "servicePlan", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
Column('tinyint', { name: 'contractLengthMonths' }),
|
|
67
|
-
__metadata("design:type", Number)
|
|
68
|
-
], Plan.prototype, "contractLengthMonths", void 0);
|
|
69
|
-
Plan = __decorate([
|
|
70
|
-
Entity('plan', { schema: 'nova' })
|
|
71
|
-
], Plan);
|
|
72
|
-
export { Plan };
|
|
@@ -1,84 +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 Position = class Position {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", String)
|
|
16
|
-
], Position.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'imei', nullable: true, length: 15 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Position.prototype, "imei", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('double', { name: 'lat', nullable: true }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], Position.prototype, "lat", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('double', { name: 'lon', nullable: true }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], Position.prototype, "lon", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('datetime', { name: 'actualDate' }),
|
|
31
|
-
__metadata("design:type", Date)
|
|
32
|
-
], Position.prototype, "actualDate", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('float', { name: 'speed', nullable: true }),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], Position.prototype, "speed", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('double', { name: 'odometer', nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], Position.prototype, "odometer", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
43
|
-
__metadata("design:type", Date)
|
|
44
|
-
], Position.prototype, "createdAt", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('binary', { name: 'messageId', length: 16 }),
|
|
47
|
-
__metadata("design:type", Buffer)
|
|
48
|
-
], Position.prototype, "messageId", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('tinyint', {
|
|
51
|
-
name: 'fromMigration',
|
|
52
|
-
nullable: true,
|
|
53
|
-
width: 1,
|
|
54
|
-
default: () => "'0'",
|
|
55
|
-
}),
|
|
56
|
-
__metadata("design:type", Boolean)
|
|
57
|
-
], Position.prototype, "fromMigration", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
Column('smallint', { name: 'batteryPercentage', nullable: true }),
|
|
60
|
-
__metadata("design:type", Number)
|
|
61
|
-
], Position.prototype, "batteryPercentage", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
Column('int', { name: 'clientId', nullable: true }),
|
|
64
|
-
__metadata("design:type", Number)
|
|
65
|
-
], Position.prototype, "clientId", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
Column('varchar', { name: 'address', nullable: true, length: 255 }),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], Position.prototype, "address", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
Column('datetime', { name: 'sendTime', nullable: true }),
|
|
72
|
-
__metadata("design:type", Date)
|
|
73
|
-
], Position.prototype, "sendTime", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
Column('datetime', { name: 'gpsUtcTime', nullable: true }),
|
|
76
|
-
__metadata("design:type", Date)
|
|
77
|
-
], Position.prototype, "gpsUtcTime", void 0);
|
|
78
|
-
Position = __decorate([
|
|
79
|
-
Index('ixPositionActualDate', ['actualDate'], {}),
|
|
80
|
-
Index('ixPositionClientId', ['clientId'], {}),
|
|
81
|
-
Index('ixPositionImei', ['imei'], {}),
|
|
82
|
-
Entity('position', { schema: 'nova' })
|
|
83
|
-
], Position);
|
|
84
|
-
export { Position };
|
|
@@ -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 SecurityRole = class SecurityRole {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], SecurityRole.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'key', length: 25 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], SecurityRole.prototype, "key", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'name', length: 50 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], SecurityRole.prototype, "name", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'description', length: 100 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], SecurityRole.prototype, "description", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('tinyint', { name: 'ordinalPosition' }),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], SecurityRole.prototype, "ordinalPosition", void 0);
|
|
33
|
-
SecurityRole = __decorate([
|
|
34
|
-
Entity('securityRole', { schema: 'nova' })
|
|
35
|
-
], SecurityRole);
|
|
36
|
-
export { SecurityRole };
|
|
@@ -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 ServiceProvider = class ServiceProvider {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], ServiceProvider.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'name', length: 100 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], ServiceProvider.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'description', length: 1000 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ServiceProvider.prototype, "description", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('varchar', { name: 'loginUrl', nullable: true, length: 1000 }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ServiceProvider.prototype, "loginUrl", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'apn', nullable: true, length: 50 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], ServiceProvider.prototype, "apn", void 0);
|
|
33
|
-
ServiceProvider = __decorate([
|
|
34
|
-
Entity('serviceProvider', { schema: 'nova' })
|
|
35
|
-
], ServiceProvider);
|
|
36
|
-
export { ServiceProvider };
|
|
@@ -1,54 +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 ServiceProviderProduct = class ServiceProviderProduct {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], ServiceProviderProduct.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'productId', length: 100 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], ServiceProviderProduct.prototype, "productId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'name', length: 100 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ServiceProviderProduct.prototype, "name", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('tinyint', { name: 'serviceProviderProductTypeId', nullable: true }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], ServiceProviderProduct.prototype, "serviceProviderProductTypeId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('tinyint', {
|
|
31
|
-
name: 'serviceProviderProductNetworkId',
|
|
32
|
-
nullable: true,
|
|
33
|
-
}),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], ServiceProviderProduct.prototype, "serviceProviderProductNetworkId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
Column('smallint', { name: 'mbIncluded', nullable: true }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], ServiceProviderProduct.prototype, "mbIncluded", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
Column('decimal', {
|
|
42
|
-
name: 'bundleCost',
|
|
43
|
-
nullable: true,
|
|
44
|
-
precision: 19,
|
|
45
|
-
scale: 4,
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], ServiceProviderProduct.prototype, "bundleCost", void 0);
|
|
49
|
-
ServiceProviderProduct = __decorate([
|
|
50
|
-
Index('ixServiceProviderProductServiceProviderProductNetworkId', ['serviceProviderProductNetworkId'], {}),
|
|
51
|
-
Index('ixServiceProviderProductServiceProviderProductTypeId', ['serviceProviderProductTypeId'], {}),
|
|
52
|
-
Entity('serviceProviderProduct', { schema: 'nova' })
|
|
53
|
-
], ServiceProviderProduct);
|
|
54
|
-
export { ServiceProviderProduct };
|
|
@@ -1,28 +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 ServiceProviderProductNetwork = class ServiceProviderProductNetwork {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], ServiceProviderProductNetwork.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'name', length: 100 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], ServiceProviderProductNetwork.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'description', length: 100 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ServiceProviderProductNetwork.prototype, "description", void 0);
|
|
25
|
-
ServiceProviderProductNetwork = __decorate([
|
|
26
|
-
Entity('serviceProviderProductNetwork', { schema: 'nova' })
|
|
27
|
-
], ServiceProviderProductNetwork);
|
|
28
|
-
export { ServiceProviderProductNetwork };
|
|
@@ -1,28 +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 ServiceProviderProductType = class ServiceProviderProductType {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], ServiceProviderProductType.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'name', length: 100 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], ServiceProviderProductType.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'description', length: 100 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ServiceProviderProductType.prototype, "description", void 0);
|
|
25
|
-
ServiceProviderProductType = __decorate([
|
|
26
|
-
Entity('serviceProviderProductType', { schema: 'nova' })
|
|
27
|
-
], ServiceProviderProductType);
|
|
28
|
-
export { ServiceProviderProductType };
|
package/dist/entities/sim.js
DELETED
|
@@ -1,78 +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 Sim = class Sim {
|
|
12
|
-
};
|
|
13
|
-
__decorate([
|
|
14
|
-
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
15
|
-
__metadata("design:type", Number)
|
|
16
|
-
], Sim.prototype, "id", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
Column('varchar', { name: 'imei', nullable: true, length: 15 }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], Sim.prototype, "imei", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column('varchar', { name: 'iccid', nullable: true, length: 25 }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], Sim.prototype, "iccid", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column('tinyint', { name: 'carrier', nullable: true }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], Sim.prototype, "carrier", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column('varchar', { name: 'phone', nullable: true, length: 25 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Sim.prototype, "phone", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
Column('smallint', { name: 'deviceTypeId', nullable: true }),
|
|
35
|
-
__metadata("design:type", Number)
|
|
36
|
-
], Sim.prototype, "deviceTypeId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
Column('tinyint', { name: 'serviceProviderProductId', nullable: true }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], Sim.prototype, "serviceProviderProductId", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
Column('tinyint', { name: 'isValid', width: 1, default: () => "'1'" }),
|
|
43
|
-
__metadata("design:type", Boolean)
|
|
44
|
-
], Sim.prototype, "isValid", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
Column('varchar', { name: 'realModel', nullable: true, length: 50 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Sim.prototype, "realModel", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Column('varchar', { name: 'po', nullable: true, length: 25 }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Sim.prototype, "po", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Column('tinyint', { name: 'outOfInventory', width: 1, default: () => "'0'" }),
|
|
55
|
-
__metadata("design:type", Boolean)
|
|
56
|
-
], Sim.prototype, "outOfInventory", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Column('varchar', { name: 'apn', nullable: true, length: 50 }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], Sim.prototype, "apn", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
63
|
-
__metadata("design:type", Date)
|
|
64
|
-
], Sim.prototype, "createdAt", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
Column('datetime', { name: 'modifiedAt', nullable: true }),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], Sim.prototype, "modifiedAt", void 0);
|
|
69
|
-
Sim = __decorate([
|
|
70
|
-
Index('ixImeiIccidCarrierCarrier', ['carrier'], {}),
|
|
71
|
-
Index('ixImeiIccidCarrierDeviceTypeId', ['deviceTypeId'], {}),
|
|
72
|
-
Index('ixImeiIccidCarrierIccid', ['iccid'], {}),
|
|
73
|
-
Index('ixImeiIccidCarrierImei', ['imei'], {}),
|
|
74
|
-
Index('ixImeiIccidCarrierModifiedAt', ['modifiedAt'], {}),
|
|
75
|
-
Index('ixImeiIccidCarrierProductId', ['serviceProviderProductId'], {}),
|
|
76
|
-
Entity('sim', { schema: 'nova' })
|
|
77
|
-
], Sim);
|
|
78
|
-
export { Sim };
|