@justair/justair-library 4.15.0-alpha.bf7369d → 4.15.0-alpha.d287cce

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.
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/models/organizations.js"],"names":[],"mappings":"AAoGA,sCAsBE;AAyDF,gCAA2E"}
1
+ {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/models/organizations.js"],"names":[],"mappings":"AAyFA,sCAsBE;AAyDF,gCAA2E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justair/justair-library",
3
- "version": "4.15.0-alpha.bf7369d",
3
+ "version": "4.15.0-alpha.d287cce",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -61,17 +61,6 @@ const featureSchema = new Schema({
61
61
  },
62
62
  });
63
63
 
64
- const customAlertLevelSchema = new Schema(
65
- {
66
- parameter: { type: String },
67
- startAlertLevel: {
68
- type: String,
69
- enum: ["Good", "Moderate", "Unhealthy for SG", "Unhealthy", "Very Unhealthy", "Hazardous"],
70
- },
71
- },
72
- { _id: false }
73
- );
74
-
75
64
  const computeResetTime = (rateLimitType, baseTime = new Date()) => {
76
65
  const resetTime = new Date(baseTime);
77
66
 
@@ -108,7 +97,7 @@ const organizationsSchema = mongoose.Schema(
108
97
  orgCode: String,
109
98
  orgDescription: String,
110
99
  orgLogo: String,
111
- customAlertLevels: { type: [customAlertLevelSchema], default: [{ parameter: "AQI", startAlertLevel: "Unhealthy for SG" }] },
100
+ customAlertLevels: { type: [Object], default: [{ parameter: "AQI", startAlertLevel: "Unhealthy for SG" }] },
112
101
  connectedMonitors: [{ type: mongoose.Types.ObjectId, ref: "Monitors" }],
113
102
  communityMessages: [Object],
114
103
  weeklyReportData: [Object],