@htilabs/platform-common-models 0.15.0 → 0.17.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 +68 -15
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +76 -20
- package/dist/cvcs/index.d.ts +76 -20
- package/dist/cvcs/index.js +68 -15
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +2 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +5 -4
- package/dist/enums/index.d.ts +5 -4
- package/dist/enums/index.js +2 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-C0J3f169.d.ts → index-4DiJrn7y.d.ts} +1 -1
- package/dist/{index-EPjPjR0z.d.cts → index-qreOzXYS.d.cts} +1 -1
- package/dist/index.cjs +70 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +70 -16
- package/dist/index.js.map +1 -1
- 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/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
- package/src/__tests__/core-functions-canon.test.ts +53 -0
- package/src/__tests__/core-information-scope-invariant.test.ts +94 -4
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -5
- package/src/__tests__/cvc-status-parser.test.ts +1 -1
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
- package/src/cvcs/index.ts +2 -2
- package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
- package/src/generated/cvc-enums.ts +5 -4
- package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-ctHTp2df.d.cts} +8 -8
- package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-ctHTp2df.d.ts} +8 -8
package/dist/cvcs/index.js
CHANGED
|
@@ -26391,12 +26391,12 @@ var riskCategory_v1_0_0_default = {
|
|
|
26391
26391
|
]
|
|
26392
26392
|
};
|
|
26393
26393
|
|
|
26394
|
-
// src/cvcs/coreFunctions.v1.
|
|
26395
|
-
var
|
|
26394
|
+
// src/cvcs/coreFunctions.v1.1.0.json
|
|
26395
|
+
var coreFunctions_v1_1_0_default = {
|
|
26396
26396
|
domain: "core_functions",
|
|
26397
26397
|
name: "Core Functions",
|
|
26398
|
-
version: "1.
|
|
26399
|
-
_status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition.",
|
|
26398
|
+
version: "1.1.0",
|
|
26399
|
+
_status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition. VERSION 1.1.0 (additive; ADR-CVC-0.8.13 Addendum 2026-10-05): APPENDS `note_open_departed_author` at 133-078 (added 2026-10-05 while building the Narrative notes Spec v2, rule 10; canon's own logic_notes mark the row as awaiting steward review (Crysta); canon `data/cvcs/core_functions.yaml` L68-93 @ prototype 9ef79748, unchanged at fed744f3, and the codebook_all.csv export). Default Off for Account Admin (MEM-ADM) only; bounds are not carried by this entry schema. Every 1.0.0 code and key is unchanged. Canon carries 112 functions; this SOT carries 78 \u2014 the other 34 canon rows are a separate absorb, not taken here.",
|
|
26400
26400
|
_source: "Notion CVC-133 core - functions (collection://3211ef14-abcd-8024-867d-000be4b35a79)",
|
|
26401
26401
|
levels: {
|
|
26402
26402
|
"0": "Unknown or Missing",
|
|
@@ -27135,6 +27135,15 @@ var coreFunctions_v1_0_0_default = {
|
|
|
27135
27135
|
parentCode: null,
|
|
27136
27136
|
childCodes: [],
|
|
27137
27137
|
definition: "Create, invite, deactivate, and manage user accounts within a member account or platform context. [Status: Defined; existing PAVE function. Platform: PLATFORM. User-relevant: no. Admin-relevant: yes. Category: Identity & access administration, Platform administration (HTI-only).]"
|
|
27138
|
+
},
|
|
27139
|
+
{
|
|
27140
|
+
code: "133-078-000-000-000-000-000",
|
|
27141
|
+
key: "note_open_departed_author",
|
|
27142
|
+
title: "Open a deactivated author's private notes",
|
|
27143
|
+
selectable: true,
|
|
27144
|
+
parentCode: null,
|
|
27145
|
+
childCodes: [],
|
|
27146
|
+
definition: `Move a deactivated author's "Private to me" notes to "Our account only", so the account can read notes whose author no longer has an account. The admin cannot read a note before opening it and cannot move it any further. [Status: Defined; new function. Platform: PAVE, THREAD. User-relevant: no. Admin-relevant: yes. Category: Account administration (member admin).]`
|
|
27138
27147
|
}
|
|
27139
27148
|
]
|
|
27140
27149
|
};
|
|
@@ -28567,13 +28576,55 @@ var coreInformationScope_v1_1_0_default = {
|
|
|
28567
28576
|
]
|
|
28568
28577
|
};
|
|
28569
28578
|
|
|
28570
|
-
// src/cvcs/roiScope.v1.
|
|
28571
|
-
var
|
|
28579
|
+
// src/cvcs/roiScope.v1.2.0.json
|
|
28580
|
+
var roiScope_v1_2_0_default = {
|
|
28572
28581
|
domain: "roi_scope",
|
|
28573
28582
|
name: "ROI Scope",
|
|
28574
|
-
version: "1.
|
|
28575
|
-
_status:
|
|
28576
|
-
_source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS",
|
|
28583
|
+
version: "1.2.0",
|
|
28584
|
+
_status: 'DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering. 0.8.13: COMPLETED against the canonical 27-item source. 0.8.12 shipped 15 of the canonical 27; the missing 12 are added here. Nothing PAVE shipped was invented \u2014 this was purely a gap. Canonical source: `HTI_SHARE_SCOPE_GROUPS` in HTI-LEADS-PAVE-Thread-prototype.html @ HEAD a596eb9 (7 groups x items = 27): identifying (5) + risk (4) + contact (3) + notes (3) + health_accommodation (6) + immigration_legal_status (5) + system (1). The GROUP axis (identifying / risk / contact / notes / health_accommodation / immigration_legal_status / system) is a separate presentation concern and is deliberately NOT modelled as hierarchy rows here \u2014 this CVC is the flat item vocabulary that an ROI authorizes. PENDING canonical Notion authoring + steward ratification. VERSION 1.2.0 supersedes 1.1.0 (co-bwc): `screen_notes` (983-012) and `background` (983-014) are RETIRED TOMBSTONES, matching CVC-236 `core_information_scope` v1.1.0 (retired 2026-10-05, Narrative notes, signed Spec v2 rule 5). Each keeps its published code (never reused), is `selectable: false` + `retired: true`, and includes nothing: a stored ROI that names one resolves to "retired", not "unknown". Not additive, hence the version (ADR-CVC-0.8.13 Addendum 2026-10-05; see `_supersedes`). This flat vocabulary is LEGACY: new units (e.g. `session_summary`, 236-005-004) are minted in CVC-236 only and are not mirrored here.',
|
|
28585
|
+
_source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS; v1.2.0 retirements: htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 9ef79748 retired_units (L467)",
|
|
28586
|
+
_supersedes: {
|
|
28587
|
+
version: "1.1.0",
|
|
28588
|
+
keyMap: {
|
|
28589
|
+
missingness_root: "missingness_root",
|
|
28590
|
+
unknown: "unknown",
|
|
28591
|
+
anonymous: "anonymous",
|
|
28592
|
+
data_not_collected: "data_not_collected",
|
|
28593
|
+
names: "names",
|
|
28594
|
+
dob: "dob",
|
|
28595
|
+
addresses: "addresses",
|
|
28596
|
+
additional_ids: "additional_ids",
|
|
28597
|
+
demographics: "demographics",
|
|
28598
|
+
screen_indicators: "screen_indicators",
|
|
28599
|
+
victimization: "victimization",
|
|
28600
|
+
ida_full: "ida_full",
|
|
28601
|
+
ida_consid: "ida_consid",
|
|
28602
|
+
contact_info: "contact_info",
|
|
28603
|
+
service_history: "service_history",
|
|
28604
|
+
screen_notes: "screen_notes",
|
|
28605
|
+
case_notes: "case_notes",
|
|
28606
|
+
background: "background",
|
|
28607
|
+
system_info: "system_info",
|
|
28608
|
+
contact_history: "contact_history",
|
|
28609
|
+
accommodation_needs: "accommodation_needs",
|
|
28610
|
+
disability_subtypes: "disability_subtypes",
|
|
28611
|
+
mental_health_status: "mental_health_status",
|
|
28612
|
+
substance_use_status: "substance_use_status",
|
|
28613
|
+
chronic_health_status: "chronic_health_status",
|
|
28614
|
+
hiv_status: "hiv_status",
|
|
28615
|
+
immigration_status: "immigration_status",
|
|
28616
|
+
uscis_alien_number: "uscis_alien_number",
|
|
28617
|
+
federal_protection_applications: "federal_protection_applications",
|
|
28618
|
+
tvap_enrollment: "tvap_enrollment",
|
|
28619
|
+
le_report_status: "le_report_status"
|
|
28620
|
+
},
|
|
28621
|
+
retiredCodes: [],
|
|
28622
|
+
notes: {
|
|
28623
|
+
summary: 'Every v1.1.0 key is still an entry in v1.2.0, at its v1.1.0 code, so `keyMap` is the identity and `retiredCodes` is empty: no code was withdrawn. Non-additive because 2 published items are now RETIRED tombstones (notes below), matching CVC-236 `core_information_scope` v1.1.0, which retired the same two keys; nothing was added. Before this version the package gave two answers to "is screen_notes offerable" (co-bwc). The file was named `roiScope.v1.0.0.json` while declaring version 1.1.0 (the 0.8.13 completion); the published version superseded here is the declared 1.1.0.',
|
|
28624
|
+
screen_notes: "v1.1.0 `screen_notes` was a selectable item. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. It stays at 983-012 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04).",
|
|
28625
|
+
background: "v1.1.0 `background` was a selectable item. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): Nothing ever captured it. It stays at 983-014 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04)."
|
|
28626
|
+
}
|
|
28627
|
+
},
|
|
28577
28628
|
levels: {
|
|
28578
28629
|
"0": "Unknown or Missing",
|
|
28579
28630
|
"1": "ROI scope item"
|
|
@@ -28722,10 +28773,11 @@ var roiScope_v1_0_0_default = {
|
|
|
28722
28773
|
code: "983-012-000-000-000-000-000",
|
|
28723
28774
|
key: "screen_notes",
|
|
28724
28775
|
title: "Screen notes",
|
|
28725
|
-
selectable:
|
|
28776
|
+
selectable: false,
|
|
28726
28777
|
parentCode: null,
|
|
28727
28778
|
childCodes: [],
|
|
28728
|
-
definition: "Narrative notes
|
|
28779
|
+
definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
|
|
28780
|
+
retired: true
|
|
28729
28781
|
},
|
|
28730
28782
|
{
|
|
28731
28783
|
code: "983-013-000-000-000-000-000",
|
|
@@ -28740,10 +28792,11 @@ var roiScope_v1_0_0_default = {
|
|
|
28740
28792
|
code: "983-014-000-000-000-000-000",
|
|
28741
28793
|
key: "background",
|
|
28742
28794
|
title: "Background information",
|
|
28743
|
-
selectable:
|
|
28795
|
+
selectable: false,
|
|
28744
28796
|
parentCode: null,
|
|
28745
28797
|
childCodes: [],
|
|
28746
|
-
definition: "
|
|
28798
|
+
definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. Nothing ever captured it. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
|
|
28799
|
+
retired: true
|
|
28747
28800
|
},
|
|
28748
28801
|
{
|
|
28749
28802
|
code: "983-015-000-000-000-000-000",
|
|
@@ -44800,7 +44853,7 @@ export {
|
|
|
44800
44853
|
contactLinkType_v1_0_0_default as contactLinkTypeSot,
|
|
44801
44854
|
contactSafetyStatus_v1_0_0_default as contactSafetyStatusSot,
|
|
44802
44855
|
coreDhState_v1_0_0_default as coreDhStateSot,
|
|
44803
|
-
|
|
44856
|
+
coreFunctions_v1_1_0_default as coreFunctionsSot,
|
|
44804
44857
|
coreIndicators_v1_1_0_default as coreIndicatorsSot,
|
|
44805
44858
|
coreInformationScope_v1_1_0_default as coreInformationScopeSot,
|
|
44806
44859
|
coreReferralOutcome_v1_0_0_default as coreReferralOutcomeSot,
|
|
@@ -44907,7 +44960,7 @@ export {
|
|
|
44907
44960
|
riskIdentificationMilestone_v1_0_0_default as riskIdentificationMilestoneSot,
|
|
44908
44961
|
riskSeverityBand_v1_0_0_default as riskSeverityBandSot,
|
|
44909
44962
|
roiMethod_v1_0_0_default as roiMethodSot,
|
|
44910
|
-
|
|
44963
|
+
roiScope_v1_2_0_default as roiScopeSot,
|
|
44911
44964
|
roiStatus_v1_0_0_default as roiStatusSot,
|
|
44912
44965
|
roleContext_v1_0_0_default as roleContextSot,
|
|
44913
44966
|
romanticRelationshipChangeType_v1_0_0_default as romanticRelationshipChangeTypeSot,
|