import type { Review } from './review.model'; import type { ReviewSummary } from './reviewSummary.model'; /** * Details for a group(product, content, logged in user etc.) of reviews */ export interface ReviewList { /** * Identifier for the product or content for the group of reviews */ id: number | string; /** * Reviews */ reviews: Review[]; /** * Summary of the group of reviews */ summary?: ReviewSummary; /** * Page of reviews * * @example 2 */ page?: number; /** * Maximum number of reviews in a single details * * @example 10 */ limit?: number; /** * Total number of reviews for this identifier * * @example 99 */ total?: number; }