@htilabs/platform-common-models 0.12.2 → 0.12.3
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/cvcs/index.cjs +21 -4
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +22 -4
- package/dist/cvcs/index.d.ts +22 -4
- package/dist/cvcs/index.js +21 -4
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +3 -2
- package/dist/enums/index.d.ts +3 -2
- package/dist/enums/index.js +1 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/index.cjs +77 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +72 -11
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +41 -7
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +105 -1
- package/dist/schemas/index.d.ts +105 -1
- package/dist/schemas/index.js +38 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/{cvc-Cp4uWnAa.d.cts → team-C4LJ5Tex.d.cts} +36 -1
- package/dist/{cvc-Cp4uWnAa.d.ts → team-C4LJ5Tex.d.ts} +36 -1
- package/dist/validation/index.cjs +155 -0
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +1 -1
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.js +153 -0
- package/dist/validation/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -0
- package/src/__tests__/core-information-scope-invariant.test.ts +125 -2
- package/src/__tests__/cvc-sot-snapshot.test.ts +9 -0
- package/src/__tests__/cvc-structural.test.ts +3 -0
- package/src/__tests__/team-directory-fields.test.ts +252 -0
- package/src/cvcs/coreInformationScope.v1.0.0.json +21 -4
- package/src/generated/cvc-enums.ts +3 -2
- package/src/index.ts +7 -0
- package/src/schemas/index.ts +8 -0
- package/src/schemas/team.ts +118 -0
- package/src/validation/index.ts +1 -0
- package/src/validation/team.ts +48 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as ACCOMMODATION_LABELS, a as ACCOMMODATION_OPTIONS, b as AGE_BIN_REPORTING, c as AGE_BIN_REPORTING_IS_MINOR, d as AGE_BIN_REPORTING_LABELS, e as APPARENT_AGE, f as APPARENT_AGE_LABELS, g as APP_SCOPE, h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, B as BIRTH_LOCATION, l as BIRTH_LOCATION_LABELS, m as BIRTH_LOCATION_VALUES, n as BirthLocationValue, C as CALLER_IS_VICTIM_ROLES, o as CVC100Value, p as CVC115Value, q as CVC120Value, r as CVC121Value, s as CVC122Value, t as CVC126Category, u as CVC126Option, v as CVC126Value, w as CVC136Category, x as CVC136CoreIndicator, y as CVC136Option, z as CVC136Value, D as CVC145Category, E as CVC145Option, F as CVC145Value, G as CVC147Value, H as CVC148Value, I as CVC150Value, J as CVC151Value, K as CVC152Value, L as CVC153Value, M as CVC156Value, N as CVC157Value, O as CVC15Value, P as CVC16Value, Q as CVC171Category, R as CVC171Option, S as CVC171Value, T as CVC179HierarchicalCategory, U as CVC179HierarchicalValue, V as CVC179Value, W as CVC17Value, X as CVC180Value, Y as CVC181Value, Z as CVC196Value, _ as CVC1Value, $ as CVC67Value, a0 as CVC72Value, a1 as CVC76Value, a2 as CVC93Value, a3 as CVC95Value, a4 as CVC96Value, a5 as CVC97Value, a6 as CVC98Value, a7 as CVC99Value, a8 as CVC_100_LABELS, a9 as CVC_100_LIVES_RURAL, aa as CVC_100_VALUES, ab as CVC_115_LABELS, ac as CVC_115_SERVICE_PLANNING, ad as CVC_115_VALUES, ae as CVC_120_LABELS, af as CVC_120_MILITARY_BRANCH, ag as CVC_120_VALUES, ah as CVC_121_LABELS, ai as CVC_121_MILITARY_STATUS, aj as CVC_121_VALUES, ak as CVC_122_LABELS, al as CVC_122_PRIMARY_LANGUAGE, am as CVC_122_VALUES, an as CVC_126_CATEGORY, ao as CVC_126_CATEGORY_LABELS, ap as CVC_126_LABELS, aq as CVC_126_OPTIONS, ar as CVC_126_PERSON_RELATIONSHIP, as as CVC_126_PROTECTED_CATEGORIES, at as CVC_126_TYPE_TO_CATEGORY, au as CVC_126_VALUES, av as CVC_136_ALERT_INDICATOR, aw as CVC_136_CATEGORY_LABELS, ax as CVC_136_CORE_INDICATOR_LABELS, ay as CVC_136_CORE_INDICATOR_VALUES, az as CVC_136_INDICATOR_CATEGORY, aA as CVC_136_LABELS, aB as CVC_136_OPTIONS, aC as CVC_136_TYPE_TO_CATEGORY, aD as CVC_136_VALUES, aE as CVC_145_CATEGORY, aF as CVC_145_CATEGORY_LABELS, aG as CVC_145_CATEGORY_ORDER, aH as CVC_145_LABELS, aI as CVC_145_OPTIONS, aJ as CVC_145_RELATIONSHIP_DYNAMICS, aK as CVC_145_SELECTABLE_OPTIONS, aL as CVC_145_TYPE_TO_CATEGORY, aM as CVC_145_VALUES, aN as CVC_147_LABELS, aO as CVC_147_PRONOUNS, aP as CVC_147_VALUES, aQ as CVC_148_LABELS, aR as CVC_148_TRIBES, aS as CVC_148_VALUES, aT as CVC_150_EYE_COLOR, aU as CVC_150_LABELS, aV as CVC_150_VALUES, aW as CVC_151_HAIR_COLOR, aX as CVC_151_LABELS, aY as CVC_151_VALUES, aZ as CVC_152_HAS_TATTOOS, a_ as CVC_152_LABELS, a$ as CVC_152_VALUES, b0 as CVC_153_LABELS, b1 as CVC_153_SMT_TYPE, b2 as CVC_153_VALUES, b3 as CVC_156_LABELS, b4 as CVC_156_MARITAL_STATUS, b5 as CVC_156_VALUES, b6 as CVC_157_LABELS, b7 as CVC_157_RELATIONSHIP_STATUS, b8 as CVC_157_VALUES, b9 as CVC_15_CORE_SEX, ba as CVC_15_LABELS, bb as CVC_15_SELECTABLE_VALUES, bc as CVC_16_CORE_ORIENTATION, bd as CVC_16_LABELS, be as CVC_16_LGBTQ_VALUES, bf as CVC_171_CATEGORY, bg as CVC_171_CATEGORY_LABELS, bh as CVC_171_CHILD_TO_PARENT, bi as CVC_171_INCOME_BENEFITS, bj as CVC_171_INCOME_SOURCES, bk as CVC_171_LABELS, bl as CVC_171_PARENT_CHILDREN, bm as CVC_171_SELECTABLE_OPTIONS, bn as CVC_171_VALUES, bo as CVC_171_VALUE_TO_CATEGORY, bp as CVC_179_CHILD_TO_PARENT, bq as CVC_179_EMPLOYMENT_STATUS, br as CVC_179_HIERARCHICAL_CATEGORY, bs as CVC_179_HIERARCHICAL_CATEGORY_LABELS, bt as CVC_179_HIERARCHICAL_CATEGORY_ORDER, bu as CVC_179_HIERARCHICAL_LABELS, bv as CVC_179_HIERARCHICAL_VALUES, bw as CVC_179_LABELS, bx as CVC_179_PARENT_CHILDREN, by as CVC_179_PRIMARY_CATEGORY, bz as CVC_179_SELECTABLE_OPTIONS, bA as CVC_179_VALUES, bB as CVC_179_VALUE_TO_CATEGORY, bC as CVC_17_CORE_GENDER_IDENTITY, bD as CVC_17_LABELS, bE as CVC_17_LEVEL_0_MISSINGNESS_OPTIONS, bF as CVC_17_LEVEL_1_OPTIONS, bG as CVC_17_LEVEL_2_TRANSGENDER_OPTIONS, bH as CVC_17_TRANSGENDER_VALUES, bI as CVC_180_EDUCATION_LEVEL, bJ as CVC_180_LABELS, bK as CVC_180_ORDINAL, bL as CVC_180_VALUES, bM as CVC_181_COUNTRIES, bN as CVC_181_LABELS, bO as CVC_196_CHILD_WELFARE_EPISODE_TYPE, bP as CVC_196_LABELS, bQ as CVC_196_VALUES, bR as CVC_1_LABELS, bS as CVC_1_NAME_TYPE, bT as CVC_1_STRUCTURED_NAME_TYPES, bU as CVC_1_UNSTRUCTURED_NAME_TYPES, bV as CVC_1_VALUES, bW as CVC_67_HMIS_SEX, bX as CVC_67_LABELS, bY as CVC_67_MISSINGNESS_VALUES, bZ as CVC_67_SELECTABLE_VALUES, b_ as CVC_72_HT_TYPE, b$ as CVC_72_LABELS, c0 as CVC_72_VALUES, c1 as CVC_76_LABELS, c2 as CVC_76_RACE_ETHNICITY, c3 as CVC_76_VALUES, c4 as CVC_93_CHILD_WELFARE_INVOLVEMENT, c5 as CVC_93_LABELS, c6 as CVC_93_VALUES, c7 as CVC_95_JUVENILE_JUSTICE_INVOLVEMENT, c8 as CVC_95_LABELS, c9 as CVC_95_VALUES, ca as CVC_96_HOMELESS_STATUS, cb as CVC_96_LABELS, cc as CVC_96_VALUES, cd as CVC_97_IMMIGRANT_REFUGEE, ce as CVC_97_LABELS, cf as CVC_97_VALUES, cg as CVC_98_LABELS, ch as CVC_98_US_VETERAN, ci as CVC_98_VALUES, cj as CVC_99_ENGLISH_PROFICIENCY, ck as CVC_99_LABELS, cl as CVC_99_VALUES, cm as DATA_QUALITY, cn as DATA_QUALITY_DESCRIPTIONS, co as DATA_QUALITY_LABELS, cp as DATA_QUALITY_VALUES, cq as DEFAULT_PARTICIPATION_ROLE_BY_CATEGORY, cr as DataQualityValue, cs as FORM_STATUS, ct as FORM_STATUS_LABELS, cu as FORM_TYPE, cv as FORM_TYPE_LABELS, cw as FUNCTION_STATUS, cx as FUNCTION_STATUS_LABELS, cy as FUNCTION_STATUS_VALUES, cz as FormStatusValue, cA as FormTypeValue, cB as FunctionStatusValue, cC as IC13Category, cD as IC13PriorityGroup, cE as IC13Value, cF as IC22Value, cG as IC23Value, cH as IC24Value, cI as IC25Value, cJ as IC49ReferralOutcomeValue, cK as IC49ReferralVerificationValue, cL as IC49Value, cM as IC4Value, cN as IC56ChannelValue, cO as IC56Value, cP as IC57Value, cQ as IC58ExternalCategory, cR as IC58Value, cS as IC59Value, cT as IC5Value, cU as IC_13_CATEGORIES, cV as IC_13_CATEGORY_ORDER, cW as IC_13_LABELS, cX as IC_13_PRIORITY_GROUPS, cY as IC_13_RELATIONSHIP_ABBREV, cZ as IC_13_RELATIONSHIP_TYPE, c_ as IC_13_REVERSE_CONTEXT_LABELS, c$ as IC_22_CORE_SEX, d0 as IC_22_LABELS, d1 as IC_23_CORE_GENDER_IDENTITY, d2 as IC_23_LABELS, d3 as IC_24_LABELS, d4 as IC_24_RACE, d5 as IC_25_ETHNICITY, d6 as IC_25_LABELS, d7 as IC_48_SERVICE_CATEGORIES, d8 as IC_49_DESCRIPTIONS, d9 as IC_49_LABELS, da as IC_49_REFERRAL_OUTCOME, db as IC_49_REFERRAL_OUTCOME_LABELS, dc as IC_49_REFERRAL_VERIFICATION, dd as IC_49_REFERRAL_VERIFICATION_LABELS, de as IC_49_SERVICE_MECHANISM, df as IC_4_AGE_TYPE, dg as IC_4_LABELS, dh as IC_56_DESCRIPTIONS, di as IC_56_LABELS, dj as IC_56_OPTIONS, dk as IC_56_PROVISIONAL_CHANNELS, dl as IC_56_SERVICE_DELIVERY_CHANNEL, dm as IC_57_LABELS, dn as IC_57_SERVICE_AUDIENCE, dp as IC_58_EXTERNAL_TIERED, dq as IC_58_LABELS, dr as IC_58_ORG_TYPE_GROUPS, ds as IC_58_PRIMARY_BRANCHES, dt as IC_58_REFERRAL_ENTITY, du as IC_59_LABELS, dv as IC_59_SERVICE_STATE, dw as IC_5_FULL_LABELS, dx as IC_5_LABELS, dy as IC_5_VICTIMIZATION, dz as INCIDENT_INVOLVEMENT_ROLE, dA as INCIDENT_INVOLVEMENT_ROLE_LABELS, dB as INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE, dC as INCIDENT_PARTICIPATION_ROLE, dD as INCIDENT_PARTICIPATION_ROLE_LABELS, dE as INCIDENT_PARTICIPATION_ROLE_VALUES, dF as INTERACTION_TYPES, dG as INTERACTION_TYPE_LABELS, dH as INVOLVEMENT_ROLE_TO_PERSON_TYPE, dI as IncidentInvolvementRoleValue, dJ as IncidentParticipationRoleValue, dK as InteractionTypeValue, dL as MINOR_ADULT_STATUS, dM as MINOR_ADULT_STATUS_LABELS, dN as MinorAdultStatusValue, dO as OrgTypeGroup, dP as PARTICIPATION_ROLE_CATEGORIES, dQ as PERMISSION_STATE, dR as PERMISSION_STATE_DISPLAY, dS as PERMISSION_STATE_LABELS, dT as PERMISSION_STATE_VALUES, dU as PERSON_DISPLAY_CATEGORY, dV as PERSON_DISPLAY_CATEGORY_LABELS, dW as PERSON_ROLES, dX as PERSON_TYPE, dY as PERSON_TYPE_VALUES, dZ as PLATFORM_TOOL, d_ as PLATFORM_TOOL_LABELS, d$ as PLATFORM_TOOL_VALUES, e0 as PermissionStateValue, e1 as PersonDisplayCategoryValue, e2 as PersonRoleValue, e3 as PersonTypeValue, e4 as PlatformToolValue, e5 as QUESTION_FORMAT, e6 as QUESTION_FORMAT_LABELS, e7 as QUICK_START_CONFIG, e8 as QUICK_START_LABELS, e9 as QUICK_START_TEMPLATES, ea as QuestionFormatValue, eb as QuickStartTemplateId, ec as RECORD_STATES, ed as RECORD_STATE_LABELS, ee as RELATIONSHIP_CONCERNS, ef as RELATIONSHIP_CONCERNS_LABELS, eg as RELATIONSHIP_CONCERNS_VALUES, eh as RELATIONSHIP_DYNAMICS, ei as RELATIONSHIP_DYNAMICS_LABELS, ej as RELATIONSHIP_DYNAMICS_VALUES, ek as ROLE_LEVEL, el as ROLE_LEVEL_LABELS, em as ROLE_LEVEL_VALUES, en as RecordStateValue, eo as ReferralBranch, ep as RelationshipConcernValue, eq as RelationshipDynamicValue, er as RoleLevelValue, es as SESSION_STATES, et as SESSION_STATE_LABELS, eu as SHARE_VIEW, ev as SHARE_VIEW_LABELS, ew as SHARE_VIEW_VALUES, ex as SUBMISSION_STATES, ey as SUBMISSION_STATE_LABELS, ez as ServiceCategory, eA as ServiceCategoryChild, eB as SessionStateValue, eC as ShareViewValue, eD as SubmissionStateValue, eE as THREAD_INVOLVEMENT_ROLES, eF as USER_STATUS, eG as USER_STATUS_LABELS, eH as UserStatusValue, eI as VALID_INTERACTION_TYPES, eJ as VALID_RECORD_STATES, eK as deriveAgeBinFromAge, eL as getDisplayCategoryForRole, eM as getPersonTypeForRole, eN as getRelationshipCategory, eO as isIC56Missingness, eP as isIC56ValidChannel, eQ as isLgbtqOrientation, eR as isProtectedRelationship, eS as isStructuredNameType, eT as isTransgenderGenderIdentity, eU as sortRelationshipsByPriority } from './platform-auth-Dv5fu0Fh.cjs';
|
|
2
2
|
export { IC48Catalog, IC48CatalogMeta, IC48Category, IC48CategoryCrosswalk, IC48CrisisServiceId, IC48DerivationServiceId, IC_48_BY_CODE, IC_48_BY_ID, IC_48_CATEGORIES, IC_48_CRISIS_SERVICES, IC_48_DERIVATION_SERVICES, IC_48_SERVICE_CATALOG, getIC48AncestorCategories, getIC48CategoryByCode, getIC48CategoryById, getIC48ChildCategories, getIC48Label, getIC48ParentCategory, getIC48SelectableCategories, getIC48TopicCategories, getIC48TopicForCategory } from './constants/index.cjs';
|
|
3
|
-
export { Address, Demographics, Email, PersonName, Phone, addressSchema, demographicsSchema, emailSchema, personNameSchema, phoneSchema } from './schemas/index.cjs';
|
|
3
|
+
export { Address, Demographics, Email, PersonName, Phone, TEAM_MODEL_NAME, TeamDirectoryFields, addTeamDirectoryFields, addressSchema, demographicsSchema, emailSchema, personNameSchema, phoneSchema, teamDirectorySchemaDefinition } from './schemas/index.cjs';
|
|
4
4
|
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from './cvcEntry-ctHTp2df.cjs';
|
|
5
5
|
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-qreOzXYS.cjs';
|
|
6
6
|
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';
|
|
7
7
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.cjs';
|
|
8
|
-
export { C as CvcCode, a as CvcCodeSchema, b as CvcDomain, c as CvcEntrySchema, d as CvcEnvelope, e as CvcEnvelopeSchema, f as CvcKey, g as CvcKeySchema, S as ServiceCategoryEntry, h as ServiceCategoryEntrySchema } from './
|
|
8
|
+
export { C as CvcCode, a as CvcCodeSchema, b as CvcDomain, c as CvcEntrySchema, d as CvcEnvelope, e as CvcEnvelopeSchema, f as CvcKey, g as CvcKeySchema, S as ServiceCategoryEntry, h as ServiceCategoryEntrySchema, T as TeamApp, i as TeamAppSchema, j as TeamDirectoryFieldsInput, k as TeamDirectoryFieldsSchema } from './team-C4LJ5Tex.cjs';
|
|
9
9
|
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';
|
|
10
10
|
import 'mongoose';
|
|
11
11
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as ACCOMMODATION_LABELS, a as ACCOMMODATION_OPTIONS, b as AGE_BIN_REPORTING, c as AGE_BIN_REPORTING_IS_MINOR, d as AGE_BIN_REPORTING_LABELS, e as APPARENT_AGE, f as APPARENT_AGE_LABELS, g as APP_SCOPE, h as AccommodationValue, i as AgeBinReportingValue, j as AppScopeValue, k as ApparentAgeValue, B as BIRTH_LOCATION, l as BIRTH_LOCATION_LABELS, m as BIRTH_LOCATION_VALUES, n as BirthLocationValue, C as CALLER_IS_VICTIM_ROLES, o as CVC100Value, p as CVC115Value, q as CVC120Value, r as CVC121Value, s as CVC122Value, t as CVC126Category, u as CVC126Option, v as CVC126Value, w as CVC136Category, x as CVC136CoreIndicator, y as CVC136Option, z as CVC136Value, D as CVC145Category, E as CVC145Option, F as CVC145Value, G as CVC147Value, H as CVC148Value, I as CVC150Value, J as CVC151Value, K as CVC152Value, L as CVC153Value, M as CVC156Value, N as CVC157Value, O as CVC15Value, P as CVC16Value, Q as CVC171Category, R as CVC171Option, S as CVC171Value, T as CVC179HierarchicalCategory, U as CVC179HierarchicalValue, V as CVC179Value, W as CVC17Value, X as CVC180Value, Y as CVC181Value, Z as CVC196Value, _ as CVC1Value, $ as CVC67Value, a0 as CVC72Value, a1 as CVC76Value, a2 as CVC93Value, a3 as CVC95Value, a4 as CVC96Value, a5 as CVC97Value, a6 as CVC98Value, a7 as CVC99Value, a8 as CVC_100_LABELS, a9 as CVC_100_LIVES_RURAL, aa as CVC_100_VALUES, ab as CVC_115_LABELS, ac as CVC_115_SERVICE_PLANNING, ad as CVC_115_VALUES, ae as CVC_120_LABELS, af as CVC_120_MILITARY_BRANCH, ag as CVC_120_VALUES, ah as CVC_121_LABELS, ai as CVC_121_MILITARY_STATUS, aj as CVC_121_VALUES, ak as CVC_122_LABELS, al as CVC_122_PRIMARY_LANGUAGE, am as CVC_122_VALUES, an as CVC_126_CATEGORY, ao as CVC_126_CATEGORY_LABELS, ap as CVC_126_LABELS, aq as CVC_126_OPTIONS, ar as CVC_126_PERSON_RELATIONSHIP, as as CVC_126_PROTECTED_CATEGORIES, at as CVC_126_TYPE_TO_CATEGORY, au as CVC_126_VALUES, av as CVC_136_ALERT_INDICATOR, aw as CVC_136_CATEGORY_LABELS, ax as CVC_136_CORE_INDICATOR_LABELS, ay as CVC_136_CORE_INDICATOR_VALUES, az as CVC_136_INDICATOR_CATEGORY, aA as CVC_136_LABELS, aB as CVC_136_OPTIONS, aC as CVC_136_TYPE_TO_CATEGORY, aD as CVC_136_VALUES, aE as CVC_145_CATEGORY, aF as CVC_145_CATEGORY_LABELS, aG as CVC_145_CATEGORY_ORDER, aH as CVC_145_LABELS, aI as CVC_145_OPTIONS, aJ as CVC_145_RELATIONSHIP_DYNAMICS, aK as CVC_145_SELECTABLE_OPTIONS, aL as CVC_145_TYPE_TO_CATEGORY, aM as CVC_145_VALUES, aN as CVC_147_LABELS, aO as CVC_147_PRONOUNS, aP as CVC_147_VALUES, aQ as CVC_148_LABELS, aR as CVC_148_TRIBES, aS as CVC_148_VALUES, aT as CVC_150_EYE_COLOR, aU as CVC_150_LABELS, aV as CVC_150_VALUES, aW as CVC_151_HAIR_COLOR, aX as CVC_151_LABELS, aY as CVC_151_VALUES, aZ as CVC_152_HAS_TATTOOS, a_ as CVC_152_LABELS, a$ as CVC_152_VALUES, b0 as CVC_153_LABELS, b1 as CVC_153_SMT_TYPE, b2 as CVC_153_VALUES, b3 as CVC_156_LABELS, b4 as CVC_156_MARITAL_STATUS, b5 as CVC_156_VALUES, b6 as CVC_157_LABELS, b7 as CVC_157_RELATIONSHIP_STATUS, b8 as CVC_157_VALUES, b9 as CVC_15_CORE_SEX, ba as CVC_15_LABELS, bb as CVC_15_SELECTABLE_VALUES, bc as CVC_16_CORE_ORIENTATION, bd as CVC_16_LABELS, be as CVC_16_LGBTQ_VALUES, bf as CVC_171_CATEGORY, bg as CVC_171_CATEGORY_LABELS, bh as CVC_171_CHILD_TO_PARENT, bi as CVC_171_INCOME_BENEFITS, bj as CVC_171_INCOME_SOURCES, bk as CVC_171_LABELS, bl as CVC_171_PARENT_CHILDREN, bm as CVC_171_SELECTABLE_OPTIONS, bn as CVC_171_VALUES, bo as CVC_171_VALUE_TO_CATEGORY, bp as CVC_179_CHILD_TO_PARENT, bq as CVC_179_EMPLOYMENT_STATUS, br as CVC_179_HIERARCHICAL_CATEGORY, bs as CVC_179_HIERARCHICAL_CATEGORY_LABELS, bt as CVC_179_HIERARCHICAL_CATEGORY_ORDER, bu as CVC_179_HIERARCHICAL_LABELS, bv as CVC_179_HIERARCHICAL_VALUES, bw as CVC_179_LABELS, bx as CVC_179_PARENT_CHILDREN, by as CVC_179_PRIMARY_CATEGORY, bz as CVC_179_SELECTABLE_OPTIONS, bA as CVC_179_VALUES, bB as CVC_179_VALUE_TO_CATEGORY, bC as CVC_17_CORE_GENDER_IDENTITY, bD as CVC_17_LABELS, bE as CVC_17_LEVEL_0_MISSINGNESS_OPTIONS, bF as CVC_17_LEVEL_1_OPTIONS, bG as CVC_17_LEVEL_2_TRANSGENDER_OPTIONS, bH as CVC_17_TRANSGENDER_VALUES, bI as CVC_180_EDUCATION_LEVEL, bJ as CVC_180_LABELS, bK as CVC_180_ORDINAL, bL as CVC_180_VALUES, bM as CVC_181_COUNTRIES, bN as CVC_181_LABELS, bO as CVC_196_CHILD_WELFARE_EPISODE_TYPE, bP as CVC_196_LABELS, bQ as CVC_196_VALUES, bR as CVC_1_LABELS, bS as CVC_1_NAME_TYPE, bT as CVC_1_STRUCTURED_NAME_TYPES, bU as CVC_1_UNSTRUCTURED_NAME_TYPES, bV as CVC_1_VALUES, bW as CVC_67_HMIS_SEX, bX as CVC_67_LABELS, bY as CVC_67_MISSINGNESS_VALUES, bZ as CVC_67_SELECTABLE_VALUES, b_ as CVC_72_HT_TYPE, b$ as CVC_72_LABELS, c0 as CVC_72_VALUES, c1 as CVC_76_LABELS, c2 as CVC_76_RACE_ETHNICITY, c3 as CVC_76_VALUES, c4 as CVC_93_CHILD_WELFARE_INVOLVEMENT, c5 as CVC_93_LABELS, c6 as CVC_93_VALUES, c7 as CVC_95_JUVENILE_JUSTICE_INVOLVEMENT, c8 as CVC_95_LABELS, c9 as CVC_95_VALUES, ca as CVC_96_HOMELESS_STATUS, cb as CVC_96_LABELS, cc as CVC_96_VALUES, cd as CVC_97_IMMIGRANT_REFUGEE, ce as CVC_97_LABELS, cf as CVC_97_VALUES, cg as CVC_98_LABELS, ch as CVC_98_US_VETERAN, ci as CVC_98_VALUES, cj as CVC_99_ENGLISH_PROFICIENCY, ck as CVC_99_LABELS, cl as CVC_99_VALUES, cm as DATA_QUALITY, cn as DATA_QUALITY_DESCRIPTIONS, co as DATA_QUALITY_LABELS, cp as DATA_QUALITY_VALUES, cq as DEFAULT_PARTICIPATION_ROLE_BY_CATEGORY, cr as DataQualityValue, cs as FORM_STATUS, ct as FORM_STATUS_LABELS, cu as FORM_TYPE, cv as FORM_TYPE_LABELS, cw as FUNCTION_STATUS, cx as FUNCTION_STATUS_LABELS, cy as FUNCTION_STATUS_VALUES, cz as FormStatusValue, cA as FormTypeValue, cB as FunctionStatusValue, cC as IC13Category, cD as IC13PriorityGroup, cE as IC13Value, cF as IC22Value, cG as IC23Value, cH as IC24Value, cI as IC25Value, cJ as IC49ReferralOutcomeValue, cK as IC49ReferralVerificationValue, cL as IC49Value, cM as IC4Value, cN as IC56ChannelValue, cO as IC56Value, cP as IC57Value, cQ as IC58ExternalCategory, cR as IC58Value, cS as IC59Value, cT as IC5Value, cU as IC_13_CATEGORIES, cV as IC_13_CATEGORY_ORDER, cW as IC_13_LABELS, cX as IC_13_PRIORITY_GROUPS, cY as IC_13_RELATIONSHIP_ABBREV, cZ as IC_13_RELATIONSHIP_TYPE, c_ as IC_13_REVERSE_CONTEXT_LABELS, c$ as IC_22_CORE_SEX, d0 as IC_22_LABELS, d1 as IC_23_CORE_GENDER_IDENTITY, d2 as IC_23_LABELS, d3 as IC_24_LABELS, d4 as IC_24_RACE, d5 as IC_25_ETHNICITY, d6 as IC_25_LABELS, d7 as IC_48_SERVICE_CATEGORIES, d8 as IC_49_DESCRIPTIONS, d9 as IC_49_LABELS, da as IC_49_REFERRAL_OUTCOME, db as IC_49_REFERRAL_OUTCOME_LABELS, dc as IC_49_REFERRAL_VERIFICATION, dd as IC_49_REFERRAL_VERIFICATION_LABELS, de as IC_49_SERVICE_MECHANISM, df as IC_4_AGE_TYPE, dg as IC_4_LABELS, dh as IC_56_DESCRIPTIONS, di as IC_56_LABELS, dj as IC_56_OPTIONS, dk as IC_56_PROVISIONAL_CHANNELS, dl as IC_56_SERVICE_DELIVERY_CHANNEL, dm as IC_57_LABELS, dn as IC_57_SERVICE_AUDIENCE, dp as IC_58_EXTERNAL_TIERED, dq as IC_58_LABELS, dr as IC_58_ORG_TYPE_GROUPS, ds as IC_58_PRIMARY_BRANCHES, dt as IC_58_REFERRAL_ENTITY, du as IC_59_LABELS, dv as IC_59_SERVICE_STATE, dw as IC_5_FULL_LABELS, dx as IC_5_LABELS, dy as IC_5_VICTIMIZATION, dz as INCIDENT_INVOLVEMENT_ROLE, dA as INCIDENT_INVOLVEMENT_ROLE_LABELS, dB as INCIDENT_INVOLVEMENT_ROLE_TO_PERSON_ROLE, dC as INCIDENT_PARTICIPATION_ROLE, dD as INCIDENT_PARTICIPATION_ROLE_LABELS, dE as INCIDENT_PARTICIPATION_ROLE_VALUES, dF as INTERACTION_TYPES, dG as INTERACTION_TYPE_LABELS, dH as INVOLVEMENT_ROLE_TO_PERSON_TYPE, dI as IncidentInvolvementRoleValue, dJ as IncidentParticipationRoleValue, dK as InteractionTypeValue, dL as MINOR_ADULT_STATUS, dM as MINOR_ADULT_STATUS_LABELS, dN as MinorAdultStatusValue, dO as OrgTypeGroup, dP as PARTICIPATION_ROLE_CATEGORIES, dQ as PERMISSION_STATE, dR as PERMISSION_STATE_DISPLAY, dS as PERMISSION_STATE_LABELS, dT as PERMISSION_STATE_VALUES, dU as PERSON_DISPLAY_CATEGORY, dV as PERSON_DISPLAY_CATEGORY_LABELS, dW as PERSON_ROLES, dX as PERSON_TYPE, dY as PERSON_TYPE_VALUES, dZ as PLATFORM_TOOL, d_ as PLATFORM_TOOL_LABELS, d$ as PLATFORM_TOOL_VALUES, e0 as PermissionStateValue, e1 as PersonDisplayCategoryValue, e2 as PersonRoleValue, e3 as PersonTypeValue, e4 as PlatformToolValue, e5 as QUESTION_FORMAT, e6 as QUESTION_FORMAT_LABELS, e7 as QUICK_START_CONFIG, e8 as QUICK_START_LABELS, e9 as QUICK_START_TEMPLATES, ea as QuestionFormatValue, eb as QuickStartTemplateId, ec as RECORD_STATES, ed as RECORD_STATE_LABELS, ee as RELATIONSHIP_CONCERNS, ef as RELATIONSHIP_CONCERNS_LABELS, eg as RELATIONSHIP_CONCERNS_VALUES, eh as RELATIONSHIP_DYNAMICS, ei as RELATIONSHIP_DYNAMICS_LABELS, ej as RELATIONSHIP_DYNAMICS_VALUES, ek as ROLE_LEVEL, el as ROLE_LEVEL_LABELS, em as ROLE_LEVEL_VALUES, en as RecordStateValue, eo as ReferralBranch, ep as RelationshipConcernValue, eq as RelationshipDynamicValue, er as RoleLevelValue, es as SESSION_STATES, et as SESSION_STATE_LABELS, eu as SHARE_VIEW, ev as SHARE_VIEW_LABELS, ew as SHARE_VIEW_VALUES, ex as SUBMISSION_STATES, ey as SUBMISSION_STATE_LABELS, ez as ServiceCategory, eA as ServiceCategoryChild, eB as SessionStateValue, eC as ShareViewValue, eD as SubmissionStateValue, eE as THREAD_INVOLVEMENT_ROLES, eF as USER_STATUS, eG as USER_STATUS_LABELS, eH as UserStatusValue, eI as VALID_INTERACTION_TYPES, eJ as VALID_RECORD_STATES, eK as deriveAgeBinFromAge, eL as getDisplayCategoryForRole, eM as getPersonTypeForRole, eN as getRelationshipCategory, eO as isIC56Missingness, eP as isIC56ValidChannel, eQ as isLgbtqOrientation, eR as isProtectedRelationship, eS as isStructuredNameType, eT as isTransgenderGenderIdentity, eU as sortRelationshipsByPriority } from './platform-auth-Dv5fu0Fh.js';
|
|
2
2
|
export { IC48Catalog, IC48CatalogMeta, IC48Category, IC48CategoryCrosswalk, IC48CrisisServiceId, IC48DerivationServiceId, IC_48_BY_CODE, IC_48_BY_ID, IC_48_CATEGORIES, IC_48_CRISIS_SERVICES, IC_48_DERIVATION_SERVICES, IC_48_SERVICE_CATALOG, getIC48AncestorCategories, getIC48CategoryByCode, getIC48CategoryById, getIC48ChildCategories, getIC48Label, getIC48ParentCategory, getIC48SelectableCategories, getIC48TopicCategories, getIC48TopicForCategory } from './constants/index.js';
|
|
3
|
-
export { Address, Demographics, Email, PersonName, Phone, addressSchema, demographicsSchema, emailSchema, personNameSchema, phoneSchema } from './schemas/index.js';
|
|
3
|
+
export { Address, Demographics, Email, PersonName, Phone, TEAM_MODEL_NAME, TeamDirectoryFields, addTeamDirectoryFields, addressSchema, demographicsSchema, emailSchema, personNameSchema, phoneSchema, teamDirectorySchemaDefinition } from './schemas/index.js';
|
|
4
4
|
export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from './cvcEntry-ctHTp2df.js';
|
|
5
5
|
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-4DiJrn7y.js';
|
|
6
6
|
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';
|
|
7
7
|
export { CvcRegistryService, CvcRegistryServiceOptions, EntryLoader, ICvcEntry, ICvcRegistry, RegistryLoader, RegistryScope, applyEntryOverrides, cascadeExclusions, cvcVersionsToRecord, resolveRegistryWithInheritance } from './services/index.js';
|
|
8
|
-
export { C as CvcCode, a as CvcCodeSchema, b as CvcDomain, c as CvcEntrySchema, d as CvcEnvelope, e as CvcEnvelopeSchema, f as CvcKey, g as CvcKeySchema, S as ServiceCategoryEntry, h as ServiceCategoryEntrySchema } from './
|
|
8
|
+
export { C as CvcCode, a as CvcCodeSchema, b as CvcDomain, c as CvcEntrySchema, d as CvcEnvelope, e as CvcEnvelopeSchema, f as CvcKey, g as CvcKeySchema, S as ServiceCategoryEntry, h as ServiceCategoryEntrySchema, T as TeamApp, i as TeamAppSchema, j as TeamDirectoryFieldsInput, k as TeamDirectoryFieldsSchema } from './team-C4LJ5Tex.js';
|
|
9
9
|
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';
|
|
10
10
|
import 'mongoose';
|
|
11
11
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -6715,8 +6715,36 @@ function buildPlatformRoleSchema() {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
var _platformRoleSchema = buildPlatformRoleSchema();
|
|
6717
6717
|
|
|
6718
|
-
// src/schemas/
|
|
6718
|
+
// src/schemas/team.ts
|
|
6719
6719
|
import { Schema as Schema8 } from "mongoose";
|
|
6720
|
+
var TEAM_MODEL_NAME = "Team";
|
|
6721
|
+
var teamDirectorySchemaDefinition = {
|
|
6722
|
+
/**
|
|
6723
|
+
* The platform apps this team works in, as {@link PLATFORM_TOOL} codes
|
|
6724
|
+
* (`"PAVE"`, `"THREAD"`, `"LEADS"`, ...). The referral preset only resolves
|
|
6725
|
+
* to a team whose `apps` includes `"PAVE"`.
|
|
6726
|
+
*/
|
|
6727
|
+
apps: {
|
|
6728
|
+
type: [String],
|
|
6729
|
+
enum: [...PLATFORM_TOOL_VALUES],
|
|
6730
|
+
default: void 0
|
|
6731
|
+
},
|
|
6732
|
+
/**
|
|
6733
|
+
* The teams this team refers to, in priority order. The resolver takes the
|
|
6734
|
+
* first active target that works in PAVE and is not the sending team itself.
|
|
6735
|
+
*/
|
|
6736
|
+
canReferTo: {
|
|
6737
|
+
type: [{ type: Schema8.Types.ObjectId, ref: TEAM_MODEL_NAME }],
|
|
6738
|
+
default: void 0
|
|
6739
|
+
}
|
|
6740
|
+
};
|
|
6741
|
+
function addTeamDirectoryFields(schema) {
|
|
6742
|
+
schema.add(teamDirectorySchemaDefinition);
|
|
6743
|
+
return schema;
|
|
6744
|
+
}
|
|
6745
|
+
|
|
6746
|
+
// src/schemas/cvcRegistry.ts
|
|
6747
|
+
import { Schema as Schema9 } from "mongoose";
|
|
6720
6748
|
var cvcRegistrySchemaDefinition = {
|
|
6721
6749
|
// Versioning — semantic version of this registry bundle
|
|
6722
6750
|
version: {
|
|
@@ -6736,7 +6764,7 @@ var cvcRegistrySchemaDefinition = {
|
|
|
6736
6764
|
default: null
|
|
6737
6765
|
},
|
|
6738
6766
|
agencyId: {
|
|
6739
|
-
type:
|
|
6767
|
+
type: Schema9.Types.ObjectId,
|
|
6740
6768
|
default: null
|
|
6741
6769
|
},
|
|
6742
6770
|
// Lifecycle
|
|
@@ -6778,7 +6806,7 @@ var cvcRegistrySchemaDefinition = {
|
|
|
6778
6806
|
// include / exclude lists from its base before applying its own overrides.
|
|
6779
6807
|
// Indexed below so a base-version bump can find every dependent registry.
|
|
6780
6808
|
basedOn: {
|
|
6781
|
-
type:
|
|
6809
|
+
type: Schema9.Types.ObjectId,
|
|
6782
6810
|
default: null
|
|
6783
6811
|
}
|
|
6784
6812
|
};
|
|
@@ -6787,7 +6815,7 @@ var cvcRegistrySchemaOptions = {
|
|
|
6787
6815
|
collection: "cvc_registries"
|
|
6788
6816
|
};
|
|
6789
6817
|
function buildCvcRegistrySchema() {
|
|
6790
|
-
const schema = new
|
|
6818
|
+
const schema = new Schema9(
|
|
6791
6819
|
cvcRegistrySchemaDefinition,
|
|
6792
6820
|
cvcRegistrySchemaOptions
|
|
6793
6821
|
);
|
|
@@ -6808,7 +6836,7 @@ function buildCvcRegistrySchema() {
|
|
|
6808
6836
|
var _cvcRegistrySchema = buildCvcRegistrySchema();
|
|
6809
6837
|
|
|
6810
6838
|
// src/schemas/cvcEntry.ts
|
|
6811
|
-
import { Schema as
|
|
6839
|
+
import { Schema as Schema10 } from "mongoose";
|
|
6812
6840
|
var CVC_CODE_PATTERN = /^\d{3}(-\d{3}){6}$/;
|
|
6813
6841
|
var CVC_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
6814
6842
|
var cvcEntrySchemaDefinition = {
|
|
@@ -6874,7 +6902,7 @@ var cvcEntrySchemaDefinition = {
|
|
|
6874
6902
|
// particular CVC family — e.g. `relevantMechanisms` on service_categories
|
|
6875
6903
|
// entries (a cross-CVC reference into service_mechanisms by key).
|
|
6876
6904
|
meta: {
|
|
6877
|
-
type:
|
|
6905
|
+
type: Schema10.Types.Mixed
|
|
6878
6906
|
}
|
|
6879
6907
|
};
|
|
6880
6908
|
var cvcEntrySchemaOptions = {
|
|
@@ -6885,7 +6913,7 @@ var cvcEntrySchemaOptions = {
|
|
|
6885
6913
|
minimize: false
|
|
6886
6914
|
};
|
|
6887
6915
|
function buildCvcEntrySchema() {
|
|
6888
|
-
const schema = new
|
|
6916
|
+
const schema = new Schema10(cvcEntrySchemaDefinition, cvcEntrySchemaOptions);
|
|
6889
6917
|
schema.index(
|
|
6890
6918
|
{ domain: 1, version: 1, code: 1 },
|
|
6891
6919
|
{ unique: true }
|
|
@@ -9915,6 +9943,7 @@ var CoreInformationScopeKeys = {
|
|
|
9915
9943
|
contact: "236-003-000-000-000-000-000",
|
|
9916
9944
|
contact_info: "236-003-001-000-000-000-000",
|
|
9917
9945
|
safe_locations: "236-003-002-000-000-000-000",
|
|
9946
|
+
priorities_safety: "236-003-003-000-000-000-000",
|
|
9918
9947
|
services: "236-004-000-000-000-000-000",
|
|
9919
9948
|
contact_history: "236-004-001-000-000-000-000",
|
|
9920
9949
|
service_history: "236-004-002-000-000-000-000",
|
|
@@ -11560,6 +11589,16 @@ var CvcEnvelopeSchema = z.object({
|
|
|
11560
11589
|
entries: z.array(CvcEntrySchema)
|
|
11561
11590
|
});
|
|
11562
11591
|
|
|
11592
|
+
// src/validation/team.ts
|
|
11593
|
+
import { z as z2 } from "zod";
|
|
11594
|
+
var ObjectIdHexSchema = z2.string().regex(/^[0-9a-fA-F]{24}$/, "must be a 24-character hex ObjectId");
|
|
11595
|
+
var hasNoDuplicates = (values) => new Set(values.map((v) => v.toLowerCase())).size === values.length;
|
|
11596
|
+
var TeamAppSchema = z2.enum(PLATFORM_TOOL_VALUES);
|
|
11597
|
+
var TeamDirectoryFieldsSchema = z2.object({
|
|
11598
|
+
apps: z2.array(TeamAppSchema).refine(hasNoDuplicates, "apps must not repeat an app").optional(),
|
|
11599
|
+
canReferTo: z2.array(ObjectIdHexSchema).refine(hasNoDuplicates, "canReferTo must not repeat a team").optional()
|
|
11600
|
+
});
|
|
11601
|
+
|
|
11563
11602
|
// src/cvcs/serviceCategories.v1.0.0.json
|
|
11564
11603
|
var serviceCategories_v1_0_0_default = {
|
|
11565
11604
|
domain: "service_categories",
|
|
@@ -37898,8 +37937,8 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
37898
37937
|
domain: "core_information_scope",
|
|
37899
37938
|
name: "Core Information Scope",
|
|
37900
37939
|
version: "1.0.0",
|
|
37901
|
-
_status: "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories /
|
|
37902
|
-
_source: "htilabstech/prototype
|
|
37940
|
+
_status: "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 55 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits \u2014 `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 55 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is PROVISIONAL and may be re-keyed by the Notion steward batch \u2014 pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.",
|
|
37941
|
+
_source: "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 285a9f1d (CVC-236 v2, restructured 2026-08-14, amended 2026-09-29; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope \u2014 codebook.csv @ 285a9f1d)",
|
|
37903
37942
|
levels: {
|
|
37904
37943
|
"0": "Unknown or Missing",
|
|
37905
37944
|
"1": "Category (policy grain, not selectable)",
|
|
@@ -38366,9 +38405,10 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
38366
38405
|
parentCode: null,
|
|
38367
38406
|
childCodes: [
|
|
38368
38407
|
"236-003-001-000-000-000-000",
|
|
38369
|
-
"236-003-002-000-000-000-000"
|
|
38408
|
+
"236-003-002-000-000-000-000",
|
|
38409
|
+
"236-003-003-000-000-000-000"
|
|
38370
38410
|
],
|
|
38371
|
-
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell).",
|
|
38411
|
+
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety \u2014 the immediate-needs triage answers, one disclosure decision.",
|
|
38372
38412
|
levelFloor: 3,
|
|
38373
38413
|
appRelevance: [
|
|
38374
38414
|
"PAVE",
|
|
@@ -38410,6 +38450,22 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
38410
38450
|
specialDataType: "survivor_confidential",
|
|
38411
38451
|
platformFloor: true
|
|
38412
38452
|
},
|
|
38453
|
+
{
|
|
38454
|
+
code: "236-003-003-000-000-000-000",
|
|
38455
|
+
key: "priorities_safety",
|
|
38456
|
+
title: "Priorities & Safety (immediate needs triage)",
|
|
38457
|
+
selectable: true,
|
|
38458
|
+
parentCode: "236-003-000-000-000-000-000",
|
|
38459
|
+
childCodes: [],
|
|
38460
|
+
definition: "Priorities & Safety (immediate needs triage). Category `contact`. NEW 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): the completed Immediate Priorities / Priorities & Safety triage, authorized as ONE disclosure decision \u2014 Q1 immediate danger + source of the danger + harm-doer nearby + safe place to go \xB7 Q2 health needs \xB7 Q3 interpreter \xB7 Q4 urgent basic needs \xB7 Q5 transportation (method / time / pickup location) \xB7 Q6 emergency shelter \xB7 Q7 dependents at risk \xB7 Q8 other. Instrument-grain unit on the initial_screen / lap precedent (ruling 1, 2026-08-13), homed under Contact & safety because the answers that had no home are safety facts; the service instances the step derives ride services/service_history on their own. Bidirectional Thread Signal \u2194 PAVE mirror on Q1 (GDR \xA7 6.9.7) \u2014 one unit, both apps. domain_map: priorities_safety \u2192 this unit (R3 EXECUTED later the same day, PRIORITIES-SAFETY-RECORD): CVC-159 domain priorities_safety (Level 1) + monolith emitter emitPrioritiesAnswerCAR (one CAR per answered question) + UDD row capture.priorities_safety; production persistence of the answers stays with Nate under RWT-NEW-priorities-safety-record-and-udd-2026-09-29. Minted in the Notion codebook the same day; codebook row re-synced to the record 2026-09-29.",
|
|
38461
|
+
levelFloor: 3,
|
|
38462
|
+
appRelevance: [
|
|
38463
|
+
"PAVE",
|
|
38464
|
+
"Thread"
|
|
38465
|
+
],
|
|
38466
|
+
shareableDefault: true,
|
|
38467
|
+
specialDataType: "survivor_confidential"
|
|
38468
|
+
},
|
|
38413
38469
|
{
|
|
38414
38470
|
code: "236-004-000-000-000-000-000",
|
|
38415
38471
|
key: "services",
|
|
@@ -55628,7 +55684,10 @@ export {
|
|
|
55628
55684
|
SuggestionSourceKeys,
|
|
55629
55685
|
SupportStrengthKeys,
|
|
55630
55686
|
SupportTopicKeys,
|
|
55687
|
+
TEAM_MODEL_NAME,
|
|
55631
55688
|
THREAD_INVOLVEMENT_ROLES,
|
|
55689
|
+
TeamAppSchema,
|
|
55690
|
+
TeamDirectoryFieldsSchema,
|
|
55632
55691
|
ThreadStatusKeys,
|
|
55633
55692
|
ThreadTypeKeys,
|
|
55634
55693
|
TimeScopeKeys,
|
|
@@ -55649,6 +55708,7 @@ export {
|
|
|
55649
55708
|
actionStepCompletionStatus_v1_0_0_default as actionStepCompletionStatusSot,
|
|
55650
55709
|
actionStepType_v1_0_0_default as actionStepTypeSot,
|
|
55651
55710
|
activityType_v1_0_0_default as activityTypeSot,
|
|
55711
|
+
addTeamDirectoryFields,
|
|
55652
55712
|
addressSchema,
|
|
55653
55713
|
adminRoles_v1_0_0_default as adminRolesSot,
|
|
55654
55714
|
administeringJurisdiction_v1_0_0_default as administeringJurisdictionSot,
|
|
@@ -55886,6 +55946,7 @@ export {
|
|
|
55886
55946
|
suggestionSource_v1_0_0_default as suggestionSourceSot,
|
|
55887
55947
|
supportStrength_v1_0_0_default as supportStrengthSot,
|
|
55888
55948
|
supportTopic_v1_0_0_default as supportTopicSot,
|
|
55949
|
+
teamDirectorySchemaDefinition,
|
|
55889
55950
|
threadStatus_v1_0_0_default as threadStatusSot,
|
|
55890
55951
|
threadType_v1_0_0_default as threadTypeSot,
|
|
55891
55952
|
timeScope_v1_0_0_default as timeScopeSot,
|