@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
@@ -661,12 +661,13 @@ declare const INCIDENT_PARTICIPATION_ROLE: {
661
661
  readonly DATA_ENTRY: "data_entry";
662
662
  readonly OTHER_INCIDENT_RESPONDER: "other_incident_responder";
663
663
  readonly RESPONDING_OFFICER: "responding_officer";
664
+ readonly LEGAL_PROFESSIONAL: "legal_professional";
664
665
  readonly UNKNOWN: "unknown";
665
666
  readonly ANONYMOUS: "anonymous";
666
667
  readonly DATA_NOT_COLLECTED: "data_not_collected";
667
668
  };
668
669
  type IncidentParticipationRoleValue = (typeof INCIDENT_PARTICIPATION_ROLE)[keyof typeof INCIDENT_PARTICIPATION_ROLE];
669
- declare const INCIDENT_PARTICIPATION_ROLE_VALUES: readonly ["client_subject", "caller_self", "caller_third_party", "reporter", "family_member_or_guardian", "friend_or_peer", "service_provider_staff", "medical_provider_staff", "data_entry", "other_incident_responder", "responding_officer", "unknown", "anonymous", "data_not_collected"];
670
+ declare const INCIDENT_PARTICIPATION_ROLE_VALUES: readonly ["client_subject", "caller_self", "caller_third_party", "reporter", "family_member_or_guardian", "friend_or_peer", "service_provider_staff", "medical_provider_staff", "data_entry", "other_incident_responder", "responding_officer", "legal_professional", "unknown", "anonymous", "data_not_collected"];
670
671
  declare const INCIDENT_PARTICIPATION_ROLE_LABELS: Record<IncidentParticipationRoleValue, string>;
671
672
  /**
672
673
  * Participation role category groupings for UI organization.
@@ -679,7 +680,7 @@ declare const PARTICIPATION_ROLE_CATEGORIES: {
679
680
  readonly CLIENT: readonly ["client_subject"];
680
681
  readonly CALLER_REPORTER: readonly ["caller_self", "caller_third_party", "reporter"];
681
682
  readonly SUPPORT_NETWORK: readonly ["family_member_or_guardian", "friend_or_peer"];
682
- readonly SYSTEM_PROFESSIONAL: readonly ["service_provider_staff", "medical_provider_staff"];
683
+ readonly SYSTEM_PROFESSIONAL: readonly ["service_provider_staff", "medical_provider_staff", "legal_professional"];
683
684
  };
684
685
  /** All participation roles assigned to a victim who is also the caller. */
685
686
  declare const CALLER_IS_VICTIM_ROLES: IncidentParticipationRoleValue[];
@@ -661,12 +661,13 @@ declare const INCIDENT_PARTICIPATION_ROLE: {
661
661
  readonly DATA_ENTRY: "data_entry";
662
662
  readonly OTHER_INCIDENT_RESPONDER: "other_incident_responder";
663
663
  readonly RESPONDING_OFFICER: "responding_officer";
664
+ readonly LEGAL_PROFESSIONAL: "legal_professional";
664
665
  readonly UNKNOWN: "unknown";
665
666
  readonly ANONYMOUS: "anonymous";
666
667
  readonly DATA_NOT_COLLECTED: "data_not_collected";
667
668
  };
668
669
  type IncidentParticipationRoleValue = (typeof INCIDENT_PARTICIPATION_ROLE)[keyof typeof INCIDENT_PARTICIPATION_ROLE];
669
- declare const INCIDENT_PARTICIPATION_ROLE_VALUES: readonly ["client_subject", "caller_self", "caller_third_party", "reporter", "family_member_or_guardian", "friend_or_peer", "service_provider_staff", "medical_provider_staff", "data_entry", "other_incident_responder", "responding_officer", "unknown", "anonymous", "data_not_collected"];
670
+ declare const INCIDENT_PARTICIPATION_ROLE_VALUES: readonly ["client_subject", "caller_self", "caller_third_party", "reporter", "family_member_or_guardian", "friend_or_peer", "service_provider_staff", "medical_provider_staff", "data_entry", "other_incident_responder", "responding_officer", "legal_professional", "unknown", "anonymous", "data_not_collected"];
670
671
  declare const INCIDENT_PARTICIPATION_ROLE_LABELS: Record<IncidentParticipationRoleValue, string>;
671
672
  /**
672
673
  * Participation role category groupings for UI organization.
@@ -679,7 +680,7 @@ declare const PARTICIPATION_ROLE_CATEGORIES: {
679
680
  readonly CLIENT: readonly ["client_subject"];
680
681
  readonly CALLER_REPORTER: readonly ["caller_self", "caller_third_party", "reporter"];
681
682
  readonly SUPPORT_NETWORK: readonly ["family_member_or_guardian", "friend_or_peer"];
682
- readonly SYSTEM_PROFESSIONAL: readonly ["service_provider_staff", "medical_provider_staff"];
683
+ readonly SYSTEM_PROFESSIONAL: readonly ["service_provider_staff", "medical_provider_staff", "legal_professional"];
683
684
  };
684
685
  /** All participation roles assigned to a victim who is also the caller. */
685
686
  declare const CALLER_IS_VICTIM_ROLES: IncidentParticipationRoleValue[];
@@ -965,6 +965,7 @@ var INCIDENT_PARTICIPATION_ROLE = {
965
965
  DATA_ENTRY: "data_entry",
966
966
  OTHER_INCIDENT_RESPONDER: "other_incident_responder",
967
967
  RESPONDING_OFFICER: "responding_officer",
968
+ LEGAL_PROFESSIONAL: "legal_professional",
968
969
  UNKNOWN: "unknown",
969
970
  ANONYMOUS: "anonymous",
970
971
  DATA_NOT_COLLECTED: "data_not_collected"
@@ -981,6 +982,7 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
981
982
  INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
982
983
  INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
983
984
  INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
985
+ INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL,
984
986
  INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
985
987
  INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
986
988
  INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
@@ -997,6 +999,7 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
997
999
  [INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: "Data Entry / Editor",
998
1000
  [INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
999
1001
  [INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
1002
+ [INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL]: "Legal Professional",
1000
1003
  [INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
1001
1004
  [INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
1002
1005
  [INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
@@ -1014,7 +1017,8 @@ var PARTICIPATION_ROLE_CATEGORIES = {
1014
1017
  ],
1015
1018
  SYSTEM_PROFESSIONAL: [
1016
1019
  INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
1017
- INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF
1020
+ INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF,
1021
+ INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL
1018
1022
  ]
1019
1023
  };
1020
1024
  var CALLER_IS_VICTIM_ROLES = [