@htilabs/platform-common-models 0.3.0-beta.5 → 0.4.0-beta.1
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 +634 -468
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +570 -505
- package/dist/cvcs/index.d.ts +570 -505
- package/dist/cvcs/index.js +634 -467
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +814 -644
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +179 -179
- package/dist/index.d.ts +179 -179
- package/dist/index.js +814 -642
- package/dist/index.js.map +1 -1
- package/dist/models/index.cjs +6 -5
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.js +6 -5
- package/dist/models/index.js.map +1 -1
- package/dist/schemas/index.cjs +4 -3
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +4 -3
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/index.cjs +6 -5
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +6 -5
- package/dist/services/index.js.map +1 -1
- package/dist/validation/index.cjs +5 -12
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +32 -31
- package/dist/validation/index.d.ts +32 -31
- package/dist/validation/index.js +5 -12
- package/dist/validation/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +7 -11
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -8
- package/src/__tests__/cvc-structural.test.ts +1 -2
- package/src/cvcs/index.ts +5 -6
- package/src/cvcs/serviceCategories.v1.0.0.json +560 -430
- package/src/cvcs/serviceMechanisms.v1.0.0.json +45 -5
- package/src/cvcs/serviceStates.v1.0.0.json +58 -18
- package/src/generated/cvc-enums.ts +177 -179
- package/src/models/cvcEntryModel.ts +1 -1
- package/src/models/cvcRegistryModel.ts +1 -1
- package/src/schemas/cvcEntry.ts +3 -2
- package/src/schemas/cvcRegistry.ts +3 -2
- package/src/validation/cvc.ts +38 -55
- package/src/cvcs/missingness.v1.0.0.json +0 -50
package/src/cvcs/index.ts
CHANGED
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
* consumers (Thread, PAVE, tests) that just need the data.
|
|
11
11
|
*
|
|
12
12
|
* Naming convention: `<camelCaseDomain>Sot`. Each constant is the raw envelope
|
|
13
|
-
* (`{ domain, name, version,
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* (`{ domain, name, version, levels, entries }`) — validate it with
|
|
14
|
+
* `CvcEnvelopeSchema` from `../validation/cvc.ts` before trusting the shape,
|
|
15
|
+
* since these JSON files are the source of truth and the import skips runtime
|
|
16
|
+
* validation. Missingness entries live inside each domain's own entry list as
|
|
17
|
+
* of format v2 (segment 1 uses the Notion-aligned domain prefix).
|
|
17
18
|
*
|
|
18
19
|
* See locked spec §2 (envelope shape) and §9.2 (entry shape).
|
|
19
20
|
*/
|
|
@@ -21,11 +22,9 @@
|
|
|
21
22
|
import serviceCategoriesSot from "./serviceCategories.v1.0.0.json" with { type: "json" };
|
|
22
23
|
import serviceStatesSot from "./serviceStates.v1.0.0.json" with { type: "json" };
|
|
23
24
|
import serviceMechanismsSot from "./serviceMechanisms.v1.0.0.json" with { type: "json" };
|
|
24
|
-
import missingnessSot from "./missingness.v1.0.0.json" with { type: "json" };
|
|
25
25
|
|
|
26
26
|
export {
|
|
27
27
|
serviceCategoriesSot,
|
|
28
28
|
serviceStatesSot,
|
|
29
29
|
serviceMechanismsSot,
|
|
30
|
-
missingnessSot,
|
|
31
30
|
};
|