@resolution/confluence-api-client 0.10.0 → 0.11.0
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 +360 -0
- package/lib/openapi/core/CommonHttpClient.d.ts +19 -19
- package/lib/openapi/core/CommonHttpClient.js +148 -233
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/core/CommonHttpService.d.ts +1 -1
- package/lib/openapi/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/core/CommonValidationSchemaStorage.d.ts +4 -4
- package/lib/openapi/core/CommonValidationSchemaStorage.js +2 -4
- package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +3 -3
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/audit.d.ts +2 -2
- package/lib/openapi/v1/models/audit.js +31 -90
- package/lib/openapi/v1/models/audit.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +2 -2
- package/lib/openapi/v1/models/common.js +188 -463
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +2 -2
- package/lib/openapi/v1/models/content.js +205 -491
- package/lib/openapi/v1/models/content.js.map +1 -1
- package/lib/openapi/v1/models/contentAttachments.d.ts +1 -1
- package/lib/openapi/v1/models/contentAttachments.js +8 -19
- package/lib/openapi/v1/models/contentAttachments.js.map +1 -1
- package/lib/openapi/v1/models/contentBody.d.ts +2 -2
- package/lib/openapi/v1/models/contentBody.js +20 -59
- package/lib/openapi/v1/models/contentBody.js.map +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +16 -40
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
- package/lib/openapi/v1/models/contentLabels.d.ts +1 -1
- package/lib/openapi/v1/models/contentLabels.js +2 -7
- package/lib/openapi/v1/models/contentLabels.js.map +1 -1
- package/lib/openapi/v1/models/contentMacroBody.d.ts +1 -1
- package/lib/openapi/v1/models/contentMacroBody.js +4 -10
- package/lib/openapi/v1/models/contentMacroBody.js.map +1 -1
- package/lib/openapi/v1/models/contentPermissions.d.ts +2 -2
- package/lib/openapi/v1/models/contentPermissions.js +10 -22
- package/lib/openapi/v1/models/contentPermissions.js.map +1 -1
- package/lib/openapi/v1/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v1/models/contentProperties.js +25 -71
- package/lib/openapi/v1/models/contentProperties.js.map +1 -1
- package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
- package/lib/openapi/v1/models/contentRestrictions.js +17 -57
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +1 -1
- package/lib/openapi/v1/models/contentStates.js +15 -35
- package/lib/openapi/v1/models/contentStates.js.map +1 -1
- package/lib/openapi/v1/models/contentVersions.d.ts +2 -2
- package/lib/openapi/v1/models/contentVersions.js +9 -20
- package/lib/openapi/v1/models/contentVersions.js.map +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
- package/lib/openapi/v1/models/contentWatches.js +21 -46
- package/lib/openapi/v1/models/contentWatches.js.map +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +1 -1
- package/lib/openapi/v1/models/dynamicModules.js +6 -15
- 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/group.js +6 -15
- package/lib/openapi/v1/models/group.js.map +1 -1
- package/lib/openapi/v1/models/inlineTasks.d.ts +1 -1
- package/lib/openapi/v1/models/inlineTasks.js +10 -22
- package/lib/openapi/v1/models/inlineTasks.js.map +1 -1
- package/lib/openapi/v1/models/labelInfo.d.ts +1 -1
- package/lib/openapi/v1/models/labelInfo.js +11 -27
- package/lib/openapi/v1/models/labelInfo.js.map +1 -1
- package/lib/openapi/v1/models/longRunningTask.d.ts +2 -2
- package/lib/openapi/v1/models/longRunningTask.js +20 -42
- package/lib/openapi/v1/models/longRunningTask.js.map +1 -1
- package/lib/openapi/v1/models/relation.d.ts +2 -2
- package/lib/openapi/v1/models/relation.js +16 -45
- package/lib/openapi/v1/models/relation.js.map +1 -1
- package/lib/openapi/v1/models/search.d.ts +2 -2
- package/lib/openapi/v1/models/search.js +15 -34
- package/lib/openapi/v1/models/search.js.map +1 -1
- package/lib/openapi/v1/models/settings.d.ts +2 -2
- package/lib/openapi/v1/models/settings.js +13 -29
- package/lib/openapi/v1/models/settings.js.map +1 -1
- package/lib/openapi/v1/models/space.d.ts +2 -2
- package/lib/openapi/v1/models/space.js +31 -69
- 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/spacePermissions.js +23 -86
- package/lib/openapi/v1/models/spacePermissions.js.map +1 -1
- package/lib/openapi/v1/models/spaceProperties.d.ts +2 -2
- package/lib/openapi/v1/models/spaceProperties.js +26 -71
- package/lib/openapi/v1/models/spaceProperties.js.map +1 -1
- package/lib/openapi/v1/models/spaceSettings.d.ts +1 -1
- package/lib/openapi/v1/models/spaceSettings.js +3 -9
- package/lib/openapi/v1/models/spaceSettings.js.map +1 -1
- package/lib/openapi/v1/models/template.d.ts +2 -2
- package/lib/openapi/v1/models/template.js +45 -103
- package/lib/openapi/v1/models/template.js.map +1 -1
- package/lib/openapi/v1/models/themes.d.ts +1 -1
- package/lib/openapi/v1/models/themes.js +10 -22
- package/lib/openapi/v1/models/themes.js.map +1 -1
- package/lib/openapi/v1/models/userProperties.d.ts +1 -1
- package/lib/openapi/v1/models/userProperties.js +16 -33
- package/lib/openapi/v1/models/userProperties.js.map +1 -1
- package/lib/openapi/v1/models/users.d.ts +2 -2
- package/lib/openapi/v1/models/users.js +25 -57
- package/lib/openapi/v1/models/users.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +2 -2
- package/lib/openapi/v1/services/AnalyticsService.js +29 -47
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +6 -6
- package/lib/openapi/v1/services/AuditService.js +67 -109
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentAttachmentsService.js +72 -109
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentBodyService.js +67 -105
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +9 -9
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +103 -157
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.js +16 -23
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentLabelsService.js +36 -54
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentMacroBodyService.js +43 -67
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.js +14 -23
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentPropertiesService.js +73 -112
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentRestrictionsService.js +127 -184
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +12 -12
- package/lib/openapi/v1/services/ContentService.js +137 -205
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentStatesService.js +96 -155
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentVersionsService.js +53 -79
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentWatchesService.js +113 -169
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +2 -2
- package/lib/openapi/v1/services/DynamicModulesService.js +24 -37
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +5 -5
- package/lib/openapi/v1/services/ExperimentalService.js +42 -65
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +10 -10
- package/lib/openapi/v1/services/GroupService.js +76 -117
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +4 -4
- package/lib/openapi/v1/services/InlineTasksService.js +36 -59
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +1 -1
- package/lib/openapi/v1/services/LabelInfoService.js +12 -19
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +2 -2
- package/lib/openapi/v1/services/LongRunningTaskService.js +24 -40
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +6 -6
- package/lib/openapi/v1/services/RelationService.js +64 -94
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +2 -2
- package/lib/openapi/v1/services/SearchService.js +29 -43
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +6 -6
- package/lib/openapi/v1/services/SettingsService.js +61 -98
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpacePermissionsService.js +25 -38
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +7 -7
- package/lib/openapi/v1/services/SpacePropertiesService.js +73 -112
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +9 -9
- package/lib/openapi/v1/services/SpaceService.js +108 -169
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +2 -2
- package/lib/openapi/v1/services/SpaceSettingsService.js +24 -38
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +7 -7
- package/lib/openapi/v1/services/TemplateService.js +67 -104
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +5 -5
- package/lib/openapi/v1/services/ThemesService.js +61 -101
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -6
- package/lib/openapi/v1/services/UserPropertiesService.js +42 -64
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +9 -9
- package/lib/openapi/v1/services/UsersService.js +94 -146
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v1/validationSchemaStorage.d.ts +2 -2
- package/lib/openapi/v1/validationSchemaStorage.js +12 -22
- package/lib/openapi/v1/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +1 -1
- 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/ancestors.js +4 -12
- package/lib/openapi/v2/models/ancestors.js.map +1 -1
- package/lib/openapi/v2/models/attachment.d.ts +2 -2
- package/lib/openapi/v2/models/attachment.js +26 -71
- package/lib/openapi/v2/models/attachment.js.map +1 -1
- package/lib/openapi/v2/models/blogPost.d.ts +2 -2
- package/lib/openapi/v2/models/blogPost.js +37 -102
- package/lib/openapi/v2/models/blogPost.js.map +1 -1
- package/lib/openapi/v2/models/children.d.ts +1 -1
- package/lib/openapi/v2/models/children.js +9 -24
- package/lib/openapi/v2/models/children.js.map +1 -1
- package/lib/openapi/v2/models/classificationLevel.d.ts +1 -1
- package/lib/openapi/v2/models/classificationLevel.js +6 -32
- package/lib/openapi/v2/models/classificationLevel.js.map +1 -1
- package/lib/openapi/v2/models/comment.d.ts +2 -2
- package/lib/openapi/v2/models/comment.js +107 -272
- package/lib/openapi/v2/models/comment.js.map +1 -1
- package/lib/openapi/v2/models/common.d.ts +1 -1
- package/lib/openapi/v2/models/common.js +84 -214
- package/lib/openapi/v2/models/common.js.map +1 -1
- package/lib/openapi/v2/models/content.d.ts +1 -1
- package/lib/openapi/v2/models/content.js +3 -21
- package/lib/openapi/v2/models/content.js.map +1 -1
- package/lib/openapi/v2/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v2/models/contentProperties.js +8 -20
- package/lib/openapi/v2/models/contentProperties.js.map +1 -1
- package/lib/openapi/v2/models/customContent.d.ts +2 -2
- package/lib/openapi/v2/models/customContent.js +43 -121
- package/lib/openapi/v2/models/customContent.js.map +1 -1
- package/lib/openapi/v2/models/dataPolicies.d.ts +1 -1
- package/lib/openapi/v2/models/dataPolicies.js +11 -25
- package/lib/openapi/v2/models/dataPolicies.js.map +1 -1
- package/lib/openapi/v2/models/database.d.ts +1 -1
- package/lib/openapi/v2/models/database.js +8 -19
- package/lib/openapi/v2/models/database.js.map +1 -1
- package/lib/openapi/v2/models/eap.d.ts +1 -1
- package/lib/openapi/v2/models/eap.js +0 -3
- package/lib/openapi/v2/models/eap.js.map +1 -1
- package/lib/openapi/v2/models/folder.d.ts +1 -1
- package/lib/openapi/v2/models/folder.js +8 -19
- package/lib/openapi/v2/models/folder.js.map +1 -1
- package/lib/openapi/v2/models/operation.d.ts +1 -1
- package/lib/openapi/v2/models/operation.js +4 -12
- package/lib/openapi/v2/models/operation.js.map +1 -1
- package/lib/openapi/v2/models/page.d.ts +2 -2
- package/lib/openapi/v2/models/page.js +36 -101
- package/lib/openapi/v2/models/page.js.map +1 -1
- package/lib/openapi/v2/models/smartLink.d.ts +1 -1
- package/lib/openapi/v2/models/smartLink.js +8 -19
- package/lib/openapi/v2/models/smartLink.js.map +1 -1
- package/lib/openapi/v2/models/space.d.ts +2 -2
- package/lib/openapi/v2/models/space.js +21 -57
- package/lib/openapi/v2/models/space.js.map +1 -1
- package/lib/openapi/v2/models/spaceProperties.d.ts +1 -1
- package/lib/openapi/v2/models/spaceProperties.js +8 -20
- package/lib/openapi/v2/models/spaceProperties.js.map +1 -1
- package/lib/openapi/v2/models/task.d.ts +1 -1
- package/lib/openapi/v2/models/task.js +7 -16
- package/lib/openapi/v2/models/task.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +1 -1
- package/lib/openapi/v2/models/user.js +7 -20
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/models/version.d.ts +1 -1
- package/lib/openapi/v2/models/version.js +22 -46
- package/lib/openapi/v2/models/version.js.map +1 -1
- package/lib/openapi/v2/models/whiteboard.d.ts +1 -1
- package/lib/openapi/v2/models/whiteboard.js +8 -19
- package/lib/openapi/v2/models/whiteboard.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +5 -5
- package/lib/openapi/v2/services/AncestorsService.js +73 -133
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +8 -8
- package/lib/openapi/v2/services/AttachmentService.js +98 -180
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +9 -9
- package/lib/openapi/v2/services/BlogPostService.js +100 -180
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +2 -2
- package/lib/openapi/v2/services/ChildrenService.js +32 -61
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +15 -15
- package/lib/openapi/v2/services/ClassificationLevelService.js +127 -191
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +20 -20
- package/lib/openapi/v2/services/CommentService.js +250 -454
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +46 -46
- package/lib/openapi/v2/services/ContentPropertiesService.js +496 -820
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +1 -1
- package/lib/openapi/v2/services/ContentService.js +12 -19
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +9 -9
- package/lib/openapi/v2/services/CustomContentService.js +114 -207
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +2 -2
- package/lib/openapi/v2/services/DataPoliciesService.js +25 -48
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +3 -3
- package/lib/openapi/v2/services/DatabaseService.js +37 -63
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/EapService.d.ts +7 -7
- package/lib/openapi/v2/services/EapService.js +89 -165
- package/lib/openapi/v2/services/EapService.js.map +1 -1
- package/lib/openapi/v2/services/FolderService.d.ts +3 -3
- package/lib/openapi/v2/services/FolderService.js +36 -62
- package/lib/openapi/v2/services/FolderService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +7 -7
- package/lib/openapi/v2/services/LabelService.js +105 -196
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +8 -8
- package/lib/openapi/v2/services/LikeService.js +109 -189
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +11 -11
- package/lib/openapi/v2/services/OperationService.js +122 -199
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +9 -9
- package/lib/openapi/v2/services/PageService.js +100 -180
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +3 -3
- package/lib/openapi/v2/services/SmartLinkService.js +36 -62
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +3 -3
- package/lib/openapi/v2/services/SpacePermissionsService.js +30 -56
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePropertiesService.js +56 -92
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceRolesService.d.ts +5 -5
- package/lib/openapi/v2/services/SpaceRolesService.js +60 -111
- package/lib/openapi/v2/services/SpaceRolesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +4 -4
- package/lib/openapi/v2/services/SpaceService.js +47 -87
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +4 -4
- package/lib/openapi/v2/services/TaskService.js +40 -68
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +3 -3
- package/lib/openapi/v2/services/UserService.js +33 -58
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +14 -14
- package/lib/openapi/v2/services/VersionService.js +158 -281
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +3 -3
- package/lib/openapi/v2/services/WhiteboardService.js +37 -63
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/lib/openapi/v2/validationSchemaStorage.d.ts +2 -2
- package/lib/openapi/v2/validationSchemaStorage.js +12 -22
- package/lib/openapi/v2/validationSchemaStorage.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
2
|
+
import { type ContentArray, type Content, type LongTask } from "../models/common";
|
|
3
|
+
import { type ContentCreate, type ContentUpdate, type ContentHistory, type ContentBlueprintDraft } from "../models/content";
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content
|
|
6
6
|
* @category Services
|
|
@@ -28,7 +28,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
28
28
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-archive-post
|
|
29
29
|
* @param params
|
|
30
30
|
*/
|
|
31
|
-
archivePages: ({ requestBody
|
|
31
|
+
archivePages: ({ requestBody }: {
|
|
32
32
|
/** The pages to be archived. */
|
|
33
33
|
requestBody: {
|
|
34
34
|
pages?: ({
|
|
@@ -69,7 +69,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
69
69
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-post
|
|
70
70
|
* @param params
|
|
71
71
|
*/
|
|
72
|
-
createContent: ({ status, expand, contentCreate
|
|
72
|
+
createContent: ({ status, expand, contentCreate }: {
|
|
73
73
|
/** Filter the returned content by status. */
|
|
74
74
|
status?: string | undefined;
|
|
75
75
|
/**
|
|
@@ -209,7 +209,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
209
209
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-delete
|
|
210
210
|
* @param params
|
|
211
211
|
*/
|
|
212
|
-
deleteContent: ({ id, status
|
|
212
|
+
deleteContent: ({ id, status }: {
|
|
213
213
|
/** The ID of the content to be deleted. */
|
|
214
214
|
id: string;
|
|
215
215
|
/**
|
|
@@ -242,7 +242,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
242
242
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-get
|
|
243
243
|
* @param params
|
|
244
244
|
*/
|
|
245
|
-
getContent: ({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit
|
|
245
|
+
getContent: ({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit }?: {
|
|
246
246
|
/**
|
|
247
247
|
* The type of content to return. For example:
|
|
248
248
|
* - page
|
|
@@ -402,7 +402,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
402
402
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-get
|
|
403
403
|
* @param params
|
|
404
404
|
*/
|
|
405
|
-
getContentById: ({ id, status, version, embeddedContentRender, expand, trigger
|
|
405
|
+
getContentById: ({ id, status, version, embeddedContentRender, expand, trigger }: {
|
|
406
406
|
/**
|
|
407
407
|
* The ID of the content to be returned. If you don't know the content ID,
|
|
408
408
|
* use [Get content](#api-content-get) and filter the results.
|
|
@@ -545,7 +545,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
545
545
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-history-get
|
|
546
546
|
* @param params
|
|
547
547
|
*/
|
|
548
|
-
getHistoryForContent: ({ id, expand
|
|
548
|
+
getHistoryForContent: ({ id, expand }: {
|
|
549
549
|
/** The ID of the content to be queried for its history. */
|
|
550
550
|
id: string;
|
|
551
551
|
/**
|
|
@@ -583,7 +583,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
583
583
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-post
|
|
584
584
|
* @param params
|
|
585
585
|
*/
|
|
586
|
-
publishLegacyDraft: ({ draftId, status, expand, contentBlueprintDraft
|
|
586
|
+
publishLegacyDraft: ({ draftId, status, expand, contentBlueprintDraft }: {
|
|
587
587
|
/**
|
|
588
588
|
* The ID of the draft page that was created from a blueprint.
|
|
589
589
|
* You can find the `draftId` in the Confluence application by
|
|
@@ -709,7 +709,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
709
709
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-put
|
|
710
710
|
* @param params
|
|
711
711
|
*/
|
|
712
|
-
publishSharedDraft: ({ draftId, status, expand, contentBlueprintDraft
|
|
712
|
+
publishSharedDraft: ({ draftId, status, expand, contentBlueprintDraft }: {
|
|
713
713
|
/**
|
|
714
714
|
* The ID of the draft page that was created from a blueprint.
|
|
715
715
|
* You can find the `draftId` in the Confluence application by
|
|
@@ -877,7 +877,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
877
877
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-search-get
|
|
878
878
|
* @param params
|
|
879
879
|
*/
|
|
880
|
-
searchContentByCql: ({ cql, cqlcontext, expand, cursor, limit
|
|
880
|
+
searchContentByCql: ({ cql, cqlcontext, expand, cursor, limit }: {
|
|
881
881
|
/** The CQL string that is used to find the requested content. */
|
|
882
882
|
cql: string;
|
|
883
883
|
/**
|
|
@@ -1016,7 +1016,7 @@ export declare class ContentService extends CommonHttpService {
|
|
|
1016
1016
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-put
|
|
1017
1017
|
* @param params
|
|
1018
1018
|
*/
|
|
1019
|
-
updateContent: ({ id, status, conflictPolicy, contentUpdate
|
|
1019
|
+
updateContent: ({ id, status, conflictPolicy, contentUpdate }: {
|
|
1020
1020
|
/** The ID of the content to be updated. */
|
|
1021
1021
|
id: string;
|
|
1022
1022
|
/**
|
|
@@ -4,12 +4,12 @@ exports.ContentService = void 0;
|
|
|
4
4
|
// DO NOT EDIT!
|
|
5
5
|
// This file is generated by "api-typescript-generator".
|
|
6
6
|
// To update this file run "yarn build:openapi".
|
|
7
|
-
const zod_1 = require("zod");
|
|
8
7
|
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
9
8
|
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
10
9
|
const common_1 = require("../models/common");
|
|
11
10
|
const content_1 = require("../models/content");
|
|
12
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
const zod_1 = require("zod");
|
|
13
13
|
/**
|
|
14
14
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content
|
|
15
15
|
* @category Services
|
|
@@ -39,24 +39,19 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
39
39
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-archive-post
|
|
40
40
|
* @param params
|
|
41
41
|
*/
|
|
42
|
-
this.archivePages = ({ requestBody
|
|
43
|
-
return this.getClientInstance()
|
|
44
|
-
.request({
|
|
42
|
+
this.archivePages = ({ requestBody }) => {
|
|
43
|
+
return this.getClientInstance().request({
|
|
45
44
|
path: "/wiki/rest/api/content/archive",
|
|
46
45
|
method: "POST",
|
|
47
46
|
headers: {
|
|
48
|
-
"Content-Type": "application/json"
|
|
47
|
+
"Content-Type": "application/json"
|
|
49
48
|
},
|
|
50
|
-
body: requestBody
|
|
51
|
-
})
|
|
52
|
-
.then(this.getClientInstance().responseHandler({
|
|
49
|
+
body: requestBody
|
|
50
|
+
}).then(this.getClientInstance().responseHandler({
|
|
53
51
|
202: {
|
|
54
|
-
"application/json": "json"
|
|
55
|
-
}
|
|
56
|
-
}))
|
|
57
|
-
.then(commonHttpClient.castResponse())
|
|
58
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.archivePages.response")))
|
|
59
|
-
.then(commonHttpClient.getBody);
|
|
52
|
+
"application/json": "json"
|
|
53
|
+
}
|
|
54
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.archivePages.response"))).then(commonHttpClient.getBody);
|
|
60
55
|
};
|
|
61
56
|
/**
|
|
62
57
|
* Deprecated, use [Confluence's v2
|
|
@@ -86,35 +81,30 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
86
81
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-post
|
|
87
82
|
* @param params
|
|
88
83
|
*/
|
|
89
|
-
this.createContent = ({ status, expand, contentCreate
|
|
90
|
-
return this.getClientInstance()
|
|
91
|
-
.request({
|
|
84
|
+
this.createContent = ({ status, expand, contentCreate }) => {
|
|
85
|
+
return this.getClientInstance().request({
|
|
92
86
|
path: "/wiki/rest/api/content",
|
|
93
87
|
method: "POST",
|
|
94
88
|
query: {
|
|
95
89
|
status,
|
|
96
|
-
expand
|
|
90
|
+
expand
|
|
97
91
|
},
|
|
98
92
|
headers: {
|
|
99
|
-
"Content-Type": "application/json"
|
|
93
|
+
"Content-Type": "application/json"
|
|
100
94
|
},
|
|
101
95
|
parameters: {
|
|
102
96
|
query: {
|
|
103
97
|
expand: {
|
|
104
|
-
explode: false
|
|
105
|
-
}
|
|
106
|
-
}
|
|
98
|
+
explode: false
|
|
99
|
+
}
|
|
100
|
+
}
|
|
107
101
|
},
|
|
108
|
-
body: contentCreate
|
|
109
|
-
})
|
|
110
|
-
.then(this.getClientInstance().responseHandler({
|
|
102
|
+
body: contentCreate
|
|
103
|
+
}).then(this.getClientInstance().responseHandler({
|
|
111
104
|
200: {
|
|
112
|
-
"application/json": "json"
|
|
113
|
-
}
|
|
114
|
-
}))
|
|
115
|
-
.then(commonHttpClient.castResponse())
|
|
116
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.createContent.response")))
|
|
117
|
-
.then(commonHttpClient.getBody);
|
|
105
|
+
"application/json": "json"
|
|
106
|
+
}
|
|
107
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.createContent.response"))).then(commonHttpClient.getBody);
|
|
118
108
|
};
|
|
119
109
|
/**
|
|
120
110
|
* Deprecated, use [Confluence's v2
|
|
@@ -143,19 +133,17 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
143
133
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-delete
|
|
144
134
|
* @param params
|
|
145
135
|
*/
|
|
146
|
-
this.deleteContent = ({ id, status
|
|
147
|
-
return this.getClientInstance()
|
|
148
|
-
.request({
|
|
136
|
+
this.deleteContent = ({ id, status }) => {
|
|
137
|
+
return this.getClientInstance().request({
|
|
149
138
|
path: "/wiki/rest/api/content/{id}",
|
|
150
139
|
method: "DELETE",
|
|
151
140
|
pathParams: {
|
|
152
|
-
id
|
|
141
|
+
id
|
|
153
142
|
},
|
|
154
143
|
query: {
|
|
155
|
-
status
|
|
156
|
-
}
|
|
157
|
-
})
|
|
158
|
-
.then(commonHttpClient.discardResult);
|
|
144
|
+
status
|
|
145
|
+
}
|
|
146
|
+
}).then(commonHttpClient.discardResult);
|
|
159
147
|
};
|
|
160
148
|
/**
|
|
161
149
|
* Deprecated, use [Confluence's v2
|
|
@@ -181,9 +169,8 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
181
169
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-get
|
|
182
170
|
* @param params
|
|
183
171
|
*/
|
|
184
|
-
this.getContent = ({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit
|
|
185
|
-
return this.getClientInstance()
|
|
186
|
-
.request({
|
|
172
|
+
this.getContent = ({ type, spaceKey, title, status, postingDay, expand, trigger, orderby, start, limit } = {}) => {
|
|
173
|
+
return this.getClientInstance().request({
|
|
187
174
|
path: "/wiki/rest/api/content",
|
|
188
175
|
method: "GET",
|
|
189
176
|
query: {
|
|
@@ -196,24 +183,20 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
196
183
|
trigger,
|
|
197
184
|
orderby,
|
|
198
185
|
start,
|
|
199
|
-
limit
|
|
186
|
+
limit
|
|
200
187
|
},
|
|
201
188
|
parameters: {
|
|
202
189
|
query: {
|
|
203
190
|
expand: {
|
|
204
|
-
explode: false
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
})
|
|
209
|
-
.then(this.getClientInstance().responseHandler({
|
|
191
|
+
explode: false
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}).then(this.getClientInstance().responseHandler({
|
|
210
196
|
200: {
|
|
211
|
-
"application/json": "json"
|
|
212
|
-
}
|
|
213
|
-
}))
|
|
214
|
-
.then(commonHttpClient.castResponse())
|
|
215
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getContent.response")))
|
|
216
|
-
.then(commonHttpClient.getBody);
|
|
197
|
+
"application/json": "json"
|
|
198
|
+
}
|
|
199
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getContent.response"))).then(commonHttpClient.getBody);
|
|
217
200
|
};
|
|
218
201
|
/**
|
|
219
202
|
* Deprecated, use [Confluence's v2
|
|
@@ -235,37 +218,32 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
235
218
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-get
|
|
236
219
|
* @param params
|
|
237
220
|
*/
|
|
238
|
-
this.getContentById = ({ id, status, version, embeddedContentRender, expand, trigger
|
|
239
|
-
return this.getClientInstance()
|
|
240
|
-
.request({
|
|
221
|
+
this.getContentById = ({ id, status, version, embeddedContentRender, expand, trigger }) => {
|
|
222
|
+
return this.getClientInstance().request({
|
|
241
223
|
path: "/wiki/rest/api/content/{id}",
|
|
242
224
|
method: "GET",
|
|
243
225
|
pathParams: {
|
|
244
|
-
id
|
|
226
|
+
id
|
|
245
227
|
},
|
|
246
228
|
query: {
|
|
247
229
|
status,
|
|
248
230
|
version,
|
|
249
231
|
embeddedContentRender,
|
|
250
232
|
expand,
|
|
251
|
-
trigger
|
|
233
|
+
trigger
|
|
252
234
|
},
|
|
253
235
|
parameters: {
|
|
254
236
|
query: {
|
|
255
237
|
expand: {
|
|
256
|
-
explode: false
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
})
|
|
261
|
-
.then(this.getClientInstance().responseHandler({
|
|
238
|
+
explode: false
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}).then(this.getClientInstance().responseHandler({
|
|
262
243
|
200: {
|
|
263
|
-
"application/json": "json"
|
|
264
|
-
}
|
|
265
|
-
}))
|
|
266
|
-
.then(commonHttpClient.castResponse())
|
|
267
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getContentById.response")))
|
|
268
|
-
.then(commonHttpClient.getBody);
|
|
244
|
+
"application/json": "json"
|
|
245
|
+
}
|
|
246
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getContentById.response"))).then(commonHttpClient.getBody);
|
|
269
247
|
};
|
|
270
248
|
/**
|
|
271
249
|
* Deprecated, use [Confluence's v2
|
|
@@ -284,33 +262,28 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
284
262
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-history-get
|
|
285
263
|
* @param params
|
|
286
264
|
*/
|
|
287
|
-
this.getHistoryForContent = ({ id, expand
|
|
288
|
-
return this.getClientInstance()
|
|
289
|
-
.request({
|
|
265
|
+
this.getHistoryForContent = ({ id, expand }) => {
|
|
266
|
+
return this.getClientInstance().request({
|
|
290
267
|
path: "/wiki/rest/api/content/{id}/history",
|
|
291
268
|
method: "GET",
|
|
292
269
|
pathParams: {
|
|
293
|
-
id
|
|
270
|
+
id
|
|
294
271
|
},
|
|
295
272
|
query: {
|
|
296
|
-
expand
|
|
273
|
+
expand
|
|
297
274
|
},
|
|
298
275
|
parameters: {
|
|
299
276
|
query: {
|
|
300
277
|
expand: {
|
|
301
|
-
explode: false
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
})
|
|
306
|
-
.then(this.getClientInstance().responseHandler({
|
|
278
|
+
explode: false
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}).then(this.getClientInstance().responseHandler({
|
|
307
283
|
200: {
|
|
308
|
-
"application/json": "json"
|
|
309
|
-
}
|
|
310
|
-
}))
|
|
311
|
-
.then(commonHttpClient.castResponse())
|
|
312
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getHistoryForContent.response")))
|
|
313
|
-
.then(commonHttpClient.getBody);
|
|
284
|
+
"application/json": "json"
|
|
285
|
+
}
|
|
286
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.getHistoryForContent.response"))).then(commonHttpClient.getBody);
|
|
314
287
|
};
|
|
315
288
|
/**
|
|
316
289
|
* Publishes a legacy draft of a page created from a blueprint. Legacy drafts
|
|
@@ -332,38 +305,33 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
332
305
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-post
|
|
333
306
|
* @param params
|
|
334
307
|
*/
|
|
335
|
-
this.publishLegacyDraft = ({ draftId, status, expand, contentBlueprintDraft
|
|
336
|
-
return this.getClientInstance()
|
|
337
|
-
.request({
|
|
308
|
+
this.publishLegacyDraft = ({ draftId, status, expand, contentBlueprintDraft }) => {
|
|
309
|
+
return this.getClientInstance().request({
|
|
338
310
|
path: "/wiki/rest/api/content/blueprint/instance/{draftId}",
|
|
339
311
|
method: "POST",
|
|
340
312
|
pathParams: {
|
|
341
|
-
draftId
|
|
313
|
+
draftId
|
|
342
314
|
},
|
|
343
315
|
query: {
|
|
344
316
|
status,
|
|
345
|
-
expand
|
|
317
|
+
expand
|
|
346
318
|
},
|
|
347
319
|
headers: {
|
|
348
|
-
"Content-Type": "application/json"
|
|
320
|
+
"Content-Type": "application/json"
|
|
349
321
|
},
|
|
350
322
|
parameters: {
|
|
351
323
|
query: {
|
|
352
324
|
expand: {
|
|
353
|
-
explode: false
|
|
354
|
-
}
|
|
355
|
-
}
|
|
325
|
+
explode: false
|
|
326
|
+
}
|
|
327
|
+
}
|
|
356
328
|
},
|
|
357
|
-
body: contentBlueprintDraft
|
|
358
|
-
})
|
|
359
|
-
.then(this.getClientInstance().responseHandler({
|
|
329
|
+
body: contentBlueprintDraft
|
|
330
|
+
}).then(this.getClientInstance().responseHandler({
|
|
360
331
|
200: {
|
|
361
|
-
"application/json": "json"
|
|
362
|
-
}
|
|
363
|
-
}))
|
|
364
|
-
.then(commonHttpClient.castResponse())
|
|
365
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.publishLegacyDraft.response")))
|
|
366
|
-
.then(commonHttpClient.getBody);
|
|
332
|
+
"application/json": "json"
|
|
333
|
+
}
|
|
334
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.publishLegacyDraft.response"))).then(commonHttpClient.getBody);
|
|
367
335
|
};
|
|
368
336
|
/**
|
|
369
337
|
* Publishes a shared draft of a page created from a blueprint.
|
|
@@ -382,38 +350,33 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
382
350
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-blueprint-instance-draftid-put
|
|
383
351
|
* @param params
|
|
384
352
|
*/
|
|
385
|
-
this.publishSharedDraft = ({ draftId, status, expand, contentBlueprintDraft
|
|
386
|
-
return this.getClientInstance()
|
|
387
|
-
.request({
|
|
353
|
+
this.publishSharedDraft = ({ draftId, status, expand, contentBlueprintDraft }) => {
|
|
354
|
+
return this.getClientInstance().request({
|
|
388
355
|
path: "/wiki/rest/api/content/blueprint/instance/{draftId}",
|
|
389
356
|
method: "PUT",
|
|
390
357
|
pathParams: {
|
|
391
|
-
draftId
|
|
358
|
+
draftId
|
|
392
359
|
},
|
|
393
360
|
query: {
|
|
394
361
|
status,
|
|
395
|
-
expand
|
|
362
|
+
expand
|
|
396
363
|
},
|
|
397
364
|
headers: {
|
|
398
|
-
"Content-Type": "application/json"
|
|
365
|
+
"Content-Type": "application/json"
|
|
399
366
|
},
|
|
400
367
|
parameters: {
|
|
401
368
|
query: {
|
|
402
369
|
expand: {
|
|
403
|
-
explode: false
|
|
404
|
-
}
|
|
405
|
-
}
|
|
370
|
+
explode: false
|
|
371
|
+
}
|
|
372
|
+
}
|
|
406
373
|
},
|
|
407
|
-
body: contentBlueprintDraft
|
|
408
|
-
})
|
|
409
|
-
.then(this.getClientInstance().responseHandler({
|
|
374
|
+
body: contentBlueprintDraft
|
|
375
|
+
}).then(this.getClientInstance().responseHandler({
|
|
410
376
|
200: {
|
|
411
|
-
"application/json": "json"
|
|
412
|
-
}
|
|
413
|
-
}))
|
|
414
|
-
.then(commonHttpClient.castResponse())
|
|
415
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.publishSharedDraft.response")))
|
|
416
|
-
.then(commonHttpClient.getBody);
|
|
377
|
+
"application/json": "json"
|
|
378
|
+
}
|
|
379
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.publishSharedDraft.response"))).then(commonHttpClient.getBody);
|
|
417
380
|
};
|
|
418
381
|
/**
|
|
419
382
|
* Returns the list of content that matches a Confluence Query Language
|
|
@@ -474,9 +437,8 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
474
437
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-search-get
|
|
475
438
|
* @param params
|
|
476
439
|
*/
|
|
477
|
-
this.searchContentByCql = ({ cql, cqlcontext, expand, cursor, limit
|
|
478
|
-
return this.getClientInstance()
|
|
479
|
-
.request({
|
|
440
|
+
this.searchContentByCql = ({ cql, cqlcontext, expand, cursor, limit }) => {
|
|
441
|
+
return this.getClientInstance().request({
|
|
480
442
|
path: "/wiki/rest/api/content/search",
|
|
481
443
|
method: "GET",
|
|
482
444
|
query: {
|
|
@@ -484,24 +446,20 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
484
446
|
cqlcontext,
|
|
485
447
|
expand,
|
|
486
448
|
cursor,
|
|
487
|
-
limit
|
|
449
|
+
limit
|
|
488
450
|
},
|
|
489
451
|
parameters: {
|
|
490
452
|
query: {
|
|
491
453
|
expand: {
|
|
492
|
-
explode: false
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
})
|
|
497
|
-
.then(this.getClientInstance().responseHandler({
|
|
454
|
+
explode: false
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}).then(this.getClientInstance().responseHandler({
|
|
498
459
|
200: {
|
|
499
|
-
"application/json": "json"
|
|
500
|
-
}
|
|
501
|
-
}))
|
|
502
|
-
.then(commonHttpClient.castResponse())
|
|
503
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.searchContentByCQL.response")))
|
|
504
|
-
.then(commonHttpClient.getBody);
|
|
460
|
+
"application/json": "json"
|
|
461
|
+
}
|
|
462
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.searchContentByCQL.response"))).then(commonHttpClient.getBody);
|
|
505
463
|
};
|
|
506
464
|
/**
|
|
507
465
|
* Deprecated, use [Confluence's v2
|
|
@@ -523,101 +481,75 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
523
481
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content#api-wiki-rest-api-content-id-put
|
|
524
482
|
* @param params
|
|
525
483
|
*/
|
|
526
|
-
this.updateContent = ({ id, status, conflictPolicy, contentUpdate
|
|
527
|
-
return this.getClientInstance()
|
|
528
|
-
.request({
|
|
484
|
+
this.updateContent = ({ id, status, conflictPolicy, contentUpdate }) => {
|
|
485
|
+
return this.getClientInstance().request({
|
|
529
486
|
path: "/wiki/rest/api/content/{id}",
|
|
530
487
|
method: "PUT",
|
|
531
488
|
pathParams: {
|
|
532
|
-
id
|
|
489
|
+
id
|
|
533
490
|
},
|
|
534
491
|
query: {
|
|
535
492
|
status,
|
|
536
|
-
conflictPolicy
|
|
493
|
+
conflictPolicy
|
|
537
494
|
},
|
|
538
495
|
headers: {
|
|
539
|
-
"Content-Type": "application/json"
|
|
496
|
+
"Content-Type": "application/json"
|
|
540
497
|
},
|
|
541
|
-
body: contentUpdate
|
|
542
|
-
})
|
|
543
|
-
.then(this.getClientInstance().responseHandler({
|
|
498
|
+
body: contentUpdate
|
|
499
|
+
}).then(this.getClientInstance().responseHandler({
|
|
544
500
|
200: {
|
|
545
|
-
"application/json": "json"
|
|
546
|
-
}
|
|
547
|
-
}))
|
|
548
|
-
.then(commonHttpClient.castResponse())
|
|
549
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.updateContent.response")))
|
|
550
|
-
.then(commonHttpClient.getBody);
|
|
501
|
+
"application/json": "json"
|
|
502
|
+
}
|
|
503
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentService.updateContent.response"))).then(commonHttpClient.getBody);
|
|
551
504
|
};
|
|
552
505
|
}
|
|
553
506
|
static initialize() {
|
|
554
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getContent.response", zod_1.z
|
|
555
|
-
.object({
|
|
507
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getContent.response", zod_1.z.object({
|
|
556
508
|
status: zod_1.z.literal(200),
|
|
557
509
|
mediaType: zod_1.z.literal("application/json"),
|
|
558
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
559
|
-
})
|
|
560
|
-
|
|
561
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.createContent.response", zod_1.z
|
|
562
|
-
.object({
|
|
510
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
511
|
+
}).describe("ContentService.getContent.response"));
|
|
512
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.createContent.response", zod_1.z.object({
|
|
563
513
|
status: zod_1.z.literal(200),
|
|
564
514
|
mediaType: zod_1.z.literal("application/json"),
|
|
565
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
566
|
-
})
|
|
567
|
-
|
|
568
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getContentById.response", zod_1.z
|
|
569
|
-
.object({
|
|
515
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
516
|
+
}).describe("ContentService.createContent.response"));
|
|
517
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getContentById.response", zod_1.z.object({
|
|
570
518
|
status: zod_1.z.literal(200),
|
|
571
519
|
mediaType: zod_1.z.literal("application/json"),
|
|
572
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
573
|
-
})
|
|
574
|
-
|
|
575
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.updateContent.response", zod_1.z
|
|
576
|
-
.object({
|
|
520
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
521
|
+
}).describe("ContentService.getContentById.response"));
|
|
522
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.updateContent.response", zod_1.z.object({
|
|
577
523
|
status: zod_1.z.literal(200),
|
|
578
524
|
mediaType: zod_1.z.literal("application/json"),
|
|
579
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
580
|
-
})
|
|
581
|
-
|
|
582
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getHistoryForContent.response", zod_1.z
|
|
583
|
-
.object({
|
|
525
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
526
|
+
}).describe("ContentService.updateContent.response"));
|
|
527
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.getHistoryForContent.response", zod_1.z.object({
|
|
584
528
|
status: zod_1.z.literal(200),
|
|
585
529
|
mediaType: zod_1.z.literal("application/json"),
|
|
586
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentHistory"))
|
|
587
|
-
})
|
|
588
|
-
|
|
589
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.archivePages.response", zod_1.z
|
|
590
|
-
.object({
|
|
530
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentHistory"))
|
|
531
|
+
}).describe("ContentService.getHistoryForContent.response"));
|
|
532
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.archivePages.response", zod_1.z.object({
|
|
591
533
|
status: zod_1.z.literal(202),
|
|
592
534
|
mediaType: zod_1.z.literal("application/json"),
|
|
593
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("LongTask")
|
|
594
|
-
})
|
|
595
|
-
|
|
596
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.publishSharedDraft.response", zod_1.z
|
|
597
|
-
.object({
|
|
535
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("LongTask")
|
|
536
|
+
}).describe("ContentService.archivePages.response"));
|
|
537
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.publishSharedDraft.response", zod_1.z.object({
|
|
598
538
|
status: zod_1.z.literal(200),
|
|
599
539
|
mediaType: zod_1.z.literal("application/json"),
|
|
600
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
601
|
-
})
|
|
602
|
-
|
|
603
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.publishLegacyDraft.response", zod_1.z
|
|
604
|
-
.object({
|
|
540
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
541
|
+
}).describe("ContentService.publishSharedDraft.response"));
|
|
542
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.publishLegacyDraft.response", zod_1.z.object({
|
|
605
543
|
status: zod_1.z.literal(200),
|
|
606
544
|
mediaType: zod_1.z.literal("application/json"),
|
|
607
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
608
|
-
})
|
|
609
|
-
|
|
610
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.searchContentByCQL.response", zod_1.z
|
|
611
|
-
.object({
|
|
545
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
546
|
+
}).describe("ContentService.publishLegacyDraft.response"));
|
|
547
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentService.searchContentByCQL.response", zod_1.z.object({
|
|
612
548
|
status: zod_1.z.literal(200),
|
|
613
549
|
mediaType: zod_1.z.literal("application/json"),
|
|
614
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
615
|
-
})
|
|
616
|
-
|
|
617
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
618
|
-
common_1.registerCommonValidationSchemas,
|
|
619
|
-
content_1.registerContentValidationSchemas,
|
|
620
|
-
]);
|
|
550
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
551
|
+
}).describe("ContentService.searchContentByCQL.response"));
|
|
552
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas, content_1.registerContentValidationSchemas]);
|
|
621
553
|
}
|
|
622
554
|
}
|
|
623
555
|
exports.ContentService = ContentService;
|