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
package/out/api/experimental.js
CHANGED
|
@@ -6,8 +6,17 @@ class Experimental {
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
|
+
deletePageTree(parameters, callback) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const config = {
|
|
12
|
+
url: `/api/content/${parameters.id}/pageTree`,
|
|
13
|
+
method: 'DELETE',
|
|
14
|
+
};
|
|
15
|
+
return this.client.sendRequest(config, callback);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
9
18
|
getLabelsForSpace(parameters, callback) {
|
|
10
|
-
return
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
20
|
const config = {
|
|
12
21
|
url: `/api/space/${parameters.spaceKey}/label`,
|
|
13
22
|
method: 'GET',
|
|
@@ -21,7 +30,7 @@ class Experimental {
|
|
|
21
30
|
});
|
|
22
31
|
}
|
|
23
32
|
addLabelsToSpace(parameters, callback) {
|
|
24
|
-
return
|
|
33
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
34
|
const config = {
|
|
26
35
|
url: `/api/space/${parameters.spaceKey}/label`,
|
|
27
36
|
method: 'POST',
|
|
@@ -30,7 +39,7 @@ class Experimental {
|
|
|
30
39
|
});
|
|
31
40
|
}
|
|
32
41
|
deleteLabelFromSpace(parameters, callback) {
|
|
33
|
-
return
|
|
42
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
43
|
const config = {
|
|
35
44
|
url: `/api/space/${parameters.spaceKey}/label`,
|
|
36
45
|
method: 'DELETE',
|
|
@@ -42,20 +51,63 @@ class Experimental {
|
|
|
42
51
|
return this.client.sendRequest(config, callback);
|
|
43
52
|
});
|
|
44
53
|
}
|
|
45
|
-
|
|
46
|
-
return
|
|
54
|
+
getUserProperties(parameters, callback) {
|
|
55
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
56
|
const config = {
|
|
48
|
-
url: `/api/
|
|
57
|
+
url: `/api/user/${parameters.userId}/property`,
|
|
49
58
|
method: 'GET',
|
|
50
59
|
params: {
|
|
51
|
-
|
|
60
|
+
start: parameters.start,
|
|
61
|
+
limit: parameters.limit,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
return this.client.sendRequest(config, callback);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
getUserProperty(parameters, callback) {
|
|
68
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const config = {
|
|
70
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
71
|
+
method: 'GET',
|
|
72
|
+
};
|
|
73
|
+
return this.client.sendRequest(config, callback);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
createUserProperty(parameters, callback) {
|
|
77
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
const config = {
|
|
79
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
80
|
+
method: 'POST',
|
|
81
|
+
data: {
|
|
82
|
+
value: parameters.value,
|
|
52
83
|
},
|
|
53
84
|
};
|
|
54
85
|
return this.client.sendRequest(config, callback);
|
|
55
86
|
});
|
|
56
87
|
}
|
|
88
|
+
updateUserProperty(parameters, callback) {
|
|
89
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const config = {
|
|
91
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
92
|
+
method: 'PUT',
|
|
93
|
+
data: {
|
|
94
|
+
value: parameters.value,
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
return this.client.sendRequest(config, callback);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
deleteUserProperty(parameters, callback) {
|
|
101
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const config = {
|
|
103
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
104
|
+
method: 'DELETE',
|
|
105
|
+
};
|
|
106
|
+
return this.client.sendRequest(config, callback);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
57
109
|
getViewers(parameters, callback) {
|
|
58
|
-
return
|
|
110
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
111
|
const config = {
|
|
60
112
|
url: `/api/analytics/content/${parameters.contentId}/viewers`,
|
|
61
113
|
method: 'GET',
|
package/out/api/group.d.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
|
export declare class Group {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/group.js
CHANGED
|
@@ -7,7 +7,7 @@ class Group {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getGroups(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/group',
|
|
13
13
|
method: 'GET',
|
|
@@ -21,7 +21,7 @@ class Group {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
createGroup(parameters, callback) {
|
|
24
|
-
return
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const config = {
|
|
26
26
|
url: '/api/group',
|
|
27
27
|
method: 'POST',
|
|
@@ -33,7 +33,7 @@ class Group {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
removeGroup(parameters, callback) {
|
|
36
|
-
return
|
|
36
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const config = {
|
|
38
38
|
url: '/api/group',
|
|
39
39
|
method: 'DELETE',
|
|
@@ -45,7 +45,7 @@ class Group {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
getGroupByQueryParam(parameters, callback) {
|
|
48
|
-
return
|
|
48
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
const config = {
|
|
50
50
|
url: '/api/group/by-name',
|
|
51
51
|
method: 'GET',
|
|
@@ -57,7 +57,7 @@ class Group {
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
getGroupByGroupId(parameters, callback) {
|
|
60
|
-
return
|
|
60
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const config = {
|
|
62
62
|
url: '/api/group/by-id',
|
|
63
63
|
method: 'GET',
|
|
@@ -69,7 +69,7 @@ class Group {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
removeGroupById(parameters, callback) {
|
|
72
|
-
return
|
|
72
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
73
73
|
const config = {
|
|
74
74
|
url: '/api/group/by-id',
|
|
75
75
|
method: 'DELETE',
|
|
@@ -81,12 +81,12 @@ class Group {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
getGroup(parameters, callback) {
|
|
84
|
-
return
|
|
84
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
return this.getGroupByName(parameters, callback);
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
getGroupByName(parameters, callback) {
|
|
89
|
-
return
|
|
89
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
90
90
|
const config = {
|
|
91
91
|
url: `/api/group/${parameters.groupName}`,
|
|
92
92
|
method: 'GET',
|
|
@@ -95,7 +95,7 @@ class Group {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
getMembersByQueryParam(parameters, callback) {
|
|
98
|
-
return
|
|
98
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
99
99
|
const config = {
|
|
100
100
|
url: '/api/group/member',
|
|
101
101
|
method: 'GET',
|
|
@@ -103,13 +103,14 @@ class Group {
|
|
|
103
103
|
name: parameters.name,
|
|
104
104
|
start: parameters.start,
|
|
105
105
|
limit: parameters.limit,
|
|
106
|
+
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
106
107
|
},
|
|
107
108
|
};
|
|
108
109
|
return this.client.sendRequest(config, callback);
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
getGroupMembers(parameters, callback) {
|
|
112
|
-
return
|
|
113
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
113
114
|
const config = {
|
|
114
115
|
url: `/api/group/${parameters.groupName}/member`,
|
|
115
116
|
method: 'GET',
|
|
@@ -122,12 +123,12 @@ class Group {
|
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
125
|
getGroupsSearch(parameters, callback) {
|
|
125
|
-
return
|
|
126
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
126
127
|
return this.searchGroups(parameters, callback);
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
130
|
searchGroups(parameters, callback) {
|
|
130
|
-
return
|
|
131
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
131
132
|
const config = {
|
|
132
133
|
url: '/api/group/picker',
|
|
133
134
|
method: 'GET',
|
|
@@ -135,13 +136,14 @@ class Group {
|
|
|
135
136
|
query: parameters.query,
|
|
136
137
|
start: parameters.start,
|
|
137
138
|
limit: parameters.limit,
|
|
139
|
+
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
138
140
|
},
|
|
139
141
|
};
|
|
140
142
|
return this.client.sendRequest(config, callback);
|
|
141
143
|
});
|
|
142
144
|
}
|
|
143
145
|
addUserToGroupByGroupId(parameters, callback) {
|
|
144
|
-
return
|
|
146
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
145
147
|
const config = {
|
|
146
148
|
url: '/api/group/userByGroupId',
|
|
147
149
|
method: 'POST',
|
|
@@ -156,7 +158,7 @@ class Group {
|
|
|
156
158
|
});
|
|
157
159
|
}
|
|
158
160
|
removeMemberFromGroupByGroupId(parameters, callback) {
|
|
159
|
-
return
|
|
161
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
160
162
|
const config = {
|
|
161
163
|
url: '/api/group/userByGroupId',
|
|
162
164
|
method: 'DELETE',
|
|
@@ -169,20 +171,21 @@ class Group {
|
|
|
169
171
|
});
|
|
170
172
|
}
|
|
171
173
|
getGroupMembersByGroupId(parameters, callback) {
|
|
172
|
-
return
|
|
174
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
173
175
|
const config = {
|
|
174
176
|
url: `/api/group/${parameters.groupId}/membersByGroupId`,
|
|
175
177
|
method: 'GET',
|
|
176
178
|
params: {
|
|
177
179
|
start: parameters.start,
|
|
178
180
|
limit: parameters.limit,
|
|
181
|
+
shouldReturnTotalSize: parameters.shouldReturnTotalSize,
|
|
179
182
|
},
|
|
180
183
|
};
|
|
181
184
|
return this.client.sendRequest(config, callback);
|
|
182
185
|
});
|
|
183
186
|
}
|
|
184
187
|
addUserToGroup(parameters, callback) {
|
|
185
|
-
return
|
|
188
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
186
189
|
const config = {
|
|
187
190
|
url: '/api/group/user',
|
|
188
191
|
method: 'POST',
|
|
@@ -197,7 +200,7 @@ class Group {
|
|
|
197
200
|
});
|
|
198
201
|
}
|
|
199
202
|
removeMemberFromGroup(parameters, callback) {
|
|
200
|
-
return
|
|
203
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
201
204
|
const config = {
|
|
202
205
|
url: '/api/group/user',
|
|
203
206
|
method: 'DELETE',
|
package/out/api/index.d.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/out/api/index.js
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./analytics"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./audit"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./content"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./contentAttachments"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./contentBody"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./contentChildrenAndDescendants"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./contentComments"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./contentContentState"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./contentLabels"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./contentMacroBody"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./contentPermissions"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./contentProperties"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./contentRestrictions"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./contentVersions"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./contentWatches"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./dynamicModules"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./experimental"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./group"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./inlineTasks"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./labelInfo"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./longRunningTask"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./relation"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./search"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./settings"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./space"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./spacePermissions"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./spaceProperties"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./spaceSettings"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./template"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./themes"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./users"), exports);
|
package/out/api/inlineTasks.d.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
|
export declare class InlineTasks {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/inlineTasks.js
CHANGED
|
@@ -7,7 +7,7 @@ class InlineTasks {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
searchTasks(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/inlinetasks/search',
|
|
13
13
|
method: 'GET',
|
|
@@ -32,7 +32,7 @@ class InlineTasks {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
getTaskById(parameters, callback) {
|
|
35
|
-
return
|
|
35
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
const config = {
|
|
37
37
|
url: `/api/inlinetasks/${parameters.inlineTaskId}`,
|
|
38
38
|
method: 'GET',
|
|
@@ -41,7 +41,7 @@ class InlineTasks {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
updateTaskById(parameters, callback) {
|
|
44
|
-
return
|
|
44
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
45
|
const config = {
|
|
46
46
|
url: `/api/inlinetasks/${parameters.inlineTaskId}`,
|
|
47
47
|
method: 'PUT',
|
package/out/api/labelInfo.d.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
|
export declare class LabelInfo {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/labelInfo.js
CHANGED
|
@@ -7,7 +7,7 @@ class LabelInfo {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getAllLabelContent(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/label',
|
|
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 LongRunningTask {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class LongRunningTask {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getTasks(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/longtask',
|
|
13
13
|
method: 'GET',
|
|
@@ -20,7 +20,7 @@ class LongRunningTask {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
getTask(parameters, callback) {
|
|
23
|
-
return
|
|
23
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const config = {
|
|
25
25
|
url: `/api/longtask/${parameters.id}`,
|
|
26
26
|
method: 'GET',
|
|
@@ -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
|
export interface BulkUserLookup {
|
|
7
7
|
type: string;
|
|
8
8
|
/**
|
|
@@ -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
|
/** Base object for all content types. */
|
|
12
12
|
export interface Content {
|
|
13
13
|
id: string;
|
|
@@ -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
|
export interface ContentHistory {
|
|
6
6
|
latest: boolean;
|
|
7
7
|
createdBy: User;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ScreenLookAndFeel } from './screenLookAndFeel';
|
|
2
1
|
import { ContainerLookAndFeel } from './containerLookAndFeel';
|
|
2
|
+
import { ScreenLookAndFeel } from './screenLookAndFeel';
|
|
3
3
|
export interface ContentLookAndFeel {
|
|
4
4
|
screen: ScreenLookAndFeel;
|
|
5
5
|
container: ContainerLookAndFeel;
|
|
@@ -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
|
/** Metadata object for page, blogpost, comment content */
|
|
5
5
|
export interface ContentMetadata {
|
|
6
6
|
currentuser?: {
|
|
@@ -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
|
export interface ContentRestriction {
|
|
6
6
|
operation: string;
|
|
7
7
|
restrictions?: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ContentState } from './contentState';
|
|
2
|
+
export interface ContentStateSettings {
|
|
3
|
+
/** Whether users can place content states on any pages and blog posts in the space */
|
|
4
|
+
contentStatesAllowed: boolean;
|
|
5
|
+
/** Whether users can create custom states on the fly on pages and blog posts */
|
|
6
|
+
customContentStatesAllowed: boolean;
|
|
7
|
+
/** Whether space content states are allowed */
|
|
8
|
+
spaceContentStatesAllowed: boolean;
|
|
9
|
+
/** Space content states that users in the space can choose from */
|
|
10
|
+
spaceContentStates?: ContentState[];
|
|
11
|
+
}
|
|
@@ -10,6 +10,8 @@ export interface CopyPageHierarchyRequest {
|
|
|
10
10
|
copyLabels?: boolean;
|
|
11
11
|
/** If set to `true`, custom contents are copied to the destination page. */
|
|
12
12
|
copyCustomContents?: boolean;
|
|
13
|
+
/** If set to `true`, descendants are copied to the destination page. */
|
|
14
|
+
copyDescendants?: boolean;
|
|
13
15
|
destinationPageId: string;
|
|
14
16
|
titleOptions?: CopyPageHierarchyTitleOptions;
|
|
15
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CopyPageRequestDestination } from './copyPageRequestDestination';
|
|
2
1
|
import { ContentBodyCreate } from './contentBodyCreate';
|
|
2
|
+
import { CopyPageRequestDestination } from './copyPageRequestDestination';
|
|
3
3
|
export interface CopyPageRequest {
|
|
4
4
|
/** If set to `true`, attachments are copied to the destination page. */
|
|
5
5
|
copyAttachments?: boolean;
|
|
@@ -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
|
export interface HorizontalHeaderLookAndFeel {
|
|
6
6
|
backgroundColor: string;
|
|
7
7
|
button?: ButtonLookAndFeel;
|
|
@@ -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';
|