@htilabs/platform-common-models 0.8.22 → 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 +115 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +2310 -2182
- package/dist/cvcs/index.d.ts +2310 -2182
- package/dist/cvcs/index.js +114 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +130 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.js +128 -1
- package/dist/index.js.map +1 -1
- 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 +6 -2
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -1
- 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/cvcs/sessionTemplate.v1.0.0.json +22 -0
- package/src/generated/cvc-enums.ts +21 -1
- package/src/validation/cvcStatus.ts +209 -0
- package/src/validation/index.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -188,6 +188,7 @@ __export(src_exports, {
|
|
|
188
188
|
CVC_99_ENGLISH_PROFICIENCY: () => CVC_99_ENGLISH_PROFICIENCY,
|
|
189
189
|
CVC_99_LABELS: () => CVC_99_LABELS,
|
|
190
190
|
CVC_99_VALUES: () => CVC_99_VALUES,
|
|
191
|
+
CarCorrectionReasonKeys: () => CarCorrectionReasonKeys,
|
|
191
192
|
CaseShareStateKeys: () => CaseShareStateKeys,
|
|
192
193
|
CheckInActivityKeys: () => CheckInActivityKeys,
|
|
193
194
|
CheckInPhaseKeys: () => CheckInPhaseKeys,
|
|
@@ -494,6 +495,7 @@ __export(src_exports, {
|
|
|
494
495
|
buildQuestionSchema: () => buildQuestionSchema,
|
|
495
496
|
buildScoringRuleSchema: () => buildScoringRuleSchema,
|
|
496
497
|
buildSectionSchema: () => buildSectionSchema,
|
|
498
|
+
carCorrectionReasonSot: () => carCorrectionReason_v1_0_0_default,
|
|
497
499
|
cascadeExclusions: () => cascadeExclusions,
|
|
498
500
|
caseShareStateSot: () => caseShareState_v1_0_0_default,
|
|
499
501
|
checkInActivitySot: () => checkInActivity_v1_0_0_default,
|
|
@@ -11195,7 +11197,9 @@ var SessionTemplateKeys = {
|
|
|
11195
11197
|
cst_leads_new_report: "217-016-000-000-000-000-000",
|
|
11196
11198
|
cst_leads_new_case: "217-017-000-000-000-000-000",
|
|
11197
11199
|
cst_leads_new_lead_tip: "217-018-000-000-000-000-000",
|
|
11198
|
-
cst_unk_other_virtual: "217-019-000-000-000-000-000"
|
|
11200
|
+
cst_unk_other_virtual: "217-019-000-000-000-000-000",
|
|
11201
|
+
cst_pave_inbound_share: "217-020-000-000-000-000-000",
|
|
11202
|
+
cst_thread_inbound_share: "217-021-000-000-000-000-000"
|
|
11199
11203
|
};
|
|
11200
11204
|
var ServiceDeliveryChannelKeys = {
|
|
11201
11205
|
missingness_root: "047-000-000-000-000-000-000",
|
|
@@ -11833,6 +11837,16 @@ var AssertionStatusKeys = {
|
|
|
11833
11837
|
superseded: "985-002-000-000-000-000-000",
|
|
11834
11838
|
retracted: "985-003-000-000-000-000-000"
|
|
11835
11839
|
};
|
|
11840
|
+
var CarCorrectionReasonKeys = {
|
|
11841
|
+
missingness_root: "992-000-000-000-000-000-000",
|
|
11842
|
+
unknown: "992-000-000-000-000-000-001",
|
|
11843
|
+
anonymous: "992-000-000-000-000-000-002",
|
|
11844
|
+
data_not_collected: "992-000-000-000-000-000-003",
|
|
11845
|
+
entered_in_error: "992-001-000-000-000-000-000",
|
|
11846
|
+
duplicate: "992-002-000-000-000-000-000",
|
|
11847
|
+
superseded_externally: "992-003-000-000-000-000-000",
|
|
11848
|
+
removed_by_recipient_curation: "992-004-000-000-000-000-000"
|
|
11849
|
+
};
|
|
11836
11850
|
var CreatedBySystemKeys = {
|
|
11837
11851
|
missingness_root: "986-000-000-000-000-000-000",
|
|
11838
11852
|
unknown: "986-000-000-000-000-000-001",
|
|
@@ -45646,6 +45660,28 @@ var sessionTemplate_v1_0_0_default = {
|
|
|
45646
45660
|
childCodes: [],
|
|
45647
45661
|
definition: "Catch-all session template for non-field, non-hotline interactions conducted virtually (video or other virtual meeting formats) when no more specific template applies.",
|
|
45648
45662
|
canonicalCode: "CST-UNK-OTHER_VIRTUAL"
|
|
45663
|
+
},
|
|
45664
|
+
{
|
|
45665
|
+
code: "217-020-000-000-000-000-000",
|
|
45666
|
+
key: "cst_pave_inbound_share",
|
|
45667
|
+
title: "Inbound Share",
|
|
45668
|
+
selectable: true,
|
|
45669
|
+
parentCode: null,
|
|
45670
|
+
childCodes: [],
|
|
45671
|
+
definition: "Review a case another agency shared with your team \u2014 claim, set up the record, decide field by field.",
|
|
45672
|
+
canonicalCode: "CST-PAVE-INBOUND_SHARE",
|
|
45673
|
+
application: "PAVE"
|
|
45674
|
+
},
|
|
45675
|
+
{
|
|
45676
|
+
code: "217-021-000-000-000-000-000",
|
|
45677
|
+
key: "cst_thread_inbound_share",
|
|
45678
|
+
title: "Inbound Share",
|
|
45679
|
+
selectable: true,
|
|
45680
|
+
parentCode: null,
|
|
45681
|
+
childCodes: [],
|
|
45682
|
+
definition: "Review a case another agency shared with your team \u2014 claim, set up the record, decide field by field.",
|
|
45683
|
+
canonicalCode: "CST-THREAD-INBOUND_SHARE",
|
|
45684
|
+
application: "Thread"
|
|
45649
45685
|
}
|
|
45650
45686
|
]
|
|
45651
45687
|
};
|
|
@@ -55082,6 +55118,97 @@ var assertionStatus_v1_0_0_default = {
|
|
|
55082
55118
|
]
|
|
55083
55119
|
};
|
|
55084
55120
|
|
|
55121
|
+
// src/cvcs/carCorrectionReason.v1.0.0.json
|
|
55122
|
+
var carCorrectionReason_v1_0_0_default = {
|
|
55123
|
+
domain: "car_correction_reason",
|
|
55124
|
+
name: "CAR Correction Reason",
|
|
55125
|
+
version: "1.0.0",
|
|
55126
|
+
_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.",
|
|
55127
|
+
_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)",
|
|
55128
|
+
levels: {
|
|
55129
|
+
"0": "Unknown or Missing",
|
|
55130
|
+
"1": "CAR correction / retraction reason (single-select per correction event)"
|
|
55131
|
+
},
|
|
55132
|
+
entries: [
|
|
55133
|
+
{
|
|
55134
|
+
code: "992-000-000-000-000-000-000",
|
|
55135
|
+
key: "missingness_root",
|
|
55136
|
+
title: "Unknown, Redacted, or Missing",
|
|
55137
|
+
selectable: false,
|
|
55138
|
+
parentCode: null,
|
|
55139
|
+
childCodes: [
|
|
55140
|
+
"992-000-000-000-000-000-001",
|
|
55141
|
+
"992-000-000-000-000-000-002",
|
|
55142
|
+
"992-000-000-000-000-000-003"
|
|
55143
|
+
],
|
|
55144
|
+
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."
|
|
55145
|
+
},
|
|
55146
|
+
{
|
|
55147
|
+
code: "992-000-000-000-000-000-001",
|
|
55148
|
+
key: "unknown",
|
|
55149
|
+
title: "Unknown",
|
|
55150
|
+
selectable: true,
|
|
55151
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
55152
|
+
childCodes: [],
|
|
55153
|
+
definition: "Value is unknown at time of entry."
|
|
55154
|
+
},
|
|
55155
|
+
{
|
|
55156
|
+
code: "992-000-000-000-000-000-002",
|
|
55157
|
+
key: "anonymous",
|
|
55158
|
+
title: "Anonymous / declined to answer",
|
|
55159
|
+
selectable: true,
|
|
55160
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
55161
|
+
childCodes: [],
|
|
55162
|
+
definition: "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
|
|
55163
|
+
},
|
|
55164
|
+
{
|
|
55165
|
+
code: "992-000-000-000-000-000-003",
|
|
55166
|
+
key: "data_not_collected",
|
|
55167
|
+
title: "Data not collected",
|
|
55168
|
+
selectable: true,
|
|
55169
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
55170
|
+
childCodes: [],
|
|
55171
|
+
definition: "No attempt was made to collect the value."
|
|
55172
|
+
},
|
|
55173
|
+
{
|
|
55174
|
+
code: "992-001-000-000-000-000-000",
|
|
55175
|
+
key: "entered_in_error",
|
|
55176
|
+
title: "Entered in error",
|
|
55177
|
+
selectable: true,
|
|
55178
|
+
parentCode: null,
|
|
55179
|
+
childCodes: [],
|
|
55180
|
+
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."
|
|
55181
|
+
},
|
|
55182
|
+
{
|
|
55183
|
+
code: "992-002-000-000-000-000-000",
|
|
55184
|
+
key: "duplicate",
|
|
55185
|
+
title: "Duplicate of another assertion",
|
|
55186
|
+
selectable: true,
|
|
55187
|
+
parentCode: null,
|
|
55188
|
+
childCodes: [],
|
|
55189
|
+
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."
|
|
55190
|
+
},
|
|
55191
|
+
{
|
|
55192
|
+
code: "992-003-000-000-000-000-000",
|
|
55193
|
+
key: "superseded_externally",
|
|
55194
|
+
title: "Superseded externally",
|
|
55195
|
+
selectable: true,
|
|
55196
|
+
parentCode: null,
|
|
55197
|
+
childCodes: [],
|
|
55198
|
+
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."
|
|
55199
|
+
},
|
|
55200
|
+
{
|
|
55201
|
+
code: "992-004-000-000-000-000-000",
|
|
55202
|
+
key: "removed_by_recipient_curation",
|
|
55203
|
+
title: "Removed by recipient curation",
|
|
55204
|
+
selectable: true,
|
|
55205
|
+
parentCode: null,
|
|
55206
|
+
childCodes: [],
|
|
55207
|
+
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."
|
|
55208
|
+
}
|
|
55209
|
+
]
|
|
55210
|
+
};
|
|
55211
|
+
|
|
55085
55212
|
// src/cvcs/createdBySystem.v1.0.0.json
|
|
55086
55213
|
var createdBySystem_v1_0_0_default = {
|
|
55087
55214
|
domain: "created_by_system",
|
|
@@ -55722,6 +55849,7 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
55722
55849
|
CVC_99_ENGLISH_PROFICIENCY,
|
|
55723
55850
|
CVC_99_LABELS,
|
|
55724
55851
|
CVC_99_VALUES,
|
|
55852
|
+
CarCorrectionReasonKeys,
|
|
55725
55853
|
CaseShareStateKeys,
|
|
55726
55854
|
CheckInActivityKeys,
|
|
55727
55855
|
CheckInPhaseKeys,
|
|
@@ -56028,6 +56156,7 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
56028
56156
|
buildQuestionSchema,
|
|
56029
56157
|
buildScoringRuleSchema,
|
|
56030
56158
|
buildSectionSchema,
|
|
56159
|
+
carCorrectionReasonSot,
|
|
56031
56160
|
cascadeExclusions,
|
|
56032
56161
|
caseShareStateSot,
|
|
56033
56162
|
checkInActivitySot,
|