app/frontend/support/schema.ts in decidim-comments-0.2.0 vs app/frontend/support/schema.ts in decidim-comments-0.3.0
- old
+ new
@@ -57,15 +57,15 @@
// The user's organization name
organizationName: string,
} | null,
} | null;
commentable: AddCommentFormCommentableFragment & {
- // Wether the object can have new comments or not
+ // Whether the object can have new comments or not
acceptsNewComments: boolean,
- // Wether the object comments have alignment or not
+ // Whether the object comments have alignment or not
commentsHaveAlignment: boolean,
- // Wether the object comments have votes or not
+ // Whether the object comments have votes or not
commentsHaveVotes: boolean,
comments: Array< CommentThreadFragment & CommentFragment & CommentDataFragment & UpVoteButtonFragment & DownVoteButtonFragment & {
// The Comment's unique ID
id: string,
} >,
@@ -87,10 +87,18 @@
// The user group's name
name: string,
} >;
}
+export interface CommentFragment extends CommentDataFragment, UpVoteButtonFragment, DownVoteButtonFragment {
+ comments: Array< CommentDataFragment & UpVoteButtonFragment & DownVoteButtonFragment & {
+ comments: Array< CommentDataFragment & UpVoteButtonFragment & DownVoteButtonFragment & {
+ comments: Array<CommentDataFragment & UpVoteButtonFragment & DownVoteButtonFragment>,
+ } >,
+ } >;
+}
+
export interface CommentDataFragment extends UpVoteButtonFragment, DownVoteButtonFragment {
// The Comment's unique ID
id: string;
// The Comment's signed global id
sgid: string;
@@ -104,31 +112,29 @@
author: {
// The author's name
name: string,
// The author's avatar url
avatarUrl: string,
+ // Whether the author is verified or not
+ isVerified: boolean,
+ // Whether the author is a user or another kind of author (User Group)
+ isUser: boolean,
+ // Whether the author's account has been deleted or not
+ deleted: boolean,
};
// Check if the commentable has comments
hasComments: boolean;
- // Wether the object can have new comments or not
+ // Whether the object can have new comments or not
acceptsNewComments: boolean;
// The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
alignment: number | null;
// Check if the current user has reported the comment
alreadyReported: boolean;
}
export interface CommentThreadFragment extends CommentFragment, CommentDataFragment, UpVoteButtonFragment, DownVoteButtonFragment {
// Check if the commentable has comments
hasComments: boolean;
-}
-
-export interface CommentFragment extends CommentDataFragment, UpVoteButtonFragment, DownVoteButtonFragment {
- comments: Array< CommentDataFragment & UpVoteButtonFragment & DownVoteButtonFragment & {
- comments: Array< CommentDataFragment & UpVoteButtonFragment & DownVoteButtonFragment & {
- comments: Array<CommentDataFragment & UpVoteButtonFragment & DownVoteButtonFragment>,
- } >,
- } >;
}
export interface DownVoteButtonFragment {
// The Comment's unique ID
id: string;