@resolution/confluence-api-client 0.4.0 → 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 +23 -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 +4 -4
- package/lib/openapi/v1/BaseConfluenceV1ApiClient.d.ts +0 -133
- package/lib/openapi/v1/BaseConfluenceV1ApiClient.js +0 -122
- package/lib/openapi/v1/BaseConfluenceV1ApiClient.js.map +0 -1
- package/lib/openapi/v2/BaseConfluenceV2ApiClient.d.ts +0 -67
- package/lib/openapi/v2/BaseConfluenceV2ApiClient.js +0 -87
- package/lib/openapi/v2/BaseConfluenceV2ApiClient.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type ContentPermissionRequest, type PermissionCheckResponse } from "../models/contentPermissions";
|
|
3
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions */
|
|
3
4
|
export declare class ContentPermissionsService extends CommonHttpService {
|
|
4
5
|
/**
|
|
5
6
|
* Check if a user or a group can perform an operation to the specified content.
|
|
@@ -23,6 +24,7 @@ export declare class ContentPermissionsService extends CommonHttpService {
|
|
|
23
24
|
* @path {POST} /wiki/rest/api/content/{id}/permission/check
|
|
24
25
|
* @scopes-current read:confluence-content.permission
|
|
25
26
|
* @scopes-beta read:content.permission:confluence
|
|
27
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions#api-wiki-rest-api-content-id-permission-check-post
|
|
26
28
|
*/
|
|
27
29
|
checkContentPermission({ id, contentPermissionRequest, }: {
|
|
28
30
|
/** The ID of the content to check permissions against. */
|
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const contentPermissions_1 = require("../models/contentPermissions");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions */
|
|
12
13
|
class ContentPermissionsService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Check if a user or a group can perform an operation to the specified content.
|
|
@@ -32,6 +33,7 @@ class ContentPermissionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
32
33
|
* @path {POST} /wiki/rest/api/content/{id}/permission/check
|
|
33
34
|
* @scopes-current read:confluence-content.permission
|
|
34
35
|
* @scopes-beta read:content.permission:confluence
|
|
36
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-permissions#api-wiki-rest-api-content-id-permission-check-post
|
|
35
37
|
*/
|
|
36
38
|
checkContentPermission({ id, contentPermissionRequest, }) {
|
|
37
39
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentPermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,qEAIsC;AACtC,wEAAqE;AACrE,MAAa,yBAA0B,SAAQ,qCAAiB;IAC9D
|
|
1
|
+
{"version":3,"file":"ContentPermissionsService.js","sourceRoot":"","sources":["../../../../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;AAlFD,8DAkFC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type ContentPropertyArray, type ContentPropertyCreate, type ContentPropertyCreateNoKey, type ContentPropertyUpdate, type ContentPropertyV1 } from "../models/contentProperties";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
|
|
6
|
+
*/
|
|
4
7
|
export declare class ContentPropertiesService extends CommonHttpService {
|
|
5
8
|
/**
|
|
6
9
|
* Creates a property for an existing piece of content. For more information
|
|
@@ -23,6 +26,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
23
26
|
* @path {POST} /wiki/rest/api/content/{id}/property
|
|
24
27
|
* @scopes-current write:confluence-props
|
|
25
28
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
29
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
|
|
26
30
|
*/
|
|
27
31
|
createContentProperty({ id, contentPropertyCreate, }: {
|
|
28
32
|
/** The ID of the content to add the property to. */
|
|
@@ -50,6 +54,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
50
54
|
* @path {POST} /wiki/rest/api/content/{id}/property/{key}
|
|
51
55
|
* @scopes-current write:confluence-props
|
|
52
56
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
57
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
|
|
53
58
|
*/
|
|
54
59
|
createContentPropertyForKey({ id, key, contentPropertyCreateNoKey, }: {
|
|
55
60
|
/** The ID of the content to add the property to. */
|
|
@@ -71,6 +76,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
71
76
|
* @path {DELETE} /wiki/rest/api/content/{id}/property/{key}
|
|
72
77
|
* @scopes-current write:confluence-props
|
|
73
78
|
* @scopes-beta write:content.property:confluence
|
|
79
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
|
|
74
80
|
*/
|
|
75
81
|
deleteContentProperty({ id, key, }: {
|
|
76
82
|
/** The ID of the content that the property belongs to. */
|
|
@@ -92,6 +98,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
92
98
|
* @path {GET} /wiki/rest/api/content/{id}/property
|
|
93
99
|
* @scopes-current read:confluence-props
|
|
94
100
|
* @scopes-beta read:content-details:confluence
|
|
101
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
|
|
95
102
|
*/
|
|
96
103
|
getContentProperties({ id, key, expand, start, limit, }: {
|
|
97
104
|
/** The ID of the content to be queried for its properties. */
|
|
@@ -129,6 +136,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
129
136
|
* @path {GET} /wiki/rest/api/content/{id}/property/{key}
|
|
130
137
|
* @scopes-current read:confluence-props
|
|
131
138
|
* @scopes-beta read:content-details:confluence
|
|
139
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
|
|
132
140
|
*/
|
|
133
141
|
getContentProperty({ id, key, expand, status, }: {
|
|
134
142
|
/** The ID of the content to be queried for the property. */
|
|
@@ -174,6 +182,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
174
182
|
* @path {PUT} /wiki/rest/api/content/{id}/property/{key}
|
|
175
183
|
* @scopes-current write:confluence-props
|
|
176
184
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
185
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
|
|
177
186
|
*/
|
|
178
187
|
updateContentProperty({ id, key, contentPropertyUpdate, }: {
|
|
179
188
|
/** The ID of the content that the property belongs to. */
|
|
@@ -9,7 +9,10 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const contentProperties_1 = require("../models/contentProperties");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
|
|
15
|
+
*/
|
|
13
16
|
class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
14
17
|
/**
|
|
15
18
|
* Creates a property for an existing piece of content. For more information
|
|
@@ -32,6 +35,7 @@ class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
32
35
|
* @path {POST} /wiki/rest/api/content/{id}/property
|
|
33
36
|
* @scopes-current write:confluence-props
|
|
34
37
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
38
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
|
|
35
39
|
*/
|
|
36
40
|
createContentProperty({ id, contentPropertyCreate, }) {
|
|
37
41
|
return this.getClientInstance()
|
|
@@ -75,6 +79,7 @@ class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
75
79
|
* @path {POST} /wiki/rest/api/content/{id}/property/{key}
|
|
76
80
|
* @scopes-current write:confluence-props
|
|
77
81
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
82
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
|
|
78
83
|
*/
|
|
79
84
|
createContentPropertyForKey({ id, key, contentPropertyCreateNoKey, }) {
|
|
80
85
|
return this.getClientInstance()
|
|
@@ -111,6 +116,7 @@ class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
111
116
|
* @path {DELETE} /wiki/rest/api/content/{id}/property/{key}
|
|
112
117
|
* @scopes-current write:confluence-props
|
|
113
118
|
* @scopes-beta write:content.property:confluence
|
|
119
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
|
|
114
120
|
*/
|
|
115
121
|
deleteContentProperty({ id, key, }) {
|
|
116
122
|
return this.getClientInstance()
|
|
@@ -138,6 +144,7 @@ class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
138
144
|
* @path {GET} /wiki/rest/api/content/{id}/property
|
|
139
145
|
* @scopes-current read:confluence-props
|
|
140
146
|
* @scopes-beta read:content-details:confluence
|
|
147
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
|
|
141
148
|
*/
|
|
142
149
|
getContentProperties({ id, key, expand, start, limit, }) {
|
|
143
150
|
return this.getClientInstance()
|
|
@@ -177,6 +184,7 @@ class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
177
184
|
* @path {GET} /wiki/rest/api/content/{id}/property/{key}
|
|
178
185
|
* @scopes-current read:confluence-props
|
|
179
186
|
* @scopes-beta read:content-details:confluence
|
|
187
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
|
|
180
188
|
*/
|
|
181
189
|
getContentProperty({ id, key, expand, status, }) {
|
|
182
190
|
return this.getClientInstance()
|
|
@@ -216,6 +224,7 @@ class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
216
224
|
* @path {PUT} /wiki/rest/api/content/{id}/property/{key}
|
|
217
225
|
* @scopes-current write:confluence-props
|
|
218
226
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
227
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
|
|
219
228
|
*/
|
|
220
229
|
updateContentProperty({ id, key, contentPropertyUpdate, }) {
|
|
221
230
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentPropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,mEAOqC;AACrC,wEAAqE;AACrE
|
|
1
|
+
{"version":3,"file":"ContentPropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentPropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,mEAOqC;AACrC,wEAAqE;AACrE;;;GAGG;AACH,MAAa,wBAAyB,SAAQ,qCAAiB;IAC7D;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,qBAAqB,CAAC,EACpB,EAAE,EACF,qBAAqB,GAMtB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,sCAAsC;YAC5C,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,EAAE;aACH;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,qBAAqB;SAC5B,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,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,yDAAyD,CAC1D,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,2BAA2B,CAAC,EAC1B,EAAE,EACF,G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ACzD,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,mBAAmB,CAAC;SACxD,CAAC;aACD,QAAQ,CAAC,yDAAyD,CAAC,CACvE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,+DAA+D,EAC/D,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,mBAAmB,CAAC;SACxD,CAAC;aACD,QAAQ,CACP,+DAA+D,CAChE,CACJ,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,8DAA0C;SAC3C,CAAC,CAAC;IACL,CAAC;CACF;AAncD,4DAmcC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type ContentRestriction } from "../models/common";
|
|
3
3
|
import { type ContentRestrictionAddOrUpdateArray, type ContentRestrictionArray } from "../models/contentRestrictions";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions */
|
|
4
5
|
export declare class ContentRestrictionsService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Deprecated, use [Add group to content restriction via
|
|
@@ -16,6 +17,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
16
17
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
17
18
|
* @scopes-current write:confluence-content
|
|
18
19
|
* @scopes-beta write:content.restriction:confluence
|
|
20
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-put
|
|
19
21
|
*/
|
|
20
22
|
addGroupToContentRestriction({ id, operationKey, groupName, }: {
|
|
21
23
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -36,6 +38,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
36
38
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
37
39
|
* @scopes-current write:confluence-content
|
|
38
40
|
* @scopes-beta write:content.restriction:confluence
|
|
41
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-put
|
|
39
42
|
*/
|
|
40
43
|
addGroupToContentRestrictionByGroupId({ id, operationKey, groupId, }: {
|
|
41
44
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -56,6 +59,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
56
59
|
* @path {POST} /wiki/rest/api/content/{id}/restriction
|
|
57
60
|
* @scopes-current write:confluence-content
|
|
58
61
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
62
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-post
|
|
59
63
|
*/
|
|
60
64
|
addRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }: {
|
|
61
65
|
/** The ID of the content to add restrictions to. */
|
|
@@ -85,6 +89,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
85
89
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
86
90
|
* @scopes-current write:confluence-content
|
|
87
91
|
* @scopes-beta write:content.restriction:confluence
|
|
92
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-put
|
|
88
93
|
*/
|
|
89
94
|
addUserToContentRestriction({ id, operationKey, key, username, accountId, }: {
|
|
90
95
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -130,6 +135,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
130
135
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction
|
|
131
136
|
* @scopes-current write:confluence-content
|
|
132
137
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
138
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-delete
|
|
133
139
|
*/
|
|
134
140
|
deleteRestrictions({ id, expand, }: {
|
|
135
141
|
/** The ID of the content to remove restrictions from. */
|
|
@@ -172,6 +178,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
172
178
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
173
179
|
* @scopes-current read:confluence-content.all
|
|
174
180
|
* @scopes-beta read:content.restriction:confluence
|
|
181
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-get
|
|
175
182
|
*/
|
|
176
183
|
getContentRestrictionStatusForGroup({ id, operationKey, groupName, }: {
|
|
177
184
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -206,6 +213,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
206
213
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
207
214
|
* @scopes-current read:confluence-content.all
|
|
208
215
|
* @scopes-beta read:content.restriction:confluence
|
|
216
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-get
|
|
209
217
|
*/
|
|
210
218
|
getContentRestrictionStatusForUser({ id, operationKey, key, username, accountId, }: {
|
|
211
219
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -263,6 +271,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
263
271
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
264
272
|
* @scopes-current read:confluence-content.all
|
|
265
273
|
* @scopes-beta read:content.restriction:confluence
|
|
274
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-get
|
|
266
275
|
*/
|
|
267
276
|
getIndividualGroupRestrictionStatusByGroupId({ id, operationKey, groupId, }: {
|
|
268
277
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -285,6 +294,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
285
294
|
* @path {GET} /wiki/rest/api/content/{id}/restriction
|
|
286
295
|
* @scopes-current read:confluence-content.all
|
|
287
296
|
* @scopes-beta read:content-details:confluence
|
|
297
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-get
|
|
288
298
|
*/
|
|
289
299
|
getRestrictions({ id, expand, start, limit, }: {
|
|
290
300
|
/** The ID of the content to be queried for its restrictions. */
|
|
@@ -324,6 +334,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
324
334
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation
|
|
325
335
|
* @scopes-current read:confluence-content.all
|
|
326
336
|
* @scopes-beta read:content-details:confluence
|
|
337
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-get
|
|
327
338
|
*/
|
|
328
339
|
getRestrictionsByOperation({ id, expand, }: {
|
|
329
340
|
/** The ID of the content to be queried for its restrictions. */
|
|
@@ -354,6 +365,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
354
365
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}
|
|
355
366
|
* @scopes-current read:confluence-content.all
|
|
356
367
|
* @scopes-beta read:content-details:confluence
|
|
368
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-get
|
|
357
369
|
*/
|
|
358
370
|
getRestrictionsForOperation({ id, operationKey, expand, start, limit, }: {
|
|
359
371
|
/** The ID of the content to be queried for its restrictions. */
|
|
@@ -392,6 +404,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
392
404
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
393
405
|
* @scopes-current write:confluence-content
|
|
394
406
|
* @scopes-beta write:content.restriction:confluence
|
|
407
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-delete
|
|
395
408
|
*/
|
|
396
409
|
removeGroupFromContentRestriction({ id, operationKey, groupId, }: {
|
|
397
410
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -415,6 +428,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
415
428
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
416
429
|
* @scopes-current write:confluence-content
|
|
417
430
|
* @scopes-beta write:content.restriction:confluence
|
|
431
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-delete
|
|
418
432
|
*/
|
|
419
433
|
removeGroupFromContentRestrictionById({ id, operationKey, groupName, }: {
|
|
420
434
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -434,6 +448,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
434
448
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
435
449
|
* @scopes-current write:confluence-content
|
|
436
450
|
* @scopes-beta write:content.restriction:confluence
|
|
451
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-delete
|
|
437
452
|
*/
|
|
438
453
|
removeUserFromContentRestriction({ id, operationKey, key, username, accountId, }: {
|
|
439
454
|
/** The ID of the content that the restriction applies to. */
|
|
@@ -480,6 +495,7 @@ export declare class ContentRestrictionsService extends CommonHttpService {
|
|
|
480
495
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction
|
|
481
496
|
* @scopes-current write:confluence-content
|
|
482
497
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
498
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-put
|
|
483
499
|
*/
|
|
484
500
|
updateRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }: {
|
|
485
501
|
/** The ID of the content to update restrictions for. */
|
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const contentRestrictions_1 = require("../models/contentRestrictions");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions */
|
|
13
14
|
class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Deprecated, use [Add group to content restriction via
|
|
@@ -25,6 +26,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
25
26
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
26
27
|
* @scopes-current write:confluence-content
|
|
27
28
|
* @scopes-beta write:content.restriction:confluence
|
|
29
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-put
|
|
28
30
|
*/
|
|
29
31
|
addGroupToContentRestriction({ id, operationKey, groupName, }) {
|
|
30
32
|
return this.getClientInstance()
|
|
@@ -50,6 +52,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
50
52
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
51
53
|
* @scopes-current write:confluence-content
|
|
52
54
|
* @scopes-beta write:content.restriction:confluence
|
|
55
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-put
|
|
53
56
|
*/
|
|
54
57
|
addGroupToContentRestrictionByGroupId({ id, operationKey, groupId, }) {
|
|
55
58
|
return this.getClientInstance()
|
|
@@ -75,6 +78,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
75
78
|
* @path {POST} /wiki/rest/api/content/{id}/restriction
|
|
76
79
|
* @scopes-current write:confluence-content
|
|
77
80
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
81
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-post
|
|
78
82
|
*/
|
|
79
83
|
addRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }) {
|
|
80
84
|
return this.getClientInstance()
|
|
@@ -111,6 +115,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
111
115
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
112
116
|
* @scopes-current write:confluence-content
|
|
113
117
|
* @scopes-beta write:content.restriction:confluence
|
|
118
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-put
|
|
114
119
|
*/
|
|
115
120
|
addUserToContentRestriction({ id, operationKey, key, username, accountId, }) {
|
|
116
121
|
return this.getClientInstance()
|
|
@@ -139,6 +144,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
139
144
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction
|
|
140
145
|
* @scopes-current write:confluence-content
|
|
141
146
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
147
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-delete
|
|
142
148
|
*/
|
|
143
149
|
deleteRestrictions({ id, expand, }) {
|
|
144
150
|
return this.getClientInstance()
|
|
@@ -186,6 +192,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
186
192
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
187
193
|
* @scopes-current read:confluence-content.all
|
|
188
194
|
* @scopes-beta read:content.restriction:confluence
|
|
195
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-get
|
|
189
196
|
*/
|
|
190
197
|
getContentRestrictionStatusForGroup({ id, operationKey, groupName, }) {
|
|
191
198
|
return this.getClientInstance()
|
|
@@ -222,6 +229,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
222
229
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
223
230
|
* @scopes-current read:confluence-content.all
|
|
224
231
|
* @scopes-beta read:content.restriction:confluence
|
|
232
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-get
|
|
225
233
|
*/
|
|
226
234
|
getContentRestrictionStatusForUser({ id, operationKey, key, username, accountId, }) {
|
|
227
235
|
return this.getClientInstance()
|
|
@@ -262,6 +270,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
262
270
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
263
271
|
* @scopes-current read:confluence-content.all
|
|
264
272
|
* @scopes-beta read:content.restriction:confluence
|
|
273
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-get
|
|
265
274
|
*/
|
|
266
275
|
getIndividualGroupRestrictionStatusByGroupId({ id, operationKey, groupId, }) {
|
|
267
276
|
return this.getClientInstance()
|
|
@@ -286,6 +295,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
286
295
|
* @path {GET} /wiki/rest/api/content/{id}/restriction
|
|
287
296
|
* @scopes-current read:confluence-content.all
|
|
288
297
|
* @scopes-beta read:content-details:confluence
|
|
298
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-get
|
|
289
299
|
*/
|
|
290
300
|
getRestrictions({ id, expand, start, limit, }) {
|
|
291
301
|
return this.getClientInstance()
|
|
@@ -323,6 +333,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
323
333
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation
|
|
324
334
|
* @scopes-current read:confluence-content.all
|
|
325
335
|
* @scopes-beta read:content-details:confluence
|
|
336
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-get
|
|
326
337
|
*/
|
|
327
338
|
getRestrictionsByOperation({ id, expand, }) {
|
|
328
339
|
return this.getClientInstance()
|
|
@@ -356,6 +367,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
356
367
|
* @path {GET} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}
|
|
357
368
|
* @scopes-current read:confluence-content.all
|
|
358
369
|
* @scopes-beta read:content-details:confluence
|
|
370
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-get
|
|
359
371
|
*/
|
|
360
372
|
getRestrictionsForOperation({ id, operationKey, expand, start, limit, }) {
|
|
361
373
|
return this.getClientInstance()
|
|
@@ -392,6 +404,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
392
404
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/byGroupId/{groupId}
|
|
393
405
|
* @scopes-current write:confluence-content
|
|
394
406
|
* @scopes-beta write:content.restriction:confluence
|
|
407
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-bygroupid-groupid-delete
|
|
395
408
|
*/
|
|
396
409
|
removeGroupFromContentRestriction({ id, operationKey, groupId, }) {
|
|
397
410
|
return this.getClientInstance()
|
|
@@ -420,6 +433,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
420
433
|
* /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}
|
|
421
434
|
* @scopes-current write:confluence-content
|
|
422
435
|
* @scopes-beta write:content.restriction:confluence
|
|
436
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-group-groupname-delete
|
|
423
437
|
*/
|
|
424
438
|
removeGroupFromContentRestrictionById({ id, operationKey, groupName, }) {
|
|
425
439
|
return this.getClientInstance()
|
|
@@ -444,6 +458,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
444
458
|
* @path {DELETE} /wiki/rest/api/content/{id}/restriction/byOperation/{operationKey}/user
|
|
445
459
|
* @scopes-current write:confluence-content
|
|
446
460
|
* @scopes-beta write:content.restriction:confluence
|
|
461
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-byoperation-operationkey-user-delete
|
|
447
462
|
*/
|
|
448
463
|
removeUserFromContentRestriction({ id, operationKey, key, username, accountId, }) {
|
|
449
464
|
return this.getClientInstance()
|
|
@@ -473,6 +488,7 @@ class ContentRestrictionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
473
488
|
* @path {PUT} /wiki/rest/api/content/{id}/restriction
|
|
474
489
|
* @scopes-current write:confluence-content
|
|
475
490
|
* @scopes-beta read:content-details:confluence, write:content.restriction:confluence
|
|
491
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions#api-wiki-rest-api-content-id-restriction-put
|
|
476
492
|
*/
|
|
477
493
|
updateRestrictions({ id, expand, contentRestrictionAddOrUpdateArray, }) {
|
|
478
494
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentRestrictionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentRestrictionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,uEAIuC;AACvC,wEAAqE;AACrE,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D
|
|
1
|
+
{"version":3,"file":"ContentRestrictionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentRestrictionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,uEAIuC;AACvC,wEAAqE;AACrE,mGAAmG;AACnG,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D;;;;;;;;;;;;;;;OAeG;IACH,4BAA4B,CAAC,EAC3B,EAAE,EACF,YAAY,EACZ,SAAS,GAQV;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,sFAAsF;YAC5F,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;gBACF,YA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|
|
2
2
|
import { type Content, type ContentArray, type LongTask } from "../models/common";
|
|
3
3
|
import { type ContentBlueprintDraft, type ContentCreate, type ContentHistory, type ContentUpdate } from "../models/content";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content */
|
|
4
5
|
export declare class ContentService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Archives a list of pages. The pages to be archived are specified as a list of
|
|
@@ -21,6 +22,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
21
22
|
* @path {POST} /wiki/rest/api/content/archive
|
|
22
23
|
* @scopes-current write:confluence-content
|
|
23
24
|
* @scopes-beta read:content.metadata:confluence, write:page:confluence
|
|
25
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-archive-post
|
|
24
26
|
*/
|
|
25
27
|
archivePages({ requestBody, }: {
|
|
26
28
|
/** The pages to be archived. */
|
|
@@ -60,6 +62,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
60
62
|
* @path {POST} /wiki/rest/api/content
|
|
61
63
|
* @scopes-current write:confluence-content
|
|
62
64
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
65
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-post
|
|
63
66
|
*/
|
|
64
67
|
createContent({ status, expand, contentCreate, }: {
|
|
65
68
|
/** Filter the returned content by status. */
|
|
@@ -198,6 +201,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
198
201
|
* @path {DELETE} /wiki/rest/api/content/{id}
|
|
199
202
|
* @scopes-current write:confluence-content
|
|
200
203
|
* @scopes-beta delete:content:confluence
|
|
204
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-delete
|
|
201
205
|
*/
|
|
202
206
|
deleteContent({ id, status, }: {
|
|
203
207
|
/** The ID of the content to be deleted. */
|
|
@@ -229,8 +233,9 @@ export declare class ContentService extends CommonHttpService {
|
|
|
229
233
|
* @path {GET} /wiki/rest/api/content
|
|
230
234
|
* @scopes-current read:confluence-content.summary
|
|
231
235
|
* @scopes-beta read:content-details:confluence
|
|
236
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-get
|
|
232
237
|
*/
|
|
233
|
-
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }
|
|
238
|
+
getContent({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit, }?: {
|
|
234
239
|
/**
|
|
235
240
|
* The type of content to return. For example:
|
|
236
241
|
* - page
|
|
@@ -387,6 +392,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
387
392
|
* @path {GET} /wiki/rest/api/content/{id}
|
|
388
393
|
* @scopes-current read:confluence-content.summary
|
|
389
394
|
* @scopes-beta read:content-details:confluence
|
|
395
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-get
|
|
390
396
|
*/
|
|
391
397
|
getContentById({ id, status, version, embeddedContentRender, expand, trigger, }: {
|
|
392
398
|
/**
|
|
@@ -528,6 +534,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
528
534
|
* @path {GET} /wiki/rest/api/content/{id}/history
|
|
529
535
|
* @scopes-current read:confluence-content.summary
|
|
530
536
|
* @scopes-beta read:content.metadata:confluence, read:user:confluence
|
|
537
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-history-get
|
|
531
538
|
*/
|
|
532
539
|
getHistoryForContent({ id, expand, }: {
|
|
533
540
|
/** The ID of the content to be queried for its history. */
|
|
@@ -564,6 +571,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
564
571
|
* @path {POST} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
565
572
|
* @scopes-current write:confluence-content
|
|
566
573
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
574
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-post
|
|
567
575
|
*/
|
|
568
576
|
publishLegacyDraft({ draftId, status, expand, contentBlueprintDraft, }: {
|
|
569
577
|
/**
|
|
@@ -688,6 +696,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
688
696
|
* @path {PUT} /wiki/rest/api/content/blueprint/instance/{draftId}
|
|
689
697
|
* @scopes-current write:confluence-content
|
|
690
698
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
699
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-put
|
|
691
700
|
*/
|
|
692
701
|
publishSharedDraft({ draftId, status, expand, contentBlueprintDraft, }: {
|
|
693
702
|
/**
|
|
@@ -854,6 +863,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
854
863
|
* @path {GET} /wiki/rest/api/content/search
|
|
855
864
|
* @scopes-current search:confluence
|
|
856
865
|
* @scopes-beta read:content-details:confluence
|
|
866
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-search-get
|
|
857
867
|
*/
|
|
858
868
|
searchContentByCql({ cql, cqlcontext, expand, cursor, limit, }: {
|
|
859
869
|
/** The CQL string that is used to find the requested content. */
|
|
@@ -991,6 +1001,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
991
1001
|
* @path {PUT} /wiki/rest/api/content/{id}
|
|
992
1002
|
* @scopes-current write:confluence-content
|
|
993
1003
|
* @scopes-beta read:content-details:confluence, write:content:confluence
|
|
1004
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-put
|
|
994
1005
|
*/
|
|
995
1006
|
updateContent({ id, status, conflictPolicy, contentUpdate, }: {
|
|
996
1007
|
/** The ID of the content to be updated. */
|