@resolution/confluence-api-client 0.4.3 → 0.4.5
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 +4 -0
- 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/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,7 +18,7 @@ export declare class ChildrenService extends CommonHttpService {
|
|
|
18
18
|
* @scopes-current read:custom-content:confluence
|
|
19
19
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-custom-content-id-children-get
|
|
20
20
|
*/
|
|
21
|
-
getChildCustomContent({ id, cursor, limit, sort, }: {
|
|
21
|
+
getChildCustomContent: ({ id, cursor, limit, sort, }: {
|
|
22
22
|
/**
|
|
23
23
|
* The ID of the parent custom content. If you don't know the custom content ID,
|
|
24
24
|
* use Get custom-content and filter the results.
|
|
@@ -29,18 +29,18 @@ export declare class ChildrenService extends CommonHttpService {
|
|
|
29
29
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
30
30
|
* retrieve the `next` set of results.
|
|
31
31
|
*/
|
|
32
|
-
cursor?: string;
|
|
32
|
+
cursor?: string | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Maximum number of pages per result to return. If more results exist, use the
|
|
35
35
|
* `Link` header to retrieve a relative URL that will return the next set of
|
|
36
36
|
* results.
|
|
37
37
|
*/
|
|
38
|
-
limit?: number;
|
|
38
|
+
limit?: number | undefined;
|
|
39
39
|
/** Used to sort the result by a particular field. */
|
|
40
|
-
sort?: string;
|
|
41
|
-
})
|
|
42
|
-
results?: ChildCustomContent[];
|
|
43
|
-
_links?: MultiEntityLinks;
|
|
40
|
+
sort?: string | undefined;
|
|
41
|
+
}) => Promise<{
|
|
42
|
+
results?: ChildCustomContent[] | undefined;
|
|
43
|
+
_links?: MultiEntityLinks | undefined;
|
|
44
44
|
} & {
|
|
45
45
|
[key: string]: unknown;
|
|
46
46
|
}>;
|
|
@@ -58,7 +58,7 @@ export declare class ChildrenService extends CommonHttpService {
|
|
|
58
58
|
* @scopes-current read:page:confluence
|
|
59
59
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-pages-id-children-get
|
|
60
60
|
*/
|
|
61
|
-
getChildPages({ id, cursor, limit, sort, }: {
|
|
61
|
+
getChildPages: ({ id, cursor, limit, sort, }: {
|
|
62
62
|
/**
|
|
63
63
|
* The ID of the parent page. If you don't know the page ID, use Get pages and
|
|
64
64
|
* filter the results.
|
|
@@ -69,18 +69,18 @@ export declare class ChildrenService extends CommonHttpService {
|
|
|
69
69
|
* the `Link` response header. Use the relative URL in the `Link` header to
|
|
70
70
|
* retrieve the `next` set of results.
|
|
71
71
|
*/
|
|
72
|
-
cursor?: string;
|
|
72
|
+
cursor?: string | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* Maximum number of pages per result to return. If more results exist, use the
|
|
75
75
|
* `Link` header to retrieve a relative URL that will return the next set of
|
|
76
76
|
* results.
|
|
77
77
|
*/
|
|
78
|
-
limit?: number;
|
|
78
|
+
limit?: number | undefined;
|
|
79
79
|
/** Used to sort the result by a particular field. */
|
|
80
|
-
sort?: string;
|
|
81
|
-
})
|
|
82
|
-
results?: ChildPage[];
|
|
83
|
-
_links?: MultiEntityLinks;
|
|
80
|
+
sort?: string | undefined;
|
|
81
|
+
}) => Promise<{
|
|
82
|
+
results?: ChildPage[] | undefined;
|
|
83
|
+
_links?: MultiEntityLinks | undefined;
|
|
84
84
|
} & {
|
|
85
85
|
[key: string]: unknown;
|
|
86
86
|
}>;
|
|
@@ -12,80 +12,83 @@ const common_1 = require("../models/common");
|
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
13
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children */
|
|
14
14
|
class ChildrenService extends CommonHttpService_1.CommonHttpService {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Returns all child custom content for given custom content id. The number of
|
|
19
|
+
* results is limited by the `limit` parameter and additional results (if
|
|
20
|
+
* available)
|
|
21
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
22
|
+
*
|
|
23
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
24
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
25
|
+
* Only custom content that the user has permission to view will be returned.
|
|
26
|
+
*
|
|
27
|
+
* @returns Returned if the requested child custom content are returned.
|
|
28
|
+
* @path {GET} /custom-content/{id}/children
|
|
29
|
+
* @scopes-current read:custom-content:confluence
|
|
30
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-custom-content-id-children-get
|
|
31
|
+
*/
|
|
32
|
+
this.getChildCustomContent = ({ id, cursor, limit, sort, }) => {
|
|
33
|
+
return this.getClientInstance()
|
|
34
|
+
.request({
|
|
35
|
+
path: "/custom-content/{id}/children",
|
|
36
|
+
method: "GET",
|
|
37
|
+
pathParams: {
|
|
38
|
+
id,
|
|
39
|
+
},
|
|
40
|
+
query: {
|
|
41
|
+
cursor,
|
|
42
|
+
limit,
|
|
43
|
+
sort,
|
|
44
|
+
},
|
|
45
|
+
})
|
|
46
|
+
.then(this.getClientInstance().responseHandler({
|
|
47
|
+
200: {
|
|
48
|
+
"application/json": "json",
|
|
49
|
+
},
|
|
50
|
+
}))
|
|
51
|
+
.then(commonHttpClient.castResponse())
|
|
52
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ChildrenService.getChildCustomContent.response"))
|
|
53
|
+
.then(commonHttpClient.getBody);
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Returns all child pages for given page id. The number of results is limited by
|
|
57
|
+
* the `limit` parameter and additional results (if available)
|
|
58
|
+
* will be available through the `next` URL present in the `Link` response header.
|
|
59
|
+
*
|
|
60
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
61
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
62
|
+
* Only pages that the user has permission to view will be returned.
|
|
63
|
+
*
|
|
64
|
+
* @returns Returned if the requested child pages are returned.
|
|
65
|
+
* @path {GET} /pages/{id}/children
|
|
66
|
+
* @scopes-current read:page:confluence
|
|
67
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-pages-id-children-get
|
|
68
|
+
*/
|
|
69
|
+
this.getChildPages = ({ id, cursor, limit, sort, }) => {
|
|
70
|
+
return this.getClientInstance()
|
|
71
|
+
.request({
|
|
72
|
+
path: "/pages/{id}/children",
|
|
73
|
+
method: "GET",
|
|
74
|
+
pathParams: {
|
|
75
|
+
id,
|
|
76
|
+
},
|
|
77
|
+
query: {
|
|
78
|
+
cursor,
|
|
79
|
+
limit,
|
|
80
|
+
sort,
|
|
81
|
+
},
|
|
82
|
+
})
|
|
83
|
+
.then(this.getClientInstance().responseHandler({
|
|
84
|
+
200: {
|
|
85
|
+
"application/json": "json",
|
|
86
|
+
},
|
|
87
|
+
}))
|
|
88
|
+
.then(commonHttpClient.castResponse())
|
|
89
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ChildrenService.getChildPages.response"))
|
|
90
|
+
.then(commonHttpClient.getBody);
|
|
91
|
+
};
|
|
89
92
|
}
|
|
90
93
|
static initialize() {
|
|
91
94
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ChildrenService.getChildCustomContent.response", zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildrenService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/ChildrenService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iDAI4B;AAC5B,6CAG0B;AAC1B,wEAAqE;AACrE,uFAAuF;AACvF,MAAa,eAAgB,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"ChildrenService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/ChildrenService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iDAI4B;AAC5B,6CAG0B;AAC1B,wEAAqE;AACrE,uFAAuF;AACvF,MAAa,eAAgB,SAAQ,qCAAiB;IAA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CAAC;IACL,CAAC;CACF;AA1ND,0CA0NC"}
|
|
@@ -15,10 +15,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
15
15
|
* @scopes-current read:space:confluence, write:space:confluence
|
|
16
16
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-delete
|
|
17
17
|
*/
|
|
18
|
-
deleteSpaceDefaultClassificationLevel({ id, }: {
|
|
18
|
+
deleteSpaceDefaultClassificationLevel: ({ id, }: {
|
|
19
19
|
/** The ID of the space for which default classification level should be deleted. */
|
|
20
20
|
id: number;
|
|
21
|
-
})
|
|
21
|
+
}) => Promise<void>;
|
|
22
22
|
/**
|
|
23
23
|
* Returns the [classification
|
|
24
24
|
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
@@ -35,12 +35,12 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
35
35
|
* @scopes-current read:page:confluence, write:page:confluence
|
|
36
36
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-get
|
|
37
37
|
*/
|
|
38
|
-
getBlogPostClassificationLevel({ id, status, }: {
|
|
38
|
+
getBlogPostClassificationLevel: ({ id, status, }: {
|
|
39
39
|
/** The ID of the blog post for which classification level should be returned. */
|
|
40
40
|
id: number;
|
|
41
41
|
/** Status of blog post from which classification level will fetched. */
|
|
42
|
-
status?: "current" | "draft" | "archived";
|
|
43
|
-
})
|
|
42
|
+
status?: "current" | "draft" | "archived" | undefined;
|
|
43
|
+
}) => Promise<ClassificationLevel>;
|
|
44
44
|
/**
|
|
45
45
|
* Returns a list of [classification
|
|
46
46
|
* levels](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
@@ -54,7 +54,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
54
54
|
* @scopes-current read:configuration:confluence
|
|
55
55
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-classification-levels-get
|
|
56
56
|
*/
|
|
57
|
-
getClassificationLevels()
|
|
57
|
+
getClassificationLevels: () => Promise<ClassificationLevel[]>;
|
|
58
58
|
/**
|
|
59
59
|
* Returns the [classification
|
|
60
60
|
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
@@ -71,12 +71,12 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
71
71
|
* @scopes-current read:page:confluence, write:page:confluence
|
|
72
72
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-get
|
|
73
73
|
*/
|
|
74
|
-
getPageClassificationLevel({ id, status, }: {
|
|
74
|
+
getPageClassificationLevel: ({ id, status, }: {
|
|
75
75
|
/** The ID of the page for which classification level should be returned. */
|
|
76
76
|
id: number;
|
|
77
77
|
/** Status of page from which classification level will fetched. */
|
|
78
|
-
status?: "current" | "draft" | "archived";
|
|
79
|
-
})
|
|
78
|
+
status?: "current" | "draft" | "archived" | undefined;
|
|
79
|
+
}) => Promise<ClassificationLevel>;
|
|
80
80
|
/**
|
|
81
81
|
* Returns the [default classification
|
|
82
82
|
* level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
|
|
@@ -91,10 +91,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
91
91
|
* @scopes-current read:space:confluence
|
|
92
92
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-get
|
|
93
93
|
*/
|
|
94
|
-
getSpaceDefaultClassificationLevel({ id, }: {
|
|
94
|
+
getSpaceDefaultClassificationLevel: ({ id, }: {
|
|
95
95
|
/** The ID of the space for which default classification level should be returned. */
|
|
96
96
|
id: number;
|
|
97
|
-
})
|
|
97
|
+
}) => Promise<ClassificationLevel>;
|
|
98
98
|
/**
|
|
99
99
|
* Resets the [classification
|
|
100
100
|
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
@@ -110,7 +110,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
110
110
|
* @scopes-current write:page:confluence
|
|
111
111
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-reset-post
|
|
112
112
|
*/
|
|
113
|
-
postBlogPostClassificationLevel({ id, requestBody, }: {
|
|
113
|
+
postBlogPostClassificationLevel: ({ id, requestBody, }: {
|
|
114
114
|
/** The ID of the blog post for which classification level should be updated. */
|
|
115
115
|
id: number;
|
|
116
116
|
requestBody: {
|
|
@@ -119,7 +119,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
119
119
|
} & {
|
|
120
120
|
[key: string]: unknown;
|
|
121
121
|
};
|
|
122
|
-
})
|
|
122
|
+
}) => Promise<void>;
|
|
123
123
|
/**
|
|
124
124
|
* Resets the [classification
|
|
125
125
|
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
@@ -135,7 +135,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
135
135
|
* @scopes-current write:page:confluence
|
|
136
136
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-reset-post
|
|
137
137
|
*/
|
|
138
|
-
postPageClassificationLevel({ id, requestBody, }: {
|
|
138
|
+
postPageClassificationLevel: ({ id, requestBody, }: {
|
|
139
139
|
/** The ID of the page for which classification level should be updated. */
|
|
140
140
|
id: number;
|
|
141
141
|
requestBody: {
|
|
@@ -144,7 +144,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
144
144
|
} & {
|
|
145
145
|
[key: string]: unknown;
|
|
146
146
|
};
|
|
147
|
-
})
|
|
147
|
+
}) => Promise<void>;
|
|
148
148
|
/**
|
|
149
149
|
* Updates the [classification
|
|
150
150
|
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
@@ -158,7 +158,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
158
158
|
* @scopes-current write:page:confluence
|
|
159
159
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-put
|
|
160
160
|
*/
|
|
161
|
-
putBlogPostClassificationLevel({ id, requestBody, }: {
|
|
161
|
+
putBlogPostClassificationLevel: ({ id, requestBody, }: {
|
|
162
162
|
/** The ID of the blog post for which classification level should be updated. */
|
|
163
163
|
id: number;
|
|
164
164
|
requestBody: {
|
|
@@ -169,7 +169,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
169
169
|
} & {
|
|
170
170
|
[key: string]: unknown;
|
|
171
171
|
};
|
|
172
|
-
})
|
|
172
|
+
}) => Promise<void>;
|
|
173
173
|
/**
|
|
174
174
|
* Updates the [classification
|
|
175
175
|
* level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
|
|
@@ -183,7 +183,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
183
183
|
* @scopes-current write:page:confluence
|
|
184
184
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-put
|
|
185
185
|
*/
|
|
186
|
-
putPageClassificationLevel({ id, requestBody, }: {
|
|
186
|
+
putPageClassificationLevel: ({ id, requestBody, }: {
|
|
187
187
|
/** The ID of the page for which classification level should be updated. */
|
|
188
188
|
id: number;
|
|
189
189
|
requestBody: {
|
|
@@ -194,7 +194,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
194
194
|
} & {
|
|
195
195
|
[key: string]: unknown;
|
|
196
196
|
};
|
|
197
|
-
})
|
|
197
|
+
}) => Promise<void>;
|
|
198
198
|
/**
|
|
199
199
|
* Update the [default classification
|
|
200
200
|
* level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
|
|
@@ -208,7 +208,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
208
208
|
* @scopes-current read:space:confluence, write:space:confluence
|
|
209
209
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-put
|
|
210
210
|
*/
|
|
211
|
-
putSpaceDefaultClassificationLevel({ id, requestBody, }: {
|
|
211
|
+
putSpaceDefaultClassificationLevel: ({ id, requestBody, }: {
|
|
212
212
|
/** The ID of the space for which default classification level should be updated. */
|
|
213
213
|
id: number;
|
|
214
214
|
requestBody: {
|
|
@@ -219,6 +219,6 @@ export declare class ClassificationLevelService extends CommonHttpService {
|
|
|
219
219
|
} & {
|
|
220
220
|
[key: string]: unknown;
|
|
221
221
|
};
|
|
222
|
-
})
|
|
222
|
+
}) => Promise<void>;
|
|
223
223
|
static initialize(): void;
|
|
224
224
|
}
|