@resolution/confluence-api-client 0.4.1 → 0.4.3
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 +21 -0
- package/README.md +125 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +51 -7
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +75 -75
- package/lib/openapi/v1/models/common.js +42 -42
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +8 -8
- package/lib/openapi/v1/models/content.js +9 -7
- package/lib/openapi/v1/models/content.js.map +1 -1
- package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
- package/lib/openapi/v1/models/contentRestrictions.js +1 -1
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
- package/lib/openapi/v1/models/contentWatches.js +1 -1
- package/lib/openapi/v1/models/contentWatches.js.map +1 -1
- package/lib/openapi/v1/models/relation.d.ts +4 -4
- package/lib/openapi/v1/models/relation.js +5 -3
- package/lib/openapi/v1/models/relation.js.map +1 -1
- package/lib/openapi/v1/models/search.d.ts +2 -2
- package/lib/openapi/v1/models/search.js +1 -1
- package/lib/openapi/v1/models/search.js.map +1 -1
- package/lib/openapi/v1/models/space.d.ts +2 -2
- package/lib/openapi/v1/models/space.js +1 -1
- package/lib/openapi/v1/models/space.js.map +1 -1
- package/lib/openapi/v1/models/themes.d.ts +2 -2
- package/lib/openapi/v1/models/themes.js +1 -1
- package/lib/openapi/v1/models/themes.js.map +1 -1
- package/lib/openapi/v1/models/users.d.ts +3 -3
- package/lib/openapi/v1/models/users.js +2 -2
- package/lib/openapi/v1/models/users.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +10 -3
- package/lib/openapi/v1/services/AuditService.js +10 -3
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +12 -1
- package/lib/openapi/v1/services/ContentService.js +12 -1
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +18 -1
- package/lib/openapi/v1/services/GroupService.js +18 -1
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +6 -0
- package/lib/openapi/v1/services/RelationService.js +6 -0
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +3 -0
- package/lib/openapi/v1/services/SearchService.js +3 -0
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +9 -2
- package/lib/openapi/v1/services/SettingsService.js +9 -2
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +10 -1
- package/lib/openapi/v1/services/SpaceService.js +10 -1
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +9 -2
- package/lib/openapi/v1/services/TemplateService.js +9 -2
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +8 -1
- package/lib/openapi/v1/services/ThemesService.js +8 -1
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +13 -5
- package/lib/openapi/v1/services/UsersService.js +12 -4
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +25 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +51 -0
- package/lib/openapi/v2/models/user.js +41 -0
- package/lib/openapi/v2/models/user.js.map +1 -0
- package/lib/openapi/v2/services/AncestorsService.d.ts +5 -0
- package/lib/openapi/v2/services/AncestorsService.js +5 -0
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +9 -1
- package/lib/openapi/v2/services/AttachmentService.js +9 -1
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +9 -1
- package/lib/openapi/v2/services/BlogPostService.js +9 -1
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +3 -0
- package/lib/openapi/v2/services/ChildrenService.js +3 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +21 -2
- package/lib/openapi/v2/services/CommentService.js +21 -2
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -0
- package/lib/openapi/v2/services/ContentService.js +2 -0
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +9 -0
- package/lib/openapi/v2/services/CustomContentService.js +9 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +4 -0
- package/lib/openapi/v2/services/DatabaseService.js +4 -0
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +9 -1
- package/lib/openapi/v2/services/LabelService.js +9 -1
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +9 -0
- package/lib/openapi/v2/services/LikeService.js +9 -0
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +11 -0
- package/lib/openapi/v2/services/OperationService.js +11 -0
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +9 -1
- package/lib/openapi/v2/services/PageService.js +9 -1
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +4 -1
- package/lib/openapi/v2/services/SpaceService.js +4 -1
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +5 -1
- package/lib/openapi/v2/services/TaskService.js +5 -1
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +31 -0
- package/lib/openapi/v2/services/UserService.js +55 -0
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +13 -0
- package/lib/openapi/v2/services/VersionService.js +13 -0
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +3 -3
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const contentStates_1 = require("../models/contentStates");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states */
|
|
13
14
|
class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Creates a long running task that Removes content state from draft or published
|
|
@@ -25,6 +26,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
25
26
|
* @path {POST} /wiki/rest/api/content-states/delete
|
|
26
27
|
* @scopes-current write:confluence-content
|
|
27
28
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
29
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-delete-post
|
|
28
30
|
*/
|
|
29
31
|
bulkRemoveContentStates({ status, requestBody, }) {
|
|
30
32
|
return this.getClientInstance()
|
|
@@ -62,6 +64,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
62
64
|
* @path {GET} /wiki/rest/api/content/{id}/state/available
|
|
63
65
|
* @scopes-current write:confluence-content
|
|
64
66
|
* @scopes-beta write:content:confluence
|
|
67
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-available-get
|
|
65
68
|
*/
|
|
66
69
|
getAvailableContentStates({ id, }) {
|
|
67
70
|
return this.getClientInstance()
|
|
@@ -93,6 +96,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
93
96
|
* @path {GET} /wiki/rest/api/content/{id}/state
|
|
94
97
|
* @scopes-current read:confluence-content.summary
|
|
95
98
|
* @scopes-beta read:content-details:confluence
|
|
99
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-get
|
|
96
100
|
*/
|
|
97
101
|
getContentState({ id, status, }) {
|
|
98
102
|
return this.getClientInstance()
|
|
@@ -128,6 +132,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
128
132
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state/settings
|
|
129
133
|
* @scopes-current read:confluence-space.summary
|
|
130
134
|
* @scopes-beta read:space.setting:confluence
|
|
135
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-settings-get
|
|
131
136
|
*/
|
|
132
137
|
getContentStateSettings({ spaceKey, }) {
|
|
133
138
|
return this.getClientInstance()
|
|
@@ -161,6 +166,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
161
166
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state/content
|
|
162
167
|
* @scopes-current read:confluence-content.all
|
|
163
168
|
* @scopes-beta read:content:confluence
|
|
169
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-content-get
|
|
164
170
|
*/
|
|
165
171
|
getContentsWithState({ spaceKey, stateId, expand, limit, start, }) {
|
|
166
172
|
return this.getClientInstance()
|
|
@@ -196,6 +202,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
196
202
|
* @path {GET} /wiki/rest/api/content-states
|
|
197
203
|
* @scopes-current read:user.property:confluence
|
|
198
204
|
* @scopes-beta read:user.property:confluence
|
|
205
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-get
|
|
199
206
|
*/
|
|
200
207
|
getCustomContentStates() {
|
|
201
208
|
return this.getClientInstance()
|
|
@@ -222,6 +229,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
222
229
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state
|
|
223
230
|
* @scopes-current read:confluence-space.summary
|
|
224
231
|
* @scopes-beta read:space.setting:confluence
|
|
232
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-get
|
|
225
233
|
*/
|
|
226
234
|
getSpaceContentStates({ spaceKey, }) {
|
|
227
235
|
return this.getClientInstance()
|
|
@@ -255,6 +263,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
255
263
|
* @path {GET} /wiki/rest/api/content-states/task/{taskId}
|
|
256
264
|
* @scopes-current read:confluence-content
|
|
257
265
|
* @scopes-beta read:content:confluence
|
|
266
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-task-taskid-get
|
|
258
267
|
*/
|
|
259
268
|
getTaskUpdate({ taskId, }) {
|
|
260
269
|
return this.getClientInstance()
|
|
@@ -286,6 +295,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
286
295
|
* @path {DELETE} /wiki/rest/api/content/{id}/state
|
|
287
296
|
* @scopes-current write:confluence-content
|
|
288
297
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
298
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-delete
|
|
289
299
|
*/
|
|
290
300
|
removeContentState({ id, status, }) {
|
|
291
301
|
return this.getClientInstance()
|
|
@@ -332,6 +342,7 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
332
342
|
* @path {PUT} /wiki/rest/api/content/{id}/state
|
|
333
343
|
* @scopes-current write:confluence-content
|
|
334
344
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
345
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-put
|
|
335
346
|
*/
|
|
336
347
|
setContentState({ id, status, contentStateRestInput, }) {
|
|
337
348
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentStatesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentStatesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2DAQiC;AACjC,wEAAqE;AACrE,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD
|
|
1
|
+
{"version":3,"file":"ContentStatesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentStatesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2DAQiC;AACjC,wEAAqE;AACrE,6FAA6F;AAC7F,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD;;;;;;;;;;;;;;;OAeG;IACH,uBAAuB,CAAC,EACtB,MAAM,EACN,WAAW,GAKZ;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,sCAAsC;YAC5C,MAAM,EAAE,MAAM;YACd,KAAK,EAAE;gBACL,MAAM;aACP;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,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AAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SAC5D,CAAC;aACD,QAAQ,CAAC,qDAAqD,CAAC,CACnE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,oDAAoD,EACpD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC;SACnD,CAAC;aACD,QAAQ,CAAC,oDAAoD,CAAC,CAClE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,uDAAuD,EACvD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,sBAAsB,CAAC;SAC3D,CAAC;aACD,QAAQ,CAAC,uDAAuD,CAAC,CACrE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,sDAAsC;YACtC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA5pBD,oDA4pBC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type VersionV1 } from "../models/common";
|
|
3
3
|
import { type VersionArray, type VersionRestore } from "../models/contentVersions";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions */
|
|
4
5
|
export declare class ContentVersionsService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Delete a historical version. This does not delete the changes made to the
|
|
@@ -13,6 +14,7 @@ export declare class ContentVersionsService extends CommonHttpService {
|
|
|
13
14
|
* @path {DELETE} /wiki/rest/api/content/{id}/version/{versionNumber}
|
|
14
15
|
* @scopes-current write:confluence-content
|
|
15
16
|
* @scopes-beta delete:content:confluence
|
|
17
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-versionnumber-delete
|
|
16
18
|
*/
|
|
17
19
|
deleteContentVersion({ id, versionNumber, }: {
|
|
18
20
|
/** The ID of the content that the version will be deleted from. */
|
|
@@ -38,6 +40,7 @@ export declare class ContentVersionsService extends CommonHttpService {
|
|
|
38
40
|
* @path {GET} /wiki/rest/api/content/{id}/version/{versionNumber}
|
|
39
41
|
* @scopes-current read:confluence-content.summary
|
|
40
42
|
* @scopes-beta read:content-details:confluence
|
|
43
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-versionnumber-get
|
|
41
44
|
*/
|
|
42
45
|
getContentVersion({ id, versionNumber, expand, }: {
|
|
43
46
|
/** The ID of the content to be queried for its version. */
|
|
@@ -69,6 +72,7 @@ export declare class ContentVersionsService extends CommonHttpService {
|
|
|
69
72
|
* @path {GET} /wiki/rest/api/content/{id}/version
|
|
70
73
|
* @scopes-current read:confluence-content.summary
|
|
71
74
|
* @scopes-beta read:content-details:confluence
|
|
75
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-get
|
|
72
76
|
*/
|
|
73
77
|
getContentVersions({ id, start, limit, expand, }: {
|
|
74
78
|
/** The ID of the content to be queried for its versions. */
|
|
@@ -101,6 +105,7 @@ export declare class ContentVersionsService extends CommonHttpService {
|
|
|
101
105
|
* @path {POST} /wiki/rest/api/content/{id}/version
|
|
102
106
|
* @scopes-current write:confluence-content
|
|
103
107
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
108
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-post
|
|
104
109
|
*/
|
|
105
110
|
restoreContentVersion({ id, expand, versionRestore, }: {
|
|
106
111
|
/** The ID of the content for which the history will be restored. */
|
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const contentVersions_1 = require("../models/contentVersions");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions */
|
|
13
14
|
class ContentVersionsService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Delete a historical version. This does not delete the changes made to the
|
|
@@ -22,6 +23,7 @@ class ContentVersionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
22
23
|
* @path {DELETE} /wiki/rest/api/content/{id}/version/{versionNumber}
|
|
23
24
|
* @scopes-current write:confluence-content
|
|
24
25
|
* @scopes-beta delete:content:confluence
|
|
26
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-versionnumber-delete
|
|
25
27
|
*/
|
|
26
28
|
deleteContentVersion({ id, versionNumber, }) {
|
|
27
29
|
return this.getClientInstance()
|
|
@@ -50,6 +52,7 @@ class ContentVersionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
50
52
|
* @path {GET} /wiki/rest/api/content/{id}/version/{versionNumber}
|
|
51
53
|
* @scopes-current read:confluence-content.summary
|
|
52
54
|
* @scopes-beta read:content-details:confluence
|
|
55
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-versionnumber-get
|
|
53
56
|
*/
|
|
54
57
|
getContentVersion({ id, versionNumber, expand, }) {
|
|
55
58
|
return this.getClientInstance()
|
|
@@ -88,6 +91,7 @@ class ContentVersionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
88
91
|
* @path {GET} /wiki/rest/api/content/{id}/version
|
|
89
92
|
* @scopes-current read:confluence-content.summary
|
|
90
93
|
* @scopes-beta read:content-details:confluence
|
|
94
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-get
|
|
91
95
|
*/
|
|
92
96
|
getContentVersions({ id, start, limit, expand, }) {
|
|
93
97
|
return this.getClientInstance()
|
|
@@ -123,6 +127,7 @@ class ContentVersionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
123
127
|
* @path {POST} /wiki/rest/api/content/{id}/version
|
|
124
128
|
* @scopes-current write:confluence-content
|
|
125
129
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
130
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions#api-wiki-rest-api-content-id-version-post
|
|
126
131
|
*/
|
|
127
132
|
restoreContentVersion({ id, expand, versionRestore, }) {
|
|
128
133
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentVersionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentVersionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,+DAImC;AACnC,wEAAqE;AACrE,MAAa,sBAAuB,SAAQ,qCAAiB;IAC3D
|
|
1
|
+
{"version":3,"file":"ContentVersionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentVersionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,+DAImC;AACnC,wEAAqE;AACrE,+FAA+F;AAC/F,MAAa,sBAAuB,SAAQ,qCAAiB;IAC3D;;;;;;;;;;;;OAYG;IACH,oBAAoB,CAAC,EACnB,EAAE,EACF,aAAa,GASd;QACC,OAAO,IAAI,CAAC,iBAAiB,EA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,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,QAAQ,CAAC,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAC5D,CAAC;aACD,QAAQ,CAAC,uDAAuD,CAAC,CACrE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,mDAAmD,EACnD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,QAAQ,CAAC,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAC5D,CAAC;aACD,QAAQ,CAAC,mDAAmD,CAAC,CACjE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,0DAAwC;YACxC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA9RD,wDA8RC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type SpaceWatchArray, type UserWatch, type WatchArray } from "../models/contentWatches";
|
|
3
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches */
|
|
3
4
|
export declare class ContentWatchesService extends CommonHttpService {
|
|
4
5
|
/**
|
|
5
6
|
* Adds a user as a watcher to a piece of content. Choose the user by doing
|
|
@@ -19,6 +20,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
19
20
|
* @path {POST} /wiki/rest/api/user/watch/content/{contentId}
|
|
20
21
|
* @scopes-current write:confluence-content
|
|
21
22
|
* @scopes-beta write:watcher:confluence
|
|
23
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-post
|
|
22
24
|
*/
|
|
23
25
|
addContentWatcher({ contentId, key, username, accountId, }: {
|
|
24
26
|
/** The ID of the content to add the watcher to. */
|
|
@@ -70,6 +72,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
70
72
|
* @path {POST} /wiki/rest/api/user/watch/label/{labelName}
|
|
71
73
|
* @scopes-current write:confluence-content
|
|
72
74
|
* @scopes-beta write:watcher:confluence
|
|
75
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-post
|
|
73
76
|
*/
|
|
74
77
|
addLabelWatcher({ labelName, key, username, accountId, xAtlassianToken, }: {
|
|
75
78
|
/** The name of the label to add the watcher to. */
|
|
@@ -126,6 +129,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
126
129
|
* @path {POST} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
127
130
|
* @scopes-current write:confluence-content
|
|
128
131
|
* @scopes-beta write:watcher:confluence
|
|
132
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-post
|
|
129
133
|
*/
|
|
130
134
|
addSpaceWatcher({ spaceKey, key, username, accountId, xAtlassianToken, }: {
|
|
131
135
|
/** The key of the space to add the watcher to. */
|
|
@@ -180,6 +184,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
180
184
|
* @path {GET} /wiki/rest/api/user/watch/content/{contentId}
|
|
181
185
|
* @scopes-current read:confluence-content.summary
|
|
182
186
|
* @scopes-beta read:watcher:confluence
|
|
187
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-get
|
|
183
188
|
*/
|
|
184
189
|
getContentWatchStatus({ contentId, key, username, accountId, }: {
|
|
185
190
|
/**
|
|
@@ -222,6 +227,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
222
227
|
* @returns Returned if watchers list is returned.
|
|
223
228
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/watch
|
|
224
229
|
* @scopes-current read:watcher:confluence, read:user:confluence
|
|
230
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-space-spacekey-watch-get
|
|
225
231
|
*/
|
|
226
232
|
getWatchersForSpace({ spaceKey, start, limit, }: {
|
|
227
233
|
/** The key of the space to get watchers. */
|
|
@@ -251,6 +257,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
251
257
|
* @path {GET} /wiki/rest/api/content/{id}/notification/child-created
|
|
252
258
|
* @scopes-current read:confluence-content.summary
|
|
253
259
|
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
260
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-child-created-get
|
|
254
261
|
*/
|
|
255
262
|
getWatchesForPage({ id, start, limit, }: {
|
|
256
263
|
/** The ID of the content to be queried for its watches. */
|
|
@@ -281,6 +288,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
281
288
|
* @path {GET} /wiki/rest/api/content/{id}/notification/created
|
|
282
289
|
* @scopes-current read:confluence-content.summary
|
|
283
290
|
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
291
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-created-get
|
|
284
292
|
*/
|
|
285
293
|
getWatchesForSpace({ id, start, limit, }: {
|
|
286
294
|
/** The ID of the content to be queried for its watches. */
|
|
@@ -309,6 +317,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
309
317
|
* @path {GET} /wiki/rest/api/user/watch/label/{labelName}
|
|
310
318
|
* @scopes-current read:confluence-content.summary
|
|
311
319
|
* @scopes-beta read:watcher:confluence
|
|
320
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-get
|
|
312
321
|
*/
|
|
313
322
|
isWatchingLabel({ labelName, key, username, accountId, }: {
|
|
314
323
|
/**
|
|
@@ -361,6 +370,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
361
370
|
* @path {GET} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
362
371
|
* @scopes-current read:confluence-content.summary
|
|
363
372
|
* @scopes-beta read:watcher:confluence
|
|
373
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-get
|
|
364
374
|
*/
|
|
365
375
|
isWatchingSpace({ spaceKey, key, username, accountId, }: {
|
|
366
376
|
/**
|
|
@@ -412,6 +422,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
412
422
|
* @path {DELETE} /wiki/rest/api/user/watch/content/{contentId}
|
|
413
423
|
* @scopes-current write:confluence-content
|
|
414
424
|
* @scopes-beta write:watcher:confluence
|
|
425
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-delete
|
|
415
426
|
*/
|
|
416
427
|
removeContentWatcher({ contentId, key, username, accountId, xAtlassianToken, }: {
|
|
417
428
|
/** The ID of the content to remove the watcher from. */
|
|
@@ -465,6 +476,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
465
476
|
* @path {DELETE} /wiki/rest/api/user/watch/label/{labelName}
|
|
466
477
|
* @scopes-current write:confluence-content
|
|
467
478
|
* @scopes-beta write:watcher:confluence
|
|
479
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-delete
|
|
468
480
|
*/
|
|
469
481
|
removeLabelWatcher({ labelName, key, username, accountId, }: {
|
|
470
482
|
/** The name of the label to remove the watcher from. */
|
|
@@ -513,6 +525,7 @@ export declare class ContentWatchesService extends CommonHttpService {
|
|
|
513
525
|
* @path {DELETE} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
514
526
|
* @scopes-current write:confluence-content
|
|
515
527
|
* @scopes-beta write:watcher:confluence
|
|
528
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-delete
|
|
516
529
|
*/
|
|
517
530
|
removeSpaceWatch({ spaceKey, key, username, accountId, }: {
|
|
518
531
|
/** The key of the space to remove the watcher from. */
|
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const contentWatches_1 = require("../models/contentWatches");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches */
|
|
12
13
|
class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Adds a user as a watcher to a piece of content. Choose the user by doing
|
|
@@ -28,6 +29,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
28
29
|
* @path {POST} /wiki/rest/api/user/watch/content/{contentId}
|
|
29
30
|
* @scopes-current write:confluence-content
|
|
30
31
|
* @scopes-beta write:watcher:confluence
|
|
32
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-post
|
|
31
33
|
*/
|
|
32
34
|
addContentWatcher({ contentId, key, username, accountId, }) {
|
|
33
35
|
return this.getClientInstance()
|
|
@@ -63,6 +65,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
63
65
|
* @path {POST} /wiki/rest/api/user/watch/label/{labelName}
|
|
64
66
|
* @scopes-current write:confluence-content
|
|
65
67
|
* @scopes-beta write:watcher:confluence
|
|
68
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-post
|
|
66
69
|
*/
|
|
67
70
|
addLabelWatcher({ labelName, key, username, accountId, xAtlassianToken, }) {
|
|
68
71
|
return this.getClientInstance()
|
|
@@ -101,6 +104,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
101
104
|
* @path {POST} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
102
105
|
* @scopes-current write:confluence-content
|
|
103
106
|
* @scopes-beta write:watcher:confluence
|
|
107
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-post
|
|
104
108
|
*/
|
|
105
109
|
addSpaceWatcher({ spaceKey, key, username, accountId, xAtlassianToken, }) {
|
|
106
110
|
return this.getClientInstance()
|
|
@@ -137,6 +141,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
137
141
|
* @path {GET} /wiki/rest/api/user/watch/content/{contentId}
|
|
138
142
|
* @scopes-current read:confluence-content.summary
|
|
139
143
|
* @scopes-beta read:watcher:confluence
|
|
144
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-get
|
|
140
145
|
*/
|
|
141
146
|
getContentWatchStatus({ contentId, key, username, accountId, }) {
|
|
142
147
|
return this.getClientInstance()
|
|
@@ -167,6 +172,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
167
172
|
* @returns Returned if watchers list is returned.
|
|
168
173
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/watch
|
|
169
174
|
* @scopes-current read:watcher:confluence, read:user:confluence
|
|
175
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-space-spacekey-watch-get
|
|
170
176
|
*/
|
|
171
177
|
getWatchersForSpace({ spaceKey, start, limit, }) {
|
|
172
178
|
return this.getClientInstance()
|
|
@@ -207,6 +213,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
207
213
|
* @path {GET} /wiki/rest/api/content/{id}/notification/child-created
|
|
208
214
|
* @scopes-current read:confluence-content.summary
|
|
209
215
|
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
216
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-child-created-get
|
|
210
217
|
*/
|
|
211
218
|
getWatchesForPage({ id, start, limit, }) {
|
|
212
219
|
return this.getClientInstance()
|
|
@@ -248,6 +255,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
248
255
|
* @path {GET} /wiki/rest/api/content/{id}/notification/created
|
|
249
256
|
* @scopes-current read:confluence-content.summary
|
|
250
257
|
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
258
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-content-id-notification-created-get
|
|
251
259
|
*/
|
|
252
260
|
getWatchesForSpace({ id, start, limit, }) {
|
|
253
261
|
return this.getClientInstance()
|
|
@@ -287,6 +295,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
287
295
|
* @path {GET} /wiki/rest/api/user/watch/label/{labelName}
|
|
288
296
|
* @scopes-current read:confluence-content.summary
|
|
289
297
|
* @scopes-beta read:watcher:confluence
|
|
298
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-get
|
|
290
299
|
*/
|
|
291
300
|
isWatchingLabel({ labelName, key, username, accountId, }) {
|
|
292
301
|
return this.getClientInstance()
|
|
@@ -327,6 +336,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
327
336
|
* @path {GET} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
328
337
|
* @scopes-current read:confluence-content.summary
|
|
329
338
|
* @scopes-beta read:watcher:confluence
|
|
339
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-get
|
|
330
340
|
*/
|
|
331
341
|
isWatchingSpace({ spaceKey, key, username, accountId, }) {
|
|
332
342
|
return this.getClientInstance()
|
|
@@ -366,6 +376,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
366
376
|
* @path {DELETE} /wiki/rest/api/user/watch/content/{contentId}
|
|
367
377
|
* @scopes-current write:confluence-content
|
|
368
378
|
* @scopes-beta write:watcher:confluence
|
|
379
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-content-contentid-delete
|
|
369
380
|
*/
|
|
370
381
|
removeContentWatcher({ contentId, key, username, accountId, xAtlassianToken, }) {
|
|
371
382
|
return this.getClientInstance()
|
|
@@ -401,6 +412,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
401
412
|
* @path {DELETE} /wiki/rest/api/user/watch/label/{labelName}
|
|
402
413
|
* @scopes-current write:confluence-content
|
|
403
414
|
* @scopes-beta write:watcher:confluence
|
|
415
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-label-labelname-delete
|
|
404
416
|
*/
|
|
405
417
|
removeLabelWatcher({ labelName, key, username, accountId, }) {
|
|
406
418
|
return this.getClientInstance()
|
|
@@ -433,6 +445,7 @@ class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
|
433
445
|
* @path {DELETE} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
434
446
|
* @scopes-current write:confluence-content
|
|
435
447
|
* @scopes-beta write:watcher:confluence
|
|
448
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-watches#api-wiki-rest-api-user-watch-space-spacekey-delete
|
|
436
449
|
*/
|
|
437
450
|
removeSpaceWatch({ spaceKey, key, username, accountId, }) {
|
|
438
451
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentWatchesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentWatchesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6DAKkC;AAClC,wEAAqE;AACrE,MAAa,qBAAsB,SAAQ,qCAAiB;IAC1D
|
|
1
|
+
{"version":3,"file":"ContentWatchesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentWatchesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6DAKkC;AAClC,wEAAqE;AACrE,8FAA8F;AAC9F,MAAa,qBAAsB,SAAQ,qCAAiB;IAC1D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,iBAAiB,CAAC,EAChB,SAAS,EACT,GAAG,EACH,QAAQ,EACR,SAAS,GAgCV;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,+CAA+C;YACrD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,SAAS;aACV;YACD,KAAK,EAAE;gBACL,GAAG;gBACH,QAAQ;gBACR,SAAS;aACV;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,eAAe,CAAC,EACd,SAAS,EACT,GAAG,EACH,QAAQ,EACR,SAAS,EACT,eAAe,GAqChB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,6CAA6C;YACnD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,SAAS;aACV;YACD,KAAK,EAAE;gBACL,GAAG;gBACH,QAAQ;gBACR,SAAS;aACV;YACD,OAAO,EAAE;gBACP,mBAAmB,EAAE,eAAe;aACrC;SACF,CAAC;aACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IACD;;;;;;;;;;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aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC;SAChD,CAAC;aACD,QAAQ,CAAC,sDAAsD,CAAC,CACpE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,gDAAgD,EAChD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC;SAChD,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,gDAAgD,EAChD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC;SAChD,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wDAAuC;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAv9BD,sDAu9BC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type ConnectModules } from "../models/dynamicModules";
|
|
3
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules */
|
|
3
4
|
export declare class DynamicModulesService extends CommonHttpService {
|
|
4
5
|
/**
|
|
5
6
|
* Returns all modules registered dynamically by the calling app.
|
|
@@ -9,6 +10,7 @@ export declare class DynamicModulesService extends CommonHttpService {
|
|
|
9
10
|
*
|
|
10
11
|
* @returns Returned if the request is successful.
|
|
11
12
|
* @path {GET} /atlassian-connect/1/app/module/dynamic
|
|
13
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules#api-atlassian-connect-1-app-module-dynamic-get
|
|
12
14
|
*/
|
|
13
15
|
getModules(): Promise<Blob>;
|
|
14
16
|
/**
|
|
@@ -20,6 +22,7 @@ export declare class DynamicModulesService extends CommonHttpService {
|
|
|
20
22
|
* request.
|
|
21
23
|
*
|
|
22
24
|
* @path {POST} /atlassian-connect/1/app/module/dynamic
|
|
25
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules#api-atlassian-connect-1-app-module-dynamic-post
|
|
23
26
|
*/
|
|
24
27
|
registerModules({ mediaType, connectModules, }: {
|
|
25
28
|
mediaType: string;
|
|
@@ -32,6 +35,7 @@ export declare class DynamicModulesService extends CommonHttpService {
|
|
|
32
35
|
* request.
|
|
33
36
|
*
|
|
34
37
|
* @path {DELETE} /atlassian-connect/1/app/module/dynamic
|
|
38
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules#api-atlassian-connect-1-app-module-dynamic-delete
|
|
35
39
|
*/
|
|
36
40
|
removeModules({ moduleKey, }: {
|
|
37
41
|
/**
|
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const dynamicModules_1 = require("../models/dynamicModules");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules */
|
|
12
13
|
class DynamicModulesService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Returns all modules registered dynamically by the calling app.
|
|
@@ -18,6 +19,7 @@ class DynamicModulesService extends CommonHttpService_1.CommonHttpService {
|
|
|
18
19
|
*
|
|
19
20
|
* @returns Returned if the request is successful.
|
|
20
21
|
* @path {GET} /atlassian-connect/1/app/module/dynamic
|
|
22
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules#api-atlassian-connect-1-app-module-dynamic-get
|
|
21
23
|
*/
|
|
22
24
|
getModules() {
|
|
23
25
|
return this.getClientInstance()
|
|
@@ -43,6 +45,7 @@ class DynamicModulesService extends CommonHttpService_1.CommonHttpService {
|
|
|
43
45
|
* request.
|
|
44
46
|
*
|
|
45
47
|
* @path {POST} /atlassian-connect/1/app/module/dynamic
|
|
48
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules#api-atlassian-connect-1-app-module-dynamic-post
|
|
46
49
|
*/
|
|
47
50
|
registerModules({ mediaType, connectModules, }) {
|
|
48
51
|
return this.getClientInstance()
|
|
@@ -63,6 +66,7 @@ class DynamicModulesService extends CommonHttpService_1.CommonHttpService {
|
|
|
63
66
|
* request.
|
|
64
67
|
*
|
|
65
68
|
* @path {DELETE} /atlassian-connect/1/app/module/dynamic
|
|
69
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-dynamic-modules#api-atlassian-connect-1-app-module-dynamic-delete
|
|
66
70
|
*/
|
|
67
71
|
removeModules({ moduleKey, }) {
|
|
68
72
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicModulesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/DynamicModulesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6DAGkC;AAClC,wEAAqE;AACrE,MAAa,qBAAsB,SAAQ,qCAAiB;IAC1D
|
|
1
|
+
{"version":3,"file":"DynamicModulesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/DynamicModulesService.ts"],"names":[],"m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QACf,iDAAuB,CAAC,kBAAkB,CACxC,2CAA2C,EAC3C,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACrD,CAAC;aACD,QAAQ,CAAC,2CAA2C,CAAC,CACzD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wDAAuC;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAjHD,sDAiHC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type LabelArray, type LabelCreate, type LongTask } from "../models/common";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* APIs in this section can change without any prior deprecation notice.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental
|
|
7
|
+
*/
|
|
4
8
|
export declare class ExperimentalService extends CommonHttpService {
|
|
5
9
|
/**
|
|
6
10
|
* Adds labels to a piece of content. Does not modify the existing labels.
|
|
@@ -21,6 +25,7 @@ export declare class ExperimentalService extends CommonHttpService {
|
|
|
21
25
|
* @path {POST} /wiki/rest/api/space/{spaceKey}/label
|
|
22
26
|
* @scopes-current write:confluence-space
|
|
23
27
|
* @scopes-beta read:label:confluence, write:label:confluence
|
|
28
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-post
|
|
24
29
|
*/
|
|
25
30
|
addLabelsToSpace({ spaceKey, labelCreates, }: {
|
|
26
31
|
/** The key of the space to add labels to. */
|
|
@@ -32,6 +37,7 @@ export declare class ExperimentalService extends CommonHttpService {
|
|
|
32
37
|
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/label
|
|
33
38
|
* @scopes-current write:confluence-space
|
|
34
39
|
* @scopes-beta write:label:confluence
|
|
40
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-delete
|
|
35
41
|
*/
|
|
36
42
|
deleteLabelFromSpace({ spaceKey, name, prefix, }: {
|
|
37
43
|
/** The key of the space to remove a labels from. */
|
|
@@ -72,6 +78,7 @@ export declare class ExperimentalService extends CommonHttpService {
|
|
|
72
78
|
* @path {DELETE} /wiki/rest/api/content/{id}/pageTree
|
|
73
79
|
* @scopes-current write:confluence-content
|
|
74
80
|
* @scopes-beta delete:content:confluence
|
|
81
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-content-id-pagetree-delete
|
|
75
82
|
*/
|
|
76
83
|
deletePageTree({ id, }: {
|
|
77
84
|
/** The ID of the content which forms root of the page tree, to be deleted. */
|
|
@@ -86,6 +93,7 @@ export declare class ExperimentalService extends CommonHttpService {
|
|
|
86
93
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/label
|
|
87
94
|
* @scopes-current read:confluence-space.summary
|
|
88
95
|
* @scopes-beta read:label:confluence
|
|
96
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-get
|
|
89
97
|
*/
|
|
90
98
|
getLabelsForSpace({ spaceKey, prefix, start, limit, }: {
|
|
91
99
|
/** The key of the space to get labels for. */
|
|
@@ -9,7 +9,11 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* APIs in this section can change without any prior deprecation notice.
|
|
14
|
+
*
|
|
15
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental
|
|
16
|
+
*/
|
|
13
17
|
class ExperimentalService extends CommonHttpService_1.CommonHttpService {
|
|
14
18
|
/**
|
|
15
19
|
* Adds labels to a piece of content. Does not modify the existing labels.
|
|
@@ -30,6 +34,7 @@ class ExperimentalService extends CommonHttpService_1.CommonHttpService {
|
|
|
30
34
|
* @path {POST} /wiki/rest/api/space/{spaceKey}/label
|
|
31
35
|
* @scopes-current write:confluence-space
|
|
32
36
|
* @scopes-beta read:label:confluence, write:label:confluence
|
|
37
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-post
|
|
33
38
|
*/
|
|
34
39
|
addLabelsToSpace({ spaceKey, labelCreates, }) {
|
|
35
40
|
return this.getClientInstance()
|
|
@@ -57,6 +62,7 @@ class ExperimentalService extends CommonHttpService_1.CommonHttpService {
|
|
|
57
62
|
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/label
|
|
58
63
|
* @scopes-current write:confluence-space
|
|
59
64
|
* @scopes-beta write:label:confluence
|
|
65
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-delete
|
|
60
66
|
*/
|
|
61
67
|
deleteLabelFromSpace({ spaceKey, name, prefix, }) {
|
|
62
68
|
return this.getClientInstance()
|
|
@@ -104,6 +110,7 @@ class ExperimentalService extends CommonHttpService_1.CommonHttpService {
|
|
|
104
110
|
* @path {DELETE} /wiki/rest/api/content/{id}/pageTree
|
|
105
111
|
* @scopes-current write:confluence-content
|
|
106
112
|
* @scopes-beta delete:content:confluence
|
|
113
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-content-id-pagetree-delete
|
|
107
114
|
*/
|
|
108
115
|
deletePageTree({ id, }) {
|
|
109
116
|
return this.getClientInstance()
|
|
@@ -132,6 +139,7 @@ class ExperimentalService extends CommonHttpService_1.CommonHttpService {
|
|
|
132
139
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/label
|
|
133
140
|
* @scopes-current read:confluence-space.summary
|
|
134
141
|
* @scopes-beta read:label:confluence
|
|
142
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-get
|
|
135
143
|
*/
|
|
136
144
|
getLabelsForSpace({ spaceKey, prefix, start, limit, }) {
|
|
137
145
|
return this.getClientInstance()
|