@resolution/confluence-api-client 0.4.3 → 0.4.5
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.
- package/CHANGELOG.md +22 -0
- package/README.md +4 -0
- package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
- package/lib/openapi/v1/services/AnalyticsService.js +62 -59
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +25 -25
- package/lib/openapi/v1/services/AuditService.js +205 -202
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
- package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentBodyService.js +140 -137
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
- package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
- package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +50 -50
- package/lib/openapi/v1/services/ContentService.js +475 -472
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
- package/lib/openapi/v1/services/ContentStatesService.js +359 -356
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
- package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
- package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
- package/lib/openapi/v1/services/ExperimentalService.js +151 -148
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +52 -52
- package/lib/openapi/v1/services/GroupService.js +445 -442
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
- package/lib/openapi/v1/services/InlineTasksService.js +118 -115
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
- package/lib/openapi/v1/services/LabelInfoService.js +37 -34
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
- package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +37 -37
- package/lib/openapi/v1/services/RelationService.js +231 -228
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +20 -20
- package/lib/openapi/v1/services/SearchService.js +136 -133
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
- package/lib/openapi/v1/services/SettingsService.js +204 -201
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
- package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
- package/lib/openapi/v1/services/SpaceService.js +320 -317
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
- package/lib/openapi/v1/services/TemplateService.js +214 -211
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
- package/lib/openapi/v1/services/ThemesService.js +179 -176
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
- package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +21 -21
- package/lib/openapi/v1/services/UsersService.js +229 -226
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +0 -2
- package/lib/openapi/v2/models/user.js +0 -2
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
- package/lib/openapi/v2/services/AncestorsService.js +174 -171
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
- package/lib/openapi/v2/services/AttachmentService.js +261 -258
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
- package/lib/openapi/v2/services/BlogPostService.js +270 -267
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
- package/lib/openapi/v2/services/ChildrenService.js +77 -74
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
- package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +136 -136
- package/lib/openapi/v2/services/CommentService.js +635 -632
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
- package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -2
- package/lib/openapi/v2/services/ContentService.js +40 -37
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
- package/lib/openapi/v2/services/CustomContentService.js +299 -296
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
- package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
- package/lib/openapi/v2/services/DatabaseService.js +90 -87
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +57 -57
- package/lib/openapi/v2/services/LabelService.js +263 -260
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +36 -36
- package/lib/openapi/v2/services/LikeService.js +250 -247
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +20 -20
- package/lib/openapi/v2/services/OperationService.js +298 -295
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +73 -73
- package/lib/openapi/v2/services/PageService.js +272 -269
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
- package/lib/openapi/v2/services/SmartLinkService.js +92 -89
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
- package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
- package/lib/openapi/v2/services/SpaceService.js +83 -80
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +40 -40
- package/lib/openapi/v2/services/TaskService.js +120 -117
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +11 -11
- package/lib/openapi/v2/services/UserService.js +91 -88
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +59 -59
- package/lib/openapi/v2/services/VersionService.js +395 -392
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
- package/lib/openapi/v2/services/WhiteboardService.js +90 -87
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +4 -3
|
@@ -12,638 +12,641 @@ const common_1 = require("../models/common");
|
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
13
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment */
|
|
14
14
|
class CommentService extends CommonHttpService_1.CommonHttpService {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
"
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
"
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
"
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
"
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
"
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
"
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Create a footer comment.
|
|
19
|
+
*
|
|
20
|
+
* The footer comment can be made against several locations:
|
|
21
|
+
* - at the top level (specifying pageId or blogPostId in the request body)
|
|
22
|
+
* - as a reply (specifying parentCommentId in the request body)
|
|
23
|
+
* - against an attachment (note: this is different than the comments added via
|
|
24
|
+
* the attachment properties page on the UI, which are referred to as version
|
|
25
|
+
* comments)
|
|
26
|
+
* - against a custom content
|
|
27
|
+
*
|
|
28
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
29
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
30
|
+
* space. Permission to create comments in the space.
|
|
31
|
+
*
|
|
32
|
+
* @returns Returned if the footer comment is created.
|
|
33
|
+
* @path {POST} /footer-comments
|
|
34
|
+
* @scopes-current write:comment:confluence
|
|
35
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-post
|
|
36
|
+
*/
|
|
37
|
+
this.createFooterComment = ({ createFooterCommentModel, }) => {
|
|
38
|
+
return this.getClientInstance()
|
|
39
|
+
.request({
|
|
40
|
+
path: "/footer-comments",
|
|
41
|
+
method: "POST",
|
|
42
|
+
headers: {
|
|
43
|
+
"Content-Type": "application/json",
|
|
44
|
+
},
|
|
45
|
+
body: createFooterCommentModel,
|
|
46
|
+
})
|
|
47
|
+
.then(this.getClientInstance().responseHandler({
|
|
48
|
+
201: {
|
|
49
|
+
"application/json": "json",
|
|
50
|
+
},
|
|
51
|
+
}))
|
|
52
|
+
.then(commonHttpClient.castResponse())
|
|
53
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.createFooterComment.response"))
|
|
54
|
+
.then(commonHttpClient.getBody);
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Create an inline comment. This can be at the top level (specifying pageId or
|
|
58
|
+
* blogPostId in the request body)
|
|
59
|
+
* or as a reply (specifying parentCommentId in the request body). Note the
|
|
60
|
+
* inlineCommentProperties object in the
|
|
61
|
+
* request body is used to select the text the inline comment should be tied to.
|
|
62
|
+
* This is what determines the text
|
|
63
|
+
* highlighting when viewing a page in Confluence.
|
|
64
|
+
*
|
|
65
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
66
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
67
|
+
* space. Permission to create comments in the space.
|
|
68
|
+
*
|
|
69
|
+
* @returns Returned if the inline comment is created.
|
|
70
|
+
* @path {POST} /inline-comments
|
|
71
|
+
* @scopes-current write:comment:confluence
|
|
72
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-post
|
|
73
|
+
*/
|
|
74
|
+
this.createInlineComment = ({ createInlineCommentModel, }) => {
|
|
75
|
+
return this.getClientInstance()
|
|
76
|
+
.request({
|
|
77
|
+
path: "/inline-comments",
|
|
78
|
+
method: "POST",
|
|
79
|
+
headers: {
|
|
80
|
+
"Content-Type": "application/json",
|
|
81
|
+
},
|
|
82
|
+
body: createInlineCommentModel,
|
|
83
|
+
})
|
|
84
|
+
.then(this.getClientInstance().responseHandler({
|
|
85
|
+
201: {
|
|
86
|
+
"application/json": "json",
|
|
87
|
+
},
|
|
88
|
+
}))
|
|
89
|
+
.then(commonHttpClient.castResponse())
|
|
90
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.createInlineComment.response"))
|
|
91
|
+
.then(commonHttpClient.getBody);
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Deletes a footer comment. This is a permanent deletion and cannot be reverted.
|
|
95
|
+
*
|
|
96
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
97
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
98
|
+
* space. Permission to delete comments in the space.
|
|
99
|
+
*
|
|
100
|
+
* @path {DELETE} /footer-comments/{comment-id}
|
|
101
|
+
* @scopes-current delete:comment:confluence
|
|
102
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-delete
|
|
103
|
+
*/
|
|
104
|
+
this.deleteFooterComment = ({ commentId, }) => {
|
|
105
|
+
return this.getClientInstance()
|
|
106
|
+
.request({
|
|
107
|
+
path: "/footer-comments/{comment-id}",
|
|
108
|
+
method: "DELETE",
|
|
109
|
+
pathParams: {
|
|
110
|
+
"comment-id": commentId,
|
|
111
|
+
},
|
|
112
|
+
})
|
|
113
|
+
.then(commonHttpClient.discardResult);
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Deletes an inline comment. This is a permanent deletion and cannot be reverted.
|
|
117
|
+
*
|
|
118
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
119
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
120
|
+
* space. Permission to delete comments in the space.
|
|
121
|
+
*
|
|
122
|
+
* @path {DELETE} /inline-comments/{comment-id}
|
|
123
|
+
* @scopes-current delete:comment:confluence
|
|
124
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-delete
|
|
125
|
+
*/
|
|
126
|
+
this.deleteInlineComment = ({ commentId, }) => {
|
|
127
|
+
return this.getClientInstance()
|
|
128
|
+
.request({
|
|
129
|
+
path: "/inline-comments/{comment-id}",
|
|
130
|
+
method: "DELETE",
|
|
131
|
+
pathParams: {
|
|
132
|
+
"comment-id": commentId,
|
|
133
|
+
},
|
|
134
|
+
})
|
|
135
|
+
.then(commonHttpClient.discardResult);
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Returns the comments of the specific attachment.
|
|
139
|
+
* The number of results is limited by the `limit` parameter and additional
|
|
140
|
+
* results (if available) will be available through
|
|
141
|
+
* the `next` URL present in the `Link` response header.
|
|
142
|
+
*
|
|
143
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
144
|
+
* Permission to view the attachment and its corresponding containers.
|
|
145
|
+
*
|
|
146
|
+
* @returns Returned if the attachment comments were successfully retrieved
|
|
147
|
+
* @path {GET} /attachments/{id}/footer-comments
|
|
148
|
+
* @scopes-current read:comment:confluence
|
|
149
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-attachments-id-footer-comments-get
|
|
150
|
+
*/
|
|
151
|
+
this.getAttachmentComments = ({ id, bodyFormat, cursor, limit, sort, version, }) => {
|
|
152
|
+
return this.getClientInstance()
|
|
153
|
+
.request({
|
|
154
|
+
path: "/attachments/{id}/footer-comments",
|
|
155
|
+
method: "GET",
|
|
156
|
+
pathParams: {
|
|
157
|
+
id,
|
|
158
|
+
},
|
|
159
|
+
query: {
|
|
160
|
+
"body-format": bodyFormat,
|
|
161
|
+
cursor,
|
|
162
|
+
limit,
|
|
163
|
+
sort,
|
|
164
|
+
version,
|
|
165
|
+
},
|
|
166
|
+
})
|
|
167
|
+
.then(this.getClientInstance().responseHandler({
|
|
168
|
+
200: {
|
|
169
|
+
"application/json": "json",
|
|
170
|
+
},
|
|
171
|
+
}))
|
|
172
|
+
.then(commonHttpClient.castResponse())
|
|
173
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getAttachmentComments.response"))
|
|
174
|
+
.then(commonHttpClient.getBody);
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Returns the root footer comments of specific blog post. The number of results
|
|
178
|
+
* is limited by the `limit` parameter and additional results (if available)
|
|
179
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
180
|
+
*
|
|
181
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
182
|
+
* Permission to view the content of the blog post and its corresponding space.
|
|
183
|
+
*
|
|
184
|
+
* @returns Returned if the requested footer comments are returned.
|
|
185
|
+
* @path {GET} /blogposts/{id}/footer-comments
|
|
186
|
+
* @scopes-current read:comment:confluence
|
|
187
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-blogposts-id-footer-comments-get
|
|
188
|
+
*/
|
|
189
|
+
this.getBlogPostFooterComments = ({ id, bodyFormat, sort, cursor, limit, }) => {
|
|
190
|
+
return this.getClientInstance()
|
|
191
|
+
.request({
|
|
192
|
+
path: "/blogposts/{id}/footer-comments",
|
|
193
|
+
method: "GET",
|
|
194
|
+
pathParams: {
|
|
195
|
+
id,
|
|
196
|
+
},
|
|
197
|
+
query: {
|
|
198
|
+
"body-format": bodyFormat,
|
|
199
|
+
sort,
|
|
200
|
+
cursor,
|
|
201
|
+
limit,
|
|
202
|
+
},
|
|
203
|
+
})
|
|
204
|
+
.then(this.getClientInstance().responseHandler({
|
|
205
|
+
200: {
|
|
206
|
+
"application/json": "json",
|
|
207
|
+
},
|
|
208
|
+
}))
|
|
209
|
+
.then(commonHttpClient.castResponse())
|
|
210
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getBlogPostFooterComments.response"))
|
|
211
|
+
.then(commonHttpClient.getBody);
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Returns the root inline comments of specific blog post. The number of results
|
|
215
|
+
* is limited by the `limit` parameter and additional results (if available)
|
|
216
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
217
|
+
*
|
|
218
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
219
|
+
* Permission to view the content of the blog post and its corresponding space.
|
|
220
|
+
*
|
|
221
|
+
* @returns Returned if the requested inline comments are returned.
|
|
222
|
+
* @path {GET} /blogposts/{id}/inline-comments
|
|
223
|
+
* @scopes-current read:comment:confluence
|
|
224
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-blogposts-id-inline-comments-get
|
|
225
|
+
*/
|
|
226
|
+
this.getBlogPostInlineComments = ({ id, bodyFormat, sort, cursor, limit, }) => {
|
|
227
|
+
return this.getClientInstance()
|
|
228
|
+
.request({
|
|
229
|
+
path: "/blogposts/{id}/inline-comments",
|
|
230
|
+
method: "GET",
|
|
231
|
+
pathParams: {
|
|
232
|
+
id,
|
|
233
|
+
},
|
|
234
|
+
query: {
|
|
235
|
+
"body-format": bodyFormat,
|
|
236
|
+
sort,
|
|
237
|
+
cursor,
|
|
238
|
+
limit,
|
|
239
|
+
},
|
|
240
|
+
})
|
|
241
|
+
.then(this.getClientInstance().responseHandler({
|
|
242
|
+
200: {
|
|
243
|
+
"application/json": "json",
|
|
244
|
+
},
|
|
245
|
+
}))
|
|
246
|
+
.then(commonHttpClient.castResponse())
|
|
247
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getBlogPostInlineComments.response"))
|
|
248
|
+
.then(commonHttpClient.getBody);
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Returns the comments of the specific custom content.
|
|
252
|
+
* The number of results is limited by the `limit` parameter and additional
|
|
253
|
+
* results (if available) will be available through
|
|
254
|
+
* the `next` URL present in the `Link` response header.
|
|
255
|
+
*
|
|
256
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
257
|
+
* Permission to view the custom content and its corresponding containers.
|
|
258
|
+
*
|
|
259
|
+
* @returns Returned if the custom content comments were successfully retrieved
|
|
260
|
+
* @path {GET} /custom-content/{id}/footer-comments
|
|
261
|
+
* @scopes-current read:comment:confluence
|
|
262
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-custom-content-id-footer-comments-get
|
|
263
|
+
*/
|
|
264
|
+
this.getCustomContentComments = ({ id, bodyFormat, cursor, limit, sort, }) => {
|
|
265
|
+
return this.getClientInstance()
|
|
266
|
+
.request({
|
|
267
|
+
path: "/custom-content/{id}/footer-comments",
|
|
268
|
+
method: "GET",
|
|
269
|
+
pathParams: {
|
|
270
|
+
id,
|
|
271
|
+
},
|
|
272
|
+
query: {
|
|
273
|
+
"body-format": bodyFormat,
|
|
274
|
+
cursor,
|
|
275
|
+
limit,
|
|
276
|
+
sort,
|
|
277
|
+
},
|
|
278
|
+
})
|
|
279
|
+
.then(this.getClientInstance().responseHandler({
|
|
280
|
+
200: {
|
|
281
|
+
"application/json": "json",
|
|
282
|
+
},
|
|
283
|
+
}))
|
|
284
|
+
.then(commonHttpClient.castResponse())
|
|
285
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getCustomContentComments.response"))
|
|
286
|
+
.then(commonHttpClient.getBody);
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* Retrieves a footer comment by id
|
|
290
|
+
*
|
|
291
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
292
|
+
* Permission to view the content of the container and its corresponding space.
|
|
293
|
+
*
|
|
294
|
+
* @returns Returned if the footer comment is successfully retrieved.
|
|
295
|
+
* @path {GET} /footer-comments/{comment-id}
|
|
296
|
+
* @scopes-current read:comment:confluence
|
|
297
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-get
|
|
298
|
+
*/
|
|
299
|
+
this.getFooterCommentById = ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, }) => {
|
|
300
|
+
return this.getClientInstance()
|
|
301
|
+
.request({
|
|
302
|
+
path: "/footer-comments/{comment-id}",
|
|
303
|
+
method: "GET",
|
|
304
|
+
pathParams: {
|
|
305
|
+
"comment-id": commentId,
|
|
306
|
+
},
|
|
307
|
+
query: {
|
|
308
|
+
"body-format": bodyFormat,
|
|
309
|
+
version,
|
|
310
|
+
"include-properties": includeProperties,
|
|
311
|
+
"include-operations": includeOperations,
|
|
312
|
+
"include-likes": includeLikes,
|
|
313
|
+
"include-versions": includeVersions,
|
|
314
|
+
"include-version": includeVersion,
|
|
315
|
+
},
|
|
316
|
+
})
|
|
317
|
+
.then(this.getClientInstance().responseHandler({
|
|
318
|
+
200: {
|
|
319
|
+
"application/json": "json",
|
|
320
|
+
},
|
|
321
|
+
}))
|
|
322
|
+
.then(commonHttpClient.castResponse())
|
|
323
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterCommentById.response"))
|
|
324
|
+
.then(commonHttpClient.getBody);
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Returns the children footer comments of specific comment. The number of results
|
|
328
|
+
* is limited by the `limit` parameter and additional results (if available)
|
|
329
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
330
|
+
*
|
|
331
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
332
|
+
* Permission to view the content of the page and its corresponding space.
|
|
333
|
+
*
|
|
334
|
+
* @returns Returned if the requested footer comments are returned.
|
|
335
|
+
* @path {GET} /footer-comments/{id}/children
|
|
336
|
+
* @scopes-current read:comment:confluence
|
|
337
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-id-children-get
|
|
338
|
+
*/
|
|
339
|
+
this.getFooterCommentChildren = ({ id, bodyFormat, sort, cursor, limit, }) => {
|
|
340
|
+
return this.getClientInstance()
|
|
341
|
+
.request({
|
|
342
|
+
path: "/footer-comments/{id}/children",
|
|
343
|
+
method: "GET",
|
|
344
|
+
pathParams: {
|
|
345
|
+
id,
|
|
346
|
+
},
|
|
347
|
+
query: {
|
|
348
|
+
"body-format": bodyFormat,
|
|
349
|
+
sort,
|
|
350
|
+
cursor,
|
|
351
|
+
limit,
|
|
352
|
+
},
|
|
353
|
+
})
|
|
354
|
+
.then(this.getClientInstance().responseHandler({
|
|
355
|
+
200: {
|
|
356
|
+
"application/json": "json",
|
|
357
|
+
},
|
|
358
|
+
}))
|
|
359
|
+
.then(commonHttpClient.castResponse())
|
|
360
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterCommentChildren.response"))
|
|
361
|
+
.then(commonHttpClient.getBody);
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Returns all footer comments. The number of results is limited by the `limit`
|
|
365
|
+
* parameter and additional results (if available)
|
|
366
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
367
|
+
*
|
|
368
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
369
|
+
* Permission to view the content of the container and its corresponding space.
|
|
370
|
+
*
|
|
371
|
+
* @returns Returned if the requested footer comments are returned.
|
|
372
|
+
* @path {GET} /footer-comments
|
|
373
|
+
* @scopes-current read:comment:confluence
|
|
374
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-get
|
|
375
|
+
*/
|
|
376
|
+
this.getFooterComments = ({ bodyFormat, sort, cursor, limit, } = {}) => {
|
|
377
|
+
return this.getClientInstance()
|
|
378
|
+
.request({
|
|
379
|
+
path: "/footer-comments",
|
|
380
|
+
method: "GET",
|
|
381
|
+
query: {
|
|
382
|
+
"body-format": bodyFormat,
|
|
383
|
+
sort,
|
|
384
|
+
cursor,
|
|
385
|
+
limit,
|
|
386
|
+
},
|
|
387
|
+
})
|
|
388
|
+
.then(this.getClientInstance().responseHandler({
|
|
389
|
+
200: {
|
|
390
|
+
"application/json": "json",
|
|
391
|
+
},
|
|
392
|
+
}))
|
|
393
|
+
.then(commonHttpClient.castResponse())
|
|
394
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getFooterComments.response"))
|
|
395
|
+
.then(commonHttpClient.getBody);
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* Retrieves an inline comment by id
|
|
399
|
+
*
|
|
400
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
401
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
402
|
+
* space.
|
|
403
|
+
*
|
|
404
|
+
* @returns Returned if the inline comment is successfully retrieved.
|
|
405
|
+
* @path {GET} /inline-comments/{comment-id}
|
|
406
|
+
* @scopes-current read:comment:confluence
|
|
407
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-get
|
|
408
|
+
*/
|
|
409
|
+
this.getInlineCommentById = ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, }) => {
|
|
410
|
+
return this.getClientInstance()
|
|
411
|
+
.request({
|
|
412
|
+
path: "/inline-comments/{comment-id}",
|
|
413
|
+
method: "GET",
|
|
414
|
+
pathParams: {
|
|
415
|
+
"comment-id": commentId,
|
|
416
|
+
},
|
|
417
|
+
query: {
|
|
418
|
+
"body-format": bodyFormat,
|
|
419
|
+
version,
|
|
420
|
+
"include-properties": includeProperties,
|
|
421
|
+
"include-operations": includeOperations,
|
|
422
|
+
"include-likes": includeLikes,
|
|
423
|
+
"include-versions": includeVersions,
|
|
424
|
+
"include-version": includeVersion,
|
|
425
|
+
},
|
|
426
|
+
})
|
|
427
|
+
.then(this.getClientInstance().responseHandler({
|
|
428
|
+
200: {
|
|
429
|
+
"application/json": "json",
|
|
430
|
+
},
|
|
431
|
+
}))
|
|
432
|
+
.then(commonHttpClient.castResponse())
|
|
433
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineCommentById.response"))
|
|
434
|
+
.then(commonHttpClient.getBody);
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Returns the children inline comments of specific comment. The number of results
|
|
438
|
+
* is limited by the `limit` parameter and additional results (if available)
|
|
439
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
440
|
+
*
|
|
441
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
442
|
+
* Permission to view the content of the page and its corresponding space.
|
|
443
|
+
*
|
|
444
|
+
* @returns Returned if the requested footer comments are returned.
|
|
445
|
+
* @path {GET} /inline-comments/{id}/children
|
|
446
|
+
* @scopes-current read:comment:confluence
|
|
447
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-id-children-get
|
|
448
|
+
*/
|
|
449
|
+
this.getInlineCommentChildren = ({ id, bodyFormat, sort, cursor, limit, }) => {
|
|
450
|
+
return this.getClientInstance()
|
|
451
|
+
.request({
|
|
452
|
+
path: "/inline-comments/{id}/children",
|
|
453
|
+
method: "GET",
|
|
454
|
+
pathParams: {
|
|
455
|
+
id,
|
|
456
|
+
},
|
|
457
|
+
query: {
|
|
458
|
+
"body-format": bodyFormat,
|
|
459
|
+
sort,
|
|
460
|
+
cursor,
|
|
461
|
+
limit,
|
|
462
|
+
},
|
|
463
|
+
})
|
|
464
|
+
.then(this.getClientInstance().responseHandler({
|
|
465
|
+
200: {
|
|
466
|
+
"application/json": "json",
|
|
467
|
+
},
|
|
468
|
+
}))
|
|
469
|
+
.then(commonHttpClient.castResponse())
|
|
470
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineCommentChildren.response"))
|
|
471
|
+
.then(commonHttpClient.getBody);
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* Returns all inline comments. The number of results is limited by the `limit`
|
|
475
|
+
* parameter and additional results (if available)
|
|
476
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
477
|
+
*
|
|
478
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
479
|
+
* Permission to view the content of the page and its corresponding space.
|
|
480
|
+
*
|
|
481
|
+
* @returns Returned if the requested inline comments are returned.
|
|
482
|
+
* @path {GET} /inline-comments
|
|
483
|
+
* @scopes-current read:comment:confluence
|
|
484
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-get
|
|
485
|
+
*/
|
|
486
|
+
this.getInlineComments = ({ bodyFormat, sort, cursor, limit, } = {}) => {
|
|
487
|
+
return this.getClientInstance()
|
|
488
|
+
.request({
|
|
489
|
+
path: "/inline-comments",
|
|
490
|
+
method: "GET",
|
|
491
|
+
query: {
|
|
492
|
+
"body-format": bodyFormat,
|
|
493
|
+
sort,
|
|
494
|
+
cursor,
|
|
495
|
+
limit,
|
|
496
|
+
},
|
|
497
|
+
})
|
|
498
|
+
.then(this.getClientInstance().responseHandler({
|
|
499
|
+
200: {
|
|
500
|
+
"application/json": "json",
|
|
501
|
+
},
|
|
502
|
+
}))
|
|
503
|
+
.then(commonHttpClient.castResponse())
|
|
504
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getInlineComments.response"))
|
|
505
|
+
.then(commonHttpClient.getBody);
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Returns the root footer comments of specific page. The number of results is
|
|
509
|
+
* limited by the `limit` parameter and additional results (if available)
|
|
510
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
511
|
+
*
|
|
512
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
513
|
+
* Permission to view the content of the page and its corresponding space.
|
|
514
|
+
*
|
|
515
|
+
* @returns Returned if the requested footer comments are returned.
|
|
516
|
+
* @path {GET} /pages/{id}/footer-comments
|
|
517
|
+
* @scopes-current read:comment:confluence
|
|
518
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-pages-id-footer-comments-get
|
|
519
|
+
*/
|
|
520
|
+
this.getPageFooterComments = ({ id, bodyFormat, sort, cursor, limit, }) => {
|
|
521
|
+
return this.getClientInstance()
|
|
522
|
+
.request({
|
|
523
|
+
path: "/pages/{id}/footer-comments",
|
|
524
|
+
method: "GET",
|
|
525
|
+
pathParams: {
|
|
526
|
+
id,
|
|
527
|
+
},
|
|
528
|
+
query: {
|
|
529
|
+
"body-format": bodyFormat,
|
|
530
|
+
sort,
|
|
531
|
+
cursor,
|
|
532
|
+
limit,
|
|
533
|
+
},
|
|
534
|
+
})
|
|
535
|
+
.then(this.getClientInstance().responseHandler({
|
|
536
|
+
200: {
|
|
537
|
+
"application/json": "json",
|
|
538
|
+
},
|
|
539
|
+
}))
|
|
540
|
+
.then(commonHttpClient.castResponse())
|
|
541
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getPageFooterComments.response"))
|
|
542
|
+
.then(commonHttpClient.getBody);
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Returns the root inline comments of specific page. The number of results is
|
|
546
|
+
* limited by the `limit` parameter and additional results (if available)
|
|
547
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
548
|
+
*
|
|
549
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
550
|
+
* Permission to view the content of the page and its corresponding space.
|
|
551
|
+
*
|
|
552
|
+
* @returns Returned if the requested inline comments are returned.
|
|
553
|
+
* @path {GET} /pages/{id}/inline-comments
|
|
554
|
+
* @scopes-current read:comment:confluence
|
|
555
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-pages-id-inline-comments-get
|
|
556
|
+
*/
|
|
557
|
+
this.getPageInlineComments = ({ id, bodyFormat, sort, cursor, limit, }) => {
|
|
558
|
+
return this.getClientInstance()
|
|
559
|
+
.request({
|
|
560
|
+
path: "/pages/{id}/inline-comments",
|
|
561
|
+
method: "GET",
|
|
562
|
+
pathParams: {
|
|
563
|
+
id,
|
|
564
|
+
},
|
|
565
|
+
query: {
|
|
566
|
+
"body-format": bodyFormat,
|
|
567
|
+
sort,
|
|
568
|
+
cursor,
|
|
569
|
+
limit,
|
|
570
|
+
},
|
|
571
|
+
})
|
|
572
|
+
.then(this.getClientInstance().responseHandler({
|
|
573
|
+
200: {
|
|
574
|
+
"application/json": "json",
|
|
575
|
+
},
|
|
576
|
+
}))
|
|
577
|
+
.then(commonHttpClient.castResponse())
|
|
578
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.getPageInlineComments.response"))
|
|
579
|
+
.then(commonHttpClient.getBody);
|
|
580
|
+
};
|
|
581
|
+
/**
|
|
582
|
+
* Update a footer comment. This can be used to update the body text of a comment.
|
|
583
|
+
*
|
|
584
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
585
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
586
|
+
* space. Permission to create comments in the space.
|
|
587
|
+
*
|
|
588
|
+
* @returns Returned if the footer comment is updated successfully
|
|
589
|
+
* @path {PUT} /footer-comments/{comment-id}
|
|
590
|
+
* @scopes-current write:comment:confluence
|
|
591
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-put
|
|
592
|
+
*/
|
|
593
|
+
this.updateFooterComment = ({ commentId, requestBody, }) => {
|
|
594
|
+
return this.getClientInstance()
|
|
595
|
+
.request({
|
|
596
|
+
path: "/footer-comments/{comment-id}",
|
|
597
|
+
method: "PUT",
|
|
598
|
+
pathParams: {
|
|
599
|
+
"comment-id": commentId,
|
|
600
|
+
},
|
|
601
|
+
headers: {
|
|
602
|
+
"Content-Type": "application/json",
|
|
603
|
+
},
|
|
604
|
+
body: requestBody,
|
|
605
|
+
})
|
|
606
|
+
.then(this.getClientInstance().responseHandler({
|
|
607
|
+
200: {
|
|
608
|
+
"application/json": "json",
|
|
609
|
+
},
|
|
610
|
+
}))
|
|
611
|
+
.then(commonHttpClient.castResponse())
|
|
612
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.updateFooterComment.response"))
|
|
613
|
+
.then(commonHttpClient.getBody);
|
|
614
|
+
};
|
|
615
|
+
/**
|
|
616
|
+
* Update an inline comment. This can be used to update the body text of a comment
|
|
617
|
+
* and/or to resolve the comment
|
|
618
|
+
*
|
|
619
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
620
|
+
* Permission to view the content of the page or blogpost and its corresponding
|
|
621
|
+
* space. Permission to create comments in the space.
|
|
622
|
+
*
|
|
623
|
+
* @returns Returned if the inline comment is updated successfully.
|
|
624
|
+
* @path {PUT} /inline-comments/{comment-id}
|
|
625
|
+
* @scopes-current write:comment:confluence
|
|
626
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-put
|
|
627
|
+
*/
|
|
628
|
+
this.updateInlineComment = ({ commentId, updateInlineCommentModel, }) => {
|
|
629
|
+
return this.getClientInstance()
|
|
630
|
+
.request({
|
|
631
|
+
path: "/inline-comments/{comment-id}",
|
|
632
|
+
method: "PUT",
|
|
633
|
+
pathParams: {
|
|
634
|
+
"comment-id": commentId,
|
|
635
|
+
},
|
|
636
|
+
headers: {
|
|
637
|
+
"Content-Type": "application/json",
|
|
638
|
+
},
|
|
639
|
+
body: updateInlineCommentModel,
|
|
640
|
+
})
|
|
641
|
+
.then(this.getClientInstance().responseHandler({
|
|
642
|
+
200: {
|
|
643
|
+
"application/json": "json",
|
|
644
|
+
},
|
|
645
|
+
}))
|
|
646
|
+
.then(commonHttpClient.castResponse())
|
|
647
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("CommentService.updateInlineComment.response"))
|
|
648
|
+
.then(commonHttpClient.getBody);
|
|
649
|
+
};
|
|
647
650
|
}
|
|
648
651
|
static initialize() {
|
|
649
652
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("CommentService.getAttachmentComments.response", zod_1.z
|