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/relation.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 Relation {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/relation.js
CHANGED
|
@@ -7,7 +7,7 @@ class Relation {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
findTargetFromSource(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}`,
|
|
13
13
|
method: 'GET',
|
|
@@ -25,12 +25,12 @@ class Relation {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
GetRelationship(parameters, callback) {
|
|
28
|
-
return
|
|
28
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
return this.getRelationship(parameters, callback);
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
getRelationship(parameters, callback) {
|
|
33
|
-
return
|
|
33
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const config = {
|
|
35
35
|
url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,
|
|
36
36
|
method: 'GET',
|
|
@@ -46,7 +46,7 @@ class Relation {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
createRelationship(parameters, callback) {
|
|
49
|
-
return
|
|
49
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
50
|
const config = {
|
|
51
51
|
url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,
|
|
52
52
|
method: 'PUT',
|
|
@@ -61,12 +61,12 @@ class Relation {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
delete(parameters, callback) {
|
|
64
|
-
return
|
|
64
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
return this.deleteRelationship(parameters, callback);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
deleteRelationship(parameters, callback) {
|
|
69
|
-
return
|
|
69
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
const config = {
|
|
71
71
|
url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,
|
|
72
72
|
method: 'DELETE',
|
|
@@ -81,7 +81,7 @@ class Relation {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
findSourcesForTarget(parameters, callback) {
|
|
84
|
-
return
|
|
84
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
const config = {
|
|
86
86
|
url: `/api/relation/${parameters.relationName}/to/${parameters.targetType}/${parameters.targetKey}/from/${parameters.sourceType}`,
|
|
87
87
|
method: 'GET',
|
package/out/api/search.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 Search {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/search.js
CHANGED
|
@@ -7,12 +7,12 @@ class Search {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
search(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
return this.searchByCQL(parameters, callback);
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
searchByCQL(parameters, callback) {
|
|
15
|
-
return
|
|
15
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
const config = {
|
|
17
17
|
url: '/api/search',
|
|
18
18
|
method: 'GET',
|
|
@@ -35,12 +35,12 @@ class Search {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
userSearch(parameters, callback) {
|
|
38
|
-
return
|
|
38
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
return this.searchUser(parameters, callback);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
searchUser(parameters, callback) {
|
|
43
|
-
return
|
|
43
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
const config = {
|
|
45
45
|
url: '/api/search/user',
|
|
46
46
|
method: 'GET',
|
package/out/api/settings.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 Settings {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -103,4 +103,8 @@ export declare class Settings {
|
|
|
103
103
|
* ('Can use' global permission).
|
|
104
104
|
*/
|
|
105
105
|
getSystemInfo<T = Models.SystemInfoEntity>(callback?: never): Promise<T>;
|
|
106
|
+
/** Gets Content State settings for a space */
|
|
107
|
+
getContentStateSettings<T = Models.ContentStateSettings>(parameters: Parameters.GetContentStateSettings, callback: Callback<T>): Promise<void>;
|
|
108
|
+
/** Gets Content State settings for a space */
|
|
109
|
+
getContentStateSettings<T = Models.ContentStateSettings>(parameters: Parameters.GetContentStateSettings, callback?: never): Promise<T>;
|
|
106
110
|
}
|
package/out/api/settings.js
CHANGED
|
@@ -7,7 +7,7 @@ class Settings {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getLookAndFeelSettings(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/settings/lookandfeel',
|
|
13
13
|
method: 'GET',
|
|
@@ -19,7 +19,7 @@ class Settings {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
updateLookAndFeel(parameters, callback) {
|
|
22
|
-
return
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const config = {
|
|
24
24
|
url: '/api/settings/lookandfeel',
|
|
25
25
|
method: 'PUT',
|
|
@@ -32,7 +32,7 @@ class Settings {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
updateLookAndFeelSettings(parameters, callback) {
|
|
35
|
-
return
|
|
35
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
const config = {
|
|
37
37
|
url: '/api/settings/lookandfeel/custom',
|
|
38
38
|
method: 'POST',
|
|
@@ -55,7 +55,7 @@ class Settings {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
resetLookAndFeelSettings(parameters, callback) {
|
|
58
|
-
return
|
|
58
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
const config = {
|
|
60
60
|
url: '/api/settings/lookandfeel/custom',
|
|
61
61
|
method: 'DELETE',
|
|
@@ -67,7 +67,7 @@ class Settings {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
setLookAndFeelSettings(parameters, callback) {
|
|
70
|
-
return
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
const config = {
|
|
72
72
|
url: '/api/settings/lookandfeel/selected',
|
|
73
73
|
method: 'PUT',
|
|
@@ -79,7 +79,7 @@ class Settings {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
getSystemInfo(callback) {
|
|
82
|
-
return
|
|
82
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
83
|
const config = {
|
|
84
84
|
url: '/api/settings/systemInfo',
|
|
85
85
|
method: 'GET',
|
|
@@ -87,5 +87,14 @@ class Settings {
|
|
|
87
87
|
return this.client.sendRequest(config, callback);
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
+
getContentStateSettings(parameters, callback) {
|
|
91
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const config = {
|
|
93
|
+
url: `/api/space/${parameters.spaceKey}/state/settings`,
|
|
94
|
+
method: 'GET',
|
|
95
|
+
};
|
|
96
|
+
return this.client.sendRequest(config, callback);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
90
99
|
}
|
|
91
100
|
exports.Settings = Settings;
|
package/out/api/space.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 Space {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/space.js
CHANGED
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Space = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const paramSerializer_1 = require("../paramSerializer");
|
|
5
6
|
class Space {
|
|
6
7
|
constructor(client) {
|
|
7
8
|
this.client = client;
|
|
8
9
|
}
|
|
9
10
|
getSpaces(parameters, callback) {
|
|
10
|
-
return
|
|
11
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
12
|
const config = {
|
|
12
13
|
url: '/api/space',
|
|
13
14
|
method: 'GET',
|
|
14
15
|
params: {
|
|
15
|
-
spaceKey: ()
|
|
16
|
+
spaceKey: (0, paramSerializer_1.paramSerializer)('spaceKey', parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey),
|
|
16
17
|
spaceId: parameters === null || parameters === void 0 ? void 0 : parameters.spaceId,
|
|
17
18
|
type: parameters === null || parameters === void 0 ? void 0 : parameters.type,
|
|
18
19
|
status: parameters === null || parameters === void 0 ? void 0 : parameters.status,
|
|
@@ -27,7 +28,7 @@ class Space {
|
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
30
|
createSpace(parameters, callback) {
|
|
30
|
-
return
|
|
31
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
31
32
|
const config = {
|
|
32
33
|
url: '/api/space',
|
|
33
34
|
method: 'POST',
|
|
@@ -42,7 +43,7 @@ class Space {
|
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
createPrivateSpace(parameters, callback) {
|
|
45
|
-
return
|
|
46
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
47
|
const config = {
|
|
47
48
|
url: '/api/space/_private',
|
|
48
49
|
method: 'POST',
|
|
@@ -57,16 +58,19 @@ class Space {
|
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
getSpace(parameters, callback) {
|
|
60
|
-
return
|
|
61
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
62
|
const config = {
|
|
62
63
|
url: `/api/space/${parameters.spaceKey}`,
|
|
63
64
|
method: 'GET',
|
|
65
|
+
params: {
|
|
66
|
+
expand: parameters.expand,
|
|
67
|
+
},
|
|
64
68
|
};
|
|
65
69
|
return this.client.sendRequest(config, callback);
|
|
66
70
|
});
|
|
67
71
|
}
|
|
68
72
|
updateSpace(parameters, callback) {
|
|
69
|
-
return
|
|
73
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
74
|
const config = {
|
|
71
75
|
url: `/api/space/${parameters.spaceKey}`,
|
|
72
76
|
method: 'PUT',
|
|
@@ -82,7 +86,7 @@ class Space {
|
|
|
82
86
|
});
|
|
83
87
|
}
|
|
84
88
|
deleteSpace(parameters, callback) {
|
|
85
|
-
return
|
|
89
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
86
90
|
const config = {
|
|
87
91
|
url: `/api/space/${parameters.spaceKey}`,
|
|
88
92
|
method: 'DELETE',
|
|
@@ -91,7 +95,7 @@ class Space {
|
|
|
91
95
|
});
|
|
92
96
|
}
|
|
93
97
|
getContentForSpace(parameters, callback) {
|
|
94
|
-
return
|
|
98
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
95
99
|
const config = {
|
|
96
100
|
url: `/api/space/${parameters.spaceKey}/content`,
|
|
97
101
|
method: 'GET',
|
|
@@ -105,7 +109,7 @@ class Space {
|
|
|
105
109
|
});
|
|
106
110
|
}
|
|
107
111
|
getContentByTypeForSpace(parameters, callback) {
|
|
108
|
-
return
|
|
112
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
109
113
|
const config = {
|
|
110
114
|
url: `/api/space/${parameters.spaceKey}/content/${parameters.type}`,
|
|
111
115
|
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 SpacePermissions {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,12 +7,12 @@ class SpacePermissions {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
addPermission(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
return this.addPermissionToSpace(parameters, callback);
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
addPermissionToSpace(parameters, callback) {
|
|
15
|
-
return
|
|
15
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
const config = {
|
|
17
17
|
url: `/api/space/${parameters.spaceKey}/permission`,
|
|
18
18
|
method: 'POST',
|
|
@@ -26,7 +26,7 @@ class SpacePermissions {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
addCustomContentPermissions(parameters, callback) {
|
|
29
|
-
return
|
|
29
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const config = {
|
|
31
31
|
url: `/api/space/${parameters.spaceKey}/permission/custom-content`,
|
|
32
32
|
method: 'POST',
|
|
@@ -39,7 +39,7 @@ class SpacePermissions {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
removePermission(parameters, callback) {
|
|
42
|
-
return
|
|
42
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
43
|
const config = {
|
|
44
44
|
url: `/api/space/${parameters.spaceKey}/permission/${parameters.id}`,
|
|
45
45
|
method: 'DELETE',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
export declare class SpaceProperties {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -7,7 +7,7 @@ class SpaceProperties {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getSpaceProperties(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/space/${parameters.spaceKey}/property`,
|
|
13
13
|
method: 'GET',
|
|
@@ -21,7 +21,7 @@ class SpaceProperties {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
createSpaceProperty(parameters, callback) {
|
|
24
|
-
return
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const config = {
|
|
26
26
|
url: `/api/space/${parameters.spaceKey}/property`,
|
|
27
27
|
method: 'POST',
|
|
@@ -35,7 +35,7 @@ class SpaceProperties {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
getSpaceProperty(parameters, callback) {
|
|
38
|
-
return
|
|
38
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const config = {
|
|
40
40
|
url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
41
41
|
method: 'GET',
|
|
@@ -47,7 +47,7 @@ class SpaceProperties {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
createSpacePropertyForKey(parameters, callback) {
|
|
50
|
-
return
|
|
50
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
const config = {
|
|
52
52
|
url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
53
53
|
method: 'POST',
|
|
@@ -59,7 +59,7 @@ class SpaceProperties {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
updateSpaceProperty(parameters, callback) {
|
|
62
|
-
return
|
|
62
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const config = {
|
|
64
64
|
url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
65
65
|
method: 'PUT',
|
|
@@ -72,7 +72,7 @@ class SpaceProperties {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
deleteSpaceProperty(parameters, callback) {
|
|
75
|
-
return
|
|
75
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
76
76
|
const config = {
|
|
77
77
|
url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
78
78
|
method: 'DELETE',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
export declare class SpaceSettings {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/spaceSettings.js
CHANGED
|
@@ -7,7 +7,7 @@ class SpaceSettings {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getSpaceSettings(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/space/${parameters.spaceKey}/settings`,
|
|
13
13
|
method: 'GET',
|
|
@@ -16,7 +16,7 @@ class SpaceSettings {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
updateSpaceSettings(parameters, callback) {
|
|
19
|
-
return
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const config = {
|
|
21
21
|
url: `/api/space/${parameters.spaceKey}/settings`,
|
|
22
22
|
method: 'PUT',
|
package/out/api/template.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 Template {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/template.js
CHANGED
|
@@ -7,7 +7,7 @@ class Template {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
createContentTemplate(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/template',
|
|
13
13
|
method: 'POST',
|
|
@@ -24,7 +24,7 @@ class Template {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
updateContentTemplate(parameters, callback) {
|
|
27
|
-
return
|
|
27
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const config = {
|
|
29
29
|
url: '/api/template',
|
|
30
30
|
method: 'PUT',
|
|
@@ -42,7 +42,7 @@ class Template {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
getBlueprintTemplates(parameters, callback) {
|
|
45
|
-
return
|
|
45
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
const config = {
|
|
47
47
|
url: '/api/template/blueprint',
|
|
48
48
|
method: 'GET',
|
|
@@ -57,7 +57,7 @@ class Template {
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
getContentTemplates(parameters, callback) {
|
|
60
|
-
return
|
|
60
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const config = {
|
|
62
62
|
url: '/api/template/page',
|
|
63
63
|
method: 'GET',
|
|
@@ -72,7 +72,7 @@ class Template {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
getContentTemplate(parameters, callback) {
|
|
75
|
-
return
|
|
75
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
76
76
|
const config = {
|
|
77
77
|
url: `/api/template/${parameters.contentTemplateId}`,
|
|
78
78
|
method: 'GET',
|
|
@@ -81,7 +81,7 @@ class Template {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
removeTemplate(parameters, callback) {
|
|
84
|
-
return
|
|
84
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
const config = {
|
|
86
86
|
url: `/api/template/${parameters.contentTemplateId}`,
|
|
87
87
|
method: 'DELETE',
|
package/out/api/themes.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 Themes {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/themes.js
CHANGED
|
@@ -7,7 +7,7 @@ class Themes {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getThemes(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/settings/theme',
|
|
13
13
|
method: 'GET',
|
|
@@ -20,7 +20,7 @@ class Themes {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
getGlobalTheme(callback) {
|
|
23
|
-
return
|
|
23
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const config = {
|
|
25
25
|
url: '/api/settings/theme/selected',
|
|
26
26
|
method: 'GET',
|
|
@@ -29,7 +29,7 @@ class Themes {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
getTheme(parameters, callback) {
|
|
32
|
-
return
|
|
32
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const config = {
|
|
34
34
|
url: `/api/settings/theme/${parameters.themeKey}`,
|
|
35
35
|
method: 'GET',
|
|
@@ -38,7 +38,7 @@ class Themes {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
getSpaceTheme(parameters, callback) {
|
|
41
|
-
return
|
|
41
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
const config = {
|
|
43
43
|
url: `/api/space/${parameters.spaceKey}/theme`,
|
|
44
44
|
method: 'GET',
|
|
@@ -47,7 +47,7 @@ class Themes {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
setSpaceTheme(parameters, callback) {
|
|
50
|
-
return
|
|
50
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
const config = {
|
|
52
52
|
url: `/api/space/${parameters.spaceKey}/theme`,
|
|
53
53
|
method: 'PUT',
|
|
@@ -59,7 +59,7 @@ class Themes {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
resetSpaceTheme(parameters, callback) {
|
|
62
|
-
return
|
|
62
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const config = {
|
|
64
64
|
url: `/api/space/${parameters.spaceKey}/theme`,
|
|
65
65
|
method: 'DELETE',
|
package/out/api/users.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 Users {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -63,14 +63,14 @@ export declare class Users {
|
|
|
63
63
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
64
64
|
* ('Can use' global permission).
|
|
65
65
|
*/
|
|
66
|
-
getGroupMembershipsForUser<T = Models.
|
|
66
|
+
getGroupMembershipsForUser<T = Models.GroupArrayWithLinks>(parameters: Parameters.GetGroupMembershipsForUser, callback: Callback<T>): Promise<void>;
|
|
67
67
|
/**
|
|
68
68
|
* Returns the groups that a user is a member of.
|
|
69
69
|
*
|
|
70
70
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
71
71
|
* ('Can use' global permission).
|
|
72
72
|
*/
|
|
73
|
-
getGroupMembershipsForUser<T = Models.
|
|
73
|
+
getGroupMembershipsForUser<T = Models.GroupArrayWithLinks>(parameters: Parameters.GetGroupMembershipsForUser, callback?: never): Promise<T>;
|
|
74
74
|
/**
|
|
75
75
|
* Returns user details for the ids provided in request.
|
|
76
76
|
*
|
package/out/api/users.js
CHANGED
|
@@ -7,7 +7,7 @@ class Users {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getUser(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/api/user',
|
|
13
13
|
method: 'GET',
|
|
@@ -22,7 +22,7 @@ class Users {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
getAnonymousUser(parameters, callback) {
|
|
25
|
-
return
|
|
25
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
26
|
const config = {
|
|
27
27
|
url: '/api/user/anonymous',
|
|
28
28
|
method: 'GET',
|
|
@@ -34,7 +34,7 @@ class Users {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
getCurrentUser(parameters, callback) {
|
|
37
|
-
return
|
|
37
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
const config = {
|
|
39
39
|
url: '/api/user/current',
|
|
40
40
|
method: 'GET',
|
|
@@ -46,7 +46,7 @@ class Users {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
getGroupMembershipsForUser(parameters, callback) {
|
|
49
|
-
return
|
|
49
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
50
|
const config = {
|
|
51
51
|
url: '/api/user/memberof',
|
|
52
52
|
method: 'GET',
|
|
@@ -62,7 +62,7 @@ class Users {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
getBulkUserLookup(parameters, callback) {
|
|
65
|
-
return
|
|
65
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
const config = {
|
|
67
67
|
url: '/api/user/bulk',
|
|
68
68
|
method: 'GET',
|
|
@@ -76,7 +76,7 @@ class Users {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
getPrivacyUnsafeUserEmail(parameters, callback) {
|
|
79
|
-
return
|
|
79
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
const config = {
|
|
81
81
|
url: '/api/user/email',
|
|
82
82
|
method: 'GET',
|
|
@@ -88,7 +88,7 @@ class Users {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
getPrivacyUnsafeUserEmailBulk(parameters, callback) {
|
|
91
|
-
return
|
|
91
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
const config = {
|
|
93
93
|
url: '/api/user/email/bulk',
|
|
94
94
|
method: 'GET',
|
|
@@ -100,7 +100,7 @@ class Users {
|
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
getBulkUserMigration(parameters, callback) {
|
|
103
|
-
return
|
|
103
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
104
104
|
const config = {
|
|
105
105
|
url: '/api/user/bulk/migration',
|
|
106
106
|
method: 'GET',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Client } from './client';
|
|
2
1
|
import type { Callback } from '../callback';
|
|
2
|
+
import type { Client } from './client';
|
|
3
3
|
import type { Config } from '../config';
|
|
4
4
|
import type { RequestConfig } from '../requestConfig';
|
|
5
5
|
export declare class BaseClient implements Client {
|