@justair/justair-library 7.14.0-alpha.dd3a492 → 7.14.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.
@@ -21,9 +21,11 @@ export const SUPPLIER_DISPLAY_NAMES: Readonly<{
21
21
  hobolink: "HOBOlink";
22
22
  kunak: "Kunak";
23
23
  metOne: "Met One";
24
+ oizom: "Oizom";
24
25
  "purple air": "PurpleAir";
25
26
  "quant aq": "QuantAQ";
26
27
  "reference monitor": "Reference Monitors";
27
28
  sensit: "SENSIT";
29
+ tisch: "Tisch";
28
30
  }>;
29
31
  //# sourceMappingURL=suppliers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"suppliers.d.ts","sourceRoot":"","sources":["../../src/constants/suppliers.js"],"names":[],"mappings":"AAgDA;;;;;;GAMG;AACH,iDAHW,MAAM,GAAG,IAAI,GAAG,SAAS,GACvB,MAAM,GAAG,IAAI,GAAG,SAAS,CASrC;AA5CD;;;;;;;;;;;;;;;;;;;GAmBG"}
1
+ {"version":3,"file":"suppliers.d.ts","sourceRoot":"","sources":["../../src/constants/suppliers.js"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,iDAHW,MAAM,GAAG,IAAI,GAAG,SAAS,GACvB,MAAM,GAAG,IAAI,GAAG,SAAS,CASrC;AA9CD;;;;;;;;;;;;;;;;;;;;;GAqBG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justair/justair-library",
3
- "version": "7.14.0-alpha.dd3a492",
3
+ "version": "7.14.0",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -2,15 +2,8 @@
2
2
  // Centralized Constants Confluence page.
3
3
  //
4
4
  // Keys are the values actually stored in Monitors.monitorSupplier, NOT a new
5
- // vocabulary. One deliberate deviation from the Confluence table: it lists the
6
- // system-facing AirSense value as "airsense", but the schema enum and every
7
- // stored document use "airsence" (Processing-Engine switches on it too), so the
8
- // key here is "airsence". Keying on the Confluence spelling would leave every
9
- // real AirSense monitor unmapped.
10
- //
11
- // airThings is not on the Confluence page; its label was chosen during
12
- // JA-3220. Stored values with no agreed display name ("earthview",
13
- // "aq mesh", "oizom", "tisch") are intentionally absent;
5
+ // vocabulary. The map matches the Confluence table row for row. Stored values
6
+ // with no row there ("earthview", "aq mesh") are intentionally absent;
14
7
  // getSupplierDisplayName falls back to the raw value for them.
15
8
  //
16
9
  // Display labels only. Never persist or compare against these strings.
@@ -31,10 +24,12 @@ export const SUPPLIER_DISPLAY_NAMES = Object.freeze({
31
24
  hobolink: "HOBOlink",
32
25
  kunak: "Kunak",
33
26
  metOne: "Met One",
27
+ oizom: "Oizom",
34
28
  "purple air": "PurpleAir",
35
29
  "quant aq": "QuantAQ",
36
30
  "reference monitor": "Reference Monitors",
37
31
  sensit: "SENSIT",
32
+ tisch: "Tisch",
38
33
  });
39
34
 
40
35
  // Case-insensitive index, so callers holding a lowercased value (the V2
@@ -13,7 +13,7 @@ test('barrel and main entry export the supplier constants', () => {
13
13
  expect(library.getSupplierDisplayName).toBe(getSupplierDisplayName);
14
14
  });
15
15
 
16
- test('SUPPLIER_DISPLAY_NAMES pins every display name', () => {
16
+ test('SUPPLIER_DISPLAY_NAMES matches the Confluence Suppliers table row for row', () => {
17
17
  expect(Object.isFrozen(SUPPLIER_DISPLAY_NAMES)).toBe(true);
18
18
  expect(SUPPLIER_DISPLAY_NAMES).toEqual({
19
19
  aeroqual: 'Aeroqual',
@@ -30,10 +30,12 @@ test('SUPPLIER_DISPLAY_NAMES pins every display name', () => {
30
30
  hobolink: 'HOBOlink',
31
31
  kunak: 'Kunak',
32
32
  metOne: 'Met One',
33
+ oizom: 'Oizom',
33
34
  'purple air': 'PurpleAir',
34
35
  'quant aq': 'QuantAQ',
35
36
  'reference monitor': 'Reference Monitors',
36
37
  sensit: 'SENSIT',
38
+ tisch: 'Tisch',
37
39
  });
38
40
  });
39
41