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
|
@@ -7,7 +7,7 @@ class ContentChildrenAndDescendants {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getContentChildren(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}/child`,
|
|
13
13
|
method: 'GET',
|
|
@@ -16,20 +16,20 @@ class ContentChildrenAndDescendants {
|
|
|
16
16
|
parentVersion: parameters.parentVersion,
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
|
-
return this.client.sendRequest(config, callback
|
|
19
|
+
return this.client.sendRequest(config, callback);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
movePage(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}/move/${parameters.position}/${parameters.targetId}`,
|
|
26
26
|
method: 'PUT',
|
|
27
27
|
};
|
|
28
|
-
return this.client.sendRequest(config, callback
|
|
28
|
+
return this.client.sendRequest(config, callback);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
getContentChildrenByType(parameters, callback) {
|
|
32
|
-
return
|
|
32
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const config = {
|
|
34
34
|
url: `/api/content/${parameters.id}/child/${parameters.type}`,
|
|
35
35
|
method: 'GET',
|
|
@@ -39,11 +39,11 @@ class ContentChildrenAndDescendants {
|
|
|
39
39
|
limit: parameters.limit,
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
getContentDescendants(parameters, callback) {
|
|
46
|
-
return
|
|
46
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
47
47
|
const config = {
|
|
48
48
|
url: `/api/content/${parameters.id}/descendant`,
|
|
49
49
|
method: 'GET',
|
|
@@ -51,16 +51,16 @@ class ContentChildrenAndDescendants {
|
|
|
51
51
|
expand: parameters.expand,
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
|
-
return this.client.sendRequest(config, callback
|
|
54
|
+
return this.client.sendRequest(config, callback);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
descendantsOfType(parameters, callback) {
|
|
58
|
-
return
|
|
58
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
return this.getDescendantsOfType(parameters, callback);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
getDescendantsOfType(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}/descendant/${parameters.type}`,
|
|
66
66
|
method: 'GET',
|
|
@@ -71,11 +71,11 @@ class ContentChildrenAndDescendants {
|
|
|
71
71
|
expand: parameters.expand,
|
|
72
72
|
},
|
|
73
73
|
};
|
|
74
|
-
return this.client.sendRequest(config, callback
|
|
74
|
+
return this.client.sendRequest(config, callback);
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
copyPageHierarchy(parameters, callback) {
|
|
78
|
-
return
|
|
78
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
const config = {
|
|
80
80
|
url: `/api/content/${parameters.id}/pagehierarchy/copy`,
|
|
81
81
|
method: 'POST',
|
|
@@ -85,15 +85,16 @@ class ContentChildrenAndDescendants {
|
|
|
85
85
|
copyProperties: parameters.copyProperties,
|
|
86
86
|
copyLabels: parameters.copyLabels,
|
|
87
87
|
copyCustomContents: parameters.copyCustomContents,
|
|
88
|
+
copyDescendants: parameters.copyDescendants,
|
|
88
89
|
destinationPageId: parameters.destinationPageId,
|
|
89
90
|
titleOptions: parameters.titleOptions,
|
|
90
91
|
},
|
|
91
92
|
};
|
|
92
|
-
return this.client.sendRequest(config, callback
|
|
93
|
+
return this.client.sendRequest(config, callback);
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
copyPage(parameters, callback) {
|
|
96
|
-
return
|
|
97
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
97
98
|
const config = {
|
|
98
99
|
url: `/api/content/${parameters.id}/copy`,
|
|
99
100
|
method: 'POST',
|
|
@@ -102,7 +103,7 @@ class ContentChildrenAndDescendants {
|
|
|
102
103
|
},
|
|
103
104
|
data: parameters.bodyParameters,
|
|
104
105
|
};
|
|
105
|
-
return this.client.sendRequest(config, callback
|
|
106
|
+
return this.client.sendRequest(config, callback);
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -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 ContentComments {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class ContentComments {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getContentComments(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}/child/comment`,
|
|
13
13
|
method: 'GET',
|
|
@@ -19,7 +19,7 @@ class ContentComments {
|
|
|
19
19
|
depth: parameters.depth,
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
return this.client.sendRequest(config, callback
|
|
22
|
+
return this.client.sendRequest(config, callback);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as Models from './models';
|
|
2
|
+
import * as Parameters from './parameters';
|
|
3
|
+
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
|
+
export declare class ContentContentState {
|
|
6
|
+
private client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Gets the current page status of the draft or published version of content. To specify the draft version, set the
|
|
10
|
+
* parameter status to PUBLISHED, otherwise DRAFT.
|
|
11
|
+
*/
|
|
12
|
+
getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback: Callback<T>): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Gets the current page status of the draft or published version of content. To specify the draft version, set the
|
|
15
|
+
* parameter status to PUBLISHED, otherwise DRAFT.
|
|
16
|
+
*/
|
|
17
|
+
getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback?: never): Promise<T>;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the content state of the content specified and creates a new version (publishes the content without changing
|
|
20
|
+
* the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
|
|
21
|
+
* statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
|
|
22
|
+
* color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
|
|
23
|
+
* defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
|
|
24
|
+
* exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
|
|
25
|
+
* status with this name and color will be created. Color can be specified in traditional english colors (teal,
|
|
26
|
+
* magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
|
|
27
|
+
*/
|
|
28
|
+
setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback: Callback<T>): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the content state of the content specified and creates a new version (publishes the content without changing
|
|
31
|
+
* the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
|
|
32
|
+
* statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
|
|
33
|
+
* color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
|
|
34
|
+
* defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
|
|
35
|
+
* exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
|
|
36
|
+
* status with this name and color will be created. Color can be specified in traditional english colors (teal,
|
|
37
|
+
* magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
|
|
38
|
+
*/
|
|
39
|
+
setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback?: never): Promise<T>;
|
|
40
|
+
/**
|
|
41
|
+
* Removes the content state of the content specified and creates a new version (publishes the content without
|
|
42
|
+
* changing the body) of the content with the new status.
|
|
43
|
+
*/
|
|
44
|
+
removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback: Callback<T>): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Removes the content state of the content specified and creates a new version (publishes the content without
|
|
47
|
+
* changing the body) of the content with the new status.
|
|
48
|
+
*/
|
|
49
|
+
removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback?: never): Promise<T>;
|
|
50
|
+
/** Gets a Global Timestamp of the last time the content state was updated */
|
|
51
|
+
getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback: Callback<T>): Promise<void>;
|
|
52
|
+
/** Gets a Global Timestamp of the last time the content state was updated */
|
|
53
|
+
getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback?: never): Promise<T>;
|
|
54
|
+
/** Gets content states that are available for the content to be set as. */
|
|
55
|
+
getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback: Callback<T>): Promise<void>;
|
|
56
|
+
/** Gets content states that are available for the content to be set as. */
|
|
57
|
+
getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback?: never): Promise<T>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentContentState = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class ContentContentState {
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
}
|
|
9
|
+
getContentState(parameters, callback) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const config = {
|
|
12
|
+
url: `/api/content/${parameters.contentId}/state`,
|
|
13
|
+
method: 'GET',
|
|
14
|
+
params: {
|
|
15
|
+
designation: parameters.designation,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
return this.client.sendRequest(config, callback);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
setContentState(parameters, callback) {
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const config = {
|
|
24
|
+
url: `/api/content/${parameters.contentId}/state`,
|
|
25
|
+
method: 'PUT',
|
|
26
|
+
params: {
|
|
27
|
+
contentStateId: parameters.contentStateId,
|
|
28
|
+
name: parameters.name,
|
|
29
|
+
color: parameters.color,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
return this.client.sendRequest(config, callback);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
removeContentState(parameters, callback) {
|
|
36
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const config = {
|
|
38
|
+
url: `/api/content/${parameters.contentId}/state`,
|
|
39
|
+
method: 'DELETE',
|
|
40
|
+
};
|
|
41
|
+
return this.client.sendRequest(config, callback);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
getContentStateLastUpdated(parameters, callback) {
|
|
45
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const config = {
|
|
47
|
+
url: `/api/content/${parameters.contentId}/state/last-updated`,
|
|
48
|
+
method: 'GET',
|
|
49
|
+
};
|
|
50
|
+
return this.client.sendRequest(config, callback);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
getAvailableContentStates(parameters, callback) {
|
|
54
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const config = {
|
|
56
|
+
url: `/api/content/${parameters.contentId}/state/available-states`,
|
|
57
|
+
method: 'GET',
|
|
58
|
+
};
|
|
59
|
+
return this.client.sendRequest(config, callback);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.ContentContentState = ContentContentState;
|
|
@@ -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 ContentLabels {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/contentLabels.js
CHANGED
|
@@ -7,7 +7,7 @@ class ContentLabels {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getLabelsForContent(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}/label`,
|
|
13
13
|
method: 'GET',
|
|
@@ -17,11 +17,11 @@ class ContentLabels {
|
|
|
17
17
|
limit: parameters.limit,
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
|
-
return this.client.sendRequest(config, callback
|
|
20
|
+
return this.client.sendRequest(config, callback);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
addLabelsToContent(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}/label`,
|
|
27
27
|
method: 'POST',
|
|
@@ -30,11 +30,11 @@ class ContentLabels {
|
|
|
30
30
|
},
|
|
31
31
|
data: parameters.body,
|
|
32
32
|
};
|
|
33
|
-
return this.client.sendRequest(config, callback
|
|
33
|
+
return this.client.sendRequest(config, callback);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
removeLabelFromContentUsingQueryParameter(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}/label`,
|
|
40
40
|
method: 'DELETE',
|
|
@@ -42,16 +42,16 @@ class ContentLabels {
|
|
|
42
42
|
name: parameters.name,
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
|
-
return this.client.sendRequest(config, callback
|
|
45
|
+
return this.client.sendRequest(config, callback);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
removeLabelFromContent(parameters, callback) {
|
|
49
|
-
return
|
|
49
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
50
|
const config = {
|
|
51
51
|
url: `/api/content/${parameters.id}/label/${parameters.label}`,
|
|
52
52
|
method: 'DELETE',
|
|
53
53
|
};
|
|
54
|
-
return this.client.sendRequest(config, callback
|
|
54
|
+
return this.client.sendRequest(config, callback);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -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 ContentMacroBody {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,12 +7,12 @@ 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',
|
|
14
14
|
};
|
|
15
|
-
return this.client.sendRequest(config, callback
|
|
15
|
+
return this.client.sendRequest(config, callback);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -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',
|
|
@@ -21,7 +21,7 @@ class ContentPermissions {
|
|
|
21
21
|
operation: parameters.operation,
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
|
-
return this.client.sendRequest(config, callback
|
|
24
|
+
return this.client.sendRequest(config, callback);
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -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',
|
|
@@ -18,11 +18,11 @@ class ContentProperties {
|
|
|
18
18
|
limit: parameters.limit,
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
|
-
return this.client.sendRequest(config, callback
|
|
21
|
+
return this.client.sendRequest(config, callback);
|
|
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',
|
|
@@ -31,11 +31,11 @@ class ContentProperties {
|
|
|
31
31
|
value: parameters.value,
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
|
-
return this.client.sendRequest(config, callback
|
|
34
|
+
return this.client.sendRequest(config, callback);
|
|
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',
|
|
@@ -44,11 +44,11 @@ class ContentProperties {
|
|
|
44
44
|
status: parameters.status,
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
|
-
return this.client.sendRequest(config, callback
|
|
47
|
+
return this.client.sendRequest(config, callback);
|
|
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',
|
|
@@ -56,11 +56,11 @@ class ContentProperties {
|
|
|
56
56
|
value: parameters.value,
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
|
-
return this.client.sendRequest(config, callback
|
|
59
|
+
return this.client.sendRequest(config, callback);
|
|
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',
|
|
@@ -69,16 +69,16 @@ class ContentProperties {
|
|
|
69
69
|
version: parameters.version,
|
|
70
70
|
},
|
|
71
71
|
};
|
|
72
|
-
return this.client.sendRequest(config, callback
|
|
72
|
+
return this.client.sendRequest(config, callback);
|
|
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',
|
|
80
80
|
};
|
|
81
|
-
return this.client.sendRequest(config, callback
|
|
81
|
+
return this.client.sendRequest(config, callback);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -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);
|