@spytecgps/nova-orm 0.0.4 → 0.0.5

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 (154) hide show
  1. package/README.md +2 -0
  2. package/dist/entities/alert.d.ts +25 -0
  3. package/dist/entities/alert.js +118 -0
  4. package/dist/entities/alertType.d.ts +14 -0
  5. package/dist/entities/alertType.js +65 -0
  6. package/dist/entities/assetCategory.d.ts +5 -0
  7. package/dist/entities/assetCategory.js +29 -0
  8. package/dist/entities/billing.d.ts +15 -0
  9. package/dist/entities/billing.js +81 -0
  10. package/dist/entities/billingCustomerBraintree.d.ts +11 -0
  11. package/dist/entities/billingCustomerBraintree.js +53 -0
  12. package/dist/entities/billingDeviceHistory.d.ts +11 -0
  13. package/dist/entities/billingDeviceHistory.js +52 -0
  14. package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -0
  15. package/dist/entities/billingStatusHistoryBraintree.js +55 -0
  16. package/dist/entities/billingSubscriptionBraintree.d.ts +34 -0
  17. package/dist/entities/billingSubscriptionBraintree.js +169 -0
  18. package/dist/entities/blacklist.d.ts +9 -0
  19. package/dist/entities/blacklist.js +44 -0
  20. package/dist/entities/blacklistType.d.ts +5 -0
  21. package/dist/entities/blacklistType.js +28 -0
  22. package/dist/entities/cellTower.d.ts +12 -0
  23. package/dist/entities/cellTower.js +56 -0
  24. package/dist/entities/client.d.ts +22 -0
  25. package/dist/entities/client.js +96 -0
  26. package/dist/entities/clientConfiguration.d.ts +7 -0
  27. package/dist/entities/clientConfiguration.js +42 -0
  28. package/dist/entities/clientDeviceSetting.d.ts +14 -0
  29. package/dist/entities/clientDeviceSetting.js +76 -0
  30. package/dist/entities/clientType.d.ts +6 -0
  31. package/dist/entities/clientType.js +32 -0
  32. package/dist/entities/country.d.ts +16 -0
  33. package/dist/entities/country.js +76 -0
  34. package/dist/entities/dataSourceType.d.ts +5 -0
  35. package/dist/entities/dataSourceType.js +28 -0
  36. package/dist/entities/deactivation.d.ts +12 -0
  37. package/dist/entities/deactivation.js +63 -0
  38. package/dist/entities/deactivationReason.d.ts +6 -0
  39. package/dist/entities/deactivationReason.js +36 -0
  40. package/dist/entities/device.d.ts +31 -0
  41. package/dist/entities/device.js +123 -0
  42. package/dist/entities/deviceBehavior.d.ts +22 -0
  43. package/dist/entities/deviceBehavior.js +105 -0
  44. package/dist/entities/deviceHistory.d.ts +9 -0
  45. package/dist/entities/deviceHistory.js +44 -0
  46. package/dist/entities/deviceModelListener.d.ts +8 -0
  47. package/dist/entities/deviceModelListener.js +40 -0
  48. package/dist/entities/deviceReplacement.d.ts +11 -0
  49. package/dist/entities/deviceReplacement.js +49 -0
  50. package/dist/entities/deviceType.d.ts +23 -0
  51. package/dist/entities/deviceType.js +100 -0
  52. package/dist/entities/deviceTypeEvent.d.ts +5 -0
  53. package/dist/entities/deviceTypeEvent.js +29 -0
  54. package/dist/entities/deviceTypeFeature.d.ts +5 -0
  55. package/dist/entities/deviceTypeFeature.js +29 -0
  56. package/dist/entities/deviceTypeFirmware.d.ts +11 -0
  57. package/dist/entities/deviceTypeFirmware.js +57 -0
  58. package/dist/entities/entityTag.d.ts +8 -0
  59. package/dist/entities/entityTag.js +42 -0
  60. package/dist/entities/entityType.d.ts +5 -0
  61. package/dist/entities/entityType.js +28 -0
  62. package/dist/entities/event.d.ts +6 -0
  63. package/dist/entities/event.js +32 -0
  64. package/dist/entities/feature.d.ts +6 -0
  65. package/dist/entities/feature.js +32 -0
  66. package/dist/entities/firmwareUpgradeTask.d.ts +12 -0
  67. package/dist/entities/firmwareUpgradeTask.js +53 -0
  68. package/dist/entities/geofence.d.ts +20 -0
  69. package/dist/entities/geofence.js +86 -0
  70. package/dist/entities/geofenceEvent.d.ts +19 -0
  71. package/dist/entities/geofenceEvent.js +87 -0
  72. package/dist/entities/imeiIccidCarrier.d.ts +16 -0
  73. package/dist/entities/imeiIccidCarrier.js +78 -0
  74. package/dist/entities/imeiIccidHistory.d.ts +7 -0
  75. package/dist/entities/imeiIccidHistory.js +38 -0
  76. package/dist/entities/index.d.ts +68 -0
  77. package/dist/entities/index.js +68 -0
  78. package/dist/entities/industry.d.ts +8 -0
  79. package/dist/entities/industry.js +40 -0
  80. package/dist/entities/mobileNetwork.d.ts +9 -0
  81. package/dist/entities/mobileNetwork.js +44 -0
  82. package/dist/entities/notificationRecipient.d.ts +14 -0
  83. package/dist/entities/notificationRecipient.js +70 -0
  84. package/dist/entities/organization.d.ts +9 -0
  85. package/dist/entities/organization.js +40 -0
  86. package/dist/entities/plan.d.ts +16 -0
  87. package/dist/entities/plan.js +72 -0
  88. package/dist/entities/position.d.ts +18 -0
  89. package/dist/entities/position.js +84 -0
  90. package/dist/entities/securityRole.d.ts +7 -0
  91. package/dist/entities/securityRole.js +36 -0
  92. package/dist/entities/serviceProvider.d.ts +7 -0
  93. package/dist/entities/serviceProvider.js +36 -0
  94. package/dist/entities/serviceProviderProduct.d.ts +9 -0
  95. package/dist/entities/serviceProviderProduct.js +54 -0
  96. package/dist/entities/serviceProviderProductNetwork.d.ts +5 -0
  97. package/dist/entities/serviceProviderProductNetwork.js +28 -0
  98. package/dist/entities/serviceProviderProductType.d.ts +5 -0
  99. package/dist/entities/serviceProviderProductType.js +28 -0
  100. package/dist/entities/sim.d.ts +16 -0
  101. package/dist/entities/sim.js +78 -0
  102. package/dist/entities/trip.d.ts +24 -0
  103. package/dist/entities/trip.js +103 -0
  104. package/dist/entities/tripCompletionStatus.d.ts +6 -0
  105. package/dist/entities/tripCompletionStatus.js +32 -0
  106. package/dist/entities/tripPosition.d.ts +4 -0
  107. package/dist/entities/tripPosition.js +24 -0
  108. package/dist/entities/user.d.ts +25 -0
  109. package/dist/entities/user.js +116 -0
  110. package/dist/entities/userActivation.d.ts +9 -0
  111. package/dist/entities/userActivation.js +45 -0
  112. package/dist/entities/userActivationDevice.d.ts +22 -0
  113. package/dist/entities/userActivationDevice.js +105 -0
  114. package/dist/entities/userActivationEvent.d.ts +12 -0
  115. package/dist/entities/userActivationEvent.js +52 -0
  116. package/dist/entities/userActivationMetric.d.ts +38 -0
  117. package/dist/entities/userActivationMetric.js +167 -0
  118. package/dist/entities/userAlertConfiguration.d.ts +13 -0
  119. package/dist/entities/userAlertConfiguration.js +68 -0
  120. package/dist/entities/userAppFeedback.d.ts +10 -0
  121. package/dist/entities/userAppFeedback.js +45 -0
  122. package/dist/entities/userAppIncident.d.ts +29 -0
  123. package/dist/entities/userAppIncident.js +131 -0
  124. package/dist/entities/userConfiguration.d.ts +18 -0
  125. package/dist/entities/userConfiguration.js +87 -0
  126. package/dist/entities/userDataDeletionRequest.d.ts +11 -0
  127. package/dist/entities/userDataDeletionRequest.js +48 -0
  128. package/dist/entities/userDeviceBehaviorTask.d.ts +14 -0
  129. package/dist/entities/userDeviceBehaviorTask.js +61 -0
  130. package/dist/entities/userInvitation.d.ts +17 -0
  131. package/dist/entities/userInvitation.js +75 -0
  132. package/dist/entities/userRatingRequest.d.ts +13 -0
  133. package/dist/entities/userRatingRequest.js +63 -0
  134. package/dist/entities/userRegistrationAttempt.d.ts +35 -0
  135. package/dist/entities/userRegistrationAttempt.js +145 -0
  136. package/dist/entities/userSecurityRole.d.ts +6 -0
  137. package/dist/entities/userSecurityRole.js +30 -0
  138. package/dist/index.d.ts +5 -0
  139. package/dist/index.js +5 -0
  140. package/dist/novaDataSource.d.ts +56 -0
  141. package/dist/novaDataSource.js +59 -0
  142. package/dist/repositories/baseRepository.d.ts +5 -0
  143. package/dist/repositories/baseRepository.js +5 -0
  144. package/dist/repositories/devicesRepository.d.ts +24 -0
  145. package/dist/repositories/devicesRepository.js +122 -0
  146. package/dist/repositories/index.d.ts +3 -0
  147. package/dist/repositories/index.js +3 -0
  148. package/dist/repositories/securityRepository.d.ts +21 -0
  149. package/dist/repositories/securityRepository.js +99 -0
  150. package/dist/types/enums.d.ts +9 -0
  151. package/dist/types/enums.js +11 -0
  152. package/dist/utils/uuidHelpers.d.ts +2 -0
  153. package/dist/utils/uuidHelpers.js +6 -0
  154. package/package.json +5 -5
