@htilabs/platform-common-models 0.13.1 → 0.15.0
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/constants/index.cjs +33 -0
- 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 +29 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-DaDrEuTa.d.cts} +44 -44
- package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-DaDrEuTa.d.ts} +44 -44
- package/dist/cvcs/index.cjs +212 -38
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +224 -41
- package/dist/cvcs/index.d.ts +224 -41
- package/dist/cvcs/index.js +212 -38
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +8 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +11 -4
- package/dist/enums/index.d.ts +11 -4
- package/dist/enums/index.js +8 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-C0J3f169.d.ts} +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-EPjPjR0z.d.cts} +1 -1
- package/dist/index.cjs +253 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +249 -39
- 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/{platform-auth-64U8jjuw.d.cts → platform-auth-CrF5U_JH.d.cts} +43 -2
- package/dist/{platform-auth-64U8jjuw.d.ts → platform-auth-CrF5U_JH.d.ts} +43 -2
- package/dist/schemas/index.cjs +234 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +35 -35
- package/dist/schemas/index.d.ts +35 -35
- package/dist/schemas/index.js +234 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +27 -26
- package/src/__sot__/coreIndicatorFields.ts +4 -4
- package/src/__sot__/coreIndicators.pin.json +62 -2
- package/src/__sot__/scoringEmits.pin.json +9 -4
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -4
- package/src/__tests__/core-information-scope-invariant.test.ts +204 -15
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +89 -28
- package/src/__tests__/cvc-drift-gate.test.ts +149 -27
- package/src/__tests__/cvc-sot-snapshot.test.ts +14 -8
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
- package/src/constants/ic.ts +163 -3
- package/src/cvcs/{coreIndicators.v1.0.0.json → coreIndicators.v1.1.0.json} +93 -10
- package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
- package/src/cvcs/index.ts +2 -2
- package/src/generated/cvc-enums.ts +11 -4
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-DaDrEuTa.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
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
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;
|
|
@@ -90,9 +90,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
90
90
|
isMononym?: boolean | null | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
id: string;
|
|
93
|
-
},
|
|
93
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
94
94
|
_id: false;
|
|
95
|
-
}
|
|
95
|
+
}>> & Omit<{
|
|
96
96
|
alias?: boolean | null | undefined;
|
|
97
97
|
firstName?: string | null | undefined;
|
|
98
98
|
lastName?: string | null | undefined;
|
|
@@ -132,21 +132,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
132
132
|
number?: string | null | undefined;
|
|
133
133
|
type?: string | null | undefined;
|
|
134
134
|
safeToContact?: boolean | null | undefined;
|
|
135
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
136
136
|
}, mongoose.Document<unknown, {}, {
|
|
137
137
|
number?: string | null | undefined;
|
|
138
138
|
type?: string | null | undefined;
|
|
139
139
|
safeToContact?: boolean | null | undefined;
|
|
140
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
id: string;
|
|
143
|
-
},
|
|
143
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
144
144
|
_id: false;
|
|
145
|
-
}
|
|
145
|
+
}>> & Omit<{
|
|
146
146
|
number?: string | null | undefined;
|
|
147
147
|
type?: string | null | undefined;
|
|
148
148
|
safeToContact?: boolean | null | undefined;
|
|
149
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
150
150
|
} & {
|
|
151
151
|
_id: mongoose.Types.ObjectId;
|
|
152
152
|
} & {
|
|
@@ -157,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
157
157
|
number?: string | null | undefined;
|
|
158
158
|
type?: string | null | undefined;
|
|
159
159
|
safeToContact?: boolean | null | undefined;
|
|
160
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
161
161
|
} & {
|
|
162
162
|
_id: mongoose.Types.ObjectId;
|
|
163
163
|
} & {
|
|
@@ -176,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
176
176
|
address?: string | null | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
id: string;
|
|
179
|
-
},
|
|
179
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
180
180
|
_id: false;
|
|
181
|
-
}
|
|
181
|
+
}>> & Omit<{
|
|
182
182
|
type?: string | null | undefined;
|
|
183
183
|
safeToContact?: boolean | null | undefined;
|
|
184
184
|
address?: string | null | undefined;
|
|
@@ -219,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
219
219
|
raceOtherText?: string | null | undefined;
|
|
220
220
|
genderOtherText?: string | null | undefined;
|
|
221
221
|
accommodationOtherText?: string | null | undefined;
|
|
222
|
-
ageDataQuality?: "
|
|
223
|
-
sexDataQuality?: "
|
|
224
|
-
genderDataQuality?: "
|
|
225
|
-
raceDataQuality?: "
|
|
226
|
-
ethnicityDataQuality?: "
|
|
222
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
223
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
224
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
225
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
226
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
227
227
|
}, mongoose.Document<unknown, {}, {
|
|
228
228
|
race: number[];
|
|
229
229
|
ethnicity: number[];
|
|
@@ -243,16 +243,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
243
243
|
raceOtherText?: string | null | undefined;
|
|
244
244
|
genderOtherText?: string | null | undefined;
|
|
245
245
|
accommodationOtherText?: string | null | undefined;
|
|
246
|
-
ageDataQuality?: "
|
|
247
|
-
sexDataQuality?: "
|
|
248
|
-
genderDataQuality?: "
|
|
249
|
-
raceDataQuality?: "
|
|
250
|
-
ethnicityDataQuality?: "
|
|
246
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
248
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
249
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
250
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
id: string;
|
|
253
|
-
},
|
|
253
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
254
254
|
_id: false;
|
|
255
|
-
}
|
|
255
|
+
}>> & Omit<{
|
|
256
256
|
race: number[];
|
|
257
257
|
ethnicity: number[];
|
|
258
258
|
accommodations: string[];
|
|
@@ -271,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
271
271
|
raceOtherText?: string | null | undefined;
|
|
272
272
|
genderOtherText?: string | null | undefined;
|
|
273
273
|
accommodationOtherText?: string | null | undefined;
|
|
274
|
-
ageDataQuality?: "
|
|
275
|
-
sexDataQuality?: "
|
|
276
|
-
genderDataQuality?: "
|
|
277
|
-
raceDataQuality?: "
|
|
278
|
-
ethnicityDataQuality?: "
|
|
274
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
275
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
276
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
277
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
278
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
279
279
|
} & {
|
|
280
280
|
_id: mongoose.Types.ObjectId;
|
|
281
281
|
} & {
|
|
@@ -301,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
301
301
|
raceOtherText?: string | null | undefined;
|
|
302
302
|
genderOtherText?: string | null | undefined;
|
|
303
303
|
accommodationOtherText?: string | null | undefined;
|
|
304
|
-
ageDataQuality?: "
|
|
305
|
-
sexDataQuality?: "
|
|
306
|
-
genderDataQuality?: "
|
|
307
|
-
raceDataQuality?: "
|
|
308
|
-
ethnicityDataQuality?: "
|
|
304
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
305
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
306
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
307
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
308
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
309
309
|
} & {
|
|
310
310
|
_id: mongoose.Types.ObjectId;
|
|
311
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-DaDrEuTa.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
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
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;
|
|
@@ -90,9 +90,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
|
|
|
90
90
|
isMononym?: boolean | null | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
id: string;
|
|
93
|
-
},
|
|
93
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
94
94
|
_id: false;
|
|
95
|
-
}
|
|
95
|
+
}>> & Omit<{
|
|
96
96
|
alias?: boolean | null | undefined;
|
|
97
97
|
firstName?: string | null | undefined;
|
|
98
98
|
lastName?: string | null | undefined;
|
|
@@ -132,21 +132,21 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
132
132
|
number?: string | null | undefined;
|
|
133
133
|
type?: string | null | undefined;
|
|
134
134
|
safeToContact?: boolean | null | undefined;
|
|
135
|
-
dataQuality?: "
|
|
135
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
136
136
|
}, mongoose.Document<unknown, {}, {
|
|
137
137
|
number?: string | null | undefined;
|
|
138
138
|
type?: string | null | undefined;
|
|
139
139
|
safeToContact?: boolean | null | undefined;
|
|
140
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
id: string;
|
|
143
|
-
},
|
|
143
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
144
144
|
_id: false;
|
|
145
|
-
}
|
|
145
|
+
}>> & Omit<{
|
|
146
146
|
number?: string | null | undefined;
|
|
147
147
|
type?: string | null | undefined;
|
|
148
148
|
safeToContact?: boolean | null | undefined;
|
|
149
|
-
dataQuality?: "
|
|
149
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
150
150
|
} & {
|
|
151
151
|
_id: mongoose.Types.ObjectId;
|
|
152
152
|
} & {
|
|
@@ -157,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
157
157
|
number?: string | null | undefined;
|
|
158
158
|
type?: string | null | undefined;
|
|
159
159
|
safeToContact?: boolean | null | undefined;
|
|
160
|
-
dataQuality?: "
|
|
160
|
+
dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
161
161
|
} & {
|
|
162
162
|
_id: mongoose.Types.ObjectId;
|
|
163
163
|
} & {
|
|
@@ -176,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
176
176
|
address?: string | null | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
id: string;
|
|
179
|
-
},
|
|
179
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
180
180
|
_id: false;
|
|
181
|
-
}
|
|
181
|
+
}>> & Omit<{
|
|
182
182
|
type?: string | null | undefined;
|
|
183
183
|
safeToContact?: boolean | null | undefined;
|
|
184
184
|
address?: string | null | undefined;
|
|
@@ -219,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
219
219
|
raceOtherText?: string | null | undefined;
|
|
220
220
|
genderOtherText?: string | null | undefined;
|
|
221
221
|
accommodationOtherText?: string | null | undefined;
|
|
222
|
-
ageDataQuality?: "
|
|
223
|
-
sexDataQuality?: "
|
|
224
|
-
genderDataQuality?: "
|
|
225
|
-
raceDataQuality?: "
|
|
226
|
-
ethnicityDataQuality?: "
|
|
222
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
223
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
224
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
225
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
226
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
227
227
|
}, mongoose.Document<unknown, {}, {
|
|
228
228
|
race: number[];
|
|
229
229
|
ethnicity: number[];
|
|
@@ -243,16 +243,16 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
243
243
|
raceOtherText?: string | null | undefined;
|
|
244
244
|
genderOtherText?: string | null | undefined;
|
|
245
245
|
accommodationOtherText?: string | null | undefined;
|
|
246
|
-
ageDataQuality?: "
|
|
247
|
-
sexDataQuality?: "
|
|
248
|
-
genderDataQuality?: "
|
|
249
|
-
raceDataQuality?: "
|
|
250
|
-
ethnicityDataQuality?: "
|
|
246
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
247
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
248
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
249
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
250
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
251
251
|
}, {
|
|
252
252
|
id: string;
|
|
253
|
-
},
|
|
253
|
+
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
254
254
|
_id: false;
|
|
255
|
-
}
|
|
255
|
+
}>> & Omit<{
|
|
256
256
|
race: number[];
|
|
257
257
|
ethnicity: number[];
|
|
258
258
|
accommodations: string[];
|
|
@@ -271,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
271
271
|
raceOtherText?: string | null | undefined;
|
|
272
272
|
genderOtherText?: string | null | undefined;
|
|
273
273
|
accommodationOtherText?: string | null | undefined;
|
|
274
|
-
ageDataQuality?: "
|
|
275
|
-
sexDataQuality?: "
|
|
276
|
-
genderDataQuality?: "
|
|
277
|
-
raceDataQuality?: "
|
|
278
|
-
ethnicityDataQuality?: "
|
|
274
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
275
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
276
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
277
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
278
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
279
279
|
} & {
|
|
280
280
|
_id: mongoose.Types.ObjectId;
|
|
281
281
|
} & {
|
|
@@ -301,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
301
301
|
raceOtherText?: string | null | undefined;
|
|
302
302
|
genderOtherText?: string | null | undefined;
|
|
303
303
|
accommodationOtherText?: string | null | undefined;
|
|
304
|
-
ageDataQuality?: "
|
|
305
|
-
sexDataQuality?: "
|
|
306
|
-
genderDataQuality?: "
|
|
307
|
-
raceDataQuality?: "
|
|
308
|
-
ethnicityDataQuality?: "
|
|
304
|
+
ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
305
|
+
sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
306
|
+
genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
307
|
+
raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
308
|
+
ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
|
|
309
309
|
} & {
|
|
310
310
|
_id: mongoose.Types.ObjectId;
|
|
311
311
|
} & {
|
package/dist/schemas/index.js
CHANGED
|
@@ -3441,6 +3441,240 @@ var CVC_136_OPTIONS = Object.entries(
|
|
|
3441
3441
|
category,
|
|
3442
3442
|
categoryLabel: CVC_136_CATEGORY_LABELS[category]
|
|
3443
3443
|
}));
|
|
3444
|
+
var CVC_136_CORE_INDICATOR_VALUES = [
|
|
3445
|
+
"abuser_evading_legal_consequences",
|
|
3446
|
+
"abuser_has_weapon",
|
|
3447
|
+
"abuser_substance_use",
|
|
3448
|
+
"abuser_threatened_suicide",
|
|
3449
|
+
"abuser_unemployed",
|
|
3450
|
+
"access_to_vulnerable_individuals",
|
|
3451
|
+
"acknowledgement_or_report_of_human_trafficking",
|
|
3452
|
+
"active_protective_order",
|
|
3453
|
+
"ads_available_247",
|
|
3454
|
+
"ads_imply_multiple_workers",
|
|
3455
|
+
"ads_prost_slang",
|
|
3456
|
+
"adverse_childhood_household_challenges",
|
|
3457
|
+
"advertised_new_to_area",
|
|
3458
|
+
"appears_controlling_relationship",
|
|
3459
|
+
"appears_turned_out_or_trained_ad_patterns",
|
|
3460
|
+
"association_commercial_sex",
|
|
3461
|
+
"atypical_or_high_risk_payment_method",
|
|
3462
|
+
"autonomy_access_healthcare_without_fear",
|
|
3463
|
+
"autonomy_choice_in_clients",
|
|
3464
|
+
"autonomy_choice_in_services",
|
|
3465
|
+
"autonomy_controls_own_docs",
|
|
3466
|
+
"autonomy_controls_own_finances",
|
|
3467
|
+
"autonomy_organizes_own_travel",
|
|
3468
|
+
"autonomy_posts_own_ads",
|
|
3469
|
+
"autonomy_sets_own_schedule",
|
|
3470
|
+
"autonomy_sets_up_own_dates",
|
|
3471
|
+
"battered_while_pregnant_history",
|
|
3472
|
+
"branding_or_unusual_tattoos_tied_to_control",
|
|
3473
|
+
"cannot_stop_working_or_freely_leave",
|
|
3474
|
+
"child_not_abusers_in_household",
|
|
3475
|
+
"child_welfare_system_involvement",
|
|
3476
|
+
"clients_unaware_of_third_party_coordination",
|
|
3477
|
+
"coerced_to_misrepresent_identity_or_activity",
|
|
3478
|
+
"coercive_debt_pressure",
|
|
3479
|
+
"coercive_debt_pressure_youth",
|
|
3480
|
+
"coercive_migration_or_forced_travel",
|
|
3481
|
+
"cognitive_or_functional_impairment_affecting_consent",
|
|
3482
|
+
"commercial_sex_association_words_or_places",
|
|
3483
|
+
"concerning_mannerisms_anxious_fearful_depressed",
|
|
3484
|
+
"concerning_sexual_behavior_pattern",
|
|
3485
|
+
"constraints_due_to_legal_status",
|
|
3486
|
+
"control_quota_required",
|
|
3487
|
+
"cs_activity_criminal_org_connection",
|
|
3488
|
+
"cs_industry_related_criminal_history",
|
|
3489
|
+
"current_injuries_from_abuser",
|
|
3490
|
+
"current_mental_health_services",
|
|
3491
|
+
"currently_minor_in_commercial_sex",
|
|
3492
|
+
"dangerous_services_no_protection",
|
|
3493
|
+
"dangerous_services_requires_protection",
|
|
3494
|
+
"dangerous_services_willing_anything",
|
|
3495
|
+
"debt_terms_deceptive",
|
|
3496
|
+
"debt_terms_deceptive_youth",
|
|
3497
|
+
"denied_basic_needs",
|
|
3498
|
+
"depends_on_employer_for_immigration_status",
|
|
3499
|
+
"depends_on_spouse_or_family_for_immigration_status",
|
|
3500
|
+
"disclosed_fear_at_intake",
|
|
3501
|
+
"does_not_control_finances_or_earnings",
|
|
3502
|
+
"does_not_control_housing",
|
|
3503
|
+
"does_not_control_identity_documents",
|
|
3504
|
+
"elevated_lethality_risk_signal",
|
|
3505
|
+
"employer_keeps_pay_or_pays_less_than_expected",
|
|
3506
|
+
"engages_in_commercial_sex_act",
|
|
3507
|
+
"entered_commercial_sex_industry_as_minor",
|
|
3508
|
+
"entered_cs_due_to_survival_needs",
|
|
3509
|
+
"entered_into_network_of_sex_providers_early",
|
|
3510
|
+
"exploitative_pricing_tier_low",
|
|
3511
|
+
"exploitative_working_conditions",
|
|
3512
|
+
"fled_conflict_violence_or_persecution",
|
|
3513
|
+
"forced_to_commit_crimes",
|
|
3514
|
+
"forced_to_use_false_documents",
|
|
3515
|
+
"foreign_born_or_recently_arrived",
|
|
3516
|
+
"foreign_born_risk_factors",
|
|
3517
|
+
"frequent_changes_in_residence",
|
|
3518
|
+
"frequent_travel_or_location_changes",
|
|
3519
|
+
"frequently_at_hotels_or_many_hotel_keys",
|
|
3520
|
+
"harmful_coping_behaviors",
|
|
3521
|
+
"has_ads_on_commercial_sex_site",
|
|
3522
|
+
"has_facilitators_involved",
|
|
3523
|
+
"has_management_or_representation",
|
|
3524
|
+
"has_no_personal_items_or_possessions",
|
|
3525
|
+
"head_injury_history",
|
|
3526
|
+
"head_injury_loss_of_consciousness",
|
|
3527
|
+
"health_related_vulnerability",
|
|
3528
|
+
"hierarchical_management_structure_identified",
|
|
3529
|
+
"high_risk_sexual_behavior",
|
|
3530
|
+
"high_security_measures_at_work_or_living_location",
|
|
3531
|
+
"highly_irregular_school_attendance",
|
|
3532
|
+
"history_emotional_abuse",
|
|
3533
|
+
"history_of_head_injury",
|
|
3534
|
+
"history_of_mental_health_issues",
|
|
3535
|
+
"history_of_running_away_or_missing_from_care",
|
|
3536
|
+
"history_of_strangulation",
|
|
3537
|
+
"history_physical_or_sexual_abuse_or_dv",
|
|
3538
|
+
"homeless_or_unstably_housed",
|
|
3539
|
+
"immigration_related_exploitation_risk",
|
|
3540
|
+
"in_commercial_sex_industry_recorded",
|
|
3541
|
+
"inability_to_account_for_self",
|
|
3542
|
+
"intimate_partner_violence_reported_to_law_enforcement",
|
|
3543
|
+
"juvenile_justice_or_child_welfare_involvement",
|
|
3544
|
+
"juvenile_justice_system_involvement",
|
|
3545
|
+
"labor_services_activity_recorded",
|
|
3546
|
+
"lgbtq_individual",
|
|
3547
|
+
"limited_english_proficiency",
|
|
3548
|
+
"limited_independence",
|
|
3549
|
+
"lives_or_sleeps_at_place_of_work",
|
|
3550
|
+
"living_with_abuser",
|
|
3551
|
+
"macro_level_economic_duress_entry_exit",
|
|
3552
|
+
"meets_or_has_sex_with_internet_contacts",
|
|
3553
|
+
"monitored_or_isolated_by_controlling_party",
|
|
3554
|
+
"much_older_intimate_partner",
|
|
3555
|
+
"nervous_about_immigration_documentation",
|
|
3556
|
+
"network_aggregate_risk_score_high",
|
|
3557
|
+
"network_multiple_sex_providers_named",
|
|
3558
|
+
"network_stable_size_large",
|
|
3559
|
+
"network_trafficker_present",
|
|
3560
|
+
"network_violent_person_present",
|
|
3561
|
+
"new_to_commercial_sex_industry",
|
|
3562
|
+
"non_consensual_photography_or_recording",
|
|
3563
|
+
"not_in_control_of_immigration_documentation",
|
|
3564
|
+
"oppressive_home_life",
|
|
3565
|
+
"other_instability_or_vulnerability_factors",
|
|
3566
|
+
"owes_money_and_cannot_pay_off",
|
|
3567
|
+
"paid_or_owes_fee_to_arrange_travel_to_us",
|
|
3568
|
+
"paid_or_owes_recruitment_fee_to_employer",
|
|
3569
|
+
"parent_or_guardian_of_minor_subject_named",
|
|
3570
|
+
"past_phases_prior_trafficking_or_risk",
|
|
3571
|
+
"payment_routed_through_third_party",
|
|
3572
|
+
"pending_federal_protection",
|
|
3573
|
+
"performing_different_work_than_promised",
|
|
3574
|
+
"physical_violence_increasing",
|
|
3575
|
+
"poverty_or_severe_financial_strain",
|
|
3576
|
+
"precarious_immigration_status",
|
|
3577
|
+
"pressured_or_forced_sex_act",
|
|
3578
|
+
"prior_medical_attention_from_abuse",
|
|
3579
|
+
"prior_tvap_disconnection",
|
|
3580
|
+
"prior_victimization_or_abuse_history",
|
|
3581
|
+
"promise_of_work_different_than_current_work",
|
|
3582
|
+
"received_things_of_value_while_missing_from_care",
|
|
3583
|
+
"recent_le_engagement",
|
|
3584
|
+
"recent_separation",
|
|
3585
|
+
"recruited_by_third_party_into_cs_industry",
|
|
3586
|
+
"regular_alcohol_use",
|
|
3587
|
+
"relies_on_temporary_resources_for_basic_needs",
|
|
3588
|
+
"reports_physical_harm_by_employer_or_partner",
|
|
3589
|
+
"reports_physical_harm_to_others_by_employer_or_partner",
|
|
3590
|
+
"restrictive_living_or_working_conditions",
|
|
3591
|
+
"restrictive_or_not_understood_contract",
|
|
3592
|
+
"risk_factors_commercial_sex",
|
|
3593
|
+
"serious_substance_use_or_introduced_to_drugs",
|
|
3594
|
+
"several_cell_phones_or_frequent_number_changes",
|
|
3595
|
+
"sex_acts_in_own_residence",
|
|
3596
|
+
"sexual_exploitation",
|
|
3597
|
+
"sexualized_content_in_person_performance_activity",
|
|
3598
|
+
"sexualized_content_online_performance_activity",
|
|
3599
|
+
"sexualized_content_performance_activity",
|
|
3600
|
+
"shared_contact_network",
|
|
3601
|
+
"signs_of_physical_abuse_confinement_or_neglect",
|
|
3602
|
+
"signs_of_physical_harm_or_abuse",
|
|
3603
|
+
"sleep_disturbance",
|
|
3604
|
+
"social_isolation_or_no_supportive_relationships",
|
|
3605
|
+
"stalking_property_intrusion",
|
|
3606
|
+
"stalking_surveillance",
|
|
3607
|
+
"stalking_unwanted_contact",
|
|
3608
|
+
"strangulation_acute_symptoms",
|
|
3609
|
+
"strangulation_choking_assault_detail",
|
|
3610
|
+
"strangulation_loss_of_consciousness",
|
|
3611
|
+
"strangulation_repeated",
|
|
3612
|
+
"subject_affiliated_org_trafficking_activity",
|
|
3613
|
+
"subject_arrested_dv_sv_cs",
|
|
3614
|
+
"subject_gang_org_affiliation",
|
|
3615
|
+
"subject_has_illegal_weapons",
|
|
3616
|
+
"subject_is_sex_offender",
|
|
3617
|
+
"subject_legally_barred_weapons",
|
|
3618
|
+
"subject_perpetrated_abuse_history",
|
|
3619
|
+
"subject_perpetrated_emotional_stalking_current",
|
|
3620
|
+
"subject_perpetrated_emotional_stalking_past",
|
|
3621
|
+
"subject_perpetrated_ipv_current",
|
|
3622
|
+
"subject_perpetrated_ipv_past",
|
|
3623
|
+
"subject_perpetrated_physical_abuse_current",
|
|
3624
|
+
"subject_perpetrated_physical_abuse_past",
|
|
3625
|
+
"subject_perpetrated_sexual_abuse_current",
|
|
3626
|
+
"subject_perpetrated_sexual_abuse_past",
|
|
3627
|
+
"subject_violent_felony",
|
|
3628
|
+
"substance_use_while_working",
|
|
3629
|
+
"suicidal_ideation_history",
|
|
3630
|
+
"suicidal_ideation_recent",
|
|
3631
|
+
"suicide_attempt_history",
|
|
3632
|
+
"survival_sex",
|
|
3633
|
+
"third_party_advertises_or_posts_for_person",
|
|
3634
|
+
"third_party_arranged_commercial_sex_acts",
|
|
3635
|
+
"threats_by_employer_or_partner",
|
|
3636
|
+
"threats_of_harm",
|
|
3637
|
+
"threats_of_legal_trouble_or_deportation",
|
|
3638
|
+
"threats_related_to_migration_debt",
|
|
3639
|
+
"threats_to_family_friends_or_close_associates",
|
|
3640
|
+
"threats_to_kill_victim_or_children",
|
|
3641
|
+
"trafficking_experience_current",
|
|
3642
|
+
"trafficking_experience_past_10plusy",
|
|
3643
|
+
"trafficking_experience_past_3to10y",
|
|
3644
|
+
"trafficking_experience_past_lt3y",
|
|
3645
|
+
"trauma_perpetrator_is_current_manager",
|
|
3646
|
+
"travel_organized_by_third_party",
|
|
3647
|
+
"tricked_or_pressured_into_unwanted_acts",
|
|
3648
|
+
"unable_to_speak_freely",
|
|
3649
|
+
"under_18_advertised_age",
|
|
3650
|
+
"under_18_appears_underage",
|
|
3651
|
+
"under_18_known_age",
|
|
3652
|
+
"unexplained_frequent_travel_or_migration",
|
|
3653
|
+
"unsafe_working_conditions_long_hours_inadequate_breaks",
|
|
3654
|
+
"unusual_cash_or_unexplained_gifts",
|
|
3655
|
+
"unusual_work_circumstances",
|
|
3656
|
+
"urgent_medical_referral_needed",
|
|
3657
|
+
"victim_believes_abuser_capable_of_killing",
|
|
3658
|
+
"victimization_history_composite",
|
|
3659
|
+
"violence_or_threats_at_work_site",
|
|
3660
|
+
"weapon_used_or_threatened_against_victim",
|
|
3661
|
+
"work_frequency_high_volume",
|
|
3662
|
+
"working_while_pregnant",
|
|
3663
|
+
"workplace_emotional_climate_of_fear",
|
|
3664
|
+
"works_across_multiple_cities_or_locations",
|
|
3665
|
+
"works_for_little_or_no_pay",
|
|
3666
|
+
"youth_watched_filmed_or_photographed_sexually_explicit"
|
|
3667
|
+
];
|
|
3668
|
+
var CVC_136_CORE_INDICATOR_SUPERSEDED_BY = {
|
|
3669
|
+
coercive_debt_pressure_youth: "coercive_debt_pressure",
|
|
3670
|
+
debt_terms_deceptive_youth: "debt_terms_deceptive"
|
|
3671
|
+
};
|
|
3672
|
+
function isDeprecatedCoreIndicator(code) {
|
|
3673
|
+
return typeof code === "string" && Object.prototype.hasOwnProperty.call(CVC_136_CORE_INDICATOR_SUPERSEDED_BY, code);
|
|
3674
|
+
}
|
|
3675
|
+
var ACTIVE_CVC_136_CORE_INDICATOR_VALUES = CVC_136_CORE_INDICATOR_VALUES.filter(
|
|
3676
|
+
(v) => !isDeprecatedCoreIndicator(v)
|
|
3677
|
+
);
|
|
3444
3678
|
var CVC_67_HMIS_SEX = {
|
|
3445
3679
|
MALE: "male",
|
|
3446
3680
|
FEMALE: "female",
|