@resolution/confluence-api-client 0.4.4 → 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.
Files changed (170) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  3. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  4. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  5. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  6. package/lib/openapi/v1/services/AuditService.js +205 -202
  7. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  8. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  9. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  10. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  11. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  12. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  13. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  14. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  15. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  16. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  17. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  18. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  19. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  20. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  21. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  22. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  23. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  24. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  25. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  26. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  27. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  28. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  29. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  30. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  31. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  32. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  33. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  34. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  35. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  36. package/lib/openapi/v1/services/ContentService.js +475 -472
  37. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  38. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  39. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  40. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  41. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  42. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  43. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  44. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  45. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  46. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  47. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  48. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  49. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  50. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  51. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  52. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  53. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  54. package/lib/openapi/v1/services/GroupService.js +445 -442
  55. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  56. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  57. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  58. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  59. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  60. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  61. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  62. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  63. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  64. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  65. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  66. package/lib/openapi/v1/services/RelationService.js +231 -228
  67. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  68. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  69. package/lib/openapi/v1/services/SearchService.js +136 -133
  70. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  71. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  72. package/lib/openapi/v1/services/SettingsService.js +204 -201
  73. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  74. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  75. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  76. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  77. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  78. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  79. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  80. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  81. package/lib/openapi/v1/services/SpaceService.js +320 -317
  82. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  83. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  84. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  85. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  86. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  87. package/lib/openapi/v1/services/TemplateService.js +214 -211
  88. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  89. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  90. package/lib/openapi/v1/services/ThemesService.js +179 -176
  91. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  92. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  93. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  94. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  95. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  96. package/lib/openapi/v1/services/UsersService.js +229 -226
  97. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  98. package/lib/openapi/v2/models/user.d.ts +0 -2
  99. package/lib/openapi/v2/models/user.js +0 -2
  100. package/lib/openapi/v2/models/user.js.map +1 -1
  101. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  102. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  103. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  104. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  105. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  106. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  107. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  108. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  109. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  110. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  111. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  112. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  113. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  114. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  115. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  116. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  117. package/lib/openapi/v2/services/CommentService.js +635 -632
  118. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  119. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  120. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  121. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  122. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  123. package/lib/openapi/v2/services/ContentService.js +40 -37
  124. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  125. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  126. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  127. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  128. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  129. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  130. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  131. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  132. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  133. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  134. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  135. package/lib/openapi/v2/services/LabelService.js +263 -260
  136. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  137. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  138. package/lib/openapi/v2/services/LikeService.js +250 -247
  139. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  140. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  141. package/lib/openapi/v2/services/OperationService.js +298 -295
  142. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  143. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  144. package/lib/openapi/v2/services/PageService.js +272 -269
  145. package/lib/openapi/v2/services/PageService.js.map +1 -1
  146. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  147. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  148. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  149. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  150. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  151. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  152. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  153. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  154. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  155. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  156. package/lib/openapi/v2/services/SpaceService.js +83 -80
  157. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  158. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  159. package/lib/openapi/v2/services/TaskService.js +120 -117
  160. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  161. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  162. package/lib/openapi/v2/services/UserService.js +91 -88
  163. package/lib/openapi/v2/services/UserService.js.map +1 -1
  164. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  165. package/lib/openapi/v2/services/VersionService.js +395 -392
  166. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  167. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  168. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  169. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  170. package/package.json +4 -3
@@ -12,273 +12,276 @@ 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-blog-post */
14
14
  class BlogPostService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Creates a new blog post in the space specified by the spaceId.
