@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
|
@@ -18,36 +18,36 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
18
18
|
* @scopes-current write:custom-content:confluence
|
|
19
19
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-custom-content-post
|
|
20
20
|
*/
|
|
21
|
-
createCustomContent({ requestBody, }: {
|
|
21
|
+
createCustomContent: ({ requestBody, }: {
|
|
22
22
|
requestBody: {
|
|
23
23
|
/** Type of custom content. */
|
|
24
24
|
type: string;
|
|
25
25
|
/** The status of the custom content. */
|
|
26
|
-
status?: "current";
|
|
26
|
+
status?: "current" | undefined;
|
|
27
27
|
/** ID of the containing space. */
|
|
28
|
-
spaceId?: string;
|
|
28
|
+
spaceId?: string | undefined;
|
|
29
29
|
/** ID of the containing page. */
|
|
30
|
-
pageId?: string;
|
|
30
|
+
pageId?: string | undefined;
|
|
31
31
|
/** ID of the containing Blog Post. */
|
|
32
|
-
blogPostId?: string;
|
|
32
|
+
blogPostId?: string | undefined;
|
|
33
33
|
/** ID of the containing custom content. */
|
|
34
|
-
customContentId?: string;
|
|
34
|
+
customContentId?: string | undefined;
|
|
35
35
|
/** Title of the custom content. */
|
|
36
36
|
title: string;
|
|
37
37
|
body: CustomContentBodyWrite | CustomContentNestedBodyWrite;
|
|
38
38
|
} & {
|
|
39
39
|
[key: string]: unknown;
|
|
40
40
|
};
|
|
41
|
-
})
|
|
42
|
-
_links?: {
|
|
41
|
+
}) => Promise<CustomContentSingle & {
|
|
42
|
+
_links?: ({
|
|
43
43
|
/** Base url of the Confluence site. */
|
|
44
|
-
base?: string;
|
|
44
|
+
base?: string | undefined;
|
|
45
45
|
} & {
|
|
46
46
|
[key: string]: unknown;
|
|
47
|
-
};
|
|
47
|
+
}) | undefined;
|
|
48
48
|
} & {
|
|
49
49
|
[key: string]: unknown;
|
|
50
|
-
}
|
|
50
|
+
}>;
|
|
51
51
|
/**
|
|
52
52
|
* Delete a custom content by id.
|
|
53
53
|
*
|
|
@@ -66,12 +66,12 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
66
66
|
* @scopes-current delete:custom-content:confluence
|
|
67
67
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-custom-content-id-delete
|
|
68
68
|
*/
|
|
69
|
-
deleteCustomContent({ id, purge, }: {
|
|
69
|
+
deleteCustomContent: ({ id, purge, }: {
|
|
70
70
|
/** The ID of the custom content to be deleted. */
|
|
71
71
|
id: number;
|
|
72
72
|
/** If attempting to purge the custom content. */
|
|
73
|
-
purge?: boolean;
|
|
74
|
-
})
|
|
73
|
+
purge?: boolean | undefined;
|
|
74
|
+
}) => Promise<void>;
|
|
75
75
|
/**
|
|
76
76
|
* Returns a specific piece of custom content.
|
|
77
77
|
*
|
|
@@ -84,7 +84,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
84
84
|
* @scopes-current read:custom-content:confluence
|
|
85
85
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-custom-content-id-get
|
|
86
86
|
*/
|
|
87
|
-
getCustomContentById({ id, bodyFormat, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }: {
|
|
87
|
+
getCustomContentById: ({ id, bodyFormat, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }: {
|
|
88
88
|
/**
|
|
89
89
|
* The ID of the custom content to be returned. If you don't know the custom
|
|
90
90
|
* content ID, use Get Custom Content by Type and filter the results.
|
|
@@ -99,12 +99,12 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
99
99
|
* `atlas_doc_format` body formats are able to be returned. If the custom content
|
|
100
100
|
* body type is `raw`, only the `raw` body format is able to be returned.
|
|
101
101
|
*/
|
|
102
|
-
bodyFormat?: CustomContentBodyRepresentationSingle;
|
|
102
|
+
bodyFormat?: CustomContentBodyRepresentationSingle | undefined;
|
|
103
103
|
/**
|
|
104
104
|
* Allows you to retrieve a previously published version. Specify the previous
|
|
105
105
|
* version's number to retrieve its details.
|
|
106
106
|
*/
|
|
107
|
-
version?: number;
|
|
107
|
+
version?: number | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* Includes labels associated with this custom content in the response.
|
|
110
110
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -112,7 +112,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
112
112
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
113
113
|
* available and a link to retrieve the rest of the results.
|
|
114
114
|
*/
|
|
115
|
-
includeLabels?: boolean;
|
|
115
|
+
includeLabels?: boolean | undefined;
|
|
116
116
|
/**
|
|
117
117
|
* Includes content properties associated with this custom content in the response.
|
|
118
118
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -120,7 +120,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
120
120
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
121
121
|
* available and a link to retrieve the rest of the results.
|
|
122
122
|
*/
|
|
123
|
-
includeProperties?: boolean;
|
|
123
|
+
includeProperties?: boolean | undefined;
|
|
124
124
|
/**
|
|
125
125
|
* Includes operations associated with this custom content in the response.
|
|
126
126
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -128,7 +128,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
128
128
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
129
129
|
* available and a link to retrieve the rest of the results.
|
|
130
130
|
*/
|
|
131
|
-
includeOperations?: boolean;
|
|
131
|
+
includeOperations?: boolean | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Includes versions associated with this custom content in the response.
|
|
134
134
|
* The number of results will be limited to 50 and sorted in the default sort
|
|
@@ -136,23 +136,23 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
136
136
|
* A `meta` and `_links` property will be present to indicate if more results are
|
|
137
137
|
* available and a link to retrieve the rest of the results.
|
|
138
138
|
*/
|
|
139
|
-
includeVersions?: boolean;
|
|
139
|
+
includeVersions?: boolean | undefined;
|
|
140
140
|
/**
|
|
141
141
|
* Includes the current version associated with this custom content in the
|
|
142
142
|
* response.
|
|
143
143
|
* By default this is included and can be omitted by setting the value to `false`.
|
|
144
144
|
*/
|
|
145
|
-
includeVersion?: boolean;
|
|
146
|
-
})
|
|
147
|
-
_links?: {
|
|
145
|
+
includeVersion?: boolean | undefined;
|
|
146
|
+
}) => Promise<CustomContentSingle & {
|
|
147
|
+
_links?: ({
|
|
148
148
|
/** Base url of the Confluence site. */
|
|
149
|
-
base?: string;
|
|
149
|
+
base?: string | undefined;
|
|
150
150
|
} & {
|
|
151
151
|
[key: string]: unknown;
|
|
152
|
-
};
|
|
152
|
+
}) | undefined;
|
|
153
153
|
} & {
|
|
154
154
|
[key: string]: unknown;
|
|
155
|
-
}
|
|
155
|
+
}>;
|
|
156
156
|
/**
|
|
157
157
|
* Returns all custom content for a given type. The number of results is limited
|
|
158
158
|
* by the `limit` parameter and additional results (if available)
|
|
@@ -167,7 +167,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
167
167
|
* @scopes-current read:custom-content:confluence
|
|
168
168
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-custom-content-get
|
|
169
169
|
*/
|
|
170
|
-
getCustomContentByType({ type, id, spaceId, sort, cursor, limit, bodyFormat, }: {
|
|
170
|
+
getCustomContentByType: ({ type, id, spaceId, sort, cursor, limit, bodyFormat, }: {
|
|
171
171
|
/**
|
|
172
172
|
* The type of custom content being requested. See:
|
|
173
173
|
* https://developer.atlassian.com/cloud/confluence/custom-content/ for additional
|
|
@@ -178,26 +178,26 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
178
178
|
* Filter the results based on custom content ids. Multiple custom content ids can
|
|
179
179
|
* be specified as a comma-separated list.
|
|
180
180
|
*/
|
|
181
|
-
id?: number[];
|
|
181
|
+
id?: number[] | undefined;
|
|
182
182
|
/**
|
|
183
183
|
* Filter the results based on space ids. Multiple space ids can be specified as a
|
|
184
184
|
* comma-separated list.
|
|
185
185
|
*/
|
|
186
|
-
spaceId?: number[];
|
|
186
|
+
spaceId?: number[] | undefined;
|
|
187
187
|
/** Used to sort the result by a particular field. */
|
|
188
|
-
sort?: CustomContentSortOrder;
|
|
188
|
+
sort?: CustomContentSortOrder | undefined;
|
|
189
189
|
/**
|
|
190
190
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
191
191
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
192
192
|
* retrieve the `next` set of results.
|
|
193
193
|
*/
|
|
194
|
-
cursor?: string;
|
|
194
|
+
cursor?: string | undefined;
|
|
195
195
|
/**
|
|
196
196
|
* Maximum number of pages per result to return. If more results exist, use the
|
|
197
197
|
* `Link` header to retrieve a relative URL that will return the next set of
|
|
198
198
|
* results.
|
|
199
199
|
*/
|
|
200
|
-
limit?: number;
|
|
200
|
+
limit?: number | undefined;
|
|
201
201
|
/**
|
|
202
202
|
* The content format types to be returned in the `body` field of the response. If
|
|
203
203
|
* available, the representation will be available under a response field of the
|
|
@@ -207,10 +207,10 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
207
207
|
* `atlas_doc_format` body formats are able to be returned. If the custom content
|
|
208
208
|
* body type is `raw`, only the `raw` body format is able to be returned.
|
|
209
209
|
*/
|
|
210
|
-
bodyFormat?: CustomContentBodyRepresentation;
|
|
211
|
-
})
|
|
212
|
-
results?: CustomContentBulk[];
|
|
213
|
-
_links?: MultiEntityLinks;
|
|
210
|
+
bodyFormat?: CustomContentBodyRepresentation | undefined;
|
|
211
|
+
}) => Promise<{
|
|
212
|
+
results?: CustomContentBulk[] | undefined;
|
|
213
|
+
_links?: MultiEntityLinks | undefined;
|
|
214
214
|
} & {
|
|
215
215
|
[key: string]: unknown;
|
|
216
216
|
}>;
|
|
@@ -229,7 +229,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
229
229
|
* @scopes-current read:custom-content:confluence
|
|
230
230
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-blogposts-id-custom-content-get
|
|
231
231
|
*/
|
|
232
|
-
getCustomContentByTypeInBlogPost({ id, type, sort, cursor, limit, bodyFormat, }: {
|
|
232
|
+
getCustomContentByTypeInBlogPost: ({ id, type, sort, cursor, limit, bodyFormat, }: {
|
|
233
233
|
/** The ID of the blog post for which custom content should be returned. */
|
|
234
234
|
id: number;
|
|
235
235
|
/**
|
|
@@ -239,19 +239,19 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
239
239
|
*/
|
|
240
240
|
type: string;
|
|
241
241
|
/** Used to sort the result by a particular field. */
|
|
242
|
-
sort?: CustomContentSortOrder;
|
|
242
|
+
sort?: CustomContentSortOrder | undefined;
|
|
243
243
|
/**
|
|
244
244
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
245
245
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
246
246
|
* retrieve the `next` set of results.
|
|
247
247
|
*/
|
|
248
|
-
cursor?: string;
|
|
248
|
+
cursor?: string | undefined;
|
|
249
249
|
/**
|
|
250
250
|
* Maximum number of pages per result to return. If more results exist, use the
|
|
251
251
|
* `Link` header to retrieve a relative URL that will return the next set of
|
|
252
252
|
* results.
|
|
253
253
|
*/
|
|
254
|
-
limit?: number;
|
|
254
|
+
limit?: number | undefined;
|
|
255
255
|
/**
|
|
256
256
|
* The content format types to be returned in the `body` field of the response. If
|
|
257
257
|
* available, the representation will be available under a response field of the
|
|
@@ -261,10 +261,10 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
261
261
|
* `atlas_doc_format` body formats are able to be returned. If the custom content
|
|
262
262
|
* body type is `raw`, only the `raw` body format is able to be returned.
|
|
263
263
|
*/
|
|
264
|
-
bodyFormat?: CustomContentBodyRepresentation;
|
|
265
|
-
})
|
|
266
|
-
results?: CustomContentBulk[];
|
|
267
|
-
_links?: MultiEntityLinks;
|
|
264
|
+
bodyFormat?: CustomContentBodyRepresentation | undefined;
|
|
265
|
+
}) => Promise<{
|
|
266
|
+
results?: CustomContentBulk[] | undefined;
|
|
267
|
+
_links?: MultiEntityLinks | undefined;
|
|
268
268
|
} & {
|
|
269
269
|
[key: string]: unknown;
|
|
270
270
|
}>;
|
|
@@ -283,7 +283,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
283
283
|
* @scopes-current read:custom-content:confluence
|
|
284
284
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-pages-id-custom-content-get
|
|
285
285
|
*/
|
|
286
|
-
getCustomContentByTypeInPage({ id, type, sort, cursor, limit, bodyFormat, }: {
|
|
286
|
+
getCustomContentByTypeInPage: ({ id, type, sort, cursor, limit, bodyFormat, }: {
|
|
287
287
|
/** The ID of the page for which custom content should be returned. */
|
|
288
288
|
id: number;
|
|
289
289
|
/**
|
|
@@ -293,19 +293,19 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
293
293
|
*/
|
|
294
294
|
type: string;
|
|
295
295
|
/** Used to sort the result by a particular field. */
|
|
296
|
-
sort?: CustomContentSortOrder;
|
|
296
|
+
sort?: CustomContentSortOrder | undefined;
|
|
297
297
|
/**
|
|
298
298
|
* Used for pagination, this opaque cursor will be returned in the `next` URL in
|
|
299
299
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
300
300
|
* retrieve the `next` set of results.
|
|
301
301
|
*/
|
|
302
|
-
cursor?: string;
|
|
302
|
+
cursor?: string | undefined;
|
|
303
303
|
/**
|
|
304
304
|
* Maximum number of pages per result to return. If more results exist, use the
|
|
305
305
|
* `Link` header to retrieve a relative URL that will return the next set of
|
|
306
306
|
* results.
|
|
307
307
|
*/
|
|
308
|
-
limit?: number;
|
|
308
|
+
limit?: number | undefined;
|
|
309
309
|
/**
|
|
310
310
|
* The content format types to be returned in the `body` field of the response. If
|
|
311
311
|
* available, the representation will be available under a response field of the
|
|
@@ -315,10 +315,10 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
315
315
|
* `atlas_doc_format` body formats are able to be returned. If the custom content
|
|
316
316
|
* body type is `raw`, only the `raw` body format is able to be returned.
|
|
317
317
|
*/
|
|
318
|
-
bodyFormat?: CustomContentBodyRepresentation;
|
|
319
|
-
})
|
|
320
|
-
results?: CustomContentBulk[];
|
|
321
|
-
_links?: MultiEntityLinks;
|
|
318
|
+
bodyFormat?: CustomContentBodyRepresentation | undefined;
|
|
319
|
+
}) => Promise<{
|
|
320
|
+
results?: CustomContentBulk[] | undefined;
|
|
321
|
+
_links?: MultiEntityLinks | undefined;
|
|
322
322
|
} & {
|
|
323
323
|
[key: string]: unknown;
|
|
324
324
|
}>;
|
|
@@ -336,7 +336,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
336
336
|
* @scopes-current read:custom-content:confluence
|
|
337
337
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-spaces-id-custom-content-get
|
|
338
338
|
*/
|
|
339
|
-
getCustomContentByTypeInSpace({ id, type, cursor, limit, bodyFormat, }: {
|
|
339
|
+
getCustomContentByTypeInSpace: ({ id, type, cursor, limit, bodyFormat, }: {
|
|
340
340
|
/** The ID of the space for which custom content should be returned. */
|
|
341
341
|
id: number;
|
|
342
342
|
/**
|
|
@@ -350,13 +350,13 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
350
350
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
351
351
|
* retrieve the `next` set of results.
|
|
352
352
|
*/
|
|
353
|
-
cursor?: string;
|
|
353
|
+
cursor?: string | undefined;
|
|
354
354
|
/**
|
|
355
355
|
* Maximum number of pages per result to return. If more results exist, use the
|
|
356
356
|
* `Link` header to retrieve a relative URL that will return the next set of
|
|
357
357
|
* results.
|
|
358
358
|
*/
|
|
359
|
-
limit?: number;
|
|
359
|
+
limit?: number | undefined;
|
|
360
360
|
/**
|
|
361
361
|
* The content format types to be returned in the `body` field of the response. If
|
|
362
362
|
* available, the representation will be available under a response field of the
|
|
@@ -366,10 +366,10 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
366
366
|
* `atlas_doc_format` body formats are able to be returned. If the custom content
|
|
367
367
|
* body type is `raw`, only the `raw` body format is able to be returned.
|
|
368
368
|
*/
|
|
369
|
-
bodyFormat?: CustomContentBodyRepresentation;
|
|
370
|
-
})
|
|
371
|
-
results?: CustomContentBulk[];
|
|
372
|
-
_links?: MultiEntityLinks;
|
|
369
|
+
bodyFormat?: CustomContentBodyRepresentation | undefined;
|
|
370
|
+
}) => Promise<{
|
|
371
|
+
results?: CustomContentBulk[] | undefined;
|
|
372
|
+
_links?: MultiEntityLinks | undefined;
|
|
373
373
|
} & {
|
|
374
374
|
[key: string]: unknown;
|
|
375
375
|
}>;
|
|
@@ -387,7 +387,7 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
387
387
|
* @scopes-current write:custom-content:confluence
|
|
388
388
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content#api-custom-content-id-put
|
|
389
389
|
*/
|
|
390
|
-
updateCustomContent({ id, requestBody, }: {
|
|
390
|
+
updateCustomContent: ({ id, requestBody, }: {
|
|
391
391
|
/**
|
|
392
392
|
* The ID of the custom content to be updated. If you don't know the custom
|
|
393
393
|
* content ID, use Get Custom Content by Type and filter the results.
|
|
@@ -401,36 +401,36 @@ export declare class CustomContentService extends CommonHttpService {
|
|
|
401
401
|
/** The status of the custom content. */
|
|
402
402
|
status: "current";
|
|
403
403
|
/** ID of the containing space. */
|
|
404
|
-
spaceId?: string;
|
|
404
|
+
spaceId?: string | undefined;
|
|
405
405
|
/** ID of the containing page. */
|
|
406
|
-
pageId?: string;
|
|
406
|
+
pageId?: string | undefined;
|
|
407
407
|
/** ID of the containing Blog Post. */
|
|
408
|
-
blogPostId?: string;
|
|
408
|
+
blogPostId?: string | undefined;
|
|
409
409
|
/** ID of the containing custom content. */
|
|
410
|
-
customContentId?: string;
|
|
410
|
+
customContentId?: string | undefined;
|
|
411
411
|
/** Title of the custom content. */
|
|
412
412
|
title: string;
|
|
413
413
|
body: CustomContentBodyWrite | CustomContentNestedBodyWrite;
|
|
414
414
|
version: {
|
|
415
415
|
/** The version number, must be incremented by one. */
|
|
416
|
-
number?: number;
|
|
416
|
+
number?: number | undefined;
|
|
417
417
|
/** An optional message to be stored with the version. */
|
|
418
|
-
message?: string;
|
|
418
|
+
message?: string | undefined;
|
|
419
419
|
} & {
|
|
420
420
|
[key: string]: unknown;
|
|
421
421
|
};
|
|
422
422
|
} & {
|
|
423
423
|
[key: string]: unknown;
|
|
424
424
|
};
|
|
425
|
-
})
|
|
426
|
-
_links?: {
|
|
425
|
+
}) => Promise<CustomContentSingle & {
|
|
426
|
+
_links?: ({
|
|
427
427
|
/** Base url of the Confluence site. */
|
|
428
|
-
base?: string;
|
|
428
|
+
base?: string | undefined;
|
|
429
429
|
} & {
|
|
430
430
|
[key: string]: unknown;
|
|
431
|
-
};
|
|
431
|
+
}) | undefined;
|
|
432
432
|
} & {
|
|
433
433
|
[key: string]: unknown;
|
|
434
|
-
}
|
|
434
|
+
}>;
|
|
435
435
|
static initialize(): void;
|
|
436
436
|
}
|