@htilabs/platform-common-models 0.8.8 → 0.8.10
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/config/index.cjs +191 -0
- package/dist/config/index.cjs.map +1 -0
- package/dist/config/index.d.cts +101 -0
- package/dist/config/index.d.ts +101 -0
- package/dist/config/index.js +165 -0
- package/dist/config/index.js.map +1 -0
- package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-BCj1OWqL.d.cts} +36 -36
- package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-BCj1OWqL.d.ts} +36 -36
- package/dist/cvcs/index.cjs +7253 -6350
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +4459 -3451
- package/dist/cvcs/index.d.ts +4459 -3451
- package/dist/cvcs/index.js +7246 -6350
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-EPjPjR0z.d.cts → index-CoVr1jIV.d.cts} +1 -1
- package/dist/{index-C0J3f169.d.ts → index-I-DiX9eQ.d.ts} +1 -1
- package/dist/index.cjs +3218 -2201
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +290 -148
- package/dist/index.d.ts +290 -148
- package/dist/index.js +7433 -6430
- 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 +7 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +31 -3
- package/src/__tests__/cvc-sot-snapshot.test.ts +10 -2
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/__tests__/runtime-contract-validator.test.ts +556 -0
- package/src/config/fixtures/valid.yaml +90 -0
- package/src/config/index.ts +352 -0
- package/src/cvcs/assertionDomain.v1.0.0.json +18 -0
- package/src/cvcs/childChangeType.v1.0.0.json +152 -0
- package/src/cvcs/hivStatus.v1.0.0.json +71 -0
- package/src/cvcs/immigrationLegalStatusChangeType.v1.0.0.json +143 -0
- package/src/cvcs/index.ts +15 -1
- package/src/cvcs/mentalHealthStatus.v1.0.0.json +71 -0
- package/src/cvcs/programEnrollmentChangeType.v1.0.0.json +134 -0
- package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +161 -0
- package/src/cvcs/{serviceCategories.v1.1.0.json → serviceCategories.v1.0.0.json} +1091 -1091
- package/src/cvcs/specialNeedsDisabilities.v1.0.0.json +143 -0
- package/src/generated/cvc-enums.ts +300 -144
package/dist/models/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-BCj1OWqL.cjs';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-CoVr1jIV.cjs';
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-BCj1OWqL.js';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-I-DiX9eQ.js';
|
package/dist/schemas/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as mongoose from 'mongoose';
|
|
2
2
|
import { InferRawDocType, Schema } from 'mongoose';
|
|
3
|
-
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-
|
|
3
|
+
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-BCj1OWqL.cjs';
|
|
4
4
|
|
|
5
5
|
declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
6
6
|
_id: false;
|
|
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
28
28
|
placeId?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
|
-
},
|
|
31
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
32
32
|
_id: false;
|
|
33
|
-
}
|
|
33
|
+
}> & Omit<{
|
|
34
34
|
formattedAddress?: string | null | undefined;
|
|
35
35
|
street?: string | null | undefined;
|
|
36
36
|
city?: string | null | undefined;
|
|
@@ -88,9 +88,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
88
88
|
isAnonymous?: boolean | null | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
id: string;
|
|
91
|
-
},
|
|
91
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
92
92
|
_id: false;
|
|
93
|
-
}
|
|
93
|
+
}> & Omit<{
|
|
94
94
|
alias?: boolean | null | undefined;
|
|
95
95
|
firstName?: string | null | undefined;
|
|
96
96
|
lastName?: string | null | undefined;
|
|
@@ -136,9 +136,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
136
136
|
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
137
137
|
}, {
|
|
138
138
|
id: string;
|
|
139
|
-
},
|
|
139
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
140
140
|
_id: false;
|
|
141
|
-
}
|
|
141
|
+
}> & Omit<{
|
|
142
142
|
number?: string | null | undefined;
|
|
143
143
|
type?: string | null | undefined;
|
|
144
144
|
safeToContact?: boolean | null | undefined;
|
|
@@ -172,9 +172,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
172
172
|
address?: string | null | undefined;
|
|
173
173
|
}, {
|
|
174
174
|
id: string;
|
|
175
|
-
},
|
|
175
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
176
176
|
_id: false;
|
|
177
|
-
}
|
|
177
|
+
}> & Omit<{
|
|
178
178
|
type?: string | null | undefined;
|
|
179
179
|
safeToContact?: boolean | null | undefined;
|
|
180
180
|
address?: string | null | undefined;
|
|
@@ -246,9 +246,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
246
246
|
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
247
|
}, {
|
|
248
248
|
id: string;
|
|
249
|
-
},
|
|
249
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
250
250
|
_id: false;
|
|
251
|
-
}
|
|
251
|
+
}> & Omit<{
|
|
252
252
|
race: number[];
|
|
253
253
|
ethnicity: number[];
|
|
254
254
|
accommodations: string[];
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as mongoose from 'mongoose';
|
|
2
2
|
import { InferRawDocType, Schema } from 'mongoose';
|
|
3
|
-
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-
|
|
3
|
+
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-BCj1OWqL.js';
|
|
4
4
|
|
|
5
5
|
declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
6
6
|
_id: false;
|
|
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
|
|
|
28
28
|
placeId?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
id: string;
|
|
31
|
-
},
|
|
31
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
32
32
|
_id: false;
|
|
33
|
-
}
|
|
33
|
+
}> & Omit<{
|
|
34
34
|
formattedAddress?: string | null | undefined;
|
|
35
35
|
street?: string | null | undefined;
|
|
36
36
|
city?: string | null | undefined;
|
|
@@ -88,9 +88,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
88
88
|
isAnonymous?: boolean | null | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
id: string;
|
|
91
|
-
},
|
|
91
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
92
92
|
_id: false;
|
|
93
|
-
}
|
|
93
|
+
}> & Omit<{
|
|
94
94
|
alias?: boolean | null | undefined;
|
|
95
95
|
firstName?: string | null | undefined;
|
|
96
96
|
lastName?: string | null | undefined;
|
|
@@ -136,9 +136,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
136
136
|
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
137
137
|
}, {
|
|
138
138
|
id: string;
|
|
139
|
-
},
|
|
139
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
140
140
|
_id: false;
|
|
141
|
-
}
|
|
141
|
+
}> & Omit<{
|
|
142
142
|
number?: string | null | undefined;
|
|
143
143
|
type?: string | null | undefined;
|
|
144
144
|
safeToContact?: boolean | null | undefined;
|
|
@@ -172,9 +172,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
172
172
|
address?: string | null | undefined;
|
|
173
173
|
}, {
|
|
174
174
|
id: string;
|
|
175
|
-
},
|
|
175
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
176
176
|
_id: false;
|
|
177
|
-
}
|
|
177
|
+
}> & Omit<{
|
|
178
178
|
type?: string | null | undefined;
|
|
179
179
|
safeToContact?: boolean | null | undefined;
|
|
180
180
|
address?: string | null | undefined;
|
|
@@ -246,9 +246,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
246
246
|
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
247
|
}, {
|
|
248
248
|
id: string;
|
|
249
|
-
},
|
|
249
|
+
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
250
250
|
_id: false;
|
|
251
|
-
}
|
|
251
|
+
}> & Omit<{
|
|
252
252
|
race: number[];
|
|
253
253
|
ethnicity: number[];
|
|
254
254
|
accommodations: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htilabs/platform-common-models",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
4
4
|
"description": "Shared constants, types, and models for HTI Labs applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -46,6 +46,11 @@
|
|
|
46
46
|
"types": "./dist/cvcs/index.d.ts",
|
|
47
47
|
"import": "./dist/cvcs/index.js",
|
|
48
48
|
"require": "./dist/cvcs/index.cjs"
|
|
49
|
+
},
|
|
50
|
+
"./config": {
|
|
51
|
+
"types": "./dist/config/index.d.ts",
|
|
52
|
+
"import": "./dist/config/index.js",
|
|
53
|
+
"require": "./dist/config/index.cjs"
|
|
49
54
|
}
|
|
50
55
|
},
|
|
51
56
|
"files": [
|
|
@@ -90,6 +95,7 @@
|
|
|
90
95
|
"vitest": "^1.6.1"
|
|
91
96
|
},
|
|
92
97
|
"dependencies": {
|
|
98
|
+
"yaml": "^2.7.0",
|
|
93
99
|
"zod": "^3.22.0"
|
|
94
100
|
},
|
|
95
101
|
"peerDependencies": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"service_categories": {
|
|
14
14
|
"count": 151,
|
|
15
|
-
"hash": "
|
|
15
|
+
"hash": "a7c7a9b09d46c5ba8f5608d3e44331b862b07d67fac969f4bf204dca82b5fbd5"
|
|
16
16
|
},
|
|
17
17
|
"incident_participation_roles": {
|
|
18
18
|
"count": 19,
|
|
@@ -511,8 +511,8 @@
|
|
|
511
511
|
"hash": "4341619e6016822fcc353987a635421c767391a85f2ff7602726ca02bfa0f4f7"
|
|
512
512
|
},
|
|
513
513
|
"assertion_domain": {
|
|
514
|
-
"count":
|
|
515
|
-
"hash": "
|
|
514
|
+
"count": 70,
|
|
515
|
+
"hash": "e4c8d543c4e99b1e21b304ab1ae07396231d2147f9f9ce30c7ede235b08ebb14"
|
|
516
516
|
},
|
|
517
517
|
"activity_type": {
|
|
518
518
|
"count": 14,
|
|
@@ -541,6 +541,34 @@
|
|
|
541
541
|
"session_note_visibility": {
|
|
542
542
|
"count": 7,
|
|
543
543
|
"hash": "6ad8e821e790b3ba303578c1ea78081d48264a96765299002b5545a7e78be3d0"
|
|
544
|
+
},
|
|
545
|
+
"special_needs_disabilities": {
|
|
546
|
+
"count": 14,
|
|
547
|
+
"hash": "d7309a7113de4b6e113126e952fe32b0f61daaef35f8f5e4033815f62f276320"
|
|
548
|
+
},
|
|
549
|
+
"hiv_status": {
|
|
550
|
+
"count": 6,
|
|
551
|
+
"hash": "18662b98fd25c6e68f556a3b4980801a5d807acbadaff759284a006af8dd5e39"
|
|
552
|
+
},
|
|
553
|
+
"mental_health_status": {
|
|
554
|
+
"count": 6,
|
|
555
|
+
"hash": "fa57c54bb1f0a92c5311ced4c24e22594ed47c206b84bbc33a951eedc9c226b2"
|
|
556
|
+
},
|
|
557
|
+
"child_change_type": {
|
|
558
|
+
"count": 15,
|
|
559
|
+
"hash": "194d6bc1244d21e696c7575936d56e8ce96a342c28ecef030517727ff50753fd"
|
|
560
|
+
},
|
|
561
|
+
"immigration_legal_status_change_type": {
|
|
562
|
+
"count": 14,
|
|
563
|
+
"hash": "022a25d6357bb3c883931daafa36d9a6f3c235913ef53fdf5f78959c442e9bb8"
|
|
564
|
+
},
|
|
565
|
+
"program_enrollment_change_type": {
|
|
566
|
+
"count": 13,
|
|
567
|
+
"hash": "5aa518bdbfded8ea20d5895c5bbd45d4b238356273e5452e52b93dcbbff250e4"
|
|
568
|
+
},
|
|
569
|
+
"romantic_relationship_change_type": {
|
|
570
|
+
"count": 16,
|
|
571
|
+
"hash": "861a5584a875057a67e0e8727b92c64d48be64a7dba8a1eb4af19268cf6b1ccb"
|
|
544
572
|
}
|
|
545
573
|
}
|
|
546
574
|
}
|
|
@@ -66,7 +66,7 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
66
66
|
// for the Thread th-epqet.3 7-bucket lifecycle = 17.
|
|
67
67
|
{ file: "serviceStates.v1.0.0.json", domain: "service_states", expectedCount: 17 },
|
|
68
68
|
// Spec §8.1 — "Entries: 147" + 4 missingness = 151
|
|
69
|
-
{ file: "serviceCategories.v1.
|
|
69
|
+
{ file: "serviceCategories.v1.0.0.json", domain: "service_categories", expectedCount: 151 },
|
|
70
70
|
// CVC-69 — 4 group parents + 11 role leaves + 4 missingness = 19
|
|
71
71
|
{
|
|
72
72
|
file: "incidentParticipationRoles.v1.0.0.json",
|
|
@@ -586,7 +586,7 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
586
586
|
// root + 3 canonical missingness children = 16. CVC number is PROVISIONAL
|
|
587
587
|
// pending ratification.
|
|
588
588
|
{ file: "housingSubsidyTypes.v1.0.0.json", domain: "housing_subsidy_types", expectedCount: 16 },
|
|
589
|
-
{ file: "assertionDomain.v1.0.0.json", domain: "assertion_domain", expectedCount:
|
|
589
|
+
{ file: "assertionDomain.v1.0.0.json", domain: "assertion_domain", expectedCount: 70 },
|
|
590
590
|
{ file: "activityType.v1.0.0.json", domain: "activity_type", expectedCount: 14 },
|
|
591
591
|
{ file: "provenanceSourceId.v1.0.0.json", domain: "provenance_source_id", expectedCount: 13 },
|
|
592
592
|
{ file: "radiusBucket.v1.0.0.json", domain: "radius_bucket", expectedCount: 9 },
|
|
@@ -594,6 +594,14 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
594
594
|
{ file: "suggestionSource.v1.0.0.json", domain: "suggestion_source", expectedCount: 6 },
|
|
595
595
|
{ file: "roiMethod.v1.0.0.json", domain: "roi_method", expectedCount: 10 },
|
|
596
596
|
{ file: "sessionNoteVisibility.v1.0.0.json", domain: "session_note_visibility", expectedCount: 7 },
|
|
597
|
+
// DRAFT-TEMPORARY prototype direct-imports (0.8.9; provisional 900+ ids; pending Notion ratification).
|
|
598
|
+
{ file: "specialNeedsDisabilities.v1.0.0.json", domain: "special_needs_disabilities", expectedCount: 14 },
|
|
599
|
+
{ file: "hivStatus.v1.0.0.json", domain: "hiv_status", expectedCount: 6 },
|
|
600
|
+
{ file: "mentalHealthStatus.v1.0.0.json", domain: "mental_health_status", expectedCount: 6 },
|
|
601
|
+
{ file: "childChangeType.v1.0.0.json", domain: "child_change_type", expectedCount: 15 },
|
|
602
|
+
{ file: "immigrationLegalStatusChangeType.v1.0.0.json", domain: "immigration_legal_status_change_type", expectedCount: 14 },
|
|
603
|
+
{ file: "programEnrollmentChangeType.v1.0.0.json", domain: "program_enrollment_change_type", expectedCount: 13 },
|
|
604
|
+
{ file: "romanticRelationshipChangeType.v1.0.0.json", domain: "romantic_relationship_change_type", expectedCount: 16 },
|
|
597
605
|
] as const;
|
|
598
606
|
|
|
599
607
|
// ─── Helpers ────────────────────────────────────────────────────────────────
|
|
@@ -50,7 +50,7 @@ interface SotFile {
|
|
|
50
50
|
const SOT_FILES: readonly SotFile[] = [
|
|
51
51
|
{ file: "serviceMechanisms.v1.0.0.json", expectedDomain: "service_mechanisms" },
|
|
52
52
|
{ file: "serviceStates.v1.0.0.json", expectedDomain: "service_states" },
|
|
53
|
-
{ file: "serviceCategories.v1.
|
|
53
|
+
{ file: "serviceCategories.v1.0.0.json", expectedDomain: "service_categories" },
|
|
54
54
|
{ file: "incidentParticipationRoles.v1.0.0.json", expectedDomain: "incident_participation_roles" },
|
|
55
55
|
{ file: "incidentInvolvementRoles.v1.0.0.json", expectedDomain: "incident_involvement_roles" },
|
|
56
56
|
{ file: "raceEthnicity.v1.0.0.json", expectedDomain: "race_ethnicity" },
|
|
@@ -255,7 +255,7 @@ describe("CVC structural invariants (locked spec §4)", () => {
|
|
|
255
255
|
// Guard against a future regression where CvcEntrySchema stops passing
|
|
256
256
|
// domain-specific fields through. Without this, C6 would silently pass
|
|
257
257
|
// on an empty input.
|
|
258
|
-
const raw = loadSot("serviceCategories.v1.
|
|
258
|
+
const raw = loadSot("serviceCategories.v1.0.0.json");
|
|
259
259
|
const envelope = CvcEnvelopeSchema.parse(raw);
|
|
260
260
|
const withRelevant = envelope.entries.filter((e) => {
|
|
261
261
|
const field = (e as unknown as Record<string, unknown>)[
|