@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
|
@@ -4,11 +4,12 @@ exports.ContentChildrenAndDescendantsService = 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");
|
|
10
|
+
const contentChildrenAndDescendants_1 = require("../models/contentChildrenAndDescendants");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
const zod_1 = require("zod");
|
|
12
13
|
/**
|
|
13
14
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants
|
|
14
15
|
* @category Services
|
|
@@ -42,37 +43,32 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
42
43
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-copy-post
|
|
43
44
|
* @param params
|
|
44
45
|
*/
|
|
45
|
-
this.copyPage = ({ id, expand, copyPageRequest
|
|
46
|
-
return this.getClientInstance()
|
|
47
|
-
.request({
|
|
46
|
+
this.copyPage = ({ id, expand, copyPageRequest }) => {
|
|
47
|
+
return this.getClientInstance().request({
|
|
48
48
|
path: "/wiki/rest/api/content/{id}/copy",
|
|
49
49
|
method: "POST",
|
|
50
50
|
pathParams: {
|
|
51
|
-
id
|
|
51
|
+
id
|
|
52
52
|
},
|
|
53
53
|
query: {
|
|
54
|
-
expand
|
|
54
|
+
expand
|
|
55
55
|
},
|
|
56
56
|
headers: {
|
|
57
|
-
"Content-Type": "application/json"
|
|
57
|
+
"Content-Type": "application/json"
|
|
58
58
|
},
|
|
59
59
|
parameters: {
|
|
60
60
|
query: {
|
|
61
61
|
expand: {
|
|
62
|
-
explode: false
|
|
63
|
-
}
|
|
64
|
-
}
|
|
62
|
+
explode: false
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
65
|
},
|
|
66
|
-
body: copyPageRequest
|
|
67
|
-
})
|
|
68
|
-
.then(this.getClientInstance().responseHandler({
|
|
66
|
+
body: copyPageRequest
|
|
67
|
+
}).then(this.getClientInstance().responseHandler({
|
|
69
68
|
200: {
|
|
70
|
-
"application/json;charset=UTF-8": "json"
|
|
71
|
-
}
|
|
72
|
-
}))
|
|
73
|
-
.then(commonHttpClient.castResponse())
|
|
74
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.copyPage.response")))
|
|
75
|
-
.then(commonHttpClient.getBody);
|
|
69
|
+
"application/json;charset=UTF-8": "json"
|
|
70
|
+
}
|
|
71
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.copyPage.response"))).then(commonHttpClient.getBody);
|
|
76
72
|
};
|
|
77
73
|
/**
|
|
78
74
|
* Copy page hierarchy allows the copying of an entire hierarchy of pages and
|
|
@@ -104,27 +100,22 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
104
100
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-pagehierarchy-copy-post
|
|
105
101
|
* @param params
|
|
106
102
|
*/
|
|
107
|
-
this.copyPageHierarchy = ({ id, copyPageHierarchyRequest
|
|
108
|
-
return this.getClientInstance()
|
|
109
|
-
.request({
|
|
103
|
+
this.copyPageHierarchy = ({ id, copyPageHierarchyRequest }) => {
|
|
104
|
+
return this.getClientInstance().request({
|
|
110
105
|
path: "/wiki/rest/api/content/{id}/pagehierarchy/copy",
|
|
111
106
|
method: "POST",
|
|
112
107
|
pathParams: {
|
|
113
|
-
id
|
|
108
|
+
id
|
|
114
109
|
},
|
|
115
110
|
headers: {
|
|
116
|
-
"Content-Type": "application/json"
|
|
111
|
+
"Content-Type": "application/json"
|
|
117
112
|
},
|
|
118
|
-
body: copyPageHierarchyRequest
|
|
119
|
-
})
|
|
120
|
-
.then(this.getClientInstance().responseHandler({
|
|
113
|
+
body: copyPageHierarchyRequest
|
|
114
|
+
}).then(this.getClientInstance().responseHandler({
|
|
121
115
|
202: {
|
|
122
|
-
"application/json": "json"
|
|
123
|
-
}
|
|
124
|
-
}))
|
|
125
|
-
.then(commonHttpClient.castResponse())
|
|
126
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.copyPageHierarchy.response")))
|
|
127
|
-
.then(commonHttpClient.getBody);
|
|
116
|
+
"application/json": "json"
|
|
117
|
+
}
|
|
118
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.copyPageHierarchy.response"))).then(commonHttpClient.getBody);
|
|
128
119
|
};
|
|
129
120
|
/**
|
|
130
121
|
* Deprecated, use [Confluence's v2
|
|
@@ -167,34 +158,29 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
167
158
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-get
|
|
168
159
|
* @param params
|
|
169
160
|
*/
|
|
170
|
-
this.getContentChildren = ({ id, expand, parentVersion
|
|
171
|
-
return this.getClientInstance()
|
|
172
|
-
.request({
|
|
161
|
+
this.getContentChildren = ({ id, expand, parentVersion }) => {
|
|
162
|
+
return this.getClientInstance().request({
|
|
173
163
|
path: "/wiki/rest/api/content/{id}/child",
|
|
174
164
|
method: "GET",
|
|
175
165
|
pathParams: {
|
|
176
|
-
id
|
|
166
|
+
id
|
|
177
167
|
},
|
|
178
168
|
query: {
|
|
179
169
|
expand,
|
|
180
|
-
parentVersion
|
|
170
|
+
parentVersion
|
|
181
171
|
},
|
|
182
172
|
parameters: {
|
|
183
173
|
query: {
|
|
184
174
|
expand: {
|
|
185
|
-
explode: false
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
})
|
|
190
|
-
.then(this.getClientInstance().responseHandler({
|
|
175
|
+
explode: false
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}).then(this.getClientInstance().responseHandler({
|
|
191
180
|
200: {
|
|
192
|
-
"application/json": "json"
|
|
193
|
-
}
|
|
194
|
-
}))
|
|
195
|
-
.then(commonHttpClient.castResponse())
|
|
196
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentChildren.response")))
|
|
197
|
-
.then(commonHttpClient.getBody);
|
|
181
|
+
"application/json": "json"
|
|
182
|
+
}
|
|
183
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentChildren.response"))).then(commonHttpClient.getBody);
|
|
198
184
|
};
|
|
199
185
|
/**
|
|
200
186
|
* Deprecated, use [Confluence's v2
|
|
@@ -222,9 +208,9 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
222
208
|
* Note, this method only returns direct children. To return children at all
|
|
223
209
|
* levels, use [Get descendants by type](#api-content-id-descendant-type-get).
|
|
224
210
|
*
|
|
225
|
-
*
|
|
226
|
-
* `body.
|
|
227
|
-
*
|
|
211
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
212
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
213
|
+
* restricted to a maximum value of 25.
|
|
228
214
|
*
|
|
229
215
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
230
216
|
* permission for the space,
|
|
@@ -238,37 +224,32 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
238
224
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-child-type-get
|
|
239
225
|
* @param params
|
|
240
226
|
*/
|
|
241
|
-
this.getContentChildrenByType = ({ id, type, expand, parentVersion, start, limit
|
|
242
|
-
return this.getClientInstance()
|
|
243
|
-
.request({
|
|
227
|
+
this.getContentChildrenByType = ({ id, type, expand, parentVersion, start, limit }) => {
|
|
228
|
+
return this.getClientInstance().request({
|
|
244
229
|
path: "/wiki/rest/api/content/{id}/child/{type}",
|
|
245
230
|
method: "GET",
|
|
246
231
|
pathParams: {
|
|
247
232
|
id,
|
|
248
|
-
type
|
|
233
|
+
type
|
|
249
234
|
},
|
|
250
235
|
query: {
|
|
251
236
|
expand,
|
|
252
237
|
parentVersion,
|
|
253
238
|
start,
|
|
254
|
-
limit
|
|
239
|
+
limit
|
|
255
240
|
},
|
|
256
241
|
parameters: {
|
|
257
242
|
query: {
|
|
258
243
|
expand: {
|
|
259
|
-
explode: false
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
})
|
|
264
|
-
.then(this.getClientInstance().responseHandler({
|
|
244
|
+
explode: false
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}).then(this.getClientInstance().responseHandler({
|
|
265
249
|
200: {
|
|
266
|
-
"application/json": "json"
|
|
267
|
-
}
|
|
268
|
-
}))
|
|
269
|
-
.then(commonHttpClient.castResponse())
|
|
270
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentChildrenByType.response")))
|
|
271
|
-
.then(commonHttpClient.getBody);
|
|
250
|
+
"application/json": "json"
|
|
251
|
+
}
|
|
252
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentChildrenByType.response"))).then(commonHttpClient.getBody);
|
|
272
253
|
};
|
|
273
254
|
/**
|
|
274
255
|
* Returns a map of the descendants of a piece of content. This is similar
|
|
@@ -307,33 +288,28 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
307
288
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-get
|
|
308
289
|
* @param params
|
|
309
290
|
*/
|
|
310
|
-
this.getContentDescendants = ({ id, expand
|
|
311
|
-
return this.getClientInstance()
|
|
312
|
-
.request({
|
|
291
|
+
this.getContentDescendants = ({ id, expand }) => {
|
|
292
|
+
return this.getClientInstance().request({
|
|
313
293
|
path: "/wiki/rest/api/content/{id}/descendant",
|
|
314
294
|
method: "GET",
|
|
315
295
|
pathParams: {
|
|
316
|
-
id
|
|
296
|
+
id
|
|
317
297
|
},
|
|
318
298
|
query: {
|
|
319
|
-
expand
|
|
299
|
+
expand
|
|
320
300
|
},
|
|
321
301
|
parameters: {
|
|
322
302
|
query: {
|
|
323
303
|
expand: {
|
|
324
|
-
explode: false
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
})
|
|
329
|
-
.then(this.getClientInstance().responseHandler({
|
|
304
|
+
explode: false
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}).then(this.getClientInstance().responseHandler({
|
|
330
309
|
200: {
|
|
331
|
-
"application/json": "json"
|
|
332
|
-
}
|
|
333
|
-
}))
|
|
334
|
-
.then(commonHttpClient.castResponse())
|
|
335
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentDescendants.response")))
|
|
336
|
-
.then(commonHttpClient.getBody);
|
|
310
|
+
"application/json": "json"
|
|
311
|
+
}
|
|
312
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getContentDescendants.response"))).then(commonHttpClient.getBody);
|
|
337
313
|
};
|
|
338
314
|
/**
|
|
339
315
|
* Returns all descendants of a given type, for a piece of content. This is
|
|
@@ -359,9 +335,9 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
359
335
|
*
|
|
360
336
|
* Custom content types that are provided by apps can also be returned.
|
|
361
337
|
*
|
|
362
|
-
*
|
|
363
|
-
* `body.
|
|
364
|
-
*
|
|
338
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
339
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
340
|
+
* restricted to a maximum value of 25.
|
|
365
341
|
*
|
|
366
342
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
367
343
|
* 'View' permission for the space, and permission to view the content if it
|
|
@@ -374,37 +350,32 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
374
350
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-id-descendant-type-get
|
|
375
351
|
* @param params
|
|
376
352
|
*/
|
|
377
|
-
this.getDescendantsOfType = ({ id, type, depth, expand, start, limit
|
|
378
|
-
return this.getClientInstance()
|
|
379
|
-
.request({
|
|
353
|
+
this.getDescendantsOfType = ({ id, type, depth, expand, start, limit }) => {
|
|
354
|
+
return this.getClientInstance().request({
|
|
380
355
|
path: "/wiki/rest/api/content/{id}/descendant/{type}",
|
|
381
356
|
method: "GET",
|
|
382
357
|
pathParams: {
|
|
383
358
|
id,
|
|
384
|
-
type
|
|
359
|
+
type
|
|
385
360
|
},
|
|
386
361
|
query: {
|
|
387
362
|
depth,
|
|
388
363
|
expand,
|
|
389
364
|
start,
|
|
390
|
-
limit
|
|
365
|
+
limit
|
|
391
366
|
},
|
|
392
367
|
parameters: {
|
|
393
368
|
query: {
|
|
394
369
|
expand: {
|
|
395
|
-
explode: false
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
})
|
|
400
|
-
.then(this.getClientInstance().responseHandler({
|
|
370
|
+
explode: false
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}).then(this.getClientInstance().responseHandler({
|
|
401
375
|
200: {
|
|
402
|
-
"application/json": "json"
|
|
403
|
-
}
|
|
404
|
-
}))
|
|
405
|
-
.then(commonHttpClient.castResponse())
|
|
406
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getDescendantsOfType.response")))
|
|
407
|
-
.then(commonHttpClient.getBody);
|
|
376
|
+
"application/json": "json"
|
|
377
|
+
}
|
|
378
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.getDescendantsOfType.response"))).then(commonHttpClient.getBody);
|
|
408
379
|
};
|
|
409
380
|
/**
|
|
410
381
|
* Move a page to a new location relative to a target page:
|
|
@@ -428,82 +399,61 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
428
399
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants#api-wiki-rest-api-content-pageid-move-position-targetid-put
|
|
429
400
|
* @param params
|
|
430
401
|
*/
|
|
431
|
-
this.movePage = ({ pageId, position, targetId
|
|
432
|
-
return this.getClientInstance()
|
|
433
|
-
.request({
|
|
402
|
+
this.movePage = ({ pageId, position, targetId }) => {
|
|
403
|
+
return this.getClientInstance().request({
|
|
434
404
|
path: "/wiki/rest/api/content/{pageId}/move/{position}/{targetId}",
|
|
435
405
|
method: "PUT",
|
|
436
406
|
pathParams: {
|
|
437
407
|
pageId,
|
|
438
408
|
position,
|
|
439
|
-
targetId
|
|
440
|
-
}
|
|
441
|
-
})
|
|
442
|
-
.then(this.getClientInstance().responseHandler({
|
|
409
|
+
targetId
|
|
410
|
+
}
|
|
411
|
+
}).then(this.getClientInstance().responseHandler({
|
|
443
412
|
200: {
|
|
444
|
-
"application/json": "json"
|
|
445
|
-
}
|
|
446
|
-
}))
|
|
447
|
-
.then(commonHttpClient.castResponse())
|
|
448
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.movePage.response")))
|
|
449
|
-
.then(commonHttpClient.getBody);
|
|
413
|
+
"application/json": "json"
|
|
414
|
+
}
|
|
415
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentChildrenAndDescendantsService.movePage.response"))).then(commonHttpClient.getBody);
|
|
450
416
|
};
|
|
451
417
|
}
|
|
452
418
|
static initialize() {
|
|
453
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentChildren.response", zod_1.z
|
|
454
|
-
.object({
|
|
419
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentChildren.response", zod_1.z.object({
|
|
455
420
|
status: zod_1.z.literal(200),
|
|
456
421
|
mediaType: zod_1.z.literal("application/json"),
|
|
457
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentChildren")
|
|
458
|
-
})
|
|
459
|
-
|
|
460
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentChildrenByType.response", zod_1.z
|
|
461
|
-
.object({
|
|
422
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentChildren")
|
|
423
|
+
}).describe("ContentChildrenAndDescendantsService.getContentChildren.response"));
|
|
424
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentChildrenByType.response", zod_1.z.object({
|
|
462
425
|
status: zod_1.z.literal(200),
|
|
463
426
|
mediaType: zod_1.z.literal("application/json"),
|
|
464
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
465
|
-
})
|
|
466
|
-
|
|
467
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.copyPage.response", zod_1.z
|
|
468
|
-
.object({
|
|
427
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
428
|
+
}).describe("ContentChildrenAndDescendantsService.getContentChildrenByType.response"));
|
|
429
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.copyPage.response", zod_1.z.object({
|
|
469
430
|
status: zod_1.z.literal(200),
|
|
470
431
|
mediaType: zod_1.z.literal("application/json;charset=UTF-8"),
|
|
471
|
-
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
472
|
-
})
|
|
473
|
-
|
|
474
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentDescendants.response", zod_1.z
|
|
475
|
-
.object({
|
|
432
|
+
body: zod_1.z.nullable(validationSchemaStorage_1.validationSchemaStorage.lazy("Content"))
|
|
433
|
+
}).describe("ContentChildrenAndDescendantsService.copyPage.response"));
|
|
434
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getContentDescendants.response", zod_1.z.object({
|
|
476
435
|
status: zod_1.z.literal(200),
|
|
477
436
|
mediaType: zod_1.z.literal("application/json"),
|
|
478
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentChildren")
|
|
479
|
-
})
|
|
480
|
-
|
|
481
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getDescendantsOfType.response", zod_1.z
|
|
482
|
-
.object({
|
|
437
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentChildren")
|
|
438
|
+
}).describe("ContentChildrenAndDescendantsService.getContentDescendants.response"));
|
|
439
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.getDescendantsOfType.response", zod_1.z.object({
|
|
483
440
|
status: zod_1.z.literal(200),
|
|
484
441
|
mediaType: zod_1.z.literal("application/json"),
|
|
485
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
486
|
-
})
|
|
487
|
-
|
|
488
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.copyPageHierarchy.response", zod_1.z
|
|
489
|
-
.object({
|
|
442
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
443
|
+
}).describe("ContentChildrenAndDescendantsService.getDescendantsOfType.response"));
|
|
444
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.copyPageHierarchy.response", zod_1.z.object({
|
|
490
445
|
status: zod_1.z.literal(202),
|
|
491
446
|
mediaType: zod_1.z.literal("application/json"),
|
|
492
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("LongTask")
|
|
493
|
-
})
|
|
494
|
-
|
|
495
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.movePage.response", zod_1.z
|
|
496
|
-
.object({
|
|
447
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("LongTask")
|
|
448
|
+
}).describe("ContentChildrenAndDescendantsService.copyPageHierarchy.response"));
|
|
449
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentChildrenAndDescendantsService.movePage.response", zod_1.z.object({
|
|
497
450
|
status: zod_1.z.literal(200),
|
|
498
451
|
mediaType: zod_1.z.literal("application/json"),
|
|
499
|
-
body: zod_1.z
|
|
500
|
-
.
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
})
|
|
505
|
-
.describe("ContentChildrenAndDescendantsService.movePage.response"));
|
|
506
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
452
|
+
body: zod_1.z.object({
|
|
453
|
+
pageId: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentId").optional()
|
|
454
|
+
}).catchall(zod_1.z.unknown())
|
|
455
|
+
}).describe("ContentChildrenAndDescendantsService.movePage.response"));
|
|
456
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas, contentChildrenAndDescendants_1.registerContentChildrenAndDescendantsValidationSchemas]);
|
|
507
457
|
}
|
|
508
458
|
}
|
|
509
459
|
exports.ContentChildrenAndDescendantsService = ContentChildrenAndDescendantsService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentChildrenAndDescendantsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentChildrenAndDescendantsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"ContentChildrenAndDescendantsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentChildrenAndDescendantsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAAyI;AACzI,2FAAsL;AACtL,wEAAqE;AACrE,6BAAwB;AAC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OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,UAAU,CAAC;SAC/C,CAAC,CAAC,QAAQ,CAAC,iEAAiE,CAAC,CAAC,CAAC;QAChF,iDAAuB,CAAC,kBAAkB,CAAC,wDAAwD,EAAE,OAAC,CAAC,MAAM,CAAC;YAC5G,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;gBACb,MAAM,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;aAC7D,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC,CAAC,QAAQ,CAAC,wDAAwD,CAAC,CAAC,CAAC;QACvE,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,EAAE,sFAAsD,CAAC,CAAC,CAAC;IAClI,CAAC;CACF;AAx3BD,oFAw3BC"}
|
|
@@ -12,9 +12,9 @@ export declare class ContentCommentsService extends CommonHttpService {
|
|
|
12
12
|
*
|
|
13
13
|
* Returns the comments on a piece of content.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
* `body.
|
|
17
|
-
*
|
|
15
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
16
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
17
|
+
* restricted to a maximum value of 25.
|
|
18
18
|
*
|
|
19
19
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
20
20
|
* permission for the space,
|
|
@@ -28,7 +28,7 @@ export declare class ContentCommentsService extends CommonHttpService {
|
|
|
28
28
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
29
29
|
* @param params
|
|
30
30
|
*/
|
|
31
|
-
getContentComments: ({ id, expand, parentVersion, start, limit, location, depth
|
|
31
|
+
getContentComments: ({ id, expand, parentVersion, start, limit, location, depth }: {
|
|
32
32
|
/** The ID of the content to be queried for its comments. */
|
|
33
33
|
id: string;
|
|
34
34
|
/**
|
|
@@ -4,11 +4,11 @@ exports.ContentCommentsService = 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 validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated
|
|
14
14
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments
|
|
@@ -23,9 +23,9 @@ class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
23
23
|
*
|
|
24
24
|
* Returns the comments on a piece of content.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
* `body.
|
|
28
|
-
*
|
|
26
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
27
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
28
|
+
* restricted to a maximum value of 25.
|
|
29
29
|
*
|
|
30
30
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
31
31
|
* permission for the space,
|
|
@@ -39,13 +39,12 @@ class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
39
39
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
40
40
|
* @param params
|
|
41
41
|
*/
|
|
42
|
-
this.getContentComments = ({ id, expand, parentVersion, start, limit, location, depth
|
|
43
|
-
return this.getClientInstance()
|
|
44
|
-
.request({
|
|
42
|
+
this.getContentComments = ({ id, expand, parentVersion, start, limit, location, depth }) => {
|
|
43
|
+
return this.getClientInstance().request({
|
|
45
44
|
path: "/wiki/rest/api/content/{id}/child/comment",
|
|
46
45
|
method: "GET",
|
|
47
46
|
pathParams: {
|
|
48
|
-
id
|
|
47
|
+
id
|
|
49
48
|
},
|
|
50
49
|
query: {
|
|
51
50
|
expand,
|
|
@@ -53,34 +52,28 @@ class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
53
52
|
start,
|
|
54
53
|
limit,
|
|
55
54
|
location,
|
|
56
|
-
depth
|
|
55
|
+
depth
|
|
57
56
|
},
|
|
58
57
|
parameters: {
|
|
59
58
|
query: {
|
|
60
59
|
expand: {
|
|
61
|
-
explode: false
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
.then(this.getClientInstance().responseHandler({
|
|
60
|
+
explode: false
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}).then(this.getClientInstance().responseHandler({
|
|
67
65
|
200: {
|
|
68
|
-
"application/json": "json"
|
|
69
|
-
}
|
|
70
|
-
}))
|
|
71
|
-
.then(commonHttpClient.castResponse())
|
|
72
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentCommentsService.getContentComments.response")))
|
|
73
|
-
.then(commonHttpClient.getBody);
|
|
66
|
+
"application/json": "json"
|
|
67
|
+
}
|
|
68
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentCommentsService.getContentComments.response"))).then(commonHttpClient.getBody);
|
|
74
69
|
};
|
|
75
70
|
}
|
|
76
71
|
static initialize() {
|
|
77
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentCommentsService.getContentComments.response", zod_1.z
|
|
78
|
-
.object({
|
|
72
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentCommentsService.getContentComments.response", zod_1.z.object({
|
|
79
73
|
status: zod_1.z.literal(200),
|
|
80
74
|
mediaType: zod_1.z.literal("application/json"),
|
|
81
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
82
|
-
})
|
|
83
|
-
.describe("ContentCommentsService.getContentComments.response"));
|
|
75
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
76
|
+
}).describe("ContentCommentsService.getContentComments.response"));
|
|
84
77
|
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
85
78
|
}
|
|
86
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentCommentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentCommentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"ContentCommentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentCommentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAAsF;AACtF,wEAAqE;AACrE,6BAAwB;AACxB;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,qCAAiB;IAA7D;;QACE;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,uBAAkB,GAAG,CAAC,EACpB,EAAE,EACF,MAAM,EACN,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EAyHN,EAAyB,EAAE;YAC1B,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,2CAA2C;gBACjD,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;oBACN,aAAa;oBACb,KAAK;oBACL,KAAK;oBAC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