fix(tradein): dedupe last_scraped_at in AggregatedEstimate (fix frontend build)

#688 (analytics) and #689 (transparency) each added last_scraped_at?: string|null
to AggregatedEstimate; each PR was internally consistent (tsc green in isolation),
but after BOTH merged the field was declared twice → 'Type error: Duplicate
identifier last_scraped_at' → next build failed → build-frontend red → deploy
skipped (run #535). Remove the second declaration (keep the original at the
metadata block); price_trend untouched. tsc --noEmit clean.
This commit is contained in:
lekss361 2026-05-30 11:25:41 +03:00
parent 88a3ce1875
commit 6248880d53

View file

@ -158,12 +158,10 @@ export interface AggregatedEstimate {
avito_imv?: AvitoImvSummary | null;
dkp_corridor?: DkpCorridor | null;
// ── ANALYTICS surface (web-native cards) ──
// price_trend — динамика медианы ₽/м² по месяцам для здания/района
// (PriceTrendCard). null / <2 точек → карточка не рендерится.
// last_scraped_at — ISO datetime последнего скрейпа данных аналитики.
// Оба optional + nullable: старые оценки их не содержат (graceful).
// price_trend — динамика медианы ₽/м² по месяцам для здания/района
// (PriceTrendCard). null / <2 точек → карточка не рендерится.
// last_scraped_at объявлен выше (был дубль #688+#689 → ломал build).
price_trend?: PriceTrendPoint[] | null;
last_scraped_at?: string | null;
}
// ── Stage 4a/4b response types ──