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.
Files changed (151) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -0
  3. package/out/api/content.d.ts +24 -52
  4. package/out/api/content.js +14 -0
  5. package/out/api/contentAttachments.d.ts +10 -6
  6. package/out/api/contentAttachments.js +12 -0
  7. package/out/api/contentChildrenAndDescendants.d.ts +6 -24
  8. package/out/api/contentChildrenAndDescendants.js +6 -0
  9. package/out/api/contentPermissions.d.ts +6 -2
  10. package/out/api/contentPermissions.js +6 -1
  11. package/out/api/contentProperties.js +1 -0
  12. package/out/api/contentWatches.d.ts +2 -2
  13. package/out/api/experimental.d.ts +16 -0
  14. package/out/api/experimental.js +34 -0
  15. package/out/api/group.d.ts +30 -10
  16. package/out/api/group.js +31 -2
  17. package/out/api/index.d.ts +1 -0
  18. package/out/api/index.js +1 -0
  19. package/out/api/inlineTasks.d.ts +28 -0
  20. package/out/api/inlineTasks.js +21 -0
  21. package/out/api/models/getViewers.d.ts +6 -0
  22. package/out/api/models/getViewers.js +2 -0
  23. package/out/api/models/getViews.d.ts +6 -0
  24. package/out/api/models/getViews.js +2 -0
  25. package/out/api/models/groupCreate.d.ts +4 -0
  26. package/out/api/models/groupCreate.js +2 -0
  27. package/out/api/models/horizontalHeaderLookAndFeel.d.ts +11 -0
  28. package/out/api/models/horizontalHeaderLookAndFeel.js +2 -0
  29. package/out/api/models/index.d.ts +13 -4
  30. package/out/api/models/index.js +13 -4
  31. package/out/api/models/lookAndFeel.d.ts +3 -0
  32. package/out/api/models/spacePermissionCreate.d.ts +33 -0
  33. package/out/api/models/spacePermissionCreate.js +2 -0
  34. package/out/api/models/spacePermissionCustomContent.d.ts +16 -0
  35. package/out/api/models/spacePermissionCustomContent.js +2 -0
  36. package/out/api/models/spacePermissionRequest.d.ts +41 -0
  37. package/out/api/models/spacePermissionRequest.js +2 -0
  38. package/out/api/models/spacePrivateCreate.d.ts +9 -0
  39. package/out/api/models/spacePropertyCreate.d.ts +4 -0
  40. package/out/api/models/spaceUpdate.d.ts +4 -0
  41. package/out/api/models/taskStatusUpdate.d.ts +3 -0
  42. package/out/api/models/taskStatusUpdate.js +2 -0
  43. package/out/api/models/topNavigationLookAndFeel.d.ts +8 -0
  44. package/out/api/models/topNavigationLookAndFeel.js +2 -0
  45. package/out/api/parameters/addCustomContentPermissions.d.ts +5 -0
  46. package/out/api/parameters/addCustomContentPermissions.js +2 -0
  47. package/out/api/parameters/addPermissionToSpace.d.ts +5 -0
  48. package/out/api/parameters/addPermissionToSpace.js +2 -0
  49. package/out/api/parameters/addUserToGroup.d.ts +2 -1
  50. package/out/api/parameters/addUserToGroupByGroupId.d.ts +2 -1
  51. package/out/api/parameters/archivePages.d.ts +6 -0
  52. package/out/api/parameters/archivePages.js +2 -0
  53. package/out/api/parameters/checkContentPermission.d.ts +5 -0
  54. package/out/api/parameters/checkContentPermission.js +2 -0
  55. package/out/api/parameters/deleteRelationship.d.ts +38 -0
  56. package/out/api/parameters/deleteRelationship.js +2 -0
  57. package/out/api/parameters/downloadAttachment.d.ts +11 -0
  58. package/out/api/parameters/downloadAttachment.js +2 -0
  59. package/out/api/parameters/getContentProperties.d.ts +2 -0
  60. package/out/api/parameters/getDescendantsOfType.d.ts +101 -0
  61. package/out/api/parameters/getDescendantsOfType.js +89 -0
  62. package/out/api/parameters/getGroupByName.d.ts +4 -0
  63. package/out/api/parameters/getGroupByName.js +2 -0
  64. package/out/api/parameters/getGroups.d.ts +2 -0
  65. package/out/api/parameters/getTaskById.d.ts +4 -0
  66. package/out/api/parameters/getTaskById.js +2 -0
  67. package/out/api/parameters/getViewers.d.ts +6 -0
  68. package/out/api/parameters/getViewers.js +2 -0
  69. package/out/api/parameters/getViews.d.ts +6 -0
  70. package/out/api/parameters/getViews.js +2 -0
  71. package/out/api/parameters/index.d.ts +131 -116
  72. package/out/api/parameters/index.js +131 -116
  73. package/out/api/parameters/publishLegacyDraft.d.ts +3 -1
  74. package/out/api/parameters/publishSharedDraft.d.ts +3 -1
  75. package/out/api/parameters/searchByCQL.d.ts +34 -0
  76. package/out/api/parameters/searchByCQL.js +2 -0
  77. package/out/api/parameters/searchGroups.d.ts +8 -0
  78. package/out/api/parameters/searchGroups.js +2 -0
  79. package/out/api/parameters/searchUser.d.ts +20 -0
  80. package/out/api/parameters/searchUser.js +2 -0
  81. package/out/api/parameters/updateTaskById.d.ts +5 -0
  82. package/out/api/parameters/updateTaskById.js +2 -0
  83. package/out/api/relation.d.ts +12 -4
  84. package/out/api/relation.js +12 -2
  85. package/out/api/search.d.ts +12 -64
  86. package/out/api/search.js +19 -2
  87. package/out/api/settings.d.ts +2 -2
  88. package/out/api/settings.js +3 -0
  89. package/out/api/space.js +3 -0
  90. package/out/api/spacePermissions.d.ts +26 -2
  91. package/out/api/spacePermissions.js +20 -3
  92. package/out/api/spaceProperties.d.ts +4 -4
  93. package/out/api/spaceProperties.js +1 -0
  94. package/out/clients/baseClient.js +1 -1
  95. package/out/clients/confluenceClient.d.ts +2 -1
  96. package/out/clients/confluenceClient.js +1 -0
  97. package/package.json +6 -6
  98. package/src/api/content.ts +57 -52
  99. package/src/api/contentAttachments.ts +28 -6
  100. package/src/api/contentChildrenAndDescendants.ts +24 -28
  101. package/src/api/contentPermissions.ts +24 -7
  102. package/src/api/contentProperties.ts +1 -0
  103. package/src/api/contentWatches.ts +3 -3
  104. package/src/api/experimental.ts +44 -0
  105. package/src/api/group.ts +71 -19
  106. package/src/api/index.ts +1 -0
  107. package/src/api/inlineTasks.ts +52 -0
  108. package/src/api/models/getViewers.ts +6 -0
  109. package/src/api/models/getViews.ts +6 -0
  110. package/src/api/models/groupCreate.ts +4 -0
  111. package/src/api/models/horizontalHeaderLookAndFeel.ts +12 -0
  112. package/src/api/models/index.ts +13 -4
  113. package/src/api/models/lookAndFeel.ts +3 -0
  114. package/src/api/models/spacePermissionCreate.ts +34 -0
  115. package/src/api/models/spacePermissionCustomContent.ts +17 -0
  116. package/src/api/models/spacePermissionRequest.ts +42 -0
  117. package/src/api/models/spacePrivateCreate.ts +9 -0
  118. package/src/api/models/spacePropertyCreate.ts +4 -0
  119. package/src/api/models/spaceUpdate.ts +4 -0
  120. package/src/api/models/taskStatusUpdate.ts +3 -0
  121. package/src/api/models/topNavigationLookAndFeel.ts +8 -0
  122. package/src/api/parameters/addCustomContentPermissions.ts +6 -0
  123. package/src/api/parameters/addPermissionToSpace.ts +6 -0
  124. package/src/api/parameters/addUserToGroup.ts +3 -1
  125. package/src/api/parameters/addUserToGroupByGroupId.ts +3 -1
  126. package/src/api/parameters/archivePages.ts +6 -0
  127. package/src/api/parameters/checkContentPermission.ts +6 -0
  128. package/src/api/parameters/deleteRelationship.ts +38 -0
  129. package/src/api/parameters/downloadAttachment.ts +11 -0
  130. package/src/api/parameters/getContentProperties.ts +2 -0
  131. package/src/api/parameters/getDescendantsOfType.ts +102 -0
  132. package/src/api/parameters/getGroupByName.ts +4 -0
  133. package/src/api/parameters/getGroups.ts +2 -0
  134. package/src/api/parameters/getTaskById.ts +4 -0
  135. package/src/api/parameters/getViewers.ts +6 -0
  136. package/src/api/parameters/getViews.ts +6 -0
  137. package/src/api/parameters/index.ts +131 -116
  138. package/src/api/parameters/publishLegacyDraft.ts +4 -1
  139. package/src/api/parameters/publishSharedDraft.ts +4 -1
  140. package/src/api/parameters/searchByCQL.ts +34 -0
  141. package/src/api/parameters/searchGroups.ts +8 -0
  142. package/src/api/parameters/searchUser.ts +20 -0
  143. package/src/api/parameters/updateTaskById.ts +6 -0
  144. package/src/api/relation.ts +33 -8
  145. package/src/api/search.ts +53 -73
  146. package/src/api/settings.ts +6 -3
  147. package/src/api/space.ts +3 -0
  148. package/src/api/spacePermissions.ts +66 -8
  149. package/src/api/spaceProperties.ts +5 -4
  150. package/src/clients/baseClient.ts +2 -2
  151. package/src/clients/confluenceClient.ts +2 -0
