@htilabs/platform-common-models 0.13.0 → 0.13.1

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 (58) hide show
  1. package/dist/constants/index.cjs +73 -0
  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 +69 -0
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-0BIB9sen.d.cts} +36 -36
  8. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-0BIB9sen.d.ts} +36 -36
  9. package/dist/cvcs/index.cjs +466 -107
  10. package/dist/cvcs/index.cjs.map +1 -1
  11. package/dist/cvcs/index.d.cts +489 -110
  12. package/dist/cvcs/index.d.ts +489 -110
  13. package/dist/cvcs/index.js +466 -107
  14. package/dist/cvcs/index.js.map +1 -1
  15. package/dist/enums/index.cjs +15 -1
  16. package/dist/enums/index.cjs.map +1 -1
  17. package/dist/enums/index.d.cts +21 -7
  18. package/dist/enums/index.d.ts +21 -7
  19. package/dist/enums/index.js +15 -1
  20. package/dist/enums/index.js.map +1 -1
  21. package/dist/{index-4DiJrn7y.d.ts → index-CDoqrfc1.d.ts} +1 -1
  22. package/dist/{index-qreOzXYS.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  23. package/dist/index.cjs +554 -108
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +550 -108
  28. package/dist/index.js.map +1 -1
  29. package/dist/models/index.d.cts +2 -2
  30. package/dist/models/index.d.ts +2 -2
  31. package/dist/{platform-auth-Dv5fu0Fh.d.cts → platform-auth-64U8jjuw.d.cts} +71 -2
  32. package/dist/{platform-auth-Dv5fu0Fh.d.ts → platform-auth-64U8jjuw.d.ts} +71 -2
  33. package/dist/schemas/index.cjs +62 -0
  34. package/dist/schemas/index.cjs.map +1 -1
  35. package/dist/schemas/index.d.cts +11 -11
  36. package/dist/schemas/index.d.ts +11 -11
  37. package/dist/schemas/index.js +62 -0
  38. package/dist/schemas/index.js.map +1 -1
  39. package/dist/types/index.d.cts +2 -2
  40. package/dist/types/index.d.ts +2 -2
  41. package/package.json +26 -27
  42. package/src/__tests__/__snapshots__/cvc-sot.snap +9 -9
  43. package/src/__tests__/cvc-drift-gate.test.ts +16 -5
  44. package/src/__tests__/cvc-sot-snapshot.test.ts +18 -11
  45. package/src/__tests__/cvc-structural.test.ts +7 -7
  46. package/src/__tests__/incident-participation-roles-canon.test.ts +424 -0
  47. package/src/__tests__/referral-entity-category-canon.test.ts +383 -0
  48. package/src/constants/ic.ts +158 -0
  49. package/src/cvcs/{highestEducationLevelCompleted.v1.0.0.json → highestEducationLevelCompleted.v1.1.0.json} +1 -1
  50. package/src/cvcs/incidentParticipationRoles.v1.1.0.json +433 -0
  51. package/src/cvcs/{incomeBenefitsSources.v1.0.0.json → incomeBenefitsSources.v1.1.0.json} +1 -1
  52. package/src/cvcs/index.ts +7 -7
  53. package/src/cvcs/{referralEntityCategory.v1.0.0.json → referralEntityCategory.v1.1.0.json} +192 -54
  54. package/src/cvcs/{serviceStates.v1.0.0.json → serviceStates.v1.1.0.json} +1 -1
  55. package/src/cvcs/{sourceSubtype.v1.1.0.json → sourceSubtype.v1.2.0.json} +1 -1
  56. package/src/cvcs/{verificationMethod.v1.0.0.json → verificationMethod.v1.1.0.json} +1 -1
  57. package/src/generated/cvc-enums.ts +21 -7
  58. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +0 -212
@@ -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-ctHTp2df.cjs';
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-0BIB9sen.cjs';
4
4
 
5
5
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
6
  _id: false;
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
28
28
  placeId?: string | null | undefined;
29
29
  }, {
30
30
  id: string;
31
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
31
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
32
32
  _id: false;
33
- }>> & Omit<{
33
+ }> & Omit<{
34
34
  formattedAddress?: string | null | undefined;
35
35
  street?: string | null | undefined;
36
36
  city?: string | null | undefined;
@@ -90,9 +90,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
90
90
  isMononym?: boolean | null | undefined;
91
91
  }, {
92
92
  id: string;
93
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
93
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
94
94
  _id: false;
95
- }>> & Omit<{
95
+ }> & Omit<{
96
96
  alias?: boolean | null | undefined;
97
97
  firstName?: string | null | undefined;
98
98
  lastName?: string | null | undefined;
@@ -140,9 +140,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
140
140
  dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
141
141
  }, {
142
142
  id: string;
143
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
143
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
144
144
  _id: false;
145
- }>> & Omit<{
145
+ }> & Omit<{
146
146
  number?: string | null | undefined;
147
147
  type?: string | null | undefined;
148
148
  safeToContact?: boolean | null | undefined;
@@ -176,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
176
176
  address?: string | null | undefined;
177
177
  }, {
178
178
  id: string;
179
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
179
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
180
180
  _id: false;
181
- }>> & Omit<{
181
+ }> & Omit<{
182
182
  type?: string | null | undefined;
183
183
  safeToContact?: boolean | null | undefined;
184
184
  address?: string | null | undefined;
@@ -250,9 +250,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
250
250
  ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
251
251
  }, {
252
252
  id: string;
253
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
253
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
254
254
  _id: false;
255
- }>> & Omit<{
255
+ }> & Omit<{
256
256
  race: number[];
257
257
  ethnicity: number[];
258
258
  accommodations: string[];
@@ -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-ctHTp2df.js';
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-0BIB9sen.js';
4
4
 
5
5
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
6
  _id: false;
@@ -28,9 +28,9 @@ declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any,
28
28
  placeId?: string | null | undefined;
29
29
  }, {
30
30
  id: string;
31
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
31
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
32
32
  _id: false;
33
- }>> & Omit<{
33
+ }> & Omit<{
34
34
  formattedAddress?: string | null | undefined;
35
35
  street?: string | null | undefined;
36
36
  city?: string | null | undefined;
@@ -90,9 +90,9 @@ declare const personNameSchema: Schema<any, mongoose.Model<any, any, any, any, a
90
90
  isMononym?: boolean | null | undefined;
91
91
  }, {
92
92
  id: string;
93
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
93
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
94
94
  _id: false;
95
- }>> & Omit<{
95
+ }> & Omit<{
96
96
  alias?: boolean | null | undefined;
97
97
  firstName?: string | null | undefined;
98
98
  lastName?: string | null | undefined;
@@ -140,9 +140,9 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
140
140
  dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
141
141
  }, {
142
142
  id: string;
143
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
143
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
144
144
  _id: false;
145
- }>> & Omit<{
145
+ }> & Omit<{
146
146
  number?: string | null | undefined;
147
147
  type?: string | null | undefined;
148
148
  safeToContact?: boolean | null | undefined;
@@ -176,9 +176,9 @@ declare const emailSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
176
176
  address?: string | null | undefined;
177
177
  }, {
178
178
  id: string;
179
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
179
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
180
180
  _id: false;
181
- }>> & Omit<{
181
+ }> & Omit<{
182
182
  type?: string | null | undefined;
183
183
  safeToContact?: boolean | null | undefined;
184
184
  address?: string | null | undefined;
@@ -250,9 +250,9 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
250
250
  ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
251
251
  }, {
252
252
  id: string;
253
- }, mongoose.MergeType<mongoose.DefaultSchemaOptions, {
253
+ }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
254
254
  _id: false;
