@htilabs/platform-common-models 0.80.0 → 0.82.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/README.md +27 -0
- package/dist/{index-DvAypMJV.d.ts → index-Bh1zO_Vu.d.ts} +1 -1
- package/dist/{index-Bj-s0nZy.d.cts → index-XWSYon40.d.cts} +1 -1
- package/dist/index.cjs +365 -47
- 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 +355 -47
- package/dist/index.js.map +1 -1
- package/dist/information-scope/index.cjs +290 -2
- package/dist/information-scope/index.cjs.map +1 -1
- package/dist/information-scope/index.d.cts +84 -1
- package/dist/information-scope/index.d.ts +84 -1
- package/dist/information-scope/index.js +279 -1
- package/dist/information-scope/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 +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/services/index.cjs +290 -2
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +279 -1
- package/dist/services/index.js.map +1 -1
- package/dist/sharing-ceiling/index.cjs +33 -3
- package/dist/sharing-ceiling/index.cjs.map +1 -1
- package/dist/sharing-ceiling/index.d.cts +11 -7
- package/dist/sharing-ceiling/index.d.ts +11 -7
- package/dist/sharing-ceiling/index.js +33 -3
- package/dist/sharing-ceiling/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/informationScopeUiCopy.ts +263 -0
- package/src/services/__tests__/informationScopeUiCopy.test.ts +128 -0
- package/src/services/informationScope.ts +1 -0
- package/src/services/informationScopeUiCopy.ts +98 -0
- package/src/sharingCeiling/__tests__/fixtures_starterVerdicts.json +1727 -0
- package/src/sharingCeiling/__tests__/personContactRows.test.ts +185 -0
- package/src/sharingCeiling/coverage.ts +55 -6
- package/src/sharingCeiling/resolve.ts +31 -8
- package/dist/{cvcEntry-BLeRivoF.d.cts → cvcEntry-D787utvP.d.cts} +8 -8
- package/dist/{cvcEntry-BLeRivoF.d.ts → cvcEntry-D787utvP.d.ts} +8 -8
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-D787utvP.js';
|
|
4
4
|
import { a as AddAgencyOrgTypeFieldsOptions } from '../agency-NEW6NOGD.js';
|
|
5
5
|
export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, b as AgencyOrgTypeFields, O as ORG_TYPE_FIELD_NAMES, c as OrgTypeFieldName, d as OrgTypeFields, e as OrgTypeFieldsHolder, V as VSP_TWO_STEP_ISSUE, f as addAgencyOrgTypeFields, g as addOrgTypeFields, h as agencyOrgTypeSchemaDefinition, i as applyRunValidatorsIfUnset, j as installVspTwoStepHooks, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, k as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, l as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, n as vspTwoStepHoldsOnUpdate } from '../agency-NEW6NOGD.js';
|
|
6
6
|
export { P as PROGRAM_REVIEW_STATUS, a as PROGRAM_REVIEW_STATUS_VALUES, b as ProgramReviewStatus, i as isLiveOrganizationProgram, c as isProgramReviewStatus } from '../vocabulary-Cxhi9EGt.js';
|
|
@@ -137,12 +137,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
137
137
|
number?: string | null | undefined;
|
|
138
138
|
type?: string | null | undefined;
|
|
139
139
|
safeToContact?: boolean | null | undefined;
|
|
140
|
-
dataQuality?: "
|
|
140
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
141
141
|
}, mongoose.Document<unknown, {}, {
|
|
142
142
|
number?: string | null | undefined;
|
|
143
143
|
type?: string | null | undefined;
|
|
144
144
|
safeToContact?: boolean | null | undefined;
|
|
145
|
-
dataQuality?: "
|
|
145
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
146
146
|
}, {
|
|
147
147
|
id: string;
|
|
148
148
|
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
@@ -151,7 +151,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
151
151
|
number?: string | null | undefined;
|
|
152
152
|
type?: string | null | undefined;
|
|
153
153
|
safeToContact?: boolean | null | undefined;
|
|
154
|
-
dataQuality?: "
|
|
154
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
155
155
|
} & {
|
|
156
156
|
_id: mongoose.Types.ObjectId;
|
|
157
157
|
} & {
|
|
@@ -162,7 +162,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
|
|
|
162
162
|
number?: string | null | undefined;
|
|
163
163
|
type?: string | null | undefined;
|
|
164
164
|
safeToContact?: boolean | null | undefined;
|
|
165
|
-
dataQuality?: "
|
|
165
|
+
dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
166
166
|
} & {
|
|
167
167
|
_id: mongoose.Types.ObjectId;
|
|
168
168
|
} & {
|
|
@@ -224,11 +224,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
224
224
|
raceOtherText?: string | null | undefined;
|
|
225
225
|
genderOtherText?: string | null | undefined;
|
|
226
226
|
accommodationOtherText?: string | null | undefined;
|
|
227
|
-
ageDataQuality?: "
|
|
228
|
-
sexDataQuality?: "
|
|
229
|
-
genderDataQuality?: "
|
|
230
|
-
raceDataQuality?: "
|
|
231
|
-
ethnicityDataQuality?: "
|
|
227
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
228
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
229
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
230
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
231
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
232
232
|
}, mongoose.Document<unknown, {}, {
|
|
233
233
|
race: number[];
|
|
234
234
|
ethnicity: number[];
|
|
@@ -248,11 +248,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
248
248
|
raceOtherText?: string | null | undefined;
|
|
249
249
|
genderOtherText?: string | null | undefined;
|
|
250
250
|
accommodationOtherText?: string | null | undefined;
|
|
251
|
-
ageDataQuality?: "
|
|
252
|
-
sexDataQuality?: "
|
|
253
|
-
genderDataQuality?: "
|
|
254
|
-
raceDataQuality?: "
|
|
255
|
-
ethnicityDataQuality?: "
|
|
251
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
252
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
253
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
254
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
255
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
256
256
|
}, {
|
|
257
257
|
id: string;
|
|
258
258
|
}, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
|
|
@@ -276,11 +276,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
276
276
|
raceOtherText?: string | null | undefined;
|
|
277
277
|
genderOtherText?: string | null | undefined;
|
|
278
278
|
accommodationOtherText?: string | null | undefined;
|
|
279
|
-
ageDataQuality?: "
|
|
280
|
-
sexDataQuality?: "
|
|
281
|
-
genderDataQuality?: "
|
|
282
|
-
raceDataQuality?: "
|
|
283
|
-
ethnicityDataQuality?: "
|
|
279
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
280
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
281
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
282
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
283
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
284
284
|
} & {
|
|
285
285
|
_id: mongoose.Types.ObjectId;
|
|
286
286
|
} & {
|
|
@@ -306,11 +306,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
|
|
|
306
306
|
raceOtherText?: string | null | undefined;
|
|
307
307
|
genderOtherText?: string | null | undefined;
|
|
308
308
|
accommodationOtherText?: string | null | undefined;
|
|
309
|
-
ageDataQuality?: "
|
|
310
|
-
sexDataQuality?: "
|
|
311
|
-
genderDataQuality?: "
|
|
312
|
-
raceDataQuality?: "
|
|
313
|
-
ethnicityDataQuality?: "
|
|
309
|
+
ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
310
|
+
sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
311
|
+
genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
312
|
+
raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
313
|
+
ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
|
|
314
314
|
} & {
|
|
315
315
|
_id: mongoose.Types.ObjectId;
|
|
316
316
|
} & {
|
package/dist/services/index.cjs
CHANGED
|
@@ -21,9 +21,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var services_exports = {};
|
|
22
22
|
__export(services_exports, {
|
|
23
23
|
CvcRegistryService: () => CvcRegistryService,
|
|
24
|
+
INFORMATION_SCOPE_CATEGORY_ORDER: () => INFORMATION_SCOPE_CATEGORY_ORDER,
|
|
25
|
+
INFORMATION_SCOPE_CATEGORY_SUB: () => INFORMATION_SCOPE_CATEGORY_SUB,
|
|
24
26
|
INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE: () => INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE,
|
|
25
27
|
INFORMATION_SCOPE_READABLE_VERSIONS: () => INFORMATION_SCOPE_READABLE_VERSIONS,
|
|
28
|
+
INFORMATION_SCOPE_ROW_HINT: () => INFORMATION_SCOPE_ROW_HINT,
|
|
29
|
+
INFORMATION_SCOPE_ROW_ORDER: () => INFORMATION_SCOPE_ROW_ORDER,
|
|
26
30
|
INFORMATION_SCOPE_SYSTEM_INFO: () => INFORMATION_SCOPE_SYSTEM_INFO,
|
|
31
|
+
INFORMATION_SCOPE_UI_COPY_SOURCE: () => INFORMATION_SCOPE_UI_COPY_SOURCE,
|
|
27
32
|
INFORMATION_SCOPE_VERSION: () => INFORMATION_SCOPE_VERSION,
|
|
28
33
|
applyEntryOverrides: () => applyEntryOverrides,
|
|
29
34
|
cascadeExclusions: () => cascadeExclusions,
|
|
@@ -34,8 +39,13 @@ __export(services_exports, {
|
|
|
34
39
|
isSelectableScopeRow: () => isSelectableScopeRow,
|
|
35
40
|
kindForPerson: () => kindForPerson,
|
|
36
41
|
resolveRegistryWithInheritance: () => resolveRegistryWithInheritance,
|
|
42
|
+
scopeCategorySub: () => scopeCategorySub,
|
|
37
43
|
scopeMigrationsFromSot: () => scopeMigrationsFromSot,
|
|
38
|
-
|
|
44
|
+
scopeRowDisplayOrder: () => scopeRowDisplayOrder,
|
|
45
|
+
scopeRowHint: () => scopeRowHint,
|
|
46
|
+
scopeRowsFromSot: () => scopeRowsFromSot,
|
|
47
|
+
sortScopeCategories: () => sortScopeCategories,
|
|
48
|
+
sortScopeRows: () => sortScopeRows
|
|
39
49
|
});
|
|
40
50
|
module.exports = __toCommonJS(services_exports);
|
|
41
51
|
|
|
@@ -1936,12 +1946,285 @@ function scopeMigrationsFromSot(sot) {
|
|
|
1936
1946
|
};
|
|
1937
1947
|
});
|
|
1938
1948
|
}
|
|
1949
|
+
|
|
1950
|
+
// src/generated/informationScopeUiCopy.ts
|
|
1951
|
+
var INFORMATION_SCOPE_UI_COPY_SOURCE = {
|
|
1952
|
+
"order": {
|
|
1953
|
+
"repo": "htilabstech/prototype",
|
|
1954
|
+
"file": "data/cvcs/core_information_scope.yaml",
|
|
1955
|
+
"sha": "395bb7aa"
|
|
1956
|
+
},
|
|
1957
|
+
"words": {
|
|
1958
|
+
"repo": "htilabstech/platform-prototype",
|
|
1959
|
+
"file": "src/data.js",
|
|
1960
|
+
"sha": "c324f715",
|
|
1961
|
+
"line": 33875
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
var INFORMATION_SCOPE_CATEGORY_ORDER = [
|
|
1965
|
+
"system",
|
|
1966
|
+
"notes",
|
|
1967
|
+
"identifying",
|
|
1968
|
+
"contact",
|
|
1969
|
+
"health_accommodation",
|
|
1970
|
+
"immigration_legal_status",
|
|
1971
|
+
"risk",
|
|
1972
|
+
"services",
|
|
1973
|
+
"instruments",
|
|
1974
|
+
"relationships_household",
|
|
1975
|
+
"offenders__identifying",
|
|
1976
|
+
"offenders__contact",
|
|
1977
|
+
"offenders__health_accommodation",
|
|
1978
|
+
"offenders__immigration_legal_status",
|
|
1979
|
+
"offenders__risk",
|
|
1980
|
+
"offenders__services",
|
|
1981
|
+
"offenders__instruments",
|
|
1982
|
+
"offenders__relationships_household",
|
|
1983
|
+
"family__identifying",
|
|
1984
|
+
"family__contact",
|
|
1985
|
+
"family__health_accommodation",
|
|
1986
|
+
"family__immigration_legal_status",
|
|
1987
|
+
"family__risk",
|
|
1988
|
+
"family__services",
|
|
1989
|
+
"family__instruments",
|
|
1990
|
+
"family__relationships_household",
|
|
1991
|
+
"others__identifying",
|
|
1992
|
+
"others__contact",
|
|
1993
|
+
"others__health_accommodation",
|
|
1994
|
+
"others__immigration_legal_status",
|
|
1995
|
+
"others__risk",
|
|
1996
|
+
"others__services",
|
|
1997
|
+
"others__instruments",
|
|
1998
|
+
"others__relationships_household",
|
|
1999
|
+
"network_associations",
|
|
2000
|
+
"commercial_activity",
|
|
2001
|
+
"investigative_work_product",
|
|
2002
|
+
"object_identifiers"
|
|
2003
|
+
];
|
|
2004
|
+
var INFORMATION_SCOPE_CATEGORY_SUB = {
|
|
2005
|
+
"system": "Session timestamps, source info \u2014 always shared",
|
|
2006
|
+
"notes": "The session summary, and notes written in a session or on the case",
|
|
2007
|
+
"identifying": "Names, DOB, addresses, identifiers, demographics",
|
|
2008
|
+
"contact": "How to reach the person safely: contact info + safety preferences, the Priorities & Safety triage",
|
|
2009
|
+
"health_accommodation": "Health status, accommodation needs",
|
|
2010
|
+
"immigration_legal_status": "Immigration status, immigration applications",
|
|
2011
|
+
"risk": "Indicators, screening outcomes, per-instrument assessment responses, determinations, system involvement \u2014 the people who caused harm are their own branch",
|
|
2012
|
+
"services": "Contact history with this agency, service records, service plans + goals \u2014 three tiers of sensitivity",
|
|
2013
|
+
"instruments": "Initial Screen, intake screens, assessments, Findings \u2014 a Summary & outcome row and a Full questions, narratives & notes row per instrument",
|
|
2014
|
+
"relationships_household": "The client's account of the people around them \u2014 each relationship record, the household roster, pets; each entry names the other person as name + kind and carries nothing else about them",
|
|
2015
|
+
"offenders__identifying": "People who caused harm \u2014 the person's own record, grouped by kind (identifying information)",
|
|
2016
|
+
"offenders__contact": "People who caused harm \u2014 the person's own record, grouped by kind (contact & safety)",
|
|
2017
|
+
"offenders__health_accommodation": "People who caused harm \u2014 the person's own record, grouped by kind (health & accommodation)",
|
|
2018
|
+
"offenders__immigration_legal_status": "People who caused harm \u2014 the person's own record, grouped by kind (immigration & legal status)",
|
|
2019
|
+
"offenders__risk": "People who caused harm \u2014 the person's own record, grouped by kind (risk-related)",
|
|
2020
|
+
"offenders__services": "People who caused harm \u2014 the person's own record, grouped by kind (services & case history)",
|
|
2021
|
+
"offenders__instruments": "People who caused harm \u2014 the person's own record, grouped by kind (screens & assessments)",
|
|
2022
|
+
"offenders__relationships_household": "People who caused harm \u2014 the person's own record, grouped by kind (relationships & household)",
|
|
2023
|
+
"family__identifying": "Eligible family members \u2014 the person's own record, grouped by kind (identifying information)",
|
|
2024
|
+
"family__contact": "Eligible family members \u2014 the person's own record, grouped by kind (contact & safety)",
|
|
2025
|
+
"family__health_accommodation": "Eligible family members \u2014 the person's own record, grouped by kind (health & accommodation)",
|
|
2026
|
+
"family__immigration_legal_status": "Eligible family members \u2014 the person's own record, grouped by kind (immigration & legal status)",
|
|
2027
|
+
"family__risk": "Eligible family members \u2014 the person's own record, grouped by kind (risk-related)",
|
|
2028
|
+
"family__services": "Eligible family members \u2014 the person's own record, grouped by kind (services & case history)",
|
|
2029
|
+
"family__instruments": "Eligible family members \u2014 the person's own record, grouped by kind (screens & assessments)",
|
|
2030
|
+
"family__relationships_household": "Eligible family members \u2014 the person's own record, grouped by kind (relationships & household)",
|
|
2031
|
+
"others__identifying": "Other people on the case \u2014 the person's own record, grouped by kind (identifying information)",
|
|
2032
|
+
"others__contact": "Other people on the case \u2014 the person's own record, grouped by kind (contact & safety)",
|
|
2033
|
+
"others__health_accommodation": "Other people on the case \u2014 the person's own record, grouped by kind (health & accommodation)",
|
|
2034
|
+
"others__immigration_legal_status": "Other people on the case \u2014 the person's own record, grouped by kind (immigration & legal status)",
|
|
2035
|
+
"others__risk": "Other people on the case \u2014 the person's own record, grouped by kind (risk-related)",
|
|
2036
|
+
"others__services": "Other people on the case \u2014 the person's own record, grouped by kind (services & case history)",
|
|
2037
|
+
"others__instruments": "Other people on the case \u2014 the person's own record, grouped by kind (screens & assessments)",
|
|
2038
|
+
"others__relationships_household": "Other people on the case \u2014 the person's own record, grouped by kind (relationships & household)",
|
|
2039
|
+
"network_associations": "Personas, network membership, relationships, criminal-org links",
|
|
2040
|
+
"commercial_activity": "Ads, listings, posting activity, pricing, business fronts",
|
|
2041
|
+
"investigative_work_product": "Analyst determinations, dispositions, case briefs",
|
|
2042
|
+
"object_identifiers": "Phone numbers, vehicle identifiers, image hashes, account handles"
|
|
2043
|
+
};
|
|
2044
|
+
var INFORMATION_SCOPE_ROW_ORDER = {
|
|
2045
|
+
"system": [
|
|
2046
|
+
"system_info"
|
|
2047
|
+
],
|
|
2048
|
+
"notes": [
|
|
2049
|
+
"session_summary",
|
|
2050
|
+
"case_notes"
|
|
2051
|
+
],
|
|
2052
|
+
"identifying": [
|
|
2053
|
+
"names",
|
|
2054
|
+
"dob",
|
|
2055
|
+
"addresses",
|
|
2056
|
+
"additional_ids",
|
|
2057
|
+
"demographics",
|
|
2058
|
+
"identifying__other"
|
|
2059
|
+
],
|
|
2060
|
+
"contact": [
|
|
2061
|
+
"contact_info",
|
|
2062
|
+
"safe_locations",
|
|
2063
|
+
"priorities_safety",
|
|
2064
|
+
"encounter_location"
|
|
2065
|
+
],
|
|
2066
|
+
"health_accommodation": [
|
|
2067
|
+
"health_status",
|
|
2068
|
+
"accommodation_needs"
|
|
2069
|
+
],
|
|
2070
|
+
"immigration_legal_status": [
|
|
2071
|
+
"immigration_status",
|
|
2072
|
+
"immigration_applications"
|
|
2073
|
+
],
|
|
2074
|
+
"risk": [
|
|
2075
|
+
"screen_indicators",
|
|
2076
|
+
"victimization",
|
|
2077
|
+
"system_involvement",
|
|
2078
|
+
"derived_risk_signals"
|
|
2079
|
+
],
|
|
2080
|
+
"services": [
|
|
2081
|
+
"contact_history",
|
|
2082
|
+
"service_history",
|
|
2083
|
+
"plans_goals"
|
|
2084
|
+
],
|
|
2085
|
+
"instruments": [
|
|
2086
|
+
"summary_initial_screen",
|
|
2087
|
+
"summary_mental_health_screen",
|
|
2088
|
+
"summary_behavioral_health_intake",
|
|
2089
|
+
"summary_trauma_and_coping_screen",
|
|
2090
|
+
"summary_ae_intake",
|
|
2091
|
+
"summary_ida",
|
|
2092
|
+
"summary_lap",
|
|
2093
|
+
"summary_danger_assessment",
|
|
2094
|
+
"summary_stalking_assessment",
|
|
2095
|
+
"summary_injury_and_strangulation",
|
|
2096
|
+
"summary_hope_scale",
|
|
2097
|
+
"summary_needs_assessment",
|
|
2098
|
+
"summary_tra",
|
|
2099
|
+
"summary_findings",
|
|
2100
|
+
"full_initial_screen",
|
|
2101
|
+
"full_mental_health_screen",
|
|
2102
|
+
"full_behavioral_health_intake",
|
|
2103
|
+
"full_trauma_and_coping_screen",
|
|
2104
|
+
"full_ae_intake",
|
|
2105
|
+
"full_ida",
|
|
2106
|
+
"full_lap",
|
|
2107
|
+
"full_danger_assessment",
|
|
2108
|
+
"full_stalking_assessment",
|
|
2109
|
+
"full_injury_and_strangulation",
|
|
2110
|
+
"full_hope_scale",
|
|
2111
|
+
"full_needs_assessment",
|
|
2112
|
+
"full_tra",
|
|
2113
|
+
"full_findings"
|
|
2114
|
+
],
|
|
2115
|
+
"relationships_household": [],
|
|
2116
|
+
"offenders__identifying": [],
|
|
2117
|
+
"offenders__contact": [
|
|
2118
|
+
"offenders__safe_locations"
|
|
2119
|
+
],
|
|
2120
|
+
"offenders__health_accommodation": [],
|
|
2121
|
+
"offenders__immigration_legal_status": [],
|
|
2122
|
+
"offenders__risk": [],
|
|
2123
|
+
"offenders__services": [],
|
|
2124
|
+
"offenders__instruments": [
|
|
2125
|
+
"offenders__instrument_summary",
|
|
2126
|
+
"offenders__instrument_full"
|
|
2127
|
+
],
|
|
2128
|
+
"offenders__relationships_household": [],
|
|
2129
|
+
"family__identifying": [],
|
|
2130
|
+
"family__contact": [
|
|
2131
|
+
"family__safe_locations"
|
|
2132
|
+
],
|
|
2133
|
+
"family__health_accommodation": [],
|
|
2134
|
+
"family__immigration_legal_status": [],
|
|
2135
|
+
"family__risk": [],
|
|
2136
|
+
"family__services": [],
|
|
2137
|
+
"family__instruments": [
|
|
2138
|
+
"family__instrument_summary",
|
|
2139
|
+
"family__instrument_full"
|
|
2140
|
+
],
|
|
2141
|
+
"family__relationships_household": [],
|
|
2142
|
+
"others__identifying": [],
|
|
2143
|
+
"others__contact": [
|
|
2144
|
+
"others__safe_locations"
|
|
2145
|
+
],
|
|
2146
|
+
"others__health_accommodation": [],
|
|
2147
|
+
"others__immigration_legal_status": [],
|
|
2148
|
+
"others__risk": [],
|
|
2149
|
+
"others__services": [],
|
|
2150
|
+
"others__instruments": [
|
|
2151
|
+
"others__instrument_summary",
|
|
2152
|
+
"others__instrument_full"
|
|
2153
|
+
],
|
|
2154
|
+
"others__relationships_household": [],
|
|
2155
|
+
"network_associations": [
|
|
2156
|
+
"network_membership",
|
|
2157
|
+
"persona_links"
|
|
2158
|
+
],
|
|
2159
|
+
"commercial_activity": [
|
|
2160
|
+
"ad_content",
|
|
2161
|
+
"commercial_patterns"
|
|
2162
|
+
],
|
|
2163
|
+
"investigative_work_product": [
|
|
2164
|
+
"case_determinations",
|
|
2165
|
+
"case_lifecycle",
|
|
2166
|
+
"case_attachments"
|
|
2167
|
+
],
|
|
2168
|
+
"object_identifiers": [
|
|
2169
|
+
"phone_identifiers",
|
|
2170
|
+
"object_identity_attributes"
|
|
2171
|
+
]
|
|
2172
|
+
};
|
|
2173
|
+
var INFORMATION_SCOPE_ROW_HINT = {
|
|
2174
|
+
"system_info": "Always included",
|
|
2175
|
+
"names": "All logged name entries",
|
|
2176
|
+
"additional_ids": "Other IDs entered separately",
|
|
2177
|
+
"identifying__other": "Living situation \xB7 work & income \xB7 education \xB7 languages \xB7 citizenship \xB7 physical description \xB7 vehicle",
|
|
2178
|
+
"safe_locations": "Shelter placements + confidential program addresses",
|
|
2179
|
+
"encounter_location": "The session's meetup / incident location \u2014 not the survivor's own addresses (CVC-191 reasons Meet / contact + Incident)",
|
|
2180
|
+
"immigration_status": "Visa type + birth country + relevant flags",
|
|
2181
|
+
"commercial_patterns": "Pricing, schedule, venues",
|
|
2182
|
+
"case_attachments": "Content-dependent \u2014 attachment handling flags govern",
|
|
2183
|
+
"object_identity_attributes": "Names, trade names, ages"
|
|
2184
|
+
};
|
|
2185
|
+
|
|
2186
|
+
// src/services/informationScopeUiCopy.ts
|
|
2187
|
+
var own = (o, k) => Object.prototype.hasOwnProperty.call(o, k);
|
|
2188
|
+
function toKey(codeOrKey) {
|
|
2189
|
+
return codeOrKey.replace(/\./g, "__");
|
|
2190
|
+
}
|
|
2191
|
+
function toCode(key) {
|
|
2192
|
+
return key.replace(/__/g, ".");
|
|
2193
|
+
}
|
|
2194
|
+
function scopeCategorySub(category) {
|
|
2195
|
+
const k = toKey(category);
|
|
2196
|
+
return own(INFORMATION_SCOPE_CATEGORY_SUB, k) ? INFORMATION_SCOPE_CATEGORY_SUB[k] : void 0;
|
|
2197
|
+
}
|
|
2198
|
+
function scopeRowHint(row) {
|
|
2199
|
+
const k = toKey(row);
|
|
2200
|
+
return own(INFORMATION_SCOPE_ROW_HINT, k) ? INFORMATION_SCOPE_ROW_HINT[k] : void 0;
|
|
2201
|
+
}
|
|
2202
|
+
function scopeRowDisplayOrder(category) {
|
|
2203
|
+
const k = toKey(category);
|
|
2204
|
+
return own(INFORMATION_SCOPE_ROW_ORDER, k) ? INFORMATION_SCOPE_ROW_ORDER[k].map(toCode) : [];
|
|
2205
|
+
}
|
|
2206
|
+
function sortScopeRows(category, rows) {
|
|
2207
|
+
const k = toKey(category);
|
|
2208
|
+
const order = own(INFORMATION_SCOPE_ROW_ORDER, k) ? INFORMATION_SCOPE_ROW_ORDER[k] : [];
|
|
2209
|
+
const rank = new Map(order.map((r, i) => [r, i]));
|
|
2210
|
+
return rows.map((r, i) => ({ r, i, at: rank.get(toKey(r)) ?? order.length })).sort((a, b) => a.at - b.at || a.i - b.i).map((x) => x.r);
|
|
2211
|
+
}
|
|
2212
|
+
function sortScopeCategories(categories) {
|
|
2213
|
+
const rank = new Map(INFORMATION_SCOPE_CATEGORY_ORDER.map((c, i) => [c, i]));
|
|
2214
|
+
const n = INFORMATION_SCOPE_CATEGORY_ORDER.length;
|
|
2215
|
+
return categories.map((c, i) => ({ c, i, at: rank.get(toKey(c)) ?? n })).sort((a, b) => a.at - b.at || a.i - b.i).map((x) => x.c);
|
|
2216
|
+
}
|
|
1939
2217
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1940
2218
|
0 && (module.exports = {
|
|
1941
2219
|
CvcRegistryService,
|
|
2220
|
+
INFORMATION_SCOPE_CATEGORY_ORDER,
|
|
2221
|
+
INFORMATION_SCOPE_CATEGORY_SUB,
|
|
1942
2222
|
INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE,
|
|
1943
2223
|
INFORMATION_SCOPE_READABLE_VERSIONS,
|
|
2224
|
+
INFORMATION_SCOPE_ROW_HINT,
|
|
2225
|
+
INFORMATION_SCOPE_ROW_ORDER,
|
|
1944
2226
|
INFORMATION_SCOPE_SYSTEM_INFO,
|
|
2227
|
+
INFORMATION_SCOPE_UI_COPY_SOURCE,
|
|
1945
2228
|
INFORMATION_SCOPE_VERSION,
|
|
1946
2229
|
applyEntryOverrides,
|
|
1947
2230
|
cascadeExclusions,
|
|
@@ -1952,7 +2235,12 @@ function scopeMigrationsFromSot(sot) {
|
|
|
1952
2235
|
isSelectableScopeRow,
|
|
1953
2236
|
kindForPerson,
|
|
1954
2237
|
resolveRegistryWithInheritance,
|
|
2238
|
+
scopeCategorySub,
|
|
1955
2239
|
scopeMigrationsFromSot,
|
|
1956
|
-
|
|
2240
|
+
scopeRowDisplayOrder,
|
|
2241
|
+
scopeRowHint,
|
|
2242
|
+
scopeRowsFromSot,
|
|
2243
|
+
sortScopeCategories,
|
|
2244
|
+
sortScopeRows
|
|
1957
2245
|
});
|
|
1958
2246
|
//# sourceMappingURL=index.cjs.map
|