@htilabs/platform-common-models 0.12.2 → 0.12.3
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 +21 -4
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +22 -4
- package/dist/cvcs/index.d.ts +22 -4
- package/dist/cvcs/index.js +21 -4
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +3 -2
- package/dist/enums/index.d.ts +3 -2
- package/dist/enums/index.js +1 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/index.cjs +77 -11
- 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 +72 -11
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +41 -7
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +105 -1
- package/dist/schemas/index.d.ts +105 -1
- package/dist/schemas/index.js +38 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/{cvc-Cp4uWnAa.d.cts → team-C4LJ5Tex.d.cts} +36 -1
- package/dist/{cvc-Cp4uWnAa.d.ts → team-C4LJ5Tex.d.ts} +36 -1
- package/dist/validation/index.cjs +155 -0
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +1 -1
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.js +153 -0
- package/dist/validation/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -0
- package/src/__tests__/core-information-scope-invariant.test.ts +125 -2
- package/src/__tests__/cvc-sot-snapshot.test.ts +9 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/__tests__/team-directory-fields.test.ts +252 -0
- package/src/cvcs/coreInformationScope.v1.0.0.json +21 -4
- package/src/generated/cvc-enums.ts +3 -2
- package/src/index.ts +7 -0
- package/src/schemas/index.ts +8 -0
- package/src/schemas/team.ts +118 -0
- package/src/validation/index.ts +1 -0
- package/src/validation/team.ts +48 -0
package/dist/cvcs/index.cjs
CHANGED
|
@@ -26542,8 +26542,8 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
26542
26542
|
domain: "core_information_scope",
|
|
26543
26543
|
name: "Core Information Scope",
|
|
26544
26544
|
version: "1.0.0",
|
|
26545
|
-
_status: "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories /
|
|
26546
|
-
_source: "htilabstech/prototype
|
|
26545
|
+
_status: "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 55 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits \u2014 `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 55 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is PROVISIONAL and may be re-keyed by the Notion steward batch \u2014 pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.",
|
|
26546
|
+
_source: "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 285a9f1d (CVC-236 v2, restructured 2026-08-14, amended 2026-09-29; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope \u2014 codebook.csv @ 285a9f1d)",
|
|
26547
26547
|
levels: {
|
|
26548
26548
|
"0": "Unknown or Missing",
|
|
26549
26549
|
"1": "Category (policy grain, not selectable)",
|
|
@@ -27010,9 +27010,10 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
27010
27010
|
parentCode: null,
|
|
27011
27011
|
childCodes: [
|
|
27012
27012
|
"236-003-001-000-000-000-000",
|
|
27013
|
-
"236-003-002-000-000-000-000"
|
|
27013
|
+
"236-003-002-000-000-000-000",
|
|
27014
|
+
"236-003-003-000-000-000-000"
|
|
27014
27015
|
],
|
|
27015
|
-
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell).",
|
|
27016
|
+
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety \u2014 the immediate-needs triage answers, one disclosure decision.",
|
|
27016
27017
|
levelFloor: 3,
|
|
27017
27018
|
appRelevance: [
|
|
27018
27019
|
"PAVE",
|
|
@@ -27054,6 +27055,22 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
27054
27055
|
specialDataType: "survivor_confidential",
|
|
27055
27056
|
platformFloor: true
|
|
27056
27057
|
},
|
|
27058
|
+
{
|
|
27059
|
+
code: "236-003-003-000-000-000-000",
|
|
27060
|
+
key: "priorities_safety",
|
|
27061
|
+
title: "Priorities & Safety (immediate needs triage)",
|
|
27062
|
+
selectable: true,
|
|
27063
|
+
parentCode: "236-003-000-000-000-000-000",
|
|
27064
|
+
childCodes: [],
|
|
27065
|
+
definition: "Priorities & Safety (immediate needs triage). Category `contact`. NEW 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): the completed Immediate Priorities / Priorities & Safety triage, authorized as ONE disclosure decision \u2014 Q1 immediate danger + source of the danger + harm-doer nearby + safe place to go \xB7 Q2 health needs \xB7 Q3 interpreter \xB7 Q4 urgent basic needs \xB7 Q5 transportation (method / time / pickup location) \xB7 Q6 emergency shelter \xB7 Q7 dependents at risk \xB7 Q8 other. Instrument-grain unit on the initial_screen / lap precedent (ruling 1, 2026-08-13), homed under Contact & safety because the answers that had no home are safety facts; the service instances the step derives ride services/service_history on their own. Bidirectional Thread Signal \u2194 PAVE mirror on Q1 (GDR \xA7 6.9.7) \u2014 one unit, both apps. domain_map: priorities_safety \u2192 this unit (R3 EXECUTED later the same day, PRIORITIES-SAFETY-RECORD): CVC-159 domain priorities_safety (Level 1) + monolith emitter emitPrioritiesAnswerCAR (one CAR per answered question) + UDD row capture.priorities_safety; production persistence of the answers stays with Nate under RWT-NEW-priorities-safety-record-and-udd-2026-09-29. Minted in the Notion codebook the same day; codebook row re-synced to the record 2026-09-29.",
|
|
27066
|
+
levelFloor: 3,
|
|
27067
|
+
appRelevance: [
|
|
27068
|
+
"PAVE",
|
|
27069
|
+
"Thread"
|
|
27070
|
+
],
|
|
27071
|
+
shareableDefault: true,
|
|
27072
|
+
specialDataType: "survivor_confidential"
|
|
27073
|
+
},
|
|
27057
27074
|
{
|
|
27058
27075
|
code: "236-004-000-000-000-000-000",
|
|
27059
27076
|
key: "services",
|