@htilabs/platform-common-models 0.19.0 → 0.20.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.
Files changed (50) hide show
  1. package/dist/cvcs/index.cjs +4769 -643
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +5036 -606
  4. package/dist/cvcs/index.d.ts +5036 -606
  5. package/dist/cvcs/index.js +4769 -643
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/enums/index.cjs +74 -1
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.cts +77 -4
  10. package/dist/enums/index.d.ts +77 -4
  11. package/dist/enums/index.js +74 -1
  12. package/dist/enums/index.js.map +1 -1
  13. package/dist/index.cjs +5199 -588
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +1 -0
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.js +5189 -588
  18. package/dist/index.js.map +1 -1
  19. package/dist/information-scope/index.cjs +440 -0
  20. package/dist/information-scope/index.cjs.map +1 -0
  21. package/dist/information-scope/index.d.cts +313 -0
  22. package/dist/information-scope/index.d.ts +313 -0
  23. package/dist/information-scope/index.js +404 -0
  24. package/dist/information-scope/index.js.map +1 -0
  25. package/dist/services/index.cjs +414 -2
  26. package/dist/services/index.cjs.map +1 -1
  27. package/dist/services/index.d.cts +1 -0
  28. package/dist/services/index.d.ts +1 -0
  29. package/dist/services/index.js +403 -1
  30. package/dist/services/index.js.map +1 -1
  31. package/package.json +32 -26
  32. package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
  33. package/src/__tests__/core-information-scope-invariant.test.ts +709 -456
  34. package/src/__tests__/cvc-sot-snapshot.test.ts +16 -17
  35. package/src/__tests__/cvc-structural.test.ts +2 -2
  36. package/src/__tests__/location-type-routing-invariant.test.ts +25 -8
  37. package/src/cvcs/coreInformationScope.v2.0.0.json +5396 -0
  38. package/src/cvcs/index.ts +2 -2
  39. package/src/cvcs/roiScope.v1.3.0.json +360 -0
  40. package/src/generated/cvc-enums.ts +77 -4
  41. package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.migrations.csv +106 -0
  42. package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.rows.csv +117 -0
  43. package/src/services/__tests__/fixtures/infoscope-v4/loadInfoscopeV4Fixtures.ts +116 -0
  44. package/src/services/__tests__/informationScopeResolver.test.ts +964 -0
  45. package/src/services/index.ts +10 -3
  46. package/src/services/informationScope.ts +10 -0
  47. package/src/services/informationScopeResolver.ts +672 -0
  48. package/src/services/informationScopeSot.ts +161 -0
  49. package/src/cvcs/coreInformationScope.v1.1.0.json +0 -1290
  50. package/src/cvcs/roiScope.v1.2.0.json +0 -340
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * @htilabs/platform-common-models — Services
3
3
  *
4
- * Runtime services that operate on the platform models. Currently houses
5
- * the CVC registry runtime API; future services (form resolution, etc.)
6
- * should follow the same export pattern.
4
+ * Runtime services that operate on the platform models. Houses the CVC
5
+ * registry runtime API (mongoose-backed: importing this barrel loads the
6
+ * model factories) and the pure CVC-236 v4 information-scope resolver (also
7
+ * published mongoose-free at `/information-scope`). Future services (form
8
+ * resolution, etc.) should follow the same export pattern.
7
9
  */
8
10
 
9
11
  export {
@@ -19,3 +21,8 @@ export {
19
21
  type RegistryLoader,
20
22
  type EntryLoader,
21
23
  } from "./cvcRegistryService.js";
24
+
25
+ // CVC-236 v4 information-scope resolver + SOT binding. The module itself is
26
+ // pure (no mongoose); browser consumers import it from the
27
+ // `@htilabs/platform-common-models/information-scope` subpath instead.
28
+ export * from "./informationScope.js";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @htilabs/platform-common-models/information-scope
3
+ *
4
+ * Browser-safe entry for the CVC-236 v4 information-scope resolver and its
5
+ * SOT binding: pure TypeScript, no mongoose, no I/O. Also re-exported from
6
+ * `./services` and the package root (which load mongoose-backed services).
7
+ */
8
+
9
+ export * from "./informationScopeResolver.js";
10
+ export * from "./informationScopeSot.js";