@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.
Files changed (79) hide show
  1. package/dist/index.js +2 -5
  2. package/dist/index.js.LICENSE.txt +39 -0
  3. package/dist/utils/uuidHelpers.d.ts +0 -1
  4. package/package.json +2 -2
  5. package/dist/entities/alert.js +0 -118
  6. package/dist/entities/alertType.js +0 -65
  7. package/dist/entities/assetCategory.js +0 -29
  8. package/dist/entities/billing.js +0 -81
  9. package/dist/entities/billingCustomerBraintree.js +0 -53
  10. package/dist/entities/billingDeviceHistory.js +0 -52
  11. package/dist/entities/billingStatusHistoryBraintree.js +0 -55
  12. package/dist/entities/billingSubscriptionBraintree.js +0 -169
  13. package/dist/entities/blacklist.js +0 -44
  14. package/dist/entities/blacklistType.js +0 -28
  15. package/dist/entities/cellTower.js +0 -56
  16. package/dist/entities/client.js +0 -96
  17. package/dist/entities/clientConfiguration.js +0 -42
  18. package/dist/entities/clientDeviceSetting.js +0 -76
  19. package/dist/entities/clientType.js +0 -32
  20. package/dist/entities/country.js +0 -76
  21. package/dist/entities/dataSourceType.js +0 -28
  22. package/dist/entities/deactivation.js +0 -63
  23. package/dist/entities/deactivationReason.js +0 -36
  24. package/dist/entities/device.js +0 -123
  25. package/dist/entities/deviceBehavior.js +0 -105
  26. package/dist/entities/deviceHistory.js +0 -44
  27. package/dist/entities/deviceModelListener.js +0 -40
  28. package/dist/entities/deviceReplacement.js +0 -49
  29. package/dist/entities/deviceType.js +0 -100
  30. package/dist/entities/deviceTypeEvent.js +0 -29
  31. package/dist/entities/deviceTypeFeature.js +0 -29
  32. package/dist/entities/deviceTypeFirmware.js +0 -57
  33. package/dist/entities/entityTag.js +0 -42
  34. package/dist/entities/entityType.js +0 -28
  35. package/dist/entities/event.js +0 -32
  36. package/dist/entities/feature.js +0 -32
  37. package/dist/entities/firmwareUpgradeTask.js +0 -53
  38. package/dist/entities/geofence.js +0 -86
  39. package/dist/entities/geofenceEvent.js +0 -87
  40. package/dist/entities/imeiIccidCarrier.js +0 -78
  41. package/dist/entities/imeiIccidHistory.js +0 -38
  42. package/dist/entities/index.js +0 -68
  43. package/dist/entities/industry.js +0 -40
  44. package/dist/entities/mobileNetwork.js +0 -44
  45. package/dist/entities/notificationRecipient.js +0 -70
  46. package/dist/entities/organization.js +0 -40
  47. package/dist/entities/plan.js +0 -72
  48. package/dist/entities/position.js +0 -84
  49. package/dist/entities/securityRole.js +0 -36
  50. package/dist/entities/serviceProvider.js +0 -36
  51. package/dist/entities/serviceProviderProduct.js +0 -54
  52. package/dist/entities/serviceProviderProductNetwork.js +0 -28
  53. package/dist/entities/serviceProviderProductType.js +0 -28
  54. package/dist/entities/sim.js +0 -78
  55. package/dist/entities/trip.js +0 -103
  56. package/dist/entities/tripCompletionStatus.js +0 -32
  57. package/dist/entities/tripPosition.js +0 -24
  58. package/dist/entities/user.js +0 -116
  59. package/dist/entities/userActivation.js +0 -45
  60. package/dist/entities/userActivationDevice.js +0 -105
  61. package/dist/entities/userActivationEvent.js +0 -52
  62. package/dist/entities/userActivationMetric.js +0 -167
  63. package/dist/entities/userAlertConfiguration.js +0 -68
  64. package/dist/entities/userAppFeedback.js +0 -45
  65. package/dist/entities/userAppIncident.js +0 -131
  66. package/dist/entities/userConfiguration.js +0 -87
  67. package/dist/entities/userDataDeletionRequest.js +0 -48
  68. package/dist/entities/userDeviceBehaviorTask.js +0 -61
  69. package/dist/entities/userInvitation.js +0 -75
  70. package/dist/entities/userRatingRequest.js +0 -63
  71. package/dist/entities/userRegistrationAttempt.js +0 -145
  72. package/dist/entities/userSecurityRole.js +0 -30
  73. package/dist/novaDataSource.js +0 -59
  74. package/dist/repositories/baseRepository.js +0 -5
  75. package/dist/repositories/devicesRepository.js +0 -122
  76. package/dist/repositories/index.js +0 -3
  77. package/dist/repositories/securityRepository.js +0 -99
  78. package/dist/types/enums.js +0 -11
  79. package/dist/utils/uuidHelpers.js +0 -6
