@resolution/confluence-api-client 0.7.12 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +208 -213
- package/README.md +4 -4
- package/lib/openapi/core/CommonHttpClient.d.ts +46 -17
- package/lib/openapi/core/CommonHttpClient.js +175 -232
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/core/CommonHttpService.d.ts +1 -1
- package/lib/openapi/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/core/CommonValidationSchemaStorage.d.ts +4 -4
- package/lib/openapi/core/CommonValidationSchemaStorage.js +2 -4
- package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +4 -4
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +38 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/audit.d.ts +2 -2
- package/lib/openapi/v1/models/audit.js +31 -90
- package/lib/openapi/v1/models/audit.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +2 -4
- package/lib/openapi/v1/models/common.js +188 -464
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +2 -2
- package/lib/openapi/v1/models/content.js +205 -491
- package/lib/openapi/v1/models/content.js.map +1 -1
- package/lib/openapi/v1/models/contentAttachments.d.ts +1 -1
- package/lib/openapi/v1/models/contentAttachments.js +8 -19
- package/lib/openapi/v1/models/contentAttachments.js.map +1 -1
- package/lib/openapi/v1/models/contentBody.d.ts +2 -2
- package/lib/openapi/v1/models/contentBody.js +20 -59
- package/lib/openapi/v1/models/contentBody.js.map +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +4 -2
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +17 -40
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
- package/lib/openapi/v1/models/contentLabels.d.ts +1 -1
- package/lib/openapi/v1/models/contentLabels.js +2 -7
- package/lib/openapi/v1/models/contentLabels.js.map +1 -1
- package/lib/openapi/v1/models/contentMacroBody.d.ts +1 -1
- package/lib/openapi/v1/models/contentMacroBody.js +4 -10
- package/lib/openapi/v1/models/contentMacroBody.js.map +1 -1
- package/lib/openapi/v1/models/contentPermissions.d.ts +2 -2
- package/lib/openapi/v1/models/contentPermissions.js +10 -22
- package/lib/openapi/v1/models/contentPermissions.js.map +1 -1
- package/lib/openapi/v1/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v1/models/contentProperties.js +25 -71
- package/lib/openapi/v1/models/contentProperties.js.map +1 -1
- package/lib/openapi/v1/models/contentRestrictions.d.ts +2 -2
- package/lib/openapi/v1/models/contentRestrictions.js +17 -57
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +1 -20
- package/lib/openapi/v1/models/contentStates.js +15 -55
- package/lib/openapi/v1/models/contentStates.js.map +1 -1
- package/lib/openapi/v1/models/contentVersions.d.ts +2 -2
- package/lib/openapi/v1/models/contentVersions.js +9 -20
- package/lib/openapi/v1/models/contentVersions.js.map +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +2 -2
- package/lib/openapi/v1/models/contentWatches.js +21 -46
- package/lib/openapi/v1/models/contentWatches.js.map +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +33 -27
- package/lib/openapi/v1/models/dynamicModules.js +6 -15
- package/lib/openapi/v1/models/dynamicModules.js.map +1 -1
- package/lib/openapi/v1/models/group.d.ts +1 -1
- package/lib/openapi/v1/models/group.js +6 -15
- package/lib/openapi/v1/models/group.js.map +1 -1
- package/lib/openapi/v1/models/inlineTasks.d.ts +1 -1
- package/lib/openapi/v1/models/inlineTasks.js +10 -22
- package/lib/openapi/v1/models/inlineTasks.js.map +1 -1
- package/lib/openapi/v1/models/labelInfo.d.ts +1 -1
- package/lib/openapi/v1/models/labelInfo.js +11 -27
- package/lib/openapi/v1/models/labelInfo.js.map +1 -1
- package/lib/openapi/v1/models/longRunningTask.d.ts +2 -2
- package/lib/openapi/v1/models/longRunningTask.js +20 -42
- package/lib/openapi/v1/models/longRunningTask.js.map +1 -1
- package/lib/openapi/v1/models/relation.d.ts +2 -2
- package/lib/openapi/v1/models/relation.js +16 -45
- package/lib/openapi/v1/models/relation.js.map +1 -1
- package/lib/openapi/v1/models/search.d.ts +2 -2
- package/lib/openapi/v1/models/search.js +15 -34
- package/lib/openapi/v1/models/search.js.map +1 -1
- package/lib/openapi/v1/models/settings.d.ts +2 -2
- package/lib/openapi/v1/models/settings.js +13 -29
- package/lib/openapi/v1/models/settings.js.map +1 -1
- package/lib/openapi/v1/models/space.d.ts +2 -2
- package/lib/openapi/v1/models/space.js +31 -69
- package/lib/openapi/v1/models/space.js.map +1 -1
- package/lib/openapi/v1/models/spacePermissions.d.ts +1 -1
- package/lib/openapi/v1/models/spacePermissions.js +23 -86
- package/lib/openapi/v1/models/spacePermissions.js.map +1 -1
- package/lib/openapi/v1/models/spaceProperties.d.ts +2 -2
- package/lib/openapi/v1/models/spaceProperties.js +26 -71
- package/lib/openapi/v1/models/spaceProperties.js.map +1 -1
- package/lib/openapi/v1/models/spaceSettings.d.ts +1 -1
- package/lib/openapi/v1/models/spaceSettings.js +3 -9
- package/lib/openapi/v1/models/spaceSettings.js.map +1 -1
- package/lib/openapi/v1/models/template.d.ts +2 -2
- package/lib/openapi/v1/models/template.js +45 -103
- package/lib/openapi/v1/models/template.js.map +1 -1
- package/lib/openapi/v1/models/themes.d.ts +1 -1
- package/lib/openapi/v1/models/themes.js +10 -22
- package/lib/openapi/v1/models/themes.js.map +1 -1
- package/lib/openapi/v1/models/userProperties.d.ts +1 -1
- package/lib/openapi/v1/models/userProperties.js +16 -33
- package/lib/openapi/v1/models/userProperties.js.map +1 -1
- package/lib/openapi/v1/models/users.d.ts +2 -2
- package/lib/openapi/v1/models/users.js +25 -57
- package/lib/openapi/v1/models/users.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +2 -2
- package/lib/openapi/v1/services/AnalyticsService.js +29 -47
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +6 -6
- package/lib/openapi/v1/services/AuditService.js +67 -109
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentAttachmentsService.js +72 -109
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentBodyService.js +67 -105
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +110 -160
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentCommentsService.js +19 -26
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentLabelsService.js +36 -54
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentMacroBodyService.js +43 -67
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.js +14 -23
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +7 -7
- package/lib/openapi/v1/services/ContentPropertiesService.js +73 -112
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentRestrictionsService.js +127 -184
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentService.js +143 -211
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +13 -56
- package/lib/openapi/v1/services/ContentStatesService.js +99 -246
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +4 -4
- package/lib/openapi/v1/services/ContentVersionsService.js +53 -79
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentWatchesService.js +113 -169
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +2 -2
- package/lib/openapi/v1/services/DynamicModulesService.js +24 -37
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +5 -5
- package/lib/openapi/v1/services/ExperimentalService.js +42 -65
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +10 -10
- package/lib/openapi/v1/services/GroupService.js +76 -117
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +4 -4
- package/lib/openapi/v1/services/InlineTasksService.js +36 -59
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +1 -1
- package/lib/openapi/v1/services/LabelInfoService.js +12 -19
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +2 -2
- package/lib/openapi/v1/services/LongRunningTaskService.js +24 -40
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +38 -18
- package/lib/openapi/v1/services/RelationService.js +64 -94
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +5 -5
- package/lib/openapi/v1/services/SearchService.js +32 -46
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +6 -6
- package/lib/openapi/v1/services/SettingsService.js +61 -98
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpacePermissionsService.js +25 -38
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +7 -7
- package/lib/openapi/v1/services/SpacePropertiesService.js +73 -112
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +15 -15
- package/lib/openapi/v1/services/SpaceService.js +114 -175
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +2 -2
- package/lib/openapi/v1/services/SpaceSettingsService.js +24 -38
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +7 -7
- package/lib/openapi/v1/services/TemplateService.js +67 -104
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +5 -5
- package/lib/openapi/v1/services/ThemesService.js +61 -101
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -6
- package/lib/openapi/v1/services/UserPropertiesService.js +42 -64
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +9 -9
- package/lib/openapi/v1/services/UsersService.js +94 -146
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v1/validationSchemaStorage.d.ts +2 -2
- package/lib/openapi/v1/validationSchemaStorage.js +12 -22
- package/lib/openapi/v1/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +3 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/models/ancestors.d.ts +1 -1
- package/lib/openapi/v2/models/ancestors.js +4 -12
- package/lib/openapi/v2/models/ancestors.js.map +1 -1
- package/lib/openapi/v2/models/attachment.d.ts +2 -2
- package/lib/openapi/v2/models/attachment.js +26 -71
- package/lib/openapi/v2/models/attachment.js.map +1 -1
- package/lib/openapi/v2/models/blogPost.d.ts +2 -2
- package/lib/openapi/v2/models/blogPost.js +37 -102
- package/lib/openapi/v2/models/blogPost.js.map +1 -1
- package/lib/openapi/v2/models/children.d.ts +1 -1
- package/lib/openapi/v2/models/children.js +9 -24
- package/lib/openapi/v2/models/children.js.map +1 -1
- package/lib/openapi/v2/models/classificationLevel.d.ts +1 -1
- package/lib/openapi/v2/models/classificationLevel.js +6 -32
- package/lib/openapi/v2/models/classificationLevel.js.map +1 -1
- package/lib/openapi/v2/models/comment.d.ts +2 -2
- package/lib/openapi/v2/models/comment.js +107 -272
- package/lib/openapi/v2/models/comment.js.map +1 -1
- package/lib/openapi/v2/models/common.d.ts +1 -1
- package/lib/openapi/v2/models/common.js +84 -214
- package/lib/openapi/v2/models/common.js.map +1 -1
- package/lib/openapi/v2/models/content.d.ts +1 -1
- package/lib/openapi/v2/models/content.js +3 -21
- package/lib/openapi/v2/models/content.js.map +1 -1
- package/lib/openapi/v2/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v2/models/contentProperties.js +8 -20
- package/lib/openapi/v2/models/contentProperties.js.map +1 -1
- package/lib/openapi/v2/models/customContent.d.ts +2 -2
- package/lib/openapi/v2/models/customContent.js +43 -121
- package/lib/openapi/v2/models/customContent.js.map +1 -1
- package/lib/openapi/v2/models/dataPolicies.d.ts +1 -1
- package/lib/openapi/v2/models/dataPolicies.js +11 -25
- package/lib/openapi/v2/models/dataPolicies.js.map +1 -1
- package/lib/openapi/v2/models/database.d.ts +1 -1
- package/lib/openapi/v2/models/database.js +8 -19
- package/lib/openapi/v2/models/database.js.map +1 -1
- package/lib/openapi/v2/models/eap.d.ts +1 -1
- package/lib/openapi/v2/models/eap.js +0 -3
- package/lib/openapi/v2/models/eap.js.map +1 -1
- package/lib/openapi/v2/models/folder.d.ts +1 -1
- package/lib/openapi/v2/models/folder.js +8 -19
- package/lib/openapi/v2/models/folder.js.map +1 -1
- package/lib/openapi/v2/models/operation.d.ts +1 -1
- package/lib/openapi/v2/models/operation.js +4 -12
- package/lib/openapi/v2/models/operation.js.map +1 -1
- package/lib/openapi/v2/models/page.d.ts +2 -2
- package/lib/openapi/v2/models/page.js +36 -101
- package/lib/openapi/v2/models/page.js.map +1 -1
- package/lib/openapi/v2/models/smartLink.d.ts +1 -1
- package/lib/openapi/v2/models/smartLink.js +8 -19
- package/lib/openapi/v2/models/smartLink.js.map +1 -1
- package/lib/openapi/v2/models/space.d.ts +2 -2
- package/lib/openapi/v2/models/space.js +21 -57
- package/lib/openapi/v2/models/space.js.map +1 -1
- package/lib/openapi/v2/models/spaceProperties.d.ts +1 -1
- package/lib/openapi/v2/models/spaceProperties.js +8 -20
- package/lib/openapi/v2/models/spaceProperties.js.map +1 -1
- package/lib/openapi/v2/models/task.d.ts +1 -1
- package/lib/openapi/v2/models/task.js +7 -16
- package/lib/openapi/v2/models/task.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +1 -1
- package/lib/openapi/v2/models/user.js +7 -20
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/models/version.d.ts +1 -1
- package/lib/openapi/v2/models/version.js +22 -46
- package/lib/openapi/v2/models/version.js.map +1 -1
- package/lib/openapi/v2/models/whiteboard.d.ts +1 -1
- package/lib/openapi/v2/models/whiteboard.js +8 -19
- package/lib/openapi/v2/models/whiteboard.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +5 -5
- package/lib/openapi/v2/services/AncestorsService.js +73 -133
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +8 -8
- package/lib/openapi/v2/services/AttachmentService.js +98 -180
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +9 -9
- package/lib/openapi/v2/services/BlogPostService.js +100 -180
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +2 -2
- package/lib/openapi/v2/services/ChildrenService.js +32 -61
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +15 -15
- package/lib/openapi/v2/services/ClassificationLevelService.js +127 -191
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +20 -20
- package/lib/openapi/v2/services/CommentService.js +250 -454
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +46 -46
- package/lib/openapi/v2/services/ContentPropertiesService.js +496 -820
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +1 -1
- package/lib/openapi/v2/services/ContentService.js +12 -19
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +14 -11
- package/lib/openapi/v2/services/CustomContentService.js +114 -207
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +2 -2
- package/lib/openapi/v2/services/DataPoliciesService.js +25 -48
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +3 -3
- package/lib/openapi/v2/services/DatabaseService.js +37 -63
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/EapService.d.ts +7 -7
- package/lib/openapi/v2/services/EapService.js +89 -165
- package/lib/openapi/v2/services/EapService.js.map +1 -1
- package/lib/openapi/v2/services/FolderService.d.ts +3 -3
- package/lib/openapi/v2/services/FolderService.js +36 -62
- package/lib/openapi/v2/services/FolderService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +7 -7
- package/lib/openapi/v2/services/LabelService.js +105 -196
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +8 -8
- package/lib/openapi/v2/services/LikeService.js +109 -189
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +11 -11
- package/lib/openapi/v2/services/OperationService.js +122 -199
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +9 -9
- package/lib/openapi/v2/services/PageService.js +100 -180
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +3 -3
- package/lib/openapi/v2/services/SmartLinkService.js +36 -62
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +3 -3
- package/lib/openapi/v2/services/SpacePermissionsService.js +30 -56
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePropertiesService.js +56 -92
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceRolesService.d.ts +5 -5
- package/lib/openapi/v2/services/SpaceRolesService.js +60 -111
- package/lib/openapi/v2/services/SpaceRolesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +4 -4
- package/lib/openapi/v2/services/SpaceService.js +47 -87
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +4 -4
- package/lib/openapi/v2/services/TaskService.js +40 -68
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +3 -3
- package/lib/openapi/v2/services/UserService.js +33 -58
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +14 -14
- package/lib/openapi/v2/services/VersionService.js +158 -281
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +3 -3
- package/lib/openapi/v2/services/WhiteboardService.js +37 -63
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/lib/openapi/v2/validationSchemaStorage.d.ts +2 -2
- package/lib/openapi/v2/validationSchemaStorage.js +12 -22
- package/lib/openapi/v2/validationSchemaStorage.js.map +1 -1
- package/package.json +5 -4
|
@@ -4,12 +4,12 @@ exports.ThemesService = 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 themes_1 = require("../models/themes");
|
|
12
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
const zod_1 = require("zod");
|
|
13
13
|
/**
|
|
14
14
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes
|
|
15
15
|
* @category Services
|
|
@@ -29,19 +29,14 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
29
29
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-selected-get
|
|
30
30
|
*/
|
|
31
31
|
this.getGlobalTheme = () => {
|
|
32
|
-
return this.getClientInstance()
|
|
33
|
-
.request({
|
|
32
|
+
return this.getClientInstance().request({
|
|
34
33
|
path: "/wiki/rest/api/settings/theme/selected",
|
|
35
|
-
method: "GET"
|
|
36
|
-
})
|
|
37
|
-
.then(this.getClientInstance().responseHandler({
|
|
34
|
+
method: "GET"
|
|
35
|
+
}).then(this.getClientInstance().responseHandler({
|
|
38
36
|
200: {
|
|
39
|
-
"application/json": "json"
|
|
40
|
-
}
|
|
41
|
-
}))
|
|
42
|
-
.then(commonHttpClient.castResponse())
|
|
43
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getGlobalTheme.response")))
|
|
44
|
-
.then(commonHttpClient.getBody);
|
|
37
|
+
"application/json": "json"
|
|
38
|
+
}
|
|
39
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getGlobalTheme.response"))).then(commonHttpClient.getBody);
|
|
45
40
|
};
|
|
46
41
|
/**
|
|
47
42
|
* Returns the theme selected for a space, if one is set. If no space
|
|
@@ -58,23 +53,18 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
58
53
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-get
|
|
59
54
|
* @param params
|
|
60
55
|
*/
|
|
61
|
-
this.getSpaceTheme = ({ spaceKey
|
|
62
|
-
return this.getClientInstance()
|
|
63
|
-
.request({
|
|
56
|
+
this.getSpaceTheme = ({ spaceKey }) => {
|
|
57
|
+
return this.getClientInstance().request({
|
|
64
58
|
path: "/wiki/rest/api/space/{spaceKey}/theme",
|
|
65
59
|
method: "GET",
|
|
66
60
|
pathParams: {
|
|
67
|
-
spaceKey
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
.then(this.getClientInstance().responseHandler({
|
|
61
|
+
spaceKey
|
|
62
|
+
}
|
|
63
|
+
}).then(this.getClientInstance().responseHandler({
|
|
71
64
|
200: {
|
|
72
|
-
"application/json": "json"
|
|
73
|
-
}
|
|
74
|
-
}))
|
|
75
|
-
.then(commonHttpClient.castResponse())
|
|
76
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getSpaceTheme.response")))
|
|
77
|
-
.then(commonHttpClient.getBody);
|
|
65
|
+
"application/json": "json"
|
|
66
|
+
}
|
|
67
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getSpaceTheme.response"))).then(commonHttpClient.getBody);
|
|
78
68
|
};
|
|
79
69
|
/**
|
|
80
70
|
* Returns a theme. This includes information about the theme name,
|
|
@@ -89,23 +79,18 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
89
79
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-themekey-get
|
|
90
80
|
* @param params
|
|
91
81
|
*/
|
|
92
|
-
this.getTheme = ({ themeKey
|
|
93
|
-
return this.getClientInstance()
|
|
94
|
-
.request({
|
|
82
|
+
this.getTheme = ({ themeKey }) => {
|
|
83
|
+
return this.getClientInstance().request({
|
|
95
84
|
path: "/wiki/rest/api/settings/theme/{themeKey}",
|
|
96
85
|
method: "GET",
|
|
97
86
|
pathParams: {
|
|
98
|
-
themeKey
|
|
99
|
-
}
|
|
100
|
-
})
|
|
101
|
-
.then(this.getClientInstance().responseHandler({
|
|
87
|
+
themeKey
|
|
88
|
+
}
|
|
89
|
+
}).then(this.getClientInstance().responseHandler({
|
|
102
90
|
200: {
|
|
103
|
-
"application/json": "json"
|
|
104
|
-
}
|
|
105
|
-
}))
|
|
106
|
-
.then(commonHttpClient.castResponse())
|
|
107
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getTheme.response")))
|
|
108
|
-
.then(commonHttpClient.getBody);
|
|
91
|
+
"application/json": "json"
|
|
92
|
+
}
|
|
93
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getTheme.response"))).then(commonHttpClient.getBody);
|
|
109
94
|
};
|
|
110
95
|
/**
|
|
111
96
|
* Returns all themes, not including the default theme.
|
|
@@ -119,24 +104,19 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
119
104
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-get
|
|
120
105
|
* @param params
|
|
121
106
|
*/
|
|
122
|
-
this.getThemes = ({ start, limit
|
|
123
|
-
return this.getClientInstance()
|
|
124
|
-
.request({
|
|
107
|
+
this.getThemes = ({ start, limit } = {}) => {
|
|
108
|
+
return this.getClientInstance().request({
|
|
125
109
|
path: "/wiki/rest/api/settings/theme",
|
|
126
110
|
method: "GET",
|
|
127
111
|
query: {
|
|
128
112
|
start,
|
|
129
|
-
limit
|
|
130
|
-
}
|
|
131
|
-
})
|
|
132
|
-
.then(this.getClientInstance().responseHandler({
|
|
113
|
+
limit
|
|
114
|
+
}
|
|
115
|
+
}).then(this.getClientInstance().responseHandler({
|
|
133
116
|
200: {
|
|
134
|
-
"application/json": "json"
|
|
135
|
-
}
|
|
136
|
-
}))
|
|
137
|
-
.then(commonHttpClient.castResponse())
|
|
138
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getThemes.response")))
|
|
139
|
-
.then(commonHttpClient.getBody);
|
|
117
|
+
"application/json": "json"
|
|
118
|
+
}
|
|
119
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.getThemes.response"))).then(commonHttpClient.getBody);
|
|
140
120
|
};
|
|
141
121
|
/**
|
|
142
122
|
* Resets the space theme. This means that the space will inherit the
|
|
@@ -151,16 +131,14 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
151
131
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-delete
|
|
152
132
|
* @param params
|
|
153
133
|
*/
|
|
154
|
-
this.resetSpaceTheme = ({ spaceKey
|
|
155
|
-
return this.getClientInstance()
|
|
156
|
-
.request({
|
|
134
|
+
this.resetSpaceTheme = ({ spaceKey }) => {
|
|
135
|
+
return this.getClientInstance().request({
|
|
157
136
|
path: "/wiki/rest/api/space/{spaceKey}/theme",
|
|
158
137
|
method: "DELETE",
|
|
159
138
|
pathParams: {
|
|
160
|
-
spaceKey
|
|
161
|
-
}
|
|
162
|
-
})
|
|
163
|
-
.then(commonHttpClient.discardResult);
|
|
139
|
+
spaceKey
|
|
140
|
+
}
|
|
141
|
+
}).then(commonHttpClient.discardResult);
|
|
164
142
|
};
|
|
165
143
|
/**
|
|
166
144
|
* Sets the theme for a space. Note, if you want to reset the space theme to
|
|
@@ -177,69 +155,51 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
177
155
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-put
|
|
178
156
|
* @param params
|
|
179
157
|
*/
|
|
180
|
-
this.setSpaceTheme = ({ spaceKey, themeUpdate
|
|
181
|
-
return this.getClientInstance()
|
|
182
|
-
.request({
|
|
158
|
+
this.setSpaceTheme = ({ spaceKey, themeUpdate }) => {
|
|
159
|
+
return this.getClientInstance().request({
|
|
183
160
|
path: "/wiki/rest/api/space/{spaceKey}/theme",
|
|
184
161
|
method: "PUT",
|
|
185
162
|
pathParams: {
|
|
186
|
-
spaceKey
|
|
163
|
+
spaceKey
|
|
187
164
|
},
|
|
188
165
|
headers: {
|
|
189
|
-
"Content-Type": "application/json"
|
|
166
|
+
"Content-Type": "application/json"
|
|
190
167
|
},
|
|
191
|
-
body: themeUpdate
|
|
192
|
-
})
|
|
193
|
-
.then(this.getClientInstance().responseHandler({
|
|
168
|
+
body: themeUpdate
|
|
169
|
+
}).then(this.getClientInstance().responseHandler({
|
|
194
170
|
200: {
|
|
195
|
-
"application/json": "json"
|
|
196
|
-
}
|
|
197
|
-
}))
|
|
198
|
-
.then(commonHttpClient.castResponse())
|
|
199
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.setSpaceTheme.response")))
|
|
200
|
-
.then(commonHttpClient.getBody);
|
|
171
|
+
"application/json": "json"
|
|
172
|
+
}
|
|
173
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ThemesService.setSpaceTheme.response"))).then(commonHttpClient.getBody);
|
|
201
174
|
};
|
|
202
175
|
}
|
|
203
176
|
static initialize() {
|
|
204
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getThemes.response", zod_1.z
|
|
205
|
-
.object({
|
|
177
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getThemes.response", zod_1.z.object({
|
|
206
178
|
status: zod_1.z.literal(200),
|
|
207
179
|
mediaType: zod_1.z.literal("application/json"),
|
|
208
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ThemeArray")
|
|
209
|
-
})
|
|
210
|
-
|
|
211
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getTheme.response", zod_1.z
|
|
212
|
-
.object({
|
|
180
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ThemeArray")
|
|
181
|
+
}).describe("ThemesService.getThemes.response"));
|
|
182
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getTheme.response", zod_1.z.object({
|
|
213
183
|
status: zod_1.z.literal(200),
|
|
214
184
|
mediaType: zod_1.z.literal("application/json"),
|
|
215
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
216
|
-
})
|
|
217
|
-
|
|
218
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getGlobalTheme.response", zod_1.z
|
|
219
|
-
.object({
|
|
185
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
186
|
+
}).describe("ThemesService.getTheme.response"));
|
|
187
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getGlobalTheme.response", zod_1.z.object({
|
|
220
188
|
status: zod_1.z.literal(200),
|
|
221
189
|
mediaType: zod_1.z.literal("application/json"),
|
|
222
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
223
|
-
})
|
|
224
|
-
|
|
225
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getSpaceTheme.response", zod_1.z
|
|
226
|
-
.object({
|
|
190
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
191
|
+
}).describe("ThemesService.getGlobalTheme.response"));
|
|
192
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.getSpaceTheme.response", zod_1.z.object({
|
|
227
193
|
status: zod_1.z.literal(200),
|
|
228
194
|
mediaType: zod_1.z.literal("application/json"),
|
|
229
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
230
|
-
})
|
|
231
|
-
|
|
232
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.setSpaceTheme.response", zod_1.z
|
|
233
|
-
.object({
|
|
195
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
196
|
+
}).describe("ThemesService.getSpaceTheme.response"));
|
|
197
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ThemesService.setSpaceTheme.response", zod_1.z.object({
|
|
234
198
|
status: zod_1.z.literal(200),
|
|
235
199
|
mediaType: zod_1.z.literal("application/json"),
|
|
236
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
237
|
-
})
|
|
238
|
-
|
|
239
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
240
|
-
themes_1.registerThemesValidationSchemas,
|
|
241
|
-
common_1.registerCommonValidationSchemas,
|
|
242
|
-
]);
|
|
200
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("Theme")
|
|
201
|
+
}).describe("ThemesService.setSpaceTheme.response"));
|
|
202
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([themes_1.registerThemesValidationSchemas, common_1.registerCommonValidationSchemas]);
|
|
243
203
|
}
|
|
244
204
|
}
|
|
245
205
|
exports.ThemesService = ThemesService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ThemesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"ThemesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ThemesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAA+E;AAC/E,6CAAsG;AACtG,wEAAqE;AACrE,6BAAwB;AACxB;;;GAGG;AACH,MAAa,aAAc,SAAQ,qCAAiB;IAApD;;QACE;;;;;;;;;;WAUG;QACH,mBAAc,GAAG,GAAmB,EAAE;YACpC,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,wCAAwC;gBAC9C,MAAM,EAAE,KAAK;aACd,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBAC/C,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAIlC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,iDAAuB,CAAC,SAAS,CAAC,uCAAuC,CAAC,CAAC,CAAC,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,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,OAAO,CAAC;SAC5C,CAAC,CAAC,QAAQ,CAAC,uCAAuC,CAAC,CAAC,CAAC;QACtD,iDAAuB,CAAC,kBAAkB,CAAC,sCAAsC,EAAE,OAAC,CAAC,MAAM,CAAC;YAC1F,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,OAAO,CAAC;SAC5C,CAAC,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC,CAAC;QACrD,iDAAuB,CAAC,kBAAkB,CAAC,sCAAsC,EAAE,OAAC,CAAC,MAAM,CAAC;YAC1F,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,OAAO,CAAC;SAC5C,CAAC,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC,CAAC;QACrD,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,EAAE,wCAA+B,CAAC,CAAC,CAAC;IAC3G,CAAC;CACF;AA7OD,sCA6OC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type
|
|
2
|
+
import { type UserPropertyKeyArray, type UserProperty, type UserPropertyUpdate, type UserPropertyCreate } from "../models/userProperties";
|
|
3
3
|
/**
|
|
4
4
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties
|
|
5
5
|
* @category Services
|
|
@@ -23,7 +23,7 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
23
23
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-post
|
|
24
24
|
* @param params
|
|
25
25
|
*/
|
|
26
|
-
createUserProperty: ({ userId, key, userPropertyCreate
|
|
26
|
+
createUserProperty: ({ userId, key, userPropertyCreate }: {
|
|
27
27
|
/**
|
|
28
28
|
* The account ID of the user. The accountId uniquely identifies the user across
|
|
29
29
|
* all Atlassian
|
|
@@ -51,7 +51,7 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
51
51
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-delete
|
|
52
52
|
* @param params
|
|
53
53
|
*/
|
|
54
|
-
deleteUserProperty: ({ userId, key
|
|
54
|
+
deleteUserProperty: ({ userId, key }: {
|
|
55
55
|
/**
|
|
56
56
|
* The account ID of the user. The accountId uniquely identifies the user across
|
|
57
57
|
* all Atlassian
|
|
@@ -77,7 +77,7 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
77
77
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-get
|
|
78
78
|
* @param params
|
|
79
79
|
*/
|
|
80
|
-
getUserProperties: ({ userId, start, limit
|
|
80
|
+
getUserProperties: ({ userId, start, limit }: {
|
|
81
81
|
/** The account ID of the user to be queried for its properties. */
|
|
82
82
|
userId: string;
|
|
83
83
|
/** The starting index of the returned properties. */
|
|
@@ -104,7 +104,7 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
104
104
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-get
|
|
105
105
|
* @param params
|
|
106
106
|
*/
|
|
107
|
-
getUserProperty: ({ userId, key
|
|
107
|
+
getUserProperty: ({ userId, key }: {
|
|
108
108
|
/** The account ID of the user to be queried for its properties. */
|
|
109
109
|
userId: string;
|
|
110
110
|
/** The key of the user property. */
|
|
@@ -127,7 +127,7 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
127
127
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-put
|
|
128
128
|
* @param params
|
|
129
129
|
*/
|
|
130
|
-
updateUserProperty: ({ userId, key, userPropertyUpdate
|
|
130
|
+
updateUserProperty: ({ userId, key, userPropertyUpdate }: {
|
|
131
131
|
/**
|
|
132
132
|
* The account ID of the user. The accountId uniquely identifies the user across
|
|
133
133
|
* all Atlassian
|
|
@@ -4,11 +4,11 @@ exports.UserPropertiesService = 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 userProperties_1 = require("../models/userProperties");
|
|
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/v1/api-group-user-properties
|
|
14
14
|
* @category Services
|
|
@@ -34,21 +34,19 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
34
34
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-post
|
|
35
35
|
* @param params
|
|
36
36
|
*/
|
|
37
|
-
this.createUserProperty = ({ userId, key, userPropertyCreate
|
|
38
|
-
return this.getClientInstance()
|
|
39
|
-
.request({
|
|
37
|
+
this.createUserProperty = ({ userId, key, userPropertyCreate }) => {
|
|
38
|
+
return this.getClientInstance().request({
|
|
40
39
|
path: "/wiki/rest/api/user/{userId}/property/{key}",
|
|
41
40
|
method: "POST",
|
|
42
41
|
pathParams: {
|
|
43
42
|
userId,
|
|
44
|
-
key
|
|
43
|
+
key
|
|
45
44
|
},
|
|
46
45
|
headers: {
|
|
47
|
-
"Content-Type": "application/json"
|
|
46
|
+
"Content-Type": "application/json"
|
|
48
47
|
},
|
|
49
|
-
body: userPropertyCreate
|
|
50
|
-
})
|
|
51
|
-
.then(commonHttpClient.discardResult);
|
|
48
|
+
body: userPropertyCreate
|
|
49
|
+
}).then(commonHttpClient.discardResult);
|
|
52
50
|
};
|
|
53
51
|
/**
|
|
54
52
|
* Deletes a property for the given user.
|
|
@@ -66,17 +64,15 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
66
64
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-delete
|
|
67
65
|
* @param params
|
|
68
66
|
*/
|
|
69
|
-
this.deleteUserProperty = ({ userId, key
|
|
70
|
-
return this.getClientInstance()
|
|
71
|
-
.request({
|
|
67
|
+
this.deleteUserProperty = ({ userId, key }) => {
|
|
68
|
+
return this.getClientInstance().request({
|
|
72
69
|
path: "/wiki/rest/api/user/{userId}/property/{key}",
|
|
73
70
|
method: "DELETE",
|
|
74
71
|
pathParams: {
|
|
75
72
|
userId,
|
|
76
|
-
key
|
|
77
|
-
}
|
|
78
|
-
})
|
|
79
|
-
.then(commonHttpClient.discardResult);
|
|
73
|
+
key
|
|
74
|
+
}
|
|
75
|
+
}).then(commonHttpClient.discardResult);
|
|
80
76
|
};
|
|
81
77
|
/**
|
|
82
78
|
* Returns the properties for a user as list of property keys. For more information
|
|
@@ -94,27 +90,22 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
94
90
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-get
|
|
95
91
|
* @param params
|
|
96
92
|
*/
|
|
97
|
-
this.getUserProperties = ({ userId, start, limit
|
|
98
|
-
return this.getClientInstance()
|
|
99
|
-
.request({
|
|
93
|
+
this.getUserProperties = ({ userId, start, limit }) => {
|
|
94
|
+
return this.getClientInstance().request({
|
|
100
95
|
path: "/wiki/rest/api/user/{userId}/property",
|
|
101
96
|
method: "GET",
|
|
102
97
|
pathParams: {
|
|
103
|
-
userId
|
|
98
|
+
userId
|
|
104
99
|
},
|
|
105
100
|
query: {
|
|
106
101
|
start,
|
|
107
|
-
limit
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
.then(this.getClientInstance().responseHandler({
|
|
102
|
+
limit
|
|
103
|
+
}
|
|
104
|
+
}).then(this.getClientInstance().responseHandler({
|
|
111
105
|
200: {
|
|
112
|
-
"application/json": "json"
|
|
113
|
-
}
|
|
114
|
-
}))
|
|
115
|
-
.then(commonHttpClient.castResponse())
|
|
116
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("UserPropertiesService.getUserProperties.response")))
|
|
117
|
-
.then(commonHttpClient.getBody);
|
|
106
|
+
"application/json": "json"
|
|
107
|
+
}
|
|
108
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("UserPropertiesService.getUserProperties.response"))).then(commonHttpClient.getBody);
|
|
118
109
|
};
|
|
119
110
|
/**
|
|
120
111
|
* Returns the property corresponding to `key` for a user. For more information
|
|
@@ -132,24 +123,19 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
132
123
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-get
|
|
133
124
|
* @param params
|
|
134
125
|
*/
|
|
135
|
-
this.getUserProperty = ({ userId, key
|
|
136
|
-
return this.getClientInstance()
|
|
137
|
-
.request({
|
|
126
|
+
this.getUserProperty = ({ userId, key }) => {
|
|
127
|
+
return this.getClientInstance().request({
|
|
138
128
|
path: "/wiki/rest/api/user/{userId}/property/{key}",
|
|
139
129
|
method: "GET",
|
|
140
130
|
pathParams: {
|
|
141
131
|
userId,
|
|
142
|
-
key
|
|
143
|
-
}
|
|
144
|
-
})
|
|
145
|
-
.then(this.getClientInstance().responseHandler({
|
|
132
|
+
key
|
|
133
|
+
}
|
|
134
|
+
}).then(this.getClientInstance().responseHandler({
|
|
146
135
|
200: {
|
|
147
|
-
"application/json": "json"
|
|
148
|
-
}
|
|
149
|
-
}))
|
|
150
|
-
.then(commonHttpClient.castResponse())
|
|
151
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("UserPropertiesService.getUserProperty.response")))
|
|
152
|
-
.then(commonHttpClient.getBody);
|
|
136
|
+
"application/json": "json"
|
|
137
|
+
}
|
|
138
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("UserPropertiesService.getUserProperty.response"))).then(commonHttpClient.getBody);
|
|
153
139
|
};
|
|
154
140
|
/**
|
|
155
141
|
* Updates a property for the given user. Note, you cannot update the key of a
|
|
@@ -168,41 +154,33 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
168
154
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-put
|
|
169
155
|
* @param params
|
|
170
156
|
*/
|
|
171
|
-
this.updateUserProperty = ({ userId, key, userPropertyUpdate
|
|
172
|
-
return this.getClientInstance()
|
|
173
|
-
.request({
|
|
157
|
+
this.updateUserProperty = ({ userId, key, userPropertyUpdate }) => {
|
|
158
|
+
return this.getClientInstance().request({
|
|
174
159
|
path: "/wiki/rest/api/user/{userId}/property/{key}",
|
|
175
160
|
method: "PUT",
|
|
176
161
|
pathParams: {
|
|
177
162
|
userId,
|
|
178
|
-
key
|
|
163
|
+
key
|
|
179
164
|
},
|
|
180
165
|
headers: {
|
|
181
|
-
"Content-Type": "application/json"
|
|
166
|
+
"Content-Type": "application/json"
|
|
182
167
|
},
|
|
183
|
-
body: userPropertyUpdate
|
|
184
|
-
})
|
|
185
|
-
.then(commonHttpClient.discardResult);
|
|
168
|
+
body: userPropertyUpdate
|
|
169
|
+
}).then(commonHttpClient.discardResult);
|
|
186
170
|
};
|
|
187
171
|
}
|
|
188
172
|
static initialize() {
|
|
189
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UserPropertiesService.getUserProperties.response", zod_1.z
|
|
190
|
-
.object({
|
|
173
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UserPropertiesService.getUserProperties.response", zod_1.z.object({
|
|
191
174
|
status: zod_1.z.literal(200),
|
|
192
175
|
mediaType: zod_1.z.literal("application/json"),
|
|
193
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserPropertyKeyArray")
|
|
194
|
-
})
|
|
195
|
-
|
|
196
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UserPropertiesService.getUserProperty.response", zod_1.z
|
|
197
|
-
.object({
|
|
176
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserPropertyKeyArray")
|
|
177
|
+
}).describe("UserPropertiesService.getUserProperties.response"));
|
|
178
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("UserPropertiesService.getUserProperty.response", zod_1.z.object({
|
|
198
179
|
status: zod_1.z.literal(200),
|
|
199
180
|
mediaType: zod_1.z.literal("application/json"),
|
|
200
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserProperty")
|
|
201
|
-
})
|
|
202
|
-
|
|
203
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
204
|
-
userProperties_1.registerUserPropertiesValidationSchemas,
|
|
205
|
-
]);
|
|
181
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("UserProperty")
|
|
182
|
+
}).describe("UserPropertiesService.getUserProperty.response"));
|
|
183
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([userProperties_1.registerUserPropertiesValidationSchemas]);
|
|
206
184
|
}
|
|
207
185
|
}
|
|
208
186
|
exports.UserPropertiesService = UserPropertiesService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UserPropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"UserPropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UserPropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6DAAmL;AACnL,wEAAqE;AACrE,6BAAwB;AACxB;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,qCAAiB;IAA5D;;QACE;;;;;;;;;;;;;;;;;WAiBG;QACH,uBAAkB,GAAG,CAAC,EACpB,MAAM,EACN,GAAG,EACH,kBAAkB,EAYnB,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,6CAA6C;gBACnD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,MAAM;oBACN,GAAG;iBACJ;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,kBAAkB;aACzB,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;QACF;;;;;;;;;;;;;;;WAeG;QACH,uBAAkB,GAAG,CAAC,EACpB,MAAM,EACN,GAAG,EAUJ,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,6CAA6C;gBACnD,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE;oBACV,MAAM;oBACN,GAAG;iBACJ;aACF,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;QACF;;;;;;;;;;;;;;;WAeG;QACH,sBAAiB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1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
2
|
+
import { type UserV1, type GroupArrayWithLinks } from "../models/common";
|
|
3
|
+
import { type UserAnonymous, type BulkUserLookupArray, type AccountIdEmailRecord, type AccountIdEmailRecordArray } from "../models/users";
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users
|
|
6
6
|
* @category Services
|
|
@@ -20,7 +20,7 @@ export declare class UsersService extends CommonHttpService {
|
|
|
20
20
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-anonymous-get
|
|
21
21
|
* @param params
|
|
22
22
|
*/
|
|
23
|
-
getAnonymousUser: ({ expand
|
|
23
|
+
getAnonymousUser: ({ expand }?: {
|
|
24
24
|
/**
|
|
25
25
|
* A multi-value parameter indicating which properties of the user to
|
|
26
26
|
* expand.
|
|
@@ -44,7 +44,7 @@ export declare class UsersService extends CommonHttpService {
|
|
|
44
44
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-bulk-get
|
|
45
45
|
* @param params
|
|
46
46
|
*/
|
|
47
|
-
getBulkUserLookup: ({ accountId, expand
|
|
47
|
+
getBulkUserLookup: ({ accountId, expand }: {
|
|
48
48
|
/** A list of accountId's of users to be returned. */
|
|
49
49
|
accountId: string;
|
|
50
50
|
/**
|
|
@@ -73,7 +73,7 @@ export declare class UsersService extends CommonHttpService {
|
|
|
73
73
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-current-get
|
|
74
74
|
* @param params
|
|
75
75
|
*/
|
|
76
|
-
getCurrentUser: ({ expand
|
|
76
|
+
getCurrentUser: ({ expand }?: {
|
|
77
77
|
/**
|
|
78
78
|
* A multi-value parameter indicating which properties of the user to
|
|
79
79
|
* expand.
|
|
@@ -98,7 +98,7 @@ export declare class UsersService extends CommonHttpService {
|
|
|
98
98
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-memberof-get
|
|
99
99
|
* @param params
|
|
100
100
|
*/
|
|
101
|
-
getGroupMembershipsForUser: ({ accountId, start, limit
|
|
101
|
+
getGroupMembershipsForUser: ({ accountId, start, limit }: {
|
|
102
102
|
/**
|
|
103
103
|
* The account ID of the user. The accountId uniquely identifies the user across
|
|
104
104
|
* all Atlassian products.
|
|
@@ -129,7 +129,7 @@ export declare class UsersService extends CommonHttpService {
|
|
|
129
129
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-get
|
|
130
130
|
* @param params
|
|
131
131
|
*/
|
|
132
|
-
getPrivacyUnsafeUserEmail: ({ accountId
|
|
132
|
+
getPrivacyUnsafeUserEmail: ({ accountId }: {
|
|
133
133
|
/**
|
|
134
134
|
* The account ID of the user, which uniquely identifies the user across all
|
|
135
135
|
* Atlassian products.
|
|
@@ -155,7 +155,7 @@ export declare class UsersService extends CommonHttpService {
|
|
|
155
155
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-email-bulk-get
|
|
156
156
|
* @param params
|
|
157
157
|
*/
|
|
158
|
-
getPrivacyUnsafeUserEmailBulk: ({ accountId
|
|
158
|
+
getPrivacyUnsafeUserEmailBulk: ({ accountId }: {
|
|
159
159
|
/** The account IDs of the users. */
|
|
160
160
|
accountId: string[];
|
|
161
161
|
}) => Promise<AccountIdEmailRecordArray>;
|
|
@@ -178,7 +178,7 @@ export declare class UsersService extends CommonHttpService {
|
|
|
178
178
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users#api-wiki-rest-api-user-get
|
|
179
179
|
* @param params
|
|
180
180
|
*/
|
|
181
|
-
getUser: ({ accountId, expand
|
|
181
|
+
getUser: ({ accountId, expand }: {
|
|
182
182
|
/**
|
|
183
183
|
* The account ID of the user. The accountId uniquely identifies the user across
|
|
184
184
|
* all Atlassian products.
|