@resolution/confluence-api-client 0.2.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 +11 -0
- package/LICENSE.md +19 -0
- package/README.md +12 -0
- package/lib/index.d.ts +36 -0
- package/lib/index.js +64 -0
- package/lib/index.js.map +1 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +133 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +122 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -0
- package/lib/openapi/v1/core/CommonHttpClient.d.ts +196 -0
- package/lib/openapi/v1/core/CommonHttpClient.js +390 -0
- package/lib/openapi/v1/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/v1/core/CommonHttpService.d.ts +7 -0
- package/lib/openapi/v1/core/CommonHttpService.js +20 -0
- package/lib/openapi/v1/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.d.ts +35 -0
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.js +65 -0
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/v1/models/audit.d.ts +151 -0
- package/lib/openapi/v1/models/audit.js +133 -0
- package/lib/openapi/v1/models/audit.js.map +1 -0
- package/lib/openapi/v1/models/common.d.ts +645 -0
- package/lib/openapi/v1/models/common.js +654 -0
- package/lib/openapi/v1/models/common.js.map +1 -0
- package/lib/openapi/v1/models/content.d.ts +554 -0
- package/lib/openapi/v1/models/content.js +613 -0
- package/lib/openapi/v1/models/content.js.map +1 -0
- package/lib/openapi/v1/models/contentAttachments.d.ts +26 -0
- package/lib/openapi/v1/models/contentAttachments.js +33 -0
- package/lib/openapi/v1/models/contentAttachments.js.map +1 -0
- package/lib/openapi/v1/models/contentBody.d.ts +36 -0
- package/lib/openapi/v1/models/contentBody.js +63 -0
- package/lib/openapi/v1/models/contentBody.js.map +1 -0
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +75 -0
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +66 -0
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -0
- package/lib/openapi/v1/models/contentLabels.d.ts +5 -0
- package/lib/openapi/v1/models/contentLabels.js +16 -0
- package/lib/openapi/v1/models/contentLabels.js.map +1 -0
- package/lib/openapi/v1/models/contentMacroBody.d.ts +12 -0
- package/lib/openapi/v1/models/contentMacroBody.js +22 -0
- package/lib/openapi/v1/models/contentMacroBody.js.map +1 -0
- package/lib/openapi/v1/models/contentPermissions.d.ts +41 -0
- package/lib/openapi/v1/models/contentPermissions.js +35 -0
- package/lib/openapi/v1/models/contentPermissions.js.map +1 -0
- package/lib/openapi/v1/models/contentProperties.d.ts +73 -0
- package/lib/openapi/v1/models/contentProperties.js +94 -0
- package/lib/openapi/v1/models/contentProperties.js.map +1 -0
- package/lib/openapi/v1/models/contentRestrictions.d.ts +65 -0
- package/lib/openapi/v1/models/contentRestrictions.js +78 -0
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -0
- package/lib/openapi/v1/models/contentStates.d.ts +75 -0
- package/lib/openapi/v1/models/contentStates.js +72 -0
- package/lib/openapi/v1/models/contentStates.js.map +1 -0
- package/lib/openapi/v1/models/contentVersions.d.ts +28 -0
- package/lib/openapi/v1/models/contentVersions.js +36 -0
- package/lib/openapi/v1/models/contentVersions.js.map +1 -0
- package/lib/openapi/v1/models/contentWatches.d.ts +89 -0
- package/lib/openapi/v1/models/contentWatches.js +81 -0
- package/lib/openapi/v1/models/contentWatches.js.map +1 -0
- package/lib/openapi/v1/models/dynamicModules.d.ts +62 -0
- package/lib/openapi/v1/models/dynamicModules.js +24 -0
- package/lib/openapi/v1/models/dynamicModules.js.map +1 -0
- package/lib/openapi/v1/models/group.d.ts +9 -0
- package/lib/openapi/v1/models/group.js +23 -0
- package/lib/openapi/v1/models/group.js.map +1 -0
- package/lib/openapi/v1/models/inlineTasks.d.ts +30 -0
- package/lib/openapi/v1/models/inlineTasks.js +48 -0
- package/lib/openapi/v1/models/inlineTasks.js.map +1 -0
- package/lib/openapi/v1/models/labelInfo.d.ts +21 -0
- package/lib/openapi/v1/models/labelInfo.js +42 -0
- package/lib/openapi/v1/models/labelInfo.js.map +1 -0
- package/lib/openapi/v1/models/longRunningTask.d.ts +116 -0
- package/lib/openapi/v1/models/longRunningTask.js +82 -0
- package/lib/openapi/v1/models/longRunningTask.js.map +1 -0
- package/lib/openapi/v1/models/relation.d.ts +30 -0
- package/lib/openapi/v1/models/relation.js +61 -0
- package/lib/openapi/v1/models/relation.js.map +1 -0
- package/lib/openapi/v1/models/search.d.ts +41 -0
- package/lib/openapi/v1/models/search.js +65 -0
- package/lib/openapi/v1/models/search.js.map +1 -0
- package/lib/openapi/v1/models/settings.d.ts +36 -0
- package/lib/openapi/v1/models/settings.js +50 -0
- package/lib/openapi/v1/models/settings.js.map +1 -0
- package/lib/openapi/v1/models/space.d.ts +118 -0
- package/lib/openapi/v1/models/space.js +94 -0
- package/lib/openapi/v1/models/space.js.map +1 -0
- package/lib/openapi/v1/models/spacePermissions.d.ts +128 -0
- package/lib/openapi/v1/models/spacePermissions.js +102 -0
- package/lib/openapi/v1/models/spacePermissions.js.map +1 -0
- package/lib/openapi/v1/models/spaceProperties.d.ts +96 -0
- package/lib/openapi/v1/models/spaceProperties.js +93 -0
- package/lib/openapi/v1/models/spaceProperties.js.map +1 -0
- package/lib/openapi/v1/models/spaceSettings.d.ts +14 -0
- package/lib/openapi/v1/models/spaceSettings.js +17 -0
- package/lib/openapi/v1/models/spaceSettings.js.map +1 -0
- package/lib/openapi/v1/models/template.d.ts +201 -0
- package/lib/openapi/v1/models/template.js +163 -0
- package/lib/openapi/v1/models/template.js.map +1 -0
- package/lib/openapi/v1/models/themes.d.ts +26 -0
- package/lib/openapi/v1/models/themes.js +38 -0
- package/lib/openapi/v1/models/themes.js.map +1 -0
- package/lib/openapi/v1/models/userProperties.d.ts +41 -0
- package/lib/openapi/v1/models/userProperties.js +50 -0
- package/lib/openapi/v1/models/userProperties.js.map +1 -0
- package/lib/openapi/v1/models/users.d.ts +98 -0
- package/lib/openapi/v1/models/users.js +87 -0
- package/lib/openapi/v1/models/users.js.map +1 -0
- package/lib/openapi/v1/services/AnalyticsService.d.ts +54 -0
- package/lib/openapi/v1/services/AnalyticsService.js +98 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -0
- package/lib/openapi/v1/services/AuditService.d.ts +163 -0
- package/lib/openapi/v1/services/AuditService.js +269 -0
- package/lib/openapi/v1/services/AuditService.js.map +1 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +332 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js +362 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentBodyService.d.ts +227 -0
- package/lib/openapi/v1/services/ContentBodyService.js +178 -0
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +621 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +453 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +147 -0
- package/lib/openapi/v1/services/ContentCommentsService.js +72 -0
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +122 -0
- package/lib/openapi/v1/services/ContentLabelsService.js +176 -0
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +268 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js +193 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -0
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +34 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js +72 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +187 -0
- package/lib/openapi/v1/services/ContentPropertiesService.js +285 -0
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +503 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js +552 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentService.d.ts +1012 -0
- package/lib/openapi/v1/services/ContentService.js +548 -0
- package/lib/openapi/v1/services/ContentService.js.map +1 -0
- package/lib/openapi/v1/services/ContentStatesService.d.ts +220 -0
- package/lib/openapi/v1/services/ContentStatesService.js +439 -0
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -0
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +121 -0
- package/lib/openapi/v1/services/ContentVersionsService.js +181 -0
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -0
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +550 -0
- package/lib/openapi/v1/services/ContentWatchesService.js +502 -0
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -0
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +47 -0
- package/lib/openapi/v1/services/DynamicModulesService.js +92 -0
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -0
- package/lib/openapi/v1/services/ExperimentalService.d.ts +113 -0
- package/lib/openapi/v1/services/ExperimentalService.js +185 -0
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -0
- package/lib/openapi/v1/services/GroupService.d.ts +379 -0
- package/lib/openapi/v1/services/GroupService.js +515 -0
- package/lib/openapi/v1/services/GroupService.js.map +1 -0
- package/lib/openapi/v1/services/InlineTasksService.d.ts +91 -0
- package/lib/openapi/v1/services/InlineTasksService.js +155 -0
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -0
- package/lib/openapi/v1/services/LabelInfoService.d.ts +28 -0
- package/lib/openapi/v1/services/LabelInfoService.js +59 -0
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -0
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +43 -0
- package/lib/openapi/v1/services/LongRunningTaskService.js +96 -0
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -0
- package/lib/openapi/v1/services/RelationService.d.ts +404 -0
- package/lib/openapi/v1/services/RelationService.js +270 -0
- package/lib/openapi/v1/services/RelationService.js.map +1 -0
- package/lib/openapi/v1/services/SearchService.d.ts +175 -0
- package/lib/openapi/v1/services/SearchService.js +164 -0
- package/lib/openapi/v1/services/SearchService.js.map +1 -0
- package/lib/openapi/v1/services/SettingsService.d.ts +143 -0
- package/lib/openapi/v1/services/SettingsService.js +249 -0
- package/lib/openapi/v1/services/SettingsService.js.map +1 -0
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +68 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js +121 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -0
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +161 -0
- package/lib/openapi/v1/services/SpacePropertiesService.js +275 -0
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -0
- package/lib/openapi/v1/services/SpaceService.d.ts +479 -0
- package/lib/openapi/v1/services/SpaceService.js +394 -0
- package/lib/openapi/v1/services/SpaceService.js.map +1 -0
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +40 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js +96 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -0
- package/lib/openapi/v1/services/TemplateService.d.ts +163 -0
- package/lib/openapi/v1/services/TemplateService.js +259 -0
- package/lib/openapi/v1/services/TemplateService.js.map +1 -0
- package/lib/openapi/v1/services/ThemesService.d.ts +101 -0
- package/lib/openapi/v1/services/ThemesService.js +228 -0
- package/lib/openapi/v1/services/ThemesService.js.map +1 -0
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +129 -0
- package/lib/openapi/v1/services/UserPropertiesService.js +192 -0
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -0
- package/lib/openapi/v1/services/UsersService.d.ts +181 -0
- package/lib/openapi/v1/services/UsersService.js +291 -0
- package/lib/openapi/v1/services/UsersService.js.map +1 -0
- package/lib/openapi/v1/validationSchemaStorage.d.ts +3 -0
- package/lib/openapi/v1/validationSchemaStorage.js +144 -0
- package/lib/openapi/v1/validationSchemaStorage.js.map +1 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +88 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +87 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -0
- package/lib/openapi/v2/core/CommonHttpClient.d.ts +196 -0
- package/lib/openapi/v2/core/CommonHttpClient.js +390 -0
- package/lib/openapi/v2/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/v2/core/CommonHttpService.d.ts +7 -0
- package/lib/openapi/v2/core/CommonHttpService.js +20 -0
- package/lib/openapi/v2/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.d.ts +35 -0
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js +65 -0
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/v2/models/ancestors.d.ts +11 -0
- package/lib/openapi/v2/models/ancestors.js +21 -0
- package/lib/openapi/v2/models/ancestors.js.map +1 -0
- package/lib/openapi/v2/models/attachment.d.ts +148 -0
- package/lib/openapi/v2/models/attachment.js +116 -0
- package/lib/openapi/v2/models/attachment.js.map +1 -0
- package/lib/openapi/v2/models/blogPost.d.ts +106 -0
- package/lib/openapi/v2/models/blogPost.js +134 -0
- package/lib/openapi/v2/models/blogPost.js.map +1 -0
- package/lib/openapi/v2/models/children.d.ts +29 -0
- package/lib/openapi/v2/models/children.js +38 -0
- package/lib/openapi/v2/models/children.js.map +1 -0
- package/lib/openapi/v2/models/classificationLevel.d.ts +28 -0
- package/lib/openapi/v2/models/classificationLevel.js +45 -0
- package/lib/openapi/v2/models/classificationLevel.js.map +1 -0
- package/lib/openapi/v2/models/comment.d.ts +396 -0
- package/lib/openapi/v2/models/comment.js +378 -0
- package/lib/openapi/v2/models/comment.js.map +1 -0
- package/lib/openapi/v2/models/common.d.ts +200 -0
- package/lib/openapi/v2/models/common.js +225 -0
- package/lib/openapi/v2/models/common.js.map +1 -0
- package/lib/openapi/v2/models/content.d.ts +16 -0
- package/lib/openapi/v2/models/content.js +29 -0
- package/lib/openapi/v2/models/content.js.map +1 -0
- package/lib/openapi/v2/models/contentProperties.d.ts +33 -0
- package/lib/openapi/v2/models/contentProperties.js +33 -0
- package/lib/openapi/v2/models/contentProperties.js.map +1 -0
- package/lib/openapi/v2/models/customContent.d.ts +174 -0
- package/lib/openapi/v2/models/customContent.js +163 -0
- package/lib/openapi/v2/models/customContent.js.map +1 -0
- package/lib/openapi/v2/models/dataPolicies.d.ts +34 -0
- package/lib/openapi/v2/models/dataPolicies.js +38 -0
- package/lib/openapi/v2/models/dataPolicies.js.map +1 -0
- package/lib/openapi/v2/models/database.d.ts +35 -0
- package/lib/openapi/v2/models/database.js +38 -0
- package/lib/openapi/v2/models/database.js.map +1 -0
- package/lib/openapi/v2/models/operation.d.ts +8 -0
- package/lib/openapi/v2/models/operation.js +21 -0
- package/lib/openapi/v2/models/operation.js.map +1 -0
- package/lib/openapi/v2/models/page.d.ts +124 -0
- package/lib/openapi/v2/models/page.js +143 -0
- package/lib/openapi/v2/models/page.js.map +1 -0
- package/lib/openapi/v2/models/smartLink.d.ts +38 -0
- package/lib/openapi/v2/models/smartLink.js +38 -0
- package/lib/openapi/v2/models/smartLink.js.map +1 -0
- package/lib/openapi/v2/models/space.d.ts +87 -0
- package/lib/openapi/v2/models/space.js +100 -0
- package/lib/openapi/v2/models/space.js.map +1 -0
- package/lib/openapi/v2/models/spaceProperties.d.ts +27 -0
- package/lib/openapi/v2/models/spaceProperties.js +32 -0
- package/lib/openapi/v2/models/spaceProperties.js.map +1 -0
- package/lib/openapi/v2/models/task.d.ts +39 -0
- package/lib/openapi/v2/models/task.js +39 -0
- package/lib/openapi/v2/models/task.js.map +1 -0
- package/lib/openapi/v2/models/version.d.ts +139 -0
- package/lib/openapi/v2/models/version.js +91 -0
- package/lib/openapi/v2/models/version.js.map +1 -0
- package/lib/openapi/v2/models/whiteboard.d.ts +37 -0
- package/lib/openapi/v2/models/whiteboard.js +39 -0
- package/lib/openapi/v2/models/whiteboard.js.map +1 -0
- package/lib/openapi/v2/services/AncestorsService.d.ts +143 -0
- package/lib/openapi/v2/services/AncestorsService.js +245 -0
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -0
- package/lib/openapi/v2/services/AttachmentService.d.ts +307 -0
- package/lib/openapi/v2/services/AttachmentService.js +370 -0
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -0
- package/lib/openapi/v2/services/BlogPostService.d.ts +386 -0
- package/lib/openapi/v2/services/BlogPostService.js +379 -0
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -0
- package/lib/openapi/v2/services/ChildrenService.d.ts +85 -0
- package/lib/openapi/v2/services/ChildrenService.js +127 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -0
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +213 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js +340 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -0
- package/lib/openapi/v2/services/CommentService.d.ts +713 -0
- package/lib/openapi/v2/services/CommentService.js +884 -0
- package/lib/openapi/v2/services/CommentService.js.map +1 -0
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +844 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js +1514 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -0
- package/lib/openapi/v2/services/ContentService.d.ts +31 -0
- package/lib/openapi/v2/services/ContentService.js +62 -0
- package/lib/openapi/v2/services/ContentService.js.map +1 -0
- package/lib/openapi/v2/services/CustomContentService.d.ts +427 -0
- package/lib/openapi/v2/services/CustomContentService.js +423 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -0
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +64 -0
- package/lib/openapi/v2/services/DataPoliciesService.js +108 -0
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -0
- package/lib/openapi/v2/services/DatabaseService.d.ts +82 -0
- package/lib/openapi/v2/services/DatabaseService.js +135 -0
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -0
- package/lib/openapi/v2/services/LabelService.d.ts +271 -0
- package/lib/openapi/v2/services/LabelService.js +384 -0
- package/lib/openapi/v2/services/LabelService.js.map +1 -0
- package/lib/openapi/v2/services/LikeService.d.ts +205 -0
- package/lib/openapi/v2/services/LikeService.js +358 -0
- package/lib/openapi/v2/services/LikeService.js.map +1 -0
- package/lib/openapi/v2/services/OperationService.d.ts +154 -0
- package/lib/openapi/v2/services/OperationService.js +374 -0
- package/lib/openapi/v2/services/OperationService.js.map +1 -0
- package/lib/openapi/v2/services/PageService.d.ts +408 -0
- package/lib/openapi/v2/services/PageService.js +381 -0
- package/lib/openapi/v2/services/PageService.js.map +1 -0
- package/lib/openapi/v2/services/SmartLinkService.d.ts +84 -0
- package/lib/openapi/v2/services/SmartLinkService.js +137 -0
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -0
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +36 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js +66 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -0
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +118 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js +213 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -0
- package/lib/openapi/v2/services/SpaceService.d.ts +141 -0
- package/lib/openapi/v2/services/SpaceService.js +133 -0
- package/lib/openapi/v2/services/SpaceService.js.map +1 -0
- package/lib/openapi/v2/services/TaskService.d.ts +184 -0
- package/lib/openapi/v2/services/TaskService.js +165 -0
- package/lib/openapi/v2/services/TaskService.js.map +1 -0
- package/lib/openapi/v2/services/UserService.d.ts +51 -0
- package/lib/openapi/v2/services/UserService.js +83 -0
- package/lib/openapi/v2/services/UserService.js.map +1 -0
- package/lib/openapi/v2/services/VersionService.d.ts +350 -0
- package/lib/openapi/v2/services/VersionService.js +541 -0
- package/lib/openapi/v2/services/VersionService.js.map +1 -0
- package/lib/openapi/v2/services/WhiteboardService.d.ts +82 -0
- package/lib/openapi/v2/services/WhiteboardService.js +135 -0
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -0
- package/lib/openapi/v2/validationSchemaStorage.d.ts +3 -0
- package/lib/openapi/v2/validationSchemaStorage.js +144 -0
- package/lib/openapi/v2/validationSchemaStorage.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentWatchesService = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const commonHttpClient = require("../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
|
+
const contentWatches_1 = require("../models/contentWatches");
|
|
11
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class ContentWatchesService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Adds a user as a watcher to a piece of content. Choose the user by doing
|
|
15
|
+
* one of the following:
|
|
16
|
+
*
|
|
17
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
18
|
+
* user.
|
|
19
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
20
|
+
*
|
|
21
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a
|
|
22
|
+
* request, as this operation has XSRF protection.
|
|
23
|
+
*
|
|
24
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
25
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
26
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
27
|
+
*
|
|
28
|
+
* @path {POST} /wiki/rest/api/user/watch/content/{contentId}
|
|
29
|
+
* @scopes-current write:confluence-content
|
|
30
|
+
* @scopes-beta write:watcher:confluence
|
|
31
|
+
*/
|
|
32
|
+
addContentWatcher({ contentId, key, username, accountId, }) {
|
|
33
|
+
return this.getClientInstance()
|
|
34
|
+
.request({
|
|
35
|
+
path: "/wiki/rest/api/user/watch/content/{contentId}",
|
|
36
|
+
method: "POST",
|
|
37
|
+
pathParams: {
|
|
38
|
+
contentId,
|
|
39
|
+
},
|
|
40
|
+
query: {
|
|
41
|
+
key,
|
|
42
|
+
username,
|
|
43
|
+
accountId,
|
|
44
|
+
},
|
|
45
|
+
})
|
|
46
|
+
.then(commonHttpClient.discardResult);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Adds a user as a watcher to a label. Choose the user by doing one of the
|
|
50
|
+
* following:
|
|
51
|
+
*
|
|
52
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
53
|
+
* user.
|
|
54
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
55
|
+
*
|
|
56
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a
|
|
57
|
+
* request, as this operation has XSRF protection.
|
|
58
|
+
*
|
|
59
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
60
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
61
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
62
|
+
*
|
|
63
|
+
* @path {POST} /wiki/rest/api/user/watch/label/{labelName}
|
|
64
|
+
* @scopes-current write:confluence-content
|
|
65
|
+
* @scopes-beta write:watcher:confluence
|
|
66
|
+
*/
|
|
67
|
+
addLabelWatcher({ labelName, key, username, accountId, xAtlassianToken, }) {
|
|
68
|
+
return this.getClientInstance()
|
|
69
|
+
.request({
|
|
70
|
+
path: "/wiki/rest/api/user/watch/label/{labelName}",
|
|
71
|
+
method: "POST",
|
|
72
|
+
pathParams: {
|
|
73
|
+
labelName,
|
|
74
|
+
},
|
|
75
|
+
query: {
|
|
76
|
+
key,
|
|
77
|
+
username,
|
|
78
|
+
accountId,
|
|
79
|
+
},
|
|
80
|
+
headers: {
|
|
81
|
+
"X-Atlassian-Token": xAtlassianToken,
|
|
82
|
+
},
|
|
83
|
+
})
|
|
84
|
+
.then(commonHttpClient.discardResult);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Adds a user as a watcher to a space. Choose the user by doing one of the
|
|
88
|
+
* following:
|
|
89
|
+
*
|
|
90
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
91
|
+
* user.
|
|
92
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
93
|
+
*
|
|
94
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a
|
|
95
|
+
* request, as this operation has XSRF protection.
|
|
96
|
+
*
|
|
97
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
98
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
99
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
100
|
+
*
|
|
101
|
+
* @path {POST} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
102
|
+
* @scopes-current write:confluence-content
|
|
103
|
+
* @scopes-beta write:watcher:confluence
|
|
104
|
+
*/
|
|
105
|
+
addSpaceWatcher({ spaceKey, key, username, accountId, xAtlassianToken, }) {
|
|
106
|
+
return this.getClientInstance()
|
|
107
|
+
.request({
|
|
108
|
+
path: "/wiki/rest/api/user/watch/space/{spaceKey}",
|
|
109
|
+
method: "POST",
|
|
110
|
+
pathParams: {
|
|
111
|
+
spaceKey,
|
|
112
|
+
},
|
|
113
|
+
query: {
|
|
114
|
+
key,
|
|
115
|
+
username,
|
|
116
|
+
accountId,
|
|
117
|
+
},
|
|
118
|
+
headers: {
|
|
119
|
+
"X-Atlassian-Token": xAtlassianToken,
|
|
120
|
+
},
|
|
121
|
+
})
|
|
122
|
+
.then(commonHttpClient.discardResult);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Returns whether a user is watching a piece of content. Choose the user by
|
|
126
|
+
* doing one of the following:
|
|
127
|
+
*
|
|
128
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
129
|
+
* user.
|
|
130
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
131
|
+
*
|
|
132
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
133
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
134
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
135
|
+
*
|
|
136
|
+
* @returns Returned if the requested watch status is returned.
|
|
137
|
+
* @path {GET} /wiki/rest/api/user/watch/content/{contentId}
|
|
138
|
+
* @scopes-current read:confluence-content.summary
|
|
139
|
+
* @scopes-beta read:watcher:confluence
|
|
140
|
+
*/
|
|
141
|
+
getContentWatchStatus({ contentId, key, username, accountId, }) {
|
|
142
|
+
return this.getClientInstance()
|
|
143
|
+
.request({
|
|
144
|
+
path: "/wiki/rest/api/user/watch/content/{contentId}",
|
|
145
|
+
method: "GET",
|
|
146
|
+
pathParams: {
|
|
147
|
+
contentId,
|
|
148
|
+
},
|
|
149
|
+
query: {
|
|
150
|
+
key,
|
|
151
|
+
username,
|
|
152
|
+
accountId,
|
|
153
|
+
},
|
|
154
|
+
})
|
|
155
|
+
.then(this.getClientInstance().responseHandler({
|
|
156
|
+
200: {
|
|
157
|
+
"application/json": "json",
|
|
158
|
+
},
|
|
159
|
+
}))
|
|
160
|
+
.then(commonHttpClient.castResponse())
|
|
161
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getContentWatchStatus.response"))
|
|
162
|
+
.then(commonHttpClient.getBody);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Returns a list of watchers of a space
|
|
166
|
+
*
|
|
167
|
+
* @returns Returned if watchers list is returned.
|
|
168
|
+
* @path {GET} /wiki/rest/api/space/{spaceKey}/watch
|
|
169
|
+
* @scopes-current read:watcher:confluence, read:user:confluence
|
|
170
|
+
*/
|
|
171
|
+
getWatchersForSpace({ spaceKey, start, limit, }) {
|
|
172
|
+
return this.getClientInstance()
|
|
173
|
+
.request({
|
|
174
|
+
path: "/wiki/rest/api/space/{spaceKey}/watch",
|
|
175
|
+
method: "GET",
|
|
176
|
+
pathParams: {
|
|
177
|
+
spaceKey,
|
|
178
|
+
},
|
|
179
|
+
query: {
|
|
180
|
+
start,
|
|
181
|
+
limit,
|
|
182
|
+
},
|
|
183
|
+
})
|
|
184
|
+
.then(this.getClientInstance().responseHandler({
|
|
185
|
+
200: {
|
|
186
|
+
"application/json": "json",
|
|
187
|
+
},
|
|
188
|
+
}))
|
|
189
|
+
.then(commonHttpClient.castResponse())
|
|
190
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getWatchersForSpace.response"))
|
|
191
|
+
.then(commonHttpClient.getBody);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Returns the watches for a page. A user that watches a page will receive
|
|
195
|
+
* receive notifications when the page is updated.
|
|
196
|
+
*
|
|
197
|
+
* If you want to manage watches for a page, use the following `user` methods:
|
|
198
|
+
*
|
|
199
|
+
* - [Get content watch status for user](#api-user-watch-content-contentId-get)
|
|
200
|
+
* - [Add content watch](#api-user-watch-content-contentId-post)
|
|
201
|
+
* - [Remove content watch](#api-user-watch-content-contentId-delete)
|
|
202
|
+
*
|
|
203
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
204
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
205
|
+
*
|
|
206
|
+
* @returns Returned if the requested watches are returned.
|
|
207
|
+
* @path {GET} /wiki/rest/api/content/{id}/notification/child-created
|
|
208
|
+
* @scopes-current read:confluence-content.summary
|
|
209
|
+
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
210
|
+
*/
|
|
211
|
+
getWatchesForPage({ id, start, limit, }) {
|
|
212
|
+
return this.getClientInstance()
|
|
213
|
+
.request({
|
|
214
|
+
path: "/wiki/rest/api/content/{id}/notification/child-created",
|
|
215
|
+
method: "GET",
|
|
216
|
+
pathParams: {
|
|
217
|
+
id,
|
|
218
|
+
},
|
|
219
|
+
query: {
|
|
220
|
+
start,
|
|
221
|
+
limit,
|
|
222
|
+
},
|
|
223
|
+
})
|
|
224
|
+
.then(this.getClientInstance().responseHandler({
|
|
225
|
+
200: {
|
|
226
|
+
"application/json": "json",
|
|
227
|
+
},
|
|
228
|
+
}))
|
|
229
|
+
.then(commonHttpClient.castResponse())
|
|
230
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getWatchesForPage.response"))
|
|
231
|
+
.then(commonHttpClient.getBody);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Returns all space watches for the space that the content is in. A user that
|
|
235
|
+
* watches a space will receive receive notifications when any content in the
|
|
236
|
+
* space is updated.
|
|
237
|
+
*
|
|
238
|
+
* If you want to manage watches for a space, use the following `user` methods:
|
|
239
|
+
*
|
|
240
|
+
* - [Get space watch status for user](#api-user-watch-space-spaceKey-get)
|
|
241
|
+
* - [Add space watch](#api-user-watch-space-spaceKey-post)
|
|
242
|
+
* - [Remove space watch](#api-user-watch-space-spaceKey-delete)
|
|
243
|
+
*
|
|
244
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
245
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
246
|
+
*
|
|
247
|
+
* @returns Returned if the requested watches are returned.
|
|
248
|
+
* @path {GET} /wiki/rest/api/content/{id}/notification/created
|
|
249
|
+
* @scopes-current read:confluence-content.summary
|
|
250
|
+
* @scopes-beta read:watcher:confluence, read:user:confluence
|
|
251
|
+
*/
|
|
252
|
+
getWatchesForSpace({ id, start, limit, }) {
|
|
253
|
+
return this.getClientInstance()
|
|
254
|
+
.request({
|
|
255
|
+
path: "/wiki/rest/api/content/{id}/notification/created",
|
|
256
|
+
method: "GET",
|
|
257
|
+
pathParams: {
|
|
258
|
+
id,
|
|
259
|
+
},
|
|
260
|
+
query: {
|
|
261
|
+
start,
|
|
262
|
+
limit,
|
|
263
|
+
},
|
|
264
|
+
})
|
|
265
|
+
.then(this.getClientInstance().responseHandler({
|
|
266
|
+
200: {
|
|
267
|
+
"application/json": "json",
|
|
268
|
+
},
|
|
269
|
+
}))
|
|
270
|
+
.then(commonHttpClient.castResponse())
|
|
271
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.getWatchesForSpace.response"))
|
|
272
|
+
.then(commonHttpClient.getBody);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Returns whether a user is watching a label. Choose the user by doing one
|
|
276
|
+
* of the following:
|
|
277
|
+
*
|
|
278
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
279
|
+
* user.
|
|
280
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
281
|
+
*
|
|
282
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
283
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
284
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
285
|
+
*
|
|
286
|
+
* @returns Returned if the requested watch status is returned.
|
|
287
|
+
* @path {GET} /wiki/rest/api/user/watch/label/{labelName}
|
|
288
|
+
* @scopes-current read:confluence-content.summary
|
|
289
|
+
* @scopes-beta read:watcher:confluence
|
|
290
|
+
*/
|
|
291
|
+
isWatchingLabel({ labelName, key, username, accountId, }) {
|
|
292
|
+
return this.getClientInstance()
|
|
293
|
+
.request({
|
|
294
|
+
path: "/wiki/rest/api/user/watch/label/{labelName}",
|
|
295
|
+
method: "GET",
|
|
296
|
+
pathParams: {
|
|
297
|
+
labelName,
|
|
298
|
+
},
|
|
299
|
+
query: {
|
|
300
|
+
key,
|
|
301
|
+
username,
|
|
302
|
+
accountId,
|
|
303
|
+
},
|
|
304
|
+
})
|
|
305
|
+
.then(this.getClientInstance().responseHandler({
|
|
306
|
+
200: {
|
|
307
|
+
"application/json": "json",
|
|
308
|
+
},
|
|
309
|
+
}))
|
|
310
|
+
.then(commonHttpClient.castResponse())
|
|
311
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.isWatchingLabel.response"))
|
|
312
|
+
.then(commonHttpClient.getBody);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Returns whether a user is watching a space. Choose the user by
|
|
316
|
+
* doing one of the following:
|
|
317
|
+
*
|
|
318
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
319
|
+
* user.
|
|
320
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
321
|
+
*
|
|
322
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
323
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
324
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
325
|
+
*
|
|
326
|
+
* @returns Returned if the requested watch status is returned.
|
|
327
|
+
* @path {GET} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
328
|
+
* @scopes-current read:confluence-content.summary
|
|
329
|
+
* @scopes-beta read:watcher:confluence
|
|
330
|
+
*/
|
|
331
|
+
isWatchingSpace({ spaceKey, key, username, accountId, }) {
|
|
332
|
+
return this.getClientInstance()
|
|
333
|
+
.request({
|
|
334
|
+
path: "/wiki/rest/api/user/watch/space/{spaceKey}",
|
|
335
|
+
method: "GET",
|
|
336
|
+
pathParams: {
|
|
337
|
+
spaceKey,
|
|
338
|
+
},
|
|
339
|
+
query: {
|
|
340
|
+
key,
|
|
341
|
+
username,
|
|
342
|
+
accountId,
|
|
343
|
+
},
|
|
344
|
+
})
|
|
345
|
+
.then(this.getClientInstance().responseHandler({
|
|
346
|
+
200: {
|
|
347
|
+
"application/json": "json",
|
|
348
|
+
},
|
|
349
|
+
}))
|
|
350
|
+
.then(commonHttpClient.castResponse())
|
|
351
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentWatchesService.isWatchingSpace.response"))
|
|
352
|
+
.then(commonHttpClient.getBody);
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Removes a user as a watcher from a piece of content. Choose the user by
|
|
356
|
+
* doing one of the following:
|
|
357
|
+
*
|
|
358
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
359
|
+
* user.
|
|
360
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
361
|
+
*
|
|
362
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
363
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
364
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
365
|
+
*
|
|
366
|
+
* @path {DELETE} /wiki/rest/api/user/watch/content/{contentId}
|
|
367
|
+
* @scopes-current write:confluence-content
|
|
368
|
+
* @scopes-beta write:watcher:confluence
|
|
369
|
+
*/
|
|
370
|
+
removeContentWatcher({ contentId, key, username, accountId, xAtlassianToken, }) {
|
|
371
|
+
return this.getClientInstance()
|
|
372
|
+
.request({
|
|
373
|
+
path: "/wiki/rest/api/user/watch/content/{contentId}",
|
|
374
|
+
method: "DELETE",
|
|
375
|
+
pathParams: {
|
|
376
|
+
contentId,
|
|
377
|
+
},
|
|
378
|
+
query: {
|
|
379
|
+
key,
|
|
380
|
+
username,
|
|
381
|
+
accountId,
|
|
382
|
+
},
|
|
383
|
+
headers: {
|
|
384
|
+
"X-Atlassian-Token": xAtlassianToken,
|
|
385
|
+
},
|
|
386
|
+
})
|
|
387
|
+
.then(commonHttpClient.discardResult);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Removes a user as a watcher from a label. Choose the user by doing one of
|
|
391
|
+
* the following:
|
|
392
|
+
*
|
|
393
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
394
|
+
* user.
|
|
395
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
396
|
+
*
|
|
397
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
398
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
399
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
400
|
+
*
|
|
401
|
+
* @path {DELETE} /wiki/rest/api/user/watch/label/{labelName}
|
|
402
|
+
* @scopes-current write:confluence-content
|
|
403
|
+
* @scopes-beta write:watcher:confluence
|
|
404
|
+
*/
|
|
405
|
+
removeLabelWatcher({ labelName, key, username, accountId, }) {
|
|
406
|
+
return this.getClientInstance()
|
|
407
|
+
.request({
|
|
408
|
+
path: "/wiki/rest/api/user/watch/label/{labelName}",
|
|
409
|
+
method: "DELETE",
|
|
410
|
+
pathParams: {
|
|
411
|
+
labelName,
|
|
412
|
+
},
|
|
413
|
+
query: {
|
|
414
|
+
key,
|
|
415
|
+
username,
|
|
416
|
+
accountId,
|
|
417
|
+
},
|
|
418
|
+
})
|
|
419
|
+
.then(commonHttpClient.discardResult);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Removes a user as a watcher from a space. Choose the user by doing one of
|
|
423
|
+
* the following:
|
|
424
|
+
*
|
|
425
|
+
* - Specify a user via a query parameter: Use the `accountId` to identify the
|
|
426
|
+
* user.
|
|
427
|
+
* - Do not specify a user: The currently logged-in user will be used.
|
|
428
|
+
*
|
|
429
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
430
|
+
* 'Confluence Administrator' global permission if specifying a user, otherwise
|
|
431
|
+
* permission to access the Confluence site ('Can use' global permission).
|
|
432
|
+
*
|
|
433
|
+
* @path {DELETE} /wiki/rest/api/user/watch/space/{spaceKey}
|
|
434
|
+
* @scopes-current write:confluence-content
|
|
435
|
+
* @scopes-beta write:watcher:confluence
|
|
436
|
+
*/
|
|
437
|
+
removeSpaceWatch({ spaceKey, key, username, accountId, }) {
|
|
438
|
+
return this.getClientInstance()
|
|
439
|
+
.request({
|
|
440
|
+
path: "/wiki/rest/api/user/watch/space/{spaceKey}",
|
|
441
|
+
method: "DELETE",
|
|
442
|
+
pathParams: {
|
|
443
|
+
spaceKey,
|
|
444
|
+
},
|
|
445
|
+
query: {
|
|
446
|
+
key,
|
|
447
|
+
username,
|
|
448
|
+
accountId,
|
|
449
|
+
},
|
|
450
|
+
})
|
|
451
|
+
.then(commonHttpClient.discardResult);
|
|
452
|
+
}
|
|
453
|
+
static initialize() {
|
|
454
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentWatchesService.getWatchesForPage.response", zod_1.z
|
|
455
|
+
.object({
|
|
456
|
+
status: zod_1.z.literal(200),
|
|
457
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
458
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("WatchArray"),
|
|
459
|
+
})
|
|
460
|
+
.describe("ContentWatchesService.getWatchesForPage.response"));
|
|
461
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentWatchesService.getWatchesForSpace.response", zod_1.z
|
|
462
|
+
.object({
|
|
463
|
+
status: zod_1.z.literal(200),
|
|
464
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
465
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SpaceWatchArray"),
|
|
466
|
+
})
|
|
467
|
+
.describe("ContentWatchesService.getWatchesForSpace.response"));
|
|
468
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentWatchesService.getWatchersForSpace.response", zod_1.z
|
|
469
|
+
.object({
|
|
470
|
+
status: zod_1.z.literal(200),
|
|
471
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
472
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SpaceWatchArray"),
|
|
473
|
+
})
|
|
474
|
+
.describe("ContentWatchesService.getWatchersForSpace.response"));
|
|
475
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentWatchesService.getContentWatchStatus.response", zod_1.z
|
|
476
|
+
.object({
|
|
477
|
+
status: zod_1.z.literal(200),
|
|
478
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
479
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserWatch"),
|
|
480
|
+
})
|
|
481
|
+
.describe("ContentWatchesService.getContentWatchStatus.response"));
|
|
482
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentWatchesService.isWatchingLabel.response", zod_1.z
|
|
483
|
+
.object({
|
|
484
|
+
status: zod_1.z.literal(200),
|
|
485
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
486
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserWatch"),
|
|
487
|
+
})
|
|
488
|
+
.describe("ContentWatchesService.isWatchingLabel.response"));
|
|
489
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentWatchesService.isWatchingSpace.response", zod_1.z
|
|
490
|
+
.object({
|
|
491
|
+
status: zod_1.z.literal(200),
|
|
492
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
493
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserWatch"),
|
|
494
|
+
})
|
|
495
|
+
.describe("ContentWatchesService.isWatchingSpace.response"));
|
|
496
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
497
|
+
contentWatches_1.registerContentWatchesValidationSchemas,
|
|
498
|
+
]);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
exports.ContentWatchesService = ContentWatchesService;
|
|
502
|
+
//# sourceMappingURL=ContentWatchesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentWatchesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentWatchesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD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,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC;SAChD,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,gDAAgD,EAChD,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,WAAW,CAAC;SAChD,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wDAAuC;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AA38BD,sDA28BC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
|
+
import { type ConnectModules } from "../models/dynamicModules";
|
|
3
|
+
export declare class DynamicModulesService extends CommonHttpService {
|
|
4
|
+
/**
|
|
5
|
+
* Returns all modules registered dynamically by the calling app.
|
|
6
|
+
*
|
|
7
|
+
* **[Permissions](#permissions) required:** Only Connect apps can make this
|
|
8
|
+
* request.
|
|
9
|
+
*
|
|
10
|
+
* @returns Returned if the request is successful.
|
|
11
|
+
* @path {GET} /atlassian-connect/1/app/module/dynamic
|
|
12
|
+
*/
|
|
13
|
+
getModules(): Promise<Blob>;
|
|
14
|
+
/**
|
|
15
|
+
* Registers a list of modules. For the list of modules that support dynamic
|
|
16
|
+
* registration, see [Dynamic
|
|
17
|
+
* modules](https://developer.atlassian.com/cloud/confluence/dynamic-modules/).
|
|
18
|
+
*
|
|
19
|
+
* **[Permissions](#permissions) required:** Only Connect apps can make this
|
|
20
|
+
* request.
|
|
21
|
+
*
|
|
22
|
+
* @path {POST} /atlassian-connect/1/app/module/dynamic
|
|
23
|
+
*/
|
|
24
|
+
registerModules({ mediaType, connectModules, }: {
|
|
25
|
+
mediaType: string;
|
|
26
|
+
connectModules: ConnectModules;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Remove all or a list of modules registered by the calling app.
|
|
30
|
+
*
|
|
31
|
+
* **[Permissions](#permissions) required:** Only Connect apps can make this
|
|
32
|
+
* request.
|
|
33
|
+
*
|
|
34
|
+
* @path {DELETE} /atlassian-connect/1/app/module/dynamic
|
|
35
|
+
*/
|
|
36
|
+
removeModules({ moduleKey, }: {
|
|
37
|
+
/**
|
|
38
|
+
* The key of the module to remove. To include multiple module keys, provide
|
|
39
|
+
* multiple copies of this parameter.
|
|
40
|
+
* For example,
|
|
41
|
+
* `moduleKey=dynamic-attachment-entity-property&moduleKey=dynamic-select-field`.
|
|
42
|
+
* Nonexistent keys are ignored.
|
|
43
|
+
*/
|
|
44
|
+
moduleKey: string[];
|
|
45
|
+
}): Promise<void>;
|
|
46
|
+
static initialize(): void;
|
|
47
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamicModulesService = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const commonHttpClient = require("../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
|
+
const dynamicModules_1 = require("../models/dynamicModules");
|
|
11
|
+
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
class DynamicModulesService extends CommonHttpService_1.CommonHttpService {
|
|
13
|
+
/**
|
|
14
|
+
* Returns all modules registered dynamically by the calling app.
|
|
15
|
+
*
|
|
16
|
+
* **[Permissions](#permissions) required:** Only Connect apps can make this
|
|
17
|
+
* request.
|
|
18
|
+
*
|
|
19
|
+
* @returns Returned if the request is successful.
|
|
20
|
+
* @path {GET} /atlassian-connect/1/app/module/dynamic
|
|
21
|
+
*/
|
|
22
|
+
getModules() {
|
|
23
|
+
return this.getClientInstance()
|
|
24
|
+
.request({
|
|
25
|
+
path: "/atlassian-connect/1/app/module/dynamic",
|
|
26
|
+
method: "GET",
|
|
27
|
+
})
|
|
28
|
+
.then(this.getClientInstance().responseHandler({
|
|
29
|
+
200: {
|
|
30
|
+
"*/*": "blob",
|
|
31
|
+
},
|
|
32
|
+
}))
|
|
33
|
+
.then(commonHttpClient.castResponse())
|
|
34
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("DynamicModulesService.getModules.response"))
|
|
35
|
+
.then(commonHttpClient.getBody);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Registers a list of modules. For the list of modules that support dynamic
|
|
39
|
+
* registration, see [Dynamic
|
|
40
|
+
* modules](https://developer.atlassian.com/cloud/confluence/dynamic-modules/).
|
|
41
|
+
*
|
|
42
|
+
* **[Permissions](#permissions) required:** Only Connect apps can make this
|
|
43
|
+
* request.
|
|
44
|
+
*
|
|
45
|
+
* @path {POST} /atlassian-connect/1/app/module/dynamic
|
|
46
|
+
*/
|
|
47
|
+
registerModules({ mediaType, connectModules, }) {
|
|
48
|
+
return this.getClientInstance()
|
|
49
|
+
.request({
|
|
50
|
+
path: "/atlassian-connect/1/app/module/dynamic",
|
|
51
|
+
method: "POST",
|
|
52
|
+
headers: {
|
|
53
|
+
"Content-Type": mediaType,
|
|
54
|
+
},
|
|
55
|
+
body: connectModules,
|
|
56
|
+
})
|
|
57
|
+
.then(commonHttpClient.discardResult);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Remove all or a list of modules registered by the calling app.
|
|
61
|
+
*
|
|
62
|
+
* **[Permissions](#permissions) required:** Only Connect apps can make this
|
|
63
|
+
* request.
|
|
64
|
+
*
|
|
65
|
+
* @path {DELETE} /atlassian-connect/1/app/module/dynamic
|
|
66
|
+
*/
|
|
67
|
+
removeModules({ moduleKey, }) {
|
|
68
|
+
return this.getClientInstance()
|
|
69
|
+
.request({
|
|
70
|
+
path: "/atlassian-connect/1/app/module/dynamic",
|
|
71
|
+
method: "DELETE",
|
|
72
|
+
query: {
|
|
73
|
+
moduleKey,
|
|
74
|
+
},
|
|
75
|
+
})
|
|
76
|
+
.then(commonHttpClient.discardResult);
|
|
77
|
+
}
|
|
78
|
+
static initialize() {
|
|
79
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("DynamicModulesService.getModules.response", zod_1.z
|
|
80
|
+
.object({
|
|
81
|
+
status: zod_1.z.literal(200),
|
|
82
|
+
mediaType: zod_1.z.string(),
|
|
83
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ConnectModules"),
|
|
84
|
+
})
|
|
85
|
+
.describe("DynamicModulesService.getModules.response"));
|
|
86
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
87
|
+
dynamicModules_1.registerDynamicModulesValidationSchemas,
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.DynamicModulesService = DynamicModulesService;
|
|
92
|
+
//# sourceMappingURL=DynamicModulesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicModulesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/DynamicModulesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6DAGkC;AAClC,wEAAqE;AACrE,MAAa,qBAAsB,SAAQ,qCAAiB;IAC1D;;;;;;;;OAQG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,yCAAyC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