@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type BlueprintTemplateArray, type ContentTemplate, type ContentTemplateArray, type ContentTemplateCreate, type ContentTemplateUpdate } from "../models/template";
|
|
3
3
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template */
|
|
4
4
|
export declare class TemplateService extends CommonHttpService {
|
|
@@ -12,11 +12,11 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
12
12
|
* global permission to create a global template.
|
|
13
13
|
*
|
|
14
14
|
* @returns Returned if the template is created.
|
|
15
|
-
* @path
|
|
15
|
+
* @path POST `/wiki/rest/api/template`
|
|
16
16
|
* @scopes-current write:confluence-content
|
|
17
|
-
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
18
|
-
* write:template:confluence
|
|
17
|
+
* @scopes-beta read:template:confluence, read:content-details:confluence, write:template:confluence
|
|
19
18
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-post
|
|
19
|
+
* @param params
|
|
20
20
|
*/
|
|
21
21
|
createContentTemplate: ({ contentTemplateCreate, }: {
|
|
22
22
|
/**
|
|
@@ -38,10 +38,11 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
38
38
|
* blueprints.
|
|
39
39
|
*
|
|
40
40
|
* @returns Returned if the requested templates are returned.
|
|
41
|
-
* @path
|
|
41
|
+
* @path GET `/wiki/rest/api/template/blueprint`
|
|
42
42
|
* @scopes-current read:confluence-content.summary
|
|
43
43
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
44
44
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-blueprint-get
|
|
45
|
+
* @param params
|
|
45
46
|
*/
|
|
46
47
|
getBlueprintTemplates: ({ spaceKey, start, limit, expand, }?: {
|
|
47
48
|
/**
|
|
@@ -75,10 +76,11 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
75
76
|
* templates.
|
|
76
77
|
*
|
|
77
78
|
* @returns Returned if the requested template is returned.
|
|
78
|
-
* @path
|
|
79
|
+
* @path GET `/wiki/rest/api/template/{contentTemplateId}`
|
|
79
80
|
* @scopes-current read:confluence-content.summary
|
|
80
81
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
81
82
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-get
|
|
83
|
+
* @param params
|
|
82
84
|
*/
|
|
83
85
|
getContentTemplate: ({ contentTemplateId, }: {
|
|
84
86
|
/** The ID of the content template to be returned. */
|
|
@@ -94,10 +96,11 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
94
96
|
* templates.
|
|
95
97
|
*
|
|
96
98
|
* @returns Returned if the requested templates are returned.
|
|
97
|
-
* @path
|
|
99
|
+
* @path GET `/wiki/rest/api/template/page`
|
|
98
100
|
* @scopes-current read:confluence-content.summary
|
|
99
101
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
100
102
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-page-get
|
|
103
|
+
* @param params
|
|
101
104
|
*/
|
|
102
105
|
getContentTemplates: ({ spaceKey, start, limit, expand, }?: {
|
|
103
106
|
/**
|
|
@@ -137,10 +140,11 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
137
140
|
* 'Confluence Administrator'
|
|
138
141
|
* global permission to delete a global template.
|
|
139
142
|
*
|
|
140
|
-
* @path
|
|
143
|
+
* @path DELETE `/wiki/rest/api/template/{contentTemplateId}`
|
|
141
144
|
* @scopes-current write:confluence-content
|
|
142
145
|
* @scopes-beta write:template:confluence
|
|
143
146
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-delete
|
|
147
|
+
* @param params
|
|
144
148
|
*/
|
|
145
149
|
removeTemplate: ({ contentTemplateId, }: {
|
|
146
150
|
/** The ID of the template to be deleted. */
|
|
@@ -156,11 +160,11 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
156
160
|
* global permission to update a global template.
|
|
157
161
|
*
|
|
158
162
|
* @returns Returned if the template is updated.
|
|
159
|
-
* @path
|
|
163
|
+
* @path PUT `/wiki/rest/api/template`
|
|
160
164
|
* @scopes-current write:confluence-content
|
|
161
|
-
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
162
|
-
* write:template:confluence
|
|
165
|
+
* @scopes-beta read:template:confluence, read:content-details:confluence, write:template:confluence
|
|
163
166
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-put
|
|
167
|
+
* @param params
|
|
164
168
|
*/
|
|
165
169
|
updateContentTemplate: ({ contentTemplateUpdate, }: {
|
|
166
170
|
/** The updated content template. */
|
|
@@ -5,8 +5,8 @@ exports.TemplateService = 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 template_1 = require("../models/template");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template */
|
|
@@ -23,11 +23,11 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
23
23
|
* global permission to create a global template.
|
|
24
24
|
*
|
|
25
25
|
* @returns Returned if the template is created.
|
|
26
|
-
* @path
|
|
26
|
+
* @path POST `/wiki/rest/api/template`
|
|
27
27
|
* @scopes-current write:confluence-content
|
|
28
|
-
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
29
|
-
* write:template:confluence
|
|
28
|
+
* @scopes-beta read:template:confluence, read:content-details:confluence, write:template:confluence
|
|
30
29
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-post
|
|
30
|
+
* @param params
|
|
31
31
|
*/
|
|
32
32
|
this.createContentTemplate = ({ contentTemplateCreate, }) => {
|
|
33
33
|
return this.getClientInstance()
|
|
@@ -61,10 +61,11 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
61
61
|
* blueprints.
|
|
62
62
|
*
|
|
63
63
|
* @returns Returned if the requested templates are returned.
|
|
64
|
-
* @path
|
|
64
|
+
* @path GET `/wiki/rest/api/template/blueprint`
|
|
65
65
|
* @scopes-current read:confluence-content.summary
|
|
66
66
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
67
67
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-blueprint-get
|
|
68
|
+
* @param params
|
|
68
69
|
*/
|
|
69
70
|
this.getBlueprintTemplates = ({ spaceKey, start, limit, expand, } = {}) => {
|
|
70
71
|
return this.getClientInstance()
|
|
@@ -98,10 +99,11 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
98
99
|
* templates.
|
|
99
100
|
*
|
|
100
101
|
* @returns Returned if the requested template is returned.
|
|
101
|
-
* @path
|
|
102
|
+
* @path GET `/wiki/rest/api/template/{contentTemplateId}`
|
|
102
103
|
* @scopes-current read:confluence-content.summary
|
|
103
104
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
104
105
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-get
|
|
106
|
+
* @param params
|
|
105
107
|
*/
|
|
106
108
|
this.getContentTemplate = ({ contentTemplateId, }) => {
|
|
107
109
|
return this.getClientInstance()
|
|
@@ -131,10 +133,11 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
131
133
|
* templates.
|
|
132
134
|
*
|
|
133
135
|
* @returns Returned if the requested templates are returned.
|
|
134
|
-
* @path
|
|
136
|
+
* @path GET `/wiki/rest/api/template/page`
|
|
135
137
|
* @scopes-current read:confluence-content.summary
|
|
136
138
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
137
139
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-page-get
|
|
140
|
+
* @param params
|
|
138
141
|
*/
|
|
139
142
|
this.getContentTemplates = ({ spaceKey, start, limit, expand, } = {}) => {
|
|
140
143
|
return this.getClientInstance()
|
|
@@ -174,10 +177,11 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
174
177
|
* 'Confluence Administrator'
|
|
175
178
|
* global permission to delete a global template.
|
|
176
179
|
*
|
|
177
|
-
* @path
|
|
180
|
+
* @path DELETE `/wiki/rest/api/template/{contentTemplateId}`
|
|
178
181
|
* @scopes-current write:confluence-content
|
|
179
182
|
* @scopes-beta write:template:confluence
|
|
180
183
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-delete
|
|
184
|
+
* @param params
|
|
181
185
|
*/
|
|
182
186
|
this.removeTemplate = ({ contentTemplateId, }) => {
|
|
183
187
|
return this.getClientInstance()
|
|
@@ -200,11 +204,11 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
200
204
|
* global permission to update a global template.
|
|
201
205
|
*
|
|
202
206
|
* @returns Returned if the template is updated.
|
|
203
|
-
* @path
|
|
207
|
+
* @path PUT `/wiki/rest/api/template`
|
|
204
208
|
* @scopes-current write:confluence-content
|
|
205
|
-
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
206
|
-
* write:template:confluence
|
|
209
|
+
* @scopes-beta read:template:confluence, read:content-details:confluence, write:template:confluence
|
|
207
210
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-put
|
|
211
|
+
* @param params
|
|
208
212
|
*/
|
|
209
213
|
this.updateContentTemplate = ({ contentTemplateUpdate, }) => {
|
|
210
214
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/TemplateService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"TemplateService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/TemplateService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,iDAO4B;AAC5B,wEAAqE;AACrE,uFAAuF;AACvF,MAAa,eAAgB,SAAQ,qCAAiB;IAAtD;;QACE;;;;;;;;;;;;;;;WAeG;QACH,0BAAqB,GAAG,CAAC,EACvB,qBAAqB,GAOtB,EAA4B,EAAE;YAC7B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,yBAAyB;gBAC/B,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,qBAAqB;aAC5B,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,gDAAgD,CACjD,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;;;WAkBG;QACH,0BAAqB,GAAG,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,MAAM,MAqBJ,EAAE,EAAmC,EAAE;YACzC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,mCAAmC;gBACzC,MAAM,EAAE,KAAK;gBACb,KAAK,E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D,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,8CAA8C,EAC9C,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,sBAAsB,CAAC;SAC3D,CAAC;aACD,QAAQ,CAAC,8CAA8C,CAAC,CAC5D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,4CAAiC,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAnZD,0CAmZC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type Theme } from "../models/common";
|
|
3
3
|
import { type ThemeArray, type ThemeUpdate } from "../models/themes";
|
|
4
4
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes */
|
|
@@ -9,7 +9,7 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
9
9
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
|
|
10
10
|
*
|
|
11
11
|
* @returns Returned if the global theme is returned.
|
|
12
|
-
* @path
|
|
12
|
+
* @path GET `/wiki/rest/api/settings/theme/selected`
|
|
13
13
|
* @scopes-current manage:confluence-configuration
|
|
14
14
|
* @scopes-beta read:configuration:confluence
|
|
15
15
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-selected-get
|
|
@@ -24,10 +24,11 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
24
24
|
* permission for the space.
|
|
25
25
|
*
|
|
26
26
|
* @returns Returned if the requested theme is returned.
|
|
27
|
-
* @path
|
|
27
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/theme`
|
|
28
28
|
* @scopes-current read:confluence-space.summary
|
|
29
29
|
* @scopes-beta read:space.setting:confluence
|
|
30
30
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-get
|
|
31
|
+
* @param params
|
|
31
32
|
*/
|
|
32
33
|
getSpaceTheme: ({ spaceKey, }: {
|
|
33
34
|
/** The key of the space to be queried for its theme. */
|
|
@@ -40,10 +41,11 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
40
41
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
|
|
41
42
|
*
|
|
42
43
|
* @returns Returned if the requested theme is returned.
|
|
43
|
-
* @path
|
|
44
|
+
* @path GET `/wiki/rest/api/settings/theme/{themeKey}`
|
|
44
45
|
* @scopes-current manage:confluence-configuration
|
|
45
46
|
* @scopes-beta read:configuration:confluence
|
|
46
47
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-themekey-get
|
|
48
|
+
* @param params
|
|
47
49
|
*/
|
|
48
50
|
getTheme: ({ themeKey, }: {
|
|
49
51
|
/** The key of the theme to be returned. */
|
|
@@ -55,10 +57,11 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
55
57
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
|
|
56
58
|
*
|
|
57
59
|
* @returns Returned if the requested themes are returned.
|
|
58
|
-
* @path
|
|
60
|
+
* @path GET `/wiki/rest/api/settings/theme`
|
|
59
61
|
* @scopes-current manage:confluence-configuration
|
|
60
62
|
* @scopes-beta read:configuration:confluence
|
|
61
63
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-get
|
|
64
|
+
* @param params
|
|
62
65
|
*/
|
|
63
66
|
getThemes: ({ start, limit, }?: {
|
|
64
67
|
/** The starting index of the returned themes. */
|
|
@@ -76,10 +79,11 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
76
79
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
77
80
|
* 'Admin' permission for the space.
|
|
78
81
|
*
|
|
79
|
-
* @path
|
|
82
|
+
* @path DELETE `/wiki/rest/api/space/{spaceKey}/theme`
|
|
80
83
|
* @scopes-current write:confluence-space
|
|
81
84
|
* @scopes-beta write:space.setting:confluence
|
|
82
85
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-delete
|
|
86
|
+
* @param params
|
|
83
87
|
*/
|
|
84
88
|
resetSpaceTheme: ({ spaceKey, }: {
|
|
85
89
|
/** The key of the space to reset the theme for. */
|
|
@@ -94,10 +98,11 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
94
98
|
* 'Admin' permission for the space.
|
|
95
99
|
*
|
|
96
100
|
* @returns Returned if the theme was set for the space.
|
|
97
|
-
* @path
|
|
101
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}/theme`
|
|
98
102
|
* @scopes-current write:confluence-space
|
|
99
103
|
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
100
104
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-put
|
|
105
|
+
* @param params
|
|
101
106
|
*/
|
|
102
107
|
setSpaceTheme: ({ spaceKey, themeUpdate, }: {
|
|
103
108
|
/** The key of the space to set the theme for. */
|
|
@@ -5,8 +5,8 @@ exports.ThemesService = 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 themes_1 = require("../models/themes");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
@@ -20,7 +20,7 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
20
20
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
|
|
21
21
|
*
|
|
22
22
|
* @returns Returned if the global theme is returned.
|
|
23
|
-
* @path
|
|
23
|
+
* @path GET `/wiki/rest/api/settings/theme/selected`
|
|
24
24
|
* @scopes-current manage:confluence-configuration
|
|
25
25
|
* @scopes-beta read:configuration:confluence
|
|
26
26
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-selected-get
|
|
@@ -49,10 +49,11 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
49
49
|
* permission for the space.
|
|
50
50
|
*
|
|
51
51
|
* @returns Returned if the requested theme is returned.
|
|
52
|
-
* @path
|
|
52
|
+
* @path GET `/wiki/rest/api/space/{spaceKey}/theme`
|
|
53
53
|
* @scopes-current read:confluence-space.summary
|
|
54
54
|
* @scopes-beta read:space.setting:confluence
|
|
55
55
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-get
|
|
56
|
+
* @param params
|
|
56
57
|
*/
|
|
57
58
|
this.getSpaceTheme = ({ spaceKey, }) => {
|
|
58
59
|
return this.getClientInstance()
|
|
@@ -79,10 +80,11 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
79
80
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
|
|
80
81
|
*
|
|
81
82
|
* @returns Returned if the requested theme is returned.
|
|
82
|
-
* @path
|
|
83
|
+
* @path GET `/wiki/rest/api/settings/theme/{themeKey}`
|
|
83
84
|
* @scopes-current manage:confluence-configuration
|
|
84
85
|
* @scopes-beta read:configuration:confluence
|
|
85
86
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-themekey-get
|
|
87
|
+
* @param params
|
|
86
88
|
*/
|
|
87
89
|
this.getTheme = ({ themeKey, }) => {
|
|
88
90
|
return this.getClientInstance()
|
|
@@ -108,10 +110,11 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
108
110
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None
|
|
109
111
|
*
|
|
110
112
|
* @returns Returned if the requested themes are returned.
|
|
111
|
-
* @path
|
|
113
|
+
* @path GET `/wiki/rest/api/settings/theme`
|
|
112
114
|
* @scopes-current manage:confluence-configuration
|
|
113
115
|
* @scopes-beta read:configuration:confluence
|
|
114
116
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-get
|
|
117
|
+
* @param params
|
|
115
118
|
*/
|
|
116
119
|
this.getThemes = ({ start, limit, } = {}) => {
|
|
117
120
|
return this.getClientInstance()
|
|
@@ -139,10 +142,11 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
139
142
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
140
143
|
* 'Admin' permission for the space.
|
|
141
144
|
*
|
|
142
|
-
* @path
|
|
145
|
+
* @path DELETE `/wiki/rest/api/space/{spaceKey}/theme`
|
|
143
146
|
* @scopes-current write:confluence-space
|
|
144
147
|
* @scopes-beta write:space.setting:confluence
|
|
145
148
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-delete
|
|
149
|
+
* @param params
|
|
146
150
|
*/
|
|
147
151
|
this.resetSpaceTheme = ({ spaceKey, }) => {
|
|
148
152
|
return this.getClientInstance()
|
|
@@ -164,10 +168,11 @@ class ThemesService extends CommonHttpService_1.CommonHttpService {
|
|
|
164
168
|
* 'Admin' permission for the space.
|
|
165
169
|
*
|
|
166
170
|
* @returns Returned if the theme was set for the space.
|
|
167
|
-
* @path
|
|
171
|
+
* @path PUT `/wiki/rest/api/space/{spaceKey}/theme`
|
|
168
172
|
* @scopes-current write:confluence-space
|
|
169
173
|
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
170
174
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-put
|
|
175
|
+
* @param params
|
|
171
176
|
*/
|
|
172
177
|
this.setSpaceTheme = ({ spaceKey, themeUpdate, }) => {
|
|
173
178
|
return this.getClientInstance()
|
|
@@ -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,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"ThemesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ThemesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAA+E;AAC/E,6CAI0B;AAC1B,wEAAqE;AACrE,qFAAqF;AACrF,MAAa,aAAc,SAAQ,qCAAiB;IAApD;;QACE;;;;;;;;;;WAUG;QACH,mBAAc,GAAG,GAAmB,EAAE;YACpC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,wCAAwC;gBAC9C,MAAM,EAAE,KAAK;aACd,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,uCAAuC,CACxC,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;WAcG;QACH,k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kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,sCAAsC,CAAC,CACpD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,sCAAsC,EACtC,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,OAAO,CAAC;SAC5C,CAAC;aACD,QAAQ,CAAC,sCAAsC,CAAC,CACpD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,wCAA+B;YAC/B,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAxUD,sCAwUC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonHttpService } from "
|
|
1
|
+
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
2
|
import { type UserProperty, type UserPropertyCreate, type UserPropertyKeyArray, type UserPropertyUpdate } from "../models/userProperties";
|
|
3
3
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties */
|
|
4
4
|
export declare class UserPropertiesService extends CommonHttpService {
|
|
@@ -15,9 +15,10 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
15
15
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
16
16
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
17
17
|
*
|
|
18
|
-
* @path
|
|
18
|
+
* @path POST `/wiki/rest/api/user/{userId}/property/{key}`
|
|
19
19
|
* @scopes-current write:user.property:confluence
|
|
20
20
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-post
|
|
21
|
+
* @param params
|
|
21
22
|
*/
|
|
22
23
|
createUserProperty: ({ userId, key, userPropertyCreate, }: {
|
|
23
24
|
/**
|
|
@@ -42,9 +43,10 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
42
43
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
43
44
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
44
45
|
*
|
|
45
|
-
* @path
|
|
46
|
+
* @path DELETE `/wiki/rest/api/user/{userId}/property/{key}`
|
|
46
47
|
* @scopes-current write:user.property:confluence
|
|
47
48
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-delete
|
|
49
|
+
* @param params
|
|
48
50
|
*/
|
|
49
51
|
deleteUserProperty: ({ userId, key, }: {
|
|
50
52
|
/**
|
|
@@ -67,9 +69,10 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
67
69
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
68
70
|
*
|
|
69
71
|
* @returns Returned if the requested properties are returned.
|
|
70
|
-
* @path
|
|
72
|
+
* @path GET `/wiki/rest/api/user/{userId}/property`
|
|
71
73
|
* @scopes-current read:user.property:confluence
|
|
72
74
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-get
|
|
75
|
+
* @param params
|
|
73
76
|
*/
|
|
74
77
|
getUserProperties: ({ userId, start, limit, }: {
|
|
75
78
|
/** The account ID of the user to be queried for its properties. */
|
|
@@ -93,9 +96,10 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
93
96
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
94
97
|
*
|
|
95
98
|
* @returns Returned if the requested properties are returned.
|
|
96
|
-
* @path
|
|
99
|
+
* @path GET `/wiki/rest/api/user/{userId}/property/{key}`
|
|
97
100
|
* @scopes-current read:user.property:confluence
|
|
98
101
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-get
|
|
102
|
+
* @param params
|
|
99
103
|
*/
|
|
100
104
|
getUserProperty: ({ userId, key, }: {
|
|
101
105
|
/** The account ID of the user to be queried for its properties. */
|
|
@@ -115,9 +119,10 @@ export declare class UserPropertiesService extends CommonHttpService {
|
|
|
115
119
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
116
120
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
117
121
|
*
|
|
118
|
-
* @path
|
|
122
|
+
* @path PUT `/wiki/rest/api/user/{userId}/property/{key}`
|
|
119
123
|
* @scopes-current write:user.property:confluence
|
|
120
124
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-put
|
|
125
|
+
* @param params
|
|
121
126
|
*/
|
|
122
127
|
updateUserProperty: ({ userId, key, userPropertyUpdate, }: {
|
|
123
128
|
/**
|
|
@@ -5,8 +5,8 @@ exports.UserPropertiesService = 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 userProperties_1 = require("../models/userProperties");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties */
|
|
@@ -26,9 +26,10 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
26
26
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
27
27
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
28
28
|
*
|
|
29
|
-
* @path
|
|
29
|
+
* @path POST `/wiki/rest/api/user/{userId}/property/{key}`
|
|
30
30
|
* @scopes-current write:user.property:confluence
|
|
31
31
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-post
|
|
32
|
+
* @param params
|
|
32
33
|
*/
|
|
33
34
|
this.createUserProperty = ({ userId, key, userPropertyCreate, }) => {
|
|
34
35
|
return this.getClientInstance()
|
|
@@ -57,9 +58,10 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
57
58
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
58
59
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
59
60
|
*
|
|
60
|
-
* @path
|
|
61
|
+
* @path DELETE `/wiki/rest/api/user/{userId}/property/{key}`
|
|
61
62
|
* @scopes-current write:user.property:confluence
|
|
62
63
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-delete
|
|
64
|
+
* @param params
|
|
63
65
|
*/
|
|
64
66
|
this.deleteUserProperty = ({ userId, key, }) => {
|
|
65
67
|
return this.getClientInstance()
|
|
@@ -84,9 +86,10 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
84
86
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
85
87
|
*
|
|
86
88
|
* @returns Returned if the requested properties are returned.
|
|
87
|
-
* @path
|
|
89
|
+
* @path GET `/wiki/rest/api/user/{userId}/property`
|
|
88
90
|
* @scopes-current read:user.property:confluence
|
|
89
91
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-get
|
|
92
|
+
* @param params
|
|
90
93
|
*/
|
|
91
94
|
this.getUserProperties = ({ userId, start, limit, }) => {
|
|
92
95
|
return this.getClientInstance()
|
|
@@ -121,9 +124,10 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
121
124
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
122
125
|
*
|
|
123
126
|
* @returns Returned if the requested properties are returned.
|
|
124
|
-
* @path
|
|
127
|
+
* @path GET `/wiki/rest/api/user/{userId}/property/{key}`
|
|
125
128
|
* @scopes-current read:user.property:confluence
|
|
126
129
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-get
|
|
130
|
+
* @param params
|
|
127
131
|
*/
|
|
128
132
|
this.getUserProperty = ({ userId, key, }) => {
|
|
129
133
|
return this.getClientInstance()
|
|
@@ -156,9 +160,10 @@ class UserPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
156
160
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
157
161
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
158
162
|
*
|
|
159
|
-
* @path
|
|
163
|
+
* @path PUT `/wiki/rest/api/user/{userId}/property/{key}`
|
|
160
164
|
* @scopes-current write:user.property:confluence
|
|
161
165
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-user-properties#api-wiki-rest-api-user-userid-property-key-put
|
|
166
|
+
* @param params
|
|
162
167
|
*/
|
|
163
168
|
this.updateUserProperty = ({ userId, key, userPropertyUpdate, }) => {
|
|
164
169
|
return this.getClientInstance()
|
|
@@ -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,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"UserPropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/UserPropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6DAMkC;AAClC,wEAAqE;AACrE,8FAA8F;AAC9F,MAAa,qBAAsB,SAAQ,qCAAiB;IAA5D;;QACE;;;;;;;;;;;;;;;;;WAiBG;QACH,uBAAkB,GAAG,CAAC,EACpB,MAAM,EAC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