@spytecgps/nova-orm 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/index.js +2 -5
  2. package/dist/index.js.LICENSE.txt +39 -0
  3. package/dist/utils/uuidHelpers.d.ts +0 -1
  4. package/package.json +2 -2
  5. package/dist/entities/alert.js +0 -118
  6. package/dist/entities/alertType.js +0 -65
  7. package/dist/entities/assetCategory.js +0 -29
  8. package/dist/entities/billing.js +0 -81
  9. package/dist/entities/billingCustomerBraintree.js +0 -53
  10. package/dist/entities/billingDeviceHistory.js +0 -52
  11. package/dist/entities/billingStatusHistoryBraintree.js +0 -55
  12. package/dist/entities/billingSubscriptionBraintree.js +0 -169
  13. package/dist/entities/blacklist.js +0 -44
  14. package/dist/entities/blacklistType.js +0 -28
  15. package/dist/entities/cellTower.js +0 -56
  16. package/dist/entities/client.js +0 -96
  17. package/dist/entities/clientConfiguration.js +0 -42
  18. package/dist/entities/clientDeviceSetting.js +0 -76
  19. package/dist/entities/clientType.js +0 -32
  20. package/dist/entities/country.js +0 -76
  21. package/dist/entities/dataSourceType.js +0 -28
  22. package/dist/entities/deactivation.js +0 -63
  23. package/dist/entities/deactivationReason.js +0 -36
  24. package/dist/entities/device.js +0 -123
  25. package/dist/entities/deviceBehavior.js +0 -105
  26. package/dist/entities/deviceHistory.js +0 -44
  27. package/dist/entities/deviceModelListener.js +0 -40
  28. package/dist/entities/deviceReplacement.js +0 -49
  29. package/dist/entities/deviceType.js +0 -100
  30. package/dist/entities/deviceTypeEvent.js +0 -29
  31. package/dist/entities/deviceTypeFeature.js +0 -29
  32. package/dist/entities/deviceTypeFirmware.js +0 -57
  33. package/dist/entities/entityTag.js +0 -42
  34. package/dist/entities/entityType.js +0 -28
  35. package/dist/entities/event.js +0 -32
  36. package/dist/entities/feature.js +0 -32
  37. package/dist/entities/firmwareUpgradeTask.js +0 -53
  38. package/dist/entities/geofence.js +0 -86
  39. package/dist/entities/geofenceEvent.js +0 -87
  40. package/dist/entities/imeiIccidCarrier.js +0 -78
  41. package/dist/entities/imeiIccidHistory.js +0 -38
  42. package/dist/entities/index.js +0 -68
  43. package/dist/entities/industry.js +0 -40
  44. package/dist/entities/mobileNetwork.js +0 -44
  45. package/dist/entities/notificationRecipient.js +0 -70
  46. package/dist/entities/organization.js +0 -40
  47. package/dist/entities/plan.js +0 -72
  48. package/dist/entities/position.js +0 -84
  49. package/dist/entities/securityRole.js +0 -36
  50. package/dist/entities/serviceProvider.js +0 -36
  51. package/dist/entities/serviceProviderProduct.js +0 -54
  52. package/dist/entities/serviceProviderProductNetwork.js +0 -28
  53. package/dist/entities/serviceProviderProductType.js +0 -28
  54. package/dist/entities/sim.js +0 -78
  55. package/dist/entities/trip.js +0 -103
  56. package/dist/entities/tripCompletionStatus.js +0 -32
  57. package/dist/entities/tripPosition.js +0 -24
  58. package/dist/entities/user.js +0 -116
  59. package/dist/entities/userActivation.js +0 -45
  60. package/dist/entities/userActivationDevice.js +0 -105
  61. package/dist/entities/userActivationEvent.js +0 -52
  62. package/dist/entities/userActivationMetric.js +0 -167
  63. package/dist/entities/userAlertConfiguration.js +0 -68
  64. package/dist/entities/userAppFeedback.js +0 -45
  65. package/dist/entities/userAppIncident.js +0 -131
  66. package/dist/entities/userConfiguration.js +0 -87
  67. package/dist/entities/userDataDeletionRequest.js +0 -48
  68. package/dist/entities/userDeviceBehaviorTask.js +0 -61
  69. package/dist/entities/userInvitation.js +0 -75
  70. package/dist/entities/userRatingRequest.js +0 -63
  71. package/dist/entities/userRegistrationAttempt.js +0 -145
  72. package/dist/entities/userSecurityRole.js +0 -30
  73. package/dist/novaDataSource.js +0 -59
  74. package/dist/repositories/baseRepository.js +0 -5
  75. package/dist/repositories/devicesRepository.js +0 -122
  76. package/dist/repositories/index.js +0 -3
  77. package/dist/repositories/securityRepository.js +0 -99
  78. package/dist/types/enums.js +0 -11
  79. package/dist/utils/uuidHelpers.js +0 -6
