@justair/justair-library 1.1.2 → 1.1.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justair/justair-library",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -6,6 +6,7 @@ import {monitorsSchema, Monitors} from './models/monitors.js';
6
6
  import {organizationsSchema, Organizations} from './models/organizations.js';
7
7
  import {referenceMonitorInfoSchema, ReferenceMonitorInfo} from './models/referenceMonitorInfo.js';
8
8
  import {usersSchema, Users} from './models/users.js';
9
+ import { eventsSchema, Events } from './models/events.js';
9
10
  import dbConfig from './config/db.js';
10
11
  import CustomLogger from './config/logger.js';
11
12
 
@@ -25,5 +26,6 @@ export {
25
26
  monitorsSchema, Monitors,
26
27
  organizationsSchema, Organizations,
27
28
  referenceMonitorInfoSchema, ReferenceMonitorInfo,
28
- usersSchema, Users
29
+ usersSchema, Users,
30
+ eventsSchema, Events
29
31
  };
@@ -7,10 +7,7 @@ const eventsSchema = mongoose.Schema(
7
7
  type: String,
8
8
  enum: ["AQI"] },
9
9
  values: Object,
10
- alertLevel:{
11
- type: String,
12
- enum: ["Good","Moderate", "Unhealthy for SG", "Unhealthy", "Very Unhealthy", "Hazardous"]
13
- }
10
+ alertLevels: Object
14
11
  },
15
12
  {
16
13
  timestamps: true,
File without changes