@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
|
@@ -11,1245 +11,1248 @@ const common_1 = require("../models/common");
|
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties */
|
|
13
13
|
class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
14
|
-
|
|
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
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
"
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
"
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
"
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
"
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
"
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
"
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
"
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
"
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
"
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
"
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
"
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
"
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
"
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
"
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
"
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* Creates a new content property for an attachment.
|
|
18
|
+
*
|
|
19
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
20
|
+
* Permission to update the attachment.
|
|
21
|
+
*
|
|
22
|
+
* @returns Returned if the content property was created successfully.
|
|
23
|
+
* @path {POST} /attachments/{attachment-id}/properties
|
|
24
|
+
* @scopes-current read:attachment:confluence, write:attachment:confluence
|
|
25
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-attachments-attachment-id-properties-post
|
|
26
|
+
*/
|
|
27
|
+
this.createAttachmentProperty = ({ attachmentId, contentPropertyCreateRequest, }) => {
|
|
28
|
+
return this.getClientInstance()
|
|
29
|
+
.request({
|
|
30
|
+
path: "/attachments/{attachment-id}/properties",
|
|
31
|
+
method: "POST",
|
|
32
|
+
pathParams: {
|
|
33
|
+
"attachment-id": attachmentId,
|
|
34
|
+
},
|
|
35
|
+
headers: {
|
|
36
|
+
"Content-Type": "application/json",
|
|
37
|
+
},
|
|
38
|
+
body: contentPropertyCreateRequest,
|
|
39
|
+
})
|
|
40
|
+
.then(this.getClientInstance().responseHandler({
|
|
41
|
+
200: {
|
|
42
|
+
"application/json": "json",
|
|
43
|
+
},
|
|
44
|
+
}))
|
|
45
|
+
.then(commonHttpClient.castResponse())
|
|
46
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createAttachmentProperty.response"))
|
|
47
|
+
.then(commonHttpClient.getBody);
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new property for a blogpost.
|
|
51
|
+
*
|
|
52
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
53
|
+
* Permission to update the blog post.
|
|
54
|
+
*
|
|
55
|
+
* @returns Returned if the content property was created successfully.
|
|
56
|
+
* @path {POST} /blogposts/{blogpost-id}/properties
|
|
57
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
58
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-blogposts-blogpost-id-properties-post
|
|
59
|
+
*/
|
|
60
|
+
this.createBlogpostProperty = ({ blogpostId, contentPropertyCreateRequest, }) => {
|
|
61
|
+
return this.getClientInstance()
|
|
62
|
+
.request({
|
|
63
|
+
path: "/blogposts/{blogpost-id}/properties",
|
|
64
|
+
method: "POST",
|
|
65
|
+
pathParams: {
|
|
66
|
+
"blogpost-id": blogpostId,
|
|
67
|
+
},
|
|
68
|
+
headers: {
|
|
69
|
+
"Content-Type": "application/json",
|
|
70
|
+
},
|
|
71
|
+
body: contentPropertyCreateRequest,
|
|
72
|
+
})
|
|
73
|
+
.then(this.getClientInstance().responseHandler({
|
|
74
|
+
200: {
|
|
75
|
+
"application/json": "json",
|
|
76
|
+
},
|
|
77
|
+
}))
|
|
78
|
+
.then(commonHttpClient.castResponse())
|
|
79
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createBlogpostProperty.response"))
|
|
80
|
+
.then(commonHttpClient.getBody);
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new content property for a comment.
|
|
84
|
+
*
|
|
85
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
86
|
+
* Permission to update the comment.
|
|
87
|
+
*
|
|
88
|
+
* @returns Returned if the content property was created successfully.
|
|
89
|
+
* @path {POST} /comments/{comment-id}/properties
|
|
90
|
+
* @scopes-current read:comment:confluence, write:comment:confluence
|
|
91
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-comments-comment-id-properties-post
|
|
92
|
+
*/
|
|
93
|
+
this.createCommentProperty = ({ commentId, contentPropertyCreateRequest, }) => {
|
|
94
|
+
return this.getClientInstance()
|
|
95
|
+
.request({
|
|
96
|
+
path: "/comments/{comment-id}/properties",
|
|
97
|
+
method: "POST",
|
|
98
|
+
pathParams: {
|
|
99
|
+
"comment-id": commentId,
|
|
100
|
+
},
|
|
101
|
+
headers: {
|
|
102
|
+
"Content-Type": "application/json",
|
|
103
|
+
},
|
|
104
|
+
body: contentPropertyCreateRequest,
|
|
105
|
+
})
|
|
106
|
+
.then(this.getClientInstance().responseHandler({
|
|
107
|
+
200: {
|
|
108
|
+
"application/json": "json",
|
|
109
|
+
},
|
|
110
|
+
}))
|
|
111
|
+
.then(commonHttpClient.castResponse())
|
|
112
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createCommentProperty.response"))
|
|
113
|
+
.then(commonHttpClient.getBody);
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Creates a new content property for a piece of custom content.
|
|
117
|
+
*
|
|
118
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
119
|
+
* Permission to update the custom content.
|
|
120
|
+
*
|
|
121
|
+
* @returns Returned if the content property was created successfully.
|
|
122
|
+
* @path {POST} /custom-content/{custom-content-id}/properties
|
|
123
|
+
* @scopes-current read:custom-content:confluence, write:custom-content:confluence
|
|
124
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-custom-content-custom-content-id-properties-post
|
|
125
|
+
*/
|
|
126
|
+
this.createCustomContentProperty = ({ customContentId, contentPropertyCreateRequest, }) => {
|
|
127
|
+
return this.getClientInstance()
|
|
128
|
+
.request({
|
|
129
|
+
path: "/custom-content/{custom-content-id}/properties",
|
|
130
|
+
method: "POST",
|
|
131
|
+
pathParams: {
|
|
132
|
+
"custom-content-id": customContentId,
|
|
133
|
+
},
|
|
134
|
+
headers: {
|
|
135
|
+
"Content-Type": "application/json",
|
|
136
|
+
},
|
|
137
|
+
body: contentPropertyCreateRequest,
|
|
138
|
+
})
|
|
139
|
+
.then(this.getClientInstance().responseHandler({
|
|
140
|
+
200: {
|
|
141
|
+
"application/json": "json",
|
|
142
|
+
},
|
|
143
|
+
}))
|
|
144
|
+
.then(commonHttpClient.castResponse())
|
|
145
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createCustomContentProperty.response"))
|
|
146
|
+
.then(commonHttpClient.getBody);
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Creates a new content property for a database.
|
|
150
|
+
*
|
|
151
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
152
|
+
* Permission to update the database.
|
|
153
|
+
*
|
|
154
|
+
* @returns Returned if the content property was created successfully.
|
|
155
|
+
* @path {POST} /databases/{id}/properties
|
|
156
|
+
* @scopes-current read:database:confluence, write:database:confluence
|
|
157
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-databases-id-properties-post
|
|
158
|
+
*/
|
|
159
|
+
this.createDatabaseProperty = ({ id, contentPropertyCreateRequest, }) => {
|
|
160
|
+
return this.getClientInstance()
|
|
161
|
+
.request({
|
|
162
|
+
path: "/databases/{id}/properties",
|
|
163
|
+
method: "POST",
|
|
164
|
+
pathParams: {
|
|
165
|
+
id,
|
|
166
|
+
},
|
|
167
|
+
headers: {
|
|
168
|
+
"Content-Type": "application/json",
|
|
169
|
+
},
|
|
170
|
+
body: contentPropertyCreateRequest,
|
|
171
|
+
})
|
|
172
|
+
.then(this.getClientInstance().responseHandler({
|
|
173
|
+
200: {
|
|
174
|
+
"application/json": "json",
|
|
175
|
+
},
|
|
176
|
+
}))
|
|
177
|
+
.then(commonHttpClient.castResponse())
|
|
178
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createDatabaseProperty.response"))
|
|
179
|
+
.then(commonHttpClient.getBody);
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Creates a new content property for a page.
|
|
183
|
+
*
|
|
184
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
185
|
+
* Permission to update the page.
|
|
186
|
+
*
|
|
187
|
+
* @returns Returned if the content property was created successfully.
|
|
188
|
+
* @path {POST} /pages/{page-id}/properties
|
|
189
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
190
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-pages-page-id-properties-post
|
|
191
|
+
*/
|
|
192
|
+
this.createPageProperty = ({ pageId, contentPropertyCreateRequest, }) => {
|
|
193
|
+
return this.getClientInstance()
|
|
194
|
+
.request({
|
|
195
|
+
path: "/pages/{page-id}/properties",
|
|
196
|
+
method: "POST",
|
|
197
|
+
pathParams: {
|
|
198
|
+
"page-id": pageId,
|
|
199
|
+
},
|
|
200
|
+
headers: {
|
|
201
|
+
"Content-Type": "application/json",
|
|
202
|
+
},
|
|
203
|
+
body: contentPropertyCreateRequest,
|
|
204
|
+
})
|
|
205
|
+
.then(this.getClientInstance().responseHandler({
|
|
206
|
+
200: {
|
|
207
|
+
"application/json": "json",
|
|
208
|
+
},
|
|
209
|
+
}))
|
|
210
|
+
.then(commonHttpClient.castResponse())
|
|
211
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createPageProperty.response"))
|
|
212
|
+
.then(commonHttpClient.getBody);
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Creates a new content property for a Smart Link in the content tree.
|
|
216
|
+
*
|
|
217
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
218
|
+
* Permission to update the Smart Link in the content tree.
|
|
219
|
+
*
|
|
220
|
+
* @returns Returned if the content property was created successfully.
|
|
221
|
+
* @path {POST} /embeds/{id}/properties
|
|
222
|
+
* @scopes-current read:embed:confluence, write:embed:confluence
|
|
223
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-embeds-id-properties-post
|
|
224
|
+
*/
|
|
225
|
+
this.createSmartLinkProperty = ({ id, contentPropertyCreateRequest, }) => {
|
|
226
|
+
return this.getClientInstance()
|
|
227
|
+
.request({
|
|
228
|
+
path: "/embeds/{id}/properties",
|
|
229
|
+
method: "POST",
|
|
230
|
+
pathParams: {
|
|
231
|
+
id,
|
|
232
|
+
},
|
|
233
|
+
headers: {
|
|
234
|
+
"Content-Type": "application/json",
|
|
235
|
+
},
|
|
236
|
+
body: contentPropertyCreateRequest,
|
|
237
|
+
})
|
|
238
|
+
.then(this.getClientInstance().responseHandler({
|
|
239
|
+
200: {
|
|
240
|
+
"application/json": "json",
|
|
241
|
+
},
|
|
242
|
+
}))
|
|
243
|
+
.then(commonHttpClient.castResponse())
|
|
244
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createSmartLinkProperty.response"))
|
|
245
|
+
.then(commonHttpClient.getBody);
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Creates a new content property for a whiteboard.
|
|
249
|
+
*
|
|
250
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
251
|
+
* Permission to update the whiteboard.
|
|
252
|
+
*
|
|
253
|
+
* @returns Returned if the content property was created successfully.
|
|
254
|
+
* @path {POST} /whiteboards/{id}/properties
|
|
255
|
+
* @scopes-current read:whiteboard:confluence, write:whiteboard:confluence
|
|
256
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-whiteboards-id-properties-post
|
|
257
|
+
*/
|
|
258
|
+
this.createWhiteboardProperty = ({ id, contentPropertyCreateRequest, }) => {
|
|
259
|
+
return this.getClientInstance()
|
|
260
|
+
.request({
|
|
261
|
+
path: "/whiteboards/{id}/properties",
|
|
262
|
+
method: "POST",
|
|
263
|
+
pathParams: {
|
|
264
|
+
id,
|
|
265
|
+
},
|
|
266
|
+
headers: {
|
|
267
|
+
"Content-Type": "application/json",
|
|
268
|
+
},
|
|
269
|
+
body: contentPropertyCreateRequest,
|
|
270
|
+
})
|
|
271
|
+
.then(this.getClientInstance().responseHandler({
|
|
272
|
+
200: {
|
|
273
|
+
"application/json": "json",
|
|
274
|
+
},
|
|
275
|
+
}))
|
|
276
|
+
.then(commonHttpClient.castResponse())
|
|
277
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createWhiteboardProperty.response"))
|
|
278
|
+
.then(commonHttpClient.getBody);
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Deletes a content property for an attachment by its id.
|
|
282
|
+
*
|
|
283
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
284
|
+
* Permission to attachment the page.
|
|
285
|
+
*
|
|
286
|
+
* @path {DELETE} /attachments/{attachment-id}/properties/{property-id}
|
|
287
|
+
* @scopes-current read:attachment:confluence, write:attachment:confluence
|
|
288
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-attachments-attachment-id-properties-property-id-delete
|
|
289
|
+
*/
|
|
290
|
+
this.deleteAttachmentPropertyById = ({ attachmentId, propertyId, }) => {
|
|
291
|
+
return this.getClientInstance()
|
|
292
|
+
.request({
|
|
293
|
+
path: "/attachments/{attachment-id}/properties/{property-id}",
|
|
294
|
+
method: "DELETE",
|
|
295
|
+
pathParams: {
|
|
296
|
+
"attachment-id": attachmentId,
|
|
297
|
+
"property-id": propertyId,
|
|
298
|
+
},
|
|
299
|
+
})
|
|
300
|
+
.then(commonHttpClient.discardResult);
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* Deletes a content property for a blogpost by its id.
|
|
304
|
+
*
|
|
305
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
306
|
+
* Permission to edit the blog post.
|
|
307
|
+
*
|
|
308
|
+
* @path {DELETE} /blogposts/{blogpost-id}/properties/{property-id}
|
|
309
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
310
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-blogposts-blogpost-id-properties-property-id-delete
|
|
311
|
+
*/
|
|
312
|
+
this.deleteBlogpostPropertyById = ({ blogpostId, propertyId, }) => {
|
|
313
|
+
return this.getClientInstance()
|
|
314
|
+
.request({
|
|
315
|
+
path: "/blogposts/{blogpost-id}/properties/{property-id}",
|
|
316
|
+
method: "DELETE",
|
|
317
|
+
pathParams: {
|
|
318
|
+
"blogpost-id": blogpostId,
|
|
319
|
+
"property-id": propertyId,
|
|
320
|
+
},
|
|
321
|
+
})
|
|
322
|
+
.then(commonHttpClient.discardResult);
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Deletes a content property for a comment by its id.
|
|
326
|
+
*
|
|
327
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
328
|
+
* Permission to edit the comment.
|
|
329
|
+
*
|
|
330
|
+
* @path {DELETE} /comments/{comment-id}/properties/{property-id}
|
|
331
|
+
* @scopes-current read:comment:confluence, write:comment:confluence
|
|
332
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-comments-comment-id-properties-property-id-delete
|
|
333
|
+
*/
|
|
334
|
+
this.deleteCommentPropertyById = ({ commentId, propertyId, }) => {
|
|
335
|
+
return this.getClientInstance()
|
|
336
|
+
.request({
|
|
337
|
+
path: "/comments/{comment-id}/properties/{property-id}",
|
|
338
|
+
method: "DELETE",
|
|
339
|
+
pathParams: {
|
|
340
|
+
"comment-id": commentId,
|
|
341
|
+
"property-id": propertyId,
|
|
342
|
+
},
|
|
343
|
+
})
|
|
344
|
+
.then(commonHttpClient.discardResult);
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Deletes a content property for a piece of custom content by its id.
|
|
348
|
+
*
|
|
349
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
350
|
+
* Permission to edit the custom content.
|
|
351
|
+
*
|
|
352
|
+
* @path {DELETE} /custom-content/{custom-content-id}/properties/{property-id}
|
|
353
|
+
* @scopes-current read:custom-content:confluence, write:custom-content:confluence
|
|
354
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-custom-content-custom-content-id-properties-property-id-delete
|
|
355
|
+
*/
|
|
356
|
+
this.deleteCustomContentPropertyById = ({ customContentId, propertyId, }) => {
|
|
357
|
+
return this.getClientInstance()
|
|
358
|
+
.request({
|
|
359
|
+
path: "/custom-content/{custom-content-id}/properties/{property-id}",
|
|
360
|
+
method: "DELETE",
|
|
361
|
+
pathParams: {
|
|
362
|
+
"custom-content-id": customContentId,
|
|
363
|
+
"property-id": propertyId,
|
|
364
|
+
},
|
|
365
|
+
})
|
|
366
|
+
.then(commonHttpClient.discardResult);
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Deletes a content property for a database by its id.
|
|
370
|
+
*
|
|
371
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
372
|
+
* Permission to edit the database.
|
|
373
|
+
*
|
|
374
|
+
* @path {DELETE} /databases/{database-id}/properties/{property-id}
|
|
375
|
+
* @scopes-current read:database:confluence, write:database:confluence
|
|
376
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-databases-database-id-properties-property-id-delete
|
|
377
|
+
*/
|
|
378
|
+
this.deleteDatabasePropertyById = ({ databaseId, propertyId, }) => {
|
|
379
|
+
return this.getClientInstance()
|
|
380
|
+
.request({
|
|
381
|
+
path: "/databases/{database-id}/properties/{property-id}",
|
|
382
|
+
method: "DELETE",
|
|
383
|
+
pathParams: {
|
|
384
|
+
"database-id": databaseId,
|
|
385
|
+
"property-id": propertyId,
|
|
386
|
+
},
|
|
387
|
+
})
|
|
388
|
+
.then(commonHttpClient.discardResult);
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* Deletes a content property for a page by its id.
|
|
392
|
+
*
|
|
393
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
394
|
+
* Permission to edit the page.
|
|
395
|
+
*
|
|
396
|
+
* @path {DELETE} /pages/{page-id}/properties/{property-id}
|
|
397
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
398
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-pages-page-id-properties-property-id-delete
|
|
399
|
+
*/
|
|
400
|
+
this.deletePagePropertyById = ({ pageId, propertyId, }) => {
|
|
401
|
+
return this.getClientInstance()
|
|
402
|
+
.request({
|
|
403
|
+
path: "/pages/{page-id}/properties/{property-id}",
|
|
404
|
+
method: "DELETE",
|
|
405
|
+
pathParams: {
|
|
406
|
+
"page-id": pageId,
|
|
407
|
+
"property-id": propertyId,
|
|
408
|
+
},
|
|
409
|
+
})
|
|
410
|
+
.then(commonHttpClient.discardResult);
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* Deletes a content property for a Smart Link in the content tree by its id.
|
|
414
|
+
*
|
|
415
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
416
|
+
* Permission to edit the Smart Link in the content tree.
|
|
417
|
+
*
|
|
418
|
+
* @path {DELETE} /embeds/{embed-id}/properties/{property-id}
|
|
419
|
+
* @scopes-current read:embed:confluence, write:embed:confluence
|
|
420
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-embeds-embed-id-properties-property-id-delete
|
|
421
|
+
*/
|
|
422
|
+
this.deleteSmartLinkPropertyById = ({ embedId, propertyId, }) => {
|
|
423
|
+
return this.getClientInstance()
|
|
424
|
+
.request({
|
|
425
|
+
path: "/embeds/{embed-id}/properties/{property-id}",
|
|
426
|
+
method: "DELETE",
|
|
427
|
+
pathParams: {
|
|
428
|
+
"embed-id": embedId,
|
|
429
|
+
"property-id": propertyId,
|
|
430
|
+
},
|
|
431
|
+
})
|
|
432
|
+
.then(commonHttpClient.discardResult);
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Deletes a content property for a whiteboard by its id.
|
|
436
|
+
*
|
|
437
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
438
|
+
* Permission to edit the whiteboard.
|
|
439
|
+
*
|
|
440
|
+
* @path {DELETE} /whiteboards/{whiteboard-id}/properties/{property-id}
|
|
441
|
+
* @scopes-current read:whiteboard:confluence, write:whiteboard:confluence
|
|
442
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-whiteboards-whiteboard-id-properties-property-id-delete
|
|
443
|
+
*/
|
|
444
|
+
this.deleteWhiteboardPropertyById = ({ whiteboardId, propertyId, }) => {
|
|
445
|
+
return this.getClientInstance()
|
|
446
|
+
.request({
|
|
447
|
+
path: "/whiteboards/{whiteboard-id}/properties/{property-id}",
|
|
448
|
+
method: "DELETE",
|
|
449
|
+
pathParams: {
|
|
450
|
+
"whiteboard-id": whiteboardId,
|
|
451
|
+
"property-id": propertyId,
|
|
452
|
+
},
|
|
453
|
+
})
|
|
454
|
+
.then(commonHttpClient.discardResult);
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Retrieves all Content Properties tied to a specified attachment.
|
|
458
|
+
*
|
|
459
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
460
|
+
* Permission to view the attachment.
|
|
461
|
+
*
|
|
462
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
463
|
+
* @path {GET} /attachments/{attachment-id}/properties
|
|
464
|
+
* @scopes-current read:attachment:confluence
|
|
465
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-attachments-attachment-id-properties-get
|
|
466
|
+
*/
|
|
467
|
+
this.getAttachmentContentProperties = ({ attachmentId, key, sort, cursor, limit, }) => {
|
|
468
|
+
return this.getClientInstance()
|
|
469
|
+
.request({
|
|
470
|
+
path: "/attachments/{attachment-id}/properties",
|
|
471
|
+
method: "GET",
|
|
472
|
+
pathParams: {
|
|
473
|
+
"attachment-id": attachmentId,
|
|
474
|
+
},
|
|
475
|
+
query: {
|
|
476
|
+
key,
|
|
477
|
+
sort,
|
|
478
|
+
cursor,
|
|
479
|
+
limit,
|
|
480
|
+
},
|
|
481
|
+
})
|
|
482
|
+
.then(this.getClientInstance().responseHandler({
|
|
483
|
+
200: {
|
|
484
|
+
"application/json": "json",
|
|
485
|
+
},
|
|
486
|
+
}))
|
|
487
|
+
.then(commonHttpClient.castResponse())
|
|
488
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getAttachmentContentProperties.response"))
|
|
489
|
+
.then(commonHttpClient.getBody);
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
493
|
+
* attachment.
|
|
494
|
+
*
|
|
495
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
496
|
+
* Permission to view the attachment.
|
|
497
|
+
*
|
|
498
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
499
|
+
* @path {GET} /attachments/{attachment-id}/properties/{property-id}
|
|
500
|
+
* @scopes-current read:attachment:confluence
|
|
501
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-attachments-attachment-id-properties-property-id-get
|
|
502
|
+
*/
|
|
503
|
+
this.getAttachmentContentPropertiesById = ({ attachmentId, propertyId, }) => {
|
|
504
|
+
return this.getClientInstance()
|
|
505
|
+
.request({
|
|
506
|
+
path: "/attachments/{attachment-id}/properties/{property-id}",
|
|
507
|
+
method: "GET",
|
|
508
|
+
pathParams: {
|
|
509
|
+
"attachment-id": attachmentId,
|
|
510
|
+
"property-id": propertyId,
|
|
511
|
+
},
|
|
512
|
+
})
|
|
513
|
+
.then(this.getClientInstance().responseHandler({
|
|
514
|
+
200: {
|
|
515
|
+
"application/json": "json",
|
|
516
|
+
},
|
|
517
|
+
}))
|
|
518
|
+
.then(commonHttpClient.castResponse())
|
|
519
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getAttachmentContentPropertiesById.response"))
|
|
520
|
+
.then(commonHttpClient.getBody);
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* Retrieves all Content Properties tied to a specified blog post.
|
|
524
|
+
*
|
|
525
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
526
|
+
* Permission to view the blog post.
|
|
527
|
+
*
|
|
528
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
529
|
+
* @path {GET} /blogposts/{blogpost-id}/properties
|
|
530
|
+
* @scopes-current read:page:confluence
|
|
531
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-blogposts-blogpost-id-properties-get
|
|
532
|
+
*/
|
|
533
|
+
this.getBlogpostContentProperties = ({ blogpostId, key, sort, cursor, limit, }) => {
|
|
534
|
+
return this.getClientInstance()
|
|
535
|
+
.request({
|
|
536
|
+
path: "/blogposts/{blogpost-id}/properties",
|
|
537
|
+
method: "GET",
|
|
538
|
+
pathParams: {
|
|
539
|
+
"blogpost-id": blogpostId,
|
|
540
|
+
},
|
|
541
|
+
query: {
|
|
542
|
+
key,
|
|
543
|
+
sort,
|
|
544
|
+
cursor,
|
|
545
|
+
limit,
|
|
546
|
+
},
|
|
547
|
+
})
|
|
548
|
+
.then(this.getClientInstance().responseHandler({
|
|
549
|
+
200: {
|
|
550
|
+
"application/json": "json",
|
|
551
|
+
},
|
|
552
|
+
}))
|
|
553
|
+
.then(commonHttpClient.castResponse())
|
|
554
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getBlogpostContentProperties.response"))
|
|
555
|
+
.then(commonHttpClient.getBody);
|
|
556
|
+
};
|
|
557
|
+
/**
|
|
558
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
559
|
+
* blog post.
|
|
560
|
+
*
|
|
561
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
562
|
+
* Permission to view the blog post.
|
|
563
|
+
*
|
|
564
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
565
|
+
* @path {GET} /blogposts/{blogpost-id}/properties/{property-id}
|
|
566
|
+
* @scopes-current read:page:confluence
|
|
567
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-blogposts-blogpost-id-properties-property-id-get
|
|
568
|
+
*/
|
|
569
|
+
this.getBlogpostContentPropertiesById = ({ blogpostId, propertyId, }) => {
|
|
570
|
+
return this.getClientInstance()
|
|
571
|
+
.request({
|
|
572
|
+
path: "/blogposts/{blogpost-id}/properties/{property-id}",
|
|
573
|
+
method: "GET",
|
|
574
|
+
pathParams: {
|
|
575
|
+
"blogpost-id": blogpostId,
|
|
576
|
+
"property-id": propertyId,
|
|
577
|
+
},
|
|
578
|
+
})
|
|
579
|
+
.then(this.getClientInstance().responseHandler({
|
|
580
|
+
200: {
|
|
581
|
+
"application/json": "json",
|
|
582
|
+
},
|
|
583
|
+
}))
|
|
584
|
+
.then(commonHttpClient.castResponse())
|
|
585
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getBlogpostContentPropertiesById.response"))
|
|
586
|
+
.then(commonHttpClient.getBody);
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* Retrieves Content Properties attached to a specified comment.
|
|
590
|
+
*
|
|
591
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
592
|
+
* Permission to view the comment.
|
|
593
|
+
*
|
|
594
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
595
|
+
* @path {GET} /comments/{comment-id}/properties
|
|
596
|
+
* @scopes-current read:comment:confluence
|
|
597
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-comments-comment-id-properties-get
|
|
598
|
+
*/
|
|
599
|
+
this.getCommentContentProperties = ({ commentId, key, sort, cursor, limit, }) => {
|
|
600
|
+
return this.getClientInstance()
|
|
601
|
+
.request({
|
|
602
|
+
path: "/comments/{comment-id}/properties",
|
|
603
|
+
method: "GET",
|
|
604
|
+
pathParams: {
|
|
605
|
+
"comment-id": commentId,
|
|
606
|
+
},
|
|
607
|
+
query: {
|
|
608
|
+
key,
|
|
609
|
+
sort,
|
|
610
|
+
cursor,
|
|
611
|
+
limit,
|
|
612
|
+
},
|
|
613
|
+
})
|
|
614
|
+
.then(this.getClientInstance().responseHandler({
|
|
615
|
+
200: {
|
|
616
|
+
"application/json": "json",
|
|
617
|
+
},
|
|
618
|
+
}))
|
|
619
|
+
.then(commonHttpClient.castResponse())
|
|
620
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCommentContentProperties.response"))
|
|
621
|
+
.then(commonHttpClient.getBody);
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
625
|
+
* comment.
|
|
626
|
+
*
|
|
627
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
628
|
+
* Permission to view the comment.
|
|
629
|
+
*
|
|
630
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
631
|
+
* @path {GET} /comments/{comment-id}/properties/{property-id}
|
|
632
|
+
* @scopes-current read:comment:confluence
|
|
633
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-comments-comment-id-properties-property-id-get
|
|
634
|
+
*/
|
|
635
|
+
this.getCommentContentPropertiesById = ({ commentId, propertyId, }) => {
|
|
636
|
+
return this.getClientInstance()
|
|
637
|
+
.request({
|
|
638
|
+
path: "/comments/{comment-id}/properties/{property-id}",
|
|
639
|
+
method: "GET",
|
|
640
|
+
pathParams: {
|
|
641
|
+
"comment-id": commentId,
|
|
642
|
+
"property-id": propertyId,
|
|
643
|
+
},
|
|
644
|
+
})
|
|
645
|
+
.then(this.getClientInstance().responseHandler({
|
|
646
|
+
200: {
|
|
647
|
+
"application/json": "json",
|
|
648
|
+
},
|
|
649
|
+
}))
|
|
650
|
+
.then(commonHttpClient.castResponse())
|
|
651
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCommentContentPropertiesById.response"))
|
|
652
|
+
.then(commonHttpClient.getBody);
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* Retrieves Content Properties tied to a specified custom content.
|
|
656
|
+
*
|
|
657
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
658
|
+
* Permission to view the custom content.
|
|
659
|
+
*
|
|
660
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
661
|
+
* @path {GET} /custom-content/{custom-content-id}/properties
|
|
662
|
+
* @scopes-current read:custom-content:confluence
|
|
663
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-custom-content-custom-content-id-properties-get
|
|
664
|
+
*/
|
|
665
|
+
this.getCustomContentContentProperties = ({ customContentId, key, sort, cursor, limit, }) => {
|
|
666
|
+
return this.getClientInstance()
|
|
667
|
+
.request({
|
|
668
|
+
path: "/custom-content/{custom-content-id}/properties",
|
|
669
|
+
method: "GET",
|
|
670
|
+
pathParams: {
|
|
671
|
+
"custom-content-id": customContentId,
|
|
672
|
+
},
|
|
673
|
+
query: {
|
|
674
|
+
key,
|
|
675
|
+
sort,
|
|
676
|
+
cursor,
|
|
677
|
+
limit,
|
|
678
|
+
},
|
|
679
|
+
})
|
|
680
|
+
.then(this.getClientInstance().responseHandler({
|
|
681
|
+
200: {
|
|
682
|
+
"application/json": "json",
|
|
683
|
+
},
|
|
684
|
+
}))
|
|
685
|
+
.then(commonHttpClient.castResponse())
|
|
686
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCustomContentContentProperties.response"))
|
|
687
|
+
.then(commonHttpClient.getBody);
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
691
|
+
* custom content.
|
|
692
|
+
*
|
|
693
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
694
|
+
* Permission to view the page.
|
|
695
|
+
*
|
|
696
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
697
|
+
* @path {GET} /custom-content/{custom-content-id}/properties/{property-id}
|
|
698
|
+
* @scopes-current read:custom-content:confluence
|
|
699
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-custom-content-custom-content-id-properties-property-id-get
|
|
700
|
+
*/
|
|
701
|
+
this.getCustomContentContentPropertiesById = ({ customContentId, propertyId, }) => {
|
|
702
|
+
return this.getClientInstance()
|
|
703
|
+
.request({
|
|
704
|
+
path: "/custom-content/{custom-content-id}/properties/{property-id}",
|
|
705
|
+
method: "GET",
|
|
706
|
+
pathParams: {
|
|
707
|
+
"custom-content-id": customContentId,
|
|
708
|
+
"property-id": propertyId,
|
|
709
|
+
},
|
|
710
|
+
})
|
|
711
|
+
.then(this.getClientInstance().responseHandler({
|
|
712
|
+
200: {
|
|
713
|
+
"application/json": "json",
|
|
714
|
+
},
|
|
715
|
+
}))
|
|
716
|
+
.then(commonHttpClient.castResponse())
|
|
717
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getCustomContentContentPropertiesById.response"))
|
|
718
|
+
.then(commonHttpClient.getBody);
|
|
719
|
+
};
|
|
720
|
+
/**
|
|
721
|
+
* Retrieves Content Properties tied to a specified database.
|
|
722
|
+
*
|
|
723
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
724
|
+
* Permission to view the database.
|
|
725
|
+
*
|
|
726
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
727
|
+
* @path {GET} /databases/{id}/properties
|
|
728
|
+
* @scopes-current read:database:confluence
|
|
729
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-databases-id-properties-get
|
|
730
|
+
*/
|
|
731
|
+
this.getDatabaseContentProperties = ({ id, key, sort, cursor, limit, }) => {
|
|
732
|
+
return this.getClientInstance()
|
|
733
|
+
.request({
|
|
734
|
+
path: "/databases/{id}/properties",
|
|
735
|
+
method: "GET",
|
|
736
|
+
pathParams: {
|
|
737
|
+
id,
|
|
738
|
+
},
|
|
739
|
+
query: {
|
|
740
|
+
key,
|
|
741
|
+
sort,
|
|
742
|
+
cursor,
|
|
743
|
+
limit,
|
|
744
|
+
},
|
|
745
|
+
})
|
|
746
|
+
.then(this.getClientInstance().responseHandler({
|
|
747
|
+
200: {
|
|
748
|
+
"application/json": "json",
|
|
749
|
+
},
|
|
750
|
+
}))
|
|
751
|
+
.then(commonHttpClient.castResponse())
|
|
752
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getDatabaseContentProperties.response"))
|
|
753
|
+
.then(commonHttpClient.getBody);
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
757
|
+
* database.
|
|
758
|
+
*
|
|
759
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
760
|
+
* Permission to view the database.
|
|
761
|
+
*
|
|
762
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
763
|
+
* @path {GET} /databases/{database-id}/properties/{property-id}
|
|
764
|
+
* @scopes-current read:database:confluence
|
|
765
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-databases-database-id-properties-property-id-get
|
|
766
|
+
*/
|
|
767
|
+
this.getDatabaseContentPropertiesById = ({ databaseId, propertyId, }) => {
|
|
768
|
+
return this.getClientInstance()
|
|
769
|
+
.request({
|
|
770
|
+
path: "/databases/{database-id}/properties/{property-id}",
|
|
771
|
+
method: "GET",
|
|
772
|
+
pathParams: {
|
|
773
|
+
"database-id": databaseId,
|
|
774
|
+
"property-id": propertyId,
|
|
775
|
+
},
|
|
776
|
+
})
|
|
777
|
+
.then(this.getClientInstance().responseHandler({
|
|
778
|
+
200: {
|
|
779
|
+
"application/json": "json",
|
|
780
|
+
},
|
|
781
|
+
}))
|
|
782
|
+
.then(commonHttpClient.castResponse())
|
|
783
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getDatabaseContentPropertiesById.response"))
|
|
784
|
+
.then(commonHttpClient.getBody);
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Retrieves Content Properties tied to a specified page.
|
|
788
|
+
*
|
|
789
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
790
|
+
* Permission to view the page.
|
|
791
|
+
*
|
|
792
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
793
|
+
* @path {GET} /pages/{page-id}/properties
|
|
794
|
+
* @scopes-current read:page:confluence
|
|
795
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-pages-page-id-properties-get
|
|
796
|
+
*/
|
|
797
|
+
this.getPageContentProperties = ({ pageId, key, sort, cursor, limit, }) => {
|
|
798
|
+
return this.getClientInstance()
|
|
799
|
+
.request({
|
|
800
|
+
path: "/pages/{page-id}/properties",
|
|
801
|
+
method: "GET",
|
|
802
|
+
pathParams: {
|
|
803
|
+
"page-id": pageId,
|
|
804
|
+
},
|
|
805
|
+
query: {
|
|
806
|
+
key,
|
|
807
|
+
sort,
|
|
808
|
+
cursor,
|
|
809
|
+
limit,
|
|
810
|
+
},
|
|
811
|
+
})
|
|
812
|
+
.then(this.getClientInstance().responseHandler({
|
|
813
|
+
200: {
|
|
814
|
+
"application/json": "json",
|
|
815
|
+
},
|
|
816
|
+
}))
|
|
817
|
+
.then(commonHttpClient.castResponse())
|
|
818
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getPageContentProperties.response"))
|
|
819
|
+
.then(commonHttpClient.getBody);
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
823
|
+
* page.
|
|
824
|
+
*
|
|
825
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
826
|
+
* Permission to view the page.
|
|
827
|
+
*
|
|
828
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
829
|
+
* @path {GET} /pages/{page-id}/properties/{property-id}
|
|
830
|
+
* @scopes-current read:page:confluence
|
|
831
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-pages-page-id-properties-property-id-get
|
|
832
|
+
*/
|
|
833
|
+
this.getPageContentPropertiesById = ({ pageId, propertyId, }) => {
|
|
834
|
+
return this.getClientInstance()
|
|
835
|
+
.request({
|
|
836
|
+
path: "/pages/{page-id}/properties/{property-id}",
|
|
837
|
+
method: "GET",
|
|
838
|
+
pathParams: {
|
|
839
|
+
"page-id": pageId,
|
|
840
|
+
"property-id": propertyId,
|
|
841
|
+
},
|
|
842
|
+
})
|
|
843
|
+
.then(this.getClientInstance().responseHandler({
|
|
844
|
+
200: {
|
|
845
|
+
"application/json": "json",
|
|
846
|
+
},
|
|
847
|
+
}))
|
|
848
|
+
.then(commonHttpClient.castResponse())
|
|
849
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getPageContentPropertiesById.response"))
|
|
850
|
+
.then(commonHttpClient.getBody);
|
|
851
|
+
};
|
|
852
|
+
/**
|
|
853
|
+
* Retrieves Content Properties tied to a specified Smart Link in the content tree.
|
|
854
|
+
*
|
|
855
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
856
|
+
* Permission to view the Smart Link in the content tree.
|
|
857
|
+
*
|
|
858
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
859
|
+
* @path {GET} /embeds/{id}/properties
|
|
860
|
+
* @scopes-current read:embed:confluence
|
|
861
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-embeds-id-properties-get
|
|
862
|
+
*/
|
|
863
|
+
this.getSmartLinkContentProperties = ({ id, key, sort, cursor, limit, }) => {
|
|
864
|
+
return this.getClientInstance()
|
|
865
|
+
.request({
|
|
866
|
+
path: "/embeds/{id}/properties",
|
|
867
|
+
method: "GET",
|
|
868
|
+
pathParams: {
|
|
869
|
+
id,
|
|
870
|
+
},
|
|
871
|
+
query: {
|
|
872
|
+
key,
|
|
873
|
+
sort,
|
|
874
|
+
cursor,
|
|
875
|
+
limit,
|
|
876
|
+
},
|
|
877
|
+
})
|
|
878
|
+
.then(this.getClientInstance().responseHandler({
|
|
879
|
+
200: {
|
|
880
|
+
"application/json": "json",
|
|
881
|
+
},
|
|
882
|
+
}))
|
|
883
|
+
.then(commonHttpClient.castResponse())
|
|
884
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getSmartLinkContentProperties.response"))
|
|
885
|
+
.then(commonHttpClient.getBody);
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
889
|
+
* Smart Link in the content tree.
|
|
890
|
+
*
|
|
891
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
892
|
+
* Permission to view the Smart Link in the content tree.
|
|
893
|
+
*
|
|
894
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
895
|
+
* @path {GET} /embeds/{embed-id}/properties/{property-id}
|
|
896
|
+
* @scopes-current read:embed:confluence
|
|
897
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-embeds-embed-id-properties-property-id-get
|
|
898
|
+
*/
|
|
899
|
+
this.getSmartLinkContentPropertiesById = ({ embedId, propertyId, }) => {
|
|
900
|
+
return this.getClientInstance()
|
|
901
|
+
.request({
|
|
902
|
+
path: "/embeds/{embed-id}/properties/{property-id}",
|
|
903
|
+
method: "GET",
|
|
904
|
+
pathParams: {
|
|
905
|
+
"embed-id": embedId,
|
|
906
|
+
"property-id": propertyId,
|
|
907
|
+
},
|
|
908
|
+
})
|
|
909
|
+
.then(this.getClientInstance().responseHandler({
|
|
910
|
+
200: {
|
|
911
|
+
"application/json": "json",
|
|
912
|
+
},
|
|
913
|
+
}))
|
|
914
|
+
.then(commonHttpClient.castResponse())
|
|
915
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getSmartLinkContentPropertiesById.response"))
|
|
916
|
+
.then(commonHttpClient.getBody);
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Retrieves Content Properties tied to a specified whiteboard.
|
|
920
|
+
*
|
|
921
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
922
|
+
* Permission to view the whiteboard.
|
|
923
|
+
*
|
|
924
|
+
* @returns Returned if the requested content properties are successfully retrieved.
|
|
925
|
+
* @path {GET} /whiteboards/{id}/properties
|
|
926
|
+
* @scopes-current read:whiteboard:confluence
|
|
927
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-whiteboards-id-properties-get
|
|
928
|
+
*/
|
|
929
|
+
this.getWhiteboardContentProperties = ({ id, key, sort, cursor, limit, }) => {
|
|
930
|
+
return this.getClientInstance()
|
|
931
|
+
.request({
|
|
932
|
+
path: "/whiteboards/{id}/properties",
|
|
933
|
+
method: "GET",
|
|
934
|
+
pathParams: {
|
|
935
|
+
id,
|
|
936
|
+
},
|
|
937
|
+
query: {
|
|
938
|
+
key,
|
|
939
|
+
sort,
|
|
940
|
+
cursor,
|
|
941
|
+
limit,
|
|
942
|
+
},
|
|
943
|
+
})
|
|
944
|
+
.then(this.getClientInstance().responseHandler({
|
|
945
|
+
200: {
|
|
946
|
+
"application/json": "json",
|
|
947
|
+
},
|
|
948
|
+
}))
|
|
949
|
+
.then(commonHttpClient.castResponse())
|
|
950
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getWhiteboardContentProperties.response"))
|
|
951
|
+
.then(commonHttpClient.getBody);
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* Retrieves a specific Content Property by ID that is attached to a specified
|
|
955
|
+
* whiteboard.
|
|
956
|
+
*
|
|
957
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
958
|
+
* Permission to view the whiteboard.
|
|
959
|
+
*
|
|
960
|
+
* @returns Returned if the requested content property is successfully retrieved.
|
|
961
|
+
* @path {GET} /whiteboards/{whiteboard-id}/properties/{property-id}
|
|
962
|
+
* @scopes-current read:whiteboard:confluence
|
|
963
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-whiteboards-whiteboard-id-properties-property-id-get
|
|
964
|
+
*/
|
|
965
|
+
this.getWhiteboardContentPropertiesById = ({ whiteboardId, propertyId, }) => {
|
|
966
|
+
return this.getClientInstance()
|
|
967
|
+
.request({
|
|
968
|
+
path: "/whiteboards/{whiteboard-id}/properties/{property-id}",
|
|
969
|
+
method: "GET",
|
|
970
|
+
pathParams: {
|
|
971
|
+
"whiteboard-id": whiteboardId,
|
|
972
|
+
"property-id": propertyId,
|
|
973
|
+
},
|
|
974
|
+
})
|
|
975
|
+
.then(this.getClientInstance().responseHandler({
|
|
976
|
+
200: {
|
|
977
|
+
"application/json": "json",
|
|
978
|
+
},
|
|
979
|
+
}))
|
|
980
|
+
.then(commonHttpClient.castResponse())
|
|
981
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getWhiteboardContentPropertiesById.response"))
|
|
982
|
+
.then(commonHttpClient.getBody);
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* Update a content property for attachment by its id.
|
|
986
|
+
*
|
|
987
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
988
|
+
* Permission to edit the attachment.
|
|
989
|
+
*
|
|
990
|
+
* @returns Returned if the content property was updated successfully.
|
|
991
|
+
* @path {PUT} /attachments/{attachment-id}/properties/{property-id}
|
|
992
|
+
* @scopes-current read:attachment:confluence, write:attachment:confluence
|
|
993
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-attachments-attachment-id-properties-property-id-put
|
|
994
|
+
*/
|
|
995
|
+
this.updateAttachmentPropertyById = ({ attachmentId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
996
|
+
return this.getClientInstance()
|
|
997
|
+
.request({
|
|
998
|
+
path: "/attachments/{attachment-id}/properties/{property-id}",
|
|
999
|
+
method: "PUT",
|
|
1000
|
+
pathParams: {
|
|
1001
|
+
"attachment-id": attachmentId,
|
|
1002
|
+
"property-id": propertyId,
|
|
1003
|
+
},
|
|
1004
|
+
headers: {
|
|
1005
|
+
"Content-Type": "application/json",
|
|
1006
|
+
},
|
|
1007
|
+
body: contentPropertyUpdateRequest,
|
|
1008
|
+
})
|
|
1009
|
+
.then(this.getClientInstance().responseHandler({
|
|
1010
|
+
200: {
|
|
1011
|
+
"application/json": "json",
|
|
1012
|
+
},
|
|
1013
|
+
}))
|
|
1014
|
+
.then(commonHttpClient.castResponse())
|
|
1015
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateAttachmentPropertyById.response"))
|
|
1016
|
+
.then(commonHttpClient.getBody);
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
* Update a content property for blog post by its id.
|
|
1020
|
+
*
|
|
1021
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
1022
|
+
* Permission to edit the blog post.
|
|
1023
|
+
*
|
|
1024
|
+
* @returns Returned if the content property was updated successfully.
|
|
1025
|
+
* @path {PUT} /blogposts/{blogpost-id}/properties/{property-id}
|
|
1026
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
1027
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-blogposts-blogpost-id-properties-property-id-put
|
|
1028
|
+
*/
|
|
1029
|
+
this.updateBlogpostPropertyById = ({ blogpostId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
1030
|
+
return this.getClientInstance()
|
|
1031
|
+
.request({
|
|
1032
|
+
path: "/blogposts/{blogpost-id}/properties/{property-id}",
|
|
1033
|
+
method: "PUT",
|
|
1034
|
+
pathParams: {
|
|
1035
|
+
"blogpost-id": blogpostId,
|
|
1036
|
+
"property-id": propertyId,
|
|
1037
|
+
},
|
|
1038
|
+
headers: {
|
|
1039
|
+
"Content-Type": "application/json",
|
|
1040
|
+
},
|
|
1041
|
+
body: contentPropertyUpdateRequest,
|
|
1042
|
+
})
|
|
1043
|
+
.then(this.getClientInstance().responseHandler({
|
|
1044
|
+
200: {
|
|
1045
|
+
"application/json": "json",
|
|
1046
|
+
},
|
|
1047
|
+
}))
|
|
1048
|
+
.then(commonHttpClient.castResponse())
|
|
1049
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateBlogpostPropertyById.response"))
|
|
1050
|
+
.then(commonHttpClient.getBody);
|
|
1051
|
+
};
|
|
1052
|
+
/**
|
|
1053
|
+
* Update a content property for a comment by its id.
|
|
1054
|
+
*
|
|
1055
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
1056
|
+
* Permission to edit the comment.
|
|
1057
|
+
*
|
|
1058
|
+
* @returns Returned if the content property was updated successfully.
|
|
1059
|
+
* @path {PUT} /comments/{comment-id}/properties/{property-id}
|
|
1060
|
+
* @scopes-current read:comment:confluence, write:comment:confluence
|
|
1061
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-comments-comment-id-properties-property-id-put
|
|
1062
|
+
*/
|
|
1063
|
+
this.updateCommentPropertyById = ({ commentId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
1064
|
+
return this.getClientInstance()
|
|
1065
|
+
.request({
|
|
1066
|
+
path: "/comments/{comment-id}/properties/{property-id}",
|
|
1067
|
+
method: "PUT",
|
|
1068
|
+
pathParams: {
|
|
1069
|
+
"comment-id": commentId,
|
|
1070
|
+
"property-id": propertyId,
|
|
1071
|
+
},
|
|
1072
|
+
headers: {
|
|
1073
|
+
"Content-Type": "application/json",
|
|
1074
|
+
},
|
|
1075
|
+
body: contentPropertyUpdateRequest,
|
|
1076
|
+
})
|
|
1077
|
+
.then(this.getClientInstance().responseHandler({
|
|
1078
|
+
200: {
|
|
1079
|
+
"application/json": "json",
|
|
1080
|
+
},
|
|
1081
|
+
}))
|
|
1082
|
+
.then(commonHttpClient.castResponse())
|
|
1083
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateCommentPropertyById.response"))
|
|
1084
|
+
.then(commonHttpClient.getBody);
|
|
1085
|
+
};
|
|
1086
|
+
/**
|
|
1087
|
+
* Update a content property for a piece of custom content by its id.
|
|
1088
|
+
*
|
|
1089
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
1090
|
+
* Permission to edit the custom content.
|
|
1091
|
+
*
|
|
1092
|
+
* @returns Returned if the content property was updated successfully.
|
|
1093
|
+
* @path {PUT} /custom-content/{custom-content-id}/properties/{property-id}
|
|
1094
|
+
* @scopes-current read:custom-content:confluence, write:custom-content:confluence
|
|
1095
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-custom-content-custom-content-id-properties-property-id-put
|
|
1096
|
+
*/
|
|
1097
|
+
this.updateCustomContentPropertyById = ({ customContentId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
1098
|
+
return this.getClientInstance()
|
|
1099
|
+
.request({
|
|
1100
|
+
path: "/custom-content/{custom-content-id}/properties/{property-id}",
|
|
1101
|
+
method: "PUT",
|
|
1102
|
+
pathParams: {
|
|
1103
|
+
"custom-content-id": customContentId,
|
|
1104
|
+
"property-id": propertyId,
|
|
1105
|
+
},
|
|
1106
|
+
headers: {
|
|
1107
|
+
"Content-Type": "application/json",
|
|
1108
|
+
},
|
|
1109
|
+
body: contentPropertyUpdateRequest,
|
|
1110
|
+
})
|
|
1111
|
+
.then(this.getClientInstance().responseHandler({
|
|
1112
|
+
200: {
|
|
1113
|
+
"application/json": "json",
|
|
1114
|
+
},
|
|
1115
|
+
}))
|
|
1116
|
+
.then(commonHttpClient.castResponse())
|
|
1117
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateCustomContentPropertyById.response"))
|
|
1118
|
+
.then(commonHttpClient.getBody);
|
|
1119
|
+
};
|
|
1120
|
+
/**
|
|
1121
|
+
* Update a content property for a database by its id.
|
|
1122
|
+
*
|
|
1123
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
1124
|
+
* Permission to edit the database.
|
|
1125
|
+
*
|
|
1126
|
+
* @returns Returned if the content property was updated successfully.
|
|
1127
|
+
* @path {PUT} /databases/{database-id}/properties/{property-id}
|
|
1128
|
+
* @scopes-current read:database:confluence, write:database:confluence
|
|
1129
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-databases-database-id-properties-property-id-put
|
|
1130
|
+
*/
|
|
1131
|
+
this.updateDatabasePropertyById = ({ databaseId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
1132
|
+
return this.getClientInstance()
|
|
1133
|
+
.request({
|
|
1134
|
+
path: "/databases/{database-id}/properties/{property-id}",
|
|
1135
|
+
method: "PUT",
|
|
1136
|
+
pathParams: {
|
|
1137
|
+
"database-id": databaseId,
|
|
1138
|
+
"property-id": propertyId,
|
|
1139
|
+
},
|
|
1140
|
+
headers: {
|
|
1141
|
+
"Content-Type": "application/json",
|
|
1142
|
+
},
|
|
1143
|
+
body: contentPropertyUpdateRequest,
|
|
1144
|
+
})
|
|
1145
|
+
.then(this.getClientInstance().responseHandler({
|
|
1146
|
+
200: {
|
|
1147
|
+
"application/json": "json",
|
|
1148
|
+
},
|
|
1149
|
+
}))
|
|
1150
|
+
.then(commonHttpClient.castResponse())
|
|
1151
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateDatabasePropertyById.response"))
|
|
1152
|
+
.then(commonHttpClient.getBody);
|
|
1153
|
+
};
|
|
1154
|
+
/**
|
|
1155
|
+
* Update a content property for a page by its id.
|
|
1156
|
+
*
|
|
1157
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
1158
|
+
* Permission to edit the page.
|
|
1159
|
+
*
|
|
1160
|
+
* @returns Returned if the content property was updated successfully.
|
|
1161
|
+
* @path {PUT} /pages/{page-id}/properties/{property-id}
|
|
1162
|
+
* @scopes-current read:page:confluence, write:page:confluence
|
|
1163
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-pages-page-id-properties-property-id-put
|
|
1164
|
+
*/
|
|
1165
|
+
this.updatePagePropertyById = ({ pageId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
1166
|
+
return this.getClientInstance()
|
|
1167
|
+
.request({
|
|
1168
|
+
path: "/pages/{page-id}/properties/{property-id}",
|
|
1169
|
+
method: "PUT",
|
|
1170
|
+
pathParams: {
|
|
1171
|
+
"page-id": pageId,
|
|
1172
|
+
"property-id": propertyId,
|
|
1173
|
+
},
|
|
1174
|
+
headers: {
|
|
1175
|
+
"Content-Type": "application/json",
|
|
1176
|
+
},
|
|
1177
|
+
body: contentPropertyUpdateRequest,
|
|
1178
|
+
})
|
|
1179
|
+
.then(this.getClientInstance().responseHandler({
|
|
1180
|
+
200: {
|
|
1181
|
+
"application/json": "json",
|
|
1182
|
+
},
|
|
1183
|
+
}))
|
|
1184
|
+
.then(commonHttpClient.castResponse())
|
|
1185
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updatePagePropertyById.response"))
|
|
1186
|
+
.then(commonHttpClient.getBody);
|
|
1187
|
+
};
|
|
1188
|
+
/**
|
|
1189
|
+
* Update a content property for a Smart Link in the content tree by its id.
|
|
1190
|
+
*
|
|
1191
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
1192
|
+
* Permission to edit the Smart Link in the content tree.
|
|
1193
|
+
*
|
|
1194
|
+
* @returns Returned if the content property was updated successfully.
|
|
1195
|
+
* @path {PUT} /embeds/{embed-id}/properties/{property-id}
|
|
1196
|
+
* @scopes-current read:embed:confluence, write:embed:confluence
|
|
1197
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-embeds-embed-id-properties-property-id-put
|
|
1198
|
+
*/
|
|
1199
|
+
this.updateSmartLinkPropertyById = ({ embedId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
1200
|
+
return this.getClientInstance()
|
|
1201
|
+
.request({
|
|
1202
|
+
path: "/embeds/{embed-id}/properties/{property-id}",
|
|
1203
|
+
method: "PUT",
|
|
1204
|
+
pathParams: {
|
|
1205
|
+
"embed-id": embedId,
|
|
1206
|
+
"property-id": propertyId,
|
|
1207
|
+
},
|
|
1208
|
+
headers: {
|
|
1209
|
+
"Content-Type": "application/json",
|
|
1210
|
+
},
|
|
1211
|
+
body: contentPropertyUpdateRequest,
|
|
1212
|
+
})
|
|
1213
|
+
.then(this.getClientInstance().responseHandler({
|
|
1214
|
+
200: {
|
|
1215
|
+
"application/json": "json",
|
|
1216
|
+
},
|
|
1217
|
+
}))
|
|
1218
|
+
.then(commonHttpClient.castResponse())
|
|
1219
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateSmartLinkPropertyById.response"))
|
|
1220
|
+
.then(commonHttpClient.getBody);
|
|
1221
|
+
};
|
|
1222
|
+
/**
|
|
1223
|
+
* Update a content property for a whiteboard by its id.
|
|
1224
|
+
*
|
|
1225
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
1226
|
+
* Permission to edit the whiteboard.
|
|
1227
|
+
*
|
|
1228
|
+
* @returns Returned if the content property was updated successfully.
|
|
1229
|
+
* @path {PUT} /whiteboards/{whiteboard-id}/properties/{property-id}
|
|
1230
|
+
* @scopes-current read:whiteboard:confluence, write:whiteboard:confluence
|
|
1231
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties#api-whiteboards-whiteboard-id-properties-property-id-put
|
|
1232
|
+
*/
|
|
1233
|
+
this.updateWhiteboardPropertyById = ({ whiteboardId, propertyId, contentPropertyUpdateRequest, }) => {
|
|
1234
|
+
return this.getClientInstance()
|
|
1235
|
+
.request({
|
|
1236
|
+
path: "/whiteboards/{whiteboard-id}/properties/{property-id}",
|
|
1237
|
+
method: "PUT",
|
|
1238
|
+
pathParams: {
|
|
1239
|
+
"whiteboard-id": whiteboardId,
|
|
1240
|
+
"property-id": propertyId,
|
|
1241
|
+
},
|
|
1242
|
+
headers: {
|
|
1243
|
+
"Content-Type": "application/json",
|
|
1244
|
+
},
|
|
1245
|
+
body: contentPropertyUpdateRequest,
|
|
1246
|
+
})
|
|
1247
|
+
.then(this.getClientInstance().responseHandler({
|
|
1248
|
+
200: {
|
|
1249
|
+
"application/json": "json",
|
|
1250
|
+
},
|
|
1251
|
+
}))
|
|
1252
|
+
.then(commonHttpClient.castResponse())
|
|
1253
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateWhiteboardPropertyById.response"))
|
|
1254
|
+
.then(commonHttpClient.getBody);
|
|
1255
|
+
};
|
|
1253
1256
|
}
|
|
1254
1257
|
static initialize() {
|
|
1255
1258
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getAttachmentContentProperties.response", zod_1.z
|