@resolution/confluence-api-client 0.4.1 → 0.4.2
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 +12 -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 +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.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 +10 -2
- package/lib/openapi/v1/services/UsersService.js +10 -2
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- 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 +3 -0
- package/lib/openapi/v2/services/UserService.js +3 -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 content_1 = require("../models/content");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content */
|
|
13
14
|
class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Archives a list of pages. The pages to be archived are specified as a list of
|
|
@@ -30,6 +31,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
30
31
|
* @path {POST} /wiki/rest/api/content/archive
|
|
31
32
|
* @scopes-current write:confluence-content
|
|
32
33
|
* @scopes-beta read:content.metadata:confluence, write:page:confluence
|
|
34
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-archive-post
|
|
33
35
|
*/
|
|
34
36
|
archivePages({ requestBody, }) {
|
|
35
37
|
return this.getClientInstance()
|
|
@@ -75,6 +77,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
75
77
|
* @path {POST} /wiki/rest/api/content
|
|
76
78
|
* @scopes-current write:confluence-content
|
|
77
79
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
80
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-post
|
|
78
81
|
*/
|
|
79
82
|
createContent({ status, expand, contentCreate, }) {
|
|
80
83
|
return this.getClientInstance()
|
|
@@ -123,6 +126,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
123
126
|
* @path {DELETE} /wiki/rest/api/content/{id}
|
|
124
127
|
* @scopes-current write:confluence-content
|
|
125
128
|
* @scopes-beta delete:content:confluence
|
|
129
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-delete
|
|
126
130
|
*/
|
|
127
131
|
deleteContent({ id, status, }) {
|
|
128
132
|
return this.getClientInstance()
|
|
@@ -159,8 +163,9 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
159
163
|
* @path {GET} /wiki/rest/api/content
|
|
160
164
|
* @scopes-current read:confluence-content.summary
|
|
161
165
|
* @scopes-beta read:content-details:confluence
|
|
166
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-get
|
|
162
167
|
*/
|
|
163
|
-
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }) {
|
|
168
|
+
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, } = {}) {
|
|
164
169
|
return this.getClientInstance()
|
|
165
170
|
.request({
|
|
166
171
|
path: "/wiki/rest/api/content",
|
|
@@ -204,6 +209,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
204
209
|
* @path {GET} /wiki/rest/api/content/{id}
|
|
205
210
|
* @scopes-current read:confluence-content.summary
|
|
206
211
|
* @scopes-beta read:content-details:confluence
|
|
212
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-get
|
|
207
213
|
*/
|
|
208
214
|
getContentById({ id, status, version, embeddedContentRender, expand, trigger, }) {
|
|
209
215
|
return this.getClientInstance()
|
|
@@ -244,6 +250,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
244
250
|
* @path {GET} /wiki/rest/api/content/{id}/history
|
|
245
251
|
* @scopes-current read:confluence-content.summary
|
|
246
252
|
* @scopes-beta read:content.metadata:confluence, read:user:confluence
|
|
253
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-history-get
|
|
247
254
|
*/
|
|
248
255
|
getHistoryForContent({ id, expand, }) {
|
|
249
256
|
return this.getClientInstance()
|
|
@@ -283,6 +290,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
283
290
|
* @path {POST} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
284
291
|
* @scopes-current write:confluence-content
|
|
285
292
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
293
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-post
|
|
286
294
|
*/
|
|
287
295
|
publishLegacyDraft({ draftId, status, expand, contentBlueprintDraft, }) {
|
|
288
296
|
return this.getClientInstance()
|
|
@@ -324,6 +332,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
324
332
|
* @path {PUT} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
325
333
|
* @scopes-current write:confluence-content
|
|
326
334
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
335
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-put
|
|
327
336
|
*/
|
|
328
337
|
publishSharedDraft({ draftId, status, expand, contentBlueprintDraft, }) {
|
|
329
338
|
return this.getClientInstance()
|
|
@@ -407,6 +416,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
407
416
|
* @path {GET} /wiki/rest/api/content/search
|
|
408
417
|
* @scopes-current search:confluence
|
|
409
418
|
* @scopes-beta read:content-details:confluence
|
|
419
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-search-get
|
|
410
420
|
*/
|
|
411
421
|
searchContentByCql({ cql, cqlcontext, expand, cursor, limit, }) {
|
|
412
422
|
return this.getClientInstance()
|
|
@@ -447,6 +457,7 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
447
457
|
* @path {PUT} /wiki/rest/api/content/{id}
|
|
448
458
|
* @scopes-current write:confluence-content
|
|
449
459
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
460
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-put
|
|
450
461
|
*/
|
|
451
462
|
updateContent({ id, status, conflictPolicy, contentUpdate, }) {
|
|
452
463
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,+CAM2B;AAC3B,wEAAqE;AACrE,MAAa,cAAe,SAAQ,qCAAiB;IACnD
|
|
1
|
+
{"version":3,"file":"ContentService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,+CAM2B;AAC3B,wEAAqE;AACrE,sFAAsF;AACtF,MAAa,cAAe,SAAQ,qCAAiB;IACnD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAY,CAAC,EACX,WAAW,GAaZ;QACC,OAAO,IA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D,CAAC;aACD,QAAQ,CAAC,4CAA4C,CAAC,CAC1D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,4CAA4C,EAC5C,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,4CAA4C,CAAC,CAC1D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,0CAAgC;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AAt9CD,wCAs9CC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type AsyncId, type ContentArray } from "../models/common";
|
|
3
3
|
import { type AvailableContentStates, type ContentState, type ContentStateBulkSetTaskUpdate, type ContentStateResponse, type ContentStateRestInput, type ContentStateSettings } from "../models/contentStates";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states */
|
|
4
5
|
export declare class ContentStatesService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Creates a long running task that Removes content state from draft or published
|
|
@@ -16,6 +17,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
16
17
|
* @path {POST} /wiki/rest/api/content-states/delete
|
|
17
18
|
* @scopes-current write:confluence-content
|
|
18
19
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
20
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-delete-post
|
|
19
21
|
*/
|
|
20
22
|
bulkRemoveContentStates({ status, requestBody, }: {
|
|
21
23
|
/** Set status to one of [current,draft]. */
|
|
@@ -36,6 +38,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
36
38
|
* @path {GET} /wiki/rest/api/content/{id}/state/available
|
|
37
39
|
* @scopes-current write:confluence-content
|
|
38
40
|
* @scopes-beta write:content:confluence
|
|
41
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-available-get
|
|
39
42
|
*/
|
|
40
43
|
getAvailableContentStates({ id, }: {
|
|
41
44
|
/** id of content to get available states for */
|
|
@@ -53,6 +56,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
53
56
|
* @path {GET} /wiki/rest/api/content/{id}/state
|
|
54
57
|
* @scopes-current read:confluence-content.summary
|
|
55
58
|
* @scopes-beta read:content-details:confluence
|
|
59
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-get
|
|
56
60
|
*/
|
|
57
61
|
getContentState({ id, status, }: {
|
|
58
62
|
/** The id of the content whose content state is of interest. */
|
|
@@ -73,6 +77,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
73
77
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state/settings
|
|
74
78
|
* @scopes-current read:confluence-space.summary
|
|
75
79
|
* @scopes-beta read:space.setting:confluence
|
|
80
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-settings-get
|
|
76
81
|
*/
|
|
77
82
|
getContentStateSettings({ spaceKey, }: {
|
|
78
83
|
/** The key of the space to be queried for its content state settings. */
|
|
@@ -92,6 +97,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
92
97
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state/content
|
|
93
98
|
* @scopes-current read:confluence-content.all
|
|
94
99
|
* @scopes-beta read:content:confluence
|
|
100
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-content-get
|
|
95
101
|
*/
|
|
96
102
|
getContentsWithState({ spaceKey, stateId, expand, limit, start, }: {
|
|
97
103
|
/** The key of the space to be queried for its content state settings. */
|
|
@@ -120,6 +126,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
120
126
|
* @path {GET} /wiki/rest/api/content-states
|
|
121
127
|
* @scopes-current read:user.property:confluence
|
|
122
128
|
* @scopes-beta read:user.property:confluence
|
|
129
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-get
|
|
123
130
|
*/
|
|
124
131
|
getCustomContentStates(): Promise<ContentState[]>;
|
|
125
132
|
/**
|
|
@@ -132,6 +139,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
132
139
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/state
|
|
133
140
|
* @scopes-current read:confluence-space.summary
|
|
134
141
|
* @scopes-beta read:space.setting:confluence
|
|
142
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-get
|
|
135
143
|
*/
|
|
136
144
|
getSpaceContentStates({ spaceKey, }: {
|
|
137
145
|
/** The key of the space to be queried for its content state settings. */
|
|
@@ -151,6 +159,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
151
159
|
* @path {GET} /wiki/rest/api/content-states/task/{taskId}
|
|
152
160
|
* @scopes-current read:confluence-content
|
|
153
161
|
* @scopes-beta read:content:confluence
|
|
162
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-task-taskid-get
|
|
154
163
|
*/
|
|
155
164
|
getTaskUpdate({ taskId, }: {
|
|
156
165
|
/** taskId returned by delete requests to /wiki/rest/api/content-states */
|
|
@@ -168,6 +177,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
168
177
|
* @path {DELETE} /wiki/rest/api/content/{id}/state
|
|
169
178
|
* @scopes-current write:confluence-content
|
|
170
179
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
180
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-delete
|
|
171
181
|
*/
|
|
172
182
|
removeContentState({ id, status, }: {
|
|
173
183
|
/** The Id of the content whose content state is to be set. */
|
|
@@ -199,6 +209,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
199
209
|
* @path {PUT} /wiki/rest/api/content/{id}/state
|
|
200
210
|
* @scopes-current write:confluence-content
|
|
201
211
|
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
212
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-put
|
|
202
213
|
*/
|
|
203
214
|
setContentState({ id, status, contentStateRestInput, }: {
|
|
204
215
|
/** The Id of the content whose content state is to be set. */
|
|
@@ -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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AAC,yDAAyD,CAAC,CACvE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,qDAAqD,EACrD,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,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;AAC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C,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,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. */
|