GitHub

DaffProductReview

import { DaffProductReview } from '@daffodil/reviews'
interface DaffProductReview {
  overallRating: number
  ratings: DaffReviewRating[]
  productId: DaffProduct['id']
  createdAt: string
  customer: DaffProductReviewCustomer
  title: string
  body: string
}

Properties

Name Type Description
overallRating number

The overall rating of the product.

ratings DaffReviewRating[]

A list of rating that apply to specific aspects of the product.

productId DaffProduct['id']

The ID of the product that this review targets.

createdAt string

The date when this review was submitted in ISO 8601 format.

customer DaffProductReviewCustomer

The customer that wrote the review.

title string

The title of the review.

body string

The full text body of the review.