@resolution/confluence-api-client 0.4.0 → 0.4.2
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 +23 -0
- package/README.md +125 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +10 -3
- package/lib/openapi/v1/services/AuditService.js +10 -3
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +12 -1
- package/lib/openapi/v1/services/ContentService.js +12 -1
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +18 -1
- package/lib/openapi/v1/services/GroupService.js +18 -1
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +6 -0
- package/lib/openapi/v1/services/RelationService.js +6 -0
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +3 -0
- package/lib/openapi/v1/services/SearchService.js +3 -0
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +9 -2
- package/lib/openapi/v1/services/SettingsService.js +9 -2
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +10 -1
- package/lib/openapi/v1/services/SpaceService.js +10 -1
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +9 -2
- package/lib/openapi/v1/services/TemplateService.js +9 -2
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +8 -1
- package/lib/openapi/v1/services/ThemesService.js +8 -1
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +10 -2
- package/lib/openapi/v1/services/UsersService.js +10 -2
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +5 -0
- package/lib/openapi/v2/services/AncestorsService.js +5 -0
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +9 -1
- package/lib/openapi/v2/services/AttachmentService.js +9 -1
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +9 -1
- package/lib/openapi/v2/services/BlogPostService.js +9 -1
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +3 -0
- package/lib/openapi/v2/services/ChildrenService.js +3 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +21 -2
- package/lib/openapi/v2/services/CommentService.js +21 -2
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -0
- package/lib/openapi/v2/services/ContentService.js +2 -0
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +9 -0
- package/lib/openapi/v2/services/CustomContentService.js +9 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +4 -0
- package/lib/openapi/v2/services/DatabaseService.js +4 -0
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +9 -1
- package/lib/openapi/v2/services/LabelService.js +9 -1
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +9 -0
- package/lib/openapi/v2/services/LikeService.js +9 -0
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +11 -0
- package/lib/openapi/v2/services/OperationService.js +11 -0
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +9 -1
- package/lib/openapi/v2/services/PageService.js +9 -1
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +4 -1
- package/lib/openapi/v2/services/SpaceService.js +4 -1
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +5 -1
- package/lib/openapi/v2/services/TaskService.js +5 -1
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +3 -0
- package/lib/openapi/v2/services/UserService.js +3 -0
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +13 -0
- package/lib/openapi/v2/services/VersionService.js +13 -0
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +4 -4
- package/lib/openapi/v1/BaseConfluenceV1ApiClient.d.ts +0 -133
- package/lib/openapi/v1/BaseConfluenceV1ApiClient.js +0 -122
- package/lib/openapi/v1/BaseConfluenceV1ApiClient.js.map +0 -1
- package/lib/openapi/v2/BaseConfluenceV2ApiClient.d.ts +0 -67
- package/lib/openapi/v2/BaseConfluenceV2ApiClient.js +0 -87
- package/lib/openapi/v2/BaseConfluenceV2ApiClient.js.map +0 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
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
|
+
* @deprecated
|
|
5
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties
|
|
6
|
+
*/
|
|
4
7
|
export declare class SpacePropertiesService extends CommonHttpService {
|
|
5
8
|
/**
|
|
6
9
|
* Deprecated, use [Confluence's v2
|
|
@@ -16,6 +19,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
16
19
|
* @path {POST} /wiki/rest/api/space/{spaceKey}/property
|
|
17
20
|
* @scopes-current write:confluence-props
|
|
18
21
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
22
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-post
|
|
19
23
|
*/
|
|
20
24
|
createSpaceProperty({ spaceKey, spacePropertyCreate, }: {
|
|
21
25
|
/** The key of the space that the property will be created in. */
|
|
@@ -40,6 +44,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
40
44
|
* @path {POST} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
41
45
|
* @scopes-current write:confluence-props
|
|
42
46
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
47
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-post
|
|
43
48
|
*/
|
|
44
49
|
createSpacePropertyForKey({ spaceKey, key, spacePropertyCreateNoKey, }: {
|
|
45
50
|
/** The key of the space that the property will be created in. */
|
|
@@ -62,6 +67,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
62
67
|
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
63
68
|
* @scopes-current write:confluence-props
|
|
64
69
|
* @scopes-beta write:space.property:confluence
|
|
70
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-delete
|
|
65
71
|
*/
|
|
66
72
|
deleteSpaceProperty({ spaceKey, key, }: {
|
|
67
73
|
/** The key of the space that the property is in. */
|
|
@@ -84,6 +90,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
84
90
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/property
|
|
85
91
|
* @scopes-current read:confluence-props
|
|
86
92
|
* @scopes-beta read:content-details:confluence
|
|
93
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-get
|
|
87
94
|
*/
|
|
88
95
|
getSpaceProperties({ spaceKey, expand, start, limit, }: {
|
|
89
96
|
/** The key of the space to be queried for its properties. */
|
|
@@ -118,6 +125,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
118
125
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
119
126
|
* @scopes-current read:confluence-props
|
|
120
127
|
* @scopes-beta read:content-details:confluence
|
|
128
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-get
|
|
121
129
|
*/
|
|
122
130
|
getSpaceProperty({ spaceKey, key, expand, }: {
|
|
123
131
|
/** The key of the space that the property is in. */
|
|
@@ -148,6 +156,7 @@ export declare class SpacePropertiesService extends CommonHttpService {
|
|
|
148
156
|
* @path {PUT} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
149
157
|
* @scopes-current write:confluence-props
|
|
150
158
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
159
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-put
|
|
151
160
|
*/
|
|
152
161
|
updateSpaceProperty({ spaceKey, key, spacePropertyUpdate, }: {
|
|
153
162
|
/** The key of the space that the property is in. */
|
|
@@ -9,7 +9,10 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const spaceProperties_1 = require("../models/spaceProperties");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties
|
|
15
|
+
*/
|
|
13
16
|
class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
14
17
|
/**
|
|
15
18
|
* Deprecated, use [Confluence's v2
|
|
@@ -25,6 +28,7 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
25
28
|
* @path {POST} /wiki/rest/api/space/{spaceKey}/property
|
|
26
29
|
* @scopes-current write:confluence-props
|
|
27
30
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
31
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-post
|
|
28
32
|
*/
|
|
29
33
|
createSpaceProperty({ spaceKey, spacePropertyCreate, }) {
|
|
30
34
|
return this.getClientInstance()
|
|
@@ -65,6 +69,7 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
65
69
|
* @path {POST} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
66
70
|
* @scopes-current write:confluence-props
|
|
67
71
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
72
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-post
|
|
68
73
|
*/
|
|
69
74
|
createSpacePropertyForKey({ spaceKey, key, spacePropertyCreateNoKey, }) {
|
|
70
75
|
return this.getClientInstance()
|
|
@@ -102,6 +107,7 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
102
107
|
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
103
108
|
* @scopes-current write:confluence-props
|
|
104
109
|
* @scopes-beta write:space.property:confluence
|
|
110
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-delete
|
|
105
111
|
*/
|
|
106
112
|
deleteSpaceProperty({ spaceKey, key, }) {
|
|
107
113
|
return this.getClientInstance()
|
|
@@ -130,6 +136,7 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
130
136
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/property
|
|
131
137
|
* @scopes-current read:confluence-props
|
|
132
138
|
* @scopes-beta read:content-details:confluence
|
|
139
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-get
|
|
133
140
|
*/
|
|
134
141
|
getSpaceProperties({ spaceKey, expand, start, limit, }) {
|
|
135
142
|
return this.getClientInstance()
|
|
@@ -168,6 +175,7 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
168
175
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
169
176
|
* @scopes-current read:confluence-props
|
|
170
177
|
* @scopes-beta read:content-details:confluence
|
|
178
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-get
|
|
171
179
|
*/
|
|
172
180
|
getSpaceProperty({ spaceKey, key, expand, }) {
|
|
173
181
|
return this.getClientInstance()
|
|
@@ -206,6 +214,7 @@ class SpacePropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
|
206
214
|
* @path {PUT} /wiki/rest/api/space/{spaceKey}/property/{key}
|
|
207
215
|
* @scopes-current write:confluence-props
|
|
208
216
|
* @scopes-beta read:space.property:confluence, write:space.property:confluence
|
|
217
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-properties#api-wiki-rest-api-space-spacekey-property-key-put
|
|
209
218
|
*/
|
|
210
219
|
updateSpaceProperty({ spaceKey, key, spacePropertyUpdate, }) {
|
|
211
220
|
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,6DAA6D;AAC7D,iEAA8D;AAC9D,+DAOmC;AACnC,wEAAqE;AACrE
|
|
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,6DAA6D;AAC7D,iEAA8D;AAC9D,+DAOmC;AACnC,wEAAqE;AACrE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,qCAAiB;IAC3D;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,CAAC,EAClB,QAAQ,EACR,mBAAmB,GAMpB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,0CAA0C;YAChD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,QAAQ;aACT;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,mBAAmB;SAC1B,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,qDAAqD,CACtD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;;;;;;;OAkBG;IACH,yBAAyB,CAAC,EACxB,QAAQ,EACR,GAAG,EACH,wBAAwB,GAQzB;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,gDAAgD;YACtD,MAAM,EAAE,MAAM;YACd,UAAU,EAAE;gBACV,QAAQ;gBACR,GAAG;aACJ;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,wBAAwB;SAC/B,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,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E,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,iBAAiB,CAAC;SACtD,CAAC;aACD,QAAQ,CAAC,2DAA2D,CAAC,CACzE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,0DAAwC;SACzC,CAAC,CAAC;IACL,CAAC;CACF;AAnaD,wDAmaC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../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
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space */
|
|
4
5
|
export declare class SpaceService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Creates a new space that is only visible to the creator. This method is
|
|
@@ -16,6 +17,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
16
17
|
* @scopes-current write:confluence-space
|
|
17
18
|
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
18
19
|
* write:space.permission:confluence
|
|
20
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-private-post
|
|
19
21
|
*/
|
|
20
22
|
createPrivateSpace({ spaceCreate, }: {
|
|
21
23
|
/** The space to be created. */
|
|
@@ -33,6 +35,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
33
35
|
* @scopes-current write:confluence-space
|
|
34
36
|
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
35
37
|
* write:space.permission:confluence
|
|
38
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-post
|
|
36
39
|
*/
|
|
37
40
|
createSpace({ spaceCreate, }: {
|
|
38
41
|
/** The space to be created. */
|
|
@@ -52,6 +55,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
52
55
|
* @path {DELETE} /wiki/rest/api/space/{spaceKey}
|
|
53
56
|
* @scopes-current write:confluence-space
|
|
54
57
|
* @scopes-beta read:content.metadata:confluence, delete:space:confluence
|
|
58
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-delete
|
|
55
59
|
*/
|
|
56
60
|
deleteSpace({ spaceKey, }: {
|
|
57
61
|
/** The key of the space to delete. */
|
|
@@ -77,6 +81,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
77
81
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/content/{type}
|
|
78
82
|
* @scopes-current read:confluence-content.summary
|
|
79
83
|
* @scopes-beta read:content-details:confluence
|
|
84
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-type-get
|
|
80
85
|
*/
|
|
81
86
|
getContentByTypeForSpace({ spaceKey, type, depth, expand, start, limit, }: {
|
|
82
87
|
/** The key of the space to be queried for its content. */
|
|
@@ -211,6 +216,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
211
216
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/content
|
|
212
217
|
* @scopes-current read:confluence-content.summary
|
|
213
218
|
* @scopes-beta read:content-details:confluence
|
|
219
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-get
|
|
214
220
|
*/
|
|
215
221
|
getContentForSpace({ spaceKey, depth, expand, start, limit, }: {
|
|
216
222
|
/** The key of the space to be queried for its content. */
|
|
@@ -341,6 +347,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
341
347
|
* @path {GET} /wiki/rest/api/space/{spaceKey}
|
|
342
348
|
* @scopes-current read:confluence-space.summary
|
|
343
349
|
* @scopes-beta read:content-details:confluence
|
|
350
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-get
|
|
344
351
|
*/
|
|
345
352
|
getSpace({ spaceKey, expand, }: {
|
|
346
353
|
/** The key of the space to be returned. */
|
|
@@ -388,8 +395,9 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
388
395
|
* @path {GET} /wiki/rest/api/space
|
|
389
396
|
* @scopes-current read:confluence-space.summary
|
|
390
397
|
* @scopes-beta read:content-details:confluence
|
|
398
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-get
|
|
391
399
|
*/
|
|
392
|
-
getSpaces({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, }
|
|
400
|
+
getSpaces({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, }?: {
|
|
393
401
|
/**
|
|
394
402
|
* The key of the space to be returned. To return multiple spaces,
|
|
395
403
|
* specify this parameter multiple times with different values.
|
|
@@ -468,6 +476,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
468
476
|
* @scopes-current write:confluence-space
|
|
469
477
|
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
470
478
|
* write:space.permission:confluence
|
|
479
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-put
|
|
471
480
|
*/
|
|
472
481
|
updateSpace({ spaceKey, spaceUpdate, }: {
|
|
473
482
|
/** The key of the space to update. */
|
|
@@ -10,6 +10,7 @@ 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");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space */
|
|
13
14
|
class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Creates a new space that is only visible to the creator. This method is
|
|
@@ -25,6 +26,7 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
25
26
|
* @scopes-current write:confluence-space
|
|
26
27
|
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
27
28
|
* write:space.permission:confluence
|
|
29
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-private-post
|
|
28
30
|
*/
|
|
29
31
|
createPrivateSpace({ spaceCreate, }) {
|
|
30
32
|
return this.getClientInstance()
|
|
@@ -57,6 +59,7 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
57
59
|
* @scopes-current write:confluence-space
|
|
58
60
|
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
59
61
|
* write:space.permission:confluence
|
|
62
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-post
|
|
60
63
|
*/
|
|
61
64
|
createSpace({ spaceCreate, }) {
|
|
62
65
|
return this.getClientInstance()
|
|
@@ -91,6 +94,7 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
91
94
|
* @path {DELETE} /wiki/rest/api/space/{spaceKey}
|
|
92
95
|
* @scopes-current write:confluence-space
|
|
93
96
|
* @scopes-beta read:content.metadata:confluence, delete:space:confluence
|
|
97
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-delete
|
|
94
98
|
*/
|
|
95
99
|
deleteSpace({ spaceKey, }) {
|
|
96
100
|
return this.getClientInstance()
|
|
@@ -130,6 +134,7 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
130
134
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/content/{type}
|
|
131
135
|
* @scopes-current read:confluence-content.summary
|
|
132
136
|
* @scopes-beta read:content-details:confluence
|
|
137
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-type-get
|
|
133
138
|
*/
|
|
134
139
|
getContentByTypeForSpace({ spaceKey, type, depth, expand, start, limit, }) {
|
|
135
140
|
return this.getClientInstance()
|
|
@@ -176,6 +181,7 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
176
181
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/content
|
|
177
182
|
* @scopes-current read:confluence-content.summary
|
|
178
183
|
* @scopes-beta read:content-details:confluence
|
|
184
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-get
|
|
179
185
|
*/
|
|
180
186
|
getContentForSpace({ spaceKey, depth, expand, start, limit, }) {
|
|
181
187
|
return this.getClientInstance()
|
|
@@ -216,6 +222,7 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
216
222
|
* @path {GET} /wiki/rest/api/space/{spaceKey}
|
|
217
223
|
* @scopes-current read:confluence-space.summary
|
|
218
224
|
* @scopes-beta read:content-details:confluence
|
|
225
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-get
|
|
219
226
|
*/
|
|
220
227
|
getSpace({ spaceKey, expand, }) {
|
|
221
228
|
return this.getClientInstance()
|
|
@@ -255,8 +262,9 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
255
262
|
* @path {GET} /wiki/rest/api/space
|
|
256
263
|
* @scopes-current read:confluence-space.summary
|
|
257
264
|
* @scopes-beta read:content-details:confluence
|
|
265
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-get
|
|
258
266
|
*/
|
|
259
|
-
getSpaces({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, }) {
|
|
267
|
+
getSpaces({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, } = {}) {
|
|
260
268
|
return this.getClientInstance()
|
|
261
269
|
.request({
|
|
262
270
|
path: "/wiki/rest/api/space",
|
|
@@ -298,6 +306,7 @@ class SpaceService extends CommonHttpService_1.CommonHttpService {
|
|
|
298
306
|
* @scopes-current write:confluence-space
|
|
299
307
|
* @scopes-beta read:space-details:confluence, write:space:confluence,
|
|
300
308
|
* write:space.permission:confluence
|
|
309
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-put
|
|
301
310
|
*/
|
|
302
311
|
updateSpace({ spaceKey, spaceUpdate, }) {
|
|
303
312
|
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,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAM0B;AAC1B,2CAKyB;AACzB,wEAAqE;AACrE,MAAa,YAAa,SAAQ,qCAAiB;IACjD
|
|
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,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAM0B;AAC1B,2CAKyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IACjD;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EACjB,WAAW,GAIZ;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,+BAA+B;YACrC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA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import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type SpaceSettings } from "../models/common";
|
|
3
3
|
import type { SpaceSettingsUpdate } from "../models/spaceSettings";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings */
|
|
4
5
|
export declare class SpaceSettingsService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Returns the settings of a space. Currently only the
|
|
@@ -13,6 +14,7 @@ export declare class SpaceSettingsService extends CommonHttpService {
|
|
|
13
14
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/settings
|
|
14
15
|
* @scopes-current read:confluence-space.summary
|
|
15
16
|
* @scopes-beta read:space.setting:confluence
|
|
17
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-get
|
|
16
18
|
*/
|
|
17
19
|
getSpaceSettings({ spaceKey, }: {
|
|
18
20
|
/** The key of the space to be queried for its settings. */
|
|
@@ -29,6 +31,7 @@ export declare class SpaceSettingsService extends CommonHttpService {
|
|
|
29
31
|
* @path {PUT} /wiki/rest/api/space/{spaceKey}/settings
|
|
30
32
|
* @scopes-current write:confluence-space
|
|
31
33
|
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
34
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-put
|
|
32
35
|
*/
|
|
33
36
|
updateSpaceSettings({ spaceKey, spaceSettingsUpdate, }: {
|
|
34
37
|
/** The key of the space whose settings will be updated. */
|
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings */
|
|
12
13
|
class SpaceSettingsService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Returns the settings of a space. Currently only the
|
|
@@ -21,6 +22,7 @@ class SpaceSettingsService extends CommonHttpService_1.CommonHttpService {
|
|
|
21
22
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/settings
|
|
22
23
|
* @scopes-current read:confluence-space.summary
|
|
23
24
|
* @scopes-beta read:space.setting:confluence
|
|
25
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-get
|
|
24
26
|
*/
|
|
25
27
|
getSpaceSettings({ spaceKey, }) {
|
|
26
28
|
return this.getClientInstance()
|
|
@@ -51,6 +53,7 @@ class SpaceSettingsService extends CommonHttpService_1.CommonHttpService {
|
|
|
51
53
|
* @path {PUT} /wiki/rest/api/space/{spaceKey}/settings
|
|
52
54
|
* @scopes-current write:confluence-space
|
|
53
55
|
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
56
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space-settings#api-wiki-rest-api-space-spacekey-settings-put
|
|
54
57
|
*/
|
|
55
58
|
updateSpaceSettings({ spaceKey, spaceSettingsUpdate, }) {
|
|
56
59
|
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,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAE1B,wEAAqE;AACrE,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD
|
|
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,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AAM,CAAC,UAAU;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,OAAC,CAAC,QAAQ,CAAC,iDAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAChE,CAAC;aACD,QAAQ,CAAC,gDAAgD,CAAC,CAC9D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,mDAAmD,EACnD,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,OAAC,CAAC,QAAQ,CAAC,iDAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAChE,CAAC;aACD,QAAQ,CAAC,mDAAmD,CAAC,CACjE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AA/HD,oDA+HC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type BlueprintTemplateArray, type ContentTemplate, type ContentTemplateArray, type ContentTemplateCreate, type ContentTemplateUpdate } from "../models/template";
|
|
3
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template */
|
|
3
4
|
export declare class TemplateService extends CommonHttpService {
|
|
4
5
|
/**
|
|
5
6
|
* Creates a new content template. Note, blueprint templates cannot be created via
|
|
@@ -15,6 +16,7 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
15
16
|
* @scopes-current write:confluence-content
|
|
16
17
|
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
17
18
|
* write:template:confluence
|
|
19
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-post
|
|
18
20
|
*/
|
|
19
21
|
createContentTemplate({ contentTemplateCreate, }: {
|
|
20
22
|
/**
|
|
@@ -39,8 +41,9 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
39
41
|
* @path {GET} /wiki/rest/api/template/blueprint
|
|
40
42
|
* @scopes-current read:confluence-content.summary
|
|
41
43
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
44
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-blueprint-get
|
|
42
45
|
*/
|
|
43
|
-
getBlueprintTemplates({ spaceKey, start, limit, expand, }
|
|
46
|
+
getBlueprintTemplates({ spaceKey, start, limit, expand, }?: {
|
|
44
47
|
/**
|
|
45
48
|
* The key of the space to be queried for templates. If the `spaceKey`
|
|
46
49
|
* is not specified, global blueprint templates will be returned.
|
|
@@ -75,6 +78,7 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
75
78
|
* @path {GET} /wiki/rest/api/template/{contentTemplateId}
|
|
76
79
|
* @scopes-current read:confluence-content.summary
|
|
77
80
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
81
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-get
|
|
78
82
|
*/
|
|
79
83
|
getContentTemplate({ contentTemplateId, }: {
|
|
80
84
|
/** The ID of the content template to be returned. */
|
|
@@ -93,8 +97,9 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
93
97
|
* @path {GET} /wiki/rest/api/template/page
|
|
94
98
|
* @scopes-current read:confluence-content.summary
|
|
95
99
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
100
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-page-get
|
|
96
101
|
*/
|
|
97
|
-
getContentTemplates({ spaceKey, start, limit, expand, }
|
|
102
|
+
getContentTemplates({ spaceKey, start, limit, expand, }?: {
|
|
98
103
|
/**
|
|
99
104
|
* The key of the space to be queried for templates. If the `spaceKey`
|
|
100
105
|
* is not specified, global templates will be returned.
|
|
@@ -135,6 +140,7 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
135
140
|
* @path {DELETE} /wiki/rest/api/template/{contentTemplateId}
|
|
136
141
|
* @scopes-current write:confluence-content
|
|
137
142
|
* @scopes-beta write:template:confluence
|
|
143
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-delete
|
|
138
144
|
*/
|
|
139
145
|
removeTemplate({ contentTemplateId, }: {
|
|
140
146
|
/** The ID of the template to be deleted. */
|
|
@@ -154,6 +160,7 @@ export declare class TemplateService extends CommonHttpService {
|
|
|
154
160
|
* @scopes-current write:confluence-content
|
|
155
161
|
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
156
162
|
* write:template:confluence
|
|
163
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-put
|
|
157
164
|
*/
|
|
158
165
|
updateContentTemplate({ contentTemplateUpdate, }: {
|
|
159
166
|
/** The updated content template. */
|
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const template_1 = require("../models/template");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template */
|
|
12
13
|
class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Creates a new content template. Note, blueprint templates cannot be created via
|
|
@@ -24,6 +25,7 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
24
25
|
* @scopes-current write:confluence-content
|
|
25
26
|
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
26
27
|
* write:template:confluence
|
|
28
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-post
|
|
27
29
|
*/
|
|
28
30
|
createContentTemplate({ contentTemplateCreate, }) {
|
|
29
31
|
return this.getClientInstance()
|
|
@@ -60,8 +62,9 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
60
62
|
* @path {GET} /wiki/rest/api/template/blueprint
|
|
61
63
|
* @scopes-current read:confluence-content.summary
|
|
62
64
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
65
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-blueprint-get
|
|
63
66
|
*/
|
|
64
|
-
getBlueprintTemplates({ spaceKey, start, limit, expand, }) {
|
|
67
|
+
getBlueprintTemplates({ spaceKey, start, limit, expand, } = {}) {
|
|
65
68
|
return this.getClientInstance()
|
|
66
69
|
.request({
|
|
67
70
|
path: "/wiki/rest/api/template/blueprint",
|
|
@@ -96,6 +99,7 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
96
99
|
* @path {GET} /wiki/rest/api/template/{contentTemplateId}
|
|
97
100
|
* @scopes-current read:confluence-content.summary
|
|
98
101
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
102
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-get
|
|
99
103
|
*/
|
|
100
104
|
getContentTemplate({ contentTemplateId, }) {
|
|
101
105
|
return this.getClientInstance()
|
|
@@ -128,8 +132,9 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
128
132
|
* @path {GET} /wiki/rest/api/template/page
|
|
129
133
|
* @scopes-current read:confluence-content.summary
|
|
130
134
|
* @scopes-beta read:template:confluence, read:content-details:confluence
|
|
135
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-page-get
|
|
131
136
|
*/
|
|
132
|
-
getContentTemplates({ spaceKey, start, limit, expand, }) {
|
|
137
|
+
getContentTemplates({ spaceKey, start, limit, expand, } = {}) {
|
|
133
138
|
return this.getClientInstance()
|
|
134
139
|
.request({
|
|
135
140
|
path: "/wiki/rest/api/template/page",
|
|
@@ -170,6 +175,7 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
170
175
|
* @path {DELETE} /wiki/rest/api/template/{contentTemplateId}
|
|
171
176
|
* @scopes-current write:confluence-content
|
|
172
177
|
* @scopes-beta write:template:confluence
|
|
178
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-contenttemplateid-delete
|
|
173
179
|
*/
|
|
174
180
|
removeTemplate({ contentTemplateId, }) {
|
|
175
181
|
return this.getClientInstance()
|
|
@@ -196,6 +202,7 @@ class TemplateService extends CommonHttpService_1.CommonHttpService {
|
|
|
196
202
|
* @scopes-current write:confluence-content
|
|
197
203
|
* @scopes-beta read:template:confluence, read:content-details:confluence,
|
|
198
204
|
* write:template:confluence
|
|
205
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-template#api-wiki-rest-api-template-put
|
|
199
206
|
*/
|
|
200
207
|
updateContentTemplate({ contentTemplateUpdate, }) {
|
|
201
208
|
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,6DAA6D;AAC7D,iEAA8D;AAC9D,iDAO4B;AAC5B,wEAAqE;AACrE,MAAa,eAAgB,SAAQ,qCAAiB;IACpD
|
|
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,6DAA6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import { type Theme } from "../models/common";
|
|
3
3
|
import { type ThemeArray, type ThemeUpdate } from "../models/themes";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes */
|
|
4
5
|
export declare class ThemesService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Returns the globally assigned theme.
|
|
@@ -11,6 +12,7 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
11
12
|
* @path {GET} /wiki/rest/api/settings/theme/selected
|
|
12
13
|
* @scopes-current manage:confluence-configuration
|
|
13
14
|
* @scopes-beta read:configuration:confluence
|
|
15
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-selected-get
|
|
14
16
|
*/
|
|
15
17
|
getGlobalTheme(): Promise<Theme>;
|
|
16
18
|
/**
|
|
@@ -25,6 +27,7 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
25
27
|
* @path {GET} /wiki/rest/api/space/{spaceKey}/theme
|
|
26
28
|
* @scopes-current read:confluence-space.summary
|
|
27
29
|
* @scopes-beta read:space.setting:confluence
|
|
30
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-get
|
|
28
31
|
*/
|
|
29
32
|
getSpaceTheme({ spaceKey, }: {
|
|
30
33
|
/** The key of the space to be queried for its theme. */
|
|
@@ -40,6 +43,7 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
40
43
|
* @path {GET} /wiki/rest/api/settings/theme/{themeKey}
|
|
41
44
|
* @scopes-current manage:confluence-configuration
|
|
42
45
|
* @scopes-beta read:configuration:confluence
|
|
46
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-themekey-get
|
|
43
47
|
*/
|
|
44
48
|
getTheme({ themeKey, }: {
|
|
45
49
|
/** The key of the theme to be returned. */
|
|
@@ -54,8 +58,9 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
54
58
|
* @path {GET} /wiki/rest/api/settings/theme
|
|
55
59
|
* @scopes-current manage:confluence-configuration
|
|
56
60
|
* @scopes-beta read:configuration:confluence
|
|
61
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-settings-theme-get
|
|
57
62
|
*/
|
|
58
|
-
getThemes({ start, limit, }
|
|
63
|
+
getThemes({ start, limit, }?: {
|
|
59
64
|
/** The starting index of the returned themes. */
|
|
60
65
|
start?: number;
|
|
61
66
|
/**
|
|
@@ -74,6 +79,7 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
74
79
|
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/theme
|
|
75
80
|
* @scopes-current write:confluence-space
|
|
76
81
|
* @scopes-beta write:space.setting:confluence
|
|
82
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-delete
|
|
77
83
|
*/
|
|
78
84
|
resetSpaceTheme({ spaceKey, }: {
|
|
79
85
|
/** The key of the space to reset the theme for. */
|
|
@@ -91,6 +97,7 @@ export declare class ThemesService extends CommonHttpService {
|
|
|
91
97
|
* @path {PUT} /wiki/rest/api/space/{spaceKey}/theme
|
|
92
98
|
* @scopes-current write:confluence-space
|
|
93
99
|
* @scopes-beta read:space.setting:confluence, write:space.setting:confluence
|
|
100
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-themes#api-wiki-rest-api-space-spacekey-theme-put
|
|
94
101
|
*/
|
|
95
102
|
setSpaceTheme({ spaceKey, themeUpdate, }: {
|
|
96
103
|
/** The key of the space to set the theme for. */
|