@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
|
@@ -28,12 +28,12 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
28
28
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
29
29
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
|
|
30
30
|
*/
|
|
31
|
-
createContentProperty({ id, contentPropertyCreate, }: {
|
|
31
|
+
createContentProperty: ({ id, contentPropertyCreate, }: {
|
|
32
32
|
/** The ID of the content to add the property to. */
|
|
33
33
|
id: string;
|
|
34
34
|
/** The content property to be created. */
|
|
35
35
|
contentPropertyCreate: ContentPropertyCreate;
|
|
36
|
-
})
|
|
36
|
+
}) => Promise<ContentPropertyV1>;
|
|
37
37
|
/**
|
|
38
38
|
* Creates a property for an existing piece of content. For more information
|
|
39
39
|
* about content properties, see [Confluence entity
|
|
@@ -56,14 +56,14 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
56
56
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
57
57
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
|
|
58
58
|
*/
|
|
59
|
-
createContentPropertyForKey({ id, key, contentPropertyCreateNoKey, }: {
|
|
59
|
+
createContentPropertyForKey: ({ id, key, contentPropertyCreateNoKey, }: {
|
|
60
60
|
/** The ID of the content to add the property to. */
|
|
61
61
|
id: string;
|
|
62
62
|
/** The key of the content property. Required. */
|
|
63
63
|
key: string;
|
|
64
64
|
/** The content property to be created. */
|
|
65
65
|
contentPropertyCreateNoKey: ContentPropertyCreateNoKey;
|
|
66
|
-
})
|
|
66
|
+
}) => Promise<ContentPropertyV1>;
|
|
67
67
|
/**
|
|
68
68
|
* Deletes a content property. For more information about content properties, see
|
|
69
69
|
* [Confluence entity
|
|
@@ -78,12 +78,12 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
78
78
|
* @scopes-beta write:content.property:confluence
|
|
79
79
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
|
|
80
80
|
*/
|
|
81
|
-
deleteContentProperty({ id, key, }: {
|
|
81
|
+
deleteContentProperty: ({ id, key, }: {
|
|
82
82
|
/** The ID of the content that the property belongs to. */
|
|
83
83
|
id: string;
|
|
84
84
|
/** The key of the property. */
|
|
85
85
|
key: string;
|
|
86
|
-
})
|
|
86
|
+
}) => Promise<void>;
|
|
87
87
|
/**
|
|
88
88
|
* Returns the properties for a piece of content. For more information
|
|
89
89
|
* about content properties, see [Confluence entity
|
|
@@ -100,11 +100,11 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
100
100
|
* @scopes-beta read:content-details:confluence
|
|
101
101
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
|
|
102
102
|
*/
|
|
103
|
-
getContentProperties({ id, key, expand, start, limit, }: {
|
|
103
|
+
getContentProperties: ({ id, key, expand, start, limit, }: {
|
|
104
104
|
/** The ID of the content to be queried for its properties. */
|
|
105
105
|
id: string;
|
|
106
106
|
/** The key of the content property. */
|
|
107
|
-
key?: string[];
|
|
107
|
+
key?: string[] | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* A multi-value parameter indicating which properties of the content to
|
|
110
110
|
* expand. By default, the `version` object is expanded.
|
|
@@ -113,15 +113,15 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
113
113
|
* - `version` returns information about the version of the property, such
|
|
114
114
|
* as the version number, when it was created, etc.
|
|
115
115
|
*/
|
|
116
|
-
expand?: ("content" | "version")[];
|
|
116
|
+
expand?: ("content" | "version")[] | undefined;
|
|
117
117
|
/** The starting index of the returned properties. */
|
|
118
|
-
start?: number;
|
|
118
|
+
start?: number | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* The maximum number of properties to return per page.
|
|
121
121
|
* Note, this may be restricted by fixed system limits.
|
|
122
122
|
*/
|
|
123
|
-
limit?: number;
|
|
124
|
-
})
|
|
123
|
+
limit?: number | undefined;
|
|
124
|
+
}) => Promise<ContentPropertyArray>;
|
|
125
125
|
/**
|
|
126
126
|
* Returns a content property for a piece of content. For more information, see
|
|
127
127
|
* [Confluence entity
|
|
@@ -138,7 +138,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
138
138
|
* @scopes-beta read:content-details:confluence
|
|
139
139
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
|
|
140
140
|
*/
|
|
141
|
-
getContentProperty({ id, key, expand, status, }: {
|
|
141
|
+
getContentProperty: ({ id, key, expand, status, }: {
|
|
142
142
|
/** The ID of the content to be queried for the property. */
|
|
143
143
|
id: string;
|
|
144
144
|
/** The key of the content property. */
|
|
@@ -151,7 +151,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
151
151
|
* - `version` returns information about the version of the property, such
|
|
152
152
|
* as the version number, when it was created, etc.
|
|
153
153
|
*/
|
|
154
|
-
expand?: ("content" | "version")[];
|
|
154
|
+
expand?: ("content" | "version")[] | undefined;
|
|
155
155
|
/**
|
|
156
156
|
* Filter the results to a set of content based on their status. If set to `any`,
|
|
157
157
|
* content with any status is returned. By default it will fetch current and
|
|
@@ -165,8 +165,8 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
165
165
|
* - draft
|
|
166
166
|
* - trashed
|
|
167
167
|
*/
|
|
168
|
-
status?: "
|
|
169
|
-
})
|
|
168
|
+
status?: "current" | "any" | "deleted" | "draft" | "trashed" | "archived" | undefined;
|
|
169
|
+
}) => Promise<ContentPropertyV1>;
|
|
170
170
|
/**
|
|
171
171
|
* Updates an existing content property. This method will also create a new
|
|
172
172
|
* property for a piece of content, if the property key does not exist and
|
|
@@ -184,13 +184,13 @@ export declare class ContentPropertiesService extends CommonHttpService {
|
|
|
184
184
|
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
185
185
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
|
|
186
186
|
*/
|
|
187
|
-
updateContentProperty({ id, key, contentPropertyUpdate, }: {
|
|
187
|
+
updateContentProperty: ({ id, key, contentPropertyUpdate, }: {
|
|
188
188
|
/** The ID of the content that the property belongs to. */
|
|
189
189
|
id: string;
|
|
190
190
|
/** The key of the property. */
|
|
191
191
|
key: string;
|
|
192
192
|
/** The content property being updated. */
|
|
193
193
|
contentPropertyUpdate: ContentPropertyUpdate;
|
|
194
|
-
})
|
|
194
|
+
}) => Promise<ContentPropertyV1>;
|
|
195
195
|
static initialize(): void;
|
|
196
196
|
}
|
|
@@ -14,240 +14,243 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
|
14
14
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
|
|
15
15
|
*/
|
|
16
16
|
class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
/**
|
|
20
|
+
* Creates a property for an existing piece of content. For more information
|
|
21
|
+
* about content properties, see [Confluence entity
|
|
22
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
23
|
+
*
|
|
24
|
+
* This is the same as [Create content property for
|
|
25
|
+
* key](#api-content-id-property-key-post)
|
|
26
|
+
* except that the key is specified in the request body instead of as a
|
|
27
|
+
* path parameter.
|
|
28
|
+
*
|
|
29
|
+
* Content properties can also be added when creating a new piece of content
|
|
30
|
+
* by including them in the `metadata.properties` of the request.
|
|
31
|
+
*
|
|
32
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
33
|
+
* Permission to update the content.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated
|
|
36
|
+
* @returns Returned if the content property is created.
|
|
37
|
+
* @path {POST} /wiki/rest/api/content/{id}/property
|
|
38
|
+
* @scopes-current write:confluence-props
|
|
39
|
+
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
40
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
|
|
41
|
+
*/
|
|
42
|
+
this.createContentProperty = ({ id, contentPropertyCreate, }) => {
|
|
43
|
+
return this.getClientInstance()
|
|
44
|
+
.request({
|
|
45
|
+
path: "/wiki/rest/api/content/{id}/property",
|
|
46
|
+
method: "POST",
|
|
47
|
+
pathParams: {
|
|
48
|
+
id,
|
|
49
|
+
},
|
|
50
|
+
headers: {
|
|
51
|
+
"Content-Type": "application/json",
|
|
52
|
+
},
|
|
53
|
+
body: contentPropertyCreate,
|
|
54
|
+
})
|
|
55
|
+
.then(this.getClientInstance().responseHandler({
|
|
56
|
+
200: {
|
|
57
|
+
"application/json": "json",
|
|
58
|
+
},
|
|
59
|
+
}))
|
|
60
|
+
.then(commonHttpClient.castResponse())
|
|
61
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentProperty.response"))
|
|
62
|
+
.then(commonHttpClient.getBody);
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Creates a property for an existing piece of content. For more information
|
|
66
|
+
* about content properties, see [Confluence entity
|
|
67
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
68
|
+
*
|
|
69
|
+
* This is the same as [Create content property](#api-content-id-property-post)
|
|
70
|
+
* except that the key is specified as a path parameter instead of in the
|
|
71
|
+
* request body.
|
|
72
|
+
*
|
|
73
|
+
* Content properties can also be added when creating a new piece of content
|
|
74
|
+
* by including them in the `metadata.properties` of the request.
|
|
75
|
+
*
|
|
76
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
77
|
+
* Permission to update the content.
|
|
78
|
+
*
|
|
79
|
+
* @deprecated
|
|
80
|
+
* @returns Returned if the content property is created.
|
|
81
|
+
* @path {POST} /wiki/rest/api/content/{id}/property/{key}
|
|
82
|
+
* @scopes-current write:confluence-props
|
|
83
|
+
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
84
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
|
|
85
|
+
*/
|
|
86
|
+
this.createContentPropertyForKey = ({ id, key, contentPropertyCreateNoKey, }) => {
|
|
87
|
+
return this.getClientInstance()
|
|
88
|
+
.request({
|
|
89
|
+
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
90
|
+
method: "POST",
|
|
91
|
+
pathParams: {
|
|
92
|
+
id,
|
|
93
|
+
key,
|
|
94
|
+
},
|
|
95
|
+
headers: {
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
},
|
|
98
|
+
body: contentPropertyCreateNoKey,
|
|
99
|
+
})
|
|
100
|
+
.then(this.getClientInstance().responseHandler({
|
|
101
|
+
200: {
|
|
102
|
+
"application/json": "json",
|
|
103
|
+
},
|
|
104
|
+
}))
|
|
105
|
+
.then(commonHttpClient.castResponse())
|
|
106
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentPropertyForKey.response"))
|
|
107
|
+
.then(commonHttpClient.getBody);
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Deletes a content property. For more information about content properties, see
|
|
111
|
+
* [Confluence entity
|
|
112
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
113
|
+
*
|
|
114
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
115
|
+
* Permission to update the content.
|
|
116
|
+
*
|
|
117
|
+
* @deprecated
|
|
118
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/property/{key}
|
|
119
|
+
* @scopes-current write:confluence-props
|
|
120
|
+
* @scopes-beta write:content.property:confluence
|
|
121
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
|
|
122
|
+
*/
|
|
123
|
+
this.deleteContentProperty = ({ id, key, }) => {
|
|
124
|
+
return this.getClientInstance()
|
|
125
|
+
.request({
|
|
126
|
+
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
127
|
+
method: "DELETE",
|
|
128
|
+
pathParams: {
|
|
129
|
+
id,
|
|
130
|
+
key,
|
|
131
|
+
},
|
|
132
|
+
})
|
|
133
|
+
.then(commonHttpClient.discardResult);
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Returns the properties for a piece of content. For more information
|
|
137
|
+
* about content properties, see [Confluence entity
|
|
138
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
139
|
+
*
|
|
140
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
141
|
+
* 'View' permission for the space, and permission to view the content if it is a
|
|
142
|
+
* page.
|
|
143
|
+
*
|
|
144
|
+
* @deprecated
|
|
145
|
+
* @returns Returned if the requested properties are returned.
|
|
146
|
+
* @path {GET} /wiki/rest/api/content/{id}/property
|
|
147
|
+
* @scopes-current read:confluence-props
|
|
148
|
+
* @scopes-beta read:content-details:confluence
|
|
149
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
|
|
150
|
+
*/
|
|
151
|
+
this.getContentProperties = ({ id, key, expand, start, limit, }) => {
|
|
152
|
+
return this.getClientInstance()
|
|
153
|
+
.request({
|
|
154
|
+
path: "/wiki/rest/api/content/{id}/property",
|
|
155
|
+
method: "GET",
|
|
156
|
+
pathParams: {
|
|
157
|
+
id,
|
|
158
|
+
},
|
|
159
|
+
query: {
|
|
160
|
+
key,
|
|
161
|
+
expand,
|
|
162
|
+
start,
|
|
163
|
+
limit,
|
|
164
|
+
},
|
|
165
|
+
})
|
|
166
|
+
.then(this.getClientInstance().responseHandler({
|
|
167
|
+
200: {
|
|
168
|
+
"application/json": "json",
|
|
169
|
+
},
|
|
170
|
+
}))
|
|
171
|
+
.then(commonHttpClient.castResponse())
|
|
172
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperties.response"))
|
|
173
|
+
.then(commonHttpClient.getBody);
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Returns a content property for a piece of content. For more information, see
|
|
177
|
+
* [Confluence entity
|
|
178
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
179
|
+
*
|
|
180
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
181
|
+
* 'View' permission for the space, and permission to view the content if it is a
|
|
182
|
+
* page.
|
|
183
|
+
*
|
|
184
|
+
* @deprecated
|
|
185
|
+
* @returns Returned if the content property is returned.
|
|
186
|
+
* @path {GET} /wiki/rest/api/content/{id}/property/{key}
|
|
187
|
+
* @scopes-current read:confluence-props
|
|
188
|
+
* @scopes-beta read:content-details:confluence
|
|
189
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
|
|
190
|
+
*/
|
|
191
|
+
this.getContentProperty = ({ id, key, expand, status, }) => {
|
|
192
|
+
return this.getClientInstance()
|
|
193
|
+
.request({
|
|
194
|
+
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
195
|
+
method: "GET",
|
|
196
|
+
pathParams: {
|
|
197
|
+
id,
|
|
198
|
+
key,
|
|
199
|
+
},
|
|
200
|
+
query: {
|
|
201
|
+
expand,
|
|
202
|
+
status,
|
|
203
|
+
},
|
|
204
|
+
})
|
|
205
|
+
.then(this.getClientInstance().responseHandler({
|
|
206
|
+
200: {
|
|
207
|
+
"application/json": "json",
|
|
208
|
+
},
|
|
209
|
+
}))
|
|
210
|
+
.then(commonHttpClient.castResponse())
|
|
211
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperty.response"))
|
|
212
|
+
.then(commonHttpClient.getBody);
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Updates an existing content property. This method will also create a new
|
|
216
|
+
* property for a piece of content, if the property key does not exist and
|
|
217
|
+
* the property version is 1. For more information about content properties, see
|
|
218
|
+
* [Confluence entity
|
|
219
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
220
|
+
*
|
|
221
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
222
|
+
* Permission to update the content.
|
|
223
|
+
*
|
|
224
|
+
* @deprecated
|
|
225
|
+
* @returns Returned if the content property is created.
|
|
226
|
+
* @path {PUT} /wiki/rest/api/content/{id}/property/{key}
|
|
227
|
+
* @scopes-current write:confluence-props
|
|
228
|
+
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
229
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
|
|
230
|
+
*/
|
|
231
|
+
this.updateContentProperty = ({ id, key, contentPropertyUpdate, }) => {
|
|
232
|
+
return this.getClientInstance()
|
|
233
|
+
.request({
|
|
234
|
+
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
235
|
+
method: "PUT",
|
|
236
|
+
pathParams: {
|
|
237
|
+
id,
|
|
238
|
+
key,
|
|
239
|
+
},
|
|
240
|
+
headers: {
|
|
241
|
+
"Content-Type": "application/json",
|
|
242
|
+
},
|
|
243
|
+
body: contentPropertyUpdate,
|
|
244
|
+
})
|
|
245
|
+
.then(this.getClientInstance().responseHandler({
|
|
246
|
+
200: {
|
|
247
|
+
"application/json": "json",
|
|
248
|
+
},
|
|
249
|
+
}))
|
|
250
|
+
.then(commonHttpClient.castResponse())
|
|
251
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateContentProperty.response"))
|
|
252
|
+
.then(commonHttpClient.getBody);
|
|
253
|
+
};
|
|
251
254
|
}
|
|
252
255
|
static initialize() {
|
|
253
256
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getContentProperties.response", zod_1.z
|