@@ -1,103 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
11
- let 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 };
@@ -1,32 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, 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 };
@@ -1,24 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity } from 'typeorm';
11
- let 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 };
@@ -1,116 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, Index } from 'typeorm';
11
- let 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 };
@@ -1,45 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
11
- let 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 };
@@ -1,105 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, Index } from 'typeorm';
11
- let 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 };
@@ -1,52 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity } from 'typeorm';
11
- let 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 };
@@ -1,167 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
11
- let UserActivationMetric = class UserActivationMetric {
12
- };
13
- __decorate([
14
- PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
15
- __metadata("design:type", Number)
16
- ], UserActivationMetric.prototype, "id", void 0);
17
- __decorate([
18
- Column('binary', { name: 'userId', length: 16 }),
19
- __metadata("design:type", Buffer)
20
- ], UserActivationMetric.prototype, "userId", void 0);
21
- __decorate([
22
- Column('text', { name: 'firstName' }),
23
- __metadata("design:type", String)
24
- ], UserActivationMetric.prototype, "firstName", void 0);
25
- __decorate([
26
- Column('text', { name: 'lastName' }),
27
- __metadata("design:type", String)
28
- ], UserActivationMetric.prototype, "lastName", void 0);
29
- __decorate([
30
- Column('text', { name: 'email' }),
31
- __metadata("design:type", String)
32
- ], UserActivationMetric.prototype, "email", void 0);
33
- __decorate([
34
- Column('text', { name: 'phone', nullable: true }),
35
- __metadata("design:type", String)
36
- ], UserActivationMetric.prototype, "phone", void 0);
37
- __decorate([
38
- Column('text', { name: 'trackingReason', nullable: true }),
39
- __metadata("design:type", String)
40
- ], UserActivationMetric.prototype, "trackingReason", void 0);
41
- __decorate([
42
- Column('text', { name: 'companyName', nullable: true }),
43
- __metadata("design:type", String)
44
- ], UserActivationMetric.prototype, "companyName", void 0);
45
- __decorate([
46
- Column('text', { name: 'role', nullable: true }),
47
- __metadata("design:type", String)
48
- ], UserActivationMetric.prototype, "role", void 0);
49
- __decorate([
50
- Column('text', { name: 'industry', nullable: true }),
51
- __metadata("design:type", String)
52
- ], UserActivationMetric.prototype, "industry", void 0);
53
- __decorate([
54
- Column('text', { name: 'devicesActivatingCategory', nullable: true }),
55
- __metadata("design:type", String)
56
- ], UserActivationMetric.prototype, "devicesActivatingCategory", void 0);
57
- __decorate([
58
- Column('text', { name: 'assetsCountRange', nullable: true }),
59
- __metadata("design:type", String)
60
- ], UserActivationMetric.prototype, "assetsCountRange", void 0);
61
- __decorate([
62
- Column('decimal', {
63
- name: 'devicesActivatingCount',
64
- nullable: true,
65
- precision: 10,
66
- scale: 0,
67
- }),
68
- __metadata("design:type", String)
69
- ], UserActivationMetric.prototype, "devicesActivatingCount", void 0);
70
- __decorate([
71
- Column('text', { name: 'plan', nullable: true }),
72
- __metadata("design:type", String)
73
- ], UserActivationMetric.prototype, "plan", void 0);
74
- __decorate([
75
- Column('decimal', {
76
- name: 'usersInvitedCount',
77
- nullable: true,
78
- precision: 10,
79
- scale: 0,
80
- }),
81
- __metadata("design:type", String)
82
- ], UserActivationMetric.prototype, "usersInvitedCount", void 0);
83
- __decorate([
84
- Column('tinyint', { name: 'meetingScheduled', nullable: true, width: 1 }),
85
- __metadata("design:type", Boolean)
86
- ], UserActivationMetric.prototype, "meetingScheduled", void 0);
87
- __decorate([
88
- Column('datetime', { name: 'createdAt' }),
89
- __metadata("design:type", Date)
90
- ], UserActivationMetric.prototype, "createdAt", void 0);
91
- __decorate([
92
- Column('datetime', { name: 'modifiedAt', nullable: true }),
93
- __metadata("design:type", Date)
94
- ], UserActivationMetric.prototype, "modifiedAt", void 0);
95
- __decorate([
96
- Column('text', { name: 'planAnnual', nullable: true }),
97
- __metadata("design:type", String)
98
- ], UserActivationMetric.prototype, "planAnnual", void 0);
99
- __decorate([
100
- Column('text', { name: 'planId', nullable: true }),
101
- __metadata("design:type", String)
102
- ], UserActivationMetric.prototype, "planId", void 0);
103
- __decorate([
104
- Column('text', { name: 'spyEnvironment', nullable: true }),
105
- __metadata("design:type", String)
106
- ], UserActivationMetric.prototype, "spyEnvironment", void 0);
107
- __decorate([
108
- Column('int', { name: 'jarvisScore', nullable: true }),
109
- __metadata("design:type", Number)
110
- ], UserActivationMetric.prototype, "jarvisScore", void 0);
111
- __decorate([
112
- Column('text', { name: 'enrichmentCompanyDescription', nullable: true }),
113
- __metadata("design:type", String)
114
- ], UserActivationMetric.prototype, "enrichmentCompanyDescription", void 0);
115
- __decorate([
116
- Column('text', { name: 'jarvisEnrichmentCompanyEin', nullable: true }),
117
- __metadata("design:type", String)
118
- ], UserActivationMetric.prototype, "jarvisEnrichmentCompanyEin", void 0);
119
- __decorate([
120
- Column('text', { name: 'enrichmentCompanyEmployees', nullable: true }),
121
- __metadata("design:type", String)
122
- ], UserActivationMetric.prototype, "enrichmentCompanyEmployees", void 0);
123
- __decorate([
124
- Column('text', { name: 'enrichmentCompanyIndustry', nullable: true }),
125
- __metadata("design:type", String)
126
- ], UserActivationMetric.prototype, "enrichmentCompanyIndustry", void 0);
127
- __decorate([
128
- Column('text', { name: 'enrichmentCompanyLocation', nullable: true }),
129
- __metadata("design:type", String)
130
- ], UserActivationMetric.prototype, "enrichmentCompanyLocation", void 0);
131
- __decorate([
132
- Column('text', { name: 'enrichmentCompanyName', nullable: true }),
133
- __metadata("design:type", String)
134
- ], UserActivationMetric.prototype, "enrichmentCompanyName", void 0);
135
- __decorate([
136
- Column('text', { name: 'enrichmentCompanyRevenue', nullable: true }),
137
- __metadata("design:type", String)
138
- ], UserActivationMetric.prototype, "enrichmentCompanyRevenue", void 0);
139
- __decorate([
140
- Column('text', { name: 'enrichmentPrivateDomain', nullable: true }),
141
- __metadata("design:type", String)
142
- ], UserActivationMetric.prototype, "enrichmentPrivateDomain", void 0);
143
- __decorate([
144
- Column('text', { name: 'enrichmentPublicTicker', nullable: true }),
145
- __metadata("design:type", String)
146
- ], UserActivationMetric.prototype, "enrichmentPublicTicker", void 0);
147
- __decorate([
148
- Column('text', { name: 'enrichmentRole', nullable: true }),
149
- __metadata("design:type", String)
150
- ], UserActivationMetric.prototype, "enrichmentRole", void 0);
151
- __decorate([
152
- Column('text', { name: 'enrichmentTags', nullable: true }),
153
- __metadata("design:type", String)
154
- ], UserActivationMetric.prototype, "enrichmentTags", void 0);
155
- __decorate([
156
- Column('text', { name: 'jenrichmentTitle', nullable: true }),
157
- __metadata("design:type", String)
158
- ], UserActivationMetric.prototype, "jenrichmentTitle", void 0);
159
- __decorate([
160
- Column('text', { name: 'enrichmentVerifiedEmployment', nullable: true }),
161
- __metadata("design:type", String)
162
- ], UserActivationMetric.prototype, "enrichmentVerifiedEmployment", void 0);
163
- UserActivationMetric = __decorate([
164
- Index('ixuUserActivationMetricUserId', ['userId'], { unique: true }),
165
- Entity('userActivationMetric', { schema: 'nova' })
166
- ], UserActivationMetric);
167
- export { UserActivationMetric };