@htilabs/platform-common-models 0.17.0 → 0.19.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/agency-BHv54o79.d.ts +484 -0
- package/dist/agency-Ca4pCOOf.d.ts +342 -0
- package/dist/agency-DYCv839V.d.cts +342 -0
- package/dist/agency-Djp57S71.d.cts +484 -0
- package/dist/constants/index.cjs +952 -0
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +3 -1
- package/dist/constants/index.d.ts +3 -1
- package/dist/constants/index.js +920 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-BCj1OWqL.d.cts} +44 -44
- package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-BCj1OWqL.d.ts} +44 -44
- package/dist/cvcs/index.cjs +1078 -1026
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +1057 -1004
- package/dist/cvcs/index.d.ts +1057 -1004
- package/dist/cvcs/index.js +1069 -1017
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +143 -142
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +145 -144
- package/dist/enums/index.d.ts +145 -144
- package/dist/enums/index.js +143 -142
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-qreOzXYS.d.cts → index-CoVr1jIV.d.cts} +1 -1
- package/dist/{index-4DiJrn7y.d.ts → index-I-DiX9eQ.d.ts} +1 -1
- package/dist/index.cjs +2762 -2185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +2708 -2184
- package/dist/index.js.map +1 -1
- package/dist/models/index.cjs +1 -1
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/org-type-BYQb9Qzq.d.ts +366 -0
- package/dist/org-type-D_FG4KdN.d.cts +366 -0
- package/dist/{platform-auth-CrF5U_JH.d.cts → platform-auth-CvAYFVhK.d.cts} +39 -0
- package/dist/{platform-auth-CrF5U_JH.d.ts → platform-auth-CvAYFVhK.d.ts} +39 -0
- package/dist/schemas/index.cjs +978 -3
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +38 -35
- package/dist/schemas/index.d.ts +38 -35
- package/dist/schemas/index.js +963 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.cjs +894 -2
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +5 -1
- package/dist/validation/index.d.ts +5 -1
- package/dist/validation/index.js +884 -1
- package/dist/validation/index.js.map +1 -1
- package/package.json +26 -27
- package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
- package/src/__tests__/cvc-sot-snapshot.test.ts +6 -6
- package/src/__tests__/cvc-structural.test.ts +3 -3
- package/src/__tests__/org-type-contract.test.ts +1353 -0
- package/src/__tests__/referral-entity-category-canon.test.ts +255 -81
- package/src/constants/ic.ts +45 -0
- package/src/constants/index.ts +1 -0
- package/src/constants/org-type.ts +703 -0
- package/src/cvcs/index.ts +2 -2
- package/src/cvcs/{referralEntityCategory.v1.1.0.json → referralEntityCategory.v1.2.0.json} +111 -59
- package/src/cvcs/{serviceCategories.v1.0.0.json → serviceCategories.v1.2.0.json} +955 -955
- package/src/generated/cvc-enums.ts +145 -144
- package/src/index.ts +23 -0
- package/src/schemas/agency.ts +481 -0
- package/src/schemas/cvcRegistry.ts +1 -1
- package/src/schemas/index.ts +24 -0
- package/src/services/__tests__/cvcRegistryService.test.ts +11 -11
- package/src/validation/agency.ts +119 -0
- package/src/validation/index.ts +1 -0
- package/dist/team-C4LJ5Tex.d.cts +0 -333
- package/dist/team-C4LJ5Tex.d.ts +0 -333
|
@@ -66,7 +66,7 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
66
66
|
// for the Thread th-epqet.3 7-bucket lifecycle = 17.
|
|
67
67
|
{ file: "serviceStates.v1.1.0.json", domain: "service_states", expectedCount: 17 },
|
|
68
68
|
// Spec §8.1 — "Entries: 147" + 4 missingness = 151
|
|
69
|
-
{ file: "serviceCategories.v1.
|
|
69
|
+
{ file: "serviceCategories.v1.2.0.json", domain: "service_categories", expectedCount: 151 },
|
|
70
70
|
// CVC-69 v1.1.0 (canon re-mirror, ADDITIVE) — 4 group parents + 18 canon
|
|
71
71
|
// roles (13 Level 1 + 5 Level-2 sub-items) + 5 superseded v1.0.0 roles kept
|
|
72
72
|
// read-only (`deprecated`) + 4 missingness = 31. See
|
|
@@ -375,15 +375,15 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
375
375
|
domain: "location_type",
|
|
376
376
|
expectedCount: 17,
|
|
377
377
|
},
|
|
378
|
-
// CVC-48 v1.1.0 (canon v1.3 re-mirror, ADDITIVE) — v1.0.0's 43 +
|
|
378
|
+
// CVC-48 v1.1.0 (canon v1.3 re-mirror, ADDITIVE) — v1.0.0's 43 + 4 canon
|
|
379
379
|
// leaves (Adult Protective Services, School / academic institution, Legal
|
|
380
|
-
// services provider
|
|
381
|
-
//
|
|
380
|
+
// services provider, and since 0.18.0 Hotline at 048-006-003 with its two
|
|
381
|
+
// children re-parented) = 47: all 46 canon rows + missingness_root. See
|
|
382
382
|
// referral-entity-category-canon.test.ts.
|
|
383
383
|
{
|
|
384
|
-
file: "referralEntityCategory.v1.
|
|
384
|
+
file: "referralEntityCategory.v1.2.0.json",
|
|
385
385
|
domain: "referral_entity_category",
|
|
386
|
-
expectedCount:
|
|
386
|
+
expectedCount: 47,
|
|
387
387
|
},
|
|
388
388
|
// CVC-171 — 5 L1 type groups + 30 L2 source codes + 1 additive L1
|
|
389
389
|
// `victim_compensation` group leaf (171-006) + 5 missingness = 41.
|
|
@@ -50,7 +50,7 @@ interface SotFile {
|
|
|
50
50
|
const SOT_FILES: readonly SotFile[] = [
|
|
51
51
|
{ file: "serviceMechanisms.v1.0.0.json", expectedDomain: "service_mechanisms" },
|
|
52
52
|
{ file: "serviceStates.v1.1.0.json", expectedDomain: "service_states" },
|
|
53
|
-
{ file: "serviceCategories.v1.
|
|
53
|
+
{ file: "serviceCategories.v1.2.0.json", expectedDomain: "service_categories" },
|
|
54
54
|
{ file: "incidentParticipationRoles.v1.1.0.json", expectedDomain: "incident_participation_roles" },
|
|
55
55
|
{ file: "incidentInvolvementRoles.v1.0.0.json", expectedDomain: "incident_involvement_roles" },
|
|
56
56
|
{ file: "raceEthnicity.v1.0.0.json", expectedDomain: "race_ethnicity" },
|
|
@@ -89,7 +89,7 @@ const SOT_FILES: readonly SotFile[] = [
|
|
|
89
89
|
{ file: "personRelationships.v1.0.0.json", expectedDomain: "person_relationships" },
|
|
90
90
|
{ file: "employmentStatus.v1.0.0.json", expectedDomain: "employment_status" },
|
|
91
91
|
{ file: "locationType.v1.0.0.json", expectedDomain: "location_type" },
|
|
92
|
-
{ file: "referralEntityCategory.v1.
|
|
92
|
+
{ file: "referralEntityCategory.v1.2.0.json", expectedDomain: "referral_entity_category" },
|
|
93
93
|
{ file: "incomeBenefitsSources.v1.1.0.json", expectedDomain: "income_benefits_sources" },
|
|
94
94
|
{ file: "enrollmentApplicationStatus.v1.0.0.json", expectedDomain: "enrollment_application_status" },
|
|
95
95
|
{ file: "administeringJurisdiction.v1.0.0.json", expectedDomain: "administering_jurisdiction" },
|
|
@@ -320,7 +320,7 @@ describe("CVC structural invariants (locked spec §4)", () => {
|
|
|
320
320
|
// Guard against a future regression where CvcEntrySchema stops passing
|
|
321
321
|
// domain-specific fields through. Without this, C6 would silently pass
|
|
322
322
|
// on an empty input.
|
|
323
|
-
const raw = loadSot("serviceCategories.v1.
|
|
323
|
+
const raw = loadSot("serviceCategories.v1.2.0.json");
|
|
324
324
|
const envelope = CvcEnvelopeSchema.parse(raw);
|
|
325
325
|
const withRelevant = envelope.entries.filter((e) => {
|
|
326
326
|
const field = (e as unknown as Record<string, unknown>)[
|