@justair/justair-library 4.16.0-alpha.3f01f1c → 4.16.0

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":"monitors.d.ts","sourceRoot":"","sources":["../../src/models/monitors.js"],"names":[],"mappings":"AAiLA,iCA+HE;AA6IF,2BAA4D;AA9S5D,qCA4BE;AAGF,+BAAwE;AA7KxE,sCAsBE"}
1
+ {"version":3,"file":"monitors.d.ts","sourceRoot":"","sources":["../../src/models/monitors.js"],"names":[],"mappings":"AAiLA,iCA8HE;AA6IF,2BAA4D;AA7S5D,qCA4BE;AAGF,+BAAwE;AA7KxE,sCAsBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"sampleSites.d.ts","sourceRoot":"","sources":["../../src/models/sampleSites.js"],"names":[],"mappings":"AA8EA,oCAwDE;AA2JF,8BAAqE;AAzOrE,wCAgBE;AAGF,kCAAiF;AAvEjF,4CAWE"}
1
+ {"version":3,"file":"sampleSites.d.ts","sourceRoot":"","sources":["../../src/models/sampleSites.js"],"names":[],"mappings":"AA8EA,oCAuDE;AA2JF,8BAAqE;AAxOrE,wCAgBE;AAGF,kCAAiF;AAvEjF,4CAWE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justair/justair-library",
3
- "version": "4.16.0-alpha.3f01f1c",
3
+ "version": "4.16.0",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -292,7 +292,6 @@ const monitorsSchema = mongoose.Schema(
292
292
  siteId: {
293
293
  type: mongoose.Types.ObjectId,
294
294
  ref: "Sites",
295
- default: null,
296
295
  },
297
296
  // Optional Clarity node ID (1:1 relationship with Node-S sensor)
298
297
  nodeId: { type: String },
@@ -126,7 +126,6 @@ const sampleSitesSchema = mongoose.Schema(
126
126
  siteId: {
127
127
  type: mongoose.Types.ObjectId,
128
128
  ref: "Sites",
129
- default: null,
130
129
  },
131
130
  },
132
131
  {
@@ -8,12 +8,10 @@ const sitesSchema = mongoose.Schema(
8
8
  type: mongoose.Types.ObjectId,
9
9
  ref: "SampleSites",
10
10
  },
11
- monitorIds: [
12
- {
13
- type: mongoose.Types.ObjectId,
14
- ref: "Monitors",
15
- },
16
- ],
11
+ monitorIds: {
12
+ type: [{ type: mongoose.Types.ObjectId, ref: "Monitors" }],
13
+ default: undefined,
14
+ },
17
15
  sponsor: { type: mongoose.Types.ObjectId, ref: "Organizations" },
18
16
  location: {
19
17
  city: { type: String },
@@ -26,9 +24,11 @@ const sitesSchema = mongoose.Schema(
26
24
  type: {
27
25
  type: String,
28
26
  enum: ["Point"],
27
+ required: true,
29
28
  },
30
29
  coordinates: {
31
30
  type: [Number],
31
+ required: true,
32
32
  },
33
33
  },
34
34
  },