@justair/justair-library 4.8.29 → 4.8.31

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": "4.8.29",
3
+ "version": "4.8.31",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -67,6 +67,14 @@ import {
67
67
  sampleParametersEnum,
68
68
  } from "./models/sampleSites.js";
69
69
 
70
+ // Samples related imports
71
+ import {
72
+ samplesSchema,
73
+ Samples,
74
+ samplesAuditSchema,
75
+ SamplesAudit,
76
+ } from "./models/samples.js";
77
+
70
78
  export function createLoggerInstance({ DATADOG_API_KEY, APPLICATION_NAME }) {
71
79
  return new CustomLogger({ DATADOG_API_KEY, APPLICATION_NAME });
72
80
  }
@@ -130,4 +138,9 @@ export {
130
138
  sampleSiteAuditSchema,
131
139
  SampleSiteAudit,
132
140
  sampleParametersEnum,
141
+ // Samples related exports
142
+ samplesSchema,
143
+ Samples,
144
+ samplesAuditSchema,
145
+ SamplesAudit,
133
146
  };
@@ -213,6 +213,9 @@ const monitorsSchema = mongoose.Schema(
213
213
  },
214
214
  sponsor: { type: mongoose.Types.ObjectId, ref: "Organizations" },
215
215
  sponsorName: String,
216
+ // Sponsored By, Managed By (both optional strings for display purposes)
217
+ sponsoredBy: String,
218
+ managedBy: String,
216
219
  monitorLatitude: Number,
217
220
  monitorLongitude: Number,
218
221
  gpsLocation: {
@@ -234,7 +237,8 @@ const monitorsSchema = mongoose.Schema(
234
237
  latestAQI_PM2_5: Number,
235
238
  notes: [noteSchema],
236
239
  calculatedAverages: [Object],
237
- images: [String],
240
+ image: String,
241
+ images: [String], // deprecated as of 2/9/26
238
242
  isActive: { type: Boolean, default: true },
239
243
  parameterThresholds: Object,
240
244
  completionPercentageThresholds: Object,