@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,24 @@
1
+ /// <reference types="node" />
2
+ export declare class Trip {
3
+ id: string;
4
+ deviceId: number;
5
+ imei: string;
6
+ startDate: Date | null;
7
+ endDate: Date | null;
8
+ distance: number | null;
9
+ startLat: number | null;
10
+ startLon: number | null;
11
+ endLat: number | null;
12
+ endLon: number | null;
13
+ createdAt: Date | null;
14
+ startAddress: string | null;
15
+ endAddress: string | null;
16
+ positionStart: string | null;
17
+ positionEnd: string | null;
18
+ tripCompletionStatusId: number;
19
+ clientId: number | null;
20
+ duration: number | null;
21
+ tripType: number | null;
22
+ startMessageId: Buffer | null;
23
+ endMessageId: Buffer | null;
24
+ }
@@ -0,0 +1,103 @@
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 Trip = class Trip {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
15
+ __metadata("design:type", String)
16
+ ], Trip.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('int', { name: 'deviceId' }),
19
+ __metadata("design:type", Number)
20
+ ], Trip.prototype, "deviceId", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'imei', length: 15 }),
23
+ __metadata("design:type", String)
24
+ ], Trip.prototype, "imei", void 0);
25
+ __decorate([
26
+ Column('datetime', { name: 'startDate', nullable: true }),
27
+ __metadata("design:type", Date)
28
+ ], Trip.prototype, "startDate", void 0);
29
+ __decorate([
30
+ Column('datetime', { name: 'endDate', nullable: true }),
31
+ __metadata("design:type", Date)
32
+ ], Trip.prototype, "endDate", void 0);
33
+ __decorate([
34
+ Column('float', { name: 'distance', nullable: true }),
35
+ __metadata("design:type", Number)
36
+ ], Trip.prototype, "distance", void 0);
37
+ __decorate([
38
+ Column('double', { name: 'startLat', nullable: true }),
39
+ __metadata("design:type", Number)
40
+ ], Trip.prototype, "startLat", void 0);
41
+ __decorate([
42
+ Column('double', { name: 'startLon', nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], Trip.prototype, "startLon", void 0);
45
+ __decorate([
46
+ Column('double', { name: 'endLat', nullable: true }),
47
+ __metadata("design:type", Number)
48
+ ], Trip.prototype, "endLat", void 0);
49
+ __decorate([
50
+ Column('double', { name: 'endLon', nullable: true }),
51
+ __metadata("design:type", Number)
52
+ ], Trip.prototype, "endLon", void 0);
53
+ __decorate([
54
+ Column('datetime', { name: 'createdAt', nullable: true }),
55
+ __metadata("design:type", Date)
56
+ ], Trip.prototype, "createdAt", void 0);
57
+ __decorate([
58
+ Column('varchar', { name: 'startAddress', nullable: true, length: 255 }),
59
+ __metadata("design:type", String)
60
+ ], Trip.prototype, "startAddress", void 0);
61
+ __decorate([
62
+ Column('varchar', { name: 'endAddress', nullable: true, length: 255 }),
63
+ __metadata("design:type", String)
64
+ ], Trip.prototype, "endAddress", void 0);
65
+ __decorate([
66
+ Column('bigint', { name: 'positionStart', nullable: true }),
67
+ __metadata("design:type", String)
68
+ ], Trip.prototype, "positionStart", void 0);
69
+ __decorate([
70
+ Column('bigint', { name: 'positionEnd', nullable: true }),
71
+ __metadata("design:type", String)
72
+ ], Trip.prototype, "positionEnd", void 0);
73
+ __decorate([
74
+ Column('tinyint', { name: 'tripCompletionStatusId', default: () => "'1'" }),
75
+ __metadata("design:type", Number)
76
+ ], Trip.prototype, "tripCompletionStatusId", void 0);
77
+ __decorate([
78
+ Column('int', { name: 'clientId', nullable: true }),
79
+ __metadata("design:type", Number)
80
+ ], Trip.prototype, "clientId", void 0);
81
+ __decorate([
82
+ Column('smallint', { name: 'duration', nullable: true }),
83
+ __metadata("design:type", Number)
84
+ ], Trip.prototype, "duration", void 0);
85
+ __decorate([
86
+ Column('tinyint', { name: 'tripType', nullable: true }),
87
+ __metadata("design:type", Number)
88
+ ], Trip.prototype, "tripType", void 0);
89
+ __decorate([
90
+ Column('binary', { name: 'startMessageId', nullable: true, length: 16 }),
91
+ __metadata("design:type", Buffer)
92
+ ], Trip.prototype, "startMessageId", void 0);
93
+ __decorate([
94
+ Column('binary', { name: 'endMessageId', nullable: true, length: 16 }),
95
+ __metadata("design:type", Buffer)
96
+ ], Trip.prototype, "endMessageId", void 0);
97
+ Trip = __decorate([
98
+ Index('ixTripClientId', ['clientId'], {}),
99
+ Index('ixTripImei', ['imei'], {}),
100
+ Index('ixTripStartDate', ['startDate'], {}),
101
+ Entity('trip', { schema: 'nova' })
102
+ ], Trip);
103
+ export { Trip };
@@ -0,0 +1,6 @@
1
+ export declare class TripCompletionStatus {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ statusId: boolean;
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 TripCompletionStatus = class TripCompletionStatus {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'tinyint', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], TripCompletionStatus.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'name', length: 50 }),
19
+ __metadata("design:type", String)
20
+ ], TripCompletionStatus.prototype, "name", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'description', length: 500 }),
23
+ __metadata("design:type", String)
24
+ ], TripCompletionStatus.prototype, "description", void 0);
25
+ __decorate([
26
+ Column('tinyint', { name: 'statusId', width: 1, default: () => "'1'" }),
27
+ __metadata("design:type", Boolean)
28
+ ], TripCompletionStatus.prototype, "statusId", void 0);
29
+ TripCompletionStatus = __decorate([
30
+ Entity('tripCompletionStatus', { schema: 'nova' })
31
+ ], TripCompletionStatus);
32
+ export { TripCompletionStatus };
@@ -0,0 +1,4 @@
1
+ export declare class TripPosition {
2
+ tripId: string;
3
+ positionId: string;
4
+ }
@@ -0,0 +1,24 @@
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 TripPosition = class TripPosition {
12
+ };
13
+ __decorate([
14
+ Column('bigint', { primary: true, name: 'tripId' }),
15
+ __metadata("design:type", String)
16
+ ], TripPosition.prototype, "tripId", void 0);
17
+ __decorate([
18
+ Column('bigint', { primary: true, name: 'positionId' }),
19
+ __metadata("design:type", String)
20
+ ], TripPosition.prototype, "positionId", void 0);
21
+ TripPosition = __decorate([
22
+ Entity('tripPosition', { schema: 'nova' })
23
+ ], TripPosition);
24
+ export { TripPosition };
@@ -0,0 +1,25 @@
1
+ /// <reference types="node" />
2
+ export declare class User {
3
+ id: Buffer;
4
+ firstName: string;
5
+ lastName: string;
6
+ companyName: string | null;
7
+ telephone: string | null;
8
+ street: string | null;
9
+ postalCode: string | null;
10
+ city: string | null;
11
+ region: string | null;
12
+ email: string;
13
+ userName: string;
14
+ createdAt: Date | null;
15
+ modifiedAt: Date | null;
16
+ status: string | null;
17
+ clientId: number;
18
+ pincode: string | null;
19
+ isAdmin: boolean;
20
+ countryId: number | null;
21
+ dataSourceTypeId: number | null;
22
+ preferredUserName: string | null;
23
+ lastLoginAt: Date | null;
24
+ emailVerified: boolean;
25
+ }
@@ -0,0 +1,116 @@
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 User = class User {
12
+ };
13
+ __decorate([
14
+ Column('binary', { primary: true, name: 'id', length: 16 }),
15
+ __metadata("design:type", Buffer)
16
+ ], User.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('varchar', { name: 'firstName', length: 100 }),
19
+ __metadata("design:type", String)
20
+ ], User.prototype, "firstName", void 0);
21
+ __decorate([
22
+ Column('varchar', { name: 'lastName', length: 100 }),
23
+ __metadata("design:type", String)
24
+ ], User.prototype, "lastName", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'companyName', nullable: true, length: 255 }),
27
+ __metadata("design:type", String)
28
+ ], User.prototype, "companyName", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'telephone', nullable: true, length: 20 }),
31
+ __metadata("design:type", String)
32
+ ], User.prototype, "telephone", void 0);
33
+ __decorate([
34
+ Column('varchar', { name: 'street', nullable: true, length: 255 }),
35
+ __metadata("design:type", String)
36
+ ], User.prototype, "street", void 0);
37
+ __decorate([
38
+ Column('varchar', { name: 'postalCode', nullable: true, length: 20 }),
39
+ __metadata("design:type", String)
40
+ ], User.prototype, "postalCode", void 0);
41
+ __decorate([
42
+ Column('varchar', { name: 'city', nullable: true, length: 50 }),
43
+ __metadata("design:type", String)
44
+ ], User.prototype, "city", void 0);
45
+ __decorate([
46
+ Column('varchar', { name: 'region', nullable: true, length: 50 }),
47
+ __metadata("design:type", String)
48
+ ], User.prototype, "region", void 0);
49
+ __decorate([
50
+ Column('varchar', { name: 'email', length: 255 }),
51
+ __metadata("design:type", String)
52
+ ], User.prototype, "email", void 0);
53
+ __decorate([
54
+ Column('varchar', { name: 'userName', length: 50 }),
55
+ __metadata("design:type", String)
56
+ ], User.prototype, "userName", void 0);
57
+ __decorate([
58
+ Column('datetime', { name: 'createdAt', nullable: true }),
59
+ __metadata("design:type", Date)
60
+ ], User.prototype, "createdAt", void 0);
61
+ __decorate([
62
+ Column('datetime', { name: 'modifiedAt', nullable: true }),
63
+ __metadata("design:type", Date)
64
+ ], User.prototype, "modifiedAt", void 0);
65
+ __decorate([
66
+ Column('char', {
67
+ name: 'status',
68
+ nullable: true,
69
+ length: 1,
70
+ default: () => "'A'",
71
+ }),
72
+ __metadata("design:type", String)
73
+ ], User.prototype, "status", void 0);
74
+ __decorate([
75
+ Column('int', { name: 'clientId' }),
76
+ __metadata("design:type", Number)
77
+ ], User.prototype, "clientId", void 0);
78
+ __decorate([
79
+ Column('varchar', { name: 'pincode', nullable: true, length: 20 }),
80
+ __metadata("design:type", String)
81
+ ], User.prototype, "pincode", void 0);
82
+ __decorate([
83
+ Column('tinyint', { name: 'isAdmin', width: 1 }),
84
+ __metadata("design:type", Boolean)
85
+ ], User.prototype, "isAdmin", void 0);
86
+ __decorate([
87
+ Column('smallint', { name: 'countryId', nullable: true }),
88
+ __metadata("design:type", Number)
89
+ ], User.prototype, "countryId", void 0);
90
+ __decorate([
91
+ Column('tinyint', { name: 'dataSourceTypeId', nullable: true }),
92
+ __metadata("design:type", Number)
93
+ ], User.prototype, "dataSourceTypeId", void 0);
94
+ __decorate([
95
+ Column('varchar', { name: 'preferredUserName', nullable: true, length: 50 }),
96
+ __metadata("design:type", String)
97
+ ], User.prototype, "preferredUserName", void 0);
98
+ __decorate([
99
+ Column('datetime', { name: 'lastLoginAt', nullable: true }),
100
+ __metadata("design:type", Date)
101
+ ], User.prototype, "lastLoginAt", void 0);
102
+ __decorate([
103
+ Column('tinyint', { name: 'emailVerified', width: 1, default: () => "'1'" }),
104
+ __metadata("design:type", Boolean)
105
+ ], User.prototype, "emailVerified", void 0);
106
+ User = __decorate([
107
+ Index('ixUserClientId', ['clientId'], {}),
108
+ Index('ixUserCreatedAt', ['createdAt'], {}),
109
+ Index('ixUserEmail', ['email'], {}),
110
+ Index('ixUserEmailLower', { synchronize: false }),
111
+ Index('ixUserLastLoginAt', ['lastLoginAt'], {}),
112
+ Index('ixUserStatus', ['status'], {}),
113
+ Index('ixUserUserName', ['userName'], {}),
114
+ Entity('user', { schema: 'nova' })
115
+ ], User);
116
+ export { User };
@@ -0,0 +1,9 @@
1
+ /// <reference types="node" />
2
+ export declare class UserActivation {
3
+ id: number;
4
+ createdAt: Date | null;
5
+ status: string | null;
6
+ userId: Buffer;
7
+ legacyCreatedAt: Date | null;
8
+ clientId: number;
9
+ }
@@ -0,0 +1,45 @@
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 UserActivation = class UserActivation {
12
+ };
13
+ __decorate([
14
+ PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], UserActivation.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('datetime', { name: 'createdAt', nullable: true }),
19
+ __metadata("design:type", Date)
20
+ ], UserActivation.prototype, "createdAt", void 0);
21
+ __decorate([
22
+ Column('char', {
23
+ name: 'status',
24
+ nullable: true,
25
+ length: 1,
26
+ default: () => "'A'",
27
+ }),
28
+ __metadata("design:type", String)
29
+ ], UserActivation.prototype, "status", void 0);
30
+ __decorate([
31
+ Column('binary', { name: 'userId', length: 16 }),
32
+ __metadata("design:type", Buffer)
33
+ ], UserActivation.prototype, "userId", void 0);
34
+ __decorate([
35
+ Column('datetime', { name: 'legacyCreatedAt', nullable: true }),
36
+ __metadata("design:type", Date)
37
+ ], UserActivation.prototype, "legacyCreatedAt", void 0);
38
+ __decorate([
39
+ Column('int', { name: 'clientId' }),
40
+ __metadata("design:type", Number)
41
+ ], UserActivation.prototype, "clientId", void 0);
42
+ UserActivation = __decorate([
43
+ Entity('userActivation', { schema: 'nova' })
44
+ ], UserActivation);
45
+ export { UserActivation };
@@ -0,0 +1,22 @@
1
+ export declare class UserActivationDevice {
2
+ id: number;
3
+ userActivationId: number;
4
+ deviceId: number;
5
+ imei: string;
6
+ model: string | null;
7
+ billingInterval: string | null;
8
+ deviceName: string | null;
9
+ createdAt: Date | null;
10
+ modifiedAt: Date | null;
11
+ status: string | null;
12
+ trackingReason: string | null;
13
+ deviceColor: string | null;
14
+ notificationByEmail: boolean | null;
15
+ notificationBySms: boolean | null;
16
+ planAnnual: boolean | null;
17
+ dataSourceTypeId: number | null;
18
+ subscriptionId: string | null;
19
+ platform: string | null;
20
+ eventType: string | null;
21
+ planCode: 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, Index } from 'typeorm';
11
+ let UserActivationDevice = class UserActivationDevice {
12
+ };
13
+ __decorate([
14
+ Column('int', { primary: true, name: 'id' }),
15
+ __metadata("design:type", Number)
16
+ ], UserActivationDevice.prototype, "id", void 0);
17
+ __decorate([
18
+ Column('int', { name: 'userActivationId' }),
19
+ __metadata("design:type", Number)
20
+ ], UserActivationDevice.prototype, "userActivationId", void 0);
21
+ __decorate([
22
+ Column('int', { name: 'deviceId' }),
23
+ __metadata("design:type", Number)
24
+ ], UserActivationDevice.prototype, "deviceId", void 0);
25
+ __decorate([
26
+ Column('varchar', { name: 'imei', length: 15 }),
27
+ __metadata("design:type", String)
28
+ ], UserActivationDevice.prototype, "imei", void 0);
29
+ __decorate([
30
+ Column('varchar', { name: 'model', nullable: true, length: 50 }),
31
+ __metadata("design:type", String)
32
+ ], UserActivationDevice.prototype, "model", void 0);
33
+ __decorate([
34
+ Column('varchar', { name: 'billingInterval', nullable: true, length: 25 }),
35
+ __metadata("design:type", String)
36
+ ], UserActivationDevice.prototype, "billingInterval", void 0);
37
+ __decorate([
38
+ Column('varchar', { name: 'deviceName', nullable: true, length: 255 }),
39
+ __metadata("design:type", String)
40
+ ], UserActivationDevice.prototype, "deviceName", void 0);
41
+ __decorate([
42
+ Column('datetime', { name: 'createdAt', nullable: true }),
43
+ __metadata("design:type", Date)
44
+ ], UserActivationDevice.prototype, "createdAt", void 0);
45
+ __decorate([
46
+ Column('datetime', { name: 'modifiedAt', nullable: true }),
47
+ __metadata("design:type", Date)
48
+ ], UserActivationDevice.prototype, "modifiedAt", void 0);
49
+ __decorate([
50
+ Column('char', {
51
+ name: 'status',
52
+ nullable: true,
53
+ length: 1,
54
+ default: () => "'A'",
55
+ }),
56
+ __metadata("design:type", String)
57
+ ], UserActivationDevice.prototype, "status", void 0);
58
+ __decorate([
59
+ Column('varchar', { name: 'trackingReason', nullable: true, length: 500 }),
60
+ __metadata("design:type", String)
61
+ ], UserActivationDevice.prototype, "trackingReason", void 0);
62
+ __decorate([
63
+ Column('varchar', { name: 'deviceColor', nullable: true, length: 25 }),
64
+ __metadata("design:type", String)
65
+ ], UserActivationDevice.prototype, "deviceColor", void 0);
66
+ __decorate([
67
+ Column('tinyint', { name: 'notificationByEmail', nullable: true, width: 1 }),
68
+ __metadata("design:type", Boolean)
69
+ ], UserActivationDevice.prototype, "notificationByEmail", void 0);
70
+ __decorate([
71
+ Column('tinyint', { name: 'notificationBySms', nullable: true, width: 1 }),
72
+ __metadata("design:type", Boolean)
73
+ ], UserActivationDevice.prototype, "notificationBySms", void 0);
74
+ __decorate([
75
+ Column('tinyint', { name: 'planAnnual', nullable: true, width: 1 }),
76
+ __metadata("design:type", Boolean)
77
+ ], UserActivationDevice.prototype, "planAnnual", void 0);
78
+ __decorate([
79
+ Column('tinyint', { name: 'dataSourceTypeId', nullable: true }),
80
+ __metadata("design:type", Number)
81
+ ], UserActivationDevice.prototype, "dataSourceTypeId", void 0);
82
+ __decorate([
83
+ Column('varchar', { name: 'subscriptionId', nullable: true, length: 50 }),
84
+ __metadata("design:type", String)
85
+ ], UserActivationDevice.prototype, "subscriptionId", void 0);
86
+ __decorate([
87
+ Column('varchar', { name: 'platform', nullable: true, length: 25 }),
88
+ __metadata("design:type", String)
89
+ ], UserActivationDevice.prototype, "platform", void 0);
90
+ __decorate([
91
+ Column('varchar', { name: 'eventType', nullable: true, length: 50 }),
92
+ __metadata("design:type", String)
93
+ ], UserActivationDevice.prototype, "eventType", void 0);
94
+ __decorate([
95
+ Column('varchar', { name: 'planCode', nullable: true, length: 50 }),
96
+ __metadata("design:type", String)
97
+ ], UserActivationDevice.prototype, "planCode", void 0);
98
+ UserActivationDevice = __decorate([
99
+ Index('ixUserActivationDeviceCreatedAt', ['createdAt'], {}),
100
+ Index('ixUserActivationDeviceDeviceId', ['deviceId'], {}),
101
+ Index('ixUserActivationDeviceImei', ['imei'], {}),
102
+ Index('ixUserActivationDeviceActivationId', ['userActivationId'], {}),
103
+ Entity('userActivationDevice', { schema: 'nova' })
104
+ ], UserActivationDevice);
105
+ export { UserActivationDevice };
@@ -0,0 +1,12 @@
1
+ /// <reference types="node" />
2
+ export declare class UserActivationEvent {
3
+ userId: Buffer;
4
+ eventId: Buffer;
5
+ eventName: string;
6
+ eventValue: string | null;
7
+ eventMetadata: string | null;
8
+ createdAt: Date;
9
+ platform: string | null;
10
+ ip: string | null;
11
+ userAgent: string | null;
12
+ }
@@ -0,0 +1,52 @@
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 UserActivationEvent = class UserActivationEvent {
12
+ };
13
+ __decorate([
14
+ Column('binary', { primary: true, name: 'userId', length: 16 }),
15
+ __metadata("design:type", Buffer)
16
+ ], UserActivationEvent.prototype, "userId", void 0);
17
+ __decorate([
18
+ Column('binary', { primary: true, name: 'eventId', length: 16 }),
19
+ __metadata("design:type", Buffer)
20
+ ], UserActivationEvent.prototype, "eventId", void 0);
21
+ __decorate([
22
+ Column('text', { name: 'eventName' }),
23
+ __metadata("design:type", String)
24
+ ], UserActivationEvent.prototype, "eventName", void 0);
25
+ __decorate([
26
+ Column('text', { name: 'eventValue', nullable: true }),
27
+ __metadata("design:type", String)
28
+ ], UserActivationEvent.prototype, "eventValue", void 0);
29
+ __decorate([
30
+ Column('text', { name: 'eventMetadata', nullable: true }),
31
+ __metadata("design:type", String)
32
+ ], UserActivationEvent.prototype, "eventMetadata", void 0);
33
+ __decorate([
34
+ Column('datetime', { name: 'createdAt' }),
35
+ __metadata("design:type", Date)
36
+ ], UserActivationEvent.prototype, "createdAt", void 0);
37
+ __decorate([
38
+ Column('varchar', { name: 'platform', nullable: true, length: 25 }),
39
+ __metadata("design:type", String)
40
+ ], UserActivationEvent.prototype, "platform", void 0);
41
+ __decorate([
42
+ Column('text', { name: 'ip', nullable: true }),
43
+ __metadata("design:type", String)
44
+ ], UserActivationEvent.prototype, "ip", void 0);
45
+ __decorate([
46
+ Column('text', { name: 'userAgent', nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], UserActivationEvent.prototype, "userAgent", void 0);
49
+ UserActivationEvent = __decorate([
50
+ Entity('userActivationEvent', { schema: 'nova' })
51
+ ], UserActivationEvent);
52
+ export { UserActivationEvent };
@@ -0,0 +1,38 @@
1
+ /// <reference types="node" />
2
+ export declare class UserActivationMetric {
3
+ id: number;
4
+ userId: Buffer;
5
+ firstName: string;
6
+ lastName: string;
7
+ email: string;
8
+ phone: string | null;
9
+ trackingReason: string | null;
10
+ companyName: string | null;
11
+ role: string | null;
12
+ industry: string | null;
13
+ devicesActivatingCategory: string | null;
14
+ assetsCountRange: string | null;
15
+ devicesActivatingCount: string | null;
16
+ plan: string | null;
17
+ usersInvitedCount: string | null;
18
+ meetingScheduled: boolean | null;
19
+ createdAt: Date;
20
+ modifiedAt: Date | null;
21
+ planAnnual: string | null;
22
+ planId: string | null;
23
+ spyEnvironment: string | null;
24
+ jarvisScore: number | null;
25
+ enrichmentCompanyDescription: string | null;
26
+ jarvisEnrichmentCompanyEin: string | null;
27
+ enrichmentCompanyEmployees: string | null;
28
+ enrichmentCompanyIndustry: string | null;
29
+ enrichmentCompanyLocation: string | null;
30
+ enrichmentCompanyName: string | null;
31
+ enrichmentCompanyRevenue: string | null;
32
+ enrichmentPrivateDomain: string | null;
33
+ enrichmentPublicTicker: string | null;
34
+ enrichmentRole: string | null;
35
+ enrichmentTags: string | null;
36
+ jenrichmentTitle: string | null;
37
+ enrichmentVerifiedEmployment: string | null;
38
+ }