Application Load

IBlogComment

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

IBlogComment

Customer-visible blog comment.

interfaces/orionplace/blog/IBlogApi.ts
TypeScript
export interface IBlogComment {
  // Comment ID.
  id: number;
  // Post ID; the request filter is named `for_post`.
  post_id: number;
  // Parent comment ID, or null for a root comment. Replies are not embedded.
  parent_id: number | null;
  // Comment text.
  text: string;
  // Author ID, first name, comment-display surname and nullable avatar URL.
  user: {
    // Comment ID.
    id: number;
    // Value of first_name.
    first_name: string;
    // Value of last_name.
    last_name: string;
    // Value of avatar.
    avatar: string | null;
  };
  // Whether the current authenticated account is the author.
  is_owner: boolean;
  /** True only for the author while no approved reply exists. */
  can_edit: boolean;
  /** True only for the author while no reply of any status exists. */
  can_remove: boolean;
  // `EBlogCommentStatus` value in `int`, localized label in `text`.
  status: {
    // Value of int.
    int: EBlogCommentStatus;
    // Comment text.
    text: string;
  };
  // Creation timestamp.
  date_created: IApiDateTime;
  // Last modification timestamp.
  date_modified: IApiDateTime;
  // Stored like count; this endpoint does not cast a vote.
  total_c_likes: number;
  // Stored dislike count.
  total_c_dislikes: number;
  // Reply count: approved replies in the public list, all replies in the owned
  // list and mutation responses.
  total_c_replies: number;
}