@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.
Files changed (171) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +4 -0
  3. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  4. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  5. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  6. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  7. package/lib/openapi/v1/services/AuditService.js +205 -202
  8. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  9. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  10. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  11. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  12. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  13. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  14. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  15. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  16. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  17. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  18. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  19. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  20. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  21. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  22. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  23. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  24. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  25. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  26. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  27. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  28. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  29. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  30. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  31. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  32. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  33. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  34. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  35. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  36. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  37. package/lib/openapi/v1/services/ContentService.js +475 -472
  38. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  39. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  40. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  41. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  42. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  43. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  44. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  45. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  46. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  47. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  48. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  49. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  50. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  51. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  52. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  53. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  54. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  55. package/lib/openapi/v1/services/GroupService.js +445 -442
  56. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  57. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  58. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  59. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  60. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  61. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  62. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  63. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  64. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  65. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  66. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  67. package/lib/openapi/v1/services/RelationService.js +231 -228
  68. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  69. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  70. package/lib/openapi/v1/services/SearchService.js +136 -133
  71. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  72. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  73. package/lib/openapi/v1/services/SettingsService.js +204 -201
  74. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  75. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  76. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  77. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  78. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  79. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  80. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  81. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  82. package/lib/openapi/v1/services/SpaceService.js +320 -317
  83. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  84. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  85. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  86. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  87. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  88. package/lib/openapi/v1/services/TemplateService.js +214 -211
  89. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  90. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  91. package/lib/openapi/v1/services/ThemesService.js +179 -176
  92. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  93. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  94. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  95. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  96. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  97. package/lib/openapi/v1/services/UsersService.js +229 -226
  98. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  99. package/lib/openapi/v2/models/user.d.ts +0 -2
  100. package/lib/openapi/v2/models/user.js +0 -2
  101. package/lib/openapi/v2/models/user.js.map +1 -1
  102. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  103. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  104. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  105. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  106. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  107. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  108. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  109. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  110. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  111. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  112. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  113. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  114. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  115. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  116. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  117. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  118. package/lib/openapi/v2/services/CommentService.js +635 -632
  119. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  120. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  121. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  122. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  123. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  124. package/lib/openapi/v2/services/ContentService.js +40 -37
  125. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  126. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  127. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  128. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  129. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  130. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  131. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  132. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  133. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  134. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  135. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  136. package/lib/openapi/v2/services/LabelService.js +263 -260
  137. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  138. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  139. package/lib/openapi/v2/services/LikeService.js +250 -247
  140. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  141. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  142. package/lib/openapi/v2/services/OperationService.js +298 -295
  143. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  144. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  145. package/lib/openapi/v2/services/PageService.js +272 -269
  146. package/lib/openapi/v2/services/PageService.js.map +1 -1
  147. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  148. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  149. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  150. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  151. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  152. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  153. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  154. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  155. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  156. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  157. package/lib/openapi/v2/services/SpaceService.js +83 -80
  158. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  159. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  160. package/lib/openapi/v2/services/TaskService.js +120 -117
  161. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  162. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  163. package/lib/openapi/v2/services/UserService.js +91 -88
  164. package/lib/openapi/v2/services/UserService.js.map +1 -1
  165. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  166. package/lib/openapi/v2/services/VersionService.js +395 -392
  167. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  168. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  169. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  170. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  171. package/package.json +4 -3
@@ -12,264 +12,267 @@ 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-attachment */
14
14
  class AttachmentService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Delete an attachment by id.