255
- }>> & Omit<{
255
+ }> & Omit<{
256
256
  race: number[];
257
257
  ethnicity: number[];
258
258
  accommodations: string[];
@@ -897,12 +897,32 @@ var INCIDENT_PARTICIPATION_ROLE = {
897
897
  REPORTER: "reporter",
898
898
  FAMILY_MEMBER_OR_GUARDIAN: "family_member_or_guardian",
899
899
  FRIEND_OR_PEER: "friend_or_peer",
900
+ /** @deprecated Superseded by `VSP_STAFF` (canon CVC-69, 2026-08-13). Read-only. */
900
901
  SERVICE_PROVIDER_STAFF: "service_provider_staff",
902
+ /** @deprecated Superseded by `HEALTHCARE_PROVIDER_STAFF` (canon CVC-69, 2026-08-13). Read-only. */
901
903
  MEDICAL_PROVIDER_STAFF: "medical_provider_staff",
904
+ /** @deprecated Superseded by `DATA_ENTRY_STAFF` (canon CVC-69, 2026-08-13). Read-only. */
902
905
  DATA_ENTRY: "data_entry",
906
+ /** @deprecated Superseded by `OTHER_RESPONSE_PERSONNEL` (canon CVC-69, 2026-08-13). Read-only. */
903
907
  OTHER_INCIDENT_RESPONDER: "other_incident_responder",
908
+ /** @deprecated Superseded by `LAW_ENFORCEMENT_PERSONNEL` (canon CVC-69, 2026-08-13). Read-only. */
904
909
  RESPONDING_OFFICER: "responding_officer",
905
910
  LEGAL_PROFESSIONAL: "legal_professional",
911
+ // Canon CVC-69 v1.0 — the five renamed codes + task_force.
912
+ VSP_STAFF: "vsp_staff",
913
+ HEALTHCARE_PROVIDER_STAFF: "healthcare_provider_staff",
914
+ LAW_ENFORCEMENT_PERSONNEL: "law_enforcement_personnel",
915
+ OTHER_RESPONSE_PERSONNEL: "other_response_personnel",
916
+ DATA_ENTRY_STAFF: "data_entry_staff",
917
+ TASK_FORCE: "task_force",
918
+ // Canon Level-2 sub-items (LEADS investigative wing). A sub-item implies its
919
+ // parent: the first four sit under LAW_ENFORCEMENT_PERSONNEL, PROSECUTOR
920
+ // under LEGAL_PROFESSIONAL.
921
+ LEAD_INVESTIGATOR: "lead_investigator",
922
+ INVESTIGATOR: "investigator",
923
+ ANALYST: "analyst",
924
+ LE_OFFICER: "le_officer",
925
+ PROSECUTOR: "prosecutor",
906
926
  UNKNOWN: "unknown",
907
927
  ANONYMOUS: "anonymous",
908
928
  DATA_NOT_COLLECTED: "data_not_collected"
@@ -920,6 +940,17 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
920
940
  INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
921
941
  INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
922
942
  INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL,
943
+ INCIDENT_PARTICIPATION_ROLE.VSP_STAFF,
944
+ INCIDENT_PARTICIPATION_ROLE.HEALTHCARE_PROVIDER_STAFF,
945
+ INCIDENT_PARTICIPATION_ROLE.LAW_ENFORCEMENT_PERSONNEL,
946
+ INCIDENT_PARTICIPATION_ROLE.OTHER_RESPONSE_PERSONNEL,
947
+ INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY_STAFF,
948
+ INCIDENT_PARTICIPATION_ROLE.TASK_FORCE,
949
+ INCIDENT_PARTICIPATION_ROLE.LEAD_INVESTIGATOR,
950
+ INCIDENT_PARTICIPATION_ROLE.INVESTIGATOR,
951
+ INCIDENT_PARTICIPATION_ROLE.ANALYST,
952
+ INCIDENT_PARTICIPATION_ROLE.LE_OFFICER,
953
+ INCIDENT_PARTICIPATION_ROLE.PROSECUTOR,
923
954
  INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
924
955
  INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
925
956
  INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
@@ -937,6 +968,19 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
937
968
  [INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
938
969
  [INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
939
970
  [INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL]: "Legal Professional",
971
+ // Added in v1.1.0: the canon codebook `Acceptable name`, verbatim.
972
+ [INCIDENT_PARTICIPATION_ROLE.VSP_STAFF]: "Victim Service provider staff",
973
+ [INCIDENT_PARTICIPATION_ROLE.HEALTHCARE_PROVIDER_STAFF]: "Healthcare provider staff",
974
+ [INCIDENT_PARTICIPATION_ROLE.LAW_ENFORCEMENT_PERSONNEL]: "Law enforcement personnel",
975
+ [INCIDENT_PARTICIPATION_ROLE.OTHER_RESPONSE_PERSONNEL]: "Other Response Personnel",
976
+ [INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY_STAFF]: "Data Entry / Editor",
977
+ [INCIDENT_PARTICIPATION_ROLE.TASK_FORCE]: "Task Force Partner",
978
+ [INCIDENT_PARTICIPATION_ROLE.LEAD_INVESTIGATOR]: "Lead Investigator",
979
+ [INCIDENT_PARTICIPATION_ROLE.INVESTIGATOR]: "Investigator / Detective",
980
+ [INCIDENT_PARTICIPATION_ROLE.ANALYST]: "Analyst",
981
+ [INCIDENT_PARTICIPATION_ROLE.LE_OFFICER]: "LE Officer",
982
+ [INCIDENT_PARTICIPATION_ROLE.PROSECUTOR]: "Prosecutor",
983
+ // Level 0, as 0.13.0 shipped them (canon: Unknown / Anonymous / Data not collected).
940
984
  [INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
941
985
  [INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
942
986
  [INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
@@ -963,6 +1007,24 @@ var CALLER_IS_VICTIM_ROLES = [
963
1007
  INCIDENT_PARTICIPATION_ROLE.CALLER_SELF,
964
1008
  INCIDENT_PARTICIPATION_ROLE.REPORTER
965
1009
  ];
1010
+ var INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY = {
1011
+ [INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF]: INCIDENT_PARTICIPATION_ROLE.VSP_STAFF,
1012
+ [INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF]: INCIDENT_PARTICIPATION_ROLE.HEALTHCARE_PROVIDER_STAFF,
1013
+ [INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY_STAFF,
1014
+ [INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: INCIDENT_PARTICIPATION_ROLE.OTHER_RESPONSE_PERSONNEL,
1015
+ [INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: INCIDENT_PARTICIPATION_ROLE.LAW_ENFORCEMENT_PERSONNEL
1016
+ };
1017
+ function isDeprecatedIncidentParticipationRole(role) {
1018
+ return typeof role === "string" && Object.prototype.hasOwnProperty.call(
1019
+ INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY,
1020
+ role
1021
+ );
1022
+ }
1023
+ var ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES = Object.freeze(
1024
+ INCIDENT_PARTICIPATION_ROLE_VALUES.filter(
1025
+ (role) => !isDeprecatedIncidentParticipationRole(role)
1026
+ )
1027
+ );
966
1028
  var PERSON_DISPLAY_CATEGORY = {
967
1029
  PRIMARY_VICTIM: "primary_victim",
968
1030
  ELIGIBLE_FAMILY: "eligible_family",