@htilabs/platform-common-models 0.8.12 → 0.8.14
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/README.md +44 -0
- package/dist/config/index.cjs +4 -0
- package/dist/config/index.cjs.map +1 -1
- package/dist/config/index.d.cts +16 -1
- package/dist/config/index.d.ts +16 -1
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -1
- package/dist/constants/index.cjs +143 -287
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +143 -275
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +12173 -969
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +14927 -2662
- package/dist/cvcs/index.d.ts +14927 -2662
- package/dist/cvcs/index.js +12141 -968
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-I-DiX9eQ.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-CoVr1jIV.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +13297 -1361
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1118 -130
- package/dist/index.d.ts +1118 -130
- package/dist/index.js +13239 -1346
- 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/mongo/index.cjs +383 -0
- package/dist/mongo/index.cjs.map +1 -0
- package/dist/mongo/index.d.cts +221 -0
- package/dist/mongo/index.d.ts +221 -0
- package/dist/mongo/index.js +351 -0
- package/dist/mongo/index.js.map +1 -0
- package/dist/{platform-auth-BwfZ0bxU.d.cts → platform-auth-AsfnIXfK.d.cts} +2 -74
- package/dist/{platform-auth-BwfZ0bxU.d.ts → platform-auth-AsfnIXfK.d.ts} +2 -74
- package/dist/schemas/index.cjs +5 -153
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +29 -25
- package/dist/schemas/index.d.ts +29 -25
- package/dist/schemas/index.js +5 -153
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/index.cjs +0 -3
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +0 -3
- package/dist/services/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +13 -1
- package/src/__sot__/README.md +56 -0
- package/src/__sot__/coreIndicators.pin.json +220 -0
- package/src/__sot__/cvcIndex.pin.json +268 -0
- package/src/__sot__/scoringEmits.pin.json +176 -0
- package/src/__tests__/__snapshots__/cvc-sot.snap +125 -37
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +326 -0
- package/src/__tests__/cvc-drift-gate.test.ts +607 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +50 -8
- package/src/__tests__/cvc-structural.test.ts +43 -1
- package/src/__tests__/mongo-verifier.test.ts +502 -0
- package/src/config/index.ts +8 -2
- package/src/constants/ic.ts +213 -333
- package/src/constants/service-catalog.ts +4 -2
- package/src/cvcs/adminRoles.v1.0.0.json +153 -0
- package/src/cvcs/administeringJurisdiction.v1.0.0.json +40 -40
- package/src/cvcs/ageBinReporting.v1.0.0.json +40 -40
- package/src/cvcs/assertionDomain.v1.1.0.json +78 -105
- package/src/cvcs/assertionStatus.v1.0.0.json +80 -0
- package/src/cvcs/citizenship.v1.0.0.json +3062 -0
- package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
- package/src/cvcs/coreDhState.v1.0.0.json +113 -0
- package/src/cvcs/coreIndicators.v1.0.0.json +2905 -0
- package/src/cvcs/createdBySystem.v1.0.0.json +89 -0
- package/src/cvcs/employmentStatus.v1.0.0.json +60 -60
- package/src/cvcs/exploitationType.v1.0.0.json +106 -0
- package/src/cvcs/facilitatorEntityType.v1.0.0.json +40 -40
- package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +50 -50
- package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
- package/src/cvcs/hmisSex.v1.0.0.json +89 -0
- package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
- package/src/cvcs/housingSubsidyTypes.v1.0.0.json +26 -24
- package/src/cvcs/incarcerationEpisodeType.v1.0.0.json +106 -0
- package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +40 -40
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +40 -40
- package/src/cvcs/index.ts +73 -2
- package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +106 -0
- package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
- package/src/cvcs/militaryBranch.v1.0.0.json +20 -20
- package/src/cvcs/militaryStatus.v1.0.0.json +20 -20
- package/src/cvcs/minorAdultStatus.v1.0.0.json +80 -0
- package/src/cvcs/nameType.v1.0.0.json +40 -40
- package/src/cvcs/offenderStatus.v1.0.0.json +40 -40
- package/src/cvcs/offenderStatusFamily.v1.0.0.json +36 -36
- package/src/cvcs/poPetitionBasis.v1.0.0.json +96 -0
- package/src/cvcs/poStatus.v1.0.0.json +144 -0
- package/src/cvcs/poViolationStatus.v1.0.0.json +76 -0
- package/src/cvcs/radiusBucket.v1.0.0.json +23 -11
- package/src/cvcs/recencyBand.v1.0.0.json +126 -42
- package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
- package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -0
- package/src/cvcs/roiScope.v1.0.0.json +111 -3
- package/src/cvcs/roiStatus.v1.0.0.json +18 -10
- package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +2 -1
- package/src/cvcs/serviceCategories.v1.0.0.json +44 -44
- package/src/cvcs/serviceDeliveryChannel.v1.0.0.json +147 -0
- package/src/cvcs/serviceMechanisms.v1.0.0.json +36 -36
- package/src/cvcs/serviceStates.v1.0.0.json +40 -40
- package/src/cvcs/sessionTemplate.v1.0.0.json +261 -0
- package/src/cvcs/sexProviderSubrole.v1.0.0.json +35 -28
- package/src/cvcs/smtType.v1.0.0.json +40 -40
- package/src/cvcs/sourceCategory.v1.1.0.json +8 -1
- package/src/cvcs/sourceInstrument.v1.0.0.json +458 -0
- package/src/cvcs/sourceSystem.v1.0.0.json +203 -0
- package/src/cvcs/subjectType.v1.0.0.json +80 -0
- package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
- package/src/cvcs/userRoles.v1.0.0.json +203 -0
- package/src/cvcs/victimStatusFamily.v1.0.0.json +40 -40
- package/src/cvcs/whyNots.v1.0.0.json +385 -0
- package/src/generated/cvc-enums.ts +1121 -127
- package/src/index.ts +20 -0
- package/src/mongo/catalog.ts +65 -0
- package/src/mongo/contract.ts +157 -0
- package/src/mongo/index.ts +343 -0
- package/src/mongo/similarity.ts +133 -0
- package/src/mongo/uri.ts +53 -0
- package/src/schemas/common.ts +4 -0
- package/src/services/cvcRegistryService.ts +1 -1
- package/src/cvcs/riskBand.v1.0.0.json +0 -98
- package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-0BIB9sen.d.cts} +8 -8
- package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-0BIB9sen.d.ts} +8 -8
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-0BIB9sen.cjs';
|
|
4
4
|
|
|
5
5
|
declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
6
6
|
_id: false;
|
|
@@ -76,6 +76,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
76
76
|
isPrimary?: boolean | null | undefined;
|
|
77
77
|
isUnknown?: boolean | null | undefined;
|
|
78
78
|
isAnonymous?: boolean | null | undefined;
|
|
79
|
+
isMononym?: boolean | null | undefined;
|
|
79
80
|
}, mongoose.Document<unknown, {}, {
|
|
80
81
|
alias?: boolean | null | undefined;
|
|
81
82
|
firstName?: string | null | undefined;
|
|
@@ -86,6 +87,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
86
87
|
isPrimary?: boolean | null | undefined;
|
|
87
88
|
isUnknown?: boolean | null | undefined;
|
|
88
89
|
isAnonymous?: boolean | null | undefined;
|
|
90
|
+
isMononym?: boolean | null | undefined;
|
|
89
91
|
}, {
|
|
90
92
|
id: string;
|
|
91
93
|
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
@@ -100,6 +102,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
100
102
|
isPrimary?: boolean | null | undefined;
|
|
101
103
|
isUnknown?: boolean | null | undefined;
|
|
102
104
|
isAnonymous?: boolean | null | undefined;
|
|
105
|
+
isMononym?: boolean | null | undefined;
|
|
103
106
|
} & {
|
|
104
107
|
_id: mongoose.Types.ObjectId;
|
|
105
108
|
} & {
|
|
@@ -116,6 +119,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
116
119
|
isPrimary?: boolean | null | undefined;
|
|
117
120
|
isUnknown?: boolean | null | undefined;
|
|
118
121
|
isAnonymous?: boolean | null | undefined;
|
|
122
|
+
isMononym?: boolean | null | undefined;
|
|
119
123
|
} & {
|
|
120
124
|
_id: mongoose.Types.ObjectId;
|
|
121
125
|
} & {
|
|
@@ -128,12 +132,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
128
132
|
number?: string | null | undefined;
|
|
129
133
|
type?: string | null | undefined;
|
|
130
134
|
safeToContact?: boolean | null | undefined;
|
|
131
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
132
136
|
}, mongoose.Document<unknown, {}, {
|
|
133
137
|
number?: string | null | undefined;
|
|
134
138
|
type?: string | null | undefined;
|
|
135
139
|
safeToContact?: boolean | null | undefined;
|
|
136
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
137
141
|
}, {
|
|
138
142
|
id: string;
|
|
139
143
|
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
@@ -142,7 +146,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
142
146
|
number?: string | null | undefined;
|
|
143
147
|
type?: string | null | undefined;
|
|
144
148
|
safeToContact?: boolean | null | undefined;
|
|
145
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
146
150
|
} & {
|
|
147
151
|
_id: mongoose.Types.ObjectId;
|
|
148
152
|
} & {
|
|
@@ -153,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
153
157
|
number?: string | null | undefined;
|
|
154
158
|
type?: string | null | undefined;
|
|
155
159
|
safeToContact?: boolean | null | undefined;
|
|
156
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
157
161
|
} & {
|
|
158
162
|
_id: mongoose.Types.ObjectId;
|
|
159
163
|
} & {
|
|
@@ -215,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
215
219
|
raceOtherText?: string | null | undefined;
|
|
216
220
|
genderOtherText?: string | null | undefined;
|
|
217
221
|
accommodationOtherText?: string | null | undefined;
|
|
218
|
-
ageDataQuality?: "
|
|
219
|
-
sexDataQuality?: "
|
|
220
|
-
genderDataQuality?: "
|
|
221
|
-
raceDataQuality?: "
|
|
222
|
-
ethnicityDataQuality?: "
|
|
222
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
223
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
224
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
225
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
226
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
223
227
|
}, mongoose.Document<unknown, {}, {
|
|
224
228
|
race: number[];
|
|
225
229
|
ethnicity: number[];
|
|
@@ -239,11 +243,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
239
243
|
raceOtherText?: string | null | undefined;
|
|
240
244
|
genderOtherText?: string | null | undefined;
|
|
241
245
|
accommodationOtherText?: string | null | undefined;
|
|
242
|
-
ageDataQuality?: "
|
|
243
|
-
sexDataQuality?: "
|
|
244
|
-
genderDataQuality?: "
|
|
245
|
-
raceDataQuality?: "
|
|
246
|
-
ethnicityDataQuality?: "
|
|
246
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
247
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
248
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
249
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
250
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
247
251
|
}, {
|
|
248
252
|
id: string;
|
|
249
253
|
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
@@ -267,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
267
271
|
raceOtherText?: string | null | undefined;
|
|
268
272
|
genderOtherText?: string | null | undefined;
|
|
269
273
|
accommodationOtherText?: string | null | undefined;
|
|
270
|
-
ageDataQuality?: "
|
|
271
|
-
sexDataQuality?: "
|
|
272
|
-
genderDataQuality?: "
|
|
273
|
-
raceDataQuality?: "
|
|
274
|
-
ethnicityDataQuality?: "
|
|
274
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
275
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
276
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
277
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
278
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
275
279
|
} & {
|
|
276
280
|
_id: mongoose.Types.ObjectId;
|
|
277
281
|
} & {
|
|
@@ -297,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
297
301
|
raceOtherText?: string | null | undefined;
|
|
298
302
|
genderOtherText?: string | null | undefined;
|
|
299
303
|
accommodationOtherText?: string | null | undefined;
|
|
300
|
-
ageDataQuality?: "
|
|
301
|
-
sexDataQuality?: "
|
|
302
|
-
genderDataQuality?: "
|
|
303
|
-
raceDataQuality?: "
|
|
304
|
-
ethnicityDataQuality?: "
|
|
304
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
305
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
306
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
307
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
308
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
305
309
|
} & {
|
|
306
310
|
_id: mongoose.Types.ObjectId;
|
|
307
311
|
} & {
|
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-0BIB9sen.js';
|
|
4
4
|
|
|
5
5
|
declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
6
6
|
_id: false;
|
|
@@ -76,6 +76,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
76
76
|
isPrimary?: boolean | null | undefined;
|
|
77
77
|
isUnknown?: boolean | null | undefined;
|
|
78
78
|
isAnonymous?: boolean | null | undefined;
|
|
79
|
+
isMononym?: boolean | null | undefined;
|
|
79
80
|
}, mongoose.Document<unknown, {}, {
|
|
80
81
|
alias?: boolean | null | undefined;
|
|
81
82
|
firstName?: string | null | undefined;
|
|
@@ -86,6 +87,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
86
87
|
isPrimary?: boolean | null | undefined;
|
|
87
88
|
isUnknown?: boolean | null | undefined;
|
|
88
89
|
isAnonymous?: boolean | null | undefined;
|
|
90
|
+
isMononym?: boolean | null | undefined;
|
|
89
91
|
}, {
|
|
90
92
|
id: string;
|
|
91
93
|
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
@@ -100,6 +102,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
100
102
|
isPrimary?: boolean | null | undefined;
|
|
101
103
|
isUnknown?: boolean | null | undefined;
|
|
102
104
|
isAnonymous?: boolean | null | undefined;
|
|
105
|
+
isMononym?: boolean | null | undefined;
|
|
103
106
|
} & {
|
|
104
107
|
_id: mongoose.Types.ObjectId;
|
|
105
108
|
} & {
|
|
@@ -116,6 +119,7 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
116
119
|
isPrimary?: boolean | null | undefined;
|
|
117
120
|
isUnknown?: boolean | null | undefined;
|
|
118
121
|
isAnonymous?: boolean | null | undefined;
|
|
122
|
+
isMononym?: boolean | null | undefined;
|
|
119
123
|
} & {
|
|
120
124
|
_id: mongoose.Types.ObjectId;
|
|
121
125
|
} & {
|
|
@@ -128,12 +132,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
128
132
|
number?: string | null | undefined;
|
|
129
133
|
type?: string | null | undefined;
|
|
130
134
|
safeToContact?: boolean | null | undefined;
|
|
131
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
132
136
|
}, mongoose.Document<unknown, {}, {
|
|
133
137
|
number?: string | null | undefined;
|
|
134
138
|
type?: string | null | undefined;
|
|
135
139
|
safeToContact?: boolean | null | undefined;
|
|
136
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
137
141
|
}, {
|
|
138
142
|
id: string;
|
|
139
143
|
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
@@ -142,7 +146,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
142
146
|
number?: string | null | undefined;
|
|
143
147
|
type?: string | null | undefined;
|
|
144
148
|
safeToContact?: boolean | null | undefined;
|
|
145
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
146
150
|
} & {
|
|
147
151
|
_id: mongoose.Types.ObjectId;
|
|
148
152
|
} & {
|
|
@@ -153,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
153
157
|
number?: string | null | undefined;
|
|
154
158
|
type?: string | null | undefined;
|
|
155
159
|
safeToContact?: boolean | null | undefined;
|
|
156
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
157
161
|
} & {
|
|
158
162
|
_id: mongoose.Types.ObjectId;
|
|
159
163
|
} & {
|
|
@@ -215,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
215
219
|
raceOtherText?: string | null | undefined;
|
|
216
220
|
genderOtherText?: string | null | undefined;
|
|
217
221
|
accommodationOtherText?: string | null | undefined;
|
|
218
|
-
ageDataQuality?: "
|
|
219
|
-
sexDataQuality?: "
|
|
220
|
-
genderDataQuality?: "
|
|
221
|
-
raceDataQuality?: "
|
|
222
|
-
ethnicityDataQuality?: "
|
|
222
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
223
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
224
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
225
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
226
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
223
227
|
}, mongoose.Document<unknown, {}, {
|
|
224
228
|
race: number[];
|
|
225
229
|
ethnicity: number[];
|
|
@@ -239,11 +243,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
239
243
|
raceOtherText?: string | null | undefined;
|
|
240
244
|
genderOtherText?: string | null | undefined;
|
|
241
245
|
accommodationOtherText?: string | null | undefined;
|
|
242
|
-
ageDataQuality?: "
|
|
243
|
-
sexDataQuality?: "
|
|
244
|
-
genderDataQuality?: "
|
|
245
|
-
raceDataQuality?: "
|
|
246
|
-
ethnicityDataQuality?: "
|
|
246
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
247
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
248
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
249
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
250
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
247
251
|
}, {
|
|
248
252
|
id: string;
|
|
249
253
|
}, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
|
|
@@ -267,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
267
271
|
raceOtherText?: string | null | undefined;
|
|
268
272
|
genderOtherText?: string | null | undefined;
|
|
269
273
|
accommodationOtherText?: string | null | undefined;
|
|
270
|
-
ageDataQuality?: "
|
|
271
|
-
sexDataQuality?: "
|
|
272
|
-
genderDataQuality?: "
|
|
273
|
-
raceDataQuality?: "
|
|
274
|
-
ethnicityDataQuality?: "
|
|
274
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
275
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
276
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
277
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
278
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
275
279
|
} & {
|
|
276
280
|
_id: mongoose.Types.ObjectId;
|
|
277
281
|
} & {
|
|
@@ -297,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
297
301
|
raceOtherText?: string | null | undefined;
|
|
298
302
|
genderOtherText?: string | null | undefined;
|
|
299
303
|
accommodationOtherText?: string | null | undefined;
|
|
300
|
-
ageDataQuality?: "
|
|
301
|
-
sexDataQuality?: "
|
|
302
|
-
genderDataQuality?: "
|
|
303
|
-
raceDataQuality?: "
|
|
304
|
-
ethnicityDataQuality?: "
|
|
304
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
305
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
306
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
307
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
308
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
305
309
|
} & {
|
|
306
310
|
_id: mongoose.Types.ObjectId;
|
|
307
311
|
} & {
|
package/dist/schemas/index.js
CHANGED
|
@@ -2974,158 +2974,6 @@ var CVC_157_LABELS = {
|
|
|
2974
2974
|
[CVC_157_RELATIONSHIP_STATUS.DNC]: "Declined to answer",
|
|
2975
2975
|
[CVC_157_RELATIONSHIP_STATUS.ANON]: "Anonymous/Not collected"
|
|
2976
2976
|
};
|
|
2977
|
-
var CVC_158_CUSTODY_STATUS = {
|
|
2978
|
-
FULL: "full",
|
|
2979
|
-
SHARED: "shared",
|
|
2980
|
-
NONE: "none",
|
|
2981
|
-
PENDING: "pending",
|
|
2982
|
-
UNKNOWN: "unknown"
|
|
2983
|
-
};
|
|
2984
|
-
var CVC_158_VALUES = [
|
|
2985
|
-
CVC_158_CUSTODY_STATUS.FULL,
|
|
2986
|
-
CVC_158_CUSTODY_STATUS.SHARED,
|
|
2987
|
-
CVC_158_CUSTODY_STATUS.NONE,
|
|
2988
|
-
CVC_158_CUSTODY_STATUS.PENDING,
|
|
2989
|
-
CVC_158_CUSTODY_STATUS.UNKNOWN
|
|
2990
|
-
];
|
|
2991
|
-
var CVC_158_LABELS = {
|
|
2992
|
-
[CVC_158_CUSTODY_STATUS.FULL]: "Full custody",
|
|
2993
|
-
[CVC_158_CUSTODY_STATUS.SHARED]: "Shared custody",
|
|
2994
|
-
[CVC_158_CUSTODY_STATUS.NONE]: "No custody",
|
|
2995
|
-
[CVC_158_CUSTODY_STATUS.PENDING]: "Custody pending",
|
|
2996
|
-
[CVC_158_CUSTODY_STATUS.UNKNOWN]: "Unknown"
|
|
2997
|
-
};
|
|
2998
|
-
var CVC_159_CATEGORY = {
|
|
2999
|
-
HOUSEHOLD_LIVING: "1.1_HOUSEHOLD_LIVING",
|
|
3000
|
-
CHILD_FAMILY: "1.2_CHILD_FAMILY",
|
|
3001
|
-
LEGAL_FORMAL: "1.3_LEGAL_FORMAL",
|
|
3002
|
-
FINANCIAL_RESOURCE: "1.4_FINANCIAL_RESOURCE",
|
|
3003
|
-
ACCESS_LOGISTICS: "1.5_ACCESS_LOGISTICS",
|
|
3004
|
-
OTHER_FALLBACK: "1.6_OTHER_FALLBACK",
|
|
3005
|
-
MISSINGNESS: "0_MISSINGNESS"
|
|
3006
|
-
};
|
|
3007
|
-
var CVC_159_CATEGORY_LABELS = {
|
|
3008
|
-
[CVC_159_CATEGORY.HOUSEHOLD_LIVING]: "Household / Living Ties",
|
|
3009
|
-
[CVC_159_CATEGORY.CHILD_FAMILY]: "Child / Family Ties",
|
|
3010
|
-
[CVC_159_CATEGORY.LEGAL_FORMAL]: "Legal / Formal Ties",
|
|
3011
|
-
[CVC_159_CATEGORY.FINANCIAL_RESOURCE]: "Financial / Resource Ties",
|
|
3012
|
-
[CVC_159_CATEGORY.ACCESS_LOGISTICS]: "Access / Logistics Ties",
|
|
3013
|
-
[CVC_159_CATEGORY.OTHER_FALLBACK]: "Other",
|
|
3014
|
-
[CVC_159_CATEGORY.MISSINGNESS]: "Missingness"
|
|
3015
|
-
};
|
|
3016
|
-
var CVC_159_RELATIONSHIP_TIES = {
|
|
3017
|
-
// Missingness (Level 0)
|
|
3018
|
-
DNC: "DNC",
|
|
3019
|
-
ANON: "ANON",
|
|
3020
|
-
UNK: "UNK",
|
|
3021
|
-
// Household / Living (1.1)
|
|
3022
|
-
COHABITATING: "COHABITATING",
|
|
3023
|
-
SHARED_CARE_ENVIRONMENT: "SHARED_CARE_ENVIRONMENT",
|
|
3024
|
-
// Child / Family (1.2)
|
|
3025
|
-
HAS_CHILDREN_TOGETHER: "HAS_CHILDREN_TOGETHER",
|
|
3026
|
-
CO_PARENTING: "CO_PARENTING",
|
|
3027
|
-
FAMILY_CARE_OBLIGATION: "FAMILY_CARE_OBLIGATION",
|
|
3028
|
-
// Legal / Formal (1.3)
|
|
3029
|
-
LEGALLY_MARRIED: "LEGALLY_MARRIED",
|
|
3030
|
-
SHARED_LEGAL_CASE_OR_ORDER: "SHARED_LEGAL_CASE_OR_ORDER",
|
|
3031
|
-
CUSTODY_OR_VISITATION_LINK: "CUSTODY_OR_VISITATION_LINK",
|
|
3032
|
-
PROTECTIVE_ORDER_LINK: "PROTECTIVE_ORDER_LINK",
|
|
3033
|
-
LEGAL_GUARDIANSHIP: "LEGAL_GUARDIANSHIP",
|
|
3034
|
-
// Financial / Resource (1.4)
|
|
3035
|
-
FINANCIAL_DEPENDENCE: "FINANCIAL_DEPENDENCE",
|
|
3036
|
-
SHARED_EMPLOYMENT_OR_INCOME_LINK: "SHARED_EMPLOYMENT_OR_INCOME_LINK",
|
|
3037
|
-
SHARED_PROPERTY_OR_LEASE: "SHARED_PROPERTY_OR_LEASE",
|
|
3038
|
-
SHARED_FINANCES: "SHARED_FINANCES",
|
|
3039
|
-
// Access / Logistics (1.5)
|
|
3040
|
-
DOCUMENT_OR_ID_LINK: "DOCUMENT_OR_ID_LINK",
|
|
3041
|
-
TRANSPORTATION_DEPENDENCE: "TRANSPORTATION_DEPENDENCE",
|
|
3042
|
-
REGULAR_UNAVOIDABLE_CONTACT: "REGULAR_UNAVOIDABLE_CONTACT",
|
|
3043
|
-
COMMUNICATION_ACCESS_LINK: "COMMUNICATION_ACCESS_LINK",
|
|
3044
|
-
// Other Fallback (1.6)
|
|
3045
|
-
OTHER: "OTHER"
|
|
3046
|
-
};
|
|
3047
|
-
var CVC_159_VALUES = Object.values(
|
|
3048
|
-
CVC_159_RELATIONSHIP_TIES
|
|
3049
|
-
);
|
|
3050
|
-
var CVC_159_LABELS = {
|
|
3051
|
-
// Missingness
|
|
3052
|
-
[CVC_159_RELATIONSHIP_TIES.DNC]: "Data not collected",
|
|
3053
|
-
[CVC_159_RELATIONSHIP_TIES.ANON]: "Anonymous / declined to answer",
|
|
3054
|
-
[CVC_159_RELATIONSHIP_TIES.UNK]: "Unknown",
|
|
3055
|
-
// Household / Living
|
|
3056
|
-
[CVC_159_RELATIONSHIP_TIES.COHABITATING]: "Cohabitating",
|
|
3057
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_CARE_ENVIRONMENT]: "Shared care / supervision environment",
|
|
3058
|
-
// Child / Family
|
|
3059
|
-
[CVC_159_RELATIONSHIP_TIES.HAS_CHILDREN_TOGETHER]: "Has children together",
|
|
3060
|
-
[CVC_159_RELATIONSHIP_TIES.CO_PARENTING]: "Co-parenting",
|
|
3061
|
-
[CVC_159_RELATIONSHIP_TIES.FAMILY_CARE_OBLIGATION]: "Family-based care obligation",
|
|
3062
|
-
// Legal / Formal
|
|
3063
|
-
[CVC_159_RELATIONSHIP_TIES.LEGALLY_MARRIED]: "Legally married",
|
|
3064
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_LEGAL_CASE_OR_ORDER]: "Shared legal case or order",
|
|
3065
|
-
[CVC_159_RELATIONSHIP_TIES.CUSTODY_OR_VISITATION_LINK]: "Custody / visitation link",
|
|
3066
|
-
[CVC_159_RELATIONSHIP_TIES.PROTECTIVE_ORDER_LINK]: "Protective order link",
|
|
3067
|
-
[CVC_159_RELATIONSHIP_TIES.LEGAL_GUARDIANSHIP]: "Legal guardianship",
|
|
3068
|
-
// Financial / Resource
|
|
3069
|
-
[CVC_159_RELATIONSHIP_TIES.FINANCIAL_DEPENDENCE]: "Financial dependence",
|
|
3070
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_EMPLOYMENT_OR_INCOME_LINK]: "Shared economic activity link",
|
|
3071
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_PROPERTY_OR_LEASE]: "Shared property / lease",
|
|
3072
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_FINANCES]: "Shared finances",
|
|
3073
|
-
// Access / Logistics
|
|
3074
|
-
[CVC_159_RELATIONSHIP_TIES.DOCUMENT_OR_ID_LINK]: "Document / ID link",
|
|
3075
|
-
[CVC_159_RELATIONSHIP_TIES.TRANSPORTATION_DEPENDENCE]: "Transportation dependence",
|
|
3076
|
-
[CVC_159_RELATIONSHIP_TIES.REGULAR_UNAVOIDABLE_CONTACT]: "Regular unavoidable contact",
|
|
3077
|
-
[CVC_159_RELATIONSHIP_TIES.COMMUNICATION_ACCESS_LINK]: "Communication access link",
|
|
3078
|
-
// Other
|
|
3079
|
-
[CVC_159_RELATIONSHIP_TIES.OTHER]: "Other"
|
|
3080
|
-
};
|
|
3081
|
-
var CVC_159_TYPE_TO_CATEGORY = {
|
|
3082
|
-
// Missingness
|
|
3083
|
-
[CVC_159_RELATIONSHIP_TIES.DNC]: CVC_159_CATEGORY.MISSINGNESS,
|
|
3084
|
-
[CVC_159_RELATIONSHIP_TIES.ANON]: CVC_159_CATEGORY.MISSINGNESS,
|
|
3085
|
-
[CVC_159_RELATIONSHIP_TIES.UNK]: CVC_159_CATEGORY.MISSINGNESS,
|
|
3086
|
-
// Household / Living
|
|
3087
|
-
[CVC_159_RELATIONSHIP_TIES.COHABITATING]: CVC_159_CATEGORY.HOUSEHOLD_LIVING,
|
|
3088
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_CARE_ENVIRONMENT]: CVC_159_CATEGORY.HOUSEHOLD_LIVING,
|
|
3089
|
-
// Child / Family
|
|
3090
|
-
[CVC_159_RELATIONSHIP_TIES.HAS_CHILDREN_TOGETHER]: CVC_159_CATEGORY.CHILD_FAMILY,
|
|
3091
|
-
[CVC_159_RELATIONSHIP_TIES.CO_PARENTING]: CVC_159_CATEGORY.CHILD_FAMILY,
|
|
3092
|
-
[CVC_159_RELATIONSHIP_TIES.FAMILY_CARE_OBLIGATION]: CVC_159_CATEGORY.CHILD_FAMILY,
|
|
3093
|
-
// Legal / Formal
|
|
3094
|
-
[CVC_159_RELATIONSHIP_TIES.LEGALLY_MARRIED]: CVC_159_CATEGORY.LEGAL_FORMAL,
|
|
3095
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_LEGAL_CASE_OR_ORDER]: CVC_159_CATEGORY.LEGAL_FORMAL,
|
|
3096
|
-
[CVC_159_RELATIONSHIP_TIES.CUSTODY_OR_VISITATION_LINK]: CVC_159_CATEGORY.LEGAL_FORMAL,
|
|
3097
|
-
[CVC_159_RELATIONSHIP_TIES.PROTECTIVE_ORDER_LINK]: CVC_159_CATEGORY.LEGAL_FORMAL,
|
|
3098
|
-
[CVC_159_RELATIONSHIP_TIES.LEGAL_GUARDIANSHIP]: CVC_159_CATEGORY.LEGAL_FORMAL,
|
|
3099
|
-
// Financial / Resource
|
|
3100
|
-
[CVC_159_RELATIONSHIP_TIES.FINANCIAL_DEPENDENCE]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
|
|
3101
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_EMPLOYMENT_OR_INCOME_LINK]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
|
|
3102
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_PROPERTY_OR_LEASE]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
|
|
3103
|
-
[CVC_159_RELATIONSHIP_TIES.SHARED_FINANCES]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
|
|
3104
|
-
// Access / Logistics
|
|
3105
|
-
[CVC_159_RELATIONSHIP_TIES.DOCUMENT_OR_ID_LINK]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
|
|
3106
|
-
[CVC_159_RELATIONSHIP_TIES.TRANSPORTATION_DEPENDENCE]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
|
|
3107
|
-
[CVC_159_RELATIONSHIP_TIES.REGULAR_UNAVOIDABLE_CONTACT]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
|
|
3108
|
-
[CVC_159_RELATIONSHIP_TIES.COMMUNICATION_ACCESS_LINK]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
|
|
3109
|
-
// Other
|
|
3110
|
-
[CVC_159_RELATIONSHIP_TIES.OTHER]: CVC_159_CATEGORY.OTHER_FALLBACK
|
|
3111
|
-
};
|
|
3112
|
-
var CVC_159_OPTIONS = Object.entries(
|
|
3113
|
-
CVC_159_TYPE_TO_CATEGORY
|
|
3114
|
-
).map(([value, category]) => ({
|
|
3115
|
-
value,
|
|
3116
|
-
label: CVC_159_LABELS[value],
|
|
3117
|
-
category,
|
|
3118
|
-
categoryLabel: CVC_159_CATEGORY_LABELS[category]
|
|
3119
|
-
}));
|
|
3120
|
-
var CVC_159_SELECTABLE_OPTIONS = CVC_159_OPTIONS.filter((opt) => opt.category !== CVC_159_CATEGORY.MISSINGNESS);
|
|
3121
|
-
var CVC_159_CATEGORY_ORDER = [
|
|
3122
|
-
CVC_159_CATEGORY.HOUSEHOLD_LIVING,
|
|
3123
|
-
CVC_159_CATEGORY.CHILD_FAMILY,
|
|
3124
|
-
CVC_159_CATEGORY.LEGAL_FORMAL,
|
|
3125
|
-
CVC_159_CATEGORY.FINANCIAL_RESOURCE,
|
|
3126
|
-
CVC_159_CATEGORY.ACCESS_LOGISTICS,
|
|
3127
|
-
CVC_159_CATEGORY.OTHER_FALLBACK
|
|
3128
|
-
];
|
|
3129
2977
|
var CVC_126_CATEGORY = {
|
|
3130
2978
|
SELF: "self",
|
|
3131
2979
|
FAMILY_KIN: "family_kin",
|
|
@@ -3577,7 +3425,11 @@ var personNameSchema = new Schema(
|
|
|
3577
3425
|
isPrimary: Boolean,
|
|
3578
3426
|
alias: Boolean,
|
|
3579
3427
|
isUnknown: Boolean,
|
|
3580
|
-
isAnonymous: Boolean
|
|
3428
|
+
isAnonymous: Boolean,
|
|
3429
|
+
// Shape flag: this person has only one name (e.g., Madonna). A mononym
|
|
3430
|
+
// can itself be legal, a nickname, a trade name, etc. — it's orthogonal
|
|
3431
|
+
// to nameType, not a value of it.
|
|
3432
|
+
isMononym: Boolean
|
|
3581
3433
|
},
|
|
3582
3434
|
{ _id: false }
|
|
3583
3435
|
);
|