@htilabs/platform-common-models 0.12.1 → 0.12.2
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/{cvcEntry-0BIB9sen.d.cts → cvcEntry-ctHTp2df.d.cts} +36 -36
- package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-ctHTp2df.d.ts} +36 -36
- package/dist/cvcs/index.cjs +224 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +511 -270
- package/dist/cvcs/index.d.ts +511 -270
- package/dist/cvcs/index.js +223 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +16 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +21 -1
- package/dist/enums/index.d.ts +21 -1
- package/dist/enums/index.js +15 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-4DiJrn7y.d.ts} +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-qreOzXYS.d.cts} +1 -1
- package/dist/index.cjs +240 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +238 -0
- 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 +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/package.json +27 -26
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -0
- package/src/__tests__/cvc-drift-gate.test.ts +18 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -0
- package/src/__tests__/cvc-structural.test.ts +2 -0
- package/src/__tests__/share-response-reason-invariant.test.ts +167 -0
- package/src/cvcs/index.ts +4 -0
- package/src/cvcs/shareResponseReason.v1.0.0.json +220 -0
- package/src/generated/cvc-enums.ts +22 -0
|
@@ -21,9 +21,9 @@ declare const formSectionRefSchema: Schema<any, mongoose.Model<any, any, any, an
|
|
|
21
21
|
presetsType?: string | null | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
id: string;
|
|
24
|
-
},
|
|
24
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
25
25
|
_id: false;
|
|
26
|
-
}
|
|
26
|
+
}>> & Omit<{
|
|
27
27
|
index: number;
|
|
28
28
|
sectionId: string;
|
|
29
29
|
sectionVersion: string;
|
|
@@ -111,9 +111,9 @@ declare const formSchemaDefinition: {
|
|
|
111
111
|
presetsType?: string | null | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
id: string;
|
|
114
|
-
},
|
|
114
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
115
115
|
_id: false;
|
|
116
|
-
}
|
|
116
|
+
}>> & Omit<{
|
|
117
117
|
index: number;
|
|
118
118
|
sectionId: string;
|
|
119
119
|
sectionVersion: string;
|
|
@@ -208,9 +208,9 @@ declare const sectionQuestionRefSchema: Schema<any, mongoose.Model<any, any, any
|
|
|
208
208
|
questionVersion: string;
|
|
209
209
|
}, {
|
|
210
210
|
id: string;
|
|
211
|
-
},
|
|
211
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
212
212
|
_id: false;
|
|
213
|
-
}
|
|
213
|
+
}>> & Omit<{
|
|
214
214
|
index: number;
|
|
215
215
|
questionId: string;
|
|
216
216
|
questionVersion: string;
|
|
@@ -240,9 +240,9 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
|
|
|
240
240
|
text: string;
|
|
241
241
|
}, {
|
|
242
242
|
id: string;
|
|
243
|
-
},
|
|
243
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
244
244
|
_id: false;
|
|
245
|
-
}
|
|
245
|
+
}>> & Omit<{
|
|
246
246
|
type: "tip" | "warning" | "prompt";
|
|
247
247
|
text: string;
|
|
248
248
|
} & {
|
|
@@ -301,9 +301,9 @@ declare const sectionSchemaDefinition: {
|
|
|
301
301
|
text: string;
|
|
302
302
|
}, {
|
|
303
303
|
id: string;
|
|
304
|
-
},
|
|
304
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
305
305
|
_id: false;
|
|
306
|
-
}
|
|
306
|
+
}>> & Omit<{
|
|
307
307
|
type: "tip" | "warning" | "prompt";
|
|
308
308
|
text: string;
|
|
309
309
|
} & {
|
|
@@ -335,9 +335,9 @@ declare const sectionSchemaDefinition: {
|
|
|
335
335
|
questionVersion: string;
|
|
336
336
|
}, {
|
|
337
337
|
id: string;
|
|
338
|
-
},
|
|
338
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
339
339
|
_id: false;
|
|
340
|
-
}
|
|
340
|
+
}>> & Omit<{
|
|
341
341
|
index: number;
|
|
342
342
|
questionId: string;
|
|
343
343
|
questionVersion: string;
|
|
@@ -444,9 +444,9 @@ declare const choiceSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
444
444
|
tip?: string | null | undefined;
|
|
445
445
|
}, {
|
|
446
446
|
id: string;
|
|
447
|
-
},
|
|
447
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
448
448
|
_id: false;
|
|
449
|
-
}
|
|
449
|
+
}>> & Omit<{
|
|
450
450
|
text: string;
|
|
451
451
|
val: any;
|
|
452
452
|
trigger: string[];
|
|
@@ -482,9 +482,9 @@ declare const visibilityRuleSchema: Schema<any, mongoose.Model<any, any, any, an
|
|
|
482
482
|
condition: "equals" | "not_equals" | "any_of" | "in_range";
|
|
483
483
|
}, {
|
|
484
484
|
id: string;
|
|
485
|
-
},
|
|
485
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
486
486
|
_id: false;
|
|
487
|
-
}
|
|
487
|
+
}>> & Omit<{
|
|
488
488
|
values: any[];
|
|
489
489
|
source: "session" | "form";
|
|
490
490
|
dependsOn: string;
|
|
@@ -518,9 +518,9 @@ declare const layoutSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
518
518
|
groupKey?: string | null | undefined;
|
|
519
519
|
}, {
|
|
520
520
|
id: string;
|
|
521
|
-
},
|
|
521
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
522
522
|
_id: false;
|
|
523
|
-
}
|
|
523
|
+
}>> & Omit<{
|
|
524
524
|
collapsible: boolean;
|
|
525
525
|
columns: number;
|
|
526
526
|
groupKey?: string | null | undefined;
|
|
@@ -637,9 +637,9 @@ declare const questionSchemaDefinition: {
|
|
|
637
637
|
tip?: string | null | undefined;
|
|
638
638
|
}, {
|
|
639
639
|
id: string;
|
|
640
|
-
},
|
|
640
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
641
641
|
_id: false;
|
|
642
|
-
}
|
|
642
|
+
}>> & Omit<{
|
|
643
643
|
text: string;
|
|
644
644
|
val: any;
|
|
645
645
|
trigger: string[];
|
|
@@ -709,9 +709,9 @@ declare const questionSchemaDefinition: {
|
|
|
709
709
|
condition: "equals" | "not_equals" | "any_of" | "in_range";
|
|
710
710
|
}, {
|
|
711
711
|
id: string;
|
|
712
|
-
},
|
|
712
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
713
713
|
_id: false;
|
|
714
|
-
}
|
|
714
|
+
}>> & Omit<{
|
|
715
715
|
values: any[];
|
|
716
716
|
source: "session" | "form";
|
|
717
717
|
dependsOn: string;
|
|
@@ -746,9 +746,9 @@ declare const questionSchemaDefinition: {
|
|
|
746
746
|
groupKey?: string | null | undefined;
|
|
747
747
|
}, {
|
|
748
748
|
id: string;
|
|
749
|
-
},
|
|
749
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
750
750
|
_id: false;
|
|
751
|
-
}
|
|
751
|
+
}>> & Omit<{
|
|
752
752
|
collapsible: boolean;
|
|
753
753
|
columns: number;
|
|
754
754
|
groupKey?: string | null | undefined;
|
|
@@ -868,9 +868,9 @@ declare const scoringConditionSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
868
868
|
weight: number;
|
|
869
869
|
}, {
|
|
870
870
|
id: string;
|
|
871
|
-
},
|
|
871
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
872
872
|
_id: false;
|
|
873
|
-
}
|
|
873
|
+
}>> & Omit<{
|
|
874
874
|
value: any;
|
|
875
875
|
questionKey: string;
|
|
876
876
|
operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
|
|
@@ -906,9 +906,9 @@ declare const scoringThresholdSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
906
906
|
riskLevel: string;
|
|
907
907
|
}, {
|
|
908
908
|
id: string;
|
|
909
|
-
},
|
|
909
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
910
910
|
_id: false;
|
|
911
|
-
}
|
|
911
|
+
}>> & Omit<{
|
|
912
912
|
label: string;
|
|
913
913
|
minScore: number;
|
|
914
914
|
maxScore: number;
|
|
@@ -942,9 +942,9 @@ declare const scoringRecommendationSchema: Schema<any, mongoose.Model<any, any,
|
|
|
942
942
|
action: string;
|
|
943
943
|
}, {
|
|
944
944
|
id: string;
|
|
945
|
-
},
|
|
945
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
946
946
|
_id: false;
|
|
947
|
-
}
|
|
947
|
+
}>> & Omit<{
|
|
948
948
|
description: string;
|
|
949
949
|
riskLevel: string;
|
|
950
950
|
action: string;
|
|
@@ -1031,9 +1031,9 @@ declare const scoringRuleSchemaDefinition: {
|
|
|
1031
1031
|
weight: number;
|
|
1032
1032
|
}, {
|
|
1033
1033
|
id: string;
|
|
1034
|
-
},
|
|
1034
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
1035
1035
|
_id: false;
|
|
1036
|
-
}
|
|
1036
|
+
}>> & Omit<{
|
|
1037
1037
|
value: any;
|
|
1038
1038
|
questionKey: string;
|
|
1039
1039
|
operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
|
|
@@ -1071,9 +1071,9 @@ declare const scoringRuleSchemaDefinition: {
|
|
|
1071
1071
|
riskLevel: string;
|
|
1072
1072
|
}, {
|
|
1073
1073
|
id: string;
|
|
1074
|
-
},
|
|
1074
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
1075
1075
|
_id: false;
|
|
1076
|
-
}
|
|
1076
|
+
}>> & Omit<{
|
|
1077
1077
|
label: string;
|
|
1078
1078
|
minScore: number;
|
|
1079
1079
|
maxScore: number;
|
|
@@ -1109,9 +1109,9 @@ declare const scoringRuleSchemaDefinition: {
|
|
|
1109
1109
|
action: string;
|
|
1110
1110
|
}, {
|
|
1111
1111
|
id: string;
|
|
1112
|
-
},
|
|
1112
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
1113
1113
|
_id: false;
|
|
1114
|
-
}
|
|
1114
|
+
}>> & Omit<{
|
|
1115
1115
|
description: string;
|
|
1116
1116
|
riskLevel: string;
|
|
1117
1117
|
action: string;
|
|
@@ -21,9 +21,9 @@ declare const formSectionRefSchema: Schema<any, mongoose.Model<any, any, any, an
|
|
|
21
21
|
presetsType?: string | null | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
id: string;
|
|
24
|
-
},
|
|
24
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
25
25
|
_id: false;
|
|
26
|
-
}
|
|
26
|
+
}>> & Omit<{
|
|
27
27
|
index: number;
|
|
28
28
|
sectionId: string;
|
|
29
29
|
sectionVersion: string;
|
|
@@ -111,9 +111,9 @@ declare const formSchemaDefinition: {
|
|
|
111
111
|
presetsType?: string | null | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
id: string;
|
|
114
|
-
},
|
|
114
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
115
115
|
_id: false;
|
|
116
|
-
}
|
|
116
|
+
}>> & Omit<{
|
|
117
117
|
index: number;
|
|
118
118
|
sectionId: string;
|
|
119
119
|
sectionVersion: string;
|
|
@@ -208,9 +208,9 @@ declare const sectionQuestionRefSchema: Schema<any, mongoose.Model<any, any, any
|
|
|
208
208
|
questionVersion: string;
|
|
209
209
|
}, {
|
|
210
210
|
id: string;
|
|
211
|
-
},
|
|
211
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
212
212
|
_id: false;
|
|
213
|
-
}
|
|
213
|
+
}>> & Omit<{
|
|
214
214
|
index: number;
|
|
215
215
|
questionId: string;
|
|
216
216
|
questionVersion: string;
|
|
@@ -240,9 +240,9 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
|
|
|
240
240
|
text: string;
|
|
241
241
|
}, {
|
|
242
242
|
id: string;
|
|
243
|
-
},
|
|
243
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
244
244
|
_id: false;
|
|
245
|
-
}
|
|
245
|
+
}>> & Omit<{
|
|
246
246
|
type: "tip" | "warning" | "prompt";
|
|
247
247
|
text: string;
|
|
248
248
|
} & {
|
|
@@ -301,9 +301,9 @@ declare const sectionSchemaDefinition: {
|
|
|
301
301
|
text: string;
|
|
302
302
|
}, {
|
|
303
303
|
id: string;
|
|
304
|
-
},
|
|
304
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
305
305
|
_id: false;
|
|
306
|
-
}
|
|
306
|
+
}>> & Omit<{
|
|
307
307
|
type: "tip" | "warning" | "prompt";
|
|
308
308
|
text: string;
|
|
309
309
|
} & {
|
|
@@ -335,9 +335,9 @@ declare const sectionSchemaDefinition: {
|
|
|
335
335
|
questionVersion: string;
|
|
336
336
|
}, {
|
|
337
337
|
id: string;
|
|
338
|
-
},
|
|
338
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
339
339
|
_id: false;
|
|
340
|
-
}
|
|
340
|
+
}>> & Omit<{
|
|
341
341
|
index: number;
|
|
342
342
|
questionId: string;
|
|
343
343
|
questionVersion: string;
|
|
@@ -444,9 +444,9 @@ declare const choiceSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
444
444
|
tip?: string | null | undefined;
|
|
445
445
|
}, {
|
|
446
446
|
id: string;
|
|
447
|
-
},
|
|
447
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
448
448
|
_id: false;
|
|
449
|
-
}
|
|
449
|
+
}>> & Omit<{
|
|
450
450
|
text: string;
|
|
451
451
|
val: any;
|
|
452
452
|
trigger: string[];
|
|
@@ -482,9 +482,9 @@ declare const visibilityRuleSchema: Schema<any, mongoose.Model<any, any, any, an
|
|
|
482
482
|
condition: "equals" | "not_equals" | "any_of" | "in_range";
|
|
483
483
|
}, {
|
|
484
484
|
id: string;
|
|
485
|
-
},
|
|
485
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
486
486
|
_id: false;
|
|
487
|
-
}
|
|
487
|
+
}>> & Omit<{
|
|
488
488
|
values: any[];
|
|
489
489
|
source: "session" | "form";
|
|
490
490
|
dependsOn: string;
|
|
@@ -518,9 +518,9 @@ declare const layoutSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
518
518
|
groupKey?: string | null | undefined;
|
|
519
519
|
}, {
|
|
520
520
|
id: string;
|
|
521
|
-
},
|
|
521
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
522
522
|
_id: false;
|
|
523
|
-
}
|
|
523
|
+
}>> & Omit<{
|
|
524
524
|
collapsible: boolean;
|
|
525
525
|
columns: number;
|
|
526
526
|
groupKey?: string | null | undefined;
|
|
@@ -637,9 +637,9 @@ declare const questionSchemaDefinition: {
|
|
|
637
637
|
tip?: string | null | undefined;
|
|
638
638
|
}, {
|
|
639
639
|
id: string;
|
|
640
|
-
},
|
|
640
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
641
641
|
_id: false;
|
|
642
|
-
}
|
|
642
|
+
}>> & Omit<{
|
|
643
643
|
text: string;
|
|
644
644
|
val: any;
|
|
645
645
|
trigger: string[];
|
|
@@ -709,9 +709,9 @@ declare const questionSchemaDefinition: {
|
|
|
709
709
|
condition: "equals" | "not_equals" | "any_of" | "in_range";
|
|
710
710
|
}, {
|
|
711
711
|
id: string;
|
|
712
|
-
},
|
|
712
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
713
713
|
_id: false;
|
|
714
|
-
}
|
|
714
|
+
}>> & Omit<{
|
|
715
715
|
values: any[];
|
|
716
716
|
source: "session" | "form";
|
|
717
717
|
dependsOn: string;
|
|
@@ -746,9 +746,9 @@ declare const questionSchemaDefinition: {
|
|
|
746
746
|
groupKey?: string | null | undefined;
|
|
747
747
|
}, {
|
|
748
748
|
id: string;
|
|
749
|
-
},
|
|
749
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
750
750
|
_id: false;
|
|
751
|
-
}
|
|
751
|
+
}>> & Omit<{
|
|
752
752
|
collapsible: boolean;
|
|
753
753
|
columns: number;
|
|
754
754
|
groupKey?: string | null | undefined;
|
|
@@ -868,9 +868,9 @@ declare const scoringConditionSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
868
868
|
weight: number;
|
|
869
869
|
}, {
|
|
870
870
|
id: string;
|
|
871
|
-
},
|
|
871
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
872
872
|
_id: false;
|
|
873
|
-
}
|
|
873
|
+
}>> & Omit<{
|
|
874
874
|
value: any;
|
|
875
875
|
questionKey: string;
|
|
876
876
|
operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
|
|
@@ -906,9 +906,9 @@ declare const scoringThresholdSchema: Schema<any, mongoose.Model<any, any, any,
|
|
|
906
906
|
riskLevel: string;
|
|
907
907
|
}, {
|
|
908
908
|
id: string;
|
|
909
|
-
},
|
|
909
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
910
910
|
_id: false;
|
|
911
|
-
}
|
|
911
|
+
}>> & Omit<{
|
|
912
912
|
label: string;
|
|
913
913
|
minScore: number;
|
|
914
914
|
maxScore: number;
|
|
@@ -942,9 +942,9 @@ declare const scoringRecommendationSchema: Schema<any, mongoose.Model<any, any,
|
|
|
942
942
|
action: string;
|
|
943
943
|
}, {
|
|
944
944
|
id: string;
|
|
945
|
-
},
|
|
945
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
946
946
|
_id: false;
|
|
947
|
-
}
|
|
947
|
+
}>> & Omit<{
|
|
948
948
|
description: string;
|
|
949
949
|
riskLevel: string;
|
|
950
950
|
action: string;
|
|
@@ -1031,9 +1031,9 @@ declare const scoringRuleSchemaDefinition: {
|
|
|
1031
1031
|
weight: number;
|
|
1032
1032
|
}, {
|
|
1033
1033
|
id: string;
|
|
1034
|
-
},
|
|
1034
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
1035
1035
|
_id: false;
|
|
1036
|
-
}
|
|
1036
|
+
}>> & Omit<{
|
|
1037
1037
|
value: any;
|
|
1038
1038
|
questionKey: string;
|
|
1039
1039
|
operator: "ne" | "lt" | "eq" | "in" | "not_in" | "gt" | "gte" | "lte";
|
|
@@ -1071,9 +1071,9 @@ declare const scoringRuleSchemaDefinition: {
|
|
|
1071
1071
|
riskLevel: string;
|
|
1072
1072
|
}, {
|
|
1073
1073
|
id: string;
|
|
1074
|
-
},
|
|
1074
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
1075
1075
|
_id: false;
|
|
1076
|
-
}
|
|
1076
|
+
}>> & Omit<{
|
|
1077
1077
|
label: string;
|
|
1078
1078
|
minScore: number;
|
|
1079
1079
|
maxScore: number;
|
|
@@ -1109,9 +1109,9 @@ declare const scoringRuleSchemaDefinition: {
|
|
|
1109
1109
|
action: string;
|
|
1110
1110
|
}, {
|
|
1111
1111
|
id: string;
|
|
1112
|
-
},
|
|
1112
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
1113
1113
|
_id: false;
|
|
1114
|
-
}
|
|
1114
|
+
}>> & Omit<{
|
|
1115
1115
|
description: string;
|
|
1116
1116
|
riskLevel: string;
|
|
1117
1117
|
action: string;
|
package/dist/cvcs/index.cjs
CHANGED
|
@@ -172,6 +172,7 @@ __export(cvcs_exports, {
|
|
|
172
172
|
severityFollowUpSot: () => severityFollowUp_v1_0_0_default,
|
|
173
173
|
sexProviderSubroleSot: () => sexProviderSubrole_v1_0_0_default,
|
|
174
174
|
sharePurposeSot: () => sharePurpose_v1_0_0_default,
|
|
175
|
+
shareResponseReasonSot: () => shareResponseReason_v1_0_0_default,
|
|
175
176
|
signatureMethodSot: () => signatureMethod_v1_0_0_default,
|
|
176
177
|
signatureTypeSot: () => signatureType_v1_0_0_default,
|
|
177
178
|
smtBodyLocationSot: () => smtBodyLocation_v1_0_0_default,
|
|
@@ -7592,6 +7593,228 @@ var caseShareState_v1_0_0_default = {
|
|
|
7592
7593
|
]
|
|
7593
7594
|
};
|
|
7594
7595
|
|
|
7596
|
+
// src/cvcs/shareResponseReason.v1.0.0.json
|
|
7597
|
+
var shareResponseReason_v1_0_0_default = {
|
|
7598
|
+
domain: "share_response_reason",
|
|
7599
|
+
name: "Core Share Response Reason",
|
|
7600
|
+
version: "1.0.0",
|
|
7601
|
+
_status: "CANONICAL \u2014 Notion CVC-306 `core-share_response_reason` v1.1, `vocab_status: active` (minted 2026-08-23 in the Crysta-approved steward batch; FULL AUDIT 2026-09-14, SHARING-FAMILY-AUDIT -> Active / 1.1). Exported from prototype canon @ 6c2cfc0a, where it had sat unexported. The STRUCTURED reasons a recipient gives when responding to an inbound case share: ONE codebook with per-CONTEXT selectability (`field_review` \xB7 `decline_share` \xB7 `reject_share`) carried per entry as `contexts` \u2014 a consumer building a picker for one context filters on it, never on `selectable` alone. Rulings encoded upstream (Crysta 2026-08-23): reasons are CHIPS, not prose \u2014 an optional free-text note may ride alongside, never instead (R14); reasons NEVER travel to the sender in v1 (R16); 'connected with the person and they didn't want services' is an ACCEPT + CVC-219 why-nots, never a decline (R15). WORDING (title, definition, `guidance`, `logicNotes`) is verbatim from the Notion codebook export, which the yaml mirror's own header says wins on wording; `tobyRetention` is the yaml mirror's policy-as-data column. Positional ordinals 306-001..010 are MINTED in codebook row order (the codebook's Code column carries slugs only) and FROZEN at that key assignment: a new reason appends at 306-011+, a published code is never renumbered or reused. MISSINGNESS is canon's v1.1 shape: ONE ingestion-only sentinel, UNK (key `unknown`, `canonicalCode: UNK`, `selectable: false` \u2014 canon: never a picker chip; a reason is required at the act). The codebook's archived row(s) DNC (\"Not a value; never emit\") are OMITTED entirely \u2014 no code is assigned, and none ever shipped in a platform-common release. NUMBER: self-declared `cvc_id: CVC-306` and carried by upstream CVC_INDEX.md (`core-share_response_reason`), but the cvcIndex pin (622410b) predates that row, so the drift gate files this domain INDEX_ABSENT until the next pin refresh promotes it to CANONICAL_BINDING.",
|
|
7602
|
+
_source: "htilabstech/prototype/data/cvcs/core_share_response_reason.yaml @ 6c2cfc0a + htilabstech/prototype/Final CVCs/Sharing (IC-65)/core - share_response_reason \u2014 codebook.csv @ 6c2cfc0a (Notion CVC-306 v1.1; read from origin/main)",
|
|
7603
|
+
contexts: {
|
|
7604
|
+
field_review: "Field review",
|
|
7605
|
+
decline_share: "Decline share",
|
|
7606
|
+
reject_share: "Reject share"
|
|
7607
|
+
},
|
|
7608
|
+
levels: {
|
|
7609
|
+
"0": "Unknown or Missing",
|
|
7610
|
+
"1": "Share response reason"
|
|
7611
|
+
},
|
|
7612
|
+
entries: [
|
|
7613
|
+
{
|
|
7614
|
+
code: "306-000-000-000-000-000-000",
|
|
7615
|
+
key: "missingness_root",
|
|
7616
|
+
title: "Unknown, Redacted, or Missing",
|
|
7617
|
+
selectable: false,
|
|
7618
|
+
parentCode: null,
|
|
7619
|
+
childCodes: [
|
|
7620
|
+
"306-000-000-000-000-000-001"
|
|
7621
|
+
],
|
|
7622
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data. Non-standard variant (Unknown only): canonical CVC-306 v1.1 carries ONE ingestion-only sentinel (UNK, the CVC-216 R1 shape); ANON and DNC are deliberately absent, and the codebook's DNC row is [ARCHIVED]. The sentinel is never a picker chip in any context."
|
|
7623
|
+
},
|
|
7624
|
+
{
|
|
7625
|
+
code: "306-000-000-000-000-000-001",
|
|
7626
|
+
key: "unknown",
|
|
7627
|
+
title: "Unknown",
|
|
7628
|
+
selectable: false,
|
|
7629
|
+
parentCode: "306-000-000-000-000-000-000",
|
|
7630
|
+
childCodes: [],
|
|
7631
|
+
definition: "Unknown or cannot be determined from the available information.",
|
|
7632
|
+
canonicalCode: "UNK",
|
|
7633
|
+
contexts: [],
|
|
7634
|
+
guidance: null,
|
|
7635
|
+
logicNotes: "House missingness convention (L0) \u2014 the ONE sentinel (CVC-216 R1 shape, applied 2026-09-14): reserved for ingested share responses whose source never recorded a reason. Never a picker chip in any context (a reason is required at the act). ANON and DNC deliberately absent (declared).",
|
|
7636
|
+
tobyRetention: {
|
|
7637
|
+
class: "tombstone_retain",
|
|
7638
|
+
stewardFlag: true
|
|
7639
|
+
}
|
|
7640
|
+
},
|
|
7641
|
+
{
|
|
7642
|
+
code: "306-001-000-000-000-000-000",
|
|
7643
|
+
key: "information_incorrect",
|
|
7644
|
+
title: "The information is incorrect",
|
|
7645
|
+
selectable: true,
|
|
7646
|
+
parentCode: null,
|
|
7647
|
+
childCodes: [],
|
|
7648
|
+
definition: "The value is wrong \u2014 it does not match reality as the recipient knows it.",
|
|
7649
|
+
contexts: [
|
|
7650
|
+
"field_review"
|
|
7651
|
+
],
|
|
7652
|
+
guidance: "The highest-signal code for platform accuracy learning: an explicit human judgment that the sender's record is wrong on this point.",
|
|
7653
|
+
logicNotes: "Sibling of core - record_removal_reason's created_in_error / value-incorrect family.",
|
|
7654
|
+
tobyRetention: {
|
|
7655
|
+
class: "supersede"
|
|
7656
|
+
}
|
|
7657
|
+
},
|
|
7658
|
+
{
|
|
7659
|
+
code: "306-002-000-000-000-000-000",
|
|
7660
|
+
key: "not_relevant_for_client",
|
|
7661
|
+
title: "Not relevant for my client",
|
|
7662
|
+
selectable: true,
|
|
7663
|
+
parentCode: null,
|
|
7664
|
+
childCodes: [],
|
|
7665
|
+
definition: "The information may be true, but it doesn't belong in this client's record for the services this agency provides.",
|
|
7666
|
+
contexts: [
|
|
7667
|
+
"field_review"
|
|
7668
|
+
],
|
|
7669
|
+
guidance: "Deliberately distinct from information_incorrect \u2014 relevance and accuracy must never collapse into one code (the RemoveAssetFlow lesson).",
|
|
7670
|
+
logicNotes: null,
|
|
7671
|
+
tobyRetention: {
|
|
7672
|
+
class: "tombstone_retain"
|
|
7673
|
+
}
|
|
7674
|
+
},
|
|
7675
|
+
{
|
|
7676
|
+
code: "306-003-000-000-000-000-000",
|
|
7677
|
+
key: "duplicate_already_have",
|
|
7678
|
+
title: "Duplicate of what we have",
|
|
7679
|
+
selectable: true,
|
|
7680
|
+
parentCode: null,
|
|
7681
|
+
childCodes: [],
|
|
7682
|
+
definition: "The recipient already holds this information (or this whole share duplicates one already received).",
|
|
7683
|
+
contexts: [
|
|
7684
|
+
"field_review",
|
|
7685
|
+
"decline_share"
|
|
7686
|
+
],
|
|
7687
|
+
guidance: "Field review: the incoming value adds nothing. Decline: the share as a whole duplicates a prior one.",
|
|
7688
|
+
logicNotes: null,
|
|
7689
|
+
tobyRetention: {
|
|
7690
|
+
class: "tombstone_retain",
|
|
7691
|
+
engineSignal: "same_thing"
|
|
7692
|
+
}
|
|
7693
|
+
},
|
|
7694
|
+
{
|
|
7695
|
+
code: "306-004-000-000-000-000-000",
|
|
7696
|
+
key: "client_declined_recording",
|
|
7697
|
+
title: "Client asked us not to record this",
|
|
7698
|
+
selectable: true,
|
|
7699
|
+
parentCode: null,
|
|
7700
|
+
childCodes: [],
|
|
7701
|
+
definition: "The client asked this agency not to hold this information on file.",
|
|
7702
|
+
contexts: [
|
|
7703
|
+
"field_review"
|
|
7704
|
+
],
|
|
7705
|
+
guidance: "A consent judgment, not an accuracy judgment \u2014 platform learning must never read this as evidence the value is wrong.",
|
|
7706
|
+
logicNotes: "Interacts with the subpoena-exposure balancing test (GDR \xA7 5.61): the advocate is weighing legal-harm risk against service value.",
|
|
7707
|
+
tobyRetention: {
|
|
7708
|
+
class: "inclusion_register"
|
|
7709
|
+
}
|
|
7710
|
+
},
|
|
7711
|
+
{
|
|
7712
|
+
code: "306-005-000-000-000-000-000",
|
|
7713
|
+
key: "wrong_agency_service_area",
|
|
7714
|
+
title: "Wrong agency / outside our service area",
|
|
7715
|
+
selectable: true,
|
|
7716
|
+
parentCode: null,
|
|
7717
|
+
childCodes: [],
|
|
7718
|
+
definition: "This share should not have come to this agency \u2014 wrong coverage area or wrong service type.",
|
|
7719
|
+
contexts: [
|
|
7720
|
+
"decline_share"
|
|
7721
|
+
],
|
|
7722
|
+
guidance: "Decline-only: a routing miss, decided before engaging the content.",
|
|
7723
|
+
logicNotes: null,
|
|
7724
|
+
tobyRetention: {
|
|
7725
|
+
class: "retain_event"
|
|
7726
|
+
}
|
|
7727
|
+
},
|
|
7728
|
+
{
|
|
7729
|
+
code: "306-006-000-000-000-000-000",
|
|
7730
|
+
key: "not_our_client",
|
|
7731
|
+
title: "Not our client",
|
|
7732
|
+
selectable: true,
|
|
7733
|
+
parentCode: null,
|
|
7734
|
+
childCodes: [],
|
|
7735
|
+
definition: "This person is not (and will not become) a client of this agency.",
|
|
7736
|
+
contexts: [
|
|
7737
|
+
"decline_share"
|
|
7738
|
+
],
|
|
7739
|
+
guidance: "Decline-only. NOT for the turned-away scenario \u2014 if the person was actually reached and chose no services, that's an ACCEPT with offered services + why-nots recorded.",
|
|
7740
|
+
logicNotes: null,
|
|
7741
|
+
tobyRetention: {
|
|
7742
|
+
class: "retain_event"
|
|
7743
|
+
}
|
|
7744
|
+
},
|
|
7745
|
+
{
|
|
7746
|
+
code: "306-007-000-000-000-000-000",
|
|
7747
|
+
key: "sent_in_error",
|
|
7748
|
+
title: "Sent in error",
|
|
7749
|
+
selectable: true,
|
|
7750
|
+
parentCode: null,
|
|
7751
|
+
childCodes: [],
|
|
7752
|
+
definition: "The sender shared this by mistake (confirmed with the sender or evident from the content).",
|
|
7753
|
+
contexts: [
|
|
7754
|
+
"decline_share",
|
|
7755
|
+
"reject_share"
|
|
7756
|
+
],
|
|
7757
|
+
guidance: "Available at decline (before engaging) and reject (discovered during review).",
|
|
7758
|
+
logicNotes: null,
|
|
7759
|
+
tobyRetention: {
|
|
7760
|
+
class: "retain_event"
|
|
7761
|
+
}
|
|
7762
|
+
},
|
|
7763
|
+
{
|
|
7764
|
+
code: "306-008-000-000-000-000-000",
|
|
7765
|
+
key: "no_capacity",
|
|
7766
|
+
title: "No capacity right now",
|
|
7767
|
+
selectable: true,
|
|
7768
|
+
parentCode: null,
|
|
7769
|
+
childCodes: [],
|
|
7770
|
+
definition: "The agency cannot take this on at the moment.",
|
|
7771
|
+
contexts: [
|
|
7772
|
+
"decline_share"
|
|
7773
|
+
],
|
|
7774
|
+
guidance: "Decline-only; honest operational reason \u2014 the sender can re-share later (a re-claim starts fresh).",
|
|
7775
|
+
logicNotes: null,
|
|
7776
|
+
tobyRetention: {
|
|
7777
|
+
class: "retain_event"
|
|
7778
|
+
}
|
|
7779
|
+
},
|
|
7780
|
+
{
|
|
7781
|
+
code: "306-009-000-000-000-000-000",
|
|
7782
|
+
key: "cannot_verify_conflicts",
|
|
7783
|
+
title: "Can't verify \u2014 conflicts with the client's account",
|
|
7784
|
+
selectable: true,
|
|
7785
|
+
parentCode: null,
|
|
7786
|
+
childCodes: [],
|
|
7787
|
+
definition: "The delivered content conflicts with what the client has told this agency directly, and cannot be verified.",
|
|
7788
|
+
contexts: [
|
|
7789
|
+
"reject_share"
|
|
7790
|
+
],
|
|
7791
|
+
guidance: "Reject-only: a whole-share trust judgment after review. High-signal for deconfliction/accuracy learning.",
|
|
7792
|
+
logicNotes: null,
|
|
7793
|
+
tobyRetention: {
|
|
7794
|
+
class: "retain_event"
|
|
7795
|
+
}
|
|
7796
|
+
},
|
|
7797
|
+
{
|
|
7798
|
+
code: "306-010-000-000-000-000-000",
|
|
7799
|
+
key: "wrong_person",
|
|
7800
|
+
title: "Wrong person",
|
|
7801
|
+
selectable: true,
|
|
7802
|
+
parentCode: null,
|
|
7803
|
+
childCodes: [],
|
|
7804
|
+
definition: "Review made clear the shared content is about a different person than the recipient's client.",
|
|
7805
|
+
contexts: [
|
|
7806
|
+
"reject_share"
|
|
7807
|
+
],
|
|
7808
|
+
guidance: "Reject-only. Case identity, never person identity: the fix is rejecting the share \u2014 no cross-agency person merge exists or ever will.",
|
|
7809
|
+
logicNotes: null,
|
|
7810
|
+
tobyRetention: {
|
|
7811
|
+
class: "retain_event",
|
|
7812
|
+
engineSignal: "cross_agency_wrongness"
|
|
7813
|
+
}
|
|
7814
|
+
}
|
|
7815
|
+
]
|
|
7816
|
+
};
|
|
7817
|
+
|
|
7595
7818
|
// src/cvcs/facilitatorEntityType.v1.0.0.json
|
|
7596
7819
|
var facilitatorEntityType_v1_0_0_default = {
|
|
7597
7820
|
domain: "facilitator_entity_type",
|
|
@@ -43758,6 +43981,7 @@ var criminalOrgCategory_v1_0_0_default = {
|
|
|
43758
43981
|
severityFollowUpSot,
|
|
43759
43982
|
sexProviderSubroleSot,
|
|
43760
43983
|
sharePurposeSot,
|
|
43984
|
+
shareResponseReasonSot,
|
|
43761
43985
|
signatureMethodSot,
|
|
43762
43986
|
signatureTypeSot,
|
|
43763
43987
|
smtBodyLocationSot,
|