@@ -0,0 +1,70 @@
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 };
@@ -0,0 +1,9 @@
1
+ /// <reference types="node" />
2
+ export declare class Organization {
3
+ id: number;
4
+ name: string;
5
+ description: string | null;
6
+ websiteUrl: string | null;
7
+ address: string | null;
8
+ mainContact: Buffer;
9
+ }
@@ -0,0 +1,40 @@
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 };
@@ -0,0 +1,16 @@
1
+ export declare class Plan {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ billingFrequencyMonths: number;
6
+ price: number;
7
+ trialPeriod: string | null;
8
+ discount: number | null;
9
+ platform: string | null;
10
+ planGroup: string | null;
11
+ gracePeriod: string | null;
12
+ status: string;
13
+ platformPrice: number | null;
14
+ servicePlan: string | null;
15
+ contractLengthMonths: number;
16
+ }
@@ -0,0 +1,72 @@
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 };
@@ -0,0 +1,18 @@
1
+ /// <reference types="node" />
2
+ export declare class Position {
3
+ id: string;
4
+ imei: string | null;
5
+ lat: number | null;
6
+ lon: number | null;
7
+ actualDate: Date;
8
+ speed: number | null;
9
+ odometer: number | null;
10
+ createdAt: Date | null;
11
+ messageId: Buffer;
12
+ fromMigration: boolean | null;
13
+ batteryPercentage: number | null;
14
+ clientId: number | null;
15
+ address: string | null;
16
+ sendTime: Date | null;
17
+ gpsUtcTime: Date | null;
18
+ }
@@ -0,0 +1,84 @@
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 };
@@ -0,0 +1,7 @@
1
+ export declare class SecurityRole {
2
+ id: number;
3
+ key: string;
4
+ name: string;
5
+ description: string;
6
+ ordinalPosition: number;
7
+ }
@@ -0,0 +1,36 @@
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 };
@@ -0,0 +1,7 @@
1
+ export declare class ServiceProvider {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ loginUrl: string | null;
6
+ apn: string | null;
7
+ }
@@ -0,0 +1,36 @@
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 };
@@ -0,0 +1,9 @@
1
+ export declare class ServiceProviderProduct {
2
+ id: number;
3
+ productId: string;
4
+ name: string;
5
+ serviceProviderProductTypeId: number | null;
6
+ serviceProviderProductNetworkId: number | null;
7
+ mbIncluded: number | null;
8
+ bundleCost: string | null;
9
+ }
@@ -0,0 +1,54 @@
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 };
@@ -0,0 +1,5 @@
1
+ export declare class ServiceProviderProductNetwork {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ }
@@ -0,0 +1,28 @@
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 };
@@ -0,0 +1,5 @@
1
+ export declare class ServiceProviderProductType {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ }
@@ -0,0 +1,28 @@
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 };
@@ -0,0 +1,16 @@
1
+ export declare class Sim {
2
+ id: number;
3
+ imei: string | null;
4
+ iccid: string | null;
5
+ carrier: number | null;
6
+ phone: string | null;
7
+ deviceTypeId: number | null;
8
+ serviceProviderProductId: number | null;
9
+ isValid: boolean;
10
+ realModel: string | null;
11
+ po: string | null;
12
+ outOfInventory: boolean;
13
+ apn: string | null;
14
+ createdAt: Date | null;
15
+ modifiedAt: Date | null;
16
+ }
@@ -0,0 +1,78 @@
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 };