@resolution/confluence-api-client 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +360 -0
- package/lib/openapi/core/CommonHttpClient.d.ts +19 -19
- package/lib/openapi/core/CommonHttpClient.js +148 -233
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/core/CommonHttpService.d.ts +1 -1
- package/lib/openapi/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/core/CommonValidationSchemaStorage.d.ts +4 -4
- package/lib/openapi/core/CommonValidationSchemaStorage.js +2 -4
- package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +3 -3
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/audit.d.ts +2 -2
- package/lib/openapi/v1/models/audit.js +31 -90
- package/lib/openapi/v1/models/audit.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +2 -2
- package/lib/openapi/v1/models/common.js +188 -463
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +2 -2
- package/lib/openapi/v1/models/content.js +205 -491
- package/lib/openapi/v1/models/content.js.map +1 -1
- package/lib/openapi/v1/models/contentAttachments.d.ts +1 -1
- package/lib/openapi/v1/models/contentAttachments.js +8 -19
- package/lib/openapi/v1/models/contentAttachments.js.map +1 -1
- package/lib/openapi/v1/models/contentBody.d.ts +2 -2
- package/lib/openapi/v1/models/contentBody.js +20 -59
- package/lib/openapi/v1/models/contentBody.js.map +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +16 -40
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
- package/lib/openapi/v1/models/contentLabels.d.ts +1 -1
- package/lib/openapi/v1/models/contentLabels.js +2 -7
- package/lib/openapi/v1/models/contentLabels.js.map +1 -1
- package/lib/openapi/v1/models/contentMacroBody.d.ts +1 -1
- package/lib/openapi/v1/models/contentMacroBody.js +4 -10
- package/lib/openapi/v1/models/contentMacroBody.js.map +1 -1
- package/lib/openapi/v1/models/contentPermissions.d.ts +2 -2
- package/lib/openapi/v1/models/contentPermissions.js +10 -22
- package/lib/openapi/v1/models/contentPermissions.js.map +1 -1
- package/lib/openapi/v1/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v1/models/contentProperties.js +25 -71
- package/lib/openapi/v1/models/contentProperties.js.map +1 -1
- package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
- package/lib/openapi/v1/models/contentRestrictions.js +17 -57
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +1 -1
- package/lib/openapi/v1/models/contentStates.js +15 -35
- package/lib/openapi/v1/models/contentStates.js.map +1 -1
- package/lib/openapi/v1/models/contentVersions.d.ts +2 -2
- package/lib/openapi/v1/models/contentVersions.js +9 -20
- package/lib/openapi/v1/models/contentVersions.js.map +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
- package/lib/openapi/v1/models/contentWatches.js +21 -46
- package/lib/openapi/v1/models/contentWatches.js.map +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +1 -1
- package/lib/openapi/v1/models/dynamicModules.js +6 -15
- package/lib/openapi/v1/models/dynamicModules.js.map +1 -1
- package/lib/openapi/v1/models/group.d.ts +1 -1
- package/lib/openapi/v1/models/group.js +6 -15
- package/lib/openapi/v1/models/group.js.map +1 -1
- package/lib/openapi/v1/models/inlineTasks.d.ts +1 -1
- package/lib/openapi/v1/models/inlineTasks.js +10 -22
- package/lib/openapi/v1/models/inlineTasks.js.map +1 -1
- package/lib/openapi/v1/models/labelInfo.d.ts +1 -1
- package/lib/openapi/v1/models/labelInfo.js +11 -27
- package/lib/openapi/v1/models/labelInfo.js.map +1 -1
- package/lib/openapi/v1/models/longRunningTask.d.ts +2 -2
- package/lib/openapi/v1/models/longRunningTask.js +20 -42
- package/lib/openapi/v1/models/longRunningTask.js.map +1 -1
- package/lib/openapi/v1/models/relation.d.ts +2 -2
- package/lib/openapi/v1/models/relation.js +16 -45
- package/lib/openapi/v1/models/relation.js.map +1 -1
- package/lib/openapi/v1/models/search.d.ts +2 -2
- package/lib/openapi/v1/models/search.js +15 -34
- package/lib/openapi/v1/models/search.js.map +1 -1
- package/lib/openapi/v1/models/settings.d.ts +2 -2
- package/lib/openapi/v1/models/settings.js +13 -29
- package/lib/openapi/v1/models/settings.js.map +1 -1
- package/lib/openapi/v1/models/space.d.ts +2 -2
- package/lib/openapi/v1/models/space.js +31 -69
- package/lib/openapi/v1/models/space.js.map +1 -1
- package/lib/openapi/v1/models/spacePermissions.d.ts +1 -1
- package/lib/openapi/v1/models/spacePermissions.js +23 -86
- package/lib/openapi/v1/models/spacePermissions.js.map +1 -1
- package/lib/openapi/v1/models/spaceProperties.d.ts +2 -2
- package/lib/openapi/v1/models/spaceProperties.js +26 -71
- package/lib/openapi/v1/models/spaceProperties.js.map +1 -1
- package/lib/openapi/v1/models/spaceSettings.d.ts +1 -1
- package/lib/openapi/v1/models/spaceSettings.js +3 -9
- package/lib/openapi/v1/models/spaceSettings.js.map +1 -1
- package/lib/openapi/v1/models/template.d.ts +2 -2
- package/lib/openapi/v1/models/template.js +45 -103
- package/lib/openapi/v1/models/template.js.map +1 -1
- package/lib/openapi/v1/models/themes.d.ts +1 -1
- package/lib/openapi/v1/models/themes.js +10 -22
- package/lib/openapi/v1/models/themes.js.map +1 -1
- package/lib/openapi/v1/models/userProperties.d.ts +1 -1
- package/lib/openapi/v1/models/userProperties.js +16 -33
- package/lib/openapi/v1/models/userProperties.js.map +1 -1
- package/lib/openapi/v1/models/users.d.ts +2 -2
- package/lib/openapi/v1/models/users.js +25 -57
- package/lib/openapi/v1/models/users.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +2 -2
- package/lib/openapi/v1/services/AnalyticsService.js +29 -47
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +6 -6
- package/lib/openapi/v1/services/AuditService.js +67 -109
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentAttachmentsService.js +72 -109
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentBodyService.js +67 -105
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +9 -9
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +103 -157
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.js +16 -23
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentLabelsService.js +36 -54
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentMacroBodyService.js +43 -67
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.js +14 -23
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentPropertiesService.js +73 -112
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentRestrictionsService.js +127 -184
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +12 -12
- package/lib/openapi/v1/services/ContentService.js +137 -205
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentStatesService.js +96 -155
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentVersionsService.js +53 -79
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentWatchesService.js +113 -169
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +2 -2
- package/lib/openapi/v1/services/DynamicModulesService.js +24 -37
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +5 -5
- package/lib/openapi/v1/services/ExperimentalService.js +42 -65
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +10 -10
- package/lib/openapi/v1/services/GroupService.js +76 -117
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +4 -4
- package/lib/openapi/v1/services/InlineTasksService.js +36 -59
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +1 -1
- package/lib/openapi/v1/services/LabelInfoService.js +12 -19
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +2 -2
- package/lib/openapi/v1/services/LongRunningTaskService.js +24 -40
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +6 -6
- package/lib/openapi/v1/services/RelationService.js +64 -94
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +2 -2
- package/lib/openapi/v1/services/SearchService.js +29 -43
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +6 -6
- package/lib/openapi/v1/services/SettingsService.js +61 -98
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpacePermissionsService.js +25 -38
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +7 -7
- package/lib/openapi/v1/services/SpacePropertiesService.js +73 -112
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +9 -9
- package/lib/openapi/v1/services/SpaceService.js +108 -169
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +2 -2
- package/lib/openapi/v1/services/SpaceSettingsService.js +24 -38
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +7 -7
- package/lib/openapi/v1/services/TemplateService.js +67 -104
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +5 -5
- package/lib/openapi/v1/services/ThemesService.js +61 -101
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -6
- package/lib/openapi/v1/services/UserPropertiesService.js +42 -64
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +9 -9
- package/lib/openapi/v1/services/UsersService.js +94 -146
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v1/validationSchemaStorage.d.ts +2 -2
- package/lib/openapi/v1/validationSchemaStorage.js +12 -22
- package/lib/openapi/v1/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +2 -2
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/models/ancestors.d.ts +1 -1
- package/lib/openapi/v2/models/ancestors.js +4 -12
- package/lib/openapi/v2/models/ancestors.js.map +1 -1
- package/lib/openapi/v2/models/attachment.d.ts +2 -2
- package/lib/openapi/v2/models/attachment.js +26 -71
- package/lib/openapi/v2/models/attachment.js.map +1 -1
- package/lib/openapi/v2/models/blogPost.d.ts +2 -2
- package/lib/openapi/v2/models/blogPost.js +37 -102
- package/lib/openapi/v2/models/blogPost.js.map +1 -1
- package/lib/openapi/v2/models/children.d.ts +1 -1
- package/lib/openapi/v2/models/children.js +9 -24
- package/lib/openapi/v2/models/children.js.map +1 -1
- package/lib/openapi/v2/models/classificationLevel.d.ts +1 -1
- package/lib/openapi/v2/models/classificationLevel.js +6 -32
- package/lib/openapi/v2/models/classificationLevel.js.map +1 -1
- package/lib/openapi/v2/models/comment.d.ts +2 -2
- package/lib/openapi/v2/models/comment.js +107 -272
- package/lib/openapi/v2/models/comment.js.map +1 -1
- package/lib/openapi/v2/models/common.d.ts +1 -1
- package/lib/openapi/v2/models/common.js +84 -214
- package/lib/openapi/v2/models/common.js.map +1 -1
- package/lib/openapi/v2/models/content.d.ts +1 -1
- package/lib/openapi/v2/models/content.js +3 -21
- package/lib/openapi/v2/models/content.js.map +1 -1
- package/lib/openapi/v2/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v2/models/contentProperties.js +8 -20
- package/lib/openapi/v2/models/contentProperties.js.map +1 -1
- package/lib/openapi/v2/models/customContent.d.ts +2 -2
- package/lib/openapi/v2/models/customContent.js +43 -121
- package/lib/openapi/v2/models/customContent.js.map +1 -1
- package/lib/openapi/v2/models/dataPolicies.d.ts +1 -1
- package/lib/openapi/v2/models/dataPolicies.js +11 -25
- package/lib/openapi/v2/models/dataPolicies.js.map +1 -1
- package/lib/openapi/v2/models/database.d.ts +1 -1
- package/lib/openapi/v2/models/database.js +8 -19
- package/lib/openapi/v2/models/database.js.map +1 -1
- package/lib/openapi/v2/models/eap.d.ts +1 -1
- package/lib/openapi/v2/models/eap.js +0 -3
- package/lib/openapi/v2/models/eap.js.map +1 -1
- package/lib/openapi/v2/models/folder.d.ts +1 -1
- package/lib/openapi/v2/models/folder.js +8 -19
- package/lib/openapi/v2/models/folder.js.map +1 -1
- package/lib/openapi/v2/models/operation.d.ts +1 -1
- package/lib/openapi/v2/models/operation.js +4 -12
- package/lib/openapi/v2/models/operation.js.map +1 -1
- package/lib/openapi/v2/models/page.d.ts +2 -2
- package/lib/openapi/v2/models/page.js +36 -101
- package/lib/openapi/v2/models/page.js.map +1 -1
- package/lib/openapi/v2/models/smartLink.d.ts +1 -1
- package/lib/openapi/v2/models/smartLink.js +8 -19
- package/lib/openapi/v2/models/smartLink.js.map +1 -1
- package/lib/openapi/v2/models/space.d.ts +2 -2
- package/lib/openapi/v2/models/space.js +21 -57
- package/lib/openapi/v2/models/space.js.map +1 -1
- package/lib/openapi/v2/models/spaceProperties.d.ts +1 -1
- package/lib/openapi/v2/models/spaceProperties.js +8 -20
- package/lib/openapi/v2/models/spaceProperties.js.map +1 -1
- package/lib/openapi/v2/models/task.d.ts +1 -1
- package/lib/openapi/v2/models/task.js +7 -16
- package/lib/openapi/v2/models/task.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +1 -1
- package/lib/openapi/v2/models/user.js +7 -20
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/models/version.d.ts +1 -1
- package/lib/openapi/v2/models/version.js +22 -46
- package/lib/openapi/v2/models/version.js.map +1 -1
- package/lib/openapi/v2/models/whiteboard.d.ts +1 -1
- package/lib/openapi/v2/models/whiteboard.js +8 -19
- package/lib/openapi/v2/models/whiteboard.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +5 -5
- package/lib/openapi/v2/services/AncestorsService.js +73 -133
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +8 -8
- package/lib/openapi/v2/services/AttachmentService.js +98 -180
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +9 -9
- package/lib/openapi/v2/services/BlogPostService.js +100 -180
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +2 -2
- package/lib/openapi/v2/services/ChildrenService.js +32 -61
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +15 -15
- package/lib/openapi/v2/services/ClassificationLevelService.js +127 -191
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +20 -20
- package/lib/openapi/v2/services/CommentService.js +250 -454
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +46 -46
- package/lib/openapi/v2/services/ContentPropertiesService.js +496 -820
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +1 -1
- package/lib/openapi/v2/services/ContentService.js +12 -19
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +9 -9
- package/lib/openapi/v2/services/CustomContentService.js +114 -207
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +2 -2
- package/lib/openapi/v2/services/DataPoliciesService.js +25 -48
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +3 -3
- package/lib/openapi/v2/services/DatabaseService.js +37 -63
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/EapService.d.ts +7 -7
- package/lib/openapi/v2/services/EapService.js +89 -165
- package/lib/openapi/v2/services/EapService.js.map +1 -1
- package/lib/openapi/v2/services/FolderService.d.ts +3 -3
- package/lib/openapi/v2/services/FolderService.js +36 -62
- package/lib/openapi/v2/services/FolderService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +7 -7
- package/lib/openapi/v2/services/LabelService.js +105 -196
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +8 -8
- package/lib/openapi/v2/services/LikeService.js +109 -189
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +11 -11
- package/lib/openapi/v2/services/OperationService.js +122 -199
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +9 -9
- package/lib/openapi/v2/services/PageService.js +100 -180
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +3 -3
- package/lib/openapi/v2/services/SmartLinkService.js +36 -62
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +3 -3
- package/lib/openapi/v2/services/SpacePermissionsService.js +30 -56
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePropertiesService.js +56 -92
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceRolesService.d.ts +5 -5
- package/lib/openapi/v2/services/SpaceRolesService.js +60 -111
- package/lib/openapi/v2/services/SpaceRolesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +4 -4
- package/lib/openapi/v2/services/SpaceService.js +47 -87
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +4 -4
- package/lib/openapi/v2/services/TaskService.js +40 -68
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +3 -3
- package/lib/openapi/v2/services/UserService.js +33 -58
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +14 -14
- package/lib/openapi/v2/services/VersionService.js +158 -281
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +3 -3
- package/lib/openapi/v2/services/WhiteboardService.js +37 -63
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/lib/openapi/v2/validationSchemaStorage.d.ts +2 -2
- package/lib/openapi/v2/validationSchemaStorage.js +12 -22
- package/lib/openapi/v2/validationSchemaStorage.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,12 +4,12 @@ exports.VersionService = 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 version_1 = require("../models/version");
|
|
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/v2/api-group-version
|
|
15
15
|
* @category Services
|
|
@@ -29,24 +29,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
29
29
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-attachments-attachment-id-versions-version-number-get
|
|
30
30
|
* @param params
|
|
31
31
|
*/
|
|
32
|
-
this.getAttachmentVersionDetails = ({ attachmentId, versionNumber
|
|
33
|
-
return this.getClientInstance()
|
|
34
|
-
.request({
|
|
32
|
+
this.getAttachmentVersionDetails = ({ attachmentId, versionNumber }) => {
|
|
33
|
+
return this.getClientInstance().request({
|
|
35
34
|
path: "/attachments/{attachment-id}/versions/{version-number}",
|
|
36
35
|
method: "GET",
|
|
37
36
|
pathParams: {
|
|
38
37
|
"attachment-id": attachmentId,
|
|
39
|
-
"version-number": versionNumber
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
.then(this.getClientInstance().responseHandler({
|
|
38
|
+
"version-number": versionNumber
|
|
39
|
+
}
|
|
40
|
+
}).then(this.getClientInstance().responseHandler({
|
|
43
41
|
200: {
|
|
44
|
-
"application/json": "json"
|
|
45
|
-
}
|
|
46
|
-
}))
|
|
47
|
-
.then(commonHttpClient.castResponse())
|
|
48
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersionDetails.response")))
|
|
49
|
-
.then(commonHttpClient.getBody);
|
|
42
|
+
"application/json": "json"
|
|
43
|
+
}
|
|
44
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersionDetails.response"))).then(commonHttpClient.getBody);
|
|
50
45
|
};
|
|
51
46
|
/**
|
|
52
47
|
* Returns the versions of specific attachment.
|
|
@@ -60,28 +55,23 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
60
55
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-attachments-id-versions-get
|
|
61
56
|
* @param params
|
|
62
57
|
*/
|
|
63
|
-
this.getAttachmentVersions = ({ id, cursor, limit, sort
|
|
64
|
-
return this.getClientInstance()
|
|
65
|
-
.request({
|
|
58
|
+
this.getAttachmentVersions = ({ id, cursor, limit, sort }) => {
|
|
59
|
+
return this.getClientInstance().request({
|
|
66
60
|
path: "/attachments/{id}/versions",
|
|
67
61
|
method: "GET",
|
|
68
62
|
pathParams: {
|
|
69
|
-
id
|
|
63
|
+
id
|
|
70
64
|
},
|
|
71
65
|
query: {
|
|
72
66
|
cursor,
|
|
73
67
|
limit,
|
|
74
|
-
sort
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
.then(this.getClientInstance().responseHandler({
|
|
68
|
+
sort
|
|
69
|
+
}
|
|
70
|
+
}).then(this.getClientInstance().responseHandler({
|
|
78
71
|
200: {
|
|
79
|
-
"application/json": "json"
|
|
80
|
-
}
|
|
81
|
-
}))
|
|
82
|
-
.then(commonHttpClient.castResponse())
|
|
83
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersions.response")))
|
|
84
|
-
.then(commonHttpClient.getBody);
|
|
72
|
+
"application/json": "json"
|
|
73
|
+
}
|
|
74
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getAttachmentVersions.response"))).then(commonHttpClient.getBody);
|
|
85
75
|
};
|
|
86
76
|
/**
|
|
87
77
|
* Retrieves version details for the specified blog post and version number.
|
|
@@ -95,24 +85,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
95
85
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-blogposts-blogpost-id-versions-version-number-get
|
|
96
86
|
* @param params
|
|
97
87
|
*/
|
|
98
|
-
this.getBlogPostVersionDetails = ({ blogpostId, versionNumber
|
|
99
|
-
return this.getClientInstance()
|
|
100
|
-
.request({
|
|
88
|
+
this.getBlogPostVersionDetails = ({ blogpostId, versionNumber }) => {
|
|
89
|
+
return this.getClientInstance().request({
|
|
101
90
|
path: "/blogposts/{blogpost-id}/versions/{version-number}",
|
|
102
91
|
method: "GET",
|
|
103
92
|
pathParams: {
|
|
104
93
|
"blogpost-id": blogpostId,
|
|
105
|
-
"version-number": versionNumber
|
|
106
|
-
}
|
|
107
|
-
})
|
|
108
|
-
.then(this.getClientInstance().responseHandler({
|
|
94
|
+
"version-number": versionNumber
|
|
95
|
+
}
|
|
96
|
+
}).then(this.getClientInstance().responseHandler({
|
|
109
97
|
200: {
|
|
110
|
-
"application/json": "json"
|
|
111
|
-
}
|
|
112
|
-
}))
|
|
113
|
-
.then(commonHttpClient.castResponse())
|
|
114
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersionDetails.response")))
|
|
115
|
-
.then(commonHttpClient.getBody);
|
|
98
|
+
"application/json": "json"
|
|
99
|
+
}
|
|
100
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersionDetails.response"))).then(commonHttpClient.getBody);
|
|
116
101
|
};
|
|
117
102
|
/**
|
|
118
103
|
* Returns the versions of specific blog post.
|
|
@@ -126,29 +111,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
126
111
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-blogposts-id-versions-get
|
|
127
112
|
* @param params
|
|
128
113
|
*/
|
|
129
|
-
this.getBlogPostVersions = ({ id, bodyFormat, cursor, limit, sort
|
|
130
|
-
return this.getClientInstance()
|
|
131
|
-
.request({
|
|
114
|
+
this.getBlogPostVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
|
|
115
|
+
return this.getClientInstance().request({
|
|
132
116
|
path: "/blogposts/{id}/versions",
|
|
133
117
|
method: "GET",
|
|
134
118
|
pathParams: {
|
|
135
|
-
id
|
|
119
|
+
id
|
|
136
120
|
},
|
|
137
121
|
query: {
|
|
138
122
|
"body-format": bodyFormat,
|
|
139
123
|
cursor,
|
|
140
124
|
limit,
|
|
141
|
-
sort
|
|
142
|
-
}
|
|
143
|
-
})
|
|
144
|
-
.then(this.getClientInstance().responseHandler({
|
|
125
|
+
sort
|
|
126
|
+
}
|
|
127
|
+
}).then(this.getClientInstance().responseHandler({
|
|
145
128
|
200: {
|
|
146
|
-
"application/json": "json"
|
|
147
|
-
}
|
|
148
|
-
}))
|
|
149
|
-
.then(commonHttpClient.castResponse())
|
|
150
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersions.response")))
|
|
151
|
-
.then(commonHttpClient.getBody);
|
|
129
|
+
"application/json": "json"
|
|
130
|
+
}
|
|
131
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getBlogPostVersions.response"))).then(commonHttpClient.getBody);
|
|
152
132
|
};
|
|
153
133
|
/**
|
|
154
134
|
* Retrieves version details for the specified custom content and version number.
|
|
@@ -162,24 +142,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
162
142
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-custom-content-custom-content-id-versions-version-number-get
|
|
163
143
|
* @param params
|
|
164
144
|
*/
|
|
165
|
-
this.getCustomContentVersionDetails = ({ customContentId, versionNumber
|
|
166
|
-
return this.getClientInstance()
|
|
167
|
-
.request({
|
|
145
|
+
this.getCustomContentVersionDetails = ({ customContentId, versionNumber }) => {
|
|
146
|
+
return this.getClientInstance().request({
|
|
168
147
|
path: "/custom-content/{custom-content-id}/versions/{version-number}",
|
|
169
148
|
method: "GET",
|
|
170
149
|
pathParams: {
|
|
171
150
|
"custom-content-id": customContentId,
|
|
172
|
-
"version-number": versionNumber
|
|
173
|
-
}
|
|
174
|
-
})
|
|
175
|
-
.then(this.getClientInstance().responseHandler({
|
|
151
|
+
"version-number": versionNumber
|
|
152
|
+
}
|
|
153
|
+
}).then(this.getClientInstance().responseHandler({
|
|
176
154
|
200: {
|
|
177
|
-
"application/json": "json"
|
|
178
|
-
}
|
|
179
|
-
}))
|
|
180
|
-
.then(commonHttpClient.castResponse())
|
|
181
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersionDetails.response")))
|
|
182
|
-
.then(commonHttpClient.getBody);
|
|
155
|
+
"application/json": "json"
|
|
156
|
+
}
|
|
157
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersionDetails.response"))).then(commonHttpClient.getBody);
|
|
183
158
|
};
|
|
184
159
|
/**
|
|
185
160
|
* Returns the versions of specific custom content.
|
|
@@ -193,29 +168,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
193
168
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-custom-content-custom-content-id-versions-get
|
|
194
169
|
* @param params
|
|
195
170
|
*/
|
|
196
|
-
this.getCustomContentVersions = ({ customContentId, bodyFormat, cursor, limit, sort
|
|
197
|
-
return this.getClientInstance()
|
|
198
|
-
.request({
|
|
171
|
+
this.getCustomContentVersions = ({ customContentId, bodyFormat, cursor, limit, sort }) => {
|
|
172
|
+
return this.getClientInstance().request({
|
|
199
173
|
path: "/custom-content/{custom-content-id}/versions",
|
|
200
174
|
method: "GET",
|
|
201
175
|
pathParams: {
|
|
202
|
-
"custom-content-id": customContentId
|
|
176
|
+
"custom-content-id": customContentId
|
|
203
177
|
},
|
|
204
178
|
query: {
|
|
205
179
|
"body-format": bodyFormat,
|
|
206
180
|
cursor,
|
|
207
181
|
limit,
|
|
208
|
-
sort
|
|
209
|
-
}
|
|
210
|
-
})
|
|
211
|
-
.then(this.getClientInstance().responseHandler({
|
|
182
|
+
sort
|
|
183
|
+
}
|
|
184
|
+
}).then(this.getClientInstance().responseHandler({
|
|
212
185
|
200: {
|
|
213
|
-
"application/json": "json"
|
|
214
|
-
}
|
|
215
|
-
}))
|
|
216
|
-
.then(commonHttpClient.castResponse())
|
|
217
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersions.response")))
|
|
218
|
-
.then(commonHttpClient.getBody);
|
|
186
|
+
"application/json": "json"
|
|
187
|
+
}
|
|
188
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getCustomContentVersions.response"))).then(commonHttpClient.getBody);
|
|
219
189
|
};
|
|
220
190
|
/**
|
|
221
191
|
* Retrieves version details for the specified footer comment version.
|
|
@@ -230,24 +200,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
230
200
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-footer-comments-id-versions-version-number-get
|
|
231
201
|
* @param params
|
|
232
202
|
*/
|
|
233
|
-
this.getFooterCommentVersionDetails = ({ id, versionNumber
|
|
234
|
-
return this.getClientInstance()
|
|
235
|
-
.request({
|
|
203
|
+
this.getFooterCommentVersionDetails = ({ id, versionNumber }) => {
|
|
204
|
+
return this.getClientInstance().request({
|
|
236
205
|
path: "/footer-comments/{id}/versions/{version-number}",
|
|
237
206
|
method: "GET",
|
|
238
207
|
pathParams: {
|
|
239
208
|
id,
|
|
240
|
-
"version-number": versionNumber
|
|
241
|
-
}
|
|
242
|
-
})
|
|
243
|
-
.then(this.getClientInstance().responseHandler({
|
|
209
|
+
"version-number": versionNumber
|
|
210
|
+
}
|
|
211
|
+
}).then(this.getClientInstance().responseHandler({
|
|
244
212
|
200: {
|
|
245
|
-
"application/json": "json"
|
|
246
|
-
}
|
|
247
|
-
}))
|
|
248
|
-
.then(commonHttpClient.castResponse())
|
|
249
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersionDetails.response")))
|
|
250
|
-
.then(commonHttpClient.getBody);
|
|
213
|
+
"application/json": "json"
|
|
214
|
+
}
|
|
215
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersionDetails.response"))).then(commonHttpClient.getBody);
|
|
251
216
|
};
|
|
252
217
|
/**
|
|
253
218
|
* Retrieves the versions of the specified footer comment.
|
|
@@ -262,29 +227,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
262
227
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-footer-comments-id-versions-get
|
|
263
228
|
* @param params
|
|
264
229
|
*/
|
|
265
|
-
this.getFooterCommentVersions = ({ id, bodyFormat, cursor, limit, sort
|
|
266
|
-
return this.getClientInstance()
|
|
267
|
-
.request({
|
|
230
|
+
this.getFooterCommentVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
|
|
231
|
+
return this.getClientInstance().request({
|
|
268
232
|
path: "/footer-comments/{id}/versions",
|
|
269
233
|
method: "GET",
|
|
270
234
|
pathParams: {
|
|
271
|
-
id
|
|
235
|
+
id
|
|
272
236
|
},
|
|
273
237
|
query: {
|
|
274
238
|
"body-format": bodyFormat,
|
|
275
239
|
cursor,
|
|
276
240
|
limit,
|
|
277
|
-
sort
|
|
278
|
-
}
|
|
279
|
-
})
|
|
280
|
-
.then(this.getClientInstance().responseHandler({
|
|
241
|
+
sort
|
|
242
|
+
}
|
|
243
|
+
}).then(this.getClientInstance().responseHandler({
|
|
281
244
|
200: {
|
|
282
|
-
"application/json": "json"
|
|
283
|
-
}
|
|
284
|
-
}))
|
|
285
|
-
.then(commonHttpClient.castResponse())
|
|
286
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersions.response")))
|
|
287
|
-
.then(commonHttpClient.getBody);
|
|
245
|
+
"application/json": "json"
|
|
246
|
+
}
|
|
247
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getFooterCommentVersions.response"))).then(commonHttpClient.getBody);
|
|
288
248
|
};
|
|
289
249
|
/**
|
|
290
250
|
* Retrieves version details for the specified inline comment version.
|
|
@@ -299,24 +259,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
299
259
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-inline-comments-id-versions-version-number-get
|
|
300
260
|
* @param params
|
|
301
261
|
*/
|
|
302
|
-
this.getInlineCommentVersionDetails = ({ id, versionNumber
|
|
303
|
-
return this.getClientInstance()
|
|
304
|
-
.request({
|
|
262
|
+
this.getInlineCommentVersionDetails = ({ id, versionNumber }) => {
|
|
263
|
+
return this.getClientInstance().request({
|
|
305
264
|
path: "/inline-comments/{id}/versions/{version-number}",
|
|
306
265
|
method: "GET",
|
|
307
266
|
pathParams: {
|
|
308
267
|
id,
|
|
309
|
-
"version-number": versionNumber
|
|
310
|
-
}
|
|
311
|
-
})
|
|
312
|
-
.then(this.getClientInstance().responseHandler({
|
|
268
|
+
"version-number": versionNumber
|
|
269
|
+
}
|
|
270
|
+
}).then(this.getClientInstance().responseHandler({
|
|
313
271
|
200: {
|
|
314
|
-
"application/json": "json"
|
|
315
|
-
}
|
|
316
|
-
}))
|
|
317
|
-
.then(commonHttpClient.castResponse())
|
|
318
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersionDetails.response")))
|
|
319
|
-
.then(commonHttpClient.getBody);
|
|
272
|
+
"application/json": "json"
|
|
273
|
+
}
|
|
274
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersionDetails.response"))).then(commonHttpClient.getBody);
|
|
320
275
|
};
|
|
321
276
|
/**
|
|
322
277
|
* Retrieves the versions of the specified inline comment.
|
|
@@ -331,29 +286,24 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
331
286
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-inline-comments-id-versions-get
|
|
332
287
|
* @param params
|
|
333
288
|
*/
|
|
334
|
-
this.getInlineCommentVersions = ({ id, bodyFormat, cursor, limit, sort
|
|
335
|
-
return this.getClientInstance()
|
|
336
|
-
.request({
|
|
289
|
+
this.getInlineCommentVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
|
|
290
|
+
return this.getClientInstance().request({
|
|
337
291
|
path: "/inline-comments/{id}/versions",
|
|
338
292
|
method: "GET",
|
|
339
293
|
pathParams: {
|
|
340
|
-
id
|
|
294
|
+
id
|
|
341
295
|
},
|
|
342
296
|
query: {
|
|
343
297
|
"body-format": bodyFormat,
|
|
344
298
|
cursor,
|
|
345
299
|
limit,
|
|
346
|
-
sort
|
|
347
|
-
}
|
|
348
|
-
})
|
|
349
|
-
.then(this.getClientInstance().responseHandler({
|
|
300
|
+
sort
|
|
301
|
+
}
|
|
302
|
+
}).then(this.getClientInstance().responseHandler({
|
|
350
303
|
200: {
|
|
351
|
-
"application/json": "json"
|
|
352
|
-
}
|
|
353
|
-
}))
|
|
354
|
-
.then(commonHttpClient.castResponse())
|
|
355
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersions.response")))
|
|
356
|
-
.then(commonHttpClient.getBody);
|
|
304
|
+
"application/json": "json"
|
|
305
|
+
}
|
|
306
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getInlineCommentVersions.response"))).then(commonHttpClient.getBody);
|
|
357
307
|
};
|
|
358
308
|
/**
|
|
359
309
|
* Retrieves version details for the specified page and version number.
|
|
@@ -367,24 +317,19 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
367
317
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-pages-page-id-versions-version-number-get
|
|
368
318
|
* @param params
|
|
369
319
|
*/
|
|
370
|
-
this.getPageVersionDetails = ({ pageId, versionNumber
|
|
371
|
-
return this.getClientInstance()
|
|
372
|
-
.request({
|
|
320
|
+
this.getPageVersionDetails = ({ pageId, versionNumber }) => {
|
|
321
|
+
return this.getClientInstance().request({
|
|
373
322
|
path: "/pages/{page-id}/versions/{version-number}",
|
|
374
323
|
method: "GET",
|
|
375
324
|
pathParams: {
|
|
376
325
|
"page-id": pageId,
|
|
377
|
-
"version-number": versionNumber
|
|
378
|
-
}
|
|
379
|
-
})
|
|
380
|
-
.then(this.getClientInstance().responseHandler({
|
|
326
|
+
"version-number": versionNumber
|
|
327
|
+
}
|
|
328
|
+
}).then(this.getClientInstance().responseHandler({
|
|
381
329
|
200: {
|
|
382
|
-
"application/json": "json"
|
|
383
|
-
}
|
|
384
|
-
}))
|
|
385
|
-
.then(commonHttpClient.castResponse())
|
|
386
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersionDetails.response")))
|
|
387
|
-
.then(commonHttpClient.getBody);
|
|
330
|
+
"application/json": "json"
|
|
331
|
+
}
|
|
332
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersionDetails.response"))).then(commonHttpClient.getBody);
|
|
388
333
|
};
|
|
389
334
|
/**
|
|
390
335
|
* Returns the versions of specific page.
|
|
@@ -398,174 +343,106 @@ class VersionService extends CommonHttpService_1.CommonHttpService {
|
|
|
398
343
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version#api-pages-id-versions-get
|
|
399
344
|
* @param params
|
|
400
345
|
*/
|
|
401
|
-
this.getPageVersions = ({ id, bodyFormat, cursor, limit, sort
|
|
402
|
-
return this.getClientInstance()
|
|
403
|
-
.request({
|
|
346
|
+
this.getPageVersions = ({ id, bodyFormat, cursor, limit, sort }) => {
|
|
347
|
+
return this.getClientInstance().request({
|
|
404
348
|
path: "/pages/{id}/versions",
|
|
405
349
|
method: "GET",
|
|
406
350
|
pathParams: {
|
|
407
|
-
id
|
|
351
|
+
id
|
|
408
352
|
},
|
|
409
353
|
query: {
|
|
410
354
|
"body-format": bodyFormat,
|
|
411
355
|
cursor,
|
|
412
356
|
limit,
|
|
413
|
-
sort
|
|
414
|
-
}
|
|
415
|
-
})
|
|
416
|
-
.then(this.getClientInstance().responseHandler({
|
|
357
|
+
sort
|
|
358
|
+
}
|
|
359
|
+
}).then(this.getClientInstance().responseHandler({
|
|
417
360
|
200: {
|
|
418
|
-
"application/json": "json"
|
|
419
|
-
}
|
|
420
|
-
}))
|
|
421
|
-
.then(commonHttpClient.castResponse())
|
|
422
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersions.response")))
|
|
423
|
-
.then(commonHttpClient.getBody);
|
|
361
|
+
"application/json": "json"
|
|
362
|
+
}
|
|
363
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("VersionService.getPageVersions.response"))).then(commonHttpClient.getBody);
|
|
424
364
|
};
|
|
425
365
|
}
|
|
426
366
|
static initialize() {
|
|
427
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersionDetails.response", zod_1.z
|
|
428
|
-
.object({
|
|
367
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersionDetails.response", zod_1.z.object({
|
|
429
368
|
status: zod_1.z.literal(200),
|
|
430
369
|
mediaType: zod_1.z.literal("application/json"),
|
|
431
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
432
|
-
})
|
|
433
|
-
|
|
434
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersions.response", zod_1.z
|
|
435
|
-
.object({
|
|
370
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
371
|
+
}).describe("VersionService.getAttachmentVersionDetails.response"));
|
|
372
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getAttachmentVersions.response", zod_1.z.object({
|
|
436
373
|
status: zod_1.z.literal(200),
|
|
437
374
|
mediaType: zod_1.z.literal("application/json"),
|
|
438
|
-
body: zod_1.z
|
|
439
|
-
.
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
.lazy("MultiEntityLinks")
|
|
445
|
-
.optional(),
|
|
446
|
-
})
|
|
447
|
-
.catchall(zod_1.z.unknown()),
|
|
448
|
-
})
|
|
449
|
-
.describe("VersionService.getAttachmentVersions.response"));
|
|
450
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersionDetails.response", zod_1.z
|
|
451
|
-
.object({
|
|
375
|
+
body: zod_1.z.object({
|
|
376
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("AttachmentVersion")).optional(),
|
|
377
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
378
|
+
}).catchall(zod_1.z.unknown())
|
|
379
|
+
}).describe("VersionService.getAttachmentVersions.response"));
|
|
380
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersionDetails.response", zod_1.z.object({
|
|
452
381
|
status: zod_1.z.literal(200),
|
|
453
382
|
mediaType: zod_1.z.literal("application/json"),
|
|
454
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
455
|
-
})
|
|
456
|
-
|
|
457
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersions.response", zod_1.z
|
|
458
|
-
.object({
|
|
383
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
384
|
+
}).describe("VersionService.getBlogPostVersionDetails.response"));
|
|
385
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getBlogPostVersions.response", zod_1.z.object({
|
|
459
386
|
status: zod_1.z.literal(200),
|
|
460
387
|
mediaType: zod_1.z.literal("application/json"),
|
|
461
|
-
body: zod_1.z
|
|
462
|
-
.
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
.lazy("MultiEntityLinks")
|
|
468
|
-
.optional(),
|
|
469
|
-
})
|
|
470
|
-
.catchall(zod_1.z.unknown()),
|
|
471
|
-
})
|
|
472
|
-
.describe("VersionService.getBlogPostVersions.response"));
|
|
473
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersions.response", zod_1.z
|
|
474
|
-
.object({
|
|
388
|
+
body: zod_1.z.object({
|
|
389
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("BlogPostVersion")).optional(),
|
|
390
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
391
|
+
}).catchall(zod_1.z.unknown())
|
|
392
|
+
}).describe("VersionService.getBlogPostVersions.response"));
|
|
393
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersions.response", zod_1.z.object({
|
|
475
394
|
status: zod_1.z.literal(200),
|
|
476
395
|
mediaType: zod_1.z.literal("application/json"),
|
|
477
|
-
body: zod_1.z
|
|
478
|
-
.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
.lazy("MultiEntityLinks")
|
|
484
|
-
.optional(),
|
|
485
|
-
})
|
|
486
|
-
.catchall(zod_1.z.unknown()),
|
|
487
|
-
})
|
|
488
|
-
.describe("VersionService.getCustomContentVersions.response"));
|
|
489
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersionDetails.response", zod_1.z
|
|
490
|
-
.object({
|
|
396
|
+
body: zod_1.z.object({
|
|
397
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CustomContentVersion")).optional(),
|
|
398
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
399
|
+
}).catchall(zod_1.z.unknown())
|
|
400
|
+
}).describe("VersionService.getCustomContentVersions.response"));
|
|
401
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getCustomContentVersionDetails.response", zod_1.z.object({
|
|
491
402
|
status: zod_1.z.literal(200),
|
|
492
403
|
mediaType: zod_1.z.literal("application/json"),
|
|
493
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
494
|
-
})
|
|
495
|
-
|
|
496
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersions.response", zod_1.z
|
|
497
|
-
.object({
|
|
404
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
405
|
+
}).describe("VersionService.getCustomContentVersionDetails.response"));
|
|
406
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersions.response", zod_1.z.object({
|
|
498
407
|
status: zod_1.z.literal(200),
|
|
499
408
|
mediaType: zod_1.z.literal("application/json"),
|
|
500
|
-
body: zod_1.z
|
|
501
|
-
.
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
.lazy("MultiEntityLinks")
|
|
507
|
-
.optional(),
|
|
508
|
-
})
|
|
509
|
-
.catchall(zod_1.z.unknown()),
|
|
510
|
-
})
|
|
511
|
-
.describe("VersionService.getFooterCommentVersions.response"));
|
|
512
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersionDetails.response", zod_1.z
|
|
513
|
-
.object({
|
|
409
|
+
body: zod_1.z.object({
|
|
410
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CommentVersion")).optional(),
|
|
411
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
412
|
+
}).catchall(zod_1.z.unknown())
|
|
413
|
+
}).describe("VersionService.getFooterCommentVersions.response"));
|
|
414
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getFooterCommentVersionDetails.response", zod_1.z.object({
|
|
514
415
|
status: zod_1.z.literal(200),
|
|
515
416
|
mediaType: zod_1.z.literal("application/json"),
|
|
516
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
517
|
-
})
|
|
518
|
-
|
|
519
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersions.response", zod_1.z
|
|
520
|
-
.object({
|
|
417
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
418
|
+
}).describe("VersionService.getFooterCommentVersionDetails.response"));
|
|
419
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersions.response", zod_1.z.object({
|
|
521
420
|
status: zod_1.z.literal(200),
|
|
522
421
|
mediaType: zod_1.z.literal("application/json"),
|
|
523
|
-
body: zod_1.z
|
|
524
|
-
.
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
.lazy("MultiEntityLinks")
|
|
530
|
-
.optional(),
|
|
531
|
-
})
|
|
532
|
-
.catchall(zod_1.z.unknown()),
|
|
533
|
-
})
|
|
534
|
-
.describe("VersionService.getInlineCommentVersions.response"));
|
|
535
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersionDetails.response", zod_1.z
|
|
536
|
-
.object({
|
|
422
|
+
body: zod_1.z.object({
|
|
423
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("CommentVersion")).optional(),
|
|
424
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
425
|
+
}).catchall(zod_1.z.unknown())
|
|
426
|
+
}).describe("VersionService.getInlineCommentVersions.response"));
|
|
427
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getInlineCommentVersionDetails.response", zod_1.z.object({
|
|
537
428
|
status: zod_1.z.literal(200),
|
|
538
429
|
mediaType: zod_1.z.literal("application/json"),
|
|
539
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
540
|
-
})
|
|
541
|
-
|
|
542
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersions.response", zod_1.z
|
|
543
|
-
.object({
|
|
430
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
431
|
+
}).describe("VersionService.getInlineCommentVersionDetails.response"));
|
|
432
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersions.response", zod_1.z.object({
|
|
544
433
|
status: zod_1.z.literal(200),
|
|
545
434
|
mediaType: zod_1.z.literal("application/json"),
|
|
546
|
-
body: zod_1.z
|
|
547
|
-
.
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
.lazy("MultiEntityLinks")
|
|
553
|
-
.optional(),
|
|
554
|
-
})
|
|
555
|
-
.catchall(zod_1.z.unknown()),
|
|
556
|
-
})
|
|
557
|
-
.describe("VersionService.getPageVersions.response"));
|
|
558
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersionDetails.response", zod_1.z
|
|
559
|
-
.object({
|
|
435
|
+
body: zod_1.z.object({
|
|
436
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageVersion")).optional(),
|
|
437
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
438
|
+
}).catchall(zod_1.z.unknown())
|
|
439
|
+
}).describe("VersionService.getPageVersions.response"));
|
|
440
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("VersionService.getPageVersionDetails.response", zod_1.z.object({
|
|
560
441
|
status: zod_1.z.literal(200),
|
|
561
442
|
mediaType: zod_1.z.literal("application/json"),
|
|
562
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
563
|
-
})
|
|
564
|
-
|
|
565
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
566
|
-
version_1.registerVersionValidationSchemas,
|
|
567
|
-
common_1.registerCommonValidationSchemas,
|
|
568
|
-
]);
|
|
443
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("DetailedVersion")
|
|
444
|
+
}).describe("VersionService.getPageVersionDetails.response"));
|
|
445
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([version_1.registerVersionValidationSchemas, common_1.registerCommonValidationSchemas]);
|
|
569
446
|
}
|
|
570
447
|
}
|
|
571
448
|
exports.VersionService = VersionService;
|