17
- *
18
- * Deleting an attachment moves the attachment to the trash, where it can be
19
- * restored later. To permanently delete an attachment (or "purge" it),
20
- * the endpoint must be called on a **trashed** attachment with the following
21
- * param `purge=true`.
22
- *
23
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
24
- * Permission to view the container of the attachment.
25
- * Permission to delete attachments in the space.
26
- * Permission to administer the space (if attempting to purge).
27
- *
28
- * @path {DELETE} /attachments/{id}
29
- * @scopes-current delete:attachment:confluence
30
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-delete
31
- */
32
- deleteAttachment({ id, purge, }) {
33
- return this.getClientInstance()
34
- .request({
35
- path: "/attachments/{id}",
36
- method: "DELETE",
37
- pathParams: {
38
- id,
39
- },
40
- query: {
41
- purge,
42
- },
43
- })
44
- .then(commonHttpClient.discardResult);
45
- }
46
- /**
47
- * Returns a specific attachment.
48
- *
49
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
50
- * Permission to view the attachment's container.
51
- *
52
- * @returns Returned if the requested attachment is returned.
53
- * @path {GET} /attachments/{id}
54
- * @scopes-current read:attachment:confluence
55
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-get
56
- */
57
- getAttachmentById({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }) {
58
- return this.getClientInstance()
59
- .request({
60
- path: "/attachments/{id}",
61
- method: "GET",
62
- pathParams: {
63
- id,
64
- },
65
- query: {
66
- version,
67
- "include-labels": includeLabels,
68
- "include-properties": includeProperties,
69
- "include-operations": includeOperations,
70
- "include-versions": includeVersions,
71
- "include-version": includeVersion,
72
- },
73
- })
74
- .then(this.getClientInstance().responseHandler({
75
- 200: {
76
- "application/json": "json",
77
- },
78
- }))
79
- .then(commonHttpClient.castResponse())
80
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getAttachmentById.response"))
81
- .then(commonHttpClient.getBody);
82
- }
83
- /**
84
- * Returns all attachments. The number of results is limited by the `limit`
85
- * parameter and additional results (if available)
86
- * will be available through the `next` URL present in the `Link` response header.
87
- *
88
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
89
- * Permission to view the container of the attachment.
90
- *
91
- * @returns Returned if the requested attachments are returned.
92
- * @path {GET} /attachments
93
- * @scopes-current read:attachment:confluence
94
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-get
95
- */
96
- getAttachments({ sort, cursor, status, mediaType, filename, limit, } = {}) {
97
- return this.getClientInstance()
98
- .request({
99
- path: "/attachments",
100
- method: "GET",
101
- query: {
102
- sort,
103
- cursor,
104
- status,
105
- mediaType,
106
- filename,
107
- limit,
108
- },
109
- })
110
- .then(this.getClientInstance().responseHandler({
111
- 200: {
112
- "application/json": "json",
113
- },
114
- }))
115
- .then(commonHttpClient.castResponse())
116
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getAttachments.response"))
117
- .then(commonHttpClient.getBody);
118
- }
119
- /**
120
- * Returns the attachments of specific blog post. The number of results is limited
121
- * by the `limit` parameter and additional results (if available)
122
- * will be available through the `next` URL present in the `Link` response header.
123
- *
124
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
125
- * Permission to view the content of the blog post and its corresponding space.
126
- *
127
- * @returns Returned if the requested attachments are returned.
128
- * @path {GET} /blogposts/{id}/attachments
129
- * @scopes-current read:attachment:confluence
130
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-blogposts-id-attachments-get
131
- */
132
- getBlogpostAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
133
- return this.getClientInstance()
134
- .request({
135
- path: "/blogposts/{id}/attachments",
136
- method: "GET",
137
- pathParams: {
138
- id,
139
- },
140
- query: {
141
- sort,
142
- cursor,
143
- status,
144
- mediaType,
145
- filename,
146
- limit,
147
- },
148
- })
149
- .then(this.getClientInstance().responseHandler({
150
- 200: {
151
- "application/json": "json",
152
- },
153
- }))
154
- .then(commonHttpClient.castResponse())
155
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getBlogpostAttachments.response"))
156
- .then(commonHttpClient.getBody);
157
- }
158
- /**
159
- * Returns the attachments of specific custom content. The number of results is
160
- * limited by the `limit` parameter and additional results (if available)
161
- * will be available through the `next` URL present in the `Link` response header.
162
- *
163
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
164
- * Permission to view the content of the custom content and its corresponding
165
- * space.
166
- *
167
- * @returns Returned if the requested attachments are returned.
168
- * @path {GET} /custom-content/{id}/attachments
169
- * @scopes-current read:attachment:confluence
170
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-custom-content-id-attachments-get
171
- */
172
- getCustomContentAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
173
- return this.getClientInstance()
174
- .request({
175
- path: "/custom-content/{id}/attachments",
176
- method: "GET",
177
- pathParams: {
178
- id,
179
- },
180
- query: {
181
- sort,
182
- cursor,
183
- status,
184
- mediaType,
185
- filename,
186
- limit,
187
- },
188
- })
189
- .then(this.getClientInstance().responseHandler({
190
- 200: {
191
- "application/json": "json",
192
- },
193
- }))
194
- .then(commonHttpClient.castResponse())
195
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getCustomContentAttachments.response"))
196
- .then(commonHttpClient.getBody);
197
- }
198
- /**
199
- * Returns the attachments of specified label. The number of results is limited by
200
- * the `limit` parameter and additional results (if available)
201
- * will be available through the `next` URL present in the `Link` response header.
202
- *
203
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
204
- * Permission to view the attachment and its corresponding space.
205
- *
206
- * @returns Returned if the requested attachments for specified label were successfully
207
- * fetched.
208
- * @path {GET} /labels/{id}/attachments
209
- * @scopes-current read:attachment:confluence
210
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-labels-id-attachments-get
211
- */
212
- getLabelAttachments({ id, sort, cursor, limit, }) {
213
- return this.getClientInstance()
214
- .request({
215
- path: "/labels/{id}/attachments",
216
- method: "GET",
217
- pathParams: {
218
- id,
219
- },
220
- query: {
221
- sort,
222
- cursor,
223
- limit,
224
- },
225
- })
226
- .then(this.getClientInstance().responseHandler({
227
- 200: {
228
- "application/json": "json",
229
- },
230
- }))
231
- .then(commonHttpClient.castResponse())
232
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getLabelAttachments.response"))
233
- .then(commonHttpClient.getBody);
234
- }
235
- /**
236
- * Returns the attachments of specific page. The number of results is limited by
237
- * the `limit` parameter and additional results (if available)
238
- * will be available through the `next` URL present in the `Link` response header.
239
- *
240
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
241
- * Permission to view the content of the page and its corresponding space.
242
- *
243
- * @returns Returned if the requested attachments are returned.
244
- * @path {GET} /pages/{id}/attachments
245
- * @scopes-current read:attachment:confluence
246
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-pages-id-attachments-get
247
- */
248
- getPageAttachments({ id, sort, cursor, status, mediaType, filename, limit, }) {
249
- return this.getClientInstance()
250
- .request({
251
- path: "/pages/{id}/attachments",
252
- method: "GET",
253
- pathParams: {
254
- id,
255
- },
256
- query: {
257
- sort,
258
- cursor,
259
- status,
260
- mediaType,
261
- filename,
262
- limit,
263
- },
264
- })
265
- .then(this.getClientInstance().responseHandler({
266
- 200: {
267
- "application/json": "json",
268
- },
269
- }))
270
- .then(commonHttpClient.castResponse())
271
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getPageAttachments.response"))
272
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Delete an attachment by id.
19
+ *
20
+ * Deleting an attachment moves the attachment to the trash, where it can be
21
+ * restored later. To permanently delete an attachment (or "purge" it),
22
+ * the endpoint must be called on a **trashed** attachment with the following
23
+ * param `purge=true`.
24
+ *
25
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
26
+ * Permission to view the container of the attachment.
27
+ * Permission to delete attachments in the space.
28
+ * Permission to administer the space (if attempting to purge).
29
+ *
30
+ * @path {DELETE} /attachments/{id}
31
+ * @scopes-current delete:attachment:confluence
32
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-delete
33
+ */
34
+ this.deleteAttachment = ({ id, purge, }) => {
35
+ return this.getClientInstance()
36
+ .request({
37
+ path: "/attachments/{id}",
38
+ method: "DELETE",
39
+ pathParams: {
40
+ id,
41
+ },
42
+ query: {
43
+ purge,
44
+ },
45
+ })
46
+ .then(commonHttpClient.discardResult);
47
+ };
48
+ /**
49
+ * Returns a specific attachment.
50
+ *
51
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
52
+ * Permission to view the attachment's container.
53
+ *
54
+ * @returns Returned if the requested attachment is returned.
55
+ * @path {GET} /attachments/{id}
56
+ * @scopes-current read:attachment:confluence
57
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-id-get
58
+ */
59
+ this.getAttachmentById = ({ id, version, includeLabels, includeProperties, includeOperations, includeVersions, includeVersion, }) => {
60
+ return this.getClientInstance()
61
+ .request({
62
+ path: "/attachments/{id}",
63
+ method: "GET",
64
+ pathParams: {
65
+ id,
66
+ },
67
+ query: {
68
+ version,
69
+ "include-labels": includeLabels,
70
+ "include-properties": includeProperties,
71
+ "include-operations": includeOperations,
72
+ "include-versions": includeVersions,
73
+ "include-version": includeVersion,
74
+ },
75
+ })
76
+ .then(this.getClientInstance().responseHandler({
77
+ 200: {
78
+ "application/json": "json",
79
+ },
80
+ }))
81
+ .then(commonHttpClient.castResponse())
82
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getAttachmentById.response"))
83
+ .then(commonHttpClient.getBody);
84
+ };
85
+ /**
86
+ * Returns all attachments. The number of results is limited by the `limit`
87
+ * parameter and additional results (if available)
88
+ * will be available through the `next` URL present in the `Link` response header.
89
+ *
90
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
91
+ * Permission to view the container of the attachment.
92
+ *
93
+ * @returns Returned if the requested attachments are returned.
94
+ * @path {GET} /attachments
95
+ * @scopes-current read:attachment:confluence
96
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-attachments-get
97
+ */
98
+ this.getAttachments = ({ sort, cursor, status, mediaType, filename, limit, } = {}) => {
99
+ return this.getClientInstance()
100
+ .request({
101
+ path: "/attachments",
102
+ method: "GET",
103
+ query: {
104
+ sort,
105
+ cursor,
106
+ status,
107
+ mediaType,
108
+ filename,
109
+ limit,
110
+ },
111
+ })
112
+ .then(this.getClientInstance().responseHandler({
113
+ 200: {
114
+ "application/json": "json",
115
+ },
116
+ }))
117
+ .then(commonHttpClient.castResponse())
118
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getAttachments.response"))
119
+ .then(commonHttpClient.getBody);
120
+ };
121
+ /**
122
+ * Returns the attachments of specific blog post. The number of results is limited
123
+ * by the `limit` parameter and additional results (if available)
124
+ * will be available through the `next` URL present in the `Link` response header.
125
+ *
126
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
127
+ * Permission to view the content of the blog post and its corresponding space.
128
+ *
129
+ * @returns Returned if the requested attachments are returned.
130
+ * @path {GET} /blogposts/{id}/attachments
131
+ * @scopes-current read:attachment:confluence
132
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-blogposts-id-attachments-get
133
+ */
134
+ this.getBlogpostAttachments = ({ id, sort, cursor, status, mediaType, filename, limit, }) => {
135
+ return this.getClientInstance()
136
+ .request({
137
+ path: "/blogposts/{id}/attachments",
138
+ method: "GET",
139
+ pathParams: {
140
+ id,
141
+ },
142
+ query: {
143
+ sort,
144
+ cursor,
145
+ status,
146
+ mediaType,
147
+ filename,
148
+ limit,
149
+ },
150
+ })
151
+ .then(this.getClientInstance().responseHandler({
152
+ 200: {
153
+ "application/json": "json",
154
+ },
155
+ }))
156
+ .then(commonHttpClient.castResponse())
157
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getBlogpostAttachments.response"))
158
+ .then(commonHttpClient.getBody);
159
+ };
160
+ /**
161
+ * Returns the attachments of specific custom content. The number of results is
162
+ * limited by the `limit` parameter and additional results (if available)
163
+ * will be available through the `next` URL present in the `Link` response header.
164
+ *
165
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
166
+ * Permission to view the content of the custom content and its corresponding
167
+ * space.
168
+ *
169
+ * @returns Returned if the requested attachments are returned.
170
+ * @path {GET} /custom-content/{id}/attachments
171
+ * @scopes-current read:attachment:confluence
172
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-custom-content-id-attachments-get
173
+ */
174
+ this.getCustomContentAttachments = ({ id, sort, cursor, status, mediaType, filename, limit, }) => {
175
+ return this.getClientInstance()
176
+ .request({
177
+ path: "/custom-content/{id}/attachments",
178
+ method: "GET",
179
+ pathParams: {
180
+ id,
181
+ },
182
+ query: {
183
+ sort,
184
+ cursor,
185
+ status,
186
+ mediaType,
187
+ filename,
188
+ limit,
189
+ },
190
+ })
191
+ .then(this.getClientInstance().responseHandler({
192
+ 200: {
193
+ "application/json": "json",
194
+ },
195
+ }))
196
+ .then(commonHttpClient.castResponse())
197
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getCustomContentAttachments.response"))
198
+ .then(commonHttpClient.getBody);
199
+ };
200
+ /**
201
+ * Returns the attachments of specified label. The number of results is limited by
202
+ * the `limit` parameter and additional results (if available)
203
+ * will be available through the `next` URL present in the `Link` response header.
204
+ *
205
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
206
+ * Permission to view the attachment and its corresponding space.
207
+ *
208
+ * @returns Returned if the requested attachments for specified label were successfully
209
+ * fetched.
210
+ * @path {GET} /labels/{id}/attachments
211
+ * @scopes-current read:attachment:confluence
212
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-labels-id-attachments-get
213
+ */
214
+ this.getLabelAttachments = ({ id, sort, cursor, limit, }) => {
215
+ return this.getClientInstance()
216
+ .request({
217
+ path: "/labels/{id}/attachments",
218
+ method: "GET",
219
+ pathParams: {
220
+ id,
221
+ },
222
+ query: {
223
+ sort,
224
+ cursor,
225
+ limit,
226
+ },
227
+ })
228
+ .then(this.getClientInstance().responseHandler({
229
+ 200: {
230
+ "application/json": "json",
231
+ },
232
+ }))
233
+ .then(commonHttpClient.castResponse())
234
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getLabelAttachments.response"))
235
+ .then(commonHttpClient.getBody);
236
+ };
237
+ /**
238
+ * Returns the attachments of specific page. The number of results is limited by
239
+ * the `limit` parameter and additional results (if available)
240
+ * will be available through the `next` URL present in the `Link` response header.
241
+ *
242
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
243
+ * Permission to view the content of the page and its corresponding space.
244
+ *
245
+ * @returns Returned if the requested attachments are returned.
246
+ * @path {GET} /pages/{id}/attachments
247
+ * @scopes-current read:attachment:confluence
248
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment#api-pages-id-attachments-get
249
+ */
250
+ this.getPageAttachments = ({ id, sort, cursor, status, mediaType, filename, limit, }) => {
251
+ return this.getClientInstance()
252
+ .request({
253
+ path: "/pages/{id}/attachments",
254
+ method: "GET",
255
+ pathParams: {
256
+ id,
257
+ },
258
+ query: {
259
+ sort,
260
+ cursor,
261
+ status,
262
+ mediaType,
263
+ filename,
264
+ limit,
265
+ },
266
+ })
267
+ .then(this.getClientInstance().responseHandler({
268
+ 200: {
269
+ "application/json": "json",
270
+ },
271
+ }))
272
+ .then(commonHttpClient.castResponse())
273
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("AttachmentService.getPageAttachments.response"))
274
+ .then(commonHttpClient.getBody);
275
+ };
273
276
  }
