@resolution/confluence-api-client 0.4.4 → 0.4.6
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 +22 -0
- package/README.md +60 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v1/core/CommonHttpService.js +9 -0
- package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
- package/lib/openapi/v1/services/AnalyticsService.js +62 -59
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +25 -25
- package/lib/openapi/v1/services/AuditService.js +205 -202
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
- package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentBodyService.js +140 -137
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
- package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
- package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +50 -50
- package/lib/openapi/v1/services/ContentService.js +475 -472
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
- package/lib/openapi/v1/services/ContentStatesService.js +359 -356
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
- package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
- package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
- package/lib/openapi/v1/services/ExperimentalService.js +151 -148
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +52 -52
- package/lib/openapi/v1/services/GroupService.js +445 -442
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
- package/lib/openapi/v1/services/InlineTasksService.js +118 -115
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
- package/lib/openapi/v1/services/LabelInfoService.js +37 -34
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
- package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +37 -37
- package/lib/openapi/v1/services/RelationService.js +231 -228
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +20 -20
- package/lib/openapi/v1/services/SearchService.js +136 -133
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
- package/lib/openapi/v1/services/SettingsService.js +204 -201
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
- package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
- package/lib/openapi/v1/services/SpaceService.js +320 -317
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
- package/lib/openapi/v1/services/TemplateService.js +214 -211
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
- package/lib/openapi/v1/services/ThemesService.js +179 -176
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
- package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +21 -21
- package/lib/openapi/v1/services/UsersService.js +229 -226
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -24
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v2/core/CommonHttpService.js +9 -0
- package/lib/openapi/v2/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +0 -2
- package/lib/openapi/v2/models/user.js +0 -2
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
- package/lib/openapi/v2/services/AncestorsService.js +174 -171
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
- package/lib/openapi/v2/services/AttachmentService.js +261 -258
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
- package/lib/openapi/v2/services/BlogPostService.js +270 -267
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
- package/lib/openapi/v2/services/ChildrenService.js +77 -74
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
- package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +136 -136
- package/lib/openapi/v2/services/CommentService.js +635 -632
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
- package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -2
- package/lib/openapi/v2/services/ContentService.js +40 -37
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
- package/lib/openapi/v2/services/CustomContentService.js +299 -296
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
- package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
- package/lib/openapi/v2/services/DatabaseService.js +90 -87
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +57 -57
- package/lib/openapi/v2/services/LabelService.js +263 -260
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +36 -36
- package/lib/openapi/v2/services/LikeService.js +250 -247
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +20 -20
- package/lib/openapi/v2/services/OperationService.js +298 -295
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +73 -73
- package/lib/openapi/v2/services/PageService.js +272 -269
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
- package/lib/openapi/v2/services/SmartLinkService.js +92 -89
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
- package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
- package/lib/openapi/v2/services/SpaceService.js +83 -80
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +40 -40
- package/lib/openapi/v2/services/TaskService.js +120 -117
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +11 -11
- package/lib/openapi/v2/services/UserService.js +91 -88
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +59 -59
- package/lib/openapi/v2/services/VersionService.js +395 -392
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
- package/lib/openapi/v2/services/WhiteboardService.js +90 -87
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +4 -3
|
@@ -20,12 +20,12 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
20
20
|
* @scopes-current delete:attachment:confluence
|
|
21
21
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-delete
|
|
22
22
|
*/
|
|
23
|
-
deleteAttachment({ id, purge, }: {
|
|
23
|
+
deleteAttachment: ({ id, purge, }: {
|
|
24
24
|
/** The ID of the attachment to be deleted. */
|
|
25
25
|
id: number;
|
|
26
26
|
/** If attempting to purge the attachment. */
|
|
27
|
-
purge?: boolean;
|
|
28
|
-
})
|
|
27
|
+
purge?: boolean | undefined;
|
|
28
|
+
}) => Promise<void>;
|
|
29
29
|
/**
|
|
30
30
|
* Returns a specific attachment.
|
|
31
31
|
*
|
|
@@ -37,7 +37,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
37
37
|
* @scopes-current read:attachment:confluence
|
|
38
38
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-get
|
|
39
39
|
*/
|
|
40
|
-
getAttachmentById({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }: {
|
|
40
|
+
getAttachmentById: ({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }: {
|
|
41
41
|
/**
|
|
42
42
|
* The ID of the attachment to be returned. If you don't know the attachment's ID,
|
|
43
43
|
* use Get attachments for page/blogpost/custom content.
|
|
@@ -47,7 +47,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
47
47
|
* Allows you to retrieve a previously published version. Specify the previous
|
|
48
48
|
* version's number to retrieve its details.
|
|
49
49
|
*/
|
|
50
|
-
version?: number;
|
|
50
|
+
version?: number | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Includes labels associated with this attachment in the response.
|
|
53
53
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -55,7 +55,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
55
55
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
56
56
|
* available and a link to retrieve the rest of the results.
|
|
57
57
|
*/
|
|
58
|
-
includeLabels?: boolean;
|
|
58
|
+
includeLabels?: boolean | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* Includes content properties associated with this attachment in the response.
|
|
61
61
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -63,7 +63,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
63
63
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
64
64
|
* available and a link to retrieve the rest of the results.
|
|
65
65
|
*/
|
|
66
|
-
includeProperties?: boolean;
|
|
66
|
+
includeProperties?: boolean | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* Includes operations associated with this attachment in the response.
|
|
69
69
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -71,7 +71,7 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
71
71
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
72
72
|
* available and a link to retrieve the rest of the results.
|
|
73
73
|
*/
|
|
74
|
-
includeOperations?: boolean;
|
|
74
|
+
includeOperations?: boolean | undefined;
|
|
75
75
|
/**
|
|
76
76
|
* Includes versions associated with this attachment in the response.
|
|
77
77
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -79,22 +79,22 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
79
79
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
80
80
|
* available and a link to retrieve the rest of the results.
|
|
81
81
|
*/
|
|
82
|
-
includeVersions?: boolean;
|
|
82
|
+
includeVersions?: boolean | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* Includes the current version associated with this attachment in the response.
|
|
85
85
|
* By default this is included and can be omitted by setting the value to `false`.
|
|
86
86
|
*/
|
|
87
|
-
includeVersion?: boolean;
|
|
88
|
-
})
|
|
89
|
-
_links?: {
|
|
87
|
+
includeVersion?: boolean | undefined;
|
|
88
|
+
}) => Promise<AttachmentSingle & {
|
|
89
|
+
_links?: ({
|
|
90
90
|
/** Base url of the Confluence site. */
|
|
91
|
-
base?: string;
|
|
91
|
+
base?: string | undefined;
|
|
92
92
|
} & {
|
|
93
93
|
[key: string]: unknown;
|
|
94
|
-
};
|
|
94
|
+
}) | undefined;
|
|
95
95
|
} & {
|
|
96
96
|
[key: string]: unknown;
|
|
97
|
-
}
|
|
97
|
+
}>;
|
|
98
98
|
/**
|
|
99
99
|
* Returns all attachments. The number of results is limited by the `limit`
|
|
100
100
|
* parameter and additional results (if available)
|
|
@@ -108,33 +108,33 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
108
108
|
* @scopes-current read:attachment:confluence
|
|
109
109
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-get
|
|
110
110
|
*/
|
|
111
|
-
getAttachments({ sort, cursor, status, mediaType, filename, limit, }?: {
|
|
111
|
+
getAttachments: ({ sort, cursor, status, mediaType, filename, limit, }?: {
|
|
112
112
|
/** Used to sort the result by a particular field. */
|
|
113
|
-
sort?: AttachmentSortOrder;
|
|
113
|
+
sort?: AttachmentSortOrder | undefined;
|
|
114
114
|
/**
|
|
115
115
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
116
116
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
117
117
|
* retrieve the `next` set of results.
|
|
118
118
|
*/
|
|
119
|
-
cursor?: string;
|
|
119
|
+
cursor?: string | undefined;
|
|
120
120
|
/**
|
|
121
121
|
* Filter the results to attachments based on their status. By default, `current`
|
|
122
122
|
* and `archived` are used.
|
|
123
123
|
*/
|
|
124
|
-
status?: ("current" | "
|
|
124
|
+
status?: ("current" | "trashed" | "archived")[] | undefined;
|
|
125
125
|
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
126
|
-
mediaType?: string;
|
|
126
|
+
mediaType?: string | undefined;
|
|
127
127
|
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
128
|
-
filename?: string;
|
|
128
|
+
filename?: string | undefined;
|
|
129
129
|
/**
|
|
130
130
|
* Maximum number of attachments per result to return. If more results exist, use
|
|
131
131
|
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
132
132
|
* results.
|
|
133
133
|
*/
|
|
134
|
-
limit?: number;
|
|
135
|
-
})
|
|
136
|
-
results?: AttachmentBulk[];
|
|
137
|
-
_links?: MultiEntityLinks;
|
|
134
|
+
limit?: number | undefined;
|
|
135
|
+
}) => Promise<{
|
|
136
|
+
results?: AttachmentBulk[] | undefined;
|
|
137
|
+
_links?: MultiEntityLinks | undefined;
|
|
138
138
|
} & {
|
|
139
139
|
[key: string]: unknown;
|
|
140
140
|
}>;
|
|
@@ -151,35 +151,35 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
151
151
|
* @scopes-current read:attachment:confluence
|
|
152
152
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-blogposts-id-attachments-get
|
|
153
153
|
*/
|
|
154
|
-
getBlogpostAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
154
|
+
getBlogpostAttachments: ({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
155
155
|
/** The ID of the blog post for which attachments should be returned. */
|
|
156
156
|
id: number;
|
|
157
157
|
/** Used to sort the result by a particular field. */
|
|
158
|
-
sort?: AttachmentSortOrder;
|
|
158
|
+
sort?: AttachmentSortOrder | undefined;
|
|
159
159
|
/**
|
|
160
160
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
161
161
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
162
162
|
* retrieve the `next` set of results.
|
|
163
163
|
*/
|
|
164
|
-
cursor?: string;
|
|
164
|
+
cursor?: string | undefined;
|
|
165
165
|
/**
|
|
166
166
|
* Filter the results to attachments based on their status. By default, `current`
|
|
167
167
|
* and `archived` are used.
|
|
168
168
|
*/
|
|
169
|
-
status?: ("current" | "
|
|
169
|
+
status?: ("current" | "trashed" | "archived")[] | undefined;
|
|
170
170
|
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
171
|
-
mediaType?: string;
|
|
171
|
+
mediaType?: string | undefined;
|
|
172
172
|
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
173
|
-
filename?: string;
|
|
173
|
+
filename?: string | undefined;
|
|
174
174
|
/**
|
|
175
175
|
* Maximum number of attachments per result to return. If more results exist, use
|
|
176
176
|
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
177
177
|
* results.
|
|
178
178
|
*/
|
|
179
|
-
limit?: number;
|
|
180
|
-
})
|
|
181
|
-
results?: AttachmentBulk[];
|
|
182
|
-
_links?: MultiEntityLinks;
|
|
179
|
+
limit?: number | undefined;
|
|
180
|
+
}) => Promise<{
|
|
181
|
+
results?: AttachmentBulk[] | undefined;
|
|
182
|
+
_links?: MultiEntityLinks | undefined;
|
|
183
183
|
} & {
|
|
184
184
|
[key: string]: unknown;
|
|
185
185
|
}>;
|
|
@@ -197,35 +197,35 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
197
197
|
* @scopes-current read:attachment:confluence
|
|
198
198
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-custom-content-id-attachments-get
|
|
199
199
|
*/
|
|
200
|
-
getCustomContentAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
200
|
+
getCustomContentAttachments: ({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
201
201
|
/** The ID of the custom content for which attachments should be returned. */
|
|
202
202
|
id: number;
|
|
203
203
|
/** Used to sort the result by a particular field. */
|
|
204
|
-
sort?: AttachmentSortOrder;
|
|
204
|
+
sort?: AttachmentSortOrder | undefined;
|
|
205
205
|
/**
|
|
206
206
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
207
207
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
208
208
|
* retrieve the `next` set of results.
|
|
209
209
|
*/
|
|
210
|
-
cursor?: string;
|
|
210
|
+
cursor?: string | undefined;
|
|
211
211
|
/**
|
|
212
212
|
* Filter the results to attachments based on their status. By default, `current`
|
|
213
213
|
* and `archived` are used.
|
|
214
214
|
*/
|
|
215
|
-
status?: ("current" | "
|
|
215
|
+
status?: ("current" | "trashed" | "archived")[] | undefined;
|
|
216
216
|
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
217
|
-
mediaType?: string;
|
|
217
|
+
mediaType?: string | undefined;
|
|
218
218
|
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
219
|
-
filename?: string;
|
|
219
|
+
filename?: string | undefined;
|
|
220
220
|
/**
|
|
221
221
|
* Maximum number of attachments per result to return. If more results exist, use
|
|
222
222
|
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
223
223
|
* results.
|
|
224
224
|
*/
|
|
225
|
-
limit?: number;
|
|
226
|
-
})
|
|
227
|
-
results?: AttachmentBulk[];
|
|
228
|
-
_links?: MultiEntityLinks;
|
|
225
|
+
limit?: number | undefined;
|
|
226
|
+
}) => Promise<{
|
|
227
|
+
results?: AttachmentBulk[] | undefined;
|
|
228
|
+
_links?: MultiEntityLinks | undefined;
|
|
229
229
|
} & {
|
|
230
230
|
[key: string]: unknown;
|
|
231
231
|
}>;
|
|
@@ -243,26 +243,26 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
243
243
|
* @scopes-current read:attachment:confluence
|
|
244
244
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-labels-id-attachments-get
|
|
245
245
|
*/
|
|
246
|
-
getLabelAttachments({ id, sort, cursor, limit, }: {
|
|
246
|
+
getLabelAttachments: ({ id, sort, cursor, limit, }: {
|
|
247
247
|
/** The ID of the label for which attachments should be returned. */
|
|
248
248
|
id: number;
|
|
249
249
|
/** Used to sort the result by a particular field. */
|
|
250
|
-
sort?: AttachmentSortOrder;
|
|
250
|
+
sort?: AttachmentSortOrder | undefined;
|
|
251
251
|
/**
|
|
252
252
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
253
253
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
254
254
|
* retrieve the `next` set of results.
|
|
255
255
|
*/
|
|
256
|
-
cursor?: string;
|
|
256
|
+
cursor?: string | undefined;
|
|
257
257
|
/**
|
|
258
258
|
* Maximum number of pages per result to return. If more results exist, use the
|
|
259
259
|
* `Link` header to retrieve a relative URL that will return the next set of
|
|
260
260
|
* results.
|
|
261
261
|
*/
|
|
262
|
-
limit?: number;
|
|
263
|
-
})
|
|
264
|
-
results?: AttachmentBulk[];
|
|
265
|
-
_links?: MultiEntityLinks;
|
|
262
|
+
limit?: number | undefined;
|
|
263
|
+
}) => Promise<{
|
|
264
|
+
results?: AttachmentBulk[] | undefined;
|
|
265
|
+
_links?: MultiEntityLinks | undefined;
|
|
266
266
|
} & {
|
|
267
267
|
[key: string]: unknown;
|
|
268
268
|
}>;
|
|
@@ -279,35 +279,35 @@ export declare class AttachmentService extends CommonHttpService {
|
|
|
279
279
|
* @scopes-current read:attachment:confluence
|
|
280
280
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-pages-id-attachments-get
|
|
281
281
|
*/
|
|
282
|
-
getPageAttachments({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
282
|
+
getPageAttachments: ({ id, sort, cursor, status, mediaType, filename, limit, }: {
|
|
283
283
|
/** The ID of the page for which attachments should be returned. */
|
|
284
284
|
id: number;
|
|
285
285
|
/** Used to sort the result by a particular field. */
|
|
286
|
-
sort?: AttachmentSortOrder;
|
|
286
|
+
sort?: AttachmentSortOrder | undefined;
|
|
287
287
|
/**
|
|
288
288
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
289
289
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
290
290
|
* retrieve the `next` set of results.
|
|
291
291
|
*/
|
|
292
|
-
cursor?: string;
|
|
292
|
+
cursor?: string | undefined;
|
|
293
293
|
/**
|
|
294
294
|
* Filter the results to attachments based on their status. By default, `current`
|
|
295
295
|
* and `archived` are used.
|
|
296
296
|
*/
|
|
297
|
-
status?: ("current" | "
|
|
297
|
+
status?: ("current" | "trashed" | "archived")[] | undefined;
|
|
298
298
|
/** Filters on the mediaType of attachments. Only one may be specified. */
|
|
299
|
-
mediaType?: string;
|
|
299
|
+
mediaType?: string | undefined;
|
|
300
300
|
/** Filters on the file-name of attachments. Only one may be specified. */
|
|
301
|
-
filename?: string;
|
|
301
|
+
filename?: string | undefined;
|
|
302
302
|
/**
|
|
303
303
|
* Maximum number of attachments per result to return. If more results exist, use
|
|
304
304
|
* the `Link` header to retrieve a relative URL that will return the next set of
|
|
305
305
|
* results.
|
|
306
306
|
*/
|
|
307
|
-
limit?: number;
|
|
308
|
-
})
|
|
309
|
-
results?: AttachmentBulk[];
|
|
310
|
-
_links?: MultiEntityLinks;
|
|
307
|
+
limit?: number | undefined;
|
|
308
|
+
}) => Promise<{
|
|
309
|
+
results?: AttachmentBulk[] | undefined;
|
|
310
|
+
_links?: MultiEntityLinks | undefined;
|
|
311
311
|
} & {
|
|
312
312
|
[key: string]: unknown;
|
|
313
313
|
}>;
|