Initial commit

This commit is contained in:
Benjamin Sutter
2026-05-15 00:48:18 +02:00
commit 9e827c50f9
72 changed files with 10477 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
import type { MatchStrength, RiskLevel } from './enums'
export interface ScoreBreakdown {
hardMatchScore: number
softFactorScore: number
confidenceModifier: number
dataQualityModifier: number
totalScore: number
}
export interface ScoreFactor {
criterion: string
weight: number
score: number
contribution: number
explanation: string
}
export interface Tradeoff {
criterion: string
concern: string
severity: 'LOW' | 'MEDIUM' | 'HIGH'
mitigation?: string
}
export interface AlternativeStrategy {
title: string
description: string
expectedScore?: number
}
export interface Match {
id: string
propertyId: string
needId: string
matchScore: number
matchStrength: MatchStrength
scoreBreakdown: ScoreBreakdown
positiveFactors: ScoreFactor[]
negativeFactors: ScoreFactor[]
tradeoffs: Tradeoff[]
explainabilitySummary: string
confidenceLevel: number
riskLevel: RiskLevel
uncertaintyIndicators: string[]
alternativeStrategies?: AlternativeStrategy[]
reviewedBy?: string
reviewedAt?: string
isApproved?: boolean
organizationId?: string
createdAt: string
updatedAt: string
}