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
|
@@ -3,8 +3,8 @@ var _BaseClient_instance;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.BaseClient = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
const axios_1 = require("axios");
|
|
7
6
|
const authenticationService_1 = require("../services/authenticationService");
|
|
7
|
+
const axios_1 = require("axios");
|
|
8
8
|
const ATLASSIAN_TOKEN_CHECK_FLAG = 'X-Atlassian-Token';
|
|
9
9
|
const ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE = 'no-check';
|
|
10
10
|
class BaseClient {
|
|
@@ -56,15 +56,15 @@ class BaseClient {
|
|
|
56
56
|
}
|
|
57
57
|
get instance() {
|
|
58
58
|
var _a;
|
|
59
|
-
if (
|
|
60
|
-
return
|
|
59
|
+
if (tslib_1.__classPrivateFieldGet(this, _BaseClient_instance, "f")) {
|
|
60
|
+
return tslib_1.__classPrivateFieldGet(this, _BaseClient_instance, "f");
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
return
|
|
62
|
+
tslib_1.__classPrivateFieldSet(this, _BaseClient_instance, axios_1.default.create(Object.assign(Object.assign({ paramsSerializer: this.paramSerializer.bind(this) }, this.config.baseRequestConfig), { baseURL: `${this.config.host}${this.urlSuffix}`, headers: this.removeUndefinedProperties(Object.assign({ [ATLASSIAN_TOKEN_CHECK_FLAG]: this.config.noCheckAtlassianToken ? ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE : undefined }, (_a = this.config.baseRequestConfig) === null || _a === void 0 ? void 0 : _a.headers)) })), "f");
|
|
63
|
+
return tslib_1.__classPrivateFieldGet(this, _BaseClient_instance, "f");
|
|
64
64
|
}
|
|
65
65
|
sendRequest(requestConfig, callback) {
|
|
66
66
|
var _a, _b, _c, _d;
|
|
67
|
-
return
|
|
67
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
68
68
|
try {
|
|
69
69
|
const modifiedRequestConfig = Object.assign(Object.assign({}, requestConfig), { headers: this.removeUndefinedProperties(Object.assign({ Authorization: yield authenticationService_1.AuthenticationService.getAuthenticationToken(this.config.authentication, {
|
|
70
70
|
baseURL: this.config.host,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { BaseClient } from './baseClient';
|
|
2
|
-
import { Audit, Content, ContentAttachments, ContentBody, ContentChildrenAndDescendants, ContentComments, ContentLabels, ContentMacroBody, ContentPermissions, ContentProperties, ContentRestrictions, ContentVersions, ContentWatches, DynamicModules, Experimental, Group, InlineTasks, LabelInfo, LongRunningTask, Relation, Search, Settings, Space, SpacePermissions, SpaceProperties, SpaceSettings, Template, Themes, Users } from '../api';
|
|
2
|
+
import { Analytics, Audit, Content, ContentAttachments, ContentBody, ContentChildrenAndDescendants, ContentComments, ContentContentState, ContentLabels, ContentMacroBody, ContentPermissions, ContentProperties, ContentRestrictions, ContentVersions, ContentWatches, DynamicModules, Experimental, Group, InlineTasks, LabelInfo, LongRunningTask, Relation, Search, Settings, Space, SpacePermissions, SpaceProperties, SpaceSettings, Template, Themes, Users } from '../api';
|
|
3
3
|
export declare class ConfluenceClient extends BaseClient {
|
|
4
|
+
analytics: Analytics;
|
|
4
5
|
audit: Audit;
|
|
5
6
|
content: Content;
|
|
6
7
|
contentAttachments: ContentAttachments;
|
|
7
8
|
contentBody: ContentBody;
|
|
8
9
|
contentChildrenAndDescendants: ContentChildrenAndDescendants;
|
|
9
10
|
contentComments: ContentComments;
|
|
11
|
+
contentContentState: ContentContentState;
|
|
10
12
|
contentLabels: ContentLabels;
|
|
11
13
|
contentMacroBody: ContentMacroBody;
|
|
12
14
|
contentPermissions: ContentPermissions;
|
|
@@ -6,12 +6,14 @@ const api_1 = require("../api");
|
|
|
6
6
|
class ConfluenceClient extends baseClient_1.BaseClient {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
|
+
this.analytics = new api_1.Analytics(this);
|
|
9
10
|
this.audit = new api_1.Audit(this);
|
|
10
11
|
this.content = new api_1.Content(this);
|
|
11
12
|
this.contentAttachments = new api_1.ContentAttachments(this);
|
|
12
13
|
this.contentBody = new api_1.ContentBody(this);
|
|
13
14
|
this.contentChildrenAndDescendants = new api_1.ContentChildrenAndDescendants(this);
|
|
14
15
|
this.contentComments = new api_1.ContentComments(this);
|
|
16
|
+
this.contentContentState = new api_1.ContentContentState(this);
|
|
15
17
|
this.contentLabels = new api_1.ContentLabels(this);
|
|
16
18
|
this.contentMacroBody = new api_1.ContentMacroBody(this);
|
|
17
19
|
this.contentPermissions = new api_1.ContentPermissions(this);
|
package/out/clients/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./baseClient"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./client"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./confluenceClient"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./serverClient"), exports);
|
package/out/config.d.ts
CHANGED
|
@@ -20,11 +20,13 @@ export declare namespace Config {
|
|
|
20
20
|
type Telemetry = boolean | any;
|
|
21
21
|
type Authentication = UtilityTypes.XOR<{
|
|
22
22
|
jwt: Authentication.JWT;
|
|
23
|
+
}, UtilityTypes.XOR<{
|
|
24
|
+
personalAccessToken: Authentication.PersonalAccessToken;
|
|
23
25
|
}, UtilityTypes.XOR<{
|
|
24
26
|
basic: Authentication.Basic;
|
|
25
27
|
}, {
|
|
26
28
|
oauth2: Authentication.OAuth2;
|
|
27
|
-
}
|
|
29
|
+
}>>>;
|
|
28
30
|
interface Middlewares {
|
|
29
31
|
onError?: Config.Middlewares.OnErrorHandler;
|
|
30
32
|
onResponse?: Config.Middlewares.OnResponseHandler;
|
|
@@ -34,10 +36,11 @@ export declare namespace Config {
|
|
|
34
36
|
type OnResponseHandler = (data: any) => void;
|
|
35
37
|
}
|
|
36
38
|
namespace Authentication {
|
|
39
|
+
type PersonalAccessToken = string;
|
|
37
40
|
type JWT = {
|
|
38
41
|
/** The key from the app descriptor. */
|
|
39
42
|
issuer: string;
|
|
40
|
-
/** The
|
|
43
|
+
/** The shared secret key received during the app installation handshake */
|
|
41
44
|
secret: string;
|
|
42
45
|
/** Token expiry time (default 3 minutes after issuing) */
|
|
43
46
|
expiryTimeSeconds?: number;
|
package/out/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Parameters = exports.Models = exports.Server = exports.Api = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
tslib_1.__exportStar(require("./clients"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./config"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./requestConfig"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./callback"), exports);
|
|
9
9
|
exports.Api = require("./api");
|
|
10
10
|
exports.Server = require("./server");
|
|
11
11
|
exports.Models = require("./api/models");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function paramSerializer(key: string, values?: string | string[]): "" | (() => string) | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paramSerializer = void 0;
|
|
4
|
+
function paramSerializer(key, values) {
|
|
5
|
+
if (typeof values === 'string') {
|
|
6
|
+
return () => `${key}=${values}`;
|
|
7
|
+
}
|
|
8
|
+
if (!values) {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
if (!values.length) {
|
|
12
|
+
return '';
|
|
13
|
+
}
|
|
14
|
+
return () => values.map((value) => `${key}=${value}`).join('&');
|
|
15
|
+
}
|
|
16
|
+
exports.paramSerializer = paramSerializer;
|
package/out/server/audit.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
|
import { Pagination } from '../pagination';
|
|
6
6
|
export declare class Audit {
|
|
7
7
|
private client;
|
package/out/server/audit.js
CHANGED
|
@@ -7,7 +7,7 @@ class Audit {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getAuditRecords(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/rest/api/audit',
|
|
13
13
|
method: 'GET',
|
|
@@ -23,7 +23,7 @@ class Audit {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
createAuditRecord(parameters, callback) {
|
|
26
|
-
return
|
|
26
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
const config = {
|
|
28
28
|
url: '/rest/api/audit',
|
|
29
29
|
method: 'POST',
|
|
@@ -44,7 +44,7 @@ class Audit {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
exportAuditRecords(parameters, callback) {
|
|
47
|
-
return
|
|
47
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
48
|
const config = {
|
|
49
49
|
url: '/rest/api/audit/export',
|
|
50
50
|
method: 'GET',
|
|
@@ -59,7 +59,7 @@ class Audit {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
getRetentionPeriod(callback) {
|
|
62
|
-
return
|
|
62
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const config = {
|
|
64
64
|
url: '/rest/api/audit/retention',
|
|
65
65
|
method: 'GET',
|
|
@@ -68,7 +68,7 @@ class Audit {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
setRetentionPeriod(parameters, callback) {
|
|
71
|
-
return
|
|
71
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
const config = {
|
|
73
73
|
url: '/rest/api/audit/retention',
|
|
74
74
|
method: 'PUT',
|
|
@@ -81,7 +81,7 @@ class Audit {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
getAuditRecordsForTimePeriod(parameters, callback) {
|
|
84
|
-
return
|
|
84
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
const config = {
|
|
86
86
|
url: '/rest/api/audit/since',
|
|
87
87
|
method: 'GET',
|
package/out/server/content.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
|
import { Pagination } from '../pagination';
|
|
6
6
|
export declare class Content {
|
|
7
7
|
private client;
|
package/out/server/content.js
CHANGED
|
@@ -7,7 +7,7 @@ class Content {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getContent(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/rest/api/content',
|
|
13
13
|
method: 'GET',
|
|
@@ -26,7 +26,7 @@ class Content {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
createContent(parameters, callback) {
|
|
29
|
-
return
|
|
29
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const config = {
|
|
31
31
|
url: '/rest/api/content',
|
|
32
32
|
method: 'POST',
|
|
@@ -40,7 +40,7 @@ class Content {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
updateContent(parameters, callback) {
|
|
43
|
-
return
|
|
43
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
const config = {
|
|
45
45
|
url: `/rest/api/content/${parameters.id}`,
|
|
46
46
|
method: 'PUT',
|
|
@@ -54,7 +54,7 @@ class Content {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
getContentById(parameters, callback) {
|
|
57
|
-
return
|
|
57
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
const config = {
|
|
59
59
|
url: `/rest/api/content/${parameters.id}`,
|
|
60
60
|
method: 'GET',
|
|
@@ -68,7 +68,7 @@ class Content {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
deleteContent(parameters, callback) {
|
|
71
|
-
return
|
|
71
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
const config = {
|
|
73
73
|
url: `/rest/api/content/${parameters.id}`,
|
|
74
74
|
method: 'DELETE',
|
|
@@ -80,7 +80,7 @@ class Content {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
getHistory(parameters, callback) {
|
|
83
|
-
return
|
|
83
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
const config = {
|
|
85
85
|
url: `/rest/api/content/${parameters.id}/history`,
|
|
86
86
|
method: 'GET',
|
|
@@ -92,7 +92,7 @@ class Content {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
getMacroBodyByHash(parameters, callback) {
|
|
95
|
-
return
|
|
95
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
96
96
|
const config = {
|
|
97
97
|
url: `/rest/api/content/${parameters.id}/history/${parameters.version}/macro/hash/${parameters.hash}`,
|
|
98
98
|
method: 'GET',
|
|
@@ -101,7 +101,7 @@ class Content {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
getMacroBodyByMacroId(parameters, callback) {
|
|
104
|
-
return
|
|
104
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
105
105
|
const config = {
|
|
106
106
|
url: `/rest/api/content/${parameters.id}/history/${parameters.version}/macro/id/${parameters.macroId}`,
|
|
107
107
|
method: 'GET',
|
|
@@ -110,7 +110,7 @@ class Content {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
searchContent(parameters, callback) {
|
|
113
|
-
return
|
|
113
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
114
114
|
const config = {
|
|
115
115
|
url: '/rest/api/content/search',
|
|
116
116
|
method: 'GET',
|
|
@@ -126,7 +126,7 @@ class Content {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
getContentChildren(parameters, callback) {
|
|
129
|
-
return
|
|
129
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
130
130
|
const config = {
|
|
131
131
|
url: `/rest/api/content/${parameters.id}/child`,
|
|
132
132
|
method: 'GET',
|
|
@@ -141,7 +141,7 @@ class Content {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
getContentChildrenByType(parameters, callback) {
|
|
144
|
-
return
|
|
144
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
145
145
|
const config = {
|
|
146
146
|
url: `/rest/api/content/${parameters.id}/child/${parameters.type}`,
|
|
147
147
|
method: 'GET',
|
|
@@ -156,7 +156,7 @@ class Content {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
getContentComments(parameters, callback) {
|
|
159
|
-
return
|
|
159
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
160
160
|
const config = {
|
|
161
161
|
url: `/rest/api/content/${parameters.id}/child/comment`,
|
|
162
162
|
method: 'GET',
|
|
@@ -173,7 +173,7 @@ class Content {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
getAttachments(parameters, callback) {
|
|
176
|
-
return
|
|
176
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
177
177
|
const config = {
|
|
178
178
|
url: `/rest/api/content/${parameters.id}/child/attachment`,
|
|
179
179
|
method: 'GET',
|
|
@@ -189,7 +189,7 @@ class Content {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
createAttachments(parameters, callback) {
|
|
192
|
-
return
|
|
192
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
193
193
|
const config = {
|
|
194
194
|
url: `/rest/api/content/${parameters.id}/child/attachment`,
|
|
195
195
|
method: 'POST',
|
|
@@ -202,7 +202,7 @@ class Content {
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
updateAttachmentProperties(parameters, callback) {
|
|
205
|
-
return
|
|
205
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
206
206
|
const config = {
|
|
207
207
|
url: `/rest/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}`,
|
|
208
208
|
method: 'PUT',
|
|
@@ -212,7 +212,7 @@ class Content {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
updateAttachmentData(parameters, callback) {
|
|
215
|
-
return
|
|
215
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
216
216
|
const config = {
|
|
217
217
|
url: `/rest/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}/data`,
|
|
218
218
|
method: 'POST',
|
|
@@ -222,7 +222,7 @@ class Content {
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
getContentDescendants(parameters, callback) {
|
|
225
|
-
return
|
|
225
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
226
226
|
const config = {
|
|
227
227
|
url: `/rest/api/content/${parameters.id}/descendant`,
|
|
228
228
|
method: 'GET',
|
|
@@ -234,7 +234,7 @@ class Content {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
getContentDescendantsOfType(parameters, callback) {
|
|
237
|
-
return
|
|
237
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
238
238
|
const config = {
|
|
239
239
|
url: `/rest/api/content/${parameters.id}/descendant/${parameters.type}`,
|
|
240
240
|
method: 'GET',
|
|
@@ -248,7 +248,7 @@ class Content {
|
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
getContentLabels(parameters, callback) {
|
|
251
|
-
return
|
|
251
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
252
252
|
const config = {
|
|
253
253
|
url: `/rest/api/content/${parameters.id}/label`,
|
|
254
254
|
method: 'GET',
|
|
@@ -262,7 +262,7 @@ class Content {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
addLabelsToContent(parameters, callback) {
|
|
265
|
-
return
|
|
265
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
266
266
|
const config = {
|
|
267
267
|
url: `/rest/api/content/${parameters.id}/label`,
|
|
268
268
|
method: 'POST',
|
|
@@ -272,7 +272,7 @@ class Content {
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
deleteLabelWithQueryParam(parameters, callback) {
|
|
275
|
-
return
|
|
275
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
276
276
|
const config = {
|
|
277
277
|
url: `/rest/api/content/${parameters.id}/label`,
|
|
278
278
|
method: 'DELETE',
|
|
@@ -284,7 +284,7 @@ class Content {
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
deleteLabel(parameters, callback) {
|
|
287
|
-
return
|
|
287
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
288
288
|
const config = {
|
|
289
289
|
url: `/rest/api/content/${parameters.id}/label/${parameters.labelId}`,
|
|
290
290
|
method: 'DELETE',
|
|
@@ -293,7 +293,7 @@ class Content {
|
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
295
|
getContentProperties(parameters, callback) {
|
|
296
|
-
return
|
|
296
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
297
297
|
const config = {
|
|
298
298
|
url: `/rest/api/content/${parameters.id}/property`,
|
|
299
299
|
method: 'GET',
|
|
@@ -307,7 +307,7 @@ class Content {
|
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
createContentProperty(parameters, callback) {
|
|
310
|
-
return
|
|
310
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
311
311
|
const config = {
|
|
312
312
|
url: `/rest/api/content/${parameters.id}/property`,
|
|
313
313
|
method: 'POST',
|
|
@@ -320,7 +320,7 @@ class Content {
|
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
getContentProperty(parameters, callback) {
|
|
323
|
-
return
|
|
323
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
324
324
|
const config = {
|
|
325
325
|
url: `/rest/api/content/${parameters.id}/property/${parameters.key}`,
|
|
326
326
|
method: 'GET',
|
|
@@ -332,7 +332,7 @@ class Content {
|
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
createContentPropertyForKey(parameters, callback) {
|
|
335
|
-
return
|
|
335
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
336
336
|
const config = {
|
|
337
337
|
url: `/rest/api/content/${parameters.id}/property/${parameters.key}`,
|
|
338
338
|
method: 'POST',
|
|
@@ -344,7 +344,7 @@ class Content {
|
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
updateContentProperty(parameters, callback) {
|
|
347
|
-
return
|
|
347
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
348
348
|
const config = {
|
|
349
349
|
url: `/rest/api/content/${parameters.id}/property/${parameters.key}`,
|
|
350
350
|
method: 'PUT',
|
|
@@ -357,7 +357,7 @@ class Content {
|
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
deleteContentProperty(parameters, callback) {
|
|
360
|
-
return
|
|
360
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
361
361
|
const config = {
|
|
362
362
|
url: `/rest/api/content/${parameters.id}/property/${parameters.key}`,
|
|
363
363
|
method: 'DELETE',
|
|
@@ -366,7 +366,7 @@ class Content {
|
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
getRestrictionsByOperation(parameters, callback) {
|
|
369
|
-
return
|
|
369
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
370
370
|
const config = {
|
|
371
371
|
url: `/rest/api/content/${parameters.id}/restriction/byOperation`,
|
|
372
372
|
method: 'GET',
|
|
@@ -378,7 +378,7 @@ class Content {
|
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
getRestrictionsForOperation(parameters, callback) {
|
|
381
|
-
return
|
|
381
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
382
382
|
const config = {
|
|
383
383
|
url: `/rest/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}`,
|
|
384
384
|
method: 'GET',
|
|
@@ -392,7 +392,7 @@ class Content {
|
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
publishLegacyDraft(parameters, callback) {
|
|
395
|
-
return
|
|
395
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
396
396
|
const config = {
|
|
397
397
|
url: `/rest/api/content/blueprint/instance/${parameters.draftId}`,
|
|
398
398
|
method: 'POST',
|
|
@@ -405,7 +405,7 @@ class Content {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
publishSharedDraft(parameters, callback) {
|
|
408
|
-
return
|
|
408
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
409
409
|
const config = {
|
|
410
410
|
url: `/rest/api/content/blueprint/instance/${parameters.draftId}`,
|
|
411
411
|
method: 'PUT',
|
|
@@ -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 ContentBody {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class ContentBody {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
convertContentBody(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/rest/api/contentbody/convert/${parameters.to}`,
|
|
13
13
|
method: 'POST',
|
package/out/server/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
|
import { Pagination } from '../pagination';
|
|
6
6
|
export declare class Group {
|
|
7
7
|
private client;
|
package/out/server/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: '/rest/api/group',
|
|
13
13
|
method: 'GET',
|
|
@@ -21,7 +21,7 @@ class Group {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
getGroup(parameters, callback) {
|
|
24
|
-
return
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const config = {
|
|
26
26
|
url: `/rest/api/group/${parameters.groupName}`,
|
|
27
27
|
method: 'GET',
|
|
@@ -33,7 +33,7 @@ class Group {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
getMembers(parameters, callback) {
|
|
36
|
-
return
|
|
36
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const config = {
|
|
38
38
|
url: `/rest/api/group/${parameters.groupName}/member`,
|
|
39
39
|
method: 'GET',
|
package/out/server/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./audit"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./content"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./contentBody"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./group"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./longTask"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./search"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./space"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./user"), exports);
|
package/out/server/longTask.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
|
import { Pagination } from '../pagination';
|
|
6
6
|
export declare class LongTask {
|
|
7
7
|
private client;
|
package/out/server/longTask.js
CHANGED
|
@@ -7,7 +7,7 @@ class LongTask {
|
|
|
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: '/rest/api/longtask',
|
|
13
13
|
method: 'GET',
|
|
@@ -21,7 +21,7 @@ class LongTask {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
getTask(parameters, callback) {
|
|
24
|
-
return
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const config = {
|
|
26
26
|
url: `/rest/api/longtask/${parameters.id}`,
|
|
27
27
|
method: 'GET',
|
|
@@ -1,12 +1,12 @@
|
|
|
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';
|
|
7
|
+
import { OperationCheckResult } from './operationCheckResult';
|
|
8
|
+
import { Space } from './space';
|
|
9
|
+
import { Version } from './version';
|
|
10
10
|
/** Base object for all content types. */
|
|
11
11
|
export interface Content {
|
|
12
12
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Version } from './version';
|
|
2
|
-
import { UsersUserKeys } from './usersUserKeys';
|
|
3
1
|
import { User } from './user';
|
|
2
|
+
import { UsersUserKeys } from './usersUserKeys';
|
|
3
|
+
import { Version } from './version';
|
|
4
4
|
export interface ContentHistory {
|
|
5
5
|
latest: boolean;
|
|
6
6
|
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;
|