274
277
  static initialize() {
275
278
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("AttachmentService.getAttachments.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/AttachmentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,qDAK8B;AAC9B,6CAG0B;AAC1B,wEAAqE;AACrE,yFAAyF;AACzF,MAAa,iBAAkB,SAAQ,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C,iDAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;qBACrD,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,+CAA+C,CAAC,CAC7D,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,gDAAmC;YACnC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AAnvBD,8CAmvBC"}
1
+ {"version":3,"file":"AttachmentService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/AttachmentService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,qDAK8B;AAC9B,6CAG0B;AAC1B,wEAAqE;AACrE,yFAAyF;AACzF,MAAa,iBAAkB,SAAQ,qCAAiB;IAAxD;;QACE;;;;;;;;;;;;;;;;WAgBG;QACH,qBAAgB,GAAG,CAAC,EAClB,EAAE,EACF,KAAK,GAMN,EAAiB,EAAE;YAClB,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,mBAAmB;gBACzB,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,KAAK;iBACN;aACF,CAAC;iBACD,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC1C,CAAC,CAAC;QACF;;;;;;;;;;WAUG;QACH,sBAAiB,GAAG,CAAC,EACnB,EAAE,EACF,OAAO,EACP,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,cAAc,GAiDf,EAYC,EAAE;YACF,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CA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