@bytebrand/fe-ui-core-autobahn 1.0.211 → 1.0.213

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,7 +35,6 @@ export {
35
35
  Co2Label,
36
36
  VehicleDescription,
37
37
  TrustStrip,
38
- PriceHistory,
39
38
  ProtectionProducts,
40
39
  VdpAnchors,
41
40
  VdpStickyBar,
@@ -44,6 +43,9 @@ export {
44
43
  HowItWorks,
45
44
  ReviewsTeaser,
46
45
  CustomerRatings,
46
+ RatingSourcesInfo,
47
+ ReviewSourceCaption,
48
+ REVIEW_LINK_REL,
47
49
  VdpEnquiry,
48
50
  FinanceDetailsModal,
49
51
  } from './VdpModules';
@@ -58,7 +60,6 @@ export type {
58
60
  VehicleDescriptionProps,
59
61
  TrustStripProps,
60
62
  TrustItem,
61
- PriceHistoryProps,
62
63
  ProtectionProductsProps,
63
64
  ProtectionProduct,
64
65
  VdpAnchorsProps,
@@ -70,6 +71,8 @@ export type {
70
71
  HowItWorksStep,
71
72
  ReviewsTeaserProps,
72
73
  CustomerRatingsProps,
74
+ RatingSourcesInfoProps,
75
+ ReviewSourceCaptionProps,
73
76
  VdpEnquiryProps,
74
77
  FinanceDetailsModalProps,
75
78
  } from './VdpModules';
@@ -84,9 +87,9 @@ export type {
84
87
  EnergyTaxSummary,
85
88
  Co2CostsSummary,
86
89
  EquipmentGroups,
87
- PriceHistoryPoint,
88
90
  PriceRatingBand,
89
91
  PriceRatingBands,
90
92
  VdpReview,
93
+ RatingPortal,
91
94
  AutobahnPhev,
92
95
  } 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. priceHistory + the market band
14
- // (marketLow / marketAvg / marketHigh) are needs-data by default.
13
+ // default these to placeholder numbers. The market band (marketLow / marketAvg /
14
+ // marketHigh) is needs-data by default.
15
15
 
16
16
  import type { AutobahnPhev } from '../cards/types';
17
17
 
@@ -136,14 +136,26 @@ 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;
139
145
  }
140
146
 
141
- /** One point on the price-history sparkline. */
142
- export interface PriceHistoryPoint {
143
- /** x-axis label, e.g. 'vor 6 Wo.' / 'heute'. */
144
- label: string;
145
- /** price in EUR at that point. */
146
- price: number;
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;
147
159
  }
148
160
 
149
161
  /** One [min,max] EUR band of the 5-tier Preisbewertung (mirrors legacy IRatingConfig). */
@@ -267,8 +279,6 @@ export interface VehicleDetail {
267
279
  // --- NEEDS DATA: no real source yet (NEVER fabricate) ---
268
280
  /** original list price (for the struck-through reference + history endpoint). */
269
281
  listPrice?: number;
270
- /** price-history points (sparkline). Needs-data by default. */
271
- priceHistory?: PriceHistoryPoint[];
272
282
  /** lowest comparable market price in EUR (market band lower bound). */
273
283
  marketLow?: number;
274
284
  /** average comparable market price in EUR (market band reference). */