@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.
- package/CHANGELOG.md +22 -0
- package/README.md +4 -0
- package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
- package/lib/openapi/v1/services/AnalyticsService.js +62 -59
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +25 -25
- package/lib/openapi/v1/services/AuditService.js +205 -202
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
- package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentBodyService.js +140 -137
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
- package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
- package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +50 -50
- package/lib/openapi/v1/services/ContentService.js +475 -472
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
- package/lib/openapi/v1/services/ContentStatesService.js +359 -356
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
- package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
- package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
- package/lib/openapi/v1/services/ExperimentalService.js +151 -148
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +52 -52
- package/lib/openapi/v1/services/GroupService.js +445 -442
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
- package/lib/openapi/v1/services/InlineTasksService.js +118 -115
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
- package/lib/openapi/v1/services/LabelInfoService.js +37 -34
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
- package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +37 -37
- package/lib/openapi/v1/services/RelationService.js +231 -228
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +20 -20
- package/lib/openapi/v1/services/SearchService.js +136 -133
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
- package/lib/openapi/v1/services/SettingsService.js +204 -201
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
- package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
- package/lib/openapi/v1/services/SpaceService.js +320 -317
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
- package/lib/openapi/v1/services/TemplateService.js +214 -211
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
- package/lib/openapi/v1/services/ThemesService.js +179 -176
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
- package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +21 -21
- package/lib/openapi/v1/services/UsersService.js +229 -226
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +0 -2
- package/lib/openapi/v2/models/user.js +0 -2
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
- package/lib/openapi/v2/services/AncestorsService.js +174 -171
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
- package/lib/openapi/v2/services/AttachmentService.js +261 -258
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
- package/lib/openapi/v2/services/BlogPostService.js +270 -267
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
- package/lib/openapi/v2/services/ChildrenService.js +77 -74
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
- package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +136 -136
- package/lib/openapi/v2/services/CommentService.js +635 -632
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
- package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -2
- package/lib/openapi/v2/services/ContentService.js +40 -37
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
- package/lib/openapi/v2/services/CustomContentService.js +299 -296
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
- package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
- package/lib/openapi/v2/services/DatabaseService.js +90 -87
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +57 -57
- package/lib/openapi/v2/services/LabelService.js +263 -260
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +36 -36
- package/lib/openapi/v2/services/LikeService.js +250 -247
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +20 -20
- package/lib/openapi/v2/services/OperationService.js +298 -295
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +73 -73
- package/lib/openapi/v2/services/PageService.js +272 -269
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
- package/lib/openapi/v2/services/SmartLinkService.js +92 -89
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
- package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
- package/lib/openapi/v2/services/SpaceService.js +83 -80
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +40 -40
- package/lib/openapi/v2/services/TaskService.js +120 -117
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +11 -11
- package/lib/openapi/v2/services/UserService.js +91 -88
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +59 -59
- package/lib/openapi/v2/services/VersionService.js +395 -392
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
- package/lib/openapi/v2/services/WhiteboardService.js +90 -87
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentChildrenAndDescendantsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentChildrenAndDescendantsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAO0B;AAK1B,wEAAqE;AACrE,+GAA+G;AAC/G,MAAa,oCAAqC,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"ContentChildrenAndDescendantsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentChildrenAndDescendantsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAO0B;AAK1B,wEAAqE;AACrE,+GAA+G;AAC/G,MAAa,oCAAqC,SAAQ,qCAAiB;IAA3E;;QACE;;;;;;;;;;;;;;;;;;;;;;;;WAwBG;QACH,aAAQ,GAAG,CAAC,EACV,EAAE,EACF,MAAM,EACN,eAAe,GAqGhB,EAA2B,EAAE;YAC5B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,kCAAkC;gBACxC,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;iBACP;gBACD,OAA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I,CAAC,UAAU,CAAC;SAC/C,CAAC;aACD,QAAQ,CACP,iEAAiE,CAClE,CACJ,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,wDAAwD,EACxD,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,MAAM,EAAE,iDAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;aAC7D,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,wDAAwD,CAAC,CACtE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AA59BD,oFA49BC"}
|
|
@@ -26,7 +26,7 @@ export declare class ContentCommentsService extends CommonHttpService {
|
|
|
26
26
|
* @scopes-beta read:content-details:confluence
|
|
27
27
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
28
28
|
*/
|
|
29
|
-
getContentComments({ id, expand, parentVersion, start, limit, location, depth, }: {
|
|
29
|
+
getContentComments: ({ id, expand, parentVersion, start, limit, location, depth, }: {
|
|
30
30
|
/** The ID of the content to be queried for its comments. */
|
|
31
31
|
id: string;
|
|
32
32
|
/**
|
|
@@ -123,29 +123,29 @@ export declare class ContentCommentsService extends CommonHttpService {
|
|
|
123
123
|
* - `extensions.inlineProperties` returns inline comment-specific properties.
|
|
124
124
|
* - `extensions.resolution` returns the resolution status of each comment.
|
|
125
125
|
*/
|
|
126
|
-
expand?: string[];
|
|
126
|
+
expand?: string[] | undefined;
|
|
127
127
|
/**
|
|
128
128
|
* The version of the parent content to retrieve children for.
|
|
129
129
|
* Currently, this only works for the latest version.
|
|
130
130
|
*/
|
|
131
|
-
parentVersion?: number;
|
|
131
|
+
parentVersion?: number | undefined;
|
|
132
132
|
/** The starting index of the returned comments. */
|
|
133
|
-
start?: number;
|
|
133
|
+
start?: number | undefined;
|
|
134
134
|
/**
|
|
135
135
|
* The maximum number of comments to return per page. Note,
|
|
136
136
|
* this may be restricted by fixed system limits.
|
|
137
137
|
*/
|
|
138
|
-
limit?: number;
|
|
138
|
+
limit?: number | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* The location of the comments in the page. Multiple locations can be specified.
|
|
141
141
|
* If no location is specified, comments from all locations are returned.
|
|
142
142
|
*/
|
|
143
|
-
location?: "inline" | "footer" | "resolved";
|
|
143
|
+
location?: "inline" | "footer" | "resolved" | undefined;
|
|
144
144
|
/**
|
|
145
145
|
* Currently, this parameter is not used.
|
|
146
146
|
* Comments are returned at the root level only.
|
|
147
147
|
*/
|
|
148
|
-
depth?: string;
|
|
149
|
-
})
|
|
148
|
+
depth?: string | undefined;
|
|
149
|
+
}) => Promise<ContentArray>;
|
|
150
150
|
static initialize(): void;
|
|
151
151
|
}
|
|
@@ -14,52 +14,55 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
|
14
14
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments
|
|
15
15
|
*/
|
|
16
16
|
class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
/**
|
|
20
|
+
* Deprecated, use [Confluence's v2
|
|
21
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
22
|
+
*
|
|
23
|
+
* Returns the comments on a piece of content.
|
|
24
|
+
*
|
|
25
|
+
* Starting on Dec 10, 2024, if the expand query parameter is used with the
|
|
26
|
+
* `body.export_view` and/or `body.styled_view` properties, then the query limit
|
|
27
|
+
* parameter will be restricted to a maximum value of 25.
|
|
28
|
+
*
|
|
29
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
30
|
+
* permission for the space,
|
|
31
|
+
* and permission to view the content if it is a page.
|
|
32
|
+
*
|
|
33
|
+
* @deprecated
|
|
34
|
+
* @returns Returned if the requested comments are returned.
|
|
35
|
+
* @path {GET} /wiki/rest/api/content/{id}/child/comment
|
|
36
|
+
* @scopes-current read:confluence-content.summary
|
|
37
|
+
* @scopes-beta read:content-details:confluence
|
|
38
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-comments#api-wiki-rest-api-content-id-child-comment-get
|
|
39
|
+
*/
|
|
40
|
+
this.getContentComments = ({ id, expand, parentVersion, start, limit, location, depth, }) => {
|
|
41
|
+
return this.getClientInstance()
|
|
42
|
+
.request({
|
|
43
|
+
path: "/wiki/rest/api/content/{id}/child/comment",
|
|
44
|
+
method: "GET",
|
|
45
|
+
pathParams: {
|
|
46
|
+
id,
|
|
47
|
+
},
|
|
48
|
+
query: {
|
|
49
|
+
expand,
|
|
50
|
+
parentVersion,
|
|
51
|
+
start,
|
|
52
|
+
limit,
|
|
53
|
+
location,
|
|
54
|
+
depth,
|
|
55
|
+
},
|
|
56
|
+
})
|
|
57
|
+
.then(this.getClientInstance().responseHandler({
|
|
58
|
+
200: {
|
|
59
|
+
"application/json": "json",
|
|
60
|
+
},
|
|
61
|
+
}))
|
|
62
|
+
.then(commonHttpClient.castResponse())
|
|
63
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentCommentsService.getContentComments.response"))
|
|
64
|
+
.then(commonHttpClient.getBody);
|
|
65
|
+
};
|
|
63
66
|
}
|
|
64
67
|
static initialize() {
|
|
65
68
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentCommentsService.getContentComments.response", zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentCommentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentCommentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,wEAAqE;AACrE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"ContentCommentsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentCommentsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAG0B;AAC1B,wEAAqE;AACrE;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,qCAAiB;IAA7D;;QACE;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,uBAAkB,GAAG,CAAC,EACpB,EAAE,EACF,MAAM,EACN,aAAa,EACb,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,GAyHN,EAAyB,EAAE;YAC1B,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,2CAA2C;gBACjD,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;oBACN,aAAa;oBACb,KAAK;oBACL,KAAK;oBACL,QAAQ;oBACR,KAAK;iBACN;aACF,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,oDAAoD,CACrD,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;IAcJ,CAAC;IAbC,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,oDAAoD,EACpD,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,cAAc,CAAC;SACnD,CAAC;aACD,QAAQ,CAAC,oDAAoD,CAAC,CAClE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAzMD,wDAyMC"}
|
|
@@ -24,12 +24,12 @@ export declare class ContentLabelsService extends CommonHttpService {
|
|
|
24
24
|
* @scopes-beta read:label:confluence, write:label:confluence
|
|
25
25
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-post
|
|
26
26
|
*/
|
|
27
|
-
addLabelsToContent({ id, requestBody, }: {
|
|
27
|
+
addLabelsToContent: ({ id, requestBody, }: {
|
|
28
28
|
/** The ID of the content that will have labels added to it. */
|
|
29
29
|
id: string;
|
|
30
30
|
/** The labels to add to the content. */
|
|
31
31
|
requestBody: LabelCreateArray | LabelCreate;
|
|
32
|
-
})
|
|
32
|
+
}) => Promise<LabelArray>;
|
|
33
33
|
/**
|
|
34
34
|
* Deprecated, use [Confluence's v2
|
|
35
35
|
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
@@ -47,7 +47,7 @@ export declare class ContentLabelsService extends CommonHttpService {
|
|
|
47
47
|
* @scopes-beta read:label:confluence
|
|
48
48
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-get
|
|
49
49
|
*/
|
|
50
|
-
getLabelsForContent({ id, prefix, start, limit, }: {
|
|
50
|
+
getLabelsForContent: ({ id, prefix, start, limit, }: {
|
|
51
51
|
/** The ID of the content to be queried for its labels. */
|
|
52
52
|
id: string;
|
|
53
53
|
/**
|
|
@@ -63,15 +63,15 @@ export declare class ContentLabelsService extends CommonHttpService {
|
|
|
63
63
|
* content](#api-content-id-label-post)
|
|
64
64
|
* but is not used in the UI.
|
|
65
65
|
*/
|
|
66
|
-
prefix?: "global" | "my" | "team";
|
|
66
|
+
prefix?: "global" | "my" | "team" | undefined;
|
|
67
67
|
/** The starting index of the returned labels. */
|
|
68
|
-
start?: number;
|
|
68
|
+
start?: number | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* The maximum number of labels to return per page. Note,
|
|
71
71
|
* this may be restricted by fixed system limits.
|
|
72
72
|
*/
|
|
73
|
-
limit?: number;
|
|
74
|
-
})
|
|
73
|
+
limit?: number | undefined;
|
|
74
|
+
}) => Promise<LabelArray>;
|
|
75
75
|
/**
|
|
76
76
|
* Removes a label from a piece of content. Labels can't be deleted from archived
|
|
77
77
|
* content.
|
|
@@ -92,12 +92,12 @@ export declare class ContentLabelsService extends CommonHttpService {
|
|
|
92
92
|
* @scopes-beta write:label:confluence
|
|
93
93
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-label-delete
|
|
94
94
|
*/
|
|
95
|
-
removeLabelFromContent({ id, label, }: {
|
|
95
|
+
removeLabelFromContent: ({ id, label, }: {
|
|
96
96
|
/** The ID of the content that the label will be removed from. */
|
|
97
97
|
id: string;
|
|
98
98
|
/** The name of the label to be removed. */
|
|
99
99
|
label: string;
|
|
100
|
-
})
|
|
100
|
+
}) => Promise<void>;
|
|
101
101
|
/**
|
|
102
102
|
* Removes a label from a piece of content. Labels can't be deleted from archived
|
|
103
103
|
* content.
|
|
@@ -117,11 +117,11 @@ export declare class ContentLabelsService extends CommonHttpService {
|
|
|
117
117
|
* @scopes-beta write:label:confluence
|
|
118
118
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-delete
|
|
119
119
|
*/
|
|
120
|
-
removeLabelFromContentUsingQueryParameter({ id, name, }: {
|
|
120
|
+
removeLabelFromContentUsingQueryParameter: ({ id, name, }: {
|
|
121
121
|
/** The ID of the content that the label will be removed from. */
|
|
122
122
|
id: string;
|
|
123
123
|
/** The name of the label to be removed. */
|
|
124
124
|
name: string;
|
|
125
|
-
})
|
|
125
|
+
}) => Promise<void>;
|
|
126
126
|
static initialize(): void;
|
|
127
127
|
}
|
|
@@ -11,153 +11,156 @@ const common_1 = require("../models/common");
|
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels */
|
|
13
13
|
class ContentLabelsService extends CommonHttpService_1.CommonHttpService {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* Adds labels to a piece of content. Does not modify the existing labels.
|
|
18
|
+
*
|
|
19
|
+
* Notes:
|
|
20
|
+
*
|
|
21
|
+
* - Labels can also be added when creating content ([Create
|
|
22
|
+
* content](#api-content-post)).
|
|
23
|
+
* - Labels can be updated when updating content ([Update
|
|
24
|
+
* content](#api-content-id-put)).
|
|
25
|
+
* This will delete the existing labels and replace them with the labels in
|
|
26
|
+
* the request.
|
|
27
|
+
*
|
|
28
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
29
|
+
* Permission to update the content.
|
|
30
|
+
*
|
|
31
|
+
* @returns Returned if the labels are added to the content.
|
|
32
|
+
* @path {POST} /wiki/rest/api/content/{id}/label
|
|
33
|
+
* @scopes-current write:confluence-content
|
|
34
|
+
* @scopes-beta read:label:confluence, write:label:confluence
|
|
35
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-post
|
|
36
|
+
*/
|
|
37
|
+
this.addLabelsToContent = ({ id, requestBody, }) => {
|
|
38
|
+
return this.getClientInstance()
|
|
39
|
+
.request({
|
|
40
|
+
path: "/wiki/rest/api/content/{id}/label",
|
|
41
|
+
method: "POST",
|
|
42
|
+
pathParams: {
|
|
43
|
+
id,
|
|
44
|
+
},
|
|
45
|
+
headers: {
|
|
46
|
+
"Content-Type": "application/json",
|
|
47
|
+
},
|
|
48
|
+
body: requestBody,
|
|
49
|
+
})
|
|
50
|
+
.then(this.getClientInstance().responseHandler({
|
|
51
|
+
200: {
|
|
52
|
+
"application/json": "json",
|
|
53
|
+
},
|
|
54
|
+
}))
|
|
55
|
+
.then(commonHttpClient.castResponse())
|
|
56
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.addLabelsToContent.response"))
|
|
57
|
+
.then(commonHttpClient.getBody);
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Deprecated, use [Confluence's v2
|
|
61
|
+
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
62
|
+
*
|
|
63
|
+
* Returns the labels on a piece of content.
|
|
64
|
+
*
|
|
65
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
66
|
+
* 'View' permission for the space and permission to view the content if it is a
|
|
67
|
+
* page.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated
|
|
70
|
+
* @returns Returned if the requested labels are returned.
|
|
71
|
+
* @path {GET} /wiki/rest/api/content/{id}/label
|
|
72
|
+
* @scopes-current read:confluence-content.summary
|
|
73
|
+
* @scopes-beta read:label:confluence
|
|
74
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-get
|
|
75
|
+
*/
|
|
76
|
+
this.getLabelsForContent = ({ id, prefix, start, limit, }) => {
|
|
77
|
+
return this.getClientInstance()
|
|
78
|
+
.request({
|
|
79
|
+
path: "/wiki/rest/api/content/{id}/label",
|
|
80
|
+
method: "GET",
|
|
81
|
+
pathParams: {
|
|
82
|
+
id,
|
|
83
|
+
},
|
|
84
|
+
query: {
|
|
85
|
+
prefix,
|
|
86
|
+
start,
|
|
87
|
+
limit,
|
|
88
|
+
},
|
|
89
|
+
})
|
|
90
|
+
.then(this.getClientInstance().responseHandler({
|
|
91
|
+
200: {
|
|
92
|
+
"application/json": "json",
|
|
93
|
+
},
|
|
94
|
+
}))
|
|
95
|
+
.then(commonHttpClient.castResponse())
|
|
96
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentLabelsService.getLabelsForContent.response"))
|
|
97
|
+
.then(commonHttpClient.getBody);
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Removes a label from a piece of content. Labels can't be deleted from archived
|
|
101
|
+
* content.
|
|
102
|
+
* This is similar to [Remove label from content using query
|
|
103
|
+
* parameter](#api-content-id-label-delete)
|
|
104
|
+
* except that the label name is specified via a path parameter.
|
|
105
|
+
*
|
|
106
|
+
* Use this method if the label name does not have "/" characters, as the path
|
|
107
|
+
* parameter does not accept "/" characters for security reasons. Otherwise,
|
|
108
|
+
* use [Remove label from content using query
|
|
109
|
+
* parameter](#api-content-id-label-delete).
|
|
110
|
+
*
|
|
111
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
112
|
+
* Permission to update the content.
|
|
113
|
+
*
|
|
114
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/label/{label}
|
|
115
|
+
* @scopes-current write:confluence-content
|
|
116
|
+
* @scopes-beta write:label:confluence
|
|
117
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-label-delete
|
|
118
|
+
*/
|
|
119
|
+
this.removeLabelFromContent = ({ id, label, }) => {
|
|
120
|
+
return this.getClientInstance()
|
|
121
|
+
.request({
|
|
122
|
+
path: "/wiki/rest/api/content/{id}/label/{label}",
|
|
123
|
+
method: "DELETE",
|
|
124
|
+
pathParams: {
|
|
125
|
+
id,
|
|
126
|
+
label,
|
|
127
|
+
},
|
|
128
|
+
})
|
|
129
|
+
.then(commonHttpClient.discardResult);
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Removes a label from a piece of content. Labels can't be deleted from archived
|
|
133
|
+
* content.
|
|
134
|
+
* This is similar to [Remove label from
|
|
135
|
+
* content](#api-content-id-label-label-delete)
|
|
136
|
+
* except that the label name is specified via a query parameter.
|
|
137
|
+
*
|
|
138
|
+
* Use this method if the label name has "/" characters, as
|
|
139
|
+
* [Remove label from content using query parameter](#api-content-id-label-delete)
|
|
140
|
+
* does not accept "/" characters for the label name.
|
|
141
|
+
*
|
|
142
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
143
|
+
* Permission to update the content.
|
|
144
|
+
*
|
|
145
|
+
* @path {DELETE} /wiki/rest/api/content/{id}/label
|
|
146
|
+
* @scopes-current write:confluence-content
|
|
147
|
+
* @scopes-beta write:label:confluence
|
|
148
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-labels#api-wiki-rest-api-content-id-label-delete
|
|
149
|
+
*/
|
|
150
|
+
this.removeLabelFromContentUsingQueryParameter = ({ id, name, }) => {
|
|
151
|
+
return this.getClientInstance()
|
|
152
|
+
.request({
|
|
153
|
+
path: "/wiki/rest/api/content/{id}/label",
|
|
154
|
+
method: "DELETE",
|
|
155
|
+
pathParams: {
|
|
156
|
+
id,
|
|
157
|
+
},
|
|
158
|
+
query: {
|
|
159
|
+
name,
|
|
160
|
+
},
|
|
161
|
+
})
|
|
162
|
+
.then(commonHttpClient.discardResult);
|
|
163
|
+
};
|
|
161
164
|
}
|
|
162
165
|
static initialize() {
|
|
163
166
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentLabelsService.getLabelsForContent.response", zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLabelsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentLabelsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAE1B,wEAAqE;AACrE,6FAA6F;AAC7F,MAAa,oBAAqB,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"ContentLabelsService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentLabelsService.ts"],"names":[],"mappings":";;;AA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