confluence.js 1.2.2 → 1.4.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 +18 -0
- package/README.md +15 -57
- package/out/api/analytics.d.ts +16 -0
- package/out/api/analytics.js +34 -0
- package/out/api/audit.d.ts +1 -1
- package/out/api/audit.js +12 -12
- package/out/api/content.d.ts +1 -1
- package/out/api/content.js +20 -20
- package/out/api/contentAttachments.d.ts +3 -3
- package/out/api/contentAttachments.js +13 -12
- package/out/api/contentBody.d.ts +1 -1
- package/out/api/contentBody.js +2 -2
- package/out/api/contentChildrenAndDescendants.d.ts +3 -3
- package/out/api/contentChildrenAndDescendants.js +16 -15
- package/out/api/contentComments.d.ts +1 -1
- package/out/api/contentComments.js +2 -2
- package/out/api/contentContentState.d.ts +58 -0
- package/out/api/contentContentState.js +63 -0
- package/out/api/contentLabels.d.ts +1 -1
- package/out/api/contentLabels.js +8 -8
- package/out/api/contentMacroBody.d.ts +1 -1
- package/out/api/contentMacroBody.js +2 -2
- package/out/api/contentPermissions.d.ts +1 -1
- package/out/api/contentPermissions.js +3 -3
- package/out/api/contentProperties.d.ts +1 -1
- package/out/api/contentProperties.js +12 -12
- package/out/api/contentRestrictions.d.ts +1 -1
- package/out/api/contentRestrictions.js +30 -30
- package/out/api/contentVersions.d.ts +1 -1
- package/out/api/contentVersions.js +8 -8
- package/out/api/contentWatches.d.ts +1 -1
- package/out/api/contentWatches.js +24 -24
- package/out/api/dynamicModules.d.ts +1 -1
- package/out/api/dynamicModules.js +6 -6
- package/out/api/experimental.d.ts +123 -5
- package/out/api/experimental.js +65 -13
- package/out/api/group.d.ts +1 -1
- package/out/api/group.js +35 -32
- package/out/api/index.d.ts +2 -0
- package/out/api/index.js +31 -29
- package/out/api/inlineTasks.d.ts +1 -1
- package/out/api/inlineTasks.js +6 -6
- package/out/api/labelInfo.d.ts +1 -1
- package/out/api/labelInfo.js +2 -2
- package/out/api/longRunningTask.d.ts +1 -1
- package/out/api/longRunningTask.js +4 -4
- package/out/api/models/availableContentStates.d.ts +6 -0
- package/out/api/models/availableContentStates.js +2 -0
- package/out/api/models/blueprintTemplate.d.ts +1 -1
- package/out/api/models/bulkUserLookup.d.ts +2 -2
- package/out/api/models/content.d.ts +6 -6
- package/out/api/models/contentHistory.d.ts +2 -2
- package/out/api/models/contentLookAndFeel.d.ts +1 -1
- package/out/api/models/contentMetadata.d.ts +1 -1
- package/out/api/models/contentRestriction.d.ts +2 -2
- package/out/api/models/contentState.d.ts +8 -0
- package/out/api/models/contentState.js +2 -0
- package/out/api/models/contentStateContainer.d.ts +5 -0
- package/out/api/models/contentStateContainer.js +2 -0
- package/out/api/models/contentStateSettings.d.ts +11 -0
- package/out/api/models/contentStateSettings.js +2 -0
- package/out/api/models/contentTemplate.d.ts +1 -1
- package/out/api/models/copyPageHierarchyRequest.d.ts +2 -0
- package/out/api/models/copyPageRequest.d.ts +1 -1
- package/out/api/models/horizontalHeaderLookAndFeel.d.ts +1 -1
- package/out/api/models/index.d.ts +8 -0
- package/out/api/models/index.js +166 -158
- package/out/api/models/labelArray.d.ts +1 -1
- package/out/api/models/longTask.d.ts +8 -0
- package/out/api/models/longTask.js +2 -0
- package/out/api/models/longTaskStatusArray.d.ts +1 -1
- package/out/api/models/lookAndFeel.d.ts +2 -2
- package/out/api/models/migratedUserArray.d.ts +1 -1
- package/out/api/models/relation.d.ts +1 -1
- package/out/api/models/relationArray.d.ts +1 -1
- package/out/api/models/searchPageResponseSearchResult.d.ts +1 -1
- package/out/api/models/searchResult.d.ts +2 -2
- package/out/api/models/space.d.ts +4 -4
- package/out/api/models/spaceArray.d.ts +1 -1
- package/out/api/models/spacePermission.d.ts +1 -1
- package/out/api/models/spacePermissionCreate.d.ts +1 -1
- package/out/api/models/spacePermissionRequest.d.ts +1 -1
- package/out/api/models/spacePermissionV2.d.ts +1 -1
- package/out/api/models/spacePropertyArray.d.ts +1 -1
- package/out/api/models/spaceWatchArray.d.ts +1 -1
- package/out/api/models/themeArray.d.ts +1 -1
- package/out/api/models/user.d.ts +2 -2
- package/out/api/models/userAnonymous.d.ts +1 -1
- package/out/api/models/userProperty.d.ts +13 -0
- package/out/api/models/userProperty.js +2 -0
- package/out/api/models/userPropertyCreate.d.ts +4 -0
- package/out/api/models/userPropertyCreate.js +2 -0
- package/out/api/models/userPropertyKeyArray.d.ts +10 -0
- package/out/api/models/userPropertyKeyArray.js +2 -0
- package/out/api/models/userPropertyUpdate.d.ts +4 -0
- package/out/api/models/userPropertyUpdate.js +2 -0
- package/out/api/models/usersUserKeys.d.ts +1 -1
- package/out/api/models/version.d.ts +2 -2
- package/out/api/models/versionArray.d.ts +1 -1
- package/out/api/models/watchArray.d.ts +1 -1
- package/out/api/parameters/createUserProperty.d.ts +10 -0
- package/out/api/parameters/createUserProperty.js +2 -0
- package/out/api/parameters/deletePageTree.d.ts +4 -0
- package/out/api/parameters/deletePageTree.js +2 -0
- package/out/api/parameters/deleteUserProperty.d.ts +9 -0
- package/out/api/parameters/deleteUserProperty.js +2 -0
- package/out/api/parameters/getAvailableContentStates.d.ts +4 -0
- package/out/api/parameters/getAvailableContentStates.js +2 -0
- package/out/api/parameters/getContentState.d.ts +6 -0
- package/out/api/parameters/getContentState.js +2 -0
- package/out/api/parameters/getContentStateLastUpdated.d.ts +4 -0
- package/out/api/parameters/getContentStateLastUpdated.js +2 -0
- package/out/api/parameters/getContentStateSettings.d.ts +4 -0
- package/out/api/parameters/getContentStateSettings.js +2 -0
- package/out/api/parameters/getGroupMembersByGroupId.d.ts +5 -0
- package/out/api/parameters/getMembersByQueryParam.d.ts +5 -0
- package/out/api/parameters/getSpaces.d.ts +1 -1
- package/out/api/parameters/getUserProperties.d.ts +8 -0
- package/out/api/parameters/getUserProperties.js +2 -0
- package/out/api/parameters/getUserProperty.d.ts +6 -0
- package/out/api/parameters/getUserProperty.js +2 -0
- package/out/api/parameters/index.d.ts +12 -0
- package/out/api/parameters/index.js +170 -158
- package/out/api/parameters/removeContentState.d.ts +4 -0
- package/out/api/parameters/removeContentState.js +2 -0
- package/out/api/parameters/searchGroups.d.ts +5 -0
- package/out/api/parameters/setContentState.d.ts +8 -0
- package/out/api/parameters/setContentState.js +2 -0
- package/out/api/parameters/updateUserProperty.d.ts +10 -0
- package/out/api/parameters/updateUserProperty.js +2 -0
- package/out/api/relation.d.ts +1 -1
- package/out/api/relation.js +12 -12
- package/out/api/search.d.ts +3 -3
- package/out/api/search.js +7 -6
- package/out/api/settings.d.ts +5 -1
- package/out/api/settings.js +21 -12
- package/out/api/space.d.ts +1 -1
- package/out/api/space.js +21 -17
- package/out/api/spacePermissions.d.ts +1 -1
- package/out/api/spacePermissions.js +7 -7
- package/out/api/spaceProperties.d.ts +1 -1
- package/out/api/spaceProperties.js +12 -12
- package/out/api/spaceSettings.d.ts +1 -1
- package/out/api/spaceSettings.js +4 -4
- package/out/api/template.d.ts +1 -1
- package/out/api/template.js +12 -12
- package/out/api/themes.d.ts +1 -1
- package/out/api/themes.js +12 -12
- package/out/api/users.d.ts +3 -3
- package/out/api/users.js +16 -16
- package/out/clients/baseClient.d.ts +3 -6
- package/out/clients/baseClient.js +16 -38
- package/out/clients/client.d.ts +2 -3
- package/out/clients/confluenceClient.d.ts +3 -1
- package/out/clients/confluenceClient.js +2 -0
- package/out/clients/index.js +4 -4
- package/out/config.d.ts +8 -4
- package/out/index.js +4 -4
- package/out/paramSerializer.d.ts +1 -0
- package/out/paramSerializer.js +16 -0
- package/out/server/audit.d.ts +1 -1
- package/out/server/audit.js +6 -6
- package/out/server/content.d.ts +1 -1
- package/out/server/content.js +32 -32
- package/out/server/contentBody.d.ts +1 -1
- package/out/server/contentBody.js +1 -1
- package/out/server/group.d.ts +1 -1
- package/out/server/group.js +3 -3
- package/out/server/index.js +8 -8
- package/out/server/longTask.d.ts +1 -1
- package/out/server/longTask.js +2 -2
- package/out/server/models/content.d.ts +6 -6
- package/out/server/models/contentChildren.d.ts +1 -1
- package/out/server/models/contentHistory.d.ts +2 -2
- package/out/server/models/contentLookAndFeel.d.ts +1 -1
- package/out/server/models/contentRestriction.d.ts +2 -2
- package/out/server/models/index.js +60 -60
- package/out/server/models/lookAndFeel.d.ts +2 -2
- package/out/server/models/searchResult.d.ts +2 -2
- package/out/server/models/space.d.ts +3 -3
- package/out/server/models/spacePermission.d.ts +1 -1
- package/out/server/models/user.d.ts +1 -1
- package/out/server/models/version.d.ts +1 -1
- package/out/server/parameters/index.js +64 -64
- package/out/server/search.d.ts +1 -1
- package/out/server/search.js +1 -1
- package/out/server/space.d.ts +1 -1
- package/out/server/space.js +14 -14
- package/out/server/user.d.ts +1 -1
- package/out/server/user.js +10 -10
- package/out/services/authenticationService/authenticationService.js +4 -1
- package/out/services/authenticationService/authentications/createPATAuthenticationToken.d.ts +2 -0
- package/out/services/authenticationService/authentications/createPATAuthenticationToken.js +10 -0
- package/out/services/authenticationService/authentications/index.d.ts +1 -0
- package/out/services/authenticationService/authentications/index.js +4 -3
- package/out/services/authenticationService/index.js +1 -1
- package/package.json +30 -27
- package/src/api/analytics.ts +44 -0
- package/src/api/audit.ts +7 -7
- package/src/api/content.ts +11 -11
- package/src/api/contentAttachments.ts +11 -10
- package/src/api/contentBody.ts +2 -2
- package/src/api/contentChildrenAndDescendants.ts +15 -11
- package/src/api/contentComments.ts +2 -2
- package/src/api/contentContentState.ts +157 -0
- package/src/api/contentLabels.ts +5 -5
- package/src/api/contentMacroBody.ts +2 -2
- package/src/api/contentPermissions.ts +2 -2
- package/src/api/contentProperties.ts +7 -7
- package/src/api/contentRestrictions.ts +16 -16
- package/src/api/contentVersions.ts +5 -5
- package/src/api/contentWatches.ts +13 -13
- package/src/api/dynamicModules.ts +4 -4
- package/src/api/experimental.ts +216 -13
- package/src/api/group.ts +20 -16
- package/src/api/index.ts +2 -0
- package/src/api/inlineTasks.ts +4 -4
- package/src/api/labelInfo.ts +2 -2
- package/src/api/longRunningTask.ts +3 -3
- package/src/api/models/availableContentStates.ts +7 -0
- package/src/api/models/blueprintTemplate.ts +1 -1
- package/src/api/models/bulkUserLookup.ts +2 -2
- package/src/api/models/content.ts +6 -6
- package/src/api/models/contentHistory.ts +2 -2
- package/src/api/models/contentLookAndFeel.ts +1 -1
- package/src/api/models/contentMetadata.ts +1 -1
- package/src/api/models/contentRestriction.ts +2 -2
- package/src/api/models/contentState.ts +8 -0
- package/src/api/models/contentStateContainer.ts +6 -0
- package/src/api/models/contentStateSettings.ts +12 -0
- package/src/api/models/contentTemplate.ts +1 -1
- package/src/api/models/copyPageHierarchyRequest.ts +2 -0
- package/src/api/models/copyPageRequest.ts +1 -1
- package/src/api/models/horizontalHeaderLookAndFeel.ts +1 -1
- package/src/api/models/index.ts +8 -0
- package/src/api/models/labelArray.ts +1 -1
- package/src/api/models/longTask.ts +8 -0
- package/src/api/models/longTaskStatusArray.ts +1 -1
- package/src/api/models/lookAndFeel.ts +2 -2
- package/src/api/models/migratedUserArray.ts +1 -1
- package/src/api/models/relation.ts +1 -1
- package/src/api/models/relationArray.ts +1 -1
- package/src/api/models/searchPageResponseSearchResult.ts +1 -1
- package/src/api/models/searchResult.ts +2 -2
- package/src/api/models/space.ts +4 -4
- package/src/api/models/spaceArray.ts +1 -1
- package/src/api/models/spacePermission.ts +1 -1
- package/src/api/models/spacePermissionCreate.ts +1 -1
- package/src/api/models/spacePermissionRequest.ts +1 -1
- package/src/api/models/spacePermissionV2.ts +1 -1
- package/src/api/models/spacePropertyArray.ts +1 -1
- package/src/api/models/spaceWatchArray.ts +1 -1
- package/src/api/models/themeArray.ts +1 -1
- package/src/api/models/user.ts +2 -2
- package/src/api/models/userAnonymous.ts +1 -1
- package/src/api/models/userProperty.ts +14 -0
- package/src/api/models/userPropertyCreate.ts +4 -0
- package/src/api/models/userPropertyKeyArray.ts +11 -0
- package/src/api/models/userPropertyUpdate.ts +4 -0
- package/src/api/models/usersUserKeys.ts +1 -1
- package/src/api/models/version.ts +2 -2
- package/src/api/models/versionArray.ts +1 -1
- package/src/api/models/watchArray.ts +1 -1
- package/src/api/parameters/createUserProperty.ts +11 -0
- package/src/api/parameters/deletePageTree.ts +4 -0
- package/src/api/parameters/deleteUserProperty.ts +9 -0
- package/src/api/parameters/getAvailableContentStates.ts +4 -0
- package/src/api/parameters/getContentState.ts +6 -0
- package/src/api/parameters/getContentStateLastUpdated.ts +4 -0
- package/src/api/parameters/getContentStateSettings.ts +4 -0
- package/src/api/parameters/getGroupMembersByGroupId.ts +5 -0
- package/src/api/parameters/getMembersByQueryParam.ts +5 -0
- package/src/api/parameters/getSpaces.ts +31 -1
- package/src/api/parameters/getUserProperties.ts +8 -0
- package/src/api/parameters/getUserProperty.ts +6 -0
- package/src/api/parameters/index.ts +12 -0
- package/src/api/parameters/removeContentState.ts +4 -0
- package/src/api/parameters/searchGroups.ts +5 -0
- package/src/api/parameters/setContentState.ts +8 -0
- package/src/api/parameters/updateUserProperty.ts +11 -0
- package/src/api/relation.ts +6 -6
- package/src/api/search.ts +7 -5
- package/src/api/settings.ts +29 -7
- package/src/api/space.ts +14 -10
- package/src/api/spacePermissions.ts +4 -4
- package/src/api/spaceProperties.ts +7 -7
- package/src/api/spaceSettings.ts +3 -3
- package/src/api/template.ts +7 -7
- package/src/api/themes.ts +7 -7
- package/src/api/users.ts +12 -12
- package/src/clients/baseClient.ts +12 -64
- package/src/clients/client.ts +2 -3
- package/src/clients/confluenceClient.ts +4 -0
- package/src/config.ts +9 -4
- package/src/paramSerializer.ts +15 -0
- package/src/server/audit.ts +2 -2
- package/src/server/content.ts +2 -2
- package/src/server/contentBody.ts +1 -1
- package/src/server/group.ts +2 -2
- package/src/server/longTask.ts +2 -2
- package/src/server/models/content.ts +6 -6
- package/src/server/models/contentChildren.ts +1 -1
- package/src/server/models/contentHistory.ts +2 -2
- package/src/server/models/contentLookAndFeel.ts +1 -1
- package/src/server/models/contentRestriction.ts +2 -2
- package/src/server/models/lookAndFeel.ts +2 -2
- package/src/server/models/searchResult.ts +2 -2
- package/src/server/models/space.ts +3 -3
- package/src/server/models/spacePermission.ts +1 -1
- package/src/server/models/user.ts +1 -1
- package/src/server/models/version.ts +1 -1
- package/src/server/search.ts +2 -2
- package/src/server/space.ts +2 -2
- package/src/server/user.ts +2 -2
- package/src/services/authenticationService/authenticationService.ts +5 -0
- package/src/services/authenticationService/authentications/createBasicAuthenticationToken.ts +1 -1
- package/src/services/authenticationService/authentications/createPATAuthenticationToken.ts +5 -0
- package/src/services/authenticationService/authentications/index.ts +1 -0
- package/tsconfig.lint.json +7 -0
package/src/api/group.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Group {
|
|
@@ -38,7 +38,7 @@ export class Group {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
return this.client.sendRequest(config, callback
|
|
41
|
+
return this.client.sendRequest(config, callback);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -65,7 +65,7 @@ export class Group {
|
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
return this.client.sendRequest(config, callback
|
|
68
|
+
return this.client.sendRequest(config, callback);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -89,7 +89,7 @@ export class Group {
|
|
|
89
89
|
},
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
return this.client.sendRequest(config, callback
|
|
92
|
+
return this.client.sendRequest(config, callback);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
@@ -124,7 +124,7 @@ export class Group {
|
|
|
124
124
|
},
|
|
125
125
|
};
|
|
126
126
|
|
|
127
|
-
return this.client.sendRequest(config, callback
|
|
127
|
+
return this.client.sendRequest(config, callback);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
/**
|
|
@@ -156,7 +156,7 @@ export class Group {
|
|
|
156
156
|
},
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
return this.client.sendRequest(config, callback
|
|
159
|
+
return this.client.sendRequest(config, callback);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
/**
|
|
@@ -180,7 +180,7 @@ export class Group {
|
|
|
180
180
|
},
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
return this.client.sendRequest(config, callback
|
|
183
|
+
return this.client.sendRequest(config, callback);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
/** @deprecated Will be removed in the next major version. Use `getGroupByName` instead. */
|
|
@@ -190,6 +190,7 @@ export class Group {
|
|
|
190
190
|
async getGroup<T = Models.Group>(parameters: Parameters.GetGroup, callback?: Callback<T>): Promise<void | T> {
|
|
191
191
|
return this.getGroupByName(parameters, callback!);
|
|
192
192
|
}
|
|
193
|
+
|
|
193
194
|
/**
|
|
194
195
|
* Returns a user group for a given group name.
|
|
195
196
|
*
|
|
@@ -217,7 +218,7 @@ export class Group {
|
|
|
217
218
|
method: 'GET',
|
|
218
219
|
};
|
|
219
220
|
|
|
220
|
-
return this.client.sendRequest(config, callback
|
|
221
|
+
return this.client.sendRequest(config, callback);
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
/**
|
|
@@ -251,10 +252,11 @@ export class Group {
|
|
|
251
252
|
name: parameters.name,
|
|
252
253
|
start: parameters.start,
|
|
253
254
|
limit: parameters.limit,
|
|
255
|
+
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
254
256
|
},
|
|
255
257
|
};
|
|
256
258
|
|
|
257
|
-
return this.client.sendRequest(config, callback
|
|
259
|
+
return this.client.sendRequest(config, callback);
|
|
258
260
|
}
|
|
259
261
|
|
|
260
262
|
/**
|
|
@@ -291,7 +293,7 @@ export class Group {
|
|
|
291
293
|
},
|
|
292
294
|
};
|
|
293
295
|
|
|
294
|
-
return this.client.sendRequest(config, callback
|
|
296
|
+
return this.client.sendRequest(config, callback);
|
|
295
297
|
}
|
|
296
298
|
|
|
297
299
|
/** @deprecated Will be removed in the next major version. Use `searchGroups` instead. */
|
|
@@ -329,10 +331,11 @@ export class Group {
|
|
|
329
331
|
query: parameters.query,
|
|
330
332
|
start: parameters.start,
|
|
331
333
|
limit: parameters.limit,
|
|
334
|
+
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
332
335
|
},
|
|
333
336
|
};
|
|
334
337
|
|
|
335
|
-
return this.client.sendRequest(config, callback
|
|
338
|
+
return this.client.sendRequest(config, callback);
|
|
336
339
|
}
|
|
337
340
|
|
|
338
341
|
/**
|
|
@@ -368,7 +371,7 @@ export class Group {
|
|
|
368
371
|
},
|
|
369
372
|
};
|
|
370
373
|
|
|
371
|
-
return this.client.sendRequest(config, callback
|
|
374
|
+
return this.client.sendRequest(config, callback);
|
|
372
375
|
}
|
|
373
376
|
|
|
374
377
|
/**
|
|
@@ -402,7 +405,7 @@ export class Group {
|
|
|
402
405
|
},
|
|
403
406
|
};
|
|
404
407
|
|
|
405
|
-
return this.client.sendRequest(config, callback
|
|
408
|
+
return this.client.sendRequest(config, callback);
|
|
406
409
|
}
|
|
407
410
|
|
|
408
411
|
/**
|
|
@@ -439,10 +442,11 @@ export class Group {
|
|
|
439
442
|
params: {
|
|
440
443
|
start: parameters.start,
|
|
441
444
|
limit: parameters.limit,
|
|
445
|
+
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
442
446
|
},
|
|
443
447
|
};
|
|
444
448
|
|
|
445
|
-
return this.client.sendRequest(config, callback
|
|
449
|
+
return this.client.sendRequest(config, callback);
|
|
446
450
|
}
|
|
447
451
|
|
|
448
452
|
/**
|
|
@@ -469,7 +473,7 @@ export class Group {
|
|
|
469
473
|
},
|
|
470
474
|
};
|
|
471
475
|
|
|
472
|
-
return this.client.sendRequest(config, callback
|
|
476
|
+
return this.client.sendRequest(config, callback);
|
|
473
477
|
}
|
|
474
478
|
|
|
475
479
|
/**
|
|
@@ -500,6 +504,6 @@ export class Group {
|
|
|
500
504
|
},
|
|
501
505
|
};
|
|
502
506
|
|
|
503
|
-
return this.client.sendRequest(config, callback
|
|
507
|
+
return this.client.sendRequest(config, callback);
|
|
504
508
|
}
|
|
505
509
|
}
|
package/src/api/index.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
export * from './analytics';
|
|
1
2
|
export * from './audit';
|
|
2
3
|
export * from './content';
|
|
3
4
|
export * from './contentAttachments';
|
|
4
5
|
export * from './contentBody';
|
|
5
6
|
export * from './contentChildrenAndDescendants';
|
|
6
7
|
export * from './contentComments';
|
|
8
|
+
export * from './contentContentState';
|
|
7
9
|
export * from './contentLabels';
|
|
8
10
|
export * from './contentMacroBody';
|
|
9
11
|
export * from './contentPermissions';
|
package/src/api/inlineTasks.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class InlineTasks {
|
|
@@ -49,7 +49,7 @@ export class InlineTasks {
|
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
return this.client.sendRequest(config, callback
|
|
52
|
+
return this.client.sendRequest(config, callback);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -72,7 +72,7 @@ export class InlineTasks {
|
|
|
72
72
|
method: 'GET',
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
return this.client.sendRequest(config, callback
|
|
75
|
+
return this.client.sendRequest(config, callback);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
@@ -101,6 +101,6 @@ export class InlineTasks {
|
|
|
101
101
|
},
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
return this.client.sendRequest(config, callback
|
|
104
|
+
return this.client.sendRequest(config, callback);
|
|
105
105
|
}
|
|
106
106
|
}
|
package/src/api/labelInfo.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class LabelInfo {
|
|
@@ -42,6 +42,6 @@ export class LabelInfo {
|
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
return this.client.sendRequest(config, callback
|
|
45
|
+
return this.client.sendRequest(config, callback);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class LongRunningTask {
|
|
@@ -39,7 +39,7 @@ export class LongRunningTask {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -70,6 +70,6 @@ export class LongRunningTask {
|
|
|
70
70
|
method: 'GET',
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
return this.client.sendRequest(config, callback
|
|
73
|
+
return this.client.sendRequest(config, callback);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { GenericLinks } from './genericLinks';
|
|
1
2
|
import { Icon } from './icon';
|
|
2
3
|
import { OperationCheckResult } from './operationCheckResult';
|
|
3
|
-
import { UserDetails } from './userDetails';
|
|
4
4
|
import { Space } from './space';
|
|
5
|
-
import {
|
|
5
|
+
import { UserDetails } from './userDetails';
|
|
6
6
|
|
|
7
7
|
export interface BulkUserLookup {
|
|
8
8
|
type: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Space } from './space';
|
|
2
|
-
import { ContentHistory } from './contentHistory';
|
|
3
|
-
import { Version } from './version';
|
|
4
|
-
import { OperationCheckResult } from './operationCheckResult';
|
|
5
|
-
import { ContentChildren } from './contentChildren';
|
|
6
|
-
import { ContentChildType } from './contentChildType';
|
|
7
1
|
import { Container } from './container';
|
|
8
2
|
import { ContentBody } from './contentBody';
|
|
3
|
+
import { ContentChildren } from './contentChildren';
|
|
4
|
+
import { ContentChildType } from './contentChildType';
|
|
5
|
+
import { ContentHistory } from './contentHistory';
|
|
9
6
|
import { ContentRestriction } from './contentRestriction';
|
|
10
7
|
import { GenericLinks } from './genericLinks';
|
|
8
|
+
import { OperationCheckResult } from './operationCheckResult';
|
|
9
|
+
import { Space } from './space';
|
|
10
|
+
import { Version } from './version';
|
|
11
11
|
|
|
12
12
|
/** Base object for all content types. */
|
|
13
13
|
export interface Content {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { GenericLinks } from './genericLinks';
|
|
1
2
|
import { User } from './user';
|
|
2
|
-
import { Version } from './version';
|
|
3
3
|
import { UsersUserKeys } from './usersUserKeys';
|
|
4
|
-
import {
|
|
4
|
+
import { Version } from './version';
|
|
5
5
|
|
|
6
6
|
export interface ContentHistory {
|
|
7
7
|
latest: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Version } from './version';
|
|
2
1
|
import { GenericLinks } from './genericLinks';
|
|
3
2
|
import { LabelArray } from './labelArray';
|
|
3
|
+
import { Version } from './version';
|
|
4
4
|
|
|
5
5
|
/** Metadata object for page, blogpost, comment content */
|
|
6
6
|
export interface ContentMetadata {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UserArray } from './userArray';
|
|
2
|
-
import { GroupArray } from './groupArray';
|
|
3
1
|
import { Content } from './content';
|
|
4
2
|
import { GenericLinks } from './genericLinks';
|
|
3
|
+
import { GroupArray } from './groupArray';
|
|
4
|
+
import { UserArray } from './userArray';
|
|
5
5
|
|
|
6
6
|
export interface ContentRestriction {
|
|
7
7
|
operation: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ContentState } from './contentState';
|
|
2
|
+
|
|
3
|
+
export interface ContentStateSettings {
|
|
4
|
+
/** Whether users can place content states on any pages and blog posts in the space */
|
|
5
|
+
contentStatesAllowed: boolean;
|
|
6
|
+
/** Whether users can create custom states on the fly on pages and blog posts */
|
|
7
|
+
customContentStatesAllowed: boolean;
|
|
8
|
+
/** Whether space content states are allowed */
|
|
9
|
+
spaceContentStatesAllowed: boolean;
|
|
10
|
+
/** Space content states that users in the space can choose from */
|
|
11
|
+
spaceContentStates?: ContentState[];
|
|
12
|
+
}
|
|
@@ -11,6 +11,8 @@ export interface CopyPageHierarchyRequest {
|
|
|
11
11
|
copyLabels?: boolean;
|
|
12
12
|
/** If set to `true`, custom contents are copied to the destination page. */
|
|
13
13
|
copyCustomContents?: boolean;
|
|
14
|
+
/** If set to `true`, descendants are copied to the destination page. */
|
|
15
|
+
copyDescendants?: boolean;
|
|
14
16
|
destinationPageId: string;
|
|
15
17
|
titleOptions?: CopyPageHierarchyTitleOptions;
|
|
16
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CopyPageRequestDestination } from './copyPageRequestDestination';
|
|
2
1
|
import { ContentBodyCreate } from './contentBodyCreate';
|
|
2
|
+
import { CopyPageRequestDestination } from './copyPageRequestDestination';
|
|
3
3
|
|
|
4
4
|
export interface CopyPageRequest {
|
|
5
5
|
/** If set to `true`, attachments are copied to the destination page. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonLookAndFeel } from './buttonLookAndFeel';
|
|
2
|
-
import { TopNavigationLookAndFeel } from './topNavigationLookAndFeel';
|
|
3
2
|
import { NavigationLookAndFeel } from './navigationLookAndFeel';
|
|
4
3
|
import { SearchFieldLookAndFeel } from './searchFieldLookAndFeel';
|
|
4
|
+
import { TopNavigationLookAndFeel } from './topNavigationLookAndFeel';
|
|
5
5
|
|
|
6
6
|
export interface HorizontalHeaderLookAndFeel {
|
|
7
7
|
backgroundColor: string;
|
package/src/api/models/index.ts
CHANGED
|
@@ -82,7 +82,15 @@ export * from './labelCreateArray';
|
|
|
82
82
|
export * from './labelDetails';
|
|
83
83
|
export * from './labeledContent';
|
|
84
84
|
export * from './labeledContentPageResponse';
|
|
85
|
+
export * from './contentStateSettings';
|
|
85
86
|
export * from './labeledContentType';
|
|
87
|
+
export * from './longTask';
|
|
88
|
+
export * from './userPropertyCreate';
|
|
89
|
+
export * from './userPropertyUpdate';
|
|
90
|
+
export * from './contentStateContainer';
|
|
91
|
+
export * from './availableContentStates';
|
|
92
|
+
export * from './userPropertyKeyArray';
|
|
93
|
+
export * from './userProperty';
|
|
86
94
|
export * from './longTaskStatus';
|
|
87
95
|
export * from './longTaskStatusArray';
|
|
88
96
|
export * from './longTaskStatusWithLinks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MenusLookAndFeel } from './menusLookAndFeel';
|
|
2
|
-
import { HeaderLookAndFeel } from './headerLookAndFeel';
|
|
3
1
|
import { ContentLookAndFeel } from './contentLookAndFeel';
|
|
2
|
+
import { HeaderLookAndFeel } from './headerLookAndFeel';
|
|
4
3
|
import { HorizontalHeaderLookAndFeel } from './horizontalHeaderLookAndFeel';
|
|
4
|
+
import { MenusLookAndFeel } from './menusLookAndFeel';
|
|
5
5
|
|
|
6
6
|
export interface LookAndFeel {
|
|
7
7
|
headings: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Content } from './content';
|
|
2
|
-
import { ContainerSummary } from './containerSummary';
|
|
3
1
|
import { Breadcrumb } from './breadcrumb';
|
|
2
|
+
import { ContainerSummary } from './containerSummary';
|
|
3
|
+
import { Content } from './content';
|
|
4
4
|
|
|
5
5
|
export interface SearchResult {
|
|
6
6
|
content: Content;
|
package/src/api/models/space.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Icon } from './icon';
|
|
2
|
-
import { SpaceDescription } from './spaceDescription';
|
|
3
1
|
import { Content } from './content';
|
|
2
|
+
import { GenericLinks } from './genericLinks';
|
|
3
|
+
import { Icon } from './icon';
|
|
4
4
|
import { LabelArray } from './labelArray';
|
|
5
|
+
import { LookAndFeel } from './lookAndFeel';
|
|
5
6
|
import { OperationCheckResult } from './operationCheckResult';
|
|
7
|
+
import { SpaceDescription } from './spaceDescription';
|
|
6
8
|
import { SpacePermission } from './spacePermission';
|
|
7
9
|
import { SpaceSettings } from './spaceSettings';
|
|
8
10
|
import { Theme } from './theme';
|
|
9
|
-
import { LookAndFeel } from './lookAndFeel';
|
|
10
|
-
import { GenericLinks } from './genericLinks';
|
|
11
11
|
|
|
12
12
|
export interface Space {
|
|
13
13
|
id: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { User } from './user';
|
|
2
1
|
import { Group } from './group';
|
|
3
2
|
import { OperationCheckResult } from './operationCheckResult';
|
|
3
|
+
import { User } from './user';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* This object represents a permission for given space. Permissions consist of* at least one operation object with an
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { User } from './user';
|
|
2
1
|
import { GroupCreate } from './groupCreate';
|
|
3
2
|
import { OperationCheckResult } from './operationCheckResult';
|
|
3
|
+
import { User } from './user';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* This object represents a permission for given space. Permissions consist of* at least one operation object with an
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PermissionSubject } from './permissionSubject';
|
|
2
1
|
import { GenericLinks } from './genericLinks';
|
|
2
|
+
import { PermissionSubject } from './permissionSubject';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This object represents the request for the single space permission. Permissions consist of* at least one operation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PermissionSubject } from './permissionSubject';
|
|
2
1
|
import { GenericLinks } from './genericLinks';
|
|
2
|
+
import { PermissionSubject } from './permissionSubject';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This object represents a single space permission. Permissions consist of* at least one operation object with an
|
package/src/api/models/user.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { GenericLinks } from './genericLinks';
|
|
1
2
|
import { Icon } from './icon';
|
|
2
3
|
import { OperationCheckResult } from './operationCheckResult';
|
|
3
|
-
import { UserDetails } from './userDetails';
|
|
4
4
|
import { Space } from './space';
|
|
5
|
-
import {
|
|
5
|
+
import { UserDetails } from './userDetails';
|
|
6
6
|
|
|
7
7
|
export interface User {
|
|
8
8
|
type: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GenericLinks } from './genericLinks';
|
|
2
|
+
|
|
3
|
+
export interface UserProperty {
|
|
4
|
+
key: string;
|
|
5
|
+
/** The value of the content property. */
|
|
6
|
+
value: {};
|
|
7
|
+
/** A unique identifier for the user property */
|
|
8
|
+
id: string;
|
|
9
|
+
/** Datetime when the property was last modified such as `2022-02-01T12:00:00.111Z` */
|
|
10
|
+
lastModifiedDate: string;
|
|
11
|
+
/** Datetime when the property was created such as `2022-01-01T12:00:00.111Z` */
|
|
12
|
+
createdDate: string;
|
|
13
|
+
Links?: GenericLinks;
|
|
14
|
+
}
|