@htilabs/platform-common-models 0.81.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 +10 -0
- package/dist/{index-uz57Fic9.d.ts → index-Bh1zO_Vu.d.ts} +1 -1
- package/dist/{index-1pWiqEBC.d.cts → index-XWSYon40.d.cts} +1 -1
- package/dist/index.cjs +332 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +322 -44
- 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/validation/index.d.cts +1 -1
- package/dist/validation/index.d.ts +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/dist/{agency-Djp57S71.d.cts → agency-8ufZJJDH.d.cts} +4 -4
- package/dist/{agency-BHv54o79.d.ts → agency-CnVTwLeV.d.ts} +4 -4
- package/dist/{cvcEntry-DAuhe0cd.d.cts → cvcEntry-D787utvP.d.cts} +8 -8
- package/dist/{cvcEntry-DAuhe0cd.d.ts → cvcEntry-D787utvP.d.ts} +8 -8
package/README.md
CHANGED
|
@@ -16,6 +16,16 @@ Package exports are organized into a public root API and a small number of
|
|
|
16
16
|
dedicated subpaths (`/validation`, `/cvcs`) — consult `package.json` for the
|
|
17
17
|
authoritative `exports` map.
|
|
18
18
|
|
|
19
|
+
## 0.82.0 — the Information scope page's words and order: each category's one-line description, the hint under some rows, and canon's row order (additive, `./information-scope`; CVC-236 `core-information_scope` unchanged)
|
|
20
|
+
|
|
21
|
+
**What changed.** The Admin Hub's Information scope page could not draw three things the prototype draws, because the CVC-236 SOT does not carry them: the line under each category title ("Session timestamps, source info — always shared"), the hint under ten rows (System info → "Always included"), and canon's row order inside a category (the SOT lists a category's children in code order, so Narrative notes and Health & accommodation came out reversed). `./information-scope` (and `./services`, the root) now export them:
|
|
22
|
+
|
|
23
|
+
- `scopeCategorySub(category)` · `scopeRowHint(row)` · `scopeRowDisplayOrder(category)` (selection codes, canon order) · `sortScopeRows(category, rows)` · `sortScopeCategories(categories)` — each takes either spelling (`identifying.other` or `identifying__other`).
|
|
24
|
+
- The data: `INFORMATION_SCOPE_CATEGORY_ORDER` · `INFORMATION_SCOPE_CATEGORY_SUB` · `INFORMATION_SCOPE_ROW_ORDER` · `INFORMATION_SCOPE_ROW_HINT` (package keys), GENERATED in `src/generated/informationScopeUiCopy.ts` by `scripts/gen-information-scope-ui-copy.py <prototype root> <platform-prototype root>` (`--check` compares data). Order comes from the records repo's CVC-236 tree (`data/cvcs/core_information_scope.yaml`); the words from the Platform prototype's `sharing.scopeCatalog` `sub` / `hint`, where they are authored (the records repo's `build_information_scope_registry.py` preserves them by id). The generator refuses when the two copies disagree on a category, a row or an order. Text is carried as written.
|
|
25
|
+
- `src/services/__tests__/informationScopeUiCopy.test.ts` holds every key to a live SOT row, every category's order to exactly its live rows, and every hint to an ordered row — a codebook change fails the build instead of orphaning copy.
|
|
26
|
+
|
|
27
|
+
Nothing existing changes: the SOT JSON, `scopeRowsFromSot` and every existing export read as before.
|
|
28
|
+
|
|
19
29
|
## 0.81.0 — an internal referral carries other people's phones and emails again: the per-kind "Contact & safety" rows are no longer withheld as "under the platform safety floor" (sharing ceiling; CVC-236 `core-information_scope` unchanged)
|
|
20
30
|
|
|
21
31
|
**What changed.** Another person's phones, emails and contact log (the person who caused harm, an eligible family member, another person on the case) ride that person's **Contact & safety** row (`offenders.contact` · `family.contact` · `others.contact`): canon homes them on `contact_info` and rule 1 routes them to the deepest per-kind row whose `kindRow` is that home or an ancestor (prototype `resolveHome`; the scope tree, `INFOSCOPE_TREE_V4_PROPOSAL_2026-10-08.md`: "offenders.contact — their phones / emails — shareable yes"). Each of those rows has one child, `<kind>.safe_locations`, the platform floor. `resolveShare` counted that one floor child as "every leaf withheld" and withheld the whole row ("Never shared — under the platform safety floor"), so `shareRowCeiling` never listed it and Thread's and PAVE's composers masked it away: an internal share under the inside starter offered 3 fewer categories than the prototype's full record (`shareFullRecordIds`, whose catalog lists no floor row) and carried no other person's phone or email.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-
|
|
1
|
+
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-D787utvP.js';
|
|
2
2
|
import * as mongoose from 'mongoose';
|
|
3
3
|
import { HydratedDocument, Connection, Model } from 'mongoose';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-
|
|
1
|
+
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-D787utvP.cjs';
|
|
2
2
|
import * as mongoose from 'mongoose';
|
|
3
3
|
import { HydratedDocument, Connection, Model } from 'mongoose';
|
|
4
4
|
|
package/dist/index.cjs
CHANGED
|
@@ -362,10 +362,15 @@ __export(src_exports, {
|
|
|
362
362
|
INCIDENT_PARTICIPATION_ROLE_LABELS: () => INCIDENT_PARTICIPATION_ROLE_LABELS,
|
|
363
363
|
INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY: () => INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY,
|
|
364
364
|
INCIDENT_PARTICIPATION_ROLE_VALUES: () => INCIDENT_PARTICIPATION_ROLE_VALUES,
|
|
365
|
+
INFORMATION_SCOPE_CATEGORY_ORDER: () => INFORMATION_SCOPE_CATEGORY_ORDER,
|
|
366
|
+
INFORMATION_SCOPE_CATEGORY_SUB: () => INFORMATION_SCOPE_CATEGORY_SUB,
|
|
365
367
|
INFORMATION_SCOPE_FIELD_HOME_ROWS: () => INFORMATION_SCOPE_FIELD_HOME_ROWS,
|
|
366
368
|
INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE: () => INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE,
|
|
367
369
|
INFORMATION_SCOPE_READABLE_VERSIONS: () => INFORMATION_SCOPE_READABLE_VERSIONS,
|
|
370
|
+
INFORMATION_SCOPE_ROW_HINT: () => INFORMATION_SCOPE_ROW_HINT,
|
|
371
|
+
INFORMATION_SCOPE_ROW_ORDER: () => INFORMATION_SCOPE_ROW_ORDER,
|
|
368
372
|
INFORMATION_SCOPE_SYSTEM_INFO: () => INFORMATION_SCOPE_SYSTEM_INFO,
|
|
373
|
+
INFORMATION_SCOPE_UI_COPY_SOURCE: () => INFORMATION_SCOPE_UI_COPY_SOURCE,
|
|
369
374
|
INFORMATION_SCOPE_VERSION: () => INFORMATION_SCOPE_VERSION,
|
|
370
375
|
INTERACTION_TYPES: () => INTERACTION_TYPES,
|
|
371
376
|
INTERACTION_TYPE_LABELS: () => INTERACTION_TYPE_LABELS,
|
|
@@ -969,9 +974,12 @@ __export(src_exports, {
|
|
|
969
974
|
rowsOutsideCeiling: () => rowsOutsideCeiling,
|
|
970
975
|
rowsOverCeiling: () => rowsOverCeiling,
|
|
971
976
|
rsvpResponseSot: () => rsvpResponse_v1_0_0_default,
|
|
977
|
+
scopeCategorySub: () => scopeCategorySub,
|
|
972
978
|
scopeListCovers: () => scopeListCovers,
|
|
973
979
|
scopeListStrictlyCovers: () => scopeListStrictlyCovers,
|
|
974
980
|
scopeMigrationsFromSot: () => scopeMigrationsFromSot,
|
|
981
|
+
scopeRowDisplayOrder: () => scopeRowDisplayOrder,
|
|
982
|
+
scopeRowHint: () => scopeRowHint,
|
|
975
983
|
scopeRowWithinCeiling: () => scopeRowWithinCeiling,
|
|
976
984
|
scopeRowsFromSot: () => scopeRowsFromSot,
|
|
977
985
|
scoringConditionSchema: () => scoringConditionSchema,
|
|
@@ -1028,6 +1036,8 @@ __export(src_exports, {
|
|
|
1028
1036
|
smtSignificanceFlagsSot: () => smtSignificanceFlags_v1_0_0_default,
|
|
1029
1037
|
smtTypeSot: () => smtType_v1_0_0_default,
|
|
1030
1038
|
sortRelationshipsByPriority: () => sortRelationshipsByPriority,
|
|
1039
|
+
sortScopeCategories: () => sortScopeCategories,
|
|
1040
|
+
sortScopeRows: () => sortScopeRows,
|
|
1031
1041
|
sourceCategorySot: () => sourceCategory_v1_1_0_default,
|
|
1032
1042
|
sourceInstrumentSot: () => sourceInstrument_v1_1_0_default,
|
|
1033
1043
|
sourceSubtypeSot: () => sourceSubtype_v1_2_0_default,
|
|
@@ -9920,13 +9930,13 @@ function createCodebookReader(file, sot, codes) {
|
|
|
9920
9930
|
const pickerLabels = sot.pickerLabels ?? {};
|
|
9921
9931
|
const options = /* @__PURE__ */ new Map();
|
|
9922
9932
|
for (const [name, offered] of Object.entries(pickers)) {
|
|
9923
|
-
const
|
|
9933
|
+
const own5 = pickerLabels[name] ?? {};
|
|
9924
9934
|
options.set(
|
|
9925
9935
|
name,
|
|
9926
9936
|
offered.map((c) => {
|
|
9927
9937
|
const v = byCode.get(c);
|
|
9928
9938
|
if (!v) throw new Error(`${file}: picker ${name} offers ${c}, not a code`);
|
|
9929
|
-
return { code: v.code, label:
|
|
9939
|
+
return { code: v.code, label: own5[c] ?? v.label };
|
|
9930
9940
|
})
|
|
9931
9941
|
);
|
|
9932
9942
|
}
|
|
@@ -9940,8 +9950,8 @@ function createCodebookReader(file, sot, codes) {
|
|
|
9940
9950
|
byCode: (code) => byCode.get(code) ?? null,
|
|
9941
9951
|
entry: (code) => entryByCode.get(code) ?? null,
|
|
9942
9952
|
label: (code, picker) => {
|
|
9943
|
-
const
|
|
9944
|
-
return
|
|
9953
|
+
const own5 = picker === void 0 ? void 0 : pickerLabels[picker]?.[code];
|
|
9954
|
+
return own5 ?? byCode.get(code)?.label ?? code;
|
|
9945
9955
|
},
|
|
9946
9956
|
normalize: (stored) => {
|
|
9947
9957
|
if (typeof stored !== "string") return null;
|
|
@@ -26793,6 +26803,274 @@ function scopeMigrationsFromSot(sot) {
|
|
|
26793
26803
|
});
|
|
26794
26804
|
}
|
|
26795
26805
|
|
|
26806
|
+
// src/generated/informationScopeUiCopy.ts
|
|
26807
|
+
var INFORMATION_SCOPE_UI_COPY_SOURCE = {
|
|
26808
|
+
"order": {
|
|
26809
|
+
"repo": "htilabstech/prototype",
|
|
26810
|
+
"file": "data/cvcs/core_information_scope.yaml",
|
|
26811
|
+
"sha": "395bb7aa"
|
|
26812
|
+
},
|
|
26813
|
+
"words": {
|
|
26814
|
+
"repo": "htilabstech/platform-prototype",
|
|
26815
|
+
"file": "src/data.js",
|
|
26816
|
+
"sha": "c324f715",
|
|
26817
|
+
"line": 33875
|
|
26818
|
+
}
|
|
26819
|
+
};
|
|
26820
|
+
var INFORMATION_SCOPE_CATEGORY_ORDER = [
|
|
26821
|
+
"system",
|
|
26822
|
+
"notes",
|
|
26823
|
+
"identifying",
|
|
26824
|
+
"contact",
|
|
26825
|
+
"health_accommodation",
|
|
26826
|
+
"immigration_legal_status",
|
|
26827
|
+
"risk",
|
|
26828
|
+
"services",
|
|
26829
|
+
"instruments",
|
|
26830
|
+
"relationships_household",
|
|
26831
|
+
"offenders__identifying",
|
|
26832
|
+
"offenders__contact",
|
|
26833
|
+
"offenders__health_accommodation",
|
|
26834
|
+
"offenders__immigration_legal_status",
|
|
26835
|
+
"offenders__risk",
|
|
26836
|
+
"offenders__services",
|
|
26837
|
+
"offenders__instruments",
|
|
26838
|
+
"offenders__relationships_household",
|
|
26839
|
+
"family__identifying",
|
|
26840
|
+
"family__contact",
|
|
26841
|
+
"family__health_accommodation",
|
|
26842
|
+
"family__immigration_legal_status",
|
|
26843
|
+
"family__risk",
|
|
26844
|
+
"family__services",
|
|
26845
|
+
"family__instruments",
|
|
26846
|
+
"family__relationships_household",
|
|
26847
|
+
"others__identifying",
|
|
26848
|
+
"others__contact",
|
|
26849
|
+
"others__health_accommodation",
|
|
26850
|
+
"others__immigration_legal_status",
|
|
26851
|
+
"others__risk",
|
|
26852
|
+
"others__services",
|
|
26853
|
+
"others__instruments",
|
|
26854
|
+
"others__relationships_household",
|
|
26855
|
+
"network_associations",
|
|
26856
|
+
"commercial_activity",
|
|
26857
|
+
"investigative_work_product",
|
|
26858
|
+
"object_identifiers"
|
|
26859
|
+
];
|
|
26860
|
+
var INFORMATION_SCOPE_CATEGORY_SUB = {
|
|
26861
|
+
"system": "Session timestamps, source info \u2014 always shared",
|
|
26862
|
+
"notes": "The session summary, and notes written in a session or on the case",
|
|
26863
|
+
"identifying": "Names, DOB, addresses, identifiers, demographics",
|
|
26864
|
+
"contact": "How to reach the person safely: contact info + safety preferences, the Priorities & Safety triage",
|
|
26865
|
+
"health_accommodation": "Health status, accommodation needs",
|
|
26866
|
+
"immigration_legal_status": "Immigration status, immigration applications",
|
|
26867
|
+
"risk": "Indicators, screening outcomes, per-instrument assessment responses, determinations, system involvement \u2014 the people who caused harm are their own branch",
|
|
26868
|
+
"services": "Contact history with this agency, service records, service plans + goals \u2014 three tiers of sensitivity",
|
|
26869
|
+
"instruments": "Initial Screen, intake screens, assessments, Findings \u2014 a Summary & outcome row and a Full questions, narratives & notes row per instrument",
|
|
26870
|
+
"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",
|
|
26871
|
+
"offenders__identifying": "People who caused harm \u2014 the person's own record, grouped by kind (identifying information)",
|
|
26872
|
+
"offenders__contact": "People who caused harm \u2014 the person's own record, grouped by kind (contact & safety)",
|
|
26873
|
+
"offenders__health_accommodation": "People who caused harm \u2014 the person's own record, grouped by kind (health & accommodation)",
|
|
26874
|
+
"offenders__immigration_legal_status": "People who caused harm \u2014 the person's own record, grouped by kind (immigration & legal status)",
|
|
26875
|
+
"offenders__risk": "People who caused harm \u2014 the person's own record, grouped by kind (risk-related)",
|
|
26876
|
+
"offenders__services": "People who caused harm \u2014 the person's own record, grouped by kind (services & case history)",
|
|
26877
|
+
"offenders__instruments": "People who caused harm \u2014 the person's own record, grouped by kind (screens & assessments)",
|
|
26878
|
+
"offenders__relationships_household": "People who caused harm \u2014 the person's own record, grouped by kind (relationships & household)",
|
|
26879
|
+
"family__identifying": "Eligible family members \u2014 the person's own record, grouped by kind (identifying information)",
|
|
26880
|
+
"family__contact": "Eligible family members \u2014 the person's own record, grouped by kind (contact & safety)",
|
|
26881
|
+
"family__health_accommodation": "Eligible family members \u2014 the person's own record, grouped by kind (health & accommodation)",
|
|
26882
|
+
"family__immigration_legal_status": "Eligible family members \u2014 the person's own record, grouped by kind (immigration & legal status)",
|
|
26883
|
+
"family__risk": "Eligible family members \u2014 the person's own record, grouped by kind (risk-related)",
|
|
26884
|
+
"family__services": "Eligible family members \u2014 the person's own record, grouped by kind (services & case history)",
|
|
26885
|
+
"family__instruments": "Eligible family members \u2014 the person's own record, grouped by kind (screens & assessments)",
|
|
26886
|
+
"family__relationships_household": "Eligible family members \u2014 the person's own record, grouped by kind (relationships & household)",
|
|
26887
|
+
"others__identifying": "Other people on the case \u2014 the person's own record, grouped by kind (identifying information)",
|
|
26888
|
+
"others__contact": "Other people on the case \u2014 the person's own record, grouped by kind (contact & safety)",
|
|
26889
|
+
"others__health_accommodation": "Other people on the case \u2014 the person's own record, grouped by kind (health & accommodation)",
|
|
26890
|
+
"others__immigration_legal_status": "Other people on the case \u2014 the person's own record, grouped by kind (immigration & legal status)",
|
|
26891
|
+
"others__risk": "Other people on the case \u2014 the person's own record, grouped by kind (risk-related)",
|
|
26892
|
+
"others__services": "Other people on the case \u2014 the person's own record, grouped by kind (services & case history)",
|
|
26893
|
+
"others__instruments": "Other people on the case \u2014 the person's own record, grouped by kind (screens & assessments)",
|
|
26894
|
+
"others__relationships_household": "Other people on the case \u2014 the person's own record, grouped by kind (relationships & household)",
|
|
26895
|
+
"network_associations": "Personas, network membership, relationships, criminal-org links",
|
|
26896
|
+
"commercial_activity": "Ads, listings, posting activity, pricing, business fronts",
|
|
26897
|
+
"investigative_work_product": "Analyst determinations, dispositions, case briefs",
|
|
26898
|
+
"object_identifiers": "Phone numbers, vehicle identifiers, image hashes, account handles"
|
|
26899
|
+
};
|
|
26900
|
+
var INFORMATION_SCOPE_ROW_ORDER = {
|
|
26901
|
+
"system": [
|
|
26902
|
+
"system_info"
|
|
26903
|
+
],
|
|
26904
|
+
"notes": [
|
|
26905
|
+
"session_summary",
|
|
26906
|
+
"case_notes"
|
|
26907
|
+
],
|
|
26908
|
+
"identifying": [
|
|
26909
|
+
"names",
|
|
26910
|
+
"dob",
|
|
26911
|
+
"addresses",
|
|
26912
|
+
"additional_ids",
|
|
26913
|
+
"demographics",
|
|
26914
|
+
"identifying__other"
|
|
26915
|
+
],
|
|
26916
|
+
"contact": [
|
|
26917
|
+
"contact_info",
|
|
26918
|
+
"safe_locations",
|
|
26919
|
+
"priorities_safety",
|
|
26920
|
+
"encounter_location"
|
|
26921
|
+
],
|
|
26922
|
+
"health_accommodation": [
|
|
26923
|
+
"health_status",
|
|
26924
|
+
"accommodation_needs"
|
|
26925
|
+
],
|
|
26926
|
+
"immigration_legal_status": [
|
|
26927
|
+
"immigration_status",
|
|
26928
|
+
"immigration_applications"
|
|
26929
|
+
],
|
|
26930
|
+
"risk": [
|
|
26931
|
+
"screen_indicators",
|
|
26932
|
+
"victimization",
|
|
26933
|
+
"system_involvement",
|
|
26934
|
+
"derived_risk_signals"
|
|
26935
|
+
],
|
|
26936
|
+
"services": [
|
|
26937
|
+
"contact_history",
|
|
26938
|
+
"service_history",
|
|
26939
|
+
"plans_goals"
|
|
26940
|
+
],
|
|
26941
|
+
"instruments": [
|
|
26942
|
+
"summary_initial_screen",
|
|
26943
|
+
"summary_mental_health_screen",
|
|
26944
|
+
"summary_behavioral_health_intake",
|
|
26945
|
+
"summary_trauma_and_coping_screen",
|
|
26946
|
+
"summary_ae_intake",
|
|
26947
|
+
"summary_ida",
|
|
26948
|
+
"summary_lap",
|
|
26949
|
+
"summary_danger_assessment",
|
|
26950
|
+
"summary_stalking_assessment",
|
|
26951
|
+
"summary_injury_and_strangulation",
|
|
26952
|
+
"summary_hope_scale",
|
|
26953
|
+
"summary_needs_assessment",
|
|
26954
|
+
"summary_tra",
|
|
26955
|
+
"summary_findings",
|
|
26956
|
+
"full_initial_screen",
|
|
26957
|
+
"full_mental_health_screen",
|
|
26958
|
+
"full_behavioral_health_intake",
|
|
26959
|
+
"full_trauma_and_coping_screen",
|
|
26960
|
+
"full_ae_intake",
|
|
26961
|
+
"full_ida",
|
|
26962
|
+
"full_lap",
|
|
26963
|
+
"full_danger_assessment",
|
|
26964
|
+
"full_stalking_assessment",
|
|
26965
|
+
"full_injury_and_strangulation",
|
|
26966
|
+
"full_hope_scale",
|
|
26967
|
+
"full_needs_assessment",
|
|
26968
|
+
"full_tra",
|
|
26969
|
+
"full_findings"
|
|
26970
|
+
],
|
|
26971
|
+
"relationships_household": [],
|
|
26972
|
+
"offenders__identifying": [],
|
|
26973
|
+
"offenders__contact": [
|
|
26974
|
+
"offenders__safe_locations"
|
|
26975
|
+
],
|
|
26976
|
+
"offenders__health_accommodation": [],
|
|
26977
|
+
"offenders__immigration_legal_status": [],
|
|
26978
|
+
"offenders__risk": [],
|
|
26979
|
+
"offenders__services": [],
|
|
26980
|
+
"offenders__instruments": [
|
|
26981
|
+
"offenders__instrument_summary",
|
|
26982
|
+
"offenders__instrument_full"
|
|
26983
|
+
],
|
|
26984
|
+
"offenders__relationships_household": [],
|
|
26985
|
+
"family__identifying": [],
|
|
26986
|
+
"family__contact": [
|
|
26987
|
+
"family__safe_locations"
|
|
26988
|
+
],
|
|
26989
|
+
"family__health_accommodation": [],
|
|
26990
|
+
"family__immigration_legal_status": [],
|
|
26991
|
+
"family__risk": [],
|
|
26992
|
+
"family__services": [],
|
|
26993
|
+
"family__instruments": [
|
|
26994
|
+
"family__instrument_summary",
|
|
26995
|
+
"family__instrument_full"
|
|
26996
|
+
],
|
|
26997
|
+
"family__relationships_household": [],
|
|
26998
|
+
"others__identifying": [],
|
|
26999
|
+
"others__contact": [
|
|
27000
|
+
"others__safe_locations"
|
|
27001
|
+
],
|
|
27002
|
+
"others__health_accommodation": [],
|
|
27003
|
+
"others__immigration_legal_status": [],
|
|
27004
|
+
"others__risk": [],
|
|
27005
|
+
"others__services": [],
|
|
27006
|
+
"others__instruments": [
|
|
27007
|
+
"others__instrument_summary",
|
|
27008
|
+
"others__instrument_full"
|
|
27009
|
+
],
|
|
27010
|
+
"others__relationships_household": [],
|
|
27011
|
+
"network_associations": [
|
|
27012
|
+
"network_membership",
|
|
27013
|
+
"persona_links"
|
|
27014
|
+
],
|
|
27015
|
+
"commercial_activity": [
|
|
27016
|
+
"ad_content",
|
|
27017
|
+
"commercial_patterns"
|
|
27018
|
+
],
|
|
27019
|
+
"investigative_work_product": [
|
|
27020
|
+
"case_determinations",
|
|
27021
|
+
"case_lifecycle",
|
|
27022
|
+
"case_attachments"
|
|
27023
|
+
],
|
|
27024
|
+
"object_identifiers": [
|
|
27025
|
+
"phone_identifiers",
|
|
27026
|
+
"object_identity_attributes"
|
|
27027
|
+
]
|
|
27028
|
+
};
|
|
27029
|
+
var INFORMATION_SCOPE_ROW_HINT = {
|
|
27030
|
+
"system_info": "Always included",
|
|
27031
|
+
"names": "All logged name entries",
|
|
27032
|
+
"additional_ids": "Other IDs entered separately",
|
|
27033
|
+
"identifying__other": "Living situation \xB7 work & income \xB7 education \xB7 languages \xB7 citizenship \xB7 physical description \xB7 vehicle",
|
|
27034
|
+
"safe_locations": "Shelter placements + confidential program addresses",
|
|
27035
|
+
"encounter_location": "The session's meetup / incident location \u2014 not the survivor's own addresses (CVC-191 reasons Meet / contact + Incident)",
|
|
27036
|
+
"immigration_status": "Visa type + birth country + relevant flags",
|
|
27037
|
+
"commercial_patterns": "Pricing, schedule, venues",
|
|
27038
|
+
"case_attachments": "Content-dependent \u2014 attachment handling flags govern",
|
|
27039
|
+
"object_identity_attributes": "Names, trade names, ages"
|
|
27040
|
+
};
|
|
27041
|
+
|
|
27042
|
+
// src/services/informationScopeUiCopy.ts
|
|
27043
|
+
var own = (o, k) => Object.prototype.hasOwnProperty.call(o, k);
|
|
27044
|
+
function toKey(codeOrKey) {
|
|
27045
|
+
return codeOrKey.replace(/\./g, "__");
|
|
27046
|
+
}
|
|
27047
|
+
function toCode(key) {
|
|
27048
|
+
return key.replace(/__/g, ".");
|
|
27049
|
+
}
|
|
27050
|
+
function scopeCategorySub(category) {
|
|
27051
|
+
const k = toKey(category);
|
|
27052
|
+
return own(INFORMATION_SCOPE_CATEGORY_SUB, k) ? INFORMATION_SCOPE_CATEGORY_SUB[k] : void 0;
|
|
27053
|
+
}
|
|
27054
|
+
function scopeRowHint(row) {
|
|
27055
|
+
const k = toKey(row);
|
|
27056
|
+
return own(INFORMATION_SCOPE_ROW_HINT, k) ? INFORMATION_SCOPE_ROW_HINT[k] : void 0;
|
|
27057
|
+
}
|
|
27058
|
+
function scopeRowDisplayOrder(category) {
|
|
27059
|
+
const k = toKey(category);
|
|
27060
|
+
return own(INFORMATION_SCOPE_ROW_ORDER, k) ? INFORMATION_SCOPE_ROW_ORDER[k].map(toCode) : [];
|
|
27061
|
+
}
|
|
27062
|
+
function sortScopeRows(category, rows) {
|
|
27063
|
+
const k = toKey(category);
|
|
27064
|
+
const order = own(INFORMATION_SCOPE_ROW_ORDER, k) ? INFORMATION_SCOPE_ROW_ORDER[k] : [];
|
|
27065
|
+
const rank = new Map(order.map((r, i) => [r, i]));
|
|
27066
|
+
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);
|
|
27067
|
+
}
|
|
27068
|
+
function sortScopeCategories(categories) {
|
|
27069
|
+
const rank = new Map(INFORMATION_SCOPE_CATEGORY_ORDER.map((c, i) => [c, i]));
|
|
27070
|
+
const n = INFORMATION_SCOPE_CATEGORY_ORDER.length;
|
|
27071
|
+
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);
|
|
27072
|
+
}
|
|
27073
|
+
|
|
26796
27074
|
// src/age/ageFromDob.ts
|
|
26797
27075
|
var DOB_MIN_YEAR = 1850;
|
|
26798
27076
|
function toNullableNumber(v) {
|
|
@@ -26994,12 +27272,12 @@ function readContainer(v) {
|
|
|
26994
27272
|
if (v === void 0 || v === null) return ABSENT;
|
|
26995
27273
|
return isPlainObject(v) ? { kind: "map", map: v } : MALFORMED;
|
|
26996
27274
|
}
|
|
26997
|
-
function
|
|
27275
|
+
function own2(map, key) {
|
|
26998
27276
|
return Object.hasOwn(map, key) ? map[key] : void 0;
|
|
26999
27277
|
}
|
|
27000
27278
|
var STATES = new Set(Object.values(PERMISSION_STATE));
|
|
27001
27279
|
function readState(map, code) {
|
|
27002
|
-
const v =
|
|
27280
|
+
const v = own2(map, code);
|
|
27003
27281
|
if (v === void 0 || v === null) return void 0;
|
|
27004
27282
|
if (v === DEFAULT_BOUND_STATE.NA) return PERMISSION_STATE.NEVER;
|
|
27005
27283
|
return typeof v === "string" && STATES.has(v) ? v : "malformed";
|
|
@@ -27010,12 +27288,12 @@ function tier1State(roleFunctions, code) {
|
|
|
27010
27288
|
return listed === "malformed" ? PERMISSION_STATE.NEVER : listed;
|
|
27011
27289
|
}
|
|
27012
27290
|
function tier1IsNotApplicable(roleFunctions, code) {
|
|
27013
|
-
return roleFunctions.kind === "map" &&
|
|
27291
|
+
return roleFunctions.kind === "map" && own2(roleFunctions.map, code) === DEFAULT_BOUND_STATE.NA;
|
|
27014
27292
|
}
|
|
27015
27293
|
function catalogRowCode(row) {
|
|
27016
27294
|
if (!isPlainObject(row)) return null;
|
|
27017
|
-
const code =
|
|
27018
|
-
const retired =
|
|
27295
|
+
const code = own2(row, "code");
|
|
27296
|
+
const retired = own2(row, "retired");
|
|
27019
27297
|
if (typeof code !== "string") return null;
|
|
27020
27298
|
if (retired !== void 0 && retired !== false) return null;
|
|
27021
27299
|
return code;
|
|
@@ -27043,19 +27321,19 @@ function compileTeamGate(teamPolicy) {
|
|
|
27043
27321
|
return { restrictsAll: true, flat: void 0, byRole, malformedRoles };
|
|
27044
27322
|
}
|
|
27045
27323
|
let restrictsAll = false;
|
|
27046
|
-
const functions = readContainer(
|
|
27324
|
+
const functions = readContainer(own2(policy.map, "functions"));
|
|
27047
27325
|
if (functions.kind === "malformed") restrictsAll = true;
|
|
27048
|
-
const roles =
|
|
27326
|
+
const roles = own2(policy.map, "roles");
|
|
27049
27327
|
if (roles !== void 0 && roles !== null) {
|
|
27050
27328
|
if (!Array.isArray(roles)) restrictsAll = true;
|
|
27051
27329
|
else {
|
|
27052
27330
|
for (const entry of roles) {
|
|
27053
|
-
const roleCode = isPlainObject(entry) ?
|
|
27331
|
+
const roleCode = isPlainObject(entry) ? own2(entry, "roleCode") : void 0;
|
|
27054
27332
|
if (!isPlainObject(entry) || typeof roleCode !== "string") {
|
|
27055
27333
|
restrictsAll = true;
|
|
27056
27334
|
continue;
|
|
27057
27335
|
}
|
|
27058
|
-
const overrides = readContainer(
|
|
27336
|
+
const overrides = readContainer(own2(entry, "overrides"));
|
|
27059
27337
|
if (overrides.kind === "malformed") malformedRoles.add(roleCode);
|
|
27060
27338
|
else if (overrides.kind === "map") {
|
|
27061
27339
|
const list3 = byRole.get(roleCode) ?? [];
|
|
@@ -27080,13 +27358,13 @@ function teamRestricts(gate, roleCode, code) {
|
|
|
27080
27358
|
function resolveEffectiveFunctions(input) {
|
|
27081
27359
|
const raw = input;
|
|
27082
27360
|
if (!isPlainObject(raw)) return [];
|
|
27083
|
-
const roleRows =
|
|
27084
|
-
const catalog =
|
|
27085
|
-
const assigned =
|
|
27361
|
+
const roleRows = own2(raw, "roles");
|
|
27362
|
+
const catalog = own2(raw, "functions");
|
|
27363
|
+
const assigned = own2(raw, "assignedRoleCodes");
|
|
27086
27364
|
if (!Array.isArray(roleRows) || !Array.isArray(catalog) || !Array.isArray(assigned)) return [];
|
|
27087
27365
|
const rolesByCode = /* @__PURE__ */ new Map();
|
|
27088
27366
|
for (const r of roleRows) {
|
|
27089
|
-
const code = isPlainObject(r) ?
|
|
27367
|
+
const code = isPlainObject(r) ? own2(r, "code") : void 0;
|
|
27090
27368
|
if (isPlainObject(r) && typeof code === "string") rolesByCode.set(code, r);
|
|
27091
27369
|
}
|
|
27092
27370
|
const heldCodes = [...new Set(assigned)].filter(
|
|
@@ -27103,9 +27381,9 @@ function resolveEffectiveFunctions(input) {
|
|
|
27103
27381
|
const granted = /* @__PURE__ */ new Set();
|
|
27104
27382
|
for (const roleCode of heldCodes) {
|
|
27105
27383
|
const role = rolesByCode.get(roleCode);
|
|
27106
|
-
const roleFunctions = readContainer(
|
|
27384
|
+
const roleFunctions = readContainer(own2(role, "functions"));
|
|
27107
27385
|
if (roleFunctions.kind === "malformed") continue;
|
|
27108
|
-
const agency = agencyAll.kind === "map" ? readContainer(
|
|
27386
|
+
const agency = agencyAll.kind === "map" ? readContainer(own2(agencyAll.map, roleCode)) : agencyAll;
|
|
27109
27387
|
for (const fn of vocabulary) {
|
|
27110
27388
|
if (granted.has(fn)) continue;
|
|
27111
27389
|
if (roleVerdict(roleFunctions, agency, team, roleCode, fn) === "granted") granted.add(fn);
|
|
@@ -27148,9 +27426,9 @@ var REFUSAL_ORDER = [
|
|
|
27148
27426
|
function explainFunctionRefusal(input, functionCode) {
|
|
27149
27427
|
const raw = input;
|
|
27150
27428
|
if (!isPlainObject(raw)) return "not_evaluable";
|
|
27151
|
-
const roleRows =
|
|
27152
|
-
const catalog =
|
|
27153
|
-
const assigned =
|
|
27429
|
+
const roleRows = own2(raw, "roles");
|
|
27430
|
+
const catalog = own2(raw, "functions");
|
|
27431
|
+
const assigned = own2(raw, "assignedRoleCodes");
|
|
27154
27432
|
if (!Array.isArray(roleRows) || !Array.isArray(catalog) || !Array.isArray(assigned)) {
|
|
27155
27433
|
return "not_evaluable";
|
|
27156
27434
|
}
|
|
@@ -27166,7 +27444,7 @@ function explainFunctionRefusal(input, functionCode) {
|
|
|
27166
27444
|
if (heldCodes.length === 0) return "no_roles";
|
|
27167
27445
|
const rolesByCode = /* @__PURE__ */ new Map();
|
|
27168
27446
|
for (const r of roleRows) {
|
|
27169
|
-
const code = isPlainObject(r) ?
|
|
27447
|
+
const code = isPlainObject(r) ? own2(r, "code") : void 0;
|
|
27170
27448
|
if (isPlainObject(r) && typeof code === "string") rolesByCode.set(code, r);
|
|
27171
27449
|
}
|
|
27172
27450
|
const agencyAll = readContainer(input.agencyOverrides);
|
|
@@ -27174,9 +27452,9 @@ function explainFunctionRefusal(input, functionCode) {
|
|
|
27174
27452
|
let best = REFUSAL_ORDER.length - 1;
|
|
27175
27453
|
for (const roleCode of heldCodes) {
|
|
27176
27454
|
const role = rolesByCode.get(roleCode);
|
|
27177
|
-
const roleFunctions = role === void 0 ? ABSENT : readContainer(
|
|
27455
|
+
const roleFunctions = role === void 0 ? ABSENT : readContainer(own2(role, "functions"));
|
|
27178
27456
|
if (roleFunctions.kind === "malformed") continue;
|
|
27179
|
-
const agency = agencyAll.kind === "map" ? readContainer(
|
|
27457
|
+
const agency = agencyAll.kind === "map" ? readContainer(own2(agencyAll.map, roleCode)) : agencyAll;
|
|
27180
27458
|
const verdict = roleVerdict(roleFunctions, agency, team, roleCode, functionCode);
|
|
27181
27459
|
const at = REFUSAL_ORDER.indexOf(verdict);
|
|
27182
27460
|
if (at < best) best = at;
|
|
@@ -28265,7 +28543,7 @@ var HTI_SHARE_PLATFORM_STARTER_SOURCE = SHARING_PLATFORM_STARTER_SOURCE;
|
|
|
28265
28543
|
// src/sharingCeiling/chain.ts
|
|
28266
28544
|
var SHARING_CEILING_DEFAULT_ROW_KEY = "__default__";
|
|
28267
28545
|
var SHARING_CEILING_EXTERNAL_ROW_KEY = "__external__";
|
|
28268
|
-
var
|
|
28546
|
+
var own3 = (record, key) => record !== null && typeof record === "object" && Object.prototype.hasOwnProperty.call(record, key) ? record[key] : void 0;
|
|
28269
28547
|
var isStringList = (v) => Array.isArray(v) && v.every((c) => typeof c === "string");
|
|
28270
28548
|
function sharingCeilingCellList(cell) {
|
|
28271
28549
|
if (cell.scopeVersion === SHARING_CEILING_SCOPE_VERSION && isStringList(cell.informationScope)) {
|
|
@@ -28300,10 +28578,10 @@ function rungList(value) {
|
|
|
28300
28578
|
return isStringList(value) ? [...value] : [];
|
|
28301
28579
|
}
|
|
28302
28580
|
function isSharingPurposeDisabled(purpose, purposeOverrides, purposeEnabled) {
|
|
28303
|
-
const override =
|
|
28581
|
+
const override = own3(purposeOverrides, purpose);
|
|
28304
28582
|
if (override === false) return true;
|
|
28305
|
-
const callerRow =
|
|
28306
|
-
const enabled = typeof callerRow === "boolean" ? callerRow :
|
|
28583
|
+
const callerRow = own3(purposeEnabled, purpose);
|
|
28584
|
+
const enabled = typeof callerRow === "boolean" ? callerRow : own3(HTI_SHARE_PLATFORM_PURPOSE_ENABLED, purpose);
|
|
28307
28585
|
return enabled === false && override !== true;
|
|
28308
28586
|
}
|
|
28309
28587
|
function sharingCeilingRowKey(recipient) {
|
|
@@ -28333,10 +28611,10 @@ function effectiveCeiling(rowKey, purpose, inputs) {
|
|
|
28333
28611
|
}
|
|
28334
28612
|
const edits = inputs.edits;
|
|
28335
28613
|
const rungs = [
|
|
28336
|
-
["partner_rule",
|
|
28337
|
-
["seeded_partner_rule",
|
|
28338
|
-
["account_default",
|
|
28339
|
-
["platform_default",
|
|
28614
|
+
["partner_rule", own3(own3(edits, rowKey), purpose)],
|
|
28615
|
+
["seeded_partner_rule", own3(own3(starter.counterpartyOverrides, rowKey), purpose)],
|
|
28616
|
+
["account_default", own3(own3(edits, SHARING_CEILING_DEFAULT_ROW_KEY), purpose)],
|
|
28617
|
+
["platform_default", own3(starter.scopeByPurpose, purpose)]
|
|
28340
28618
|
];
|
|
28341
28619
|
for (const [rung, value] of rungs) {
|
|
28342
28620
|
const allowed = rungList(value);
|
|
@@ -28612,7 +28890,7 @@ var SHARE_LEVEL_LABEL = Object.freeze({
|
|
|
28612
28890
|
platform_starter: "Platform default",
|
|
28613
28891
|
inside_starter: "the platform's default for sharing inside your account"
|
|
28614
28892
|
});
|
|
28615
|
-
var
|
|
28893
|
+
var own4 = (record, key) => record !== null && typeof record === "object" && Object.prototype.hasOwnProperty.call(record, key) ? record[key] : void 0;
|
|
28616
28894
|
var isStringList2 = (v) => Array.isArray(v) && v.every((c) => typeof c === "string");
|
|
28617
28895
|
var versionOf = (v) => {
|
|
28618
28896
|
const n = typeof v === "number" ? v : parseInt(String(v), 10);
|
|
@@ -28708,7 +28986,7 @@ function derivePlatformDefault(scope, purpose, seedList, options = {}) {
|
|
|
28708
28986
|
else if (req.has(g)) state = "always";
|
|
28709
28987
|
else if (scope.row(g)?.shareableDefault === false) state = "never";
|
|
28710
28988
|
else state = scopeListCovers(scope, seed, g) ? "default_on" : "default_off";
|
|
28711
|
-
const bound =
|
|
28989
|
+
const bound = own4(options.bounds, g);
|
|
28712
28990
|
if (g !== systemCode && (bound === "always" || bound === "default_on" || bound === "default_off" || bound === "never"))
|
|
28713
28991
|
state = bound;
|
|
28714
28992
|
states[g] = state;
|
|
@@ -28802,10 +29080,10 @@ var HTI_SHARE_PLATFORM_REQUIRED_BY_PURPOSE = Object.freeze({
|
|
|
28802
29080
|
});
|
|
28803
29081
|
function platformDefaultFor(scope, purpose, options = {}) {
|
|
28804
29082
|
const starter = options.starter ?? HTI_SHARE_PLATFORM_STARTER;
|
|
28805
|
-
const seed =
|
|
29083
|
+
const seed = own4(starter.scopeByPurpose, purpose);
|
|
28806
29084
|
if (!isStringList2(seed)) return null;
|
|
28807
29085
|
return derivePlatformDefault(scope, purpose, seed, {
|
|
28808
|
-
required:
|
|
29086
|
+
required: own4(HTI_SHARE_PLATFORM_REQUIRED_BY_PURPOSE, purpose) ?? [],
|
|
28809
29087
|
bounds: options.bounds ?? null,
|
|
28810
29088
|
version: options.version ?? 1,
|
|
28811
29089
|
edited: options.edited === true
|
|
@@ -28815,7 +29093,7 @@ function shareRowCeiling(resolution, scope) {
|
|
|
28815
29093
|
if (!resolution.allowed) return [];
|
|
28816
29094
|
const out = [];
|
|
28817
29095
|
for (const g of resolution.allowedCategories) {
|
|
28818
|
-
const e =
|
|
29096
|
+
const e = own4(resolution.scope, g);
|
|
28819
29097
|
if (e === void 0) continue;
|
|
28820
29098
|
const withheld = /* @__PURE__ */ new Set([
|
|
28821
29099
|
...e.excludedItems,
|
|
@@ -28904,13 +29182,13 @@ function resolveShare(input) {
|
|
|
28904
29182
|
rulePath: `sharingPurposePolicies[${p.id}] v${v} (policy \u201C${name}\u201D \u2014 ${SHARE_LEVEL_LABEL[level2]})`
|
|
28905
29183
|
};
|
|
28906
29184
|
};
|
|
28907
|
-
const cell = (map, key) =>
|
|
29185
|
+
const cell = (map, key) => own4(own4(map, key), purpose);
|
|
28908
29186
|
let gov = null;
|
|
28909
29187
|
const purposeKnown = pd !== null;
|
|
28910
29188
|
const teamRowId = purposeKnown && teamId !== null && recipient.kind !== "external" && typeof input.teamRowId === "string" && input.teamRowId !== "" ? input.teamRowId : null;
|
|
28911
29189
|
if (teamRowId !== null) gov = hit(cell(att.teamRows, teamRowId), "team_row");
|
|
28912
29190
|
if (gov === null && inside && purposeKnown) {
|
|
28913
|
-
gov = hit(
|
|
29191
|
+
gov = hit(own4(att.internalDefaults, purpose), "account_internal");
|
|
28914
29192
|
if (gov === null && pd !== null) {
|
|
28915
29193
|
const starter = {
|
|
28916
29194
|
id: `pol-inside-starter-${purpose}`,
|
|
@@ -28955,7 +29233,7 @@ function resolveShare(input) {
|
|
|
28955
29233
|
};
|
|
28956
29234
|
}
|
|
28957
29235
|
if (gov === null)
|
|
28958
|
-
gov = hit(
|
|
29236
|
+
gov = hit(own4(att.agencyDefaults, purpose), "agency_default");
|
|
28959
29237
|
if (gov === null && pd !== null) {
|
|
28960
29238
|
const starter = {
|
|
28961
29239
|
id: `pol-starter-${purpose}`,
|
|
@@ -29174,7 +29452,7 @@ function resolveShare(input) {
|
|
|
29174
29452
|
"Outside the payload for this purpose"
|
|
29175
29453
|
);
|
|
29176
29454
|
}
|
|
29177
|
-
const govRows = polScopeBinds ?
|
|
29455
|
+
const govRows = polScopeBinds ? own4(govItems, g) : void 0;
|
|
29178
29456
|
if (allowed && !req && isStringList2(govRows)) {
|
|
29179
29457
|
const keep = new Set(govRows);
|
|
29180
29458
|
const kept = (r) => keep.has(r) || scope.ancestorsOf(r).some((a) => a !== g && keep.has(a));
|
|
@@ -29183,7 +29461,7 @@ function resolveShare(input) {
|
|
|
29183
29461
|
`Outside what the \u201C${govName}\u201D policy allows for this purpose`
|
|
29184
29462
|
);
|
|
29185
29463
|
}
|
|
29186
|
-
const defRows = defaultItems === null ? void 0 :
|
|
29464
|
+
const defRows = defaultItems === null ? void 0 : own4(defaultItems.rows, g);
|
|
29187
29465
|
if (allowed && !req && isStringList2(defRows)) {
|
|
29188
29466
|
const keep = new Set(defRows);
|
|
29189
29467
|
const kept = (r) => keep.has(r) || scope.ancestorsOf(r).some((a) => a !== g && keep.has(a));
|
|
@@ -29204,7 +29482,7 @@ function resolveShare(input) {
|
|
|
29204
29482
|
for (const r of outside((x) => scopeListCovers(scope, tcScope, g, x)))
|
|
29205
29483
|
outRows.add(r);
|
|
29206
29484
|
}
|
|
29207
|
-
const tcRows =
|
|
29485
|
+
const tcRows = own4(tcItems, g);
|
|
29208
29486
|
if (isStringList2(tcRows)) {
|
|
29209
29487
|
const keep = new Set(tcRows);
|
|
29210
29488
|
const kept = (r) => keep.has(r) || scope.ancestorsOf(r).some((a) => a !== g && keep.has(a));
|
|
@@ -77250,10 +77528,15 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
77250
77528
|
INCIDENT_PARTICIPATION_ROLE_LABELS,
|
|
77251
77529
|
INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY,
|
|
77252
77530
|
INCIDENT_PARTICIPATION_ROLE_VALUES,
|
|
77531
|
+
INFORMATION_SCOPE_CATEGORY_ORDER,
|
|
77532
|
+
INFORMATION_SCOPE_CATEGORY_SUB,
|
|
77253
77533
|
INFORMATION_SCOPE_FIELD_HOME_ROWS,
|
|
77254
77534
|
INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE,
|
|
77255
77535
|
INFORMATION_SCOPE_READABLE_VERSIONS,
|
|
77536
|
+
INFORMATION_SCOPE_ROW_HINT,
|
|
77537
|
+
INFORMATION_SCOPE_ROW_ORDER,
|
|
77256
77538
|
INFORMATION_SCOPE_SYSTEM_INFO,
|
|
77539
|
+
INFORMATION_SCOPE_UI_COPY_SOURCE,
|
|
77257
77540
|
INFORMATION_SCOPE_VERSION,
|
|
77258
77541
|
INTERACTION_TYPES,
|
|
77259
77542
|
INTERACTION_TYPE_LABELS,
|
|
@@ -77857,9 +78140,12 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
77857
78140
|
rowsOutsideCeiling,
|
|
77858
78141
|
rowsOverCeiling,
|
|
77859
78142
|
rsvpResponseSot,
|
|
78143
|
+
scopeCategorySub,
|
|
77860
78144
|
scopeListCovers,
|
|
77861
78145
|
scopeListStrictlyCovers,
|
|
77862
78146
|
scopeMigrationsFromSot,
|
|
78147
|
+
scopeRowDisplayOrder,
|
|
78148
|
+
scopeRowHint,
|
|
77863
78149
|
scopeRowWithinCeiling,
|
|
77864
78150
|
scopeRowsFromSot,
|
|
77865
78151
|
scoringConditionSchema,
|
|
@@ -77916,6 +78202,8 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
77916
78202
|
smtSignificanceFlagsSot,
|
|
77917
78203
|
smtTypeSot,
|
|
77918
78204
|
sortRelationshipsByPriority,
|
|
78205
|
+
sortScopeCategories,
|
|
78206
|
+
sortScopeRows,
|
|
77919
78207
|
sourceCategorySot,
|
|
77920
78208
|
sourceInstrumentSot,
|
|
77921
78209
|
sourceSubtypeSot,
|