@htilabs/platform-common-models 0.8.23 → 0.8.24
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/cvc-C7qdsXYK.d.cts +298 -0
- package/dist/cvc-C7qdsXYK.d.ts +298 -0
- package/dist/cvcs/index.cjs +93 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +2286 -2182
- package/dist/cvcs/index.d.ts +2286 -2182
- package/dist/cvcs/index.js +92 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +105 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +103 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.cts +24 -24
- package/dist/schemas/index.d.ts +24 -24
- package/dist/validation/index.cjs +58 -0
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +82 -283
- package/dist/validation/index.d.ts +82 -283
- package/dist/validation/index.js +57 -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__/cvc-sot-snapshot.test.ts +5 -0
- package/src/__tests__/cvc-status-parser.test.ts +150 -0
- package/src/cvcs/carCorrectionReason.v1.0.0.json +89 -0
- package/src/cvcs/index.ts +2 -0
- package/src/generated/cvc-enums.ts +18 -0
- package/src/validation/cvcStatus.ts +209 -0
- package/src/validation/index.ts +1 -0
package/dist/cvcs/index.cjs
CHANGED
|
@@ -32,6 +32,7 @@ __export(cvcs_exports, {
|
|
|
32
32
|
assertionDomainSot: () => assertionDomain_v1_1_0_default,
|
|
33
33
|
assertionStatusSot: () => assertionStatus_v1_0_0_default,
|
|
34
34
|
basisQuickPicksSot: () => basisQuickPicks_v1_0_0_default,
|
|
35
|
+
carCorrectionReasonSot: () => carCorrectionReason_v1_0_0_default,
|
|
35
36
|
caseShareStateSot: () => caseShareState_v1_0_0_default,
|
|
36
37
|
checkInActivitySot: () => checkInActivity_v1_0_0_default,
|
|
37
38
|
checkInPhaseSot: () => checkInPhase_v1_1_0_default,
|
|
@@ -43049,6 +43050,97 @@ var assertionStatus_v1_0_0_default = {
|
|
|
43049
43050
|
]
|
|
43050
43051
|
};
|
|
43051
43052
|
|
|
43053
|
+
// src/cvcs/carCorrectionReason.v1.0.0.json
|
|
43054
|
+
var carCorrectionReason_v1_0_0_default = {
|
|
43055
|
+
domain: "car_correction_reason",
|
|
43056
|
+
name: "CAR Correction Reason",
|
|
43057
|
+
version: "1.0.0",
|
|
43058
|
+
_status: "DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering (992). Non-clinical bookkeeping/provenance vocabulary \u2014 the coded KIND of a CAR (Contextual Assertion Record) correction or retraction, engineer-direct-authored per the PAVE CVC-authoring governance steer (structural, provisional/ratify-later; FYI to Crysta, NOT Crysta-gated). The first three tokens are sourced verbatim from PAVE `@pave/domain` CAR_CORRECTION_REASONS / RETRACTION_TYPES (packages/domain/src/carGovernance.ts), themselves hoisted from packages/db/src/services/assertionRetraction.ts's documented `retractionType` set; publishing them here retires that PAVE-local const in favour of the SOT it always wanted (carGovernance.ts \xA7'Where these labels are DERIVED' notes 'the day a CVC publishes these three the swap is one deriveLabels call'). The fourth, removed_by_recipient_curation, is added for the PAVE CaseShare received-content curation lane (bead pv-p6share-curation-retract-reason-vocab, 2026-09-18). CASING: lower_snake per the CVC key regex. PENDING canonical Notion authoring + steward ratification.",
|
|
43059
|
+
_source: "pave-2.0/packages/domain/src/carGovernance.ts CAR_CORRECTION_REASONS; pave-2.0/packages/db/src/services/assertionRetraction.ts RetractAssertionInput.retractionType; removed_by_recipient_curation net-new for the received-content curation lane (pv-p6share-curation-retract-reason-vocab)",
|
|
43060
|
+
levels: {
|
|
43061
|
+
"0": "Unknown or Missing",
|
|
43062
|
+
"1": "CAR correction / retraction reason (single-select per correction event)"
|
|
43063
|
+
},
|
|
43064
|
+
entries: [
|
|
43065
|
+
{
|
|
43066
|
+
code: "992-000-000-000-000-000-000",
|
|
43067
|
+
key: "missingness_root",
|
|
43068
|
+
title: "Unknown, Redacted, or Missing",
|
|
43069
|
+
selectable: false,
|
|
43070
|
+
parentCode: null,
|
|
43071
|
+
childCodes: [
|
|
43072
|
+
"992-000-000-000-000-000-001",
|
|
43073
|
+
"992-000-000-000-000-000-002",
|
|
43074
|
+
"992-000-000-000-000-000-003"
|
|
43075
|
+
],
|
|
43076
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected). No prefer_not_to_answer \u2014 workspace standard ANON semantic rolls 'declined to answer' into the anonymous sentinel. A correction reason is always explicitly chosen in practice; the quadruplet is present per SOT convention, not because a correction is expected to be missing."
|
|
43077
|
+
},
|
|
43078
|
+
{
|
|
43079
|
+
code: "992-000-000-000-000-000-001",
|
|
43080
|
+
key: "unknown",
|
|
43081
|
+
title: "Unknown",
|
|
43082
|
+
selectable: true,
|
|
43083
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
43084
|
+
childCodes: [],
|
|
43085
|
+
definition: "Value is unknown at time of entry."
|
|
43086
|
+
},
|
|
43087
|
+
{
|
|
43088
|
+
code: "992-000-000-000-000-000-002",
|
|
43089
|
+
key: "anonymous",
|
|
43090
|
+
title: "Anonymous / declined to answer",
|
|
43091
|
+
selectable: true,
|
|
43092
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
43093
|
+
childCodes: [],
|
|
43094
|
+
definition: "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
|
|
43095
|
+
},
|
|
43096
|
+
{
|
|
43097
|
+
code: "992-000-000-000-000-000-003",
|
|
43098
|
+
key: "data_not_collected",
|
|
43099
|
+
title: "Data not collected",
|
|
43100
|
+
selectable: true,
|
|
43101
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
43102
|
+
childCodes: [],
|
|
43103
|
+
definition: "No attempt was made to collect the value."
|
|
43104
|
+
},
|
|
43105
|
+
{
|
|
43106
|
+
code: "992-001-000-000-000-000-000",
|
|
43107
|
+
key: "entered_in_error",
|
|
43108
|
+
title: "Entered in error",
|
|
43109
|
+
selectable: true,
|
|
43110
|
+
parentCode: null,
|
|
43111
|
+
childCodes: [],
|
|
43112
|
+
definition: "The assertion should never have been recorded \u2014 it was captured by mistake (wrong subject, wrong field, an advocate mis-click, or a claim the conversation did not actually support). The row is RETRACTED, not hard-deleted: a retraction retains the row it retracts so the log of record stays forensic. The canonical 'this is not true and never was' correction."
|
|
43113
|
+
},
|
|
43114
|
+
{
|
|
43115
|
+
code: "992-002-000-000-000-000-000",
|
|
43116
|
+
key: "duplicate",
|
|
43117
|
+
title: "Duplicate of another assertion",
|
|
43118
|
+
selectable: true,
|
|
43119
|
+
parentCode: null,
|
|
43120
|
+
childCodes: [],
|
|
43121
|
+
definition: "The same claim was asserted twice in the same spine partition (e.g. captured from two surfaces, or re-emitted by an ingest path that did not de-duplicate). The duplicate copy is retracted; the canonical copy remains active. Distinct from entered_in_error: the claim IS true, it is merely recorded more than once."
|
|
43122
|
+
},
|
|
43123
|
+
{
|
|
43124
|
+
code: "992-003-000-000-000-000-000",
|
|
43125
|
+
key: "superseded_externally",
|
|
43126
|
+
title: "Superseded externally",
|
|
43127
|
+
selectable: true,
|
|
43128
|
+
parentCode: null,
|
|
43129
|
+
childCodes: [],
|
|
43130
|
+
definition: "The assertion is retired because a truer or more current value arrived from OUTSIDE the ordinary in-partition supersession chain (e.g. a corrected value from another system or a later disclosure that a normal supersede row could not express). Use when the successor is not itself a spine row that carries `supersedes_assertion_id`; where an in-partition successor exists, status 'superseded' with `supersedes_assertion_id` is the right shape instead."
|
|
43131
|
+
},
|
|
43132
|
+
{
|
|
43133
|
+
code: "992-004-000-000-000-000-000",
|
|
43134
|
+
key: "removed_by_recipient_curation",
|
|
43135
|
+
title: "Removed by recipient curation",
|
|
43136
|
+
selectable: true,
|
|
43137
|
+
parentCode: null,
|
|
43138
|
+
childCodes: [],
|
|
43139
|
+
definition: "Recipient-side curation removal of a received (re-emitted) assertion; added for PAVE CaseShare received-content curation, 2026-09-18. A recipient agency curates a cleanly-attributed foreign re-emitted CAR (indicator / victimization / involvement) out of their own record \u2014 the claim is not asserted as false, it is simply not one this recipient chooses to carry. The row is RETRACTED with this coded, honest reason rather than silently dropped, so the received-then-removed sequence stays on the log of record and the origin's assertion is untouched. Distinct from entered_in_error (a mistaken capture) and from duplicate (a redundant copy): the assertion was validly received and validly removed by the receiving side's curation decision."
|
|
43140
|
+
}
|
|
43141
|
+
]
|
|
43142
|
+
};
|
|
43143
|
+
|
|
43052
43144
|
// src/cvcs/createdBySystem.v1.0.0.json
|
|
43053
43145
|
var createdBySystem_v1_0_0_default = {
|
|
43054
43146
|
domain: "created_by_system",
|
|
@@ -43526,6 +43618,7 @@ var criminalOrgCategory_v1_0_0_default = {
|
|
|
43526
43618
|
assertionDomainSot,
|
|
43527
43619
|
assertionStatusSot,
|
|
43528
43620
|
basisQuickPicksSot,
|
|
43621
|
+
carCorrectionReasonSot,
|
|
43529
43622
|
caseShareStateSot,
|
|
43530
43623
|
checkInActivitySot,
|
|
43531
43624
|
checkInPhaseSot,
|