confluence.js 1.1.3 → 1.3.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 +49 -0
- package/README.md +1 -57
- package/out/api/content.d.ts +24 -52
- package/out/api/content.js +15 -0
- package/out/api/contentAttachments.d.ts +10 -6
- package/out/api/contentAttachments.js +13 -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 +2 -0
- package/out/api/contentWatches.d.ts +2 -2
- package/out/api/experimental.d.ts +52 -0
- package/out/api/experimental.js +70 -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/addLabelsToSpace.d.ts +4 -0
- package/out/api/parameters/addLabelsToSpace.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/deleteLabelFromSpace.d.ts +8 -0
- package/out/api/parameters/deleteLabelFromSpace.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/getBulkUserLookup.d.ts +0 -6
- package/out/api/parameters/getContentById.d.ts +85 -1
- package/out/api/parameters/getContentById.js +87 -0
- package/out/api/parameters/getContentChildren.d.ts +1 -0
- package/out/api/parameters/getContentProperties.d.ts +2 -0
- package/out/api/parameters/getContentProperty.d.ts +12 -0
- package/out/api/parameters/getContentVersions.d.ts +1 -1
- package/out/api/parameters/getCurrentUser.d.ts +1 -6
- 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/getHistoryForContent.d.ts +1 -1
- package/out/api/parameters/getLabelsForSpace.d.ts +18 -0
- package/out/api/parameters/getLabelsForSpace.js +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 +134 -116
- package/out/api/parameters/index.js +134 -116
- package/out/api/parameters/publishLegacyDraft.d.ts +3 -1
- package/out/api/parameters/publishSharedDraft.d.ts +3 -1
- package/out/api/parameters/restoreContentVersion.d.ts +1 -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 +27 -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 +5 -1
- 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/api/template.d.ts +24 -16
- package/out/clients/baseClient.d.ts +2 -5
- package/out/clients/baseClient.js +4 -30
- package/out/clients/client.d.ts +2 -3
- package/out/clients/confluenceClient.d.ts +2 -1
- package/out/clients/confluenceClient.js +1 -0
- package/out/config.d.ts +3 -2
- package/out/index.d.ts +1 -0
- package/out/index.js +2 -1
- package/package.json +24 -24
- package/src/api/content.ts +58 -52
- package/src/api/contentAttachments.ts +29 -6
- package/src/api/contentChildrenAndDescendants.ts +24 -28
- package/src/api/contentPermissions.ts +24 -7
- package/src/api/contentProperties.ts +2 -0
- package/src/api/contentWatches.ts +3 -3
- package/src/api/experimental.ts +137 -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/addLabelsToSpace.ts +4 -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/deleteLabelFromSpace.ts +8 -0
- package/src/api/parameters/deleteRelationship.ts +38 -0
- package/src/api/parameters/downloadAttachment.ts +11 -0
- package/src/api/parameters/getBulkUserLookup.ts +0 -6
- package/src/api/parameters/getContentById.ts +86 -1
- package/src/api/parameters/getContentChildren.ts +1 -0
- package/src/api/parameters/getContentProperties.ts +2 -0
- package/src/api/parameters/getContentProperty.ts +12 -0
- package/src/api/parameters/getContentVersions.ts +1 -1
- package/src/api/parameters/getCurrentUser.ts +1 -6
- 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/getHistoryForContent.ts +1 -1
- package/src/api/parameters/getLabelsForSpace.ts +18 -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 +134 -116
- package/src/api/parameters/publishLegacyDraft.ts +4 -1
- package/src/api/parameters/publishSharedDraft.ts +4 -1
- package/src/api/parameters/restoreContentVersion.ts +1 -1
- package/src/api/parameters/searchByCQL.ts +34 -0
- package/src/api/parameters/searchGroups.ts +8 -0
- package/src/api/parameters/searchUser.ts +27 -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 +4 -1
- package/src/api/spacePermissions.ts +66 -8
- package/src/api/spaceProperties.ts +5 -4
- package/src/api/template.ts +24 -16
- package/src/clients/baseClient.ts +4 -60
- package/src/clients/client.ts +2 -3
- package/src/clients/confluenceClient.ts +2 -0
- package/src/config.ts +3 -2
- package/src/index.ts +1 -0
- package/tsconfig.json +2 -1
|
@@ -2,7 +2,7 @@ export interface GetHistoryForContent {
|
|
|
2
2
|
/** The ID of the content to be queried for its history. */
|
|
3
3
|
id: string;
|
|
4
4
|
/**
|
|
5
|
-
* A multi-value parameter indicating which properties of the content history to expand.
|
|
5
|
+
* A multi-value parameter indicating which properties of the content history to expand. Maximum sub-expansions allowed is `8`.
|
|
6
6
|
*
|
|
7
7
|
* - `lastUpdated` returns information about the most recent update of the content, including who updated it and when it
|
|
8
8
|
* was updated.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface GetLabelsForSpace {
|
|
2
|
+
/** The key of the space to get labels for. */
|
|
3
|
+
spaceKey: string;
|
|
4
|
+
/**
|
|
5
|
+
* Filters the results to labels with the specified prefix. If this parameter is not specified, then labels with any
|
|
6
|
+
* prefix will be returned.
|
|
7
|
+
*
|
|
8
|
+
* - `global` prefix is used by labels that are on content within the provided space.
|
|
9
|
+
* - `my` prefix can be explicitly added by a user when adding a label
|
|
10
|
+
* via the UI, e.g. 'my:example-label'.
|
|
11
|
+
* - `team` prefix is used for labels applied to the space.
|
|
12
|
+
*/
|
|
13
|
+
prefix?: string;
|
|
14
|
+
/** The starting index of the returned labels. */
|
|
15
|
+
start?: number;
|
|
16
|
+
/** The maximum number of labels to return per page. Note, this may be restricted by fixed system limits. */
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
@@ -1,140 +1,158 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './addContentWatcher';
|
|
2
|
+
export * from './addCustomContentPermissions';
|
|
3
|
+
export * from './addGroupToContentRestriction';
|
|
4
|
+
export * from './addGroupToContentRestrictionByGroupId';
|
|
5
|
+
export * from './addLabelsToContent';
|
|
6
|
+
export * from './addLabelsToSpace';
|
|
7
|
+
export * from './addLabelWatcher';
|
|
8
|
+
export * from './addPermission';
|
|
9
|
+
export * from './addPermissionToSpace';
|
|
10
|
+
export * from './addRestrictions';
|
|
11
|
+
export * from './addSpaceWatcher';
|
|
12
|
+
export * from './addUserToContentRestriction';
|
|
13
|
+
export * from './addUserToGroup';
|
|
14
|
+
export * from './addUserToGroupByGroupId';
|
|
15
|
+
export * from './archivePages';
|
|
16
|
+
export * from './checkContentPermission';
|
|
17
|
+
export * from './convertContentBody';
|
|
18
|
+
export * from './copyPage';
|
|
19
|
+
export * from './copyPageHierarchy';
|
|
20
|
+
export * from './createAttachments';
|
|
2
21
|
export * from './createAuditRecord';
|
|
22
|
+
export * from './createContent';
|
|
23
|
+
export * from './createContentProperty';
|
|
24
|
+
export * from './createContentPropertyForKey';
|
|
25
|
+
export * from './createContentTemplate';
|
|
26
|
+
export * from './createGroup';
|
|
27
|
+
export * from './createOrUpdateAttachments';
|
|
28
|
+
export * from './createPrivateSpace';
|
|
29
|
+
export * from './createRelationship';
|
|
30
|
+
export * from './createSpace';
|
|
31
|
+
export * from './createSpaceProperty';
|
|
32
|
+
export * from './createSpacePropertyForKey';
|
|
33
|
+
export * from './delete';
|
|
34
|
+
export * from './deleteContent';
|
|
35
|
+
export * from './deleteContentProperty';
|
|
36
|
+
export * from './deleteContentVersion';
|
|
37
|
+
export * from './deleteLabelFromSpace';
|
|
38
|
+
export * from './deleteRelationship';
|
|
39
|
+
export * from './deleteRestrictions';
|
|
40
|
+
export * from './deleteSpace';
|
|
41
|
+
export * from './deleteSpaceProperty';
|
|
42
|
+
export * from './descendantsOfType';
|
|
43
|
+
export * from './downloadAttachment';
|
|
3
44
|
export * from './exportAuditRecords';
|
|
4
|
-
export * from './
|
|
45
|
+
export * from './findSourcesForTarget';
|
|
46
|
+
export * from './findTargetFromSource';
|
|
47
|
+
export * from './getAllLabelContent';
|
|
48
|
+
export * from './getAnonymousUser';
|
|
49
|
+
export * from './getAttachments';
|
|
50
|
+
export * from './getAuditRecords';
|
|
5
51
|
export * from './getAuditRecordsForTimePeriod';
|
|
52
|
+
export * from './getBlueprintTemplates';
|
|
53
|
+
export * from './getBulkUserLookup';
|
|
54
|
+
export * from './getBulkUserMigration';
|
|
6
55
|
export * from './getContent';
|
|
7
|
-
export * from './createContent';
|
|
8
|
-
export * from './publishLegacyDraft';
|
|
9
|
-
export * from './publishSharedDraft';
|
|
10
|
-
export * from './searchContentByCQL';
|
|
11
56
|
export * from './getContentById';
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './deleteContent';
|
|
14
|
-
export * from './getHistoryForContent';
|
|
57
|
+
export * from './getContentByTypeForSpace';
|
|
15
58
|
export * from './getContentChildren';
|
|
16
|
-
export * from './movePage';
|
|
17
59
|
export * from './getContentChildrenByType';
|
|
18
|
-
export * from './getContentDescendants';
|
|
19
|
-
export * from './descendantsOfType';
|
|
20
|
-
export * from './copyPageHierarchy';
|
|
21
|
-
export * from './copyPage';
|
|
22
|
-
export * from './getAttachments';
|
|
23
|
-
export * from './createAttachments';
|
|
24
|
-
export * from './createOrUpdateAttachments';
|
|
25
|
-
export * from './updateAttachmentProperties';
|
|
26
|
-
export * from './updateAttachmentData';
|
|
27
60
|
export * from './getContentComments';
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './addLabelsToContent';
|
|
31
|
-
export * from './removeLabelFromContentUsingQueryParameter';
|
|
32
|
-
export * from './removeLabelFromContent';
|
|
33
|
-
export * from './getWatchesForPage';
|
|
34
|
-
export * from './getWatchesForSpace';
|
|
35
|
-
export * from './getWatchersForSpace';
|
|
36
|
-
export * from './getContentWatchStatus';
|
|
37
|
-
export * from './addContentWatcher';
|
|
38
|
-
export * from './removeContentWatcher';
|
|
39
|
-
export * from './isWatchingLabel';
|
|
40
|
-
export * from './addLabelWatcher';
|
|
41
|
-
export * from './removeLabelWatcher';
|
|
42
|
-
export * from './isWatchingSpace';
|
|
43
|
-
export * from './addSpaceWatcher';
|
|
44
|
-
export * from './removeSpaceWatch';
|
|
45
|
-
export * from './permissionCheck';
|
|
61
|
+
export * from './getContentDescendants';
|
|
62
|
+
export * from './getContentForSpace';
|
|
46
63
|
export * from './getContentProperties';
|
|
47
|
-
export * from './createContentProperty';
|
|
48
64
|
export * from './getContentProperty';
|
|
49
|
-
export * from './createContentPropertyForKey';
|
|
50
|
-
export * from './updateContentProperty';
|
|
51
|
-
export * from './deleteContentProperty';
|
|
52
|
-
export * from './getRestrictions';
|
|
53
|
-
export * from './addRestrictions';
|
|
54
|
-
export * from './updateRestrictions';
|
|
55
|
-
export * from './deleteRestrictions';
|
|
56
|
-
export * from './getRestrictionsByOperation';
|
|
57
|
-
export * from './getRestrictionsForOperation';
|
|
58
65
|
export * from './getContentRestrictionStatusForGroup';
|
|
59
|
-
export * from './addGroupToContentRestriction';
|
|
60
|
-
export * from './getIndividualGroupRestrictionStatusByGroupId';
|
|
61
|
-
export * from './addGroupToContentRestrictionByGroupId';
|
|
62
|
-
export * from './removeGroupByName';
|
|
63
|
-
export * from './removeGroupById';
|
|
64
66
|
export * from './getContentRestrictionStatusForUser';
|
|
65
|
-
export * from './
|
|
66
|
-
export * from './
|
|
67
|
-
export * from './getContentVersions';
|
|
68
|
-
export * from './restoreContentVersion';
|
|
67
|
+
export * from './getContentTemplate';
|
|
68
|
+
export * from './getContentTemplates';
|
|
69
69
|
export * from './getContentVersion';
|
|
70
|
-
export * from './
|
|
71
|
-
export * from './
|
|
72
|
-
export * from './
|
|
73
|
-
export * from './
|
|
74
|
-
export * from './getGroups';
|
|
75
|
-
export * from './createGroup';
|
|
76
|
-
export * from './removeGroup';
|
|
77
|
-
export * from './getGroupByQueryParam';
|
|
78
|
-
export * from './getGroupByGroupId';
|
|
70
|
+
export * from './getContentVersions';
|
|
71
|
+
export * from './getContentWatchStatus';
|
|
72
|
+
export * from './getCurrentUser';
|
|
73
|
+
export * from './getDescendantsOfType';
|
|
79
74
|
export * from './getGroup';
|
|
80
|
-
export * from './
|
|
75
|
+
export * from './getGroupByGroupId';
|
|
76
|
+
export * from './getGroupByName';
|
|
77
|
+
export * from './getGroupByQueryParam';
|
|
81
78
|
export * from './getGroupMembers';
|
|
82
|
-
export * from './getGroupsSearch';
|
|
83
|
-
export * from './addUserToGroupByGroupId';
|
|
84
|
-
export * from './removeMemberFromGroupByGroupId';
|
|
85
79
|
export * from './getGroupMembersByGroupId';
|
|
86
|
-
export * from './
|
|
87
|
-
export * from './
|
|
88
|
-
export * from './
|
|
89
|
-
export * from './
|
|
90
|
-
export * from './
|
|
91
|
-
export * from './
|
|
92
|
-
export * from './
|
|
93
|
-
export * from './delete';
|
|
94
|
-
export * from './findSourcesForTarget';
|
|
95
|
-
export * from './search';
|
|
96
|
-
export * from './userSearch';
|
|
80
|
+
export * from './getGroupMembershipsForUser';
|
|
81
|
+
export * from './getGroups';
|
|
82
|
+
export * from './getGroupsSearch';
|
|
83
|
+
export * from './getHistoryForContent';
|
|
84
|
+
export * from './getIndividualGroupRestrictionStatusByGroupId';
|
|
85
|
+
export * from './getLabelsForContent';
|
|
86
|
+
export * from './getLabelsForSpace';
|
|
97
87
|
export * from './getLookAndFeelSettings';
|
|
98
|
-
export * from './
|
|
99
|
-
export * from './
|
|
100
|
-
export * from './
|
|
101
|
-
export * from './
|
|
102
|
-
export * from './
|
|
103
|
-
export * from './
|
|
104
|
-
export * from './
|
|
105
|
-
export * from './
|
|
106
|
-
export * from './resetSpaceTheme';
|
|
107
|
-
export * from './getSpaces';
|
|
108
|
-
export * from './createSpace';
|
|
109
|
-
export * from './createPrivateSpace';
|
|
88
|
+
export * from './getMacroBodyByMacroId';
|
|
89
|
+
export * from './getMembersByQueryParam';
|
|
90
|
+
export * from './getPrivacyUnsafeUserEmail';
|
|
91
|
+
export * from './getPrivacyUnsafeUserEmailBulk';
|
|
92
|
+
export * from './getRelationship';
|
|
93
|
+
export * from './getRestrictions';
|
|
94
|
+
export * from './getRestrictionsByOperation';
|
|
95
|
+
export * from './getRestrictionsForOperation';
|
|
110
96
|
export * from './getSpace';
|
|
111
|
-
export * from './updateSpace';
|
|
112
|
-
export * from './deleteSpace';
|
|
113
|
-
export * from './getContentForSpace';
|
|
114
|
-
export * from './getContentByTypeForSpace';
|
|
115
|
-
export * from './addPermission';
|
|
116
|
-
export * from './removePermission';
|
|
117
97
|
export * from './getSpaceProperties';
|
|
118
|
-
export * from './createSpaceProperty';
|
|
119
98
|
export * from './getSpaceProperty';
|
|
120
|
-
export * from './
|
|
121
|
-
export * from './updateSpaceProperty';
|
|
122
|
-
export * from './deleteSpaceProperty';
|
|
99
|
+
export * from './getSpaces';
|
|
123
100
|
export * from './getSpaceSettings';
|
|
124
|
-
export * from './
|
|
125
|
-
export * from './
|
|
126
|
-
export * from './
|
|
127
|
-
export * from './
|
|
128
|
-
export * from './
|
|
129
|
-
export * from './
|
|
130
|
-
export * from './removeTemplate';
|
|
101
|
+
export * from './getSpaceTheme';
|
|
102
|
+
export * from './getTask';
|
|
103
|
+
export * from './getTaskById';
|
|
104
|
+
export * from './getTasks';
|
|
105
|
+
export * from './getTheme';
|
|
106
|
+
export * from './getThemes';
|
|
131
107
|
export * from './getUser';
|
|
132
|
-
export * from './
|
|
133
|
-
export * from './
|
|
134
|
-
export * from './
|
|
135
|
-
export * from './
|
|
136
|
-
export * from './
|
|
137
|
-
export * from './
|
|
138
|
-
export * from './
|
|
108
|
+
export * from './getViewers';
|
|
109
|
+
export * from './getViews';
|
|
110
|
+
export * from './getWatchersForSpace';
|
|
111
|
+
export * from './getWatchesForPage';
|
|
112
|
+
export * from './getWatchesForSpace';
|
|
113
|
+
export * from './isWatchingLabel';
|
|
114
|
+
export * from './isWatchingSpace';
|
|
115
|
+
export * from './movePage';
|
|
116
|
+
export * from './permissionCheck';
|
|
117
|
+
export * from './publishLegacyDraft';
|
|
118
|
+
export * from './publishSharedDraft';
|
|
139
119
|
export * from './registerModules';
|
|
120
|
+
export * from './removeContentWatcher';
|
|
121
|
+
export * from './removeGroup';
|
|
122
|
+
export * from './removeGroupById';
|
|
123
|
+
export * from './removeGroupByName';
|
|
124
|
+
export * from './removeLabelFromContent';
|
|
125
|
+
export * from './removeLabelFromContentUsingQueryParameter';
|
|
126
|
+
export * from './removeLabelWatcher';
|
|
127
|
+
export * from './removeMemberFromGroup';
|
|
128
|
+
export * from './removeMemberFromGroupByGroupId';
|
|
140
129
|
export * from './removeModules';
|
|
130
|
+
export * from './removePermission';
|
|
131
|
+
export * from './removeSpaceWatch';
|
|
132
|
+
export * from './removeTemplate';
|
|
133
|
+
export * from './removeUserFromContentRestriction';
|
|
134
|
+
export * from './resetLookAndFeelSettings';
|
|
135
|
+
export * from './resetSpaceTheme';
|
|
136
|
+
export * from './restoreContentVersion';
|
|
137
|
+
export * from './search';
|
|
138
|
+
export * from './searchByCQL';
|
|
139
|
+
export * from './searchContentByCQL';
|
|
140
|
+
export * from './searchGroups';
|
|
141
|
+
export * from './searchTasks';
|
|
142
|
+
export * from './searchUser';
|
|
143
|
+
export * from './setLookAndFeelSettings';
|
|
144
|
+
export * from './setRetentionPeriod';
|
|
145
|
+
export * from './setSpaceTheme';
|
|
146
|
+
export * from './updateAttachmentData';
|
|
147
|
+
export * from './updateAttachmentProperties';
|
|
148
|
+
export * from './updateContent';
|
|
149
|
+
export * from './updateContentProperty';
|
|
150
|
+
export * from './updateContentTemplate';
|
|
151
|
+
export * from './updateLookAndFeel';
|
|
152
|
+
export * from './updateLookAndFeelSettings';
|
|
153
|
+
export * from './updateRestrictions';
|
|
154
|
+
export * from './updateSpace';
|
|
155
|
+
export * from './updateSpaceProperty';
|
|
156
|
+
export * from './updateSpaceSettings';
|
|
157
|
+
export * from './updateTaskById';
|
|
158
|
+
export * from './userSearch';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ContentBlueprintDraft } from '../models';
|
|
2
|
+
|
|
3
|
+
export interface PublishLegacyDraft extends ContentBlueprintDraft {
|
|
2
4
|
/**
|
|
3
5
|
* The ID of the draft page that was created from a blueprint. You can find the `draftId` in the Confluence
|
|
4
6
|
* application by opening the draft page and checking the page URL.
|
|
@@ -11,4 +13,5 @@ export interface PublishLegacyDraft {
|
|
|
11
13
|
status?: string;
|
|
12
14
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
13
15
|
expand?: string[];
|
|
16
|
+
bodyStatus?: string;
|
|
14
17
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ContentBlueprintDraft } from '../models';
|
|
2
|
+
|
|
3
|
+
export interface PublishSharedDraft extends ContentBlueprintDraft {
|
|
2
4
|
/**
|
|
3
5
|
* The ID of the draft page that was created from a blueprint. You can find the `draftId` in the Confluence
|
|
4
6
|
* application by opening the draft page and checking the page URL.
|
|
@@ -11,4 +13,5 @@ export interface PublishSharedDraft {
|
|
|
11
13
|
status?: string;
|
|
12
14
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
13
15
|
expand?: string[];
|
|
16
|
+
bodyStatus?: string;
|
|
14
17
|
}
|
|
@@ -4,7 +4,7 @@ export interface RestoreContentVersion extends VersionRestore {
|
|
|
4
4
|
/** The ID of the content for which the history will be restored. */
|
|
5
5
|
id: string;
|
|
6
6
|
/**
|
|
7
|
-
* A multi-value parameter indicating which properties of the
|
|
7
|
+
* A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded.
|
|
8
8
|
*
|
|
9
9
|
* - `collaborators` returns the users that collaborated on the version.
|
|
10
10
|
* - `content` returns the content for the version.
|
|
@@ -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,27 @@
|
|
|
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
|
+
/**
|
|
21
|
+
* A multi-value parameter indicating which properties of the user to expand.
|
|
22
|
+
*
|
|
23
|
+
* - `operations` returns the operations for the user, which are used when setting permissions.
|
|
24
|
+
* - `personalSpace` returns the personal space of the user.
|
|
25
|
+
*/
|
|
26
|
+
expand?: string[];
|
|
27
|
+
}
|
package/src/api/relation.ts
CHANGED
|
@@ -56,6 +56,20 @@ export class Relation {
|
|
|
56
56
|
return this.client.sendRequest(config, callback, { methodName: 'findTargetFromSource' });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
/** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */
|
|
60
|
+
async GetRelationship<T = Models.Relation>(
|
|
61
|
+
parameters: Parameters.GetRelationship,
|
|
62
|
+
callback: Callback<T>
|
|
63
|
+
): Promise<void>;
|
|
64
|
+
/** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */
|
|
65
|
+
async GetRelationship<T = Models.Relation>(parameters: Parameters.GetRelationship, callback?: never): Promise<T>;
|
|
66
|
+
async GetRelationship<T = Models.Relation>(
|
|
67
|
+
parameters: Parameters.GetRelationship,
|
|
68
|
+
callback?: Callback<T>,
|
|
69
|
+
): Promise<void | T> {
|
|
70
|
+
return this.getRelationship(parameters, callback!);
|
|
71
|
+
}
|
|
72
|
+
|
|
59
73
|
/**
|
|
60
74
|
* Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships
|
|
61
75
|
* are one way.
|
|
@@ -67,7 +81,7 @@ export class Relation {
|
|
|
67
81
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
68
82
|
* and source entity.
|
|
69
83
|
*/
|
|
70
|
-
async
|
|
84
|
+
async getRelationship<T = Models.Relation>(
|
|
71
85
|
parameters: Parameters.GetRelationship,
|
|
72
86
|
callback: Callback<T>
|
|
73
87
|
): Promise<void>;
|
|
@@ -82,8 +96,8 @@ export class Relation {
|
|
|
82
96
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity
|
|
83
97
|
* and source entity.
|
|
84
98
|
*/
|
|
85
|
-
async
|
|
86
|
-
async
|
|
99
|
+
async getRelationship<T = Models.Relation>(parameters: Parameters.GetRelationship, callback?: never): Promise<T>;
|
|
100
|
+
async getRelationship<T = Models.Relation>(
|
|
87
101
|
parameters: Parameters.GetRelationship,
|
|
88
102
|
callback?: Callback<T>,
|
|
89
103
|
): Promise<void | T> {
|
|
@@ -99,7 +113,7 @@ export class Relation {
|
|
|
99
113
|
},
|
|
100
114
|
};
|
|
101
115
|
|
|
102
|
-
return this.client.sendRequest(config, callback, { methodName: '
|
|
116
|
+
return this.client.sendRequest(config, callback, { methodName: 'getRelationship' });
|
|
103
117
|
}
|
|
104
118
|
|
|
105
119
|
/**
|
|
@@ -148,6 +162,14 @@ export class Relation {
|
|
|
148
162
|
return this.client.sendRequest(config, callback, { methodName: 'createRelationship' });
|
|
149
163
|
}
|
|
150
164
|
|
|
165
|
+
/** @deprecated Will be removed in the next major version. Use `deleteRelationship` instead. */
|
|
166
|
+
async delete<T = void>(parameters: Parameters.Delete, callback: Callback<T>): Promise<void>;
|
|
167
|
+
/** @deprecated Will be removed in the next major version. Use `deleteRelationship` instead. */
|
|
168
|
+
async delete<T = void>(parameters: Parameters.Delete, callback?: never): Promise<T>;
|
|
169
|
+
async delete<T = void>(parameters: Parameters.Delete, callback?: Callback<T>): Promise<void | T> {
|
|
170
|
+
return this.deleteRelationship(parameters, callback!);
|
|
171
|
+
}
|
|
172
|
+
|
|
151
173
|
/**
|
|
152
174
|
* Deletes a relationship between two entities (user, space, content).
|
|
153
175
|
*
|
|
@@ -155,7 +177,7 @@ export class Relation {
|
|
|
155
177
|
* ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite
|
|
156
178
|
* relationships. A space administrator can delete favourite relationships for any user.
|
|
157
179
|
*/
|
|
158
|
-
async
|
|
180
|
+
async deleteRelationship<T = void>(parameters: Parameters.DeleteRelationship, callback: Callback<T>): Promise<void>;
|
|
159
181
|
/**
|
|
160
182
|
* Deletes a relationship between two entities (user, space, content).
|
|
161
183
|
*
|
|
@@ -163,8 +185,11 @@ export class Relation {
|
|
|
163
185
|
* ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite
|
|
164
186
|
* relationships. A space administrator can delete favourite relationships for any user.
|
|
165
187
|
*/
|
|
166
|
-
async
|
|
167
|
-
async
|
|
188
|
+
async deleteRelationship<T = void>(parameters: Parameters.DeleteRelationship, callback?: never): Promise<T>;
|
|
189
|
+
async deleteRelationship<T = void>(
|
|
190
|
+
parameters: Parameters.DeleteRelationship,
|
|
191
|
+
callback?: Callback<T>,
|
|
192
|
+
): Promise<void | T> {
|
|
168
193
|
const config: RequestConfig = {
|
|
169
194
|
url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,
|
|
170
195
|
method: 'DELETE',
|
|
@@ -176,7 +201,7 @@ export class Relation {
|
|
|
176
201
|
},
|
|
177
202
|
};
|
|
178
203
|
|
|
179
|
-
return this.client.sendRequest(config, callback, { methodName: '
|
|
204
|
+
return this.client.sendRequest(config, callback, { methodName: 'deleteRelationship' });
|
|
180
205
|
}
|
|
181
206
|
|
|
182
207
|
/**
|