@justair/justair-library 4.8.40 → 4.8.41

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.40",
3
+ "version": "4.8.41",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -65,7 +65,6 @@ import {
65
65
  sampleSiteAuditSchema,
66
66
  SampleSiteAudit,
67
67
  sampleParametersEnum,
68
- sampleParameterReferenceConcentrations,
69
68
  } from "./models/sampleSites.js";
70
69
 
71
70
  // Samples related imports
@@ -74,6 +73,7 @@ import {
74
73
  Samples,
75
74
  samplesAuditSchema,
76
75
  SamplesAudit,
76
+ sampleParameterReferenceConcentrations,
77
77
  } from "./models/samples.js";
78
78
 
79
79
  export function createLoggerInstance({ DATADOG_API_KEY, APPLICATION_NAME }) {
@@ -139,10 +139,10 @@ export {
139
139
  sampleSiteAuditSchema,
140
140
  SampleSiteAudit,
141
141
  sampleParametersEnum,
142
- sampleParameterReferenceConcentrations,
143
142
  // Samples related exports
144
143
  samplesSchema,
145
144
  Samples,
146
145
  samplesAuditSchema,
147
146
  SamplesAudit,
147
+ sampleParameterReferenceConcentrations,
148
148
  };
@@ -1,5 +1,21 @@
1
1
  import mongoose from "mongoose";
2
2
 
3
+ // EPA IRIS chronic inhalation reference concentrations (µg/m³)
4
+ // null = no established inhalation RfC
5
+ // Moved here from sampleSites.js because reference concentrations are directly related to sample validation and comparison logic, not site metadata. Centralizing them in the samples model improves maintainability and keeps sample-related constants together.
6
+ const sampleParameterReferenceConcentrations = {
7
+ C6H6: 30,
8
+ PB: 0,
9
+ AS: 0.03,
10
+ CD: 0.01,
11
+ CR: 0.1,
12
+ NI: null,
13
+ BA: null,
14
+ FE: null,
15
+ CU: null,
16
+ ZN: null,
17
+ };
18
+
3
19
  // Samples Audit Schema
4
20
  const samplesAuditSchema = mongoose.Schema(
5
21
  {
@@ -162,4 +178,4 @@ samplesSchema.pre("updateMany", async function () {
162
178
 
163
179
  // Create the SampleSites model
164
180
  const Samples = mongoose.model("Samples", samplesSchema);
165
- export { samplesSchema, Samples, SamplesAudit, samplesAuditSchema };
181
+ export { samplesSchema, Samples, SamplesAudit, samplesAuditSchema, sampleParameterReferenceConcentrations };