@bytebrand/fe-ui-core-autobahn 1.0.212 → 1.0.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vdp/index.ts CHANGED
@@ -35,6 +35,7 @@ export {
35
35
  Co2Label,
36
36
  VehicleDescription,
37
37
  TrustStrip,
38
+ PriceHistory,
38
39
  ProtectionProducts,
39
40
  VdpAnchors,
40
41
  VdpStickyBar,
@@ -43,6 +44,9 @@ export {
43
44
  HowItWorks,
44
45
  ReviewsTeaser,
45
46
  CustomerRatings,
47
+ RatingSourcesInfo,
48
+ ReviewSourceCaption,
49
+ REVIEW_LINK_REL,
46
50
  VdpEnquiry,
47
51
  FinanceDetailsModal,
48
52
  } from './VdpModules';
@@ -57,6 +61,7 @@ export type {
57
61
  VehicleDescriptionProps,
58
62
  TrustStripProps,
59
63
  TrustItem,
64
+ PriceHistoryProps,
60
65
  ProtectionProductsProps,
61
66
  ProtectionProduct,
62
67
  VdpAnchorsProps,
@@ -68,6 +73,8 @@ export type {
68
73
  HowItWorksStep,
69
74
  ReviewsTeaserProps,
70
75
  CustomerRatingsProps,
76
+ RatingSourcesInfoProps,
77
+ ReviewSourceCaptionProps,
71
78
  VdpEnquiryProps,
72
79
  FinanceDetailsModalProps,
73
80
  } from './VdpModules';
@@ -82,8 +89,10 @@ export type {
82
89
  EnergyTaxSummary,
83
90
  Co2CostsSummary,
84
91
  EquipmentGroups,
92
+ PriceHistoryPoint,
85
93
  PriceRatingBand,
86
94
  PriceRatingBands,
87
95
  VdpReview,
96
+ RatingPortal,
88
97
  AutobahnPhev,
89
98
  } from './types';
package/vdp/types.ts CHANGED
@@ -10,8 +10,8 @@
10
10
  // (`?`) fields are ones we have NO real source for yet; they are optional ON
11
11
  // PURPOSE so the components can detect their absence and render the
12
12
  // NEEDS_DATA_LABEL ('Daten folgt') marker instead of a fabricated value. Never
13
- // default these to placeholder numbers. The market band (marketLow / marketAvg /
14
- // marketHigh) is needs-data by default.
13
+ // default these to placeholder numbers. priceHistory + the market band
14
+ // (marketLow / marketAvg / marketHigh) are needs-data by default.
15
15
 
16
16
  import type { AutobahnPhev } from '../cards/types';
17
17
 
@@ -136,6 +136,34 @@ export interface VdpReview {
136
136
  review: string;
137
137
  /** star rating 1–5. */
138
138
  rating: number;
139
+ /** portal the review was written on, e.g. "Trustpilot" (Bewertung Welt feed only). */
140
+ source?: string;
141
+ /** review date, ISO yyyy-mm-dd (Bewertung Welt feed only). */
142
+ date?: string;
143
+ /** the review on its portal (Bewertung Welt feed only; '' when unknown). */
144
+ url?: string;
145
+ }
146
+
147
+ /** one review portal behind the site-wide rating (Bewertung Welt `summary.portals`). */
148
+ export interface RatingPortal {
149
+ /** portal key, e.g. 'google' | 'trustpilot'. */
150
+ source: string;
151
+ /** display name, e.g. "Google". */
152
+ name: string;
153
+ /** the portal's own average (null when unknown). */
154
+ average: number | null;
155
+ /** number of reviews on the portal. */
156
+ total: number;
157
+ /** the portal's public auto.de profile — "all reviews" ('' when unknown). */
158
+ url?: string;
159
+ }
160
+
161
+ /** One point on the price-history sparkline. */
162
+ export interface PriceHistoryPoint {
163
+ /** x-axis label, e.g. 'vor 6 Wo.' / 'heute'. */
164
+ label: string;
165
+ /** price in EUR at that point. */
166
+ price: number;
139
167
  }
140
168
 
141
169
  /** One [min,max] EUR band of the 5-tier Preisbewertung (mirrors legacy IRatingConfig). */
@@ -259,6 +287,8 @@ export interface VehicleDetail {
259
287
  // --- NEEDS DATA: no real source yet (NEVER fabricate) ---
260
288
  /** original list price (for the struck-through reference + history endpoint). */
261
289
  listPrice?: number;
290
+ /** price-history points (sparkline). Needs-data by default. */
291
+ priceHistory?: PriceHistoryPoint[];
262
292
  /** lowest comparable market price in EUR (market band lower bound). */
263
293
  marketLow?: number;
264
294
  /** average comparable market price in EUR (market band reference). */