Initial commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user