confluence.js 1.5.3 → 1.6.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 +11 -0
- package/README.md +1 -0
- package/out/api/contentBody.d.ts +52 -0
- package/out/api/contentBody.js +26 -0
- package/out/api/contentBody.js.map +1 -1
- package/out/api/contentChildrenAndDescendants.js +2 -1
- package/out/api/contentChildrenAndDescendants.js.map +1 -1
- package/out/api/contentContentState.d.ts +30 -28
- package/out/api/contentContentState.js +2 -0
- package/out/api/contentContentState.js.map +1 -1
- package/out/api/contentMacroBody.d.ts +68 -0
- package/out/api/contentMacroBody.js +29 -0
- package/out/api/contentMacroBody.js.map +1 -1
- package/out/api/contentStates.d.ts +120 -0
- package/out/api/contentStates.js +88 -0
- package/out/api/contentStates.js.map +1 -0
- package/out/api/dynamicModules.js +1 -0
- package/out/api/dynamicModules.js.map +1 -1
- package/out/api/experimental.d.ts +2 -2
- package/out/api/index.d.ts +1 -0
- package/out/api/index.js +1 -0
- package/out/api/index.js.map +1 -1
- package/out/api/models/asyncContentBody.d.ts +30 -0
- package/out/api/models/asyncContentBody.js +3 -0
- package/out/api/models/asyncContentBody.js.map +1 -0
- package/out/api/models/asyncId.d.ts +3 -0
- package/out/api/models/asyncId.js +3 -0
- package/out/api/models/asyncId.js.map +1 -0
- package/out/api/models/contentBodyCreate.d.ts +1 -0
- package/out/api/models/contentStateResponse.d.ts +7 -0
- package/out/api/models/contentStateResponse.js +3 -0
- package/out/api/models/contentStateResponse.js.map +1 -0
- package/out/api/models/contentStateRestInput.d.ts +11 -0
- package/out/api/models/contentStateRestInput.js +3 -0
- package/out/api/models/contentStateRestInput.js.map +1 -0
- package/out/api/models/index.d.ts +16 -12
- package/out/api/models/index.js +16 -12
- package/out/api/models/index.js.map +1 -1
- package/out/api/parameters/asyncConvertContentBodyRequest.d.ts +38 -0
- package/out/api/parameters/asyncConvertContentBodyRequest.js +3 -0
- package/out/api/parameters/asyncConvertContentBodyRequest.js.map +1 -0
- package/out/api/parameters/asyncConvertContentBodyResponse.d.ts +4 -0
- package/out/api/parameters/asyncConvertContentBodyResponse.js +3 -0
- package/out/api/parameters/asyncConvertContentBodyResponse.js.map +1 -0
- package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.d.ts +46 -0
- package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js +3 -0
- package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js.map +1 -0
- package/out/api/parameters/getAndConvertMacroBodyByMacroId.d.ts +34 -0
- package/out/api/parameters/getAndConvertMacroBodyByMacroId.js +3 -0
- package/out/api/parameters/getAndConvertMacroBodyByMacroId.js.map +1 -0
- package/out/api/parameters/getAvailableContentStates.d.ts +4 -2
- package/out/api/parameters/getContentState.d.ts +8 -4
- package/out/api/parameters/getSpaceContentStates.d.ts +4 -0
- package/out/api/parameters/getSpaceContentStates.js +3 -0
- package/out/api/parameters/getSpaceContentStates.js.map +1 -0
- package/out/api/parameters/getUser.d.ts +6 -4
- package/out/api/parameters/index.d.ts +5 -0
- package/out/api/parameters/index.js +5 -0
- package/out/api/parameters/index.js.map +1 -1
- package/out/api/parameters/movePage.d.ts +9 -5
- package/out/api/parameters/removeContentState.d.ts +5 -1
- package/out/api/parameters/setContentState.d.ts +11 -5
- package/out/api/settings.d.ts +2 -2
- package/out/api/space.d.ts +2 -2
- package/out/api/spaceProperties.d.ts +4 -4
- package/out/clients/confluenceClient.d.ts +2 -1
- package/out/clients/confluenceClient.js +1 -0
- package/out/clients/confluenceClient.js.map +1 -1
- package/package.json +2 -2
- package/src/api/contentBody.ts +100 -0
- package/src/api/contentChildrenAndDescendants.ts +3 -1
- package/src/api/contentContentState.ts +30 -28
- package/src/api/contentMacroBody.ts +115 -0
- package/src/api/contentStates.ts +252 -0
- package/src/api/dynamicModules.ts +1 -0
- package/src/api/experimental.ts +2 -2
- package/src/api/index.ts +1 -0
- package/src/api/models/asyncContentBody.ts +31 -0
- package/src/api/models/asyncId.ts +3 -0
- package/src/api/models/contentBodyCreate.ts +1 -0
- package/src/api/models/contentStateResponse.ts +8 -0
- package/src/api/models/contentStateRestInput.ts +11 -0
- package/src/api/models/index.ts +16 -12
- package/src/api/parameters/asyncConvertContentBodyRequest.ts +81 -0
- package/src/api/parameters/asyncConvertContentBodyResponse.ts +4 -0
- package/src/api/parameters/getAndAsyncConvertMacroBodyByMacroId.ts +88 -0
- package/src/api/parameters/getAndConvertMacroBodyByMacroId.ts +104 -0
- package/src/api/parameters/getAvailableContentStates.ts +5 -2
- package/src/api/parameters/getContentState.ts +9 -4
- package/src/api/parameters/getSpaceContentStates.ts +4 -0
- package/src/api/parameters/getUser.ts +14 -4
- package/src/api/parameters/index.ts +5 -0
- package/src/api/parameters/movePage.ts +9 -5
- package/src/api/parameters/removeContentState.ts +6 -1
- package/src/api/parameters/setContentState.ts +13 -5
- package/src/api/settings.ts +2 -2
- package/src/api/space.ts +3 -3
- package/src/api/spaceProperties.ts +4 -4
- package/src/clients/confluenceClient.ts +2 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import * as Models from './models';
|
|
2
|
+
import * as Parameters from './parameters';
|
|
3
|
+
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
|
+
import { RequestConfig } from '../requestConfig';
|
|
6
|
+
|
|
7
|
+
export class ContentStates {
|
|
8
|
+
constructor(private client: Client) {}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Gets the current content state of the draft or current version of content. To specify the draft version, set the
|
|
12
|
+
* parameter status to draft, otherwise archived or current will get the relevant published state.
|
|
13
|
+
*
|
|
14
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.
|
|
15
|
+
*/
|
|
16
|
+
async getContentState<T = Models.ContentStateResponse>(
|
|
17
|
+
parameters: Parameters.GetContentState,
|
|
18
|
+
callback: Callback<T>
|
|
19
|
+
): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets the current content state of the draft or current version of content. To specify the draft version, set the
|
|
22
|
+
* parameter status to draft, otherwise archived or current will get the relevant published state.
|
|
23
|
+
*
|
|
24
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.
|
|
25
|
+
*/
|
|
26
|
+
async getContentState<T = Models.ContentStateResponse>(
|
|
27
|
+
parameters: Parameters.GetContentState,
|
|
28
|
+
callback?: never
|
|
29
|
+
): Promise<T>;
|
|
30
|
+
async getContentState<T = Models.ContentStateResponse>(
|
|
31
|
+
parameters: Parameters.GetContentState,
|
|
32
|
+
callback?: Callback<T>,
|
|
33
|
+
): Promise<void | T> {
|
|
34
|
+
const config: RequestConfig = {
|
|
35
|
+
url: `/api/content/${parameters.id}/state`,
|
|
36
|
+
method: 'GET',
|
|
37
|
+
params: {
|
|
38
|
+
status: parameters.status,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Sets the content state of the content specified and creates a new version (publishes the content without changing
|
|
47
|
+
* the body) of the content with the new state.
|
|
48
|
+
*
|
|
49
|
+
* You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id
|
|
50
|
+
* will be used. If the name and color passed in already exist under the current user's existing custom states, the
|
|
51
|
+
* existing state will be reused. If custom states are disabled in the space of the content (which can be determined
|
|
52
|
+
* by getting the content state space settings of the content's space) then this set will fail.
|
|
53
|
+
*
|
|
54
|
+
* You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is
|
|
55
|
+
* required in the body of this request.
|
|
56
|
+
*
|
|
57
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
58
|
+
*/
|
|
59
|
+
async setContentState<T = Models.ContentStateResponse>(
|
|
60
|
+
parameters: Parameters.SetContentState,
|
|
61
|
+
callback: Callback<T>
|
|
62
|
+
): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Sets the content state of the content specified and creates a new version (publishes the content without changing
|
|
65
|
+
* the body) of the content with the new state.
|
|
66
|
+
*
|
|
67
|
+
* You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id
|
|
68
|
+
* will be used. If the name and color passed in already exist under the current user's existing custom states, the
|
|
69
|
+
* existing state will be reused. If custom states are disabled in the space of the content (which can be determined
|
|
70
|
+
* by getting the content state space settings of the content's space) then this set will fail.
|
|
71
|
+
*
|
|
72
|
+
* You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is
|
|
73
|
+
* required in the body of this request.
|
|
74
|
+
*
|
|
75
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
76
|
+
*/
|
|
77
|
+
async setContentState<T = Models.ContentStateResponse>(
|
|
78
|
+
parameters: Parameters.SetContentState,
|
|
79
|
+
callback?: never
|
|
80
|
+
): Promise<T>;
|
|
81
|
+
async setContentState<T = Models.ContentStateResponse>(
|
|
82
|
+
parameters: Parameters.SetContentState,
|
|
83
|
+
callback?: Callback<T>,
|
|
84
|
+
): Promise<void | T> {
|
|
85
|
+
const config: RequestConfig = {
|
|
86
|
+
url: `/api/content/${parameters.id}/state`,
|
|
87
|
+
method: 'PUT',
|
|
88
|
+
params: {
|
|
89
|
+
status: parameters.status,
|
|
90
|
+
},
|
|
91
|
+
data: {
|
|
92
|
+
name: parameters.name,
|
|
93
|
+
color: parameters.color,
|
|
94
|
+
id: parameters.stateId,
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
return this.client.sendRequest(config, callback);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Removes the content state of the content specified and creates a new version (publishes the content without
|
|
103
|
+
* changing the body) of the content with the new status.
|
|
104
|
+
*
|
|
105
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
106
|
+
*/
|
|
107
|
+
async removeContentState<T = Models.ContentStateResponse>(
|
|
108
|
+
parameters: Parameters.RemoveContentState,
|
|
109
|
+
callback: Callback<T>
|
|
110
|
+
): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Removes the content state of the content specified and creates a new version (publishes the content without
|
|
113
|
+
* changing the body) of the content with the new status.
|
|
114
|
+
*
|
|
115
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
116
|
+
*/
|
|
117
|
+
async removeContentState<T = Models.ContentStateResponse>(
|
|
118
|
+
parameters: Parameters.RemoveContentState,
|
|
119
|
+
callback?: never
|
|
120
|
+
): Promise<T>;
|
|
121
|
+
async removeContentState<T = Models.ContentStateResponse>(
|
|
122
|
+
parameters: Parameters.RemoveContentState,
|
|
123
|
+
callback?: Callback<T>,
|
|
124
|
+
): Promise<void | T> {
|
|
125
|
+
const config: RequestConfig = {
|
|
126
|
+
url: `/api/content/${parameters.id}/state`,
|
|
127
|
+
method: 'DELETE',
|
|
128
|
+
params: {
|
|
129
|
+
status: parameters.status,
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
return this.client.sendRequest(config, callback);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Gets content states that are available for the content to be set as. Will return all enabled Space Content States.
|
|
138
|
+
* Will only return most the 3 most recently published custom content states to match UI editor list. To get all
|
|
139
|
+
* custom content states, use the /content-states endpoint.
|
|
140
|
+
*
|
|
141
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
142
|
+
*/
|
|
143
|
+
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
144
|
+
parameters: Parameters.GetAvailableContentStates,
|
|
145
|
+
callback: Callback<T>
|
|
146
|
+
): Promise<void>;
|
|
147
|
+
/**
|
|
148
|
+
* Gets content states that are available for the content to be set as. Will return all enabled Space Content States.
|
|
149
|
+
* Will only return most the 3 most recently published custom content states to match UI editor list. To get all
|
|
150
|
+
* custom content states, use the /content-states endpoint.
|
|
151
|
+
*
|
|
152
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
153
|
+
*/
|
|
154
|
+
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
155
|
+
parameters: Parameters.GetAvailableContentStates,
|
|
156
|
+
callback?: never
|
|
157
|
+
): Promise<T>;
|
|
158
|
+
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
159
|
+
parameters: Parameters.GetAvailableContentStates,
|
|
160
|
+
callback?: Callback<T>,
|
|
161
|
+
): Promise<void | T> {
|
|
162
|
+
const config: RequestConfig = {
|
|
163
|
+
url: `/api/content/${parameters.id}/state/available`,
|
|
164
|
+
method: 'GET',
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
return this.client.sendRequest(config, callback);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Get custom content states that authenticated user has created.
|
|
172
|
+
*
|
|
173
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.
|
|
174
|
+
*/
|
|
175
|
+
async getCustomContentStates<T = Models.ContentState[]>(callback: Callback<T>): Promise<void>;
|
|
176
|
+
/**
|
|
177
|
+
* Get custom content states that authenticated user has created.
|
|
178
|
+
*
|
|
179
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.
|
|
180
|
+
*/
|
|
181
|
+
async getCustomContentStates<T = Models.ContentState[]>(callback?: never): Promise<T>;
|
|
182
|
+
async getCustomContentStates<T = Models.ContentState[]>(callback?: Callback<T>): Promise<void | T> {
|
|
183
|
+
const config: RequestConfig = {
|
|
184
|
+
url: '/api/content-states',
|
|
185
|
+
method: 'GET',
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
return this.client.sendRequest(config, callback);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Get content states that are suggested in the space.
|
|
193
|
+
*
|
|
194
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission
|
|
195
|
+
*/
|
|
196
|
+
async getSpaceContentStates<T = Models.ContentState[]>(
|
|
197
|
+
parameters: Parameters.GetSpaceContentStates,
|
|
198
|
+
callback: Callback<T>
|
|
199
|
+
): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Get content states that are suggested in the space.
|
|
202
|
+
*
|
|
203
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission
|
|
204
|
+
*/
|
|
205
|
+
async getSpaceContentStates<T = Models.ContentState[]>(
|
|
206
|
+
parameters: Parameters.GetSpaceContentStates,
|
|
207
|
+
callback?: never
|
|
208
|
+
): Promise<T>;
|
|
209
|
+
async getSpaceContentStates<T = Models.ContentState[]>(
|
|
210
|
+
parameters: Parameters.GetSpaceContentStates,
|
|
211
|
+
callback?: Callback<T>,
|
|
212
|
+
): Promise<void | T> {
|
|
213
|
+
const config: RequestConfig = {
|
|
214
|
+
url: `/api/space/${parameters.spaceKey}/state`,
|
|
215
|
+
method: 'GET',
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
return this.client.sendRequest(config, callback);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Get object describing whether content states are allowed at all, if custom content states or space content states
|
|
223
|
+
* are restricted, and a list of space content states allowed for the space if they are not restricted.
|
|
224
|
+
*
|
|
225
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission
|
|
226
|
+
*/
|
|
227
|
+
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
228
|
+
parameters: Parameters.GetContentStateSettings,
|
|
229
|
+
callback: Callback<T>
|
|
230
|
+
): Promise<void>;
|
|
231
|
+
/**
|
|
232
|
+
* Get object describing whether content states are allowed at all, if custom content states or space content states
|
|
233
|
+
* are restricted, and a list of space content states allowed for the space if they are not restricted.
|
|
234
|
+
*
|
|
235
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission
|
|
236
|
+
*/
|
|
237
|
+
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
238
|
+
parameters: Parameters.GetContentStateSettings,
|
|
239
|
+
callback?: never
|
|
240
|
+
): Promise<T>;
|
|
241
|
+
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
242
|
+
parameters: Parameters.GetContentStateSettings,
|
|
243
|
+
callback?: Callback<T>,
|
|
244
|
+
): Promise<void | T> {
|
|
245
|
+
const config: RequestConfig = {
|
|
246
|
+
url: `/api/space/${parameters.spaceKey}/state/settings`,
|
|
247
|
+
method: 'GET',
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
return this.client.sendRequest(config, callback);
|
|
251
|
+
}
|
|
252
|
+
}
|
package/src/api/experimental.ts
CHANGED
|
@@ -319,9 +319,9 @@ export class Experimental {
|
|
|
319
319
|
return this.client.sendRequest(config, callback);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
/** Get the total number of distinct viewers a piece of content has. */
|
|
322
|
+
/** @deprecated Get the total number of distinct viewers a piece of content has. */
|
|
323
323
|
async getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback: Callback<T>): Promise<void>;
|
|
324
|
-
/** Get the total number of distinct viewers a piece of content has. */
|
|
324
|
+
/** @deprecated Get the total number of distinct viewers a piece of content has. */
|
|
325
325
|
async getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback?: never): Promise<T>;
|
|
326
326
|
async getViewers<T = Models.GetViewers>(
|
|
327
327
|
parameters: Parameters.GetViewers,
|
package/src/api/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './contentMacroBody';
|
|
|
11
11
|
export * from './contentPermissions';
|
|
12
12
|
export * from './contentProperties';
|
|
13
13
|
export * from './contentRestrictions';
|
|
14
|
+
export * from './contentStates';
|
|
14
15
|
export * from './contentVersions';
|
|
15
16
|
export * from './contentWatches';
|
|
16
17
|
export * from './dynamicModules';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EmbeddedContent } from './embeddedContent';
|
|
2
|
+
import { GenericLinks } from './genericLinks';
|
|
3
|
+
import { WebResourceDependencies } from './webResourceDependencies';
|
|
4
|
+
|
|
5
|
+
export interface AsyncContentBody {
|
|
6
|
+
value?: string;
|
|
7
|
+
representation?: string;
|
|
8
|
+
renderTaskId?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Rerunning is reserved for when the job is working, but there is a previous run's value in the cache. You may
|
|
12
|
+
* choose to continue polling, or use the cached value.
|
|
13
|
+
*/
|
|
14
|
+
status?: string;
|
|
15
|
+
embeddedContent?: EmbeddedContent[];
|
|
16
|
+
webresource?: WebResourceDependencies;
|
|
17
|
+
mediaToken?: {
|
|
18
|
+
collectionIds?: string[];
|
|
19
|
+
contentId?: string;
|
|
20
|
+
expiryDateTime?: string;
|
|
21
|
+
fileIds?: string[];
|
|
22
|
+
token?: string;
|
|
23
|
+
};
|
|
24
|
+
Expandable?: {
|
|
25
|
+
content?: string;
|
|
26
|
+
embeddedContent?: string;
|
|
27
|
+
webresource?: string;
|
|
28
|
+
mediaToken?: string;
|
|
29
|
+
};
|
|
30
|
+
Links?: GenericLinks;
|
|
31
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ContentStateRestInput {
|
|
2
|
+
/** Name of content state. Maximum 20 characters. */
|
|
3
|
+
name?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Color of state. Must be in 6 digit hex form (#FFFFFF). The default colors offered in the UI are: #ff7452 (red),
|
|
6
|
+
* #2684ff (blue), #ffc400 (yellow), #57d9a3 (green), and #8777d9 (purple)
|
|
7
|
+
*/
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Id of state. This can be 0,1, or 2 if you wish to specify a default space state. */
|
|
10
|
+
stateId?: string;
|
|
11
|
+
}
|
package/src/api/models/index.ts
CHANGED
|
@@ -4,14 +4,17 @@ export * from './accountIdEmailRecordArray';
|
|
|
4
4
|
export * from './addContentRestriction';
|
|
5
5
|
export * from './addContentRestrictionUpdateArray';
|
|
6
6
|
export * from './affectedObject';
|
|
7
|
+
export * from './appDescriptor';
|
|
8
|
+
export * from './asyncContentBody';
|
|
9
|
+
export * from './asyncId';
|
|
10
|
+
export * from './attachment';
|
|
7
11
|
export * from './attachmentContainer';
|
|
12
|
+
export * from './attachmentMetadata';
|
|
8
13
|
export * from './attachmentUpdate';
|
|
9
14
|
export * from './auditRecord';
|
|
10
15
|
export * from './auditRecordArray';
|
|
11
16
|
export * from './auditRecordCreate';
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './attachment';
|
|
14
|
-
export * from './attachmentMetadata';
|
|
17
|
+
export * from './availableContentStates';
|
|
15
18
|
export * from './blueprintTemplate';
|
|
16
19
|
export * from './blueprintTemplateArray';
|
|
17
20
|
export * from './breadcrumb';
|
|
@@ -51,6 +54,11 @@ export * from './contentRestriction';
|
|
|
51
54
|
export * from './contentRestrictionArray';
|
|
52
55
|
export * from './contentRestrictionUpdate';
|
|
53
56
|
export * from './contentRestrictionUpdateArray';
|
|
57
|
+
export * from './contentState';
|
|
58
|
+
export * from './contentStateContainer';
|
|
59
|
+
export * from './contentStateResponse';
|
|
60
|
+
export * from './contentStateRestInput';
|
|
61
|
+
export * from './contentStateSettings';
|
|
54
62
|
export * from './contentTemplate';
|
|
55
63
|
export * from './contentTemplateArray';
|
|
56
64
|
export * from './contentTemplateBodyCreate';
|
|
@@ -87,16 +95,9 @@ export * from './labelCreateArray';
|
|
|
87
95
|
export * from './labelDetails';
|
|
88
96
|
export * from './labeledContent';
|
|
89
97
|
export * from './labeledContentPageResponse';
|
|
90
|
-
export * from './contentStateSettings';
|
|
91
98
|
export * from './labeledContentType';
|
|
99
|
+
export * from './lifecycle';
|
|
92
100
|
export * from './longTask';
|
|
93
|
-
export * from './contentState';
|
|
94
|
-
export * from './userPropertyCreate';
|
|
95
|
-
export * from './userPropertyUpdate';
|
|
96
|
-
export * from './contentStateContainer';
|
|
97
|
-
export * from './availableContentStates';
|
|
98
|
-
export * from './userPropertyKeyArray';
|
|
99
|
-
export * from './userProperty';
|
|
100
101
|
export * from './longTaskStatus';
|
|
101
102
|
export * from './longTaskStatusArray';
|
|
102
103
|
export * from './longTaskStatusWithLinks';
|
|
@@ -106,7 +107,6 @@ export * from './lookAndFeelSettings';
|
|
|
106
107
|
export * from './lookAndFeelUpdated';
|
|
107
108
|
export * from './macroInstance';
|
|
108
109
|
export * from './menusLookAndFeel';
|
|
109
|
-
export * from './lifecycle';
|
|
110
110
|
export * from './message';
|
|
111
111
|
export * from './migratedUser';
|
|
112
112
|
export * from './migratedUserArray';
|
|
@@ -162,6 +162,10 @@ export * from './userAnonymous';
|
|
|
162
162
|
export * from './userArray';
|
|
163
163
|
export * from './userArrayWithLinks';
|
|
164
164
|
export * from './userDetails';
|
|
165
|
+
export * from './userProperty';
|
|
166
|
+
export * from './userPropertyCreate';
|
|
167
|
+
export * from './userPropertyKeyArray';
|
|
168
|
+
export * from './userPropertyUpdate';
|
|
165
169
|
export * from './usersUserKeys';
|
|
166
170
|
export * from './userWatch';
|
|
167
171
|
export * from './version';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ContentBodyCreate } from '../models';
|
|
2
|
+
|
|
3
|
+
export interface AsyncConvertContentBodyRequest extends ContentBodyCreate {
|
|
4
|
+
/** The name of the target format for the content body. */
|
|
5
|
+
to: string;
|
|
6
|
+
/**
|
|
7
|
+
* The space key used for resolving embedded content (page includes, files, and links) in the content body. For
|
|
8
|
+
* example, if the source content contains the link `<ac:link><ri:page ri:content-title="Example page" /><ac:link>`
|
|
9
|
+
* and the `spaceKeyContext=TEST` parameter is provided, then the link will be converted to a link to the "Example
|
|
10
|
+
* page" page in the "TEST" space.
|
|
11
|
+
*/
|
|
12
|
+
spaceKeyContext?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The content ID used to find the space for resolving embedded content (page includes, files, and links) in the
|
|
15
|
+
* content body. For example, if the source content contains the link `<ac:link><ri:page ri:content-title="Example
|
|
16
|
+
* page" /><ac:link>` and the `contentIdContext=123` parameter is provided, then the link will be converted to a link
|
|
17
|
+
* to the "Example page" page in the same space that has the content with ID=123. Note, `spaceKeyContext` will be
|
|
18
|
+
* ignored if this parameter is provided.
|
|
19
|
+
*/
|
|
20
|
+
contentIdContext?: string;
|
|
21
|
+
/**
|
|
22
|
+
* If this field is false, the cache will erase its current value and begin a new conversion. If this field is true,
|
|
23
|
+
* the cache will not erase its current value, and will set the status of the async conversion to RERUNNING. Once the
|
|
24
|
+
* data is updated, the status will change to COMPLETED. Large macros that take long to convert, and whose data need
|
|
25
|
+
* not immediately up to date (same as previous conversion's result within last 5 minutes) should set this fields to
|
|
26
|
+
* true. Cache values are stored per user per content body and expansions.
|
|
27
|
+
*/
|
|
28
|
+
allowCache?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Mode used for rendering embedded content, like attachments.
|
|
31
|
+
*
|
|
32
|
+
* - `current` renders the embedded content using the latest version.
|
|
33
|
+
* - `version-at-save` renders the embedded content using the version at
|
|
34
|
+
* the time of save.
|
|
35
|
+
*/
|
|
36
|
+
embeddedContentRender?: string;
|
|
37
|
+
/** A multi-value parameter indicating which properties of the content to expand and populate. */
|
|
38
|
+
expand?:
|
|
39
|
+
| 'embeddedContent'
|
|
40
|
+
| 'mediaToken'
|
|
41
|
+
| 'webresource.superbatch.metatags'
|
|
42
|
+
| 'webresource.superbatch.tags.all'
|
|
43
|
+
| 'webresource.superbatch.tags.css'
|
|
44
|
+
| 'webresource.superbatch.tags.data'
|
|
45
|
+
| 'webresource.superbatch.tags.js'
|
|
46
|
+
| 'webresource.superbatch.uris.all'
|
|
47
|
+
| 'webresource.superbatch.uris.css'
|
|
48
|
+
| 'webresource.superbatch.uris.data'
|
|
49
|
+
| 'webresource.superbatch.uris.js'
|
|
50
|
+
| 'webresource.tags.all'
|
|
51
|
+
| 'webresource.tags.css'
|
|
52
|
+
| 'webresource.tags.data'
|
|
53
|
+
| 'webresource.tags.js'
|
|
54
|
+
| 'webresource.uris.all'
|
|
55
|
+
| 'webresource.uris.css'
|
|
56
|
+
| 'webresource.uris.data'
|
|
57
|
+
| 'webresource.uris.js'
|
|
58
|
+
| (
|
|
59
|
+
| 'embeddedContent'
|
|
60
|
+
| 'mediaToken'
|
|
61
|
+
| 'webresource.superbatch.metatags'
|
|
62
|
+
| 'webresource.superbatch.tags.all'
|
|
63
|
+
| 'webresource.superbatch.tags.css'
|
|
64
|
+
| 'webresource.superbatch.tags.data'
|
|
65
|
+
| 'webresource.superbatch.tags.js'
|
|
66
|
+
| 'webresource.superbatch.uris.all'
|
|
67
|
+
| 'webresource.superbatch.uris.css'
|
|
68
|
+
| 'webresource.superbatch.uris.data'
|
|
69
|
+
| 'webresource.superbatch.uris.js'
|
|
70
|
+
| 'webresource.tags.all'
|
|
71
|
+
| 'webresource.tags.css'
|
|
72
|
+
| 'webresource.tags.data'
|
|
73
|
+
| 'webresource.tags.js'
|
|
74
|
+
| 'webresource.uris.all'
|
|
75
|
+
| 'webresource.uris.css'
|
|
76
|
+
| 'webresource.uris.data'
|
|
77
|
+
| 'webresource.uris.js'
|
|
78
|
+
)[]
|
|
79
|
+
| string
|
|
80
|
+
| string[];
|
|
81
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export interface GetAndAsyncConvertMacroBodyByMacroId {
|
|
2
|
+
/** The ID for the content that contains the macro. */
|
|
3
|
+
id: string;
|
|
4
|
+
/**
|
|
5
|
+
* The version of the content that contains the macro. Specifying `0` as the `version` will return the macro body for
|
|
6
|
+
* the latest content version.
|
|
7
|
+
*/
|
|
8
|
+
version: number;
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the macro. For apps, this is passed to the macro by the Connect/Forge framework. Otherwise, find the
|
|
11
|
+
* macro ID by querying the desired content and version, then expanding the body in storage format. For example,
|
|
12
|
+
* '/content/196611/version/7?expand=content.body.storage'.
|
|
13
|
+
*/
|
|
14
|
+
macroId: string;
|
|
15
|
+
/**
|
|
16
|
+
* The content representation to return the macro in. Currently, the following conversions are allowed:
|
|
17
|
+
*
|
|
18
|
+
* -`export_view` - `styled_view` - `view`;
|
|
19
|
+
*/
|
|
20
|
+
to: string;
|
|
21
|
+
/**
|
|
22
|
+
* If this field is false, the cache will erase its current value and begin a conversion. If this field is true, the
|
|
23
|
+
* cache will not erase its current value, and will set the status of the result in cache to RERUNNING. Once the data
|
|
24
|
+
* is updated, the status will change to COMPLETED. Large macros that take long to convert, and who want to show
|
|
25
|
+
* intermediate, but potentially stale data, immediately should set this field to true. Cache values are stored per
|
|
26
|
+
* macro per user per content and expansions.
|
|
27
|
+
*/
|
|
28
|
+
allowCache?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The space key used for resolving embedded content (page includes, files, and links) in the content body. For
|
|
31
|
+
* example, if the source content contains the link `<ac:link><ri:page ri:content-title="Example page" /><ac:link>`
|
|
32
|
+
* and the `spaceKeyContext=TEST` parameter is provided, then the link will be converted to a link to the "Example
|
|
33
|
+
* page" page in the "TEST" space.
|
|
34
|
+
*/
|
|
35
|
+
spaceKeyContext?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Mode used for rendering embedded content, like attachments.
|
|
38
|
+
*
|
|
39
|
+
* - `current` renders the embedded content using the latest version.
|
|
40
|
+
* - `version-at-save` renders the embedded content using the version at
|
|
41
|
+
* the time of save.
|
|
42
|
+
*/
|
|
43
|
+
embeddedContentRender?: string;
|
|
44
|
+
/** A multi-value parameter indicating which properties of the content to expand and populate. */
|
|
45
|
+
expand?:
|
|
46
|
+
| 'embeddedContent'
|
|
47
|
+
| 'mediaToken'
|
|
48
|
+
| 'webresource.superbatch.metatags'
|
|
49
|
+
| 'webresource.superbatch.tags.all'
|
|
50
|
+
| 'webresource.superbatch.tags.css'
|
|
51
|
+
| 'webresource.superbatch.tags.data'
|
|
52
|
+
| 'webresource.superbatch.tags.js'
|
|
53
|
+
| 'webresource.superbatch.uris.all'
|
|
54
|
+
| 'webresource.superbatch.uris.css'
|
|
55
|
+
| 'webresource.superbatch.uris.data'
|
|
56
|
+
| 'webresource.superbatch.uris.js'
|
|
57
|
+
| 'webresource.tags.all'
|
|
58
|
+
| 'webresource.tags.css'
|
|
59
|
+
| 'webresource.tags.data'
|
|
60
|
+
| 'webresource.tags.js'
|
|
61
|
+
| 'webresource.uris.all'
|
|
62
|
+
| 'webresource.uris.css'
|
|
63
|
+
| 'webresource.uris.data'
|
|
64
|
+
| 'webresource.uris.js'
|
|
65
|
+
| (
|
|
66
|
+
| 'embeddedContent'
|
|
67
|
+
| 'mediaToken'
|
|
68
|
+
| 'webresource.superbatch.metatags'
|
|
69
|
+
| 'webresource.superbatch.tags.all'
|
|
70
|
+
| 'webresource.superbatch.tags.css'
|
|
71
|
+
| 'webresource.superbatch.tags.data'
|
|
72
|
+
| 'webresource.superbatch.tags.js'
|
|
73
|
+
| 'webresource.superbatch.uris.all'
|
|
74
|
+
| 'webresource.superbatch.uris.css'
|
|
75
|
+
| 'webresource.superbatch.uris.data'
|
|
76
|
+
| 'webresource.superbatch.uris.js'
|
|
77
|
+
| 'webresource.tags.all'
|
|
78
|
+
| 'webresource.tags.css'
|
|
79
|
+
| 'webresource.tags.data'
|
|
80
|
+
| 'webresource.tags.js'
|
|
81
|
+
| 'webresource.uris.all'
|
|
82
|
+
| 'webresource.uris.css'
|
|
83
|
+
| 'webresource.uris.data'
|
|
84
|
+
| 'webresource.uris.js'
|
|
85
|
+
)[]
|
|
86
|
+
| string
|
|
87
|
+
| string[];
|
|
88
|
+
}
|