decidim-comments 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/comments/bundle.js +53 -53
  3. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  4. data/app/cells/decidim/comments/comment_activity_cell.rb +2 -22
  5. data/app/cells/decidim/comments/comment_cell.rb +22 -0
  6. data/app/cells/decidim/comments/comment_m/footer.erb +5 -0
  7. data/app/cells/decidim/comments/comment_m/top.erb +7 -0
  8. data/app/cells/decidim/comments/comment_m_cell.rb +29 -0
  9. data/app/commands/decidim/comments/create_comment.rb +1 -1
  10. data/app/forms/decidim/comments/comment_form.rb +8 -1
  11. data/app/frontend/comments/add_comment_form.component.test.tsx +30 -28
  12. data/app/frontend/comments/add_comment_form.component.tsx +32 -16
  13. data/app/frontend/comments/comment.component.test.tsx +35 -4
  14. data/app/frontend/comments/comment.component.tsx +24 -15
  15. data/app/frontend/comments/comment_thread.component.test.tsx +9 -8
  16. data/app/frontend/comments/comment_thread.component.tsx +3 -1
  17. data/app/frontend/comments/comments.component.test.tsx +17 -14
  18. data/app/frontend/comments/comments.component.tsx +28 -4
  19. data/app/frontend/comments/down_vote_button.component.tsx +24 -9
  20. data/app/frontend/comments/up_vote_button.component.tsx +24 -9
  21. data/app/frontend/mutations/add_comment.mutation.graphql +2 -2
  22. data/app/frontend/mutations/down_vote.mutation.graphql +2 -2
  23. data/app/frontend/mutations/up_vote.mutation.graphql +2 -2
  24. data/app/frontend/queries/comments.query.graphql +2 -2
  25. data/app/frontend/support/schema.ts +1060 -735
  26. data/app/helpers/decidim/comments/comment_cells_helper.rb +33 -0
  27. data/app/models/decidim/comments/comment.rb +73 -20
  28. data/app/models/decidim/comments/seed.rb +1 -1
  29. data/app/types/decidim/comments/commentable_interface.rb +1 -1
  30. data/app/types/decidim/comments/commentable_mutation_type.rb +4 -1
  31. data/config/locales/am-ET.yml +1 -0
  32. data/config/locales/bg.yml +6 -0
  33. data/config/locales/ca.yml +1 -0
  34. data/config/locales/cs.yml +1 -0
  35. data/config/locales/da.yml +1 -0
  36. data/config/locales/en.yml +1 -0
  37. data/config/locales/eo.yml +1 -0
  38. data/config/locales/es-MX.yml +1 -0
  39. data/config/locales/es-PY.yml +1 -0
  40. data/config/locales/es.yml +3 -2
  41. data/config/locales/et.yml +1 -0
  42. data/config/locales/fi-plain.yml +1 -0
  43. data/config/locales/fi.yml +2 -1
  44. data/config/locales/fr-CA.yml +2 -1
  45. data/config/locales/fr.yml +2 -1
  46. data/config/locales/hr.yml +1 -0
  47. data/config/locales/hu.yml +1 -1
  48. data/config/locales/is-IS.yml +0 -2
  49. data/config/locales/is.yml +76 -0
  50. data/config/locales/ja-JP.yml +2 -2
  51. data/config/locales/ja.yml +121 -0
  52. data/config/locales/ko-KR.yml +1 -0
  53. data/config/locales/ko.yml +1 -0
  54. data/config/locales/lt.yml +1 -0
  55. data/config/locales/{lv-LV.yml → lv.yml} +0 -0
  56. data/config/locales/mt.yml +1 -0
  57. data/config/locales/nl.yml +3 -2
  58. data/config/locales/om-ET.yml +1 -0
  59. data/config/locales/pl.yml +5 -5
  60. data/config/locales/so-SO.yml +1 -0
  61. data/config/locales/sv.yml +1 -0
  62. data/config/locales/ti-ER.yml +1 -0
  63. data/config/locales/uk.yml +0 -1
  64. data/config/locales/vi-VN.yml +1 -0
  65. data/config/locales/vi.yml +1 -0
  66. data/config/locales/zh-CN.yml +121 -0
  67. data/config/locales/zh-TW.yml +1 -0
  68. data/db/migrate/20200706123136_make_comments_handle_i18n.rb +41 -0
  69. data/db/migrate/20200828101910_add_commentable_counter_cache_to_comments.rb +9 -0
  70. data/lib/decidim/comments/api/comment_type.rb +5 -1
  71. data/lib/decidim/comments/comment_serializer.rb +7 -2
  72. data/lib/decidim/comments/comment_vote_serializer.rb +5 -1
  73. data/lib/decidim/comments/commentable.rb +11 -0
  74. data/lib/decidim/comments/comments_helper.rb +28 -4
  75. data/lib/decidim/comments/engine.rb +13 -0
  76. data/lib/decidim/comments/mutation_extensions.rb +8 -0
  77. data/lib/decidim/comments/query_extensions.rb +4 -0
  78. data/lib/decidim/comments/test/factories.rb +10 -1
  79. data/lib/decidim/comments/test/shared_examples/comment_event.rb +1 -1
  80. data/lib/decidim/comments/version.rb +1 -1
  81. 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
