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
+18
View File
@@ -0,0 +1,18 @@
import type { Match } from '../domain/match'
import type { MatchStrength } from '../domain/enums'
export interface MatchFilters {
needId?: string
propertyId?: string
minScore?: number
matchStrength?: MatchStrength
organizationId?: string
}
export interface IMatchProvider {
getAll(filters?: MatchFilters): Promise<Match[]>
getById(id: string): Promise<Match | null>
getByNeed(needId: string): Promise<Match[]>
getByProperty(propertyId: string): Promise<Match[]>
approve(id: string, reviewedBy: string): Promise<Match>
}