@spytecgps/nova-orm 0.0.3 → 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 +11 -11
@@ -0,0 +1,169 @@
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 BillingSubscriptionBraintree = class BillingSubscriptionBraintree {
12
+ };
13
+ __decorate([
14
+ Column('varchar', { primary: true, name: 'subscriptionId', length: 50 }),
15
+ __metadata("design:type", String)
16
+ ], BillingSubscriptionBraintree.prototype, "subscriptionId", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'customerId', nullable: true, length: 50 }),
19
+ __metadata("design:type", String)
20
+ ], BillingSubscriptionBraintree.prototype, "customerId", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'planId', nullable: true, length: 50 }),
23
+ __metadata("design:type", String)
24
+ ], BillingSubscriptionBraintree.prototype, "planId", void 0);
25
+ __decorate([
26
+ Column('datetime', { name: 'createdAt', nullable: true }),
27
+ __metadata("design:type", Date)
28
+ ], BillingSubscriptionBraintree.prototype, "createdAt", void 0);
29
+ __decorate([
30
+ Column('datetime', { name: 'updatedAt', nullable: true }),
31
+ __metadata("design:type", Date)
32
+ ], BillingSubscriptionBraintree.prototype, "updatedAt", void 0);
33
+ __decorate([
34
+ Column('date', { name: 'subscriptionStart', nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], BillingSubscriptionBraintree.prototype, "subscriptionStart", void 0);
37
+ __decorate([
38
+ Column('date', { name: 'subscriptionEnd', nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], BillingSubscriptionBraintree.prototype, "subscriptionEnd", void 0);
41
+ __decorate([
42
+ Column('date', { name: 'nextBillingDate', nullable: true }),
43
+ __metadata("design:type", String)
44
+ ], BillingSubscriptionBraintree.prototype, "nextBillingDate", void 0);
45
+ __decorate([
46
+ Column('decimal', {
47
+ name: 'subscriptionValue',
48
+ nullable: true,
49
+ precision: 19,
50
+ scale: 4,
51
+ }),
52
+ __metadata("design:type", String)
53
+ ], BillingSubscriptionBraintree.prototype, "subscriptionValue", void 0);
54
+ __decorate([
55
+ Column('varchar', { name: 'status', nullable: true, length: 10 }),
56
+ __metadata("design:type", String)
57
+ ], BillingSubscriptionBraintree.prototype, "status", void 0);
58
+ __decorate([
59
+ Column('tinyint', { name: 'subscriptionPeriodMonths', nullable: true }),
60
+ __metadata("design:type", Number)
61
+ ], BillingSubscriptionBraintree.prototype, "subscriptionPeriodMonths", void 0);
62
+ __decorate([
63
+ Column('varchar', {
64
+ name: 'paymentInstrumentType',
65
+ nullable: true,
66
+ length: 20,
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], BillingSubscriptionBraintree.prototype, "paymentInstrumentType", void 0);
70
+ __decorate([
71
+ Column('json', { name: 'paymentInstrumentDetails', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], BillingSubscriptionBraintree.prototype, "paymentInstrumentDetails", void 0);
74
+ __decorate([
75
+ Column('tinyint', {
76
+ name: 'isPaused',
77
+ nullable: true,
78
+ width: 1,
79
+ default: () => "'0'",
80
+ }),
81
+ __metadata("design:type", Boolean)
82
+ ], BillingSubscriptionBraintree.prototype, "isPaused", void 0);
83
+ __decorate([
84
+ Column('json', { name: 'discountDetails', nullable: true }),
85
+ __metadata("design:type", Object)
86
+ ], BillingSubscriptionBraintree.prototype, "discountDetails", void 0);
87
+ __decorate([
88
+ Column('json', { name: 'addons', nullable: true }),
89
+ __metadata("design:type", Object)
90
+ ], BillingSubscriptionBraintree.prototype, "addons", void 0);
91
+ __decorate([
92
+ Column('decimal', {
93
+ name: 'balance',
94
+ nullable: true,
95
+ precision: 19,
96
+ scale: 4,
97
+ }),
98
+ __metadata("design:type", String)
99
+ ], BillingSubscriptionBraintree.prototype, "balance", void 0);
100
+ __decorate([
101
+ Column('tinyint', { name: 'currentBillingCycle', nullable: true }),
102
+ __metadata("design:type", Number)
103
+ ], BillingSubscriptionBraintree.prototype, "currentBillingCycle", void 0);
104
+ __decorate([
105
+ Column('tinyint', { name: 'daysPastDue', nullable: true }),
106
+ __metadata("design:type", Number)
107
+ ], BillingSubscriptionBraintree.prototype, "daysPastDue", void 0);
108
+ __decorate([
109
+ Column('varchar', { name: 'description', nullable: true, length: 255 }),
110
+ __metadata("design:type", String)
111
+ ], BillingSubscriptionBraintree.prototype, "description", void 0);
112
+ __decorate([
113
+ Column('json', { name: 'descriptor', nullable: true }),
114
+ __metadata("design:type", Object)
115
+ ], BillingSubscriptionBraintree.prototype, "descriptor", void 0);
116
+ __decorate([
117
+ Column('tinyint', { name: 'failureCount', nullable: true }),
118
+ __metadata("design:type", Number)
119
+ ], BillingSubscriptionBraintree.prototype, "failureCount", void 0);
120
+ __decorate([
121
+ Column('date', { name: 'firstBillingDate', nullable: true }),
122
+ __metadata("design:type", String)
123
+ ], BillingSubscriptionBraintree.prototype, "firstBillingDate", void 0);
124
+ __decorate([
125
+ Column('varchar', { name: 'merchantAccountId', nullable: true, length: 50 }),
126
+ __metadata("design:type", String)
127
+ ], BillingSubscriptionBraintree.prototype, "merchantAccountId", void 0);
128
+ __decorate([
129
+ Column('decimal', {
130
+ name: 'nextBillingPeriodAmount',
131
+ nullable: true,
132
+ precision: 19,
133
+ scale: 4,
134
+ }),
135
+ __metadata("design:type", String)
136
+ ], BillingSubscriptionBraintree.prototype, "nextBillingPeriodAmount", void 0);
137
+ __decorate([
138
+ Column('tinyint', { name: 'numberOfBillingCycles', nullable: true }),
139
+ __metadata("design:type", Number)
140
+ ], BillingSubscriptionBraintree.prototype, "numberOfBillingCycles", void 0);
141
+ __decorate([
142
+ Column('date', { name: 'paidThroughDate', nullable: true }),
143
+ __metadata("design:type", String)
144
+ ], BillingSubscriptionBraintree.prototype, "paidThroughDate", void 0);
145
+ __decorate([
146
+ Column('varchar', { name: 'paymentMethodToken', nullable: true, length: 50 }),
147
+ __metadata("design:type", String)
148
+ ], BillingSubscriptionBraintree.prototype, "paymentMethodToken", void 0);
149
+ __decorate([
150
+ Column('json', { name: 'statusHistory', nullable: true }),
151
+ __metadata("design:type", Object)
152
+ ], BillingSubscriptionBraintree.prototype, "statusHistory", void 0);
153
+ __decorate([
154
+ Column('tinyint', { name: 'trialDuration', nullable: true }),
155
+ __metadata("design:type", Number)
156
+ ], BillingSubscriptionBraintree.prototype, "trialDuration", void 0);
157
+ __decorate([
158
+ Column('varchar', { name: 'trialDurationUnit', nullable: true, length: 10 }),
159
+ __metadata("design:type", String)
160
+ ], BillingSubscriptionBraintree.prototype, "trialDurationUnit", void 0);
161
+ __decorate([
162
+ Column('tinyint', { name: 'trialPeriod', nullable: true, width: 1 }),
163
+ __metadata("design:type", Boolean)
164
+ ], BillingSubscriptionBraintree.prototype, "trialPeriod", void 0);
165
+ BillingSubscriptionBraintree = __decorate([
166
+ Index('ixBillingSubscriptionBraintreeCustomerId', ['customerId'], {}),
167
+ Entity('billingSubscriptionBraintree', { schema: 'nova' })
168
+ ], BillingSubscriptionBraintree);
169
+ export { BillingSubscriptionBraintree };
@@ -0,0 +1,9 @@
1
+ export declare class Blacklist {
2
+ blacklistTypeId: number;
3
+ value: string;
4
+ notes: string | null;
5
+ createdAt: Date | null;
6
+ createdBy: string;
7
+ modifiedAt: Date | null;
8
+ modifiedBy: string;
9
+ }
@@ -0,0 +1,44 @@
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 Blacklist = class Blacklist {
12
+ };
13
+ __decorate([
14
+ Column('tinyint', { primary: true, name: 'blacklistTypeId' }),
15
+ __metadata("design:type", Number)
16
+ ], Blacklist.prototype, "blacklistTypeId", void 0);
17
+ __decorate([
18
+ Column('varchar', { primary: true, name: 'value', length: 255 }),
19
+ __metadata("design:type", String)
20
+ ], Blacklist.prototype, "value", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'notes', nullable: true, length: 1000 }),
23
+ __metadata("design:type", String)
24
+ ], Blacklist.prototype, "notes", void 0);
25
+ __decorate([
26
+ Column('datetime', { name: 'createdAt', nullable: true }),
27
+ __metadata("design:type", Date)
28
+ ], Blacklist.prototype, "createdAt", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'createdBy', length: 255 }),
31
+ __metadata("design:type", String)
32
+ ], Blacklist.prototype, "createdBy", void 0);
33
+ __decorate([
34
+ Column('datetime', { name: 'modifiedAt', nullable: true }),
35
+ __metadata("design:type", Date)
36
+ ], Blacklist.prototype, "modifiedAt", void 0);
37
+ __decorate([
38
+ Column('varchar', { name: 'modifiedBy', length: 255 }),
39
+ __metadata("design:type", String)
40
+ ], Blacklist.prototype, "modifiedBy", void 0);
41
+ Blacklist = __decorate([
42
+ Entity('blacklist', { schema: 'nova' })
43
+ ], Blacklist);
44
+ export { Blacklist };
@@ -0,0 +1,5 @@
1
+ export declare class BlacklistType {
2
+ id: number;
3
+ name: string;
4
+ description: string | null;
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 BlacklistType = class BlacklistType {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], BlacklistType.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'name', length: 50 }),
19
+ __metadata("design:type", String)
20
+ ], BlacklistType.prototype, "name", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'description', nullable: true, length: 1000 }),
23
+ __metadata("design:type", String)
24
+ ], BlacklistType.prototype, "description", void 0);
25
+ BlacklistType = __decorate([
26
+ Entity('blacklistType', { schema: 'nova' })
27
+ ], BlacklistType);
28
+ export { BlacklistType };
@@ -0,0 +1,12 @@
1
+ export declare class CellTower {
2
+ id: number;
3
+ mcc: number | null;
4
+ mnc: number | null;
5
+ lac: number | null;
6
+ radio: string | null;
7
+ lon: number | null;
8
+ lat: number | null;
9
+ range: number | null;
10
+ createdAt: Date | null;
11
+ updatedAt: Date | null;
12
+ }
@@ -0,0 +1,56 @@
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 CellTower = class CellTower {
12
+ };
13
+ __decorate([
14
+ Column('int', { primary: true, name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], CellTower.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('tinyint', { name: 'mcc', nullable: true }),
19
+ __metadata("design:type", Number)
20
+ ], CellTower.prototype, "mcc", void 0);
21
+ __decorate([
22
+ Column('tinyint', { name: 'mnc', nullable: true }),
23
+ __metadata("design:type", Number)
24
+ ], CellTower.prototype, "mnc", void 0);
25
+ __decorate([
26
+ Column('mediumint', { name: 'lac', nullable: true }),
27
+ __metadata("design:type", Number)
28
+ ], CellTower.prototype, "lac", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'radio', nullable: true, length: 5 }),
31
+ __metadata("design:type", String)
32
+ ], CellTower.prototype, "radio", void 0);
33
+ __decorate([
34
+ Column('float', { name: 'lon', nullable: true }),
35
+ __metadata("design:type", Number)
36
+ ], CellTower.prototype, "lon", void 0);
37
+ __decorate([
38
+ Column('float', { name: 'lat', nullable: true }),
39
+ __metadata("design:type", Number)
40
+ ], CellTower.prototype, "lat", void 0);
41
+ __decorate([
42
+ Column('mediumint', { name: 'range', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], CellTower.prototype, "range", void 0);
45
+ __decorate([
46
+ Column('datetime', { name: 'createdAt', nullable: true }),
47
+ __metadata("design:type", Date)
48
+ ], CellTower.prototype, "createdAt", void 0);
49
+ __decorate([
50
+ Column('datetime', { name: 'updatedAt', nullable: true }),
51
+ __metadata("design:type", Date)
52
+ ], CellTower.prototype, "updatedAt", void 0);
53
+ CellTower = __decorate([
54
+ Entity('cellTower', { schema: 'nova' })
55
+ ], CellTower);
56
+ export { CellTower };
@@ -0,0 +1,22 @@
1
+ /// <reference types="node" />
2
+ export declare class Client {
3
+ id: number;
4
+ name: string | null;
5
+ createdAt: Date | null;
6
+ modifiedAt: Date | null;
7
+ uuid: Buffer | null;
8
+ email: string | null;
9
+ modifiedBy: number | null;
10
+ createdBy: number | null;
11
+ dataSourceTypeId: number | null;
12
+ sievaUserName: string | null;
13
+ sievaBatchId: number | null;
14
+ clientTypeId: number;
15
+ salesforceId: string | null;
16
+ accumaticaId: string | null;
17
+ expirationDate: Date | null;
18
+ useType: string | null;
19
+ btCustomerId: string | null;
20
+ activationCampaign: string | null;
21
+ organizationId: number | null;
22
+ }
@@ -0,0 +1,96 @@
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 Client = class Client {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], Client.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'name', nullable: true, length: 255 }),
19
+ __metadata("design:type", String)
20
+ ], Client.prototype, "name", void 0);
21
+ __decorate([
22
+ Column('datetime', { name: 'createdAt', nullable: true }),
23
+ __metadata("design:type", Date)
24
+ ], Client.prototype, "createdAt", void 0);
25
+ __decorate([
26
+ Column('datetime', { name: 'modifiedAt', nullable: true }),
27
+ __metadata("design:type", Date)
28
+ ], Client.prototype, "modifiedAt", void 0);
29
+ __decorate([
30
+ Column('binary', { name: 'uuid', nullable: true, length: 16 }),
31
+ __metadata("design:type", Buffer)
32
+ ], Client.prototype, "uuid", void 0);
33
+ __decorate([
34
+ Column('varchar', { name: 'email', nullable: true, length: 255 }),
35
+ __metadata("design:type", String)
36
+ ], Client.prototype, "email", void 0);
37
+ __decorate([
38
+ Column('smallint', { name: 'modifiedBy', nullable: true }),
39
+ __metadata("design:type", Number)
40
+ ], Client.prototype, "modifiedBy", void 0);
41
+ __decorate([
42
+ Column('smallint', { name: 'createdBy', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], Client.prototype, "createdBy", void 0);
45
+ __decorate([
46
+ Column('tinyint', { name: 'dataSourceTypeId', nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], Client.prototype, "dataSourceTypeId", void 0);
49
+ __decorate([
50
+ Column('varchar', { name: 'sievaUserName', nullable: true, length: 100 }),
51
+ __metadata("design:type", String)
52
+ ], Client.prototype, "sievaUserName", void 0);
53
+ __decorate([
54
+ Column('int', { name: 'sievaBatchId', nullable: true }),
55
+ __metadata("design:type", Number)
56
+ ], Client.prototype, "sievaBatchId", void 0);
57
+ __decorate([
58
+ Column('tinyint', { name: 'clientTypeId', default: () => "'1'" }),
59
+ __metadata("design:type", Number)
60
+ ], Client.prototype, "clientTypeId", void 0);
61
+ __decorate([
62
+ Column('varchar', { name: 'salesforceId', nullable: true, length: 50 }),
63
+ __metadata("design:type", String)
64
+ ], Client.prototype, "salesforceId", void 0);
65
+ __decorate([
66
+ Column('varchar', { name: 'accumaticaId', nullable: true, length: 50 }),
67
+ __metadata("design:type", String)
68
+ ], Client.prototype, "accumaticaId", void 0);
69
+ __decorate([
70
+ Column('datetime', { name: 'expirationDate', nullable: true }),
71
+ __metadata("design:type", Date)
72
+ ], Client.prototype, "expirationDate", void 0);
73
+ __decorate([
74
+ Column('varchar', { name: 'useType', nullable: true, length: 25 }),
75
+ __metadata("design:type", String)
76
+ ], Client.prototype, "useType", void 0);
77
+ __decorate([
78
+ Column('varchar', { name: 'btCustomerId', nullable: true, length: 50 }),
79
+ __metadata("design:type", String)
80
+ ], Client.prototype, "btCustomerId", void 0);
81
+ __decorate([
82
+ Column('varchar', { name: 'activationCampaign', nullable: true, length: 50 }),
83
+ __metadata("design:type", String)
84
+ ], Client.prototype, "activationCampaign", void 0);
85
+ __decorate([
86
+ Column('int', { name: 'organizationId', nullable: true }),
87
+ __metadata("design:type", Number)
88
+ ], Client.prototype, "organizationId", void 0);
89
+ Client = __decorate([
90
+ Index('ixClientClientTypeId', ['clientTypeId'], {}),
91
+ Index('ixClientCreatedAt', ['createdAt'], {}),
92
+ Index('ixClientEmail', ['email'], {}),
93
+ Index('ixClientEmailLower', { synchronize: false }),
94
+ Entity('client', { schema: 'nova' })
95
+ ], Client);
96
+ export { Client };
@@ -0,0 +1,7 @@
1
+ export declare class ClientConfiguration {
2
+ clientId: number;
3
+ movementTripThreshold: number | null;
4
+ stopTripThreshold: number | null;
5
+ mapUpdateMode: number | null;
6
+ maxUsersAllowed: number;
7
+ }
@@ -0,0 +1,42 @@
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 ClientConfiguration = class ClientConfiguration {
12
+ };
13
+ __decorate([
14
+ Column('int', { primary: true, name: 'clientId' }),
15
+ __metadata("design:type", Number)
16
+ ], ClientConfiguration.prototype, "clientId", void 0);
17
+ __decorate([
18
+ Column('double', {
19
+ name: 'movementTripThreshold',
20
+ nullable: true,
21
+ }),
22
+ __metadata("design:type", Number)
23
+ ], ClientConfiguration.prototype, "movementTripThreshold", void 0);
24
+ __decorate([
25
+ Column('double', {
26
+ name: 'stopTripThreshold',
27
+ nullable: true,
28
+ }),
29
+ __metadata("design:type", Number)
30
+ ], ClientConfiguration.prototype, "stopTripThreshold", void 0);
31
+ __decorate([
32
+ Column('tinyint', { name: 'mapUpdateMode', nullable: true }),
33
+ __metadata("design:type", Number)
34
+ ], ClientConfiguration.prototype, "mapUpdateMode", void 0);
35
+ __decorate([
36
+ Column('smallint', { name: 'maxUsersAllowed', default: () => "'10'" }),
37
+ __metadata("design:type", Number)
38
+ ], ClientConfiguration.prototype, "maxUsersAllowed", void 0);
39
+ ClientConfiguration = __decorate([
40
+ Entity('clientConfiguration', { schema: 'nova' })
41
+ ], ClientConfiguration);
42
+ export { ClientConfiguration };
@@ -0,0 +1,14 @@
1
+ export declare class ClientDeviceSetting {
2
+ id: number;
3
+ clientId: number;
4
+ deviceId: number;
5
+ imei: string;
6
+ movingPingFrequency: number | null;
7
+ stoppedPingFrequency: number | null;
8
+ fixedStatus: string | null;
9
+ generateTrips: boolean;
10
+ stopThresholdMinutes: number | null;
11
+ offlineThresholdMinutes: number | null;
12
+ movementThresholdSpeed: number | null;
13
+ externalBatteryInformation: boolean | null;
14
+ }
@@ -0,0 +1,76 @@
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 ClientDeviceSetting = class ClientDeviceSetting {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], ClientDeviceSetting.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('int', { name: 'clientId' }),
19
+ __metadata("design:type", Number)
20
+ ], ClientDeviceSetting.prototype, "clientId", void 0);
21
+ __decorate([
22
+ Column('int', { name: 'deviceId' }),
23
+ __metadata("design:type", Number)
24
+ ], ClientDeviceSetting.prototype, "deviceId", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'imei', length: 15 }),
27
+ __metadata("design:type", String)
28
+ ], ClientDeviceSetting.prototype, "imei", void 0);
29
+ __decorate([
30
+ Column('smallint', { name: 'movingPingFrequency', nullable: true }),
31
+ __metadata("design:type", Number)
32
+ ], ClientDeviceSetting.prototype, "movingPingFrequency", void 0);
33
+ __decorate([
34
+ Column('smallint', { name: 'stoppedPingFrequency', nullable: true }),
35
+ __metadata("design:type", Number)
36
+ ], ClientDeviceSetting.prototype, "stoppedPingFrequency", void 0);
37
+ __decorate([
38
+ Column('varchar', { name: 'fixedStatus', nullable: true, length: 3 }),
39
+ __metadata("design:type", String)
40
+ ], ClientDeviceSetting.prototype, "fixedStatus", void 0);
41
+ __decorate([
42
+ Column('tinyint', { name: 'generateTrips', width: 1, default: () => "'1'" }),
43
+ __metadata("design:type", Boolean)
44
+ ], ClientDeviceSetting.prototype, "generateTrips", void 0);
45
+ __decorate([
46
+ Column('smallint', { name: 'stopThresholdMinutes', nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], ClientDeviceSetting.prototype, "stopThresholdMinutes", void 0);
49
+ __decorate([
50
+ Column('smallint', { name: 'offlineThresholdMinutes', nullable: true }),
51
+ __metadata("design:type", Number)
52
+ ], ClientDeviceSetting.prototype, "offlineThresholdMinutes", void 0);
53
+ __decorate([
54
+ Column('float', {
55
+ name: 'movementThresholdSpeed',
56
+ nullable: true,
57
+ }),
58
+ __metadata("design:type", Number)
59
+ ], ClientDeviceSetting.prototype, "movementThresholdSpeed", void 0);
60
+ __decorate([
61
+ Column('tinyint', {
62
+ name: 'externalBatteryInformation',
63
+ nullable: true,
64
+ width: 1,
65
+ default: () => "'0'",
66
+ }),
67
+ __metadata("design:type", Boolean)
68
+ ], ClientDeviceSetting.prototype, "externalBatteryInformation", void 0);
69
+ ClientDeviceSetting = __decorate([
70
+ Index('ixuUserDeviceSettingClientIdImei', ['clientId', 'imei'], {
71
+ unique: true,
72
+ }),
73
+ Index('ixClientDeviceSettingImei', ['imei'], {}),
74
+ Entity('clientDeviceSetting', { schema: 'nova' })
75
+ ], ClientDeviceSetting);
76
+ export { ClientDeviceSetting };
@@ -0,0 +1,6 @@
1
+ export declare class ClientType {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ status: string;
6
+ }
@@ -0,0 +1,32 @@
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 ClientType = class ClientType {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], ClientType.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'name', length: 50 }),
19
+ __metadata("design:type", String)
20
+ ], ClientType.prototype, "name", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'description', length: 255 }),
23
+ __metadata("design:type", String)
24
+ ], ClientType.prototype, "description", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'status', length: 10, default: () => "'active'" }),
27
+ __metadata("design:type", String)
28
+ ], ClientType.prototype, "status", void 0);
29
+ ClientType = __decorate([
30
+ Entity('clientType', { schema: 'nova' })
31
+ ], ClientType);
32
+ export { ClientType };
@@ -0,0 +1,16 @@
1
+ export declare class Country {
2
+ id: number;
3
+ name: string | null;
4
+ currencies: string | null;
5
+ capital: string | null;
6
+ region: string | null;
7
+ subregion: string | null;
8
+ languages: string | null;
9
+ lat: number | null;
10
+ lon: number | null;
11
+ borders: string | null;
12
+ area: number | null;
13
+ internationalDirectDialing: string | null;
14
+ alpha2Code: string | null;
15
+ alpha3Code: string | null;
16
+ }