@htilabs/platform-common-models 0.24.0 → 0.25.0
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/README.md +65 -0
- package/dist/{index-Dr6GBCoY.d.ts → index-ClTjjJ_S.d.ts} +1 -1
- package/dist/{index-BTqHP4DM.d.cts → index-Pt82NxQg.d.cts} +1 -1
- package/dist/index.cjs +457 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +437 -2
- package/dist/index.js.map +1 -1
- package/dist/information-scope/index.d.cts +3 -350
- package/dist/information-scope/index.d.ts +3 -350
- package/dist/informationScopeResolver-BzYu97DE.d.cts +351 -0
- package/dist/informationScopeResolver-BzYu97DE.d.ts +351 -0
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/services/index.d.cts +2 -1
- package/dist/services/index.d.ts +2 -1
- package/dist/sharing-ceiling/index.cjs +497 -0
- package/dist/sharing-ceiling/index.cjs.map +1 -0
- package/dist/sharing-ceiling/index.d.cts +318 -0
- package/dist/sharing-ceiling/index.d.ts +318 -0
- package/dist/sharing-ceiling/index.js +451 -0
- package/dist/sharing-ceiling/index.js.map +1 -0
- package/package.json +7 -1
- package/src/__sot__/README.md +1 -0
- package/src/__sot__/sharingStarter.pin.json +229 -0
- package/src/__tests__/sharing-starter-canon.test.ts +178 -0
- package/src/generated/sharingPlatformStarter.ts +165 -0
- package/src/index.ts +5 -0
- package/src/sharingCeiling/__tests__/sharingCeiling.test.ts +678 -0
- package/src/sharingCeiling/chain.ts +269 -0
- package/src/sharingCeiling/coverage.ts +346 -0
- package/src/sharingCeiling/index.ts +14 -0
- package/src/sharingCeiling/starter.ts +89 -0
- package/dist/{cvcEntry-BqAGctqK.d.cts → cvcEntry-Asg7mxjB.d.cts} +8 -8
- package/dist/{cvcEntry-BqAGctqK.d.ts → cvcEntry-Asg7mxjB.d.ts} +8 -8
package/dist/index.d.cts
CHANGED
|
@@ -3,13 +3,15 @@ export { IC48Catalog, IC48CatalogMeta, IC48Category, IC48CategoryCrosswalk, IC48
|
|
|
3
3
|
export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAULT_BOUND_STATE_LABELS, c as DEFAULT_BOUND_STATE_VALUES, d as DefaultBoundStateValue, F as FUNCTION_STATUS, e as FUNCTION_STATUS_LABELS, f as FUNCTION_STATUS_VALUES, g as FunctionStatusValue, P as PERMISSION_STATE, h as PERMISSION_STATE_DISPLAY, i as PERMISSION_STATE_LABELS, j as PERMISSION_STATE_VALUES, k as PLATFORM_TOOL, l as PLATFORM_TOOL_LABELS, m as PLATFORM_TOOL_VALUES, n as PermissionStateValue, o as PlatformToolValue, R as ROLE_LEVEL, p as ROLE_LEVEL_LABELS, q as ROLE_LEVEL_VALUES, r as RoleLevelValue, S as SHARE_VIEW, s as SHARE_VIEW_LABELS, t as SHARE_VIEW_VALUES, u as ShareViewValue } from './platform-auth-DJO-r9Pf.cjs';
|
|
4
4
|
export { A as AGENCY_TYPE_KEYS, a as AgencyTypeKey, H as HEALTHCARE_ORG_TYPE_KEYS, L as LAW_ENFORCEMENT_ORG_TYPE_KEYS, b as LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY, c as LEGAL_ORG_TYPE_KEYS, d as LegacyNumericReferralEntity, N as NO_SECTOR_ORG_TYPE_KEYS, O as ORG_TYPE_HEADING_KEYS, e as ORG_TYPE_KEYS, f as ORG_TYPE_NONPICKABLE_LEAF_KEYS, g as ORG_TYPE_PARENT_KEY, h as ORG_TYPE_SELECTABLE_KEYS, i as OrgTypeHeadingKey, j as OrgTypeKey, k as OrgTypeSelectableKey, R as REPORT_AUTHORITY_ORG_TYPE_KEYS, V as VICTIM_SERVING_ORG_TYPE_KEYS, l as isAgencyTypeKey, m as isHealthcareOrgType, n as isLawEnforcementOrgType, o as isLegalOrgType, p as isOrgTypeKey, q as isReportAuthorityOrgType, r as isVictimServingOrgType, s as orgTypeAncestry, t as orgTypeCanonicalCode, u as orgTypeDefaultSessionRole, v as orgTypeDefaultSessionRoleOrNull, w as orgTypeDefaultVsp, x as orgTypeEnumConstant, y as orgTypeLabel, z as orgTypeSector, B as resolveAgencyTypeKey, C as resolveOrgTypeKey, D as resolveOrgTypeKeyFromLegacyNumeric, E as resolveReferralEntityKeyFromLegacyNumeric } from './org-type-D_FG4KdN.cjs';
|
|
5
5
|
export { AddOrganizationProgramsFieldOptions, Address, Demographics, Email, ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS, OrganizationProgram, PROGRAM_REVIEW_STATUS, PROGRAM_REVIEW_STATUS_VALUES, PersonName, Phone, ProgramReviewStatus, TEAM_MODEL_NAME, TeamDirectoryFields, addOrganizationProgramsField, addTeamDirectoryFields, addressSchema, buildOrganizationProgramSchema, buildOrganizationProgramsFieldDefinition, demographicsSchema, emailSchema, isLiveOrganizationProgram, isProgramReviewStatus, organizationProgramSchemaDefinition, personNameSchema, phoneSchema, teamDirectorySchemaDefinition } from './schemas/index.cjs';
|
|
6
|
-
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-
|
|
6
|
+
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-Asg7mxjB.cjs';
|
|
7
7
|
export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, a as AddAgencyOrgTypeFieldsOptions, b as AgencyOrgTypeFields, O as ORG_TYPE_FIELD_NAMES, c as OrgTypeFieldName, d as OrgTypeFields, e as OrgTypeFieldsHolder, V as VSP_TWO_STEP_ISSUE, f as addAgencyOrgTypeFields, g as addOrgTypeFields, h as agencyOrgTypeSchemaDefinition, i as applyRunValidatorsIfUnset, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, j as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, k as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, l as vspTwoStepHoldsOnUpdate } from './agency-DYCv839V.cjs';
|
|
8
|
-
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, e as compileCvcEntryModel, f as compileCvcRegistryModel, 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-
|
|
8
|
+
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, e as compileCvcEntryModel, f as compileCvcRegistryModel, 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-Pt82NxQg.cjs';
|
|
9
9
|
export { AccommodationTypeKey, AccommodationTypeKeys, ActionStepCompletionStatusKey, ActionStepCompletionStatusKeys, ActionStepTypeKey, ActionStepTypeKeys, ActivityTypeKey, ActivityTypeKeys, AdminRoleKey, AdminRoleKeys, AdministeringJurisdictionKey, AdministeringJurisdictionKeys, AgeBinReportingKey, AgeBinReportingKeys, AnnouncementAudienceScopeKey, AnnouncementAudienceScopeKeys, AnnouncementResponseTypeKey, AnnouncementResponseTypeKeys, AssertionDomainKey, AssertionDomainKeys, AssertionStatusKey, AssertionStatusKeys, BasisQuickPicksKey, BasisQuickPicksKeys, CarCorrectionReasonKey, CarCorrectionReasonKeys, CaseShareStateKey, CaseShareStateKeys, CheckInActivityKey, CheckInActivityKeys, CheckInPhaseKey, CheckInPhaseKeys, ChildBehavioralConcernsKey, ChildBehavioralConcernsKeys, ChildChangeTypeKey, ChildChangeTypeKeys, ChildCustodyArrangementKey, ChildCustodyArrangementKeys, CitizenshipKey, CitizenshipKeys, CollectionContextKey, CollectionContextKeys, ContactInfoTypeKey, ContactInfoTypeKeys, ContactInfoUseTypeKey, ContactInfoUseTypeKeys, ContactLinkTypeKey, ContactLinkTypeKeys, ContactSafetyStatusKey, ContactSafetyStatusKeys, CoreFunctionsKey, CoreFunctionsKeys, CoreIndicatorKey, CoreIndicatorKeys, CoreInformationScopeKey, CoreInformationScopeKeys, CoreReferralOutcomeKey, CoreReferralOutcomeKeys, CountryKey, CountryKeys, CreatedBySystemKey, CreatedBySystemKeys, CriminalOrgCategoryKey, CriminalOrgCategoryKeys, DaIncidentArchiveReasonKey, DaIncidentArchiveReasonKeys, DaIncidentConfidenceKey, DaIncidentConfidenceKeys, DaIncidentDayApproxKey, DaIncidentDayApproxKeys, DaIncidentSeverityKey, DaIncidentSeverityKeys, DeterminationHelperCategoryKey, DeterminationHelperCategoryKeys, DeterminationLevelKey, DeterminationLevelKeys, DhStateKey, DhStateKeys, DisabilitySubtypeKey, DisabilitySubtypeKeys, DiscretionLevelKey, DiscretionLevelKeys, EmergencyContactCallReasonKey, EmergencyContactCallReasonKeys, EmergencyContactPermissionsKey, EmergencyContactPermissionsKeys, EmergencyExitCascadeKey, EmergencyExitCascadeKeys, EmploymentStatusKey, EmploymentStatusKeys, EnrollmentApplicationStatusKey, EnrollmentApplicationStatusKeys, ExitProcessChecklistItemKey, ExitProcessChecklistItemKeys, ExitReasonsKey, ExitReasonsKeys, ExploitationTypeKey, ExploitationTypeKeys, EyeColorKey, EyeColorKeys, FacialHairKey, FacialHairKeys, FacilitatorEntityTypeKey, FacilitatorEntityTypeKeys, FacilitatorLabelUsedInSourceKey, FacilitatorLabelUsedInSourceKeys, FacilitatorSubroleKey, FacilitatorSubroleKeys, FrequencyCadenceKey, FrequencyCadenceKeys, FunderKey, FunderKeys, GenderIdentityKey, GenderIdentityKeys, GoalCategoryKey, GoalCategoryKeys, GoalPriorityKey, GoalPriorityKeys, GoalStatusKey, GoalStatusKeys, GoalWithdrawalReasonKey, GoalWithdrawalReasonKeys, HairColorKey, HairColorKeys, HasTattoosKey, HasTattoosKeys, HighestEducationLevelCompletedKey, HighestEducationLevelCompletedKeys, HivStatusKey, HivStatusKeys, HmisCurrentLivingSituationKey, HmisCurrentLivingSituationKeys, HmisProjectTypeKey, HmisProjectTypeKeys, HmisRelationshipToHohKey, HmisRelationshipToHohKeys, HomelessStatusKey, HomelessStatusKeys, HopeScaleCaptureContextKey, HopeScaleCaptureContextKeys, HopeScaleResponseOptionsKey, HopeScaleResponseOptionsKeys, HopeScaleTierKey, HopeScaleTierKeys, HousingSubsidyTypesKey, HousingSubsidyTypesKeys, HtTypeKey, HtTypeKeys, IdentificationStatusKey, IdentificationStatusKeys, ImmigrationLegalStatusChangeTypeKey, ImmigrationLegalStatusChangeTypeKeys, IncarcerationEpisodeTypeKey, IncarcerationEpisodeTypeKeys, IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, IncidentParticipationRoleKey, IncidentParticipationRoleKeys, IncomeBenefitsSourcesKey, IncomeBenefitsSourcesKeys, InferenceTypeKey, InferenceTypeKeys, InvestigativeRequestTypeKey, InvestigativeRequestTypeKeys, JuvenileJusticeEpisodeTypeKey, JuvenileJusticeEpisodeTypeKeys, JuvenileJusticeInvolvementStatusKey, JuvenileJusticeInvolvementStatusKeys, LanguagesKey, LanguagesKeys, LeReportStatusKey, LeReportStatusKeys, LegalActionTypeKey, LegalActionTypeKeys, LivingSituationKey, LivingSituationKeys, LocationTypeKey, LocationTypeKeys, MaritalStatusLegalKey, MaritalStatusLegalKeys, MentalHealthStatusKey, MentalHealthStatusKeys, MessageReportReasonKey, MessageReportReasonKeys, MidStayEventTypeKey, MidStayEventTypeKeys, MilestoneTypeKey, MilestoneTypeKeys, MilitaryBranchKey, MilitaryBranchKeys, MilitaryStatusKey, MilitaryStatusKeys, MinorAdultStatusKey, MinorAdultStatusKeys, NameTypeKey, NameTypeKeys, NeedsAssessmentChangeTypeKey, NeedsAssessmentChangeTypeKeys, NeedsResidentialAgainKey, NeedsResidentialAgainKeys, OffenderStatusFamilyKey, OffenderStatusFamilyKeys, OffenderStatusKey, OffenderStatusKeys, OrientationIdentityKey, OrientationIdentityKeys, PersonRelationshipsKey, PersonRelationshipsKeys, PetExitReasonKey, PetExitReasonKeys, PetRelationshipBasisKey, PetRelationshipBasisKeys, PoPetitionBasisKey, PoPetitionBasisKeys, PoStatusKey, PoStatusKeys, PoViolationStatusKey, PoViolationStatusKeys, PreferredContactMethodKey, PreferredContactMethodKeys, PrimaryLanguageKey, PrimaryLanguageKeys, ProgramEnrollmentChangeTypeKey, ProgramEnrollmentChangeTypeKeys, ProgramSpecificCodeKey, ProgramSpecificCodeKeys, PronounsKey, PronounsKeys, ProofOfIdTypeKey, ProofOfIdTypeKeys, ProvenanceSourceIdKey, ProvenanceSourceIdKeys, QualityFlagsKey, QualityFlagsKeys, RaceEthnicityKey, RaceEthnicityKeys, RadiusBucketKey, RadiusBucketKeys, RecencyBandKey, RecencyBandKeys, ReferenceLinkTypeKey, ReferenceLinkTypeKeys, ReferralEntityCategoryKey, ReferralEntityCategoryKeys, ReferralOriginKey, ReferralOriginKeys, RelationshipConcernKey, RelationshipConcernKeys, RelationshipDynamicsKey, RelationshipDynamicsKeys, RelationshipStatusCurrentKey, RelationshipStatusCurrentKeys, RelationshipTiesKey, RelationshipTiesKeys, ReturnedToAbuserStatusKey, ReturnedToAbuserStatusKeys, RiskCategoryKey, RiskCategoryKeys, RiskIdentificationMilestoneKey, RiskIdentificationMilestoneKeys, RiskSeverityBandKey, RiskSeverityBandKeys, RoiMethodKey, RoiMethodKeys, RoiScopeKey, RoiScopeKeys, RoiStatusKey, RoiStatusKeys, RoleContextKey, RoleContextKeys, RomanticRelationshipChangeTypeKey, RomanticRelationshipChangeTypeKeys, RsvpResponseKey, RsvpResponseKeys, ServiceAudienceKey, ServiceAudienceKeys, ServiceCategoryKey, ServiceCategoryKeys, ServiceDeliveryChannelKey, ServiceDeliveryChannelKeys, ServiceMechanismKey, ServiceMechanismKeys, ServicePlanClosureReasonKey, ServicePlanClosureReasonKeys, ServicePlanReviewSnoozeReasonKey, ServicePlanReviewSnoozeReasonKeys, ServiceSourceKey, ServiceSourceKeys, ServiceStateKey, ServiceStateKeys, SessionNoteVisibilityKey, SessionNoteVisibilityKeys, SessionStateKey, SessionStateKeys, SessionTemplateKey, SessionTemplateKeys, SeverityFollowUpKey, SeverityFollowUpKeys, SexProviderSubroleKey, SexProviderSubroleKeys, SharePurposeKey, SharePurposeKeys, ShareResponseReasonKey, ShareResponseReasonKeys, SignatureMethodKey, SignatureMethodKeys, SignatureTypeKey, SignatureTypeKeys, SmtBodyLocationKey, SmtBodyLocationKeys, SmtNameRelationKey, SmtNameRelationKeys, SmtSignificanceFlagsKey, SmtSignificanceFlagsKeys, SmtTypeKey, SmtTypeKeys, SourceCategoryKey, SourceCategoryKeys, SourceInstrumentKey, SourceInstrumentKeys, SourceSubtypeKey, SourceSubtypeKeys, SourceSystemKey, SourceSystemKeys, SpecialNeedsDisabilitiesKey, SpecialNeedsDisabilitiesKeys, SubjectTypeKey, SubjectTypeKeys, SubstanceUseStatusKey, SubstanceUseStatusKeys, SuggestionSourceKey, SuggestionSourceKeys, SupportStrengthKey, SupportStrengthKeys, SupportTopicKey, SupportTopicKeys, ThreadStatusKey, ThreadStatusKeys, ThreadTypeKey, ThreadTypeKeys, TimeScopeKey, TimeScopeKeys, TraffickingRelevantRoleKey, TraffickingRelevantRoleKeys, TribesKey, TribesKeys, UserRoleKey, UserRoleKeys, VerificationMethodKey, VerificationMethodKeys, VerificationStatusKey, VerificationStatusKeys, VictimAbuseTypesKey, VictimAbuseTypesKeys, VictimStatusFamilyKey, VictimStatusFamilyKeys, VisaTypeKey, VisaTypeKeys, WhyNotKey, WhyNotKeys } from './enums/index.cjs';
|
|
10
10
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.cjs';
|
|
11
|
-
export {
|
|
11
|
+
export { C as CreateInformationScopeResolverInput, I as INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE, a as INFORMATION_SCOPE_READABLE_VERSIONS, b as INFORMATION_SCOPE_SYSTEM_INFO, c as INFORMATION_SCOPE_VERSION, d as InformationScopeResolver, S as ScopeApp, e as ScopeApps, f as ScopeCodeReading, g as ScopeKindBranch, h as ScopeMigration, i as ScopeMigrationRule, j as ScopePersonKind, k as ScopeReadOptions, l as ScopeReading, m as ScopeReadingRule, n as ScopeReadingSubject, o as ScopeRetainedReading, p as ScopeRow, q as ScopeRowStatus, r as ScopeRowType, s as ScopeShareOptions, t as ScopeShareReason, u as ScopeShareVerdict, v as ScopeSpecialDataType, w as ScopeSubjectKind, x as StoredScopeList, y as createInformationScopeResolver, z as isScopeInstrumentRow, A as isScopeRestRow, B as isSelectableScopeRow, D as kindForPerson } from './informationScopeResolver-BzYu97DE.cjs';
|
|
12
|
+
export { CoreInformationScopeSot, CoreInformationScopeSotEntry, CoreInformationScopeSotMigrationLine, scopeMigrationsFromSot, scopeRowsFromSot } from './information-scope/index.cjs';
|
|
12
13
|
export { AuthzFunctionRow, AuthzRoleOverrides, AuthzRoleRow, AuthzStateMap, AuthzTeamPolicy, AuthzTier1StateMap, CORE_FUNCTION_DEFAULT_BOUNDS, CORE_FUNCTION_DEFAULT_BOUNDS_SOT_VERSION, ResolveEffectiveFunctionsInput, VIEWING_LEVEL_FUNCTIONS, ViewingLevel, codebookDefaultBound, isCanonEvaluableFunction, resolveEffectiveFunctions, resolveEffectiveViewingLevel, selectActingTeamId, viewingLevelFromFunctions } from './authz/index.cjs';
|
|
14
|
+
export { EffectiveSharingCeiling, EffectiveSharingCeilingInputs, HTI_SHARE_PLATFORM_PURPOSE_ENABLED, HTI_SHARE_PLATFORM_STARTER, HTI_SHARE_PLATFORM_STARTER_SOURCE, INFORMATION_SCOPE_FIELD_HOME_ROWS, SHARING_CEILING_DEFAULT_ROW_KEY, SHARING_CEILING_EXTERNAL_ROW_KEY, SHARING_CEILING_SCOPE_VERSION, SharingCeilingAllowed, SharingCeilingCellLike, SharingCeilingRung, SharingCeilingScope, SharingPlatformStarter, SharingPurposeLists, SharingScopeEdits, ceilingCoverage, effectiveCeiling, hasOwnScopeContent, isCeilingCoverageRow, isSharingPurposeDisabled, maskSelectionToCeiling, rowsExpandedByCeiling, rowsOutsideCeiling, rowsOverCeiling, scopeRowWithinCeiling, sharingCeilingCellList, sharingCeilingRowKey, sharingScopeEditsFromCells } from './sharing-ceiling/index.cjs';
|
|
13
15
|
export { A as AgencyOrgTypeFieldsInput, a as AgencyOrgTypeFieldsSchema, b as AgencyTypeKeyInput, c as AgencyTypeKeySchema, C as CvcCode, d as CvcCodeSchema, e as CvcDomain, f as CvcEntrySchema, g as CvcEnvelope, h as CvcEnvelopeSchema, i as CvcKey, j as CvcKeySchema, O as OrgTypeFieldsSchema, k as OrgTypeSelectableKeyInput, l as OrgTypeSelectableKeySchema, S as ServiceCategoryEntry, m as ServiceCategoryEntrySchema, n as SetOrgTypeInput, o as SetOrgTypeInputSchema, T as TeamApp, p as TeamAppSchema, q as TeamDirectoryFieldsInput, r as TeamDirectoryFieldsSchema, s as orgTypeFieldsShape, w as withOrgTypeFields } from './agency-Djp57S71.cjs';
|
|
14
16
|
export { accommodationTypeSot, actionStepCompletionStatusSot, actionStepTypeSot, activityTypeSot, adminRolesSot, administeringJurisdictionSot, ageBinReportingSot, announcementAudienceScopeSot, announcementResponseTypeSot, assertionDomainSot, assertionStatusSot, basisQuickPicksSot, carCorrectionReasonSot, caseShareStateSot, checkInActivitySot, checkInPhaseSot, childBehavioralConcernsSot, childChangeTypeSot, childCustodyArrangementSot, citizenshipSot, collectionContextSot, contactInfoTypesSot, contactInfoUseTypeSot, contactLinkTypeSot, contactSafetyStatusSot, coreDhStateSot, coreFunctionsSot, coreIndicatorsSot, coreInformationScopeSot, coreReferralOutcomeSot, countriesSot, createdBySystemSot, criminalOrgCategorySot, daIncidentArchiveReasonSot, daIncidentConfidenceSot, daIncidentDayApproxSot, daIncidentSeveritySot, determinationHelperCategoriesSot, determinationLevelSot, disabilitySubtypeSot, discretionLevelSot, emergencyContactCallReasonSot, emergencyContactPermissionsSot, emergencyExitCascadeSot, employmentStatusSot, enrollmentApplicationStatusSot, exitProcessChecklistItemSot, exitReasonsSot, exploitationTypeSot, eyeColorSot, facialHairSot, facilitatorEntityTypeSot, facilitatorLabelUsedInSourceSot, facilitatorSubroleSot, frequencyCadenceSot, funderSot, genderIdentitySot, goalCategorySot, goalPrioritySot, goalStatusSot, goalWithdrawalReasonSot, hairColorSot, hasTattoosSot, highestEducationLevelCompletedSot, hivStatusSot, hmisCurrentLivingSituationSot, hmisProjectTypeSot, hmisRelationshipToHohSot, hmisSexSot, homelessStatusSot, hopeScaleCaptureContextSot, hopeScaleResponseOptionsSot, hopeScaleTierSot, housingSubsidyTypesSot, htTypeSot, identificationStatusSot, immigrationLegalStatusChangeTypeSot, incarcerationEpisodeTypeSot, incidentInvolvementRolesSot, incidentParticipationRolesSot, incomeBenefitsSourcesSot, inferenceTypeSot, investigativeRequestTypeSot, juvenileJusticeEpisodeTypeSot, juvenileJusticeInvolvementStatusSot, languagesSot, leReportStatusSot, legalActionTypeSot, livingSituationSot, locationTypeSot, maritalStatusLegalSot, mentalHealthStatusSot, messageReportReasonSot, midStayEventTypeSot, milestoneTypeSot, militaryBranchSot, militaryStatusSot, minorAdultStatusSot, nameTypeSot, needsAssessmentChangeTypeSot, needsResidentialAgainSot, offenderStatusFamilySot, offenderStatusSot, orientationIdentitySot, personRelationshipsSot, petExitReasonSot, petRelationshipBasisSot, poPetitionBasisSot, poStatusSot, poViolationStatusSot, preferredContactMethodSot, primaryLanguageSot, programEnrollmentChangeTypeSot, programSpecificCodeSot, pronounsSot, proofOfIdTypeSot, provenanceSourceIdSot, qualityFlagsSot, raceEthnicitySot, radiusBucketSot, recencyBandSot, referenceLinkTypeSot, referralEntityCategorySot, referralOriginSot, relationshipConcernSot, relationshipDynamicsSot, relationshipStatusCurrentSot, relationshipTiesSot, returnedToAbuserStatusSot, riskCategorySot, riskIdentificationMilestoneSot, riskSeverityBandSot, roiMethodSot, roiScopeSot, roiStatusSot, roleContextSot, romanticRelationshipChangeTypeSot, rsvpResponseSot, serviceAudienceSot, serviceCategoriesSot, serviceDeliveryChannelSot, serviceMechanismsSot, servicePlanClosureReasonSot, servicePlanReviewSnoozeReasonSot, serviceSourceSot, serviceStatesSot, sessionNoteVisibilitySot, sessionStateSot, sessionTemplateSot, severityFollowUpSot, sexProviderSubroleSot, sharePurposeSot, shareResponseReasonSot, signatureMethodSot, signatureTypeSot, smtBodyLocationSot, smtNameRelationSot, smtSignificanceFlagsSot, smtTypeSot, sourceCategorySot, sourceInstrumentSot, sourceSubtypeSot, sourceSystemSot, specialNeedsDisabilitiesSot, subjectTypeSot, substanceUseStatusSot, suggestionSourceSot, supportStrengthSot, supportTopicSot, threadStatusSot, threadTypeSot, timeScopeSot, traffickingRelevantRoleSot, tribesSot, userRolesSot, verificationMethodSot, verificationStatusSot, victimAbuseTypesSot, victimStatusFamilySot, visaTypeSot, whyNotsSot } from './cvcs/index.cjs';
|
|
15
17
|
import 'mongoose';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ export { IC48Catalog, IC48CatalogMeta, IC48Category, IC48CategoryCrosswalk, IC48
|
|
|
3
3
|
export { D as DEFAULT_BOUND_STATE, a as DEFAULT_BOUND_STATE_DISPLAY, b as DEFAULT_BOUND_STATE_LABELS, c as DEFAULT_BOUND_STATE_VALUES, d as DefaultBoundStateValue, F as FUNCTION_STATUS, e as FUNCTION_STATUS_LABELS, f as FUNCTION_STATUS_VALUES, g as FunctionStatusValue, P as PERMISSION_STATE, h as PERMISSION_STATE_DISPLAY, i as PERMISSION_STATE_LABELS, j as PERMISSION_STATE_VALUES, k as PLATFORM_TOOL, l as PLATFORM_TOOL_LABELS, m as PLATFORM_TOOL_VALUES, n as PermissionStateValue, o as PlatformToolValue, R as ROLE_LEVEL, p as ROLE_LEVEL_LABELS, q as ROLE_LEVEL_VALUES, r as RoleLevelValue, S as SHARE_VIEW, s as SHARE_VIEW_LABELS, t as SHARE_VIEW_VALUES, u as ShareViewValue } from './platform-auth-DJO-r9Pf.js';
|
|
4
4
|
export { A as AGENCY_TYPE_KEYS, a as AgencyTypeKey, H as HEALTHCARE_ORG_TYPE_KEYS, L as LAW_ENFORCEMENT_ORG_TYPE_KEYS, b as LEGACY_NUMERIC_TO_REFERRAL_ENTITY_KEY, c as LEGAL_ORG_TYPE_KEYS, d as LegacyNumericReferralEntity, N as NO_SECTOR_ORG_TYPE_KEYS, O as ORG_TYPE_HEADING_KEYS, e as ORG_TYPE_KEYS, f as ORG_TYPE_NONPICKABLE_LEAF_KEYS, g as ORG_TYPE_PARENT_KEY, h as ORG_TYPE_SELECTABLE_KEYS, i as OrgTypeHeadingKey, j as OrgTypeKey, k as OrgTypeSelectableKey, R as REPORT_AUTHORITY_ORG_TYPE_KEYS, V as VICTIM_SERVING_ORG_TYPE_KEYS, l as isAgencyTypeKey, m as isHealthcareOrgType, n as isLawEnforcementOrgType, o as isLegalOrgType, p as isOrgTypeKey, q as isReportAuthorityOrgType, r as isVictimServingOrgType, s as orgTypeAncestry, t as orgTypeCanonicalCode, u as orgTypeDefaultSessionRole, v as orgTypeDefaultSessionRoleOrNull, w as orgTypeDefaultVsp, x as orgTypeEnumConstant, y as orgTypeLabel, z as orgTypeSector, B as resolveAgencyTypeKey, C as resolveOrgTypeKey, D as resolveOrgTypeKeyFromLegacyNumeric, E as resolveReferralEntityKeyFromLegacyNumeric } from './org-type-BYQb9Qzq.js';
|
|
5
5
|
export { AddOrganizationProgramsFieldOptions, Address, Demographics, Email, ORGANIZATION_PROGRAM_VALIDATED_UPDATE_OPS, OrganizationProgram, PROGRAM_REVIEW_STATUS, PROGRAM_REVIEW_STATUS_VALUES, PersonName, Phone, ProgramReviewStatus, TEAM_MODEL_NAME, TeamDirectoryFields, addOrganizationProgramsField, addTeamDirectoryFields, addressSchema, buildOrganizationProgramSchema, buildOrganizationProgramsFieldDefinition, demographicsSchema, emailSchema, isLiveOrganizationProgram, isProgramReviewStatus, organizationProgramSchemaDefinition, personNameSchema, phoneSchema, teamDirectorySchemaDefinition } from './schemas/index.js';
|
|
6
|
-
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-
|
|
6
|
+
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-Asg7mxjB.js';
|
|
7
7
|
export { A as AGENCY_ORG_TYPE_VALIDATED_UPDATE_OPS, a as AddAgencyOrgTypeFieldsOptions, b as AgencyOrgTypeFields, O as ORG_TYPE_FIELD_NAMES, c as OrgTypeFieldName, d as OrgTypeFields, e as OrgTypeFieldsHolder, V as VSP_TWO_STEP_ISSUE, f as addAgencyOrgTypeFields, g as addOrgTypeFields, h as agencyOrgTypeSchemaDefinition, i as applyRunValidatorsIfUnset, m as mirrorOrgTypeFields, o as orgTypeFieldsDiffer, j as orgTypeSchemaDefinition, r as resolveEffectiveOrgType, k as resolveEffectiveOrgTypeFields, v as vspTwoStepHolds, l as vspTwoStepHoldsOnUpdate } from './agency-Ca4pCOOf.js';
|
|
8
|
-
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, e as compileCvcEntryModel, f as compileCvcRegistryModel, 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-
|
|
8
|
+
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, e as compileCvcEntryModel, f as compileCvcRegistryModel, 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-ClTjjJ_S.js';
|
|
9
9
|
export { AccommodationTypeKey, AccommodationTypeKeys, ActionStepCompletionStatusKey, ActionStepCompletionStatusKeys, ActionStepTypeKey, ActionStepTypeKeys, ActivityTypeKey, ActivityTypeKeys, AdminRoleKey, AdminRoleKeys, AdministeringJurisdictionKey, AdministeringJurisdictionKeys, AgeBinReportingKey, AgeBinReportingKeys, AnnouncementAudienceScopeKey, AnnouncementAudienceScopeKeys, AnnouncementResponseTypeKey, AnnouncementResponseTypeKeys, AssertionDomainKey, AssertionDomainKeys, AssertionStatusKey, AssertionStatusKeys, BasisQuickPicksKey, BasisQuickPicksKeys, CarCorrectionReasonKey, CarCorrectionReasonKeys, CaseShareStateKey, CaseShareStateKeys, CheckInActivityKey, CheckInActivityKeys, CheckInPhaseKey, CheckInPhaseKeys, ChildBehavioralConcernsKey, ChildBehavioralConcernsKeys, ChildChangeTypeKey, ChildChangeTypeKeys, ChildCustodyArrangementKey, ChildCustodyArrangementKeys, CitizenshipKey, CitizenshipKeys, CollectionContextKey, CollectionContextKeys, ContactInfoTypeKey, ContactInfoTypeKeys, ContactInfoUseTypeKey, ContactInfoUseTypeKeys, ContactLinkTypeKey, ContactLinkTypeKeys, ContactSafetyStatusKey, ContactSafetyStatusKeys, CoreFunctionsKey, CoreFunctionsKeys, CoreIndicatorKey, CoreIndicatorKeys, CoreInformationScopeKey, CoreInformationScopeKeys, CoreReferralOutcomeKey, CoreReferralOutcomeKeys, CountryKey, CountryKeys, CreatedBySystemKey, CreatedBySystemKeys, CriminalOrgCategoryKey, CriminalOrgCategoryKeys, DaIncidentArchiveReasonKey, DaIncidentArchiveReasonKeys, DaIncidentConfidenceKey, DaIncidentConfidenceKeys, DaIncidentDayApproxKey, DaIncidentDayApproxKeys, DaIncidentSeverityKey, DaIncidentSeverityKeys, DeterminationHelperCategoryKey, DeterminationHelperCategoryKeys, DeterminationLevelKey, DeterminationLevelKeys, DhStateKey, DhStateKeys, DisabilitySubtypeKey, DisabilitySubtypeKeys, DiscretionLevelKey, DiscretionLevelKeys, EmergencyContactCallReasonKey, EmergencyContactCallReasonKeys, EmergencyContactPermissionsKey, EmergencyContactPermissionsKeys, EmergencyExitCascadeKey, EmergencyExitCascadeKeys, EmploymentStatusKey, EmploymentStatusKeys, EnrollmentApplicationStatusKey, EnrollmentApplicationStatusKeys, ExitProcessChecklistItemKey, ExitProcessChecklistItemKeys, ExitReasonsKey, ExitReasonsKeys, ExploitationTypeKey, ExploitationTypeKeys, EyeColorKey, EyeColorKeys, FacialHairKey, FacialHairKeys, FacilitatorEntityTypeKey, FacilitatorEntityTypeKeys, FacilitatorLabelUsedInSourceKey, FacilitatorLabelUsedInSourceKeys, FacilitatorSubroleKey, FacilitatorSubroleKeys, FrequencyCadenceKey, FrequencyCadenceKeys, FunderKey, FunderKeys, GenderIdentityKey, GenderIdentityKeys, GoalCategoryKey, GoalCategoryKeys, GoalPriorityKey, GoalPriorityKeys, GoalStatusKey, GoalStatusKeys, GoalWithdrawalReasonKey, GoalWithdrawalReasonKeys, HairColorKey, HairColorKeys, HasTattoosKey, HasTattoosKeys, HighestEducationLevelCompletedKey, HighestEducationLevelCompletedKeys, HivStatusKey, HivStatusKeys, HmisCurrentLivingSituationKey, HmisCurrentLivingSituationKeys, HmisProjectTypeKey, HmisProjectTypeKeys, HmisRelationshipToHohKey, HmisRelationshipToHohKeys, HomelessStatusKey, HomelessStatusKeys, HopeScaleCaptureContextKey, HopeScaleCaptureContextKeys, HopeScaleResponseOptionsKey, HopeScaleResponseOptionsKeys, HopeScaleTierKey, HopeScaleTierKeys, HousingSubsidyTypesKey, HousingSubsidyTypesKeys, HtTypeKey, HtTypeKeys, IdentificationStatusKey, IdentificationStatusKeys, ImmigrationLegalStatusChangeTypeKey, ImmigrationLegalStatusChangeTypeKeys, IncarcerationEpisodeTypeKey, IncarcerationEpisodeTypeKeys, IncidentInvolvementRoleKey, IncidentInvolvementRoleKeys, IncidentParticipationRoleKey, IncidentParticipationRoleKeys, IncomeBenefitsSourcesKey, IncomeBenefitsSourcesKeys, InferenceTypeKey, InferenceTypeKeys, InvestigativeRequestTypeKey, InvestigativeRequestTypeKeys, JuvenileJusticeEpisodeTypeKey, JuvenileJusticeEpisodeTypeKeys, JuvenileJusticeInvolvementStatusKey, JuvenileJusticeInvolvementStatusKeys, LanguagesKey, LanguagesKeys, LeReportStatusKey, LeReportStatusKeys, LegalActionTypeKey, LegalActionTypeKeys, LivingSituationKey, LivingSituationKeys, LocationTypeKey, LocationTypeKeys, MaritalStatusLegalKey, MaritalStatusLegalKeys, MentalHealthStatusKey, MentalHealthStatusKeys, MessageReportReasonKey, MessageReportReasonKeys, MidStayEventTypeKey, MidStayEventTypeKeys, MilestoneTypeKey, MilestoneTypeKeys, MilitaryBranchKey, MilitaryBranchKeys, MilitaryStatusKey, MilitaryStatusKeys, MinorAdultStatusKey, MinorAdultStatusKeys, NameTypeKey, NameTypeKeys, NeedsAssessmentChangeTypeKey, NeedsAssessmentChangeTypeKeys, NeedsResidentialAgainKey, NeedsResidentialAgainKeys, OffenderStatusFamilyKey, OffenderStatusFamilyKeys, OffenderStatusKey, OffenderStatusKeys, OrientationIdentityKey, OrientationIdentityKeys, PersonRelationshipsKey, PersonRelationshipsKeys, PetExitReasonKey, PetExitReasonKeys, PetRelationshipBasisKey, PetRelationshipBasisKeys, PoPetitionBasisKey, PoPetitionBasisKeys, PoStatusKey, PoStatusKeys, PoViolationStatusKey, PoViolationStatusKeys, PreferredContactMethodKey, PreferredContactMethodKeys, PrimaryLanguageKey, PrimaryLanguageKeys, ProgramEnrollmentChangeTypeKey, ProgramEnrollmentChangeTypeKeys, ProgramSpecificCodeKey, ProgramSpecificCodeKeys, PronounsKey, PronounsKeys, ProofOfIdTypeKey, ProofOfIdTypeKeys, ProvenanceSourceIdKey, ProvenanceSourceIdKeys, QualityFlagsKey, QualityFlagsKeys, RaceEthnicityKey, RaceEthnicityKeys, RadiusBucketKey, RadiusBucketKeys, RecencyBandKey, RecencyBandKeys, ReferenceLinkTypeKey, ReferenceLinkTypeKeys, ReferralEntityCategoryKey, ReferralEntityCategoryKeys, ReferralOriginKey, ReferralOriginKeys, RelationshipConcernKey, RelationshipConcernKeys, RelationshipDynamicsKey, RelationshipDynamicsKeys, RelationshipStatusCurrentKey, RelationshipStatusCurrentKeys, RelationshipTiesKey, RelationshipTiesKeys, ReturnedToAbuserStatusKey, ReturnedToAbuserStatusKeys, RiskCategoryKey, RiskCategoryKeys, RiskIdentificationMilestoneKey, RiskIdentificationMilestoneKeys, RiskSeverityBandKey, RiskSeverityBandKeys, RoiMethodKey, RoiMethodKeys, RoiScopeKey, RoiScopeKeys, RoiStatusKey, RoiStatusKeys, RoleContextKey, RoleContextKeys, RomanticRelationshipChangeTypeKey, RomanticRelationshipChangeTypeKeys, RsvpResponseKey, RsvpResponseKeys, ServiceAudienceKey, ServiceAudienceKeys, ServiceCategoryKey, ServiceCategoryKeys, ServiceDeliveryChannelKey, ServiceDeliveryChannelKeys, ServiceMechanismKey, ServiceMechanismKeys, ServicePlanClosureReasonKey, ServicePlanClosureReasonKeys, ServicePlanReviewSnoozeReasonKey, ServicePlanReviewSnoozeReasonKeys, ServiceSourceKey, ServiceSourceKeys, ServiceStateKey, ServiceStateKeys, SessionNoteVisibilityKey, SessionNoteVisibilityKeys, SessionStateKey, SessionStateKeys, SessionTemplateKey, SessionTemplateKeys, SeverityFollowUpKey, SeverityFollowUpKeys, SexProviderSubroleKey, SexProviderSubroleKeys, SharePurposeKey, SharePurposeKeys, ShareResponseReasonKey, ShareResponseReasonKeys, SignatureMethodKey, SignatureMethodKeys, SignatureTypeKey, SignatureTypeKeys, SmtBodyLocationKey, SmtBodyLocationKeys, SmtNameRelationKey, SmtNameRelationKeys, SmtSignificanceFlagsKey, SmtSignificanceFlagsKeys, SmtTypeKey, SmtTypeKeys, SourceCategoryKey, SourceCategoryKeys, SourceInstrumentKey, SourceInstrumentKeys, SourceSubtypeKey, SourceSubtypeKeys, SourceSystemKey, SourceSystemKeys, SpecialNeedsDisabilitiesKey, SpecialNeedsDisabilitiesKeys, SubjectTypeKey, SubjectTypeKeys, SubstanceUseStatusKey, SubstanceUseStatusKeys, SuggestionSourceKey, SuggestionSourceKeys, SupportStrengthKey, SupportStrengthKeys, SupportTopicKey, SupportTopicKeys, ThreadStatusKey, ThreadStatusKeys, ThreadTypeKey, ThreadTypeKeys, TimeScopeKey, TimeScopeKeys, TraffickingRelevantRoleKey, TraffickingRelevantRoleKeys, TribesKey, TribesKeys, UserRoleKey, UserRoleKeys, VerificationMethodKey, VerificationMethodKeys, VerificationStatusKey, VerificationStatusKeys, VictimAbuseTypesKey, VictimAbuseTypesKeys, VictimStatusFamilyKey, VictimStatusFamilyKeys, VisaTypeKey, VisaTypeKeys, WhyNotKey, WhyNotKeys } from './enums/index.js';
|
|
10
10
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.js';
|
|
11
|
-
export {
|
|
11
|
+
export { C as CreateInformationScopeResolverInput, I as INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE, a as INFORMATION_SCOPE_READABLE_VERSIONS, b as INFORMATION_SCOPE_SYSTEM_INFO, c as INFORMATION_SCOPE_VERSION, d as InformationScopeResolver, S as ScopeApp, e as ScopeApps, f as ScopeCodeReading, g as ScopeKindBranch, h as ScopeMigration, i as ScopeMigrationRule, j as ScopePersonKind, k as ScopeReadOptions, l as ScopeReading, m as ScopeReadingRule, n as ScopeReadingSubject, o as ScopeRetainedReading, p as ScopeRow, q as ScopeRowStatus, r as ScopeRowType, s as ScopeShareOptions, t as ScopeShareReason, u as ScopeShareVerdict, v as ScopeSpecialDataType, w as ScopeSubjectKind, x as StoredScopeList, y as createInformationScopeResolver, z as isScopeInstrumentRow, A as isScopeRestRow, B as isSelectableScopeRow, D as kindForPerson } from './informationScopeResolver-BzYu97DE.js';
|
|
12
|
+
export { CoreInformationScopeSot, CoreInformationScopeSotEntry, CoreInformationScopeSotMigrationLine, scopeMigrationsFromSot, scopeRowsFromSot } from './information-scope/index.js';
|
|
12
13
|
export { AuthzFunctionRow, AuthzRoleOverrides, AuthzRoleRow, AuthzStateMap, AuthzTeamPolicy, AuthzTier1StateMap, CORE_FUNCTION_DEFAULT_BOUNDS, CORE_FUNCTION_DEFAULT_BOUNDS_SOT_VERSION, ResolveEffectiveFunctionsInput, VIEWING_LEVEL_FUNCTIONS, ViewingLevel, codebookDefaultBound, isCanonEvaluableFunction, resolveEffectiveFunctions, resolveEffectiveViewingLevel, selectActingTeamId, viewingLevelFromFunctions } from './authz/index.js';
|
|
14
|
+
export { EffectiveSharingCeiling, EffectiveSharingCeilingInputs, HTI_SHARE_PLATFORM_PURPOSE_ENABLED, HTI_SHARE_PLATFORM_STARTER, HTI_SHARE_PLATFORM_STARTER_SOURCE, INFORMATION_SCOPE_FIELD_HOME_ROWS, SHARING_CEILING_DEFAULT_ROW_KEY, SHARING_CEILING_EXTERNAL_ROW_KEY, SHARING_CEILING_SCOPE_VERSION, SharingCeilingAllowed, SharingCeilingCellLike, SharingCeilingRung, SharingCeilingScope, SharingPlatformStarter, SharingPurposeLists, SharingScopeEdits, ceilingCoverage, effectiveCeiling, hasOwnScopeContent, isCeilingCoverageRow, isSharingPurposeDisabled, maskSelectionToCeiling, rowsExpandedByCeiling, rowsOutsideCeiling, rowsOverCeiling, scopeRowWithinCeiling, sharingCeilingCellList, sharingCeilingRowKey, sharingScopeEditsFromCells } from './sharing-ceiling/index.js';
|
|
13
15
|
export { A as AgencyOrgTypeFieldsInput, a as AgencyOrgTypeFieldsSchema, b as AgencyTypeKeyInput, c as AgencyTypeKeySchema, C as CvcCode, d as CvcCodeSchema, e as CvcDomain, f as CvcEntrySchema, g as CvcEnvelope, h as CvcEnvelopeSchema, i as CvcKey, j as CvcKeySchema, O as OrgTypeFieldsSchema, k as OrgTypeSelectableKeyInput, l as OrgTypeSelectableKeySchema, S as ServiceCategoryEntry, m as ServiceCategoryEntrySchema, n as SetOrgTypeInput, o as SetOrgTypeInputSchema, T as TeamApp, p as TeamAppSchema, q as TeamDirectoryFieldsInput, r as TeamDirectoryFieldsSchema, s as orgTypeFieldsShape, w as withOrgTypeFields } from './agency-BHv54o79.js';
|
|
14
16
|
export { accommodationTypeSot, actionStepCompletionStatusSot, actionStepTypeSot, activityTypeSot, adminRolesSot, administeringJurisdictionSot, ageBinReportingSot, announcementAudienceScopeSot, announcementResponseTypeSot, assertionDomainSot, assertionStatusSot, basisQuickPicksSot, carCorrectionReasonSot, caseShareStateSot, checkInActivitySot, checkInPhaseSot, childBehavioralConcernsSot, childChangeTypeSot, childCustodyArrangementSot, citizenshipSot, collectionContextSot, contactInfoTypesSot, contactInfoUseTypeSot, contactLinkTypeSot, contactSafetyStatusSot, coreDhStateSot, coreFunctionsSot, coreIndicatorsSot, coreInformationScopeSot, coreReferralOutcomeSot, countriesSot, createdBySystemSot, criminalOrgCategorySot, daIncidentArchiveReasonSot, daIncidentConfidenceSot, daIncidentDayApproxSot, daIncidentSeveritySot, determinationHelperCategoriesSot, determinationLevelSot, disabilitySubtypeSot, discretionLevelSot, emergencyContactCallReasonSot, emergencyContactPermissionsSot, emergencyExitCascadeSot, employmentStatusSot, enrollmentApplicationStatusSot, exitProcessChecklistItemSot, exitReasonsSot, exploitationTypeSot, eyeColorSot, facialHairSot, facilitatorEntityTypeSot, facilitatorLabelUsedInSourceSot, facilitatorSubroleSot, frequencyCadenceSot, funderSot, genderIdentitySot, goalCategorySot, goalPrioritySot, goalStatusSot, goalWithdrawalReasonSot, hairColorSot, hasTattoosSot, highestEducationLevelCompletedSot, hivStatusSot, hmisCurrentLivingSituationSot, hmisProjectTypeSot, hmisRelationshipToHohSot, hmisSexSot, homelessStatusSot, hopeScaleCaptureContextSot, hopeScaleResponseOptionsSot, hopeScaleTierSot, housingSubsidyTypesSot, htTypeSot, identificationStatusSot, immigrationLegalStatusChangeTypeSot, incarcerationEpisodeTypeSot, incidentInvolvementRolesSot, incidentParticipationRolesSot, incomeBenefitsSourcesSot, inferenceTypeSot, investigativeRequestTypeSot, juvenileJusticeEpisodeTypeSot, juvenileJusticeInvolvementStatusSot, languagesSot, leReportStatusSot, legalActionTypeSot, livingSituationSot, locationTypeSot, maritalStatusLegalSot, mentalHealthStatusSot, messageReportReasonSot, midStayEventTypeSot, milestoneTypeSot, militaryBranchSot, militaryStatusSot, minorAdultStatusSot, nameTypeSot, needsAssessmentChangeTypeSot, needsResidentialAgainSot, offenderStatusFamilySot, offenderStatusSot, orientationIdentitySot, personRelationshipsSot, petExitReasonSot, petRelationshipBasisSot, poPetitionBasisSot, poStatusSot, poViolationStatusSot, preferredContactMethodSot, primaryLanguageSot, programEnrollmentChangeTypeSot, programSpecificCodeSot, pronounsSot, proofOfIdTypeSot, provenanceSourceIdSot, qualityFlagsSot, raceEthnicitySot, radiusBucketSot, recencyBandSot, referenceLinkTypeSot, referralEntityCategorySot, referralOriginSot, relationshipConcernSot, relationshipDynamicsSot, relationshipStatusCurrentSot, relationshipTiesSot, returnedToAbuserStatusSot, riskCategorySot, riskIdentificationMilestoneSot, riskSeverityBandSot, roiMethodSot, roiScopeSot, roiStatusSot, roleContextSot, romanticRelationshipChangeTypeSot, rsvpResponseSot, serviceAudienceSot, serviceCategoriesSot, serviceDeliveryChannelSot, serviceMechanismsSot, servicePlanClosureReasonSot, servicePlanReviewSnoozeReasonSot, serviceSourceSot, serviceStatesSot, sessionNoteVisibilitySot, sessionStateSot, sessionTemplateSot, severityFollowUpSot, sexProviderSubroleSot, sharePurposeSot, shareResponseReasonSot, signatureMethodSot, signatureTypeSot, smtBodyLocationSot, smtNameRelationSot, smtSignificanceFlagsSot, smtTypeSot, sourceCategorySot, sourceInstrumentSot, sourceSubtypeSot, sourceSystemSot, specialNeedsDisabilitiesSot, subjectTypeSot, substanceUseStatusSot, suggestionSourceSot, supportStrengthSot, supportTopicSot, threadStatusSot, threadTypeSot, timeScopeSot, traffickingRelevantRoleSot, tribesSot, userRolesSot, verificationMethodSot, verificationStatusSot, victimAbuseTypesSot, victimStatusFamilySot, visaTypeSot, whyNotsSot } from './cvcs/index.js';
|
|
15
17
|
import 'mongoose';
|
package/dist/index.js
CHANGED
|
@@ -13088,11 +13088,11 @@ function createInformationScopeResolver(input) {
|
|
|
13088
13088
|
});
|
|
13089
13089
|
migrations.set(m.from, perCode);
|
|
13090
13090
|
}
|
|
13091
|
-
const normalize = (codes,
|
|
13091
|
+
const normalize = (codes, withSystemInfo2 = true) => {
|
|
13092
13092
|
const seen = /* @__PURE__ */ new Set();
|
|
13093
13093
|
const known = [];
|
|
13094
13094
|
const unknown = [];
|
|
13095
|
-
const all =
|
|
13095
|
+
const all = withSystemInfo2 ? [INFORMATION_SCOPE_SYSTEM_INFO, ...codes] : [...codes];
|
|
13096
13096
|
for (const c of all) {
|
|
13097
13097
|
if (seen.has(c)) continue;
|
|
13098
13098
|
seen.add(c);
|
|
@@ -13721,6 +13721,421 @@ function codebookDefaultBound(functionCode, roleCode) {
|
|
|
13721
13721
|
return Object.hasOwn(roles, roleCode) ? roles[roleCode] : null;
|
|
13722
13722
|
}
|
|
13723
13723
|
|
|
13724
|
+
// src/generated/sharingPlatformStarter.ts
|
|
13725
|
+
var SHARING_PLATFORM_STARTER_SOURCE = {
|
|
13726
|
+
"monolith": {
|
|
13727
|
+
"repo": "htilabstech/prototype",
|
|
13728
|
+
"file": "HTI-LEADS-PAVE-Thread-prototype.html",
|
|
13729
|
+
"sha": "d85f05b7",
|
|
13730
|
+
"lines": [
|
|
13731
|
+
326475,
|
|
13732
|
+
326543
|
|
13733
|
+
]
|
|
13734
|
+
},
|
|
13735
|
+
"mirror": {
|
|
13736
|
+
"repo": "htilabstech/platform-prototype",
|
|
13737
|
+
"file": "src/data.js",
|
|
13738
|
+
"sha": "a6f1f3a5",
|
|
13739
|
+
"starterLines": [
|
|
13740
|
+
38170,
|
|
13741
|
+
38190
|
|
13742
|
+
],
|
|
13743
|
+
"purposeLines": [
|
|
13744
|
+
32450,
|
|
13745
|
+
32531
|
|
13746
|
+
]
|
|
13747
|
+
},
|
|
13748
|
+
"fieldPlacements": {
|
|
13749
|
+
"repo": "htilabstech/prototype",
|
|
13750
|
+
"file": "docs/share-roi/information_scope_v4.fields.csv",
|
|
13751
|
+
"sha": "d85f05b7"
|
|
13752
|
+
}
|
|
13753
|
+
};
|
|
13754
|
+
var SHARING_PLATFORM_STARTER_DATA = {
|
|
13755
|
+
scopeVersion: 4,
|
|
13756
|
+
scopeByPurpose: {
|
|
13757
|
+
"referral": ["identifying", "contact", "services", "system", "summary_needs_assessment"],
|
|
13758
|
+
"case_collaboration": ["identifying", "risk", "contact", "services", "notes", "system", "summary_initial_screen", "summary_lap", "summary_danger_assessment", "summary_stalking_assessment", "summary_injury_and_strangulation", "summary_ae_intake", "summary_tra", "summary_needs_assessment"],
|
|
13759
|
+
"deconfliction": ["identifying", "system"],
|
|
13760
|
+
"mandatory_reporting": ["identifying", "risk", "contact", "services", "notes", "system", "summary_initial_screen", "summary_lap", "summary_danger_assessment", "summary_stalking_assessment", "summary_injury_and_strangulation", "summary_ae_intake", "summary_tra", "summary_needs_assessment", "offenders.identifying", "offenders.risk", "relationships_household", "family"],
|
|
13761
|
+
"discretionary_share": ["identifying", "system"],
|
|
13762
|
+
"authority_reporting": ["identifying", "risk", "system", "summary_initial_screen", "summary_lap", "summary_danger_assessment", "summary_stalking_assessment", "summary_injury_and_strangulation", "summary_ae_intake", "summary_tra", "offenders.identifying", "offenders.risk", "relationships_household", "family"],
|
|
13763
|
+
"automatic_account_share": ["identifying", "system"],
|
|
13764
|
+
"records_request": ["identifying", "system"]
|
|
13765
|
+
},
|
|
13766
|
+
counterpartyOverrides: {
|
|
13767
|
+
"palomar": {
|
|
13768
|
+
"case_collaboration": ["identifying", "risk", "contact", "services", "notes", "health_accommodation", "system", "summary_initial_screen", "summary_lap", "summary_danger_assessment", "summary_stalking_assessment", "summary_injury_and_strangulation", "summary_ae_intake", "summary_tra", "summary_mental_health_screen", "summary_behavioral_health_intake", "summary_trauma_and_coping_screen", "summary_needs_assessment"]
|
|
13769
|
+
},
|
|
13770
|
+
"okcpd": {
|
|
13771
|
+
"mandatory_reporting": ["identifying", "risk", "contact", "services", "notes", "system", "summary_initial_screen", "summary_lap", "summary_danger_assessment", "summary_stalking_assessment", "summary_injury_and_strangulation", "summary_ae_intake", "summary_tra", "summary_needs_assessment", "offenders.identifying", "offenders.risk", "relationships_household", "family"],
|
|
13772
|
+
"referral": ["identifying", "contact", "services", "system", "summary_needs_assessment"]
|
|
13773
|
+
},
|
|
13774
|
+
"legal_aid_ok": {
|
|
13775
|
+
"referral": ["identifying", "contact", "services", "notes", "system", "summary_needs_assessment"]
|
|
13776
|
+
}
|
|
13777
|
+
},
|
|
13778
|
+
purposeEnabled: {
|
|
13779
|
+
"referral": true,
|
|
13780
|
+
"case_collaboration": true,
|
|
13781
|
+
"deconfliction": true,
|
|
13782
|
+
"mandatory_reporting": true,
|
|
13783
|
+
"discretionary_share": true,
|
|
13784
|
+
"authority_reporting": true,
|
|
13785
|
+
"automatic_account_share": true,
|
|
13786
|
+
"records_request": false
|
|
13787
|
+
},
|
|
13788
|
+
fieldHomeRows: [
|
|
13789
|
+
"accommodation_needs",
|
|
13790
|
+
"ad_content",
|
|
13791
|
+
"additional_ids",
|
|
13792
|
+
"addresses",
|
|
13793
|
+
"case_attachments",
|
|
13794
|
+
"case_determinations",
|
|
13795
|
+
"case_lifecycle",
|
|
13796
|
+
"case_notes",
|
|
13797
|
+
"commercial_activity",
|
|
13798
|
+
"contact_info",
|
|
13799
|
+
"demographics",
|
|
13800
|
+
"derived_risk_signals",
|
|
13801
|
+
"dob",
|
|
13802
|
+
"encounter_location",
|
|
13803
|
+
"family.health_accommodation",
|
|
13804
|
+
"family.identifying",
|
|
13805
|
+
"family.risk",
|
|
13806
|
+
"full_ae_intake",
|
|
13807
|
+
"full_behavioral_health_intake",
|
|
13808
|
+
"full_danger_assessment",
|
|
13809
|
+
"full_findings",
|
|
13810
|
+
"full_hope_scale",
|
|
13811
|
+
"full_ida",
|
|
13812
|
+
"full_initial_screen",
|
|
13813
|
+
"full_injury_and_strangulation",
|
|
13814
|
+
"full_lap",
|
|
13815
|
+
"full_mental_health_screen",
|
|
13816
|
+
"full_needs_assessment",
|
|
13817
|
+
"full_stalking_assessment",
|
|
13818
|
+
"full_tra",
|
|
13819
|
+
"full_trauma_and_coping_screen",
|
|
13820
|
+
"health_status",
|
|
13821
|
+
"identifying",
|
|
13822
|
+
"immigration_applications",
|
|
13823
|
+
"immigration_status",
|
|
13824
|
+
"instruments",
|
|
13825
|
+
"names",
|
|
13826
|
+
"network_membership",
|
|
13827
|
+
"object_identity_attributes",
|
|
13828
|
+
"offenders.risk",
|
|
13829
|
+
"others.risk",
|
|
13830
|
+
"persona_links",
|
|
13831
|
+
"phone_identifiers",
|
|
13832
|
+
"plans_goals",
|
|
13833
|
+
"priorities_safety",
|
|
13834
|
+
"relationships_household",
|
|
13835
|
+
"screen_indicators",
|
|
13836
|
+
"service_history",
|
|
13837
|
+
"session_summary",
|
|
13838
|
+
"summary_ae_intake",
|
|
13839
|
+
"summary_behavioral_health_intake",
|
|
13840
|
+
"summary_danger_assessment",
|
|
13841
|
+
"summary_findings",
|
|
13842
|
+
"summary_hope_scale",
|
|
13843
|
+
"summary_ida",
|
|
13844
|
+
"summary_initial_screen",
|
|
13845
|
+
"summary_injury_and_strangulation",
|
|
13846
|
+
"summary_lap",
|
|
13847
|
+
"summary_mental_health_screen",
|
|
13848
|
+
"summary_needs_assessment",
|
|
13849
|
+
"summary_stalking_assessment",
|
|
13850
|
+
"summary_tra",
|
|
13851
|
+
"summary_trauma_and_coping_screen",
|
|
13852
|
+
"system",
|
|
13853
|
+
"system_involvement",
|
|
13854
|
+
"victimization"
|
|
13855
|
+
]
|
|
13856
|
+
};
|
|
13857
|
+
|
|
13858
|
+
// src/sharingCeiling/starter.ts
|
|
13859
|
+
var SHARING_CEILING_SCOPE_VERSION = 4;
|
|
13860
|
+
function freezeLists(lists) {
|
|
13861
|
+
const out = {};
|
|
13862
|
+
for (const [purpose, codes] of Object.entries(lists)) out[purpose] = Object.freeze([...codes]);
|
|
13863
|
+
return Object.freeze(out);
|
|
13864
|
+
}
|
|
13865
|
+
var HTI_SHARE_PLATFORM_STARTER = Object.freeze({
|
|
13866
|
+
scopeVersion: SHARING_CEILING_SCOPE_VERSION,
|
|
13867
|
+
scopeByPurpose: freezeLists(SHARING_PLATFORM_STARTER_DATA.scopeByPurpose),
|
|
13868
|
+
counterpartyOverrides: Object.freeze(
|
|
13869
|
+
Object.fromEntries(
|
|
13870
|
+
Object.entries(SHARING_PLATFORM_STARTER_DATA.counterpartyOverrides).map(([cp, lists]) => [
|
|
13871
|
+
cp,
|
|
13872
|
+
freezeLists(lists)
|
|
13873
|
+
])
|
|
13874
|
+
)
|
|
13875
|
+
)
|
|
13876
|
+
});
|
|
13877
|
+
var HTI_SHARE_PLATFORM_PURPOSE_ENABLED = Object.freeze({
|
|
13878
|
+
...SHARING_PLATFORM_STARTER_DATA.purposeEnabled
|
|
13879
|
+
});
|
|
13880
|
+
var INFORMATION_SCOPE_FIELD_HOME_ROWS = new Set(
|
|
13881
|
+
SHARING_PLATFORM_STARTER_DATA.fieldHomeRows
|
|
13882
|
+
);
|
|
13883
|
+
var HTI_SHARE_PLATFORM_STARTER_SOURCE = SHARING_PLATFORM_STARTER_SOURCE;
|
|
13884
|
+
|
|
13885
|
+
// src/sharingCeiling/chain.ts
|
|
13886
|
+
var SHARING_CEILING_DEFAULT_ROW_KEY = "__default__";
|
|
13887
|
+
var SHARING_CEILING_EXTERNAL_ROW_KEY = "__external__";
|
|
13888
|
+
var own2 = (record, key) => record !== null && typeof record === "object" && Object.prototype.hasOwnProperty.call(record, key) ? record[key] : void 0;
|
|
13889
|
+
var isStringList = (v) => Array.isArray(v) && v.every((c) => typeof c === "string");
|
|
13890
|
+
function sharingCeilingCellList(cell) {
|
|
13891
|
+
if (cell.scopeVersion === SHARING_CEILING_SCOPE_VERSION && isStringList(cell.informationScope)) {
|
|
13892
|
+
return [...cell.informationScope];
|
|
13893
|
+
}
|
|
13894
|
+
return [];
|
|
13895
|
+
}
|
|
13896
|
+
var sameSet = (a, b) => {
|
|
13897
|
+
const sa = new Set(a);
|
|
13898
|
+
const sb = new Set(b);
|
|
13899
|
+
return sa.size === sb.size && [...sa].every((c) => sb.has(c));
|
|
13900
|
+
};
|
|
13901
|
+
function sharingScopeEditsFromCells(cells) {
|
|
13902
|
+
const byRow = /* @__PURE__ */ new Map();
|
|
13903
|
+
if (cells === null || cells === void 0 || typeof cells[Symbol.iterator] !== "function") {
|
|
13904
|
+
return {};
|
|
13905
|
+
}
|
|
13906
|
+
for (const cell of cells) {
|
|
13907
|
+
if (cell === null || typeof cell !== "object") continue;
|
|
13908
|
+
const { rowKey, purpose } = cell;
|
|
13909
|
+
if (typeof rowKey !== "string" || rowKey === "" || typeof purpose !== "string" || purpose === "") continue;
|
|
13910
|
+
const list = sharingCeilingCellList(cell);
|
|
13911
|
+
const row = byRow.get(rowKey) ?? /* @__PURE__ */ new Map();
|
|
13912
|
+
const prior = row.get(purpose);
|
|
13913
|
+
row.set(purpose, prior === void 0 || sameSet(prior, list) ? list : []);
|
|
13914
|
+
byRow.set(rowKey, row);
|
|
13915
|
+
}
|
|
13916
|
+
return Object.fromEntries([...byRow].map(([k, row]) => [k, Object.fromEntries(row)]));
|
|
13917
|
+
}
|
|
13918
|
+
function rungList(value) {
|
|
13919
|
+
if (value === void 0 || value === null) return void 0;
|
|
13920
|
+
return isStringList(value) ? [...value] : [];
|
|
13921
|
+
}
|
|
13922
|
+
function isSharingPurposeDisabled(purpose, purposeOverrides, purposeEnabled) {
|
|
13923
|
+
const override = own2(purposeOverrides, purpose);
|
|
13924
|
+
if (override === false) return true;
|
|
13925
|
+
const callerRow = own2(purposeEnabled, purpose);
|
|
13926
|
+
const enabled = typeof callerRow === "boolean" ? callerRow : own2(HTI_SHARE_PLATFORM_PURPOSE_ENABLED, purpose);
|
|
13927
|
+
return enabled === false && override !== true;
|
|
13928
|
+
}
|
|
13929
|
+
function sharingCeilingRowKey(recipient) {
|
|
13930
|
+
if (recipient.external === true) return SHARING_CEILING_EXTERNAL_ROW_KEY;
|
|
13931
|
+
const id = recipient.id;
|
|
13932
|
+
if (typeof id !== "string" || id === "") {
|
|
13933
|
+
throw new TypeError("sharing ceiling: an on-platform recipient needs a partner id");
|
|
13934
|
+
}
|
|
13935
|
+
if (id === SHARING_CEILING_DEFAULT_ROW_KEY || id === SHARING_CEILING_EXTERNAL_ROW_KEY) {
|
|
13936
|
+
throw new RangeError(`sharing ceiling: "${id}" is a reserved row key, not a partner id`);
|
|
13937
|
+
}
|
|
13938
|
+
return id;
|
|
13939
|
+
}
|
|
13940
|
+
function effectiveCeiling(rowKey, purpose, inputs) {
|
|
13941
|
+
if (typeof rowKey !== "string" || rowKey === "") {
|
|
13942
|
+
throw new TypeError("sharing ceiling: rowKey must be a partner id or __external__");
|
|
13943
|
+
}
|
|
13944
|
+
if (rowKey === SHARING_CEILING_DEFAULT_ROW_KEY) {
|
|
13945
|
+
throw new RangeError("sharing ceiling: __default__ is the account default, not a recipient row key");
|
|
13946
|
+
}
|
|
13947
|
+
if (typeof purpose !== "string" || purpose === "") {
|
|
13948
|
+
throw new TypeError("sharing ceiling: purpose must be a share purpose code");
|
|
13949
|
+
}
|
|
13950
|
+
const starter = inputs.starter ?? HTI_SHARE_PLATFORM_STARTER;
|
|
13951
|
+
if (isSharingPurposeDisabled(purpose, inputs.purposeOverrides, inputs.purposeEnabled)) {
|
|
13952
|
+
return { allowed: [], rung: "purpose_disabled", disabled: true };
|
|
13953
|
+
}
|
|
13954
|
+
const edits = inputs.edits;
|
|
13955
|
+
const rungs = [
|
|
13956
|
+
["partner_rule", own2(own2(edits, rowKey), purpose)],
|
|
13957
|
+
["seeded_partner_rule", own2(own2(starter.counterpartyOverrides, rowKey), purpose)],
|
|
13958
|
+
["account_default", own2(own2(edits, SHARING_CEILING_DEFAULT_ROW_KEY), purpose)],
|
|
13959
|
+
["platform_default", own2(starter.scopeByPurpose, purpose)]
|
|
13960
|
+
];
|
|
13961
|
+
for (const [rung, value] of rungs) {
|
|
13962
|
+
const allowed = rungList(value);
|
|
13963
|
+
if (allowed !== void 0) return { allowed, rung, disabled: false };
|
|
13964
|
+
}
|
|
13965
|
+
return { allowed: [], rung: "none", disabled: false };
|
|
13966
|
+
}
|
|
13967
|
+
|
|
13968
|
+
// src/sharingCeiling/coverage.ts
|
|
13969
|
+
var factsCache = /* @__PURE__ */ new WeakMap();
|
|
13970
|
+
function memoize(fn) {
|
|
13971
|
+
const memo = /* @__PURE__ */ new Map();
|
|
13972
|
+
return (code) => {
|
|
13973
|
+
if (memo.has(code)) return memo.get(code);
|
|
13974
|
+
const out = fn(code);
|
|
13975
|
+
memo.set(code, out);
|
|
13976
|
+
return out;
|
|
13977
|
+
};
|
|
13978
|
+
}
|
|
13979
|
+
function treeFacts(scope) {
|
|
13980
|
+
const hit = factsCache.get(scope);
|
|
13981
|
+
if (hit) return hit;
|
|
13982
|
+
const systemPath = scope.ancestorsOf(INFORMATION_SCOPE_SYSTEM_INFO);
|
|
13983
|
+
const systemRoot = systemPath.length > 0 ? systemPath[systemPath.length - 1] : void 0;
|
|
13984
|
+
const isLive = memoize(
|
|
13985
|
+
(code) => scope.row(code) !== void 0 && scope.ancestorsOf(code).every((c) => scope.row(c)?.status !== "retired")
|
|
13986
|
+
);
|
|
13987
|
+
const isSystem = memoize(
|
|
13988
|
+
(code) => systemRoot !== void 0 && scope.ancestorsOf(code).includes(systemRoot)
|
|
13989
|
+
);
|
|
13990
|
+
const underFloor = memoize(
|
|
13991
|
+
(code) => scope.ancestorsOf(code).some((c) => scope.row(c)?.platformFloor === true)
|
|
13992
|
+
);
|
|
13993
|
+
const isCoverageRow = memoize((code) => isLive(code) && !isSystem(code) && !underFloor(code));
|
|
13994
|
+
const coverageChildren = memoize(
|
|
13995
|
+
(code) => Object.freeze(scope.childrenOf(code).filter(isCoverageRow))
|
|
13996
|
+
);
|
|
13997
|
+
const hasOwnContent = memoize((code) => {
|
|
13998
|
+
const row = scope.row(code);
|
|
13999
|
+
if (row === void 0) return false;
|
|
14000
|
+
const homed = INFORMATION_SCOPE_FIELD_HOME_ROWS.has(code) || row.kindRow !== void 0 && INFORMATION_SCOPE_FIELD_HOME_ROWS.has(row.kindRow);
|
|
14001
|
+
if (!homed) return false;
|
|
14002
|
+
return !scope.childrenOf(code).some((c) => scope.row(c)?.rowType === "category_rest" && isLive(c));
|
|
14003
|
+
});
|
|
14004
|
+
const facts = {
|
|
14005
|
+
isLive,
|
|
14006
|
+
isSystem,
|
|
14007
|
+
underFloor,
|
|
14008
|
+
isCoverageRow,
|
|
14009
|
+
coverageChildren,
|
|
14010
|
+
hasOwnContent
|
|
14011
|
+
};
|
|
14012
|
+
factsCache.set(scope, facts);
|
|
14013
|
+
return facts;
|
|
14014
|
+
}
|
|
14015
|
+
function asCeilingSet(allowed) {
|
|
14016
|
+
if (allowed === null) return null;
|
|
14017
|
+
if (allowed instanceof Set) return allowed;
|
|
14018
|
+
if (Array.isArray(allowed)) {
|
|
14019
|
+
return new Set(allowed.filter((c) => typeof c === "string"));
|
|
14020
|
+
}
|
|
14021
|
+
return /* @__PURE__ */ new Set();
|
|
14022
|
+
}
|
|
14023
|
+
function isCeilingCoverageRow(scope, code) {
|
|
14024
|
+
return treeFacts(scope).isCoverageRow(code);
|
|
14025
|
+
}
|
|
14026
|
+
function hasOwnScopeContent(scope, code) {
|
|
14027
|
+
return treeFacts(scope).hasOwnContent(code);
|
|
14028
|
+
}
|
|
14029
|
+
function ceilingCoverage(scope, allowed) {
|
|
14030
|
+
const facts = treeFacts(scope);
|
|
14031
|
+
const set = asCeilingSet(allowed);
|
|
14032
|
+
const memo = /* @__PURE__ */ new Map();
|
|
14033
|
+
const within = (code) => {
|
|
14034
|
+
const hit = memo.get(code);
|
|
14035
|
+
if (hit !== void 0) return hit;
|
|
14036
|
+
let out;
|
|
14037
|
+
if (!facts.isLive(code)) out = false;
|
|
14038
|
+
else if (set === null) out = true;
|
|
14039
|
+
else if (scope.ancestorsOf(code).some((c) => set.has(c))) out = true;
|
|
14040
|
+
else if (facts.hasOwnContent(code)) out = false;
|
|
14041
|
+
else {
|
|
14042
|
+
const kids = facts.coverageChildren(code);
|
|
14043
|
+
out = kids.length > 0 && kids.every(within);
|
|
14044
|
+
}
|
|
14045
|
+
memo.set(code, out);
|
|
14046
|
+
return out;
|
|
14047
|
+
};
|
|
14048
|
+
return within;
|
|
14049
|
+
}
|
|
14050
|
+
function scopeRowWithinCeiling(scope, allowed, code) {
|
|
14051
|
+
return ceilingCoverage(scope, allowed)(code);
|
|
14052
|
+
}
|
|
14053
|
+
function rowsOverCeiling(scope, declared, allowed) {
|
|
14054
|
+
const facts = treeFacts(scope);
|
|
14055
|
+
const within = ceilingCoverage(scope, allowed);
|
|
14056
|
+
const out = [];
|
|
14057
|
+
for (const code of new Set(Array.isArray(declared) ? declared : [])) {
|
|
14058
|
+
if (code === INFORMATION_SCOPE_SYSTEM_INFO) continue;
|
|
14059
|
+
if (!facts.isLive(code)) {
|
|
14060
|
+
out.push(code);
|
|
14061
|
+
continue;
|
|
14062
|
+
}
|
|
14063
|
+
if (facts.isSystem(code) || facts.underFloor(code)) continue;
|
|
14064
|
+
if (!within(code)) out.push(code);
|
|
14065
|
+
}
|
|
14066
|
+
return out;
|
|
14067
|
+
}
|
|
14068
|
+
function walkCeiling(scope, allowed) {
|
|
14069
|
+
const facts = treeFacts(scope);
|
|
14070
|
+
if (asCeilingSet(allowed) === null) return { outside: [], expanded: [] };
|
|
14071
|
+
const within = ceilingCoverage(scope, allowed);
|
|
14072
|
+
const holdsMemo = /* @__PURE__ */ new Map();
|
|
14073
|
+
const holdsWithin = (code) => {
|
|
14074
|
+
const hit = holdsMemo.get(code);
|
|
14075
|
+
if (hit !== void 0) return hit;
|
|
14076
|
+
const out = scope.childrenOf(code).some((c) => facts.isCoverageRow(c) && within(c) || holdsWithin(c));
|
|
14077
|
+
holdsMemo.set(code, out);
|
|
14078
|
+
return out;
|
|
14079
|
+
};
|
|
14080
|
+
const outside = [];
|
|
14081
|
+
const expanded = [];
|
|
14082
|
+
const visit = (code) => {
|
|
14083
|
+
if (!facts.isLive(code) || within(code)) return;
|
|
14084
|
+
if (!holdsWithin(code)) {
|
|
14085
|
+
outside.push(code);
|
|
14086
|
+
return;
|
|
14087
|
+
}
|
|
14088
|
+
if (facts.hasOwnContent(code)) expanded.push(code);
|
|
14089
|
+
for (const child of scope.childrenOf(code)) visit(child);
|
|
14090
|
+
};
|
|
14091
|
+
for (const r of scope.rows) {
|
|
14092
|
+
if (r.parentScopeCode !== null && r.parentScopeCode !== "") continue;
|
|
14093
|
+
if (facts.isSystem(r.scopeCode)) continue;
|
|
14094
|
+
visit(r.scopeCode);
|
|
14095
|
+
}
|
|
14096
|
+
return { outside, expanded };
|
|
14097
|
+
}
|
|
14098
|
+
function rowsOutsideCeiling(scope, allowed) {
|
|
14099
|
+
return walkCeiling(scope, allowed).outside;
|
|
14100
|
+
}
|
|
14101
|
+
function rowsExpandedByCeiling(scope, allowed) {
|
|
14102
|
+
return walkCeiling(scope, allowed).expanded;
|
|
14103
|
+
}
|
|
14104
|
+
function withSystemInfo(codes) {
|
|
14105
|
+
return [.../* @__PURE__ */ new Set([INFORMATION_SCOPE_SYSTEM_INFO, ...codes])];
|
|
14106
|
+
}
|
|
14107
|
+
function subtractRow(scope, selection, code) {
|
|
14108
|
+
const path = scope.ancestorsOf(code);
|
|
14109
|
+
let sel = selection.filter((c) => !scope.ancestorsOf(c).includes(code));
|
|
14110
|
+
for (; ; ) {
|
|
14111
|
+
const coverAt = path.findIndex((c, i) => i > 0 && sel.includes(c));
|
|
14112
|
+
if (coverAt === -1) break;
|
|
14113
|
+
sel = sel.filter((c) => c !== path[coverAt]);
|
|
14114
|
+
for (let i = coverAt; i >= 1; i -= 1) {
|
|
14115
|
+
const parent = path[i];
|
|
14116
|
+
const onPath = path[i - 1];
|
|
14117
|
+
for (const child of scope.childrenOf(parent)) {
|
|
14118
|
+
if (child !== onPath && !sel.includes(child)) sel.push(child);
|
|
14119
|
+
}
|
|
14120
|
+
}
|
|
14121
|
+
}
|
|
14122
|
+
return sel;
|
|
14123
|
+
}
|
|
14124
|
+
function maskSelectionToCeiling(scope, selection, allowed) {
|
|
14125
|
+
const facts = treeFacts(scope);
|
|
14126
|
+
const { outside, expanded } = walkCeiling(scope, allowed);
|
|
14127
|
+
let sel = (Array.isArray(selection) ? selection : []).filter(
|
|
14128
|
+
(c) => typeof c === "string" && facts.isLive(c)
|
|
14129
|
+
);
|
|
14130
|
+
for (const code of expanded) {
|
|
14131
|
+
if (!scope.ancestorsOf(code).some((c) => sel.includes(c))) continue;
|
|
14132
|
+
sel = subtractRow(scope, sel, code);
|
|
14133
|
+
for (const child of scope.childrenOf(code)) if (!sel.includes(child)) sel.push(child);
|
|
14134
|
+
}
|
|
14135
|
+
for (const code of outside) sel = subtractRow(scope, sel, code);
|
|
14136
|
+
return withSystemInfo(sel.filter((c) => facts.isLive(c)));
|
|
14137
|
+
}
|
|
14138
|
+
|
|
13724
14139
|
// src/validation/cvc.ts
|
|
13725
14140
|
import { z } from "zod";
|
|
13726
14141
|
var CvcCodeSchema = z.string().regex(/^\d{3}(-\d{3}){6}$/);
|
|
@@ -63205,6 +63620,9 @@ export {
|
|
|
63205
63620
|
GoalStatusKeys,
|
|
63206
63621
|
GoalWithdrawalReasonKeys,
|
|
63207
63622
|
HEALTHCARE_ORG_TYPE_KEYS,
|
|
63623
|
+
HTI_SHARE_PLATFORM_PURPOSE_ENABLED,
|
|
63624
|
+
HTI_SHARE_PLATFORM_STARTER,
|
|
63625
|
+
HTI_SHARE_PLATFORM_STARTER_SOURCE,
|
|
63208
63626
|
HairColorKeys,
|
|
63209
63627
|
HasTattoosKeys,
|
|
63210
63628
|
HighestEducationLevelCompletedKeys,
|
|
@@ -63273,6 +63691,7 @@ export {
|
|
|
63273
63691
|
INCIDENT_PARTICIPATION_ROLE_LABELS,
|
|
63274
63692
|
INCIDENT_PARTICIPATION_ROLE_SUPERSEDED_BY,
|
|
63275
63693
|
INCIDENT_PARTICIPATION_ROLE_VALUES,
|
|
63694
|
+
INFORMATION_SCOPE_FIELD_HOME_ROWS,
|
|
63276
63695
|
INFORMATION_SCOPE_POLICY_VERSION_ROW_NOTE,
|
|
63277
63696
|
INFORMATION_SCOPE_READABLE_VERSIONS,
|
|
63278
63697
|
INFORMATION_SCOPE_SYSTEM_INFO,
|
|
@@ -63395,6 +63814,9 @@ export {
|
|
|
63395
63814
|
SHARE_VIEW,
|
|
63396
63815
|
SHARE_VIEW_LABELS,
|
|
63397
63816
|
SHARE_VIEW_VALUES,
|
|
63817
|
+
SHARING_CEILING_DEFAULT_ROW_KEY,
|
|
63818
|
+
SHARING_CEILING_EXTERNAL_ROW_KEY,
|
|
63819
|
+
SHARING_CEILING_SCOPE_VERSION,
|
|
63398
63820
|
SUBMISSION_STATES,
|
|
63399
63821
|
SUBMISSION_STATE_LABELS,
|
|
63400
63822
|
ServiceAudienceKeys,
|
|
@@ -63488,6 +63910,7 @@ export {
|
|
|
63488
63910
|
carCorrectionReason_v1_0_0_default as carCorrectionReasonSot,
|
|
63489
63911
|
cascadeExclusions,
|
|
63490
63912
|
caseShareState_v1_0_0_default as caseShareStateSot,
|
|
63913
|
+
ceilingCoverage,
|
|
63491
63914
|
checkInActivity_v1_0_0_default as checkInActivitySot,
|
|
63492
63915
|
checkInPhase_v1_1_0_default as checkInPhaseSot,
|
|
63493
63916
|
childBehavioralConcerns_v1_0_0_default as childBehavioralConcernsSot,
|
|
@@ -63530,6 +63953,7 @@ export {
|
|
|
63530
63953
|
determinationLevel_v1_0_0_default as determinationLevelSot,
|
|
63531
63954
|
disabilitySubtype_v1_0_0_default as disabilitySubtypeSot,
|
|
63532
63955
|
discretionLevel_v1_0_0_default as discretionLevelSot,
|
|
63956
|
+
effectiveCeiling,
|
|
63533
63957
|
emailSchema,
|
|
63534
63958
|
emergencyContactCallReason_v1_0_0_default as emergencyContactCallReasonSot,
|
|
63535
63959
|
emergencyContactPermissions_v1_0_0_default as emergencyContactPermissionsSot,
|
|
@@ -63569,6 +63993,7 @@ export {
|
|
|
63569
63993
|
goalWithdrawalReason_v1_0_0_default as goalWithdrawalReasonSot,
|
|
63570
63994
|
guidanceSchema,
|
|
63571
63995
|
hairColor_v1_0_0_default as hairColorSot,
|
|
63996
|
+
hasOwnScopeContent,
|
|
63572
63997
|
hasTattoos_v1_0_0_default as hasTattoosSot,
|
|
63573
63998
|
highestEducationLevelCompleted_v1_1_0_default as highestEducationLevelCompletedSot,
|
|
63574
63999
|
hivStatus_v1_0_0_default as hivStatusSot,
|
|
@@ -63592,6 +64017,7 @@ export {
|
|
|
63592
64017
|
investigativeRequestType_v1_0_0_default as investigativeRequestTypeSot,
|
|
63593
64018
|
isAgencyTypeKey,
|
|
63594
64019
|
isCanonEvaluableFunction,
|
|
64020
|
+
isCeilingCoverageRow,
|
|
63595
64021
|
isDeprecatedCoreIndicator,
|
|
63596
64022
|
isDeprecatedIncidentParticipationRole,
|
|
63597
64023
|
isHealthcareOrgType,
|
|
@@ -63608,6 +64034,7 @@ export {
|
|
|
63608
64034
|
isScopeInstrumentRow,
|
|
63609
64035
|
isScopeRestRow,
|
|
63610
64036
|
isSelectableScopeRow,
|
|
64037
|
+
isSharingPurposeDisabled,
|
|
63611
64038
|
isStructuredNameType,
|
|
63612
64039
|
isTransgenderGenderIdentity,
|
|
63613
64040
|
isVictimServingOrgType,
|
|
@@ -63621,6 +64048,7 @@ export {
|
|
|
63621
64048
|
livingSituation_v1_0_0_default as livingSituationSot,
|
|
63622
64049
|
locationType_v1_0_0_default as locationTypeSot,
|
|
63623
64050
|
maritalStatusLegal_v1_0_0_default as maritalStatusLegalSot,
|
|
64051
|
+
maskSelectionToCeiling,
|
|
63624
64052
|
mentalHealthStatus_v1_0_0_default as mentalHealthStatusSot,
|
|
63625
64053
|
messageReportReason_v1_0_0_default as messageReportReasonSot,
|
|
63626
64054
|
midStayEventType_v1_0_0_default as midStayEventTypeSot,
|
|
@@ -63700,8 +64128,12 @@ export {
|
|
|
63700
64128
|
roiStatus_v1_0_0_default as roiStatusSot,
|
|
63701
64129
|
roleContext_v1_0_0_default as roleContextSot,
|
|
63702
64130
|
romanticRelationshipChangeType_v1_0_0_default as romanticRelationshipChangeTypeSot,
|
|
64131
|
+
rowsExpandedByCeiling,
|
|
64132
|
+
rowsOutsideCeiling,
|
|
64133
|
+
rowsOverCeiling,
|
|
63703
64134
|
rsvpResponse_v1_0_0_default as rsvpResponseSot,
|
|
63704
64135
|
scopeMigrationsFromSot,
|
|
64136
|
+
scopeRowWithinCeiling,
|
|
63705
64137
|
scopeRowsFromSot,
|
|
63706
64138
|
scoringConditionSchema,
|
|
63707
64139
|
scoringRecommendationSchema,
|
|
@@ -63729,6 +64161,9 @@ export {
|
|
|
63729
64161
|
sexProviderSubrole_v1_0_0_default as sexProviderSubroleSot,
|
|
63730
64162
|
sharePurpose_v1_0_0_default as sharePurposeSot,
|
|
63731
64163
|
shareResponseReason_v1_0_0_default as shareResponseReasonSot,
|
|
64164
|
+
sharingCeilingCellList,
|
|
64165
|
+
sharingCeilingRowKey,
|
|
64166
|
+
sharingScopeEditsFromCells,
|
|
63732
64167
|
signatureMethod_v1_0_0_default as signatureMethodSot,
|
|
63733
64168
|
signatureType_v1_0_0_default as signatureTypeSot,
|
|
63734
64169
|
smtBodyLocation_v1_0_0_default as smtBodyLocationSot,
|