Interface Review

User review

interface Review {
    id: string;
    itemId: string;
    reviewer: {
        id: string;
        name: string;
        avatarUrl?: string;
    };
    rating: number;
    title?: string;
    body: string;
    version: string;
    helpfulVotes: number;
    createdAt: string;
    publisherResponse?: {
        body: string;
        respondedAt: string;
    };
}

Properties

id: string

Review ID

itemId: string

Item ID being reviewed

reviewer: {
    id: string;
    name: string;
    avatarUrl?: string;
}

Reviewer info

Type declaration

  • id: string
  • name: string
  • Optional avatarUrl?: string
rating: number

Rating (1-5)

title?: string

Review title

body: string

Review text

version: string

Version reviewed

helpfulVotes: number

Helpful votes

createdAt: string

When the review was posted

publisherResponse?: {
    body: string;
    respondedAt: string;
}

Publisher's response

Type declaration

  • body: string
  • respondedAt: string