@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
@@ -11,301 +11,304 @@ const operation_1 = require("../models/operation");
11
11
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
12
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation */
13
13
  class OperationService extends CommonHttpService_1.CommonHttpService {
14
- /**
15
- * Returns the permitted operations on specific attachment.
16
- *
17
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
18
- * Permission to view the parent content of the attachment and its corresponding
19
- * space.
20
- *
21
- * @returns Returned if the requested operations are returned.
22
- * @path {GET} /attachments/{id}/operations
23
- * @scopes-current read:attachment:confluence
24
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-attachments-id-operations-get
25
- */
26
- getAttachmentOperations({ id, }) {
27
- return this.getClientInstance()
28
- .request({
29
- path: "/attachments/{id}/operations",
30
- method: "GET",
31
- pathParams: {
32
- id,
33
- },
34
- })
35
- .then(this.getClientInstance().responseHandler({
36
- 200: {
37
- "application/json": "json",
38
- },
39
- }))
40
- .then(commonHttpClient.castResponse())
41
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getAttachmentOperations.response"))
42
- .then(commonHttpClient.getBody);
43
- }
44
- /**
45
- * Returns the permitted operations on specific blog post.
46
- *
47
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
48
- * Permission to view the parent content of the blog post and its corresponding
49
- * space.
50
- *
51
- * @returns Returned if the requested operations are returned.
52
- * @path {GET} /blogposts/{id}/operations
53
- * @scopes-current read:page:confluence
54
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-blogposts-id-operations-get
55
- */
56
- getBlogPostOperations({ id, }) {
57
- return this.getClientInstance()
58
- .request({
59
- path: "/blogposts/{id}/operations",
60
- method: "GET",
61
- pathParams: {
62
- id,
63
- },
64
- })
65
- .then(this.getClientInstance().responseHandler({
66
- 200: {
67
- "application/json": "json",
68
- },
69
- }))
70
- .then(commonHttpClient.castResponse())
71
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getBlogPostOperations.response"))
72
- .then(commonHttpClient.getBody);
73
- }
74
- /**
75
- * Returns the permitted operations on specific custom content.
76
- *
77
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
78
- * Permission to view the parent content of the custom content and its
79
- * corresponding space.
80
- *
81
- * @returns Returned if the requested operations are returned.
82
- * @path {GET} /custom-content/{id}/operations
83
- * @scopes-current read:custom-content:confluence
84
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-custom-content-id-operations-get
85
- */
86
- getCustomContentOperations({ id, }) {
87
- return this.getClientInstance()
88
- .request({
89
- path: "/custom-content/{id}/operations",
90
- method: "GET",
91
- pathParams: {
92
- id,
93
- },
94
- })
95
- .then(this.getClientInstance().responseHandler({
96
- 200: {
97
- "application/json": "json",
98
- },
99
- }))
100
- .then(commonHttpClient.castResponse())
101
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getCustomContentOperations.response"))
102
- .then(commonHttpClient.getBody);
103
- }
104
- /**
105
- * Returns the permitted operations on specific database.
106
- *
107
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
108
- * Permission to view the database and its corresponding space.
109
- *
110
- * @returns Returned if the requested operations are returned.
111
- * @path {GET} /databases/{id}/operations
112
- * @scopes-current read:database:confluence
113
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-databases-id-operations-get
114
- */
115
- getDatabaseOperations({ id, }) {
116
- return this.getClientInstance()
117
- .request({
118
- path: "/databases/{id}/operations",
119
- method: "GET",
120
- pathParams: {
121
- id,
122
- },
123
- })
124
- .then(this.getClientInstance().responseHandler({
125
- 200: {
126
- "application/json": "json",
127
- },
128
- }))
129
- .then(commonHttpClient.castResponse())
130
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getDatabaseOperations.response"))
131
- .then(commonHttpClient.getBody);
132
- }
133
- /**
134
- * Returns the permitted operations on specific footer comment.
135
- *
136
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
137
- * Permission to view the parent content of the footer comment and its
138
- * corresponding space.
139
- *
140
- * @returns Returned if the requested operations are returned.
141
- * @path {GET} /footer-comments/{id}/operations
142
- * @scopes-current read:comment:confluence
143
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-footer-comments-id-operations-get
144
- */
145
- getFooterCommentOperations({ id, }) {
146
- return this.getClientInstance()
147
- .request({
148
- path: "/footer-comments/{id}/operations",
149
- method: "GET",
150
- pathParams: {
151
- id,
152
- },
153
- })
154
- .then(this.getClientInstance().responseHandler({
155
- 200: {
156
- "application/json": "json",
157
- },
158
- }))
159
- .then(commonHttpClient.castResponse())
160
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getFooterCommentOperations.response"))
161
- .then(commonHttpClient.getBody);
162
- }
163
- /**
164
- * Returns the permitted operations on specific inline comment.
165
- *
166
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
167
- * Permission to view the parent content of the inline comment and its
168
- * corresponding space.
169
- *
170
- * @returns Returned if the requested operations are returned.
171
- * @path {GET} /inline-comments/{id}/operations
172
- * @scopes-current read:comment:confluence
173
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-inline-comments-id-operations-get
174
- */
175
- getInlineCommentOperations({ id, }) {
176
- return this.getClientInstance()
177
- .request({
178
- path: "/inline-comments/{id}/operations",
179
- method: "GET",
180
- pathParams: {
181
- id,
182
- },
183
- })
184
- .then(this.getClientInstance().responseHandler({
185
- 200: {
186
- "application/json": "json",
187
- },
188
- }))
189
- .then(commonHttpClient.castResponse())
190
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getInlineCommentOperations.response"))
191
- .then(commonHttpClient.getBody);
192
- }
193
- /**
194
- * Returns the permitted operations on specific page.
195
- *
196
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
197
- * Permission to view the parent content of the page and its corresponding space.
198
- *
199
- * @returns Returned if the requested operations are returned.
200
- * @path {GET} /pages/{id}/operations
201
- * @scopes-current read:page:confluence
202
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-pages-id-operations-get
203
- */
204
- getPageOperations({ id, }) {
205
- return this.getClientInstance()
206
- .request({
207
- path: "/pages/{id}/operations",
208
- method: "GET",
209
- pathParams: {
210
- id,
211
- },
212
- })
213
- .then(this.getClientInstance().responseHandler({
214
- 200: {
215
- "application/json": "json",
216
- },
217
- }))
218
- .then(commonHttpClient.castResponse())
219
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getPageOperations.response"))
220
- .then(commonHttpClient.getBody);
221
- }
222
- /**
223
- * Returns the permitted operations on specific Smart Link in the content tree.
224
- *
225
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
226
- * Permission to view the Smart Link in the content tree and its corresponding
227
- * space.
228
- *
229
- * @returns Returned if the requested operations are returned.
230
- * @path {GET} /embeds/{id}/operations
231
- * @scopes-current read:embed:confluence
232
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-embeds-id-operations-get
233
- */
234
- getSmartLinkOperations({ id, }) {
235
- return this.getClientInstance()
236
- .request({
237
- path: "/embeds/{id}/operations",
238
- method: "GET",
239
- pathParams: {
240
- id,
241
- },
242
- })
243
- .then(this.getClientInstance().responseHandler({
244
- 200: {
245
- "application/json": "json",
246
- },
247
- }))
248
- .then(commonHttpClient.castResponse())
249
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getSmartLinkOperations.response"))
250
- .then(commonHttpClient.getBody);
251
- }
252
- /**
253
- * Returns the permitted operations on specific space.
254
- *
255
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
256
- * Permission to view the corresponding space.
257
- *
258
- * @returns Returned if the requested operations are returned.
259
- * @path {GET} /spaces/{id}/operations
260
- * @scopes-current read:space:confluence
261
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-spaces-id-operations-get
262
- */
263
- getSpaceOperations({ id, }) {
264
- return this.getClientInstance()
265
- .request({
266
- path: "/spaces/{id}/operations",
267
- method: "GET",
268
- pathParams: {
269
- id,
270
- },
271
- })
272
- .then(this.getClientInstance().responseHandler({
273
- 200: {
274
- "application/json": "json",
275
- },
276
- }))
277
- .then(commonHttpClient.castResponse())
278
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getSpaceOperations.response"))
279
- .then(commonHttpClient.getBody);
280
- }
281
- /**
282
- * Returns the permitted operations on specific whiteboard.
283
- *
284
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
285
- * Permission to view the whiteboard and its corresponding space.
286
- *
287
- * @returns Returned if the requested operations are returned.
288
- * @path {GET} /whiteboards/{id}/operations
289
- * @scopes-current read:whiteboard:confluence
290
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-whiteboards-id-operations-get
291
- */
292
- getWhiteboardOperations({ id, }) {
293
- return this.getClientInstance()
294
- .request({
295
- path: "/whiteboards/{id}/operations",
296
- method: "GET",
297
- pathParams: {
298
- id,
299
- },
300
- })
301
- .then(this.getClientInstance().responseHandler({
302
- 200: {
303
- "application/json": "json",
304
- },
305
- }))
306
- .then(commonHttpClient.castResponse())
307
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getWhiteboardOperations.response"))
308
- .then(commonHttpClient.getBody);
14
+ constructor() {
15
+ super(...arguments);
16
+ /**
17
+ * Returns the permitted operations on specific attachment.
18
+ *
19
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
20
+ * Permission to view the parent content of the attachment and its corresponding
21
+ * space.
22
+ *
23
+ * @returns Returned if the requested operations are returned.
24
+ * @path {GET} /attachments/{id}/operations
25
+ * @scopes-current read:attachment:confluence
26
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-attachments-id-operations-get
27
+ */
28
+ this.getAttachmentOperations = ({ id, }) => {
29
+ return this.getClientInstance()
30
+ .request({
31
+ path: "/attachments/{id}/operations",
32
+ method: "GET",
33
+ pathParams: {
34
+ id,
35
+ },
36
+ })
37
+ .then(this.getClientInstance().responseHandler({
38
+ 200: {
39
+ "application/json": "json",
40
+ },
41
+ }))
42
+ .then(commonHttpClient.castResponse())
43
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getAttachmentOperations.response"))
44
+ .then(commonHttpClient.getBody);
45
+ };
46
+ /**
47
+ * Returns the permitted operations on specific blog post.
48
+ *
49
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
50
+ * Permission to view the parent content of the blog post and its corresponding
51
+ * space.
52
+ *
53
+ * @returns Returned if the requested operations are returned.
54
+ * @path {GET} /blogposts/{id}/operations
55
+ * @scopes-current read:page:confluence
56
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-blogposts-id-operations-get
57
+ */
58
+ this.getBlogPostOperations = ({ id, }) => {
59
+ return this.getClientInstance()
60
+ .request({
61
+ path: "/blogposts/{id}/operations",
62
+ method: "GET",
63
+ pathParams: {
64
+ id,
65
+ },
66
+ })
67
+ .then(this.getClientInstance().responseHandler({
68
+ 200: {
69
+ "application/json": "json",
70
+ },
71
+ }))
72
+ .then(commonHttpClient.castResponse())
73
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getBlogPostOperations.response"))
74
+ .then(commonHttpClient.getBody);
75
+ };
76
+ /**
77
+ * Returns the permitted operations on specific custom content.
78
+ *
79
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
80
+ * Permission to view the parent content of the custom content and its
81
+ * corresponding space.
82
+ *
83
+ * @returns Returned if the requested operations are returned.
84
+ * @path {GET} /custom-content/{id}/operations
85
+ * @scopes-current read:custom-content:confluence
86
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-custom-content-id-operations-get
87
+ */
88
+ this.getCustomContentOperations = ({ id, }) => {
89
+ return this.getClientInstance()
90
+ .request({
91
+ path: "/custom-content/{id}/operations",
92
+ method: "GET",
93
+ pathParams: {
94
+ id,
95
+ },
96
+ })
97
+ .then(this.getClientInstance().responseHandler({
98
+ 200: {
99
+ "application/json": "json",
100
+ },
101
+ }))
102
+ .then(commonHttpClient.castResponse())
103
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getCustomContentOperations.response"))
104
+ .then(commonHttpClient.getBody);
105
+ };
106
+ /**
107
+ * Returns the permitted operations on specific database.
108
+ *
109
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
110
+ * Permission to view the database and its corresponding space.
111
+ *
112
+ * @returns Returned if the requested operations are returned.
113
+ * @path {GET} /databases/{id}/operations
114
+ * @scopes-current read:database:confluence
115
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-databases-id-operations-get
116
+ */
117
+ this.getDatabaseOperations = ({ id, }) => {
118
+ return this.getClientInstance()
119
+ .request({
120
+ path: "/databases/{id}/operations",
121
+ method: "GET",
122
+ pathParams: {
123
+ id,
124
+ },
125
+ })
126
+ .then(this.getClientInstance().responseHandler({
127
+ 200: {
128
+ "application/json": "json",
129
+ },
130
+ }))
131
+ .then(commonHttpClient.castResponse())
132
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getDatabaseOperations.response"))
133
+ .then(commonHttpClient.getBody);
134
+ };
135
+ /**
136
+ * Returns the permitted operations on specific footer comment.
137
+ *
138
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
139
+ * Permission to view the parent content of the footer comment and its
140
+ * corresponding space.
141
+ *
142
+ * @returns Returned if the requested operations are returned.
143
+ * @path {GET} /footer-comments/{id}/operations
144
+ * @scopes-current read:comment:confluence
145
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-footer-comments-id-operations-get
146
+ */
147
+ this.getFooterCommentOperations = ({ id, }) => {
148
+ return this.getClientInstance()
149
+ .request({
150
+ path: "/footer-comments/{id}/operations",
151
+ method: "GET",
152
+ pathParams: {
153
+ id,
154
+ },
155
+ })
156
+ .then(this.getClientInstance().responseHandler({
157
+ 200: {
158
+ "application/json": "json",
159
+ },
160
+ }))
161
+ .then(commonHttpClient.castResponse())
162
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getFooterCommentOperations.response"))
163
+ .then(commonHttpClient.getBody);
164
+ };
165
+ /**
166
+ * Returns the permitted operations on specific inline comment.
167
+ *
168
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
169
+ * Permission to view the parent content of the inline comment and its
170
+ * corresponding space.
171
+ *
172
+ * @returns Returned if the requested operations are returned.
173
+ * @path {GET} /inline-comments/{id}/operations
174
+ * @scopes-current read:comment:confluence
175
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-inline-comments-id-operations-get
176
+ */
177
+ this.getInlineCommentOperations = ({ id, }) => {
178
+ return this.getClientInstance()
179
+ .request({
180
+ path: "/inline-comments/{id}/operations",
181
+ method: "GET",
182
+ pathParams: {
183
+ id,
184
+ },
185
+ })
186
+ .then(this.getClientInstance().responseHandler({
187
+ 200: {
188
+ "application/json": "json",
189
+ },
190
+ }))
191
+ .then(commonHttpClient.castResponse())
192
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getInlineCommentOperations.response"))
193
+ .then(commonHttpClient.getBody);
194
+ };
195
+ /**
196
+ * Returns the permitted operations on specific page.
197
+ *
198
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
199
+ * Permission to view the parent content of the page and its corresponding space.
200
+ *
201
+ * @returns Returned if the requested operations are returned.
202
+ * @path {GET} /pages/{id}/operations
203
+ * @scopes-current read:page:confluence
204
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-pages-id-operations-get
205
+ */
206
+ this.getPageOperations = ({ id, }) => {
207
+ return this.getClientInstance()
208
+ .request({
209
+ path: "/pages/{id}/operations",
210
+ method: "GET",
211
+ pathParams: {
212
+ id,
213
+ },
214
+ })
215
+ .then(this.getClientInstance().responseHandler({
216
+ 200: {
217
+ "application/json": "json",
218
+ },
219
+ }))
220
+ .then(commonHttpClient.castResponse())
221
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getPageOperations.response"))
222
+ .then(commonHttpClient.getBody);
223
+ };
224
+ /**
225
+ * Returns the permitted operations on specific Smart Link in the content tree.
226
+ *
227
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
228
+ * Permission to view the Smart Link in the content tree and its corresponding
229
+ * space.
230
+ *
231
+ * @returns Returned if the requested operations are returned.
232
+ * @path {GET} /embeds/{id}/operations
233
+ * @scopes-current read:embed:confluence
234
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-embeds-id-operations-get
235
+ */
236
+ this.getSmartLinkOperations = ({ id, }) => {
237
+ return this.getClientInstance()
238
+ .request({
239
+ path: "/embeds/{id}/operations",
240
+ method: "GET",
241
+ pathParams: {
242
+ id,
243
+ },
244
+ })
245
+ .then(this.getClientInstance().responseHandler({
246
+ 200: {
247
+ "application/json": "json",
248
+ },
249
+ }))
250
+ .then(commonHttpClient.castResponse())
251
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getSmartLinkOperations.response"))
252
+ .then(commonHttpClient.getBody);
253
+ };
254
+ /**
255
+ * Returns the permitted operations on specific space.
256
+ *
257
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
258
+ * Permission to view the corresponding space.
259
+ *
260
+ * @returns Returned if the requested operations are returned.
261
+ * @path {GET} /spaces/{id}/operations
262
+ * @scopes-current read:space:confluence
263
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-spaces-id-operations-get
264
+ */
265
+ this.getSpaceOperations = ({ id, }) => {
266
+ return this.getClientInstance()
267
+ .request({
268
+ path: "/spaces/{id}/operations",
269
+ method: "GET",
270
+ pathParams: {
271
+ id,
272
+ },
273
+ })
274
+ .then(this.getClientInstance().responseHandler({
275
+ 200: {
276
+ "application/json": "json",
277
+ },
278
+ }))
279
+ .then(commonHttpClient.castResponse())
280
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getSpaceOperations.response"))
281
+ .then(commonHttpClient.getBody);
282
+ };
283
+ /**
284
+ * Returns the permitted operations on specific whiteboard.
285
+ *
286
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
287
+ * Permission to view the whiteboard and its corresponding space.
288
+ *
289
+ * @returns Returned if the requested operations are returned.
290
+ * @path {GET} /whiteboards/{id}/operations
291
+ * @scopes-current read:whiteboard:confluence
292
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-whiteboards-id-operations-get
293
+ */
294
+ this.getWhiteboardOperations = ({ id, }) => {
295
+ return this.getClientInstance()
296
+ .request({
297
+ path: "/whiteboards/{id}/operations",
298
+ method: "GET",
299
+ pathParams: {
300
+ id,
301
+ },
302
+ })
303
+ .then(this.getClientInstance().responseHandler({
304
+ 200: {
305
+ "application/json": "json",
306
+ },
307
+ }))
308
+ .then(commonHttpClient.castResponse())
309
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("OperationService.getWhiteboardOperations.response"))
310
+ .then(commonHttpClient.getBody);
311
+ };
309
312
  }
310
313
  static initialize() {
311
314
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("OperationService.getAttachmentOperations.response", zod_1.z