@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
|
@@ -19,10 +19,10 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
19
19
|
* write:space.permission:confluence
|
|
20
20
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-private-post
|
|
21
21
|
*/
|
|
22
|
-
createPrivateSpace({ spaceCreate, }: {
|
|
22
|
+
createPrivateSpace: ({ spaceCreate, }: {
|
|
23
23
|
/** The space to be created. */
|
|
24
24
|
spaceCreate: SpaceCreate;
|
|
25
|
-
})
|
|
25
|
+
}) => Promise<Space | null>;
|
|
26
26
|
/**
|
|
27
27
|
* Creates a new space. Note, currently you cannot set space labels when
|
|
28
28
|
* creating a space.
|
|
@@ -37,10 +37,10 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
37
37
|
* write:space.permission:confluence
|
|
38
38
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-post
|
|
39
39
|
*/
|
|
40
|
-
createSpace({ spaceCreate, }: {
|
|
40
|
+
createSpace: ({ spaceCreate, }: {
|
|
41
41
|
/** The space to be created. */
|
|
42
42
|
spaceCreate: SpaceCreate;
|
|
43
|
-
})
|
|
43
|
+
}) => Promise<Space | null>;
|
|
44
44
|
/**
|
|
45
45
|
* Permanently deletes a space without sending it to the trash. Note, the space
|
|
46
46
|
* will be deleted in a long running task.
|
|
@@ -57,10 +57,10 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
57
57
|
* @scopes-beta read:content.metadata:confluence, delete:space:confluence
|
|
58
58
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-delete
|
|
59
59
|
*/
|
|
60
|
-
deleteSpace({ spaceKey, }: {
|
|
60
|
+
deleteSpace: ({ spaceKey, }: {
|
|
61
61
|
/** The key of the space to delete. */
|
|
62
62
|
spaceKey: string;
|
|
63
|
-
})
|
|
63
|
+
}) => Promise<LongTask>;
|
|
64
64
|
/**
|
|
65
65
|
* Deprecated, use [Confluence's v2
|
|
66
66
|
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
@@ -83,7 +83,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
83
83
|
* @scopes-beta read:content-details:confluence
|
|
84
84
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-type-get
|
|
85
85
|
*/
|
|
86
|
-
getContentByTypeForSpace({ spaceKey, type, depth, expand, start, limit, }: {
|
|
86
|
+
getContentByTypeForSpace: ({ spaceKey, type, depth, expand, start, limit, }: {
|
|
87
87
|
/** The key of the space to be queried for its content. */
|
|
88
88
|
spaceKey: string;
|
|
89
89
|
/** The type of content to return. `page`, `blogpost`, `<some_customContentType>`. */
|
|
@@ -92,7 +92,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
92
92
|
* Filter the results to content at the root level of the space or all
|
|
93
93
|
* content.
|
|
94
94
|
*/
|
|
95
|
-
depth?: "all" | "root";
|
|
95
|
+
depth?: "all" | "root" | undefined;
|
|
96
96
|
/**
|
|
97
97
|
* A multi-value parameter indicating which properties of the content to expand.
|
|
98
98
|
*
|
|
@@ -187,15 +187,15 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
187
187
|
* - `extensions.inlineProperties` returns inline comment-specific properties.
|
|
188
188
|
* - `extensions.resolution` returns the resolution status of each comment.
|
|
189
189
|
*/
|
|
190
|
-
expand?: string[];
|
|
190
|
+
expand?: string[] | undefined;
|
|
191
191
|
/** The starting index of the returned content. */
|
|
192
|
-
start?: number;
|
|
192
|
+
start?: number | undefined;
|
|
193
193
|
/**
|
|
194
194
|
* The maximum number of content objects to return per page. Note, this
|
|
195
195
|
* may be restricted by fixed system limits.
|
|
196
196
|
*/
|
|
197
|
-
limit?: number;
|
|
198
|
-
})
|
|
197
|
+
limit?: number | undefined;
|
|
198
|
+
}) => Promise<ContentArray>;
|
|
199
199
|
/**
|
|
200
200
|
* Deprecated, use [Confluence's v2
|
|
201
201
|
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
@@ -218,11 +218,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
218
218
|
* @scopes-beta read:content-details:confluence
|
|
219
219
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-content-get
|
|
220
220
|
*/
|
|
221
|
-
getContentForSpace({ spaceKey, depth, expand, start, limit, }: {
|
|
221
|
+
getContentForSpace: ({ spaceKey, depth, expand, start, limit, }: {
|
|
222
222
|
/** The key of the space to be queried for its content. */
|
|
223
223
|
spaceKey: string;
|
|
224
224
|
/** Filter the results to content at the root level of the space or all content. */
|
|
225
|
-
depth?: "all" | "root";
|
|
225
|
+
depth?: "all" | "root" | undefined;
|
|
226
226
|
/**
|
|
227
227
|
* A multi-value parameter indicating which properties of the content to expand.
|
|
228
228
|
*
|
|
@@ -317,18 +317,18 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
317
317
|
* - `extensions.inlineProperties` returns inline comment-specific properties.
|
|
318
318
|
* - `extensions.resolution` returns the resolution status of each comment.
|
|
319
319
|
*/
|
|
320
|
-
expand?: string[];
|
|
320
|
+
expand?: string[] | undefined;
|
|
321
321
|
/** The starting index of the returned content. */
|
|
322
|
-
start?: number;
|
|
322
|
+
start?: number | undefined;
|
|
323
323
|
/**
|
|
324
324
|
* The maximum number of content objects to return per page. Note, this
|
|
325
325
|
* may be restricted by fixed system limits.
|
|
326
326
|
*/
|
|
327
|
-
limit?: number;
|
|
328
|
-
})
|
|
329
|
-
page?: ContentArray;
|
|
330
|
-
blogpost?: ContentArray;
|
|
331
|
-
_links?: GenericLinks;
|
|
327
|
+
limit?: number | undefined;
|
|
328
|
+
}) => Promise<{
|
|
329
|
+
page?: ContentArray | undefined;
|
|
330
|
+
blogpost?: ContentArray | undefined;
|
|
331
|
+
_links?: GenericLinks | undefined;
|
|
332
332
|
} & {
|
|
333
333
|
[key: string]: unknown;
|
|
334
334
|
}>;
|
|
@@ -349,7 +349,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
349
349
|
* @scopes-beta read:content-details:confluence
|
|
350
350
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-get
|
|
351
351
|
*/
|
|
352
|
-
getSpace({ spaceKey, expand, }: {
|
|
352
|
+
getSpace: ({ spaceKey, expand, }: {
|
|
353
353
|
/** The key of the space to be returned. */
|
|
354
354
|
spaceKey: string;
|
|
355
355
|
/**
|
|
@@ -376,8 +376,8 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
376
376
|
* - `homepage` returns information about the space homepage.
|
|
377
377
|
* - `history` returns information about the history of the space.
|
|
378
378
|
*/
|
|
379
|
-
expand?: ("
|
|
380
|
-
})
|
|
379
|
+
expand?: ("metadata" | "description" | "history" | "settings" | "icon" | "homepage" | "operations" | "permissions" | "theme" | "lookAndFeel" | "metadata.labels" | "description.plain" | "description.view")[] | undefined;
|
|
380
|
+
}) => Promise<Space | null>;
|
|
381
381
|
/**
|
|
382
382
|
* Deprecated, use [Confluence's v2
|
|
383
383
|
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
@@ -397,29 +397,29 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
397
397
|
* @scopes-beta read:content-details:confluence
|
|
398
398
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-get
|
|
399
399
|
*/
|
|
400
|
-
getSpaces({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, }?: {
|
|
400
|
+
getSpaces: ({ spaceKey, spaceId, type, status, label, favourite, favouriteUserKey, expand, start, limit, }?: {
|
|
401
401
|
/**
|
|
402
402
|
* The key of the space to be returned. To return multiple spaces,
|
|
403
403
|
* specify this parameter multiple times with different values.
|
|
404
404
|
*/
|
|
405
|
-
spaceKey?: string[];
|
|
405
|
+
spaceKey?: string[] | undefined;
|
|
406
406
|
/**
|
|
407
407
|
* The id of the space to be returned. To return multiple spaces,
|
|
408
408
|
* specify this parameter multiple times with different values.
|
|
409
409
|
*/
|
|
410
|
-
spaceId?: number[];
|
|
410
|
+
spaceId?: number[] | undefined;
|
|
411
411
|
/** Filter the results to spaces based on their type. */
|
|
412
|
-
type?: "global" | "collaboration" | "knowledge_base" |
|
|
412
|
+
type?: "global" | "personal" | "collaboration" | "knowledge_base" | undefined;
|
|
413
413
|
/** Filter the results to spaces based on their status. */
|
|
414
|
-
status?: "current" | "archived";
|
|
414
|
+
status?: "current" | "archived" | undefined;
|
|
415
415
|
/** Filter the results to spaces based on their label. */
|
|
416
|
-
label?: string[];
|
|
416
|
+
label?: string[] | undefined;
|
|
417
417
|
/**
|
|
418
418
|
* Filter the results to the favourite spaces of the user specified by
|
|
419
419
|
* `favouriteUserKey`. Note, 'favourite' spaces are also
|
|
420
420
|
* known as 'saved for later' spaces.
|
|
421
421
|
*/
|
|
422
|
-
favourite?: boolean;
|
|
422
|
+
favourite?: boolean | undefined;
|
|
423
423
|
/**
|
|
424
424
|
* The userKey of the user, whose favourite spaces are used to filter
|
|
425
425
|
* the results when using the `favourite` parameter.
|
|
@@ -427,7 +427,7 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
427
427
|
* Leave blank for the current user. Use [Get user](#api-user-get) to
|
|
428
428
|
* get the userKey for a user.
|
|
429
429
|
*/
|
|
430
|
-
favouriteUserKey?: string;
|
|
430
|
+
favouriteUserKey?: string | undefined;
|
|
431
431
|
/**
|
|
432
432
|
* A multi-value parameter indicating which properties of the spaces to
|
|
433
433
|
* expand, where:
|
|
@@ -452,15 +452,15 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
452
452
|
* - `homepage` returns information about the space homepage.
|
|
453
453
|
* - `history` returns information about the history of the space.
|
|
454
454
|
*/
|
|
455
|
-
expand?: ("
|
|
455
|
+
expand?: ("metadata" | "description" | "history" | "settings" | "icon" | "homepage" | "operations" | "permissions" | "theme" | "lookAndFeel" | "metadata.labels" | "description.plain" | "description.view")[] | undefined;
|
|
456
456
|
/** The starting index of the returned spaces. */
|
|
457
|
-
start?: number;
|
|
457
|
+
start?: number | undefined;
|
|
458
458
|
/**
|
|
459
459
|
* The maximum number of spaces to return per page. Note, this may be
|
|
460
460
|
* restricted by fixed system limits.
|
|
461
461
|
*/
|
|
462
|
-
limit?: number;
|
|
463
|
-
})
|
|
462
|
+
limit?: number | undefined;
|
|
463
|
+
}) => Promise<SpaceArray>;
|
|
464
464
|
/**
|
|
465
465
|
* Updates the name, description, or homepage of a space.
|
|
466
466
|
*
|
|
@@ -478,11 +478,11 @@ export declare class SpaceService extends CommonHttpService {
|
|
|
478
478
|
* write:space.permission:confluence
|
|
479
479
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-space#api-wiki-rest-api-space-spacekey-put
|
|
480
480
|
*/
|
|
481
|
-
updateSpace({ spaceKey, spaceUpdate, }: {
|
|
481
|
+
updateSpace: ({ spaceKey, spaceUpdate, }: {
|
|
482
482
|
/** The key of the space to update. */
|
|
483
483
|
spaceKey: string;
|
|
484
484
|
/** The updated space. */
|
|
485
485
|
spaceUpdate: SpaceUpdate;
|
|
486
|
-
})
|
|
486
|
+
}) => Promise<Space | null>;
|
|
487
487
|
static initialize(): void;
|
|
488
488
|
}
|