confluence.js 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -2
- package/README.md +145 -183
- package/dist/cjs/api/analytics.cjs.map +1 -1
- package/dist/cjs/api/audit.cjs.map +1 -1
- package/dist/cjs/api/content.cjs +0 -5
- package/dist/cjs/api/content.cjs.map +1 -1
- package/dist/cjs/api/contentAttachments.cjs +1 -0
- package/dist/cjs/api/contentAttachments.cjs.map +1 -1
- package/dist/cjs/api/contentBody.cjs +18 -0
- package/dist/cjs/api/contentBody.cjs.map +1 -1
- package/dist/cjs/api/contentChildrenAndDescendants.cjs +2 -0
- package/dist/cjs/api/contentChildrenAndDescendants.cjs.map +1 -1
- package/dist/cjs/api/contentComments.cjs +1 -0
- package/dist/cjs/api/contentComments.cjs.map +1 -1
- package/dist/cjs/api/contentLabels.cjs.map +1 -1
- package/dist/cjs/api/contentMacroBody.cjs.map +1 -1
- package/dist/cjs/api/contentPermissions.cjs.map +1 -1
- package/dist/cjs/api/contentProperties.cjs +1 -0
- package/dist/cjs/api/contentProperties.cjs.map +1 -1
- package/dist/cjs/api/contentRestrictions.cjs.map +1 -1
- package/dist/cjs/api/contentStates.cjs +13 -0
- package/dist/cjs/api/contentStates.cjs.map +1 -1
- package/dist/cjs/api/contentVersions.cjs.map +1 -1
- package/dist/cjs/api/contentWatches.cjs.map +1 -1
- package/dist/cjs/api/dynamicModules.cjs.map +1 -1
- package/dist/cjs/api/experimental.cjs.map +1 -1
- package/dist/cjs/api/group.cjs +18 -17
- package/dist/cjs/api/group.cjs.map +1 -1
- package/dist/cjs/api/index.cjs +2 -0
- package/dist/cjs/api/index.cjs.map +1 -1
- package/dist/cjs/api/inlineTasks.cjs +1 -0
- package/dist/cjs/api/inlineTasks.cjs.map +1 -1
- package/dist/cjs/api/labelInfo.cjs.map +1 -1
- package/dist/cjs/api/longRunningTask.cjs +1 -0
- package/dist/cjs/api/longRunningTask.cjs.map +1 -1
- package/dist/cjs/api/models/labeledContentType.cjs.map +1 -1
- package/dist/cjs/api/relation.cjs.map +1 -1
- package/dist/cjs/api/search.cjs +1 -0
- package/dist/cjs/api/search.cjs.map +1 -1
- package/dist/cjs/api/settings.cjs.map +1 -1
- package/dist/cjs/api/space.cjs +4 -2
- package/dist/cjs/api/space.cjs.map +1 -1
- package/dist/cjs/api/spacePermissions.cjs.map +1 -1
- package/dist/cjs/api/spaceProperties.cjs +1 -0
- package/dist/cjs/api/spaceProperties.cjs.map +1 -1
- package/dist/cjs/api/spaceSettings.cjs.map +1 -1
- package/dist/cjs/api/template.cjs.map +1 -1
- package/dist/cjs/api/themes.cjs.map +1 -1
- package/dist/cjs/api/userProperties.cjs +56 -0
- package/dist/cjs/api/userProperties.cjs.map +1 -0
- package/dist/cjs/api/users.cjs.map +1 -1
- package/dist/cjs/clients/baseClient.cjs.map +1 -1
- package/dist/cjs/clients/confluenceClient.cjs +6 -0
- package/dist/cjs/clients/confluenceClient.cjs.map +1 -1
- package/dist/cjs/config.cjs +3 -1
- package/dist/cjs/config.cjs.map +1 -1
- package/dist/cjs/paramSerializer.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/authenticationService.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/authentications/createBasicAuthenticationToken.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/authentications/createJWTAuthentication.cjs +1 -1
- package/dist/cjs/services/authenticationService/authentications/createJWTAuthentication.cjs.map +1 -1
- package/dist/cjs/services/authenticationService/base64Encoder.cjs.map +1 -1
- package/dist/esm/api/analytics.mjs.map +1 -1
- package/dist/esm/api/audit.mjs.map +1 -1
- package/dist/esm/api/content.mjs +0 -5
- package/dist/esm/api/content.mjs.map +1 -1
- package/dist/esm/api/contentAttachments.mjs +1 -0
- package/dist/esm/api/contentAttachments.mjs.map +1 -1
- package/dist/esm/api/contentBody.mjs +18 -0
- package/dist/esm/api/contentBody.mjs.map +1 -1
- package/dist/esm/api/contentChildrenAndDescendants.mjs +2 -0
- package/dist/esm/api/contentChildrenAndDescendants.mjs.map +1 -1
- package/dist/esm/api/contentComments.mjs +1 -0
- package/dist/esm/api/contentComments.mjs.map +1 -1
- package/dist/esm/api/contentLabels.mjs.map +1 -1
- package/dist/esm/api/contentMacroBody.mjs.map +1 -1
- package/dist/esm/api/contentPermissions.mjs.map +1 -1
- package/dist/esm/api/contentProperties.mjs +1 -0
- package/dist/esm/api/contentProperties.mjs.map +1 -1
- package/dist/esm/api/contentRestrictions.mjs.map +1 -1
- package/dist/esm/api/contentStates.mjs +13 -0
- package/dist/esm/api/contentStates.mjs.map +1 -1
- package/dist/esm/api/contentVersions.mjs.map +1 -1
- package/dist/esm/api/contentWatches.mjs.map +1 -1
- package/dist/esm/api/dynamicModules.mjs.map +1 -1
- package/dist/esm/api/experimental.mjs.map +1 -1
- package/dist/esm/api/group.mjs +18 -17
- package/dist/esm/api/group.mjs.map +1 -1
- package/dist/esm/api/index.mjs +1 -0
- package/dist/esm/api/index.mjs.map +1 -1
- package/dist/esm/api/inlineTasks.mjs +1 -0
- package/dist/esm/api/inlineTasks.mjs.map +1 -1
- package/dist/esm/api/labelInfo.mjs.map +1 -1
- package/dist/esm/api/longRunningTask.mjs +1 -0
- package/dist/esm/api/longRunningTask.mjs.map +1 -1
- package/dist/esm/api/models/labeledContentType.mjs.map +1 -1
- package/dist/esm/api/relation.mjs.map +1 -1
- package/dist/esm/api/search.mjs +1 -0
- package/dist/esm/api/search.mjs.map +1 -1
- package/dist/esm/api/settings.mjs.map +1 -1
- package/dist/esm/api/space.mjs +4 -2
- package/dist/esm/api/space.mjs.map +1 -1
- package/dist/esm/api/spacePermissions.mjs.map +1 -1
- package/dist/esm/api/spaceProperties.mjs +1 -0
- package/dist/esm/api/spaceProperties.mjs.map +1 -1
- package/dist/esm/api/spaceSettings.mjs.map +1 -1
- package/dist/esm/api/template.mjs.map +1 -1
- package/dist/esm/api/themes.mjs.map +1 -1
- package/dist/esm/api/userProperties.mjs +54 -0
- package/dist/esm/api/userProperties.mjs.map +1 -0
- package/dist/esm/api/users.mjs.map +1 -1
- package/dist/esm/clients/baseClient.mjs.map +1 -1
- package/dist/esm/clients/confluenceClient.mjs +6 -0
- package/dist/esm/clients/confluenceClient.mjs.map +1 -1
- package/dist/esm/config.mjs +3 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/paramSerializer.mjs.map +1 -1
- package/dist/esm/services/authenticationService/authenticationService.mjs.map +1 -1
- package/dist/esm/services/authenticationService/authentications/createBasicAuthenticationToken.mjs.map +1 -1
- package/dist/esm/services/authenticationService/authentications/createJWTAuthentication.mjs +1 -1
- package/dist/esm/services/authenticationService/authentications/createJWTAuthentication.mjs.map +1 -1
- package/dist/esm/services/authenticationService/base64Encoder.mjs.map +1 -1
- package/dist/esm/types/api/analytics.d.ts +1 -1
- package/dist/esm/types/api/audit.d.ts +3 -3
- package/dist/esm/types/api/content.d.ts +33 -7
- package/dist/esm/types/api/contentAttachments.d.ts +5 -1
- package/dist/esm/types/api/contentBody.d.ts +73 -7
- package/dist/esm/types/api/contentChildrenAndDescendants.d.ts +37 -5
- package/dist/esm/types/api/contentComments.d.ts +5 -0
- package/dist/esm/types/api/contentLabels.d.ts +17 -9
- package/dist/esm/types/api/contentMacroBody.d.ts +79 -1
- package/dist/esm/types/api/contentPermissions.d.ts +1 -1
- package/dist/esm/types/api/contentProperties.d.ts +25 -0
- package/dist/esm/types/api/contentRestrictions.d.ts +19 -7
- package/dist/esm/types/api/contentStates.d.ts +23 -5
- package/dist/esm/types/api/contentVersions.d.ts +9 -1
- package/dist/esm/types/api/contentWatches.d.ts +1 -1
- package/dist/esm/types/api/dynamicModules.d.ts +1 -1
- package/dist/esm/types/api/experimental.d.ts +21 -1
- package/dist/esm/types/api/group.d.ts +47 -27
- package/dist/esm/types/api/index.d.ts +1 -0
- package/dist/esm/types/api/inlineTasks.d.ts +13 -0
- package/dist/esm/types/api/labelInfo.d.ts +1 -1
- package/dist/esm/types/api/longRunningTask.d.ts +1 -1
- package/dist/esm/types/api/models/spaceCreate.d.ts +11 -2
- package/dist/esm/types/api/models/spacePrivateCreate.d.ts +11 -2
- package/dist/esm/types/api/parameters/bulkAsyncConvertContentBodyRequest.d.ts +58 -0
- package/dist/esm/types/api/parameters/bulkAsyncConvertContentBodyResponse.d.ts +4 -0
- package/dist/esm/types/api/parameters/deleteGroupById.d.ts +4 -0
- package/dist/esm/types/api/parameters/downloadAttachment.d.ts +6 -0
- package/dist/esm/types/api/parameters/getContentChildren.d.ts +6 -1
- package/dist/esm/types/api/parameters/getContentsWithState.d.ts +17 -0
- package/dist/esm/types/api/parameters/getGroupMembersByGroupId.d.ts +7 -0
- package/dist/esm/types/api/parameters/getGroupMembershipsForUser.d.ts +4 -0
- package/dist/esm/types/api/parameters/getTasks.d.ts +2 -0
- package/dist/esm/types/api/parameters/getUser.d.ts +4 -0
- package/dist/esm/types/api/parameters/index.d.ts +4 -0
- package/dist/esm/types/api/parameters/searchUser.d.ts +7 -0
- package/dist/esm/types/api/relation.d.ts +13 -15
- package/dist/esm/types/api/search.d.ts +7 -1
- package/dist/esm/types/api/settings.d.ts +5 -1
- package/dist/esm/types/api/space.d.ts +23 -7
- package/dist/esm/types/api/spacePermissions.d.ts +1 -1
- package/dist/esm/types/api/spaceProperties.d.ts +25 -0
- package/dist/esm/types/api/spaceSettings.d.ts +1 -1
- package/dist/esm/types/api/template.d.ts +1 -1
- package/dist/esm/types/api/themes.d.ts +1 -1
- package/dist/esm/types/api/userProperties.d.ts +102 -0
- package/dist/esm/types/api/users.d.ts +21 -9
- package/dist/esm/types/clients/confluenceClient.d.ts +6 -1
- package/eslint.config.ts +11 -16
- package/package.json +29 -28
- package/src/api/analytics.ts +1 -1
- package/src/api/audit.ts +3 -3
- package/src/api/content.ts +33 -12
- package/src/api/contentAttachments.ts +6 -1
- package/src/api/contentBody.ts +113 -7
- package/src/api/contentChildrenAndDescendants.ts +39 -5
- package/src/api/contentComments.ts +5 -0
- package/src/api/contentLabels.ts +17 -9
- package/src/api/contentMacroBody.ts +79 -1
- package/src/api/contentPermissions.ts +1 -1
- package/src/api/contentProperties.ts +25 -0
- package/src/api/contentRestrictions.ts +19 -7
- package/src/api/contentStates.ts +47 -5
- package/src/api/contentVersions.ts +9 -1
- package/src/api/contentWatches.ts +1 -1
- package/src/api/dynamicModules.ts +1 -1
- package/src/api/experimental.ts +21 -1
- package/src/api/group.ts +96 -75
- package/src/api/index.ts +1 -0
- package/src/api/inlineTasks.ts +13 -0
- package/src/api/labelInfo.ts +1 -1
- package/src/api/longRunningTask.ts +2 -1
- package/src/api/models/spaceCreate.ts +11 -2
- package/src/api/models/spacePrivateCreate.ts +11 -2
- package/src/api/parameters/bulkAsyncConvertContentBodyRequest.ts +88 -0
- package/src/api/parameters/bulkAsyncConvertContentBodyResponse.ts +4 -0
- package/src/api/parameters/deleteGroupById.ts +4 -0
- package/src/api/parameters/downloadAttachment.ts +6 -0
- package/src/api/parameters/getContentChildren.ts +7 -1
- package/src/api/parameters/getContentsWithState.ts +17 -0
- package/src/api/parameters/getGroupMembersByGroupId.ts +7 -0
- package/src/api/parameters/getGroupMembershipsForUser.ts +4 -0
- package/src/api/parameters/getTasks.ts +2 -0
- package/src/api/parameters/getUser.ts +4 -0
- package/src/api/parameters/index.ts +4 -0
- package/src/api/parameters/searchUser.ts +7 -0
- package/src/api/relation.ts +13 -15
- package/src/api/search.ts +8 -1
- package/src/api/settings.ts +5 -1
- package/src/api/space.ts +27 -9
- package/src/api/spacePermissions.ts +1 -1
- package/src/api/spaceProperties.ts +25 -0
- package/src/api/spaceSettings.ts +1 -1
- package/src/api/template.ts +1 -1
- package/src/api/themes.ts +1 -1
- package/src/api/userProperties.ts +185 -0
- package/src/api/users.ts +21 -9
- package/src/clients/baseClient.ts +1 -5
- package/src/clients/confluenceClient.ts +6 -0
- package/src/config.ts +4 -1
- package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -1
- package/favicon.svg +0 -7
package/src/api/contentBody.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentBody {
|
|
@@ -20,6 +20,8 @@ export class ContentBody {
|
|
|
20
20
|
*
|
|
21
21
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
|
|
22
22
|
* 'View' permission for the space, and permission to view the content.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated Will be removed in next major version.
|
|
23
25
|
*/
|
|
24
26
|
async convertContentBody<T = Models.ContentBody>(
|
|
25
27
|
parameters: Parameters.ConvertContentBody,
|
|
@@ -38,6 +40,8 @@ export class ContentBody {
|
|
|
38
40
|
*
|
|
39
41
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
|
|
40
42
|
* 'View' permission for the space, and permission to view the content.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated Will be removed in next major version.
|
|
41
45
|
*/
|
|
42
46
|
async convertContentBody<T = Models.ContentBody>(
|
|
43
47
|
parameters: Parameters.ConvertContentBody,
|
|
@@ -72,7 +76,9 @@ export class ContentBody {
|
|
|
72
76
|
*
|
|
73
77
|
* Supported conversions:
|
|
74
78
|
*
|
|
75
|
-
* -
|
|
79
|
+
* - Atlas_doc_format: editor, export_view, storage, styled_view, view
|
|
80
|
+
* - Storage: atlas_doc_format, editor, export_view, styled_view, view
|
|
81
|
+
* - Editor: storage
|
|
76
82
|
*
|
|
77
83
|
* No other conversions are supported at the moment. Once a conversion is completed, it will be available for 5
|
|
78
84
|
* minutes at the result endpoint.
|
|
@@ -90,7 +96,9 @@ export class ContentBody {
|
|
|
90
96
|
*
|
|
91
97
|
* Supported conversions:
|
|
92
98
|
*
|
|
93
|
-
* -
|
|
99
|
+
* - Atlas_doc_format: editor, export_view, storage, styled_view, view
|
|
100
|
+
* - Storage: atlas_doc_format, editor, export_view, styled_view, view
|
|
101
|
+
* - Editor: storage
|
|
94
102
|
*
|
|
95
103
|
* No other conversions are supported at the moment. Once a conversion is completed, it will be available for 5
|
|
96
104
|
* minutes at the result endpoint.
|
|
@@ -127,8 +135,8 @@ export class ContentBody {
|
|
|
127
135
|
}
|
|
128
136
|
|
|
129
137
|
/**
|
|
130
|
-
* Returns the
|
|
131
|
-
*
|
|
138
|
+
* Returns the asynchronous content body for the corresponding id if the task is complete or returns the status of the
|
|
139
|
+
* task.
|
|
132
140
|
*
|
|
133
141
|
* After the task is completed, the result can be obtained for 5 minutes, or until an identical conversion request is
|
|
134
142
|
* made again, with allowCache query param set to false.
|
|
@@ -141,8 +149,8 @@ export class ContentBody {
|
|
|
141
149
|
callback: Callback<T>,
|
|
142
150
|
): Promise<void>;
|
|
143
151
|
/**
|
|
144
|
-
* Returns the
|
|
145
|
-
*
|
|
152
|
+
* Returns the asynchronous content body for the corresponding id if the task is complete or returns the status of the
|
|
153
|
+
* task.
|
|
146
154
|
*
|
|
147
155
|
* After the task is completed, the result can be obtained for 5 minutes, or until an identical conversion request is
|
|
148
156
|
* made again, with allowCache query param set to false.
|
|
@@ -165,4 +173,102 @@ export class ContentBody {
|
|
|
165
173
|
|
|
166
174
|
return this.client.sendRequest(config, callback);
|
|
167
175
|
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Returns the content body for the corresponding `asyncId` of a completed conversion task. If the task is not
|
|
179
|
+
* completed, the task status is returned instead.
|
|
180
|
+
*
|
|
181
|
+
* Once a conversion task is completed, the result can be obtained for up to 5 minutes, or until an identical
|
|
182
|
+
* conversion request is made again with the `allowCache` parameter set to false.
|
|
183
|
+
*
|
|
184
|
+
* Note that there is a maximum limit of 50 task results per request to this endpoint.
|
|
185
|
+
*
|
|
186
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
187
|
+
* ('Can use' global permission).
|
|
188
|
+
*/
|
|
189
|
+
async bulkAsyncConvertContentBodyResponse<T = Models.AsyncContentBody[]>(
|
|
190
|
+
parameters: Parameters.BulkAsyncConvertContentBodyResponse,
|
|
191
|
+
callback: Callback<T>,
|
|
192
|
+
): Promise<void>;
|
|
193
|
+
/**
|
|
194
|
+
* Returns the content body for the corresponding `asyncId` of a completed conversion task. If the task is not
|
|
195
|
+
* completed, the task status is returned instead.
|
|
196
|
+
*
|
|
197
|
+
* Once a conversion task is completed, the result can be obtained for up to 5 minutes, or until an identical
|
|
198
|
+
* conversion request is made again with the `allowCache` parameter set to false.
|
|
199
|
+
*
|
|
200
|
+
* Note that there is a maximum limit of 50 task results per request to this endpoint.
|
|
201
|
+
*
|
|
202
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
203
|
+
* ('Can use' global permission).
|
|
204
|
+
*/
|
|
205
|
+
async bulkAsyncConvertContentBodyResponse<T = Models.AsyncContentBody[]>(
|
|
206
|
+
parameters: Parameters.BulkAsyncConvertContentBodyResponse,
|
|
207
|
+
callback?: never,
|
|
208
|
+
): Promise<T>;
|
|
209
|
+
async bulkAsyncConvertContentBodyResponse<T = Models.AsyncContentBody[]>(
|
|
210
|
+
parameters: Parameters.BulkAsyncConvertContentBodyResponse,
|
|
211
|
+
callback?: Callback<T>,
|
|
212
|
+
): Promise<void | T> {
|
|
213
|
+
const config: RequestConfig = {
|
|
214
|
+
url: '/api/contentbody/convert/async/bulk/tasks',
|
|
215
|
+
method: 'GET',
|
|
216
|
+
params: {
|
|
217
|
+
ids: parameters.ids,
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
return this.client.sendRequest(config, callback);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Asynchronously converts content bodies from one format to another format in bulk. Use the Content body REST API to
|
|
226
|
+
* get the status of conversion tasks. Note that there is a maximum limit of 10 conversions per request to this
|
|
227
|
+
* endpoint.
|
|
228
|
+
*
|
|
229
|
+
* Supported conversions:
|
|
230
|
+
*
|
|
231
|
+
* - Storage: editor, export_view, styled_view, view
|
|
232
|
+
* - Editor: storage
|
|
233
|
+
*
|
|
234
|
+
* Once a conversion task is completed, it is available for polling for up to 5 minutes.
|
|
235
|
+
*
|
|
236
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
237
|
+
* permission to view the content if the `spaceKeyContext` or `contentIdContext` are present.
|
|
238
|
+
*/
|
|
239
|
+
async bulkAsyncConvertContentBodyRequest<T = Models.AsyncId[]>(
|
|
240
|
+
parameters: Parameters.BulkAsyncConvertContentBodyRequest,
|
|
241
|
+
callback: Callback<T>,
|
|
242
|
+
): Promise<void>;
|
|
243
|
+
/**
|
|
244
|
+
* Asynchronously converts content bodies from one format to another format in bulk. Use the Content body REST API to
|
|
245
|
+
* get the status of conversion tasks. Note that there is a maximum limit of 10 conversions per request to this
|
|
246
|
+
* endpoint.
|
|
247
|
+
*
|
|
248
|
+
* Supported conversions:
|
|
249
|
+
*
|
|
250
|
+
* - Storage: editor, export_view, styled_view, view
|
|
251
|
+
* - Editor: storage
|
|
252
|
+
*
|
|
253
|
+
* Once a conversion task is completed, it is available for polling for up to 5 minutes.
|
|
254
|
+
*
|
|
255
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
256
|
+
* permission to view the content if the `spaceKeyContext` or `contentIdContext` are present.
|
|
257
|
+
*/
|
|
258
|
+
async bulkAsyncConvertContentBodyRequest<T = Models.AsyncId[]>(
|
|
259
|
+
parameters: Parameters.BulkAsyncConvertContentBodyRequest,
|
|
260
|
+
callback?: never,
|
|
261
|
+
): Promise<T>;
|
|
262
|
+
async bulkAsyncConvertContentBodyRequest<T = Models.AsyncId[]>(
|
|
263
|
+
parameters: Parameters.BulkAsyncConvertContentBodyRequest,
|
|
264
|
+
callback?: Callback<T>,
|
|
265
|
+
): Promise<void | T> {
|
|
266
|
+
const config: RequestConfig = {
|
|
267
|
+
url: '/api/contentbody/convert/async/bulk/tasks',
|
|
268
|
+
method: 'POST',
|
|
269
|
+
data: parameters,
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
return this.client.sendRequest(config, callback);
|
|
273
|
+
}
|
|
168
274
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentChildrenAndDescendants {
|
|
@@ -24,6 +24,8 @@ export class ContentChildrenAndDescendants {
|
|
|
24
24
|
*
|
|
25
25
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
26
26
|
* permission to view the content if it is a page.
|
|
27
|
+
*
|
|
28
|
+
* @deprecated Will be removed in next major version.
|
|
27
29
|
*/
|
|
28
30
|
async getContentChildren<T = Models.ContentChildren>(
|
|
29
31
|
parameters: Parameters.GetContentChildren,
|
|
@@ -46,6 +48,8 @@ export class ContentChildrenAndDescendants {
|
|
|
46
48
|
*
|
|
47
49
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
48
50
|
* permission to view the content if it is a page.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated Will be removed in next major version.
|
|
49
53
|
*/
|
|
50
54
|
async getContentChildren<T = Models.ContentChildren>(
|
|
51
55
|
parameters: Parameters.GetContentChildren,
|
|
@@ -61,6 +65,8 @@ export class ContentChildrenAndDescendants {
|
|
|
61
65
|
params: {
|
|
62
66
|
expand: parameters.expand,
|
|
63
67
|
parentVersion: parameters.parentVersion,
|
|
68
|
+
start: parameters.start,
|
|
69
|
+
limit: parameters.limit,
|
|
64
70
|
},
|
|
65
71
|
};
|
|
66
72
|
|
|
@@ -119,6 +125,8 @@ export class ContentChildrenAndDescendants {
|
|
|
119
125
|
*
|
|
120
126
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
121
127
|
* permission to view the content if it is a page.
|
|
128
|
+
*
|
|
129
|
+
* @deprecated Will be removed in next major version.
|
|
122
130
|
*/
|
|
123
131
|
async getContentChildrenByType<T = Models.ContentArray>(
|
|
124
132
|
parameters: Parameters.GetContentChildrenByType,
|
|
@@ -140,6 +148,8 @@ export class ContentChildrenAndDescendants {
|
|
|
140
148
|
*
|
|
141
149
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
142
150
|
* permission to view the content if it is a page.
|
|
151
|
+
*
|
|
152
|
+
* @deprecated Will be removed in next major version.
|
|
143
153
|
*/
|
|
144
154
|
async getContentChildrenByType<T = Models.ContentArray>(
|
|
145
155
|
parameters: Parameters.GetContentChildrenByType,
|
|
@@ -169,7 +179,11 @@ export class ContentChildrenAndDescendants {
|
|
|
169
179
|
*
|
|
170
180
|
* A piece of content has different types of descendants, depending on its type:
|
|
171
181
|
*
|
|
172
|
-
* - `page`: descendant is `page`, `comment`, `attachment`
|
|
182
|
+
* - `page`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
183
|
+
* - `whiteboard`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
184
|
+
* - `database`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
185
|
+
* - `embed`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
186
|
+
* - `folder`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
173
187
|
* - `blogpost`: descendant is `comment`, `attachment`
|
|
174
188
|
* - `attachment`: descendant is `comment`
|
|
175
189
|
* - `comment`: descendant is `attachment`
|
|
@@ -191,7 +205,11 @@ export class ContentChildrenAndDescendants {
|
|
|
191
205
|
*
|
|
192
206
|
* A piece of content has different types of descendants, depending on its type:
|
|
193
207
|
*
|
|
194
|
-
* - `page`: descendant is `page`, `comment`, `attachment`
|
|
208
|
+
* - `page`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
209
|
+
* - `whiteboard`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
210
|
+
* - `database`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
211
|
+
* - `embed`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
212
|
+
* - `folder`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
195
213
|
* - `blogpost`: descendant is `comment`, `attachment`
|
|
196
214
|
* - `attachment`: descendant is `comment`
|
|
197
215
|
* - `comment`: descendant is `attachment`
|
|
@@ -228,13 +246,20 @@ export class ContentChildrenAndDescendants {
|
|
|
228
246
|
*
|
|
229
247
|
* A piece of content has different types of descendants, depending on its type:
|
|
230
248
|
*
|
|
231
|
-
* - `page`: descendant is `page`, `comment`, `attachment`
|
|
249
|
+
* - `page`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
250
|
+
* - `whiteboard`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
251
|
+
* - `database`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
252
|
+
* - `embed`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
253
|
+
* - `folder`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
232
254
|
* - `blogpost`: descendant is `comment`, `attachment`
|
|
233
255
|
* - `attachment`: descendant is `comment`
|
|
234
256
|
* - `comment`: descendant is `attachment`
|
|
235
257
|
*
|
|
236
258
|
* Custom content types that are provided by apps can also be returned.
|
|
237
259
|
*
|
|
260
|
+
* If the expand query parameter is used with the `body.export_view` and/or `body.styled_view` properties, then the
|
|
261
|
+
* query limit parameter will be restricted to a maximum value of 25.
|
|
262
|
+
*
|
|
238
263
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
239
264
|
* permission to view the content if it is a page.
|
|
240
265
|
*/
|
|
@@ -249,13 +274,20 @@ export class ContentChildrenAndDescendants {
|
|
|
249
274
|
*
|
|
250
275
|
* A piece of content has different types of descendants, depending on its type:
|
|
251
276
|
*
|
|
252
|
-
* - `page`: descendant is `page`, `comment`, `attachment`
|
|
277
|
+
* - `page`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
278
|
+
* - `whiteboard`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
279
|
+
* - `database`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
280
|
+
* - `embed`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
281
|
+
* - `folder`: descendant is `page`, `whiteboard`, `database`, `embed`, `folder`, `comment`, `attachment`
|
|
253
282
|
* - `blogpost`: descendant is `comment`, `attachment`
|
|
254
283
|
* - `attachment`: descendant is `comment`
|
|
255
284
|
* - `comment`: descendant is `attachment`
|
|
256
285
|
*
|
|
257
286
|
* Custom content types that are provided by apps can also be returned.
|
|
258
287
|
*
|
|
288
|
+
* If the expand query parameter is used with the `body.export_view` and/or `body.styled_view` properties, then the
|
|
289
|
+
* query limit parameter will be restricted to a maximum value of 25.
|
|
290
|
+
*
|
|
259
291
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
260
292
|
* permission to view the content if it is a page.
|
|
261
293
|
*/
|
|
@@ -329,6 +361,7 @@ export class ContentChildrenAndDescendants {
|
|
|
329
361
|
*
|
|
330
362
|
* - `space`: page will be copied to the specified space as a root page on the space
|
|
331
363
|
* - `parent_page`: page will be copied as a child of the specified parent page
|
|
364
|
+
* - `parent_content`: page will be copied as a child of the specified parent content
|
|
332
365
|
* - `existing_page`: page will be copied and replace the specified page
|
|
333
366
|
*
|
|
334
367
|
* By default, the following objects are expanded: `space`, `history`, `version`.
|
|
@@ -344,6 +377,7 @@ export class ContentChildrenAndDescendants {
|
|
|
344
377
|
*
|
|
345
378
|
* - `space`: page will be copied to the specified space as a root page on the space
|
|
346
379
|
* - `parent_page`: page will be copied as a child of the specified parent page
|
|
380
|
+
* - `parent_content`: page will be copied as a child of the specified parent content
|
|
347
381
|
* - `existing_page`: page will be copied and replace the specified page
|
|
348
382
|
*
|
|
349
383
|
* By default, the following objects are expanded: `space`, `history`, `version`.
|
|
@@ -4,6 +4,7 @@ import type { Callback } from '../callback';
|
|
|
4
4
|
import type { Client } from '../clients';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
|
+
/** @deprecated Will be removed in next major version. */
|
|
7
8
|
export class ContentComments {
|
|
8
9
|
constructor(private client: Client) {}
|
|
9
10
|
|
|
@@ -12,6 +13,8 @@ export class ContentComments {
|
|
|
12
13
|
*
|
|
13
14
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
14
15
|
* permission to view the content if it is a page.
|
|
16
|
+
*
|
|
17
|
+
* @deprecated Will be removed in next major version.
|
|
15
18
|
*/
|
|
16
19
|
async getContentComments<T = Models.ContentArray>(
|
|
17
20
|
parameters: Parameters.GetContentComments,
|
|
@@ -22,6 +25,8 @@ export class ContentComments {
|
|
|
22
25
|
*
|
|
23
26
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space, and
|
|
24
27
|
* permission to view the content if it is a page.
|
|
28
|
+
*
|
|
29
|
+
* @deprecated Will be removed in next major version.
|
|
25
30
|
*/
|
|
26
31
|
async getContentComments<T = Models.ContentArray>(
|
|
27
32
|
parameters: Parameters.GetContentComments,
|
package/src/api/contentLabels.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentLabels {
|
|
@@ -12,6 +12,8 @@ export class ContentLabels {
|
|
|
12
12
|
*
|
|
13
13
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space and
|
|
14
14
|
* permission to view the content if it is a page.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated Will be removed in next major version.
|
|
15
17
|
*/
|
|
16
18
|
async getLabelsForContent<T = Models.LabelArray>(
|
|
17
19
|
parameters: Parameters.GetLabelsForContent,
|
|
@@ -22,6 +24,8 @@ export class ContentLabels {
|
|
|
22
24
|
*
|
|
23
25
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space and
|
|
24
26
|
* permission to view the content if it is a page.
|
|
27
|
+
*
|
|
28
|
+
* @deprecated Will be removed in next major version.
|
|
25
29
|
*/
|
|
26
30
|
async getLabelsForContent<T = Models.LabelArray>(
|
|
27
31
|
parameters: Parameters.GetLabelsForContent,
|
|
@@ -91,8 +95,9 @@ export class ContentLabels {
|
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
/**
|
|
94
|
-
* Removes a label from a piece of content. This is similar to [Remove
|
|
95
|
-
* content](#api-content-id-label-label-delete) except that the label name is specified via a query
|
|
98
|
+
* Removes a label from a piece of content. Labels can't be deleted from archived content. This is similar to [Remove
|
|
99
|
+
* label from content](#api-content-id-label-label-delete) except that the label name is specified via a query
|
|
100
|
+
* parameter.
|
|
96
101
|
*
|
|
97
102
|
* Use this method if the label name has "/" characters, as [Remove label from content using query
|
|
98
103
|
* parameter](#api-content-id-label-delete) does not accept "/" characters for the label name.
|
|
@@ -104,8 +109,9 @@ export class ContentLabels {
|
|
|
104
109
|
callback: Callback<T>,
|
|
105
110
|
): Promise<void>;
|
|
106
111
|
/**
|
|
107
|
-
* Removes a label from a piece of content. This is similar to [Remove
|
|
108
|
-
* content](#api-content-id-label-label-delete) except that the label name is specified via a query
|
|
112
|
+
* Removes a label from a piece of content. Labels can't be deleted from archived content. This is similar to [Remove
|
|
113
|
+
* label from content](#api-content-id-label-label-delete) except that the label name is specified via a query
|
|
114
|
+
* parameter.
|
|
109
115
|
*
|
|
110
116
|
* Use this method if the label name has "/" characters, as [Remove label from content using query
|
|
111
117
|
* parameter](#api-content-id-label-delete) does not accept "/" characters for the label name.
|
|
@@ -132,8 +138,9 @@ export class ContentLabels {
|
|
|
132
138
|
}
|
|
133
139
|
|
|
134
140
|
/**
|
|
135
|
-
* Removes a label from a piece of content. This is similar to [Remove
|
|
136
|
-
* parameter](#api-content-id-label-delete) except that the label name is specified via
|
|
141
|
+
* Removes a label from a piece of content. Labels can't be deleted from archived content. This is similar to [Remove
|
|
142
|
+
* label from content using query parameter](#api-content-id-label-delete) except that the label name is specified via
|
|
143
|
+
* a path parameter.
|
|
137
144
|
*
|
|
138
145
|
* Use this method if the label name does not have "/" characters, as the path parameter does not accept "/"
|
|
139
146
|
* characters for security reasons. Otherwise, use [Remove label from content using query
|
|
@@ -146,8 +153,9 @@ export class ContentLabels {
|
|
|
146
153
|
callback: Callback<T>,
|
|
147
154
|
): Promise<void>;
|
|
148
155
|
/**
|
|
149
|
-
* Removes a label from a piece of content. This is similar to [Remove
|
|
150
|
-
* parameter](#api-content-id-label-delete) except that the label name is specified via
|
|
156
|
+
* Removes a label from a piece of content. Labels can't be deleted from archived content. This is similar to [Remove
|
|
157
|
+
* label from content using query parameter](#api-content-id-label-delete) except that the label name is specified via
|
|
158
|
+
* a path parameter.
|
|
151
159
|
*
|
|
152
160
|
* Use this method if the label name does not have "/" characters, as the path parameter does not accept "/"
|
|
153
161
|
* characters for security reasons. Otherwise, use [Remove label from content using query
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentMacroBody {
|
|
@@ -16,10 +16,23 @@ export class ContentMacroBody {
|
|
|
16
16
|
* '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
|
|
17
17
|
* only modified by Confluence if there are conflicting IDs.
|
|
18
18
|
*
|
|
19
|
+
* For Forge macros, the value for macro ID is the "local ID" of that particular ADF node. This value can be retrieved
|
|
20
|
+
* either client-side by calling view.getContext() and accessing "localId" on the resulting object, or server-side by
|
|
21
|
+
* examining the "local-id" parameter node inside the "parameters" node.
|
|
22
|
+
*
|
|
23
|
+
* Note that there are other attributes named "local-id", but only this particular one is used to store the macro ID.
|
|
24
|
+
*
|
|
25
|
+
* Example: <ac:adf-node type="extension"> <ac:adf-attribute
|
|
26
|
+
* key="extension-type">com.atlassian.ecosystem</ac:adf-attribute> <ac:adf-attribute key="parameters">
|
|
27
|
+
* <ac:adf-parameter key="local-id">e9c4aa10-73fa-417c-888d-48c719ae4165</ac:adf-parameter> </ac:adf-parameter>
|
|
28
|
+
* </ac:adf-node>
|
|
29
|
+
*
|
|
19
30
|
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
20
31
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
21
32
|
* transparently propagate out to all instances.
|
|
22
33
|
*
|
|
34
|
+
* This backwards compatibility logic does not apply to Forge macros; those can only be retrieved by their ID.
|
|
35
|
+
*
|
|
23
36
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
24
37
|
* macro is in.
|
|
25
38
|
*/
|
|
@@ -36,10 +49,23 @@ export class ContentMacroBody {
|
|
|
36
49
|
* '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
|
|
37
50
|
* only modified by Confluence if there are conflicting IDs.
|
|
38
51
|
*
|
|
52
|
+
* For Forge macros, the value for macro ID is the "local ID" of that particular ADF node. This value can be retrieved
|
|
53
|
+
* either client-side by calling view.getContext() and accessing "localId" on the resulting object, or server-side by
|
|
54
|
+
* examining the "local-id" parameter node inside the "parameters" node.
|
|
55
|
+
*
|
|
56
|
+
* Note that there are other attributes named "local-id", but only this particular one is used to store the macro ID.
|
|
57
|
+
*
|
|
58
|
+
* Example: <ac:adf-node type="extension"> <ac:adf-attribute
|
|
59
|
+
* key="extension-type">com.atlassian.ecosystem</ac:adf-attribute> <ac:adf-attribute key="parameters">
|
|
60
|
+
* <ac:adf-parameter key="local-id">e9c4aa10-73fa-417c-888d-48c719ae4165</ac:adf-parameter> </ac:adf-parameter>
|
|
61
|
+
* </ac:adf-node>
|
|
62
|
+
*
|
|
39
63
|
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
40
64
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
41
65
|
* transparently propagate out to all instances.
|
|
42
66
|
*
|
|
67
|
+
* This backwards compatibility logic does not apply to Forge macros; those can only be retrieved by their ID.
|
|
68
|
+
*
|
|
43
69
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
44
70
|
* macro is in.
|
|
45
71
|
*/
|
|
@@ -68,10 +94,23 @@ export class ContentMacroBody {
|
|
|
68
94
|
* '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
|
|
69
95
|
* only modified by Confluence if there are conflicting IDs.
|
|
70
96
|
*
|
|
97
|
+
* For Forge macros, the value for macro ID is the "local ID" of that particular ADF node. This value can be retrieved
|
|
98
|
+
* either client-side by calling view.getContext() and accessing "localId" on the resulting object, or server-side by
|
|
99
|
+
* examining the "local-id" parameter node inside the "parameters" node.
|
|
100
|
+
*
|
|
101
|
+
* Note that there are other attributes named "local-id", but only this particular one is used to store the macro ID.
|
|
102
|
+
*
|
|
103
|
+
* Example: <ac:adf-node type="extension"> <ac:adf-attribute
|
|
104
|
+
* key="extension-type">com.atlassian.ecosystem</ac:adf-attribute> <ac:adf-attribute key="parameters">
|
|
105
|
+
* <ac:adf-parameter key="local-id">e9c4aa10-73fa-417c-888d-48c719ae4165</ac:adf-parameter> </ac:adf-parameter>
|
|
106
|
+
* </ac:adf-node>
|
|
107
|
+
*
|
|
71
108
|
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
72
109
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
73
110
|
* transparently propagate out to all instances.
|
|
74
111
|
*
|
|
112
|
+
* This backwards compatibility logic does not apply to Forge macros; those can only be retrieved by their ID.
|
|
113
|
+
*
|
|
75
114
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
76
115
|
* macro is in.
|
|
77
116
|
*/
|
|
@@ -88,10 +127,23 @@ export class ContentMacroBody {
|
|
|
88
127
|
* '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
|
|
89
128
|
* only modified by Confluence if there are conflicting IDs.
|
|
90
129
|
*
|
|
130
|
+
* For Forge macros, the value for macro ID is the "local ID" of that particular ADF node. This value can be retrieved
|
|
131
|
+
* either client-side by calling view.getContext() and accessing "localId" on the resulting object, or server-side by
|
|
132
|
+
* examining the "local-id" parameter node inside the "parameters" node.
|
|
133
|
+
*
|
|
134
|
+
* Note that there are other attributes named "local-id", but only this particular one is used to store the macro ID.
|
|
135
|
+
*
|
|
136
|
+
* Example: <ac:adf-node type="extension"> <ac:adf-attribute
|
|
137
|
+
* key="extension-type">com.atlassian.ecosystem</ac:adf-attribute> <ac:adf-attribute key="parameters">
|
|
138
|
+
* <ac:adf-parameter key="local-id">e9c4aa10-73fa-417c-888d-48c719ae4165</ac:adf-parameter> </ac:adf-parameter>
|
|
139
|
+
* </ac:adf-node>
|
|
140
|
+
*
|
|
91
141
|
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
92
142
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
93
143
|
* transparently propagate out to all instances.
|
|
94
144
|
*
|
|
145
|
+
* This backwards compatibility logic does not apply to Forge macros; those can only be retrieved by their ID.
|
|
146
|
+
*
|
|
95
147
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
96
148
|
* macro is in.
|
|
97
149
|
*/
|
|
@@ -125,10 +177,23 @@ export class ContentMacroBody {
|
|
|
125
177
|
* '884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is only
|
|
126
178
|
* modified by Confluence if there are conflicting IDs.
|
|
127
179
|
*
|
|
180
|
+
* For Forge macros, the value for macro ID is the "local ID" of that particular ADF node. This value can be retrieved
|
|
181
|
+
* either client-side by calling view.getContext() and accessing "localId" on the resulting object, or server-side by
|
|
182
|
+
* examining the "local-id" parameter node inside the "parameters" node.
|
|
183
|
+
*
|
|
184
|
+
* Note that there are other attributes named "local-id", but only this particular one is used to store the macro ID.
|
|
185
|
+
*
|
|
186
|
+
* Example: <ac:adf-node type="extension"> <ac:adf-attribute
|
|
187
|
+
* key="extension-type">com.atlassian.ecosystem</ac:adf-attribute> <ac:adf-attribute key="parameters">
|
|
188
|
+
* <ac:adf-parameter key="local-id">e9c4aa10-73fa-417c-888d-48c719ae4165</ac:adf-parameter> </ac:adf-parameter>
|
|
189
|
+
* </ac:adf-node>
|
|
190
|
+
*
|
|
128
191
|
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
129
192
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
130
193
|
* transparently propagate out to all instances.
|
|
131
194
|
*
|
|
195
|
+
* This backwards compatibility logic does not apply to Forge macros; those can only be retrieved by their ID.
|
|
196
|
+
*
|
|
132
197
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
133
198
|
* macro is in.
|
|
134
199
|
*/
|
|
@@ -145,10 +210,23 @@ export class ContentMacroBody {
|
|
|
145
210
|
* '884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is only
|
|
146
211
|
* modified by Confluence if there are conflicting IDs.
|
|
147
212
|
*
|
|
213
|
+
* For Forge macros, the value for macro ID is the "local ID" of that particular ADF node. This value can be retrieved
|
|
214
|
+
* either client-side by calling view.getContext() and accessing "localId" on the resulting object, or server-side by
|
|
215
|
+
* examining the "local-id" parameter node inside the "parameters" node.
|
|
216
|
+
*
|
|
217
|
+
* Note that there are other attributes named "local-id", but only this particular one is used to store the macro ID.
|
|
218
|
+
*
|
|
219
|
+
* Example: <ac:adf-node type="extension"> <ac:adf-attribute
|
|
220
|
+
* key="extension-type">com.atlassian.ecosystem</ac:adf-attribute> <ac:adf-attribute key="parameters">
|
|
221
|
+
* <ac:adf-parameter key="local-id">e9c4aa10-73fa-417c-888d-48c719ae4165</ac:adf-parameter> </ac:adf-parameter>
|
|
222
|
+
* </ac:adf-node>
|
|
223
|
+
*
|
|
148
224
|
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
149
225
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
150
226
|
* transparently propagate out to all instances.
|
|
151
227
|
*
|
|
228
|
+
* This backwards compatibility logic does not apply to Forge macros; those can only be retrieved by their ID.
|
|
229
|
+
*
|
|
152
230
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
153
231
|
* macro is in.
|
|
154
232
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Models from './models';
|
|
2
2
|
import type * as Parameters from './parameters';
|
|
3
|
-
import type { Callback } from '../callback';
|
|
4
3
|
import type { Client } from '../clients';
|
|
4
|
+
import type { Callback } from '../callback';
|
|
5
5
|
import type { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentPermissions {
|