@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.
- package/CHANGELOG.md +22 -0
- package/README.md +60 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v1/core/CommonHttpService.js +9 -0
- package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
- 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/BaseConfluenceApiV2Client.d.ts +23 -24
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v2/core/CommonHttpService.js +9 -0
- package/lib/openapi/v2/core/CommonHttpService.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
|
@@ -11,69 +11,73 @@ const longRunningTask_1 = require("../models/longRunningTask");
|
|
|
11
11
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
12
|
/** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task */
|
|
13
13
|
class LongRunningTaskService 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
|
-
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* Returns information about an active long-running task (e.g. space export),
|
|
18
|
+
* such as how long it has been running and the percentage of the task that
|
|
19
|
+
* has completed.
|
|
20
|
+
*
|
|
21
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
22
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
23
|
+
*
|
|
24
|
+
* @returns Returned if the requested task is returned.
|
|
25
|
+
* @path {GET} /wiki/rest/api/longtask/{id}
|
|
26
|
+
* @scopes-current read:confluence-space.summary
|
|
27
|
+
* @scopes-beta read:content.metadata:confluence
|
|
28
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task#api-wiki-rest-api-longtask-id-get
|
|
29
|
+
*/
|
|
30
|
+
this.getTask = ({ id, }) => {
|
|
31
|
+
return this.getClientInstance()
|
|
32
|
+
.request({
|
|
33
|
+
path: "/wiki/rest/api/longtask/{id}",
|
|
34
|
+
method: "GET",
|
|
35
|
+
pathParams: {
|
|
36
|
+
id,
|
|
37
|
+
},
|
|
38
|
+
})
|
|
39
|
+
.then(this.getClientInstance().responseHandler({
|
|
40
|
+
200: {
|
|
41
|
+
"application/json": "json",
|
|
42
|
+
},
|
|
43
|
+
}))
|
|
44
|
+
.then(commonHttpClient.castResponse())
|
|
45
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("LongRunningTaskService.getTask.response"))
|
|
46
|
+
.then(commonHttpClient.getBody);
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Returns information about all active long-running tasks (e.g. space export),
|
|
50
|
+
* such as how long each task has been running and the percentage of each task
|
|
51
|
+
* that has completed.
|
|
52
|
+
*
|
|
53
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
54
|
+
* Permission to access the Confluence site ('Can use' global permission).
|
|
55
|
+
*
|
|
56
|
+
* @returns Returned if the requested tasks are returned.
|
|
57
|
+
* @path {GET} /wiki/rest/api/longtask
|
|
58
|
+
* @scopes-current read:content.metadata:confluence
|
|
59
|
+
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task#api-wiki-rest-api-longtask-get
|
|
60
|
+
*/
|
|
61
|
+
this.getTasks = ({ key, start, limit, } = {}) => {
|
|
62
|
+
return this.getClientInstance()
|
|
63
|
+
.request({
|
|
64
|
+
path: "/wiki/rest/api/longtask",
|
|
65
|
+
method: "GET",
|
|
66
|
+
query: {
|
|
67
|
+
key,
|
|
68
|
+
start,
|
|
69
|
+
limit,
|
|
70
|
+
},
|
|
71
|
+
})
|
|
72
|
+
.then(this.getClientInstance().responseHandler({
|
|
73
|
+
200: {
|
|
74
|
+
"application/json": "json",
|
|
75
|
+
},
|
|
76
|
+
}))
|
|
77
|
+
.then(commonHttpClient.castResponse())
|
|
78
|
+
.then(validationSchemaStorage_1.validationSchemaStorage.validator("LongRunningTaskService.getTasks.response"))
|
|
79
|
+
.then(commonHttpClient.getBody);
|
|
80
|
+
};
|
|
77
81
|
}
|
|
78
82
|
static initialize() {
|
|
79
83
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("LongRunningTaskService.getTasks.response", zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LongRunningTaskService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/LongRunningTaskService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,+DAImC;AACnC,wEAAqE;AACrE,gGAAgG;AAChG,MAAa,sBAAuB,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"LongRunningTaskService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/LongRunningTaskService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,+DAImC;AACnC,wEAAqE;AACrE,gGAAgG;AAChG,MAAa,sBAAuB,SAAQ,qCAAiB;IAA7D;;QACE;;;;;;;;;;;;;WAaG;QACH,YAAO,GAAG,CAAC,EACT,EAAE,GAIH,EAAoC,EAAE;YACrC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,8BAA8B;gBACpC,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;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,yCAAyC,CAC1C,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;WAYG;QACH,aAAQ,GAAG,CAAC,EACV,GAAG,EACH,KAAK,EACL,KAAK,MAWH,EAAE,EAAgC,EAAE;YACtC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,yBAAyB;gBAC/B,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE;oBACL,GAAG;oBACH,KAAK;oBACL,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,0CAA0C,CAC3C,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;IA0BJ,CAAC;IAzBC,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,0CAA0C,EAC1C,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,qBAAqB,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,0CAA0C,CAAC,CACxD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,yCAAyC,EACzC,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,yBAAyB,CAAC;SAC9D,CAAC;aACD,QAAQ,CAAC,yCAAyC,CAAC,CACvD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,0DAAwC;SACzC,CAAC,CAAC;IACL,CAAC;CACF;AAtID,wDAsIC"}
|
|
@@ -22,7 +22,7 @@ export declare class RelationService extends CommonHttpService {
|
|
|
22
22
|
* read:content:confluence, write:relation:confluence
|
|
23
23
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put
|
|
24
24
|
*/
|
|
25
|
-
createRelationship({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
|
|
25
|
+
createRelationship: ({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
|
|
26
26
|
/**
|
|
27
27
|
* The name of the relationship. This method supports the 'favourite'
|
|
28
28
|
* (i.e. 'save for later') relationship. You can also specify any other
|
|
@@ -61,23 +61,23 @@ export declare class RelationService extends CommonHttpService {
|
|
|
61
61
|
* The status of the source. This parameter is only used when the
|
|
62
62
|
* `sourceType` is 'content'.
|
|
63
63
|
*/
|
|
64
|
-
sourceStatus?: string;
|
|
64
|
+
sourceStatus?: string | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The status of the target. This parameter is only used when the
|
|
67
67
|
* `targetType` is 'content'.
|
|
68
68
|
*/
|
|
69
|
-
targetStatus?: string;
|
|
69
|
+
targetStatus?: string | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* The version of the source. This parameter is only used when the
|
|
72
72
|
* `sourceType` is 'content' and the `sourceStatus` is 'historical'.
|
|
73
73
|
*/
|
|
74
|
-
sourceVersion?: number;
|
|
74
|
+
sourceVersion?: number | undefined;
|
|
75
75
|
/**
|
|
76
76
|
* The version of the target. This parameter is only used when the
|
|
77
77
|
* `targetType` is 'content' and the `targetStatus` is 'historical'.
|
|
78
78
|
*/
|
|
79
|
-
targetVersion?: number;
|
|
80
|
-
})
|
|
79
|
+
targetVersion?: number | undefined;
|
|
80
|
+
}) => Promise<Relation>;
|
|
81
81
|
/**
|
|
82
82
|
* Deletes a relationship between two entities (user, space, content).
|
|
83
83
|
*
|
|
@@ -93,7 +93,7 @@ export declare class RelationService extends CommonHttpService {
|
|
|
93
93
|
* @scopes-beta write:relation:confluence
|
|
94
94
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-delete
|
|
95
95
|
*/
|
|
96
|
-
deleteRelationship({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
|
|
96
|
+
deleteRelationship: ({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
|
|
97
97
|
/** The name of the relationship. */
|
|
98
98
|
relationName: string;
|
|
99
99
|
/**
|
|
@@ -128,23 +128,23 @@ export declare class RelationService extends CommonHttpService {
|
|
|
128
128
|
* The status of the source. This parameter is only used when the
|
|
129
129
|
* `sourceType` is 'content'.
|
|
130
130
|
*/
|
|
131
|
-
sourceStatus?: string;
|
|
131
|
+
sourceStatus?: string | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* The status of the target. This parameter is only used when the
|
|
134
134
|
* `targetType` is 'content'.
|
|
135
135
|
*/
|
|
136
|
-
targetStatus?: string;
|
|
136
|
+
targetStatus?: string | undefined;
|
|
137
137
|
/**
|
|
138
138
|
* The version of the source. This parameter is only used when the
|
|
139
139
|
* `sourceType` is 'content' and the `sourceStatus` is 'historical'.
|
|
140
140
|
*/
|
|
141
|
-
sourceVersion?: number;
|
|
141
|
+
sourceVersion?: number | undefined;
|
|
142
142
|
/**
|
|
143
143
|
* The version of the target. This parameter is only used when the
|
|
144
144
|
* `targetType` is 'content' and the `targetStatus` is 'historical'.
|
|
145
145
|
*/
|
|
146
|
-
targetVersion?: number;
|
|
147
|
-
})
|
|
146
|
+
targetVersion?: number | undefined;
|
|
147
|
+
}) => Promise<void>;
|
|
148
148
|
/**
|
|
149
149
|
* Returns all target entities that have a particular relationship to the
|
|
150
150
|
* source entity. Note, relationships are one way.
|
|
@@ -164,7 +164,7 @@ export declare class RelationService extends CommonHttpService {
|
|
|
164
164
|
* @scopes-beta read:relation:confluence, read:content-details:confluence
|
|
165
165
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-to-targettype-targetkey-from-sourcetype-get
|
|
166
166
|
*/
|
|
167
|
-
findSourcesForTarget({ relationName, sourceType, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
|
|
167
|
+
findSourcesForTarget: ({ relationName, sourceType, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
|
|
168
168
|
/**
|
|
169
169
|
* The name of the relationship. This method supports relationships created via
|
|
170
170
|
* [Create
|
|
@@ -194,22 +194,22 @@ export declare class RelationService extends CommonHttpService {
|
|
|
194
194
|
* The status of the source. This parameter is only used when the
|
|
195
195
|
* `sourceType` is 'content'.
|
|
196
196
|
*/
|
|
197
|
-
sourceStatus?: string;
|
|
197
|
+
sourceStatus?: string | undefined;
|
|
198
198
|
/**
|
|
199
199
|
* The status of the target. This parameter is only used when the
|
|
200
200
|
* `targetType` is 'content'.
|
|
201
201
|
*/
|
|
202
|
-
targetStatus?: string;
|
|
202
|
+
targetStatus?: string | undefined;
|
|
203
203
|
/**
|
|
204
204
|
* The version of the source. This parameter is only used when the
|
|
205
205
|
* `sourceType` is 'content' and the `sourceStatus` is 'historical'.
|
|
206
206
|
*/
|
|
207
|
-
sourceVersion?: number;
|
|
207
|
+
sourceVersion?: number | undefined;
|
|
208
208
|
/**
|
|
209
209
|
* The version of the target. This parameter is only used when the
|
|
210
210
|
* `targetType` is 'content' and the `targetStatus` is 'historical'.
|
|
211
211
|
*/
|
|
212
|
-
targetVersion?: number;
|
|
212
|
+
targetVersion?: number | undefined;
|
|
213
213
|
/**
|
|
214
214
|
* A multi-value parameter indicating which properties of the response
|
|
215
215
|
* object to expand.
|
|
@@ -219,15 +219,15 @@ export declare class RelationService extends CommonHttpService {
|
|
|
219
219
|
* - `source` returns the source entity.
|
|
220
220
|
* - `target` returns the target entity.
|
|
221
221
|
*/
|
|
222
|
-
expand?: ("
|
|
222
|
+
expand?: ("source" | "target" | "relationData")[] | undefined;
|
|
223
223
|
/** The starting index of the returned relationships. */
|
|
224
|
-
start?: number;
|
|
224
|
+
start?: number | undefined;
|
|
225
225
|
/**
|
|
226
226
|
* The maximum number of relationships to return per page.
|
|
227
227
|
* Note, this may be restricted by fixed system limits.
|
|
228
228
|
*/
|
|
229
|
-
limit?: number;
|
|
230
|
-
})
|
|
229
|
+
limit?: number | undefined;
|
|
230
|
+
}) => Promise<RelationArray>;
|
|
231
231
|
/**
|
|
232
232
|
* Returns all target entities that have a particular relationship to the
|
|
233
233
|
* source entity. Note, relationships are one way.
|
|
@@ -247,7 +247,7 @@ export declare class RelationService extends CommonHttpService {
|
|
|
247
247
|
* @scopes-beta read:relation:confluence, read:content-details:confluence
|
|
248
248
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-get
|
|
249
249
|
*/
|
|
250
|
-
findTargetFromSource({ relationName, sourceType, sourceKey, targetType, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
|
|
250
|
+
findTargetFromSource: ({ relationName, sourceType, sourceKey, targetType, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
|
|
251
251
|
/**
|
|
252
252
|
* The name of the relationship. This method supports relationships created via
|
|
253
253
|
* [Create
|
|
@@ -277,22 +277,22 @@ export declare class RelationService extends CommonHttpService {
|
|
|
277
277
|
* The status of the source. This parameter is only used when the
|
|
278
278
|
* `sourceType` is 'content'.
|
|
279
279
|
*/
|
|
280
|
-
sourceStatus?: string;
|
|
280
|
+
sourceStatus?: string | undefined;
|
|
281
281
|
/**
|
|
282
282
|
* The status of the target. This parameter is only used when the
|
|
283
283
|
* `targetType` is 'content'.
|
|
284
284
|
*/
|
|
285
|
-
targetStatus?: string;
|
|
285
|
+
targetStatus?: string | undefined;
|
|
286
286
|
/**
|
|
287
287
|
* The version of the source. This parameter is only used when the
|
|
288
288
|
* `sourceType` is 'content' and the `sourceStatus` is 'historical'.
|
|
289
289
|
*/
|
|
290
|
-
sourceVersion?: number;
|
|
290
|
+
sourceVersion?: number | undefined;
|
|
291
291
|
/**
|
|
292
292
|
* The version of the target. This parameter is only used when the
|
|
293
293
|
* `targetType` is 'content' and the `targetStatus` is 'historical'.
|
|
294
294
|
*/
|
|
295
|
-
targetVersion?: number;
|
|
295
|
+
targetVersion?: number | undefined;
|
|
296
296
|
/**
|
|
297
297
|
* A multi-value parameter indicating which properties of the response
|
|
298
298
|
* object to expand.
|
|
@@ -302,15 +302,15 @@ export declare class RelationService extends CommonHttpService {
|
|
|
302
302
|
* - `source` returns the source entity.
|
|
303
303
|
* - `target` returns the target entity.
|
|
304
304
|
*/
|
|
305
|
-
expand?: ("
|
|
305
|
+
expand?: ("source" | "target" | "relationData")[] | undefined;
|
|
306
306
|
/** The starting index of the returned relationships. */
|
|
307
|
-
start?: number;
|
|
307
|
+
start?: number | undefined;
|
|
308
308
|
/**
|
|
309
309
|
* The maximum number of relationships to return per page.
|
|
310
310
|
* Note, this may be restricted by fixed system limits.
|
|
311
311
|
*/
|
|
312
|
-
limit?: number;
|
|
313
|
-
})
|
|
312
|
+
limit?: number | undefined;
|
|
313
|
+
}) => Promise<RelationArray>;
|
|
314
314
|
/**
|
|
315
315
|
* Find whether a particular type of relationship exists from a source
|
|
316
316
|
* entity to a target entity. Note, relationships are one way.
|
|
@@ -329,7 +329,7 @@ export declare class RelationService extends CommonHttpService {
|
|
|
329
329
|
* @scopes-beta read:relation:confluence, read:content-details:confluence
|
|
330
330
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-get
|
|
331
331
|
*/
|
|
332
|
-
getRelationship({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, }: {
|
|
332
|
+
getRelationship: ({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, }: {
|
|
333
333
|
/**
|
|
334
334
|
* The name of the relationship. This method supports the 'favourite'
|
|
335
335
|
* (i.e. 'save for later') relationship as well as any other relationship
|
|
@@ -379,22 +379,22 @@ export declare class RelationService extends CommonHttpService {
|
|
|
379
379
|
* The status of the source. This parameter is only used when the
|
|
380
380
|
* `sourceType` is 'content'.
|
|
381
381
|
*/
|
|
382
|
-
sourceStatus?: string;
|
|
382
|
+
sourceStatus?: string | undefined;
|
|
383
383
|
/**
|
|
384
384
|
* The status of the target. This parameter is only used when the
|
|
385
385
|
* `targetType` is 'content'.
|
|
386
386
|
*/
|
|
387
|
-
targetStatus?: string;
|
|
387
|
+
targetStatus?: string | undefined;
|
|
388
388
|
/**
|
|
389
389
|
* The version of the source. This parameter is only used when the
|
|
390
390
|
* `sourceType` is 'content' and the `sourceStatus` is 'historical'.
|
|
391
391
|
*/
|
|
392
|
-
sourceVersion?: number;
|
|
392
|
+
sourceVersion?: number | undefined;
|
|
393
393
|
/**
|
|
394
394
|
* The version of the target. This parameter is only used when the
|
|
395
395
|
* `targetType` is 'content' and the `targetStatus` is 'historical'.
|
|
396
396
|
*/
|
|
397
|
-
targetVersion?: number;
|
|
397
|
+
targetVersion?: number | undefined;
|
|
398
398
|
/**
|
|
399
399
|
* A multi-value parameter indicating which properties of the response
|
|
400
400
|
* object to expand.
|
|
@@ -404,7 +404,7 @@ export declare class RelationService extends CommonHttpService {
|
|
|
404
404
|
* - `source` returns the source entity.
|
|
405
405
|
* - `target` returns the target entity.
|
|
406
406
|
*/
|
|
407
|
-
expand?: ("
|
|
408
|
-
})
|
|
407
|
+
expand?: ("source" | "target" | "relationData")[] | undefined;
|
|
408
|
+
}) => Promise<Relation>;
|
|
409
409
|
static initialize(): void;
|
|
410
410
|
}
|