@@ -1,57 +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 DeviceTypeFirmware = class DeviceTypeFirmware {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'mediumint', name: 'id' }),
15
- __metadata("design:type", Number)
16
- ], DeviceTypeFirmware.prototype, "id", void 0);
17
- __decorate([
18
- Column('smallint', { name: 'deviceTypeId' }),
19
- __metadata("design:type", Number)
20
- ], DeviceTypeFirmware.prototype, "deviceTypeId", void 0);
21
- __decorate([
22
- Column('varchar', {
23
- name: 'sourceFirmwareVersion',
24
- nullable: true,
25
- length: 25,
26
- }),
27
- __metadata("design:type", String)
28
- ], DeviceTypeFirmware.prototype, "sourceFirmwareVersion", void 0);
29
- __decorate([
30
- Column('varchar', { name: 'firmwareVersion', nullable: true, length: 25 }),
31
- __metadata("design:type", String)
32
- ], DeviceTypeFirmware.prototype, "firmwareVersion", void 0);
33
- __decorate([
34
- Column('varchar', { name: 'firmwareCode', nullable: true, length: 25 }),
35
- __metadata("design:type", String)
36
- ], DeviceTypeFirmware.prototype, "firmwareCode", void 0);
37
- __decorate([
38
- Column('varchar', { name: 'firmwareUrl', nullable: true, length: 1000 }),
39
- __metadata("design:type", String)
40
- ], DeviceTypeFirmware.prototype, "firmwareUrl", void 0);
41
- __decorate([
42
- Column('datetime', { name: 'releaseDate', nullable: true }),
43
- __metadata("design:type", Date)
44
- ], DeviceTypeFirmware.prototype, "releaseDate", void 0);
45
- __decorate([
46
- Column('varchar', { name: 'description', nullable: true, length: 1000 }),
47
- __metadata("design:type", String)
48
- ], DeviceTypeFirmware.prototype, "description", void 0);
49
- __decorate([
50
- Column('tinyint', { name: 'enabled', width: 1, default: () => "'0'" }),
51
- __metadata("design:type", Boolean)
52
- ], DeviceTypeFirmware.prototype, "enabled", void 0);
53
- DeviceTypeFirmware = __decorate([
54
- Index('ixDeviceTypeFirmwareDeviceTypeId', ['deviceTypeId'], {}),
55
- Entity('deviceTypeFirmware', { schema: 'nova' })
56
- ], DeviceTypeFirmware);
57
- export { DeviceTypeFirmware };
@@ -1,42 +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 EntityTag = class EntityTag {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
15
- __metadata("design:type", String)
16
- ], EntityTag.prototype, "id", void 0);
17
- __decorate([
18
- Column('int', { name: 'entityTypeId' }),
19
- __metadata("design:type", Number)
20
- ], EntityTag.prototype, "entityTypeId", void 0);
21
- __decorate([
22
- Column('varchar', { name: 'entityId', length: 15 }),
23
- __metadata("design:type", String)
24
- ], EntityTag.prototype, "entityId", void 0);
25
- __decorate([
26
- Column('varchar', { name: 'tag', length: 25 }),
27
- __metadata("design:type", String)
28
- ], EntityTag.prototype, "tag", void 0);
29
- __decorate([
30
- Column('varchar', { name: 'tagValue', nullable: true, length: 15 }),
31
- __metadata("design:type", String)
32
- ], EntityTag.prototype, "tagValue", void 0);
33
- __decorate([
34
- Column('datetime', { name: 'tagDate', nullable: true }),
35
- __metadata("design:type", Date)
36
- ], EntityTag.prototype, "tagDate", void 0);
37
- EntityTag = __decorate([
38
- Index('ixEntityTagEntityTypeId', ['entityTypeId'], {}),
39
- Index('ixEntityTagTagId', ['tag'], {}),
40
- Entity('entityTag', { schema: 'nova' })
41
- ], EntityTag);
42
- export { EntityTag };
@@ -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 EntityType = class EntityType {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
15
- __metadata("design:type", Number)
16
- ], EntityType.prototype, "id", void 0);
17
- __decorate([
18
- Column('varchar', { name: 'name', length: 50 }),
19
- __metadata("design:type", String)
20
- ], EntityType.prototype, "name", void 0);
21
- __decorate([
22
- Column('varchar', { name: 'description', length: 1000 }),
23
- __metadata("design:type", String)
24
- ], EntityType.prototype, "description", void 0);
25
- EntityType = __decorate([
26
- Entity('entityType', { schema: 'nova' })
27
- ], EntityType);
28
- export { EntityType };
@@ -1,32 +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 Event = class Event {
12
- };
13
- __decorate([
14
- Column('varchar', { primary: true, name: 'key', length: 50 }),
15
- __metadata("design:type", String)
16
- ], Event.prototype, "key", void 0);
17
- __decorate([
18
- Column('varchar', { name: 'name', length: 50 }),
19
- __metadata("design:type", String)
20
- ], Event.prototype, "name", void 0);
21
- __decorate([
22
- Column('varchar', { name: 'description', nullable: true, length: 255 }),
23
- __metadata("design:type", String)
24
- ], Event.prototype, "description", void 0);
25
- __decorate([
26
- Column('varchar', { name: 'tags', nullable: true, length: 500 }),
27
- __metadata("design:type", String)
28
- ], Event.prototype, "tags", void 0);
29
- Event = __decorate([
30
- Entity('event', { schema: 'nova' })
31
- ], Event);
32
- export { Event };
@@ -1,32 +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 Feature = class Feature {
12
- };
13
- __decorate([
14
- Column('varchar', { primary: true, name: 'key', length: 50 }),
15
- __metadata("design:type", String)
16
- ], Feature.prototype, "key", void 0);
17
- __decorate([
18
- Column('varchar', { name: 'name', length: 50 }),
19
- __metadata("design:type", String)
20
- ], Feature.prototype, "name", void 0);
21
- __decorate([
22
- Column('varchar', { name: 'description', nullable: true, length: 255 }),
23
- __metadata("design:type", String)
24
- ], Feature.prototype, "description", void 0);
25
- __decorate([
26
- Column('varchar', { name: 'tags', nullable: true, length: 500 }),
27
- __metadata("design:type", String)
28
- ], Feature.prototype, "tags", void 0);
29
- Feature = __decorate([
30
- Entity('feature', { schema: 'nova' })
31
- ], Feature);
32
- export { Feature };
@@ -1,53 +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 FirmwareUpgradeTask = class FirmwareUpgradeTask {
12
- };
13
- __decorate([
14
- Column('binary', { primary: true, name: 'id', length: 16 }),
15
- __metadata("design:type", Buffer)
16
- ], FirmwareUpgradeTask.prototype, "id", void 0);
17
- __decorate([
18
- Column('mediumint', { name: 'deviceTypeFirmwareId' }),
19
- __metadata("design:type", Number)
20
- ], FirmwareUpgradeTask.prototype, "deviceTypeFirmwareId", void 0);
21
- __decorate([
22
- Column('int', { name: 'clientId' }),
23
- __metadata("design:type", Number)
24
- ], FirmwareUpgradeTask.prototype, "clientId", void 0);
25
- __decorate([
26
- Column('int', { name: 'deviceId' }),
27
- __metadata("design:type", Number)
28
- ], FirmwareUpgradeTask.prototype, "deviceId", void 0);
29
- __decorate([
30
- Column('varchar', { name: 'status', length: 10 }),
31
- __metadata("design:type", String)
32
- ], FirmwareUpgradeTask.prototype, "status", void 0);
33
- __decorate([
34
- Column('varchar', { name: 'behaviorName', nullable: true, length: 25 }),
35
- __metadata("design:type", String)
36
- ], FirmwareUpgradeTask.prototype, "behaviorName", void 0);
37
- __decorate([
38
- Column('json', { name: 'behaviorParams', nullable: true }),
39
- __metadata("design:type", Object)
40
- ], FirmwareUpgradeTask.prototype, "behaviorParams", void 0);
41
- __decorate([
42
- Column('datetime', { name: 'createdAt', default: () => 'CURRENT_TIMESTAMP' }),
43
- __metadata("design:type", Date)
44
- ], FirmwareUpgradeTask.prototype, "createdAt", void 0);
45
- __decorate([
46
- Column('datetime', { name: 'modifiedAt', nullable: true }),
47
- __metadata("design:type", Date)
48
- ], FirmwareUpgradeTask.prototype, "modifiedAt", void 0);
49
- FirmwareUpgradeTask = __decorate([
50
- Index('ixFirmwareUpgradeTaskDeviceTypeFirmwareId', ['deviceTypeFirmwareId'], {}),
51
- Entity('firmwareUpgradeTask', { schema: 'nova' })
52
- ], FirmwareUpgradeTask);
53
- export { FirmwareUpgradeTask };
@@ -1,86 +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 Geofence = class Geofence {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
- __metadata("design:type", Number)
16
- ], Geofence.prototype, "id", void 0);
17
- __decorate([
18
- Column('varchar', { name: 'name', nullable: true, length: 255 }),
19
- __metadata("design:type", String)
20
- ], Geofence.prototype, "name", void 0);
21
- __decorate([
22
- Column('char', { name: 'type', nullable: true, length: 1 }),
23
- __metadata("design:type", String)
24
- ], Geofence.prototype, "type", void 0);
25
- __decorate([
26
- Column('varchar', { name: 'buffer', nullable: true, length: 50 }),
27
- __metadata("design:type", String)
28
- ], Geofence.prototype, "buffer", void 0);
29
- __decorate([
30
- Column('datetime', { name: 'createdAt', nullable: true }),
31
- __metadata("design:type", Date)
32
- ], Geofence.prototype, "createdAt", void 0);
33
- __decorate([
34
- Column('datetime', { name: 'modifiedAt', nullable: true }),
35
- __metadata("design:type", Date)
36
- ], Geofence.prototype, "modifiedAt", void 0);
37
- __decorate([
38
- Column('binary', { name: 'createdBy', nullable: true, length: 16 }),
39
- __metadata("design:type", Buffer)
40
- ], Geofence.prototype, "createdBy", void 0);
41
- __decorate([
42
- Column('binary', { name: 'modifiedBy', nullable: true, length: 16 }),
43
- __metadata("design:type", Buffer)
44
- ], Geofence.prototype, "modifiedBy", void 0);
45
- __decorate([
46
- Column('int', { name: 'clientId', default: () => "'0'" }),
47
- __metadata("design:type", Number)
48
- ], Geofence.prototype, "clientId", void 0);
49
- __decorate([
50
- Column('varchar', { name: 'location', nullable: true, length: 255 }),
51
- __metadata("design:type", String)
52
- ], Geofence.prototype, "location", void 0);
53
- __decorate([
54
- Column('tinyint', { name: 'status', default: () => "'1'" }),
55
- __metadata("design:type", Number)
56
- ], Geofence.prototype, "status", void 0);
57
- __decorate([
58
- Column('char', { name: 'radiusDisplayUnit', nullable: true, length: 2 }),
59
- __metadata("design:type", String)
60
- ], Geofence.prototype, "radiusDisplayUnit", void 0);
61
- __decorate([
62
- Column('tinyint', { name: 'dataSourceTypeId', nullable: true }),
63
- __metadata("design:type", Number)
64
- ], Geofence.prototype, "dataSourceTypeId", void 0);
65
- __decorate([
66
- Column('text', { name: 'geometry', nullable: true }),
67
- __metadata("design:type", String)
68
- ], Geofence.prototype, "geometry", void 0);
69
- __decorate([
70
- Column('varchar', { name: 'color', nullable: true, length: 25 }),
71
- __metadata("design:type", String)
72
- ], Geofence.prototype, "color", void 0);
73
- __decorate([
74
- Column('tinyint', { name: 'isUserCreated', width: 1, default: () => "'1'" }),
75
- __metadata("design:type", Boolean)
76
- ], Geofence.prototype, "isUserCreated", void 0);
77
- __decorate([
78
- Column('float', { name: 'area', nullable: true }),
79
- __metadata("design:type", Number)
80
- ], Geofence.prototype, "area", void 0);
81
- Geofence = __decorate([
82
- Index('ixGeofenceClientIdStatus', ['clientId', 'status'], {}),
83
- Index('ixGeofenceStatus', ['status'], {}),
84
- Entity('geofence', { schema: 'nova' })
85
- ], Geofence);
86
- export { Geofence };
@@ -1,87 +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 GeofenceEvent = class GeofenceEvent {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
15
- __metadata("design:type", String)
16
- ], GeofenceEvent.prototype, "id", void 0);
17
- __decorate([
18
- Column('int', { name: 'deviceId' }),
19
- __metadata("design:type", Number)
20
- ], GeofenceEvent.prototype, "deviceId", void 0);
21
- __decorate([
22
- Column('int', { name: 'geofenceId' }),
23
- __metadata("design:type", Number)
24
- ], GeofenceEvent.prototype, "geofenceId", void 0);
25
- __decorate([
26
- Column('datetime', { name: 'inDate', nullable: true }),
27
- __metadata("design:type", Date)
28
- ], GeofenceEvent.prototype, "inDate", void 0);
29
- __decorate([
30
- Column('double', { name: 'inLat', nullable: true }),
31
- __metadata("design:type", Number)
32
- ], GeofenceEvent.prototype, "inLat", void 0);
33
- __decorate([
34
- Column('double', { name: 'inLon', nullable: true }),
35
- __metadata("design:type", Number)
36
- ], GeofenceEvent.prototype, "inLon", void 0);
37
- __decorate([
38
- Column('varchar', { name: 'inAddress', nullable: true, length: 255 }),
39
- __metadata("design:type", String)
40
- ], GeofenceEvent.prototype, "inAddress", void 0);
41
- __decorate([
42
- Column('datetime', { name: 'outDate', nullable: true }),
43
- __metadata("design:type", Date)
44
- ], GeofenceEvent.prototype, "outDate", void 0);
45
- __decorate([
46
- Column('double', { name: 'outLat', nullable: true }),
47
- __metadata("design:type", Number)
48
- ], GeofenceEvent.prototype, "outLat", void 0);
49
- __decorate([
50
- Column('double', { name: 'outLon', nullable: true }),
51
- __metadata("design:type", Number)
52
- ], GeofenceEvent.prototype, "outLon", void 0);
53
- __decorate([
54
- Column('varchar', { name: 'outAddress', nullable: true, length: 255 }),
55
- __metadata("design:type", String)
56
- ], GeofenceEvent.prototype, "outAddress", void 0);
57
- __decorate([
58
- Column('int', { name: 'inOutDuration', nullable: true }),
59
- __metadata("design:type", Number)
60
- ], GeofenceEvent.prototype, "inOutDuration", void 0);
61
- __decorate([
62
- Column('datetime', { name: 'createdAt', default: () => 'CURRENT_TIMESTAMP' }),
63
- __metadata("design:type", Date)
64
- ], GeofenceEvent.prototype, "createdAt", void 0);
65
- __decorate([
66
- Column('datetime', {
67
- name: 'modifiedAt',
68
- default: () => 'CURRENT_TIMESTAMP',
69
- }),
70
- __metadata("design:type", Date)
71
- ], GeofenceEvent.prototype, "modifiedAt", void 0);
72
- __decorate([
73
- Column('varchar', { name: 'imei', nullable: true, length: 15 }),
74
- __metadata("design:type", String)
75
- ], GeofenceEvent.prototype, "imei", void 0);
76
- __decorate([
77
- Column('binary', { name: 'userId', nullable: true, length: 16 }),
78
- __metadata("design:type", Buffer)
79
- ], GeofenceEvent.prototype, "userId", void 0);
80
- GeofenceEvent = __decorate([
81
- Index('ixGeofenceEventDeviceId', ['deviceId'], {}),
82
- Index('ixGeofenceEventGeofenceId', ['geofenceId'], {}),
83
- Index('ixGeofenceEventOutAtInAt', ['outDate', 'inDate'], {}),
84
- Index('ixGeofenceEventUserId', ['userId'], {}),
85
- Entity('geofenceEvent', { schema: 'nova' })
86
- ], GeofenceEvent);
87
- export { GeofenceEvent };
@@ -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 ImeiIccidCarrier = class ImeiIccidCarrier {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
- __metadata("design:type", Number)
16
- ], ImeiIccidCarrier.prototype, "id", void 0);
17
- __decorate([
18
- Column('varchar', { name: 'imei', nullable: true, length: 15 }),
19
- __metadata("design:type", String)
20
- ], ImeiIccidCarrier.prototype, "imei", void 0);
21
- __decorate([
22
- Column('varchar', { name: 'iccid', nullable: true, length: 25 }),
23
- __metadata("design:type", String)
24
- ], ImeiIccidCarrier.prototype, "iccid", void 0);
25
- __decorate([
26
- Column('tinyint', { name: 'carrier', nullable: true }),
27
- __metadata("design:type", Number)
28
- ], ImeiIccidCarrier.prototype, "carrier", void 0);
29
- __decorate([
30
- Column('varchar', { name: 'phone', nullable: true, length: 25 }),
31
- __metadata("design:type", String)
32
- ], ImeiIccidCarrier.prototype, "phone", void 0);
33
- __decorate([
34
- Column('smallint', { name: 'deviceTypeId', nullable: true }),
35
- __metadata("design:type", Number)
36
- ], ImeiIccidCarrier.prototype, "deviceTypeId", void 0);
37
- __decorate([
38
- Column('tinyint', { name: 'serviceProviderProductId', nullable: true }),
39
- __metadata("design:type", Number)
40
- ], ImeiIccidCarrier.prototype, "serviceProviderProductId", void 0);
41
- __decorate([
42
- Column('tinyint', { name: 'isValid', width: 1, default: () => "'1'" }),
43
- __metadata("design:type", Boolean)
44
- ], ImeiIccidCarrier.prototype, "isValid", void 0);
45
- __decorate([
46
- Column('varchar', { name: 'realModel', nullable: true, length: 50 }),
47
- __metadata("design:type", String)
48
- ], ImeiIccidCarrier.prototype, "realModel", void 0);
49
- __decorate([
50
- Column('varchar', { name: 'po', nullable: true, length: 25 }),
51
- __metadata("design:type", String)
52
- ], ImeiIccidCarrier.prototype, "po", void 0);
53
- __decorate([
54
- Column('tinyint', { name: 'outOfInventory', width: 1, default: () => "'0'" }),
55
- __metadata("design:type", Boolean)
56
- ], ImeiIccidCarrier.prototype, "outOfInventory", void 0);
57
- __decorate([
58
- Column('varchar', { name: 'apn', nullable: true, length: 50 }),
59
- __metadata("design:type", String)
60
- ], ImeiIccidCarrier.prototype, "apn", void 0);
61
- __decorate([
62
- Column('datetime', { name: 'createdAt', nullable: true }),
63
- __metadata("design:type", Date)
64
- ], ImeiIccidCarrier.prototype, "createdAt", void 0);
65
- __decorate([
66
- Column('datetime', { name: 'modifiedAt', nullable: true }),
67
- __metadata("design:type", Date)
68
- ], ImeiIccidCarrier.prototype, "modifiedAt", void 0);
69
- ImeiIccidCarrier = __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('imeiIccidCarrier', { schema: 'nova' })
77
- ], ImeiIccidCarrier);
78
- export { ImeiIccidCarrier };
@@ -1,38 +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 ImeiIccidHistory = class ImeiIccidHistory {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
- __metadata("design:type", Number)
16
- ], ImeiIccidHistory.prototype, "id", void 0);
17
- __decorate([
18
- Column('varchar', { name: 'iccid', nullable: true, length: 25 }),
19
- __metadata("design:type", String)
20
- ], ImeiIccidHistory.prototype, "iccid", void 0);
21
- __decorate([
22
- Column('varchar', { name: 'imei', length: 15 }),
23
- __metadata("design:type", String)
24
- ], ImeiIccidHistory.prototype, "imei", void 0);
25
- __decorate([
26
- Column('tinyint', { name: 'carrier' }),
27
- __metadata("design:type", Number)
28
- ], ImeiIccidHistory.prototype, "carrier", void 0);
29
- __decorate([
30
- Column('datetime', { name: 'lastUpdatedAt' }),
31
- __metadata("design:type", Date)
32
- ], ImeiIccidHistory.prototype, "lastUpdatedAt", void 0);
33
- ImeiIccidHistory = __decorate([
34
- Index('ixImeiIccidHistoryIccid', ['iccid'], {}),
35
- Index('ixImeiIccidHistoryImei', ['imei'], {}),
36
- Entity('imeiIccidHistory', { schema: 'nova' })
37
- ], ImeiIccidHistory);
38
- export { ImeiIccidHistory };
@@ -1,68 +0,0 @@
1
- import { Alert } from './alert';
2
- import { AlertType } from './alertType';
3
- import { AssetCategory } from './assetCategory';
4
- import { Billing } from './billing';
5
- import { BillingCustomerBraintree } from './billingCustomerBraintree';
6
- import { BillingDeviceHistory } from './billingDeviceHistory';
7
- import { BillingStatusHistoryBraintree } from './billingStatusHistoryBraintree';
8
- import { BillingSubscriptionBraintree } from './billingSubscriptionBraintree';
9
- import { Blacklist } from './blacklist';
10
- import { BlacklistType } from './blacklistType';
11
- import { CellTower } from './cellTower';
12
- import { Client } from './client';
13
- import { ClientConfiguration } from './clientConfiguration';
14
- import { ClientDeviceSetting } from './clientDeviceSetting';
15
- import { ClientType } from './clientType';
16
- import { Country } from './country';
17
- import { DataSourceType } from './dataSourceType';
18
- import { Deactivation } from './deactivation';
19
- import { DeactivationReason } from './deactivationReason';
20
- import { Device } from './device';
21
- import { DeviceBehavior } from './deviceBehavior';
22
- import { DeviceHistory } from './deviceHistory';
23
- import { DeviceModelListener } from './deviceModelListener';
24
- import { DeviceReplacement } from './deviceReplacement';
25
- import { DeviceType } from './deviceType';
26
- import { DeviceTypeEvent } from './deviceTypeEvent';
27
- import { DeviceTypeFeature } from './deviceTypeFeature';
28
- import { DeviceTypeFirmware } from './deviceTypeFirmware';
29
- import { EntityTag } from './entityTag';
30
- import { EntityType } from './entityType';
31
- import { Event } from './event';
32
- import { Feature } from './feature';
33
- import { FirmwareUpgradeTask } from './firmwareUpgradeTask';
34
- import { Geofence } from './geofence';
35
- import { GeofenceEvent } from './geofenceEvent';
36
- import { ImeiIccidCarrier } from './imeiIccidCarrier';
37
- import { ImeiIccidHistory } from './imeiIccidHistory';
38
- import { Industry } from './industry';
39
- import { MobileNetwork } from './mobileNetwork';
40
- import { NotificationRecipient } from './notificationRecipient';
41
- import { Organization } from './organization';
42
- import { Plan } from './plan';
43
- import { Position } from './position';
44
- import { SecurityRole } from './securityRole';
45
- import { ServiceProvider } from './serviceProvider';
46
- import { ServiceProviderProduct } from './serviceProviderProduct';
47
- import { ServiceProviderProductNetwork } from './serviceProviderProductNetwork';
48
- import { ServiceProviderProductType } from './serviceProviderProductType';
49
- import { Sim } from './sim';
50
- import { Trip } from './trip';
51
- import { TripCompletionStatus } from './tripCompletionStatus';
52
- import { TripPosition } from './tripPosition';
53
- import { User } from './user';
54
- import { UserActivation } from './userActivation';
55
- import { UserActivationDevice } from './userActivationDevice';
56
- import { UserActivationEvent } from './userActivationEvent';
57
- import { UserActivationMetric } from './userActivationMetric';
58
- import { UserAlertConfiguration } from './userAlertConfiguration';
59
- import { UserAppFeedback } from './userAppFeedback';
60
- import { UserAppIncident } from './userAppIncident';
61
- import { UserConfiguration } from './userConfiguration';
62
- import { UserDataDeletionRequest } from './userDataDeletionRequest';
63
- import { UserDeviceBehaviorTask } from './userDeviceBehaviorTask';
64
- import { UserInvitation } from './userInvitation';
65
- import { UserRatingRequest } from './userRatingRequest';
66
- import { UserRegistrationAttempt } from './userRegistrationAttempt';
67
- 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, Geofence, GeofenceEvent, 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, };
@@ -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 Industry = class Industry {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
15
- __metadata("design:type", Number)
16
- ], Industry.prototype, "id", void 0);
17
- __decorate([
18
- Column('varchar', { name: 'industry', length: 100 }),
19
- __metadata("design:type", String)
20
- ], Industry.prototype, "industry", void 0);
21
- __decorate([
22
- Column('varchar', { name: 'mainIndustry', length: 100 }),
23
- __metadata("design:type", String)
24
- ], Industry.prototype, "mainIndustry", void 0);
25
- __decorate([
26
- Column('varchar', { name: 'group', length: 100 }),
27
- __metadata("design:type", String)
28
- ], Industry.prototype, "group", void 0);
29
- __decorate([
30
- Column('varchar', { name: 'sector', length: 100 }),
31
- __metadata("design:type", String)
32
- ], Industry.prototype, "sector", void 0);
33
- __decorate([
34
- Column('varchar', { name: 'displayName', nullable: true, length: 100 }),
35
- __metadata("design:type", String)
36
- ], Industry.prototype, "displayName", void 0);
37
- Industry = __decorate([
38
- Entity('industry', { schema: 'nova' })
39
- ], Industry);
40
- export { Industry };