@bytebrand/fe-ui-core-autobahn 1.0.212 → 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
@@ -43,6 +43,9 @@ export {
43
43
  HowItWorks,
44
44
  ReviewsTeaser,
45
45
  CustomerRatings,
46
+ RatingSourcesInfo,
47
+ ReviewSourceCaption,
48
+ REVIEW_LINK_REL,
46
49
  VdpEnquiry,
47
50
  FinanceDetailsModal,
48
51
  } from './VdpModules';
@@ -68,6 +71,8 @@ export type {
68
71
  HowItWorksStep,
69
72
  ReviewsTeaserProps,
70
73
  CustomerRatingsProps,
74
+ RatingSourcesInfoProps,
75
+ ReviewSourceCaptionProps,
71
76
  VdpEnquiryProps,
72
77
  FinanceDetailsModalProps,
73
78
  } from './VdpModules';
@@ -85,5 +90,6 @@ export type {
85
90
  PriceRatingBand,
86
91
  PriceRatingBands,
87
92
  VdpReview,
93
+ RatingPortal,
88
94
  AutobahnPhev,
89
95
  } from './types';
package/vdp/types.ts CHANGED
@@ -136,6 +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;
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;
139
159
  }
140
160
 
141
161
  /** One [min,max] EUR band of the 5-tier Preisbewertung (mirrors legacy IRatingConfig). */