@htilabs/platform-common-models 0.19.0 → 0.21.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.
- package/dist/cvcs/index.cjs +4867 -639
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +5145 -609
- package/dist/cvcs/index.d.ts +5145 -609
- package/dist/cvcs/index.js +4867 -639
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +74 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +77 -4
- package/dist/enums/index.d.ts +77 -4
- package/dist/enums/index.js +74 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-I-DiX9eQ.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-CoVr1jIV.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +5382 -588
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5371 -588
- package/dist/index.js.map +1 -1
- package/dist/information-scope/index.cjs +521 -0
- package/dist/information-scope/index.cjs.map +1 -0
- package/dist/information-scope/index.d.cts +442 -0
- package/dist/information-scope/index.d.ts +442 -0
- package/dist/information-scope/index.js +484 -0
- package/dist/information-scope/index.js.map +1 -0
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/services/index.cjs +495 -2
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +483 -1
- package/dist/services/index.js.map +1 -1
- package/package.json +32 -26
- package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
- package/src/__tests__/core-information-scope-invariant.test.ts +835 -456
- package/src/__tests__/cvc-sot-snapshot.test.ts +17 -17
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/__tests__/location-type-routing-invariant.test.ts +25 -8
- package/src/cvcs/coreInformationScope.v2.1.0.json +5498 -0
- package/src/cvcs/index.ts +2 -2
- package/src/cvcs/roiScope.v1.4.0.json +360 -0
- package/src/generated/cvc-enums.ts +77 -4
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v3_placements.projection.csv +12 -0
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.migrations.csv +106 -0
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.rows.csv +117 -0
- package/src/services/__tests__/fixtures/infoscope-v4/loadInfoscopeV4Fixtures.ts +187 -0
- package/src/services/__tests__/informationScopeResolver.test.ts +1278 -0
- package/src/services/index.ts +10 -3
- package/src/services/informationScope.ts +10 -0
- package/src/services/informationScopeResolver.ts +879 -0
- package/src/services/informationScopeSot.ts +203 -0
- package/src/cvcs/coreInformationScope.v1.1.0.json +0 -1290
- package/src/cvcs/roiScope.v1.2.0.json +0 -340
- package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-0BIB9sen.d.cts} +8 -8
- package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-0BIB9sen.d.ts} +8 -8
package/src/services/index.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @htilabs/platform-common-models — Services
|
|
3
3
|
*
|
|
4
|
-
* Runtime services that operate on the platform models.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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";
|