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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { User } from './user';
|
|
2
1
|
import { Content } from './content';
|
|
3
|
-
import { UsersUserKeys } from './usersUserKeys';
|
|
4
2
|
import { GenericLinks } from './genericLinks';
|
|
3
|
+
import { User } from './user';
|
|
4
|
+
import { UsersUserKeys } from './usersUserKeys';
|
|
5
5
|
|
|
6
6
|
export interface Version {
|
|
7
7
|
by: User;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UserPropertyCreate } from '../models';
|
|
2
|
+
|
|
3
|
+
export interface CreateUserProperty extends UserPropertyCreate {
|
|
4
|
+
/**
|
|
5
|
+
* The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For
|
|
6
|
+
* example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
|
|
7
|
+
*/
|
|
8
|
+
userId: string;
|
|
9
|
+
/** The key of the user property. */
|
|
10
|
+
key: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DeleteUserProperty {
|
|
2
|
+
/**
|
|
3
|
+
* The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For
|
|
4
|
+
* example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
|
|
5
|
+
*/
|
|
6
|
+
userId: string;
|
|
7
|
+
/** The key of the user property. */
|
|
8
|
+
key: string;
|
|
9
|
+
}
|
|
@@ -5,4 +5,9 @@ export interface GetGroupMembersByGroupId {
|
|
|
5
5
|
start?: number;
|
|
6
6
|
/** The maximum number of users to return per page. Note, this may be restricted by fixed system limits. */
|
|
7
7
|
limit?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to include total size parameter in the results. Note, fetching total size property is an expensive
|
|
10
|
+
* operation; use it if your use case needs this value.
|
|
11
|
+
*/
|
|
12
|
+
shouldReturnTotalSize?: boolean;
|
|
8
13
|
}
|
|
@@ -8,4 +8,9 @@ export interface GetMembersByQueryParam {
|
|
|
8
8
|
* say if the limit parameter exceeds 200, this API will return a maximum of 200 users per page.
|
|
9
9
|
*/
|
|
10
10
|
limit?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to include total size parameter in the results. Note, fetching total size property is an expensive
|
|
13
|
+
* operation; use it if your use case needs this value.
|
|
14
|
+
*/
|
|
15
|
+
shouldReturnTotalSize?: boolean;
|
|
11
16
|
}
|
|
@@ -21,7 +21,37 @@ export interface GetSpaces {
|
|
|
21
21
|
*/
|
|
22
22
|
favouriteUserKey?: string;
|
|
23
23
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
24
|
-
expand?:
|
|
24
|
+
expand?:
|
|
25
|
+
| 'settings'
|
|
26
|
+
| 'metadata'
|
|
27
|
+
| 'metadata.labels'
|
|
28
|
+
| 'operations'
|
|
29
|
+
| 'lookAndFeel'
|
|
30
|
+
| 'permissions'
|
|
31
|
+
| 'icon'
|
|
32
|
+
| 'description'
|
|
33
|
+
| 'description.plain'
|
|
34
|
+
| 'description.view'
|
|
35
|
+
| 'theme'
|
|
36
|
+
| 'homepage'
|
|
37
|
+
| 'history'
|
|
38
|
+
| (
|
|
39
|
+
| 'settings'
|
|
40
|
+
| 'metadata'
|
|
41
|
+
| 'metadata.labels'
|
|
42
|
+
| 'operations'
|
|
43
|
+
| 'lookAndFeel'
|
|
44
|
+
| 'permissions'
|
|
45
|
+
| 'icon'
|
|
46
|
+
| 'description'
|
|
47
|
+
| 'description.plain'
|
|
48
|
+
| 'description.view'
|
|
49
|
+
| 'theme'
|
|
50
|
+
| 'homepage'
|
|
51
|
+
| 'history'
|
|
52
|
+
)[]
|
|
53
|
+
| string
|
|
54
|
+
| string[];
|
|
25
55
|
/** The starting index of the returned spaces. */
|
|
26
56
|
start?: number;
|
|
27
57
|
/** The maximum number of spaces to return per page. Note, this may be restricted by fixed system limits. */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface GetUserProperties {
|
|
2
|
+
/** The account ID of the user to be queried for its properties. */
|
|
3
|
+
userId: string;
|
|
4
|
+
/** The starting index of the returned properties. */
|
|
5
|
+
start?: number;
|
|
6
|
+
/** The maximum number of properties to return per page. Note, this may be restricted by fixed system limits. */
|
|
7
|
+
limit?: number;
|
|
8
|
+
}
|
|
@@ -30,15 +30,18 @@ export * from './createRelationship';
|
|
|
30
30
|
export * from './createSpace';
|
|
31
31
|
export * from './createSpaceProperty';
|
|
32
32
|
export * from './createSpacePropertyForKey';
|
|
33
|
+
export * from './createUserProperty';
|
|
33
34
|
export * from './delete';
|
|
34
35
|
export * from './deleteContent';
|
|
35
36
|
export * from './deleteContentProperty';
|
|
36
37
|
export * from './deleteContentVersion';
|
|
37
38
|
export * from './deleteLabelFromSpace';
|
|
39
|
+
export * from './deletePageTree';
|
|
38
40
|
export * from './deleteRelationship';
|
|
39
41
|
export * from './deleteRestrictions';
|
|
40
42
|
export * from './deleteSpace';
|
|
41
43
|
export * from './deleteSpaceProperty';
|
|
44
|
+
export * from './deleteUserProperty';
|
|
42
45
|
export * from './descendantsOfType';
|
|
43
46
|
export * from './downloadAttachment';
|
|
44
47
|
export * from './exportAuditRecords';
|
|
@@ -49,6 +52,7 @@ export * from './getAnonymousUser';
|
|
|
49
52
|
export * from './getAttachments';
|
|
50
53
|
export * from './getAuditRecords';
|
|
51
54
|
export * from './getAuditRecordsForTimePeriod';
|
|
55
|
+
export * from './getAvailableContentStates';
|
|
52
56
|
export * from './getBlueprintTemplates';
|
|
53
57
|
export * from './getBulkUserLookup';
|
|
54
58
|
export * from './getBulkUserMigration';
|
|
@@ -64,6 +68,9 @@ export * from './getContentProperties';
|
|
|
64
68
|
export * from './getContentProperty';
|
|
65
69
|
export * from './getContentRestrictionStatusForGroup';
|
|
66
70
|
export * from './getContentRestrictionStatusForUser';
|
|
71
|
+
export * from './getContentState';
|
|
72
|
+
export * from './getContentStateLastUpdated';
|
|
73
|
+
export * from './getContentStateSettings';
|
|
67
74
|
export * from './getContentTemplate';
|
|
68
75
|
export * from './getContentTemplates';
|
|
69
76
|
export * from './getContentVersion';
|
|
@@ -105,6 +112,8 @@ export * from './getTasks';
|
|
|
105
112
|
export * from './getTheme';
|
|
106
113
|
export * from './getThemes';
|
|
107
114
|
export * from './getUser';
|
|
115
|
+
export * from './getUserProperties';
|
|
116
|
+
export * from './getUserProperty';
|
|
108
117
|
export * from './getViewers';
|
|
109
118
|
export * from './getViews';
|
|
110
119
|
export * from './getWatchersForSpace';
|
|
@@ -117,6 +126,7 @@ export * from './permissionCheck';
|
|
|
117
126
|
export * from './publishLegacyDraft';
|
|
118
127
|
export * from './publishSharedDraft';
|
|
119
128
|
export * from './registerModules';
|
|
129
|
+
export * from './removeContentState';
|
|
120
130
|
export * from './removeContentWatcher';
|
|
121
131
|
export * from './removeGroup';
|
|
122
132
|
export * from './removeGroupById';
|
|
@@ -140,6 +150,7 @@ export * from './searchContentByCQL';
|
|
|
140
150
|
export * from './searchGroups';
|
|
141
151
|
export * from './searchTasks';
|
|
142
152
|
export * from './searchUser';
|
|
153
|
+
export * from './setContentState';
|
|
143
154
|
export * from './setLookAndFeelSettings';
|
|
144
155
|
export * from './setRetentionPeriod';
|
|
145
156
|
export * from './setSpaceTheme';
|
|
@@ -155,4 +166,5 @@ export * from './updateSpace';
|
|
|
155
166
|
export * from './updateSpaceProperty';
|
|
156
167
|
export * from './updateSpaceSettings';
|
|
157
168
|
export * from './updateTaskById';
|
|
169
|
+
export * from './updateUserProperty';
|
|
158
170
|
export * from './userSearch';
|
|
@@ -5,4 +5,9 @@ export interface SearchGroups {
|
|
|
5
5
|
start?: number;
|
|
6
6
|
/** The maximum number of groups to return per page. Note, this is restricted to a maximum limit of 200 groups. */
|
|
7
7
|
limit?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to include total size parameter in the results. Note, fetching total size property is an expensive
|
|
10
|
+
* operation; use it if your use case needs this value.
|
|
11
|
+
*/
|
|
12
|
+
shouldReturnTotalSize?: boolean;
|
|
8
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UserPropertyUpdate } from '../models';
|
|
2
|
+
|
|
3
|
+
export interface UpdateUserProperty extends UserPropertyUpdate {
|
|
4
|
+
/**
|
|
5
|
+
* The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For
|
|
6
|
+
* example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
|
|
7
|
+
*/
|
|
8
|
+
userId: string;
|
|
9
|
+
/** The key of the user property. */
|
|
10
|
+
key: string;
|
|
11
|
+
}
|
package/src/api/relation.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 { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Relation {
|
|
@@ -53,7 +53,7 @@ export class Relation {
|
|
|
53
53
|
},
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
return this.client.sendRequest(config, callback
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */
|
|
@@ -113,7 +113,7 @@ export class Relation {
|
|
|
113
113
|
},
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
return this.client.sendRequest(config, callback
|
|
116
|
+
return this.client.sendRequest(config, callback);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
/**
|
|
@@ -159,7 +159,7 @@ export class Relation {
|
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
-
return this.client.sendRequest(config, callback
|
|
162
|
+
return this.client.sendRequest(config, callback);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
/** @deprecated Will be removed in the next major version. Use `deleteRelationship` instead. */
|
|
@@ -201,7 +201,7 @@ export class Relation {
|
|
|
201
201
|
},
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
return this.client.sendRequest(config, callback
|
|
204
|
+
return this.client.sendRequest(config, callback);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
@@ -252,6 +252,6 @@ export class Relation {
|
|
|
252
252
|
},
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
return this.client.sendRequest(config, callback
|
|
255
|
+
return this.client.sendRequest(config, callback);
|
|
256
256
|
}
|
|
257
257
|
}
|
package/src/api/search.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 { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Search {
|
|
@@ -74,7 +74,7 @@ export class Search {
|
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
return this.client.sendRequest(config, callback
|
|
77
|
+
return this.client.sendRequest(config, callback);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/** @deprecated Will be removed in the next major version. Use `searchUser` instead. */
|
|
@@ -93,12 +93,13 @@ export class Search {
|
|
|
93
93
|
): Promise<void | T> {
|
|
94
94
|
return this.searchUser(parameters, callback!);
|
|
95
95
|
}
|
|
96
|
+
|
|
96
97
|
/**
|
|
97
98
|
* Searches for users using user-specific queries from the [Confluence Query Language
|
|
98
99
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
99
100
|
*
|
|
100
101
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
101
|
-
* profilePicture, and
|
|
102
|
+
* profilePicture, displayName, and timeZone.
|
|
102
103
|
*/
|
|
103
104
|
async searchUser<T = Models.SearchPageResponseSearchResult>(
|
|
104
105
|
parameters: Parameters.SearchUser,
|
|
@@ -109,7 +110,7 @@ export class Search {
|
|
|
109
110
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
110
111
|
*
|
|
111
112
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
112
|
-
* profilePicture, and
|
|
113
|
+
* profilePicture, displayName, and timeZone.
|
|
113
114
|
*/
|
|
114
115
|
async searchUser<T = Models.SearchPageResponseSearchResult>(
|
|
115
116
|
parameters: Parameters.SearchUser,
|
|
@@ -126,9 +127,10 @@ export class Search {
|
|
|
126
127
|
cql: parameters.cql,
|
|
127
128
|
start: parameters.start,
|
|
128
129
|
limit: parameters.limit,
|
|
130
|
+
expand: parameters.expand,
|
|
129
131
|
},
|
|
130
132
|
};
|
|
131
133
|
|
|
132
|
-
return this.client.sendRequest(config, callback
|
|
134
|
+
return this.client.sendRequest(config, callback);
|
|
133
135
|
}
|
|
134
136
|
}
|
package/src/api/settings.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 { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Settings {
|
|
@@ -43,7 +43,7 @@ export class Settings {
|
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
return this.client.sendRequest(config, callback
|
|
46
|
+
return this.client.sendRequest(config, callback);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -81,7 +81,7 @@ export class Settings {
|
|
|
81
81
|
},
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
return this.client.sendRequest(config, callback
|
|
84
|
+
return this.client.sendRequest(config, callback);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -133,7 +133,7 @@ export class Settings {
|
|
|
133
133
|
},
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
return this.client.sendRequest(config, callback
|
|
136
|
+
return this.client.sendRequest(config, callback);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/**
|
|
@@ -170,7 +170,7 @@ export class Settings {
|
|
|
170
170
|
},
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
return this.client.sendRequest(config, callback
|
|
173
|
+
return this.client.sendRequest(config, callback);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
@@ -205,7 +205,7 @@ export class Settings {
|
|
|
205
205
|
},
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
return this.client.sendRequest(config, callback
|
|
208
|
+
return this.client.sendRequest(config, callback);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/**
|
|
@@ -228,6 +228,28 @@ export class Settings {
|
|
|
228
228
|
method: 'GET',
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
return this.client.sendRequest(config, callback
|
|
231
|
+
return this.client.sendRequest(config, callback);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** Gets Content State settings for a space */
|
|
235
|
+
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
236
|
+
parameters: Parameters.GetContentStateSettings,
|
|
237
|
+
callback: Callback<T>
|
|
238
|
+
): Promise<void>;
|
|
239
|
+
/** Gets Content State settings for a space */
|
|
240
|
+
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
241
|
+
parameters: Parameters.GetContentStateSettings,
|
|
242
|
+
callback?: never
|
|
243
|
+
): Promise<T>;
|
|
244
|
+
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
245
|
+
parameters: Parameters.GetContentStateSettings,
|
|
246
|
+
callback?: Callback<T>,
|
|
247
|
+
): Promise<void | T> {
|
|
248
|
+
const config: RequestConfig = {
|
|
249
|
+
url: `/api/space/${parameters.spaceKey}/state/settings`,
|
|
250
|
+
method: 'GET',
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
return this.client.sendRequest(config, callback);
|
|
232
254
|
}
|
|
233
255
|
}
|
package/src/api/space.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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
|
+
import { paramSerializer } from '../paramSerializer';
|
|
5
6
|
import { RequestConfig } from '../requestConfig';
|
|
6
7
|
|
|
7
8
|
export class Space {
|
|
@@ -31,7 +32,7 @@ export class Space {
|
|
|
31
32
|
url: '/api/space',
|
|
32
33
|
method: 'GET',
|
|
33
34
|
params: {
|
|
34
|
-
spaceKey: parameters?.spaceKey,
|
|
35
|
+
spaceKey: paramSerializer('spaceKey', parameters?.spaceKey),
|
|
35
36
|
spaceId: parameters?.spaceId,
|
|
36
37
|
type: parameters?.type,
|
|
37
38
|
status: parameters?.status,
|
|
@@ -43,7 +44,7 @@ export class Space {
|
|
|
43
44
|
},
|
|
44
45
|
};
|
|
45
46
|
|
|
46
|
-
return this.client.sendRequest(config, callback
|
|
47
|
+
return this.client.sendRequest(config, callback);
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
/**
|
|
@@ -73,7 +74,7 @@ export class Space {
|
|
|
73
74
|
},
|
|
74
75
|
};
|
|
75
76
|
|
|
76
|
-
return this.client.sendRequest(config, callback
|
|
77
|
+
return this.client.sendRequest(config, callback);
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
/**
|
|
@@ -110,7 +111,7 @@ export class Space {
|
|
|
110
111
|
},
|
|
111
112
|
};
|
|
112
113
|
|
|
113
|
-
return this.client.sendRequest(config, callback
|
|
114
|
+
return this.client.sendRequest(config, callback);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
/**
|
|
@@ -129,9 +130,12 @@ export class Space {
|
|
|
129
130
|
const config: RequestConfig = {
|
|
130
131
|
url: `/api/space/${parameters.spaceKey}`,
|
|
131
132
|
method: 'GET',
|
|
133
|
+
params: {
|
|
134
|
+
expand: parameters.expand,
|
|
135
|
+
},
|
|
132
136
|
};
|
|
133
137
|
|
|
134
|
-
return this.client.sendRequest(config, callback
|
|
138
|
+
return this.client.sendRequest(config, callback);
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
/**
|
|
@@ -165,7 +169,7 @@ export class Space {
|
|
|
165
169
|
},
|
|
166
170
|
};
|
|
167
171
|
|
|
168
|
-
return this.client.sendRequest(config, callback
|
|
172
|
+
return this.client.sendRequest(config, callback);
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
/**
|
|
@@ -193,7 +197,7 @@ export class Space {
|
|
|
193
197
|
method: 'DELETE',
|
|
194
198
|
};
|
|
195
199
|
|
|
196
|
-
return this.client.sendRequest(config, callback
|
|
200
|
+
return this.client.sendRequest(config, callback);
|
|
197
201
|
}
|
|
198
202
|
|
|
199
203
|
/**
|
|
@@ -232,7 +236,7 @@ export class Space {
|
|
|
232
236
|
},
|
|
233
237
|
};
|
|
234
238
|
|
|
235
|
-
return this.client.sendRequest(config, callback
|
|
239
|
+
return this.client.sendRequest(config, callback);
|
|
236
240
|
}
|
|
237
241
|
|
|
238
242
|
/**
|
|
@@ -269,6 +273,6 @@ export class Space {
|
|
|
269
273
|
},
|
|
270
274
|
};
|
|
271
275
|
|
|
272
|
-
return this.client.sendRequest(config, callback
|
|
276
|
+
return this.client.sendRequest(config, callback);
|
|
273
277
|
}
|
|
274
278
|
}
|
|
@@ -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 { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class SpacePermissions {
|
|
@@ -61,7 +61,7 @@ export class SpacePermissions {
|
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
return this.client.sendRequest(config, callback
|
|
64
|
+
return this.client.sendRequest(config, callback);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -103,7 +103,7 @@ export class SpacePermissions {
|
|
|
103
103
|
},
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
return this.client.sendRequest(config, callback
|
|
106
|
+
return this.client.sendRequest(config, callback);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|
|
@@ -130,6 +130,6 @@ export class SpacePermissions {
|
|
|
130
130
|
method: 'DELETE',
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
return this.client.sendRequest(config, callback
|
|
133
|
+
return this.client.sendRequest(config, callback);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -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 { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class SpaceProperties {
|
|
@@ -39,7 +39,7 @@ export class SpaceProperties {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -74,7 +74,7 @@ export class SpaceProperties {
|
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
return this.client.sendRequest(config, callback
|
|
77
|
+
return this.client.sendRequest(config, callback);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -107,7 +107,7 @@ export class SpaceProperties {
|
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
return this.client.sendRequest(config, callback
|
|
110
|
+
return this.client.sendRequest(config, callback);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -142,7 +142,7 @@ export class SpaceProperties {
|
|
|
142
142
|
},
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
return this.client.sendRequest(config, callback
|
|
145
|
+
return this.client.sendRequest(config, callback);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -176,7 +176,7 @@ export class SpaceProperties {
|
|
|
176
176
|
},
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
return this.client.sendRequest(config, callback
|
|
179
|
+
return this.client.sendRequest(config, callback);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
@@ -200,6 +200,6 @@ export class SpaceProperties {
|
|
|
200
200
|
method: 'DELETE',
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
return this.client.sendRequest(config, callback
|
|
203
|
+
return this.client.sendRequest(config, callback);
|
|
204
204
|
}
|
|
205
205
|
}
|
package/src/api/spaceSettings.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 { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class SpaceSettings {
|
|
@@ -34,7 +34,7 @@ export class SpaceSettings {
|
|
|
34
34
|
method: 'GET',
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
return this.client.sendRequest(config, callback
|
|
37
|
+
return this.client.sendRequest(config, callback);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -67,6 +67,6 @@ export class SpaceSettings {
|
|
|
67
67
|
},
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
return this.client.sendRequest(config, callback
|
|
70
|
+
return this.client.sendRequest(config, callback);
|
|
71
71
|
}
|
|
72
72
|
}
|