app/frontend/support/schema.ts in decidim-comments-0.20.1 vs app/frontend/support/schema.ts in decidim-comments-0.21.0

- old
+ new

@@ -9,13 +9,13 @@ userGroupId?: string | null, }; export interface addCommentMutation { // A commentable - commentable: { + commentable: { // Add a new comment to a commentable - addComment: { + addComment: { // Check if the commentable has comments hasComments: boolean, // The Comment's unique ID id: string, // The Comment's signed global id @@ -29,37 +29,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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, // Check if the current user can comment userAllowedToComment: boolean, @@ -73,11 +73,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -89,37 +89,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -135,11 +135,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -151,37 +151,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -197,11 +197,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -213,37 +213,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -259,25 +259,25 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - } >, - } >, - } >, + }>, + }>, + }>, } | null, } | null, }; export interface DownVoteMutationVariables { id: string, }; export interface DownVoteMutation { // A comment - comment: { - downVote: { + comment: { + downVote: { // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -289,37 +289,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -335,11 +335,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -351,37 +351,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -397,11 +397,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -413,37 +413,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -459,11 +459,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -475,37 +475,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -521,25 +521,25 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - } >, - } >, - } >, + }>, + }>, + }>, }, } | null, }; export interface UpVoteMutationVariables { id: string, }; export interface UpVoteMutation { // A comment - comment: { - upVote: { + comment: { + upVote: { // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -551,37 +551,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -597,11 +597,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -613,37 +613,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -659,11 +659,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -675,37 +675,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -721,11 +721,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -737,37 +737,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -783,57 +783,58 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - } >, - } >, - } >, + }>, + }>, + }>, }, } | null, }; export interface GetCommentsQueryVariables { commentableId: string, commentableType: string, orderBy?: string | null, + singleCommentId?: string | null, }; export interface GetCommentsQuery { // Return's information about the logged in user - session: { + session: { // The current user - 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, // The current user verified user groups - verifiedUserGroups: Array< { + verifiedUserGroups: Array<{ // The user group's id id: string, // The user group's name name: string, - } >, + }>, } | null, - commentable: { + commentable: { // Whether the object can have new comments or not acceptsNewComments: boolean, // Check if the current user can comment userAllowedToComment: 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< { + comments: Array<{ // The Comment's unique ID id: string, // Check if the commentable has comments hasComments: boolean, // The Comment's signed global id @@ -847,37 +848,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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, // Check if the current user can comment userAllowedToComment: boolean, @@ -891,11 +892,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -907,37 +908,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -953,11 +954,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -969,37 +970,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1015,11 +1016,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -1031,37 +1032,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1077,14 +1078,14 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - } >, - } >, - } >, - } >, + }>, + }>, + }>, + }>, // The commentable's ID id: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` type: string, }, @@ -1097,16 +1098,16 @@ type: string, }; export interface AddCommentFormSessionFragment { // The current user verified user groups - verifiedUserGroups: Array< { + verifiedUserGroups: Array<{ // The user group's id id: string, // The user group's name name: string, - } >, + }>, }; export interface CommentFragment { // The Comment's unique ID id: string, @@ -1121,37 +1122,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1167,11 +1168,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -1183,37 +1184,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1229,11 +1230,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -1245,37 +1246,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1291,11 +1292,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -1307,37 +1308,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1353,13 +1354,13 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - } >, - } >, - } >, + }>, + }>, + }>, }; export interface CommentDataFragment { // The Comment's unique ID id: string, @@ -1374,37 +1375,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1440,37 +1441,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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, // Check if the current user can comment userAllowedToComment: boolean, @@ -1484,11 +1485,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -1500,37 +1501,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1546,11 +1547,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -1562,37 +1563,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1608,11 +1609,11 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - comments: Array< { + comments: Array<{ // The Comment's unique ID id: string, // The Comment's signed global id sgid: string, // The commentable's class name. i.e. `Decidim::ParticipatoryProcess` @@ -1624,37 +1625,37 @@ // The creation date of the comment createdAt: string, // The creation date of the comment in relative format formattedCreatedAt: string, // The resource author - author: ( { - // The author's name - name: string, - // The author's nickname - nickname: string, - // The author's avatar url - avatarUrl: string, - // 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, - // 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, - } + author: ({ + // The author's name + name: string, + // The author's nickname + nickname: string, + // The author's avatar url + avatarUrl: string, + // 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, + // 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 acceptsNewComments: boolean, @@ -1670,12 +1671,12 @@ upVoted: boolean, // Check if the current user has downvoted the comment downVoted: boolean, // The number of comment's downVotes downVotes: number, - } >, - } >, - } >, + }>, + }>, + }>, }; export interface DownVoteButtonFragment { // The Comment's unique ID id: string,