@justair/justair-library 7.8.0-alpha.499111d → 7.8.0-alpha.8f5fa06

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/README.md CHANGED
@@ -109,7 +109,7 @@ The following parameters were added to `PARAMETERS` and are now included in `par
109
109
 
110
110
  These are **not** interchangeable with the bare `T` / `RH` / `DP` ids, which are enclosure-internal readings used only by correction equations and fog detection. Never fall back from one kind to the other. See "Ambient vs internal met parameters" in `CLAUDE.md` before wiring these up.
111
111
 
112
- Processing-Engine writes these as of JA-3061 and CalculateAQIService averages them into `monitorProperties.metProperties` as of JA-3626. (This section previously said "no service writes them yet", which was true at 7.4.0 and is not now.)
112
+ Processing-Engine writes these as of JA-3061 and CalculateAQIService averages them into `monitorProperties.metProperties` as of JA-3626.
113
113
 
114
114
  ### New met parameter in 7.8.0
115
115
 
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/models/users.js"],"names":[],"mappings":"AA8FA,8BAuIE;AAiCF,wBAAmD;AA5PnD,iDAA4D;AAC5D,6CAAmD;AAUnD,4DA0BC"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/models/users.js"],"names":[],"mappings":"AA8FA,8BA2IE;AAiCF,wBAAmD;AAhQnD,iDAA4D;AAC5D,6CAAmD;AAUnD,4DA0BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justair/justair-library",
3
- "version": "7.8.0-alpha.499111d",
3
+ "version": "7.8.0-alpha.8f5fa06",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -1,7 +1,8 @@
1
1
  // Parameters measured by air quality sensors in real time, plus values derived from them.
2
2
  // These correspond to the values stored in Monitors.parameters and used across the platform.
3
- // Derived entries (DP, DP_AMB, HI) are computed by Processing-Engine during normalization rather
4
- // than read off a channel; each says so at its declaration.
3
+ // Most entries are read off a sensor channel. HI and DP are always derived during normalization,
4
+ // and DP_AMB is derived when the supplier does not report dew point. See "Ambient vs internal met
5
+ // parameters" in CLAUDE.md.
5
6
  export const PARAMETERS = {
6
7
  CO: {
7
8
  id: "CO",
@@ -99,7 +99,6 @@ describe("PARAMETERS", () => {
99
99
 
100
100
  test("has no _AMB counterpart", () => {
101
101
  expect(PARAMETERS.HI_AMB).toBeUndefined();
102
- expect(ambientKeys).not.toContain("HI_AMB");
103
102
  });
104
103
  });
105
104
  });
@@ -147,6 +147,10 @@ const usersSchema = mongoose.Schema(
147
147
  optInEmail: { type: Boolean, default: false },
148
148
  isActive: { type: Boolean, default: true },
149
149
  hasOnboarded: { type: Boolean, default: false },
150
+ // JA-2670: "this account no longer needs the V2 what's-new screen".
151
+ // No backfill, so old accounts have no value at all: filter with
152
+ // { hasSeenV2WhatsNew: { $ne: true } }, never { hasSeenV2WhatsNew: false }.
153
+ hasSeenV2WhatsNew: { type: Boolean, default: false },
150
154
  isSharingLocation: { type: Boolean, default: false },
151
155
  toolTips: Object,
152
156
  alertPreferenceLevel: {