@@ -4,5 +4,90 @@ export interface CreateContent extends ContentCreate {
4
4
/** Filter the returned content by status. */
5
5
status ?: string ;
6
6
/** A multi-value parameter indicating which properties of the content to expand. */
7
- expand ?: string [ ] ;
7
+ expand ?: string | string [ ] | CreateContent . Expand | CreateContent . Expand [ ] ;
8
+ }
9
+
10
+ export namespace CreateContent {
11
+ export enum Expand {
12
+ /**
13
+ * Returns whether the content has attachments, comments, or child pages. Use this if you only need to check whether
14
+ * the content has children of a particular type.
15
+ */
16
+ AllChildTypes = 'childTypes.all' ,
17
+ /** Returns whether the content has attachments. */
18
+ AttachmentChildType = 'childTypes.attachment' ,
19
+ /** Returns whether the content has comments. */
20
+ CommentChildType = 'childTypes.comment' ,
21
+ /** Returns whether the content has child pages. */
22
+ PageChildType = 'childTypes.page' ,
23
+ /**
24
+ * Returns the space that the content is in. This is the same as the information returned by [Get
25
+ * space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
26
+ */
27
+ Container = 'container' ,
28
+ /**
29
+ * Returns information about the current user in relation to the content, including when they last viewed it,
30
+ * modified it, contributed to it, or added it as a favorite.
31
+ */
32
+ CurrentUserMetadata = 'metadata.currentuser' ,
33
+ /** Returns content properties that have been set via the Confluence REST API. */
34
+ PropertiesMetadata = 'metadata.properties' ,
35
+ /** Returns the labels that have been added to the content. */
36
+ LabelsMetadata = 'metadata.labels' ,
37
+ /** This property is only used by Atlassian. */
38
+ FrontendMetadata = 'metadata.frontend' ,
39
+ /** Returns the operations for the content, which are used when setting permissions. */
40
+ Operations = 'operations' ,
41
+ /** Returns pages that are descendants at the level immediately below the content. */
42
+ PageChildren = 'children.page' ,
43
+ /** Returns all attachments for the content. */
44
+ AttachmentChildren = 'children.attachment' ,
45
+ /** Returns all comments on the content. */
46
+ CommentChildren = 'children.comment' ,
47
+ /** Returns the users that have permission to read the content. */
48
+ ReadUserRestriction = 'restrictions.read.restrictions.user' ,
49
+ /**
50
+ * Returns the groups that have permission to read the content. Note that this may return deleted groups, because
51
+ * deleting a group doesn't remove associated restrictions.
52
+ */
53
+ ReadGroupRestriction = 'restrictions.read.restrictions.group' ,
54
+ /** Returns the users that have permission to update the content. */
55
+ UpdateUserRestriction = 'restrictions.update.restrictions.user' ,
56
+ /**
57
+ * Returns the groups that have permission to update the content. Note that this may return deleted groups because
58
+ * deleting a group doesn't remove associated restrictions.
59
+ */
60
+ UpdateGroupRestriction = 'restrictions.update.restrictions.group' ,
61
+ /** Returns the history of the content, including the date it was created. */
62
+ History = 'history' ,
63
+ /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
64
+ LastUpdated = 'history.lastUpdated' ,
65
+ /** Returns information about the update prior to the current content update. */
66
+ PreviousVersion = 'history.previousVersion' ,
67
+ /** Returns all of the users who have contributed to the content. */
68
+ Contributors = 'history.contributors' ,
69
+ /** Returns information about the update after to the current content update. */
70
+ NextVersion = 'history.nextVersion' ,
71
+ /** Returns the parent page, if the content is a page. */
72
+ Ancestors = 'ancestors' ,
73
+ /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
74
+ Body = 'body' ,
75
+ /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
76
+ Version = 'version' ,
77
+ /** Returns pages that are descendants at any level below the content. */
78
+ PageDescendant = 'descendants.page' ,
79
+ /** Returns all attachments for the content, same as `children.attachment`. */
80
+ AttachmentDescendant = 'descendants.attachment' ,
81
+ /** Returns all comments on the content, same as `children.comment`. */
82
+ CommentDescendant = 'descendants.comment' ,
83
+ /**
84
+ * Returns the space that the content is in. This is the same as the information returned by [Get
85
+ * space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
86
+ */
87
+ Space = 'space' ,
88
+ /** Returns inline comment-specific properties. */
89
+ InlineProperties = 'extensions.inlineProperties' ,
90
+ /** Returns the resolution status of each comment. */
91
+ Resolution = 'extensions.resolution' ,
92
+ }
8
93
}
0 commit comments