@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.PageService = 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 page_1 = require("../models/page");
|
|
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-page
|
|
15
15
|
* @category Services
|
|
@@ -33,29 +33,24 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
33
33
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-post
|
|
34
34
|
* @param params
|
|
35
35
|
*/
|
|
36
|
-
this.createPage = ({ embedded, private: privateQuery, rootLevel, requestBody
|
|
37
|
-
return this.getClientInstance()
|
|
38
|
-
.request({
|
|
36
|
+
this.createPage = ({ embedded, private: privateQuery, rootLevel, requestBody }) => {
|
|
37
|
+
return this.getClientInstance().request({
|
|
39
38
|
path: "/pages",
|
|
40
39
|
method: "POST",
|
|
41
40
|
query: {
|
|
42
41
|
embedded,
|
|
43
42
|
private: privateQuery,
|
|
44
|
-
"root-level": rootLevel
|
|
43
|
+
"root-level": rootLevel
|
|
45
44
|
},
|
|
46
45
|
headers: {
|
|
47
|
-
"Content-Type": "application/json"
|
|
46
|
+
"Content-Type": "application/json"
|
|
48
47
|
},
|
|
49
|
-
body: requestBody
|
|
50
|
-
})
|
|
51
|
-
.then(this.getClientInstance().responseHandler({
|
|
48
|
+
body: requestBody
|
|
49
|
+
}).then(this.getClientInstance().responseHandler({
|
|
52
50
|
200: {
|
|
53
|
-
"application/json": "json"
|
|
54
|
-
}
|
|
55
|
-
}))
|
|
56
|
-
.then(commonHttpClient.castResponse())
|
|
57
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.createPage.response")))
|
|
58
|
-
.then(commonHttpClient.getBody);
|
|
51
|
+
"application/json": "json"
|
|
52
|
+
}
|
|
53
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.createPage.response"))).then(commonHttpClient.getBody);
|
|
59
54
|
};
|
|
60
55
|
/**
|
|
61
56
|
* Delete a page by id.
|
|
@@ -80,20 +75,18 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
80
75
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-delete
|
|
81
76
|
* @param params
|
|
82
77
|
*/
|
|
83
|
-
this.deletePage = ({ id, purge, draft
|
|
84
|
-
return this.getClientInstance()
|
|
85
|
-
.request({
|
|
78
|
+
this.deletePage = ({ id, purge, draft }) => {
|
|
79
|
+
return this.getClientInstance().request({
|
|
86
80
|
path: "/pages/{id}",
|
|
87
81
|
method: "DELETE",
|
|
88
82
|
pathParams: {
|
|
89
|
-
id
|
|
83
|
+
id
|
|
90
84
|
},
|
|
91
85
|
query: {
|
|
92
86
|
purge,
|
|
93
|
-
draft
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
.then(commonHttpClient.discardResult);
|
|
87
|
+
draft
|
|
88
|
+
}
|
|
89
|
+
}).then(commonHttpClient.discardResult);
|
|
97
90
|
};
|
|
98
91
|
/**
|
|
99
92
|
* Returns the pages of specified label. The number of results is limited by the
|
|
@@ -109,30 +102,25 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
109
102
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-labels-id-pages-get
|
|
110
103
|
* @param params
|
|
111
104
|
*/
|
|
112
|
-
this.getLabelPages = ({ id, spaceId, bodyFormat, sort, cursor, limit
|
|
113
|
-
return this.getClientInstance()
|
|
114
|
-
.request({
|
|
105
|
+
this.getLabelPages = ({ id, spaceId, bodyFormat, sort, cursor, limit }) => {
|
|
106
|
+
return this.getClientInstance().request({
|
|
115
107
|
path: "/labels/{id}/pages",
|
|
116
108
|
method: "GET",
|
|
117
109
|
pathParams: {
|
|
118
|
-
id
|
|
110
|
+
id
|
|
119
111
|
},
|
|
120
112
|
query: {
|
|
121
113
|
"space-id": spaceId,
|
|
122
114
|
"body-format": bodyFormat,
|
|
123
115
|
sort,
|
|
124
116
|
cursor,
|
|
125
|
-
limit
|
|
126
|
-
}
|
|
127
|
-
})
|
|
128
|
-
.then(this.getClientInstance().responseHandler({
|
|
117
|
+
limit
|
|
118
|
+
}
|
|
119
|
+
}).then(this.getClientInstance().responseHandler({
|
|
129
120
|
200: {
|
|
130
|
-
"application/json": "json"
|
|
131
|
-
}
|
|
132
|
-
}))
|
|
133
|
-
.then(commonHttpClient.castResponse())
|
|
134
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getLabelPages.response")))
|
|
135
|
-
.then(commonHttpClient.getBody);
|
|
121
|
+
"application/json": "json"
|
|
122
|
+
}
|
|
123
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getLabelPages.response"))).then(commonHttpClient.getBody);
|
|
136
124
|
};
|
|
137
125
|
/**
|
|
138
126
|
* Returns a specific page.
|
|
@@ -146,13 +134,12 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
146
134
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-get
|
|
147
135
|
* @param params
|
|
148
136
|
*/
|
|
149
|
-
this.getPageById = ({ id, bodyFormat, getDraft, status, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus
|
|
150
|
-
return this.getClientInstance()
|
|
151
|
-
.request({
|
|
137
|
+
this.getPageById = ({ id, bodyFormat, getDraft, status, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus }) => {
|
|
138
|
+
return this.getClientInstance().request({
|
|
152
139
|
path: "/pages/{id}",
|
|
153
140
|
method: "GET",
|
|
154
141
|
pathParams: {
|
|
155
|
-
id
|
|
142
|
+
id
|
|
156
143
|
},
|
|
157
144
|
query: {
|
|
158
145
|
"body-format": bodyFormat,
|
|
@@ -165,17 +152,13 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
165
152
|
"include-likes": includeLikes,
|
|
166
153
|
"include-versions": includeVersions,
|
|
167
154
|
"include-version": includeVersion,
|
|
168
|
-
"include-favorited-by-current-user-status": includeFavoritedByCurrentUserStatus
|
|
169
|
-
}
|
|
170
|
-
})
|
|
171
|
-
.then(this.getClientInstance().responseHandler({
|
|
155
|
+
"include-favorited-by-current-user-status": includeFavoritedByCurrentUserStatus
|
|
156
|
+
}
|
|
157
|
+
}).then(this.getClientInstance().responseHandler({
|
|
172
158
|
200: {
|
|
173
|
-
"application/json": "json"
|
|
174
|
-
}
|
|
175
|
-
}))
|
|
176
|
-
.then(commonHttpClient.castResponse())
|
|
177
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPageById.response")))
|
|
178
|
-
.then(commonHttpClient.getBody);
|
|
159
|
+
"application/json": "json"
|
|
160
|
+
}
|
|
161
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPageById.response"))).then(commonHttpClient.getBody);
|
|
179
162
|
};
|
|
180
163
|
/**
|
|
181
164
|
* Returns all pages. The number of results is limited by the `limit` parameter
|
|
@@ -192,9 +175,8 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
192
175
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-get
|
|
193
176
|
* @param params
|
|
194
177
|
*/
|
|
195
|
-
this.getPages = ({ id, spaceId, sort, status, title, bodyFormat, cursor, limit
|
|
196
|
-
return this.getClientInstance()
|
|
197
|
-
.request({
|
|
178
|
+
this.getPages = ({ id, spaceId, sort, status, title, bodyFormat, cursor, limit } = {}) => {
|
|
179
|
+
return this.getClientInstance().request({
|
|
198
180
|
path: "/pages",
|
|
199
181
|
method: "GET",
|
|
200
182
|
query: {
|
|
@@ -205,17 +187,13 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
205
187
|
title,
|
|
206
188
|
"body-format": bodyFormat,
|
|
207
189
|
cursor,
|
|
208
|
-
limit
|
|
209
|
-
}
|
|
210
|
-
})
|
|
211
|
-
.then(this.getClientInstance().responseHandler({
|
|
190
|
+
limit
|
|
191
|
+
}
|
|
192
|
+
}).then(this.getClientInstance().responseHandler({
|
|
212
193
|
200: {
|
|
213
|
-
"application/json": "json"
|
|
214
|
-
}
|
|
215
|
-
}))
|
|
216
|
-
.then(commonHttpClient.castResponse())
|
|
217
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPages.response")))
|
|
218
|
-
.then(commonHttpClient.getBody);
|
|
194
|
+
"application/json": "json"
|
|
195
|
+
}
|
|
196
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPages.response"))).then(commonHttpClient.getBody);
|
|
219
197
|
};
|
|
220
198
|
/**
|
|
221
199
|
* Returns all pages in a space. The number of results is limited by the `limit`
|
|
@@ -233,13 +211,12 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
233
211
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-spaces-id-pages-get
|
|
234
212
|
* @param params
|
|
235
213
|
*/
|
|
236
|
-
this.getPagesInSpace = ({ id, depth, sort, status, title, bodyFormat, cursor, limit
|
|
237
|
-
return this.getClientInstance()
|
|
238
|
-
.request({
|
|
214
|
+
this.getPagesInSpace = ({ id, depth, sort, status, title, bodyFormat, cursor, limit }) => {
|
|
215
|
+
return this.getClientInstance().request({
|
|
239
216
|
path: "/spaces/{id}/pages",
|
|
240
217
|
method: "GET",
|
|
241
218
|
pathParams: {
|
|
242
|
-
id
|
|
219
|
+
id
|
|
243
220
|
},
|
|
244
221
|
query: {
|
|
245
222
|
depth,
|
|
@@ -248,17 +225,13 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
248
225
|
title,
|
|
249
226
|
"body-format": bodyFormat,
|
|
250
227
|
cursor,
|
|
251
|
-
limit
|
|
252
|
-
}
|
|
253
|
-
})
|
|
254
|
-
.then(this.getClientInstance().responseHandler({
|
|
228
|
+
limit
|
|
229
|
+
}
|
|
230
|
+
}).then(this.getClientInstance().responseHandler({
|
|
255
231
|
200: {
|
|
256
|
-
"application/json": "json"
|
|
257
|
-
}
|
|
258
|
-
}))
|
|
259
|
-
.then(commonHttpClient.castResponse())
|
|
260
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPagesInSpace.response")))
|
|
261
|
-
.then(commonHttpClient.getBody);
|
|
232
|
+
"application/json": "json"
|
|
233
|
+
}
|
|
234
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.getPagesInSpace.response"))).then(commonHttpClient.getBody);
|
|
262
235
|
};
|
|
263
236
|
/**
|
|
264
237
|
* Update a page by id.
|
|
@@ -273,130 +246,77 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
273
246
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-put
|
|
274
247
|
* @param params
|
|
275
248
|
*/
|
|
276
|
-
this.updatePage = ({ id, requestBody
|
|
277
|
-
return this.getClientInstance()
|
|
278
|
-
.request({
|
|
249
|
+
this.updatePage = ({ id, requestBody }) => {
|
|
250
|
+
return this.getClientInstance().request({
|
|
279
251
|
path: "/pages/{id}",
|
|
280
252
|
method: "PUT",
|
|
281
253
|
pathParams: {
|
|
282
|
-
id
|
|
254
|
+
id
|
|
283
255
|
},
|
|
284
256
|
headers: {
|
|
285
|
-
"Content-Type": "application/json"
|
|
257
|
+
"Content-Type": "application/json"
|
|
286
258
|
},
|
|
287
|
-
body: requestBody
|
|
288
|
-
})
|
|
289
|
-
.then(this.getClientInstance().responseHandler({
|
|
259
|
+
body: requestBody
|
|
260
|
+
}).then(this.getClientInstance().responseHandler({
|
|
290
261
|
200: {
|
|
291
|
-
"application/json": "json"
|
|
292
|
-
}
|
|
293
|
-
}))
|
|
294
|
-
.then(commonHttpClient.castResponse())
|
|
295
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.updatePage.response")))
|
|
296
|
-
.then(commonHttpClient.getBody);
|
|
262
|
+
"application/json": "json"
|
|
263
|
+
}
|
|
264
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("PageService.updatePage.response"))).then(commonHttpClient.getBody);
|
|
297
265
|
};
|
|
298
266
|
}
|
|
299
267
|
static initialize() {
|
|
300
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getLabelPages.response", zod_1.z
|
|
301
|
-
.object({
|
|
268
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getLabelPages.response", zod_1.z.object({
|
|
302
269
|
status: zod_1.z.literal(200),
|
|
303
270
|
mediaType: zod_1.z.literal("application/json"),
|
|
304
|
-
body: zod_1.z
|
|
305
|
-
.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
.lazy("MultiEntityLinks")
|
|
311
|
-
.optional(),
|
|
312
|
-
})
|
|
313
|
-
.catchall(zod_1.z.unknown()),
|
|
314
|
-
})
|
|
315
|
-
.describe("PageService.getLabelPages.response"));
|
|
316
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPages.response", zod_1.z
|
|
317
|
-
.object({
|
|
271
|
+
body: zod_1.z.object({
|
|
272
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageBulk")).optional(),
|
|
273
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
274
|
+
}).catchall(zod_1.z.unknown())
|
|
275
|
+
}).describe("PageService.getLabelPages.response"));
|
|
276
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPages.response", zod_1.z.object({
|
|
318
277
|
status: zod_1.z.literal(200),
|
|
319
278
|
mediaType: zod_1.z.literal("application/json"),
|
|
320
|
-
body: zod_1.z
|
|
321
|
-
.
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
.lazy("MultiEntityLinks")
|
|
327
|
-
.optional(),
|
|
328
|
-
})
|
|
329
|
-
.catchall(zod_1.z.unknown()),
|
|
330
|
-
})
|
|
331
|
-
.describe("PageService.getPages.response"));
|
|
332
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.createPage.response", zod_1.z
|
|
333
|
-
.object({
|
|
279
|
+
body: zod_1.z.object({
|
|
280
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageBulk")).optional(),
|
|
281
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
282
|
+
}).catchall(zod_1.z.unknown())
|
|
283
|
+
}).describe("PageService.getPages.response"));
|
|
284
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.createPage.response", zod_1.z.object({
|
|
334
285
|
status: zod_1.z.literal(200),
|
|
335
286
|
mediaType: zod_1.z.literal("application/json"),
|
|
336
|
-
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z
|
|
337
|
-
.object({
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
.optional(),
|
|
344
|
-
})
|
|
345
|
-
.catchall(zod_1.z.unknown())),
|
|
346
|
-
})
|
|
347
|
-
.describe("PageService.createPage.response"));
|
|
348
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPageById.response", zod_1.z
|
|
349
|
-
.object({
|
|
287
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z.object({
|
|
288
|
+
_links: zod_1.z.object({
|
|
289
|
+
base: zod_1.z.string().optional()
|
|
290
|
+
}).catchall(zod_1.z.unknown()).optional()
|
|
291
|
+
}).catchall(zod_1.z.unknown()))
|
|
292
|
+
}).describe("PageService.createPage.response"));
|
|
293
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPageById.response", zod_1.z.object({
|
|
350
294
|
status: zod_1.z.literal(200),
|
|
351
295
|
mediaType: zod_1.z.literal("application/json"),
|
|
352
|
-
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z
|
|
353
|
-
.object({
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
.optional(),
|
|
360
|
-
})
|
|
361
|
-
.catchall(zod_1.z.unknown())),
|
|
362
|
-
})
|
|
363
|
-
.describe("PageService.getPageById.response"));
|
|
364
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.updatePage.response", zod_1.z
|
|
365
|
-
.object({
|
|
296
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z.object({
|
|
297
|
+
_links: zod_1.z.object({
|
|
298
|
+
base: zod_1.z.string().optional()
|
|
299
|
+
}).catchall(zod_1.z.unknown()).optional()
|
|
300
|
+
}).catchall(zod_1.z.unknown()))
|
|
301
|
+
}).describe("PageService.getPageById.response"));
|
|
302
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.updatePage.response", zod_1.z.object({
|
|
366
303
|
status: zod_1.z.literal(200),
|
|
367
304
|
mediaType: zod_1.z.literal("application/json"),
|
|
368
|
-
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z
|
|
369
|
-
.object({
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
.optional(),
|
|
376
|
-
})
|
|
377
|
-
.catchall(zod_1.z.unknown())),
|
|
378
|
-
})
|
|
379
|
-
.describe("PageService.updatePage.response"));
|
|
380
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPagesInSpace.response", zod_1.z
|
|
381
|
-
.object({
|
|
305
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("PageSingle"), zod_1.z.object({
|
|
306
|
+
_links: zod_1.z.object({
|
|
307
|
+
base: zod_1.z.string().optional()
|
|
308
|
+
}).catchall(zod_1.z.unknown()).optional()
|
|
309
|
+
}).catchall(zod_1.z.unknown()))
|
|
310
|
+
}).describe("PageService.updatePage.response"));
|
|
311
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("PageService.getPagesInSpace.response", zod_1.z.object({
|
|
382
312
|
status: zod_1.z.literal(200),
|
|
383
313
|
mediaType: zod_1.z.literal("application/json"),
|
|
384
|
-
body: zod_1.z
|
|
385
|
-
.
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
.lazy("MultiEntityLinks")
|
|
391
|
-
.optional(),
|
|
392
|
-
})
|
|
393
|
-
.catchall(zod_1.z.unknown()),
|
|
394
|
-
})
|
|
395
|
-
.describe("PageService.getPagesInSpace.response"));
|
|
396
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
397
|
-
page_1.registerPageValidationSchemas,
|
|
398
|
-
common_1.registerCommonValidationSchemas,
|
|
399
|
-
]);
|
|
314
|
+
body: zod_1.z.object({
|
|
315
|
+
results: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("PageBulk")).optional(),
|
|
316
|
+
_links: validationSchemaStorage_1.validationSchemaStorage.lazy("MultiEntityLinks").optional()
|
|
317
|
+
}).catchall(zod_1.z.unknown())
|
|
318
|
+
}).describe("PageService.getPagesInSpace.response"));
|
|
319
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([page_1.registerPageValidationSchemas, common_1.registerCommonValidationSchemas]);
|
|
400
320
|
}
|
|
401
321
|
}
|
|
402
322
|
exports.PageService = PageService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/PageService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"PageService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/PageService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAAgK;AAChK,yCAAiK;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;gBACrE,MAAM,EAAE,iDAAuB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;aACpE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC,CAAC;QACrD,iDAAuB,CAAC,YAAY,CAAC,CAAC,oCAA6B,EAAE,wCAA+B,CAAC,CAAC,CAAC;IACzG,CAAC;CACF;AAntBD,kCAmtBC"}
|
|
@@ -18,7 +18,7 @@ export declare class SmartLinkService extends CommonHttpService {
|
|
|
18
18
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link#api-embeds-post
|
|
19
19
|
* @param params
|
|
20
20
|
*/
|
|
21
|
-
createSmartLink: ({ requestBody
|
|
21
|
+
createSmartLink: ({ requestBody }: {
|
|
22
22
|
requestBody: {
|
|
23
23
|
/** ID of the space. */
|
|
24
24
|
spaceId: string;
|
|
@@ -57,7 +57,7 @@ export declare class SmartLinkService extends CommonHttpService {
|
|
|
57
57
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link#api-embeds-id-delete
|
|
58
58
|
* @param params
|
|
59
59
|
*/
|
|
60
|
-
deleteSmartLink: ({ id
|
|
60
|
+
deleteSmartLink: ({ id }: {
|
|
61
61
|
/** The ID of the Smart Link in the content tree to be deleted. */
|
|
62
62
|
id: number;
|
|
63
63
|
}) => Promise<void>;
|
|
@@ -74,7 +74,7 @@ export declare class SmartLinkService extends CommonHttpService {
|
|
|
74
74
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link#api-embeds-id-get
|
|
75
75
|
* @param params
|
|
76
76
|
*/
|
|
77
|
-
getSmartLinkById: ({ id
|
|
77
|
+
getSmartLinkById: ({ id }: {
|
|
78
78
|
/** The ID of the Smart Link in the content tree to be returned. */
|
|
79
79
|
id: number;
|
|
80
80
|
}) => Promise<SmartLinkSingle & {
|
|
@@ -4,11 +4,11 @@ exports.SmartLinkService = 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 smartLink_1 = require("../models/smartLink");
|
|
11
10
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
11
|
+
const zod_1 = require("zod");
|
|
12
12
|
/**
|
|
13
13
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link
|
|
14
14
|
* @category Services
|
|
@@ -29,24 +29,19 @@ class SmartLinkService extends CommonHttpService_1.CommonHttpService {
|
|
|
29
29
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link#api-embeds-post
|
|
30
30
|
* @param params
|
|
31
31
|
*/
|
|
32
|
-
this.createSmartLink = ({ requestBody
|
|
33
|
-
return this.getClientInstance()
|
|
34
|
-
.request({
|
|
32
|
+
this.createSmartLink = ({ requestBody }) => {
|
|
33
|
+
return this.getClientInstance().request({
|
|
35
34
|
path: "/embeds",
|
|
36
35
|
method: "POST",
|
|
37
36
|
headers: {
|
|
38
|
-
"Content-Type": "application/json"
|
|
37
|
+
"Content-Type": "application/json"
|
|
39
38
|
},
|
|
40
|
-
body: requestBody
|
|
41
|
-
})
|
|
42
|
-
.then(this.getClientInstance().responseHandler({
|
|
39
|
+
body: requestBody
|
|
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("SmartLinkService.createSmartLink.response")))
|
|
49
|
-
.then(commonHttpClient.getBody);
|
|
42
|
+
"application/json": "json"
|
|
43
|
+
}
|
|
44
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("SmartLinkService.createSmartLink.response"))).then(commonHttpClient.getBody);
|
|
50
45
|
};
|
|
51
46
|
/**
|
|
52
47
|
* Delete a Smart Link in the content tree by id.
|
|
@@ -64,16 +59,14 @@ class SmartLinkService extends CommonHttpService_1.CommonHttpService {
|
|
|
64
59
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link#api-embeds-id-delete
|
|
65
60
|
* @param params
|
|
66
61
|
*/
|
|
67
|
-
this.deleteSmartLink = ({ id
|
|
68
|
-
return this.getClientInstance()
|
|
69
|
-
.request({
|
|
62
|
+
this.deleteSmartLink = ({ id }) => {
|
|
63
|
+
return this.getClientInstance().request({
|
|
70
64
|
path: "/embeds/{id}",
|
|
71
65
|
method: "DELETE",
|
|
72
66
|
pathParams: {
|
|
73
|
-
id
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
.then(commonHttpClient.discardResult);
|
|
67
|
+
id
|
|
68
|
+
}
|
|
69
|
+
}).then(commonHttpClient.discardResult);
|
|
77
70
|
};
|
|
78
71
|
/**
|
|
79
72
|
* Returns a specific Smart Link in the content tree.
|
|
@@ -88,58 +81,39 @@ class SmartLinkService extends CommonHttpService_1.CommonHttpService {
|
|
|
88
81
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-link#api-embeds-id-get
|
|
89
82
|
* @param params
|
|
90
83
|
*/
|
|
91
|
-
this.getSmartLinkById = ({ id
|
|
92
|
-
return this.getClientInstance()
|
|
93
|
-
.request({
|
|
84
|
+
this.getSmartLinkById = ({ id }) => {
|
|
85
|
+
return this.getClientInstance().request({
|
|
94
86
|
path: "/embeds/{id}",
|
|
95
87
|
method: "GET",
|
|
96
88
|
pathParams: {
|
|
97
|
-
id
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
.then(this.getClientInstance().responseHandler({
|
|
89
|
+
id
|
|
90
|
+
}
|
|
91
|
+
}).then(this.getClientInstance().responseHandler({
|
|
101
92
|
200: {
|
|
102
|
-
"application/json": "json"
|
|
103
|
-
}
|
|
104
|
-
}))
|
|
105
|
-
.then(commonHttpClient.castResponse())
|
|
106
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("SmartLinkService.getSmartLinkById.response")))
|
|
107
|
-
.then(commonHttpClient.getBody);
|
|
93
|
+
"application/json": "json"
|
|
94
|
+
}
|
|
95
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("SmartLinkService.getSmartLinkById.response"))).then(commonHttpClient.getBody);
|
|
108
96
|
};
|
|
109
97
|
}
|
|
110
98
|
static initialize() {
|
|
111
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SmartLinkService.createSmartLink.response", zod_1.z
|
|
112
|
-
.object({
|
|
99
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SmartLinkService.createSmartLink.response", zod_1.z.object({
|
|
113
100
|
status: zod_1.z.literal(200),
|
|
114
101
|
mediaType: zod_1.z.literal("application/json"),
|
|
115
|
-
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("SmartLinkSingle"), zod_1.z
|
|
116
|
-
.object({
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
.optional(),
|
|
123
|
-
})
|
|
124
|
-
.catchall(zod_1.z.unknown())),
|
|
125
|
-
})
|
|
126
|
-
.describe("SmartLinkService.createSmartLink.response"));
|
|
127
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SmartLinkService.getSmartLinkById.response", zod_1.z
|
|
128
|
-
.object({
|
|
102
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("SmartLinkSingle"), zod_1.z.object({
|
|
103
|
+
_links: zod_1.z.object({
|
|
104
|
+
base: zod_1.z.string().optional()
|
|
105
|
+
}).catchall(zod_1.z.unknown()).optional()
|
|
106
|
+
}).catchall(zod_1.z.unknown()))
|
|
107
|
+
}).describe("SmartLinkService.createSmartLink.response"));
|
|
108
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SmartLinkService.getSmartLinkById.response", zod_1.z.object({
|
|
129
109
|
status: zod_1.z.literal(200),
|
|
130
110
|
mediaType: zod_1.z.literal("application/json"),
|
|
131
|
-
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("SmartLinkSingle"), zod_1.z
|
|
132
|
-
.object({
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
.catchall(zod_1.z.unknown())
|
|
138
|
-
.optional(),
|
|
139
|
-
})
|
|
140
|
-
.catchall(zod_1.z.unknown())),
|
|
141
|
-
})
|
|
142
|
-
.describe("SmartLinkService.getSmartLinkById.response"));
|
|
111
|
+
body: zod_1.z.intersection(validationSchemaStorage_1.validationSchemaStorage.lazy("SmartLinkSingle"), zod_1.z.object({
|
|
112
|
+
_links: zod_1.z.object({
|
|
113
|
+
base: zod_1.z.string().optional()
|
|
114
|
+
}).catchall(zod_1.z.unknown()).optional()
|
|
115
|
+
}).catchall(zod_1.z.unknown()))
|
|
116
|
+
}).describe("SmartLinkService.getSmartLinkById.response"));
|
|
143
117
|
validationSchemaStorage_1.validationSchemaStorage.registerOnce([smartLink_1.registerSmartLinkValidationSchemas]);
|
|
144
118
|
}
|
|
145
119
|
}
|