@spytecgps/nova-orm 1.3.11-rc2 → 1.3.11-rc3

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.
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var logger = require('./logger-7bbP0aeT.js');
4
+
5
+ class ConsoleLogger {
6
+ fatal = (msgOrObj, msg, ...args) => {
7
+ this.log(logger.LogLevel.FATAL, msgOrObj, msg, ...args);
8
+ };
9
+ error = (msgOrObj, msg, ...args) => {
10
+ this.log(logger.LogLevel.FATAL, msgOrObj, msg, ...args);
11
+ };
12
+ warn = (msgOrObj, msg, ...args) => {
13
+ this.log(logger.LogLevel.WARN, msgOrObj, msg, ...args);
14
+ };
15
+ info = (msgOrObj, msg, ...args) => {
16
+ this.log(logger.LogLevel.INFO, msgOrObj, msg, ...args);
17
+ };
18
+ debug = (msgOrObj, msg, ...args) => {
19
+ this.log(logger.LogLevel.DEBUG, msgOrObj, msg, ...args);
20
+ };
21
+ trace = (msgOrObj, msg, ...args) => {
22
+ this.log(logger.LogLevel.TRACE, msgOrObj, msg, ...args);
23
+ };
24
+ log = (level, msgOrObj, msg, ...args) => {
25
+ switch (level) {
26
+ case logger.LogLevel.FATAL:
27
+ case logger.LogLevel.ERROR:
28
+ if (typeof msgOrObj === 'string') {
29
+ console.error(msgOrObj, ...args);
30
+ }
31
+ else {
32
+ console.error(msg, msgOrObj, ...args);
33
+ }
34
+ break;
35
+ default:
36
+ if (typeof msgOrObj === 'string') {
37
+ console.log(msgOrObj, ...args);
38
+ }
39
+ else {
40
+ console.log(msg, msgOrObj, ...args);
41
+ }
42
+ break;
43
+ }
44
+ };
45
+ }
46
+
47
+ exports.ConsoleLogger = ConsoleLogger;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-BHDlCHC_.js');
4
+ require('typeorm');
5
+ require('./enums-vPEcKjNp.js');
6
+ require('uuid');
7
+ require('./logger-7bbP0aeT.js');
8
+
9
+
10
+
11
+ exports.Entities = index.Entities;
@@ -0,0 +1,134 @@
1
+ 'use strict';
2
+
3
+ exports.HapnSecurityRole = void 0;
4
+ (function (HapnSecurityRole) {
5
+ HapnSecurityRole[HapnSecurityRole["Admin"] = 1] = "Admin";
6
+ HapnSecurityRole[HapnSecurityRole["Collaborator"] = 2] = "Collaborator";
7
+ HapnSecurityRole[HapnSecurityRole["Owner"] = 3] = "Owner";
8
+ })(exports.HapnSecurityRole || (exports.HapnSecurityRole = {}));
9
+ exports.DeviceStatus = void 0;
10
+ (function (DeviceStatus) {
11
+ DeviceStatus["Active"] = "A";
12
+ DeviceStatus["Deleted"] = "D";
13
+ })(exports.DeviceStatus || (exports.DeviceStatus = {}));
14
+ exports.BoundaryStatus = void 0;
15
+ (function (BoundaryStatus) {
16
+ BoundaryStatus[BoundaryStatus["Active"] = 1] = "Active";
17
+ BoundaryStatus[BoundaryStatus["Inactive"] = 2] = "Inactive";
18
+ BoundaryStatus[BoundaryStatus["Deleted"] = 3] = "Deleted";
19
+ })(exports.BoundaryStatus || (exports.BoundaryStatus = {}));
20
+ exports.UserStatus = void 0;
21
+ (function (UserStatus) {
22
+ UserStatus["Active"] = "A";
23
+ UserStatus["Deleted"] = "D";
24
+ })(exports.UserStatus || (exports.UserStatus = {}));
25
+ exports.UserInvitationStatus = void 0;
26
+ (function (UserInvitationStatus) {
27
+ UserInvitationStatus[UserInvitationStatus["Pending"] = 1] = "Pending";
28
+ UserInvitationStatus[UserInvitationStatus["Redeemed"] = 2] = "Redeemed";
29
+ UserInvitationStatus[UserInvitationStatus["Canceled"] = 3] = "Canceled";
30
+ })(exports.UserInvitationStatus || (exports.UserInvitationStatus = {}));
31
+ exports.HapnClientType = void 0;
32
+ (function (HapnClientType) {
33
+ HapnClientType[HapnClientType["b2c"] = 1] = "b2c";
34
+ HapnClientType[HapnClientType["b2b"] = 2] = "b2b";
35
+ HapnClientType[HapnClientType["test"] = 3] = "test";
36
+ })(exports.HapnClientType || (exports.HapnClientType = {}));
37
+ var DeviceBehaviorType;
38
+ (function (DeviceBehaviorType) {
39
+ DeviceBehaviorType["ReportingFrequency"] = "ReportingFrequency";
40
+ DeviceBehaviorType["Advanced"] = "Advanced";
41
+ DeviceBehaviorType["Query"] = "Query";
42
+ DeviceBehaviorType["General"] = "General";
43
+ })(DeviceBehaviorType || (DeviceBehaviorType = {}));
44
+ var DeviceBehaviorStatus;
45
+ (function (DeviceBehaviorStatus) {
46
+ DeviceBehaviorStatus["Active"] = "active";
47
+ DeviceBehaviorStatus["Inactive"] = "inactive";
48
+ })(DeviceBehaviorStatus || (DeviceBehaviorStatus = {}));
49
+ var DeviceBehaviorTaskStatus;
50
+ (function (DeviceBehaviorTaskStatus) {
51
+ DeviceBehaviorTaskStatus["InProgress"] = "InProgress";
52
+ DeviceBehaviorTaskStatus["Completed"] = "Completed";
53
+ DeviceBehaviorTaskStatus["Canceled"] = "Canceled";
54
+ DeviceBehaviorTaskStatus["Failed"] = "Failed";
55
+ })(DeviceBehaviorTaskStatus || (DeviceBehaviorTaskStatus = {}));
56
+ exports.NotificationRecipientType = void 0;
57
+ (function (NotificationRecipientType) {
58
+ NotificationRecipientType[NotificationRecipientType["Email"] = 1] = "Email";
59
+ NotificationRecipientType[NotificationRecipientType["Phone"] = 2] = "Phone";
60
+ })(exports.NotificationRecipientType || (exports.NotificationRecipientType = {}));
61
+ var BlacklistType;
62
+ (function (BlacklistType) {
63
+ BlacklistType[BlacklistType["CreditCard"] = 1] = "CreditCard";
64
+ BlacklistType[BlacklistType["Email"] = 2] = "Email";
65
+ BlacklistType[BlacklistType["Address"] = 3] = "Address";
66
+ BlacklistType[BlacklistType["Ip"] = 4] = "Ip";
67
+ BlacklistType[BlacklistType["Imei"] = 5] = "Imei";
68
+ BlacklistType[BlacklistType["ClientId"] = 6] = "ClientId";
69
+ })(BlacklistType || (BlacklistType = {}));
70
+ var TripType;
71
+ (function (TripType) {
72
+ TripType[TripType["Trip"] = 1] = "Trip";
73
+ TripType[TripType["Stop"] = 2] = "Stop";
74
+ })(TripType || (TripType = {}));
75
+ var TripCompletionStatus;
76
+ (function (TripCompletionStatus) {
77
+ TripCompletionStatus[TripCompletionStatus["Current"] = 1] = "Current";
78
+ TripCompletionStatus[TripCompletionStatus["Completed"] = 2] = "Completed";
79
+ TripCompletionStatus[TripCompletionStatus["Deleted"] = 3] = "Deleted";
80
+ TripCompletionStatus[TripCompletionStatus["TempCurrent"] = 10] = "TempCurrent";
81
+ TripCompletionStatus[TripCompletionStatus["TempCompleted"] = 20] = "TempCompleted";
82
+ })(TripCompletionStatus || (TripCompletionStatus = {}));
83
+ exports.BoundaryEventType = void 0;
84
+ (function (BoundaryEventType) {
85
+ BoundaryEventType["Enter"] = "boundaryEnter";
86
+ BoundaryEventType["Exit"] = "boundaryExit";
87
+ })(exports.BoundaryEventType || (exports.BoundaryEventType = {}));
88
+ exports.PromotionType = void 0;
89
+ (function (PromotionType) {
90
+ PromotionType["FreeService"] = "freeService";
91
+ PromotionType["Discount"] = "discount";
92
+ })(exports.PromotionType || (exports.PromotionType = {}));
93
+ var DeviceBLEMeshStatus;
94
+ (function (DeviceBLEMeshStatus) {
95
+ DeviceBLEMeshStatus["PendingSync"] = "pendingSync";
96
+ DeviceBLEMeshStatus["InProgress"] = "inProgress";
97
+ DeviceBLEMeshStatus["Synced"] = "synced";
98
+ })(DeviceBLEMeshStatus || (DeviceBLEMeshStatus = {}));
99
+ var DataExportType;
100
+ (function (DataExportType) {
101
+ DataExportType["Positions"] = "positions";
102
+ DataExportType["Alerts"] = "alerts";
103
+ DataExportType["Messages"] = "messages";
104
+ })(DataExportType || (DataExportType = {}));
105
+ var DataExportStatus;
106
+ (function (DataExportStatus) {
107
+ DataExportStatus["Started"] = "started";
108
+ DataExportStatus["Completed"] = "completed";
109
+ DataExportStatus["Failed"] = "failed";
110
+ })(DataExportStatus || (DataExportStatus = {}));
111
+
112
+ var enums = /*#__PURE__*/Object.freeze({
113
+ __proto__: null,
114
+ get BlacklistType () { return BlacklistType; },
115
+ get BoundaryEventType () { return exports.BoundaryEventType; },
116
+ get BoundaryStatus () { return exports.BoundaryStatus; },
117
+ get DataExportStatus () { return DataExportStatus; },
118
+ get DataExportType () { return DataExportType; },
119
+ get DeviceBLEMeshStatus () { return DeviceBLEMeshStatus; },
120
+ get DeviceBehaviorStatus () { return DeviceBehaviorStatus; },
121
+ get DeviceBehaviorTaskStatus () { return DeviceBehaviorTaskStatus; },
122
+ get DeviceBehaviorType () { return DeviceBehaviorType; },
123
+ get DeviceStatus () { return exports.DeviceStatus; },
124
+ get HapnClientType () { return exports.HapnClientType; },
125
+ get HapnSecurityRole () { return exports.HapnSecurityRole; },
126
+ get NotificationRecipientType () { return exports.NotificationRecipientType; },
127
+ get PromotionType () { return exports.PromotionType; },
128
+ get TripCompletionStatus () { return TripCompletionStatus; },
129
+ get TripType () { return TripType; },
130
+ get UserInvitationStatus () { return exports.UserInvitationStatus; },
131
+ get UserStatus () { return exports.UserStatus; }
132
+ });
133
+
134
+ exports.enums = enums;
package/dist/enums.js ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var enums = require('./enums-vPEcKjNp.js');
4
+
5
+
6
+
7
+ exports.Enums = enums.enums;