@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.
Files changed (45) hide show
  1. package/dist/cvcs/index.cjs +634 -468
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +570 -505
  4. package/dist/cvcs/index.d.ts +570 -505
  5. package/dist/cvcs/index.js +634 -467
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/index.cjs +814 -644
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +179 -179
  10. package/dist/index.d.ts +179 -179
  11. package/dist/index.js +814 -642
  12. package/dist/index.js.map +1 -1
  13. package/dist/models/index.cjs +6 -5
  14. package/dist/models/index.cjs.map +1 -1
  15. package/dist/models/index.js +6 -5
  16. package/dist/models/index.js.map +1 -1
  17. package/dist/schemas/index.cjs +4 -3
  18. package/dist/schemas/index.cjs.map +1 -1
  19. package/dist/schemas/index.js +4 -3
  20. package/dist/schemas/index.js.map +1 -1
  21. package/dist/services/index.cjs +6 -5
  22. package/dist/services/index.cjs.map +1 -1
  23. package/dist/services/index.js +6 -5
  24. package/dist/services/index.js.map +1 -1
  25. package/dist/validation/index.cjs +5 -12
  26. package/dist/validation/index.cjs.map +1 -1
  27. package/dist/validation/index.d.cts +32 -31
  28. package/dist/validation/index.d.ts +32 -31
  29. package/dist/validation/index.js +5 -12
  30. package/dist/validation/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/__tests__/__snapshots__/cvc-sot.snap +7 -11
  33. package/src/__tests__/cvc-sot-snapshot.test.ts +8 -8
  34. package/src/__tests__/cvc-structural.test.ts +1 -2
  35. package/src/cvcs/index.ts +5 -6
  36. package/src/cvcs/serviceCategories.v1.0.0.json +560 -430
  37. package/src/cvcs/serviceMechanisms.v1.0.0.json +45 -5
  38. package/src/cvcs/serviceStates.v1.0.0.json +58 -18
  39. package/src/generated/cvc-enums.ts +177 -179
  40. package/src/models/cvcEntryModel.ts +1 -1
  41. package/src/models/cvcRegistryModel.ts +1 -1
  42. package/src/schemas/cvcEntry.ts +3 -2
  43. package/src/schemas/cvcRegistry.ts +3 -2
  44. package/src/validation/cvc.ts +38 -55
  45. 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, missingness?, levels, entries }`) — validate it
14
- * with `CvcEnvelopeSchema` from `../validation/cvc.ts` before trusting the
15
- * shape, since these JSON files are the source of truth and the import skips
16
- * runtime validation.
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
  };