@resolution/confluence-api-client 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +60 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v1/core/CommonHttpService.js +9 -0
- package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
- package/lib/openapi/v1/services/AnalyticsService.js +62 -59
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +25 -25
- package/lib/openapi/v1/services/AuditService.js +205 -202
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
- package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentBodyService.js +140 -137
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
- package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
- package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +50 -50
- package/lib/openapi/v1/services/ContentService.js +475 -472
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
- package/lib/openapi/v1/services/ContentStatesService.js +359 -356
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
- package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
- package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
- package/lib/openapi/v1/services/ExperimentalService.js +151 -148
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +52 -52
- package/lib/openapi/v1/services/GroupService.js +445 -442
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
- package/lib/openapi/v1/services/InlineTasksService.js +118 -115
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
- package/lib/openapi/v1/services/LabelInfoService.js +37 -34
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
- package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +37 -37
- package/lib/openapi/v1/services/RelationService.js +231 -228
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +20 -20
- package/lib/openapi/v1/services/SearchService.js +136 -133
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
- package/lib/openapi/v1/services/SettingsService.js +204 -201
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
- package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
- package/lib/openapi/v1/services/SpaceService.js +320 -317
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
- package/lib/openapi/v1/services/TemplateService.js +214 -211
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
- package/lib/openapi/v1/services/ThemesService.js +179 -176
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
- package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +21 -21
- package/lib/openapi/v1/services/UsersService.js +229 -226
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -24
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v2/core/CommonHttpService.js +9 -0
- package/lib/openapi/v2/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +0 -2
- package/lib/openapi/v2/models/user.js +0 -2
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
- package/lib/openapi/v2/services/AncestorsService.js +174 -171
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
- package/lib/openapi/v2/services/AttachmentService.js +261 -258
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
- package/lib/openapi/v2/services/BlogPostService.js +270 -267
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
- package/lib/openapi/v2/services/ChildrenService.js +77 -74
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
- package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +136 -136
- package/lib/openapi/v2/services/CommentService.js +635 -632
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
- package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -2
- package/lib/openapi/v2/services/ContentService.js +40 -37
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
- package/lib/openapi/v2/services/CustomContentService.js +299 -296
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
- package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
- package/lib/openapi/v2/services/DatabaseService.js +90 -87
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +57 -57
- package/lib/openapi/v2/services/LabelService.js +263 -260
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +36 -36
- package/lib/openapi/v2/services/LikeService.js +250 -247
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +20 -20
- package/lib/openapi/v2/services/OperationService.js +298 -295
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +73 -73
- package/lib/openapi/v2/services/PageService.js +272 -269
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
- package/lib/openapi/v2/services/SmartLinkService.js +92 -89
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
- package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
- package/lib/openapi/v2/services/SpaceService.js +83 -80
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +40 -40
- package/lib/openapi/v2/services/TaskService.js +120 -117
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +11 -11
- package/lib/openapi/v2/services/UserService.js +91 -88
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +59 -59
- package/lib/openapi/v2/services/VersionService.js +395 -392
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
- package/lib/openapi/v2/services/WhiteboardService.js +90 -87
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +4 -3
|
@@ -15,154 +15,157 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
|
15
15
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental
|
|
16
16
|
*/
|
|
17
17
|
class ExperimentalService extends CommonHttpService_1.CommonHttpService {
|
|
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
|
-
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
/**
|
|
21
|
+
* Adds labels to a piece of content. Does not modify the existing labels.
|
|
22
|
+
*
|
|
23
|
+
* Notes:
|
|
24
|
+
*
|
|
25
|
+
* - Labels can also be added when creating content ([Create
|
|
26
|
+
* content](#api-content-post)).
|
|
27
|
+
* - Labels can be updated when updating content ([Update
|
|
28
|
+
* content](#api-content-id-put)).
|
|
29
|
+
* This will delete the existing labels and replace them with the labels in
|
|
30
|
+
* the request.
|
|
31
|
+
*
|
|
32
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
33
|
+
* Permission to update the content.
|
|
34
|
+
*
|
|
35
|
+
* @returns Returned if the labels are added to the content.
|
|
36
|
+
* @path {POST} /wiki/rest/api/space/{spaceKey}/label
|
|
37
|
+
* @scopes-current write:confluence-space
|
|
38
|
+
* @scopes-beta read:label:confluence, write:label:confluence
|
|
39
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-post
|
|
40
|
+
*/
|
|
41
|
+
this.addLabelsToSpace = ({ spaceKey, labelCreates, }) => {
|
|
42
|
+
return this.getClientInstance()
|
|
43
|
+
.request({
|
|
44
|
+
path: "/wiki/rest/api/space/{spaceKey}/label",
|
|
45
|
+
method: "POST",
|
|
46
|
+
pathParams: {
|
|
47
|
+
spaceKey,
|
|
48
|
+
},
|
|
49
|
+
headers: {
|
|
50
|
+
"Content-Type": "application/json",
|
|
51
|
+
},
|
|
52
|
+
body: labelCreates,
|
|
53
|
+
})
|
|
54
|
+
.then(this.getClientInstance().responseHandler({
|
|
55
|
+
200: {
|
|
56
|
+
"application/json": "json",
|
|
57
|
+
},
|
|
58
|
+
}))
|
|
59
|
+
.then(commonHttpClient.castResponse())
|
|
60
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.addLabelsToSpace.response"))
|
|
61
|
+
.then(commonHttpClient.getBody);
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @path {DELETE} /wiki/rest/api/space/{spaceKey}/label
|
|
65
|
+
* @scopes-current write:confluence-space
|
|
66
|
+
* @scopes-beta write:label:confluence
|
|
67
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-delete
|
|
68
|
+
*/
|
|
69
|
+
this.deleteLabelFromSpace = ({ spaceKey, name, prefix, }) => {
|
|
70
|
+
return this.getClientInstance()
|
|
71
|
+
.request({
|
|
72
|
+
path: "/wiki/rest/api/space/{spaceKey}/label",
|
|
73
|
+
method: "DELETE",
|
|
74
|
+
pathParams: {
|
|
75
|
+
spaceKey,
|
|
76
|
+
},
|
|
77
|
+
query: {
|
|
78
|
+
name,
|
|
79
|
+
prefix,
|
|
80
|
+
},
|
|
81
|
+
})
|
|
82
|
+
.then(commonHttpClient.discardResult);
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Moves a pagetree rooted at a page to the space's trash:
|
|
86
|
+
*
|
|
87
|
+
* - If the content's type is `page` and its status is `current`, it will be
|
|
88
|
+
* trashed including
|
|
89
|
+
* all its descendants.
|
|
90
|
+
* - For every other combination of content type and status, this API is not
|
|
91
|
+
* supported.
|
|
92
|
+
*
|
|
93
|
+
* This API accepts the pageTree delete request and returns a task ID.
|
|
94
|
+
* The delete process happens asynchronously.
|
|
95
|
+
*
|
|
96
|
+
* Response example:
|
|
97
|
+
* <pre><code>
|
|
98
|
+
* {
|
|
99
|
+
* "id" : "1180606",
|
|
100
|
+
* "links" : {
|
|
101
|
+
* "status" : "/rest/api/longtask/1180606"
|
|
102
|
+
* }
|
|
103
|
+
* }
|
|
104
|
+
* </code></pre>
|
|
105
|
+
* Use the `/longtask/<taskId>` REST API to get the copy task status.
|
|
106
|
+
*
|
|
107
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
108
|
+
* 'Delete' permission for the space that the content is in.
|
|
109
|
+
*
|
|
110
|
+
* @returns Returned if the request to trash content and all its current page descendants,
|
|
111
|
+
* is successfully accepted.
|
|
112
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/pageTree
|
|
113
|
+
* @scopes-current write:confluence-content
|
|
114
|
+
* @scopes-beta delete:content:confluence
|
|
115
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-content-id-pagetree-delete
|
|
116
|
+
*/
|
|
117
|
+
this.deletePageTree = ({ id, }) => {
|
|
118
|
+
return this.getClientInstance()
|
|
119
|
+
.request({
|
|
120
|
+
path: "/wiki/rest/api/content/{id}/pageTree",
|
|
121
|
+
method: "DELETE",
|
|
122
|
+
pathParams: {
|
|
123
|
+
id,
|
|
124
|
+
},
|
|
125
|
+
})
|
|
126
|
+
.then(this.getClientInstance().responseHandler({
|
|
127
|
+
202: {
|
|
128
|
+
"application/json": "json",
|
|
129
|
+
},
|
|
130
|
+
}))
|
|
131
|
+
.then(commonHttpClient.castResponse())
|
|
132
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.deletePageTree.response"))
|
|
133
|
+
.then(commonHttpClient.getBody);
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Returns a list of labels associated with a space. Can provide a prefix as well
|
|
137
|
+
* as other filters to
|
|
138
|
+
* select different types of labels.
|
|
139
|
+
*
|
|
140
|
+
* @returns Returned if the list of labels is returned.
|
|
141
|
+
* @path {GET} /wiki/rest/api/space/{spaceKey}/label
|
|
142
|
+
* @scopes-current read:confluence-space.summary
|
|
143
|
+
* @scopes-beta read:label:confluence
|
|
144
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-experimental#api-wiki-rest-api-space-spacekey-label-get
|
|
145
|
+
*/
|
|
146
|
+
this.getLabelsForSpace = ({ spaceKey, prefix, start, limit, }) => {
|
|
147
|
+
return this.getClientInstance()
|
|
148
|
+
.request({
|
|
149
|
+
path: "/wiki/rest/api/space/{spaceKey}/label",
|
|
150
|
+
method: "GET",
|
|
151
|
+
pathParams: {
|
|
152
|
+
spaceKey,
|
|
153
|
+
},
|
|
154
|
+
query: {
|
|
155
|
+
prefix,
|
|
156
|
+
start,
|
|
157
|
+
limit,
|
|
158
|
+
},
|
|
159
|
+
})
|
|
160
|
+
.then(this.getClientInstance().responseHandler({
|
|
161
|
+
200: {
|
|
162
|
+
"application/json": "json",
|
|
163
|
+
},
|
|
164
|
+
}))
|
|
165
|
+
.then(commonHttpClient.castResponse())
|
|
166
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ExperimentalService.getLabelsForSpace.response"))
|
|
167
|
+
.then(commonHttpClient.getBody);
|
|
168
|
+
};
|
|
166
169
|
}
|
|
167
170
|
static initialize() {
|
|
168
171
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ExperimentalService.deletePageTree.response", zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExperimentalService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ExperimentalService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAK0B;AAC1B,wEAAqE;AACrE;;;;GAIG;AACH,MAAa,mBAAoB,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"ExperimentalService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ExperimentalService.ts"],"names":[],"mappings":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