Application Load

IProductFeedbackCountersResponse

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

IProductFeedbackCountersResponse

Reaction and reply counters of one approved review; total_c_aprooved_replies repeats total_c_approved_replies under its old spelling.

src/lib/interfaces/orionplace/products/IProductFeedbackApi.ts
TypeScript
export interface IProductFeedbackCountersResponse {
  // Field and general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message or null.
  success_message: string | null;
  // This endpoint returns the reaction and reply counters of one approved
  // review of this store group; `total_c_aprooved_replies` repeats
  // `total_c_approved_replies` under its old spelling. It does not return
  // average rating or a rating distribution.
  page_data: {
    // Likes.
    total_c_likes: number;
    // Dislikes.
    total_c_dislikes: number;
    // Replies in all moderation states: for a root review, all replies in its
    // discussion; for a reply, direct replies only.
    total_c_replies: number;
    // Correctly spelled copy of total_c_aprooved_replies in newer backends.
    // Approved replies: for a root review, all approved replies in its
    // discussion; for a reply, approved direct replies only. The review lists
    // use the same name.
    total_c_approved_replies?: number;
    // Approved direct replies in this store group, the list that
    // `filters.reply_of_parent` returns. Absent in older backends.
    total_c_approved_direct_replies?: number;
    // The same number as `total_c_approved_replies` under the old `aprooved`
    // spelling, kept for existing clients; read `total_c_approved_replies` in
    // new code.
    total_c_aprooved_replies: number;
  } | null;
}