17
- *
18
- * By default this will create the blog post as a non-draft, unless the status is
19
- * specified as draft.
20
- * If creating a non-draft, the title must not be empty.
21
- *
22
- * Currently only supports the storage representation specified in the
23
- * body.representation enums below
24
- *
25
- * @returns Returned if the blog post was created successfully.
26
- * @path {POST} /blogposts
27
- * @scopes-current write:page:confluence
28
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-post
29
- */
30
- createBlogPost({ private: privateQuery, requestBody, }) {
31
- return this.getClientInstance()
32
- .request({
33
- path: "/blogposts",
34
- method: "POST",
35
- query: {
36
- private: privateQuery,
37
- },
38
- headers: {
39
- "Content-Type": "application/json",
40
- },
41
- body: requestBody,
42
- })
43
- .then(this.getClientInstance().responseHandler({
44
- 200: {
45
- "application/json": "json",
46
- },
47
- }))
48
- .then(commonHttpClient.castResponse())
49
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.createBlogPost.response"))
50
- .then(commonHttpClient.getBody);
51
- }
52
- /**
53
- * Delete a blog post by id.
54
- *
55
- * By default this will delete blog posts that are non-drafts. To delete a blog
56
- * post that is a draft, the endpoint must be called on a
57
- * draft with the following param `draft=true`. Discarded drafts are not sent to
58
- * the trash and are permanently deleted.
59
- *
60
- * Deleting a blog post that is not a draft moves the blog post to the trash,
61
- * where it can be restored later.
62
- * To permanently delete a blog post (or "purge" it), the endpoint must be called
63
- * on a **trashed** blog post with the following param `purge=true`.
64
- *
65
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
66
- * Permission to view the blog post and its corresponding space.
67
- * Permission to delete blog posts in the space.
68
- * Permission to administer the space (if attempting to purge).
69
- *
70
- * @path {DELETE} /blogposts/{id}
71
- * @scopes-current delete:page:confluence
72
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-delete
73
- */
74
- deleteBlogPost({ id, purge, draft, }) {
75
- return this.getClientInstance()
76
- .request({
77
- path: "/blogposts/{id}",
78
- method: "DELETE",
79
- pathParams: {
80
- id,
81
- },
82
- query: {
83
- purge,
84
- draft,
85
- },
86
- })
87
- .then(commonHttpClient.discardResult);
88
- }
89
- /**
90
- * Returns a specific blog post.
91
- *
92
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
93
- * Permission to view the blog post and its corresponding space.
94
- *
95
- * @returns Returned if the requested blog post is returned.
96
- * @path {GET} /blogposts/{id}
97
- * @scopes-current read:page:confluence
98
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-get
99
- */
100
- getBlogPostById({ id, bodyFormat, getDraft, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus, }) {
101
- return this.getClientInstance()
102
- .request({
103
- path: "/blogposts/{id}",
104
- method: "GET",
105
- pathParams: {
106
- id,
107
- },
108
- query: {
109
- "body-format": bodyFormat,
110
- "get-draft": getDraft,
111
- version,
112
- "include-labels": includeLabels,
113
- "include-properties": includeProperties,
114
- "include-operations": includeOperations,
115
- "include-likes": includeLikes,
116
- "include-versions": includeVersions,
117
- "include-version": includeVersion,
118
- "include-favorited-by-current-user-status": includeFavoritedByCurrentUserStatus,
119
- },
120
- })
121
- .then(this.getClientInstance().responseHandler({
122
- 200: {
123
- "application/json": "json",
124
- },
125
- }))
126
- .then(commonHttpClient.castResponse())
127
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.getBlogPostById.response"))
128
- .then(commonHttpClient.getBody);
129
- }
130
- /**
131
- * Returns all blog posts. The number of results is limited by the `limit`
132
- * parameter and additional results (if available)
133
- * will be available through the `next` URL present in the `Link` response header.
134
- *
135
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
136
- * Permission to access the Confluence site ('Can use' global permission).
137
- * Only blog posts that the user has permission to view will be returned.
138
- *
139
- * @returns Returned if the requested blog posts are returned.
140
- * @path {GET} /blogposts
141
- * @scopes-current read:page:confluence
142
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-get
143
- */
144
- getBlogPosts({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, } = {}) {
145
- return this.getClientInstance()
146
- .request({
147
- path: "/blogposts",
148
- method: "GET",
149
- query: {
150
- id,
151
- "space-id": spaceId,
152
- sort,
153
- status,
154
- title,
155
- "body-format": bodyFormat,
156
- cursor,
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("BlogPostService.getBlogPosts.response"))
167
- .then(commonHttpClient.getBody);
168
- }
169
- /**
170
- * Returns all blog posts in a space. The number of results is limited by the
171
- * `limit` parameter and additional results (if available)
172
- * will be available through the `next` URL present in the `Link` response header.
173
- *
174
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
175
- * Permission to access the Confluence site ('Can use' global permission) and view
176
- * the space.
177
- * Only blog posts that the user has permission to view will be returned.
178
- *
179
- * @returns Returned if the requested blog posts are returned.
180
- * @path {GET} /spaces/{id}/blogposts
181
- * @scopes-current read:page:confluence
182
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-spaces-id-blogposts-get
183
- */
184
- getBlogPostsInSpace({ id, sort, status, title, bodyFormat, cursor, limit, }) {
185
- return this.getClientInstance()
186
- .request({
187
- path: "/spaces/{id}/blogposts",
188
- method: "GET",
189
- pathParams: {
190
- id,
191
- },
192
- query: {
193
- sort,
194
- status,
195
- title,
196
- "body-format": bodyFormat,
197
- cursor,
198
- limit,
199
- },
200
- })
201
- .then(this.getClientInstance().responseHandler({
202
- 200: {
203
- "application/json": "json",
204
- },
205
- }))
206
- .then(commonHttpClient.castResponse())
207
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.getBlogPostsInSpace.response"))
208
- .then(commonHttpClient.getBody);
209
- }
210
- /**
211
- * Returns the blogposts of specified label. The number of results is limited by
212
- * the `limit` parameter and additional results (if available)
213
- * will be available through the `next` URL present in the `Link` response header.
214
- *
215
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
216
- * Permission to view the content of the page and its corresponding space.
217
- *
218
- * @returns Returned if the requested blog posts for specified label were successfully
219
- * fetched.
220
- * @path {GET} /labels/{id}/blogposts
221
- * @scopes-current read:page:confluence
222
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-labels-id-blogposts-get
223
- */
224
- getLabelBlogPosts({ id, spaceId, bodyFormat, sort, cursor, limit, }) {
225
- return this.getClientInstance()
226
- .request({
227
- path: "/labels/{id}/blogposts",
228
- method: "GET",
229
- pathParams: {
230
- id,
231
- },
232
- query: {
233
- "space-id": spaceId,
234
- "body-format": bodyFormat,
235
- sort,
236
- cursor,
237
- limit,
238
- },
239
- })
240
- .then(this.getClientInstance().responseHandler({
241
- 200: {
242
- "application/json": "json",
243
- },
244
- }))
245
- .then(commonHttpClient.castResponse())
246
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.getLabelBlogPosts.response"))
247
- .then(commonHttpClient.getBody);
248
- }
249
- /**
250
- * Update a blog post by id.
251
- *
252
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
253
- * Permission to view the blog post and its corresponding space. Permission to
254
- * update blog posts in the space.
255
- *
256
- * @returns Returned if the requested blog post is successfully updated.
257
- * @path {PUT} /blogposts/{id}
258
- * @scopes-current write:page:confluence
259
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-put
260
- */
261
- updateBlogPost({ id, requestBody, }) {
262
- return this.getClientInstance()
263
- .request({
264
- path: "/blogposts/{id}",
265
- method: "PUT",
266
- pathParams: {
267
- id,
268
- },
269
- headers: {
270
- "Content-Type": "application/json",
271
- },
272
- body: requestBody,
273
- })
274
- .then(this.getClientInstance().responseHandler({
275
- 200: {
276
- "application/json": "json",
277
- },
278
- }))
279
- .then(commonHttpClient.castResponse())
280
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.updateBlogPost.response"))
281
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Creates a new blog post in the space specified by the spaceId.
19
+ *
20
+ * By default this will create the blog post as a non-draft, unless the status is
21
+ * specified as draft.
22
+ * If creating a non-draft, the title must not be empty.
23
+ *
24
+ * Currently only supports the storage representation specified in the
25
+ * body.representation enums below
26
+ *
27
+ * @returns Returned if the blog post was created successfully.
28
+ * @path {POST} /blogposts
29
+ * @scopes-current write:page:confluence
30
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-post
31
+ */
32
+ this.createBlogPost = ({ private: privateQuery, requestBody, }) => {
33
+ return this.getClientInstance()
34
+ .request({
35
+ path: "/blogposts",
36
+ method: "POST",
37
+ query: {
38
+ private: privateQuery,
39
+ },
40
+ headers: {
41
+ "Content-Type": "application/json",
42
+ },
43
+ body: requestBody,
44
+ })
45
+ .then(this.getClientInstance().responseHandler({
46
+ 200: {
47
+ "application/json": "json",
48
+ },
49
+ }))
50
+ .then(commonHttpClient.castResponse())
51
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.createBlogPost.response"))
52
+ .then(commonHttpClient.getBody);
53
+ };
54
+ /**
55
+ * Delete a blog post by id.
56
+ *
57
+ * By default this will delete blog posts that are non-drafts. To delete a blog
58
+ * post that is a draft, the endpoint must be called on a
59
+ * draft with the following param `draft=true`. Discarded drafts are not sent to
60
+ * the trash and are permanently deleted.
61
+ *
62
+ * Deleting a blog post that is not a draft moves the blog post to the trash,
63
+ * where it can be restored later.
64
+ * To permanently delete a blog post (or "purge" it), the endpoint must be called
65
+ * on a **trashed** blog post with the following param `purge=true`.
66
+ *
67
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
68
+ * Permission to view the blog post and its corresponding space.
69
+ * Permission to delete blog posts in the space.
70
+ * Permission to administer the space (if attempting to purge).
71
+ *
72
+ * @path {DELETE} /blogposts/{id}
73
+ * @scopes-current delete:page:confluence
74
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-delete
75
+ */
76
+ this.deleteBlogPost = ({ id, purge, draft, }) => {
77
+ return this.getClientInstance()
78
+ .request({
79
+ path: "/blogposts/{id}",
80
+ method: "DELETE",
81
+ pathParams: {
82
+ id,
83
+ },
84
+ query: {
85
+ purge,
86
+ draft,
87
+ },
88
+ })
89
+ .then(commonHttpClient.discardResult);
90
+ };
91
+ /**
92
+ * Returns a specific blog post.
93
+ *
94
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
95
+ * Permission to view the blog post and its corresponding space.
96
+ *
97
+ * @returns Returned if the requested blog post is returned.
98
+ * @path {GET} /blogposts/{id}
99
+ * @scopes-current read:page:confluence
100
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-get
101
+ */
102
+ this.getBlogPostById = ({ id, bodyFormat, getDraft, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus, }) => {
103
+ return this.getClientInstance()
104
+ .request({
105
+ path: "/blogposts/{id}",
106
+ method: "GET",
107
+ pathParams: {
108
+ id,
109
+ },
110
+ query: {
111
+ "body-format": bodyFormat,
112
+ "get-draft": getDraft,
113
+ version,
114
+ "include-labels": includeLabels,
115
+ "include-properties": includeProperties,
116
+ "include-operations": includeOperations,
117
+ "include-likes": includeLikes,
118
+ "include-versions": includeVersions,
119
+ "include-version": includeVersion,
120
+ "include-favorited-by-current-user-status": includeFavoritedByCurrentUserStatus,
121
+ },
122
+ })
123
+ .then(this.getClientInstance().responseHandler({
124
+ 200: {
125
+ "application/json": "json",
126
+ },
127
+ }))
128
+ .then(commonHttpClient.castResponse())
129
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.getBlogPostById.response"))
130
+ .then(commonHttpClient.getBody);
131
+ };
132
+ /**
133
+ * Returns all blog posts. The number of results is limited by the `limit`
134
+ * parameter and additional results (if available)
135
+ * will be available through the `next` URL present in the `Link` response header.
136
+ *
137
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
138
+ * Permission to access the Confluence site ('Can use' global permission).
139
+ * Only blog posts that the user has permission to view will be returned.
140
+ *
141
+ * @returns Returned if the requested blog posts are returned.
142
+ * @path {GET} /blogposts
143
+ * @scopes-current read:page:confluence
144
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-get
145
+ */
146
+ this.getBlogPosts = ({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, } = {}) => {
147
+ return this.getClientInstance()
148
+ .request({
149
+ path: "/blogposts",
150
+ method: "GET",
151
+ query: {
152
+ id,
153
+ "space-id": spaceId,
154
+ sort,
155
+ status,
156
+ title,
157
+ "body-format": bodyFormat,
158
+ cursor,
159
+ limit,
160
+ },
161
+ })
162
+ .then(this.getClientInstance().responseHandler({
163
+ 200: {
164
+ "application/json": "json",
165
+ },
166
+ }))
167
+ .then(commonHttpClient.castResponse())
168
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.getBlogPosts.response"))
169
+ .then(commonHttpClient.getBody);
170
+ };
171
+ /**
172
+ * Returns all blog posts in a space. The number of results is limited by the
173
+ * `limit` parameter and additional results (if available)
174
+ * will be available through the `next` URL present in the `Link` response header.
175
+ *
176
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
177
+ * Permission to access the Confluence site ('Can use' global permission) and view
178
+ * the space.
179
+ * Only blog posts that the user has permission to view will be returned.
180
+ *
181
+ * @returns Returned if the requested blog posts are returned.
182
+ * @path {GET} /spaces/{id}/blogposts
183
+ * @scopes-current read:page:confluence
184
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-spaces-id-blogposts-get
185
+ */
186
+ this.getBlogPostsInSpace = ({ id, sort, status, title, bodyFormat, cursor, limit, }) => {
187
+ return this.getClientInstance()
188
+ .request({
189
+ path: "/spaces/{id}/blogposts",
190
+ method: "GET",
191
+ pathParams: {
192
+ id,
193
+ },
194
+ query: {
195
+ sort,
196
+ status,
197
+ title,
198
+ "body-format": bodyFormat,
199
+ cursor,
200
+ limit,
201
+ },
202
+ })
203
+ .then(this.getClientInstance().responseHandler({
204
+ 200: {
205
+ "application/json": "json",
206
+ },
207
+ }))
208
+ .then(commonHttpClient.castResponse())
209
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.getBlogPostsInSpace.response"))
210
+ .then(commonHttpClient.getBody);
211
+ };
212
+ /**
213
+ * Returns the blogposts of specified label. The number of results is limited by
214
+ * the `limit` parameter and additional results (if available)
215
+ * will be available through the `next` URL present in the `Link` response header.
216
+ *
217
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
218
+ * Permission to view the content of the page and its corresponding space.
219
+ *
220
+ * @returns Returned if the requested blog posts for specified label were successfully
221
+ * fetched.
222
+ * @path {GET} /labels/{id}/blogposts
223
+ * @scopes-current read:page:confluence
224
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-labels-id-blogposts-get
225
+ */
226
+ this.getLabelBlogPosts = ({ id, spaceId, bodyFormat, sort, cursor, limit, }) => {
227
+ return this.getClientInstance()
228
+ .request({
229
+ path: "/labels/{id}/blogposts",
230
+ method: "GET",
231
+ pathParams: {
232
+ id,
233
+ },
234
+ query: {
235
+ "space-id": spaceId,
236
+ "body-format": bodyFormat,
237
+ sort,
238
+ cursor,
239
+ limit,
240
+ },
241
+ })
242
+ .then(this.getClientInstance().responseHandler({
243
+ 200: {
244
+ "application/json": "json",
245
+ },
246
+ }))
247
+ .then(commonHttpClient.castResponse())
248
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.getLabelBlogPosts.response"))
249
+ .then(commonHttpClient.getBody);
250
+ };
251
+ /**
252
+ * Update a blog post by id.
253
+ *
254
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
255
+ * Permission to view the blog post and its corresponding space. Permission to
256
+ * update blog posts in the space.
257
+ *
258
+ * @returns Returned if the requested blog post is successfully updated.
259
+ * @path {PUT} /blogposts/{id}
260
+ * @scopes-current write:page:confluence
261
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-blog-post#api-blogposts-id-put
262
+ */
263
+ this.updateBlogPost = ({ id, requestBody, }) => {
264
+ return this.getClientInstance()
265
+ .request({
266
+ path: "/blogposts/{id}",
267
+ method: "PUT",
268
+ pathParams: {
269
+ id,
270
+ },
271
+ headers: {
272
+ "Content-Type": "application/json",
273
+ },
274
+ body: requestBody,
275
+ })
276
+ .then(this.getClientInstance().responseHandler({
277
+ 200: {
278
+ "application/json": "json",
279
+ },
280
+ }))
281
+ .then(commonHttpClient.castResponse())
282
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("BlogPostService.updateBlogPost.response"))
283
+ .then(commonHttpClient.getBody);
284
+ };
282
285
  }
283
286
  static initialize() {
284
287
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BlogPostService.getBlogPosts.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"BlogPostService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/BlogPostService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iDAO4B;AAC5B,6CAK0B;AAC1B,wEAAqE;AACrE,wFAAwF;AACxF,MAAa,eAAgB,SAAQ,qCAAiB;IACpD;;;;;;;;;;;;;;OAcG;IACH,cAAc,CAAC,EACb,OAAO,EAAE,YAAY,EACrB,WAAW,GAqBZ;QAaC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE;gBACL,OAAO,EAAE,YAAY;aACtB;YACD,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,WAAW;SAClB,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAazB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,yCAAyC,CAC1C,CACF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AQ,CAAC,8CAA8C,CAAC,CAC5D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,4CAAiC;YACjC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAn1BD,0CAm1BC"}
1
+ {"version":3,"file":"BlogPostService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/BlogPostService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iDAO4B;AAC5B,6CAK0B;AAC1B,wEAAqE;AACrE,wFAAwF;AACxF,MAAa,eAAgB,SAAQ,qCAAiB;IAAtD;;QACE;;;;;;;;;;;;;;WAcG;QACH,mBAAc,GAAG,CAAC,EAChB,OAAO,EAAE,YAAY,EACrB,WAAW,GAqBZ,EAYC,EAAE;YACF,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE;oBACL,OAAO,EAAE,YAAY;iBACtB;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,WAAW;aAClB,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAazB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,yCAAyC,CAC1C,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;;;;;;WAqBG;QACH,mBAAc,GAAG,CAAC,EAChB,EAAE,EACF,KAAK,EACL,KAAK,GAQN,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC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