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,67 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./addContentWatcher"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./addLabelsToContent"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./addSpaceWatch"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./convertContentBody"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./createAttachments"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./createAuditRecord"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./createContent"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./createContentProperty"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./createContentPropertyForKey"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./createPrivateSpace"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./createSpace"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./createSpaceProperty"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./createSpacePropertyForKey"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./deleteContent"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./deleteContentProperty"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./deleteLabel"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./deleteLabelWithQueryParam"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./deleteSpace"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./deleteSpaceProperty"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./exportAuditRecords"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./getAttachments"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./getAuditRecords"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./getAuditRecordsSince"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./getContent"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./getContentById"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./getContentByType"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./getContentChildren"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./getContentChildrenByType"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./getContentComments"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./getContentDescendants"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./getContentDescendantsOfType"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./getContentForSpace"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./getContentLabels"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./getContentProperties"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./getContentProperty"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./getContentWatchStatus"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./getCurrentUser"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./getGroup"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./getGroups"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./getHistory"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./getMacroBodyByHash"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./getMacroBodyByMacroId"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./getMembers"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./getRestrictionsByOperation"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./getRestrictionsForOperation"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./getSpace"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./getSpaceProperties"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./getSpaceProperty"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./getSpaces"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./getTask"), exports);
|
|
54
|
+
tslib_1.__exportStar(require("./getTasks"), exports);
|
|
55
|
+
tslib_1.__exportStar(require("./getUser"), exports);
|
|
56
|
+
tslib_1.__exportStar(require("./isWatchingSpace"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./publishLegacyDraft"), exports);
|
|
58
|
+
tslib_1.__exportStar(require("./publishSharedDraft"), exports);
|
|
59
|
+
tslib_1.__exportStar(require("./removeContentWatcher"), exports);
|
|
60
|
+
tslib_1.__exportStar(require("./removeSpaceWatch"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./searchContent"), exports);
|
|
62
|
+
tslib_1.__exportStar(require("./updateAttachmentData"), exports);
|
|
63
|
+
tslib_1.__exportStar(require("./updateAttachmentProperties"), exports);
|
|
64
|
+
tslib_1.__exportStar(require("./updateContent"), exports);
|
|
65
|
+
tslib_1.__exportStar(require("./updateContentProperty"), exports);
|
|
66
|
+
tslib_1.__exportStar(require("./updateSpace"), exports);
|
|
67
|
+
tslib_1.__exportStar(require("./updateSpaceProperty"), exports);
|
package/out/server/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
|
import { Pagination } from '../pagination';
|
|
6
6
|
export declare class Search {
|
|
7
7
|
private client;
|
package/out/server/search.js
CHANGED
|
@@ -7,7 +7,7 @@ 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
|
const config = {
|
|
12
12
|
url: '/rest/api/search',
|
|
13
13
|
method: 'GET',
|
package/out/server/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
|
import { Pagination } from '../pagination';
|
|
6
6
|
export declare class Space {
|
|
7
7
|
private client;
|
package/out/server/space.js
CHANGED
|
@@ -7,7 +7,7 @@ class Space {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getSpaces(parameters, callback) {
|
|
10
|
-
return
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = {
|
|
12
12
|
url: '/rest/api/space',
|
|
13
13
|
method: 'GET',
|
|
@@ -26,7 +26,7 @@ class Space {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
createSpace(parameters, callback) {
|
|
29
|
-
return
|
|
29
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const config = {
|
|
31
31
|
url: '/rest/api/space',
|
|
32
32
|
method: 'POST',
|
|
@@ -41,7 +41,7 @@ class Space {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
createPrivateSpace(parameters, callback) {
|
|
44
|
-
return
|
|
44
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
45
|
const config = {
|
|
46
46
|
url: '/rest/api/space/_private',
|
|
47
47
|
method: 'POST',
|
|
@@ -55,7 +55,7 @@ class Space {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getSpace(parameters, callback) {
|
|
58
|
-
return
|
|
58
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
const config = {
|
|
60
60
|
url: `/rest/api/space/${parameters.spaceKey}`,
|
|
61
61
|
method: 'GET',
|
|
@@ -67,7 +67,7 @@ class Space {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
updateSpace(parameters, callback) {
|
|
70
|
-
return
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
const config = {
|
|
72
72
|
url: `/rest/api/space/${parameters.spaceKey}`,
|
|
73
73
|
method: 'PUT',
|
|
@@ -81,7 +81,7 @@ class Space {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
deleteSpace(parameters, callback) {
|
|
84
|
-
return
|
|
84
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
const config = {
|
|
86
86
|
url: `/rest/api/space/${parameters.spaceKey}`,
|
|
87
87
|
method: 'DELETE',
|
|
@@ -90,7 +90,7 @@ class Space {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
getContentForSpace(parameters, callback) {
|
|
93
|
-
return
|
|
93
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
94
94
|
const config = {
|
|
95
95
|
url: `/rest/api/space/${parameters.spaceKey}/content`,
|
|
96
96
|
method: 'GET',
|
|
@@ -105,7 +105,7 @@ class Space {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
getContentByType(parameters, callback) {
|
|
108
|
-
return
|
|
108
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
109
109
|
const config = {
|
|
110
110
|
url: `/rest/api/space/${parameters.spaceKey}/content/${parameters.type}`,
|
|
111
111
|
method: 'GET',
|
|
@@ -120,7 +120,7 @@ class Space {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
getSpaceProperties(parameters, callback) {
|
|
123
|
-
return
|
|
123
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
124
124
|
const config = {
|
|
125
125
|
url: `/rest/api/space/${parameters.spaceKey}/property`,
|
|
126
126
|
method: 'GET',
|
|
@@ -134,7 +134,7 @@ class Space {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
createSpaceProperty(parameters, callback) {
|
|
137
|
-
return
|
|
137
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
138
138
|
const config = {
|
|
139
139
|
url: `/rest/api/space/${parameters.spaceKey}/property`,
|
|
140
140
|
method: 'POST',
|
|
@@ -147,7 +147,7 @@ class Space {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
getSpaceProperty(parameters, callback) {
|
|
150
|
-
return
|
|
150
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
151
151
|
const config = {
|
|
152
152
|
url: `/rest/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
153
153
|
method: 'GET',
|
|
@@ -159,7 +159,7 @@ class Space {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
createSpacePropertyForKey(parameters, callback) {
|
|
162
|
-
return
|
|
162
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
163
163
|
const config = {
|
|
164
164
|
url: `/rest/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
165
165
|
method: 'POST',
|
|
@@ -171,7 +171,7 @@ class Space {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
updateSpaceProperty(parameters, callback) {
|
|
174
|
-
return
|
|
174
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
175
175
|
const config = {
|
|
176
176
|
url: `/rest/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
177
177
|
method: 'PUT',
|
|
@@ -180,7 +180,7 @@ class Space {
|
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
deleteSpaceProperty(parameters, callback) {
|
|
183
|
-
return
|
|
183
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
184
184
|
const config = {
|
|
185
185
|
url: `/rest/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
186
186
|
method: 'DELETE',
|
package/out/server/user.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { Pagination } from '../pagination';
|
|
6
6
|
export declare class User {
|
|
7
7
|
private client;
|
package/out/server/user.js
CHANGED
|
@@ -7,7 +7,7 @@ class User {
|
|
|
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: '/rest/api/user',
|
|
13
13
|
method: 'GET',
|
|
@@ -21,7 +21,7 @@ class User {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
getAnonymousUser(callback) {
|
|
24
|
-
return
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const config = {
|
|
26
26
|
url: '/rest/api/user/anonymous',
|
|
27
27
|
method: 'GET',
|
|
@@ -30,7 +30,7 @@ class User {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
getCurrentUser(parameters, callback) {
|
|
33
|
-
return
|
|
33
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const config = {
|
|
35
35
|
url: '/rest/api/user/current',
|
|
36
36
|
method: 'GET',
|
|
@@ -42,7 +42,7 @@ class User {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
getGroupMembershipsForUser(parameters, callback) {
|
|
45
|
-
return
|
|
45
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
const config = {
|
|
47
47
|
url: '/rest/api/user/memberof',
|
|
48
48
|
method: 'GET',
|
|
@@ -58,7 +58,7 @@ class User {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
getContentWatchStatus(parameters, callback) {
|
|
61
|
-
return
|
|
61
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
62
62
|
const config = {
|
|
63
63
|
url: `/rest/api/user/watch/content/${parameters.contentId}`,
|
|
64
64
|
method: 'GET',
|
|
@@ -71,7 +71,7 @@ class User {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
addContentWatcher(parameters, callback) {
|
|
74
|
-
return
|
|
74
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
75
75
|
const config = {
|
|
76
76
|
url: `/rest/api/user/watch/content/${parameters.contentId}`,
|
|
77
77
|
method: 'POST',
|
|
@@ -84,7 +84,7 @@ class User {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
removeContentWatcher(parameters, callback) {
|
|
87
|
-
return
|
|
87
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
88
88
|
const config = {
|
|
89
89
|
url: `/rest/api/user/watch/content/${parameters.contentId}`,
|
|
90
90
|
method: 'DELETE',
|
|
@@ -97,7 +97,7 @@ class User {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
isWatchingSpace(parameters, callback) {
|
|
100
|
-
return
|
|
100
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
101
101
|
const config = {
|
|
102
102
|
url: `/rest/api/user/watch/space/${parameters.spaceKey}`,
|
|
103
103
|
method: 'GET',
|
|
@@ -110,7 +110,7 @@ class User {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
addSpaceWatch(parameters, callback) {
|
|
113
|
-
return
|
|
113
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
114
114
|
const config = {
|
|
115
115
|
url: `/rest/api/user/watch/space/${parameters.spaceKey}`,
|
|
116
116
|
method: 'POST',
|
|
@@ -123,7 +123,7 @@ class User {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
removeSpaceWatch(parameters, callback) {
|
|
126
|
-
return
|
|
126
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
127
127
|
const config = {
|
|
128
128
|
url: `/rest/api/user/watch/space/${parameters.spaceKey}`,
|
|
129
129
|
method: 'DELETE',
|
|
@@ -6,7 +6,7 @@ const authentications_1 = require("./authentications");
|
|
|
6
6
|
var AuthenticationService;
|
|
7
7
|
(function (AuthenticationService) {
|
|
8
8
|
function getAuthenticationToken(authentication, requestData) {
|
|
9
|
-
return
|
|
9
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
if (!authentication) {
|
|
11
11
|
return undefined;
|
|
12
12
|
}
|
|
@@ -19,6 +19,9 @@ var AuthenticationService;
|
|
|
19
19
|
if (authentication.jwt) {
|
|
20
20
|
return (0, authentications_1.createJWTAuthentication)(authentication.jwt, requestData);
|
|
21
21
|
}
|
|
22
|
+
if (authentication.personalAccessToken) {
|
|
23
|
+
return (0, authentications_1.createPATAuthenticationToken)(authentication.personalAccessToken);
|
|
24
|
+
}
|
|
22
25
|
return undefined;
|
|
23
26
|
});
|
|
24
27
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPATAuthenticationToken = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
function createPATAuthenticationToken(authenticationData) {
|
|
6
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7
|
+
return `Bearer ${authenticationData}`;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
exports.createPATAuthenticationToken = createPATAuthenticationToken;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./createBasicAuthenticationToken"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./createJWTAuthentication"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./createOAuth2AuthenticationToken"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./createPATAuthenticationToken"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "confluence.js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "confluence.js is a powerful Node.JS/Browser module that allows you to interact with the Confluence API very easily",
|
|
5
5
|
"author": "Vladislav Tupikin <mrrefactoring@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,16 +12,21 @@
|
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"prepublishOnly": "npm run build && npm run test && npm run lint",
|
|
14
14
|
"test": "npm run test:unit && npm run test:e2e",
|
|
15
|
-
"test:unit": "jest tests/unit",
|
|
16
|
-
"test:e2e": "jest tests/e2e --setupFiles=./tests/setup.ts --runInBand",
|
|
17
15
|
"prettier": "prettier --write src/**/*.ts",
|
|
18
16
|
"doc": "typedoc --name \"Confluence.js - Cloud and Server API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bVi.svg",
|
|
19
17
|
"lint": "eslint src --ext .ts",
|
|
20
|
-
"lint:fix": "npm run lint -- --fix"
|
|
18
|
+
"lint:fix": "npm run lint -- --fix",
|
|
19
|
+
"test:unit": "ava --timeout=2m tests/unit",
|
|
20
|
+
"test:e2e": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/e2e/**/*.test.ts"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
22
|
+
"ava": {
|
|
23
|
+
"extensions": [
|
|
24
|
+
"ts"
|
|
25
|
+
],
|
|
26
|
+
"require": [
|
|
27
|
+
"ts-node/register",
|
|
28
|
+
"dotenv/config"
|
|
29
|
+
]
|
|
25
30
|
},
|
|
26
31
|
"keywords": [
|
|
27
32
|
"confluence",
|
|
@@ -34,31 +39,29 @@
|
|
|
34
39
|
],
|
|
35
40
|
"devDependencies": {
|
|
36
41
|
"@types/express": "^4.17.13",
|
|
37
|
-
"@types/jest": "^27.0.3",
|
|
38
42
|
"@types/oauth": "^0.9.1",
|
|
39
|
-
"@types/sinon": "^10.0.
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
41
|
-
"@typescript-eslint/parser": "^5.
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"eslint
|
|
45
|
-
"eslint-config-airbnb
|
|
46
|
-
"eslint-
|
|
47
|
-
"eslint-
|
|
48
|
-
"
|
|
49
|
-
"prettier": "^2.
|
|
50
|
-
"prettier-plugin-jsdoc": "^0.3.
|
|
51
|
-
"sinon": "^
|
|
52
|
-
"ts-
|
|
53
|
-
"typedoc": "^0.22.
|
|
54
|
-
"typedoc-plugin-extras": "^2.2.
|
|
55
|
-
"typescript": "^4.
|
|
43
|
+
"@types/sinon": "^10.0.11",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
|
45
|
+
"@typescript-eslint/parser": "^5.17.0",
|
|
46
|
+
"ava": "^4.1.0",
|
|
47
|
+
"dotenv": "^16.0.0",
|
|
48
|
+
"eslint": "^8.12.0",
|
|
49
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
50
|
+
"eslint-config-airbnb-typescript": "^16.2.0",
|
|
51
|
+
"eslint-import-resolver-typescript": "^2.7.0",
|
|
52
|
+
"eslint-plugin-import": "^2.25.4",
|
|
53
|
+
"prettier": "^2.6.1",
|
|
54
|
+
"prettier-plugin-jsdoc": "^0.3.36",
|
|
55
|
+
"sinon": "^13.0.1",
|
|
56
|
+
"ts-node": "^10.7.0",
|
|
57
|
+
"typedoc": "^0.22.13",
|
|
58
|
+
"typedoc-plugin-extras": "^2.2.3",
|
|
59
|
+
"typescript": "^4.6.3"
|
|
56
60
|
},
|
|
57
61
|
"dependencies": {
|
|
58
62
|
"atlassian-jwt": "^2.0.2",
|
|
59
|
-
"axios": "^0.
|
|
63
|
+
"axios": "^0.26.1",
|
|
60
64
|
"oauth": "^0.9.15",
|
|
61
|
-
"telemetry.confluence.js": "<2",
|
|
62
65
|
"tslib": "^2.3.1"
|
|
63
66
|
}
|
|
64
67
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as Models from './models';
|
|
2
|
+
import * as Parameters from './parameters';
|
|
3
|
+
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
|
+
import { RequestConfig } from '../requestConfig';
|
|
6
|
+
|
|
7
|
+
export class Analytics {
|
|
8
|
+
constructor(private client: Client) {}
|
|
9
|
+
|
|
10
|
+
/** Get the total number of views a piece of content has. */
|
|
11
|
+
async getViews<T = Models.GetViews>(parameters: Parameters.GetViews, callback: Callback<T>): Promise<void>;
|
|
12
|
+
/** Get the total number of views a piece of content has. */
|
|
13
|
+
async getViews<T = Models.GetViews>(parameters: Parameters.GetViews, callback?: never): Promise<T>;
|
|
14
|
+
async getViews<T = Models.GetViews>(parameters: Parameters.GetViews, callback?: Callback<T>): Promise<void | T> {
|
|
15
|
+
const config: RequestConfig = {
|
|
16
|
+
url: `/api/analytics/content/${parameters.contentId}/views`,
|
|
17
|
+
method: 'GET',
|
|
18
|
+
params: {
|
|
19
|
+
fromDate: parameters.fromDate,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return this.client.sendRequest(config, callback);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Get the total number of distinct viewers a piece of content has. */
|
|
27
|
+
async getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback: Callback<T>): Promise<void>;
|
|
28
|
+
/** Get the total number of distinct viewers a piece of content has. */
|
|
29
|
+
async getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback?: never): Promise<T>;
|
|
30
|
+
async getViewers<T = Models.GetViewers>(
|
|
31
|
+
parameters: Parameters.GetViewers,
|
|
32
|
+
callback?: Callback<T>,
|
|
33
|
+
): Promise<void | T> {
|
|
34
|
+
const config: RequestConfig = {
|
|
35
|
+
url: `/api/analytics/content/${parameters.contentId}/viewers`,
|
|
36
|
+
method: 'GET',
|
|
37
|
+
params: {
|
|
38
|
+
fromDate: parameters.fromDate,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
|
+
}
|
|
44
|
+
}
|
package/src/api/audit.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 Audit {
|
|
@@ -45,7 +45,7 @@ export class Audit {
|
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
return this.client.sendRequest(config, callback
|
|
48
|
+
return this.client.sendRequest(config, callback);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -87,7 +87,7 @@ export class Audit {
|
|
|
87
87
|
},
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
return this.client.sendRequest(config, callback
|
|
90
|
+
return this.client.sendRequest(config, callback);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -120,7 +120,7 @@ export class Audit {
|
|
|
120
120
|
},
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
return this.client.sendRequest(config, callback
|
|
123
|
+
return this.client.sendRequest(config, callback);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -143,7 +143,7 @@ export class Audit {
|
|
|
143
143
|
method: 'GET',
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
return this.client.sendRequest(config, callback
|
|
146
|
+
return this.client.sendRequest(config, callback);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
@@ -177,7 +177,7 @@ export class Audit {
|
|
|
177
177
|
},
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
return this.client.sendRequest(config, callback
|
|
180
|
+
return this.client.sendRequest(config, callback);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
@@ -224,6 +224,6 @@ export class Audit {
|
|
|
224
224
|
},
|
|
225
225
|
};
|
|
226
226
|
|
|
227
|
-
return this.client.sendRequest(config, callback
|
|
227
|
+
return this.client.sendRequest(config, callback);
|
|
228
228
|
}
|
|
229
229
|
}
|