feat: remove EXTERNAL_MARKET result type entirely
All external market properties now surface as VERIFIED_PORTFOLIO. Removes the type from enums, domain types, mock data, matching engine, components, hooks, and tests — zero user-visible distinction remains. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,6 @@ export type AssetType = typeof AssetType[keyof typeof AssetType]
|
||||
// ── Result Types ──────────────────────────────────────────────────────────────
|
||||
export const ResultType = {
|
||||
VERIFIED_PORTFOLIO: 'VERIFIED_PORTFOLIO',
|
||||
EXTERNAL_MARKET: 'EXTERNAL_MARKET',
|
||||
MAISON_WORK: 'MAISON_WORK',
|
||||
FUTURE_AVAILABILITY: 'FUTURE_AVAILABILITY',
|
||||
} as const
|
||||
|
||||
@@ -5,7 +5,7 @@ export interface PipelineItem {
|
||||
title: string
|
||||
location: string
|
||||
matchScore: number
|
||||
resultType: 'VERIFIED_PORTFOLIO' | 'EXTERNAL_MARKET' | 'MAISON_WORK' | 'FUTURE_AVAILABILITY'
|
||||
resultType: 'VERIFIED_PORTFOLIO' | 'MAISON_WORK' | 'FUTURE_AVAILABILITY'
|
||||
stage: PipelineStage
|
||||
// Source match reference — used for navigating back to the detail page
|
||||
matchId?: string
|
||||
|
||||
@@ -42,7 +42,6 @@ export const DATA_QUALITY_MODIFIER = {
|
||||
export const CONFIDENCE_MODIFIER = {
|
||||
VERIFIED_HIGH: +3, // VERIFIED_PORTFOLIO + confidenceScore >= 0.80
|
||||
VERIFIED_MEDIUM: 0, // VERIFIED_PORTFOLIO + confidenceScore < 0.80
|
||||
EXTERNAL_MARKET: -3, // EXTERNAL_MARKET result type
|
||||
MAISON_WORK: -2, // MAISON_WORK — Maison Work API (slightly more trusted than scraped market)
|
||||
FUTURE_AVAILABILITY: -15, // FUTURE_AVAILABILITY — never treat as confirmed availability
|
||||
LOW_CONFIDENCE: -10, // confidenceScore < 0.50 (stacks with above)
|
||||
|
||||
@@ -15,14 +15,7 @@ interface UnifiedResultBase {
|
||||
}
|
||||
|
||||
export interface VerifiedPortfolioResult extends UnifiedResultBase {
|
||||
resultType: 'VERIFIED_PORTFOLIO'
|
||||
property: Property
|
||||
match: Match
|
||||
unit?: PropertyUnit // specific unit this match refers to
|
||||
}
|
||||
|
||||
export interface ExternalMarketResult extends UnifiedResultBase {
|
||||
resultType: 'EXTERNAL_MARKET' | 'MAISON_WORK'
|
||||
resultType: 'VERIFIED_PORTFOLIO' | 'MAISON_WORK'
|
||||
property: Property
|
||||
match: Match
|
||||
unit?: PropertyUnit // specific unit this match refers to
|
||||
@@ -38,5 +31,4 @@ export interface FutureAvailabilityResult extends UnifiedResultBase {
|
||||
|
||||
export type UnifiedMatchResult =
|
||||
| VerifiedPortfolioResult
|
||||
| ExternalMarketResult
|
||||
| FutureAvailabilityResult
|
||||
|
||||
Reference in New Issue
Block a user