- // 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
- }
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: Array<{
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
- // The author's name
96
- name: string,
97
- // The author's nickname
98
- nickname: string,
99
- // The author's avatar url
100
- avatarUrl: string,
101
- // The author's profile path
102
- profilePath: string,
103
- // Whether the author's account has been deleted or not
104
- deleted: boolean,
105
- // The author's badge icon
106
- badge: string,
107
- } | {
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
- }
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: Array<{
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
- // The author's name
158
- name: string,
159
- // The author's nickname
160
- nickname: string,
161
- // The author's avatar url
162
- avatarUrl: string,
163
- // The author's profile path
164
- profilePath: string,
165
- // Whether the author's account has been deleted or not
166
- deleted: boolean,
167
- // The author's badge icon
168
- badge: string,
169
- } | {
170
- // The author's name
171
- name: string,
172
- // The author's nickname
173
- nickname: string,
174
- // The author's avatar url
175
- avatarUrl: string,
176
- // The author's profile path
177
- profilePath: string,
178
- // Whether the author's account has been deleted or not
179
- deleted: boolean,
180
- // The author's badge icon
181
- badge: string,
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: Array<{
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
- // The author's name
220
- name: string,
221
- // The author's nickname
222
- nickname: string,
223
- // The author's avatar url
224
- avatarUrl: string,
225
- // The author's profile path
226
- profilePath: string,
227
- // Whether the author's account has been deleted or not
228
- deleted: boolean,
229
- // The author's badge icon
230
- badge: string,
231
- } | {
232
- // The author's name
233
- name: string,
234
- // The author's nickname
235
- nickname: string,
236
- // The author's avatar url
237
- avatarUrl: string,
238
- // The author's profile path
239
- profilePath: string,
240
- // Whether the author's account has been deleted or not
241
- deleted: boolean,
242
- // The author's badge icon
243
- badge: string,
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
- // The author's name
296
- name: string,
297
- // The author's nickname
298
- nickname: string,
299
- // The author's avatar url
300
- avatarUrl: string,
301
- // The author's profile path
302
- profilePath: string,
303
- // Whether the author's account has been deleted or not
304
- deleted: boolean,
305
- // The author's badge icon
306
- badge: string,
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: Array<{
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
- // The author's name
420
- name: string,
421
- // The author's nickname
422
- nickname: string,
423
- // The author's avatar url
424
- avatarUrl: string,
425
- // The author's profile path
426
- profilePath: string,
427
- // Whether the author's account has been deleted or not
428
- deleted: boolean,
429
- // The author's badge icon
430
- badge: string,
431
- } | {
432
- // The author's name
433
- name: string,
434
- // The author's nickname
435
- nickname: string,
436
- // The author's avatar url
437
- avatarUrl: string,
438
- // The author's profile path
439
- profilePath: string,
440
- // Whether the author's account has been deleted or not
441
- deleted: boolean,
442
- // The author's badge icon
443
- badge: string,
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: Array<{
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
- // The author's name
482
- name: string,
483
- // The author's nickname
484
- nickname: string,
485
- // The author's avatar url
486
- avatarUrl: string,
487
- // The author's profile path
488
- profilePath: string,
489
- // Whether the author's account has been deleted or not
490
- deleted: boolean,
491
- // The author's badge icon
492
- badge: string,
493
- } | {
494
- // The author's name
495
- name: string,
496
- // The author's nickname
497
- nickname: string,
498
- // The author's avatar url
499
- avatarUrl: string,
500
- // The author's profile path
501
- profilePath: string,
502
- // Whether the author's account has been deleted or not
503
- deleted: boolean,
504
- // The author's badge icon
505
- badge: string,
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
- // The author's name
558
- name: string,
559
- // The author's nickname
560
- nickname: string,
561
- // The author's avatar url
562
- avatarUrl: string,
563
- // The author's profile path
564
- profilePath: string,
565
- // Whether the author's account has been deleted or not
566
- deleted: boolean,
567
- // The author's badge icon
568
- badge: string,
569
- } | {
570
- // The author's name
571
- name: string,
572
- // The author's nickname
573
- nickname: string,
574
- // The author's avatar url
575
- avatarUrl: string,
576
- // The author's profile path
577
- profilePath: string,
578
- // Whether the author's account has been deleted or not
579
- deleted: boolean,
580
- // The author's badge icon
581
- badge: string,
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: Array<{
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
- // The author's name
620
- name: string,
621
- // The author's nickname
622
- nickname: string,
623
- // The author's avatar url
624
- avatarUrl: string,
625
- // The author's profile path
626
- profilePath: string,
627
- // Whether the author's account has been deleted or not
628
- deleted: boolean,
629
- // The author's badge icon
630
- badge: string,
631
- } | {
632
- // The author's name
633
- name: string,
634
- // The author's nickname
635
- nickname: string,
636
- // The author's avatar url
637
- avatarUrl: string,
638
- // The author's profile path
639
- profilePath: string,
640
- // Whether the author's account has been deleted or not
641
- deleted: boolean,
642
- // The author's badge icon
643
- badge: string,
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: Array<{
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
- // The author's name
682
- name: string,
683
- // The author's nickname
684
- nickname: string,
685
- // The author's avatar url
686
- avatarUrl: string,
687
- // The author's profile path
688
- profilePath: string,
689
- // Whether the author's account has been deleted or not
690
- deleted: boolean,
691
- // The author's badge icon
692
- badge: string,
693
- } | {
694
- // The author's name
695
- name: string,
696
- // The author's nickname
697
- nickname: string,
698
- // The author's avatar url
699
- avatarUrl: string,
700
- // The author's profile path
701
- profilePath: string,
702
- // Whether the author's account has been deleted or not
703
- deleted: boolean,
704
- // The author's badge icon
705
- badge: string,
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: Array<{
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
- // The author's name
744
- name: string,
745
- // The author's nickname
746
- nickname: string,
747
- // The author's avatar url
748
- avatarUrl: string,
749
- // The author's profile path
750
- profilePath: string,
751
- // Whether the author's account has been deleted or not
752
- deleted: boolean,
753
- // The author's badge icon
754
- badge: string,
755
- } | {
756
- // The author's name
757
- name: string,
758
- // The author's nickname
759
- nickname: string,
760
- // The author's avatar url
761
- avatarUrl: string,
762
- // The author's profile path
763
- profilePath: string,
764
- // Whether the author's account has been deleted or not
765
- deleted: boolean,
766
- // The author's badge icon
767
- badge: string,
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: Array<{
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: Array<{
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
- // The author's name
855
- name: string,
856
- // The author's nickname
857
- nickname: string,
858
- // The author's avatar url
859
- avatarUrl: string,
860
- // The author's profile path
861
- profilePath: string,
862
- // Whether the author's account has been deleted or not
863
- deleted: boolean,
864
- // The author's badge icon
865
- badge: string,
866
- } | {
867
- // The author's name
868
- name: string,
869
- // The author's nickname
870
- nickname: string,
871
- // The author's avatar url
872
- avatarUrl: string,
873
- // The author's profile path
874
- profilePath: string,
875
- // Whether the author's account has been deleted or not
876
- deleted: boolean,
877
- // The author's badge icon
878
- badge: string,
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: Array<{
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
- // The author's name
915
- name: string,
916
- // The author's nickname
917
- nickname: string,
918
- // The author's avatar url
919
- avatarUrl: string,
920
- // The author's profile path
921
- profilePath: string,
922
- // Whether the author's account has been deleted or not
923
- deleted: boolean,
924
- // The author's badge icon
925
- badge: string,
926
- } | {
927
- // The author's name
928
- name: string,
929
- // The author's nickname
930
- nickname: string,
931
- // The author's avatar url
932
- avatarUrl: string,
933
- // The author's profile path
934
- profilePath: string,
935
- // Whether the author's account has been deleted or not
936
- deleted: boolean,
937
- // The author's badge icon
938
- badge: string,
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: Array<{
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
- // The author's name
977
- name: string,
978
- // The author's nickname
979
- nickname: string,
980
- // The author's avatar url
981
- avatarUrl: string,
982
- // The author's profile path
983
- profilePath: string,
984
- // Whether the author's account has been deleted or not
985
- deleted: boolean,
986
- // The author's badge icon
987
- badge: string,
988
- } | {
989
- // The author's name
990
- name: string,
991
- // The author's nickname
992
- nickname: string,
993
- // The author's avatar url
994
- avatarUrl: string,
995
- // The author's profile path
996
- profilePath: string,
997
- // Whether the author's account has been deleted or not
998
- deleted: boolean,
999
- // The author's badge icon
1000
- badge: string,
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: Array<{
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
- // The author's name
1039
- name: string,
1040
- // The author's nickname
1041
- nickname: string,
1042
- // The author's avatar url
1043
- avatarUrl: string,
1044
- // The author's profile path
1045
- profilePath: string,
1046
- // Whether the author's account has been deleted or not
1047
- deleted: boolean,
1048
- // The author's badge icon
1049
- badge: string,
1050
- } | {
1051
- // The author's name
1052
- name: string,
1053
- // The author's nickname
1054
- nickname: string,
1055
- // The author's avatar url
1056
- avatarUrl: string,
1057
- // The author's profile path
1058
- profilePath: string,
1059
- // Whether the author's account has been deleted or not
1060
- deleted: boolean,
1061
- // The author's badge icon
1062
- badge: string,
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: Array<{
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
- // The author's name
1129
- name: string,
1130
- // The author's nickname
1131
- nickname: string,
1132
- // The author's avatar url
1133
- avatarUrl: string,
1134
- // The author's profile path
1135
- profilePath: string,
1136
- // Whether the author's account has been deleted or not
1137
- deleted: boolean,
1138
- // The author's badge icon
1139
- badge: string,
1140
- } | {
1141
- // The author's name
1142
- name: string,
1143
- // The author's nickname
1144
- nickname: string,
1145
- // The author's avatar url
1146
- avatarUrl: string,
1147
- // The author's profile path
1148
- profilePath: string,
1149
- // Whether the author's account has been deleted or not
1150
- deleted: boolean,
1151
- // The author's badge icon
1152
- badge: string,
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: Array<{
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
- // The author's name
1191
- name: string,
1192
- // The author's nickname
1193
- nickname: string,
1194
- // The author's avatar url
1195
- avatarUrl: string,
1196
- // The author's profile path
1197
- profilePath: string,
1198
- // Whether the author's account has been deleted or not
1199
- deleted: boolean,
1200
- // The author's badge icon
1201
- badge: string,
1202
- } | {
1203
- // The author's name
1204
- name: string,
1205
- // The author's nickname
1206
- nickname: string,
1207
- // The author's avatar url
1208
- avatarUrl: string,
1209
- // The author's profile path
1210
- profilePath: string,
1211
- // Whether the author's account has been deleted or not
1212
- deleted: boolean,
1213
- // The author's badge icon
1214
- badge: string,
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: Array<{
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
- // The author's name
1253
- name: string,
1254
- // The author's nickname
1255
- nickname: string,
1256
- // The author's avatar url
1257
- avatarUrl: string,
1258
- // The author's profile path
1259
- profilePath: string,
1260
- // Whether the author's account has been deleted or not
1261
- deleted: boolean,
1262
- // The author's badge icon
1263
- badge: string,
1264
- } | {
1265
- // The author's name
1266
- name: string,
1267
- // The author's nickname
1268
- nickname: string,
1269
- // The author's avatar url
1270
- avatarUrl: string,
1271
- // The author's profile path
1272
- profilePath: string,
1273
- // Whether the author's account has been deleted or not
1274
- deleted: boolean,
1275
- // The author's badge icon
1276
- badge: string,
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: Array<{
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
- // The author's name
1315
- name: string,
1316
- // The author's nickname
1317
- nickname: string,
1318
- // The author's avatar url
1319
- avatarUrl: string,
1320
- // The author's profile path
1321
- profilePath: string,
1322
- // Whether the author's account has been deleted or not
1323
- deleted: boolean,
1324
- // The author's badge icon
1325
- badge: string,
1326
- } | {
1327
- // The author's name
1328
- name: string,
1329
- // The author's nickname
1330
- nickname: string,
1331
- // The author's avatar url
1332
- avatarUrl: string,
1333
- // The author's profile path
1334
- profilePath: string,
1335
- // Whether the author's account has been deleted or not
1336
- deleted: boolean,
1337
- // The author's badge icon
1338
- badge: string,
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
- // The author's name
1382
- name: string,
1383
- // The author's nickname
1384
- nickname: string,
1385
- // The author's avatar url
1386
- avatarUrl: string,
1387
- // The author's profile path
1388
- profilePath: string,
1389
- // Whether the author's account has been deleted or not
1390
- deleted: boolean,
1391
- // The author's badge icon
1392
- badge: string,
1393
- } | {
1394
- // The author's name
1395
- name: string,
1396
- // The author's nickname
1397
- nickname: string,
1398
- // The author's avatar url
1399
- avatarUrl: string,
1400
- // The author's profile path
1401
- profilePath: string,
1402
- // Whether the author's account has been deleted or not
1403
- deleted: boolean,
1404
- // The author's badge icon
1405
- badge: string,
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
- // The author's name
1448
- name: string,
1449
- // The author's nickname
1450
- nickname: string,
1451
- // The author's avatar url
1452
- avatarUrl: string,
1453
- // The author's profile path
1454
- profilePath: string,
1455
- // Whether the author's account has been deleted or not
1456
- deleted: boolean,
1457
- // The author's badge icon
1458
- badge: string,
1459
- } | {
1460
- // The author's name
1461
- name: string,
1462
- // The author's nickname
1463
- nickname: string,
1464
- // The author's avatar url
1465
- avatarUrl: string,
1466
- // The author's profile path
1467
- profilePath: string,
1468
- // Whether the author's account has been deleted or not
1469
- deleted: boolean,
1470
- // The author's badge icon
1471
- badge: string,
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: Array<{
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
- // The author's name
1508
- name: string,
1509
- // The author's nickname
1510
- nickname: string,
1511
- // The author's avatar url
1512
- avatarUrl: string,
1513
- // The author's profile path
1514
- profilePath: string,
1515
- // Whether the author's account has been deleted or not
1516
- deleted: boolean,
1517
- // The author's badge icon
1518
- badge: string,
1519
- } | {
1520
- // The author's name
1521
- name: string,
1522
- // The author's nickname
1523
- nickname: string,
1524
- // The author's avatar url
1525
- avatarUrl: string,
1526
- // The author's profile path
1527
- profilePath: string,
1528
- // Whether the author's account has been deleted or not
1529
- deleted: boolean,
1530
- // The author's badge icon
1531
- badge: string,
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: Array<{
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
- // The author's name
1570
- name: string,
1571
- // The author's nickname
1572
- nickname: string,
1573
- // The author's avatar url
1574
- avatarUrl: string,
1575
- // The author's profile path
1576
- profilePath: string,
1577
- // Whether the author's account has been deleted or not
1578
- deleted: boolean,
1579
- // The author's badge icon
1580
- badge: string,
1581
- } | {
1582
- // The author's name
1583
- name: string,
1584
- // The author's nickname
1585
- nickname: string,
1586
- // The author's avatar url
1587
- avatarUrl: string,
1588
- // The author's profile path
1589
- profilePath: string,
1590
- // Whether the author's account has been deleted or not
1591
- deleted: boolean,
1592
- // The author's badge icon
1593
- badge: string,
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: Array<{
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
- // The author's name
1632
- name: string,
1633
- // The author's nickname
1634
- nickname: string,
1635
- // The author's avatar url
1636
- avatarUrl: string,
1637
- // The author's profile path
1638
- profilePath: string,
1639
- // Whether the author's account has been deleted or not
1640
- deleted: boolean,
1641
- // The author's badge icon
1642
- badge: string,
1643
- } | {
1644
- // The author's name
1645
- name: string,
1646
- // The author's nickname
1647
- nickname: string,
1648
- // The author's avatar url
1649
- avatarUrl: string,
1650
- // The author's profile path
1651
- profilePath: string,
1652
- // Whether the author's account has been deleted or not
1653
- deleted: boolean,
1654
- // The author's badge icon
1655
- badge: string,
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 {