decidim-comments 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/comments/bundle.js +53 -53
- data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
- data/app/cells/decidim/comments/comment_activity_cell.rb +2 -22
- data/app/cells/decidim/comments/comment_cell.rb +22 -0
- data/app/cells/decidim/comments/comment_m/footer.erb +5 -0
- data/app/cells/decidim/comments/comment_m/top.erb +7 -0
- data/app/cells/decidim/comments/comment_m_cell.rb +29 -0
- data/app/commands/decidim/comments/create_comment.rb +1 -1
- data/app/forms/decidim/comments/comment_form.rb +8 -1
- data/app/frontend/comments/add_comment_form.component.test.tsx +30 -28
- data/app/frontend/comments/add_comment_form.component.tsx +32 -16
- data/app/frontend/comments/comment.component.test.tsx +35 -4
- data/app/frontend/comments/comment.component.tsx +24 -15
- data/app/frontend/comments/comment_thread.component.test.tsx +9 -8
- data/app/frontend/comments/comment_thread.component.tsx +3 -1
- data/app/frontend/comments/comments.component.test.tsx +17 -14
- data/app/frontend/comments/comments.component.tsx +28 -4
- data/app/frontend/comments/down_vote_button.component.tsx +24 -9
- data/app/frontend/comments/up_vote_button.component.tsx +24 -9
- data/app/frontend/mutations/add_comment.mutation.graphql +2 -2
- data/app/frontend/mutations/down_vote.mutation.graphql +2 -2
- data/app/frontend/mutations/up_vote.mutation.graphql +2 -2
- data/app/frontend/queries/comments.query.graphql +2 -2
- data/app/frontend/support/schema.ts +1060 -735
- data/app/helpers/decidim/comments/comment_cells_helper.rb +33 -0
- data/app/models/decidim/comments/comment.rb +73 -20
- data/app/models/decidim/comments/seed.rb +1 -1
- data/app/types/decidim/comments/commentable_interface.rb +1 -1
- data/app/types/decidim/comments/commentable_mutation_type.rb +4 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/bg.yml +6 -0
- data/config/locales/ca.yml +1 -0
- data/config/locales/cs.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +1 -0
- data/config/locales/es-PY.yml +1 -0
- data/config/locales/es.yml +3 -2
- data/config/locales/et.yml +1 -0
- data/config/locales/fi-plain.yml +1 -0
- data/config/locales/fi.yml +2 -1
- data/config/locales/fr-CA.yml +2 -1
- data/config/locales/fr.yml +2 -1
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +1 -1
- data/config/locales/is-IS.yml +0 -2
- data/config/locales/is.yml +76 -0
- data/config/locales/ja-JP.yml +2 -2
- data/config/locales/ja.yml +121 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/{lv-LV.yml → lv.yml} +0 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +3 -2
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +5 -5
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/uk.yml +0 -1
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +121 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200706123136_make_comments_handle_i18n.rb +41 -0
- data/db/migrate/20200828101910_add_commentable_counter_cache_to_comments.rb +9 -0
- data/lib/decidim/comments/api/comment_type.rb +5 -1
- data/lib/decidim/comments/comment_serializer.rb +7 -2
- data/lib/decidim/comments/comment_vote_serializer.rb +5 -1
- data/lib/decidim/comments/commentable.rb +11 -0
- data/lib/decidim/comments/comments_helper.rb +28 -4
- data/lib/decidim/comments/engine.rb +13 -0
- data/lib/decidim/comments/mutation_extensions.rb +8 -0
- data/lib/decidim/comments/query_extensions.rb +4 -0
- data/lib/decidim/comments/test/factories.rb +10 -1
- data/lib/decidim/comments/test/shared_examples/comment_event.rb +1 -1
- data/lib/decidim/comments/version.rb +1 -1
- metadata +37 -11
@@ -1,7 +1,7 @@
|
|
1
1
|
#import "../fragments/comment_thread.fragment.graphql"
|
2
2
|
|
3
|
-
mutation addComment($commentableId: String!, $commentableType: String!, $body: String!, $alignment: Int, $userGroupId: ID) {
|
4
|
-
commentable(id: $commentableId, type: $commentableType) {
|
3
|
+
mutation addComment($commentableId: String!, $commentableType: String!, $body: String!, $alignment: Int, $userGroupId: ID, $locale: String!, $toggleTranslations: Boolean!) {
|
4
|
+
commentable(id: $commentableId, type: $commentableType, locale: $locale, toggleTranslations: $toggleTranslations) {
|
5
5
|
addComment(body: $body, alignment: $alignment, userGroupId: $userGroupId) {
|
6
6
|
...CommentThread
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#import "../fragments/comment.fragment.graphql"
|
2
2
|
|
3
|
-
mutation DownVote($id: ID!) {
|
4
|
-
comment(id: $id) {
|
3
|
+
mutation DownVote($id: ID!, $locale: String!, $toggleTranslations: Boolean!) {
|
4
|
+
comment(id: $id, locale: $locale, toggleTranslations: $toggleTranslations) {
|
5
5
|
downVote {
|
6
6
|
...Comment
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#import "../fragments/comment.fragment.graphql"
|
2
2
|
|
3
|
-
mutation UpVote($id: ID!) {
|
4
|
-
comment(id: $id) {
|
3
|
+
mutation UpVote($id: ID!, $locale: String!, $toggleTranslations: Boolean!) {
|
4
|
+
comment(id: $id, locale: $locale, toggleTranslations: $toggleTranslations) {
|
5
5
|
upVote {
|
6
6
|
...Comment
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#import "../fragments/add_comment_form_session.fragment.graphql"
|
2
2
|
#import "../fragments/comment_thread.fragment.graphql"
|
3
3
|
#import "../fragments/add_comment_form_commentable.fragment.graphql"
|
4
|
-
query GetComments($commentableId: String!, $commentableType: String!, $orderBy: String, $singleCommentId: String) {
|
4
|
+
query GetComments($commentableId: String!, $commentableType: String!, $orderBy: String, $singleCommentId: String, $locale: String!, $toggleTranslations: Boolean!) {
|
5
5
|
session {
|
6
6
|
user {
|
7
7
|
name
|
@@ -11,7 +11,7 @@ query GetComments($commentableId: String!, $commentableType: String!, $orderBy:
|
|
11
11
|
}
|
12
12
|
...AddCommentFormSession
|
13
13
|
}
|
14
|
-
commentable(id: $commentableId, type: $commentableType) {
|
14
|
+
commentable(id: $commentableId, type: $commentableType, locale: $locale, toggleTranslations: $toggleTranslations) {
|
15
15
|
acceptsNewComments
|
16
16
|
userAllowedToComment
|
17
17
|
commentsHaveAlignment
|
@@ -11,9 +11,9 @@ export interface addCommentMutationVariables {
|
|
11
11
|
|
12
12
|
export interface addCommentMutation {
|
13
13
|
// A commentable
|
14
|
-
commentable:
|
14
|
+
commentable: {
|
15
15
|
// Add a new comment to a commentable
|
16
|
-
addComment:
|
16
|
+
addComment: {
|
17
17
|
// Check if the commentable has comments
|
18
18
|
hasComments: boolean,
|
19
19
|
// The Comment's unique ID
|
@@ -31,33 +31,46 @@ export interface addCommentMutation {
|
|
31
31
|
// The creation date of the comment in relative format
|
32
32
|
formattedCreatedAt: string,
|
33
33
|
// The resource author
|
34
|
-
author: ({
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
34
|
+
author: ( {
|
35
|
+
// The author's name
|
36
|
+
name: string,
|
37
|
+
// The author's nickname
|
38
|
+
nickname: string,
|
39
|
+
// The author's avatar url
|
40
|
+
avatarUrl: string,
|
41
|
+
// The author's profile path
|
42
|
+
profilePath: string,
|
43
|
+
// Whether the author's account has been deleted or not
|
44
|
+
deleted: boolean,
|
45
|
+
// The author's badge icon
|
46
|
+
badge: string,
|
47
|
+
} | {
|
48
|
+
// The author's name
|
49
|
+
name: string,
|
50
|
+
// The author's nickname
|
51
|
+
nickname: string,
|
52
|
+
// The author's avatar url
|
53
|
+
avatarUrl: string,
|
54
|
+
// The author's profile path
|
55
|
+
profilePath: string,
|
56
|
+
// Whether the author's account has been deleted or not
|
57
|
+
deleted: boolean,
|
58
|
+
// The author's badge icon
|
59
|
+
badge: string,
|
60
|
+
} | {
|
61
|
+
// The author's name
|
62
|
+
name: string,
|
63
|
+
// The author's nickname
|
64
|
+
nickname: string,
|
65
|
+
// The author's avatar url
|
66
|
+
avatarUrl: string,
|
67
|
+
// The author's profile path
|
68
|
+
profilePath: string,
|
69
|
+
// Whether the author's account has been deleted or not
|
70
|
+
deleted: boolean,
|
71
|
+
// The author's badge icon
|
72
|
+
badge: string,
|
73
|
+
}
|
61
74
|
),
|
62
75
|
// Whether the object can have new comments or not
|
63
76
|
acceptsNewComments: boolean,
|
@@ -75,7 +88,7 @@ export interface addCommentMutation {
|
|
75
88
|
downVoted: boolean,
|
76
89
|
// The number of comment's downVotes
|
77
90
|
downVotes: number,
|
78
|
-
comments:
|
91
|
+
comments: Array< {
|
79
92
|
// The Comment's unique ID
|
80
93
|
id: string,
|
81
94
|
// The Comment's signed global id
|
@@ -91,33 +104,46 @@ export interface addCommentMutation {
|
|
91
104
|
// The creation date of the comment in relative format
|
92
105
|
formattedCreatedAt: string,
|
93
106
|
// The resource author
|
94
|
-
author: ({
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
107
|
+
author: ( {
|
108
|
+
// The author's name
|
109
|
+
name: string,
|
110
|
+
// The author's nickname
|
111
|
+
nickname: string,
|
112
|
+
// The author's avatar url
|
113
|
+
avatarUrl: string,
|
114
|
+
// The author's profile path
|
115
|
+
profilePath: string,
|
116
|
+
// Whether the author's account has been deleted or not
|
117
|
+
deleted: boolean,
|
118
|
+
// The author's badge icon
|
119
|
+
badge: string,
|
120
|
+
} | {
|
121
|
+
// The author's name
|
122
|
+
name: string,
|
123
|
+
// The author's nickname
|
124
|
+
nickname: string,
|
125
|
+
// The author's avatar url
|
126
|
+
avatarUrl: string,
|
127
|
+
// The author's profile path
|
128
|
+
profilePath: string,
|
129
|
+
// Whether the author's account has been deleted or not
|
130
|
+
deleted: boolean,
|
131
|
+
// The author's badge icon
|
132
|
+
badge: string,
|
133
|
+
} | {
|
134
|
+
// The author's name
|
135
|
+
name: string,
|
136
|
+
// The author's nickname
|
137
|
+
nickname: string,
|
138
|
+
// The author's avatar url
|
139
|
+
avatarUrl: string,
|
140
|
+
// The author's profile path
|
141
|
+
profilePath: string,
|
142
|
+
// Whether the author's account has been deleted or not
|
143
|
+
deleted: boolean,
|
144
|
+
// The author's badge icon
|
145
|
+
badge: string,
|
146
|
+
}
|
121
147
|
),
|
122
148
|
// Check if the commentable has comments
|
123
149
|
hasComments: boolean,
|
@@ -137,7 +163,7 @@ export interface addCommentMutation {
|
|
137
163
|
downVoted: boolean,
|
138
164
|
// The number of comment's downVotes
|
139
165
|
downVotes: number,
|
140
|
-
comments:
|
166
|
+
comments: Array< {
|
141
167
|
// The Comment's unique ID
|
142
168
|
id: string,
|
143
169
|
// The Comment's signed global id
|
@@ -153,33 +179,46 @@ export interface addCommentMutation {
|
|
153
179
|
// The creation date of the comment in relative format
|
154
180
|
formattedCreatedAt: string,
|
155
181
|
// The resource author
|
156
|
-
author: ({
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
182
|
+
author: ( {
|
183
|
+
// The author's name
|
184
|
+
name: string,
|
185
|
+
// The author's nickname
|
186
|
+
nickname: string,
|
187
|
+
// The author's avatar url
|
188
|
+
avatarUrl: string,
|
189
|
+
// The author's profile path
|
190
|
+
profilePath: string,
|
191
|
+
// Whether the author's account has been deleted or not
|
192
|
+
deleted: boolean,
|
193
|
+
// The author's badge icon
|
194
|
+
badge: string,
|
195
|
+
} | {
|
196
|
+
// The author's name
|
197
|
+
name: string,
|
198
|
+
// The author's nickname
|
199
|
+
nickname: string,
|
200
|
+
// The author's avatar url
|
201
|
+
avatarUrl: string,
|
202
|
+
// The author's profile path
|
203
|
+
profilePath: string,
|
204
|
+
// Whether the author's account has been deleted or not
|
205
|
+
deleted: boolean,
|
206
|
+
// The author's badge icon
|
207
|
+
badge: string,
|
208
|
+
} | {
|
209
|
+
// The author's name
|
210
|
+
name: string,
|
211
|
+
// The author's nickname
|
212
|
+
nickname: string,
|
213
|
+
// The author's avatar url
|
214
|
+
avatarUrl: string,
|
215
|
+
// The author's profile path
|
216
|
+
profilePath: string,
|
217
|
+
// Whether the author's account has been deleted or not
|
218
|
+
deleted: boolean,
|
219
|
+
// The author's badge icon
|
220
|
+
badge: string,
|
221
|
+
}
|
183
222
|
),
|
184
223
|
// Check if the commentable has comments
|
185
224
|
hasComments: boolean,
|
@@ -199,7 +238,7 @@ export interface addCommentMutation {
|
|
199
238
|
downVoted: boolean,
|
200
239
|
// The number of comment's downVotes
|
201
240
|
downVotes: number,
|
202
|
-
comments:
|
241
|
+
comments: Array< {
|
203
242
|
// The Comment's unique ID
|
204
243
|
id: string,
|
205
244
|
// The Comment's signed global id
|
@@ -215,33 +254,46 @@ export interface addCommentMutation {
|
|
215
254
|
// The creation date of the comment in relative format
|
216
255
|
formattedCreatedAt: string,
|
217
256
|
// The resource author
|
218
|
-
author: ({
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
257
|
+
author: ( {
|
258
|
+
// The author's name
|
259
|
+
name: string,
|
260
|
+
// The author's nickname
|
261
|
+
nickname: string,
|
262
|
+
// The author's avatar url
|
263
|
+
avatarUrl: string,
|
264
|
+
// The author's profile path
|
265
|
+
profilePath: string,
|
266
|
+
// Whether the author's account has been deleted or not
|
267
|
+
deleted: boolean,
|
268
|
+
// The author's badge icon
|
269
|
+
badge: string,
|
270
|
+
} | {
|
271
|
+
// The author's name
|
272
|
+
name: string,
|
273
|
+
// The author's nickname
|
274
|
+
nickname: string,
|
275
|
+
// The author's avatar url
|
276
|
+
avatarUrl: string,
|
277
|
+
// The author's profile path
|
278
|
+
profilePath: string,
|
279
|
+
// Whether the author's account has been deleted or not
|
280
|
+
deleted: boolean,
|
281
|
+
// The author's badge icon
|
282
|
+
badge: string,
|
283
|
+
} | {
|
284
|
+
// The author's name
|
285
|
+
name: string,
|
286
|
+
// The author's nickname
|
287
|
+
nickname: string,
|
288
|
+
// The author's avatar url
|
289
|
+
avatarUrl: string,
|
290
|
+
// The author's profile path
|
291
|
+
profilePath: string,
|
292
|
+
// Whether the author's account has been deleted or not
|
293
|
+
deleted: boolean,
|
294
|
+
// The author's badge icon
|
295
|
+
badge: string,
|
296
|
+
}
|
245
297
|
),
|
246
298
|
// Check if the commentable has comments
|
247
299
|
hasComments: boolean,
|
@@ -261,9 +313,9 @@ export interface addCommentMutation {
|
|
261
313
|
downVoted: boolean,
|
262
314
|
// The number of comment's downVotes
|
263
315
|
downVotes: number,
|
264
|
-
}>,
|
265
|
-
}>,
|
266
|
-
}>,
|
316
|
+
} >,
|
317
|
+
} >,
|
318
|
+
} >,
|
267
319
|
} | null,
|
268
320
|
} | null,
|
269
321
|
};
|
@@ -274,8 +326,8 @@ export interface DownVoteMutationVariables {
|
|
274
326
|
|
275
327
|
export interface DownVoteMutation {
|
276
328
|
// A comment
|
277
|
-
comment:
|
278
|
-
downVote:
|
329
|
+
comment: {
|
330
|
+
downVote: {
|
279
331
|
// The Comment's unique ID
|
280
332
|
id: string,
|
281
333
|
// The Comment's signed global id
|
@@ -291,69 +343,20 @@ export interface DownVoteMutation {
|
|
291
343
|
// The creation date of the comment in relative format
|
292
344
|
formattedCreatedAt: string,
|
293
345
|
// The resource author
|
294
|
-
author: ({
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
// The author's name
|
309
|
-
name: string,
|
310
|
-
// The author's nickname
|
311
|
-
nickname: string,
|
312
|
-
// The author's avatar url
|
313
|
-
avatarUrl: string,
|
314
|
-
// The author's profile path
|
315
|
-
profilePath: string,
|
316
|
-
// Whether the author's account has been deleted or not
|
317
|
-
deleted: boolean,
|
318
|
-
// The author's badge icon
|
319
|
-
badge: string,
|
320
|
-
}
|
321
|
-
),
|
322
|
-
// Check if the commentable has comments
|
323
|
-
hasComments: boolean,
|
324
|
-
// Whether the object can have new comments or not
|
325
|
-
acceptsNewComments: boolean,
|
326
|
-
// Check if the current user can comment
|
327
|
-
userAllowedToComment: boolean,
|
328
|
-
// The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
|
329
|
-
alignment: number | null,
|
330
|
-
// Check if the current user has reported the comment
|
331
|
-
alreadyReported: boolean,
|
332
|
-
// The number of comment's upVotes
|
333
|
-
upVotes: number,
|
334
|
-
// Check if the current user has upvoted the comment
|
335
|
-
upVoted: boolean,
|
336
|
-
// Check if the current user has downvoted the comment
|
337
|
-
downVoted: boolean,
|
338
|
-
// The number of comment's downVotes
|
339
|
-
downVotes: number,
|
340
|
-
comments: Array<{
|
341
|
-
// The Comment's unique ID
|
342
|
-
id: string,
|
343
|
-
// The Comment's signed global id
|
344
|
-
sgid: string,
|
345
|
-
// The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
|
346
|
-
type: string,
|
347
|
-
// The comment message
|
348
|
-
body: string,
|
349
|
-
// The comment message ready to display (it is expected to include HTML)
|
350
|
-
formattedBody: string,
|
351
|
-
// The creation date of the comment
|
352
|
-
createdAt: string,
|
353
|
-
// The creation date of the comment in relative format
|
354
|
-
formattedCreatedAt: string,
|
355
|
-
// The resource author
|
356
|
-
author: ({
|
346
|
+
author: ( {
|
347
|
+
// The author's name
|
348
|
+
name: string,
|
349
|
+
// The author's nickname
|
350
|
+
nickname: string,
|
351
|
+
// The author's avatar url
|
352
|
+
avatarUrl: string,
|
353
|
+
// The author's profile path
|
354
|
+
profilePath: string,
|
355
|
+
// Whether the author's account has been deleted or not
|
356
|
+
deleted: boolean,
|
357
|
+
// The author's badge icon
|
358
|
+
badge: string,
|
359
|
+
} | {
|
357
360
|
// The author's name
|
358
361
|
name: string,
|
359
362
|
// The author's nickname
|
@@ -380,6 +383,81 @@ export interface DownVoteMutation {
|
|
380
383
|
// The author's badge icon
|
381
384
|
badge: string,
|
382
385
|
}
|
386
|
+
),
|
387
|
+
// Check if the commentable has comments
|
388
|
+
hasComments: boolean,
|
389
|
+
// Whether the object can have new comments or not
|
390
|
+
acceptsNewComments: boolean,
|
391
|
+
// Check if the current user can comment
|
392
|
+
userAllowedToComment: boolean,
|
393
|
+
// The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
|
394
|
+
alignment: number | null,
|
395
|
+
// Check if the current user has reported the comment
|
396
|
+
alreadyReported: boolean,
|
397
|
+
// The number of comment's upVotes
|
398
|
+
upVotes: number,
|
399
|
+
// Check if the current user has upvoted the comment
|
400
|
+
upVoted: boolean,
|
401
|
+
// Check if the current user has downvoted the comment
|
402
|
+
downVoted: boolean,
|
403
|
+
// The number of comment's downVotes
|
404
|
+
downVotes: number,
|
405
|
+
comments: Array< {
|
406
|
+
// The Comment's unique ID
|
407
|
+
id: string,
|
408
|
+
// The Comment's signed global id
|
409
|
+
sgid: string,
|
410
|
+
// The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
|
411
|
+
type: string,
|
412
|
+
// The comment message
|
413
|
+
body: string,
|
414
|
+
// The comment message ready to display (it is expected to include HTML)
|
415
|
+
formattedBody: string,
|
416
|
+
// The creation date of the comment
|
417
|
+
createdAt: string,
|
418
|
+
// The creation date of the comment in relative format
|
419
|
+
formattedCreatedAt: string,
|
420
|
+
// The resource author
|
421
|
+
author: ( {
|
422
|
+
// The author's name
|
423
|
+
name: string,
|
424
|
+
// The author's nickname
|
425
|
+
nickname: string,
|
426
|
+
// The author's avatar url
|
427
|
+
avatarUrl: string,
|
428
|
+
// The author's profile path
|
429
|
+
profilePath: string,
|
430
|
+
// Whether the author's account has been deleted or not
|
431
|
+
deleted: boolean,
|
432
|
+
// The author's badge icon
|
433
|
+
badge: string,
|
434
|
+
} | {
|
435
|
+
// The author's name
|
436
|
+
name: string,
|
437
|
+
// The author's nickname
|
438
|
+
nickname: string,
|
439
|
+
// The author's avatar url
|
440
|
+
avatarUrl: string,
|
441
|
+
// The author's profile path
|
442
|
+
profilePath: string,
|
443
|
+
// Whether the author's account has been deleted or not
|
444
|
+
deleted: boolean,
|
445
|
+
// The author's badge icon
|
446
|
+
badge: string,
|
447
|
+
} | {
|
448
|
+
// The author's name
|
449
|
+
name: string,
|
450
|
+
// The author's nickname
|
451
|
+
nickname: string,
|
452
|
+
// The author's avatar url
|
453
|
+
avatarUrl: string,
|
454
|
+
// The author's profile path
|
455
|
+
profilePath: string,
|
456
|
+
// Whether the author's account has been deleted or not
|
457
|
+
deleted: boolean,
|
458
|
+
// The author's badge icon
|
459
|
+
badge: string,
|
460
|
+
}
|
383
461
|
),
|
384
462
|
// Check if the commentable has comments
|
385
463
|
hasComments: boolean,
|
@@ -399,7 +477,7 @@ export interface DownVoteMutation {
|
|
399
477
|
downVoted: boolean,
|
400
478
|
// The number of comment's downVotes
|
401
479
|
downVotes: number,
|
402
|
-
comments:
|
480
|
+
comments: Array< {
|
403
481
|
// The Comment's unique ID
|
404
482
|
id: string,
|
405
483
|
// The Comment's signed global id
|
@@ -415,33 +493,46 @@ export interface DownVoteMutation {
|
|
415
493
|
// The creation date of the comment in relative format
|
416
494
|
formattedCreatedAt: string,
|
417
495
|
// The resource author
|
418
|
-
author: ({
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
496
|
+
author: ( {
|
497
|
+
// The author's name
|
498
|
+
name: string,
|
499
|
+
// The author's nickname
|
500
|
+
nickname: string,
|
501
|
+
// The author's avatar url
|
502
|
+
avatarUrl: string,
|
503
|
+
// The author's profile path
|
504
|
+
profilePath: string,
|
505
|
+
// Whether the author's account has been deleted or not
|
506
|
+
deleted: boolean,
|
507
|
+
// The author's badge icon
|
508
|
+
badge: string,
|
509
|
+
} | {
|
510
|
+
// The author's name
|
511
|
+
name: string,
|
512
|
+
// The author's nickname
|
513
|
+
nickname: string,
|
514
|
+
// The author's avatar url
|
515
|
+
avatarUrl: string,
|
516
|
+
// The author's profile path
|
517
|
+
profilePath: string,
|
518
|
+
// Whether the author's account has been deleted or not
|
519
|
+
deleted: boolean,
|
520
|
+
// The author's badge icon
|
521
|
+
badge: string,
|
522
|
+
} | {
|
523
|
+
// The author's name
|
524
|
+
name: string,
|
525
|
+
// The author's nickname
|
526
|
+
nickname: string,
|
527
|
+
// The author's avatar url
|
528
|
+
avatarUrl: string,
|
529
|
+
// The author's profile path
|
530
|
+
profilePath: string,
|
531
|
+
// Whether the author's account has been deleted or not
|
532
|
+
deleted: boolean,
|
533
|
+
// The author's badge icon
|
534
|
+
badge: string,
|
535
|
+
}
|
445
536
|
),
|
446
537
|
// Check if the commentable has comments
|
447
538
|
hasComments: boolean,
|
@@ -461,7 +552,7 @@ export interface DownVoteMutation {
|
|
461
552
|
downVoted: boolean,
|
462
553
|
// The number of comment's downVotes
|
463
554
|
downVotes: number,
|
464
|
-
comments:
|
555
|
+
comments: Array< {
|
465
556
|
// The Comment's unique ID
|
466
557
|
id: string,
|
467
558
|
// The Comment's signed global id
|
@@ -477,33 +568,46 @@ export interface DownVoteMutation {
|
|
477
568
|
// The creation date of the comment in relative format
|
478
569
|
formattedCreatedAt: string,
|
479
570
|
// The resource author
|
480
|
-
author: ({
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
571
|
+
author: ( {
|
572
|
+
// The author's name
|
573
|
+
name: string,
|
574
|
+
// The author's nickname
|
575
|
+
nickname: string,
|
576
|
+
// The author's avatar url
|
577
|
+
avatarUrl: string,
|
578
|
+
// The author's profile path
|
579
|
+
profilePath: string,
|
580
|
+
// Whether the author's account has been deleted or not
|
581
|
+
deleted: boolean,
|
582
|
+
// The author's badge icon
|
583
|
+
badge: string,
|
584
|
+
} | {
|
585
|
+
// The author's name
|
586
|
+
name: string,
|
587
|
+
// The author's nickname
|
588
|
+
nickname: string,
|
589
|
+
// The author's avatar url
|
590
|
+
avatarUrl: string,
|
591
|
+
// The author's profile path
|
592
|
+
profilePath: string,
|
593
|
+
// Whether the author's account has been deleted or not
|
594
|
+
deleted: boolean,
|
595
|
+
// The author's badge icon
|
596
|
+
badge: string,
|
597
|
+
} | {
|
598
|
+
// The author's name
|
599
|
+
name: string,
|
600
|
+
// The author's nickname
|
601
|
+
nickname: string,
|
602
|
+
// The author's avatar url
|
603
|
+
avatarUrl: string,
|
604
|
+
// The author's profile path
|
605
|
+
profilePath: string,
|
606
|
+
// Whether the author's account has been deleted or not
|
607
|
+
deleted: boolean,
|
608
|
+
// The author's badge icon
|
609
|
+
badge: string,
|
610
|
+
}
|
507
611
|
),
|
508
612
|
// Check if the commentable has comments
|
509
613
|
hasComments: boolean,
|
@@ -523,9 +627,9 @@ export interface DownVoteMutation {
|
|
523
627
|
downVoted: boolean,
|
524
628
|
// The number of comment's downVotes
|
525
629
|
downVotes: number,
|
526
|
-
}>,
|
527
|
-
}>,
|
528
|
-
}>,
|
630
|
+
} >,
|
631
|
+
} >,
|
632
|
+
} >,
|
529
633
|
},
|
530
634
|
} | null,
|
531
635
|
};
|
@@ -536,8 +640,8 @@ export interface UpVoteMutationVariables {
|
|
536
640
|
|
537
641
|
export interface UpVoteMutation {
|
538
642
|
// A comment
|
539
|
-
comment:
|
540
|
-
upVote:
|
643
|
+
comment: {
|
644
|
+
upVote: {
|
541
645
|
// The Comment's unique ID
|
542
646
|
id: string,
|
543
647
|
// The Comment's signed global id
|
@@ -553,33 +657,46 @@ export interface UpVoteMutation {
|
|
553
657
|
// The creation date of the comment in relative format
|
554
658
|
formattedCreatedAt: string,
|
555
659
|
// The resource author
|
556
|
-
author: ({
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
660
|
+
author: ( {
|
661
|
+
// The author's name
|
662
|
+
name: string,
|
663
|
+
// The author's nickname
|
664
|
+
nickname: string,
|
665
|
+
// The author's avatar url
|
666
|
+
avatarUrl: string,
|
667
|
+
// The author's profile path
|
668
|
+
profilePath: string,
|
669
|
+
// Whether the author's account has been deleted or not
|
670
|
+
deleted: boolean,
|
671
|
+
// The author's badge icon
|
672
|
+
badge: string,
|
673
|
+
} | {
|
674
|
+
// The author's name
|
675
|
+
name: string,
|
676
|
+
// The author's nickname
|
677
|
+
nickname: string,
|
678
|
+
// The author's avatar url
|
679
|
+
avatarUrl: string,
|
680
|
+
// The author's profile path
|
681
|
+
profilePath: string,
|
682
|
+
// Whether the author's account has been deleted or not
|
683
|
+
deleted: boolean,
|
684
|
+
// The author's badge icon
|
685
|
+
badge: string,
|
686
|
+
} | {
|
687
|
+
// The author's name
|
688
|
+
name: string,
|
689
|
+
// The author's nickname
|
690
|
+
nickname: string,
|
691
|
+
// The author's avatar url
|
692
|
+
avatarUrl: string,
|
693
|
+
// The author's profile path
|
694
|
+
profilePath: string,
|
695
|
+
// Whether the author's account has been deleted or not
|
696
|
+
deleted: boolean,
|
697
|
+
// The author's badge icon
|
698
|
+
badge: string,
|
699
|
+
}
|
583
700
|
),
|
584
701
|
// Check if the commentable has comments
|
585
702
|
hasComments: boolean,
|
@@ -599,7 +716,7 @@ export interface UpVoteMutation {
|
|
599
716
|
downVoted: boolean,
|
600
717
|
// The number of comment's downVotes
|
601
718
|
downVotes: number,
|
602
|
-
comments:
|
719
|
+
comments: Array< {
|
603
720
|
// The Comment's unique ID
|
604
721
|
id: string,
|
605
722
|
// The Comment's signed global id
|
@@ -615,33 +732,46 @@ export interface UpVoteMutation {
|
|
615
732
|
// The creation date of the comment in relative format
|
616
733
|
formattedCreatedAt: string,
|
617
734
|
// The resource author
|
618
|
-
author: ({
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
735
|
+
author: ( {
|
736
|
+
// The author's name
|
737
|
+
name: string,
|
738
|
+
// The author's nickname
|
739
|
+
nickname: string,
|
740
|
+
// The author's avatar url
|
741
|
+
avatarUrl: string,
|
742
|
+
// The author's profile path
|
743
|
+
profilePath: string,
|
744
|
+
// Whether the author's account has been deleted or not
|
745
|
+
deleted: boolean,
|
746
|
+
// The author's badge icon
|
747
|
+
badge: string,
|
748
|
+
} | {
|
749
|
+
// The author's name
|
750
|
+
name: string,
|
751
|
+
// The author's nickname
|
752
|
+
nickname: string,
|
753
|
+
// The author's avatar url
|
754
|
+
avatarUrl: string,
|
755
|
+
// The author's profile path
|
756
|
+
profilePath: string,
|
757
|
+
// Whether the author's account has been deleted or not
|
758
|
+
deleted: boolean,
|
759
|
+
// The author's badge icon
|
760
|
+
badge: string,
|
761
|
+
} | {
|
762
|
+
// The author's name
|
763
|
+
name: string,
|
764
|
+
// The author's nickname
|
765
|
+
nickname: string,
|
766
|
+
// The author's avatar url
|
767
|
+
avatarUrl: string,
|
768
|
+
// The author's profile path
|
769
|
+
profilePath: string,
|
770
|
+
// Whether the author's account has been deleted or not
|
771
|
+
deleted: boolean,
|
772
|
+
// The author's badge icon
|
773
|
+
badge: string,
|
774
|
+
}
|
645
775
|
),
|
646
776
|
// Check if the commentable has comments
|
647
777
|
hasComments: boolean,
|
@@ -661,7 +791,7 @@ export interface UpVoteMutation {
|
|
661
791
|
downVoted: boolean,
|
662
792
|
// The number of comment's downVotes
|
663
793
|
downVotes: number,
|
664
|
-
comments:
|
794
|
+
comments: Array< {
|
665
795
|
// The Comment's unique ID
|
666
796
|
id: string,
|
667
797
|
// The Comment's signed global id
|
@@ -677,33 +807,46 @@ export interface UpVoteMutation {
|
|
677
807
|
// The creation date of the comment in relative format
|
678
808
|
formattedCreatedAt: string,
|
679
809
|
// The resource author
|
680
|
-
author: ({
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
810
|
+
author: ( {
|
811
|
+
// The author's name
|
812
|
+
name: string,
|
813
|
+
// The author's nickname
|
814
|
+
nickname: string,
|
815
|
+
// The author's avatar url
|
816
|
+
avatarUrl: string,
|
817
|
+
// The author's profile path
|
818
|
+
profilePath: string,
|
819
|
+
// Whether the author's account has been deleted or not
|
820
|
+
deleted: boolean,
|
821
|
+
// The author's badge icon
|
822
|
+
badge: string,
|
823
|
+
} | {
|
824
|
+
// The author's name
|
825
|
+
name: string,
|
826
|
+
// The author's nickname
|
827
|
+
nickname: string,
|
828
|
+
// The author's avatar url
|
829
|
+
avatarUrl: string,
|
830
|
+
// The author's profile path
|
831
|
+
profilePath: string,
|
832
|
+
// Whether the author's account has been deleted or not
|
833
|
+
deleted: boolean,
|
834
|
+
// The author's badge icon
|
835
|
+
badge: string,
|
836
|
+
} | {
|
837
|
+
// The author's name
|
838
|
+
name: string,
|
839
|
+
// The author's nickname
|
840
|
+
nickname: string,
|
841
|
+
// The author's avatar url
|
842
|
+
avatarUrl: string,
|
843
|
+
// The author's profile path
|
844
|
+
profilePath: string,
|
845
|
+
// Whether the author's account has been deleted or not
|
846
|
+
deleted: boolean,
|
847
|
+
// The author's badge icon
|
848
|
+
badge: string,
|
849
|
+
}
|
707
850
|
),
|
708
851
|
// Check if the commentable has comments
|
709
852
|
hasComments: boolean,
|
@@ -723,7 +866,7 @@ export interface UpVoteMutation {
|
|
723
866
|
downVoted: boolean,
|
724
867
|
// The number of comment's downVotes
|
725
868
|
downVotes: number,
|
726
|
-
comments:
|
869
|
+
comments: Array< {
|
727
870
|
// The Comment's unique ID
|
728
871
|
id: string,
|
729
872
|
// The Comment's signed global id
|
@@ -739,33 +882,46 @@ export interface UpVoteMutation {
|
|
739
882
|
// The creation date of the comment in relative format
|
740
883
|
formattedCreatedAt: string,
|
741
884
|
// The resource author
|
742
|
-
author: ({
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
885
|
+
author: ( {
|
886
|
+
// The author's name
|
887
|
+
name: string,
|
888
|
+
// The author's nickname
|
889
|
+
nickname: string,
|
890
|
+
// The author's avatar url
|
891
|
+
avatarUrl: string,
|
892
|
+
// The author's profile path
|
893
|
+
profilePath: string,
|
894
|
+
// Whether the author's account has been deleted or not
|
895
|
+
deleted: boolean,
|
896
|
+
// The author's badge icon
|
897
|
+
badge: string,
|
898
|
+
} | {
|
899
|
+
// The author's name
|
900
|
+
name: string,
|
901
|
+
// The author's nickname
|
902
|
+
nickname: string,
|
903
|
+
// The author's avatar url
|
904
|
+
avatarUrl: string,
|
905
|
+
// The author's profile path
|
906
|
+
profilePath: string,
|
907
|
+
// Whether the author's account has been deleted or not
|
908
|
+
deleted: boolean,
|
909
|
+
// The author's badge icon
|
910
|
+
badge: string,
|
911
|
+
} | {
|
912
|
+
// The author's name
|
913
|
+
name: string,
|
914
|
+
// The author's nickname
|
915
|
+
nickname: string,
|
916
|
+
// The author's avatar url
|
917
|
+
avatarUrl: string,
|
918
|
+
// The author's profile path
|
919
|
+
profilePath: string,
|
920
|
+
// Whether the author's account has been deleted or not
|
921
|
+
deleted: boolean,
|
922
|
+
// The author's badge icon
|
923
|
+
badge: string,
|
924
|
+
}
|
769
925
|
),
|
770
926
|
// Check if the commentable has comments
|
771
927
|
hasComments: boolean,
|
@@ -785,9 +941,9 @@ export interface UpVoteMutation {
|
|
785
941
|
downVoted: boolean,
|
786
942
|
// The number of comment's downVotes
|
787
943
|
downVotes: number,
|
788
|
-
}>,
|
789
|
-
}>,
|
790
|
-
}>,
|
944
|
+
} >,
|
945
|
+
} >,
|
946
|
+
} >,
|
791
947
|
},
|
792
948
|
} | null,
|
793
949
|
};
|
@@ -801,9 +957,9 @@ export interface GetCommentsQueryVariables {
|
|
801
957
|
|
802
958
|
export interface GetCommentsQuery {
|
803
959
|
// Return's information about the logged in user
|
804
|
-
session:
|
960
|
+
session: {
|
805
961
|
// The current user
|
806
|
-
user:
|
962
|
+
user: {
|
807
963
|
// The user's name
|
808
964
|
name: string,
|
809
965
|
// The user's nickname
|
@@ -814,14 +970,14 @@ export interface GetCommentsQuery {
|
|
814
970
|
organizationName: string,
|
815
971
|
} | null,
|
816
972
|
// The current user verified user groups
|
817
|
-
verifiedUserGroups:
|
973
|
+
verifiedUserGroups: Array< {
|
818
974
|
// The user group's id
|
819
975
|
id: string,
|
820
976
|
// The user group's name
|
821
977
|
name: string,
|
822
|
-
}>,
|
978
|
+
} >,
|
823
979
|
} | null,
|
824
|
-
commentable:
|
980
|
+
commentable: {
|
825
981
|
// Whether the object can have new comments or not
|
826
982
|
acceptsNewComments: boolean,
|
827
983
|
// Check if the current user can comment
|
@@ -832,7 +988,7 @@ export interface GetCommentsQuery {
|
|
832
988
|
commentsHaveVotes: boolean,
|
833
989
|
// The number of comments in all levels this resource holds
|
834
990
|
totalCommentsCount: number,
|
835
|
-
comments:
|
991
|
+
comments: Array< {
|
836
992
|
// The Comment's unique ID
|
837
993
|
id: string,
|
838
994
|
// Check if the commentable has comments
|
@@ -850,33 +1006,46 @@ export interface GetCommentsQuery {
|
|
850
1006
|
// The creation date of the comment in relative format
|
851
1007
|
formattedCreatedAt: string,
|
852
1008
|
// The resource author
|
853
|
-
author: ({
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
1009
|
+
author: ( {
|
1010
|
+
// The author's name
|
1011
|
+
name: string,
|
1012
|
+
// The author's nickname
|
1013
|
+
nickname: string,
|
1014
|
+
// The author's avatar url
|
1015
|
+
avatarUrl: string,
|
1016
|
+
// The author's profile path
|
1017
|
+
profilePath: string,
|
1018
|
+
// Whether the author's account has been deleted or not
|
1019
|
+
deleted: boolean,
|
1020
|
+
// The author's badge icon
|
1021
|
+
badge: string,
|
1022
|
+
} | {
|
1023
|
+
// The author's name
|
1024
|
+
name: string,
|
1025
|
+
// The author's nickname
|
1026
|
+
nickname: string,
|
1027
|
+
// The author's avatar url
|
1028
|
+
avatarUrl: string,
|
1029
|
+
// The author's profile path
|
1030
|
+
profilePath: string,
|
1031
|
+
// Whether the author's account has been deleted or not
|
1032
|
+
deleted: boolean,
|
1033
|
+
// The author's badge icon
|
1034
|
+
badge: string,
|
1035
|
+
} | {
|
1036
|
+
// The author's name
|
1037
|
+
name: string,
|
1038
|
+
// The author's nickname
|
1039
|
+
nickname: string,
|
1040
|
+
// The author's avatar url
|
1041
|
+
avatarUrl: string,
|
1042
|
+
// The author's profile path
|
1043
|
+
profilePath: string,
|
1044
|
+
// Whether the author's account has been deleted or not
|
1045
|
+
deleted: boolean,
|
1046
|
+
// The author's badge icon
|
1047
|
+
badge: string,
|
1048
|
+
}
|
880
1049
|
),
|
881
1050
|
// Whether the object can have new comments or not
|
882
1051
|
acceptsNewComments: boolean,
|
@@ -894,7 +1063,7 @@ export interface GetCommentsQuery {
|
|
894
1063
|
downVoted: boolean,
|
895
1064
|
// The number of comment's downVotes
|
896
1065
|
downVotes: number,
|
897
|
-
comments:
|
1066
|
+
comments: Array< {
|
898
1067
|
// The Comment's unique ID
|
899
1068
|
id: string,
|
900
1069
|
// The Comment's signed global id
|
@@ -910,33 +1079,46 @@ export interface GetCommentsQuery {
|
|
910
1079
|
// The creation date of the comment in relative format
|
911
1080
|
formattedCreatedAt: string,
|
912
1081
|
// The resource author
|
913
|
-
author: ({
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
1082
|
+
author: ( {
|
1083
|
+
// The author's name
|
1084
|
+
name: string,
|
1085
|
+
// The author's nickname
|
1086
|
+
nickname: string,
|
1087
|
+
// The author's avatar url
|
1088
|
+
avatarUrl: string,
|
1089
|
+
// The author's profile path
|
1090
|
+
profilePath: string,
|
1091
|
+
// Whether the author's account has been deleted or not
|
1092
|
+
deleted: boolean,
|
1093
|
+
// The author's badge icon
|
1094
|
+
badge: string,
|
1095
|
+
} | {
|
1096
|
+
// The author's name
|
1097
|
+
name: string,
|
1098
|
+
// The author's nickname
|
1099
|
+
nickname: string,
|
1100
|
+
// The author's avatar url
|
1101
|
+
avatarUrl: string,
|
1102
|
+
// The author's profile path
|
1103
|
+
profilePath: string,
|
1104
|
+
// Whether the author's account has been deleted or not
|
1105
|
+
deleted: boolean,
|
1106
|
+
// The author's badge icon
|
1107
|
+
badge: string,
|
1108
|
+
} | {
|
1109
|
+
// The author's name
|
1110
|
+
name: string,
|
1111
|
+
// The author's nickname
|
1112
|
+
nickname: string,
|
1113
|
+
// The author's avatar url
|
1114
|
+
avatarUrl: string,
|
1115
|
+
// The author's profile path
|
1116
|
+
profilePath: string,
|
1117
|
+
// Whether the author's account has been deleted or not
|
1118
|
+
deleted: boolean,
|
1119
|
+
// The author's badge icon
|
1120
|
+
badge: string,
|
1121
|
+
}
|
940
1122
|
),
|
941
1123
|
// Check if the commentable has comments
|
942
1124
|
hasComments: boolean,
|
@@ -956,7 +1138,7 @@ export interface GetCommentsQuery {
|
|
956
1138
|
downVoted: boolean,
|
957
1139
|
// The number of comment's downVotes
|
958
1140
|
downVotes: number,
|
959
|
-
comments:
|
1141
|
+
comments: Array< {
|
960
1142
|
// The Comment's unique ID
|
961
1143
|
id: string,
|
962
1144
|
// The Comment's signed global id
|
@@ -972,33 +1154,46 @@ export interface GetCommentsQuery {
|
|
972
1154
|
// The creation date of the comment in relative format
|
973
1155
|
formattedCreatedAt: string,
|
974
1156
|
// The resource author
|
975
|
-
author: ({
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1157
|
+
author: ( {
|
1158
|
+
// The author's name
|
1159
|
+
name: string,
|
1160
|
+
// The author's nickname
|
1161
|
+
nickname: string,
|
1162
|
+
// The author's avatar url
|
1163
|
+
avatarUrl: string,
|
1164
|
+
// The author's profile path
|
1165
|
+
profilePath: string,
|
1166
|
+
// Whether the author's account has been deleted or not
|
1167
|
+
deleted: boolean,
|
1168
|
+
// The author's badge icon
|
1169
|
+
badge: string,
|
1170
|
+
} | {
|
1171
|
+
// The author's name
|
1172
|
+
name: string,
|
1173
|
+
// The author's nickname
|
1174
|
+
nickname: string,
|
1175
|
+
// The author's avatar url
|
1176
|
+
avatarUrl: string,
|
1177
|
+
// The author's profile path
|
1178
|
+
profilePath: string,
|
1179
|
+
// Whether the author's account has been deleted or not
|
1180
|
+
deleted: boolean,
|
1181
|
+
// The author's badge icon
|
1182
|
+
badge: string,
|
1183
|
+
} | {
|
1184
|
+
// The author's name
|
1185
|
+
name: string,
|
1186
|
+
// The author's nickname
|
1187
|
+
nickname: string,
|
1188
|
+
// The author's avatar url
|
1189
|
+
avatarUrl: string,
|
1190
|
+
// The author's profile path
|
1191
|
+
profilePath: string,
|
1192
|
+
// Whether the author's account has been deleted or not
|
1193
|
+
deleted: boolean,
|
1194
|
+
// The author's badge icon
|
1195
|
+
badge: string,
|
1196
|
+
}
|
1002
1197
|
),
|
1003
1198
|
// Check if the commentable has comments
|
1004
1199
|
hasComments: boolean,
|
@@ -1018,7 +1213,7 @@ export interface GetCommentsQuery {
|
|
1018
1213
|
downVoted: boolean,
|
1019
1214
|
// The number of comment's downVotes
|
1020
1215
|
downVotes: number,
|
1021
|
-
comments:
|
1216
|
+
comments: Array< {
|
1022
1217
|
// The Comment's unique ID
|
1023
1218
|
id: string,
|
1024
1219
|
// The Comment's signed global id
|
@@ -1034,33 +1229,46 @@ export interface GetCommentsQuery {
|
|
1034
1229
|
// The creation date of the comment in relative format
|
1035
1230
|
formattedCreatedAt: string,
|
1036
1231
|
// The resource author
|
1037
|
-
author: ({
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1232
|
+
author: ( {
|
1233
|
+
// The author's name
|
1234
|
+
name: string,
|
1235
|
+
// The author's nickname
|
1236
|
+
nickname: string,
|
1237
|
+
// The author's avatar url
|
1238
|
+
avatarUrl: string,
|
1239
|
+
// The author's profile path
|
1240
|
+
profilePath: string,
|
1241
|
+
// Whether the author's account has been deleted or not
|
1242
|
+
deleted: boolean,
|
1243
|
+
// The author's badge icon
|
1244
|
+
badge: string,
|
1245
|
+
} | {
|
1246
|
+
// The author's name
|
1247
|
+
name: string,
|
1248
|
+
// The author's nickname
|
1249
|
+
nickname: string,
|
1250
|
+
// The author's avatar url
|
1251
|
+
avatarUrl: string,
|
1252
|
+
// The author's profile path
|
1253
|
+
profilePath: string,
|
1254
|
+
// Whether the author's account has been deleted or not
|
1255
|
+
deleted: boolean,
|
1256
|
+
// The author's badge icon
|
1257
|
+
badge: string,
|
1258
|
+
} | {
|
1259
|
+
// The author's name
|
1260
|
+
name: string,
|
1261
|
+
// The author's nickname
|
1262
|
+
nickname: string,
|
1263
|
+
// The author's avatar url
|
1264
|
+
avatarUrl: string,
|
1265
|
+
// The author's profile path
|
1266
|
+
profilePath: string,
|
1267
|
+
// Whether the author's account has been deleted or not
|
1268
|
+
deleted: boolean,
|
1269
|
+
// The author's badge icon
|
1270
|
+
badge: string,
|
1271
|
+
}
|
1064
1272
|
),
|
1065
1273
|
// Check if the commentable has comments
|
1066
1274
|
hasComments: boolean,
|
@@ -1080,10 +1288,10 @@ export interface GetCommentsQuery {
|
|
1080
1288
|
downVoted: boolean,
|
1081
1289
|
// The number of comment's downVotes
|
1082
1290
|
downVotes: number,
|
1083
|
-
}>,
|
1084
|
-
}>,
|
1085
|
-
}>,
|
1086
|
-
}>,
|
1291
|
+
} >,
|
1292
|
+
} >,
|
1293
|
+
} >,
|
1294
|
+
} >,
|
1087
1295
|
// The commentable's ID
|
1088
1296
|
id: string,
|
1089
1297
|
// The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
|
@@ -1100,12 +1308,12 @@ export interface AddCommentFormCommentableFragment {
|
|
1100
1308
|
|
1101
1309
|
export interface AddCommentFormSessionFragment {
|
1102
1310
|
// The current user verified user groups
|
1103
|
-
verifiedUserGroups:
|
1311
|
+
verifiedUserGroups: Array< {
|
1104
1312
|
// The user group's id
|
1105
1313
|
id: string,
|
1106
1314
|
// The user group's name
|
1107
1315
|
name: string,
|
1108
|
-
}>,
|
1316
|
+
} >,
|
1109
1317
|
};
|
1110
1318
|
|
1111
1319
|
export interface CommentFragment {
|
@@ -1123,34 +1331,47 @@ export interface CommentFragment {
|
|
1123
1331
|
createdAt: string,
|
1124
1332
|
// The creation date of the comment in relative format
|
1125
1333
|
formattedCreatedAt: string,
|
1126
|
-
// The resource author
|
1127
|
-
author: ({
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1334
|
+
// The resource author
|
1335
|
+
author: ( {
|
1336
|
+
// The author's name
|
1337
|
+
name: string,
|
1338
|
+
// The author's nickname
|
1339
|
+
nickname: string,
|
1340
|
+
// The author's avatar url
|
1341
|
+
avatarUrl: string,
|
1342
|
+
// The author's profile path
|
1343
|
+
profilePath: string,
|
1344
|
+
// Whether the author's account has been deleted or not
|
1345
|
+
deleted: boolean,
|
1346
|
+
// The author's badge icon
|
1347
|
+
badge: string,
|
1348
|
+
} | {
|
1349
|
+
// The author's name
|
1350
|
+
name: string,
|
1351
|
+
// The author's nickname
|
1352
|
+
nickname: string,
|
1353
|
+
// The author's avatar url
|
1354
|
+
avatarUrl: string,
|
1355
|
+
// The author's profile path
|
1356
|
+
profilePath: string,
|
1357
|
+
// Whether the author's account has been deleted or not
|
1358
|
+
deleted: boolean,
|
1359
|
+
// The author's badge icon
|
1360
|
+
badge: string,
|
1361
|
+
} | {
|
1362
|
+
// The author's name
|
1363
|
+
name: string,
|
1364
|
+
// The author's nickname
|
1365
|
+
nickname: string,
|
1366
|
+
// The author's avatar url
|
1367
|
+
avatarUrl: string,
|
1368
|
+
// The author's profile path
|
1369
|
+
profilePath: string,
|
1370
|
+
// Whether the author's account has been deleted or not
|
1371
|
+
deleted: boolean,
|
1372
|
+
// The author's badge icon
|
1373
|
+
badge: string,
|
1374
|
+
}
|
1154
1375
|
),
|
1155
1376
|
// Check if the commentable has comments
|
1156
1377
|
hasComments: boolean,
|
@@ -1170,7 +1391,7 @@ export interface CommentFragment {
|
|
1170
1391
|
downVoted: boolean,
|
1171
1392
|
// The number of comment's downVotes
|
1172
1393
|
downVotes: number,
|
1173
|
-
comments:
|
1394
|
+
comments: Array< {
|
1174
1395
|
// The Comment's unique ID
|
1175
1396
|
id: string,
|
1176
1397
|
// The Comment's signed global id
|
@@ -1186,33 +1407,46 @@ export interface CommentFragment {
|
|
1186
1407
|
// The creation date of the comment in relative format
|
1187
1408
|
formattedCreatedAt: string,
|
1188
1409
|
// The resource author
|
1189
|
-
author: ({
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1410
|
+
author: ( {
|
1411
|
+
// The author's name
|
1412
|
+
name: string,
|
1413
|
+
// The author's nickname
|
1414
|
+
nickname: string,
|
1415
|
+
// The author's avatar url
|
1416
|
+
avatarUrl: string,
|
1417
|
+
// The author's profile path
|
1418
|
+
profilePath: string,
|
1419
|
+
// Whether the author's account has been deleted or not
|
1420
|
+
deleted: boolean,
|
1421
|
+
// The author's badge icon
|
1422
|
+
badge: string,
|
1423
|
+
} | {
|
1424
|
+
// The author's name
|
1425
|
+
name: string,
|
1426
|
+
// The author's nickname
|
1427
|
+
nickname: string,
|
1428
|
+
// The author's avatar url
|
1429
|
+
avatarUrl: string,
|
1430
|
+
// The author's profile path
|
1431
|
+
profilePath: string,
|
1432
|
+
// Whether the author's account has been deleted or not
|
1433
|
+
deleted: boolean,
|
1434
|
+
// The author's badge icon
|
1435
|
+
badge: string,
|
1436
|
+
} | {
|
1437
|
+
// The author's name
|
1438
|
+
name: string,
|
1439
|
+
// The author's nickname
|
1440
|
+
nickname: string,
|
1441
|
+
// The author's avatar url
|
1442
|
+
avatarUrl: string,
|
1443
|
+
// The author's profile path
|
1444
|
+
profilePath: string,
|
1445
|
+
// Whether the author's account has been deleted or not
|
1446
|
+
deleted: boolean,
|
1447
|
+
// The author's badge icon
|
1448
|
+
badge: string,
|
1449
|
+
}
|
1216
1450
|
),
|
1217
1451
|
// Check if the commentable has comments
|
1218
1452
|
hasComments: boolean,
|
@@ -1232,7 +1466,7 @@ export interface CommentFragment {
|
|
1232
1466
|
downVoted: boolean,
|
1233
1467
|
// The number of comment's downVotes
|
1234
1468
|
downVotes: number,
|
1235
|
-
comments:
|
1469
|
+
comments: Array< {
|
1236
1470
|
// The Comment's unique ID
|
1237
1471
|
id: string,
|
1238
1472
|
// The Comment's signed global id
|
@@ -1248,33 +1482,46 @@ export interface CommentFragment {
|
|
1248
1482
|
// The creation date of the comment in relative format
|
1249
1483
|
formattedCreatedAt: string,
|
1250
1484
|
// The resource author
|
1251
|
-
author: ({
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1485
|
+
author: ( {
|
1486
|
+
// The author's name
|
1487
|
+
name: string,
|
1488
|
+
// The author's nickname
|
1489
|
+
nickname: string,
|
1490
|
+
// The author's avatar url
|
1491
|
+
avatarUrl: string,
|
1492
|
+
// The author's profile path
|
1493
|
+
profilePath: string,
|
1494
|
+
// Whether the author's account has been deleted or not
|
1495
|
+
deleted: boolean,
|
1496
|
+
// The author's badge icon
|
1497
|
+
badge: string,
|
1498
|
+
} | {
|
1499
|
+
// The author's name
|
1500
|
+
name: string,
|
1501
|
+
// The author's nickname
|
1502
|
+
nickname: string,
|
1503
|
+
// The author's avatar url
|
1504
|
+
avatarUrl: string,
|
1505
|
+
// The author's profile path
|
1506
|
+
profilePath: string,
|
1507
|
+
// Whether the author's account has been deleted or not
|
1508
|
+
deleted: boolean,
|
1509
|
+
// The author's badge icon
|
1510
|
+
badge: string,
|
1511
|
+
} | {
|
1512
|
+
// The author's name
|
1513
|
+
name: string,
|
1514
|
+
// The author's nickname
|
1515
|
+
nickname: string,
|
1516
|
+
// The author's avatar url
|
1517
|
+
avatarUrl: string,
|
1518
|
+
// The author's profile path
|
1519
|
+
profilePath: string,
|
1520
|
+
// Whether the author's account has been deleted or not
|
1521
|
+
deleted: boolean,
|
1522
|
+
// The author's badge icon
|
1523
|
+
badge: string,
|
1524
|
+
}
|
1278
1525
|
),
|
1279
1526
|
// Check if the commentable has comments
|
1280
1527
|
hasComments: boolean,
|
@@ -1294,7 +1541,7 @@ export interface CommentFragment {
|
|
1294
1541
|
downVoted: boolean,
|
1295
1542
|
// The number of comment's downVotes
|
1296
1543
|
downVotes: number,
|
1297
|
-
comments:
|
1544
|
+
comments: Array< {
|
1298
1545
|
// The Comment's unique ID
|
1299
1546
|
id: string,
|
1300
1547
|
// The Comment's signed global id
|
@@ -1310,33 +1557,46 @@ export interface CommentFragment {
|
|
1310
1557
|
// The creation date of the comment in relative format
|
1311
1558
|
formattedCreatedAt: string,
|
1312
1559
|
// The resource author
|
1313
|
-
author: ({
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1560
|
+
author: ( {
|
1561
|
+
// The author's name
|
1562
|
+
name: string,
|
1563
|
+
// The author's nickname
|
1564
|
+
nickname: string,
|
1565
|
+
// The author's avatar url
|
1566
|
+
avatarUrl: string,
|
1567
|
+
// The author's profile path
|
1568
|
+
profilePath: string,
|
1569
|
+
// Whether the author's account has been deleted or not
|
1570
|
+
deleted: boolean,
|
1571
|
+
// The author's badge icon
|
1572
|
+
badge: string,
|
1573
|
+
} | {
|
1574
|
+
// The author's name
|
1575
|
+
name: string,
|
1576
|
+
// The author's nickname
|
1577
|
+
nickname: string,
|
1578
|
+
// The author's avatar url
|
1579
|
+
avatarUrl: string,
|
1580
|
+
// The author's profile path
|
1581
|
+
profilePath: string,
|
1582
|
+
// Whether the author's account has been deleted or not
|
1583
|
+
deleted: boolean,
|
1584
|
+
// The author's badge icon
|
1585
|
+
badge: string,
|
1586
|
+
} | {
|
1587
|
+
// The author's name
|
1588
|
+
name: string,
|
1589
|
+
// The author's nickname
|
1590
|
+
nickname: string,
|
1591
|
+
// The author's avatar url
|
1592
|
+
avatarUrl: string,
|
1593
|
+
// The author's profile path
|
1594
|
+
profilePath: string,
|
1595
|
+
// Whether the author's account has been deleted or not
|
1596
|
+
deleted: boolean,
|
1597
|
+
// The author's badge icon
|
1598
|
+
badge: string,
|
1599
|
+
}
|
1340
1600
|
),
|
1341
1601
|
// Check if the commentable has comments
|
1342
1602
|
hasComments: boolean,
|
@@ -1356,9 +1616,9 @@ export interface CommentFragment {
|
|
1356
1616
|
downVoted: boolean,
|
1357
1617
|
// The number of comment's downVotes
|
1358
1618
|
downVotes: number,
|
1359
|
-
}>,
|
1360
|
-
}>,
|
1361
|
-
}>,
|
1619
|
+
} >,
|
1620
|
+
} >,
|
1621
|
+
} >,
|
1362
1622
|
};
|
1363
1623
|
|
1364
1624
|
export interface CommentDataFragment {
|
@@ -1377,33 +1637,46 @@ export interface CommentDataFragment {
|
|
1377
1637
|
// The creation date of the comment in relative format
|
1378
1638
|
formattedCreatedAt: string,
|
1379
1639
|
// The resource author
|
1380
|
-
author: ({
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1640
|
+
author: ( {
|
1641
|
+
// The author's name
|
1642
|
+
name: string,
|
1643
|
+
// The author's nickname
|
1644
|
+
nickname: string,
|
1645
|
+
// The author's avatar url
|
1646
|
+
avatarUrl: string,
|
1647
|
+
// The author's profile path
|
1648
|
+
profilePath: string,
|
1649
|
+
// Whether the author's account has been deleted or not
|
1650
|
+
deleted: boolean,
|
1651
|
+
// The author's badge icon
|
1652
|
+
badge: string,
|
1653
|
+
} | {
|
1654
|
+
// The author's name
|
1655
|
+
name: string,
|
1656
|
+
// The author's nickname
|
1657
|
+
nickname: string,
|
1658
|
+
// The author's avatar url
|
1659
|
+
avatarUrl: string,
|
1660
|
+
// The author's profile path
|
1661
|
+
profilePath: string,
|
1662
|
+
// Whether the author's account has been deleted or not
|
1663
|
+
deleted: boolean,
|
1664
|
+
// The author's badge icon
|
1665
|
+
badge: string,
|
1666
|
+
} | {
|
1667
|
+
// The author's name
|
1668
|
+
name: string,
|
1669
|
+
// The author's nickname
|
1670
|
+
nickname: string,
|
1671
|
+
// The author's avatar url
|
1672
|
+
avatarUrl: string,
|
1673
|
+
// The author's profile path
|
1674
|
+
profilePath: string,
|
1675
|
+
// Whether the author's account has been deleted or not
|
1676
|
+
deleted: boolean,
|
1677
|
+
// The author's badge icon
|
1678
|
+
badge: string,
|
1679
|
+
}
|
1407
1680
|
),
|
1408
1681
|
// Check if the commentable has comments
|
1409
1682
|
hasComments: boolean,
|
@@ -1443,33 +1716,46 @@ export interface CommentThreadFragment {
|
|
1443
1716
|
// The creation date of the comment in relative format
|
1444
1717
|
formattedCreatedAt: string,
|
1445
1718
|
// The resource author
|
1446
|
-
author: ({
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1719
|
+
author: ( {
|
1720
|
+
// The author's name
|
1721
|
+
name: string,
|
1722
|
+
// The author's nickname
|
1723
|
+
nickname: string,
|
1724
|
+
// The author's avatar url
|
1725
|
+
avatarUrl: string,
|
1726
|
+
// The author's profile path
|
1727
|
+
profilePath: string,
|
1728
|
+
// Whether the author's account has been deleted or not
|
1729
|
+
deleted: boolean,
|
1730
|
+
// The author's badge icon
|
1731
|
+
badge: string,
|
1732
|
+
} | {
|
1733
|
+
// The author's name
|
1734
|
+
name: string,
|
1735
|
+
// The author's nickname
|
1736
|
+
nickname: string,
|
1737
|
+
// The author's avatar url
|
1738
|
+
avatarUrl: string,
|
1739
|
+
// The author's profile path
|
1740
|
+
profilePath: string,
|
1741
|
+
// Whether the author's account has been deleted or not
|
1742
|
+
deleted: boolean,
|
1743
|
+
// The author's badge icon
|
1744
|
+
badge: string,
|
1745
|
+
} | {
|
1746
|
+
// The author's name
|
1747
|
+
name: string,
|
1748
|
+
// The author's nickname
|
1749
|
+
nickname: string,
|
1750
|
+
// The author's avatar url
|
1751
|
+
avatarUrl: string,
|
1752
|
+
// The author's profile path
|
1753
|
+
profilePath: string,
|
1754
|
+
// Whether the author's account has been deleted or not
|
1755
|
+
deleted: boolean,
|
1756
|
+
// The author's badge icon
|
1757
|
+
badge: string,
|
1758
|
+
}
|
1473
1759
|
),
|
1474
1760
|
// Whether the object can have new comments or not
|
1475
1761
|
acceptsNewComments: boolean,
|
@@ -1487,7 +1773,7 @@ export interface CommentThreadFragment {
|
|
1487
1773
|
downVoted: boolean,
|
1488
1774
|
// The number of comment's downVotes
|
1489
1775
|
downVotes: number,
|
1490
|
-
comments:
|
1776
|
+
comments: Array< {
|
1491
1777
|
// The Comment's unique ID
|
1492
1778
|
id: string,
|
1493
1779
|
// The Comment's signed global id
|
@@ -1503,33 +1789,46 @@ export interface CommentThreadFragment {
|
|
1503
1789
|
// The creation date of the comment in relative format
|
1504
1790
|
formattedCreatedAt: string,
|
1505
1791
|
// The resource author
|
1506
|
-
author: ({
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1792
|
+
author: ( {
|
1793
|
+
// The author's name
|
1794
|
+
name: string,
|
1795
|
+
// The author's nickname
|
1796
|
+
nickname: string,
|
1797
|
+
// The author's avatar url
|
1798
|
+
avatarUrl: string,
|
1799
|
+
// The author's profile path
|
1800
|
+
profilePath: string,
|
1801
|
+
// Whether the author's account has been deleted or not
|
1802
|
+
deleted: boolean,
|
1803
|
+
// The author's badge icon
|
1804
|
+
badge: string,
|
1805
|
+
} | {
|
1806
|
+
// The author's name
|
1807
|
+
name: string,
|
1808
|
+
// The author's nickname
|
1809
|
+
nickname: string,
|
1810
|
+
// The author's avatar url
|
1811
|
+
avatarUrl: string,
|
1812
|
+
// The author's profile path
|
1813
|
+
profilePath: string,
|
1814
|
+
// Whether the author's account has been deleted or not
|
1815
|
+
deleted: boolean,
|
1816
|
+
// The author's badge icon
|
1817
|
+
badge: string,
|
1818
|
+
} | {
|
1819
|
+
// The author's name
|
1820
|
+
name: string,
|
1821
|
+
// The author's nickname
|
1822
|
+
nickname: string,
|
1823
|
+
// The author's avatar url
|
1824
|
+
avatarUrl: string,
|
1825
|
+
// The author's profile path
|
1826
|
+
profilePath: string,
|
1827
|
+
// Whether the author's account has been deleted or not
|
1828
|
+
deleted: boolean,
|
1829
|
+
// The author's badge icon
|
1830
|
+
badge: string,
|
1831
|
+
}
|
1533
1832
|
),
|
1534
1833
|
// Check if the commentable has comments
|
1535
1834
|
hasComments: boolean,
|
@@ -1549,7 +1848,7 @@ export interface CommentThreadFragment {
|
|
1549
1848
|
downVoted: boolean,
|
1550
1849
|
// The number of comment's downVotes
|
1551
1850
|
downVotes: number,
|
1552
|
-
comments:
|
1851
|
+
comments: Array< {
|
1553
1852
|
// The Comment's unique ID
|
1554
1853
|
id: string,
|
1555
1854
|
// The Comment's signed global id
|
@@ -1565,33 +1864,46 @@ export interface CommentThreadFragment {
|
|
1565
1864
|
// The creation date of the comment in relative format
|
1566
1865
|
formattedCreatedAt: string,
|
1567
1866
|
// The resource author
|
1568
|
-
author: ({
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1867
|
+
author: ( {
|
1868
|
+
// The author's name
|
1869
|
+
name: string,
|
1870
|
+
// The author's nickname
|
1871
|
+
nickname: string,
|
1872
|
+
// The author's avatar url
|
1873
|
+
avatarUrl: string,
|
1874
|
+
// The author's profile path
|
1875
|
+
profilePath: string,
|
1876
|
+
// Whether the author's account has been deleted or not
|
1877
|
+
deleted: boolean,
|
1878
|
+
// The author's badge icon
|
1879
|
+
badge: string,
|
1880
|
+
} | {
|
1881
|
+
// The author's name
|
1882
|
+
name: string,
|
1883
|
+
// The author's nickname
|
1884
|
+
nickname: string,
|
1885
|
+
// The author's avatar url
|
1886
|
+
avatarUrl: string,
|
1887
|
+
// The author's profile path
|
1888
|
+
profilePath: string,
|
1889
|
+
// Whether the author's account has been deleted or not
|
1890
|
+
deleted: boolean,
|
1891
|
+
// The author's badge icon
|
1892
|
+
badge: string,
|
1893
|
+
} | {
|
1894
|
+
// The author's name
|
1895
|
+
name: string,
|
1896
|
+
// The author's nickname
|
1897
|
+
nickname: string,
|
1898
|
+
// The author's avatar url
|
1899
|
+
avatarUrl: string,
|
1900
|
+
// The author's profile path
|
1901
|
+
profilePath: string,
|
1902
|
+
// Whether the author's account has been deleted or not
|
1903
|
+
deleted: boolean,
|
1904
|
+
// The author's badge icon
|
1905
|
+
badge: string,
|
1906
|
+
}
|
1595
1907
|
),
|
1596
1908
|
// Check if the commentable has comments
|
1597
1909
|
hasComments: boolean,
|
@@ -1611,7 +1923,7 @@ export interface CommentThreadFragment {
|
|
1611
1923
|
downVoted: boolean,
|
1612
1924
|
// The number of comment's downVotes
|
1613
1925
|
downVotes: number,
|
1614
|
-
comments:
|
1926
|
+
comments: Array< {
|
1615
1927
|
// The Comment's unique ID
|
1616
1928
|
id: string,
|
1617
1929
|
// The Comment's signed global id
|
@@ -1627,33 +1939,46 @@ export interface CommentThreadFragment {
|
|
1627
1939
|
// The creation date of the comment in relative format
|
1628
1940
|
formattedCreatedAt: string,
|
1629
1941
|
// The resource author
|
1630
|
-
author: ({
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1942
|
+
author: ( {
|
1943
|
+
// The author's name
|
1944
|
+
name: string,
|
1945
|
+
// The author's nickname
|
1946
|
+
nickname: string,
|
1947
|
+
// The author's avatar url
|
1948
|
+
avatarUrl: string,
|
1949
|
+
// The author's profile path
|
1950
|
+
profilePath: string,
|
1951
|
+
// Whether the author's account has been deleted or not
|
1952
|
+
deleted: boolean,
|
1953
|
+
// The author's badge icon
|
1954
|
+
badge: string,
|
1955
|
+
} | {
|
1956
|
+
// The author's name
|
1957
|
+
name: string,
|
1958
|
+
// The author's nickname
|
1959
|
+
nickname: string,
|
1960
|
+
// The author's avatar url
|
1961
|
+
avatarUrl: string,
|
1962
|
+
// The author's profile path
|
1963
|
+
profilePath: string,
|
1964
|
+
// Whether the author's account has been deleted or not
|
1965
|
+
deleted: boolean,
|
1966
|
+
// The author's badge icon
|
1967
|
+
badge: string,
|
1968
|
+
} | {
|
1969
|
+
// The author's name
|
1970
|
+
name: string,
|
1971
|
+
// The author's nickname
|
1972
|
+
nickname: string,
|
1973
|
+
// The author's avatar url
|
1974
|
+
avatarUrl: string,
|
1975
|
+
// The author's profile path
|
1976
|
+
profilePath: string,
|
1977
|
+
// Whether the author's account has been deleted or not
|
1978
|
+
deleted: boolean,
|
1979
|
+
// The author's badge icon
|
1980
|
+
badge: string,
|
1981
|
+
}
|
1657
1982
|
),
|
1658
1983
|
// Check if the commentable has comments
|
1659
1984
|
hasComments: boolean,
|
@@ -1673,9 +1998,9 @@ export interface CommentThreadFragment {
|
|
1673
1998
|
downVoted: boolean,
|
1674
1999
|
// The number of comment's downVotes
|
1675
2000
|
downVotes: number,
|
1676
|
-
}>,
|
1677
|
-
}>,
|
1678
|
-
}>,
|
2001
|
+
} >,
|
2002
|
+
} >,
|
2003
|
+
} >,
|
1679
2004
|
};
|
1680
2005
|
|
1681
2006
|
export interface DownVoteButtonFragment {
|