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