@resolution/confluence-api-client 0.13.4 → 0.14.0
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/lib/openapi/core/CommonHttpClient.d.ts +1 -1
- package/lib/openapi/core/CommonHttpClient.js +1 -1
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +6 -37
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +3 -71
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/audit.js +2 -2
- package/lib/openapi/v1/models/audit.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +1 -1
- package/lib/openapi/v1/models/common.js +3 -3
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +0 -543
- package/lib/openapi/v1/models/content.js +2 -309
- package/lib/openapi/v1/models/content.js.map +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +7 -3
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
- package/lib/openapi/v1/models/contentRestrictions.js +1 -1
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +322 -0
- package/lib/openapi/v1/models/contentStates.js +219 -0
- package/lib/openapi/v1/models/contentStates.js.map +1 -1
- package/lib/openapi/v1/models/contentVersions.d.ts +0 -9
- package/lib/openapi/v1/models/contentVersions.js +1 -10
- package/lib/openapi/v1/models/contentVersions.js.map +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +3 -3
- package/lib/openapi/v1/models/space.d.ts +1 -9
- package/lib/openapi/v1/models/space.js +1 -8
- package/lib/openapi/v1/models/space.js.map +1 -1
- package/lib/openapi/v1/models/template.js +1 -1
- package/lib/openapi/v1/models/template.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +4 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +0 -130
- package/lib/openapi/v1/services/ContentAttachmentsService.js +0 -52
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +1 -102
- package/lib/openapi/v1/services/ContentBodyService.js +1 -65
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +5 -220
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +4 -144
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +1 -44
- package/lib/openapi/v1/services/ContentLabelsService.js +0 -41
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +2 -560
- package/lib/openapi/v1/services/ContentService.js +1 -300
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +1 -72
- package/lib/openapi/v1/services/ContentVersionsService.js +1 -97
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +1 -1
- package/lib/openapi/v1/services/GroupService.js +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +0 -26
- package/lib/openapi/v1/services/SettingsService.js +0 -38
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +2 -406
- package/lib/openapi/v1/services/SpaceService.js +1 -215
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +22 -3
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +25 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/models/adminKey.d.ts +13 -0
- package/lib/openapi/v2/models/adminKey.js +12 -0
- package/lib/openapi/v2/models/adminKey.js.map +1 -0
- package/lib/openapi/v2/models/children.d.ts +21 -6
- package/lib/openapi/v2/models/children.js +10 -1
- package/lib/openapi/v2/models/children.js.map +1 -1
- package/lib/openapi/v2/models/common.d.ts +6 -0
- package/lib/openapi/v2/models/common.js +1 -0
- package/lib/openapi/v2/models/common.js.map +1 -1
- package/lib/openapi/v2/models/descendants.d.ts +29 -0
- package/lib/openapi/v2/models/descendants.js +19 -0
- package/lib/openapi/v2/models/descendants.js.map +1 -0
- package/lib/openapi/v2/services/AdminKeyService.d.ts +71 -0
- package/lib/openapi/v2/services/AdminKeyService.js +111 -0
- package/lib/openapi/v2/services/AdminKeyService.js.map +1 -0
- package/lib/openapi/v2/services/AttachmentService.d.ts +6 -5
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +5 -4
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +307 -1
- package/lib/openapi/v2/services/ChildrenService.js +321 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +10 -8
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +18 -1
- package/lib/openapi/v2/services/CustomContentService.js +5 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +4 -6
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/DescendantsService.d.ts +346 -0
- package/lib/openapi/v2/services/DescendantsService.js +362 -0
- package/lib/openapi/v2/services/DescendantsService.js.map +1 -0
- package/lib/openapi/v2/services/FolderService.d.ts +4 -6
- package/lib/openapi/v2/services/FolderService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +49 -6
- package/lib/openapi/v2/services/PageService.js +42 -2
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -6
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +2 -1
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +6 -8
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +3 -3
- package/lib/openapi/v1/models/contentProperties.d.ts +0 -78
- package/lib/openapi/v1/models/contentProperties.js +0 -48
- package/lib/openapi/v1/models/contentProperties.js.map +0 -1
- package/lib/openapi/v1/models/inlineTasks.d.ts +0 -33
- package/lib/openapi/v1/models/inlineTasks.js +0 -36
- package/lib/openapi/v1/models/inlineTasks.js.map +0 -1
- package/lib/openapi/v1/models/spaceProperties.d.ts +0 -103
- package/lib/openapi/v1/models/spaceProperties.js +0 -48
- package/lib/openapi/v1/models/spaceProperties.js.map +0 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +0 -153
- package/lib/openapi/v1/services/ContentCommentsService.js +0 -81
- package/lib/openapi/v1/services/ContentCommentsService.js.map +0 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +0 -203
- package/lib/openapi/v1/services/ContentPropertiesService.js +0 -279
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +0 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +0 -101
- package/lib/openapi/v1/services/InlineTasksService.js +0 -145
- package/lib/openapi/v1/services/InlineTasksService.js.map +0 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +0 -177
- package/lib/openapi/v1/services/SpacePropertiesService.js +0 -269
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +0 -1
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type ContentArray } from "../models/common";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments
|
|
6
|
-
* @category Services
|
|
7
|
-
*/
|
|
8
|
-
export declare class ContentCommentsService extends CommonHttpService {
|
|
9
|
-
/**
|
|
10
|
-
* Deprecated, use [Confluence's v2
|
|
11
|
-
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
12
|
-
*
|
|
13
|
-
* Returns the comments on a piece of content.
|
|
14
|
-
*
|
|
15
|
-
* If the expand query parameter is used with the `body.export_view` and/or
|
|
16
|
-
* `body.styled_view` properties, then the query limit parameter will be
|
|
17
|
-
* restricted to a maximum value of 25.
|
|
18
|
-
*
|
|
19
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
20
|
-
* permission for the space,
|
|
21
|
-
* and permission to view the content if it is a page.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated
|
|
24
|
-
* @returns Returned if the requested comments are returned.
|
|
25
|
-
* @path GET `/wiki/rest/api/content/{id}/child/comment`
|
|
26
|
-
* @scopes-current read:confluence-content.summary
|
|
27
|
-
* @scopes-beta read:content-details:confluence
|
|
28
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
29
|
-
* @param params
|
|
30
|
-
*/
|
|
31
|
-
getContentComments: ({ id, expand, parentVersion, start, limit, location, depth }: {
|
|
32
|
-
/** The ID of the content to be queried for its comments. */
|
|
33
|
-
id: string;
|
|
34
|
-
/**
|
|
35
|
-
* A multi-value parameter indicating which properties of the content to expand.
|
|
36
|
-
*
|
|
37
|
-
* - `childTypes.all` returns whether the content has attachments, comments, or
|
|
38
|
-
* child pages/whiteboards.
|
|
39
|
-
* Use this if you only need to check whether the content has children of a
|
|
40
|
-
* particular type.
|
|
41
|
-
* - `childTypes.attachment` returns whether the content has attachments.
|
|
42
|
-
* - `childTypes.comment` returns whether the content has comments.
|
|
43
|
-
* - `childTypes.page` returns whether the content has child pages.
|
|
44
|
-
* - `childTypes.whiteboard` returns whether the content has child whiteboards.
|
|
45
|
-
* - `childTypes.database` returns whether the content has child databases.
|
|
46
|
-
* - `childTypes.embed` returns whether the content has child embeds (smartlinks).
|
|
47
|
-
* - `childTypes.folder` returns whether the content has child folders.
|
|
48
|
-
* - `container` returns the space that the content is in. This is the same as the
|
|
49
|
-
* information
|
|
50
|
-
* returned by [Get space](#api-space-spaceKey-get).
|
|
51
|
-
* - `metadata.currentuser` returns information about the current user in relation
|
|
52
|
-
* to the content,
|
|
53
|
-
* including when they last viewed it, modified it, contributed to it, or added it
|
|
54
|
-
* as a favorite.
|
|
55
|
-
* - `metadata.properties` returns content properties that have been set via the
|
|
56
|
-
* Confluence REST API.
|
|
57
|
-
* - `metadata.labels` returns the labels that have been added to the content.
|
|
58
|
-
* - `metadata.frontend` this property is only used by Atlassian.
|
|
59
|
-
* - `operations` returns the operations for the content, which are used when
|
|
60
|
-
* setting permissions.
|
|
61
|
-
* - `children.page` returns pages that are descendants at the level immediately
|
|
62
|
-
* below the content.
|
|
63
|
-
* - `children.whiteboard` returns whiteboards that are descendants at the level
|
|
64
|
-
* immediately below the content.
|
|
65
|
-
* - `children.database` returns databases that are descendants at the level
|
|
66
|
-
* immediately below the content.
|
|
67
|
-
* - `children.embed` returns embeds (smartlinks) that are descendants at the
|
|
68
|
-
* level immediately below the content.
|
|
69
|
-
* - `children.folder` returns folders that are descendants at the level
|
|
70
|
-
* immediately below the content.
|
|
71
|
-
* - `children.attachment` returns all attachments for the content.
|
|
72
|
-
* - `children.comment` returns all comments on the content.
|
|
73
|
-
* - `restrictions.read.restrictions.user` returns the users that have permission
|
|
74
|
-
* to read the content.
|
|
75
|
-
* - `restrictions.read.restrictions.group` returns the groups that have
|
|
76
|
-
* permission to read the content. Note that
|
|
77
|
-
* this may return deleted groups, because deleting a group doesn't remove
|
|
78
|
-
* associated restrictions.
|
|
79
|
-
* - `restrictions.update.restrictions.user` returns the users that have
|
|
80
|
-
* permission to update the content.
|
|
81
|
-
* - `restrictions.update.restrictions.group` returns the groups that have
|
|
82
|
-
* permission to update the content. Note that
|
|
83
|
-
* this may return deleted groups because deleting a group doesn't remove
|
|
84
|
-
* associated restrictions.
|
|
85
|
-
* - `history` returns the history of the content, including the date it was
|
|
86
|
-
* created.
|
|
87
|
-
* - `history.lastUpdated` returns information about the most recent update of the
|
|
88
|
-
* content, including
|
|
89
|
-
* who updated it and when it was updated.
|
|
90
|
-
* - `history.previousVersion` returns information about the update prior to the
|
|
91
|
-
* current content update.
|
|
92
|
-
* - `history.contributors` returns all of the users who have contributed to the
|
|
93
|
-
* content.
|
|
94
|
-
* - `history.nextVersion` returns information about the update after to the
|
|
95
|
-
* current content update.
|
|
96
|
-
* - `ancestors` returns the parent content, if the content is a page or
|
|
97
|
-
* whiteboard.
|
|
98
|
-
* - `body` returns the body of the content in different formats, including the
|
|
99
|
-
* editor format,
|
|
100
|
-
* view format, and export format.
|
|
101
|
-
* - `body.storage` returns the body of content in storage format.
|
|
102
|
-
* - `body.view` returns the body of content in view format.
|
|
103
|
-
* - `version` returns information about the most recent update of the content,
|
|
104
|
-
* including who updated it
|
|
105
|
-
* and when it was updated.
|
|
106
|
-
* - `descendants.page` returns pages that are descendants at any level below the
|
|
107
|
-
* content.
|
|
108
|
-
* - `descendants.whiteboard` returns whiteboards that are descendants at any
|
|
109
|
-
* level below the content.
|
|
110
|
-
* - `descendants.database` returns databases that are descendants at any level
|
|
111
|
-
* below the content.
|
|
112
|
-
* - `descendants.embed` returns embeds (smartlinks) that are descendants at any
|
|
113
|
-
* level below the content.
|
|
114
|
-
* - `descendants.folder` returns folders that are descendants at any level below
|
|
115
|
-
* the content.
|
|
116
|
-
* - `descendants.attachment` returns all attachments for the content, same as
|
|
117
|
-
* `children.attachment`.
|
|
118
|
-
* - `descendants.comment` returns all comments on the content, same as
|
|
119
|
-
* `children.comment`.
|
|
120
|
-
* - `space` returns the space that the content is in. This is the same as the
|
|
121
|
-
* information returned by
|
|
122
|
-
* [Get space](#api-space-spaceKey-get).
|
|
123
|
-
*
|
|
124
|
-
* In addition, the following comment-specific expansions can be used:
|
|
125
|
-
* - `extensions.inlineProperties` returns inline comment-specific properties.
|
|
126
|
-
* - `extensions.resolution` returns the resolution status of each comment.
|
|
127
|
-
*/
|
|
128
|
-
expand?: string[] | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* The version of the parent content to retrieve children for.
|
|
131
|
-
* Currently, this only works for the latest version.
|
|
132
|
-
*/
|
|
133
|
-
parentVersion?: number | undefined;
|
|
134
|
-
/** The starting index of the returned comments. */
|
|
135
|
-
start?: number | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* The maximum number of comments to return per page. Note,
|
|
138
|
-
* this may be restricted by fixed system limits.
|
|
139
|
-
*/
|
|
140
|
-
limit?: number | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* The location of the comments in the page. Multiple locations can be specified.
|
|
143
|
-
* If no location is specified, comments from all locations are returned.
|
|
144
|
-
*/
|
|
145
|
-
location?: "inline" | "footer" | "resolved" | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* Currently, this parameter is not used.
|
|
148
|
-
* Comments are returned at the root level only.
|
|
149
|
-
*/
|
|
150
|
-
depth?: string | undefined;
|
|
151
|
-
}) => Promise<ContentArray>;
|
|
152
|
-
protected static initialize(): void;
|
|
153
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContentCommentsService = void 0;
|
|
4
|
-
// DO NOT EDIT!
|
|
5
|
-
// This file is generated by "api-typescript-generator".
|
|
6
|
-
// To update this file run "yarn build:openapi".
|
|
7
|
-
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
8
|
-
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
9
|
-
const common_1 = require("../models/common");
|
|
10
|
-
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
11
|
-
const zod_1 = require("zod");
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments
|
|
15
|
-
* @category Services
|
|
16
|
-
*/
|
|
17
|
-
class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
/**
|
|
21
|
-
* Deprecated, use [Confluence's v2
|
|
22
|
-
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
23
|
-
*
|
|
24
|
-
* Returns the comments on a piece of content.
|
|
25
|
-
*
|
|
26
|
-
* If the expand query parameter is used with the `body.export_view` and/or
|
|
27
|
-
* `body.styled_view` properties, then the query limit parameter will be
|
|
28
|
-
* restricted to a maximum value of 25.
|
|
29
|
-
*
|
|
30
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
31
|
-
* permission for the space,
|
|
32
|
-
* and permission to view the content if it is a page.
|
|
33
|
-
*
|
|
34
|
-
* @deprecated
|
|
35
|
-
* @returns Returned if the requested comments are returned.
|
|
36
|
-
* @path GET `/wiki/rest/api/content/{id}/child/comment`
|
|
37
|
-
* @scopes-current read:confluence-content.summary
|
|
38
|
-
* @scopes-beta read:content-details:confluence
|
|
39
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
40
|
-
* @param params
|
|
41
|
-
*/
|
|
42
|
-
this.getContentComments = ({ id, expand, parentVersion, start, limit, location, depth }) => {
|
|
43
|
-
return this.getClientInstance().request({
|
|
44
|
-
path: "/wiki/rest/api/content/{id}/child/comment",
|
|
45
|
-
method: "GET",
|
|
46
|
-
pathParams: {
|
|
47
|
-
id
|
|
48
|
-
},
|
|
49
|
-
query: {
|
|
50
|
-
expand,
|
|
51
|
-
parentVersion,
|
|
52
|
-
start,
|
|
53
|
-
limit,
|
|
54
|
-
location,
|
|
55
|
-
depth
|
|
56
|
-
},
|
|
57
|
-
parameters: {
|
|
58
|
-
query: {
|
|
59
|
-
expand: {
|
|
60
|
-
explode: false
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}).then(this.getClientInstance().responseHandler({
|
|
65
|
-
200: {
|
|
66
|
-
"application/json": "json"
|
|
67
|
-
}
|
|
68
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentCommentsService.getContentComments.response"))).then(commonHttpClient.getBody);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
static initialize() {
|
|
72
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentCommentsService.getContentComments.response", zod_1.z.object({
|
|
73
|
-
status: zod_1.z.literal(200),
|
|
74
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
75
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentArray")
|
|
76
|
-
}).describe("ContentCommentsService.getContentComments.response"));
|
|
77
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
exports.ContentCommentsService = ContentCommentsService;
|
|
81
|
-
//# sourceMappingURL=ContentCommentsService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentCommentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentCommentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,6CAAsF;AACtF,wEAAqE;AACrE,6BAAwB;AACxB;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,qCAAiB;IAA7D;;QACE;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,uBAAkB,GAAG,CAAC,EACpB,EAAE,EACF,MAAM,EACN,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EAyHN,EAAyB,EAAE;YAC1B,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,2CAA2C;gBACjD,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;oBACN,aAAa;oBACb,KAAK;oBACL,KAAK;oBACL,QAAQ;oBACR,KAAK;iBACN;gBACD,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,MAAM,EAAE;4BACN,OAAO,EAAE,KAAK;yBACf;qBACF;iBACF;aACF,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBAC/C,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAIlC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,iDAAuB,CAAC,SAAS,CAAC,oDAAoD,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC1K,CAAC,CAAC;IASJ,CAAC;IARW,MAAM,CAAC,UAAU;QACzB,iDAAuB,CAAC,kBAAkB,CAAC,oDAAoD,EAAE,OAAC,CAAC,MAAM,CAAC;YACxG,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,cAAc,CAAC;SACnD,CAAC,CAAC,QAAQ,CAAC,oDAAoD,CAAC,CAAC,CAAC;QACnE,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AA/LD,wDA+LC"}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type ContentPropertyArray, type ContentPropertyCreate, type ContentPropertyV1, type ContentPropertyUpdate, type ContentPropertyCreateNoKey } from "../models/contentProperties";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
|
|
6
|
-
* @category Services
|
|
7
|
-
*/
|
|
8
|
-
export declare class ContentPropertiesService extends CommonHttpService {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a property for an existing piece of content. For more information
|
|
11
|
-
* about content properties, see [Confluence entity
|
|
12
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
13
|
-
*
|
|
14
|
-
* This is the same as [Create content property for
|
|
15
|
-
* key](#api-content-id-property-key-post)
|
|
16
|
-
* except that the key is specified in the request body instead of as a
|
|
17
|
-
* path parameter.
|
|
18
|
-
*
|
|
19
|
-
* Content properties can also be added when creating a new piece of content
|
|
20
|
-
* by including them in the `metadata.properties` of the request.
|
|
21
|
-
*
|
|
22
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
23
|
-
* Permission to update the content.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated
|
|
26
|
-
* @returns Returned if the content property is created.
|
|
27
|
-
* @path POST `/wiki/rest/api/content/{id}/property`
|
|
28
|
-
* @scopes-current write:confluence-props
|
|
29
|
-
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
30
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
|
|
31
|
-
* @param params
|
|
32
|
-
*/
|
|
33
|
-
createContentProperty: ({ id, contentPropertyCreate }: {
|
|
34
|
-
/** The ID of the content to add the property to. */
|
|
35
|
-
id: string;
|
|
36
|
-
/** The content property to be created. */
|
|
37
|
-
contentPropertyCreate: ContentPropertyCreate;
|
|
38
|
-
}) => Promise<ContentPropertyV1>;
|
|
39
|
-
/**
|
|
40
|
-
* Creates a property for an existing piece of content. For more information
|
|
41
|
-
* about content properties, see [Confluence entity
|
|
42
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
43
|
-
*
|
|
44
|
-
* This is the same as [Create content property](#api-content-id-property-post)
|
|
45
|
-
* except that the key is specified as a path parameter instead of in the
|
|
46
|
-
* request body.
|
|
47
|
-
*
|
|
48
|
-
* Content properties can also be added when creating a new piece of content
|
|
49
|
-
* by including them in the `metadata.properties` of the request.
|
|
50
|
-
*
|
|
51
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
52
|
-
* Permission to update the content.
|
|
53
|
-
*
|
|
54
|
-
* @deprecated
|
|
55
|
-
* @returns Returned if the content property is created.
|
|
56
|
-
* @path POST `/wiki/rest/api/content/{id}/property/{key}`
|
|
57
|
-
* @scopes-current write:confluence-props
|
|
58
|
-
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
59
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
|
|
60
|
-
* @param params
|
|
61
|
-
*/
|
|
62
|
-
createContentPropertyForKey: ({ id, key, contentPropertyCreateNoKey }: {
|
|
63
|
-
/** The ID of the content to add the property to. */
|
|
64
|
-
id: string;
|
|
65
|
-
/** The key of the content property. Required. */
|
|
66
|
-
key: string;
|
|
67
|
-
/** The content property to be created. */
|
|
68
|
-
contentPropertyCreateNoKey: ContentPropertyCreateNoKey;
|
|
69
|
-
}) => Promise<ContentPropertyV1>;
|
|
70
|
-
/**
|
|
71
|
-
* Deletes a content property. For more information about content properties, see
|
|
72
|
-
* [Confluence entity
|
|
73
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
74
|
-
*
|
|
75
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
76
|
-
* Permission to update the content.
|
|
77
|
-
*
|
|
78
|
-
* @deprecated
|
|
79
|
-
* @path DELETE `/wiki/rest/api/content/{id}/property/{key}`
|
|
80
|
-
* @scopes-current write:confluence-props
|
|
81
|
-
* @scopes-beta write:content.property:confluence
|
|
82
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
|
|
83
|
-
* @param params
|
|
84
|
-
*/
|
|
85
|
-
deleteContentProperty: ({ id, key }: {
|
|
86
|
-
/** The ID of the content that the property belongs to. */
|
|
87
|
-
id: string;
|
|
88
|
-
/** The key of the property. */
|
|
89
|
-
key: string;
|
|
90
|
-
}) => Promise<void>;
|
|
91
|
-
/**
|
|
92
|
-
* Returns the properties for a piece of content. For more information
|
|
93
|
-
* about content properties, see [Confluence entity
|
|
94
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
95
|
-
*
|
|
96
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
97
|
-
* 'View' permission for the space, and permission to view the content if it is a
|
|
98
|
-
* page.
|
|
99
|
-
*
|
|
100
|
-
* @deprecated
|
|
101
|
-
* @returns Returned if the requested properties are returned.
|
|
102
|
-
* @path GET `/wiki/rest/api/content/{id}/property`
|
|
103
|
-
* @scopes-current read:confluence-props
|
|
104
|
-
* @scopes-beta read:content-details:confluence
|
|
105
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
|
|
106
|
-
* @param params
|
|
107
|
-
*/
|
|
108
|
-
getContentProperties: ({ id, key, expand, start, limit }: {
|
|
109
|
-
/** The ID of the content to be queried for its properties. */
|
|
110
|
-
id: string;
|
|
111
|
-
/** The key of the content property. */
|
|
112
|
-
key?: string[] | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* A multi-value parameter indicating which properties of the content to
|
|
115
|
-
* expand. By default, the `version` object is expanded.
|
|
116
|
-
*
|
|
117
|
-
* - `content` returns the content that the property is stored against.
|
|
118
|
-
* - `version` returns information about the version of the property, such
|
|
119
|
-
* as the version number, when it was created, etc.
|
|
120
|
-
*/
|
|
121
|
-
expand?: ("content" | "version")[] | undefined;
|
|
122
|
-
/** The starting index of the returned properties. */
|
|
123
|
-
start?: number | undefined;
|
|
124
|
-
/**
|
|
125
|
-
* The maximum number of properties to return per page.
|
|
126
|
-
* Note, this may be restricted by fixed system limits.
|
|
127
|
-
*/
|
|
128
|
-
limit?: number | undefined;
|
|
129
|
-
}) => Promise<ContentPropertyArray>;
|
|
130
|
-
/**
|
|
131
|
-
* Returns a content property for a piece of content. For more information, see
|
|
132
|
-
* [Confluence entity
|
|
133
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
134
|
-
*
|
|
135
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
136
|
-
* 'View' permission for the space, and permission to view the content if it is a
|
|
137
|
-
* page.
|
|
138
|
-
*
|
|
139
|
-
* @deprecated
|
|
140
|
-
* @returns Returned if the content property is returned.
|
|
141
|
-
* @path GET `/wiki/rest/api/content/{id}/property/{key}`
|
|
142
|
-
* @scopes-current read:confluence-props
|
|
143
|
-
* @scopes-beta read:content-details:confluence
|
|
144
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
|
|
145
|
-
* @param params
|
|
146
|
-
*/
|
|
147
|
-
getContentProperty: ({ id, key, expand, status }: {
|
|
148
|
-
/** The ID of the content to be queried for the property. */
|
|
149
|
-
id: string;
|
|
150
|
-
/** The key of the content property. */
|
|
151
|
-
key: string;
|
|
152
|
-
/**
|
|
153
|
-
* A multi-value parameter indicating which properties of the content to
|
|
154
|
-
* expand. By default, the `version` object is expanded.
|
|
155
|
-
*
|
|
156
|
-
* - `content` returns the content that the property is stored against.
|
|
157
|
-
* - `version` returns information about the version of the property, such
|
|
158
|
-
* as the version number, when it was created, etc.
|
|
159
|
-
*/
|
|
160
|
-
expand?: ("content" | "version")[] | undefined;
|
|
161
|
-
/**
|
|
162
|
-
* Filter the results to a set of content based on their status. If set to `any`,
|
|
163
|
-
* content with any status is returned. By default it will fetch current and
|
|
164
|
-
* archived statuses `?status=current&status=archived`.
|
|
165
|
-
* All supported statuses
|
|
166
|
-
*
|
|
167
|
-
* - any
|
|
168
|
-
* - archived
|
|
169
|
-
* - current
|
|
170
|
-
* - deleted
|
|
171
|
-
* - draft
|
|
172
|
-
* - trashed
|
|
173
|
-
*/
|
|
174
|
-
status?: "current" | "any" | "deleted" | "draft" | "trashed" | "archived" | undefined;
|
|
175
|
-
}) => Promise<ContentPropertyV1>;
|
|
176
|
-
/**
|
|
177
|
-
* Updates an existing content property. This method will also create a new
|
|
178
|
-
* property for a piece of content, if the property key does not exist and
|
|
179
|
-
* the property version is 1. For more information about content properties, see
|
|
180
|
-
* [Confluence entity
|
|
181
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
182
|
-
*
|
|
183
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
184
|
-
* Permission to update the content.
|
|
185
|
-
*
|
|
186
|
-
* @deprecated
|
|
187
|
-
* @returns Returned if the content property is created.
|
|
188
|
-
* @path PUT `/wiki/rest/api/content/{id}/property/{key}`
|
|
189
|
-
* @scopes-current write:confluence-props
|
|
190
|
-
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
191
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
|
|
192
|
-
* @param params
|
|
193
|
-
*/
|
|
194
|
-
updateContentProperty: ({ id, key, contentPropertyUpdate }: {
|
|
195
|
-
/** The ID of the content that the property belongs to. */
|
|
196
|
-
id: string;
|
|
197
|
-
/** The key of the property. */
|
|
198
|
-
key: string;
|
|
199
|
-
/** The content property being updated. */
|
|
200
|
-
contentPropertyUpdate: ContentPropertyUpdate;
|
|
201
|
-
}) => Promise<ContentPropertyV1>;
|
|
202
|
-
protected static initialize(): void;
|
|
203
|
-
}
|