confluence.js 1.3.1 → 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 +12 -0
- package/README.md +15 -0
- 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 +6 -6
- package/out/api/content.d.ts +1 -1
- package/out/api/content.js +10 -10
- package/out/api/contentAttachments.d.ts +1 -1
- package/out/api/contentAttachments.js +6 -6
- package/out/api/contentBody.d.ts +1 -1
- package/out/api/contentBody.js +1 -1
- package/out/api/contentChildrenAndDescendants.d.ts +3 -3
- package/out/api/contentChildrenAndDescendants.js +9 -8
- package/out/api/contentComments.d.ts +1 -1
- package/out/api/contentComments.js +1 -1
- 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 +4 -4
- package/out/api/contentMacroBody.d.ts +1 -1
- package/out/api/contentMacroBody.js +1 -1
- package/out/api/contentPermissions.d.ts +1 -1
- package/out/api/contentPermissions.js +2 -2
- package/out/api/contentProperties.d.ts +1 -1
- package/out/api/contentProperties.js +6 -6
- package/out/api/contentRestrictions.d.ts +1 -1
- package/out/api/contentRestrictions.js +15 -15
- package/out/api/contentVersions.d.ts +1 -1
- package/out/api/contentVersions.js +4 -4
- package/out/api/contentWatches.d.ts +1 -1
- package/out/api/contentWatches.js +12 -12
- package/out/api/dynamicModules.d.ts +1 -1
- package/out/api/dynamicModules.js +3 -3
- package/out/api/experimental.d.ts +123 -5
- package/out/api/experimental.js +60 -8
- package/out/api/group.d.ts +1 -1
- package/out/api/group.js +20 -17
- 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 +3 -3
- package/out/api/labelInfo.d.ts +1 -1
- package/out/api/labelInfo.js +1 -1
- package/out/api/longRunningTask.d.ts +1 -1
- package/out/api/longRunningTask.js +2 -2
- 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 +7 -7
- package/out/api/search.d.ts +1 -1
- package/out/api/search.js +4 -4
- package/out/api/settings.d.ts +5 -1
- package/out/api/settings.js +15 -6
- package/out/api/space.d.ts +1 -1
- package/out/api/space.js +13 -9
- package/out/api/spacePermissions.d.ts +1 -1
- package/out/api/spacePermissions.js +4 -4
- package/out/api/spaceProperties.d.ts +1 -1
- package/out/api/spaceProperties.js +6 -6
- package/out/api/spaceSettings.d.ts +1 -1
- package/out/api/spaceSettings.js +2 -2
- package/out/api/template.d.ts +1 -1
- package/out/api/template.js +6 -6
- package/out/api/themes.d.ts +1 -1
- package/out/api/themes.js +6 -6
- package/out/api/users.d.ts +3 -3
- package/out/api/users.js +8 -8
- package/out/clients/baseClient.d.ts +1 -1
- package/out/clients/baseClient.js +6 -6
- 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 +5 -2
- 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 -26
- package/src/api/analytics.ts +44 -0
- package/src/api/audit.ts +1 -1
- package/src/api/content.ts +1 -1
- package/src/api/contentAttachments.ts +1 -1
- package/src/api/contentBody.ts +1 -1
- package/src/api/contentChildrenAndDescendants.ts +8 -4
- package/src/api/contentComments.ts +1 -1
- package/src/api/contentContentState.ts +157 -0
- package/src/api/contentLabels.ts +1 -1
- package/src/api/contentMacroBody.ts +1 -1
- package/src/api/contentPermissions.ts +1 -1
- package/src/api/contentProperties.ts +1 -1
- package/src/api/contentRestrictions.ts +1 -1
- package/src/api/contentVersions.ts +1 -1
- package/src/api/contentWatches.ts +1 -1
- package/src/api/dynamicModules.ts +1 -1
- package/src/api/experimental.ts +211 -8
- package/src/api/group.ts +4 -1
- package/src/api/index.ts +2 -0
- package/src/api/inlineTasks.ts +1 -1
- package/src/api/labelInfo.ts +1 -1
- package/src/api/longRunningTask.ts +1 -1
- 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 +1 -1
- package/src/api/search.ts +1 -1
- package/src/api/settings.ts +23 -1
- package/src/api/space.ts +6 -2
- package/src/api/spacePermissions.ts +1 -1
- package/src/api/spaceProperties.ts +1 -1
- package/src/api/spaceSettings.ts +1 -1
- package/src/api/template.ts +1 -1
- package/src/api/themes.ts +1 -1
- package/src/api/users.ts +4 -4
- package/src/clients/baseClient.ts +3 -3
- package/src/clients/confluenceClient.ts +4 -0
- package/src/config.ts +6 -2
- 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
|
@@ -7,7 +7,7 @@ class ContentMacroBody {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getMacroBodyByMacroId(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/content/${parameters.id}/history/${parameters.version}/macro/id/${parameters.macroId}`,
|
|
13
13
|
method: 'GET',
|
|
@@ -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
|
export declare class ContentPermissions {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,12 +7,12 @@ class ContentPermissions {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
permissionCheck(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
return this.checkContentPermission(parameters, callback);
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
checkContentPermission(parameters, callback) {
|
|
15
|
-
return
|
|
15
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
const config = {
|
|
17
17
|
url: `/api/content/${parameters.id}/permission/check`,
|
|
18
18
|
method: 'POST',
|
|
@@ -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
|
export declare class ContentProperties {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class ContentProperties {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getContentProperties(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/content/${parameters.id}/property`,
|
|
13
13
|
method: 'GET',
|
|
@@ -22,7 +22,7 @@ class ContentProperties {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
createContentProperty(parameters, callback) {
|
|
25
|
-
return
|
|
25
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
26
|
const config = {
|
|
27
27
|
url: `/api/content/${parameters.id}/property`,
|
|
28
28
|
method: 'POST',
|
|
@@ -35,7 +35,7 @@ class ContentProperties {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
getContentProperty(parameters, callback) {
|
|
38
|
-
return
|
|
38
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const config = {
|
|
40
40
|
url: `/api/content/${parameters.id}/property/${parameters.key}`,
|
|
41
41
|
method: 'GET',
|
|
@@ -48,7 +48,7 @@ class ContentProperties {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
createContentPropertyForKey(parameters, callback) {
|
|
51
|
-
return
|
|
51
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
52
52
|
const config = {
|
|
53
53
|
url: `/api/content/${parameters.id}/property/${parameters.key}`,
|
|
54
54
|
method: 'POST',
|
|
@@ -60,7 +60,7 @@ class ContentProperties {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
updateContentProperty(parameters, callback) {
|
|
63
|
-
return
|
|
63
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
64
64
|
const config = {
|
|
65
65
|
url: `/api/content/${parameters.id}/property/${parameters.key}`,
|
|
66
66
|
method: 'PUT',
|
|
@@ -73,7 +73,7 @@ class ContentProperties {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
deleteContentProperty(parameters, callback) {
|
|
76
|
-
return
|
|
76
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
const config = {
|
|
78
78
|
url: `/api/content/${parameters.id}/property/${parameters.key}`,
|
|
79
79
|
method: 'DELETE',
|
|
@@ -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
|
export declare class ContentRestrictions {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class ContentRestrictions {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getRestrictions(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/content/${parameters.id}/restriction`,
|
|
13
13
|
method: 'GET',
|
|
@@ -21,7 +21,7 @@ class ContentRestrictions {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
addRestrictions(parameters, callback) {
|
|
24
|
-
return
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const config = {
|
|
26
26
|
url: `/api/content/${parameters.id}/restriction`,
|
|
27
27
|
method: 'POST',
|
|
@@ -34,7 +34,7 @@ class ContentRestrictions {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
updateRestrictions(parameters, callback) {
|
|
37
|
-
return
|
|
37
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
const config = {
|
|
39
39
|
url: `/api/content/${parameters.id}/restriction`,
|
|
40
40
|
method: 'PUT',
|
|
@@ -47,7 +47,7 @@ class ContentRestrictions {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
deleteRestrictions(parameters, callback) {
|
|
50
|
-
return
|
|
50
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
const config = {
|
|
52
52
|
url: `/api/content/${parameters.id}/restriction`,
|
|
53
53
|
method: 'DELETE',
|
|
@@ -59,7 +59,7 @@ class ContentRestrictions {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
getRestrictionsByOperation(parameters, callback) {
|
|
62
|
-
return
|
|
62
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const config = {
|
|
64
64
|
url: `/api/content/${parameters.id}/restriction/byOperation`,
|
|
65
65
|
method: 'GET',
|
|
@@ -71,7 +71,7 @@ class ContentRestrictions {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
getRestrictionsForOperation(parameters, callback) {
|
|
74
|
-
return
|
|
74
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
const config = {
|
|
76
76
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}`,
|
|
77
77
|
method: 'GET',
|
|
@@ -85,7 +85,7 @@ class ContentRestrictions {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
getContentRestrictionStatusForGroup(parameters, callback) {
|
|
88
|
-
return
|
|
88
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
const config = {
|
|
90
90
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,
|
|
91
91
|
method: 'GET',
|
|
@@ -94,7 +94,7 @@ class ContentRestrictions {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
addGroupToContentRestriction(parameters, callback) {
|
|
97
|
-
return
|
|
97
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
98
98
|
const config = {
|
|
99
99
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,
|
|
100
100
|
method: 'PUT',
|
|
@@ -103,7 +103,7 @@ class ContentRestrictions {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
removeGroupByName(parameters, callback) {
|
|
106
|
-
return
|
|
106
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
107
107
|
const config = {
|
|
108
108
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,
|
|
109
109
|
method: 'DELETE',
|
|
@@ -112,7 +112,7 @@ class ContentRestrictions {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
getIndividualGroupRestrictionStatusByGroupId(parameters, callback) {
|
|
115
|
-
return
|
|
115
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
116
116
|
const config = {
|
|
117
117
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,
|
|
118
118
|
method: 'GET',
|
|
@@ -121,7 +121,7 @@ class ContentRestrictions {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
addGroupToContentRestrictionByGroupId(parameters, callback) {
|
|
124
|
-
return
|
|
124
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
125
125
|
const config = {
|
|
126
126
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,
|
|
127
127
|
method: 'PUT',
|
|
@@ -130,7 +130,7 @@ class ContentRestrictions {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
removeGroupById(parameters, callback) {
|
|
133
|
-
return
|
|
133
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
134
134
|
const config = {
|
|
135
135
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,
|
|
136
136
|
method: 'DELETE',
|
|
@@ -139,7 +139,7 @@ class ContentRestrictions {
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
getContentRestrictionStatusForUser(parameters, callback) {
|
|
142
|
-
return
|
|
142
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
143
143
|
const config = {
|
|
144
144
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/user`,
|
|
145
145
|
method: 'GET',
|
|
@@ -153,7 +153,7 @@ class ContentRestrictions {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
addUserToContentRestriction(parameters, callback) {
|
|
156
|
-
return
|
|
156
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
157
157
|
const config = {
|
|
158
158
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/user`,
|
|
159
159
|
method: 'PUT',
|
|
@@ -167,7 +167,7 @@ class ContentRestrictions {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
removeUserFromContentRestriction(parameters, callback) {
|
|
170
|
-
return
|
|
170
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
171
171
|
const config = {
|
|
172
172
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/user`,
|
|
173
173
|
method: 'DELETE',
|
|
@@ -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
|
export declare class ContentVersions {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class ContentVersions {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getContentVersions(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/content/${parameters.id}/version`,
|
|
13
13
|
method: 'GET',
|
|
@@ -21,7 +21,7 @@ class ContentVersions {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
restoreContentVersion(parameters, callback) {
|
|
24
|
-
return
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const config = {
|
|
26
26
|
url: `/api/content/${parameters.id}/version`,
|
|
27
27
|
method: 'POST',
|
|
@@ -37,7 +37,7 @@ class ContentVersions {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
getContentVersion(parameters, callback) {
|
|
40
|
-
return
|
|
40
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const config = {
|
|
42
42
|
url: `/api/content/${parameters.id}/version/${parameters.versionNumber}`,
|
|
43
43
|
method: 'GET',
|
|
@@ -49,7 +49,7 @@ class ContentVersions {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
deleteContentVersion(parameters, callback) {
|
|
52
|
-
return
|
|
52
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
const config = {
|
|
54
54
|
url: `/api/content/${parameters.id}/version/${parameters.versionNumber}`,
|
|
55
55
|
method: 'DELETE',
|
|
@@ -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
|
export declare class ContentWatches {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class ContentWatches {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getWatchesForPage(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/content/${parameters.id}/notification/child-created`,
|
|
13
13
|
method: 'GET',
|
|
@@ -20,7 +20,7 @@ class ContentWatches {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
getWatchesForSpace(parameters, callback) {
|
|
23
|
-
return
|
|
23
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const config = {
|
|
25
25
|
url: `/api/content/${parameters.id}/notification/created`,
|
|
26
26
|
method: 'GET',
|
|
@@ -33,7 +33,7 @@ class ContentWatches {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
getWatchersForSpace(parameters, callback) {
|
|
36
|
-
return
|
|
36
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const config = {
|
|
38
38
|
url: `/api/space/${parameters.spaceKey}/watch`,
|
|
39
39
|
method: 'GET',
|
|
@@ -46,7 +46,7 @@ class ContentWatches {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
getContentWatchStatus(parameters, callback) {
|
|
49
|
-
return
|
|
49
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
50
|
const config = {
|
|
51
51
|
url: `/api/user/watch/content/${parameters.contentId}`,
|
|
52
52
|
method: 'GET',
|
|
@@ -60,7 +60,7 @@ class ContentWatches {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
addContentWatcher(parameters, callback) {
|
|
63
|
-
return
|
|
63
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
64
64
|
const config = {
|
|
65
65
|
url: `/api/user/watch/content/${parameters.contentId}`,
|
|
66
66
|
method: 'POST',
|
|
@@ -74,7 +74,7 @@ class ContentWatches {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
removeContentWatcher(parameters, callback) {
|
|
77
|
-
return
|
|
77
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const config = {
|
|
79
79
|
url: `/api/user/watch/content/${parameters.contentId}`,
|
|
80
80
|
method: 'DELETE',
|
|
@@ -91,7 +91,7 @@ class ContentWatches {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
isWatchingLabel(parameters, callback) {
|
|
94
|
-
return
|
|
94
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
95
95
|
const config = {
|
|
96
96
|
url: `/api/user/watch/label/${parameters.labelName}`,
|
|
97
97
|
method: 'GET',
|
|
@@ -105,7 +105,7 @@ class ContentWatches {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
addLabelWatcher(parameters, callback) {
|
|
108
|
-
return
|
|
108
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
109
109
|
const config = {
|
|
110
110
|
url: `/api/user/watch/label/${parameters.labelName}`,
|
|
111
111
|
method: 'POST',
|
|
@@ -122,7 +122,7 @@ class ContentWatches {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
removeLabelWatcher(parameters, callback) {
|
|
125
|
-
return
|
|
125
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
126
126
|
const config = {
|
|
127
127
|
url: `/api/user/watch/label/${parameters.labelName}`,
|
|
128
128
|
method: 'DELETE',
|
|
@@ -136,7 +136,7 @@ class ContentWatches {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
isWatchingSpace(parameters, callback) {
|
|
139
|
-
return
|
|
139
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
140
140
|
const config = {
|
|
141
141
|
url: `/api/user/watch/space/${parameters.spaceKey}`,
|
|
142
142
|
method: 'GET',
|
|
@@ -150,7 +150,7 @@ class ContentWatches {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
addSpaceWatcher(parameters, callback) {
|
|
153
|
-
return
|
|
153
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
const config = {
|
|
155
155
|
url: `/api/user/watch/space/${parameters.spaceKey}`,
|
|
156
156
|
method: 'POST',
|
|
@@ -167,7 +167,7 @@ class ContentWatches {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
removeSpaceWatch(parameters, callback) {
|
|
170
|
-
return
|
|
170
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
171
171
|
const config = {
|
|
172
172
|
url: `/api/user/watch/space/${parameters.spaceKey}`,
|
|
173
173
|
method: 'DELETE',
|
|
@@ -7,7 +7,7 @@ class DynamicModules {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getModules(callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/atlassian-connect/1/app/module/dynamic',
|
|
13
13
|
method: 'GET',
|
|
@@ -16,7 +16,7 @@ class DynamicModules {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
registerModules(parameters, callback) {
|
|
19
|
-
return
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const config = {
|
|
21
21
|
url: '/atlassian-connect/1/app/module/dynamic',
|
|
22
22
|
method: 'POST',
|
|
@@ -25,7 +25,7 @@ class DynamicModules {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
removeModules(parameters, callback) {
|
|
28
|
-
return
|
|
28
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
const config = {
|
|
30
30
|
url: '/atlassian-connect/1/app/module/dynamic',
|
|
31
31
|
method: 'DELETE',
|
|
@@ -1,10 +1,38 @@
|
|
|
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
|
export declare class Experimental {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Moves a pagetree rooted at a page to the space's trash:
|
|
10
|
+
*
|
|
11
|
+
* - If the content's type is `page` and its status is `current`, it will be trashed including all its descendants.
|
|
12
|
+
* - For every other combination of content type and status, this API is not supported.
|
|
13
|
+
*
|
|
14
|
+
* This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.
|
|
15
|
+
*
|
|
16
|
+
* Use the `/longtask/<taskId>` REST API to get the copy task status.
|
|
17
|
+
*
|
|
18
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the
|
|
19
|
+
* content is in.
|
|
20
|
+
*/
|
|
21
|
+
deletePageTree<T = Models.LongTask>(parameters: Parameters.DeletePageTree, callback: Callback<T>): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Moves a pagetree rooted at a page to the space's trash:
|
|
24
|
+
*
|
|
25
|
+
* - If the content's type is `page` and its status is `current`, it will be trashed including all its descendants.
|
|
26
|
+
* - For every other combination of content type and status, this API is not supported.
|
|
27
|
+
*
|
|
28
|
+
* This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.
|
|
29
|
+
*
|
|
30
|
+
* Use the `/longtask/<taskId>` REST API to get the copy task status.
|
|
31
|
+
*
|
|
32
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the
|
|
33
|
+
* content is in.
|
|
34
|
+
*/
|
|
35
|
+
deletePageTree<T = Models.LongTask>(parameters: Parameters.DeletePageTree, callback?: never): Promise<T>;
|
|
8
36
|
/**
|
|
9
37
|
* Returns a list of labels associated with a space. Can provide a prefix as well as other filters to select different
|
|
10
38
|
* types of labels.
|
|
@@ -41,10 +69,100 @@ export declare class Experimental {
|
|
|
41
69
|
addLabelsToSpace<T = Models.LabelArray>(parameters: Parameters.AddLabelsToSpace, callback?: never): Promise<T>;
|
|
42
70
|
deleteLabelFromSpace<T = void>(parameters: Parameters.DeleteLabelFromSpace, callback: Callback<T>): Promise<void>;
|
|
43
71
|
deleteLabelFromSpace<T = void>(parameters: Parameters.DeleteLabelFromSpace, callback?: never): Promise<T>;
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
72
|
+
/**
|
|
73
|
+
* Returns the properties for a user as list of property keys. For more information about user properties, see
|
|
74
|
+
* [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
75
|
+
* `Note`, these properties stored against a user are on a Confluence site level and not space/content level.
|
|
76
|
+
*
|
|
77
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
78
|
+
* ('Can use' global permission).
|
|
79
|
+
*/
|
|
80
|
+
getUserProperties<T = Models.UserPropertyKeyArray>(parameters: Parameters.GetUserProperties, callback: Callback<T>): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns the properties for a user as list of property keys. For more information about user properties, see
|
|
83
|
+
* [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
84
|
+
* `Note`, these properties stored against a user are on a Confluence site level and not space/content level.
|
|
85
|
+
*
|
|
86
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
87
|
+
* ('Can use' global permission).
|
|
88
|
+
*/
|
|
89
|
+
getUserProperties<T = Models.UserPropertyKeyArray>(parameters: Parameters.GetUserProperties, callback?: never): Promise<T>;
|
|
90
|
+
/**
|
|
91
|
+
* Returns the property corresponding to `key` for a user. For more information about user properties, see [Confluence
|
|
92
|
+
* entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
93
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
94
|
+
*
|
|
95
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
96
|
+
* ('Can use' global permission).
|
|
97
|
+
*/
|
|
98
|
+
getUserProperty<T = Models.UserProperty>(parameters: Parameters.GetUserProperty, callback: Callback<T>): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the property corresponding to `key` for a user. For more information about user properties, see [Confluence
|
|
101
|
+
* entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
102
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
103
|
+
*
|
|
104
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
105
|
+
* ('Can use' global permission).
|
|
106
|
+
*/
|
|
107
|
+
getUserProperty<T = Models.UserProperty>(parameters: Parameters.GetUserProperty, callback?: never): Promise<T>;
|
|
108
|
+
/**
|
|
109
|
+
* Creates a property for a user. For more information about user properties, see [Confluence entity properties]
|
|
110
|
+
* (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these properties stored
|
|
111
|
+
* against a user are on a Confluence site level and not space/content level.
|
|
112
|
+
*
|
|
113
|
+
* `Note:` the number of properties which could be created per app in a tenant for each user might be restricted by
|
|
114
|
+
* fixed system limits. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access
|
|
115
|
+
* the Confluence site ('Can use' global permission).
|
|
116
|
+
*/
|
|
117
|
+
createUserProperty<T = unknown>(parameters: Parameters.CreateUserProperty, callback: Callback<T>): Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates a property for a user. For more information about user properties, see [Confluence entity properties]
|
|
120
|
+
* (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these properties stored
|
|
121
|
+
* against a user are on a Confluence site level and not space/content level.
|
|
122
|
+
*
|
|
123
|
+
* `Note:` the number of properties which could be created per app in a tenant for each user might be restricted by
|
|
124
|
+
* fixed system limits. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access
|
|
125
|
+
* the Confluence site ('Can use' global permission).
|
|
126
|
+
*/
|
|
127
|
+
createUserProperty<T = unknown>(parameters: Parameters.CreateUserProperty, callback?: never): Promise<T>;
|
|
128
|
+
/**
|
|
129
|
+
* Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more
|
|
130
|
+
* information about user properties, see [Confluence entity
|
|
131
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
132
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
133
|
+
*
|
|
134
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
135
|
+
* ('Can use' global permission).
|
|
136
|
+
*/
|
|
137
|
+
updateUserProperty<T = void>(parameters: Parameters.UpdateUserProperty, callback: Callback<T>): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more
|
|
140
|
+
* information about user properties, see [Confluence entity
|
|
141
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
142
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
143
|
+
*
|
|
144
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
145
|
+
* ('Can use' global permission).
|
|
146
|
+
*/
|
|
147
|
+
updateUserProperty<T = void>(parameters: Parameters.UpdateUserProperty, callback?: never): Promise<T>;
|
|
148
|
+
/**
|
|
149
|
+
* Deletes a property for the given user. For more information about user properties, see [Confluence entity
|
|
150
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
151
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
152
|
+
*
|
|
153
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
154
|
+
* ('Can use' global permission).
|
|
155
|
+
*/
|
|
156
|
+
deleteUserProperty<T = void>(parameters: Parameters.DeleteUserProperty, callback: Callback<T>): Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* Deletes a property for the given user. For more information about user properties, see [Confluence entity
|
|
159
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
160
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
161
|
+
*
|
|
162
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
163
|
+
* ('Can use' global permission).
|
|
164
|
+
*/
|
|
165
|
+
deleteUserProperty<T = void>(parameters: Parameters.DeleteUserProperty, callback?: never): Promise<T>;
|
|
48
166
|
/** Get the total number of distinct viewers a piece of content has. */
|
|
49
167
|
getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback: Callback<T>): Promise<void>;
|
|
50
168
|
/** Get the total number of distinct viewers a piece of content has. */
|