decidim-comments 0.23.6 → 0.24.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/comments/bundle.js.map +1 -1
  3. data/app/assets/javascripts/decidim/comments/comments.component.js.es6 +292 -0
  4. data/app/assets/javascripts/decidim/comments/comments.component.test.js +581 -0
  5. data/app/assets/javascripts/decidim/comments/comments.js.erb +1 -1
  6. data/app/cells/decidim/comments/comment/actions.erb +7 -0
  7. data/app/cells/decidim/comments/comment/alignment_badge.erb +4 -0
  8. data/app/cells/decidim/comments/comment/author.erb +1 -0
  9. data/app/cells/decidim/comments/comment/show.erb +40 -0
  10. data/app/cells/decidim/comments/comment/utilities.erb +13 -0
  11. data/app/cells/decidim/comments/comment/votes.erb +25 -0
  12. data/app/cells/decidim/comments/comment_card_cell.rb +22 -0
  13. data/app/cells/decidim/comments/comment_cell.rb +142 -8
  14. data/app/cells/decidim/comments/comment_form/comment_as.erb +10 -0
  15. data/app/cells/decidim/comments/comment_form/show.erb +24 -0
  16. data/app/cells/decidim/comments/comment_form_cell.rb +94 -0
  17. data/app/cells/decidim/comments/comment_m/top.erb +1 -1
  18. data/app/cells/decidim/comments/comment_thread/show.erb +6 -0
  19. data/app/cells/decidim/comments/comment_thread/title.erb +3 -0
  20. data/app/cells/decidim/comments/comment_thread_cell.rb +30 -0
  21. data/app/cells/decidim/comments/comments/add_comment.erb +30 -0
  22. data/app/cells/decidim/comments/comments/blocked_comments_warning.erb +3 -0
  23. data/app/cells/decidim/comments/comments/order_control.erb +37 -0
  24. data/app/cells/decidim/comments/comments/show.erb +32 -0
  25. data/app/cells/decidim/comments/comments/single_comment_warning.erb +9 -0
  26. data/app/cells/decidim/comments/comments/user_comments_blocked_warning.erb +3 -0
  27. data/app/cells/decidim/comments/comments_cell.rb +134 -0
  28. data/app/commands/decidim/comments/vote_comment.rb +34 -10
  29. data/app/controllers/decidim/comments/application_controller.rb +16 -0
  30. data/app/controllers/decidim/comments/comments_controller.rb +122 -0
  31. data/app/controllers/decidim/comments/votes_controller.rb +41 -0
  32. data/app/events/decidim/comments/comment_created_event.rb +1 -1
  33. data/app/events/decidim/comments/comment_downvoted_event.rb +8 -0
  34. data/app/events/decidim/comments/comment_upvoted_event.rb +8 -0
  35. data/app/events/decidim/comments/comment_voted_event.rb +26 -0
  36. data/app/forms/decidim/comments/comment_form.rb +6 -2
  37. data/app/models/decidim/comments/comment.rb +22 -8
  38. data/app/models/decidim/comments/seed.rb +1 -1
  39. data/app/permissions/decidim/comments/permissions.rb +59 -0
  40. data/app/queries/decidim/comments/metrics/comment_participants_metric_measure.rb +2 -2
  41. data/app/queries/decidim/comments/metrics/comments_metric_manage.rb +5 -6
  42. data/app/queries/decidim/comments/sorted_comments.rb +18 -14
  43. data/app/views/decidim/comments/comments/_comment.html.erb +5 -0
  44. data/app/views/decidim/comments/comments/_comments.html.erb +1 -0
  45. data/app/views/decidim/comments/comments/create.js.erb +16 -0
  46. data/app/views/decidim/comments/comments/error.js.erb +1 -0
  47. data/app/views/decidim/comments/comments/index.js.erb +24 -0
  48. data/app/views/decidim/comments/comments/reload.js.erb +21 -0
  49. data/app/views/decidim/comments/votes/create.js.erb +23 -0
  50. data/app/views/decidim/comments/votes/error.js.erb +1 -0
  51. data/config/locales/ar.yml +0 -2
  52. data/config/locales/ca.yml +7 -2
  53. data/config/locales/cs.yml +24 -7
  54. data/config/locales/de.yml +17 -2
  55. data/config/locales/el.yml +0 -2
  56. data/config/locales/en.yml +17 -2
  57. data/config/locales/es-MX.yml +7 -2
  58. data/config/locales/es-PY.yml +7 -2
  59. data/config/locales/es.yml +7 -2
  60. data/config/locales/eu.yml +0 -2
  61. data/config/locales/fi-plain.yml +17 -2
  62. data/config/locales/fi.yml +17 -2
  63. data/config/locales/fr-CA.yml +17 -2
  64. data/config/locales/fr.yml +17 -2
  65. data/config/locales/gl.yml +7 -2
  66. data/config/locales/hu.yml +0 -2
  67. data/config/locales/id-ID.yml +0 -2
  68. data/config/locales/is-IS.yml +0 -1
  69. data/config/locales/it.yml +4 -2
  70. data/config/locales/ja.yml +8 -4
  71. data/config/locales/lv.yml +0 -2
  72. data/config/locales/nl.yml +0 -2
  73. data/config/locales/no.yml +0 -2
  74. data/config/locales/pl.yml +19 -2
  75. data/config/locales/pt-BR.yml +0 -2
  76. data/config/locales/pt.yml +0 -2
  77. data/config/locales/ro-RO.yml +0 -3
  78. data/config/locales/ru.yml +0 -2
  79. data/config/locales/sk.yml +0 -2
  80. data/config/locales/sv.yml +7 -2
  81. data/config/locales/tr-TR.yml +7 -2
  82. data/config/locales/uk.yml +0 -1
  83. data/config/locales/zh-CN.yml +0 -2
  84. data/lib/decidim/api/add_comment_type.rb +13 -0
  85. data/lib/decidim/api/comment_mutation_type.rb +22 -0
  86. data/lib/decidim/api/comment_type.rb +89 -0
  87. data/lib/decidim/api/commentable_interface.rb +50 -0
  88. data/lib/decidim/api/commentable_mutation_type.rb +30 -0
  89. data/{app/types/decidim/comments → lib/decidim/api}/commentable_type.rb +2 -5
  90. data/lib/decidim/comments/api.rb +12 -0
  91. data/lib/decidim/comments/comments_helper.rb +10 -52
  92. data/lib/decidim/comments/engine.rb +9 -7
  93. data/lib/decidim/comments/mutation_extensions.rb +22 -22
  94. data/lib/decidim/comments/query_extensions.rb +12 -14
  95. data/lib/decidim/comments/test/shared_examples/comment_voted_event.rb +65 -0
  96. data/lib/decidim/comments/test.rb +1 -0
  97. data/lib/decidim/comments/version.rb +1 -1
  98. data/lib/decidim/comments.rb +1 -3
  99. metadata +67 -66
  100. data/app/assets/javascripts/decidim/comments/bundle.js +0 -268
  101. data/app/frontend/application/apollo_client.ts +0 -12
  102. data/app/frontend/application/application.component.test.tsx +0 -23
  103. data/app/frontend/application/application.component.tsx +0 -35
  104. data/app/frontend/application/icon.component.test.tsx +0 -38
  105. data/app/frontend/application/icon.component.tsx +0 -46
  106. data/app/frontend/comments/add_comment_form.component.test.tsx +0 -265
  107. data/app/frontend/comments/add_comment_form.component.tsx +0 -482
  108. data/app/frontend/comments/comment.component.test.tsx +0 -490
  109. data/app/frontend/comments/comment.component.tsx +0 -677
  110. data/app/frontend/comments/comment_order_selector.component.test.tsx +0 -29
  111. data/app/frontend/comments/comment_order_selector.component.tsx +0 -106
  112. data/app/frontend/comments/comment_thread.component.test.tsx +0 -82
  113. data/app/frontend/comments/comment_thread.component.tsx +0 -81
  114. data/app/frontend/comments/comments.component.test.tsx +0 -150
  115. data/app/frontend/comments/comments.component.tsx +0 -289
  116. data/app/frontend/comments/down_vote_button.component.test.tsx +0 -59
  117. data/app/frontend/comments/down_vote_button.component.tsx +0 -133
  118. data/app/frontend/comments/up_vote_button.component.test.tsx +0 -59
  119. data/app/frontend/comments/up_vote_button.component.tsx +0 -133
  120. data/app/frontend/comments/vote_button.component.tsx +0 -50
  121. data/app/frontend/comments/vote_button_component.test.tsx +0 -64
  122. data/app/frontend/entry.ts +0 -38
  123. data/app/frontend/entry_test.ts +0 -6
  124. data/app/frontend/fragments/add_comment_form_commentable.fragment.graphql +0 -4
  125. data/app/frontend/fragments/add_comment_form_session.fragment.graphql +0 -6
  126. data/app/frontend/fragments/comment.fragment.graphql +0 -14
  127. data/app/frontend/fragments/comment_data.fragment.graphql +0 -27
  128. data/app/frontend/fragments/comment_thread.fragment.graphql +0 -6
  129. data/app/frontend/fragments/down_vote_button.fragment.graphql +0 -6
  130. data/app/frontend/fragments/up_vote_button.fragment.graphql +0 -6
  131. data/app/frontend/mutations/add_comment.mutation.graphql +0 -9
  132. data/app/frontend/mutations/down_vote.mutation.graphql +0 -9
  133. data/app/frontend/mutations/up_vote.mutation.graphql +0 -9
  134. data/app/frontend/queries/comments.query.graphql +0 -26
  135. data/app/frontend/support/asset_url.ts +0 -11
  136. data/app/frontend/support/generate_comments_data.ts +0 -49
  137. data/app/frontend/support/generate_user_data.ts +0 -14
  138. data/app/frontend/support/generate_user_group_data.ts +0 -14
  139. data/app/frontend/support/graphql_transformer.js +0 -32
  140. data/app/frontend/support/load_translations.ts +0 -48
  141. data/app/frontend/support/require_all.ts +0 -10
  142. data/app/frontend/support/resolve_graphql_query.ts +0 -37
  143. data/app/frontend/support/schema.ts +0 -2026
  144. data/app/types/decidim/comments/commentable_interface.rb +0 -61
  145. data/app/types/decidim/comments/commentable_mutation_type.rb +0 -33
  146. data/lib/decidim/comments/api/add_comment_type.rb +0 -13
  147. data/lib/decidim/comments/api/comment_mutation_type.rb +0 -20
  148. data/lib/decidim/comments/api/comment_type.rb +0 -89
