@resolution/confluence-api-client 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +125 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +49 -5
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js +3 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +10 -3
- package/lib/openapi/v1/services/AuditService.js +10 -3
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js +7 -0
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +8 -0
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js +5 -1
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js +5 -0
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js +4 -0
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js +2 -0
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js +10 -1
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js +16 -0
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +12 -1
- package/lib/openapi/v1/services/ContentService.js +12 -1
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js +11 -0
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js +5 -0
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js +13 -0
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js +4 -0
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js +9 -1
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +18 -1
- package/lib/openapi/v1/services/GroupService.js +18 -1
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js +8 -2
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js +2 -0
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js +4 -1
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +6 -0
- package/lib/openapi/v1/services/RelationService.js +6 -0
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +3 -0
- package/lib/openapi/v1/services/SearchService.js +3 -0
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +9 -2
- package/lib/openapi/v1/services/SettingsService.js +9 -2
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js +4 -0
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js +10 -1
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +10 -1
- package/lib/openapi/v1/services/SpaceService.js +10 -1
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js +3 -0
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +9 -2
- package/lib/openapi/v1/services/TemplateService.js +9 -2
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +8 -1
- package/lib/openapi/v1/services/ThemesService.js +8 -1
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js +6 -0
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +10 -2
- package/lib/openapi/v1/services/UsersService.js +10 -2
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +23 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +5 -0
- package/lib/openapi/v2/services/AncestorsService.js +5 -0
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +9 -1
- package/lib/openapi/v2/services/AttachmentService.js +9 -1
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +9 -1
- package/lib/openapi/v2/services/BlogPostService.js +9 -1
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +3 -0
- package/lib/openapi/v2/services/ChildrenService.js +3 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js +11 -0
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +21 -2
- package/lib/openapi/v2/services/CommentService.js +21 -2
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js +41 -0
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -0
- package/lib/openapi/v2/services/ContentService.js +2 -0
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +9 -0
- package/lib/openapi/v2/services/CustomContentService.js +9 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js +4 -1
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +4 -0
- package/lib/openapi/v2/services/DatabaseService.js +4 -0
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +9 -1
- package/lib/openapi/v2/services/LabelService.js +9 -1
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +9 -0
- package/lib/openapi/v2/services/LikeService.js +9 -0
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +11 -0
- package/lib/openapi/v2/services/OperationService.js +11 -0
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +9 -1
- package/lib/openapi/v2/services/PageService.js +9 -1
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js +4 -0
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js +2 -0
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js +6 -0
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +4 -1
- package/lib/openapi/v2/services/SpaceService.js +4 -1
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +5 -1
- package/lib/openapi/v2/services/TaskService.js +5 -1
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +3 -0
- package/lib/openapi/v2/services/UserService.js +3 -0
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +13 -0
- package/lib/openapi/v2/services/VersionService.js +13 -0
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js +4 -0
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label */
|
|
12
13
|
class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Returns the labels of specific attachment. The number of results is limited by
|
|
@@ -22,6 +23,7 @@ class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
|
22
23
|
* @returns Returned if the requested labels are returned.
|
|
23
24
|
* @path {GET} /attachments/{id}/labels
|
|
24
25
|
* @scopes-current read:attachment:confluence
|
|
26
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label#api-attachments-id-labels-get
|
|
25
27
|
*/
|
|
26
28
|
getAttachmentLabels({ id, prefix, sort, cursor, limit, }) {
|
|
27
29
|
return this.getClientInstance()
|
|
@@ -58,6 +60,7 @@ class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
|
58
60
|
* @returns Returned if the requested labels are returned.
|
|
59
61
|
* @path {GET} /blogposts/{id}/labels
|
|
60
62
|
* @scopes-current read:page:confluence
|
|
63
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label#api-blogposts-id-labels-get
|
|
61
64
|
*/
|
|
62
65
|
getBlogPostLabels({ id, prefix, sort, cursor, limit, }) {
|
|
63
66
|
return this.getClientInstance()
|
|
@@ -95,6 +98,7 @@ class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
|
95
98
|
* @returns Returned if the requested labels are returned.
|
|
96
99
|
* @path {GET} /custom-content/{id}/labels
|
|
97
100
|
* @scopes-current read:custom-content:confluence
|
|
101
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label#api-custom-content-id-labels-get
|
|
98
102
|
*/
|
|
99
103
|
getCustomContentLabels({ id, prefix, sort, cursor, limit, }) {
|
|
100
104
|
return this.getClientInstance()
|
|
@@ -132,8 +136,9 @@ class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
|
132
136
|
* @returns Returned if the requested labels are returned.
|
|
133
137
|
* @path {GET} /labels
|
|
134
138
|
* @scopes-current read:label:confluence
|
|
139
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label#api-labels-get
|
|
135
140
|
*/
|
|
136
|
-
getLabels({ labelId, prefix, cursor, sort, limit, }) {
|
|
141
|
+
getLabels({ labelId, prefix, cursor, sort, limit, } = {}) {
|
|
137
142
|
return this.getClientInstance()
|
|
138
143
|
.request({
|
|
139
144
|
path: "/labels",
|
|
@@ -166,6 +171,7 @@ class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
|
166
171
|
* @returns Returned if the requested labels are returned.
|
|
167
172
|
* @path {GET} /pages/{id}/labels
|
|
168
173
|
* @scopes-current read:page:confluence
|
|
174
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label#api-pages-id-labels-get
|
|
169
175
|
*/
|
|
170
176
|
getPageLabels({ id, prefix, sort, cursor, limit, }) {
|
|
171
177
|
return this.getClientInstance()
|
|
@@ -203,6 +209,7 @@ class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
|
203
209
|
* @returns Returned if the requested labels are returned.
|
|
204
210
|
* @path {GET} /spaces/{id}/content/labels
|
|
205
211
|
* @scopes-current read:space:confluence
|
|
212
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label#api-spaces-id-content-labels-get
|
|
206
213
|
*/
|
|
207
214
|
getSpaceContentLabels({ id, prefix, sort, cursor, limit, }) {
|
|
208
215
|
return this.getClientInstance()
|
|
@@ -239,6 +246,7 @@ class LabelService extends CommonHttpService_1.CommonHttpService {
|
|
|
239
246
|
* @returns Returned if the requested labels are returned.
|
|
240
247
|
* @path {GET} /spaces/{id}/labels
|
|
241
248
|
* @scopes-current read:space:confluence
|
|
249
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-label#api-spaces-id-labels-get
|
|
242
250
|
*/
|
|
243
251
|
getSpaceLabels({ id, prefix, sort, cursor, limit, }) {
|
|
244
252
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/LabelService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,wEAAqE;AACrE,MAAa,YAAa,SAAQ,qCAAiB;IACjD
|
|
1
|
+
{"version":3,"file":"LabelService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/LabelService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IACjD;;;;;;;;;;;;;OAaG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AAM,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,6CAA6C,CAAC,CAC3D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,sCAAsC,EACtC,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC;iBACJ,MAAM,CAAC;gBACN,OAAO,EAAE,OAAC;qBACP,KAAK,CAAC,iDAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;qBAC5C,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,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAtuBD,oCAsuBC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type Like, type MultiEntityLinks } from "../models/common";
|
|
3
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like */
|
|
3
4
|
export declare class LikeService extends CommonHttpService {
|
|
4
5
|
/**
|
|
5
6
|
* Returns the count of likes of specific blog post.
|
|
@@ -10,6 +11,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
10
11
|
* @returns Returned if the requested count is returned.
|
|
11
12
|
* @path {GET} /blogposts/{id}/likes/count
|
|
12
13
|
* @scopes-current read:page:confluence
|
|
14
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-blogposts-id-likes-count-get
|
|
13
15
|
*/
|
|
14
16
|
getBlogPostLikeCount({ id, }: {
|
|
15
17
|
/** The ID of the blog post for which like count should be returned. */
|
|
@@ -29,6 +31,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
29
31
|
* @returns Returned if the requested account IDs are returned.
|
|
30
32
|
* @path {GET} /blogposts/{id}/likes/users
|
|
31
33
|
* @scopes-current read:page:confluence
|
|
34
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-blogposts-id-likes-users-get
|
|
32
35
|
*/
|
|
33
36
|
getBlogPostLikeUsers({ id, cursor, limit, }: {
|
|
34
37
|
/** The ID of the blog post for which account IDs should be returned. */
|
|
@@ -60,6 +63,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
60
63
|
* @returns Returned if the requested count is returned.
|
|
61
64
|
* @path {GET} /footer-comments/{id}/likes/count
|
|
62
65
|
* @scopes-current read:comment:confluence
|
|
66
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-footer-comments-id-likes-count-get
|
|
63
67
|
*/
|
|
64
68
|
getFooterLikeCount({ id, }: {
|
|
65
69
|
/** The ID of the footer comment for which like count should be returned. */
|
|
@@ -79,6 +83,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
79
83
|
* @returns Returned if the requested account IDs are returned.
|
|
80
84
|
* @path {GET} /footer-comments/{id}/likes/users
|
|
81
85
|
* @scopes-current read:comment:confluence
|
|
86
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-footer-comments-id-likes-users-get
|
|
82
87
|
*/
|
|
83
88
|
getFooterLikeUsers({ id, cursor, limit, }: {
|
|
84
89
|
/** The ID of the footer comment for which like count should be returned. */
|
|
@@ -110,6 +115,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
110
115
|
* @returns Returned if the requested count is returned.
|
|
111
116
|
* @path {GET} /inline-comments/{id}/likes/count
|
|
112
117
|
* @scopes-current read:comment:confluence
|
|
118
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-inline-comments-id-likes-count-get
|
|
113
119
|
*/
|
|
114
120
|
getInlineLikeCount({ id, }: {
|
|
115
121
|
/** The ID of the inline comment for which like count should be returned. */
|
|
@@ -129,6 +135,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
129
135
|
* @returns Returned if the requested account IDs are returned.
|
|
130
136
|
* @path {GET} /inline-comments/{id}/likes/users
|
|
131
137
|
* @scopes-current read:comment:confluence
|
|
138
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-inline-comments-id-likes-users-get
|
|
132
139
|
*/
|
|
133
140
|
getInlineLikeUsers({ id, cursor, limit, }: {
|
|
134
141
|
/** The ID of the inline comment for which like count should be returned. */
|
|
@@ -160,6 +167,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
160
167
|
* @returns Returned if the requested count is returned.
|
|
161
168
|
* @path {GET} /pages/{id}/likes/count
|
|
162
169
|
* @scopes-current read:page:confluence
|
|
170
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-pages-id-likes-count-get
|
|
163
171
|
*/
|
|
164
172
|
getPageLikeCount({ id, }: {
|
|
165
173
|
/** The ID of the page for which like count should be returned. */
|
|
@@ -179,6 +187,7 @@ export declare class LikeService extends CommonHttpService {
|
|
|
179
187
|
* @returns Returned if the requested account IDs are returned.
|
|
180
188
|
* @path {GET} /pages/{id}/likes/users
|
|
181
189
|
* @scopes-current read:page:confluence
|
|
190
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-pages-id-likes-users-get
|
|
182
191
|
*/
|
|
183
192
|
getPageLikeUsers({ id, cursor, limit, }: {
|
|
184
193
|
/** The ID of the page for which like count should be returned. */
|
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like */
|
|
12
13
|
class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Returns the count of likes of specific blog post.
|
|
@@ -19,6 +20,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
19
20
|
* @returns Returned if the requested count is returned.
|
|
20
21
|
* @path {GET} /blogposts/{id}/likes/count
|
|
21
22
|
* @scopes-current read:page:confluence
|
|
23
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-blogposts-id-likes-count-get
|
|
22
24
|
*/
|
|
23
25
|
getBlogPostLikeCount({ id, }) {
|
|
24
26
|
return this.getClientInstance()
|
|
@@ -47,6 +49,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
47
49
|
* @returns Returned if the requested account IDs are returned.
|
|
48
50
|
* @path {GET} /blogposts/{id}/likes/users
|
|
49
51
|
* @scopes-current read:page:confluence
|
|
52
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-blogposts-id-likes-users-get
|
|
50
53
|
*/
|
|
51
54
|
getBlogPostLikeUsers({ id, cursor, limit, }) {
|
|
52
55
|
return this.getClientInstance()
|
|
@@ -79,6 +82,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
79
82
|
* @returns Returned if the requested count is returned.
|
|
80
83
|
* @path {GET} /footer-comments/{id}/likes/count
|
|
81
84
|
* @scopes-current read:comment:confluence
|
|
85
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-footer-comments-id-likes-count-get
|
|
82
86
|
*/
|
|
83
87
|
getFooterLikeCount({ id, }) {
|
|
84
88
|
return this.getClientInstance()
|
|
@@ -107,6 +111,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
107
111
|
* @returns Returned if the requested account IDs are returned.
|
|
108
112
|
* @path {GET} /footer-comments/{id}/likes/users
|
|
109
113
|
* @scopes-current read:comment:confluence
|
|
114
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-footer-comments-id-likes-users-get
|
|
110
115
|
*/
|
|
111
116
|
getFooterLikeUsers({ id, cursor, limit, }) {
|
|
112
117
|
return this.getClientInstance()
|
|
@@ -139,6 +144,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
139
144
|
* @returns Returned if the requested count is returned.
|
|
140
145
|
* @path {GET} /inline-comments/{id}/likes/count
|
|
141
146
|
* @scopes-current read:comment:confluence
|
|
147
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-inline-comments-id-likes-count-get
|
|
142
148
|
*/
|
|
143
149
|
getInlineLikeCount({ id, }) {
|
|
144
150
|
return this.getClientInstance()
|
|
@@ -167,6 +173,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
167
173
|
* @returns Returned if the requested account IDs are returned.
|
|
168
174
|
* @path {GET} /inline-comments/{id}/likes/users
|
|
169
175
|
* @scopes-current read:comment:confluence
|
|
176
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-inline-comments-id-likes-users-get
|
|
170
177
|
*/
|
|
171
178
|
getInlineLikeUsers({ id, cursor, limit, }) {
|
|
172
179
|
return this.getClientInstance()
|
|
@@ -199,6 +206,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
199
206
|
* @returns Returned if the requested count is returned.
|
|
200
207
|
* @path {GET} /pages/{id}/likes/count
|
|
201
208
|
* @scopes-current read:page:confluence
|
|
209
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-pages-id-likes-count-get
|
|
202
210
|
*/
|
|
203
211
|
getPageLikeCount({ id, }) {
|
|
204
212
|
return this.getClientInstance()
|
|
@@ -227,6 +235,7 @@ class LikeService extends CommonHttpService_1.CommonHttpService {
|
|
|
227
235
|
* @returns Returned if the requested account IDs are returned.
|
|
228
236
|
* @path {GET} /pages/{id}/likes/users
|
|
229
237
|
* @scopes-current read:page:confluence
|
|
238
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-like#api-pages-id-likes-users-get
|
|
230
239
|
*/
|
|
231
240
|
getPageLikeUsers({ id, cursor, limit, }) {
|
|
232
241
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LikeService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/LikeService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,wEAAqE;AACrE,MAAa,WAAY,SAAQ,qCAAiB;IAChD
|
|
1
|
+
{"version":3,"file":"LikeService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/LikeService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,wEAAqE;AACrE,mFAAmF;AACnF,MAAa,WAAY,SAAQ,qCAAiB;IAChD;;;;;;;;;;OAUG;IACH,oBAAoB,CAAC,EACnB,EAAE,GAIH;QAQC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,6BAA6B;YACnC,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAQzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B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,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC;iBACJ,MAAM,CAAC;gBACN,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;gBACjE,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,uCAAuC,CAAC,CACrD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAppBD,kCAopBC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type PermittedOperationsResponse } from "../models/operation";
|
|
3
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation */
|
|
3
4
|
export declare class OperationService extends CommonHttpService {
|
|
4
5
|
/**
|
|
5
6
|
* Returns the permitted operations on specific attachment.
|
|
@@ -11,6 +12,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
11
12
|
* @returns Returned if the requested operations are returned.
|
|
12
13
|
* @path {GET} /attachments/{id}/operations
|
|
13
14
|
* @scopes-current read:attachment:confluence
|
|
15
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-attachments-id-operations-get
|
|
14
16
|
*/
|
|
15
17
|
getAttachmentOperations({ id, }: {
|
|
16
18
|
/** The ID of the attachment for which operations should be returned. */
|
|
@@ -26,6 +28,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
26
28
|
* @returns Returned if the requested operations are returned.
|
|
27
29
|
* @path {GET} /blogposts/{id}/operations
|
|
28
30
|
* @scopes-current read:page:confluence
|
|
31
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-blogposts-id-operations-get
|
|
29
32
|
*/
|
|
30
33
|
getBlogPostOperations({ id, }: {
|
|
31
34
|
/** The ID of the blog post for which operations should be returned. */
|
|
@@ -41,6 +44,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
41
44
|
* @returns Returned if the requested operations are returned.
|
|
42
45
|
* @path {GET} /custom-content/{id}/operations
|
|
43
46
|
* @scopes-current read:custom-content:confluence
|
|
47
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-custom-content-id-operations-get
|
|
44
48
|
*/
|
|
45
49
|
getCustomContentOperations({ id, }: {
|
|
46
50
|
/** The ID of the custom content for which operations should be returned. */
|
|
@@ -55,6 +59,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
55
59
|
* @returns Returned if the requested operations are returned.
|
|
56
60
|
* @path {GET} /databases/{id}/operations
|
|
57
61
|
* @scopes-current read:database:confluence
|
|
62
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-databases-id-operations-get
|
|
58
63
|
*/
|
|
59
64
|
getDatabaseOperations({ id, }: {
|
|
60
65
|
/** The ID of the database for which operations should be returned. */
|
|
@@ -70,6 +75,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
70
75
|
* @returns Returned if the requested operations are returned.
|
|
71
76
|
* @path {GET} /footer-comments/{id}/operations
|
|
72
77
|
* @scopes-current read:comment:confluence
|
|
78
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-footer-comments-id-operations-get
|
|
73
79
|
*/
|
|
74
80
|
getFooterCommentOperations({ id, }: {
|
|
75
81
|
/** The ID of the footer comment for which operations should be returned. */
|
|
@@ -85,6 +91,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
85
91
|
* @returns Returned if the requested operations are returned.
|
|
86
92
|
* @path {GET} /inline-comments/{id}/operations
|
|
87
93
|
* @scopes-current read:comment:confluence
|
|
94
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-inline-comments-id-operations-get
|
|
88
95
|
*/
|
|
89
96
|
getInlineCommentOperations({ id, }: {
|
|
90
97
|
/** The ID of the inline comment for which operations should be returned. */
|
|
@@ -99,6 +106,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
99
106
|
* @returns Returned if the requested operations are returned.
|
|
100
107
|
* @path {GET} /pages/{id}/operations
|
|
101
108
|
* @scopes-current read:page:confluence
|
|
109
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-pages-id-operations-get
|
|
102
110
|
*/
|
|
103
111
|
getPageOperations({ id, }: {
|
|
104
112
|
/** The ID of the page for which operations should be returned. */
|
|
@@ -114,6 +122,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
114
122
|
* @returns Returned if the requested operations are returned.
|
|
115
123
|
* @path {GET} /embeds/{id}/operations
|
|
116
124
|
* @scopes-current read:embed:confluence
|
|
125
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-embeds-id-operations-get
|
|
117
126
|
*/
|
|
118
127
|
getSmartLinkOperations({ id, }: {
|
|
119
128
|
/**
|
|
@@ -131,6 +140,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
131
140
|
* @returns Returned if the requested operations are returned.
|
|
132
141
|
* @path {GET} /spaces/{id}/operations
|
|
133
142
|
* @scopes-current read:space:confluence
|
|
143
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-spaces-id-operations-get
|
|
134
144
|
*/
|
|
135
145
|
getSpaceOperations({ id, }: {
|
|
136
146
|
/** The ID of the space for which operations should be returned. */
|
|
@@ -145,6 +155,7 @@ export declare class OperationService extends CommonHttpService {
|
|
|
145
155
|
* @returns Returned if the requested operations are returned.
|
|
146
156
|
* @path {GET} /whiteboards/{id}/operations
|
|
147
157
|
* @scopes-current read:whiteboard:confluence
|
|
158
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-whiteboards-id-operations-get
|
|
148
159
|
*/
|
|
149
160
|
getWhiteboardOperations({ id, }: {
|
|
150
161
|
/** The ID of the whiteboard for which operations should be returned. */
|
|
@@ -9,6 +9,7 @@ const commonHttpClient = require("../core/CommonHttpClient");
|
|
|
9
9
|
const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
10
10
|
const operation_1 = require("../models/operation");
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation */
|
|
12
13
|
class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
13
14
|
/**
|
|
14
15
|
* Returns the permitted operations on specific attachment.
|
|
@@ -20,6 +21,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
20
21
|
* @returns Returned if the requested operations are returned.
|
|
21
22
|
* @path {GET} /attachments/{id}/operations
|
|
22
23
|
* @scopes-current read:attachment:confluence
|
|
24
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-attachments-id-operations-get
|
|
23
25
|
*/
|
|
24
26
|
getAttachmentOperations({ id, }) {
|
|
25
27
|
return this.getClientInstance()
|
|
@@ -49,6 +51,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
49
51
|
* @returns Returned if the requested operations are returned.
|
|
50
52
|
* @path {GET} /blogposts/{id}/operations
|
|
51
53
|
* @scopes-current read:page:confluence
|
|
54
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-blogposts-id-operations-get
|
|
52
55
|
*/
|
|
53
56
|
getBlogPostOperations({ id, }) {
|
|
54
57
|
return this.getClientInstance()
|
|
@@ -78,6 +81,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
78
81
|
* @returns Returned if the requested operations are returned.
|
|
79
82
|
* @path {GET} /custom-content/{id}/operations
|
|
80
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
|
|
81
85
|
*/
|
|
82
86
|
getCustomContentOperations({ id, }) {
|
|
83
87
|
return this.getClientInstance()
|
|
@@ -106,6 +110,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
106
110
|
* @returns Returned if the requested operations are returned.
|
|
107
111
|
* @path {GET} /databases/{id}/operations
|
|
108
112
|
* @scopes-current read:database:confluence
|
|
113
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-databases-id-operations-get
|
|
109
114
|
*/
|
|
110
115
|
getDatabaseOperations({ id, }) {
|
|
111
116
|
return this.getClientInstance()
|
|
@@ -135,6 +140,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
135
140
|
* @returns Returned if the requested operations are returned.
|
|
136
141
|
* @path {GET} /footer-comments/{id}/operations
|
|
137
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
|
|
138
144
|
*/
|
|
139
145
|
getFooterCommentOperations({ id, }) {
|
|
140
146
|
return this.getClientInstance()
|
|
@@ -164,6 +170,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
164
170
|
* @returns Returned if the requested operations are returned.
|
|
165
171
|
* @path {GET} /inline-comments/{id}/operations
|
|
166
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
|
|
167
174
|
*/
|
|
168
175
|
getInlineCommentOperations({ id, }) {
|
|
169
176
|
return this.getClientInstance()
|
|
@@ -192,6 +199,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
192
199
|
* @returns Returned if the requested operations are returned.
|
|
193
200
|
* @path {GET} /pages/{id}/operations
|
|
194
201
|
* @scopes-current read:page:confluence
|
|
202
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-pages-id-operations-get
|
|
195
203
|
*/
|
|
196
204
|
getPageOperations({ id, }) {
|
|
197
205
|
return this.getClientInstance()
|
|
@@ -221,6 +229,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
221
229
|
* @returns Returned if the requested operations are returned.
|
|
222
230
|
* @path {GET} /embeds/{id}/operations
|
|
223
231
|
* @scopes-current read:embed:confluence
|
|
232
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-embeds-id-operations-get
|
|
224
233
|
*/
|
|
225
234
|
getSmartLinkOperations({ id, }) {
|
|
226
235
|
return this.getClientInstance()
|
|
@@ -249,6 +258,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
249
258
|
* @returns Returned if the requested operations are returned.
|
|
250
259
|
* @path {GET} /spaces/{id}/operations
|
|
251
260
|
* @scopes-current read:space:confluence
|
|
261
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-spaces-id-operations-get
|
|
252
262
|
*/
|
|
253
263
|
getSpaceOperations({ id, }) {
|
|
254
264
|
return this.getClientInstance()
|
|
@@ -277,6 +287,7 @@ class OperationService extends CommonHttpService_1.CommonHttpService {
|
|
|
277
287
|
* @returns Returned if the requested operations are returned.
|
|
278
288
|
* @path {GET} /whiteboards/{id}/operations
|
|
279
289
|
* @scopes-current read:whiteboard:confluence
|
|
290
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-operation#api-whiteboards-id-operations-get
|
|
280
291
|
*/
|
|
281
292
|
getWhiteboardOperations({ id, }) {
|
|
282
293
|
return this.getClientInstance()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/OperationService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,mDAG6B;AAC7B,wEAAqE;AACrE,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD
|
|
1
|
+
{"version":3,"file":"OperationService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/OperationService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,mDAG6B;AAC7B,wEAAqE;AACrE,wFAAwF;AACxF,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD;;;;;;;;;;;OAWG;IACH,uBAAuB,CAAC,EACtB,EAAE,GAIH;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,8BAA8B;YACpC,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,mDAAmD,CACpD,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;OAWG;IACH,qBAAqB,CAAC,EACpB,EAAE,GAIH;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,4BAA4B;YAClC,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,iDAAiD,CAClD,CACF;aACA,IA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C,6BAA6B,CAAC;SAClE,CAAC;aACD,QAAQ,CAAC,sDAAsD,CAAC,CACpE,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,6CAA6C,EAC7C,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,6BAA6B,CAAC;SAClE,CAAC;aACD,QAAQ,CAAC,6CAA6C,CAAC,CAC3D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,8CAA8C,EAC9C,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,6BAA6B,CAAC;SAClE,CAAC;aACD,QAAQ,CAAC,8CAA8C,CAAC,CAC5D,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,mDAAmD,EACnD,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,iDAAuB,CAAC,IAAI,CAAC,6BAA6B,CAAC;SAClE,CAAC;aACD,QAAQ,CAAC,mDAAmD,CAAC,CACjE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,8CAAkC,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF;AA7jBD,4CA6jBC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonHttpService } from "../core/CommonHttpService";
|
|
2
2
|
import { type MultiEntityLinks, type PrimaryBodyRepresentation, type PrimaryBodyRepresentationSingle } from "../models/common";
|
|
3
3
|
import { type PageBodyWrite, type PageBulk, type PageNestedBodyWrite, type PageSingle, type PageSortOrder } from "../models/page";
|
|
4
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page */
|
|
4
5
|
export declare class PageService extends CommonHttpService {
|
|
5
6
|
/**
|
|
6
7
|
* Creates a page in the space.
|
|
@@ -15,6 +16,7 @@ export declare class PageService extends CommonHttpService {
|
|
|
15
16
|
* @returns Returned if the page was successfully created.
|
|
16
17
|
* @path {POST} /pages
|
|
17
18
|
* @scopes-current write:page:confluence
|
|
19
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-post
|
|
18
20
|
*/
|
|
19
21
|
createPage({ embedded, private: privateQuery, rootLevel, requestBody, }: {
|
|
20
22
|
/** Tag the content as embedded and content will be created in NCS. */
|
|
@@ -72,6 +74,7 @@ export declare class PageService extends CommonHttpService {
|
|
|
72
74
|
*
|
|
73
75
|
* @path {DELETE} /pages/{id}
|
|
74
76
|
* @scopes-current delete:page:confluence
|
|
77
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-delete
|
|
75
78
|
*/
|
|
76
79
|
deletePage({ id, purge, draft, }: {
|
|
77
80
|
/** The ID of the page to be deleted. */
|
|
@@ -92,6 +95,7 @@ export declare class PageService extends CommonHttpService {
|
|
|
92
95
|
* @returns Returned if the requested pages for specified label were successfully fetched.
|
|
93
96
|
* @path {GET} /labels/{id}/pages
|
|
94
97
|
* @scopes-current read:page:confluence
|
|
98
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-labels-id-pages-get
|
|
95
99
|
*/
|
|
96
100
|
getLabelPages({ id, spaceId, bodyFormat, sort, cursor, limit, }: {
|
|
97
101
|
/** The ID of the label for which pages should be returned. */
|
|
@@ -136,6 +140,7 @@ export declare class PageService extends CommonHttpService {
|
|
|
136
140
|
* @returns Returned if the requested page is returned.
|
|
137
141
|
* @path {GET} /pages/{id}
|
|
138
142
|
* @scopes-current read:page:confluence
|
|
143
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-get
|
|
139
144
|
*/
|
|
140
145
|
getPageById({ id, bodyFormat, getDraft, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus, }: {
|
|
141
146
|
/**
|
|
@@ -225,8 +230,9 @@ export declare class PageService extends CommonHttpService {
|
|
|
225
230
|
* @returns Returned if the requested pages are returned.
|
|
226
231
|
* @path {GET} /pages
|
|
227
232
|
* @scopes-current read:page:confluence
|
|
233
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-get
|
|
228
234
|
*/
|
|
229
|
-
getPages({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, }
|
|
235
|
+
getPages({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, }?: {
|
|
230
236
|
/**
|
|
231
237
|
* Filter the results based on page ids. Multiple page ids can be specified as a
|
|
232
238
|
* comma-separated list.
|
|
@@ -283,6 +289,7 @@ export declare class PageService extends CommonHttpService {
|
|
|
283
289
|
* @returns Returned if the requested pages are returned.
|
|
284
290
|
* @path {GET} /spaces/{id}/pages
|
|
285
291
|
* @scopes-current read:page:confluence
|
|
292
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-spaces-id-pages-get
|
|
286
293
|
*/
|
|
287
294
|
getPagesInSpace({ id, depth, sort, status, title, bodyFormat, cursor, limit, }: {
|
|
288
295
|
/** The ID of the space for which pages should be returned. */
|
|
@@ -335,6 +342,7 @@ export declare class PageService extends CommonHttpService {
|
|
|
335
342
|
* @returns Returned if the requested page is successfully updated.
|
|
336
343
|
* @path {PUT} /pages/{id}
|
|
337
344
|
* @scopes-current write:page:confluence
|
|
345
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-put
|
|
338
346
|
*/
|
|
339
347
|
updatePage({ id, requestBody, }: {
|
|
340
348
|
/**
|
|
@@ -10,6 +10,7 @@ const CommonHttpService_1 = require("../core/CommonHttpService");
|
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
11
|
const page_1 = require("../models/page");
|
|
12
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
13
|
+
/** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page */
|
|
13
14
|
class PageService extends CommonHttpService_1.CommonHttpService {
|
|
14
15
|
/**
|
|
15
16
|
* Creates a page in the space.
|
|
@@ -24,6 +25,7 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
24
25
|
* @returns Returned if the page was successfully created.
|
|
25
26
|
* @path {POST} /pages
|
|
26
27
|
* @scopes-current write:page:confluence
|
|
28
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-post
|
|
27
29
|
*/
|
|
28
30
|
createPage({ embedded, private: privateQuery, rootLevel, requestBody, }) {
|
|
29
31
|
return this.getClientInstance()
|
|
@@ -69,6 +71,7 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
69
71
|
*
|
|
70
72
|
* @path {DELETE} /pages/{id}
|
|
71
73
|
* @scopes-current delete:page:confluence
|
|
74
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-delete
|
|
72
75
|
*/
|
|
73
76
|
deletePage({ id, purge, draft, }) {
|
|
74
77
|
return this.getClientInstance()
|
|
@@ -96,6 +99,7 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
96
99
|
* @returns Returned if the requested pages for specified label were successfully fetched.
|
|
97
100
|
* @path {GET} /labels/{id}/pages
|
|
98
101
|
* @scopes-current read:page:confluence
|
|
102
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-labels-id-pages-get
|
|
99
103
|
*/
|
|
100
104
|
getLabelPages({ id, spaceId, bodyFormat, sort, cursor, limit, }) {
|
|
101
105
|
return this.getClientInstance()
|
|
@@ -131,6 +135,7 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
131
135
|
* @returns Returned if the requested page is returned.
|
|
132
136
|
* @path {GET} /pages/{id}
|
|
133
137
|
* @scopes-current read:page:confluence
|
|
138
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-get
|
|
134
139
|
*/
|
|
135
140
|
getPageById({ id, bodyFormat, getDraft, version, includeLabels, includeProperties, includeOperations, includeLikes, includeVersions, includeVersion, includeFavoritedByCurrentUserStatus, }) {
|
|
136
141
|
return this.getClientInstance()
|
|
@@ -174,8 +179,9 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
174
179
|
* @returns Returned if the requested pages are returned.
|
|
175
180
|
* @path {GET} /pages
|
|
176
181
|
* @scopes-current read:page:confluence
|
|
182
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-get
|
|
177
183
|
*/
|
|
178
|
-
getPages({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, }) {
|
|
184
|
+
getPages({ id, spaceId, sort, status, title, bodyFormat, cursor, limit, } = {}) {
|
|
179
185
|
return this.getClientInstance()
|
|
180
186
|
.request({
|
|
181
187
|
path: "/pages",
|
|
@@ -213,6 +219,7 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
213
219
|
* @returns Returned if the requested pages are returned.
|
|
214
220
|
* @path {GET} /spaces/{id}/pages
|
|
215
221
|
* @scopes-current read:page:confluence
|
|
222
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-spaces-id-pages-get
|
|
216
223
|
*/
|
|
217
224
|
getPagesInSpace({ id, depth, sort, status, title, bodyFormat, cursor, limit, }) {
|
|
218
225
|
return this.getClientInstance()
|
|
@@ -251,6 +258,7 @@ class PageService extends CommonHttpService_1.CommonHttpService {
|
|
|
251
258
|
* @returns Returned if the requested page is successfully updated.
|
|
252
259
|
* @path {PUT} /pages/{id}
|
|
253
260
|
* @scopes-current write:page:confluence
|
|
261
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page#api-pages-id-put
|
|
254
262
|
*/
|
|
255
263
|
updatePage({ id, requestBody, }) {
|
|
256
264
|
return this.getClientInstance()
|