@resolution/confluence-api-client 0.5.2 → 0.5.4
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 +22 -0
- package/README.md +33 -1
- package/lib/openapi/{v1/core → core}/CommonHttpClient.d.ts +54 -3
- package/lib/openapi/{v2/core → core}/CommonHttpClient.js +14 -0
- package/lib/openapi/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/{v2/core → core}/CommonHttpService.d.ts +17 -0
- package/lib/openapi/{v1/core → core}/CommonHttpService.js +11 -0
- package/lib/openapi/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +2 -2
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +2 -2
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/audit.d.ts +1 -1
- package/lib/openapi/v1/models/common.d.ts +2 -1
- package/lib/openapi/v1/models/common.js +1 -0
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +1 -1
- package/lib/openapi/v1/models/contentAttachments.d.ts +1 -1
- package/lib/openapi/v1/models/contentBody.d.ts +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +1 -1
- package/lib/openapi/v1/models/contentLabels.d.ts +1 -1
- package/lib/openapi/v1/models/contentMacroBody.d.ts +1 -1
- package/lib/openapi/v1/models/contentPermissions.d.ts +1 -1
- package/lib/openapi/v1/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v1/models/contentRestrictions.d.ts +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +1 -1
- package/lib/openapi/v1/models/contentVersions.d.ts +1 -1
- package/lib/openapi/v1/models/contentWatches.d.ts +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +7 -4
- 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/inlineTasks.d.ts +1 -1
- package/lib/openapi/v1/models/labelInfo.d.ts +1 -1
- package/lib/openapi/v1/models/longRunningTask.d.ts +1 -1
- package/lib/openapi/v1/models/relation.d.ts +1 -1
- package/lib/openapi/v1/models/search.d.ts +1 -1
- package/lib/openapi/v1/models/settings.d.ts +1 -1
- package/lib/openapi/v1/models/space.d.ts +11 -4
- package/lib/openapi/v1/models/space.js +2 -1
- 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/spaceProperties.d.ts +1 -1
- package/lib/openapi/v1/models/spaceSettings.d.ts +1 -1
- package/lib/openapi/v1/models/template.d.ts +1 -1
- package/lib/openapi/v1/models/themes.d.ts +1 -1
- package/lib/openapi/v1/models/userProperties.d.ts +1 -1
- package/lib/openapi/v1/models/users.d.ts +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +9 -5
- package/lib/openapi/v1/services/AnalyticsService.js +6 -4
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +15 -9
- package/lib/openapi/v1/services/AuditService.js +15 -9
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +13 -7
- package/lib/openapi/v1/services/ContentAttachmentsService.js +14 -8
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +8 -6
- package/lib/openapi/v1/services/ContentBodyService.js +9 -7
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +18 -10
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +19 -11
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +3 -2
- package/lib/openapi/v1/services/ContentCommentsService.js +4 -3
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +9 -5
- package/lib/openapi/v1/services/ContentLabelsService.js +10 -6
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +7 -6
- package/lib/openapi/v1/services/ContentMacroBodyService.js +8 -7
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +3 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +4 -3
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +13 -7
- package/lib/openapi/v1/services/ContentPropertiesService.js +14 -8
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +31 -22
- package/lib/openapi/v1/services/ContentRestrictionsService.js +32 -23
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +21 -11
- package/lib/openapi/v1/services/ContentService.js +22 -12
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +21 -12
- package/lib/openapi/v1/services/ContentStatesService.js +22 -13
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +9 -5
- package/lib/openapi/v1/services/ContentVersionsService.js +10 -6
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +25 -13
- package/lib/openapi/v1/services/ContentWatchesService.js +26 -14
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +6 -4
- package/lib/openapi/v1/services/DynamicModulesService.js +7 -5
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +13 -9
- package/lib/openapi/v1/services/ExperimentalService.js +14 -10
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +31 -16
- package/lib/openapi/v1/services/GroupService.js +32 -17
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +7 -4
- package/lib/openapi/v1/services/InlineTasksService.js +8 -5
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +3 -2
- package/lib/openapi/v1/services/LabelInfoService.js +4 -3
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +5 -3
- package/lib/openapi/v1/services/LongRunningTaskService.js +6 -4
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +12 -13
- package/lib/openapi/v1/services/RelationService.js +13 -14
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +5 -3
- package/lib/openapi/v1/services/SearchService.js +6 -4
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +14 -11
- package/lib/openapi/v1/services/SettingsService.js +15 -12
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +7 -4
- package/lib/openapi/v1/services/SpacePermissionsService.js +8 -5
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +13 -7
- package/lib/openapi/v1/services/SpacePropertiesService.js +14 -8
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +20 -15
- package/lib/openapi/v1/services/SpaceService.js +21 -16
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +5 -3
- package/lib/openapi/v1/services/SpaceSettingsService.js +6 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +15 -11
- package/lib/openapi/v1/services/TemplateService.js +16 -12
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +12 -7
- package/lib/openapi/v1/services/ThemesService.js +13 -8
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +11 -6
- package/lib/openapi/v1/services/UserPropertiesService.js +12 -7
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +15 -8
- package/lib/openapi/v1/services/UsersService.js +16 -9
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v1/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/v1/validationSchemaStorage.js +1 -1
- package/lib/openapi/v1/validationSchemaStorage.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +2 -2
- 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/attachment.d.ts +1 -1
- package/lib/openapi/v2/models/blogPost.d.ts +1 -1
- package/lib/openapi/v2/models/children.d.ts +1 -1
- package/lib/openapi/v2/models/classificationLevel.d.ts +1 -1
- package/lib/openapi/v2/models/comment.d.ts +1 -1
- package/lib/openapi/v2/models/common.d.ts +1 -1
- package/lib/openapi/v2/models/content.d.ts +1 -1
- package/lib/openapi/v2/models/contentProperties.d.ts +1 -1
- package/lib/openapi/v2/models/customContent.d.ts +1 -1
- package/lib/openapi/v2/models/dataPolicies.d.ts +1 -1
- package/lib/openapi/v2/models/database.d.ts +1 -1
- package/lib/openapi/v2/models/operation.d.ts +1 -1
- package/lib/openapi/v2/models/page.d.ts +1 -1
- package/lib/openapi/v2/models/smartLink.d.ts +1 -1
- package/lib/openapi/v2/models/space.d.ts +1 -1
- package/lib/openapi/v2/models/spaceProperties.d.ts +1 -1
- package/lib/openapi/v2/models/task.d.ts +1 -1
- package/lib/openapi/v2/models/user.d.ts +1 -1
- package/lib/openapi/v2/models/version.d.ts +1 -1
- package/lib/openapi/v2/models/whiteboard.d.ts +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +9 -5
- package/lib/openapi/v2/services/AncestorsService.js +10 -6
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +16 -10
- package/lib/openapi/v2/services/AttachmentService.js +17 -11
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +16 -10
- package/lib/openapi/v2/services/BlogPostService.js +17 -11
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +5 -3
- package/lib/openapi/v2/services/ChildrenService.js +6 -4
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +20 -11
- package/lib/openapi/v2/services/ClassificationLevelService.js +21 -12
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +37 -19
- package/lib/openapi/v2/services/CommentService.js +38 -20
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +81 -41
- package/lib/openapi/v2/services/ContentPropertiesService.js +82 -42
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +4 -4
- package/lib/openapi/v2/services/ContentService.js +5 -5
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +17 -9
- package/lib/openapi/v2/services/CustomContentService.js +18 -10
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +4 -3
- package/lib/openapi/v2/services/DataPoliciesService.js +5 -4
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +7 -4
- package/lib/openapi/v2/services/DatabaseService.js +8 -5
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +15 -8
- package/lib/openapi/v2/services/LabelService.js +16 -9
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +17 -9
- package/lib/openapi/v2/services/LikeService.js +18 -10
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +21 -11
- package/lib/openapi/v2/services/OperationService.js +22 -12
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +24 -10
- package/lib/openapi/v2/services/PageService.js +16 -9
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +7 -4
- package/lib/openapi/v2/services/SmartLinkService.js +8 -5
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +3 -2
- package/lib/openapi/v2/services/SpacePermissionsService.js +4 -3
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +12 -8
- package/lib/openapi/v2/services/SpacePropertiesService.js +13 -9
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +5 -3
- package/lib/openapi/v2/services/SpaceService.js +6 -4
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +7 -4
- package/lib/openapi/v2/services/TaskService.js +8 -5
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +8 -6
- package/lib/openapi/v2/services/UserService.js +9 -7
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +25 -13
- package/lib/openapi/v2/services/VersionService.js +26 -14
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +7 -4
- package/lib/openapi/v2/services/WhiteboardService.js +8 -5
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/lib/openapi/v2/validationSchemaStorage.d.ts +1 -1
- package/lib/openapi/v2/validationSchemaStorage.js +1 -1
- package/lib/openapi/v2/validationSchemaStorage.js.map +1 -1
- package/package.json +3 -3
- package/lib/openapi/v1/core/CommonHttpClient.js +0 -390
- package/lib/openapi/v1/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/v1/core/CommonHttpService.d.ts +0 -9
- package/lib/openapi/v1/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/v1/core/CommonValidationSchemaStorage.js.map +0 -1
- package/lib/openapi/v2/core/CommonHttpClient.d.ts +0 -196
- package/lib/openapi/v2/core/CommonHttpClient.js.map +0 -1
- package/lib/openapi/v2/core/CommonHttpService.js +0 -29
- package/lib/openapi/v2/core/CommonHttpService.js.map +0 -1
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.d.ts +0 -35
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js +0 -65
- package/lib/openapi/v2/core/CommonValidationSchemaStorage.js.map +0 -1
- /package/lib/openapi/{v1/core → core}/CommonValidationSchemaStorage.d.ts +0 -0
- /package/lib/openapi/{v1/core → core}/CommonValidationSchemaStorage.js +0 -0
|
@@ -5,8 +5,8 @@ exports.SpacePermissionsService = void 0;
|
|
|
5
5
|
// This file is generated by "api-typescript-generator".
|
|
6
6
|
// To update this file run "yarn build:openapi".
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
|
-
const commonHttpClient = require("
|
|
9
|
-
const CommonHttpService_1 = require("
|
|
8
|
+
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
10
10
|
const spacePermissions_1 = require("../models/spacePermissions");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions */
|
|
@@ -25,9 +25,10 @@ class SpacePermissionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
25
25
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
26
26
|
* 'Admin' permission for the space.
|
|
27
27
|
*
|
|
28
|
-
* @path
|
|
28
|
+
* @path POST `/wiki/rest/api/space/{spaceKey}/permission/custom-content`
|
|
29
29
|
* @scopes-current read:space.permission:confluence, write:space.permission:confluence
|
|
30
30
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-custom-content-post
|
|
31
|
+
* @param params
|
|
31
32
|
*/
|
|
32
33
|
this.addCustomContentPermissions = ({ spaceKey, spacePermissionCustomContent, }) => {
|
|
33
34
|
return this.getClientInstance()
|
|
@@ -57,9 +58,10 @@ class SpacePermissionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
57
58
|
* 'Admin' permission for the space.
|
|
58
59
|
*
|
|
59
60
|
* @returns Returned if the requested content is returned.
|
|
60
|
-
* @path
|
|
61
|
+
* @path POST `/wiki/rest/api/space/{spaceKey}/permission`
|
|
61
62
|
* @scopes-current read:space.permission:confluence, write:space.permission:confluence
|
|
62
63
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-post
|
|
64
|
+
* @param params
|
|
63
65
|
*/
|
|
64
66
|
this.addPermissionToSpace = ({ spaceKey, spacePermissionRequest, }) => {
|
|
65
67
|
return this.getClientInstance()
|
|
@@ -94,9 +96,10 @@ class SpacePermissionsService extends CommonHttpService_1.CommonHttpService {
|
|
|
94
96
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
95
97
|
* 'Admin' permission for the space.
|
|
96
98
|
*
|
|
97
|
-
* @path
|
|
99
|
+
* @path DELETE `/wiki/rest/api/space/{spaceKey}/permission/{id}`
|
|
98
100
|
* @scopes-current write:space.permission:confluence
|
|
99
101
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-permissions#api-wiki-rest-api-space-spacekey-permission-id-delete
|
|
102
|
+
* @param params
|
|
100
103
|
*/
|
|
101
104
|
this.removePermission = ({ spaceKey, id, }) => {
|
|
102
105
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpacePermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"SpacePermissionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpacePermissionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,iEAKoC;AACpC,wEAAqE;AACrE,gGAAgG;AAChG,MAAa,uBAAwB,SAAQ,qCAAiB;IAA9D;;QACE;;;;;;;;;;;;;;;;WAgBG;QACH,gCAA2B,GAAG,CAAC,EAC7B,QAAQ,EACR,4BAA4B,GAM7B,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,2DAA2D;gBACjE,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,QAAQ;iBACT;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBAC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AE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,mBAAmB,CAAC;SACxD,CAAC;aACD,QAAQ,CAAC,uDAAuD,CAAC,CACrE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,4DAAyC;SAC1C,CAAC,CAAC;IACL,CAAC;CACF;AAxJD,0DAwJC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type SpacePropertyArray, type SpacePropertyCreate, type SpacePropertyCreateNoKey, type SpacePropertyUpdate, type SpacePropertyV1 } from "../models/spaceProperties";
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated
|
|
@@ -16,10 +16,11 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
16
16
|
*
|
|
17
17
|
* @deprecated
|
|
18
18
|
* @returns Returned if the space property is created.
|
|
19
|
-
* @path
|
|
19
|
+
* @path POST `/wiki/rest/api/space/{spaceKey}/property`
|
|
20
20
|
* @scopes-current write:confluence-props
|
|
21
21
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
22
22
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-post
|
|
23
|
+
* @param params
|
|
23
24
|
*/
|
|
24
25
|
createSpaceProperty: ({ spaceKey, spacePropertyCreate, }: {
|
|
25
26
|
/** The key of the space that the property will be created in. */
|
|
@@ -41,10 +42,11 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
41
42
|
*
|
|
42
43
|
* @deprecated
|
|
43
44
|
* @returns Returned if the space property is created.
|
|
44
|
-
* @path
|
|
45
|
+
* @path POST `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
45
46
|
* @scopes-current write:confluence-props
|
|
46
47
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
47
48
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-post
|
|
49
|
+
* @param params
|
|
48
50
|
*/
|
|
49
51
|
createSpacePropertyForKey: ({ spaceKey, key, spacePropertyCreateNoKey, }: {
|
|
50
52
|
/** The key of the space that the property will be created in. */
|
|
@@ -64,10 +66,11 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
64
66
|
* ‘Admin’ permission for the space.
|
|
65
67
|
*
|
|
66
68
|
* @deprecated
|
|
67
|
-
* @path
|
|
69
|
+
* @path DELETE `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
68
70
|
* @scopes-current write:confluence-props
|
|
69
71
|
* @scopes-beta write:space.property:confluence
|
|
70
72
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-delete
|
|
73
|
+
* @param params
|
|
71
74
|
*/
|
|
72
75
|
deleteSpaceProperty: ({ spaceKey, key, }: {
|
|
73
76
|
/** The key of the space that the property is in. */
|
|
@@ -87,10 +90,11 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
87
90
|
*
|
|
88
91
|
* @deprecated
|
|
89
92
|
* @returns Returned if the requested space properties are returned.
|
|
90
|
-
* @path
|
|
93
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/property`
|
|
91
94
|
* @scopes-current read:confluence-props
|
|
92
95
|
* @scopes-beta read:content-details:confluence
|
|
93
96
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-get
|
|
97
|
+
* @param params
|
|
94
98
|
*/
|
|
95
99
|
getSpaceProperties: ({ spaceKey, expand, start, limit, }: {
|
|
96
100
|
/** The key of the space to be queried for its properties. */
|
|
@@ -122,10 +126,11 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
122
126
|
*
|
|
123
127
|
* @deprecated
|
|
124
128
|
* @returns Returned if the requested space property is returned.
|
|
125
|
-
* @path
|
|
129
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
126
130
|
* @scopes-current read:confluence-props
|
|
127
131
|
* @scopes-beta read:content-details:confluence
|
|
128
132
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-get
|
|
133
|
+
* @param params
|
|
129
134
|
*/
|
|
130
135
|
getSpaceProperty: ({ spaceKey, key, expand, }: {
|
|
131
136
|
/** The key of the space that the property is in. */
|
|
@@ -153,10 +158,11 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
153
158
|
*
|
|
154
159
|
* @deprecated
|
|
155
160
|
* @returns Returned if the space property is updated.
|
|
156
|
-
* @path
|
|
161
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
157
162
|
* @scopes-current write:confluence-props
|
|
158
163
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
159
164
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-put
|
|
165
|
+
* @param params
|
|
160
166
|
*/
|
|
161
167
|
updateSpaceProperty: ({ spaceKey, key, spacePropertyUpdate, }: {
|
|
162
168
|
/** The key of the space that the property is in. */
|
|
@@ -5,8 +5,8 @@ exports.SpacePropertiesService = void 0;
|
|
|
5
5
|
// This file is generated by "api-typescript-generator".
|
|
6
6
|
// To update this file run "yarn build:openapi".
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
|
-
const commonHttpClient = require("
|
|
9
|
-
const CommonHttpService_1 = require("
|
|
8
|
+
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
10
10
|
const spaceProperties_1 = require("../models/spaceProperties");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/**
|
|
@@ -27,10 +27,11 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
27
27
|
*
|
|
28
28
|
* @deprecated
|
|
29
29
|
* @returns Returned if the space property is created.
|
|
30
|
-
* @path
|
|
30
|
+
* @path POST `/wiki/rest/api/space/{spaceKey}/property`
|
|
31
31
|
* @scopes-current write:confluence-props
|
|
32
32
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
33
33
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-post
|
|
34
|
+
* @param params
|
|
34
35
|
*/
|
|
35
36
|
this.createSpaceProperty = ({ spaceKey, spacePropertyCreate, }) => {
|
|
36
37
|
return this.getClientInstance()
|
|
@@ -68,10 +69,11 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
68
69
|
*
|
|
69
70
|
* @deprecated
|
|
70
71
|
* @returns Returned if the space property is created.
|
|
71
|
-
* @path
|
|
72
|
+
* @path POST `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
72
73
|
* @scopes-current write:confluence-props
|
|
73
74
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
74
75
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-post
|
|
76
|
+
* @param params
|
|
75
77
|
*/
|
|
76
78
|
this.createSpacePropertyForKey = ({ spaceKey, key, spacePropertyCreateNoKey, }) => {
|
|
77
79
|
return this.getClientInstance()
|
|
@@ -106,10 +108,11 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
106
108
|
* ‘Admin’ permission for the space.
|
|
107
109
|
*
|
|
108
110
|
* @deprecated
|
|
109
|
-
* @path
|
|
111
|
+
* @path DELETE `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
110
112
|
* @scopes-current write:confluence-props
|
|
111
113
|
* @scopes-beta write:space.property:confluence
|
|
112
114
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-delete
|
|
115
|
+
* @param params
|
|
113
116
|
*/
|
|
114
117
|
this.deleteSpaceProperty = ({ spaceKey, key, }) => {
|
|
115
118
|
return this.getClientInstance()
|
|
@@ -135,10 +138,11 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
135
138
|
*
|
|
136
139
|
* @deprecated
|
|
137
140
|
* @returns Returned if the requested space properties are returned.
|
|
138
|
-
* @path
|
|
141
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/property`
|
|
139
142
|
* @scopes-current read:confluence-props
|
|
140
143
|
* @scopes-beta read:content-details:confluence
|
|
141
144
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-get
|
|
145
|
+
* @param params
|
|
142
146
|
*/
|
|
143
147
|
this.getSpaceProperties = ({ spaceKey, expand, start, limit, }) => {
|
|
144
148
|
return this.getClientInstance()
|
|
@@ -174,10 +178,11 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
174
178
|
*
|
|
175
179
|
* @deprecated
|
|
176
180
|
* @returns Returned if the requested space property is returned.
|
|
177
|
-
* @path
|
|
181
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
178
182
|
* @scopes-current read:confluence-props
|
|
179
183
|
* @scopes-beta read:content-details:confluence
|
|
180
184
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-get
|
|
185
|
+
* @param params
|
|
181
186
|
*/
|
|
182
187
|
this.getSpaceProperty = ({ spaceKey, key, expand, }) => {
|
|
183
188
|
return this.getClientInstance()
|
|
@@ -213,10 +218,11 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
213
218
|
*
|
|
214
219
|
* @deprecated
|
|
215
220
|
* @returns Returned if the space property is updated.
|
|
216
|
-
* @path
|
|
221
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}/property/{key}`
|
|
217
222
|
* @scopes-current write:confluence-props
|
|
218
223
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
219
224
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-put
|
|
225
|
+
* @param params
|
|
220
226
|
*/
|
|
221
227
|
this.updateSpaceProperty = ({ spaceKey, key, spacePropertyUpdate, }) => {
|
|
222
228
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpacePropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"SpacePropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpacePropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,+DAOmC;AACnC,wEAAqE;AACrE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,qCAAiB;IAA7D;;QACE;;;;;;;;;;;;;;;;WAgBG;QACH,wBAAmB,GAAG,CAAC,EACrB,QAAQ,EACR,mBAAmB,GAMpB,EAA4B,EAAE;YAC7B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,0CAA0C;gBAChD,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,QAAQ;iBACT;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,mBAAmB;aAC1B,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;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../core/CommonHttpService";
|
|
2
2
|
import { type ContentArray, type GenericLinks, type LongTask, type Space } from "../models/common";
|
|
3
3
|
import { type SpaceArray, type SpaceCreate, type SpaceUpdate } from "../models/space";
|
|
4
4
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space */
|
|
@@ -13,11 +13,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
13
13
|
* 'Create Space(s)' global permission.
|
|
14
14
|
*
|
|
15
15
|
* @returns Returned if the space is created.
|
|
16
|
-
* @path
|
|
16
|
+
* @path POST `/wiki/rest/api/space/_private`
|
|
17
17
|
* @scopes-current write:confluence-space
|
|
18
|
-
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
19
|
-
* write:space.permission:confluence
|
|
18
|
+
* @scopes-beta read:space-details:confluence, write:space:confluence, write:space.permission:confluence
|
|
20
19
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-private-post
|
|
20
|
+
* @param params
|
|
21
21
|
*/
|
|
22
22
|
createPrivateSpace: ({ spaceCreate, }: {
|
|
23
23
|
/** The space to be created. */
|
|
@@ -31,11 +31,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
31
31
|
* 'Create Space(s)' global permission.
|
|
32
32
|
*
|
|
33
33
|
* @returns Returned if the space is created.
|
|
34
|
-
* @path
|
|
34
|
+
* @path POST `/wiki/rest/api/space`
|
|
35
35
|
* @scopes-current write:confluence-space
|
|
36
|
-
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
37
|
-
* write:space.permission:confluence
|
|
36
|
+
* @scopes-beta read:space-details:confluence, write:space:confluence, write:space.permission:confluence
|
|
38
37
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-post
|
|
38
|
+
* @param params
|
|
39
39
|
*/
|
|
40
40
|
createSpace: ({ spaceCreate, }: {
|
|
41
41
|
/** The space to be created. */
|
|
@@ -52,10 +52,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
52
52
|
* 'Admin' permission for the space.
|
|
53
53
|
*
|
|
54
54
|
* @returns Returns a pointer to the status of the space deletion task.
|
|
55
|
-
* @path
|
|
55
|
+
* @path DELETE `/wiki/rest/api/space/{spaceKey}`
|
|
56
56
|
* @scopes-current write:confluence-space
|
|
57
57
|
* @scopes-beta read:content.metadata:confluence, delete:space:confluence
|
|
58
58
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-delete
|
|
59
|
+
* @param params
|
|
59
60
|
*/
|
|
60
61
|
deleteSpace: ({ spaceKey, }: {
|
|
61
62
|
/** The key of the space to delete. */
|
|
@@ -78,10 +79,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
78
79
|
*
|
|
79
80
|
* @deprecated
|
|
80
81
|
* @returns Returned if the requested content is returned.
|
|
81
|
-
* @path
|
|
82
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/content/{type}`
|
|
82
83
|
* @scopes-current read:confluence-content.summary
|
|
83
84
|
* @scopes-beta read:content-details:confluence
|
|
84
85
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-type-get
|
|
86
|
+
* @param params
|
|
85
87
|
*/
|
|
86
88
|
getContentByTypeForSpace: ({ spaceKey, type, depth, expand, start, limit, }: {
|
|
87
89
|
/** The key of the space to be queried for its content. */
|
|
@@ -213,10 +215,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
213
215
|
*
|
|
214
216
|
* @deprecated
|
|
215
217
|
* @returns Returned if the requested content is returned.
|
|
216
|
-
* @path
|
|
218
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/content`
|
|
217
219
|
* @scopes-current read:confluence-content.summary
|
|
218
220
|
* @scopes-beta read:content-details:confluence
|
|
219
221
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-get
|
|
222
|
+
* @param params
|
|
220
223
|
*/
|
|
221
224
|
getContentForSpace: ({ spaceKey, depth, expand, start, limit, }: {
|
|
222
225
|
/** The key of the space to be queried for its content. */
|
|
@@ -344,10 +347,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
344
347
|
*
|
|
345
348
|
* @deprecated
|
|
346
349
|
* @returns Returned if the requested space is returned.
|
|
347
|
-
* @path
|
|
350
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}`
|
|
348
351
|
* @scopes-current read:confluence-space.summary
|
|
349
352
|
* @scopes-beta read:content-details:confluence
|
|
350
353
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-get
|
|
354
|
+
* @param params
|
|
351
355
|
*/
|
|
352
356
|
getSpace: ({ spaceKey, expand, }: {
|
|
353
357
|
/** The key of the space to be returned. */
|
|
@@ -392,10 +396,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
392
396
|
*
|
|
393
397
|
* @deprecated
|
|
394
398
|
* @returns Returned if the requested spaces are returned.
|
|
395
|
-
* @path
|
|
399
|
+
* @path GET `/wiki/rest/api/space`
|
|
396
400
|
* @scopes-current read:confluence-space.summary
|
|
397
401
|
* @scopes-beta read:content-details:confluence
|
|
398
402
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-get
|
|
403
|
+
* @param params
|
|
399
404
|
*/
|
|
400
405
|
getSpaces: ({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, }?: {
|
|
401
406
|
/**
|
|
@@ -472,11 +477,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
472
477
|
* 'Admin' permission for the space.
|
|
473
478
|
*
|
|
474
479
|
* @returns Returned if the space is updated.
|
|
475
|
-
* @path
|
|
480
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}`
|
|
476
481
|
* @scopes-current write:confluence-space
|
|
477
|
-
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
478
|
-
* write:space.permission:confluence
|
|
482
|
+
* @scopes-beta read:space-details:confluence, write:space:confluence, write:space.permission:confluence
|
|
479
483
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-put
|
|
484
|
+
* @param params
|
|
480
485
|
*/
|
|
481
486
|
updateSpace: ({ spaceKey, spaceUpdate, }: {
|
|
482
487
|
/** The key of the space to update. */
|
|
@@ -5,8 +5,8 @@ exports.SpaceService = void 0;
|
|
|
5
5
|
// This file is generated by "api-typescript-generator".
|
|
6
6
|
// To update this file run "yarn build:openapi".
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
|
-
const commonHttpClient = require("
|
|
9
|
-
const CommonHttpService_1 = require("
|
|
8
|
+
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const space_1 = require("../models/space");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
@@ -24,11 +24,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
24
24
|
* 'Create Space(s)' global permission.
|
|
25
25
|
*
|
|
26
26
|
* @returns Returned if the space is created.
|
|
27
|
-
* @path
|
|
27
|
+
* @path POST `/wiki/rest/api/space/_private`
|
|
28
28
|
* @scopes-current write:confluence-space
|
|
29
|
-
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
30
|
-
* write:space.permission:confluence
|
|
29
|
+
* @scopes-beta read:space-details:confluence, write:space:confluence, write:space.permission:confluence
|
|
31
30
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-private-post
|
|
31
|
+
* @param params
|
|
32
32
|
*/
|
|
33
33
|
this.createPrivateSpace = ({ spaceCreate, }) => {
|
|
34
34
|
return this.getClientInstance()
|
|
@@ -57,11 +57,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
57
57
|
* 'Create Space(s)' global permission.
|
|
58
58
|
*
|
|
59
59
|
* @returns Returned if the space is created.
|
|
60
|
-
* @path
|
|
60
|
+
* @path POST `/wiki/rest/api/space`
|
|
61
61
|
* @scopes-current write:confluence-space
|
|
62
|
-
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
63
|
-
* write:space.permission:confluence
|
|
62
|
+
* @scopes-beta read:space-details:confluence, write:space:confluence, write:space.permission:confluence
|
|
64
63
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-post
|
|
64
|
+
* @param params
|
|
65
65
|
*/
|
|
66
66
|
this.createSpace = ({ spaceCreate, }) => {
|
|
67
67
|
return this.getClientInstance()
|
|
@@ -93,10 +93,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
93
93
|
* 'Admin' permission for the space.
|
|
94
94
|
*
|
|
95
95
|
* @returns Returns a pointer to the status of the space deletion task.
|
|
96
|
-
* @path
|
|
96
|
+
* @path DELETE `/wiki/rest/api/space/{spaceKey}`
|
|
97
97
|
* @scopes-current write:confluence-space
|
|
98
98
|
* @scopes-beta read:content.metadata:confluence, delete:space:confluence
|
|
99
99
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-delete
|
|
100
|
+
* @param params
|
|
100
101
|
*/
|
|
101
102
|
this.deleteSpace = ({ spaceKey, }) => {
|
|
102
103
|
return this.getClientInstance()
|
|
@@ -133,10 +134,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
133
134
|
*
|
|
134
135
|
* @deprecated
|
|
135
136
|
* @returns Returned if the requested content is returned.
|
|
136
|
-
* @path
|
|
137
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/content/{type}`
|
|
137
138
|
* @scopes-current read:confluence-content.summary
|
|
138
139
|
* @scopes-beta read:content-details:confluence
|
|
139
140
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-type-get
|
|
141
|
+
* @param params
|
|
140
142
|
*/
|
|
141
143
|
this.getContentByTypeForSpace = ({ spaceKey, type, depth, expand, start, limit, }) => {
|
|
142
144
|
return this.getClientInstance()
|
|
@@ -180,10 +182,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
180
182
|
*
|
|
181
183
|
* @deprecated
|
|
182
184
|
* @returns Returned if the requested content is returned.
|
|
183
|
-
* @path
|
|
185
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/content`
|
|
184
186
|
* @scopes-current read:confluence-content.summary
|
|
185
187
|
* @scopes-beta read:content-details:confluence
|
|
186
188
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-get
|
|
189
|
+
* @param params
|
|
187
190
|
*/
|
|
188
191
|
this.getContentForSpace = ({ spaceKey, depth, expand, start, limit, }) => {
|
|
189
192
|
return this.getClientInstance()
|
|
@@ -221,10 +224,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
221
224
|
*
|
|
222
225
|
* @deprecated
|
|
223
226
|
* @returns Returned if the requested space is returned.
|
|
224
|
-
* @path
|
|
227
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}`
|
|
225
228
|
* @scopes-current read:confluence-space.summary
|
|
226
229
|
* @scopes-beta read:content-details:confluence
|
|
227
230
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-get
|
|
231
|
+
* @param params
|
|
228
232
|
*/
|
|
229
233
|
this.getSpace = ({ spaceKey, expand, }) => {
|
|
230
234
|
return this.getClientInstance()
|
|
@@ -261,10 +265,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
261
265
|
*
|
|
262
266
|
* @deprecated
|
|
263
267
|
* @returns Returned if the requested spaces are returned.
|
|
264
|
-
* @path
|
|
268
|
+
* @path GET `/wiki/rest/api/space`
|
|
265
269
|
* @scopes-current read:confluence-space.summary
|
|
266
270
|
* @scopes-beta read:content-details:confluence
|
|
267
271
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-get
|
|
272
|
+
* @param params
|
|
268
273
|
*/
|
|
269
274
|
this.getSpaces = ({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, } = {}) => {
|
|
270
275
|
return this.getClientInstance()
|
|
@@ -304,11 +309,11 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
304
309
|
* 'Admin' permission for the space.
|
|
305
310
|
*
|
|
306
311
|
* @returns Returned if the space is updated.
|
|
307
|
-
* @path
|
|
312
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}`
|
|
308
313
|
* @scopes-current write:confluence-space
|
|
309
|
-
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
310
|
-
* write:space.permission:confluence
|
|
314
|
+
* @scopes-beta read:space-details:confluence, write:space:confluence, write:space.permission:confluence
|
|
311
315
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-put
|
|
316
|
+
* @param params
|
|
312
317
|
*/
|
|
313
318
|
this.updateSpace = ({ spaceKey, spaceUpdate, }) => {
|
|
314
319
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpaceService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"SpaceService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpaceService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAM0B;AAC1B,2CAKyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IAAnD;;QAC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,CAAC,CAAC,QAAQ,EAAE;gBAC7D,QAAQ,EAAE,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;gBACjE,MAAM,EAAE,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;aAChE,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,0CAA0C,CAAC,CACxD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,gDAAgD,EAChD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC;SACnD,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,sCAA8B;YAC9B,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAt4BD,oCAs4BC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type SpaceSettings } from "../models/common";
|
|
3
3
|
import type { SpaceSettingsUpdate } from "../models/spaceSettings";
|
|
4
4
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings */
|
|
@@ -11,10 +11,11 @@ export declare class SpaceSettingsService extends CommonHttpService {
|
|
|
11
11
|
* 'View' permission for the space.
|
|
12
12
|
*
|
|
13
13
|
* @returns Returned if the space settings are returned.
|
|
14
|
-
* @path
|
|
14
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/settings`
|
|
15
15
|
* @scopes-current read:confluence-space.summary
|
|
16
16
|
* @scopes-beta read:space.setting:confluence
|
|
17
17
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-get
|
|
18
|
+
* @param params
|
|
18
19
|
*/
|
|
19
20
|
getSpaceSettings: ({ spaceKey, }: {
|
|
20
21
|
/** The key of the space to be queried for its settings. */
|
|
@@ -28,10 +29,11 @@ export declare class SpaceSettingsService extends CommonHttpService {
|
|
|
28
29
|
* 'Admin' permission for the space.
|
|
29
30
|
*
|
|
30
31
|
* @returns Returned if space settings are updated.
|
|
31
|
-
* @path
|
|
32
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}/settings`
|
|
32
33
|
* @scopes-current write:confluence-space
|
|
33
34
|
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
34
35
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-put
|
|
36
|
+
* @param params
|
|
35
37
|
*/
|
|
36
38
|
updateSpaceSettings: ({ spaceKey, spaceSettingsUpdate, }: {
|
|
37
39
|
/** The key of the space whose settings will be updated. */
|
|
@@ -5,8 +5,8 @@ exports.SpaceSettingsService = void 0;
|
|
|
5
5
|
// This file is generated by "api-typescript-generator".
|
|
6
6
|
// To update this file run "yarn build:openapi".
|
|
7
7
|
const zod_1 = require("zod");
|
|
8
|
-
const commonHttpClient = require("
|
|
9
|
-
const CommonHttpService_1 = require("
|
|
8
|
+
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
9
|
+
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings */
|
|
@@ -21,10 +21,11 @@ class SpaceSettingsService extends CommonHttpService_1.CommonHttpService {
|
|
|
21
21
|
* 'View' permission for the space.
|
|
22
22
|
*
|
|
23
23
|
* @returns Returned if the space settings are returned.
|
|
24
|
-
* @path
|
|
24
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/settings`
|
|
25
25
|
* @scopes-current read:confluence-space.summary
|
|
26
26
|
* @scopes-beta read:space.setting:confluence
|
|
27
27
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-get
|
|
28
|
+
* @param params
|
|
28
29
|
*/
|
|
29
30
|
this.getSpaceSettings = ({ spaceKey, }) => {
|
|
30
31
|
return this.getClientInstance()
|
|
@@ -52,10 +53,11 @@ class SpaceSettingsService extends CommonHttpService_1.CommonHttpService {
|
|
|
52
53
|
* 'Admin' permission for the space.
|
|
53
54
|
*
|
|
54
55
|
* @returns Returned if space settings are updated.
|
|
55
|
-
* @path
|
|
56
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}/settings`
|
|
56
57
|
* @scopes-current write:confluence-space
|
|
57
58
|
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
58
59
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-put
|
|
60
|
+
* @param params
|
|
59
61
|
*/
|
|
60
62
|
this.updateSpaceSettings = ({ spaceKey, spaceSettingsUpdate, }) => {
|
|
61
63
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceSettingsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpaceSettingsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"SpaceSettingsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/SpaceSettingsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAG0B;AAE1B,wEAAqE;AACrE,6FAA6F;AAC7F,MAAa,oBAAqB,SAAQ,q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