@htilabs/platform-common-models 0.8.21 → 0.8.22

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.
@@ -1,5 +1,5 @@
1
- import { P as PlatformToolValue, F as FunctionStatusValue, R as RoleLevelValue, S as ShareViewValue, a as PermissionStateValue } from '../platform-auth-CvQkzOy1.cjs';
2
- export { A as AccommodationValue, b as AgeBinReportingValue, c as AppScopeValue, d as ApparentAgeValue, D as DataQualityValue, e as FormStatusValue, f as FormTypeValue, I as IC13Category, g as IC13Value, h as IC22Value, i as IC23Value, j as IC24Value, k as IC25Value, l as IC49ReferralOutcomeValue, m as IC49ReferralVerificationValue, n as IC49Value, o as IC4Value, p as IC56Value, q as IC57Value, r as IC58Value, s as IC59Value, t as IC5Value, u as IncidentInvolvementRoleValue, v as IncidentParticipationRoleValue, w as InteractionTypeValue, M as MinorAdultStatusValue, x as PersonDisplayCategoryValue, y as PersonRoleValue, z as PersonTypeValue, Q as QuestionFormatValue, B as QuickStartTemplateId, C as RecordStateValue, E as RelationshipConcernValue, G as RelationshipDynamicValue, H as SessionStateValue, J as SubmissionStateValue, U as UserStatusValue } from '../platform-auth-CvQkzOy1.cjs';
1
+ import { P as PlatformToolValue, F as FunctionStatusValue, R as RoleLevelValue, S as ShareViewValue, a as PermissionStateValue } from '../platform-auth-91Hcl8F8.cjs';
2
+ export { A as AccommodationValue, b as AgeBinReportingValue, c as AppScopeValue, d as ApparentAgeValue, D as DataQualityValue, e as FormStatusValue, f as FormTypeValue, I as IC13Category, g as IC13Value, h as IC22Value, i as IC23Value, j as IC24Value, k as IC25Value, l as IC49ReferralOutcomeValue, m as IC49ReferralVerificationValue, n as IC49Value, o as IC4Value, p as IC56Value, q as IC57Value, r as IC58Value, s as IC59Value, t as IC5Value, u as IncidentInvolvementRoleValue, v as IncidentParticipationRoleValue, w as InteractionTypeValue, M as MinorAdultStatusValue, x as PersonDisplayCategoryValue, y as PersonRoleValue, z as PersonTypeValue, Q as QuestionFormatValue, B as QuickStartTemplateId, C as RecordStateValue, E as RelationshipConcernValue, G as RelationshipDynamicValue, H as SessionStateValue, J as SubmissionStateValue, U as UserStatusValue } from '../platform-auth-91Hcl8F8.cjs';
3
3
 
