@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,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, PrimaryGeneratedColumn } from 'typeorm';
11
+ let Country = class Country {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], Country.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'name', nullable: true, length: 50 }),
19
+ __metadata("design:type", String)
20
+ ], Country.prototype, "name", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'currencies', nullable: true, length: 255 }),
23
+ __metadata("design:type", String)
24
+ ], Country.prototype, "currencies", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'capital', nullable: true, length: 50 }),
27
+ __metadata("design:type", String)
28
+ ], Country.prototype, "capital", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'region', nullable: true, length: 50 }),
31
+ __metadata("design:type", String)
32
+ ], Country.prototype, "region", void 0);
33
+ __decorate([
34
+ Column('varchar', { name: 'subregion', nullable: true, length: 50 }),
35
+ __metadata("design:type", String)
36
+ ], Country.prototype, "subregion", void 0);
37
+ __decorate([
38
+ Column('varchar', { name: 'languages', nullable: true, length: 255 }),
39
+ __metadata("design:type", String)
40
+ ], Country.prototype, "languages", void 0);
41
+ __decorate([
42
+ Column('double', { name: 'lat', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], Country.prototype, "lat", void 0);
45
+ __decorate([
46
+ Column('double', { name: 'lon', nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], Country.prototype, "lon", void 0);
49
+ __decorate([
50
+ Column('varchar', { name: 'borders', nullable: true, length: 255 }),
51
+ __metadata("design:type", String)
52
+ ], Country.prototype, "borders", void 0);
53
+ __decorate([
54
+ Column('int', { name: 'area', nullable: true }),
55
+ __metadata("design:type", Number)
56
+ ], Country.prototype, "area", void 0);
57
+ __decorate([
58
+ Column('varchar', {
59
+ name: 'internationalDirectDialing',
60
+ nullable: true,
61
+ length: 10,
62
+ }),
63
+ __metadata("design:type", String)
64
+ ], Country.prototype, "internationalDirectDialing", void 0);
65
+ __decorate([
66
+ Column('varchar', { name: 'alpha2Code', nullable: true, length: 2 }),
67
+ __metadata("design:type", String)
68
+ ], Country.prototype, "alpha2Code", void 0);
69
+ __decorate([
70
+ Column('varchar', { name: 'alpha3Code', nullable: true, length: 3 }),
71
+ __metadata("design:type", String)
72
+ ], Country.prototype, "alpha3Code", void 0);
73
+ Country = __decorate([
74
+ Entity('country', { schema: 'nova' })
75
+ ], Country);
76
+ export { Country };
@@ -0,0 +1,5 @@
1
+ export declare class DataSourceType {
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 DataSourceType = class DataSourceType {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], DataSourceType.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'name', length: 50 }),
19
+ __metadata("design:type", String)
20
+ ], DataSourceType.prototype, "name", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'description', nullable: true, length: 255 }),
23
+ __metadata("design:type", String)
24
+ ], DataSourceType.prototype, "description", void 0);
25
+ DataSourceType = __decorate([
26
+ Entity('dataSourceType', { schema: 'nova' })
27
+ ], DataSourceType);
28
+ export { DataSourceType };
@@ -0,0 +1,12 @@
1
+ export declare class Deactivation {
2
+ id: number;
3
+ imei: string;
4
+ deviceId: number;
5
+ clientId: number;
6
+ billingId: number;
7
+ deactivationReason: string | null;
8
+ deactivationReasonId: number | null;
9
+ createdBy: string;
10
+ createdAt: Date;
11
+ scheduledDate: Date | null;
12
+ }
@@ -0,0 +1,63 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
11
+ let Deactivation = class Deactivation {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], Deactivation.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'imei', length: 15 }),
19
+ __metadata("design:type", String)
20
+ ], Deactivation.prototype, "imei", void 0);
21
+ __decorate([
22
+ Column('int', { name: 'deviceId' }),
23
+ __metadata("design:type", Number)
24
+ ], Deactivation.prototype, "deviceId", void 0);
25
+ __decorate([
26
+ Column('int', { name: 'clientId' }),
27
+ __metadata("design:type", Number)
28
+ ], Deactivation.prototype, "clientId", void 0);
29
+ __decorate([
30
+ Column('int', { name: 'billingId' }),
31
+ __metadata("design:type", Number)
32
+ ], Deactivation.prototype, "billingId", void 0);
33
+ __decorate([
34
+ Column('varchar', {
35
+ name: 'deactivationReason',
36
+ nullable: true,
37
+ length: 2000,
38
+ }),
39
+ __metadata("design:type", String)
40
+ ], Deactivation.prototype, "deactivationReason", void 0);
41
+ __decorate([
42
+ Column('tinyint', { name: 'deactivationReasonId', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], Deactivation.prototype, "deactivationReasonId", void 0);
45
+ __decorate([
46
+ Column('varchar', { name: 'createdBy', length: 50 }),
47
+ __metadata("design:type", String)
48
+ ], Deactivation.prototype, "createdBy", void 0);
49
+ __decorate([
50
+ Column('datetime', { name: 'createdAt' }),
51
+ __metadata("design:type", Date)
52
+ ], Deactivation.prototype, "createdAt", void 0);
53
+ __decorate([
54
+ Column('datetime', { name: 'scheduledDate', nullable: true }),
55
+ __metadata("design:type", Date)
56
+ ], Deactivation.prototype, "scheduledDate", void 0);
57
+ Deactivation = __decorate([
58
+ Index('ixDeactivationClientId', ['clientId'], {}),
59
+ Index('ixDeactivationDeactivationReasonId', ['deactivationReasonId'], {}),
60
+ Index('ixDeactivationImei', ['imei'], {}),
61
+ Entity('deactivation', { schema: 'nova' })
62
+ ], Deactivation);
63
+ export { Deactivation };
@@ -0,0 +1,6 @@
1
+ export declare class DeactivationReason {
2
+ id: number;
3
+ text: string;
4
+ code: string;
5
+ customerVisible: boolean;
6
+ }
@@ -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 DeactivationReason = class DeactivationReason {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], DeactivationReason.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'text', length: 255 }),
19
+ __metadata("design:type", String)
20
+ ], DeactivationReason.prototype, "text", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'code', length: 50 }),
23
+ __metadata("design:type", String)
24
+ ], DeactivationReason.prototype, "code", void 0);
25
+ __decorate([
26
+ Column('tinyint', {
27
+ name: 'customerVisible',
28
+ width: 1,
29
+ default: () => "'1'",
30
+ }),
31
+ __metadata("design:type", Boolean)
32
+ ], DeactivationReason.prototype, "customerVisible", void 0);
33
+ DeactivationReason = __decorate([
34
+ Entity('deactivationReason', { schema: 'nova' })
35
+ ], DeactivationReason);
36
+ export { DeactivationReason };
@@ -0,0 +1,31 @@
1
+ /// <reference types="node" />
2
+ import { DeviceType } from './deviceType';
3
+ import { ImeiIccidCarrier } from './imeiIccidCarrier';
4
+ export declare class Device {
5
+ id: number;
6
+ identifier: string;
7
+ identifierKey: string;
8
+ deviceTypeId: number;
9
+ imei: string;
10
+ clientId: number | null;
11
+ createdAt: Date | null;
12
+ brand: string | null;
13
+ model: string | null;
14
+ name: string | null;
15
+ status: string | null;
16
+ iccid: string | null;
17
+ modifiedAt: Date | null;
18
+ createdBy: Buffer | null;
19
+ modifiedBy: Buffer | null;
20
+ forward: boolean | null;
21
+ color: string | null;
22
+ icon: string | null;
23
+ description: string | null;
24
+ dataSourceTypeId: number | null;
25
+ sievaUserName: string | null;
26
+ sievaBatchId: number | null;
27
+ assetCategoryId: number | null;
28
+ usageRegion: string | null;
29
+ deviceType?: DeviceType;
30
+ iccidCarrier?: ImeiIccidCarrier;
31
+ }
@@ -0,0 +1,123 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
11
+ let Device = class Device {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], Device.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'identifier', length: 100 }),
19
+ __metadata("design:type", String)
20
+ ], Device.prototype, "identifier", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'identifierKey', length: 255 }),
23
+ __metadata("design:type", String)
24
+ ], Device.prototype, "identifierKey", void 0);
25
+ __decorate([
26
+ Column('smallint', { name: 'deviceTypeId' }),
27
+ __metadata("design:type", Number)
28
+ ], Device.prototype, "deviceTypeId", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'imei', length: 15 }),
31
+ __metadata("design:type", String)
32
+ ], Device.prototype, "imei", void 0);
33
+ __decorate([
34
+ Column('int', { name: 'clientId', nullable: true }),
35
+ __metadata("design:type", Number)
36
+ ], Device.prototype, "clientId", void 0);
37
+ __decorate([
38
+ Column('datetime', {
39
+ name: 'createdAt',
40
+ nullable: true,
41
+ default: () => 'CURRENT_TIMESTAMP',
42
+ }),
43
+ __metadata("design:type", Date)
44
+ ], Device.prototype, "createdAt", void 0);
45
+ __decorate([
46
+ Column('varchar', { name: 'brand', nullable: true, length: 50 }),
47
+ __metadata("design:type", String)
48
+ ], Device.prototype, "brand", void 0);
49
+ __decorate([
50
+ Column('varchar', { name: 'model', nullable: true, length: 50 }),
51
+ __metadata("design:type", String)
52
+ ], Device.prototype, "model", void 0);
53
+ __decorate([
54
+ Column('varchar', { name: 'name', nullable: true, length: 255 }),
55
+ __metadata("design:type", String)
56
+ ], Device.prototype, "name", void 0);
57
+ __decorate([
58
+ Column('varchar', { name: 'status', nullable: true, length: 10 }),
59
+ __metadata("design:type", String)
60
+ ], Device.prototype, "status", void 0);
61
+ __decorate([
62
+ Column('varchar', { name: 'iccid', nullable: true, length: 25 }),
63
+ __metadata("design:type", String)
64
+ ], Device.prototype, "iccid", void 0);
65
+ __decorate([
66
+ Column('datetime', { name: 'modifiedAt', nullable: true }),
67
+ __metadata("design:type", Date)
68
+ ], Device.prototype, "modifiedAt", void 0);
69
+ __decorate([
70
+ Column('binary', { name: 'createdBy', nullable: true, length: 16 }),
71
+ __metadata("design:type", Buffer)
72
+ ], Device.prototype, "createdBy", void 0);
73
+ __decorate([
74
+ Column('binary', { name: 'modifiedBy', nullable: true, length: 16 }),
75
+ __metadata("design:type", Buffer)
76
+ ], Device.prototype, "modifiedBy", void 0);
77
+ __decorate([
78
+ Column('tinyint', { name: 'forward', nullable: true, width: 1 }),
79
+ __metadata("design:type", Boolean)
80
+ ], Device.prototype, "forward", void 0);
81
+ __decorate([
82
+ Column('varchar', { name: 'color', nullable: true, length: 25 }),
83
+ __metadata("design:type", String)
84
+ ], Device.prototype, "color", void 0);
85
+ __decorate([
86
+ Column('varchar', { name: 'icon', nullable: true, length: 50 }),
87
+ __metadata("design:type", String)
88
+ ], Device.prototype, "icon", void 0);
89
+ __decorate([
90
+ Column('varchar', { name: 'description', nullable: true, length: 500 }),
91
+ __metadata("design:type", String)
92
+ ], Device.prototype, "description", void 0);
93
+ __decorate([
94
+ Column('tinyint', { name: 'dataSourceTypeId', nullable: true }),
95
+ __metadata("design:type", Number)
96
+ ], Device.prototype, "dataSourceTypeId", void 0);
97
+ __decorate([
98
+ Column('varchar', { name: 'sievaUserName', nullable: true, length: 100 }),
99
+ __metadata("design:type", String)
100
+ ], Device.prototype, "sievaUserName", void 0);
101
+ __decorate([
102
+ Column('int', { name: 'sievaBatchId', nullable: true }),
103
+ __metadata("design:type", Number)
104
+ ], Device.prototype, "sievaBatchId", void 0);
105
+ __decorate([
106
+ Column('tinyint', { name: 'assetCategoryId', nullable: true }),
107
+ __metadata("design:type", Number)
108
+ ], Device.prototype, "assetCategoryId", void 0);
109
+ __decorate([
110
+ Column('varchar', { name: 'usageRegion', nullable: true, length: 25 }),
111
+ __metadata("design:type", String)
112
+ ], Device.prototype, "usageRegion", void 0);
113
+ Device = __decorate([
114
+ Index('ixuDeviceIdentifierKey', ['identifierKey'], { unique: true }),
115
+ Index('ixDeviceClientId', ['clientId'], {}),
116
+ Index('ixDeviceDeviceTypeId', ['deviceTypeId'], {}),
117
+ Index('ixDeviceIccidImei', ['iccid', 'imei'], {}),
118
+ Index('ixDeviceImei', ['imei'], {}),
119
+ Index('ixDeviceImeiLower', { synchronize: false }),
120
+ Index('ixDeviceStatus', ['status'], {}),
121
+ Entity('device', { schema: 'nova' })
122
+ ], Device);
123
+ export { Device };
@@ -0,0 +1,22 @@
1
+ export declare class DeviceBehavior {
2
+ id: number;
3
+ deviceTypeId: number;
4
+ name: string;
5
+ description: string;
6
+ type: string | null;
7
+ status: string;
8
+ behaviorName: string;
9
+ behaviorParams: object | null;
10
+ extraParams: object | null;
11
+ pendingNotes: string | null;
12
+ clientId: number | null;
13
+ deviceId: number | null;
14
+ imei: string | null;
15
+ icon: string | null;
16
+ confirmationNotes: string | null;
17
+ ordinalPosition: number;
18
+ stage: string | null;
19
+ additionalSettings: object | null;
20
+ blocking: boolean | null;
21
+ displayType: string | null;
22
+ }
@@ -0,0 +1,105 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
11
+ let DeviceBehavior = class DeviceBehavior {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], DeviceBehavior.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('smallint', { name: 'deviceTypeId' }),
19
+ __metadata("design:type", Number)
20
+ ], DeviceBehavior.prototype, "deviceTypeId", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'name', length: 25 }),
23
+ __metadata("design:type", String)
24
+ ], DeviceBehavior.prototype, "name", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'description', length: 1000 }),
27
+ __metadata("design:type", String)
28
+ ], DeviceBehavior.prototype, "description", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'type', nullable: true, length: 25 }),
31
+ __metadata("design:type", String)
32
+ ], DeviceBehavior.prototype, "type", void 0);
33
+ __decorate([
34
+ Column('varchar', { name: 'status', length: 10 }),
35
+ __metadata("design:type", String)
36
+ ], DeviceBehavior.prototype, "status", void 0);
37
+ __decorate([
38
+ Column('varchar', { name: 'behaviorName', length: 50 }),
39
+ __metadata("design:type", String)
40
+ ], DeviceBehavior.prototype, "behaviorName", void 0);
41
+ __decorate([
42
+ Column('json', { name: 'behaviorParams', nullable: true }),
43
+ __metadata("design:type", Object)
44
+ ], DeviceBehavior.prototype, "behaviorParams", void 0);
45
+ __decorate([
46
+ Column('json', { name: 'extraParams', nullable: true }),
47
+ __metadata("design:type", Object)
48
+ ], DeviceBehavior.prototype, "extraParams", void 0);
49
+ __decorate([
50
+ Column('varchar', { name: 'pendingNotes', nullable: true, length: 1000 }),
51
+ __metadata("design:type", String)
52
+ ], DeviceBehavior.prototype, "pendingNotes", void 0);
53
+ __decorate([
54
+ Column('int', { name: 'clientId', nullable: true }),
55
+ __metadata("design:type", Number)
56
+ ], DeviceBehavior.prototype, "clientId", void 0);
57
+ __decorate([
58
+ Column('int', { name: 'deviceId', nullable: true }),
59
+ __metadata("design:type", Number)
60
+ ], DeviceBehavior.prototype, "deviceId", void 0);
61
+ __decorate([
62
+ Column('varchar', { name: 'imei', nullable: true, length: 15 }),
63
+ __metadata("design:type", String)
64
+ ], DeviceBehavior.prototype, "imei", void 0);
65
+ __decorate([
66
+ Column('varchar', { name: 'icon', nullable: true, length: 50 }),
67
+ __metadata("design:type", String)
68
+ ], DeviceBehavior.prototype, "icon", void 0);
69
+ __decorate([
70
+ Column('varchar', {
71
+ name: 'confirmationNotes',
72
+ nullable: true,
73
+ length: 1000,
74
+ }),
75
+ __metadata("design:type", String)
76
+ ], DeviceBehavior.prototype, "confirmationNotes", void 0);
77
+ __decorate([
78
+ Column('tinyint', { name: 'ordinalPosition', default: () => "'1'" }),
79
+ __metadata("design:type", Number)
80
+ ], DeviceBehavior.prototype, "ordinalPosition", void 0);
81
+ __decorate([
82
+ Column('varchar', { name: 'stage', nullable: true, length: 10 }),
83
+ __metadata("design:type", String)
84
+ ], DeviceBehavior.prototype, "stage", void 0);
85
+ __decorate([
86
+ Column('json', { name: 'additionalSettings', nullable: true }),
87
+ __metadata("design:type", Object)
88
+ ], DeviceBehavior.prototype, "additionalSettings", void 0);
89
+ __decorate([
90
+ Column('tinyint', {
91
+ name: 'blocking',
92
+ nullable: true,
93
+ width: 1,
94
+ default: () => "'1'",
95
+ }),
96
+ __metadata("design:type", Boolean)
97
+ ], DeviceBehavior.prototype, "blocking", void 0);
98
+ __decorate([
99
+ Column('varchar', { name: 'displayType', nullable: true, length: 25 }),
100
+ __metadata("design:type", String)
101
+ ], DeviceBehavior.prototype, "displayType", void 0);
102
+ DeviceBehavior = __decorate([
103
+ Entity('deviceBehavior', { schema: 'nova' })
104
+ ], DeviceBehavior);
105
+ export { DeviceBehavior };
@@ -0,0 +1,9 @@
1
+ export declare class DeviceHistory {
2
+ id: string;
3
+ clientId: number | null;
4
+ deviceId: number | null;
5
+ imei: string;
6
+ trackerName: string | null;
7
+ status: string | null;
8
+ createAt: Date | null;
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, PrimaryGeneratedColumn } from 'typeorm';
11
+ let DeviceHistory = class DeviceHistory {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
15
+ __metadata("design:type", String)
16
+ ], DeviceHistory.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('int', { name: 'clientId', nullable: true }),
19
+ __metadata("design:type", Number)
20
+ ], DeviceHistory.prototype, "clientId", void 0);
21
+ __decorate([
22
+ Column('int', { name: 'deviceId', nullable: true }),
23
+ __metadata("design:type", Number)
24
+ ], DeviceHistory.prototype, "deviceId", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'imei', length: 15 }),
27
+ __metadata("design:type", String)
28
+ ], DeviceHistory.prototype, "imei", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'trackerName', nullable: true, length: 255 }),
31
+ __metadata("design:type", String)
32
+ ], DeviceHistory.prototype, "trackerName", void 0);
33
+ __decorate([
34
+ Column('varchar', { name: 'status', nullable: true, length: 10 }),
35
+ __metadata("design:type", String)
36
+ ], DeviceHistory.prototype, "status", void 0);
37
+ __decorate([
38
+ Column('datetime', { name: 'createAt', nullable: true }),
39
+ __metadata("design:type", Date)
40
+ ], DeviceHistory.prototype, "createAt", void 0);
41
+ DeviceHistory = __decorate([
42
+ Entity('deviceHistory', { schema: 'nova' })
43
+ ], DeviceHistory);
44
+ export { DeviceHistory };
@@ -0,0 +1,8 @@
1
+ export declare class DeviceModelListener {
2
+ id: number;
3
+ url: string | null;
4
+ portNumber: number | null;
5
+ protocol: string | null;
6
+ deviceTypeId: number | null;
7
+ status: string | null;
8
+ }
@@ -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 DeviceModelListener = class DeviceModelListener {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], DeviceModelListener.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'url', nullable: true, length: 1000 }),
19
+ __metadata("design:type", String)
20
+ ], DeviceModelListener.prototype, "url", void 0);
21
+ __decorate([
22
+ Column('smallint', { name: 'portNumber', nullable: true }),
23
+ __metadata("design:type", Number)
24
+ ], DeviceModelListener.prototype, "portNumber", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'protocol', nullable: true, length: 5 }),
27
+ __metadata("design:type", String)
28
+ ], DeviceModelListener.prototype, "protocol", void 0);
29
+ __decorate([
30
+ Column('smallint', { name: 'deviceTypeId', nullable: true }),
31
+ __metadata("design:type", Number)
32
+ ], DeviceModelListener.prototype, "deviceTypeId", void 0);
33
+ __decorate([
34
+ Column('varchar', { name: 'status', nullable: true, length: 10 }),
35
+ __metadata("design:type", String)
36
+ ], DeviceModelListener.prototype, "status", void 0);
37
+ DeviceModelListener = __decorate([
38
+ Entity('deviceModelListener', { schema: 'nova' })
39
+ ], DeviceModelListener);
40
+ export { DeviceModelListener };
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ export declare class DeviceReplacement {
3
+ id: number;
4
+ imeiOld: string;
5
+ iccidOld: string;
6
+ imeiNew: string;
7
+ iccidNew: string;
8
+ userId: Buffer;
9
+ clientId: number;
10
+ createAt: Date;
11
+ }