confluence.js 1.1.3 → 1.2.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 +30 -0
- package/README.md +1 -0
- package/out/api/content.d.ts +24 -52
- package/out/api/content.js +14 -0
- package/out/api/contentAttachments.d.ts +10 -6
- package/out/api/contentAttachments.js +12 -0
- package/out/api/contentChildrenAndDescendants.d.ts +6 -24
- package/out/api/contentChildrenAndDescendants.js +6 -0
- package/out/api/contentPermissions.d.ts +6 -2
- package/out/api/contentPermissions.js +6 -1
- package/out/api/contentProperties.js +1 -0
- package/out/api/contentWatches.d.ts +2 -2
- package/out/api/experimental.d.ts +16 -0
- package/out/api/experimental.js +34 -0
- package/out/api/group.d.ts +30 -10
- package/out/api/group.js +31 -2
- package/out/api/index.d.ts +1 -0
- package/out/api/index.js +1 -0
- package/out/api/inlineTasks.d.ts +28 -0
- package/out/api/inlineTasks.js +21 -0
- package/out/api/models/getViewers.d.ts +6 -0
- package/out/api/models/getViewers.js +2 -0
- package/out/api/models/getViews.d.ts +6 -0
- package/out/api/models/getViews.js +2 -0
- package/out/api/models/groupCreate.d.ts +4 -0
- package/out/api/models/groupCreate.js +2 -0
- package/out/api/models/horizontalHeaderLookAndFeel.d.ts +11 -0
- package/out/api/models/horizontalHeaderLookAndFeel.js +2 -0
- package/out/api/models/index.d.ts +13 -4
- package/out/api/models/index.js +13 -4
- package/out/api/models/lookAndFeel.d.ts +3 -0
- package/out/api/models/spacePermissionCreate.d.ts +33 -0
- package/out/api/models/spacePermissionCreate.js +2 -0
- package/out/api/models/spacePermissionCustomContent.d.ts +16 -0
- package/out/api/models/spacePermissionCustomContent.js +2 -0
- package/out/api/models/spacePermissionRequest.d.ts +41 -0
- package/out/api/models/spacePermissionRequest.js +2 -0
- package/out/api/models/spacePrivateCreate.d.ts +9 -0
- package/out/api/models/spacePropertyCreate.d.ts +4 -0
- package/out/api/models/spaceUpdate.d.ts +4 -0
- package/out/api/models/taskStatusUpdate.d.ts +3 -0
- package/out/api/models/taskStatusUpdate.js +2 -0
- package/out/api/models/topNavigationLookAndFeel.d.ts +8 -0
- package/out/api/models/topNavigationLookAndFeel.js +2 -0
- package/out/api/parameters/addCustomContentPermissions.d.ts +5 -0
- package/out/api/parameters/addCustomContentPermissions.js +2 -0
- package/out/api/parameters/addPermissionToSpace.d.ts +5 -0
- package/out/api/parameters/addPermissionToSpace.js +2 -0
- package/out/api/parameters/addUserToGroup.d.ts +2 -1
- package/out/api/parameters/addUserToGroupByGroupId.d.ts +2 -1
- package/out/api/parameters/archivePages.d.ts +6 -0
- package/out/api/parameters/archivePages.js +2 -0
- package/out/api/parameters/checkContentPermission.d.ts +5 -0
- package/out/api/parameters/checkContentPermission.js +2 -0
- package/out/api/parameters/deleteRelationship.d.ts +38 -0
- package/out/api/parameters/deleteRelationship.js +2 -0
- package/out/api/parameters/downloadAttachment.d.ts +11 -0
- package/out/api/parameters/downloadAttachment.js +2 -0
- package/out/api/parameters/getContentProperties.d.ts +2 -0
- package/out/api/parameters/getDescendantsOfType.d.ts +101 -0
- package/out/api/parameters/getDescendantsOfType.js +89 -0
- package/out/api/parameters/getGroupByName.d.ts +4 -0
- package/out/api/parameters/getGroupByName.js +2 -0
- package/out/api/parameters/getGroups.d.ts +2 -0
- package/out/api/parameters/getTaskById.d.ts +4 -0
- package/out/api/parameters/getTaskById.js +2 -0
- package/out/api/parameters/getViewers.d.ts +6 -0
- package/out/api/parameters/getViewers.js +2 -0
- package/out/api/parameters/getViews.d.ts +6 -0
- package/out/api/parameters/getViews.js +2 -0
- package/out/api/parameters/index.d.ts +131 -116
- package/out/api/parameters/index.js +131 -116
- package/out/api/parameters/publishLegacyDraft.d.ts +3 -1
- package/out/api/parameters/publishSharedDraft.d.ts +3 -1
- package/out/api/parameters/searchByCQL.d.ts +34 -0
- package/out/api/parameters/searchByCQL.js +2 -0
- package/out/api/parameters/searchGroups.d.ts +8 -0
- package/out/api/parameters/searchGroups.js +2 -0
- package/out/api/parameters/searchUser.d.ts +20 -0
- package/out/api/parameters/searchUser.js +2 -0
- package/out/api/parameters/updateTaskById.d.ts +5 -0
- package/out/api/parameters/updateTaskById.js +2 -0
- package/out/api/relation.d.ts +12 -4
- package/out/api/relation.js +12 -2
- package/out/api/search.d.ts +12 -64
- package/out/api/search.js +19 -2
- package/out/api/settings.d.ts +2 -2
- package/out/api/settings.js +3 -0
- package/out/api/space.js +3 -0
- package/out/api/spacePermissions.d.ts +26 -2
- package/out/api/spacePermissions.js +20 -3
- package/out/api/spaceProperties.d.ts +4 -4
- package/out/api/spaceProperties.js +1 -0
- package/out/clients/baseClient.js +1 -1
- package/out/clients/confluenceClient.d.ts +2 -1
- package/out/clients/confluenceClient.js +1 -0
- package/package.json +6 -6
- package/src/api/content.ts +57 -52
- package/src/api/contentAttachments.ts +28 -6
- package/src/api/contentChildrenAndDescendants.ts +24 -28
- package/src/api/contentPermissions.ts +24 -7
- package/src/api/contentProperties.ts +1 -0
- package/src/api/contentWatches.ts +3 -3
- package/src/api/experimental.ts +44 -0
- package/src/api/group.ts +71 -19
- package/src/api/index.ts +1 -0
- package/src/api/inlineTasks.ts +52 -0
- package/src/api/models/getViewers.ts +6 -0
- package/src/api/models/getViews.ts +6 -0
- package/src/api/models/groupCreate.ts +4 -0
- package/src/api/models/horizontalHeaderLookAndFeel.ts +12 -0
- package/src/api/models/index.ts +13 -4
- package/src/api/models/lookAndFeel.ts +3 -0
- package/src/api/models/spacePermissionCreate.ts +34 -0
- package/src/api/models/spacePermissionCustomContent.ts +17 -0
- package/src/api/models/spacePermissionRequest.ts +42 -0
- package/src/api/models/spacePrivateCreate.ts +9 -0
- package/src/api/models/spacePropertyCreate.ts +4 -0
- package/src/api/models/spaceUpdate.ts +4 -0
- package/src/api/models/taskStatusUpdate.ts +3 -0
- package/src/api/models/topNavigationLookAndFeel.ts +8 -0
- package/src/api/parameters/addCustomContentPermissions.ts +6 -0
- package/src/api/parameters/addPermissionToSpace.ts +6 -0
- package/src/api/parameters/addUserToGroup.ts +3 -1
- package/src/api/parameters/addUserToGroupByGroupId.ts +3 -1
- package/src/api/parameters/archivePages.ts +6 -0
- package/src/api/parameters/checkContentPermission.ts +6 -0
- package/src/api/parameters/deleteRelationship.ts +38 -0
- package/src/api/parameters/downloadAttachment.ts +11 -0
- package/src/api/parameters/getContentProperties.ts +2 -0
- package/src/api/parameters/getDescendantsOfType.ts +102 -0
- package/src/api/parameters/getGroupByName.ts +4 -0
- package/src/api/parameters/getGroups.ts +2 -0
- package/src/api/parameters/getTaskById.ts +4 -0
- package/src/api/parameters/getViewers.ts +6 -0
- package/src/api/parameters/getViews.ts +6 -0
- package/src/api/parameters/index.ts +131 -116
- package/src/api/parameters/publishLegacyDraft.ts +4 -1
- package/src/api/parameters/publishSharedDraft.ts +4 -1
- package/src/api/parameters/searchByCQL.ts +34 -0
- package/src/api/parameters/searchGroups.ts +8 -0
- package/src/api/parameters/searchUser.ts +20 -0
- package/src/api/parameters/updateTaskById.ts +6 -0
- package/src/api/relation.ts +33 -8
- package/src/api/search.ts +53 -73
- package/src/api/settings.ts +6 -3
- package/src/api/space.ts +3 -0
- package/src/api/spacePermissions.ts +66 -8
- package/src/api/spaceProperties.ts +5 -4
- package/src/clients/baseClient.ts +2 -2
- package/src/clients/confluenceClient.ts +2 -0
|
@@ -1,143 +1,158 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
(0, tslib_1.__exportStar)(require("./
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./addContentWatcher"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./addCustomContentPermissions"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./addGroupToContentRestriction"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./addGroupToContentRestrictionByGroupId"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./addLabelsToContent"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./addLabelWatcher"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./addPermission"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./addPermissionToSpace"), exports);
|
|
12
|
+
(0, tslib_1.__exportStar)(require("./addRestrictions"), exports);
|
|
13
|
+
(0, tslib_1.__exportStar)(require("./addSpaceWatcher"), exports);
|
|
14
|
+
(0, tslib_1.__exportStar)(require("./addUserToContentRestriction"), exports);
|
|
15
|
+
(0, tslib_1.__exportStar)(require("./addUserToGroup"), exports);
|
|
16
|
+
(0, tslib_1.__exportStar)(require("./addUserToGroupByGroupId"), exports);
|
|
17
|
+
(0, tslib_1.__exportStar)(require("./archivePages"), exports);
|
|
18
|
+
(0, tslib_1.__exportStar)(require("./checkContentPermission"), exports);
|
|
19
|
+
(0, tslib_1.__exportStar)(require("./convertContentBody"), exports);
|
|
20
|
+
(0, tslib_1.__exportStar)(require("./copyPage"), exports);
|
|
21
|
+
(0, tslib_1.__exportStar)(require("./copyPageHierarchy"), exports);
|
|
22
|
+
(0, tslib_1.__exportStar)(require("./createAttachments"), exports);
|
|
5
23
|
(0, tslib_1.__exportStar)(require("./createAuditRecord"), exports);
|
|
24
|
+
(0, tslib_1.__exportStar)(require("./createContent"), exports);
|
|
25
|
+
(0, tslib_1.__exportStar)(require("./createContentProperty"), exports);
|
|
26
|
+
(0, tslib_1.__exportStar)(require("./createContentPropertyForKey"), exports);
|
|
27
|
+
(0, tslib_1.__exportStar)(require("./createContentTemplate"), exports);
|
|
28
|
+
(0, tslib_1.__exportStar)(require("./createGroup"), exports);
|
|
29
|
+
(0, tslib_1.__exportStar)(require("./createOrUpdateAttachments"), exports);
|
|
30
|
+
(0, tslib_1.__exportStar)(require("./createPrivateSpace"), exports);
|
|
31
|
+
(0, tslib_1.__exportStar)(require("./createRelationship"), exports);
|
|
32
|
+
(0, tslib_1.__exportStar)(require("./createSpace"), exports);
|
|
33
|
+
(0, tslib_1.__exportStar)(require("./createSpaceProperty"), exports);
|
|
34
|
+
(0, tslib_1.__exportStar)(require("./createSpacePropertyForKey"), exports);
|
|
35
|
+
(0, tslib_1.__exportStar)(require("./delete"), exports);
|
|
36
|
+
(0, tslib_1.__exportStar)(require("./deleteContent"), exports);
|
|
37
|
+
(0, tslib_1.__exportStar)(require("./deleteContentProperty"), exports);
|
|
38
|
+
(0, tslib_1.__exportStar)(require("./deleteContentVersion"), exports);
|
|
39
|
+
(0, tslib_1.__exportStar)(require("./deleteRelationship"), exports);
|
|
40
|
+
(0, tslib_1.__exportStar)(require("./deleteRestrictions"), exports);
|
|
41
|
+
(0, tslib_1.__exportStar)(require("./deleteSpace"), exports);
|
|
42
|
+
(0, tslib_1.__exportStar)(require("./deleteSpaceProperty"), exports);
|
|
43
|
+
(0, tslib_1.__exportStar)(require("./descendantsOfType"), exports);
|
|
44
|
+
(0, tslib_1.__exportStar)(require("./downloadAttachment"), exports);
|
|
6
45
|
(0, tslib_1.__exportStar)(require("./exportAuditRecords"), exports);
|
|
7
|
-
(0, tslib_1.__exportStar)(require("./
|
|
46
|
+
(0, tslib_1.__exportStar)(require("./findSourcesForTarget"), exports);
|
|
47
|
+
(0, tslib_1.__exportStar)(require("./findTargetFromSource"), exports);
|
|
48
|
+
(0, tslib_1.__exportStar)(require("./getAllLabelContent"), exports);
|
|
49
|
+
(0, tslib_1.__exportStar)(require("./getAnonymousUser"), exports);
|
|
50
|
+
(0, tslib_1.__exportStar)(require("./getAttachments"), exports);
|
|
51
|
+
(0, tslib_1.__exportStar)(require("./getAuditRecords"), exports);
|
|
8
52
|
(0, tslib_1.__exportStar)(require("./getAuditRecordsForTimePeriod"), exports);
|
|
53
|
+
(0, tslib_1.__exportStar)(require("./getBlueprintTemplates"), exports);
|
|
54
|
+
(0, tslib_1.__exportStar)(require("./getBulkUserLookup"), exports);
|
|
55
|
+
(0, tslib_1.__exportStar)(require("./getBulkUserMigration"), exports);
|
|
9
56
|
(0, tslib_1.__exportStar)(require("./getContent"), exports);
|
|
10
|
-
(0, tslib_1.__exportStar)(require("./createContent"), exports);
|
|
11
|
-
(0, tslib_1.__exportStar)(require("./publishLegacyDraft"), exports);
|
|
12
|
-
(0, tslib_1.__exportStar)(require("./publishSharedDraft"), exports);
|
|
13
|
-
(0, tslib_1.__exportStar)(require("./searchContentByCQL"), exports);
|
|
14
57
|
(0, tslib_1.__exportStar)(require("./getContentById"), exports);
|
|
15
|
-
(0, tslib_1.__exportStar)(require("./
|
|
16
|
-
(0, tslib_1.__exportStar)(require("./deleteContent"), exports);
|
|
17
|
-
(0, tslib_1.__exportStar)(require("./getHistoryForContent"), exports);
|
|
58
|
+
(0, tslib_1.__exportStar)(require("./getContentByTypeForSpace"), exports);
|
|
18
59
|
(0, tslib_1.__exportStar)(require("./getContentChildren"), exports);
|
|
19
|
-
(0, tslib_1.__exportStar)(require("./movePage"), exports);
|
|
20
60
|
(0, tslib_1.__exportStar)(require("./getContentChildrenByType"), exports);
|
|
21
|
-
(0, tslib_1.__exportStar)(require("./getContentDescendants"), exports);
|
|
22
|
-
(0, tslib_1.__exportStar)(require("./descendantsOfType"), exports);
|
|
23
|
-
(0, tslib_1.__exportStar)(require("./copyPageHierarchy"), exports);
|
|
24
|
-
(0, tslib_1.__exportStar)(require("./copyPage"), exports);
|
|
25
|
-
(0, tslib_1.__exportStar)(require("./getAttachments"), exports);
|
|
26
|
-
(0, tslib_1.__exportStar)(require("./createAttachments"), exports);
|
|
27
|
-
(0, tslib_1.__exportStar)(require("./createOrUpdateAttachments"), exports);
|
|
28
|
-
(0, tslib_1.__exportStar)(require("./updateAttachmentProperties"), exports);
|
|
29
|
-
(0, tslib_1.__exportStar)(require("./updateAttachmentData"), exports);
|
|
30
61
|
(0, tslib_1.__exportStar)(require("./getContentComments"), exports);
|
|
31
|
-
(0, tslib_1.__exportStar)(require("./
|
|
32
|
-
(0, tslib_1.__exportStar)(require("./
|
|
33
|
-
(0, tslib_1.__exportStar)(require("./addLabelsToContent"), exports);
|
|
34
|
-
(0, tslib_1.__exportStar)(require("./removeLabelFromContentUsingQueryParameter"), exports);
|
|
35
|
-
(0, tslib_1.__exportStar)(require("./removeLabelFromContent"), exports);
|
|
36
|
-
(0, tslib_1.__exportStar)(require("./getWatchesForPage"), exports);
|
|
37
|
-
(0, tslib_1.__exportStar)(require("./getWatchesForSpace"), exports);
|
|
38
|
-
(0, tslib_1.__exportStar)(require("./getWatchersForSpace"), exports);
|
|
39
|
-
(0, tslib_1.__exportStar)(require("./getContentWatchStatus"), exports);
|
|
40
|
-
(0, tslib_1.__exportStar)(require("./addContentWatcher"), exports);
|
|
41
|
-
(0, tslib_1.__exportStar)(require("./removeContentWatcher"), exports);
|
|
42
|
-
(0, tslib_1.__exportStar)(require("./isWatchingLabel"), exports);
|
|
43
|
-
(0, tslib_1.__exportStar)(require("./addLabelWatcher"), exports);
|
|
44
|
-
(0, tslib_1.__exportStar)(require("./removeLabelWatcher"), exports);
|
|
45
|
-
(0, tslib_1.__exportStar)(require("./isWatchingSpace"), exports);
|
|
46
|
-
(0, tslib_1.__exportStar)(require("./addSpaceWatcher"), exports);
|
|
47
|
-
(0, tslib_1.__exportStar)(require("./removeSpaceWatch"), exports);
|
|
48
|
-
(0, tslib_1.__exportStar)(require("./permissionCheck"), exports);
|
|
62
|
+
(0, tslib_1.__exportStar)(require("./getContentDescendants"), exports);
|
|
63
|
+
(0, tslib_1.__exportStar)(require("./getContentForSpace"), exports);
|
|
49
64
|
(0, tslib_1.__exportStar)(require("./getContentProperties"), exports);
|
|
50
|
-
(0, tslib_1.__exportStar)(require("./createContentProperty"), exports);
|
|
51
65
|
(0, tslib_1.__exportStar)(require("./getContentProperty"), exports);
|
|
52
|
-
(0, tslib_1.__exportStar)(require("./createContentPropertyForKey"), exports);
|
|
53
|
-
(0, tslib_1.__exportStar)(require("./updateContentProperty"), exports);
|
|
54
|
-
(0, tslib_1.__exportStar)(require("./deleteContentProperty"), exports);
|
|
55
|
-
(0, tslib_1.__exportStar)(require("./getRestrictions"), exports);
|
|
56
|
-
(0, tslib_1.__exportStar)(require("./addRestrictions"), exports);
|
|
57
|
-
(0, tslib_1.__exportStar)(require("./updateRestrictions"), exports);
|
|
58
|
-
(0, tslib_1.__exportStar)(require("./deleteRestrictions"), exports);
|
|
59
|
-
(0, tslib_1.__exportStar)(require("./getRestrictionsByOperation"), exports);
|
|
60
|
-
(0, tslib_1.__exportStar)(require("./getRestrictionsForOperation"), exports);
|
|
61
66
|
(0, tslib_1.__exportStar)(require("./getContentRestrictionStatusForGroup"), exports);
|
|
62
|
-
(0, tslib_1.__exportStar)(require("./addGroupToContentRestriction"), exports);
|
|
63
|
-
(0, tslib_1.__exportStar)(require("./getIndividualGroupRestrictionStatusByGroupId"), exports);
|
|
64
|
-
(0, tslib_1.__exportStar)(require("./addGroupToContentRestrictionByGroupId"), exports);
|
|
65
|
-
(0, tslib_1.__exportStar)(require("./removeGroupByName"), exports);
|
|
66
|
-
(0, tslib_1.__exportStar)(require("./removeGroupById"), exports);
|
|
67
67
|
(0, tslib_1.__exportStar)(require("./getContentRestrictionStatusForUser"), exports);
|
|
68
|
-
(0, tslib_1.__exportStar)(require("./
|
|
69
|
-
(0, tslib_1.__exportStar)(require("./
|
|
70
|
-
(0, tslib_1.__exportStar)(require("./getContentVersions"), exports);
|
|
71
|
-
(0, tslib_1.__exportStar)(require("./restoreContentVersion"), exports);
|
|
68
|
+
(0, tslib_1.__exportStar)(require("./getContentTemplate"), exports);
|
|
69
|
+
(0, tslib_1.__exportStar)(require("./getContentTemplates"), exports);
|
|
72
70
|
(0, tslib_1.__exportStar)(require("./getContentVersion"), exports);
|
|
73
|
-
(0, tslib_1.__exportStar)(require("./
|
|
74
|
-
(0, tslib_1.__exportStar)(require("./
|
|
75
|
-
(0, tslib_1.__exportStar)(require("./
|
|
76
|
-
(0, tslib_1.__exportStar)(require("./
|
|
77
|
-
(0, tslib_1.__exportStar)(require("./getGroups"), exports);
|
|
78
|
-
(0, tslib_1.__exportStar)(require("./createGroup"), exports);
|
|
79
|
-
(0, tslib_1.__exportStar)(require("./removeGroup"), exports);
|
|
80
|
-
(0, tslib_1.__exportStar)(require("./getGroupByQueryParam"), exports);
|
|
81
|
-
(0, tslib_1.__exportStar)(require("./getGroupByGroupId"), exports);
|
|
71
|
+
(0, tslib_1.__exportStar)(require("./getContentVersions"), exports);
|
|
72
|
+
(0, tslib_1.__exportStar)(require("./getContentWatchStatus"), exports);
|
|
73
|
+
(0, tslib_1.__exportStar)(require("./getCurrentUser"), exports);
|
|
74
|
+
(0, tslib_1.__exportStar)(require("./getDescendantsOfType"), exports);
|
|
82
75
|
(0, tslib_1.__exportStar)(require("./getGroup"), exports);
|
|
83
|
-
(0, tslib_1.__exportStar)(require("./
|
|
76
|
+
(0, tslib_1.__exportStar)(require("./getGroupByGroupId"), exports);
|
|
77
|
+
(0, tslib_1.__exportStar)(require("./getGroupByName"), exports);
|
|
78
|
+
(0, tslib_1.__exportStar)(require("./getGroupByQueryParam"), exports);
|
|
84
79
|
(0, tslib_1.__exportStar)(require("./getGroupMembers"), exports);
|
|
85
|
-
(0, tslib_1.__exportStar)(require("./getGroupsSearch"), exports);
|
|
86
|
-
(0, tslib_1.__exportStar)(require("./addUserToGroupByGroupId"), exports);
|
|
87
|
-
(0, tslib_1.__exportStar)(require("./removeMemberFromGroupByGroupId"), exports);
|
|
88
80
|
(0, tslib_1.__exportStar)(require("./getGroupMembersByGroupId"), exports);
|
|
89
|
-
(0, tslib_1.__exportStar)(require("./
|
|
90
|
-
(0, tslib_1.__exportStar)(require("./
|
|
91
|
-
(0, tslib_1.__exportStar)(require("./
|
|
92
|
-
(0, tslib_1.__exportStar)(require("./
|
|
93
|
-
(0, tslib_1.__exportStar)(require("./
|
|
94
|
-
(0, tslib_1.__exportStar)(require("./
|
|
95
|
-
(0, tslib_1.__exportStar)(require("./createRelationship"), exports);
|
|
96
|
-
(0, tslib_1.__exportStar)(require("./delete"), exports);
|
|
97
|
-
(0, tslib_1.__exportStar)(require("./findSourcesForTarget"), exports);
|
|
98
|
-
(0, tslib_1.__exportStar)(require("./search"), exports);
|
|
99
|
-
(0, tslib_1.__exportStar)(require("./userSearch"), exports);
|
|
81
|
+
(0, tslib_1.__exportStar)(require("./getGroupMembershipsForUser"), exports);
|
|
82
|
+
(0, tslib_1.__exportStar)(require("./getGroups"), exports);
|
|
83
|
+
(0, tslib_1.__exportStar)(require("./getGroupsSearch"), exports);
|
|
84
|
+
(0, tslib_1.__exportStar)(require("./getHistoryForContent"), exports);
|
|
85
|
+
(0, tslib_1.__exportStar)(require("./getIndividualGroupRestrictionStatusByGroupId"), exports);
|
|
86
|
+
(0, tslib_1.__exportStar)(require("./getLabelsForContent"), exports);
|
|
100
87
|
(0, tslib_1.__exportStar)(require("./getLookAndFeelSettings"), exports);
|
|
101
|
-
(0, tslib_1.__exportStar)(require("./
|
|
102
|
-
(0, tslib_1.__exportStar)(require("./
|
|
103
|
-
(0, tslib_1.__exportStar)(require("./
|
|
104
|
-
(0, tslib_1.__exportStar)(require("./
|
|
105
|
-
(0, tslib_1.__exportStar)(require("./
|
|
106
|
-
(0, tslib_1.__exportStar)(require("./
|
|
107
|
-
(0, tslib_1.__exportStar)(require("./
|
|
108
|
-
(0, tslib_1.__exportStar)(require("./
|
|
109
|
-
(0, tslib_1.__exportStar)(require("./resetSpaceTheme"), exports);
|
|
110
|
-
(0, tslib_1.__exportStar)(require("./getSpaces"), exports);
|
|
111
|
-
(0, tslib_1.__exportStar)(require("./createSpace"), exports);
|
|
112
|
-
(0, tslib_1.__exportStar)(require("./createPrivateSpace"), exports);
|
|
88
|
+
(0, tslib_1.__exportStar)(require("./getMacroBodyByMacroId"), exports);
|
|
89
|
+
(0, tslib_1.__exportStar)(require("./getMembersByQueryParam"), exports);
|
|
90
|
+
(0, tslib_1.__exportStar)(require("./getPrivacyUnsafeUserEmail"), exports);
|
|
91
|
+
(0, tslib_1.__exportStar)(require("./getPrivacyUnsafeUserEmailBulk"), exports);
|
|
92
|
+
(0, tslib_1.__exportStar)(require("./getRelationship"), exports);
|
|
93
|
+
(0, tslib_1.__exportStar)(require("./getRestrictions"), exports);
|
|
94
|
+
(0, tslib_1.__exportStar)(require("./getRestrictionsByOperation"), exports);
|
|
95
|
+
(0, tslib_1.__exportStar)(require("./getRestrictionsForOperation"), exports);
|
|
113
96
|
(0, tslib_1.__exportStar)(require("./getSpace"), exports);
|
|
114
|
-
(0, tslib_1.__exportStar)(require("./updateSpace"), exports);
|
|
115
|
-
(0, tslib_1.__exportStar)(require("./deleteSpace"), exports);
|
|
116
|
-
(0, tslib_1.__exportStar)(require("./getContentForSpace"), exports);
|
|
117
|
-
(0, tslib_1.__exportStar)(require("./getContentByTypeForSpace"), exports);
|
|
118
|
-
(0, tslib_1.__exportStar)(require("./addPermission"), exports);
|
|
119
|
-
(0, tslib_1.__exportStar)(require("./removePermission"), exports);
|
|
120
97
|
(0, tslib_1.__exportStar)(require("./getSpaceProperties"), exports);
|
|
121
|
-
(0, tslib_1.__exportStar)(require("./createSpaceProperty"), exports);
|
|
122
98
|
(0, tslib_1.__exportStar)(require("./getSpaceProperty"), exports);
|
|
123
|
-
(0, tslib_1.__exportStar)(require("./
|
|
124
|
-
(0, tslib_1.__exportStar)(require("./updateSpaceProperty"), exports);
|
|
125
|
-
(0, tslib_1.__exportStar)(require("./deleteSpaceProperty"), exports);
|
|
99
|
+
(0, tslib_1.__exportStar)(require("./getSpaces"), exports);
|
|
126
100
|
(0, tslib_1.__exportStar)(require("./getSpaceSettings"), exports);
|
|
127
|
-
(0, tslib_1.__exportStar)(require("./
|
|
128
|
-
(0, tslib_1.__exportStar)(require("./
|
|
129
|
-
(0, tslib_1.__exportStar)(require("./
|
|
130
|
-
(0, tslib_1.__exportStar)(require("./
|
|
131
|
-
(0, tslib_1.__exportStar)(require("./
|
|
132
|
-
(0, tslib_1.__exportStar)(require("./
|
|
133
|
-
(0, tslib_1.__exportStar)(require("./removeTemplate"), exports);
|
|
101
|
+
(0, tslib_1.__exportStar)(require("./getSpaceTheme"), exports);
|
|
102
|
+
(0, tslib_1.__exportStar)(require("./getTask"), exports);
|
|
103
|
+
(0, tslib_1.__exportStar)(require("./getTaskById"), exports);
|
|
104
|
+
(0, tslib_1.__exportStar)(require("./getTasks"), exports);
|
|
105
|
+
(0, tslib_1.__exportStar)(require("./getTheme"), exports);
|
|
106
|
+
(0, tslib_1.__exportStar)(require("./getThemes"), exports);
|
|
134
107
|
(0, tslib_1.__exportStar)(require("./getUser"), exports);
|
|
135
|
-
(0, tslib_1.__exportStar)(require("./
|
|
136
|
-
(0, tslib_1.__exportStar)(require("./
|
|
137
|
-
(0, tslib_1.__exportStar)(require("./
|
|
138
|
-
(0, tslib_1.__exportStar)(require("./
|
|
139
|
-
(0, tslib_1.__exportStar)(require("./
|
|
140
|
-
(0, tslib_1.__exportStar)(require("./
|
|
141
|
-
(0, tslib_1.__exportStar)(require("./
|
|
108
|
+
(0, tslib_1.__exportStar)(require("./getViewers"), exports);
|
|
109
|
+
(0, tslib_1.__exportStar)(require("./getViews"), exports);
|
|
110
|
+
(0, tslib_1.__exportStar)(require("./getWatchersForSpace"), exports);
|
|
111
|
+
(0, tslib_1.__exportStar)(require("./getWatchesForPage"), exports);
|
|
112
|
+
(0, tslib_1.__exportStar)(require("./getWatchesForSpace"), exports);
|
|
113
|
+
(0, tslib_1.__exportStar)(require("./isWatchingLabel"), exports);
|
|
114
|
+
(0, tslib_1.__exportStar)(require("./isWatchingSpace"), exports);
|
|
115
|
+
(0, tslib_1.__exportStar)(require("./movePage"), exports);
|
|
116
|
+
(0, tslib_1.__exportStar)(require("./permissionCheck"), exports);
|
|
117
|
+
(0, tslib_1.__exportStar)(require("./publishLegacyDraft"), exports);
|
|
118
|
+
(0, tslib_1.__exportStar)(require("./publishSharedDraft"), exports);
|
|
142
119
|
(0, tslib_1.__exportStar)(require("./registerModules"), exports);
|
|
120
|
+
(0, tslib_1.__exportStar)(require("./removeContentWatcher"), exports);
|
|
121
|
+
(0, tslib_1.__exportStar)(require("./removeGroup"), exports);
|
|
122
|
+
(0, tslib_1.__exportStar)(require("./removeGroupById"), exports);
|
|
123
|
+
(0, tslib_1.__exportStar)(require("./removeGroupByName"), exports);
|
|
124
|
+
(0, tslib_1.__exportStar)(require("./removeLabelFromContent"), exports);
|
|
125
|
+
(0, tslib_1.__exportStar)(require("./removeLabelFromContentUsingQueryParameter"), exports);
|
|
126
|
+
(0, tslib_1.__exportStar)(require("./removeLabelWatcher"), exports);
|
|
127
|
+
(0, tslib_1.__exportStar)(require("./removeMemberFromGroup"), exports);
|
|
128
|
+
(0, tslib_1.__exportStar)(require("./removeMemberFromGroupByGroupId"), exports);
|
|
143
129
|
(0, tslib_1.__exportStar)(require("./removeModules"), exports);
|
|
130
|
+
(0, tslib_1.__exportStar)(require("./removePermission"), exports);
|
|
131
|
+
(0, tslib_1.__exportStar)(require("./removeSpaceWatch"), exports);
|
|
132
|
+
(0, tslib_1.__exportStar)(require("./removeTemplate"), exports);
|
|
133
|
+
(0, tslib_1.__exportStar)(require("./removeUserFromContentRestriction"), exports);
|
|
134
|
+
(0, tslib_1.__exportStar)(require("./resetLookAndFeelSettings"), exports);
|
|
135
|
+
(0, tslib_1.__exportStar)(require("./resetSpaceTheme"), exports);
|
|
136
|
+
(0, tslib_1.__exportStar)(require("./restoreContentVersion"), exports);
|
|
137
|
+
(0, tslib_1.__exportStar)(require("./search"), exports);
|
|
138
|
+
(0, tslib_1.__exportStar)(require("./searchByCQL"), exports);
|
|
139
|
+
(0, tslib_1.__exportStar)(require("./searchContentByCQL"), exports);
|
|
140
|
+
(0, tslib_1.__exportStar)(require("./searchGroups"), exports);
|
|
141
|
+
(0, tslib_1.__exportStar)(require("./searchTasks"), exports);
|
|
142
|
+
(0, tslib_1.__exportStar)(require("./searchUser"), exports);
|
|
143
|
+
(0, tslib_1.__exportStar)(require("./setLookAndFeelSettings"), exports);
|
|
144
|
+
(0, tslib_1.__exportStar)(require("./setRetentionPeriod"), exports);
|
|
145
|
+
(0, tslib_1.__exportStar)(require("./setSpaceTheme"), exports);
|
|
146
|
+
(0, tslib_1.__exportStar)(require("./updateAttachmentData"), exports);
|
|
147
|
+
(0, tslib_1.__exportStar)(require("./updateAttachmentProperties"), exports);
|
|
148
|
+
(0, tslib_1.__exportStar)(require("./updateContent"), exports);
|
|
149
|
+
(0, tslib_1.__exportStar)(require("./updateContentProperty"), exports);
|
|
150
|
+
(0, tslib_1.__exportStar)(require("./updateContentTemplate"), exports);
|
|
151
|
+
(0, tslib_1.__exportStar)(require("./updateLookAndFeel"), exports);
|
|
152
|
+
(0, tslib_1.__exportStar)(require("./updateLookAndFeelSettings"), exports);
|
|
153
|
+
(0, tslib_1.__exportStar)(require("./updateRestrictions"), exports);
|
|
154
|
+
(0, tslib_1.__exportStar)(require("./updateSpace"), exports);
|
|
155
|
+
(0, tslib_1.__exportStar)(require("./updateSpaceProperty"), exports);
|
|
156
|
+
(0, tslib_1.__exportStar)(require("./updateSpaceSettings"), exports);
|
|
157
|
+
(0, tslib_1.__exportStar)(require("./updateTaskById"), exports);
|
|
158
|
+
(0, tslib_1.__exportStar)(require("./userSearch"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ContentBlueprintDraft } from '../models';
|
|
2
|
+
export interface PublishLegacyDraft extends ContentBlueprintDraft {
|
|
2
3
|
/**
|
|
3
4
|
* The ID of the draft page that was created from a blueprint. You can find the `draftId` in the Confluence
|
|
4
5
|
* application by opening the draft page and checking the page URL.
|
|
@@ -11,4 +12,5 @@ export interface PublishLegacyDraft {
|
|
|
11
12
|
status?: string;
|
|
12
13
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
13
14
|
expand?: string[];
|
|
15
|
+
bodyStatus?: string;
|
|
14
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { ContentBlueprintDraft } from '../models';
|
|
2
|
+
export interface PublishSharedDraft extends ContentBlueprintDraft {
|
|
2
3
|
/**
|
|
3
4
|
* The ID of the draft page that was created from a blueprint. You can find the `draftId` in the Confluence
|
|
4
5
|
* application by opening the draft page and checking the page URL.
|
|
@@ -11,4 +12,5 @@ export interface PublishSharedDraft {
|
|
|
11
12
|
status?: string;
|
|
12
13
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
13
14
|
expand?: string[];
|
|
15
|
+
bodyStatus?: string;
|
|
14
16
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface SearchByCQL {
|
|
2
|
+
/**
|
|
3
|
+
* The CQL query to be used for the search. See [Advanced Searching using
|
|
4
|
+
* CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/) for instructions on how to
|
|
5
|
+
* build a CQL query.
|
|
6
|
+
*/
|
|
7
|
+
cql: string;
|
|
8
|
+
/**
|
|
9
|
+
* The space, content, and content status to execute the search against.
|
|
10
|
+
*
|
|
11
|
+
* - `spaceKey` Key of the space to search against. Optional.
|
|
12
|
+
* - `contentId` ID of the content to search against. Optional. Must be in the space specified by `spaceKey`.
|
|
13
|
+
* - `contentStatuses` Content statuses to search against. Optional.
|
|
14
|
+
*
|
|
15
|
+
* Specify these values in an object. For example, `cqlcontext={%22spaceKey%22:%22TEST%22, %22contentId%22:%22123%22}`
|
|
16
|
+
*/
|
|
17
|
+
cqlcontext?: string;
|
|
18
|
+
/** Pointer to a set of search results, returned as part of the `next` or `prev` URL from the previous search call. */
|
|
19
|
+
cursor?: string;
|
|
20
|
+
next?: boolean;
|
|
21
|
+
prev?: boolean;
|
|
22
|
+
/** The maximum number of content objects to return per page. Note, this may be restricted by fixed system limits. */
|
|
23
|
+
limit?: number;
|
|
24
|
+
/** The start point of the collection to return */
|
|
25
|
+
start?: number;
|
|
26
|
+
/** Whether to include content from archived spaces in the results. */
|
|
27
|
+
includeArchivedSpaces?: boolean;
|
|
28
|
+
/** Whether to exclude current spaces and only show archived spaces. */
|
|
29
|
+
excludeCurrentSpaces?: boolean;
|
|
30
|
+
/** The excerpt strategy to apply to the result */
|
|
31
|
+
excerpt?: string;
|
|
32
|
+
sitePermissionTypeFilter?: string;
|
|
33
|
+
expand?: string[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface SearchGroups {
|
|
2
|
+
/** The search term used to query results. */
|
|
3
|
+
query: string;
|
|
4
|
+
/** The starting index of the returned groups. */
|
|
5
|
+
start?: number;
|
|
6
|
+
/** The maximum number of groups to return per page. Note, this is restricted to a maximum limit of 200 groups. */
|
|
7
|
+
limit?: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface SearchUser {
|
|
2
|
+
/**
|
|
3
|
+
* The CQL query to be used for the search. See [Advanced Searching using
|
|
4
|
+
* CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/) for instructions on how to
|
|
5
|
+
* build a CQL query.
|
|
6
|
+
*
|
|
7
|
+
* Example queries:
|
|
8
|
+
* - cql=type=user will return all users
|
|
9
|
+
* - cql=user=“1234” will return user with accountId “1234”
|
|
10
|
+
* - You can also use IN, NOT IN, != operators
|
|
11
|
+
* - cql=user IN (“12”, “34") will return users with accountids “12” and “34”
|
|
12
|
+
* - cql=user.fullname~jo will return users with nickname/full name starting with “jo”
|
|
13
|
+
* - cql=user.accountid=“123” will return user with accountId “123”
|
|
14
|
+
*/
|
|
15
|
+
cql: string;
|
|
16
|
+
/** The starting index of the returned users. */
|
|
17
|
+
start?: number;
|
|
18
|
+
/** The maximum number of user objects to return per page. Note, this may be restricted by fixed system limits. */
|
|
19
|
+
limit?: number;
|
|
20
|
+
}
|
package/out/api/relation.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export declare class Relation {
|
|
|
27
27
|
* and source entity.
|
|
28
28
|
*/
|
|
29
29
|
findTargetFromSource<T = Models.RelationArray>(parameters: Parameters.FindTargetFromSource, callback?: never): Promise<T>;
|
|
30
|
+
/** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */
|
|
31
|
+
GetRelationship<T = Models.Relation>(parameters: Parameters.GetRelationship, callback: Callback<T>): Promise<void>;
|
|
32
|
+
/** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */
|
|
33
|
+
GetRelationship<T = Models.Relation>(parameters: Parameters.GetRelationship, callback?: never): Promise<T>;
|
|
30
34
|
/**
|
|
31
35
|
* Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships
|
|
32
36
|
* are one way.
|
|
@@ -38,7 +42,7 @@ export declare class Relation {
|
|
|
38
42
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
39
43
|
* and source entity.
|
|
40
44
|
*/
|
|
41
|
-
|
|
45
|
+
getRelationship<T = Models.Relation>(parameters: Parameters.GetRelationship, callback: Callback<T>): Promise<void>;
|
|
42
46
|
/**
|
|
43
47
|
* Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships
|
|
44
48
|
* are one way.
|
|
@@ -50,7 +54,7 @@ export declare class Relation {
|
|
|
50
54
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
51
55
|
* and source entity.
|
|
52
56
|
*/
|
|
53
|
-
|
|
57
|
+
getRelationship<T = Models.Relation>(parameters: Parameters.GetRelationship, callback?: never): Promise<T>;
|
|
54
58
|
/**
|
|
55
59
|
* Creates a relationship between two entities (user, space, content). The 'favourite' relationship is supported by
|
|
56
60
|
* default, but you can use this method to create any type of relationship between two entities.
|
|
@@ -73,6 +77,10 @@ export declare class Relation {
|
|
|
73
77
|
* ('Can use' global permission).
|
|
74
78
|
*/
|
|
75
79
|
createRelationship<T = Models.Relation>(parameters: Parameters.CreateRelationship, callback?: never): Promise<T>;
|
|
80
|
+
/** @deprecated Will be removed in the next major version. Use `deleteRelationship` instead. */
|
|
81
|
+
delete<T = void>(parameters: Parameters.Delete, callback: Callback<T>): Promise<void>;
|
|
82
|
+
/** @deprecated Will be removed in the next major version. Use `deleteRelationship` instead. */
|
|
83
|
+
delete<T = void>(parameters: Parameters.Delete, callback?: never): Promise<T>;
|
|
76
84
|
/**
|
|
77
85
|
* Deletes a relationship between two entities (user, space, content).
|
|
78
86
|
*
|
|
@@ -80,7 +88,7 @@ export declare class Relation {
|
|
|
80
88
|
* ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite
|
|
81
89
|
* relationships. A space administrator can delete favourite relationships for any user.
|
|
82
90
|
*/
|
|
83
|
-
|
|
91
|
+
deleteRelationship<T = void>(parameters: Parameters.DeleteRelationship, callback: Callback<T>): Promise<void>;
|
|
84
92
|
/**
|
|
85
93
|
* Deletes a relationship between two entities (user, space, content).
|
|
86
94
|
*
|
|
@@ -88,7 +96,7 @@ export declare class Relation {
|
|
|
88
96
|
* ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite
|
|
89
97
|
* relationships. A space administrator can delete favourite relationships for any user.
|
|
90
98
|
*/
|
|
91
|
-
|
|
99
|
+
deleteRelationship<T = void>(parameters: Parameters.DeleteRelationship, callback?: never): Promise<T>;
|
|
92
100
|
/**
|
|
93
101
|
* Returns all target entities that have a particular relationship to the source entity. Note, relationships are one way.
|
|
94
102
|
*
|
package/out/api/relation.js
CHANGED
|
@@ -25,6 +25,11 @@ class Relation {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
GetRelationship(parameters, callback) {
|
|
28
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
29
|
+
return this.getRelationship(parameters, callback);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
getRelationship(parameters, callback) {
|
|
28
33
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
29
34
|
const config = {
|
|
30
35
|
url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,
|
|
@@ -37,7 +42,7 @@ class Relation {
|
|
|
37
42
|
expand: parameters.expand,
|
|
38
43
|
},
|
|
39
44
|
};
|
|
40
|
-
return this.client.sendRequest(config, callback, { methodName: '
|
|
45
|
+
return this.client.sendRequest(config, callback, { methodName: 'getRelationship' });
|
|
41
46
|
});
|
|
42
47
|
}
|
|
43
48
|
createRelationship(parameters, callback) {
|
|
@@ -56,6 +61,11 @@ class Relation {
|
|
|
56
61
|
});
|
|
57
62
|
}
|
|
58
63
|
delete(parameters, callback) {
|
|
64
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
65
|
+
return this.deleteRelationship(parameters, callback);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
deleteRelationship(parameters, callback) {
|
|
59
69
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
60
70
|
const config = {
|
|
61
71
|
url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,
|
|
@@ -67,7 +77,7 @@ class Relation {
|
|
|
67
77
|
targetVersion: parameters.targetVersion,
|
|
68
78
|
},
|
|
69
79
|
};
|
|
70
|
-
return this.client.sendRequest(config, callback, { methodName: '
|
|
80
|
+
return this.client.sendRequest(config, callback, { methodName: 'deleteRelationship' });
|
|
71
81
|
});
|
|
72
82
|
}
|
|
73
83
|
findSourcesForTarget(parameters, callback) {
|
package/out/api/search.d.ts
CHANGED
|
@@ -5,90 +5,38 @@ import { Callback } from '../callback';
|
|
|
5
5
|
export declare class Search {
|
|
6
6
|
private client;
|
|
7
7
|
constructor(client: Client);
|
|
8
|
+
/** @deprecated Will be removed in the next major version. Use `searchByCQL` instead. */
|
|
9
|
+
search<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.Search, callback: Callback<T>): Promise<void>;
|
|
10
|
+
/** @deprecated Will be removed in the next major version. Use `searchByCQL` instead. */
|
|
11
|
+
search<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.Search, callback?: never): Promise<T>;
|
|
8
12
|
/**
|
|
9
13
|
* Searches for content using the [Confluence Query Language
|
|
10
14
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)
|
|
11
15
|
*
|
|
12
|
-
* Example initial call:
|
|
13
|
-
*
|
|
14
|
-
* https://your-domain.atlassian.net/wiki/rest/api/search?cql=type=page&limit=25
|
|
15
|
-
*
|
|
16
|
-
* Example response:
|
|
17
|
-
*
|
|
18
|
-
* {
|
|
19
|
-
* "results": [
|
|
20
|
-
* { ... },
|
|
21
|
-
* { ... },
|
|
22
|
-
* ...
|
|
23
|
-
* { ... }
|
|
24
|
-
* ],
|
|
25
|
-
* "limit": 25,
|
|
26
|
-
* "size": 25,
|
|
27
|
-
* ...
|
|
28
|
-
* "_links": {
|
|
29
|
-
* "base": "<url>",
|
|
30
|
-
* "context": "<url>",
|
|
31
|
-
* "next": "/rest/api/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg",
|
|
32
|
-
* "self": "<url>"
|
|
33
|
-
* }
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
16
|
* When additional results are available, returns `next` and `prev` URLs to retrieve them in subsequent calls. The
|
|
37
17
|
* URLs each contain a cursor that points to the appropriate set of results. Use `limit` to specify the number of
|
|
38
18
|
* results returned in each call.
|
|
39
19
|
*
|
|
40
|
-
* Example subsequent call (taken from example response):
|
|
41
|
-
*
|
|
42
|
-
* https://your-domain.atlassian.net/wiki/rest/api/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
|
|
43
|
-
*
|
|
44
|
-
* The response to this will have a `prev` URL similar to the `next` in the example response.
|
|
45
|
-
*
|
|
46
20
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the entities. Note, only
|
|
47
21
|
* entities that the user has permission to view will be returned.
|
|
48
22
|
*/
|
|
49
|
-
|
|
23
|
+
searchByCQL<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.SearchByCQL, callback: Callback<T>): Promise<void>;
|
|
50
24
|
/**
|
|
51
25
|
* Searches for content using the [Confluence Query Language
|
|
52
26
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)
|
|
53
27
|
*
|
|
54
|
-
* Example initial call:
|
|
55
|
-
*
|
|
56
|
-
* https://your-domain.atlassian.net/wiki/rest/api/search?cql=type=page&limit=25
|
|
57
|
-
*
|
|
58
|
-
* Example response:
|
|
59
|
-
*
|
|
60
|
-
* {
|
|
61
|
-
* "results": [
|
|
62
|
-
* { ... },
|
|
63
|
-
* { ... },
|
|
64
|
-
* ...
|
|
65
|
-
* { ... }
|
|
66
|
-
* ],
|
|
67
|
-
* "limit": 25,
|
|
68
|
-
* "size": 25,
|
|
69
|
-
* ...
|
|
70
|
-
* "_links": {
|
|
71
|
-
* "base": "<url>",
|
|
72
|
-
* "context": "<url>",
|
|
73
|
-
* "next": "/rest/api/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg",
|
|
74
|
-
* "self": "<url>"
|
|
75
|
-
* }
|
|
76
|
-
* }
|
|
77
|
-
*
|
|
78
28
|
* When additional results are available, returns `next` and `prev` URLs to retrieve them in subsequent calls. The
|
|
79
29
|
* URLs each contain a cursor that points to the appropriate set of results. Use `limit` to specify the number of
|
|
80
30
|
* results returned in each call.
|
|
81
31
|
*
|
|
82
|
-
* Example subsequent call (taken from example response):
|
|
83
|
-
*
|
|
84
|
-
* https://your-domain.atlassian.net/wiki/rest/api/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
|
|
85
|
-
*
|
|
86
|
-
* The response to this will have a `prev` URL similar to the `next` in the example response.
|
|
87
|
-
*
|
|
88
32
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the entities. Note, only
|
|
89
33
|
* entities that the user has permission to view will be returned.
|
|
90
34
|
*/
|
|
91
|
-
|
|
35
|
+
searchByCQL<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.SearchByCQL, callback?: never): Promise<T>;
|
|
36
|
+
/** @deprecated Will be removed in the next major version. Use `searchUser` instead. */
|
|
37
|
+
userSearch<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.UserSearch, callback: Callback<T>): Promise<void>;
|
|
38
|
+
/** @deprecated Will be removed in the next major version. Use `searchUser` instead. */
|
|
39
|
+
userSearch<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.UserSearch, callback?: never): Promise<T>;
|
|
92
40
|
/**
|
|
93
41
|
* Searches for users using user-specific queries from the [Confluence Query Language
|
|
94
42
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
@@ -96,7 +44,7 @@ export declare class Search {
|
|
|
96
44
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
97
45
|
* profilePicture, and displayName.
|
|
98
46
|
*/
|
|
99
|
-
|
|
47
|
+
searchUser<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.SearchUser, callback: Callback<T>): Promise<void>;
|
|
100
48
|
/**
|
|
101
49
|
* Searches for users using user-specific queries from the [Confluence Query Language
|
|
102
50
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
@@ -104,5 +52,5 @@ export declare class Search {
|
|
|
104
52
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
105
53
|
* profilePicture, and displayName.
|
|
106
54
|
*/
|
|
107
|
-
|
|
55
|
+
searchUser<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.SearchUser, callback?: never): Promise<T>;
|
|
108
56
|
}
|