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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface DeleteRelationship {
|
|
2
|
+
/** The name of the relationship. */
|
|
3
|
+
relationName: string;
|
|
4
|
+
/** The source entity type of the relationship. This must be 'user', if the `relationName` is 'favourite'. */
|
|
5
|
+
sourceType: string;
|
|
6
|
+
/**
|
|
7
|
+
* - The identifier for the source entity:
|
|
8
|
+
*
|
|
9
|
+
* - If `sourceType` is 'user', then specify either 'current' (logged-in user) or the user key.
|
|
10
|
+
* - If `sourceType` is 'content', then specify the content ID.
|
|
11
|
+
* - If `sourceType` is 'space', then specify the space key.
|
|
12
|
+
*/
|
|
13
|
+
sourceKey: string;
|
|
14
|
+
/** The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is 'favourite'. */
|
|
15
|
+
targetType: string;
|
|
16
|
+
/**
|
|
17
|
+
* - The identifier for the target entity:
|
|
18
|
+
*
|
|
19
|
+
* - If `sourceType` is 'user', then specify either 'current' (logged-in user) or the user key.
|
|
20
|
+
* - If `sourceType` is 'content', then specify the content ID.
|
|
21
|
+
* - If `sourceType` is 'space', then specify the space key.
|
|
22
|
+
*/
|
|
23
|
+
targetKey: string;
|
|
24
|
+
/** The status of the source. This parameter is only used when the `sourceType` is 'content'. */
|
|
25
|
+
sourceStatus?: string;
|
|
26
|
+
/** The status of the target. This parameter is only used when the `targetType` is 'content'. */
|
|
27
|
+
targetStatus?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The version of the source. This parameter is only used when the `sourceType` is 'content' and the `sourceStatus`
|
|
30
|
+
* is 'historical'.
|
|
31
|
+
*/
|
|
32
|
+
sourceVersion?: number;
|
|
33
|
+
/**
|
|
34
|
+
* The version of the target. This parameter is only used when the `targetType` is 'content' and the `targetStatus`
|
|
35
|
+
* is 'historical'.
|
|
36
|
+
*/
|
|
37
|
+
targetVersion?: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface DownloadAttachment {
|
|
2
|
+
/** The ID of the content that the attachment is attached to. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** The ID of the attachment to download. */
|
|
5
|
+
attachmentId: string;
|
|
6
|
+
/**
|
|
7
|
+
* The version of the attachment. If this parameter is absent, the redirect URI will download the latest version of
|
|
8
|
+
* the attachment.
|
|
9
|
+
*/
|
|
10
|
+
version?: number;
|
|
11
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface GetContentProperties {
|
|
2
2
|
/** The ID of the content to be queried for its properties. */
|
|
3
3
|
id: string;
|
|
4
|
+
/**The key of the content property.*/
|
|
5
|
+
key?: string[];
|
|
4
6
|
/**
|
|
5
7
|
* A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is expanded.
|
|
6
8
|
*
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export interface GetDescendantsOfType {
|
|
2
|
+
/** The ID of the content to be queried for its descendants. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** The type of descendants to return. */
|
|
5
|
+
type: string | 'page' | 'comment' | 'attachment';
|
|
6
|
+
/**
|
|
7
|
+
* Filter the results to descendants upto a desired level of the content. Note, the maximum value supported is 100.
|
|
8
|
+
* root level of the content means immediate (level 1) descendants of the type requested. all represents returning all
|
|
9
|
+
* descendants of the type requested.
|
|
10
|
+
*/
|
|
11
|
+
depth?: string;
|
|
12
|
+
/** The starting index of the returned content. */
|
|
13
|
+
start?: number;
|
|
14
|
+
/** The maximum number of content to return per page. Note, this may be restricted by fixed system limits. */
|
|
15
|
+
limit?: number;
|
|
16
|
+
expand?: string | string[] | GetDescendantsOfType.Expand | GetDescendantsOfType.Expand[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export namespace GetDescendantsOfType {
|
|
20
|
+
export enum Expand {
|
|
21
|
+
/**
|
|
22
|
+
* Returns whether the content has attachments, comments, or child pages. Use this if you only need to check whether
|
|
23
|
+
* the content has children of a particular type.
|
|
24
|
+
*/
|
|
25
|
+
AllChildTypes = 'childTypes.all',
|
|
26
|
+
/** Returns whether the content has attachments. */
|
|
27
|
+
AttachmentChildType = 'childTypes.attachment',
|
|
28
|
+
/** Returns whether the content has comments. */
|
|
29
|
+
CommentChildType = 'childTypes.comment',
|
|
30
|
+
/** Returns whether the content has child pages. */
|
|
31
|
+
PageChildType = 'childTypes.page',
|
|
32
|
+
/**
|
|
33
|
+
* Returns the space that the content is in. This is the same as the information returned by [Get
|
|
34
|
+
* space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
|
|
35
|
+
*/
|
|
36
|
+
Container = 'container',
|
|
37
|
+
/**
|
|
38
|
+
* Returns information about the current user in relation to the content, including when they last viewed it,
|
|
39
|
+
* modified it, contributed to it, or added it as a favorite.
|
|
40
|
+
*/
|
|
41
|
+
CurrentUserMetadata = 'metadata.currentuser',
|
|
42
|
+
/** Returns content properties that have been set via the Confluence REST API. */
|
|
43
|
+
PropertiesMetadata = 'metadata.properties',
|
|
44
|
+
/** Returns the labels that have been added to the content. */
|
|
45
|
+
LabelsMetadata = 'metadata.labels',
|
|
46
|
+
/** This property is only used by Atlassian. */
|
|
47
|
+
FrontendMetadata = 'metadata.frontend',
|
|
48
|
+
/** Returns the operations for the content, which are used when setting permissions. */
|
|
49
|
+
Operations = 'operations',
|
|
50
|
+
/** Returns pages that are descendants at the level immediately below the content. */
|
|
51
|
+
PageChildren = 'children.page',
|
|
52
|
+
/** Returns all attachments for the content. */
|
|
53
|
+
AttachmentChildren = 'children.attachment',
|
|
54
|
+
/** Returns all comments on the content. */
|
|
55
|
+
CommentChildren = 'children.comment',
|
|
56
|
+
/** Returns the users that have permission to read the content. */
|
|
57
|
+
ReadUserRestriction = 'restrictions.read.restrictions.user',
|
|
58
|
+
/**
|
|
59
|
+
* Returns the groups that have permission to read the content. Note that this may return deleted groups, because
|
|
60
|
+
* deleting a group doesn't remove associated restrictions.
|
|
61
|
+
*/
|
|
62
|
+
ReadGroupRestriction = 'restrictions.read.restrictions.group',
|
|
63
|
+
/** Returns the users that have permission to update the content. */
|
|
64
|
+
UpdateUserRestriction = 'restrictions.update.restrictions.user',
|
|
65
|
+
/**
|
|
66
|
+
* Returns the groups that have permission to update the content. Note that this may return deleted groups because
|
|
67
|
+
* deleting a group doesn't remove associated restrictions.
|
|
68
|
+
*/
|
|
69
|
+
UpdateGroupRestriction = 'restrictions.update.restrictions.group',
|
|
70
|
+
/** Returns the history of the content, including the date it was created. */
|
|
71
|
+
History = 'history',
|
|
72
|
+
/** Returns information about the most recent update of the content, including who updated it and when it was updated. */
|
|
73
|
+
LastUpdated = 'history.lastUpdated',
|
|
74
|
+
/** Returns information about the update prior to the current content update. */
|
|
75
|
+
PreviousVersion = 'history.previousVersion',
|
|
76
|
+
/** Returns all of the users who have contributed to the content. */
|
|
77
|
+
Contributors = 'history.contributors',
|
|
78
|
+
/** Returns information about the update after to the current content update. */
|
|
79
|
+
NextVersion = 'history.nextVersion',
|
|
80
|
+
/** Returns the parent page, if the content is a page. */
|
|
81
|
+
Ancestors = 'ancestors',
|
|
82
|
+
/** Returns the body of the content in different formats, including the editor format, view format, and export format. */
|
|
83
|
+
Body = 'body',
|
|
84
|
+
/** Returns information about the most recent update of the content, including who updated it and when it was updated. */
|
|
85
|
+
Version = 'version',
|
|
86
|
+
/** Returns pages that are descendants at any level below the content. */
|
|
87
|
+
PageDescendant = 'descendants.page',
|
|
88
|
+
/** Returns all attachments for the content, same as `children.attachment`. */
|
|
89
|
+
AttachmentDescendant = 'descendants.attachment',
|
|
90
|
+
/** Returns all comments on the content, same as `children.comment`. */
|
|
91
|
+
CommentDescendant = 'descendants.comment',
|
|
92
|
+
/**
|
|
93
|
+
* Returns the space that the content is in. This is the same as the information returned by [Get
|
|
94
|
+
* space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
|
|
95
|
+
*/
|
|
96
|
+
Space = 'space',
|
|
97
|
+
/** Returns inline comment-specific properties. */
|
|
98
|
+
InlineProperties = 'extensions.inlineProperties',
|
|
99
|
+
/** Returns the resolution status of each comment. */
|
|
100
|
+
Resolution = 'extensions.resolution',
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -1,140 +1,155 @@
|
|
|
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 './addLabelWatcher';
|
|
7
|
+
export * from './addPermission';
|
|
8
|
+
export * from './addPermissionToSpace';
|
|
9
|
+
export * from './addRestrictions';
|
|
10
|
+
export * from './addSpaceWatcher';
|
|
11
|
+
export * from './addUserToContentRestriction';
|
|
12
|
+
export * from './addUserToGroup';
|
|
13
|
+
export * from './addUserToGroupByGroupId';
|
|
14
|
+
export * from './archivePages';
|
|
15
|
+
export * from './checkContentPermission';
|
|
16
|
+
export * from './convertContentBody';
|
|
17
|
+
export * from './copyPage';
|
|
18
|
+
export * from './copyPageHierarchy';
|
|
19
|
+
export * from './createAttachments';
|
|
2
20
|
export * from './createAuditRecord';
|
|
21
|
+
export * from './createContent';
|
|
22
|
+
export * from './createContentProperty';
|
|
23
|
+
export * from './createContentPropertyForKey';
|
|
24
|
+
export * from './createContentTemplate';
|
|
25
|
+
export * from './createGroup';
|
|
26
|
+
export * from './createOrUpdateAttachments';
|
|
27
|
+
export * from './createPrivateSpace';
|
|
28
|
+
export * from './createRelationship';
|
|
29
|
+
export * from './createSpace';
|
|
30
|
+
export * from './createSpaceProperty';
|
|
31
|
+
export * from './createSpacePropertyForKey';
|
|
32
|
+
export * from './delete';
|
|
33
|
+
export * from './deleteContent';
|
|
34
|
+
export * from './deleteContentProperty';
|
|
35
|
+
export * from './deleteContentVersion';
|
|
36
|
+
export * from './deleteRelationship';
|
|
37
|
+
export * from './deleteRestrictions';
|
|
38
|
+
export * from './deleteSpace';
|
|
39
|
+
export * from './deleteSpaceProperty';
|
|
40
|
+
export * from './descendantsOfType';
|
|
41
|
+
export * from './downloadAttachment';
|
|
3
42
|
export * from './exportAuditRecords';
|
|
4
|
-
export * from './
|
|
43
|
+
export * from './findSourcesForTarget';
|
|
44
|
+
export * from './findTargetFromSource';
|
|
45
|
+
export * from './getAllLabelContent';
|
|
46
|
+
export * from './getAnonymousUser';
|
|
47
|
+
export * from './getAttachments';
|
|
48
|
+
export * from './getAuditRecords';
|
|
5
49
|
export * from './getAuditRecordsForTimePeriod';
|
|
50
|
+
export * from './getBlueprintTemplates';
|
|
51
|
+
export * from './getBulkUserLookup';
|
|
52
|
+
export * from './getBulkUserMigration';
|
|
6
53
|
export * from './getContent';
|
|
7
|
-
export * from './createContent';
|
|
8
|
-
export * from './publishLegacyDraft';
|
|
9
|
-
export * from './publishSharedDraft';
|
|
10
|
-
export * from './searchContentByCQL';
|
|
11
54
|
export * from './getContentById';
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './deleteContent';
|
|
14
|
-
export * from './getHistoryForContent';
|
|
55
|
+
export * from './getContentByTypeForSpace';
|
|
15
56
|
export * from './getContentChildren';
|
|
16
|
-
export * from './movePage';
|
|
17
57
|
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
58
|
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';
|
|
59
|
+
export * from './getContentDescendants';
|
|
60
|
+
export * from './getContentForSpace';
|
|
46
61
|
export * from './getContentProperties';
|
|
47
|
-
export * from './createContentProperty';
|
|
48
62
|
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
63
|
export * from './getContentRestrictionStatusForGroup';
|
|
59
|
-
export * from './addGroupToContentRestriction';
|
|
60
|
-
export * from './getIndividualGroupRestrictionStatusByGroupId';
|
|
61
|
-
export * from './addGroupToContentRestrictionByGroupId';
|
|
62
|
-
export * from './removeGroupByName';
|
|
63
|
-
export * from './removeGroupById';
|
|
64
64
|
export * from './getContentRestrictionStatusForUser';
|
|
65
|
-
export * from './
|
|
66
|
-
export * from './
|
|
67
|
-
export * from './getContentVersions';
|
|
68
|
-
export * from './restoreContentVersion';
|
|
65
|
+
export * from './getContentTemplate';
|
|
66
|
+
export * from './getContentTemplates';
|
|
69
67
|
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';
|
|
68
|
+
export * from './getContentVersions';
|
|
69
|
+
export * from './getContentWatchStatus';
|
|
70
|
+
export * from './getCurrentUser';
|
|
71
|
+
export * from './getDescendantsOfType';
|
|
79
72
|
export * from './getGroup';
|
|
80
|
-
export * from './
|
|
73
|
+
export * from './getGroupByGroupId';
|
|
74
|
+
export * from './getGroupByName';
|
|
75
|
+
export * from './getGroupByQueryParam';
|
|
81
76
|
export * from './getGroupMembers';
|
|
82
|
-
export * from './getGroupsSearch';
|
|
83
|
-
export * from './addUserToGroupByGroupId';
|
|
84
|
-
export * from './removeMemberFromGroupByGroupId';
|
|
85
77
|
export * from './getGroupMembersByGroupId';
|
|
86
|
-
export * from './
|
|
87
|
-
export * from './
|
|
88
|
-
export * from './
|
|
89
|
-
export * from './
|
|
90
|
-
export * from './
|
|
91
|
-
export * from './
|
|
92
|
-
export * from './createRelationship';
|
|
93
|
-
export * from './delete';
|
|
94
|
-
export * from './findSourcesForTarget';
|
|
95
|
-
export * from './search';
|
|
96
|
-
export * from './userSearch';
|
|
78
|
+
export * from './getGroupMembershipsForUser';
|
|
79
|
+
export * from './getGroups';
|
|
80
|
+
export * from './getGroupsSearch';
|
|
81
|
+
export * from './getHistoryForContent';
|
|
82
|
+
export * from './getIndividualGroupRestrictionStatusByGroupId';
|
|
83
|
+
export * from './getLabelsForContent';
|
|
97
84
|
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';
|
|
85
|
+
export * from './getMacroBodyByMacroId';
|
|
86
|
+
export * from './getMembersByQueryParam';
|
|
87
|
+
export * from './getPrivacyUnsafeUserEmail';
|
|
88
|
+
export * from './getPrivacyUnsafeUserEmailBulk';
|
|
89
|
+
export * from './getRelationship';
|
|
90
|
+
export * from './getRestrictions';
|
|
91
|
+
export * from './getRestrictionsByOperation';
|
|
92
|
+
export * from './getRestrictionsForOperation';
|
|
110
93
|
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
94
|
export * from './getSpaceProperties';
|
|
118
|
-
export * from './createSpaceProperty';
|
|
119
95
|
export * from './getSpaceProperty';
|
|
120
|
-
export * from './
|
|
121
|
-
export * from './updateSpaceProperty';
|
|
122
|
-
export * from './deleteSpaceProperty';
|
|
96
|
+
export * from './getSpaces';
|
|
123
97
|
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';
|
|
98
|
+
export * from './getSpaceTheme';
|
|
99
|
+
export * from './getTask';
|
|
100
|
+
export * from './getTaskById';
|
|
101
|
+
export * from './getTasks';
|
|
102
|
+
export * from './getTheme';
|
|
103
|
+
export * from './getThemes';
|
|
131
104
|
export * from './getUser';
|
|
132
|
-
export * from './
|
|
133
|
-
export * from './
|
|
134
|
-
export * from './
|
|
135
|
-
export * from './
|
|
136
|
-
export * from './
|
|
137
|
-
export * from './
|
|
138
|
-
export * from './
|
|
105
|
+
export * from './getViewers';
|
|
106
|
+
export * from './getViews';
|
|
107
|
+
export * from './getWatchersForSpace';
|
|
108
|
+
export * from './getWatchesForPage';
|
|
109
|
+
export * from './getWatchesForSpace';
|
|
110
|
+
export * from './isWatchingLabel';
|
|
111
|
+
export * from './isWatchingSpace';
|
|
112
|
+
export * from './movePage';
|
|
113
|
+
export * from './permissionCheck';
|
|
114
|
+
export * from './publishLegacyDraft';
|
|
115
|
+
export * from './publishSharedDraft';
|
|
139
116
|
export * from './registerModules';
|
|
117
|
+
export * from './removeContentWatcher';
|
|
118
|
+
export * from './removeGroup';
|
|
119
|
+
export * from './removeGroupById';
|
|
120
|
+
export * from './removeGroupByName';
|
|
121
|
+
export * from './removeLabelFromContent';
|
|
122
|
+
export * from './removeLabelFromContentUsingQueryParameter';
|
|
123
|
+
export * from './removeLabelWatcher';
|
|
124
|
+
export * from './removeMemberFromGroup';
|
|
125
|
+
export * from './removeMemberFromGroupByGroupId';
|
|
140
126
|
export * from './removeModules';
|
|
127
|
+
export * from './removePermission';
|
|
128
|
+
export * from './removeSpaceWatch';
|
|
129
|
+
export * from './removeTemplate';
|
|
130
|
+
export * from './removeUserFromContentRestriction';
|
|
131
|
+
export * from './resetLookAndFeelSettings';
|
|
132
|
+
export * from './resetSpaceTheme';
|
|
133
|
+
export * from './restoreContentVersion';
|
|
134
|
+
export * from './search';
|
|
135
|
+
export * from './searchByCQL';
|
|
136
|
+
export * from './searchContentByCQL';
|
|
137
|
+
export * from './searchGroups';
|
|
138
|
+
export * from './searchTasks';
|
|
139
|
+
export * from './searchUser';
|
|
140
|
+
export * from './setLookAndFeelSettings';
|
|
141
|
+
export * from './setRetentionPeriod';
|
|
142
|
+
export * from './setSpaceTheme';
|
|
143
|
+
export * from './updateAttachmentData';
|
|
144
|
+
export * from './updateAttachmentProperties';
|
|
145
|
+
export * from './updateContent';
|
|
146
|
+
export * from './updateContentProperty';
|
|
147
|
+
export * from './updateContentTemplate';
|
|
148
|
+
export * from './updateLookAndFeel';
|
|
149
|
+
export * from './updateLookAndFeelSettings';
|
|
150
|
+
export * from './updateRestrictions';
|
|
151
|
+
export * from './updateSpace';
|
|
152
|
+
export * from './updateSpaceProperty';
|
|
153
|
+
export * from './updateSpaceSettings';
|
|
154
|
+
export * from './updateTaskById';
|
|
155
|
+
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
|
}
|
|
@@ -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
|
+
}
|