app/frontend/support/schema.ts in decidim-comments-0.8.4 vs app/frontend/support/schema.ts in decidim-comments-0.9.0

- old
+ new

@@ -1,17 +1,17 @@ /* tslint:disable */ // This file was automatically generated and should not be edited. -export type addCommentMutationVariables = { +export interface addCommentMutationVariables { commentableId: string, commentableType: string, body: string, alignment?: number | null, userGroupId?: string | null, }; -export type addCommentMutation = { +export interface addCommentMutation { // A commentable commentable: { // Add a new comment to a commentable addComment: { // Check if the commentable has comments @@ -22,35 +22,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // 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)' @@ -72,35 +80,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -124,35 +140,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -176,35 +200,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -226,15 +258,15 @@ } >, } | null, } | null, }; -export type DownVoteMutationVariables = { +export interface DownVoteMutationVariables { id: string, }; -export type DownVoteMutation = { +export interface DownVoteMutation { // A comment comment: { downVote: { // The Comment's unique ID id: string, @@ -242,35 +274,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -294,35 +334,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -346,35 +394,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -398,35 +454,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -448,15 +512,15 @@ } >, }, } | null, }; -export type UpVoteMutationVariables = { +export interface UpVoteMutationVariables { id: string, }; -export type UpVoteMutation = { +export interface UpVoteMutation { // A comment comment: { upVote: { // The Comment's unique ID id: string, @@ -464,35 +528,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -516,35 +588,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -568,35 +648,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -620,35 +708,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -670,23 +766,25 @@ } >, }, } | null, }; -export type GetCommentsQueryVariables = { +export interface GetCommentsQueryVariables { commentableId: string, commentableType: string, orderBy?: string | null, }; -export type GetCommentsQuery = { +export interface GetCommentsQuery { // Return's information about the logged in user session: { // The current user user: { // The user's name name: string, + // The user's nickname + nickname: string, // The user's avatar url avatarUrl: string, // The user's organization name organizationName: string, } | null, @@ -703,10 +801,12 @@ acceptsNewComments: boolean, // Whether the object comments have alignment or not commentsHaveAlignment: boolean, // Whether the object comments have votes or not commentsHaveVotes: boolean, + // The number of comments in all levels this resource holds + totalCommentsCount: number, comments: Array< { // The Comment's unique ID id: string, // Check if the commentable has comments hasComments: boolean, @@ -714,35 +814,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // 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)' @@ -764,35 +872,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -816,35 +932,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -868,35 +992,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -922,61 +1054,69 @@ // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, }, }; -export type AddCommentFormCommentableFragment = { +export interface AddCommentFormCommentableFragment { // The commentable's ID id: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, }; -export type AddCommentFormSessionFragment = { +export interface AddCommentFormSessionFragment { // The current user verified user groups verifiedUserGroups: Array< { // The user group's id id: string, // The user group's name name: string, } >, }; -export type CommentFragment = { +export interface CommentFragment { // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1000,35 +1140,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1052,35 +1200,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1104,35 +1260,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1152,44 +1316,52 @@ } >, } >, } >, }; -export type CommentDataFragment = { +export interface CommentDataFragment { // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1206,46 +1378,54 @@ downVoted: boolean, // The number of comment's downVotes downVotes: number, }; -export type CommentThreadFragment = { +export interface CommentThreadFragment { // Check if the commentable has comments hasComments: boolean, // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // 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)' @@ -1267,35 +1447,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1319,35 +1507,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1371,35 +1567,43 @@ sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, // The comment message body: string, + // The comment message ready to display (it is expected to include HTML) + formattedBody: string, // The creation date of the comment createdAt: string, + // The creation date of the comment in relative format + formattedCreatedAt: string, // The comment's author author: ( { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } | { // The author's name name: string, + // The author's nickname + nickname: 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, + // The author's profile path + profilePath: string, // Whether the author's account has been deleted or not deleted: boolean, + // The author's badge icon + badge: string, } ), // Check if the commentable has comments hasComments: boolean, // Whether the object can have new comments or not @@ -1419,27 +1623,26 @@ } >, } >, } >, }; -export type DownVoteButtonFragment = { +export interface DownVoteButtonFragment { // The Comment's unique ID id: string, // The number of comment's downVotes downVotes: number, // Check if the current user has downvoted the comment downVoted: boolean, // Check if the current user has upvoted the comment upVoted: boolean, }; -export type UpVoteButtonFragment = { +export interface UpVoteButtonFragment { // The Comment's unique ID id: string, // The number of comment's upVotes upVotes: number, // Check if the current user has upvoted the comment upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, }; -/* tslint:enable */