4
4
  /**
5
5
  * @htilabs/platform-common-models — Platform Authorization Types
@@ -1,5 +1,5 @@
1
- import { P as PlatformToolValue, F as FunctionStatusValue, R as RoleLevelValue, S as ShareViewValue, a as PermissionStateValue } from '../platform-auth-CvQkzOy1.js';
2
- export { A as AccommodationValue, b as AgeBinReportingValue, c as AppScopeValue, d as ApparentAgeValue, D as DataQualityValue, e as FormStatusValue, f as FormTypeValue, I as IC13Category, g as IC13Value, h as IC22Value, i as IC23Value, j as IC24Value, k as IC25Value, l as IC49ReferralOutcomeValue, m as IC49ReferralVerificationValue, n as IC49Value, o as IC4Value, p as IC56Value, q as IC57Value, r as IC58Value, s as IC59Value, t as IC5Value, u as IncidentInvolvementRoleValue, v as IncidentParticipationRoleValue, w as InteractionTypeValue, M as MinorAdultStatusValue, x as PersonDisplayCategoryValue, y as PersonRoleValue, z as PersonTypeValue, Q as QuestionFormatValue, B as QuickStartTemplateId, C as RecordStateValue, E as RelationshipConcernValue, G as RelationshipDynamicValue, H as SessionStateValue, J as SubmissionStateValue, U as UserStatusValue } from '../platform-auth-CvQkzOy1.js';
1
+ import { P as PlatformToolValue, F as FunctionStatusValue, R as RoleLevelValue, S as ShareViewValue, a as PermissionStateValue } from '../platform-auth-91Hcl8F8.js';
2
+ export { A as AccommodationValue, b as AgeBinReportingValue, c as AppScopeValue, d as ApparentAgeValue, D as DataQualityValue, e as FormStatusValue, f as FormTypeValue, I as IC13Category, g as IC13Value, h as IC22Value, i as IC23Value, j as IC24Value, k as IC25Value, l as IC49ReferralOutcomeValue, m as IC49ReferralVerificationValue, n as IC49Value, o as IC4Value, p as IC56Value, q as IC57Value, r as IC58Value, s as IC59Value, t as IC5Value, u as IncidentInvolvementRoleValue, v as IncidentParticipationRoleValue, w as InteractionTypeValue, M as MinorAdultStatusValue, x as PersonDisplayCategoryValue, y as PersonRoleValue, z as PersonTypeValue, Q as QuestionFormatValue, B as QuickStartTemplateId, C as RecordStateValue, E as RelationshipConcernValue, G as RelationshipDynamicValue, H as SessionStateValue, J as SubmissionStateValue, U as UserStatusValue } from '../platform-auth-91Hcl8F8.js';
3
3
 
4
4
  /**
5
5
  * @htilabs/platform-common-models — Platform Authorization Types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htilabs/platform-common-models",
3
- "version": "0.8.21",
3
+ "version": "0.8.22",
4
4
  "description": "Shared constants, types, and models for HTI Labs applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -15,8 +15,8 @@
15
15
  "hash": "68c5fee27fb5826ed86ff8e9387ec00ae8813029c87f9d5349c7ce2d5c640eaf"
16
16
  },
17
17
  "incident_participation_roles": {
18
- "count": 19,
19
- "hash": "ccf9a360f09fbf58f93b92bed296d16678ff8c8955088407d2e641d6d9d72ba3"
18
+ "count": 20,
19
+ "hash": "bb891d1159a0e70b19ec485459f9778aa2c86a00009bf5e2259290a8ddf41a10"
20
20
  },
21
21
  "incident_involvement_roles": {
22
22
  "count": 10,
@@ -639,17 +639,17 @@ describe("GATE F — entry counts and selectable counts are never conflated", ()
639
639
  }
640
640
  });
641
641
 
642
- it("CVC-69 regression: 19 entries = 14 selectable + 4 group rows + missingness_root", () => {
642
+ it("CVC-69 regression: 20 entries = 15 selectable + 4 group rows + missingness_root", () => {
643
643
  const d = DOMAINS.find((x) => x.domain === "incident_participation_roles")!;
644
644
  const selectable = d.entries.filter((e) => e.selectable);
645
645
  const groupRows = d.entries.filter((e) => !e.selectable && !isMissingness(e));
646
646
  const missRoot = d.entries.filter((e) => !e.selectable && isMissingness(e));
647
647
 
648
- expect(d.entries.length, "total entries").toBe(19);
649
- expect(selectable.length, "selectable").toBe(14);
648
+ expect(d.entries.length, "total entries").toBe(20);
649
+ expect(selectable.length, "selectable").toBe(15);
650
650
  expect(groupRows.length, "non-selectable group rows").toBe(4);
651
651
  expect(missRoot.length, "non-selectable missingness_root").toBe(1);
652
- expect(selectable.length + groupRows.length + missRoot.length).toBe(19);
652
+ expect(selectable.length + groupRows.length + missRoot.length).toBe(20);
653
653
  // If a consumer's boot-check ever asserts `entries.length === 14`, it is the
654
654
  // CONSUMER that is wrong, not CVC-69.
655
655
  });
@@ -67,11 +67,11 @@ const SOT_SPECS: readonly SotSpec[] = [
67
67
  { file: "serviceStates.v1.0.0.json", domain: "service_states", expectedCount: 17 },
68
68
  // Spec §8.1 — "Entries: 147" + 4 missingness = 151
69
69
  { file: "serviceCategories.v1.0.0.json", domain: "service_categories", expectedCount: 151 },
70
- // CVC-69 — 4 group parents + 11 role leaves + 4 missingness = 19
70
+ // CVC-69 — 4 group parents + 12 role leaves + 4 missingness = 20
71
71
  {
72
72
  file: "incidentParticipationRoles.v1.0.0.json",
73
73
  domain: "incident_participation_roles",
74
- expectedCount: 19,
74
+ expectedCount: 20,
75
75
  },
76
76
  // CVC-130 — 6 flat role leaves + 4 missingness = 10
77
77
  {
@@ -1986,6 +1986,7 @@ export const INCIDENT_PARTICIPATION_ROLE = {
1986
1986
  DATA_ENTRY: "data_entry",
1987
1987
  OTHER_INCIDENT_RESPONDER: "other_incident_responder",
1988
1988
  RESPONDING_OFFICER: "responding_officer",
1989
+ LEGAL_PROFESSIONAL: "legal_professional",
1989
1990
  UNKNOWN: "unknown",
1990
1991
  ANONYMOUS: "anonymous",
1991
1992
  DATA_NOT_COLLECTED: "data_not_collected",
@@ -2006,6 +2007,7 @@ export const INCIDENT_PARTICIPATION_ROLE_VALUES = [
2006
2007
  INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
2007
2008
  INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
2008
2009
  INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
2010
+ INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL,
2009
2011
  INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
2010
2012
  INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
2011
2013
  INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED,
@@ -2030,6 +2032,7 @@ export const INCIDENT_PARTICIPATION_ROLE_LABELS: Record<
2030
2032
  [INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]:
2031
2033
  "VSP or Other Incident Responder",
2032
2034
  [INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
2035
+ [INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL]: "Legal Professional",
2033
2036
  [INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
2034
2037
  [INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
2035
2038
  [INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected",
@@ -2056,6 +2059,7 @@ export const PARTICIPATION_ROLE_CATEGORIES = {
2056
2059
  SYSTEM_PROFESSIONAL: [
2057
2060
  INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
2058
2061
  INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF,
2062
+ INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL,
2059
2063
  ],
2060
2064
  } as const;
2061
2065
 
@@ -149,7 +149,8 @@
149
149
  "069-004-002-000-000-000-000",
150
150
  "069-004-003-000-000-000-000",
151
151
  "069-004-004-000-000-000-000",
152
- "069-004-005-000-000-000-000"
152
+ "069-004-005-000-000-000-000",
153
+ "069-004-006-000-000-000-000"
153
154
  ],
154
155
  "definition": "Group of participation roles identifying system-side professionals involved in the incident."
155
156
  },
@@ -197,6 +198,15 @@
197
198
  "parentCode": "069-004-000-000-000-000-000",
198
199
  "childCodes": [],
199
200
  "definition": "A participant acting as a law-enforcement responding officer on the incident (patrol officer, detective, or equivalent sworn personnel)."
201
+ },
202
+ {
203
+ "code": "069-004-006-000-000-000-000",
204
+ "key": "legal_professional",
205
+ "title": "Legal professional",
206
+ "selectable": true,
207
+ "parentCode": "069-004-000-000-000-000-000",
208
+ "childCodes": [],
209
+ "definition": "An attorney or other legal professional (e.g., legal advocate, paralegal) acting in a legal capacity in relation to the incident."
200
210
  }
201
211
  ]
202
212
  }
@@ -218,7 +218,7 @@ export type ServiceMechanismKey = keyof typeof ServiceMechanismKeys;
218
218
  /**
219
219
  * Key → positional code map for the `incident_participation_roles` CVC domain.
220
220
  *
221
- * Domain: `incident_participation_roles` · Version: 1.0.0 · Entries: 19
221
+ * Domain: `incident_participation_roles` · Version: 1.0.0 · Entries: 20
222
222
  */
223
223
  export const IncidentParticipationRoleKeys = {
224
224
  missingness_root: "069-000-000-000-000-000-000",
@@ -240,6 +240,7 @@ export const IncidentParticipationRoleKeys = {
240
240
  data_entry: "069-004-003-000-000-000-000",
241
241
  other_incident_responder: "069-004-004-000-000-000-000",
242
242
  responding_officer: "069-004-005-000-000-000-000",
243
+ legal_professional: "069-004-006-000-000-000-000",
243
244
  } as const;
244
245
 
245
246
  export type IncidentParticipationRoleKey = keyof typeof IncidentParticipationRoleKeys;