@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,398 +12,401 @@ const version_1 = require("../models/version");
|
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
13
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version */
|
|
14
14
|
class VersionService 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
|
-
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves version details for the specified attachment and version number.
|
|
19
|
+
*
|
|
20
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
21
|
+
* Permission to view the attachment.
|
|
22
|
+
*
|
|
23
|
+
* @returns Returned if the requested version details are successfully retrieved.
|
|
24
|
+
* @path {GET} /attachments/{attachment-id}/versions/{version-number}
|
|
25
|
+
* @scopes-current read:attachment:confluence
|
|
26
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-attachments-attachment-id-versions-version-number-get
|
|
27
|
+
*/
|
|
28
|
+
this.getAttachmentVersionDetails = ({ attachmentId, versionNumber, }) => {
|
|
29
|
+
return this.getClientInstance()
|
|
30
|
+
.request({
|
|
31
|
+
path: "/attachments/{attachment-id}/versions/{version-number}",
|
|
32
|
+
method: "GET",
|
|
33
|
+
pathParams: {
|
|
34
|
+
"attachment-id": attachmentId,
|
|
35
|
+
"version-number": versionNumber,
|
|
36
|
+
},
|
|
37
|
+
})
|
|
38
|
+
.then(this.getClientInstance().responseHandler({
|
|
39
|
+
200: {
|
|
40
|
+
"application/json": "json",
|
|
41
|
+
},
|
|
42
|
+
}))
|
|
43
|
+
.then(commonHttpClient.castResponse())
|
|
44
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersionDetails.response"))
|
|
45
|
+
.then(commonHttpClient.getBody);
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Returns the versions of specific attachment.
|
|
49
|
+
*
|
|
50
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
51
|
+
* Permission to view the attachment and its corresponding space.
|
|
52
|
+
*
|
|
53
|
+
* @returns Returned if the requested attachment versions are returned.
|
|
54
|
+
* @path {GET} /attachments/{id}/versions
|
|
55
|
+
* @scopes-current read:attachment:confluence
|
|
56
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-attachments-id-versions-get
|
|
57
|
+
*/
|
|
58
|
+
this.getAttachmentVersions = ({ id, cursor, limit, sort, }) => {
|
|
59
|
+
return this.getClientInstance()
|
|
60
|
+
.request({
|
|
61
|
+
path: "/attachments/{id}/versions",
|
|
62
|
+
method: "GET",
|
|
63
|
+
pathParams: {
|
|
64
|
+
id,
|
|
65
|
+
},
|
|
66
|
+
query: {
|
|
67
|
+
cursor,
|
|
68
|
+
limit,
|
|
69
|
+
sort,
|
|
70
|
+
},
|
|
71
|
+
})
|
|
72
|
+
.then(this.getClientInstance().responseHandler({
|
|
73
|
+
200: {
|
|
74
|
+
"application/json": "json",
|
|
75
|
+
},
|
|
76
|
+
}))
|
|
77
|
+
.then(commonHttpClient.castResponse())
|
|
78
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersions.response"))
|
|
79
|
+
.then(commonHttpClient.getBody);
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Retrieves version details for the specified blog post and version number.
|
|
83
|
+
*
|
|
84
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
85
|
+
* Permission to view the blog post.
|
|
86
|
+
*
|
|
87
|
+
* @returns Returned if the requested version details are successfully retrieved.
|
|
88
|
+
* @path {GET} /blogposts/{blogpost-id}/versions/{version-number}
|
|
89
|
+
* @scopes-current read:page:confluence
|
|
90
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-blogposts-blogpost-id-versions-version-number-get
|
|
91
|
+
*/
|
|
92
|
+
this.getBlogPostVersionDetails = ({ blogpostId, versionNumber, }) => {
|
|
93
|
+
return this.getClientInstance()
|
|
94
|
+
.request({
|
|
95
|
+
path: "/blogposts/{blogpost-id}/versions/{version-number}",
|
|
96
|
+
method: "GET",
|
|
97
|
+
pathParams: {
|
|
98
|
+
"blogpost-id": blogpostId,
|
|
99
|
+
"version-number": versionNumber,
|
|
100
|
+
},
|
|
101
|
+
})
|
|
102
|
+
.then(this.getClientInstance().responseHandler({
|
|
103
|
+
200: {
|
|
104
|
+
"application/json": "json",
|
|
105
|
+
},
|
|
106
|
+
}))
|
|
107
|
+
.then(commonHttpClient.castResponse())
|
|
108
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersionDetails.response"))
|
|
109
|
+
.then(commonHttpClient.getBody);
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Returns the versions of specific blog post.
|
|
113
|
+
*
|
|
114
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
115
|
+
* Permission to view the blog post and its corresponding space.
|
|
116
|
+
*
|
|
117
|
+
* @returns Returned if the requested blog post versions are returned.
|
|
118
|
+
* @path {GET} /blogposts/{id}/versions
|
|
119
|
+
* @scopes-current read:page:confluence
|
|
120
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-blogposts-id-versions-get
|
|
121
|
+
*/
|
|
122
|
+
this.getBlogPostVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
|
|
123
|
+
return this.getClientInstance()
|
|
124
|
+
.request({
|
|
125
|
+
path: "/blogposts/{id}/versions",
|
|
126
|
+
method: "GET",
|
|
127
|
+
pathParams: {
|
|
128
|
+
id,
|
|
129
|
+
},
|
|
130
|
+
query: {
|
|
131
|
+
"body-format": bodyFormat,
|
|
132
|
+
cursor,
|
|
133
|
+
limit,
|
|
134
|
+
sort,
|
|
135
|
+
},
|
|
136
|
+
})
|
|
137
|
+
.then(this.getClientInstance().responseHandler({
|
|
138
|
+
200: {
|
|
139
|
+
"application/json": "json",
|
|
140
|
+
},
|
|
141
|
+
}))
|
|
142
|
+
.then(commonHttpClient.castResponse())
|
|
143
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersions.response"))
|
|
144
|
+
.then(commonHttpClient.getBody);
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Retrieves version details for the specified custom content and version number.
|
|
148
|
+
*
|
|
149
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
150
|
+
* Permission to view the page.
|
|
151
|
+
*
|
|
152
|
+
* @returns Returned if the requested version details are successfully retrieved.
|
|
153
|
+
* @path {GET} /custom-content/{custom-content-id}/versions/{version-number}
|
|
154
|
+
* @scopes-current read:custom-content:confluence
|
|
155
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-custom-content-custom-content-id-versions-version-number-get
|
|
156
|
+
*/
|
|
157
|
+
this.getCustomContentVersionDetails = ({ customContentId, versionNumber, }) => {
|
|
158
|
+
return this.getClientInstance()
|
|
159
|
+
.request({
|
|
160
|
+
path: "/custom-content/{custom-content-id}/versions/{version-number}",
|
|
161
|
+
method: "GET",
|
|
162
|
+
pathParams: {
|
|
163
|
+
"custom-content-id": customContentId,
|
|
164
|
+
"version-number": versionNumber,
|
|
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("VersionService.getCustomContentVersionDetails.response"))
|
|
174
|
+
.then(commonHttpClient.getBody);
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Returns the versions of specific custom content.
|
|
178
|
+
*
|
|
179
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
180
|
+
* Permission to view the custom content and its corresponding page and space.
|
|
181
|
+
*
|
|
182
|
+
* @returns Returned if the requested custom content versions are returned.
|
|
183
|
+
* @path {GET} /custom-content/{custom-content-id}/versions
|
|
184
|
+
* @scopes-current read:custom-content:confluence
|
|
185
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-custom-content-custom-content-id-versions-get
|
|
186
|
+
*/
|
|
187
|
+
this.getCustomContentVersions = ({ customContentId, bodyFormat, cursor, limit, sort, }) => {
|
|
188
|
+
return this.getClientInstance()
|
|
189
|
+
.request({
|
|
190
|
+
path: "/custom-content/{custom-content-id}/versions",
|
|
191
|
+
method: "GET",
|
|
192
|
+
pathParams: {
|
|
193
|
+
"custom-content-id": customContentId,
|
|
194
|
+
},
|
|
195
|
+
query: {
|
|
196
|
+
"body-format": bodyFormat,
|
|
197
|
+
cursor,
|
|
198
|
+
limit,
|
|
199
|
+
sort,
|
|
200
|
+
},
|
|
201
|
+
})
|
|
202
|
+
.then(this.getClientInstance().responseHandler({
|
|
203
|
+
200: {
|
|
204
|
+
"application/json": "json",
|
|
205
|
+
},
|
|
206
|
+
}))
|
|
207
|
+
.then(commonHttpClient.castResponse())
|
|
208
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersions.response"))
|
|
209
|
+
.then(commonHttpClient.getBody);
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Retrieves version details for the specified footer comment version.
|
|
213
|
+
*
|
|
214
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
215
|
+
* Permission to view the content of the page or blog post and its corresponding
|
|
216
|
+
* space.
|
|
217
|
+
*
|
|
218
|
+
* @returns Returned if the requested version details are successfully retrieved.
|
|
219
|
+
* @path {GET} /footer-comments/{id}/versions/{version-number}
|
|
220
|
+
* @scopes-current read:comment:confluence
|
|
221
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-footer-comments-id-versions-version-number-get
|
|
222
|
+
*/
|
|
223
|
+
this.getFooterCommentVersionDetails = ({ id, versionNumber, }) => {
|
|
224
|
+
return this.getClientInstance()
|
|
225
|
+
.request({
|
|
226
|
+
path: "/footer-comments/{id}/versions/{version-number}",
|
|
227
|
+
method: "GET",
|
|
228
|
+
pathParams: {
|
|
229
|
+
id,
|
|
230
|
+
"version-number": versionNumber,
|
|
231
|
+
},
|
|
232
|
+
})
|
|
233
|
+
.then(this.getClientInstance().responseHandler({
|
|
234
|
+
200: {
|
|
235
|
+
"application/json": "json",
|
|
236
|
+
},
|
|
237
|
+
}))
|
|
238
|
+
.then(commonHttpClient.castResponse())
|
|
239
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersionDetails.response"))
|
|
240
|
+
.then(commonHttpClient.getBody);
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Retrieves the versions of the specified footer comment.
|
|
244
|
+
*
|
|
245
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
246
|
+
* Permission to view the content of the page or blog post and its corresponding
|
|
247
|
+
* space.
|
|
248
|
+
*
|
|
249
|
+
* @returns Returned if the requested footer comment versions are returned.
|
|
250
|
+
* @path {GET} /footer-comments/{id}/versions
|
|
251
|
+
* @scopes-current read:comment:confluence
|
|
252
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-footer-comments-id-versions-get
|
|
253
|
+
*/
|
|
254
|
+
this.getFooterCommentVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
|
|
255
|
+
return this.getClientInstance()
|
|
256
|
+
.request({
|
|
257
|
+
path: "/footer-comments/{id}/versions",
|
|
258
|
+
method: "GET",
|
|
259
|
+
pathParams: {
|
|
260
|
+
id,
|
|
261
|
+
},
|
|
262
|
+
query: {
|
|
263
|
+
"body-format": bodyFormat,
|
|
264
|
+
cursor,
|
|
265
|
+
limit,
|
|
266
|
+
sort,
|
|
267
|
+
},
|
|
268
|
+
})
|
|
269
|
+
.then(this.getClientInstance().responseHandler({
|
|
270
|
+
200: {
|
|
271
|
+
"application/json": "json",
|
|
272
|
+
},
|
|
273
|
+
}))
|
|
274
|
+
.then(commonHttpClient.castResponse())
|
|
275
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersions.response"))
|
|
276
|
+
.then(commonHttpClient.getBody);
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Retrieves version details for the specified inline comment version.
|
|
280
|
+
*
|
|
281
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
282
|
+
* Permission to view the content of the page or blog post and its corresponding
|
|
283
|
+
* space.
|
|
284
|
+
*
|
|
285
|
+
* @returns Returned if the requested version details are successfully retrieved.
|
|
286
|
+
* @path {GET} /inline-comments/{id}/versions/{version-number}
|
|
287
|
+
* @scopes-current read:comment:confluence
|
|
288
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-inline-comments-id-versions-version-number-get
|
|
289
|
+
*/
|
|
290
|
+
this.getInlineCommentVersionDetails = ({ id, versionNumber, }) => {
|
|
291
|
+
return this.getClientInstance()
|
|
292
|
+
.request({
|
|
293
|
+
path: "/inline-comments/{id}/versions/{version-number}",
|
|
294
|
+
method: "GET",
|
|
295
|
+
pathParams: {
|
|
296
|
+
id,
|
|
297
|
+
"version-number": versionNumber,
|
|
298
|
+
},
|
|
299
|
+
})
|
|
300
|
+
.then(this.getClientInstance().responseHandler({
|
|
301
|
+
200: {
|
|
302
|
+
"application/json": "json",
|
|
303
|
+
},
|
|
304
|
+
}))
|
|
305
|
+
.then(commonHttpClient.castResponse())
|
|
306
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersionDetails.response"))
|
|
307
|
+
.then(commonHttpClient.getBody);
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Retrieves the versions of the specified inline comment.
|
|
311
|
+
*
|
|
312
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
313
|
+
* Permission to view the content of the page or blog post and its corresponding
|
|
314
|
+
* space.
|
|
315
|
+
*
|
|
316
|
+
* @returns Returned if the requested inline comment versions are returned.
|
|
317
|
+
* @path {GET} /inline-comments/{id}/versions
|
|
318
|
+
* @scopes-current read:comment:confluence
|
|
319
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-inline-comments-id-versions-get
|
|
320
|
+
*/
|
|
321
|
+
this.getInlineCommentVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
|
|
322
|
+
return this.getClientInstance()
|
|
323
|
+
.request({
|
|
324
|
+
path: "/inline-comments/{id}/versions",
|
|
325
|
+
method: "GET",
|
|
326
|
+
pathParams: {
|
|
327
|
+
id,
|
|
328
|
+
},
|
|
329
|
+
query: {
|
|
330
|
+
"body-format": bodyFormat,
|
|
331
|
+
cursor,
|
|
332
|
+
limit,
|
|
333
|
+
sort,
|
|
334
|
+
},
|
|
335
|
+
})
|
|
336
|
+
.then(this.getClientInstance().responseHandler({
|
|
337
|
+
200: {
|
|
338
|
+
"application/json": "json",
|
|
339
|
+
},
|
|
340
|
+
}))
|
|
341
|
+
.then(commonHttpClient.castResponse())
|
|
342
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersions.response"))
|
|
343
|
+
.then(commonHttpClient.getBody);
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* Retrieves version details for the specified page and version number.
|
|
347
|
+
*
|
|
348
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
349
|
+
* Permission to view the page.
|
|
350
|
+
*
|
|
351
|
+
* @returns Returned if the requested version details are successfully retrieved.
|
|
352
|
+
* @path {GET} /pages/{page-id}/versions/{version-number}
|
|
353
|
+
* @scopes-current read:page:confluence
|
|
354
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-pages-page-id-versions-version-number-get
|
|
355
|
+
*/
|
|
356
|
+
this.getPageVersionDetails = ({ pageId, versionNumber, }) => {
|
|
357
|
+
return this.getClientInstance()
|
|
358
|
+
.request({
|
|
359
|
+
path: "/pages/{page-id}/versions/{version-number}",
|
|
360
|
+
method: "GET",
|
|
361
|
+
pathParams: {
|
|
362
|
+
"page-id": pageId,
|
|
363
|
+
"version-number": versionNumber,
|
|
364
|
+
},
|
|
365
|
+
})
|
|
366
|
+
.then(this.getClientInstance().responseHandler({
|
|
367
|
+
200: {
|
|
368
|
+
"application/json": "json",
|
|
369
|
+
},
|
|
370
|
+
}))
|
|
371
|
+
.then(commonHttpClient.castResponse())
|
|
372
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersionDetails.response"))
|
|
373
|
+
.then(commonHttpClient.getBody);
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Returns the versions of specific page.
|
|
377
|
+
*
|
|
378
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
379
|
+
* Permission to view the page and its corresponding space.
|
|
380
|
+
*
|
|
381
|
+
* @returns Returned if the requested page versions are returned.
|
|
382
|
+
* @path {GET} /pages/{id}/versions
|
|
383
|
+
* @scopes-current read:page:confluence
|
|
384
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-pages-id-versions-get
|
|
385
|
+
*/
|
|
386
|
+
this.getPageVersions = ({ id, bodyFormat, cursor, limit, sort, }) => {
|
|
387
|
+
return this.getClientInstance()
|
|
388
|
+
.request({
|
|
389
|
+
path: "/pages/{id}/versions",
|
|
390
|
+
method: "GET",
|
|
391
|
+
pathParams: {
|
|
392
|
+
id,
|
|
393
|
+
},
|
|
394
|
+
query: {
|
|
395
|
+
"body-format": bodyFormat,
|
|
396
|
+
cursor,
|
|
397
|
+
limit,
|
|
398
|
+
sort,
|
|
399
|
+
},
|
|
400
|
+
})
|
|
401
|
+
.then(this.getClientInstance().responseHandler({
|
|
402
|
+
200: {
|
|
403
|
+
"application/json": "json",
|
|
404
|
+
},
|
|
405
|
+
}))
|
|
406
|
+
.then(commonHttpClient.castResponse())
|
|
407
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersions.response"))
|
|
408
|
+
.then(commonHttpClient.getBody);
|
|
409
|
+
};
|
|
407
410
|
}
|
|
408
411
|
static initialize() {
|
|
409
412
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersionDetails.response", zod_1.z
|