@htilabs/platform-common-models 0.8.20 → 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.
- package/dist/constants/index.cjs +5 -1
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +5 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +128 -58
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +1929 -1849
- package/dist/cvcs/index.d.ts +1929 -1849
- package/dist/cvcs/index.js +127 -58
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-C0J3f169.d.ts → index-4DiJrn7y.d.ts} +1 -1
- package/dist/{index-EPjPjR0z.d.cts → index-qreOzXYS.d.cts} +1 -1
- package/dist/index.cjs +149 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -12
- package/dist/index.d.ts +25 -12
- package/dist/index.js +147 -66
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/{platform-auth-CvQkzOy1.d.cts → platform-auth-91Hcl8F8.d.cts} +3 -2
- package/dist/{platform-auth-CvQkzOy1.d.ts → platform-auth-91Hcl8F8.d.ts} +3 -2
- package/dist/schemas/index.cjs +5 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/schemas/index.js +5 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -4
- package/src/__tests__/cvc-drift-gate.test.ts +17 -4
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -3
- package/src/constants/ic.ts +4 -0
- package/src/cvcs/assertionDomain.v1.1.0.json +4 -57
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +11 -1
- package/src/cvcs/index.ts +2 -0
- package/src/cvcs/riskIdentificationMilestone.v1.0.0.json +109 -0
- package/src/generated/cvc-enums.ts +22 -7
- package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-ctHTp2df.d.cts} +8 -8
- package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-ctHTp2df.d.ts} +8 -8
package/dist/models/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-ctHTp2df.cjs';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-qreOzXYS.cjs';
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-
|
|
1
|
+
export { a as CvcEntry, b as CvcRegistry, F as Form, P as PlatformFunction, d as PlatformRole, Q as Question, f as ScoringRule, h as Section } from '../cvcEntry-ctHTp2df.js';
|
|
2
2
|
import 'mongoose';
|
|
3
|
-
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-
|
|
3
|
+
export { C as CvcEntryDoc, a as CvcRegistryDoc, F as FormDoc, P as PlatformFunctionDoc, b as PlatformModels, c as PlatformRoleDoc, Q as QuestionDoc, S as ScoringRuleDoc, d as SectionDoc, g as createPlatformModels, h as cvcEntryModel, i as cvcRegistryModel, j as formModel, p as platformFunctionModel, k as platformRoleModel, q as questionModel, s as scoringRuleModel, l as sectionModel } from '../index-4DiJrn7y.js';
|
|
@@ -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[];
|
package/dist/schemas/index.cjs
CHANGED
|
@@ -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 = [
|