@resolution/confluence-api-client 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +33 -1
- package/lib/openapi/{v1/core → core}/CommonHttpClient.d.ts +54 -3
- package/lib/openapi/{v2/core → core}/CommonHttpClient.js +14 -0
- package/lib/openapi/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/{v2/core → core}/CommonHttpService.d.ts +17 -0
- package/lib/openapi/{v1/core → core}/CommonHttpService.js +11 -0
- package/lib/openapi/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +2 -2
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +2 -2
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/audit.d.ts +1 -1
- package/lib/openapi/v1/models/common.d.ts +2 -1
- package/lib/openapi/v1/models/common.js +1 -0
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +1 -1
- package/lib/openapi/v1/models/contentAttachments.d.ts +1 -1
- package/lib/openapi/v1/models/contentBody.d.ts +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +1 -1
- package/lib/openapi/v1/models/contentLabels.d.ts +1 -1
- package/lib/openapi/v1/models/contentMacroBody.d.ts +1 -1
- package/lib/openapi/v1/models/contentPermissions.d.ts +1 -1
- package/lib/openapi/v1/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v1/models/contentRestrictions.d.ts +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +1 -1
- package/lib/openapi/v1/models/contentVersions.d.ts +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +7 -4
- package/lib/openapi/v1/models/dynamicModules.js.map +1 -1
- package/lib/openapi/v1/models/group.d.ts +1 -1
- package/lib/openapi/v1/models/inlineTasks.d.ts +1 -1
- package/lib/openapi/v1/models/labelInfo.d.ts +1 -1
- package/lib/openapi/v1/models/longRunningTask.d.ts +1 -1
- package/lib/openapi/v1/models/relation.d.ts +1 -1
- package/lib/openapi/v1/models/search.d.ts +1 -1
- package/lib/openapi/v1/models/settings.d.ts +1 -1
- package/lib/openapi/v1/models/space.d.ts +11 -4
- package/lib/openapi/v1/models/space.js +2 -1
- package/lib/openapi/v1/models/space.js.map +1 -1
- package/lib/openapi/v1/models/spacePermissions.d.ts +1 -1
- package/lib/openapi/v1/models/spaceProperties.d.ts +1 -1
- package/lib/openapi/v1/models/spaceSettings.d.ts +1 -1
- package/lib/openapi/v1/models/template.d.ts +1 -1
- package/lib/openapi/v1/models/themes.d.ts +1 -1
- package/lib/openapi/v1/models/userProperties.d.ts +1 -1
- package/lib/openapi/v1/models/users.d.ts +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +9 -5
- package/lib/openapi/v1/services/AnalyticsService.js +6 -4
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +15 -9
- package/lib/openapi/v1/services/AuditService.js +15 -9
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +13 -7
- package/lib/openapi/v1/services/ContentAttachmentsService.js +14 -8
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +8 -6
- package/lib/openapi/v1/services/ContentBodyService.js +9 -7
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +18 -10
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +19 -11
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +3 -2
- package/lib/openapi/v1/services/ContentCommentsService.js +4 -3
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +9 -5
- package/lib/openapi/v1/services/ContentLabelsService.js +10 -6
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +7 -6
- package/lib/openapi/v1/services/ContentMacroBodyService.js +8 -7
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +3 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +4 -3
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +13 -7
- package/lib/openapi/v1/services/ContentPropertiesService.js +14 -8
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +31 -22
- package/lib/openapi/v1/services/ContentRestrictionsService.js +32 -23
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +21 -11
- package/lib/openapi/v1/services/ContentService.js +22 -12
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +21 -12
- package/lib/openapi/v1/services/ContentStatesService.js +22 -13
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +9 -5
- package/lib/openapi/v1/services/ContentVersionsService.js +10 -6
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +25 -13
- package/lib/openapi/v1/services/ContentWatchesService.js +26 -14
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +6 -4
- package/lib/openapi/v1/services/DynamicModulesService.js +7 -5
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +13 -9
- package/lib/openapi/v1/services/ExperimentalService.js +14 -10
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +31 -16
- package/lib/openapi/v1/services/GroupService.js +32 -17
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +7 -4
- package/lib/openapi/v1/services/InlineTasksService.js +8 -5
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +3 -2
- package/lib/openapi/v1/services/LabelInfoService.js +4 -3
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +5 -3
- package/lib/openapi/v1/services/LongRunningTaskService.js +6 -4
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +12 -13
- package/lib/openapi/v1/services/RelationService.js +13 -14
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +5 -3
- package/lib/openapi/v1/services/SearchService.js +6 -4
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +14 -11
- package/lib/openapi/v1/services/SettingsService.js +15 -12
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +7 -4
- package/lib/openapi/v1/services/SpacePermissionsService.js +8 -5
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +13 -7
- package/lib/openapi/v1/services/SpacePropertiesService.js +14 -8
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +20 -15
- package/lib/openapi/v1/services/SpaceService.js +21 -16
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +5 -3
- package/lib/openapi/v1/services/SpaceSettingsService.js +6 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +15 -11
- package/lib/openapi/v1/services/TemplateService.js +16 -12
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +12 -7
- package/lib/openapi/v1/services/ThemesService.js +13 -8
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +11 -6
- package/lib/openapi/v1/services/UserPropertiesService.js +12 -7
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +15 -8
- package/lib/openapi/v1/services/UsersService.js +16 -9
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v1/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/v1/validationSchemaStorage.js +1 -1
- package/lib/openapi/v1/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +2 -2
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +2 -2
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/models/ancestors.d.ts +1 -1
- package/lib/openapi/v2/models/attachment.d.ts +1 -1
- package/lib/openapi/v2/models/blogPost.d.ts +1 -1
- package/lib/openapi/v2/models/children.d.ts +1 -1
- package/lib/openapi/v2/models/classificationLevel.d.ts +1 -1
- package/lib/openapi/v2/models/comment.d.ts +1 -1
- package/lib/openapi/v2/models/common.d.ts +1 -1
- package/lib/openapi/v2/models/content.d.ts +1 -1
- package/lib/openapi/v2/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v2/models/customContent.d.ts +1 -1
- package/lib/openapi/v2/models/dataPolicies.d.ts +1 -1
- package/lib/openapi/v2/models/database.d.ts +1 -1
- package/lib/openapi/v2/models/operation.d.ts +1 -1
- package/lib/openapi/v2/models/page.d.ts +1 -1
- package/lib/openapi/v2/models/smartLink.d.ts +1 -1
- package/lib/openapi/v2/models/space.d.ts +1 -1
- package/lib/openapi/v2/models/spaceProperties.d.ts +1 -1
- package/lib/openapi/v2/models/task.d.ts +1 -1
- package/lib/openapi/v2/models/user.d.ts +1 -1
- package/lib/openapi/v2/models/version.d.ts +1 -1
- package/lib/openapi/v2/models/whiteboard.d.ts +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +9 -5
- package/lib/openapi/v2/services/AncestorsService.js +10 -6
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +16 -10
- package/lib/openapi/v2/services/AttachmentService.js +17 -11
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +16 -10
- package/lib/openapi/v2/services/BlogPostService.js +17 -11
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +5 -3
- package/lib/openapi/v2/services/ChildrenService.js +6 -4
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +20 -11
- package/lib/openapi/v2/services/ClassificationLevelService.js +21 -12
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +37 -19
- package/lib/openapi/v2/services/CommentService.js +38 -20
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +81 -41
- package/lib/openapi/v2/services/ContentPropertiesService.js +82 -42
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +4 -4
- package/lib/openapi/v2/services/ContentService.js +5 -5
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +17 -9
- package/lib/openapi/v2/services/CustomContentService.js +18 -10
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +4 -3
- package/lib/openapi/v2/services/DataPoliciesService.js +5 -4
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +7 -4
- package/lib/openapi/v2/services/DatabaseService.js +8 -5
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +15 -8
- package/lib/openapi/v2/services/LabelService.js +16 -9
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +17 -9
- package/lib/openapi/v2/services/LikeService.js +18 -10
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +21 -11
- package/lib/openapi/v2/services/OperationService.js +22 -12
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +24 -10
- package/lib/openapi/v2/services/PageService.js +16 -9
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +7 -4
- package/lib/openapi/v2/services/SmartLinkService.js +8 -5
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +3 -2
- package/lib/openapi/v2/services/SpacePermissionsService.js +4 -3
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +12 -8
- package/lib/openapi/v2/services/SpacePropertiesService.js +13 -9
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +5 -3
- package/lib/openapi/v2/services/SpaceService.js +6 -4
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +7 -4
- package/lib/openapi/v2/services/TaskService.js +8 -5
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +8 -6
- package/lib/openapi/v2/services/UserService.js +9 -7
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +25 -13
- package/lib/openapi/v2/services/VersionService.js +26 -14
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +7 -4
- package/lib/openapi/v2/services/WhiteboardService.js +8 -5
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/lib/openapi/v2/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/v2/validationSchemaStorage.js +1 -1
- package/lib/openapi/v2/validationSchemaStorage.js.map +1 -1
- package/package.json +3 -3
- package/lib/openapi/v1/core/CommonHttpClient.js +0 -390
- package/lib/openapi/v1/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/v1/core/CommonHttpService.d.ts +0 -9
- package/lib/openapi/v1/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.js.map +0 -1
- package/lib/openapi/v2/core/CommonHttpClient.d.ts +0 -196
- package/lib/openapi/v2/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/v2/core/CommonHttpService.js +0 -29
- package/lib/openapi/v2/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.d.ts +0 -35
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js +0 -65
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js.map +0 -1
- /package/lib/openapi/{v1/core → core}/CommonValidationSchemaStorage.d.ts +0 -0
- /package/lib/openapi/{v1/core → core}/CommonValidationSchemaStorage.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type ClassificationLevel } from "../models/classificationLevel";
|
|
3
3
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level */
|
|
4
4
|
export declare class ClassificationLevelService extends CommonHttpService {
|
|
@@ -11,9 +11,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
11
11
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
12
12
|
* 'Admin' permission for the space.
|
|
13
13
|
*
|
|
14
|
-
* @path
|
|
14
|
+
* @path DELETE `/spaces/{id}/classification-level/default`
|
|
15
15
|
* @scopes-current read:space:confluence, write:space:confluence
|
|
16
16
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-delete
|
|
17
|
+
* @param params
|
|
17
18
|
*/
|
|
18
19
|
deleteSpaceDefaultClassificationLevel: ({ id, }: {
|
|
19
20
|
/** The ID of the space for which default classification level should be deleted. */
|
|
@@ -31,9 +32,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
31
32
|
* level for a draft.
|
|
32
33
|
*
|
|
33
34
|
* @returns Returned if the requested classification level for a blog post is returned.
|
|
34
|
-
* @path
|
|
35
|
+
* @path GET `/blogposts/{id}/classification-level`
|
|
35
36
|
* @scopes-current read:page:confluence, write:page:confluence
|
|
36
37
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-get
|
|
38
|
+
* @param params
|
|
37
39
|
*/
|
|
38
40
|
getBlogPostClassificationLevel: ({ id, status, }: {
|
|
39
41
|
/** The ID of the blog post for which classification level should be returned. */
|
|
@@ -50,7 +52,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
50
52
|
* 'Permission to access the Confluence site ('Can use' global permission).
|
|
51
53
|
*
|
|
52
54
|
* @returns Returned if classifications levels are returned.
|
|
53
|
-
* @path
|
|
55
|
+
* @path GET `/classification-levels`
|
|
54
56
|
* @scopes-current read:configuration:confluence
|
|
55
57
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-classification-levels-get
|
|
56
58
|
*/
|
|
@@ -67,9 +69,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
67
69
|
* for a draft.
|
|
68
70
|
*
|
|
69
71
|
* @returns Returned if the requested classification level for a page is returned.
|
|
70
|
-
* @path
|
|
72
|
+
* @path GET `/pages/{id}/classification-level`
|
|
71
73
|
* @scopes-current read:page:confluence, write:page:confluence
|
|
72
74
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-get
|
|
75
|
+
* @param params
|
|
73
76
|
*/
|
|
74
77
|
getPageClassificationLevel: ({ id, status, }: {
|
|
75
78
|
/** The ID of the page for which classification level should be returned. */
|
|
@@ -87,9 +90,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
87
90
|
* permission to view the space.
|
|
88
91
|
*
|
|
89
92
|
* @returns Returned if the requested default classification level for a space is returned.
|
|
90
|
-
* @path
|
|
93
|
+
* @path GET `/spaces/{id}/classification-level/default`
|
|
91
94
|
* @scopes-current read:space:confluence
|
|
92
95
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-get
|
|
96
|
+
* @param params
|
|
93
97
|
*/
|
|
94
98
|
getSpaceDefaultClassificationLevel: ({ id, }: {
|
|
95
99
|
/** The ID of the space for which default classification level should be returned. */
|
|
@@ -106,9 +110,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
106
110
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
107
111
|
* permission to view the blog post.
|
|
108
112
|
*
|
|
109
|
-
* @path
|
|
113
|
+
* @path POST `/blogposts/{id}/classification-level/reset`
|
|
110
114
|
* @scopes-current write:page:confluence
|
|
111
115
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-reset-post
|
|
116
|
+
* @param params
|
|
112
117
|
*/
|
|
113
118
|
postBlogPostClassificationLevel: ({ id, requestBody, }: {
|
|
114
119
|
/** The ID of the blog post for which classification level should be updated. */
|
|
@@ -131,9 +136,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
131
136
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
132
137
|
* permission to view the page.
|
|
133
138
|
*
|
|
134
|
-
* @path
|
|
139
|
+
* @path POST `/pages/{id}/classification-level/reset`
|
|
135
140
|
* @scopes-current write:page:confluence
|
|
136
141
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-reset-post
|
|
142
|
+
* @param params
|
|
137
143
|
*/
|
|
138
144
|
postPageClassificationLevel: ({ id, requestBody, }: {
|
|
139
145
|
/** The ID of the page for which classification level should be updated. */
|
|
@@ -154,9 +160,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
154
160
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
155
161
|
* permission to edit the blog post.
|
|
156
162
|
*
|
|
157
|
-
* @path
|
|
163
|
+
* @path PUT `/blogposts/{id}/classification-level`
|
|
158
164
|
* @scopes-current write:page:confluence
|
|
159
165
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-put
|
|
166
|
+
* @param params
|
|
160
167
|
*/
|
|
161
168
|
putBlogPostClassificationLevel: ({ id, requestBody, }: {
|
|
162
169
|
/** The ID of the blog post for which classification level should be updated. */
|
|
@@ -179,9 +186,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
179
186
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
180
187
|
* permission to edit the page.
|
|
181
188
|
*
|
|
182
|
-
* @path
|
|
189
|
+
* @path PUT `/pages/{id}/classification-level`
|
|
183
190
|
* @scopes-current write:page:confluence
|
|
184
191
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-put
|
|
192
|
+
* @param params
|
|
185
193
|
*/
|
|
186
194
|
putPageClassificationLevel: ({ id, requestBody, }: {
|
|
187
195
|
/** The ID of the page for which classification level should be updated. */
|
|
@@ -204,9 +212,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
204
212
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
205
213
|
* 'Admin' permission for the space.
|
|
206
214
|
*
|
|
207
|
-
* @path
|
|
215
|
+
* @path PUT `/spaces/{id}/classification-level/default`
|
|
208
216
|
* @scopes-current read:space:confluence, write:space:confluence
|
|
209
217
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-put
|
|
218
|
+
* @param params
|
|
210
219
|
*/
|
|
211
220
|
putSpaceDefaultClassificationLevel: ({ id, requestBody, }: {
|
|
212
221
|
/** The ID of the space for which default classification level should be updated. */
|
|
@@ -5,8 +5,8 @@ exports.ClassificationLevelService = void 0;
|
|
|
5
5
|
// This file is generated by "api-typescript-generator".
|
|
6
6
|
// To update this file run "yarn build:openapi".
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
|
-
const commonHttpClient = require("
|
|
9
|
-
const CommonHttpService_1 = require("
|
|
8
|
+
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
10
10
|
const classificationLevel_1 = require("../models/classificationLevel");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level */
|
|
@@ -22,9 +22,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
22
22
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
23
23
|
* 'Admin' permission for the space.
|
|
24
24
|
*
|
|
25
|
-
* @path
|
|
25
|
+
* @path DELETE `/spaces/{id}/classification-level/default`
|
|
26
26
|
* @scopes-current read:space:confluence, write:space:confluence
|
|
27
27
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-delete
|
|
28
|
+
* @param params
|
|
28
29
|
*/
|
|
29
30
|
this.deleteSpaceDefaultClassificationLevel = ({ id, }) => {
|
|
30
31
|
return this.getClientInstance()
|
|
@@ -49,9 +50,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
49
50
|
* level for a draft.
|
|
50
51
|
*
|
|
51
52
|
* @returns Returned if the requested classification level for a blog post is returned.
|
|
52
|
-
* @path
|
|
53
|
+
* @path GET `/blogposts/{id}/classification-level`
|
|
53
54
|
* @scopes-current read:page:confluence, write:page:confluence
|
|
54
55
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-get
|
|
56
|
+
* @param params
|
|
55
57
|
*/
|
|
56
58
|
this.getBlogPostClassificationLevel = ({ id, status, }) => {
|
|
57
59
|
return this.getClientInstance()
|
|
@@ -83,7 +85,7 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
83
85
|
* 'Permission to access the Confluence site ('Can use' global permission).
|
|
84
86
|
*
|
|
85
87
|
* @returns Returned if classifications levels are returned.
|
|
86
|
-
* @path
|
|
88
|
+
* @path GET `/classification-levels`
|
|
87
89
|
* @scopes-current read:configuration:confluence
|
|
88
90
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-classification-levels-get
|
|
89
91
|
*/
|
|
@@ -114,9 +116,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
114
116
|
* for a draft.
|
|
115
117
|
*
|
|
116
118
|
* @returns Returned if the requested classification level for a page is returned.
|
|
117
|
-
* @path
|
|
119
|
+
* @path GET `/pages/{id}/classification-level`
|
|
118
120
|
* @scopes-current read:page:confluence, write:page:confluence
|
|
119
121
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-get
|
|
122
|
+
* @param params
|
|
120
123
|
*/
|
|
121
124
|
this.getPageClassificationLevel = ({ id, status, }) => {
|
|
122
125
|
return this.getClientInstance()
|
|
@@ -149,9 +152,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
149
152
|
* permission to view the space.
|
|
150
153
|
*
|
|
151
154
|
* @returns Returned if the requested default classification level for a space is returned.
|
|
152
|
-
* @path
|
|
155
|
+
* @path GET `/spaces/{id}/classification-level/default`
|
|
153
156
|
* @scopes-current read:space:confluence
|
|
154
157
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-get
|
|
158
|
+
* @param params
|
|
155
159
|
*/
|
|
156
160
|
this.getSpaceDefaultClassificationLevel = ({ id, }) => {
|
|
157
161
|
return this.getClientInstance()
|
|
@@ -182,9 +186,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
182
186
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
183
187
|
* permission to view the blog post.
|
|
184
188
|
*
|
|
185
|
-
* @path
|
|
189
|
+
* @path POST `/blogposts/{id}/classification-level/reset`
|
|
186
190
|
* @scopes-current write:page:confluence
|
|
187
191
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-reset-post
|
|
192
|
+
* @param params
|
|
188
193
|
*/
|
|
189
194
|
this.postBlogPostClassificationLevel = ({ id, requestBody, }) => {
|
|
190
195
|
return this.getClientInstance()
|
|
@@ -212,9 +217,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
212
217
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
213
218
|
* permission to view the page.
|
|
214
219
|
*
|
|
215
|
-
* @path
|
|
220
|
+
* @path POST `/pages/{id}/classification-level/reset`
|
|
216
221
|
* @scopes-current write:page:confluence
|
|
217
222
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-reset-post
|
|
223
|
+
* @param params
|
|
218
224
|
*/
|
|
219
225
|
this.postPageClassificationLevel = ({ id, requestBody, }) => {
|
|
220
226
|
return this.getClientInstance()
|
|
@@ -240,9 +246,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
240
246
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
241
247
|
* permission to edit the blog post.
|
|
242
248
|
*
|
|
243
|
-
* @path
|
|
249
|
+
* @path PUT `/blogposts/{id}/classification-level`
|
|
244
250
|
* @scopes-current write:page:confluence
|
|
245
251
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-put
|
|
252
|
+
* @param params
|
|
246
253
|
*/
|
|
247
254
|
this.putBlogPostClassificationLevel = ({ id, requestBody, }) => {
|
|
248
255
|
return this.getClientInstance()
|
|
@@ -268,9 +275,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
268
275
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
269
276
|
* permission to edit the page.
|
|
270
277
|
*
|
|
271
|
-
* @path
|
|
278
|
+
* @path PUT `/pages/{id}/classification-level`
|
|
272
279
|
* @scopes-current write:page:confluence
|
|
273
280
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-put
|
|
281
|
+
* @param params
|
|
274
282
|
*/
|
|
275
283
|
this.putPageClassificationLevel = ({ id, requestBody, }) => {
|
|
276
284
|
return this.getClientInstance()
|
|
@@ -296,9 +304,10 @@ class ClassificationLevelService extends CommonHttpService_1.CommonHttpService {
|
|
|
296
304
|
* 'Permission to access the Confluence site ('Can use' global permission) and
|
|
297
305
|
* 'Admin' permission for the space.
|
|
298
306
|
*
|
|
299
|
-
* @path
|
|
307
|
+
* @path PUT `/spaces/{id}/classification-level/default`
|
|
300
308
|
* @scopes-current read:space:confluence, write:space:confluence
|
|
301
309
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-put
|
|
310
|
+
* @param params
|
|
302
311
|
*/
|
|
303
312
|
this.putSpaceDefaultClassificationLevel = ({ id, requestBody, }) => {
|
|
304
313
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassificationLevelService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/ClassificationLevelService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"ClassificationLevelService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/ClassificationLevelService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,uEAGuC;AACvC,wEAAqE;AACrE,mGAAmG;AACnG,MAAa,0BAA2B,SAAQ,qCAAiB;IAAjE;;QACE;;;;;;;;;;;;;WAaG;QACH,0CAAqC,GAAG,CAAC,EACvC,EAAE,GAIH,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,2CAA2C;gBACjD,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE;oBACV,EAAE;iBACH;aACF,CAAC;iBACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;WAgBG;QACH,mCAA8B,GAAG,CAAC,EAChC,EAAE,EACF,MAAM,GAMP,EAAgC,EAAE;YACjC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,sCAAsC;gBAC5C,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;iBACP;aACF,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;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,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,qBAAqB,CAAC;SAC1D,CAAC;aACD,QAAQ,CACP,wEAAwE,CACzE,CACJ,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,kEAA4C;SAC7C,CAAC,CAAC;IACL,CAAC;CACF;AAzfD,gEAyfC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type AttachmentCommentModel, type BlogPostCommentModel, type BlogPostInlineCommentModel, type ChildrenCommentModel, type CommentSortOrder, type CreateFooterCommentModel, type CreateInlineCommentModel, type CustomContentCommentModel, type FooterCommentModel, type InlineCommentChildrenModel, type InlineCommentModel, type PageCommentModel, type PageInlineCommentModel, type UpdateFooterCommentModel, type UpdateInlineCommentModel } from "../models/comment";
|
|
3
3
|
import { type MultiEntityLinks, type PrimaryBodyRepresentation, type PrimaryBodyRepresentationSingle } from "../models/common";
|
|
4
4
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment */
|
|
@@ -19,9 +19,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
19
19
|
* space. Permission to create comments in the space.
|
|
20
20
|
*
|
|
21
21
|
* @returns Returned if the footer comment is created.
|
|
22
|
-
* @path
|
|
22
|
+
* @path POST `/footer-comments`
|
|
23
23
|
* @scopes-current write:comment:confluence
|
|
24
24
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-post
|
|
25
|
+
* @param params
|
|
25
26
|
*/
|
|
26
27
|
createFooterComment: ({ createFooterCommentModel, }: {
|
|
27
28
|
/** The footer comment to be created */
|
|
@@ -50,9 +51,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
50
51
|
* space. Permission to create comments in the space.
|
|
51
52
|
*
|
|
52
53
|
* @returns Returned if the inline comment is created.
|
|
53
|
-
* @path
|
|
54
|
+
* @path POST `/inline-comments`
|
|
54
55
|
* @scopes-current write:comment:confluence
|
|
55
56
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-post
|
|
57
|
+
* @param params
|
|
56
58
|
*/
|
|
57
59
|
createInlineComment: ({ createInlineCommentModel, }: {
|
|
58
60
|
/** The inline comment to be created */
|
|
@@ -74,9 +76,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
74
76
|
* Permission to view the content of the page or blogpost and its corresponding
|
|
75
77
|
* space. Permission to delete comments in the space.
|
|
76
78
|
*
|
|
77
|
-
* @path
|
|
79
|
+
* @path DELETE `/footer-comments/{comment-id}`
|
|
78
80
|
* @scopes-current delete:comment:confluence
|
|
79
81
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-delete
|
|
82
|
+
* @param params
|
|
80
83
|
*/
|
|
81
84
|
deleteFooterComment: ({ commentId, }: {
|
|
82
85
|
/** The ID of the comment to be retrieved. */
|
|
@@ -89,9 +92,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
89
92
|
* Permission to view the content of the page or blogpost and its corresponding
|
|
90
93
|
* space. Permission to delete comments in the space.
|
|
91
94
|
*
|
|
92
|
-
* @path
|
|
95
|
+
* @path DELETE `/inline-comments/{comment-id}`
|
|
93
96
|
* @scopes-current delete:comment:confluence
|
|
94
97
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-delete
|
|
98
|
+
* @param params
|
|
95
99
|
*/
|
|
96
100
|
deleteInlineComment: ({ commentId, }: {
|
|
97
101
|
/** The ID of the comment to be deleted. */
|
|
@@ -107,9 +111,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
107
111
|
* Permission to view the attachment and its corresponding containers.
|
|
108
112
|
*
|
|
109
113
|
* @returns Returned if the attachment comments were successfully retrieved
|
|
110
|
-
* @path
|
|
114
|
+
* @path GET `/attachments/{id}/footer-comments`
|
|
111
115
|
* @scopes-current read:comment:confluence
|
|
112
116
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-attachments-id-footer-comments-get
|
|
117
|
+
* @param params
|
|
113
118
|
*/
|
|
114
119
|
getAttachmentComments: ({ id, bodyFormat, cursor, limit, sort, version, }: {
|
|
115
120
|
/** The ID of the attachment for which comments should be returned. */
|
|
@@ -154,9 +159,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
154
159
|
* Permission to view the content of the blog post and its corresponding space.
|
|
155
160
|
*
|
|
156
161
|
* @returns Returned if the requested footer comments are returned.
|
|
157
|
-
* @path
|
|
162
|
+
* @path GET `/blogposts/{id}/footer-comments`
|
|
158
163
|
* @scopes-current read:comment:confluence
|
|
159
164
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-blogposts-id-footer-comments-get
|
|
165
|
+
* @param params
|
|
160
166
|
*/
|
|
161
167
|
getBlogPostFooterComments: ({ id, bodyFormat, sort, cursor, limit, }: {
|
|
162
168
|
/** The ID of the blog post for which footer comments should be returned. */
|
|
@@ -196,9 +202,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
196
202
|
* Permission to view the content of the blog post and its corresponding space.
|
|
197
203
|
*
|
|
198
204
|
* @returns Returned if the requested inline comments are returned.
|
|
199
|
-
* @path
|
|
205
|
+
* @path GET `/blogposts/{id}/inline-comments`
|
|
200
206
|
* @scopes-current read:comment:confluence
|
|
201
207
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-blogposts-id-inline-comments-get
|
|
208
|
+
* @param params
|
|
202
209
|
*/
|
|
203
210
|
getBlogPostInlineComments: ({ id, bodyFormat, sort, cursor, limit, }: {
|
|
204
211
|
/** The ID of the blog post for which inline comments should be returned. */
|
|
@@ -239,9 +246,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
239
246
|
* Permission to view the custom content and its corresponding containers.
|
|
240
247
|
*
|
|
241
248
|
* @returns Returned if the custom content comments were successfully retrieved
|
|
242
|
-
* @path
|
|
249
|
+
* @path GET `/custom-content/{id}/footer-comments`
|
|
243
250
|
* @scopes-current read:comment:confluence
|
|
244
251
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-custom-content-id-footer-comments-get
|
|
252
|
+
* @param params
|
|
245
253
|
*/
|
|
246
254
|
getCustomContentComments: ({ id, bodyFormat, cursor, limit, sort, }: {
|
|
247
255
|
/** The ID of the custom content for which comments should be returned. */
|
|
@@ -279,9 +287,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
279
287
|
* Permission to view the content of the container and its corresponding space.
|
|
280
288
|
*
|
|
281
289
|
* @returns Returned if the footer comment is successfully retrieved.
|
|
282
|
-
* @path
|
|
290
|
+
* @path GET `/footer-comments/{comment-id}`
|
|
283
291
|
* @scopes-current read:comment:confluence
|
|
284
292
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-get
|
|
293
|
+
* @param params
|
|
285
294
|
*/
|
|
286
295
|
getFooterCommentById: ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, }: {
|
|
287
296
|
/** The ID of the comment to be retrieved. */
|
|
@@ -354,9 +363,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
354
363
|
* Permission to view the content of the page and its corresponding space.
|
|
355
364
|
*
|
|
356
365
|
* @returns Returned if the requested footer comments are returned.
|
|
357
|
-
* @path
|
|
366
|
+
* @path GET `/footer-comments/{id}/children`
|
|
358
367
|
* @scopes-current read:comment:confluence
|
|
359
368
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-id-children-get
|
|
369
|
+
* @param params
|
|
360
370
|
*/
|
|
361
371
|
getFooterCommentChildren: ({ id, bodyFormat, sort, cursor, limit, }: {
|
|
362
372
|
/**
|
|
@@ -399,9 +409,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
399
409
|
* Permission to view the content of the container and its corresponding space.
|
|
400
410
|
*
|
|
401
411
|
* @returns Returned if the requested footer comments are returned.
|
|
402
|
-
* @path
|
|
412
|
+
* @path GET `/footer-comments`
|
|
403
413
|
* @scopes-current read:comment:confluence
|
|
404
414
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-get
|
|
415
|
+
* @param params
|
|
405
416
|
*/
|
|
406
417
|
getFooterComments: ({ bodyFormat, sort, cursor, limit, }?: {
|
|
407
418
|
/**
|
|
@@ -438,9 +449,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
438
449
|
* space.
|
|
439
450
|
*
|
|
440
451
|
* @returns Returned if the inline comment is successfully retrieved.
|
|
441
|
-
* @path
|
|
452
|
+
* @path GET `/inline-comments/{comment-id}`
|
|
442
453
|
* @scopes-current read:comment:confluence
|
|
443
454
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-get
|
|
455
|
+
* @param params
|
|
444
456
|
*/
|
|
445
457
|
getInlineCommentById: ({ commentId, bodyFormat, version, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, }: {
|
|
446
458
|
/** The ID of the comment to be retrieved. */
|
|
@@ -513,9 +525,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
513
525
|
* Permission to view the content of the page and its corresponding space.
|
|
514
526
|
*
|
|
515
527
|
* @returns Returned if the requested footer comments are returned.
|
|
516
|
-
* @path
|
|
528
|
+
* @path GET `/inline-comments/{id}/children`
|
|
517
529
|
* @scopes-current read:comment:confluence
|
|
518
530
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-id-children-get
|
|
531
|
+
* @param params
|
|
519
532
|
*/
|
|
520
533
|
getInlineCommentChildren: ({ id, bodyFormat, sort, cursor, limit, }: {
|
|
521
534
|
/**
|
|
@@ -558,9 +571,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
558
571
|
* Permission to view the content of the page and its corresponding space.
|
|
559
572
|
*
|
|
560
573
|
* @returns Returned if the requested inline comments are returned.
|
|
561
|
-
* @path
|
|
574
|
+
* @path GET `/inline-comments`
|
|
562
575
|
* @scopes-current read:comment:confluence
|
|
563
576
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-get
|
|
577
|
+
* @param params
|
|
564
578
|
*/
|
|
565
579
|
getInlineComments: ({ bodyFormat, sort, cursor, limit, }?: {
|
|
566
580
|
/**
|
|
@@ -598,9 +612,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
598
612
|
* Permission to view the content of the page and its corresponding space.
|
|
599
613
|
*
|
|
600
614
|
* @returns Returned if the requested footer comments are returned.
|
|
601
|
-
* @path
|
|
615
|
+
* @path GET `/pages/{id}/footer-comments`
|
|
602
616
|
* @scopes-current read:comment:confluence
|
|
603
617
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-pages-id-footer-comments-get
|
|
618
|
+
* @param params
|
|
604
619
|
*/
|
|
605
620
|
getPageFooterComments: ({ id, bodyFormat, sort, cursor, limit, }: {
|
|
606
621
|
/** The ID of the page for which footer comments should be returned. */
|
|
@@ -640,9 +655,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
640
655
|
* Permission to view the content of the page and its corresponding space.
|
|
641
656
|
*
|
|
642
657
|
* @returns Returned if the requested inline comments are returned.
|
|
643
|
-
* @path
|
|
658
|
+
* @path GET `/pages/{id}/inline-comments`
|
|
644
659
|
* @scopes-current read:comment:confluence
|
|
645
660
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-pages-id-inline-comments-get
|
|
661
|
+
* @param params
|
|
646
662
|
*/
|
|
647
663
|
getPageInlineComments: ({ id, bodyFormat, sort, cursor, limit, }: {
|
|
648
664
|
/** The ID of the page for which inline comments should be returned. */
|
|
@@ -681,9 +697,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
681
697
|
* space. Permission to create comments in the space.
|
|
682
698
|
*
|
|
683
699
|
* @returns Returned if the footer comment is updated successfully
|
|
684
|
-
* @path
|
|
700
|
+
* @path PUT `/footer-comments/{comment-id}`
|
|
685
701
|
* @scopes-current write:comment:confluence
|
|
686
702
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-footer-comments-comment-id-put
|
|
703
|
+
* @param params
|
|
687
704
|
*/
|
|
688
705
|
updateFooterComment: ({ commentId, requestBody, }: {
|
|
689
706
|
/** The ID of the comment to be retrieved. */
|
|
@@ -709,9 +726,10 @@ export declare class CommentService extends CommonHttpService {
|
|
|
709
726
|
* space. Permission to create comments in the space.
|
|
710
727
|
*
|
|
711
728
|
* @returns Returned if the inline comment is updated successfully.
|
|
712
|
-
* @path
|
|
729
|
+
* @path PUT `/inline-comments/{comment-id}`
|
|
713
730
|
* @scopes-current write:comment:confluence
|
|
714
731
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-comment#api-inline-comments-comment-id-put
|
|
732
|
+
* @param params
|
|
715
733
|
*/
|
|
716
734
|
updateInlineComment: ({ commentId, updateInlineCommentModel, }: {
|
|
717
735
|
/** The ID of the comment to be retrieved. */
|