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

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,
@@ -57,6 +58,7 @@ export type {
57
58
  VehicleDescriptionProps,
58
59
  TrustStripProps,
59
60
  TrustItem,
61
+ PriceHistoryProps,
60
62
  ProtectionProductsProps,
61
63
  ProtectionProduct,
62
64
  VdpAnchorsProps,
@@ -82,6 +84,7 @@ export type {
82
84
  EnergyTaxSummary,
83
85
  Co2CostsSummary,
84
86
  EquipmentGroups,
87
+ PriceHistoryPoint,
85
88
  PriceRatingBand,
86
89
  PriceRatingBands,
87
90
  VdpReview,
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
 
@@ -138,6 +138,14 @@ export interface VdpReview {
138
138
  rating: number;
139
139
  }
140
140
 
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
+ }
148
+
141
149
  /** One [min,max] EUR band of the 5-tier Preisbewertung (mirrors legacy IRatingConfig). */
142
150
  export interface PriceRatingBand {
143
151
  min: number;
@@ -259,6 +267,8 @@ export interface VehicleDetail {
259
267
  // --- NEEDS DATA: no real source yet (NEVER fabricate) ---
260
268
  /** original list price (for the struck-through reference + history endpoint). */
261
269
  listPrice?: number;
270
+ /** price-history points (sparkline). Needs-data by default. */
271
+ priceHistory?: PriceHistoryPoint[];
262
272
  /** lowest comparable market price in EUR (market band lower bound). */
263
273
  marketLow?: number;
264
274
  /** average comparable market price in EUR (market band reference). */