@htilabs/platform-common-models 0.8.14 → 0.8.16

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/index.cjs CHANGED
@@ -188,6 +188,7 @@ __export(src_exports, {
188
188
  CVC_99_ENGLISH_PROFICIENCY: () => CVC_99_ENGLISH_PROFICIENCY,
189
189
  CVC_99_LABELS: () => CVC_99_LABELS,
190
190
  CVC_99_VALUES: () => CVC_99_VALUES,
191
+ CaseShareStateKeys: () => CaseShareStateKeys,
191
192
  CheckInActivityKeys: () => CheckInActivityKeys,
192
193
  CheckInPhaseKeys: () => CheckInPhaseKeys,
193
194
  ChildBehavioralConcernsKeys: () => ChildBehavioralConcernsKeys,
@@ -203,6 +204,7 @@ __export(src_exports, {
203
204
  CoreIndicatorKeys: () => CoreIndicatorKeys,
204
205
  CoreReferralOutcomeKeys: () => CoreReferralOutcomeKeys,
205
206
  CreatedBySystemKeys: () => CreatedBySystemKeys,
207
+ CriminalOrgCategoryKeys: () => CriminalOrgCategoryKeys,
206
208
  CvcCodeSchema: () => CvcCodeSchema,
207
209
  CvcEntrySchema: () => CvcEntrySchema,
208
210
  CvcEnvelopeSchema: () => CvcEnvelopeSchema,
@@ -397,6 +399,7 @@ __export(src_exports, {
397
399
  RecencyBandKeys: () => RecencyBandKeys,
398
400
  ReferenceLinkTypeKeys: () => ReferenceLinkTypeKeys,
399
401
  ReferralEntityCategoryKeys: () => ReferralEntityCategoryKeys,
402
+ ReferralOriginKeys: () => ReferralOriginKeys,
400
403
  RelationshipConcernKeys: () => RelationshipConcernKeys,
401
404
  RelationshipDynamicsKeys: () => RelationshipDynamicsKeys,
402
405
  RelationshipStatusCurrentKeys: () => RelationshipStatusCurrentKeys,
@@ -488,6 +491,7 @@ __export(src_exports, {
488
491
  buildScoringRuleSchema: () => buildScoringRuleSchema,
489
492
  buildSectionSchema: () => buildSectionSchema,
490
493
  cascadeExclusions: () => cascadeExclusions,
494
+ caseShareStateSot: () => caseShareState_v1_0_0_default,
491
495
  checkInActivitySot: () => checkInActivity_v1_0_0_default,
492
496
  checkInPhaseSot: () => checkInPhase_v1_1_0_default,
493
497
  childBehavioralConcernsSot: () => childBehavioralConcerns_v1_0_0_default,
@@ -508,6 +512,7 @@ __export(src_exports, {
508
512
  coreReferralOutcomeSot: () => coreReferralOutcome_v1_0_0_default,
509
513
  createPlatformModels: () => createPlatformModels,
510
514
  createdBySystemSot: () => createdBySystem_v1_0_0_default,
515
+ criminalOrgCategorySot: () => criminalOrgCategory_v1_0_0_default,
511
516
  cvcEntryModel: () => cvcEntryModel_exports,
512
517
  cvcEntrySchemaDefinition: () => cvcEntrySchemaDefinition,
513
518
  cvcEntrySchemaOptions: () => cvcEntrySchemaOptions,
@@ -642,6 +647,7 @@ __export(src_exports, {
642
647
  recencyBandSot: () => recencyBand_v1_0_0_default,
643
648
  referenceLinkTypeSot: () => referenceLinkType_v1_0_0_default,
644
649
  referralEntityCategorySot: () => referralEntityCategory_v1_0_0_default,
650
+ referralOriginSot: () => referralOrigin_v1_0_0_default,
645
651
  relationshipConcernSot: () => relationshipConcern_v1_0_0_default,
646
652
  relationshipDynamicsSot: () => relationshipDynamics_v1_0_0_default,
647
653
  relationshipStatusCurrentSot: () => relationshipStatusCurrent_v1_0_0_default,
@@ -8375,6 +8381,18 @@ var SharePurposeKeys = {
8375
8381
  discretionary_share: "084-007-000-000-000-000-000",
8376
8382
  records_request: "084-008-000-000-000-000-000"
8377
8383
  };
8384
+ var ReferralOriginKeys = {
8385
+ internal: "909-001-000-000-000-000-000",
8386
+ external: "909-002-000-000-000-000-000"
8387
+ };
8388
+ var CaseShareStateKeys = {
8389
+ pending: "925-001-000-000-000-000-000",
8390
+ claimed: "925-002-000-000-000-000-000",
8391
+ accepted_awaiting_review: "925-003-000-000-000-000-000",
8392
+ accepted: "925-004-000-000-000-000-000",
8393
+ declined: "925-005-000-000-000-000-000",
8394
+ rejected: "925-006-000-000-000-000-000"
8395
+ };
8378
8396
  var FacilitatorEntityTypeKeys = {
8379
8397
  missingness_root: "165-000-000-000-000-000-000",
8380
8398
  unknown: "165-000-000-000-000-000-001",
@@ -11418,6 +11436,19 @@ var MinorAdultStatusKeys = {
11418
11436
  adult: "988-002-000-000-000-000-000",
11419
11437
  indeterminate: "988-003-000-000-000-000-000"
11420
11438
  };
11439
+ var CriminalOrgCategoryKeys = {
11440
+ missingness_root: "990-000-000-000-000-000-000",
11441
+ unknown: "990-000-000-000-000-000-001",
11442
+ anonymous: "990-000-000-000-000-000-002",
11443
+ data_not_collected: "990-000-000-000-000-000-003",
11444
+ street_gang: "990-001-000-000-000-000-000",
11445
+ prison_gang: "990-002-000-000-000-000-000",
11446
+ outlaw_motorcycle_gang: "990-003-000-000-000-000-000",
11447
+ tco_cartel: "990-004-000-000-000-000-000",
11448
+ white_supremacist_extremist: "990-005-000-000-000-000-000",
11449
+ organized_crime_family: "990-006-000-000-000-000-000",
11450
+ familial_or_independent_trafficking_network: "990-007-000-000-000-000-000"
11451
+ };
11421
11452
 
11422
11453
  // src/services/cvcRegistryService.ts
11423
11454
  function cvcVersionsToRecord(versions) {
@@ -19020,6 +19051,98 @@ var sharePurpose_v1_0_0_default = {
19020
19051
  ]
19021
19052
  };
19022
19053
 
19054
+ // src/cvcs/referralOrigin.v1.0.0.json
19055
+ var referralOrigin_v1_0_0_default = {
19056
+ domain: "referral_origin",
19057
+ name: "Core Referral Origin",
19058
+ version: "1.0.0",
19059
+ levels: { "1": "Origin" },
19060
+ entries: [
19061
+ {
19062
+ code: "909-001-000-000-000-000-000",
19063
+ key: "internal",
19064
+ title: "Internal",
19065
+ selectable: true,
19066
+ parentCode: null,
19067
+ childCodes: [],
19068
+ definition: "A referral whose sending and receiving parties sit within the same agency or account boundary, so completing it involves no disclosure of client information across an organizational boundary."
19069
+ },
19070
+ {
19071
+ code: "909-002-000-000-000-000-000",
19072
+ key: "external",
19073
+ title: "External",
19074
+ selectable: true,
19075
+ parentCode: null,
19076
+ childCodes: [],
19077
+ definition: "A referral whose receiving party is a different agency, making acceptance a cross-agency disclosure of client information. Where an implementation cannot positively determine the origin, it must treat the referral as external, so that the stronger disclosure controls apply by default rather than the weaker ones."
19078
+ }
19079
+ ]
19080
+ };
19081
+
19082
+ // src/cvcs/caseShareState.v1.0.0.json
19083
+ var caseShareState_v1_0_0_default = {
19084
+ domain: "case_share_state",
19085
+ name: "Core Case Share State",
19086
+ version: "1.0.0",
19087
+ levels: { "1": "State" },
19088
+ entries: [
19089
+ {
19090
+ code: "925-001-000-000-000-000-000",
19091
+ key: "pending",
19092
+ title: "Pending",
19093
+ selectable: true,
19094
+ parentCode: null,
19095
+ childCodes: [],
19096
+ definition: "The share has been delivered to the receiving party and is awaiting a claim. No one on the receiving side has taken responsibility for it yet, and no client content has been disclosed."
19097
+ },
19098
+ {
19099
+ code: "925-002-000-000-000-000-000",
19100
+ key: "claimed",
19101
+ title: "Claimed",
19102
+ selectable: true,
19103
+ parentCode: null,
19104
+ childCodes: [],
19105
+ definition: "A team on the receiving side has taken custody of the share but has not yet accepted it. Claiming assigns responsibility only; it discloses no client content, so a claimed share is still outstanding work rather than a completed exchange."
19106
+ },
19107
+ {
19108
+ code: "925-003-000-000-000-000-000",
19109
+ key: "accepted_awaiting_review",
19110
+ title: "Accepted \u2014 awaiting review",
19111
+ selectable: true,
19112
+ parentCode: null,
19113
+ childCodes: [],
19114
+ definition: "The share has been accepted and its content disclosed, but one or more delivered persons matched an existing record ambiguously and are held for a human decision before the receiving record is linked."
19115
+ },
19116
+ {
19117
+ code: "925-004-000-000-000-000-000",
19118
+ key: "accepted",
19119
+ title: "Accepted",
19120
+ selectable: true,
19121
+ parentCode: null,
19122
+ childCodes: [],
19123
+ definition: "The share has been accepted, its content disclosed, and the link to the receiving party's record written. Terminal."
19124
+ },
19125
+ {
19126
+ code: "925-005-000-000-000-000-000",
19127
+ key: "declined",
19128
+ title: "Declined",
19129
+ selectable: true,
19130
+ parentCode: null,
19131
+ childCodes: [],
19132
+ definition: "The receiving party refused the share at the claim decision point, BEFORE its content was disclosed. Distinct from rejected: no client information was released, so the refusal carries no disclosure to account for. Terminal."
19133
+ },
19134
+ {
19135
+ code: "925-006-000-000-000-000-000",
19136
+ key: "rejected",
19137
+ title: "Rejected",
19138
+ selectable: true,
19139
+ parentCode: null,
19140
+ childCodes: [],
19141
+ definition: "The receiving party refused the share AFTER accepting it and reviewing its content. Distinct from declined: the disclosure already occurred and remains subject to the receiving party's retention and audit obligations. Terminal."
19142
+ }
19143
+ ]
19144
+ };
19145
+
19023
19146
  // src/cvcs/facilitatorEntityType.v1.0.0.json
19024
19147
  var facilitatorEntityType_v1_0_0_default = {
19025
19148
  domain: "facilitator_entity_type",
@@ -49172,6 +49295,124 @@ var hmisSex_v1_0_0_default = {
49172
49295
  ]
49173
49296
  };
49174
49297
 
49298
+ // src/cvcs/criminalOrgCategory.v1.0.0.json
49299
+ var criminalOrgCategory_v1_0_0_default = {
49300
+ domain: "criminal_org_category",
49301
+ name: "Criminal Organization Category",
49302
+ version: "1.0.0",
49303
+ _status: "DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 990 numbering; codes from prototype/data/cvcs/core_criminal_org_category.yaml (WIKI 7-type taxonomy, name signed off Crysta-proxy 2026-06-06); PENDING canonical Notion authoring. Categorizes each criminal-organization registry record; the registry (org records) is reference data seeded separately, keyed by this category code.",
49304
+ _source: "prototype/data/cvcs/core_criminal_org_category.yaml",
49305
+ levels: {
49306
+ "0": "Unknown or Missing",
49307
+ "1": "Criminal organization category"
49308
+ },
49309
+ entries: [
49310
+ {
49311
+ code: "990-000-000-000-000-000-000",
49312
+ key: "missingness_root",
49313
+ title: "Unknown, Redacted, or Missing",
49314
+ selectable: false,
49315
+ parentCode: null,
49316
+ childCodes: [
49317
+ "990-000-000-000-000-000-001",
49318
+ "990-000-000-000-000-000-002",
49319
+ "990-000-000-000-000-000-003"
49320
+ ],
49321
+ definition: "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic. The prototype YAML's single UNK sentinel (organization category cannot be determined) maps to the unknown child."
49322
+ },
49323
+ {
49324
+ code: "990-000-000-000-000-000-001",
49325
+ key: "unknown",
49326
+ title: "Unknown",
49327
+ selectable: true,
49328
+ parentCode: "990-000-000-000-000-000-000",
49329
+ childCodes: [],
49330
+ definition: "Organization category cannot be determined at time of entry. Carries the prototype's UNK case."
49331
+ },
49332
+ {
49333
+ code: "990-000-000-000-000-000-002",
49334
+ key: "anonymous",
49335
+ title: "Anonymous / declined to answer",
49336
+ selectable: true,
49337
+ parentCode: "990-000-000-000-000-000-000",
49338
+ childCodes: [],
49339
+ definition: "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
49340
+ },
49341
+ {
49342
+ code: "990-000-000-000-000-000-003",
49343
+ key: "data_not_collected",
49344
+ title: "Data not collected",
49345
+ selectable: true,
49346
+ parentCode: "990-000-000-000-000-000-000",
49347
+ childCodes: [],
49348
+ definition: "No attempt was made to collect the value."
49349
+ },
49350
+ {
49351
+ code: "990-001-000-000-000-000-000",
49352
+ key: "street_gang",
49353
+ title: "Street gang / neighborhood-based gang",
49354
+ selectable: true,
49355
+ parentCode: null,
49356
+ childCodes: [],
49357
+ definition: "Territorial, often city/neighborhood-based; multi-generational. Examples: Bloods, Crips, Latin Kings, Gangster Disciples. WIKI subtypes: African-American, Latino/Hispanic, hybrid/multiracial, Asian street gangs. A trafficking street gang stays street_gang (structure, not activity)."
49358
+ },
49359
+ {
49360
+ code: "990-002-000-000-000-000-000",
49361
+ key: "prison_gang",
49362
+ title: "Prison gang",
49363
+ selectable: true,
49364
+ parentCode: null,
49365
+ childCodes: [],
49366
+ definition: "Originate and operate primarily inside prisons; influence street gangs. Often racialized; can be linked with cartels or domestic groups. Examples: Aryan Brotherhood, Mexican Mafia (La Eme), Black Guerrilla Family."
49367
+ },
49368
+ {
49369
+ code: "990-003-000-000-000-000-000",
49370
+ key: "outlaw_motorcycle_gang",
49371
+ title: "Outlaw motorcycle gang (OMG)",
49372
+ selectable: true,
49373
+ parentCode: null,
49374
+ childCodes: [],
49375
+ definition: "Highly structured; emphasize brotherhood and loyalty. Often involved in drug and weapons trafficking, extortion, and FBI/DOJ-documented prostitution rackets. Examples: Hells Angels, Mongols, Bandidos, Outlaws."
49376
+ },
49377
+ {
49378
+ code: "990-004-000-000-000-000-000",
49379
+ key: "tco_cartel",
49380
+ title: "Transnational criminal organization (TCO) / cartel",
49381
+ selectable: true,
49382
+ parentCode: null,
49383
+ childCodes: [],
49384
+ definition: "Operate across borders; organized hierarchies; high levels of violence and corruption. Examples: Sinaloa Cartel, CJNG, Gulf Cartel (CDG), MS-13 (hybrid). WIKI subtypes: Mexican cartels, Central American groups, Colombian cartels, Asian cartels (e.g. Triads, Yakuza). A trafficking cartel stays tco_cartel (structure, not activity)."
49385
+ },
49386
+ {
49387
+ code: "990-005-000-000-000-000-000",
49388
+ key: "white_supremacist_extremist",
49389
+ title: "White supremacist / extremist gang",
49390
+ selectable: true,
49391
+ parentCode: null,
49392
+ childCodes: [],
49393
+ definition: "Blend gang culture with hate ideology; often recruit in prisons. Some are considered both prison and extremist gangs. Examples: Peckerwoods, Aryan Circle, Nazi Low Riders."
49394
+ },
49395
+ {
49396
+ code: "990-006-000-000-000-000-000",
49397
+ key: "organized_crime_family",
49398
+ title: "Organized crime family (traditional mafia)",
49399
+ selectable: true,
49400
+ parentCode: null,
49401
+ childCodes: [],
49402
+ definition: "Focus on racketeering, gambling, extortion; more secretive and hierarchical. Tends to be older, less visible but still active. Examples: Italian-American Mafia (e.g. Gambino family), Russian Mafia."
49403
+ },
49404
+ {
49405
+ code: "990-007-000-000-000-000-000",
49406
+ key: "familial_or_independent_trafficking_network",
49407
+ title: "Familial or independent trafficking network",
49408
+ selectable: true,
49409
+ parentCode: null,
49410
+ childCodes: [],
49411
+ definition: "STRUCTURAL category (renamed 2026-06-08 from human_trafficking_smuggling_network to restore mutual exclusivity): a family-based or standalone trafficking/smuggling network that is NOT a street/prison gang, cartel/TCO, outlaw motorcycle gang, organized crime family, or extremist organization. Examples: Tenancingo-style familial sex-trafficking networks (e.g. Rendon-Reyes, Granados); ethnic standalone networks (e.g. Thai/Intarathong). This category \u2014 or documented trafficking/prostitution activity on any org \u2014 is the load-bearing signal for the facilitator model's stronger trafficking-affiliation leaf."
49412
+ }
49413
+ ]
49414
+ };
49415
+
49175
49416
  // src/index.ts
49176
49417
  var selectableCodes = (envelope) => envelope.entries.filter((e) => e.selectable).map((e) => e.code);
49177
49418
  var CVC_137_VALUES = selectableCodes(recencyBand_v1_0_0_default);
@@ -49348,6 +49589,7 @@ var CVC_197_VALUES = selectableCodes(
49348
49589
  CVC_99_ENGLISH_PROFICIENCY,
49349
49590
  CVC_99_LABELS,
49350
49591
  CVC_99_VALUES,
49592
+ CaseShareStateKeys,
49351
49593
  CheckInActivityKeys,
49352
49594
  CheckInPhaseKeys,
49353
49595
  ChildBehavioralConcernsKeys,
@@ -49363,6 +49605,7 @@ var CVC_197_VALUES = selectableCodes(
49363
49605
  CoreIndicatorKeys,
49364
49606
  CoreReferralOutcomeKeys,
49365
49607
  CreatedBySystemKeys,
49608
+ CriminalOrgCategoryKeys,
49366
49609
  CvcCodeSchema,
49367
49610
  CvcEntrySchema,
49368
49611
  CvcEnvelopeSchema,
@@ -49557,6 +49800,7 @@ var CVC_197_VALUES = selectableCodes(
49557
49800
  RecencyBandKeys,
49558
49801
  ReferenceLinkTypeKeys,
49559
49802
  ReferralEntityCategoryKeys,
49803
+ ReferralOriginKeys,
49560
49804
  RelationshipConcernKeys,
49561
49805
  RelationshipDynamicsKeys,
49562
49806
  RelationshipStatusCurrentKeys,
@@ -49648,6 +49892,7 @@ var CVC_197_VALUES = selectableCodes(
49648
49892
  buildScoringRuleSchema,
49649
49893
  buildSectionSchema,
49650
49894
  cascadeExclusions,
49895
+ caseShareStateSot,
49651
49896
  checkInActivitySot,
49652
49897
  checkInPhaseSot,
49653
49898
  childBehavioralConcernsSot,
@@ -49668,6 +49913,7 @@ var CVC_197_VALUES = selectableCodes(
49668
49913
  coreReferralOutcomeSot,
49669
49914
  createPlatformModels,
49670
49915
  createdBySystemSot,
49916
+ criminalOrgCategorySot,
49671
49917
  cvcEntryModel,
49672
49918
  cvcEntrySchemaDefinition,
49673
49919
  cvcEntrySchemaOptions,
@@ -49802,6 +50048,7 @@ var CVC_197_VALUES = selectableCodes(
49802
50048
  recencyBandSot,
49803
50049
  referenceLinkTypeSot,
49804
50050
  referralEntityCategorySot,
50051
+ referralOriginSot,
49805
50052
  relationshipConcernSot,
49806
50053
  relationshipDynamicsSot,
49807
50054
  relationshipStatusCurrentSot,