@resolution/confluence-api-client 0.7.12 → 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 +208 -213
- package/README.md +4 -4
- package/lib/openapi/core/CommonHttpClient.d.ts +46 -17
- package/lib/openapi/core/CommonHttpClient.js +175 -232
- 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 +4 -4
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +38 -0
- 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 -4
- package/lib/openapi/v1/models/common.js +188 -464
- 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 +4 -2
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +17 -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 -20
- package/lib/openapi/v1/models/contentStates.js +15 -55
- 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 +33 -27
- 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 +15 -15
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +110 -160
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentCommentsService.js +19 -26
- 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 +18 -18
- package/lib/openapi/v1/services/ContentService.js +143 -211
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +13 -56
- package/lib/openapi/v1/services/ContentStatesService.js +99 -246
- 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 +38 -18
- 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 +5 -5
- package/lib/openapi/v1/services/SearchService.js +32 -46
- 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 +15 -15
- package/lib/openapi/v1/services/SpaceService.js +114 -175
- 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 +3 -1
- 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 +14 -11
- 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 +5 -4
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
2
|
+
import { type ContentArray } from "../models/common";
|
|
3
|
+
import { type ContentState, type ContentStateResponse, type ContentStateRestInput, type AvailableContentStates, type ContentStateSettings } from "../models/contentStates";
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states
|
|
6
6
|
* @category Services
|
|
7
7
|
*/
|
|
8
8
|
export declare class ContentStatesService extends CommonHttpService {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a long running task that Removes content state from draft or published
|
|
11
|
-
* versions of pages specified.
|
|
12
|
-
*
|
|
13
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
14
|
-
* Content Edit Permission for a content to have its state removed via this
|
|
15
|
-
* endpoint.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
* @returns Returned if a task to remove content states is created. Returns the taskId.
|
|
19
|
-
* This task id can be passed into `/wiki/rest/api/content-states/task/{taskId}`
|
|
20
|
-
* @path POST `/wiki/rest/api/content-states/delete`
|
|
21
|
-
* @scopes-current write:confluence-content
|
|
22
|
-
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
23
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-delete-post
|
|
24
|
-
* @param params
|
|
25
|
-
*/
|
|
26
|
-
bulkRemoveContentStates: ({ status, requestBody, }: {
|
|
27
|
-
/** Set status to one of [current,draft]. */
|
|
28
|
-
status: "current" | "draft";
|
|
29
|
-
requestBody: unknown;
|
|
30
|
-
}) => Promise<AsyncId>;
|
|
31
9
|
/**
|
|
32
10
|
* Gets content states that are available for the content to be set as.
|
|
33
11
|
* Will return all enabled Space Content States.
|
|
@@ -45,7 +23,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
45
23
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-available-get
|
|
46
24
|
* @param params
|
|
47
25
|
*/
|
|
48
|
-
getAvailableContentStates: ({ id
|
|
26
|
+
getAvailableContentStates: ({ id }: {
|
|
49
27
|
/** id of content to get available states for */
|
|
50
28
|
id: string;
|
|
51
29
|
}) => Promise<AvailableContentStates>;
|
|
@@ -64,7 +42,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
64
42
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-get
|
|
65
43
|
* @param params
|
|
66
44
|
*/
|
|
67
|
-
getContentState: ({ id, status
|
|
45
|
+
getContentState: ({ id, status }: {
|
|
68
46
|
/** The id of the content whose content state is of interest. */
|
|
69
47
|
id: string;
|
|
70
48
|
/** Set status to one of [current,draft,archived]. Default value is current. */
|
|
@@ -86,16 +64,16 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
86
64
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-settings-get
|
|
87
65
|
* @param params
|
|
88
66
|
*/
|
|
89
|
-
getContentStateSettings: ({ spaceKey
|
|
67
|
+
getContentStateSettings: ({ spaceKey }: {
|
|
90
68
|
/** The key of the space to be queried for its content state settings. */
|
|
91
69
|
spaceKey: string;
|
|
92
70
|
}) => Promise<ContentStateSettings>;
|
|
93
71
|
/**
|
|
94
72
|
* Returns all content that has the provided content state in a space.
|
|
95
73
|
*
|
|
96
|
-
*
|
|
97
|
-
* `body.
|
|
98
|
-
*
|
|
74
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
75
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
76
|
+
* restricted to a maximum value of 25.
|
|
99
77
|
*
|
|
100
78
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
101
79
|
* 'View' permission for the space.
|
|
@@ -107,7 +85,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
107
85
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-content-get
|
|
108
86
|
* @param params
|
|
109
87
|
*/
|
|
110
|
-
getContentsWithState: ({ spaceKey, stateId, expand, limit, start
|
|
88
|
+
getContentsWithState: ({ spaceKey, stateId, expand, limit, start }: {
|
|
111
89
|
/** The key of the space to be queried for its content state settings. */
|
|
112
90
|
spaceKey: string;
|
|
113
91
|
/** The id of the content state to filter content by */
|
|
@@ -150,31 +128,10 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
150
128
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-get
|
|
151
129
|
* @param params
|
|
152
130
|
*/
|
|
153
|
-
getSpaceContentStates: ({ spaceKey
|
|
131
|
+
getSpaceContentStates: ({ spaceKey }: {
|
|
154
132
|
/** The key of the space to be queried for its content state settings. */
|
|
155
133
|
spaceKey: string;
|
|
156
134
|
}) => Promise<ContentState[]>;
|
|
157
|
-
/**
|
|
158
|
-
* Get Status of long running task that was previously created to remove content
|
|
159
|
-
* states from content.
|
|
160
|
-
* User must first create a task by passing in details to the
|
|
161
|
-
* /wiki/rest/api/content-states DELETE endpoint.
|
|
162
|
-
*
|
|
163
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
164
|
-
* Must have created long running task
|
|
165
|
-
*
|
|
166
|
-
* @deprecated
|
|
167
|
-
* @returns Task found. State of task is returned
|
|
168
|
-
* @path GET `/wiki/rest/api/content-states/task/{taskId}`
|
|
169
|
-
* @scopes-current read:confluence-content
|
|
170
|
-
* @scopes-beta read:content:confluence
|
|
171
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-task-taskid-get
|
|
172
|
-
* @param params
|
|
173
|
-
*/
|
|
174
|
-
getTaskUpdate: ({ taskId, }: {
|
|
175
|
-
/** taskId returned by delete requests to /wiki/rest/api/content-states */
|
|
176
|
-
taskId: string;
|
|
177
|
-
}) => Promise<ContentStateBulkSetTaskUpdate>;
|
|
178
135
|
/**
|
|
179
136
|
* Removes the content state of the content specified and creates a new version
|
|
180
137
|
* (publishes the content without changing the body) of the content with the new
|
|
@@ -190,7 +147,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
190
147
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-delete
|
|
191
148
|
* @param params
|
|
192
149
|
*/
|
|
193
|
-
removeContentState: ({ id, status
|
|
150
|
+
removeContentState: ({ id, status }: {
|
|
194
151
|
/** The Id of the content whose content state is to be set. */
|
|
195
152
|
id: string;
|
|
196
153
|
/** status of content state from which to delete state. Can be draft or archived */
|
|
@@ -223,7 +180,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
223
180
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-put
|
|
224
181
|
* @param params
|
|
225
182
|
*/
|
|
226
|
-
setContentState: ({ id, status, contentStateRestInput
|
|
183
|
+
setContentState: ({ id, status, contentStateRestInput }: {
|
|
227
184
|
/** The Id of the content whose content state is to be set. */
|
|
228
185
|
id: string;
|
|
229
186
|
/**
|
|
@@ -232,7 +189,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
232
189
|
* If current, state will be placed onto a new version of the content with same
|
|
233
190
|
* body as previous version.
|
|
234
191
|
*/
|
|
235
|
-
status
|
|
192
|
+
status: "current" | "draft";
|
|
236
193
|
/**
|
|
237
194
|
* Content state fields for state. Pass in id for an existing state, or new name
|
|
238
195
|
* and color for best matching existing state, or new state if allowed in space.
|
|
@@ -4,12 +4,12 @@ exports.ContentStatesService = 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 contentStates_1 = require("../models/contentStates");
|
|
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-states
|
|
15
15
|
* @category Services
|
|
@@ -17,45 +17,6 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
|
17
17
|
class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
|
-
/**
|
|
21
|
-
* Creates a long running task that Removes content state from draft or published
|
|
22
|
-
* versions of pages specified.
|
|
23
|
-
*
|
|
24
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
25
|
-
* Content Edit Permission for a content to have its state removed via this
|
|
26
|
-
* endpoint.
|
|
27
|
-
*
|
|
28
|
-
* @deprecated
|
|
29
|
-
* @returns Returned if a task to remove content states is created. Returns the taskId.
|
|
30
|
-
* This task id can be passed into `/wiki/rest/api/content-states/task/{taskId}`
|
|
31
|
-
* @path POST `/wiki/rest/api/content-states/delete`
|
|
32
|
-
* @scopes-current write:confluence-content
|
|
33
|
-
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
34
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-delete-post
|
|
35
|
-
* @param params
|
|
36
|
-
*/
|
|
37
|
-
this.bulkRemoveContentStates = ({ status, requestBody, }) => {
|
|
38
|
-
return this.getClientInstance()
|
|
39
|
-
.request({
|
|
40
|
-
path: "/wiki/rest/api/content-states/delete",
|
|
41
|
-
method: "POST",
|
|
42
|
-
query: {
|
|
43
|
-
status,
|
|
44
|
-
},
|
|
45
|
-
headers: {
|
|
46
|
-
"Content-Type": "application/json",
|
|
47
|
-
},
|
|
48
|
-
body: requestBody,
|
|
49
|
-
})
|
|
50
|
-
.then(this.getClientInstance().responseHandler({
|
|
51
|
-
200: {
|
|
52
|
-
"application/json": "json",
|
|
53
|
-
},
|
|
54
|
-
}))
|
|
55
|
-
.then(commonHttpClient.castResponse())
|
|
56
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.bulkRemoveContentStates.response")))
|
|
57
|
-
.then(commonHttpClient.getBody);
|
|
58
|
-
};
|
|
59
20
|
/**
|
|
60
21
|
* Gets content states that are available for the content to be set as.
|
|
61
22
|
* Will return all enabled Space Content States.
|
|
@@ -73,23 +34,18 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
73
34
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-available-get
|
|
74
35
|
* @param params
|
|
75
36
|
*/
|
|
76
|
-
this.getAvailableContentStates = ({ id
|
|
77
|
-
return this.getClientInstance()
|
|
78
|
-
.request({
|
|
37
|
+
this.getAvailableContentStates = ({ id }) => {
|
|
38
|
+
return this.getClientInstance().request({
|
|
79
39
|
path: "/wiki/rest/api/content/{id}/state/available",
|
|
80
40
|
method: "GET",
|
|
81
41
|
pathParams: {
|
|
82
|
-
id
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
.then(this.getClientInstance().responseHandler({
|
|
42
|
+
id
|
|
43
|
+
}
|
|
44
|
+
}).then(this.getClientInstance().responseHandler({
|
|
86
45
|
200: {
|
|
87
|
-
"application/json": "json"
|
|
88
|
-
}
|
|
89
|
-
}))
|
|
90
|
-
.then(commonHttpClient.castResponse())
|
|
91
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getAvailableContentStates.response")))
|
|
92
|
-
.then(commonHttpClient.getBody);
|
|
46
|
+
"application/json": "json"
|
|
47
|
+
}
|
|
48
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getAvailableContentStates.response"))).then(commonHttpClient.getBody);
|
|
93
49
|
};
|
|
94
50
|
/**
|
|
95
51
|
* Gets the current content state of the draft or current version of content. To
|
|
@@ -106,26 +62,21 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
106
62
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-get
|
|
107
63
|
* @param params
|
|
108
64
|
*/
|
|
109
|
-
this.getContentState = ({ id, status
|
|
110
|
-
return this.getClientInstance()
|
|
111
|
-
.request({
|
|
65
|
+
this.getContentState = ({ id, status }) => {
|
|
66
|
+
return this.getClientInstance().request({
|
|
112
67
|
path: "/wiki/rest/api/content/{id}/state",
|
|
113
68
|
method: "GET",
|
|
114
69
|
pathParams: {
|
|
115
|
-
id
|
|
70
|
+
id
|
|
116
71
|
},
|
|
117
72
|
query: {
|
|
118
|
-
status
|
|
119
|
-
}
|
|
120
|
-
})
|
|
121
|
-
.then(this.getClientInstance().responseHandler({
|
|
73
|
+
status
|
|
74
|
+
}
|
|
75
|
+
}).then(this.getClientInstance().responseHandler({
|
|
122
76
|
200: {
|
|
123
|
-
"application/json": "json"
|
|
124
|
-
}
|
|
125
|
-
}))
|
|
126
|
-
.then(commonHttpClient.castResponse())
|
|
127
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getContentState.response")))
|
|
128
|
-
.then(commonHttpClient.getBody);
|
|
77
|
+
"application/json": "json"
|
|
78
|
+
}
|
|
79
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getContentState.response"))).then(commonHttpClient.getBody);
|
|
129
80
|
};
|
|
130
81
|
/**
|
|
131
82
|
* Get object describing whether content states are allowed at all, if custom
|
|
@@ -143,30 +94,25 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
143
94
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-settings-get
|
|
144
95
|
* @param params
|
|
145
96
|
*/
|
|
146
|
-
this.getContentStateSettings = ({ spaceKey
|
|
147
|
-
return this.getClientInstance()
|
|
148
|
-
.request({
|
|
97
|
+
this.getContentStateSettings = ({ spaceKey }) => {
|
|
98
|
+
return this.getClientInstance().request({
|
|
149
99
|
path: "/wiki/rest/api/space/{spaceKey}/state/settings",
|
|
150
100
|
method: "GET",
|
|
151
101
|
pathParams: {
|
|
152
|
-
spaceKey
|
|
153
|
-
}
|
|
154
|
-
})
|
|
155
|
-
.then(this.getClientInstance().responseHandler({
|
|
102
|
+
spaceKey
|
|
103
|
+
}
|
|
104
|
+
}).then(this.getClientInstance().responseHandler({
|
|
156
105
|
200: {
|
|
157
|
-
"application/json": "json"
|
|
158
|
-
}
|
|
159
|
-
}))
|
|
160
|
-
.then(commonHttpClient.castResponse())
|
|
161
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getContentStateSettings.response")))
|
|
162
|
-
.then(commonHttpClient.getBody);
|
|
106
|
+
"application/json": "json"
|
|
107
|
+
}
|
|
108
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getContentStateSettings.response"))).then(commonHttpClient.getBody);
|
|
163
109
|
};
|
|
164
110
|
/**
|
|
165
111
|
* Returns all content that has the provided content state in a space.
|
|
166
112
|
*
|
|
167
|
-
*
|
|
168
|
-
* `body.
|
|
169
|
-
*
|
|
113
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
114
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
115
|
+
* restricted to a maximum value of 25.
|
|
170
116
|
*
|
|
171
117
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
172
118
|
* 'View' permission for the space.
|
|
@@ -178,36 +124,31 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
178
124
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-content-get
|
|
179
125
|
* @param params
|
|
180
126
|
*/
|
|
181
|
-
this.getContentsWithState = ({ spaceKey, stateId, expand, limit, start
|
|
182
|
-
return this.getClientInstance()
|
|
183
|
-
.request({
|
|
127
|
+
this.getContentsWithState = ({ spaceKey, stateId, expand, limit, start }) => {
|
|
128
|
+
return this.getClientInstance().request({
|
|
184
129
|
path: "/wiki/rest/api/space/{spaceKey}/state/content",
|
|
185
130
|
method: "GET",
|
|
186
131
|
pathParams: {
|
|
187
|
-
spaceKey
|
|
132
|
+
spaceKey
|
|
188
133
|
},
|
|
189
134
|
query: {
|
|
190
135
|
"state-id": stateId,
|
|
191
136
|
expand,
|
|
192
137
|
limit,
|
|
193
|
-
start
|
|
138
|
+
start
|
|
194
139
|
},
|
|
195
140
|
parameters: {
|
|
196
141
|
query: {
|
|
197
142
|
expand: {
|
|
198
|
-
explode: false
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
})
|
|
203
|
-
.then(this.getClientInstance().responseHandler({
|
|
143
|
+
explode: false
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}).then(this.getClientInstance().responseHandler({
|
|
204
148
|
200: {
|
|
205
|
-
"application/json": "json"
|
|
206
|
-
}
|
|
207
|
-
}))
|
|
208
|
-
.then(commonHttpClient.castResponse())
|
|
209
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getContentsWithState.response")))
|
|
210
|
-
.then(commonHttpClient.getBody);
|
|
149
|
+
"application/json": "json"
|
|
150
|
+
}
|
|
151
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getContentsWithState.response"))).then(commonHttpClient.getBody);
|
|
211
152
|
};
|
|
212
153
|
/**
|
|
213
154
|
* Get custom content states that authenticated user has created.
|
|
@@ -222,19 +163,14 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
222
163
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-get
|
|
223
164
|
*/
|
|
224
165
|
this.getCustomContentStates = () => {
|
|
225
|
-
return this.getClientInstance()
|
|
226
|
-
.request({
|
|
166
|
+
return this.getClientInstance().request({
|
|
227
167
|
path: "/wiki/rest/api/content-states",
|
|
228
|
-
method: "GET"
|
|
229
|
-
})
|
|
230
|
-
.then(this.getClientInstance().responseHandler({
|
|
168
|
+
method: "GET"
|
|
169
|
+
}).then(this.getClientInstance().responseHandler({
|
|
231
170
|
200: {
|
|
232
|
-
"application/json": "json"
|
|
233
|
-
}
|
|
234
|
-
}))
|
|
235
|
-
.then(commonHttpClient.castResponse())
|
|
236
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getCustomContentStates.response")))
|
|
237
|
-
.then(commonHttpClient.getBody);
|
|
171
|
+
"application/json": "json"
|
|
172
|
+
}
|
|
173
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getCustomContentStates.response"))).then(commonHttpClient.getBody);
|
|
238
174
|
};
|
|
239
175
|
/**
|
|
240
176
|
* Get content states that are suggested in the space.
|
|
@@ -249,58 +185,18 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
249
185
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-space-spacekey-state-get
|
|
250
186
|
* @param params
|
|
251
187
|
*/
|
|
252
|
-
this.getSpaceContentStates = ({ spaceKey
|
|
253
|
-
return this.getClientInstance()
|
|
254
|
-
.request({
|
|
188
|
+
this.getSpaceContentStates = ({ spaceKey }) => {
|
|
189
|
+
return this.getClientInstance().request({
|
|
255
190
|
path: "/wiki/rest/api/space/{spaceKey}/state",
|
|
256
191
|
method: "GET",
|
|
257
192
|
pathParams: {
|
|
258
|
-
spaceKey
|
|
259
|
-
}
|
|
260
|
-
})
|
|
261
|
-
.then(this.getClientInstance().responseHandler({
|
|
262
|
-
200: {
|
|
263
|
-
"application/json": "json",
|
|
264
|
-
},
|
|
265
|
-
}))
|
|
266
|
-
.then(commonHttpClient.castResponse())
|
|
267
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getSpaceContentStates.response")))
|
|
268
|
-
.then(commonHttpClient.getBody);
|
|
269
|
-
};
|
|
270
|
-
/**
|
|
271
|
-
* Get Status of long running task that was previously created to remove content
|
|
272
|
-
* states from content.
|
|
273
|
-
* User must first create a task by passing in details to the
|
|
274
|
-
* /wiki/rest/api/content-states DELETE endpoint.
|
|
275
|
-
*
|
|
276
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
277
|
-
* Must have created long running task
|
|
278
|
-
*
|
|
279
|
-
* @deprecated
|
|
280
|
-
* @returns Task found. State of task is returned
|
|
281
|
-
* @path GET `/wiki/rest/api/content-states/task/{taskId}`
|
|
282
|
-
* @scopes-current read:confluence-content
|
|
283
|
-
* @scopes-beta read:content:confluence
|
|
284
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-task-taskid-get
|
|
285
|
-
* @param params
|
|
286
|
-
*/
|
|
287
|
-
this.getTaskUpdate = ({ taskId, }) => {
|
|
288
|
-
return this.getClientInstance()
|
|
289
|
-
.request({
|
|
290
|
-
path: "/wiki/rest/api/content-states/task/{taskId}",
|
|
291
|
-
method: "GET",
|
|
292
|
-
pathParams: {
|
|
293
|
-
taskId,
|
|
294
|
-
},
|
|
295
|
-
})
|
|
296
|
-
.then(this.getClientInstance().responseHandler({
|
|
193
|
+
spaceKey
|
|
194
|
+
}
|
|
195
|
+
}).then(this.getClientInstance().responseHandler({
|
|
297
196
|
200: {
|
|
298
|
-
"application/json": "json"
|
|
299
|
-
}
|
|
300
|
-
}))
|
|
301
|
-
.then(commonHttpClient.castResponse())
|
|
302
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getTaskUpdate.response")))
|
|
303
|
-
.then(commonHttpClient.getBody);
|
|
197
|
+
"application/json": "json"
|
|
198
|
+
}
|
|
199
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getSpaceContentStates.response"))).then(commonHttpClient.getBody);
|
|
304
200
|
};
|
|
305
201
|
/**
|
|
306
202
|
* Removes the content state of the content specified and creates a new version
|
|
@@ -317,26 +213,21 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
317
213
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-delete
|
|
318
214
|
* @param params
|
|
319
215
|
*/
|
|
320
|
-
this.removeContentState = ({ id, status
|
|
321
|
-
return this.getClientInstance()
|
|
322
|
-
.request({
|
|
216
|
+
this.removeContentState = ({ id, status }) => {
|
|
217
|
+
return this.getClientInstance().request({
|
|
323
218
|
path: "/wiki/rest/api/content/{id}/state",
|
|
324
219
|
method: "DELETE",
|
|
325
220
|
pathParams: {
|
|
326
|
-
id
|
|
221
|
+
id
|
|
327
222
|
},
|
|
328
223
|
query: {
|
|
329
|
-
status
|
|
330
|
-
}
|
|
331
|
-
})
|
|
332
|
-
.then(this.getClientInstance().responseHandler({
|
|
224
|
+
status
|
|
225
|
+
}
|
|
226
|
+
}).then(this.getClientInstance().responseHandler({
|
|
333
227
|
200: {
|
|
334
|
-
"application/json": "json"
|
|
335
|
-
}
|
|
336
|
-
}))
|
|
337
|
-
.then(commonHttpClient.castResponse())
|
|
338
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.removeContentState.response")))
|
|
339
|
-
.then(commonHttpClient.getBody);
|
|
228
|
+
"application/json": "json"
|
|
229
|
+
}
|
|
230
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.removeContentState.response"))).then(commonHttpClient.getBody);
|
|
340
231
|
};
|
|
341
232
|
/**
|
|
342
233
|
* Sets the content state of the content specified and creates a new version
|
|
@@ -365,107 +256,69 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
365
256
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-id-state-put
|
|
366
257
|
* @param params
|
|
367
258
|
*/
|
|
368
|
-
this.setContentState = ({ id, status, contentStateRestInput
|
|
369
|
-
return this.getClientInstance()
|
|
370
|
-
.request({
|
|
259
|
+
this.setContentState = ({ id, status, contentStateRestInput }) => {
|
|
260
|
+
return this.getClientInstance().request({
|
|
371
261
|
path: "/wiki/rest/api/content/{id}/state",
|
|
372
262
|
method: "PUT",
|
|
373
263
|
pathParams: {
|
|
374
|
-
id
|
|
264
|
+
id
|
|
375
265
|
},
|
|
376
266
|
query: {
|
|
377
|
-
status
|
|
267
|
+
status
|
|
378
268
|
},
|
|
379
269
|
headers: {
|
|
380
|
-
"Content-Type": "application/json"
|
|
270
|
+
"Content-Type": "application/json"
|
|
381
271
|
},
|
|
382
|
-
body: contentStateRestInput
|
|
383
|
-
})
|
|
384
|
-
.then(this.getClientInstance().responseHandler({
|
|
272
|
+
body: contentStateRestInput
|
|
273
|
+
}).then(this.getClientInstance().responseHandler({
|
|
385
274
|
200: {
|
|
386
|
-
"application/json": "json"
|
|
387
|
-
}
|
|
388
|
-
}))
|
|
389
|
-
.then(commonHttpClient.castResponse())
|
|
390
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.setContentState.response")))
|
|
391
|
-
.then(commonHttpClient.getBody);
|
|
275
|
+
"application/json": "json"
|
|
276
|
+
}
|
|
277
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.setContentState.response"))).then(commonHttpClient.getBody);
|
|
392
278
|
};
|
|
393
279
|
}
|
|
394
280
|
static initialize() {
|
|
395
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getCustomContentStates.response", zod_1.z
|
|
396
|
-
.object({
|
|
397
|
-
status: zod_1.z.literal(200),
|
|
398
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
399
|
-
body: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentState")),
|
|
400
|
-
})
|
|
401
|
-
.describe("ContentStatesService.getCustomContentStates.response"));
|
|
402
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.bulkRemoveContentStates.response", zod_1.z
|
|
403
|
-
.object({
|
|
404
|
-
status: zod_1.z.literal(200),
|
|
405
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
406
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("AsyncId"),
|
|
407
|
-
})
|
|
408
|
-
.describe("ContentStatesService.bulkRemoveContentStates.response"));
|
|
409
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getTaskUpdate.response", zod_1.z
|
|
410
|
-
.object({
|
|
281
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getCustomContentStates.response", zod_1.z.object({
|
|
411
282
|
status: zod_1.z.literal(200),
|
|
412
283
|
mediaType: zod_1.z.literal("application/json"),
|
|
413
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("
|
|
414
|
-
})
|
|
415
|
-
|
|
416
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getContentState.response", zod_1.z
|
|
417
|
-
.object({
|
|
284
|
+
body: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentState"))
|
|
285
|
+
}).describe("ContentStatesService.getCustomContentStates.response"));
|
|
286
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getContentState.response", zod_1.z.object({
|
|
418
287
|
status: zod_1.z.literal(200),
|
|
419
288
|
mediaType: zod_1.z.literal("application/json"),
|
|
420
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateResponse")
|
|
421
|
-
})
|
|
422
|
-
|
|
423
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.setContentState.response", zod_1.z
|
|
424
|
-
.object({
|
|
289
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateResponse")
|
|
290
|
+
}).describe("ContentStatesService.getContentState.response"));
|
|
291
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.setContentState.response", zod_1.z.object({
|
|
425
292
|
status: zod_1.z.literal(200),
|
|
426
293
|
mediaType: zod_1.z.literal("application/json"),
|
|
427
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateResponse")
|
|
428
|
-
})
|
|
429
|
-
|
|
430
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.removeContentState.response", zod_1.z
|
|
431
|
-
.object({
|
|
294
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateResponse")
|
|
295
|
+
}).describe("ContentStatesService.setContentState.response"));
|
|
296
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.removeContentState.response", zod_1.z.object({
|
|
432
297
|
status: zod_1.z.literal(200),
|
|
433
298
|
mediaType: zod_1.z.literal("application/json"),
|
|
434
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateResponse")
|
|
435
|
-
})
|
|
436
|
-
|
|
437
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getAvailableContentStates.response", zod_1.z
|
|
438
|
-
.object({
|
|
299
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateResponse")
|
|
300
|
+
}).describe("ContentStatesService.removeContentState.response"));
|
|
301
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getAvailableContentStates.response", zod_1.z.object({
|
|
439
302
|
status: zod_1.z.literal(200),
|
|
440
303
|
mediaType: zod_1.z.literal("application/json"),
|
|
441
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("AvailableContentStates")
|
|
442
|
-
})
|
|
443
|
-
|
|
444
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getSpaceContentStates.response", zod_1.z
|
|
445
|
-
.object({
|
|
304
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("AvailableContentStates")
|
|
305
|
+
}).describe("ContentStatesService.getAvailableContentStates.response"));
|
|
306
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getSpaceContentStates.response", zod_1.z.object({
|
|
446
307
|
status: zod_1.z.literal(200),
|
|
447
308
|
mediaType: zod_1.z.literal("application/json"),
|
|
448
|
-
body: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentState"))
|
|
449
|
-
})
|
|
450
|
-
|
|
451
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getContentsWithState.response", zod_1.z
|
|
452
|
-
.object({
|
|
309
|
+
body: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentState"))
|
|
310
|
+
}).describe("ContentStatesService.getSpaceContentStates.response"));
|
|
311
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getContentsWithState.response", zod_1.z.object({
|
|
453
312
|
status: zod_1.z.literal(200),
|
|
454
313
|
mediaType: zod_1.z.literal("application/json"),
|
|
455
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
456
|
-
})
|
|
457
|
-
|
|
458
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getContentStateSettings.response", zod_1.z
|
|
459
|
-
.object({
|
|
314
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
315
|
+
}).describe("ContentStatesService.getContentsWithState.response"));
|
|
316
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getContentStateSettings.response", zod_1.z.object({
|
|
460
317
|
status: zod_1.z.literal(200),
|
|
461
318
|
mediaType: zod_1.z.literal("application/json"),
|
|
462
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateSettings")
|
|
463
|
-
})
|
|
464
|
-
|
|
465
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
466
|
-
contentStates_1.registerContentStatesValidationSchemas,
|
|
467
|
-
common_1.registerCommonValidationSchemas,
|
|
468
|
-
]);
|
|
319
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateSettings")
|
|
320
|
+
}).describe("ContentStatesService.getContentStateSettings.response"));
|
|
321
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([contentStates_1.registerContentStatesValidationSchemas, common_1.registerCommonValidationSchemas]);
|
|
469
322
|
}
|
|
470
323
|
}
|
|
471
324
|
exports.ContentStatesService = ContentStatesService;
|