Application Load

IProductFeedback

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

IProductFeedback

Customer review, rating and attached images.

src/lib/interfaces/orionplace/products/IProduct.ts
TypeScript
export interface IProductFeedback {
  // Review ID.
  id: number;
  // Product rating assigned by the review author.
  rating?: number;
  // Review text.
  text?: string;
  // Creation date and time with backend-formatted relative-time values; null
  // when no date is available.
  date_created?: IProductFeedbackDate | null;
  // Review author: ID, first name, public last name and avatar URL.
  user?: IProductFeedbackUser;
  // Up to five images attached to this review, each with its record ID and
  // URL.
  images?: IProductFeedbackImage[];
  // Additional review fields returned by the endpoint.
  [key: string]: unknown;
}