@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 Content, type ContentArray } from "../models/common";
|
|
3
3
|
import type { AttachmentPropertiesUpdateBody } from "../models/contentAttachments";
|
|
4
4
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments */
|
|
@@ -43,10 +43,11 @@ export declare class ContentAttachmentsService extends CommonHttpService {
|
|
|
43
43
|
* Permission to update the content.
|
|
44
44
|
*
|
|
45
45
|
* @returns Returned if the attachments were added to the content.
|
|
46
|
-
* @path
|
|
46
|
+
* @path POST `/wiki/rest/api/content/{id}/child/attachment`
|
|
47
47
|
* @scopes-current write:confluence-file
|
|
48
48
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
49
49
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-post
|
|
50
|
+
* @param params
|
|
50
51
|
*/
|
|
51
52
|
createAttachment: ({ id, status, requestBody, }: {
|
|
52
53
|
/** The ID of the content to add the attachment to. */
|
|
@@ -96,10 +97,11 @@ export declare class ContentAttachmentsService extends CommonHttpService {
|
|
|
96
97
|
* Permission to update the content.
|
|
97
98
|
*
|
|
98
99
|
* @returns Returned if the attachments were added to the content.
|
|
99
|
-
* @path
|
|
100
|
+
* @path PUT `/wiki/rest/api/content/{id}/child/attachment`
|
|
100
101
|
* @scopes-current write:confluence-file
|
|
101
102
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
102
103
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-put
|
|
104
|
+
* @param params
|
|
103
105
|
*/
|
|
104
106
|
createOrUpdateAttachments: ({ id, status, requestBody, }: {
|
|
105
107
|
/** The ID of the content to add the attachment to. */
|
|
@@ -114,10 +116,11 @@ export declare class ContentAttachmentsService extends CommonHttpService {
|
|
|
114
116
|
/**
|
|
115
117
|
* Redirects the client to a URL that serves an attachment's binary data.
|
|
116
118
|
*
|
|
117
|
-
* @path
|
|
119
|
+
* @path GET `/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/download`
|
|
118
120
|
* @scopes-current readonly:content.attachment:confluence
|
|
119
121
|
* @scopes-beta read:attachment:confluence
|
|
120
122
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-download-get
|
|
123
|
+
* @param params
|
|
121
124
|
*/
|
|
122
125
|
downloadAttatchment: ({ id, attachmentId, version, }: {
|
|
123
126
|
/** The ID of the content that the attachment is attached to. */
|
|
@@ -144,10 +147,11 @@ export declare class ContentAttachmentsService extends CommonHttpService {
|
|
|
144
147
|
*
|
|
145
148
|
* @deprecated
|
|
146
149
|
* @returns Returned if the requested attachments are returned.
|
|
147
|
-
* @path
|
|
150
|
+
* @path GET `/wiki/rest/api/content/{id}/child/attachment`
|
|
148
151
|
* @scopes-current read:confluence-content.summary
|
|
149
152
|
* @scopes-beta read:content-details:confluence
|
|
150
153
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-get
|
|
154
|
+
* @param params
|
|
151
155
|
*/
|
|
152
156
|
getAttachments: ({ id, expand, start, limit, filename, mediaType, }: {
|
|
153
157
|
/** The ID of the content to be queried for its attachments. */
|
|
@@ -302,10 +306,11 @@ export declare class ContentAttachmentsService extends CommonHttpService {
|
|
|
302
306
|
* Permission to update the content.
|
|
303
307
|
*
|
|
304
308
|
* @returns Returned if the attachment is updated.
|
|
305
|
-
* @path
|
|
309
|
+
* @path POST `/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/data`
|
|
306
310
|
* @scopes-current write:confluence-file
|
|
307
311
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
308
312
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-data-post
|
|
313
|
+
* @param params
|
|
309
314
|
*/
|
|
310
315
|
updateAttachmentData: ({ id, attachmentId, requestBody, }: {
|
|
311
316
|
/** The ID of the content that the attachment is attached to. */
|
|
@@ -322,10 +327,11 @@ export declare class ContentAttachmentsService extends CommonHttpService {
|
|
|
322
327
|
* Permission to update the content.
|
|
323
328
|
*
|
|
324
329
|
* @returns Returned if the attachment is updated.
|
|
325
|
-
* @path
|
|
330
|
+
* @path PUT `/wiki/rest/api/content/{id}/child/attachment/{attachmentId}`
|
|
326
331
|
* @scopes-current write:confluence-file, write:confluence-props
|
|
327
332
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
328
333
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-put
|
|
334
|
+
* @param params
|
|
329
335
|
*/
|
|
330
336
|
updateAttachmentProperties: ({ id, attachmentId, attachmentPropertiesUpdateBody, }: {
|
|
331
337
|
/** The ID of the content that the attachment is attached to. */
|
|
@@ -5,8 +5,8 @@ exports.ContentAttachmentsService = 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 common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments */
|
|
@@ -53,10 +53,11 @@ class ContentAttachmentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
53
53
|
* Permission to update the content.
|
|
54
54
|
*
|
|
55
55
|
* @returns Returned if the attachments were added to the content.
|
|
56
|
-
* @path
|
|
56
|
+
* @path POST `/wiki/rest/api/content/{id}/child/attachment`
|
|
57
57
|
* @scopes-current write:confluence-file
|
|
58
58
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
59
59
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-post
|
|
60
|
+
* @param params
|
|
60
61
|
*/
|
|
61
62
|
this.createAttachment = ({ id, status, requestBody, }) => {
|
|
62
63
|
return this.getClientInstance()
|
|
@@ -124,10 +125,11 @@ class ContentAttachmentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
124
125
|
* Permission to update the content.
|
|
125
126
|
*
|
|
126
127
|
* @returns Returned if the attachments were added to the content.
|
|
127
|
-
* @path
|
|
128
|
+
* @path PUT `/wiki/rest/api/content/{id}/child/attachment`
|
|
128
129
|
* @scopes-current write:confluence-file
|
|
129
130
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
130
131
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-put
|
|
132
|
+
* @param params
|
|
131
133
|
*/
|
|
132
134
|
this.createOrUpdateAttachments = ({ id, status, requestBody, }) => {
|
|
133
135
|
return this.getClientInstance()
|
|
@@ -157,10 +159,11 @@ class ContentAttachmentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
157
159
|
/**
|
|
158
160
|
* Redirects the client to a URL that serves an attachment's binary data.
|
|
159
161
|
*
|
|
160
|
-
* @path
|
|
162
|
+
* @path GET `/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/download`
|
|
161
163
|
* @scopes-current readonly:content.attachment:confluence
|
|
162
164
|
* @scopes-beta read:attachment:confluence
|
|
163
165
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-download-get
|
|
166
|
+
* @param params
|
|
164
167
|
*/
|
|
165
168
|
this.downloadAttatchment = ({ id, attachmentId, version, }) => {
|
|
166
169
|
return this.getClientInstance()
|
|
@@ -191,10 +194,11 @@ class ContentAttachmentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
191
194
|
*
|
|
192
195
|
* @deprecated
|
|
193
196
|
* @returns Returned if the requested attachments are returned.
|
|
194
|
-
* @path
|
|
197
|
+
* @path GET `/wiki/rest/api/content/{id}/child/attachment`
|
|
195
198
|
* @scopes-current read:confluence-content.summary
|
|
196
199
|
* @scopes-beta read:content-details:confluence
|
|
197
200
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-get
|
|
201
|
+
* @param params
|
|
198
202
|
*/
|
|
199
203
|
this.getAttachments = ({ id, expand, start, limit, filename, mediaType, }) => {
|
|
200
204
|
return this.getClientInstance()
|
|
@@ -264,10 +268,11 @@ class ContentAttachmentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
264
268
|
* Permission to update the content.
|
|
265
269
|
*
|
|
266
270
|
* @returns Returned if the attachment is updated.
|
|
267
|
-
* @path
|
|
271
|
+
* @path POST `/wiki/rest/api/content/{id}/child/attachment/{attachmentId}/data`
|
|
268
272
|
* @scopes-current write:confluence-file
|
|
269
273
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
270
274
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-data-post
|
|
275
|
+
* @param params
|
|
271
276
|
*/
|
|
272
277
|
this.updateAttachmentData = ({ id, attachmentId, requestBody, }) => {
|
|
273
278
|
return this.getClientInstance()
|
|
@@ -300,10 +305,11 @@ class ContentAttachmentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
300
305
|
* Permission to update the content.
|
|
301
306
|
*
|
|
302
307
|
* @returns Returned if the attachment is updated.
|
|
303
|
-
* @path
|
|
308
|
+
* @path PUT `/wiki/rest/api/content/{id}/child/attachment/{attachmentId}`
|
|
304
309
|
* @scopes-current write:confluence-file, write:confluence-props
|
|
305
310
|
* @scopes-beta read:content-details:confluence, write:attachment:confluence
|
|
306
311
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-attachments#api-wiki-rest-api-content-id-child-attachment-attachmentid-put
|
|
312
|
+
* @param params
|
|
307
313
|
*/
|
|
308
314
|
this.updateAttachmentProperties = ({ id, attachmentId, attachmentPropertiesUpdateBody, }) => {
|
|
309
315
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentAttachmentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentAttachmentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"ContentAttachmentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentAttachmentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAI0B;AAE1B,wEAAqE;AACrE,kGAAkG;AAClG,MAAa,yBAA0B,SAAQ,qCAAiB;IAAhE;;QACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA6CG;QACH,qBAAgB,GAAG,CAAC,EAClB,EAAE,EACF,MAAM,EACN,WAAW,GAOZ,EAAyB,EAAE;YAC1B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,8CAA8C;gBACpD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;iBACP;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,qBAAqB;iBACtC;gBACD,IAAI,EAAE,WAAW;aAClB,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;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CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AArmBD,8DAqmBC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type AsyncId, type ContentBody, type ContentBodyCreate } from "../models/common";
|
|
3
3
|
import { type AsyncContentBody } from "../models/contentBody";
|
|
4
4
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body */
|
|
@@ -19,12 +19,12 @@ export declare class ContentBodyService extends CommonHttpService {
|
|
|
19
19
|
* If request specifies 'contentIdContext', 'View' permission for the space, and
|
|
20
20
|
* permission to view the content.
|
|
21
21
|
*
|
|
22
|
-
* @returns Returned if the content is added to the messaging queue for conversion. This id
|
|
23
|
-
*
|
|
24
|
-
* @path {POST} /wiki/rest/api/contentbody/convert/async/{to}
|
|
22
|
+
* @returns Returned if the content is added to the messaging queue for conversion. This id will be available for 5 minutes after the conversion is complete.
|
|
23
|
+
* @path POST `/wiki/rest/api/contentbody/convert/async/{to}`
|
|
25
24
|
* @scopes-current read:confluence-content.all
|
|
26
25
|
* @scopes-beta read:content.metadata:confluence
|
|
27
26
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-to-post
|
|
27
|
+
* @param params
|
|
28
28
|
*/
|
|
29
29
|
asyncConvertContentBodyRequest: ({ to, expand, spaceKeyContext, contentIdContext, allowCache, embeddedContentRender, contentBodyCreate, }: {
|
|
30
30
|
/** The name of the target format for the content body. */
|
|
@@ -125,10 +125,11 @@ export declare class ContentBodyService extends CommonHttpService {
|
|
|
125
125
|
* permission to view the content.
|
|
126
126
|
*
|
|
127
127
|
* @returns Returned if successfully found an async conversion task associated with the id.
|
|
128
|
-
* @path
|
|
128
|
+
* @path GET `/wiki/rest/api/contentbody/convert/async/{id}`
|
|
129
129
|
* @scopes-current read:confluence-content.all
|
|
130
130
|
* @scopes-beta read:content.metadata:confluence
|
|
131
131
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-id-get
|
|
132
|
+
* @param params
|
|
132
133
|
*/
|
|
133
134
|
asyncConvertContentBodyResponse: ({ id, }: {
|
|
134
135
|
/** The asyncId of the macro task to get the converted body. */
|
|
@@ -150,10 +151,11 @@ export declare class ContentBodyService extends CommonHttpService {
|
|
|
150
151
|
* permission to view the content.
|
|
151
152
|
*
|
|
152
153
|
* @returns Returned if the content is converted.
|
|
153
|
-
* @path
|
|
154
|
+
* @path POST `/wiki/rest/api/contentbody/convert/{to}`
|
|
154
155
|
* @scopes-current read:confluence-content.all
|
|
155
156
|
* @scopes-beta read:content.metadata:confluence
|
|
156
157
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-to-post
|
|
158
|
+
* @param params
|
|
157
159
|
*/
|
|
158
160
|
convertContentBody: ({ to, spaceKeyContext, contentIdContext, embeddedContentRender, expand, contentBodyCreate, }: {
|
|
159
161
|
/** The name of the target format for the content body. */
|
|
@@ -5,8 +5,8 @@ exports.ContentBodyService = 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 common_1 = require("../models/common");
|
|
11
11
|
const contentBody_1 = require("../models/contentBody");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
@@ -30,12 +30,12 @@ class ContentBodyService extends CommonHttpService_1.CommonHttpService {
|
|
|
30
30
|
* If request specifies 'contentIdContext', 'View' permission for the space, and
|
|
31
31
|
* permission to view the content.
|
|
32
32
|
*
|
|
33
|
-
* @returns Returned if the content is added to the messaging queue for conversion. This id
|
|
34
|
-
*
|
|
35
|
-
* @path {POST} /wiki/rest/api/contentbody/convert/async/{to}
|
|
33
|
+
* @returns Returned if the content is added to the messaging queue for conversion. This id will be available for 5 minutes after the conversion is complete.
|
|
34
|
+
* @path POST `/wiki/rest/api/contentbody/convert/async/{to}`
|
|
36
35
|
* @scopes-current read:confluence-content.all
|
|
37
36
|
* @scopes-beta read:content.metadata:confluence
|
|
38
37
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-to-post
|
|
38
|
+
* @param params
|
|
39
39
|
*/
|
|
40
40
|
this.asyncConvertContentBodyRequest = ({ to, expand, spaceKeyContext, contentIdContext, allowCache, embeddedContentRender, contentBodyCreate, }) => {
|
|
41
41
|
return this.getClientInstance()
|
|
@@ -80,10 +80,11 @@ class ContentBodyService extends CommonHttpService_1.CommonHttpService {
|
|
|
80
80
|
* permission to view the content.
|
|
81
81
|
*
|
|
82
82
|
* @returns Returned if successfully found an async conversion task associated with the id.
|
|
83
|
-
* @path
|
|
83
|
+
* @path GET `/wiki/rest/api/contentbody/convert/async/{id}`
|
|
84
84
|
* @scopes-current read:confluence-content.all
|
|
85
85
|
* @scopes-beta read:content.metadata:confluence
|
|
86
86
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-async-id-get
|
|
87
|
+
* @param params
|
|
87
88
|
*/
|
|
88
89
|
this.asyncConvertContentBodyResponse = ({ id, }) => {
|
|
89
90
|
return this.getClientInstance()
|
|
@@ -119,10 +120,11 @@ class ContentBodyService extends CommonHttpService_1.CommonHttpService {
|
|
|
119
120
|
* permission to view the content.
|
|
120
121
|
*
|
|
121
122
|
* @returns Returned if the content is converted.
|
|
122
|
-
* @path
|
|
123
|
+
* @path POST `/wiki/rest/api/contentbody/convert/{to}`
|
|
123
124
|
* @scopes-current read:confluence-content.all
|
|
124
125
|
* @scopes-beta read:content.metadata:confluence
|
|
125
126
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body#api-wiki-rest-api-contentbody-convert-to-post
|
|
127
|
+
* @param params
|
|
126
128
|
*/
|
|
127
129
|
this.convertContentBody = ({ to, spaceKeyContext, contentIdContext, embeddedContentRender, expand, contentBodyCreate, }) => {
|
|
128
130
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBodyService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentBodyService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"ContentBodyService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentBodyService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAK0B;AAC1B,uDAG+B;AAC/B,wEAAqE;AACrE,2FAA2F;AAC3F,MAAa,kBAAmB,SAAQ,qCAAiB;IAAzD;;QACE;;;;;;;;;;;;;;;;;;;;;;WAsBG;QACH,mCAA8B,GAAG,CAAC,EAChC,EAAE,EACF,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,qBAAqB,EACrB,iBAAiB,GAqFlB,EAAoB,EAAE;YACrB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,+CAA+C;gBACrD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;oBACN,eAAe;oBACf,gBAAgB;oBAChB,UAAU;oBACV,qBAAqB;iBACtB;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,iBAAiB;aACxB,CAAC;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,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,SAAS,CAAC;SAC9C,CAAC;aACD,QAAQ,CAAC,4DAA4D,CAAC,CAC1E,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,kDAAoC;SACrC,CAAC,CAAC;IACL,CAAC;CACF;AAtYD,gDAsYC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type Content, type ContentArray, type ContentChildren, type ContentId, type LongTask } from "../models/common";
|
|
3
3
|
import type { CopyPageHierarchyRequest, CopyPageRequest } from "../models/contentChildrenAndDescendants";
|
|
4
4
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants */
|
|
@@ -23,10 +23,11 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
23
23
|
* update the content if copying to an `existing_page`.
|
|
24
24
|
*
|
|
25
25
|
* @returns Returned if the content is copied.
|
|
26
|
-
* @path
|
|
26
|
+
* @path POST `/wiki/rest/api/content/{id}/copy`
|
|
27
27
|
* @scopes-current write:confluence-content
|
|
28
28
|
* @scopes-beta read:content-details:confluence, write:page:confluence
|
|
29
29
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-copy-post
|
|
30
|
+
* @param params
|
|
30
31
|
*/
|
|
31
32
|
copyPage: ({ id, expand, copyPageRequest, }: {
|
|
32
33
|
id: string;
|
|
@@ -141,21 +142,23 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
141
142
|
* copied page titles.
|
|
142
143
|
*
|
|
143
144
|
* Response example:
|
|
144
|
-
*
|
|
145
|
+
* ```
|
|
145
146
|
* {
|
|
146
147
|
* "id" : "1180606",
|
|
147
148
|
* "links" : {
|
|
148
149
|
* "status" : "/rest/api/longtask/1180606"
|
|
149
150
|
* }
|
|
150
151
|
* }
|
|
151
|
-
*
|
|
152
|
+
*
|
|
153
|
+
* ```
|
|
152
154
|
* Use the /longtask/<taskId> REST API to get the copy task status.
|
|
153
155
|
*
|
|
154
156
|
* @returns Returns a full JSON representation of a long running task
|
|
155
|
-
* @path
|
|
157
|
+
* @path POST `/wiki/rest/api/content/{id}/pagehierarchy/copy`
|
|
156
158
|
* @scopes-current write:confluence-content
|
|
157
159
|
* @scopes-beta read:content.metadata:confluence, write:page:confluence
|
|
158
160
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-pagehierarchy-copy-post
|
|
161
|
+
* @param params
|
|
159
162
|
*/
|
|
160
163
|
copyPageHierarchy: ({ id, copyPageHierarchyRequest, }: {
|
|
161
164
|
id: string;
|
|
@@ -197,10 +200,11 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
197
200
|
*
|
|
198
201
|
* @deprecated
|
|
199
202
|
* @returns Returned if the requested content children are returned.
|
|
200
|
-
* @path
|
|
203
|
+
* @path GET `/wiki/rest/api/content/{id}/child`
|
|
201
204
|
* @scopes-current read:confluence-content.summary
|
|
202
205
|
* @scopes-beta read:content-details:confluence
|
|
203
206
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-get
|
|
207
|
+
* @param params
|
|
204
208
|
*/
|
|
205
209
|
getContentChildren: ({ id, expand, parentVersion, }: {
|
|
206
210
|
/** The ID of the content to be queried for its children. */
|
|
@@ -261,10 +265,11 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
261
265
|
*
|
|
262
266
|
* @deprecated
|
|
263
267
|
* @returns Returned if the requested content is returned.
|
|
264
|
-
* @path
|
|
268
|
+
* @path GET `/wiki/rest/api/content/{id}/child/{type}`
|
|
265
269
|
* @scopes-current read:confluence-content.summary
|
|
266
270
|
* @scopes-beta read:content-details:confluence
|
|
267
271
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-type-get
|
|
272
|
+
* @param params
|
|
268
273
|
*/
|
|
269
274
|
getContentChildrenByType: ({ id, type, expand, parentVersion, start, limit, }: {
|
|
270
275
|
/** The ID of the content to be queried for its children. */
|
|
@@ -410,10 +415,11 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
410
415
|
* is a page.
|
|
411
416
|
*
|
|
412
417
|
* @returns Returned if the requested descendants are returned.
|
|
413
|
-
* @path
|
|
418
|
+
* @path GET `/wiki/rest/api/content/{id}/descendant`
|
|
414
419
|
* @scopes-current read:confluence-content.summary
|
|
415
420
|
* @scopes-beta read:content-details:confluence
|
|
416
421
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-get
|
|
422
|
+
* @param params
|
|
417
423
|
*/
|
|
418
424
|
getContentDescendants: ({ id, expand, }: {
|
|
419
425
|
/** The ID of the content to be queried for its descendants. */
|
|
@@ -465,10 +471,11 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
465
471
|
* is a page.
|
|
466
472
|
*
|
|
467
473
|
* @returns Returned if the requested content is returned.
|
|
468
|
-
* @path
|
|
474
|
+
* @path GET `/wiki/rest/api/content/{id}/descendant/{type}`
|
|
469
475
|
* @scopes-current read:confluence-content.summary
|
|
470
476
|
* @scopes-beta read:content-details:confluence
|
|
471
477
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-type-get
|
|
478
|
+
* @param params
|
|
472
479
|
*/
|
|
473
480
|
getDescendantsOfType: ({ id, type, depth, expand, start, limit, }: {
|
|
474
481
|
/** The ID of the content to be queried for its descendants. */
|
|
@@ -601,10 +608,11 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
601
608
|
* when the `targetId` is a top-level page.
|
|
602
609
|
*
|
|
603
610
|
* @returns Page was successfully moved
|
|
604
|
-
* @path
|
|
611
|
+
* @path PUT `/wiki/rest/api/content/{pageId}/move/{position}/{targetId}`
|
|
605
612
|
* @scopes-current write:confluence-content
|
|
606
613
|
* @scopes-beta write:page:confluence
|
|
607
614
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-pageid-move-position-targetid-put
|
|
615
|
+
* @param params
|
|
608
616
|
*/
|
|
609
617
|
movePage: ({ pageId, position, targetId, }: {
|
|
610
618
|
/** The ID of the page to be moved */
|
|
@@ -5,8 +5,8 @@ exports.ContentChildrenAndDescendantsService = 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 common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants */
|
|
@@ -33,10 +33,11 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
33
33
|
* update the content if copying to an `existing_page`.
|
|
34
34
|
*
|
|
35
35
|
* @returns Returned if the content is copied.
|
|
36
|
-
* @path
|
|
36
|
+
* @path POST `/wiki/rest/api/content/{id}/copy`
|
|
37
37
|
* @scopes-current write:confluence-content
|
|
38
38
|
* @scopes-beta read:content-details:confluence, write:page:confluence
|
|
39
39
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-copy-post
|
|
40
|
+
* @param params
|
|
40
41
|
*/
|
|
41
42
|
this.copyPage = ({ id, expand, copyPageRequest, }) => {
|
|
42
43
|
return this.getClientInstance()
|
|
@@ -75,21 +76,23 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
75
76
|
* copied page titles.
|
|
76
77
|
*
|
|
77
78
|
* Response example:
|
|
78
|
-
*
|
|
79
|
+
* ```
|
|
79
80
|
* {
|
|
80
81
|
* "id" : "1180606",
|
|
81
82
|
* "links" : {
|
|
82
83
|
* "status" : "/rest/api/longtask/1180606"
|
|
83
84
|
* }
|
|
84
85
|
* }
|
|
85
|
-
*
|
|
86
|
+
*
|
|
87
|
+
* ```
|
|
86
88
|
* Use the /longtask/<taskId> REST API to get the copy task status.
|
|
87
89
|
*
|
|
88
90
|
* @returns Returns a full JSON representation of a long running task
|
|
89
|
-
* @path
|
|
91
|
+
* @path POST `/wiki/rest/api/content/{id}/pagehierarchy/copy`
|
|
90
92
|
* @scopes-current write:confluence-content
|
|
91
93
|
* @scopes-beta read:content.metadata:confluence, write:page:confluence
|
|
92
94
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-pagehierarchy-copy-post
|
|
95
|
+
* @param params
|
|
93
96
|
*/
|
|
94
97
|
this.copyPageHierarchy = ({ id, copyPageHierarchyRequest, }) => {
|
|
95
98
|
return this.getClientInstance()
|
|
@@ -148,10 +151,11 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
148
151
|
*
|
|
149
152
|
* @deprecated
|
|
150
153
|
* @returns Returned if the requested content children are returned.
|
|
151
|
-
* @path
|
|
154
|
+
* @path GET `/wiki/rest/api/content/{id}/child`
|
|
152
155
|
* @scopes-current read:confluence-content.summary
|
|
153
156
|
* @scopes-beta read:content-details:confluence
|
|
154
157
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-get
|
|
158
|
+
* @param params
|
|
155
159
|
*/
|
|
156
160
|
this.getContentChildren = ({ id, expand, parentVersion, }) => {
|
|
157
161
|
return this.getClientInstance()
|
|
@@ -211,10 +215,11 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
211
215
|
*
|
|
212
216
|
* @deprecated
|
|
213
217
|
* @returns Returned if the requested content is returned.
|
|
214
|
-
* @path
|
|
218
|
+
* @path GET `/wiki/rest/api/content/{id}/child/{type}`
|
|
215
219
|
* @scopes-current read:confluence-content.summary
|
|
216
220
|
* @scopes-beta read:content-details:confluence
|
|
217
221
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-type-get
|
|
222
|
+
* @param params
|
|
218
223
|
*/
|
|
219
224
|
this.getContentChildrenByType = ({ id, type, expand, parentVersion, start, limit, }) => {
|
|
220
225
|
return this.getClientInstance()
|
|
@@ -272,10 +277,11 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
272
277
|
* is a page.
|
|
273
278
|
*
|
|
274
279
|
* @returns Returned if the requested descendants are returned.
|
|
275
|
-
* @path
|
|
280
|
+
* @path GET `/wiki/rest/api/content/{id}/descendant`
|
|
276
281
|
* @scopes-current read:confluence-content.summary
|
|
277
282
|
* @scopes-beta read:content-details:confluence
|
|
278
283
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-get
|
|
284
|
+
* @param params
|
|
279
285
|
*/
|
|
280
286
|
this.getContentDescendants = ({ id, expand, }) => {
|
|
281
287
|
return this.getClientInstance()
|
|
@@ -331,10 +337,11 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
331
337
|
* is a page.
|
|
332
338
|
*
|
|
333
339
|
* @returns Returned if the requested content is returned.
|
|
334
|
-
* @path
|
|
340
|
+
* @path GET `/wiki/rest/api/content/{id}/descendant/{type}`
|
|
335
341
|
* @scopes-current read:confluence-content.summary
|
|
336
342
|
* @scopes-beta read:content-details:confluence
|
|
337
343
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-type-get
|
|
344
|
+
* @param params
|
|
338
345
|
*/
|
|
339
346
|
this.getDescendantsOfType = ({ id, type, depth, expand, start, limit, }) => {
|
|
340
347
|
return this.getClientInstance()
|
|
@@ -377,10 +384,11 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
377
384
|
* when the `targetId` is a top-level page.
|
|
378
385
|
*
|
|
379
386
|
* @returns Page was successfully moved
|
|
380
|
-
* @path
|
|
387
|
+
* @path PUT `/wiki/rest/api/content/{pageId}/move/{position}/{targetId}`
|
|
381
388
|
* @scopes-current write:confluence-content
|
|
382
389
|
* @scopes-beta write:page:confluence
|
|
383
390
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-pageid-move-position-targetid-put
|
|
391
|
+
* @param params
|
|
384
392
|
*/
|
|
385
393
|
this.movePage = ({ pageId, position, targetId, }) => {
|
|
386
394
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentChildrenAndDescendantsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentChildrenAndDescendantsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"ContentChildrenAndDescendantsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentChildrenAndDescendantsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAO0B;AAK1B,wEAAqE;AACrE,+GAA+G;AAC/G,MAAa,oCAAqC,SAAQ,qCAAiB;IAA3E;;QACE;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;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Ac,CAAC;SACnD,CAAC;aACD,QAAQ,CACP,oEAAoE,CACrE,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,iEAAiE,EACjE,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,UAAU,CAAC;SAC/C,CAAC;aACD,QAAQ,CACP,iEAAiE,CAClE,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,wDAAwD,EACxD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC;iBACJ,MAAM,CAAC;gBACN,MAAM,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;aAC7D,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,wDAAwD,CAAC,CACtE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAp+BD,oFAo+BC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type ContentArray } from "../models/common";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated
|
|
@@ -21,10 +21,11 @@ export declare class ContentCommentsService extends CommonHttpService {
|
|
|
21
21
|
*
|
|
22
22
|
* @deprecated
|
|
23
23
|
* @returns Returned if the requested comments are returned.
|
|
24
|
-
* @path
|
|
24
|
+
* @path GET `/wiki/rest/api/content/{id}/child/comment`
|
|
25
25
|
* @scopes-current read:confluence-content.summary
|
|
26
26
|
* @scopes-beta read:content-details:confluence
|
|
27
27
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
28
|
+
* @param params
|
|
28
29
|
*/
|
|
29
30
|
getContentComments: ({ id, expand, parentVersion, start, limit, location, depth, }: {
|
|
30
31
|
/** The ID of the content to be queried for its comments. */
|
|
@@ -5,8 +5,8 @@ exports.ContentCommentsService = 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 common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/**
|
|
@@ -32,10 +32,11 @@ class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
32
32
|
*
|
|
33
33
|
* @deprecated
|
|
34
34
|
* @returns Returned if the requested comments are returned.
|
|
35
|
-
* @path
|
|
35
|
+
* @path GET `/wiki/rest/api/content/{id}/child/comment`
|
|
36
36
|
* @scopes-current read:confluence-content.summary
|
|
37
37
|
* @scopes-beta read:content-details:confluence
|
|
38
38
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
39
|
+
* @param params
|
|
39
40
|
*/
|
|
40
41
|
this.getContentComments = ({ id, expand, parentVersion, start, limit, location, depth, }) => {
|
|
41
42
|
return this.getClientInstance()
|