@@ -1,2026 +0,0 @@
1
- /* tslint:disable */
2
- // This file was automatically generated and should not be edited.
3
-
4
- export interface addCommentMutationVariables {
5
- commentableId: string,
6
- commentableType: string,
7
- body: string,
8
- alignment?: number | null,
9
- userGroupId?: string | null,
10
- };
11
-
12
- export interface addCommentMutation {
13
- // A commentable
14
- commentable: {
15
- // Add a new comment to a commentable
16
- addComment: {
17
- // Check if the commentable has comments
18
- hasComments: boolean,
19
- // The Comment's unique ID
20
- id: string,
21
- // The Comment's signed global id
22
- sgid: string,
23
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
24
- type: string,
25
- // The comment message
26
- body: string,
27
- // The comment message ready to display (it is expected to include HTML)
28
- formattedBody: string,
29
- // The creation date of the comment
30
- createdAt: string,
31
- // The creation date of the comment in relative format
32
- formattedCreatedAt: string,
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
- } | {
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
- }
74
- ),
75
- // Whether the object can have new comments or not
76
- acceptsNewComments: boolean,
77
- // Check if the current user can comment
78
- userAllowedToComment: boolean,
79
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
80
- alignment: number | null,
81
- // Check if the current user has reported the comment
82
- alreadyReported: boolean,
83
- // The number of comment's upVotes
84
- upVotes: number,
85
- // Check if the current user has upvoted the comment
86
- upVoted: boolean,
87
- // Check if the current user has downvoted the comment
88
- downVoted: boolean,
89
- // The number of comment's downVotes
90
- downVotes: number,
91
- comments: Array< {
92
- // The Comment's unique ID
93
- id: string,
94
- // The Comment's signed global id
95
- sgid: string,
96
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
97
- type: string,
98
- // The comment message
99
- body: string,
100
- // The comment message ready to display (it is expected to include HTML)
101
- formattedBody: string,
102
- // The creation date of the comment
103
- createdAt: string,
104
- // The creation date of the comment in relative format
105
- formattedCreatedAt: string,
106
- // The resource author
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
- }
147
- ),
148
- // Check if the commentable has comments
149
- hasComments: boolean,
150
- // Whether the object can have new comments or not
151
- acceptsNewComments: boolean,
152
- // Check if the current user can comment
153
- userAllowedToComment: boolean,
154
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
155
- alignment: number | null,
156
- // Check if the current user has reported the comment
157
- alreadyReported: boolean,
158
- // The number of comment's upVotes
159
- upVotes: number,
160
- // Check if the current user has upvoted the comment
161
- upVoted: boolean,
162
- // Check if the current user has downvoted the comment
163
- downVoted: boolean,
164
- // The number of comment's downVotes
165
- downVotes: number,
166
- comments: Array< {
167
- // The Comment's unique ID
168
- id: string,
169
- // The Comment's signed global id
170
- sgid: string,
171
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
172
- type: string,
173
- // The comment message
174
- body: string,
175
- // The comment message ready to display (it is expected to include HTML)
176
- formattedBody: string,
177
- // The creation date of the comment
178
- createdAt: string,
179
- // The creation date of the comment in relative format
180
- formattedCreatedAt: string,
181
- // The resource author
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
- }
222
- ),
223
- // Check if the commentable has comments
224
- hasComments: boolean,
225
- // Whether the object can have new comments or not
226
- acceptsNewComments: boolean,
227
- // Check if the current user can comment
228
- userAllowedToComment: boolean,
229
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
230
- alignment: number | null,
231
- // Check if the current user has reported the comment
232
- alreadyReported: boolean,
233
- // The number of comment's upVotes
234
- upVotes: number,
235
- // Check if the current user has upvoted the comment
236
- upVoted: boolean,
237
- // Check if the current user has downvoted the comment
238
- downVoted: boolean,
239
- // The number of comment's downVotes
240
- downVotes: number,
241
- comments: Array< {
242
- // The Comment's unique ID
243
- id: string,
244
- // The Comment's signed global id
245
- sgid: string,
246
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
247
- type: string,
248
- // The comment message
249
- body: string,
250
- // The comment message ready to display (it is expected to include HTML)
251
- formattedBody: string,
252
- // The creation date of the comment
253
- createdAt: string,
254
- // The creation date of the comment in relative format
255
- formattedCreatedAt: string,
256
- // The resource author
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
- }
297
- ),
298
- // Check if the commentable has comments
299
- hasComments: boolean,
300
- // Whether the object can have new comments or not
301
- acceptsNewComments: boolean,
302
- // Check if the current user can comment
303
- userAllowedToComment: boolean,
304
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
305
- alignment: number | null,
306
- // Check if the current user has reported the comment
307
- alreadyReported: boolean,
308
- // The number of comment's upVotes
309
- upVotes: number,
310
- // Check if the current user has upvoted the comment
311
- upVoted: boolean,
312
- // Check if the current user has downvoted the comment
313
- downVoted: boolean,
314
- // The number of comment's downVotes
315
- downVotes: number,
316
- } >,
317
- } >,
318
- } >,
319
- } | null,
320
- } | null,
321
- };
322
-
323
- export interface DownVoteMutationVariables {
324
- id: string,
325
- };
326
-
327
- export interface DownVoteMutation {
328
- // A comment
329
- comment: {
330
- downVote: {
331
- // The Comment's unique ID
332
- id: string,
333
- // The Comment's signed global id
334
- sgid: string,
335
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
336
- type: string,
337
- // The comment message
338
- body: string,
339
- // The comment message ready to display (it is expected to include HTML)
340
- formattedBody: string,
341
- // The creation date of the comment
342
- createdAt: string,
343
- // The creation date of the comment in relative format
344
- formattedCreatedAt: string,
345
- // The resource 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
- } | {
360
- // The author's name
361
- name: string,
362
- // The author's nickname
363
- nickname: string,
364
- // The author's avatar url
365
- avatarUrl: string,
366
- // The author's profile path
367
- profilePath: string,
368
- // Whether the author's account has been deleted or not
369
- deleted: boolean,
370
- // The author's badge icon
371
- badge: string,
372
- } | {
373
- // The author's name
374
- name: string,
375
- // The author's nickname
376
- nickname: string,
377
- // The author's avatar url
378
- avatarUrl: string,
379
- // The author's profile path
380
- profilePath: string,
381
- // Whether the author's account has been deleted or not
382
- deleted: boolean,
383
- // The author's badge icon
384
- badge: string,
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
- }
461
- ),
462
- // Check if the commentable has comments
463
- hasComments: boolean,
464
- // Whether the object can have new comments or not
465
- acceptsNewComments: boolean,
466
- // Check if the current user can comment
467
- userAllowedToComment: boolean,
468
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
469
- alignment: number | null,
470
- // Check if the current user has reported the comment
471
- alreadyReported: boolean,
472
- // The number of comment's upVotes
473
- upVotes: number,
474
- // Check if the current user has upvoted the comment
475
- upVoted: boolean,
476
- // Check if the current user has downvoted the comment
477
- downVoted: boolean,
478
- // The number of comment's downVotes
479
- downVotes: number,
480
- comments: Array< {
481
- // The Comment's unique ID
482
- id: string,
483
- // The Comment's signed global id
484
- sgid: string,
485
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
486
- type: string,
487
- // The comment message
488
- body: string,
489
- // The comment message ready to display (it is expected to include HTML)
490
- formattedBody: string,
491
- // The creation date of the comment
492
- createdAt: string,
493
- // The creation date of the comment in relative format
494
- formattedCreatedAt: string,
495
- // The resource author
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
- }
536
- ),
537
- // Check if the commentable has comments
538
- hasComments: boolean,
539
- // Whether the object can have new comments or not
540
- acceptsNewComments: boolean,
541
- // Check if the current user can comment
542
- userAllowedToComment: boolean,
543
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
544
- alignment: number | null,
545
- // Check if the current user has reported the comment
546
- alreadyReported: boolean,
547
- // The number of comment's upVotes
548
- upVotes: number,
549
- // Check if the current user has upvoted the comment
550
- upVoted: boolean,
551
- // Check if the current user has downvoted the comment
552
- downVoted: boolean,
553
- // The number of comment's downVotes
554
- downVotes: number,
555
- comments: Array< {
556
- // The Comment's unique ID
557
- id: string,
558
- // The Comment's signed global id
559
- sgid: string,
560
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
561
- type: string,
562
- // The comment message
563
- body: string,
564
- // The comment message ready to display (it is expected to include HTML)
565
- formattedBody: string,
566
- // The creation date of the comment
567
- createdAt: string,
568
- // The creation date of the comment in relative format
569
- formattedCreatedAt: string,
570
- // The resource author
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
- }
611
- ),
612
- // Check if the commentable has comments
613
- hasComments: boolean,
614
- // Whether the object can have new comments or not
615
- acceptsNewComments: boolean,
616
- // Check if the current user can comment
617
- userAllowedToComment: boolean,
618
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
619
- alignment: number | null,
620
- // Check if the current user has reported the comment
621
- alreadyReported: boolean,
622
- // The number of comment's upVotes
623
- upVotes: number,
624
- // Check if the current user has upvoted the comment
625
- upVoted: boolean,
626
- // Check if the current user has downvoted the comment
627
- downVoted: boolean,
628
- // The number of comment's downVotes
629
- downVotes: number,
630
- } >,
631
- } >,
632
- } >,
633
- },
634
- } | null,
635
- };
636
-
637
- export interface UpVoteMutationVariables {
638
- id: string,
639
- };
640
-
641
- export interface UpVoteMutation {
642
- // A comment
643
- comment: {
644
- upVote: {
645
- // The Comment's unique ID
646
- id: string,
647
- // The Comment's signed global id
648
- sgid: string,
649
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
650
- type: string,
651
- // The comment message
652
- body: string,
653
- // The comment message ready to display (it is expected to include HTML)
654
- formattedBody: string,
655
- // The creation date of the comment
656
- createdAt: string,
657
- // The creation date of the comment in relative format
658
- formattedCreatedAt: string,
659
- // The resource author
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
- }
700
- ),
701
- // Check if the commentable has comments
702
- hasComments: boolean,
703
- // Whether the object can have new comments or not
704
- acceptsNewComments: boolean,
705
- // Check if the current user can comment
706
- userAllowedToComment: boolean,
707
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
708
- alignment: number | null,
709
- // Check if the current user has reported the comment
710
- alreadyReported: boolean,
711
- // The number of comment's upVotes
712
- upVotes: number,
713
- // Check if the current user has upvoted the comment
714
- upVoted: boolean,
715
- // Check if the current user has downvoted the comment
716
- downVoted: boolean,
717
- // The number of comment's downVotes
718
- downVotes: number,
719
- comments: Array< {
720
- // The Comment's unique ID
721
- id: string,
722
- // The Comment's signed global id
723
- sgid: string,
724
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
725
- type: string,
726
- // The comment message
727
- body: string,
728
- // The comment message ready to display (it is expected to include HTML)
729
- formattedBody: string,
730
- // The creation date of the comment
731
- createdAt: string,
732
- // The creation date of the comment in relative format
733
- formattedCreatedAt: string,
734
- // The resource author
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
- }
775
- ),
776
- // Check if the commentable has comments
777
- hasComments: boolean,
778
- // Whether the object can have new comments or not
779
- acceptsNewComments: boolean,
780
- // Check if the current user can comment
781
- userAllowedToComment: boolean,
782
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
783
- alignment: number | null,
784
- // Check if the current user has reported the comment
785
- alreadyReported: boolean,
786
- // The number of comment's upVotes
787
- upVotes: number,
788
- // Check if the current user has upvoted the comment
789
- upVoted: boolean,
790
- // Check if the current user has downvoted the comment
791
- downVoted: boolean,
792
- // The number of comment's downVotes
793
- downVotes: number,
794
- comments: Array< {
795
- // The Comment's unique ID
796
- id: string,
797
- // The Comment's signed global id
798
- sgid: string,
799
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
800
- type: string,
801
- // The comment message
802
- body: string,
803
- // The comment message ready to display (it is expected to include HTML)
804
- formattedBody: string,
805
- // The creation date of the comment
806
- createdAt: string,
807
- // The creation date of the comment in relative format
808
- formattedCreatedAt: string,
809
- // The resource author
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
- }
850
- ),
851
- // Check if the commentable has comments
852
- hasComments: boolean,
853
- // Whether the object can have new comments or not
854
- acceptsNewComments: boolean,
855
- // Check if the current user can comment
856
- userAllowedToComment: boolean,
857
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
858
- alignment: number | null,
859
- // Check if the current user has reported the comment
860
- alreadyReported: boolean,
861
- // The number of comment's upVotes
862
- upVotes: number,
863
- // Check if the current user has upvoted the comment
864
- upVoted: boolean,
865
- // Check if the current user has downvoted the comment
866
- downVoted: boolean,
867
- // The number of comment's downVotes
868
- downVotes: number,
869
- comments: Array< {
870
- // The Comment's unique ID
871
- id: string,
872
- // The Comment's signed global id
873
- sgid: string,
874
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
875
- type: string,
876
- // The comment message
877
- body: string,
878
- // The comment message ready to display (it is expected to include HTML)
879
- formattedBody: string,
880
- // The creation date of the comment
881
- createdAt: string,
882
- // The creation date of the comment in relative format
883
- formattedCreatedAt: string,
884
- // The resource author
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
- }
925
- ),
926
- // Check if the commentable has comments
927
- hasComments: boolean,
928
- // Whether the object can have new comments or not
929
- acceptsNewComments: boolean,
930
- // Check if the current user can comment
931
- userAllowedToComment: boolean,
932
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
933
- alignment: number | null,
934
- // Check if the current user has reported the comment
935
- alreadyReported: boolean,
936
- // The number of comment's upVotes
937
- upVotes: number,
938
- // Check if the current user has upvoted the comment
939
- upVoted: boolean,
940
- // Check if the current user has downvoted the comment
941
- downVoted: boolean,
942
- // The number of comment's downVotes
943
- downVotes: number,
944
- } >,
945
- } >,
946
- } >,
947
- },
948
- } | null,
949
- };
950
-
951
- export interface GetCommentsQueryVariables {
952
- commentableId: string,
953
- commentableType: string,
954
- orderBy?: string | null,
955
- singleCommentId?: string | null,
956
- };
957
-
958
- export interface GetCommentsQuery {
959
- // Return's information about the logged in user
960
- session: {
961
- // The current user
962
- user: {
963
- // The user's name
964
- name: string,
965
- // The user's nickname
966
- nickname: string,
967
- // The user's avatar url
968
- avatarUrl: string,
969
- // The user's organization name
970
- organizationName: string,
971
- } | null,
972
- // The current user verified user groups
973
- verifiedUserGroups: Array< {
974
- // The user group's id
975
- id: string,
976
- // The user group's name
977
- name: string,
978
- } >,
979
- } | null,
980
- commentable: {
981
- // Whether the object can have new comments or not
982
- acceptsNewComments: boolean,
983
- // Check if the current user can comment
984
- userAllowedToComment: boolean,
985
- // Whether the object comments have alignment or not
986
- commentsHaveAlignment: boolean,
987
- // Whether the object comments have votes or not
988
- commentsHaveVotes: boolean,
989
- // The number of comments in all levels this resource holds
990
- totalCommentsCount: number,
991
- comments: Array< {
992
- // The Comment's unique ID
993
- id: string,
994
- // Check if the commentable has comments
995
- hasComments: boolean,
996
- // The Comment's signed global id
997
- sgid: string,
998
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
999
- type: string,
1000
- // The comment message
1001
- body: string,
1002
- // The comment message ready to display (it is expected to include HTML)
1003
- formattedBody: string,
1004
- // The creation date of the comment
1005
- createdAt: string,
1006
- // The creation date of the comment in relative format
1007
- formattedCreatedAt: string,
1008
- // The resource author
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
- }
1049
- ),
1050
- // Whether the object can have new comments or not
1051
- acceptsNewComments: boolean,
1052
- // Check if the current user can comment
1053
- userAllowedToComment: boolean,
1054
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1055
- alignment: number | null,
1056
- // Check if the current user has reported the comment
1057
- alreadyReported: boolean,
1058
- // The number of comment's upVotes
1059
- upVotes: number,
1060
- // Check if the current user has upvoted the comment
1061
- upVoted: boolean,
1062
- // Check if the current user has downvoted the comment
1063
- downVoted: boolean,
1064
- // The number of comment's downVotes
1065
- downVotes: number,
1066
- comments: Array< {
1067
- // The Comment's unique ID
1068
- id: string,
1069
- // The Comment's signed global id
1070
- sgid: string,
1071
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1072
- type: string,
1073
- // The comment message
1074
- body: string,
1075
- // The comment message ready to display (it is expected to include HTML)
1076
- formattedBody: string,
1077
- // The creation date of the comment
1078
- createdAt: string,
1079
- // The creation date of the comment in relative format
1080
- formattedCreatedAt: string,
1081
- // The resource author
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
- }
1122
- ),
1123
- // Check if the commentable has comments
1124
- hasComments: boolean,
1125
- // Whether the object can have new comments or not
1126
- acceptsNewComments: boolean,
1127
- // Check if the current user can comment
1128
- userAllowedToComment: boolean,
1129
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1130
- alignment: number | null,
1131
- // Check if the current user has reported the comment
1132
- alreadyReported: boolean,
1133
- // The number of comment's upVotes
1134
- upVotes: number,
1135
- // Check if the current user has upvoted the comment
1136
- upVoted: boolean,
1137
- // Check if the current user has downvoted the comment
1138
- downVoted: boolean,
1139
- // The number of comment's downVotes
1140
- downVotes: number,
1141
- comments: Array< {
1142
- // The Comment's unique ID
1143
- id: string,
1144
- // The Comment's signed global id
1145
- sgid: string,
1146
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1147
- type: string,
1148
- // The comment message
1149
- body: string,
1150
- // The comment message ready to display (it is expected to include HTML)
1151
- formattedBody: string,
1152
- // The creation date of the comment
1153
- createdAt: string,
1154
- // The creation date of the comment in relative format
1155
- formattedCreatedAt: string,
1156
- // The resource author
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
- }
1197
- ),
1198
- // Check if the commentable has comments
1199
- hasComments: boolean,
1200
- // Whether the object can have new comments or not
1201
- acceptsNewComments: boolean,
1202
- // Check if the current user can comment
1203
- userAllowedToComment: boolean,
1204
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1205
- alignment: number | null,
1206
- // Check if the current user has reported the comment
1207
- alreadyReported: boolean,
1208
- // The number of comment's upVotes
1209
- upVotes: number,
1210
- // Check if the current user has upvoted the comment
1211
- upVoted: boolean,
1212
- // Check if the current user has downvoted the comment
1213
- downVoted: boolean,
1214
- // The number of comment's downVotes
1215
- downVotes: number,
1216
- comments: Array< {
1217
- // The Comment's unique ID
1218
- id: string,
1219
- // The Comment's signed global id
1220
- sgid: string,
1221
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1222
- type: string,
1223
- // The comment message
1224
- body: string,
1225
- // The comment message ready to display (it is expected to include HTML)
1226
- formattedBody: string,
1227
- // The creation date of the comment
1228
- createdAt: string,
1229
- // The creation date of the comment in relative format
1230
- formattedCreatedAt: string,
1231
- // The resource author
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
- }
1272
- ),
1273
- // Check if the commentable has comments
1274
- hasComments: boolean,
1275
- // Whether the object can have new comments or not
1276
- acceptsNewComments: boolean,
1277
- // Check if the current user can comment
1278
- userAllowedToComment: boolean,
1279
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1280
- alignment: number | null,
1281
- // Check if the current user has reported the comment
1282
- alreadyReported: boolean,
1283
- // The number of comment's upVotes
1284
- upVotes: number,
1285
- // Check if the current user has upvoted the comment
1286
- upVoted: boolean,
1287
- // Check if the current user has downvoted the comment
1288
- downVoted: boolean,
1289
- // The number of comment's downVotes
1290
- downVotes: number,
1291
- } >,
1292
- } >,
1293
- } >,
1294
- } >,
1295
- // The commentable's ID
1296
- id: string,
1297
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1298
- type: string,
1299
- },
1300
- };
1301
-
1302
- export interface AddCommentFormCommentableFragment {
1303
- // The commentable's ID
1304
- id: string,
1305
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1306
- type: string,
1307
- };
1308
-
1309
- export interface AddCommentFormSessionFragment {
1310
- // The current user verified user groups
1311
- verifiedUserGroups: Array< {
1312
- // The user group's id
1313
- id: string,
1314
- // The user group's name
1315
- name: string,
1316
- } >,
1317
- };
1318
-
1319
- export interface CommentFragment {
1320
- // The Comment's unique ID
1321
- id: string,
1322
- // The Comment's signed global id
1323
- sgid: string,
1324
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1325
- type: string,
1326
- // The comment message
1327
- body: string,
1328
- // The comment message ready to display (it is expected to include HTML)
1329
- formattedBody: string,
1330
- // The creation date of the comment
1331
- createdAt: string,
1332
- // The creation date of the comment in relative format
1333
- formattedCreatedAt: string,
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
- }
1375
- ),
1376
- // Check if the commentable has comments
1377
- hasComments: boolean,
1378
- // Whether the object can have new comments or not
1379
- acceptsNewComments: boolean,
1380
- // Check if the current user can comment
1381
- userAllowedToComment: boolean,
1382
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1383
- alignment: number | null,
1384
- // Check if the current user has reported the comment
1385
- alreadyReported: boolean,
1386
- // The number of comment's upVotes
1387
- upVotes: number,
1388
- // Check if the current user has upvoted the comment
1389
- upVoted: boolean,
1390
- // Check if the current user has downvoted the comment
1391
- downVoted: boolean,
1392
- // The number of comment's downVotes
1393
- downVotes: number,
1394
- comments: Array< {
1395
- // The Comment's unique ID
1396
- id: string,
1397
- // The Comment's signed global id
1398
- sgid: string,
1399
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1400
- type: string,
1401
- // The comment message
1402
- body: string,
1403
- // The comment message ready to display (it is expected to include HTML)
1404
- formattedBody: string,
1405
- // The creation date of the comment
1406
- createdAt: string,
1407
- // The creation date of the comment in relative format
1408
- formattedCreatedAt: string,
1409
- // The resource author
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
- }
1450
- ),
1451
- // Check if the commentable has comments
1452
- hasComments: boolean,
1453
- // Whether the object can have new comments or not
1454
- acceptsNewComments: boolean,
1455
- // Check if the current user can comment
1456
- userAllowedToComment: boolean,
1457
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1458
- alignment: number | null,
1459
- // Check if the current user has reported the comment
1460
- alreadyReported: boolean,
1461
- // The number of comment's upVotes
1462
- upVotes: number,
1463
- // Check if the current user has upvoted the comment
1464
- upVoted: boolean,
1465
- // Check if the current user has downvoted the comment
1466
- downVoted: boolean,
1467
- // The number of comment's downVotes
1468
- downVotes: number,
1469
- comments: Array< {
1470
- // The Comment's unique ID
1471
- id: string,
1472
- // The Comment's signed global id
1473
- sgid: string,
1474
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1475
- type: string,
1476
- // The comment message
1477
- body: string,
1478
- // The comment message ready to display (it is expected to include HTML)
1479
- formattedBody: string,
1480
- // The creation date of the comment
1481
- createdAt: string,
1482
- // The creation date of the comment in relative format
1483
- formattedCreatedAt: string,
1484
- // The resource author
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
- }
1525
- ),
1526
- // Check if the commentable has comments
1527
- hasComments: boolean,
1528
- // Whether the object can have new comments or not
1529
- acceptsNewComments: boolean,
1530
- // Check if the current user can comment
1531
- userAllowedToComment: boolean,
1532
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1533
- alignment: number | null,
1534
- // Check if the current user has reported the comment
1535
- alreadyReported: boolean,
1536
- // The number of comment's upVotes
1537
- upVotes: number,
1538
- // Check if the current user has upvoted the comment
1539
- upVoted: boolean,
1540
- // Check if the current user has downvoted the comment
1541
- downVoted: boolean,
1542
- // The number of comment's downVotes
1543
- downVotes: number,
1544
- comments: Array< {
1545
- // The Comment's unique ID
1546
- id: string,
1547
- // The Comment's signed global id
1548
- sgid: string,
1549
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1550
- type: string,
1551
- // The comment message
1552
- body: string,
1553
- // The comment message ready to display (it is expected to include HTML)
1554
- formattedBody: string,
1555
- // The creation date of the comment
1556
- createdAt: string,
1557
- // The creation date of the comment in relative format
1558
- formattedCreatedAt: string,
1559
- // The resource author
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
- }
1600
- ),
1601
- // Check if the commentable has comments
1602
- hasComments: boolean,
1603
- // Whether the object can have new comments or not
1604
- acceptsNewComments: boolean,
1605
- // Check if the current user can comment
1606
- userAllowedToComment: boolean,
1607
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1608
- alignment: number | null,
1609
- // Check if the current user has reported the comment
1610
- alreadyReported: boolean,
1611
- // The number of comment's upVotes
1612
- upVotes: number,
1613
- // Check if the current user has upvoted the comment
1614
- upVoted: boolean,
1615
- // Check if the current user has downvoted the comment
1616
- downVoted: boolean,
1617
- // The number of comment's downVotes
1618
- downVotes: number,
1619
- } >,
1620
- } >,
1621
- } >,
1622
- };
1623
-
1624
- export interface CommentDataFragment {
1625
- // The Comment's unique ID
1626
- id: string,
1627
- // The Comment's signed global id
1628
- sgid: string,
1629
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1630
- type: string,
1631
- // The comment message
1632
- body: string,
1633
- // The comment message ready to display (it is expected to include HTML)
1634
- formattedBody: string,
1635
- // The creation date of the comment
1636
- createdAt: string,
1637
- // The creation date of the comment in relative format
1638
- formattedCreatedAt: string,
1639
- // The resource author
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
- }
1680
- ),
1681
- // Check if the commentable has comments
1682
- hasComments: boolean,
1683
- // Whether the object can have new comments or not
1684
- acceptsNewComments: boolean,
1685
- // Check if the current user can comment
1686
- userAllowedToComment: boolean,
1687
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1688
- alignment: number | null,
1689
- // Check if the current user has reported the comment
1690
- alreadyReported: boolean,
1691
- // The number of comment's upVotes
1692
- upVotes: number,
1693
- // Check if the current user has upvoted the comment
1694
- upVoted: boolean,
1695
- // Check if the current user has downvoted the comment
1696
- downVoted: boolean,
1697
- // The number of comment's downVotes
1698
- downVotes: number,
1699
- };
1700
-
1701
- export interface CommentThreadFragment {
1702
- // Check if the commentable has comments
1703
- hasComments: boolean,
1704
- // The Comment's unique ID
1705
- id: string,
1706
- // The Comment's signed global id
1707
- sgid: string,
1708
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1709
- type: string,
1710
- // The comment message
1711
- body: string,
1712
- // The comment message ready to display (it is expected to include HTML)
1713
- formattedBody: string,
1714
- // The creation date of the comment
1715
- createdAt: string,
1716
- // The creation date of the comment in relative format
1717
- formattedCreatedAt: string,
1718
- // The resource author
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
- }
1759
- ),
1760
- // Whether the object can have new comments or not
1761
- acceptsNewComments: boolean,
1762
- // Check if the current user can comment
1763
- userAllowedToComment: boolean,
1764
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1765
- alignment: number | null,
1766
- // Check if the current user has reported the comment
1767
- alreadyReported: boolean,
1768
- // The number of comment's upVotes
1769
- upVotes: number,
1770
- // Check if the current user has upvoted the comment
1771
- upVoted: boolean,
1772
- // Check if the current user has downvoted the comment
1773
- downVoted: boolean,
1774
- // The number of comment's downVotes
1775
- downVotes: number,
1776
- comments: Array< {
1777
- // The Comment's unique ID
1778
- id: string,
1779
- // The Comment's signed global id
1780
- sgid: string,
1781
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1782
- type: string,
1783
- // The comment message
1784
- body: string,
1785
- // The comment message ready to display (it is expected to include HTML)
1786
- formattedBody: string,
1787
- // The creation date of the comment
1788
- createdAt: string,
1789
- // The creation date of the comment in relative format
1790
- formattedCreatedAt: string,
1791
- // The resource author
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
- }
1832
- ),
1833
- // Check if the commentable has comments
1834
- hasComments: boolean,
1835
- // Whether the object can have new comments or not
1836
- acceptsNewComments: boolean,
1837
- // Check if the current user can comment
1838
- userAllowedToComment: boolean,
1839
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1840
- alignment: number | null,
1841
- // Check if the current user has reported the comment
1842
- alreadyReported: boolean,
1843
- // The number of comment's upVotes
1844
- upVotes: number,
1845
- // Check if the current user has upvoted the comment
1846
- upVoted: boolean,
1847
- // Check if the current user has downvoted the comment
1848
- downVoted: boolean,
1849
- // The number of comment's downVotes
1850
- downVotes: number,
1851
- comments: Array< {
1852
- // The Comment's unique ID
1853
- id: string,
1854
- // The Comment's signed global id
1855
- sgid: string,
1856
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1857
- type: string,
1858
- // The comment message
1859
- body: string,
1860
- // The comment message ready to display (it is expected to include HTML)
1861
- formattedBody: string,
1862
- // The creation date of the comment
1863
- createdAt: string,
1864
- // The creation date of the comment in relative format
1865
- formattedCreatedAt: string,
1866
- // The resource author
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
- }
1907
- ),
1908
- // Check if the commentable has comments
1909
- hasComments: boolean,
1910
- // Whether the object can have new comments or not
1911
- acceptsNewComments: boolean,
1912
- // Check if the current user can comment
1913
- userAllowedToComment: boolean,
1914
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1915
- alignment: number | null,
1916
- // Check if the current user has reported the comment
1917
- alreadyReported: boolean,
1918
- // The number of comment's upVotes
1919
- upVotes: number,
1920
- // Check if the current user has upvoted the comment
1921
- upVoted: boolean,
1922
- // Check if the current user has downvoted the comment
1923
- downVoted: boolean,
1924
- // The number of comment's downVotes
1925
- downVotes: number,
1926
- comments: Array< {
1927
- // The Comment's unique ID
1928
- id: string,
1929
- // The Comment's signed global id
1930
- sgid: string,
1931
- // The commentable's class name. i.e. `Decidim::ParticipatoryProcess`
1932
- type: string,
1933
- // The comment message
1934
- body: string,
1935
- // The comment message ready to display (it is expected to include HTML)
1936
- formattedBody: string,
1937
- // The creation date of the comment
1938
- createdAt: string,
1939
- // The creation date of the comment in relative format
1940
- formattedCreatedAt: string,
1941
- // The resource author
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
- }
1982
- ),
1983
- // Check if the commentable has comments
1984
- hasComments: boolean,
1985
- // Whether the object can have new comments or not
1986
- acceptsNewComments: boolean,
1987
- // Check if the current user can comment
1988
- userAllowedToComment: boolean,
1989
- // The comment's alignment. Can be 0 (neutral), 1 (in favor) or -1 (against)'
1990
- alignment: number | null,
1991
- // Check if the current user has reported the comment
1992
- alreadyReported: boolean,
1993
- // The number of comment's upVotes
1994
- upVotes: number,
1995
- // Check if the current user has upvoted the comment
1996
- upVoted: boolean,
1997
- // Check if the current user has downvoted the comment
1998
- downVoted: boolean,
1999
- // The number of comment's downVotes
2000
- downVotes: number,
2001
- } >,
2002
- } >,
2003
- } >,
2004
- };
2005
-
2006
- export interface DownVoteButtonFragment {
2007
- // The Comment's unique ID
2008
- id: string,
2009
- // The number of comment's downVotes
2010
- downVotes: number,
2011
- // Check if the current user has downvoted the comment
2012
- downVoted: boolean,
2013
- // Check if the current user has upvoted the comment
2014
- upVoted: boolean,
2015
- };
2016
-
2017
- export interface UpVoteButtonFragment {
2018
- // The Comment's unique ID
2019
- id: string,
2020
- // The number of comment's upVotes
2021
- upVotes: number,
2022
- // Check if the current user has upvoted the comment
2023
- upVoted: boolean,
2024
- // Check if the current user has downvoted the comment
2025
- downVoted: boolean,
2026
- };