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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
- Analytics API added.
|
|
4
|
+
- ContentContentState API added.
|
|
5
|
+
- `deletePageTree` method added to `Experimental`.
|
|
6
|
+
- `getUserProperties` method added to `Experimental`.
|
|
7
|
+
- `getUserProperty` method added to `Experimental`.
|
|
8
|
+
- `createUserProperty` method added to `Experimental`.
|
|
9
|
+
- `updateUserProperty` method added to `Experimental`.
|
|
10
|
+
- `deleteUserProperty` method added to `Experimental`.
|
|
11
|
+
- `getContentStateSettings` method added to `Settings`.
|
|
12
|
+
- Another small changes.
|
|
13
|
+
- Personal Access token authentication added.
|
|
14
|
+
|
|
15
|
+
### 1.3.0
|
|
16
|
+
|
|
17
|
+
- Telemetry removed (deprecated)
|
|
18
|
+
- Fixed bug with spaceKeys in `client.space.getSpaces` ([#14](https://github.com/MrRefactoring/confluence.js/issues/14) Thanks [David Sanchez](https://github.com/emulienfou) for catching)
|
|
19
|
+
- Fixed bug with attachment download ([#15](https://github.com/MrRefactoring/confluence.js/issues/15) Thanks [Martin Reinhardt](https://github.com/hypery2k) for catching)
|
|
20
|
+
|
|
3
21
|
### 1.2.2
|
|
4
22
|
|
|
5
23
|
- JSDOC improvements
|
package/README.md
CHANGED
|
@@ -18,14 +18,12 @@ Usability, consistency, and performance are key focuses of confluence.js, and it
|
|
|
18
18
|
## Table of contents
|
|
19
19
|
|
|
20
20
|
- [Installation](#installation)
|
|
21
|
-
- [Telemetry information collection agreement](#telemetry-information-collection-agreement)
|
|
22
|
-
- [Customizing telemetry collection data example](#customizing-telemetry-collection-data-example)
|
|
23
|
-
- [Disabling telemetry collection example](#disabling-telemetry-collection-example)
|
|
24
21
|
- [Usage](#usage)
|
|
25
22
|
- [Authentication](#authentication)
|
|
26
23
|
- [Basic](#basic-authenticationhttpsdeveloperatlassiancomcloudconfluencebasic-auth-for-rest-apis)
|
|
27
24
|
- [OAuth 2.0](#oauth-20httpsdeveloperatlassiancomcloudconfluenceoauth-2-3lo-apps)
|
|
28
25
|
- [JWT](#jwthttpsdeveloperatlassiancomcloudconfluenceunderstanding-jwt)
|
|
26
|
+
- [Personal access token](#personal-access-token)
|
|
29
27
|
- [Your first request and using algorithm](#your-first-request-and-using-algorithm)
|
|
30
28
|
- [Decreasing Webpack bundle size](#decreasing-webpack-bundle-size)
|
|
31
29
|
- [Take a look at our other products](#take-a-look-at-our-other-products)
|
|
@@ -47,60 +45,6 @@ Install with the yarn:
|
|
|
47
45
|
yarn add confluence.js
|
|
48
46
|
```
|
|
49
47
|
|
|
50
|
-
## Telemetry information collecting agreement
|
|
51
|
-
|
|
52
|
-
The use of this library may collect, record and transmit data
|
|
53
|
-
about the operation of the library and related data, as well
|
|
54
|
-
as potentially personal data, including ip address from which
|
|
55
|
-
the request is made, user agent from the device from which the
|
|
56
|
-
request is made, version of the library used, version of the
|
|
57
|
-
telemetry sending library, name of the invoked method, authorization
|
|
58
|
-
type information (can be configured), base configuration request
|
|
59
|
-
usage information, callback information, onResponse middleware usage
|
|
60
|
-
information, onError middleware usage information, queries usage
|
|
61
|
-
information, body usage information in request, headers usage
|
|
62
|
-
information in request, HTTP response code (can be configured),
|
|
63
|
-
request start date and time and response receipt date and time
|
|
64
|
-
(can be configured), No check atlassian token flag enabling information.
|
|
65
|
-
|
|
66
|
-
The type and amount of data may vary with the version of the libraries and can be changed at any time without notice.
|
|
67
|
-
|
|
68
|
-
Telemetry data collection is enabled by default.
|
|
69
|
-
|
|
70
|
-
The following tracking parameters can be configured:
|
|
71
|
-
|
|
72
|
-
- Authentication type
|
|
73
|
-
- Request status code
|
|
74
|
-
- Request timings
|
|
75
|
-
|
|
76
|
-
#### Customizing telemetry collecting data example
|
|
77
|
-
|
|
78
|
-
```typescript
|
|
79
|
-
import { Config } from 'confluence.js';
|
|
80
|
-
|
|
81
|
-
const config: Config = {
|
|
82
|
-
host: 'https://your-domain.atlassian.net',
|
|
83
|
-
telemetry: {
|
|
84
|
-
allowedToPassAuthenticationType: false, // true by default
|
|
85
|
-
allowedToPassRequestStatusCode: true, // true by default
|
|
86
|
-
allowedToPassRequestTimings: false, // true by default
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
If you want to disable telemetry, set the `telemetry` field to `false`.
|
|
92
|
-
|
|
93
|
-
#### Disabling telemetry collection example
|
|
94
|
-
|
|
95
|
-
```typescript
|
|
96
|
-
import { Config } from 'confluence.js';
|
|
97
|
-
|
|
98
|
-
const config: Config = {
|
|
99
|
-
host: 'https://your-domain.atlassian.net',
|
|
100
|
-
telemetry: false, // Telemetry will not be collected
|
|
101
|
-
};
|
|
102
|
-
```
|
|
103
|
-
|
|
104
48
|
## Usage
|
|
105
49
|
|
|
106
50
|
#### Authentication
|
|
@@ -179,6 +123,19 @@ const client = new ConfluenceClient({
|
|
|
179
123
|
});
|
|
180
124
|
```
|
|
181
125
|
|
|
126
|
+
##### [Personal access token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html)
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import { ConfluenceClient } from 'confluence.js';
|
|
130
|
+
|
|
131
|
+
const client = new ConfluenceClient({
|
|
132
|
+
host: 'https://your-domain.atlassian.net',
|
|
133
|
+
authentication: {
|
|
134
|
+
personalAccessToken: 'secrectPAT',
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
```
|
|
138
|
+
|
|
182
139
|
#### Your first request and using algorithm
|
|
183
140
|
|
|
184
141
|
```typescript
|
|
@@ -278,6 +235,7 @@ client.<group>.<methodName>(parametersObject);
|
|
|
278
235
|
|
|
279
236
|
Available groups:
|
|
280
237
|
|
|
238
|
+
- [analytics](https://developer.atlassian.com/cloud/confluence/rest/api-group-analytics/)
|
|
281
239
|
- [audit](https://developer.atlassian.com/cloud/confluence/rest/api-group-audit)
|
|
282
240
|
- [content](https://developer.atlassian.com/cloud/confluence/rest/api-group-content/)
|
|
283
241
|
- [contentAttachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-group-content---attachments)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Models from './models';
|
|
2
|
+
import * as Parameters from './parameters';
|
|
3
|
+
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
|
+
export declare class Analytics {
|
|
6
|
+
private client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
/** Get the total number of views a piece of content has. */
|
|
9
|
+
getViews<T = Models.GetViews>(parameters: Parameters.GetViews, callback: Callback<T>): Promise<void>;
|
|
10
|
+
/** Get the total number of views a piece of content has. */
|
|
11
|
+
getViews<T = Models.GetViews>(parameters: Parameters.GetViews, callback?: never): Promise<T>;
|
|
12
|
+
/** Get the total number of distinct viewers a piece of content has. */
|
|
13
|
+
getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback: Callback<T>): Promise<void>;
|
|
14
|
+
/** Get the total number of distinct viewers a piece of content has. */
|
|
15
|
+
getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback?: never): Promise<T>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Analytics = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class Analytics {
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
}
|
|
9
|
+
getViews(parameters, callback) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const config = {
|
|
12
|
+
url: `/api/analytics/content/${parameters.contentId}/views`,
|
|
13
|
+
method: 'GET',
|
|
14
|
+
params: {
|
|
15
|
+
fromDate: parameters.fromDate,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
return this.client.sendRequest(config, callback);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
getViewers(parameters, callback) {
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const config = {
|
|
24
|
+
url: `/api/analytics/content/${parameters.contentId}/viewers`,
|
|
25
|
+
method: 'GET',
|
|
26
|
+
params: {
|
|
27
|
+
fromDate: parameters.fromDate,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
return this.client.sendRequest(config, callback);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Analytics = Analytics;
|
package/out/api/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
|
export declare class Audit {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/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: '/api/audit',
|
|
13
13
|
method: 'GET',
|
|
@@ -19,11 +19,11 @@ class Audit {
|
|
|
19
19
|
limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
return this.client.sendRequest(config, callback
|
|
22
|
+
return this.client.sendRequest(config, callback);
|
|
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: '/api/audit',
|
|
29
29
|
method: 'POST',
|
|
@@ -40,11 +40,11 @@ class Audit {
|
|
|
40
40
|
associatedObjects: parameters === null || parameters === void 0 ? void 0 : parameters.associatedObjects,
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
|
-
return this.client.sendRequest(config, callback
|
|
43
|
+
return this.client.sendRequest(config, callback);
|
|
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: '/api/audit/export',
|
|
50
50
|
method: 'GET',
|
|
@@ -55,20 +55,20 @@ class Audit {
|
|
|
55
55
|
format: parameters === null || parameters === void 0 ? void 0 : parameters.format,
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
|
-
return this.client.sendRequest(config, callback
|
|
58
|
+
return this.client.sendRequest(config, callback);
|
|
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: '/api/audit/retention',
|
|
65
65
|
method: 'GET',
|
|
66
66
|
};
|
|
67
|
-
return this.client.sendRequest(config, callback
|
|
67
|
+
return this.client.sendRequest(config, callback);
|
|
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: '/api/audit/retention',
|
|
74
74
|
method: 'PUT',
|
|
@@ -77,11 +77,11 @@ class Audit {
|
|
|
77
77
|
units: parameters === null || parameters === void 0 ? void 0 : parameters.units,
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
80
|
+
return this.client.sendRequest(config, callback);
|
|
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: '/api/audit/since',
|
|
87
87
|
method: 'GET',
|
|
@@ -93,7 +93,7 @@ class Audit {
|
|
|
93
93
|
limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
|
-
return this.client.sendRequest(config, callback
|
|
96
|
+
return this.client.sendRequest(config, callback);
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
}
|
package/out/api/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
|
export declare class Content {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/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: '/api/content',
|
|
13
13
|
method: 'GET',
|
|
@@ -24,11 +24,11 @@ class Content {
|
|
|
24
24
|
expand: parameters === null || parameters === void 0 ? void 0 : parameters.expand,
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
|
-
return this.client.sendRequest(config, callback
|
|
27
|
+
return this.client.sendRequest(config, callback);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
createContent(parameters, callback) {
|
|
31
|
-
return
|
|
31
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
32
|
const config = {
|
|
33
33
|
url: '/api/content',
|
|
34
34
|
method: 'POST',
|
|
@@ -38,11 +38,11 @@ class Content {
|
|
|
38
38
|
},
|
|
39
39
|
data: Object.assign(Object.assign({}, parameters), { status: undefined, expand: undefined }),
|
|
40
40
|
};
|
|
41
|
-
return this.client.sendRequest(config, callback
|
|
41
|
+
return this.client.sendRequest(config, callback);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
archivePages(parameters, callback) {
|
|
45
|
-
return
|
|
45
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
const config = {
|
|
47
47
|
url: '/api/content/archive',
|
|
48
48
|
method: 'POST',
|
|
@@ -50,11 +50,11 @@ class Content {
|
|
|
50
50
|
pages: parameters.pages,
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
|
-
return this.client.sendRequest(config, callback
|
|
53
|
+
return this.client.sendRequest(config, callback);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
publishLegacyDraft(parameters, callback) {
|
|
57
|
-
return
|
|
57
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
const config = {
|
|
59
59
|
url: `/api/content/blueprint/instance/${parameters.draftId}`,
|
|
60
60
|
method: 'POST',
|
|
@@ -63,11 +63,11 @@ class Content {
|
|
|
63
63
|
},
|
|
64
64
|
data: Object.assign(Object.assign({}, parameters), { version: parameters.version, title: parameters.title, type: parameters.type, status: parameters.bodyStatus, space: parameters.space, ancestors: parameters.ancestors }),
|
|
65
65
|
};
|
|
66
|
-
return this.client.sendRequest(config, callback
|
|
66
|
+
return this.client.sendRequest(config, callback);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
publishSharedDraft(parameters, callback) {
|
|
70
|
-
return
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
const config = {
|
|
72
72
|
url: `/api/content/blueprint/instance/${parameters.draftId}`,
|
|
73
73
|
method: 'PUT',
|
|
@@ -76,11 +76,11 @@ class Content {
|
|
|
76
76
|
},
|
|
77
77
|
data: Object.assign(Object.assign({}, parameters), { version: parameters.version, title: parameters.title, type: parameters.type, status: parameters.bodyStatus, space: parameters.space, ancestors: parameters.ancestors }),
|
|
78
78
|
};
|
|
79
|
-
return this.client.sendRequest(config, callback
|
|
79
|
+
return this.client.sendRequest(config, callback);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
searchContentByCQL(parameters, callback) {
|
|
83
|
-
return
|
|
83
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
const config = {
|
|
85
85
|
url: '/api/content/search',
|
|
86
86
|
method: 'GET',
|
|
@@ -91,11 +91,11 @@ class Content {
|
|
|
91
91
|
limit: parameters.limit,
|
|
92
92
|
},
|
|
93
93
|
};
|
|
94
|
-
return this.client.sendRequest(config, callback
|
|
94
|
+
return this.client.sendRequest(config, callback);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
getContentById(parameters, callback) {
|
|
98
|
-
return
|
|
98
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
99
99
|
const config = {
|
|
100
100
|
url: `/api/content/${parameters.id}`,
|
|
101
101
|
method: 'GET',
|
|
@@ -107,11 +107,11 @@ class Content {
|
|
|
107
107
|
expand: parameters.expand,
|
|
108
108
|
},
|
|
109
109
|
};
|
|
110
|
-
return this.client.sendRequest(config, callback
|
|
110
|
+
return this.client.sendRequest(config, callback);
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
updateContent(parameters, callback) {
|
|
114
|
-
return
|
|
114
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
115
115
|
const config = {
|
|
116
116
|
url: `/api/content/${parameters.id}`,
|
|
117
117
|
method: 'PUT',
|
|
@@ -128,11 +128,11 @@ class Content {
|
|
|
128
128
|
body: parameters.body,
|
|
129
129
|
},
|
|
130
130
|
};
|
|
131
|
-
return this.client.sendRequest(config, callback
|
|
131
|
+
return this.client.sendRequest(config, callback);
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
deleteContent(parameters, callback) {
|
|
135
|
-
return
|
|
135
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
const config = {
|
|
137
137
|
url: `/api/content/${parameters.id}`,
|
|
138
138
|
method: 'DELETE',
|
|
@@ -140,11 +140,11 @@ class Content {
|
|
|
140
140
|
status: parameters.status,
|
|
141
141
|
},
|
|
142
142
|
};
|
|
143
|
-
return this.client.sendRequest(config, callback
|
|
143
|
+
return this.client.sendRequest(config, callback);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
getHistoryForContent(parameters, callback) {
|
|
147
|
-
return
|
|
147
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
148
148
|
const config = {
|
|
149
149
|
url: `/api/content/${parameters.id}/history`,
|
|
150
150
|
method: 'GET',
|
|
@@ -152,7 +152,7 @@ class Content {
|
|
|
152
152
|
expand: parameters.expand,
|
|
153
153
|
},
|
|
154
154
|
};
|
|
155
|
-
return this.client.sendRequest(config, callback
|
|
155
|
+
return this.client.sendRequest(config, callback);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -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 ContentAttachments {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -244,7 +244,7 @@ export declare class ContentAttachments {
|
|
|
244
244
|
*/
|
|
245
245
|
updateAttachmentData<T = Models.Content>(parameters: Parameters.UpdateAttachmentData, callback?: never): Promise<T>;
|
|
246
246
|
/** Redirects the client to a URL that serves an attachment's binary data. */
|
|
247
|
-
downloadAttachment<T =
|
|
247
|
+
downloadAttachment<T = ArrayBuffer>(parameters: Parameters.DownloadAttachment, callback: Callback<T>): Promise<void>;
|
|
248
248
|
/** Redirects the client to a URL that serves an attachment's binary data. */
|
|
249
|
-
downloadAttachment<T =
|
|
249
|
+
downloadAttachment<T = ArrayBuffer>(parameters: Parameters.DownloadAttachment, callback?: never): Promise<T>;
|
|
250
250
|
}
|
|
@@ -7,7 +7,7 @@ class ContentAttachments {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getAttachments(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: `/api/content/${parameters.id}/child/attachment`,
|
|
13
13
|
method: 'GET',
|
|
@@ -19,11 +19,11 @@ class ContentAttachments {
|
|
|
19
19
|
expand: parameters.expand,
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
return this.client.sendRequest(config, callback
|
|
22
|
+
return this.client.sendRequest(config, callback);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
createAttachments(parameters, callback) {
|
|
26
|
-
return
|
|
26
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
const config = {
|
|
28
28
|
url: `/api/content/${parameters.id}/child/attachment`,
|
|
29
29
|
method: 'POST',
|
|
@@ -32,11 +32,11 @@ class ContentAttachments {
|
|
|
32
32
|
},
|
|
33
33
|
data: Object.assign(Object.assign({}, parameters), { id: undefined, status: undefined }),
|
|
34
34
|
};
|
|
35
|
-
return this.client.sendRequest(config, callback
|
|
35
|
+
return this.client.sendRequest(config, callback);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
createOrUpdateAttachments(parameters, callback) {
|
|
39
|
-
return
|
|
39
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const config = {
|
|
41
41
|
url: `/api/content/${parameters.id}/child/attachment`,
|
|
42
42
|
method: 'PUT',
|
|
@@ -45,39 +45,40 @@ class ContentAttachments {
|
|
|
45
45
|
},
|
|
46
46
|
data: Object.assign(Object.assign({}, parameters), { id: undefined, status: undefined }),
|
|
47
47
|
};
|
|
48
|
-
return this.client.sendRequest(config, callback
|
|
48
|
+
return this.client.sendRequest(config, callback);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
updateAttachmentProperties(parameters, callback) {
|
|
52
|
-
return
|
|
52
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
const config = {
|
|
54
54
|
url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}`,
|
|
55
55
|
method: 'PUT',
|
|
56
56
|
data: parameters.body,
|
|
57
57
|
};
|
|
58
|
-
return this.client.sendRequest(config, callback
|
|
58
|
+
return this.client.sendRequest(config, callback);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
updateAttachmentData(parameters, callback) {
|
|
62
|
-
return
|
|
62
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const config = {
|
|
64
64
|
url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}/data`,
|
|
65
65
|
method: 'POST',
|
|
66
66
|
data: Object.assign(Object.assign({}, parameters), { id: undefined, attachmentId: undefined }),
|
|
67
67
|
};
|
|
68
|
-
return this.client.sendRequest(config, callback
|
|
68
|
+
return this.client.sendRequest(config, callback);
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
downloadAttachment(parameters, callback) {
|
|
72
|
-
return
|
|
72
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
73
73
|
const config = {
|
|
74
74
|
url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}/download`,
|
|
75
75
|
method: 'GET',
|
|
76
|
+
responseType: 'arraybuffer',
|
|
76
77
|
params: {
|
|
77
78
|
version: parameters.version,
|
|
78
79
|
},
|
|
79
80
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
81
|
+
return this.client.sendRequest(config, callback);
|
|
81
82
|
});
|
|
82
83
|
}
|
|
83
84
|
}
|
package/out/api/contentBody.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 ContentBody {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
package/out/api/contentBody.js
CHANGED
|
@@ -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: `/api/contentbody/convert/${parameters.to}`,
|
|
13
13
|
method: 'POST',
|
|
@@ -21,7 +21,7 @@ class ContentBody {
|
|
|
21
21
|
representation: parameters.representation,
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
|
-
return this.client.sendRequest(config, callback
|
|
24
|
+
return this.client.sendRequest(config, callback);
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
export declare class ContentChildrenAndDescendants {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
@@ -188,7 +188,7 @@ export declare class ContentChildrenAndDescendants {
|
|
|
188
188
|
* of renaming page titles during the copy; for example, search and replace can be used in conjunction to rewrite the
|
|
189
189
|
* copied page titles.
|
|
190
190
|
*/
|
|
191
|
-
copyPageHierarchy<T =
|
|
191
|
+
copyPageHierarchy<T = Models.LongTask>(parameters: Parameters.CopyPageHierarchy, callback: Callback<T>): Promise<void>;
|
|
192
192
|
/**
|
|
193
193
|
* Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions
|
|
194
194
|
* and attachments. The id path parameter refers to the content id of the page to copy, and the new parent of this
|
|
@@ -196,7 +196,7 @@ export declare class ContentChildrenAndDescendants {
|
|
|
196
196
|
* of renaming page titles during the copy; for example, search and replace can be used in conjunction to rewrite the
|
|
197
197
|
* copied page titles.
|
|
198
198
|
*/
|
|
199
|
-
copyPageHierarchy<T =
|
|
199
|
+
copyPageHierarchy<T = Models.LongTask>(parameters: Parameters.CopyPageHierarchy, callback?: never): Promise<T>;
|
|
200
200
|
/**
|
|
201
201
|
* Copies a single page and its associated properties, permissions, attachments, and custom contents. The `id` path
|
|
202
202
|
* parameter refers to the content ID of the page to copy. The target of the page to be copied is defined using the
|