Application Load

IProductFeedbacks

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IProductFeedbacks

Product review collections, pagination and summary statistics.

src/lib/interfaces/orionplace/products/IProduct.ts
TypeScript
export interface IProductFeedbacks {
  // Initial page of approved top-level reviews for the product, left in this
  // storefront’s store group.
  feedbacks?: {
    // Records on this response page.
    data: IProductFeedback[];
    // Pagination metadata for this collection.
    rpag?: IProductPagination;
  };
  // Approved top-level review counts of this store group keyed by rating from 1
  // to 5. Replies and older reviews saved without stars (0) are not in these
  // counts, so an average computed from them leaves those out too.
  stats?: Record<string, number>;
  // Number of images of the product’s approved reviews and replies left in this
  // store group; `image_row` shows the first images of its top-level reviews.
  c_feedback_images?: number;
  // Initial page of approved review images for the product.
  image_row?: { /* Records on this response page. */ data: unknown[]; /* Pagination metadata for this collection. */ rpag?: IProductPagination };
  // Current customer’s top-level review ID, or null when absent or signed out.
  our_feedback_id?: number | null;
}