@@ -9,4 +9,8 @@ export interface SpaceUpdate {
9
9
  /** The ID of the page. */
10
10
  id: string;
11
11
  };
12
+ /** The updated type for this space. */
13
+ type?: string;
14
+ /** The updated status for this space. */
15
+ status?: string;
12
16
  }
@@ -0,0 +1,3 @@
1
+ export interface TaskStatusUpdate {
2
+ status: string;
3
+ }
@@ -0,0 +1,8 @@
1
+ export interface TopNavigationLookAndFeel {
2
+ color?: string;
3
+ highlightColor: string;
4
+ hoverOrFocus?: {
5
+ backgroundColor?: string;
6
+ color?: string;
7
+ };
8
+ }
@@ -0,0 +1,6 @@
1
+ import { SpacePermissionCustomContent } from '../models';
2
+
3
+ export interface AddCustomContentPermissions extends SpacePermissionCustomContent {
4
+ /** The key of the space to be queried for its content. */
5
+ spaceKey: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { SpacePermissionRequest } from '../models';
2
+
3
+ export interface AddPermissionToSpace extends SpacePermissionRequest {
4
+ /** The key of the space to be queried for its content. */
5
+ spaceKey: string;
6
+ }
@@ -1,4 +1,6 @@
1
- export interface AddUserToGroup {
1
+ import { AccountId } from '../models';
2
+
3
+ export interface AddUserToGroup extends AccountId {
2
4
  /** Name of the group whose membership is updated */
3
5
  name: string;
4
6
  }
@@ -1,4 +1,6 @@
1
- export interface AddUserToGroupByGroupId {
1
+ import { AccountId } from '../models';
2
+
3
+ export interface AddUserToGroupByGroupId extends AccountId {
2
4
  /** GroupId of the group whose membership is updated */
3
5
  groupId: string;
4
6
  }
@@ -0,0 +1,6 @@
1
+ export interface ArchivePages {
2
+ pages: Array<{
3
+ /** The `id` of the page to be archived. */
4
+ id: number;
5
+ }>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ContentPermissionRequest } from '../models';
2
+
3
+ export interface CheckContentPermission extends ContentPermissionRequest {
4
+ /** The ID of the content to check permissions against. */
5
+ id: string;
6
+ }
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ export interface GetGroupByName {
2
+ /** The name of the group. This is the same as the group name shown in the Confluence administration console. */
3
+ groupName: string;
4
+ }
@@ -3,4 +3,6 @@ export interface GetGroups {
3
3
  start?: number;
4
4
  /** The maximum number of groups to return per page. Note, this may be restricted by fixed system limits. */
5
5
  limit?: number;
6
+ /** The group permission level for which to filter results. */
7
+ accessType?: string;
6
8
  }
@@ -0,0 +1,4 @@
1
+ export interface GetTaskById {
2
+ /** Global ID of the inline task */
3
+ inlineTaskId: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface GetViewers {
2
+ /** The ID of the content to get the viewers for. */
3
+ contentId: string;
4
+ /** The number of views for the content since the date. */
5
+ fromDate?: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface GetViews {
2
+ /** The ID of the content to get the views for. */
3
+ contentId: string;
4
+ /** The number of views for the content since the date. */
5
+ fromDate?: string;
6
+ }
@@ -1,140 +1,155 @@
1
- export * from './getAuditRecords';
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 './setRetentionPeriod';
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 './updateContent';
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 './getMacroBodyByMacroId';
29
- export * from './getLabelsForContent';
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 './addUserToContentRestriction';
66
- export * from './removeUserFromContentRestriction';
67
- export * from './getContentVersions';
68
- export * from './restoreContentVersion';
65
+ export * from './getContentTemplate';
66
+ export * from './getContentTemplates';
69
67
  export * from './getContentVersion';
70
- export * from './deleteContentVersion';
71
- export * from './convertContentBody';
72
- export * from './searchTasks';
73
- export * from './getAllLabelContent';
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 './getMembersByQueryParam';
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 './addUserToGroup';
87
- export * from './removeMemberFromGroup';
88
- export * from './getTasks';
89
- export * from './getTask';
90
- export * from './findTargetFromSource';
91
- export * from './getRelationship';
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 './updateLookAndFeel';
99
- export * from './updateLookAndFeelSettings';
100
- export * from './resetLookAndFeelSettings';
101
- export * from './setLookAndFeelSettings';
102
- export * from './getThemes';
103
- export * from './getTheme';
104
- export * from './getSpaceTheme';
105
- export * from './setSpaceTheme';
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 './createSpacePropertyForKey';
121
- export * from './updateSpaceProperty';
122
- export * from './deleteSpaceProperty';
96
+ export * from './getSpaces';
123
97
  export * from './getSpaceSettings';
124
- export * from './updateSpaceSettings';
125
- export * from './createContentTemplate';
126
- export * from './updateContentTemplate';
127
- export * from './getBlueprintTemplates';
128
- export * from './getContentTemplates';
129
- export * from './getContentTemplate';
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 './getAnonymousUser';
133
- export * from './getCurrentUser';
134
- export * from './getGroupMembershipsForUser';
135
- export * from './getBulkUserLookup';
136
- export * from './getPrivacyUnsafeUserEmail';
137
- export * from './getPrivacyUnsafeUserEmailBulk';
138
- export * from './getBulkUserMigration';
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
- export interface PublishLegacyDraft {
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
- export interface PublishSharedDraft {
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
+ }
@@ -0,0 +1,6 @@
1
+ import { TaskStatusUpdate } from '../models';
2
+
3
+ export interface UpdateTaskById extends TaskStatusUpdate {
4
+ /** Global ID of the inline task to update */
5
+ inlineTaskId: string;
6
+ }