@htilabs/platform-common-models 0.8.21 → 0.8.23

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.
Files changed (36) hide show
  1. package/dist/constants/index.cjs +5 -1
  2. package/dist/constants/index.cjs.map +1 -1
  3. package/dist/constants/index.d.cts +1 -1
  4. package/dist/constants/index.d.ts +1 -1
  5. package/dist/constants/index.js +5 -1
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/cvcs/index.cjs +33 -1
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +36 -1
  10. package/dist/cvcs/index.d.ts +36 -1
  11. package/dist/cvcs/index.js +33 -1
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/index.cjs +43 -4
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +6 -3
  16. package/dist/index.d.ts +6 -3
  17. package/dist/index.js +43 -4
  18. package/dist/index.js.map +1 -1
  19. package/dist/{platform-auth-CvQkzOy1.d.cts → platform-auth-91Hcl8F8.d.cts} +3 -2
  20. package/dist/{platform-auth-CvQkzOy1.d.ts → platform-auth-91Hcl8F8.d.ts} +3 -2
  21. package/dist/schemas/index.cjs +5 -1
  22. package/dist/schemas/index.cjs.map +1 -1
  23. package/dist/schemas/index.d.cts +24 -24
  24. package/dist/schemas/index.d.ts +24 -24
  25. package/dist/schemas/index.js +5 -1
  26. package/dist/schemas/index.js.map +1 -1
  27. package/dist/types/index.d.cts +2 -2
  28. package/dist/types/index.d.ts +2 -2
  29. package/package.json +1 -1
  30. package/src/__tests__/__snapshots__/cvc-sot.snap +4 -4
  31. package/src/__tests__/cvc-drift-gate.test.ts +4 -4
  32. package/src/__tests__/cvc-sot-snapshot.test.ts +5 -3
  33. package/src/constants/ic.ts +4 -0
  34. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +11 -1
  35. package/src/cvcs/sessionTemplate.v1.0.0.json +22 -0
  36. package/src/generated/cvc-enums.ts +5 -2
@@ -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.23",
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,
@@ -651,8 +651,8 @@
651
651
  "hash": "53a0ad169d2e5ff34ffa9b246eacbde2efb9b31baf763bfa1d3be53f0fbedd3c"
652
652
  },
653
653
  "session_template": {
654
- "count": 23,
655
- "hash": "c6e7ec45ab8c3d99e938ac55b1007107edee5885bff53f203945ed3a6cba25ac"
654
+ "count": 25,
655
+ "hash": "f8e4b1830fb03f82499c10eb84b2202c7a3258832fec64fc73c17a734de24ece"
656
656
  },
657
657
  "service_delivery_channel": {
658
658
  "count": 11,
@@ -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
  {
@@ -666,7 +666,9 @@ const SOT_SPECS: readonly SotSpec[] = [
666
666
  { file: "poPetitionBasis.v1.0.0.json", domain: "po_petition_basis", expectedCount: 8 },
667
667
  { file: "poStatus.v1.0.0.json", domain: "po_status", expectedCount: 12 },
668
668
  { file: "poViolationStatus.v1.0.0.json", domain: "po_violation_status", expectedCount: 6 },
669
- { file: "sessionTemplate.v1.0.0.json", domain: "session_template", expectedCount: 23 },
669
+ // 0.8.23: 23 -> 25 — CVC-217 gained cst_pave_inbound_share (217-020) +
670
+ // cst_thread_inbound_share (217-021), the cross-app Inbound Share template pair.
671
+ { file: "sessionTemplate.v1.0.0.json", domain: "session_template", expectedCount: 25 },
670
672
  { file: "serviceDeliveryChannel.v1.0.0.json", domain: "service_delivery_channel", expectedCount: 11 },
671
673
  { file: "whyNots.v1.0.0.json", domain: "why_nots", expectedCount: 32 },
672
674
  // CVC-182 — 249 countries (codes MINTED; upstream Code column is blank) + 1
@@ -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
  }
@@ -256,6 +256,28 @@
256
256
  "childCodes": [],
257
257
  "definition": "Catch-all session template for non-field, non-hotline interactions conducted virtually (video or other virtual meeting formats) when no more specific template applies.",
258
258
  "canonicalCode": "CST-UNK-OTHER_VIRTUAL"
259
+ },
260
+ {
261
+ "code": "217-020-000-000-000-000-000",
262
+ "key": "cst_pave_inbound_share",
263
+ "title": "Inbound Share",
264
+ "selectable": true,
265
+ "parentCode": null,
266
+ "childCodes": [],
267
+ "definition": "Review a case another agency shared with your team — claim, set up the record, decide field by field.",
268
+ "canonicalCode": "CST-PAVE-INBOUND_SHARE",
269
+ "application": "PAVE"
270
+ },
271
+ {
272
+ "code": "217-021-000-000-000-000-000",
273
+ "key": "cst_thread_inbound_share",
274
+ "title": "Inbound Share",
275
+ "selectable": true,
276
+ "parentCode": null,
277
+ "childCodes": [],
278
+ "definition": "Review a case another agency shared with your team — claim, set up the record, decide field by field.",
279
+ "canonicalCode": "CST-THREAD-INBOUND_SHARE",
280
+ "application": "Thread"
259
281
  }
260
282
  ]
261
283
  }
@@ -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;
@@ -4796,7 +4797,7 @@ export type PoViolationStatusKey = keyof typeof PoViolationStatusKeys;
4796
4797
  /**
4797
4798
  * Key → positional code map for the `session_template` CVC domain (CVC-217). Canonical session templates across PAVE / Thread / LEADS; distinct from CVC-216 `session_state`.
4798
4799
  *
4799
- * Domain: `session_template` · Version: 1.0.0 · Entries: 23
4800
+ * Domain: `session_template` · Version: 1.0.0 · Entries: 25
4800
4801
  */
4801
4802
  export const SessionTemplateKeys = {
4802
4803
  missingness_root: "217-000-000-000-000-000-000",
@@ -4822,6 +4823,8 @@ export const SessionTemplateKeys = {
4822
4823
  cst_leads_new_case: "217-017-000-000-000-000-000",
4823
4824
  cst_leads_new_lead_tip: "217-018-000-000-000-000-000",
4824
4825
  cst_unk_other_virtual: "217-019-000-000-000-000-000",
4826
+ cst_pave_inbound_share: "217-020-000-000-000-000-000",
4827
+ cst_thread_inbound_share: "217-021-000-000-000-000-000",
4825
4828
  } as const;
4826
4829
 
4827
4830
  export type SessionTemplateKey = keyof typeof SessionTemplateKeys;