@resolution/confluence-api-client 0.7.12 → 0.10.0
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/README.md +4 -4
- package/lib/openapi/core/CommonHttpClient.d.ts +29 -0
- package/lib/openapi/core/CommonHttpClient.js +29 -1
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +4 -4
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +38 -0
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +0 -2
- package/lib/openapi/v1/models/common.js +0 -1
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +3 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +1 -0
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +0 -19
- package/lib/openapi/v1/models/contentStates.js +0 -20
- package/lib/openapi/v1/models/contentStates.js.map +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +32 -26
- package/lib/openapi/v1/models/dynamicModules.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +11 -7
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +3 -3
- package/lib/openapi/v1/services/ContentCommentsService.js +3 -3
- package/lib/openapi/v1/services/ContentService.d.ts +6 -6
- package/lib/openapi/v1/services/ContentService.js +6 -6
- package/lib/openapi/v1/services/ContentStatesService.d.ts +6 -49
- package/lib/openapi/v1/services/ContentStatesService.js +3 -91
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +32 -12
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +3 -3
- package/lib/openapi/v1/services/SearchService.js +3 -3
- package/lib/openapi/v1/services/SpaceService.d.ts +6 -6
- package/lib/openapi/v1/services/SpaceService.js +6 -6
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +2 -0
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +5 -2
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/package.json +5 -4
- package/CHANGELOG.md +0 -365
|
@@ -8,14 +8,16 @@ import type { CommonValidationSchemaStorage } from "../../core/CommonValidationS
|
|
|
8
8
|
* descriptor](https://developer.atlassian.com/cloud/confluence/app-descriptor/).
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
+
* ```
|
|
11
12
|
* {
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* "key": "my-webitem",
|
|
14
|
+
* "location": "system.admin/globalsettings",
|
|
15
|
+
* "url": "/my-web-item",
|
|
16
|
+
* "name": {
|
|
17
|
+
* "value": "My Web Item"
|
|
18
|
+
* }
|
|
18
19
|
* }
|
|
20
|
+
* ```
|
|
19
21
|
* @category Models
|
|
20
22
|
*/
|
|
21
23
|
export interface ConnectModule {
|
|
@@ -23,27 +25,29 @@ export interface ConnectModule {
|
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* @example
|
|
28
|
+
* ```
|
|
26
29
|
* {
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
30
|
+
* "webItems": [
|
|
31
|
+
* {
|
|
32
|
+
* "key": "my-webitem",
|
|
33
|
+
* "location": "system.admin/globalsettings",
|
|
34
|
+
* "url": "/my-web-item",
|
|
35
|
+
* "name": {
|
|
36
|
+
* "value": "My Web Item"
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* ],
|
|
40
|
+
* "adminPages": [
|
|
41
|
+
* {
|
|
42
|
+
* "key": "my-admin-page",
|
|
43
|
+
* "name": {
|
|
44
|
+
* "value": "My Admin Page"
|
|
45
|
+
* },
|
|
46
|
+
* "url": "/my-admin-page"
|
|
47
|
+
* }
|
|
48
|
+
* ]
|
|
46
49
|
* }
|
|
50
|
+
* ```
|
|
47
51
|
* @category Models
|
|
48
52
|
*/
|
|
49
53
|
export interface ConnectModules extends Record<string, unknown> {
|
|
@@ -56,9 +60,11 @@ export interface ConnectModules extends Record<string, unknown> {
|
|
|
56
60
|
}
|
|
57
61
|
/**
|
|
58
62
|
* @example
|
|
63
|
+
* ```
|
|
59
64
|
* {
|
|
60
|
-
*
|
|
65
|
+
* "message": "The request is not from a Connect app."
|
|
61
66
|
* }
|
|
67
|
+
* ```
|
|
62
68
|
* @category Models
|
|
63
69
|
*/
|
|
64
70
|
export interface DynamicModulesErrorMessage extends Record<string, unknown> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicModules.js","sourceRoot":"","sources":["../../../../src/openapi/v1/models/dynamicModules.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;
|
|
1
|
+
{"version":3,"file":"dynamicModules.js","sourceRoot":"","sources":["../../../../src/openapi/v1/models/dynamicModules.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AA0EzC,SAAgB,uCAAuC,CACrD,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,eAAe,EACf,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAC7D,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,gBAAgB,EAChB,OAAC;SACE,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KAChE,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,gBAAgB,CAAC,CAC9B,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,4BAA4B,EAC5B,OAAC;SACE,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,4BAA4B,CAAC,CAC1C,CAAC;AACJ,CAAC;AAzBD,0FAyBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type Content, type ContentArray, type ContentChildren, type
|
|
3
|
-
import type
|
|
2
|
+
import { type Content, type ContentArray, type ContentChildren, type LongTask } from "../models/common";
|
|
3
|
+
import { type ContentId, type CopyPageHierarchyRequest, type CopyPageRequest } from "../models/contentChildrenAndDescendants";
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants
|
|
6
6
|
* @category Services
|
|
@@ -258,9 +258,9 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
258
258
|
* Note, this method only returns direct children. To return children at all
|
|
259
259
|
* levels, use [Get descendants by type](#api-content-id-descendant-type-get).
|
|
260
260
|
*
|
|
261
|
-
*
|
|
262
|
-
* `body.
|
|
263
|
-
*
|
|
261
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
262
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
263
|
+
* restricted to a maximum value of 25.
|
|
264
264
|
*
|
|
265
265
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
266
266
|
* permission for the space,
|
|
@@ -465,9 +465,9 @@ export declare class ContentChildrenAndDescendantsService extends CommonHttpServ
|
|
|
465
465
|
*
|
|
466
466
|
* Custom content types that are provided by apps can also be returned.
|
|
467
467
|
*
|
|
468
|
-
*
|
|
469
|
-
* `body.
|
|
470
|
-
*
|
|
468
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
469
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
470
|
+
* restricted to a maximum value of 25.
|
|
471
471
|
*
|
|
472
472
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
473
473
|
* 'View' permission for the space, and permission to view the content if it
|
|
@@ -8,6 +8,7 @@ const zod_1 = require("zod");
|
|
|
8
8
|
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
9
9
|
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
10
10
|
const common_1 = require("../models/common");
|
|
11
|
+
const contentChildrenAndDescendants_1 = require("../models/contentChildrenAndDescendants");
|
|
11
12
|
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
12
13
|
/**
|
|
13
14
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-children-and-descendants
|
|
@@ -222,9 +223,9 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
222
223
|
* Note, this method only returns direct children. To return children at all
|
|
223
224
|
* levels, use [Get descendants by type](#api-content-id-descendant-type-get).
|
|
224
225
|
*
|
|
225
|
-
*
|
|
226
|
-
* `body.
|
|
227
|
-
*
|
|
226
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
227
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
228
|
+
* restricted to a maximum value of 25.
|
|
228
229
|
*
|
|
229
230
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
230
231
|
* permission for the space,
|
|
@@ -359,9 +360,9 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
359
360
|
*
|
|
360
361
|
* Custom content types that are provided by apps can also be returned.
|
|
361
362
|
*
|
|
362
|
-
*
|
|
363
|
-
* `body.
|
|
364
|
-
*
|
|
363
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
364
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
365
|
+
* restricted to a maximum value of 25.
|
|
365
366
|
*
|
|
366
367
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
367
368
|
* 'View' permission for the space, and permission to view the content if it
|
|
@@ -503,7 +504,10 @@ class ContentChildrenAndDescendantsService extends CommonHttpService_1.CommonHtt
|
|
|
503
504
|
.catchall(zod_1.z.unknown()),
|
|
504
505
|
})
|
|
505
506
|
.describe("ContentChildrenAndDescendantsService.movePage.response"));
|
|
506
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
507
|
+
validationSchemaStorage_1.validationSchemaStorage.registerOnce([
|
|
508
|
+
common_1.registerCommonValidationSchemas,
|
|
509
|
+
contentChildrenAndDescendants_1.registerContentChildrenAndDescendantsValidationSchemas,
|
|
510
|
+
]);
|
|
507
511
|
}
|
|
508
512
|
}
|
|
509
513
|
exports.ContentChildrenAndDescendantsService = ContentChildrenAndDescendantsService;
|
|
@@ -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,gEAAgE;AAChE,oEAAiE;AACjE,
|
|
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,gEAAgE;AAChE,oEAAiE;AACjE,6CAM0B;AAC1B,2FAKiD;AACjD,wEAAqE;AACrE;;;GAGG;AACH,MAAa,oCAAqC,SAAQ,qCAAiB;IAA3E;;QACE;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;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,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,UAAU,EAAE;oBACV,KAAK,EAAE;wBACL,MAAM,EAAE;4BACN,OAAO,EAAE,KAAK;yBACf;qBACF;iBACF;gBACD,IAAI,EAAE,eAAe;aACtB,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,gCAAgC,EAAE,MAAM;iBACzC;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;iBACA,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CACjC,iDAAuB,CAAC,SAAS,CAC/B,wDAAwD,CACzD,CACF,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA6BG;QACH,sBAAiB,GAAG,CAAC,EACnB,EAAE,EACF,wBAAwB,GAKzB,EAAqB,EAAE;YACtB,OAAO,IAAI,CAAC,iBA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AAM,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,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;YACnC,wCAA+B;YAC/B,sFAAsD;SACvD,CAAC,CAAC;IACL,CAAC;CACF;AAxhCD,oFAwhCC"}
|
|
@@ -12,9 +12,9 @@ export declare class ContentCommentsService extends CommonHttpService {
|
|
|
12
12
|
*
|
|
13
13
|
* Returns the comments on a piece of content.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
* `body.
|
|
17
|
-
*
|
|
15
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
16
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
17
|
+
* restricted to a maximum value of 25.
|
|
18
18
|
*
|
|
19
19
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
20
20
|
* permission for the space,
|
|
@@ -23,9 +23,9 @@ class ContentCommentsService extends CommonHttpService_1.CommonHttpService {
|
|
|
23
23
|
*
|
|
24
24
|
* Returns the comments on a piece of content.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
* `body.
|
|
28
|
-
*
|
|
26
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
27
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
28
|
+
* restricted to a maximum value of 25.
|
|
29
29
|
*
|
|
30
30
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View'
|
|
31
31
|
* permission for the space,
|
|
@@ -226,9 +226,9 @@ export declare class ContentService extends CommonHttpService {
|
|
|
226
226
|
*
|
|
227
227
|
* By default, the following objects are expanded: `space`, `history`, `version`.
|
|
228
228
|
*
|
|
229
|
-
*
|
|
230
|
-
* `body.
|
|
231
|
-
*
|
|
229
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
230
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
231
|
+
* restricted to a maximum value of 25.
|
|
232
232
|
*
|
|
233
233
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
234
234
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
@@ -862,9 +862,9 @@ export declare class ContentService extends CommonHttpService {
|
|
|
862
862
|
* The response to this will have a `prev` URL similar to the `next` in the
|
|
863
863
|
* example response.
|
|
864
864
|
*
|
|
865
|
-
*
|
|
866
|
-
* `body.
|
|
867
|
-
*
|
|
865
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
866
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
867
|
+
* restricted to a maximum value of 25.
|
|
868
868
|
*
|
|
869
869
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
870
870
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
@@ -165,9 +165,9 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
165
165
|
*
|
|
166
166
|
* By default, the following objects are expanded: `space`, `history`, `version`.
|
|
167
167
|
*
|
|
168
|
-
*
|
|
169
|
-
* `body.
|
|
170
|
-
*
|
|
168
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
169
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
170
|
+
* restricted to a maximum value of 25.
|
|
171
171
|
*
|
|
172
172
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
173
173
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
@@ -459,9 +459,9 @@ class ContentService extends CommonHttpService_1.CommonHttpService {
|
|
|
459
459
|
* The response to this will have a `prev` URL similar to the `next` in the
|
|
460
460
|
* example response.
|
|
461
461
|
*
|
|
462
|
-
*
|
|
463
|
-
* `body.
|
|
464
|
-
*
|
|
462
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
463
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
464
|
+
* restricted to a maximum value of 25.
|
|
465
465
|
*
|
|
466
466
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
467
467
|
* Permission to access the Confluence site ('Can use' global permission).
|
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type
|
|
3
|
-
import { type AvailableContentStates, type ContentState, type
|
|
2
|
+
import { type ContentArray } from "../models/common";
|
|
3
|
+
import { type AvailableContentStates, type ContentState, type ContentStateResponse, type ContentStateRestInput, type ContentStateSettings } from "../models/contentStates";
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states
|
|
6
6
|
* @category Services
|
|
7
7
|
*/
|
|
8
8
|
export declare class ContentStatesService extends CommonHttpService {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a long running task that Removes content state from draft or published
|
|
11
|
-
* versions of pages specified.
|
|
12
|
-
*
|
|
13
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
14
|
-
* Content Edit Permission for a content to have its state removed via this
|
|
15
|
-
* endpoint.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
* @returns Returned if a task to remove content states is created. Returns the taskId.
|
|
19
|
-
* This task id can be passed into `/wiki/rest/api/content-states/task/{taskId}`
|
|
20
|
-
* @path POST `/wiki/rest/api/content-states/delete`
|
|
21
|
-
* @scopes-current write:confluence-content
|
|
22
|
-
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
23
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-delete-post
|
|
24
|
-
* @param params
|
|
25
|
-
*/
|
|
26
|
-
bulkRemoveContentStates: ({ status, requestBody, }: {
|
|
27
|
-
/** Set status to one of [current,draft]. */
|
|
28
|
-
status: "current" | "draft";
|
|
29
|
-
requestBody: unknown;
|
|
30
|
-
}) => Promise<AsyncId>;
|
|
31
9
|
/**
|
|
32
10
|
* Gets content states that are available for the content to be set as.
|
|
33
11
|
* Will return all enabled Space Content States.
|
|
@@ -93,9 +71,9 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
93
71
|
/**
|
|
94
72
|
* Returns all content that has the provided content state in a space.
|
|
95
73
|
*
|
|
96
|
-
*
|
|
97
|
-
* `body.
|
|
98
|
-
*
|
|
74
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
75
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
76
|
+
* restricted to a maximum value of 25.
|
|
99
77
|
*
|
|
100
78
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
101
79
|
* 'View' permission for the space.
|
|
@@ -154,27 +132,6 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
154
132
|
/** The key of the space to be queried for its content state settings. */
|
|
155
133
|
spaceKey: string;
|
|
156
134
|
}) => Promise<ContentState[]>;
|
|
157
|
-
/**
|
|
158
|
-
* Get Status of long running task that was previously created to remove content
|
|
159
|
-
* states from content.
|
|
160
|
-
* User must first create a task by passing in details to the
|
|
161
|
-
* /wiki/rest/api/content-states DELETE endpoint.
|
|
162
|
-
*
|
|
163
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
164
|
-
* Must have created long running task
|
|
165
|
-
*
|
|
166
|
-
* @deprecated
|
|
167
|
-
* @returns Task found. State of task is returned
|
|
168
|
-
* @path GET `/wiki/rest/api/content-states/task/{taskId}`
|
|
169
|
-
* @scopes-current read:confluence-content
|
|
170
|
-
* @scopes-beta read:content:confluence
|
|
171
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-task-taskid-get
|
|
172
|
-
* @param params
|
|
173
|
-
*/
|
|
174
|
-
getTaskUpdate: ({ taskId, }: {
|
|
175
|
-
/** taskId returned by delete requests to /wiki/rest/api/content-states */
|
|
176
|
-
taskId: string;
|
|
177
|
-
}) => Promise<ContentStateBulkSetTaskUpdate>;
|
|
178
135
|
/**
|
|
179
136
|
* Removes the content state of the content specified and creates a new version
|
|
180
137
|
* (publishes the content without changing the body) of the content with the new
|
|
@@ -232,7 +189,7 @@ export declare class ContentStatesService extends CommonHttpService {
|
|
|
232
189
|
* If current, state will be placed onto a new version of the content with same
|
|
233
190
|
* body as previous version.
|
|
234
191
|
*/
|
|
235
|
-
status
|
|
192
|
+
status: "current" | "draft";
|
|
236
193
|
/**
|
|
237
194
|
* Content state fields for state. Pass in id for an existing state, or new name
|
|
238
195
|
* and color for best matching existing state, or new state if allowed in space.
|
|
@@ -17,45 +17,6 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
|
17
17
|
class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
|
-
/**
|
|
21
|
-
* Creates a long running task that Removes content state from draft or published
|
|
22
|
-
* versions of pages specified.
|
|
23
|
-
*
|
|
24
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
25
|
-
* Content Edit Permission for a content to have its state removed via this
|
|
26
|
-
* endpoint.
|
|
27
|
-
*
|
|
28
|
-
* @deprecated
|
|
29
|
-
* @returns Returned if a task to remove content states is created. Returns the taskId.
|
|
30
|
-
* This task id can be passed into `/wiki/rest/api/content-states/task/{taskId}`
|
|
31
|
-
* @path POST `/wiki/rest/api/content-states/delete`
|
|
32
|
-
* @scopes-current write:confluence-content
|
|
33
|
-
* @scopes-beta write:content:confluence, read:content-details:confluence
|
|
34
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-delete-post
|
|
35
|
-
* @param params
|
|
36
|
-
*/
|
|
37
|
-
this.bulkRemoveContentStates = ({ status, requestBody, }) => {
|
|
38
|
-
return this.getClientInstance()
|
|
39
|
-
.request({
|
|
40
|
-
path: "/wiki/rest/api/content-states/delete",
|
|
41
|
-
method: "POST",
|
|
42
|
-
query: {
|
|
43
|
-
status,
|
|
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(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.bulkRemoveContentStates.response")))
|
|
57
|
-
.then(commonHttpClient.getBody);
|
|
58
|
-
};
|
|
59
20
|
/**
|
|
60
21
|
* Gets content states that are available for the content to be set as.
|
|
61
22
|
* Will return all enabled Space Content States.
|
|
@@ -164,9 +125,9 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
164
125
|
/**
|
|
165
126
|
* Returns all content that has the provided content state in a space.
|
|
166
127
|
*
|
|
167
|
-
*
|
|
168
|
-
* `body.
|
|
169
|
-
*
|
|
128
|
+
* If the expand query parameter is used with the `body.export_view` and/or
|
|
129
|
+
* `body.styled_view` properties, then the query limit parameter will be
|
|
130
|
+
* restricted to a maximum value of 25.
|
|
170
131
|
*
|
|
171
132
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
172
133
|
* 'View' permission for the space.
|
|
@@ -267,41 +228,6 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
267
228
|
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getSpaceContentStates.response")))
|
|
268
229
|
.then(commonHttpClient.getBody);
|
|
269
230
|
};
|
|
270
|
-
/**
|
|
271
|
-
* Get Status of long running task that was previously created to remove content
|
|
272
|
-
* states from content.
|
|
273
|
-
* User must first create a task by passing in details to the
|
|
274
|
-
* /wiki/rest/api/content-states DELETE endpoint.
|
|
275
|
-
*
|
|
276
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**
|
|
277
|
-
* Must have created long running task
|
|
278
|
-
*
|
|
279
|
-
* @deprecated
|
|
280
|
-
* @returns Task found. State of task is returned
|
|
281
|
-
* @path GET `/wiki/rest/api/content-states/task/{taskId}`
|
|
282
|
-
* @scopes-current read:confluence-content
|
|
283
|
-
* @scopes-beta read:content:confluence
|
|
284
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-states#api-wiki-rest-api-content-states-task-taskid-get
|
|
285
|
-
* @param params
|
|
286
|
-
*/
|
|
287
|
-
this.getTaskUpdate = ({ taskId, }) => {
|
|
288
|
-
return this.getClientInstance()
|
|
289
|
-
.request({
|
|
290
|
-
path: "/wiki/rest/api/content-states/task/{taskId}",
|
|
291
|
-
method: "GET",
|
|
292
|
-
pathParams: {
|
|
293
|
-
taskId,
|
|
294
|
-
},
|
|
295
|
-
})
|
|
296
|
-
.then(this.getClientInstance().responseHandler({
|
|
297
|
-
200: {
|
|
298
|
-
"application/json": "json",
|
|
299
|
-
},
|
|
300
|
-
}))
|
|
301
|
-
.then(commonHttpClient.castResponse())
|
|
302
|
-
.then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentStatesService.getTaskUpdate.response")))
|
|
303
|
-
.then(commonHttpClient.getBody);
|
|
304
|
-
};
|
|
305
231
|
/**
|
|
306
232
|
* Removes the content state of the content specified and creates a new version
|
|
307
233
|
* (publishes the content without changing the body) of the content with the new
|
|
@@ -399,20 +325,6 @@ class ContentStatesService extends CommonHttpService_1.CommonHttpService {
|
|
|
399
325
|
body: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("ContentState")),
|
|
400
326
|
})
|
|
401
327
|
.describe("ContentStatesService.getCustomContentStates.response"));
|
|
402
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.bulkRemoveContentStates.response", zod_1.z
|
|
403
|
-
.object({
|
|
404
|
-
status: zod_1.z.literal(200),
|
|
405
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
406
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("AsyncId"),
|
|
407
|
-
})
|
|
408
|
-
.describe("ContentStatesService.bulkRemoveContentStates.response"));
|
|
409
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getTaskUpdate.response", zod_1.z
|
|
410
|
-
.object({
|
|
411
|
-
status: zod_1.z.literal(200),
|
|
412
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
413
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentStateBulkSetTaskUpdate"),
|
|
414
|
-
})
|
|
415
|
-
.describe("ContentStatesService.getTaskUpdate.response"));
|
|
416
328
|
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentStatesService.getContentState.response", zod_1.z
|
|
417
329
|
.object({
|
|
418
330
|
status: zod_1.z.literal(200),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentStatesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentStatesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"ContentStatesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentStatesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,gEAAgE;AAChE,oEAAiE;AACjE,6CAG0B;AAC1B,2DAOiC;AACjC,wEAAqE;AACrE;;;GAGG;AACH,MAAa,oBAAqB,SAAQ,qCAAiB;IAA3D;;QACE;;;;;;;;;;;;;;;;WAgBG;QACH,8BAAyB,GAAG,CAAC,EAC3B,EAAE,GAIH,EAAmC,EAAE;YACpC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,6CAA6C;gBACnD,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,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CACjC,iDAAuB,CAAC,SAAS,CAC/B,yDAAyD,CAC1D,CACF,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;;WAcG;QACH,oBAAe,GAAG,CAAC,EACjB,EAAE,EACF,MAAM,GAMP,EAAiC,EAAE;YAClC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,mCAAmC;gBACzC,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;iBACP;aACF,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,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AC,qDAAqD,CAAC,CACnE,CAAC;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,kBAAkB,CACxC,uDAAuD,EACvD,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,sBAAsB,CAAC;SAC3D,CAAC;aACD,QAAQ,CAAC,uDAAuD,CAAC,CACrE,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,sDAAsC;YACtC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA1jBD,oDA0jBC"}
|
|
@@ -39,8 +39,13 @@ export declare class RelationService extends CommonHttpService {
|
|
|
39
39
|
/**
|
|
40
40
|
* - The identifier for the source entity:
|
|
41
41
|
*
|
|
42
|
-
* - If `sourceType` is
|
|
43
|
-
*
|
|
42
|
+
* - If `sourceType` is `user`, then specify either `current` (logged-in user),
|
|
43
|
+
* the user key of the user, or
|
|
44
|
+
* the account ID of the user. Note that the user key has been deprecated in favor
|
|
45
|
+
* of the account ID for this parameter. See the
|
|
46
|
+
* [migration
|
|
47
|
+
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
48
|
+
* for details.
|
|
44
49
|
* - If `sourceType` is 'content', then specify the content ID.
|
|
45
50
|
* - If `sourceType` is 'space', then specify the space key.
|
|
46
51
|
*/
|
|
@@ -53,10 +58,15 @@ export declare class RelationService extends CommonHttpService {
|
|
|
53
58
|
/**
|
|
54
59
|
* - The identifier for the target entity:
|
|
55
60
|
*
|
|
56
|
-
* - If `
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
61
|
+
* - If `targetType` is `user`, then specify either `current` (logged-in user),
|
|
62
|
+
* the user key of the user, or
|
|
63
|
+
* the account ID of the user. Note that the user key has been deprecated in favor
|
|
64
|
+
* of the account ID for this parameter. See the
|
|
65
|
+
* [migration
|
|
66
|
+
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
67
|
+
* for details.
|
|
68
|
+
* - If `targetType` is 'content', then specify the content ID.
|
|
69
|
+
* - If `targetType` is 'space', then specify the space key.
|
|
60
70
|
*/
|
|
61
71
|
targetKey: string;
|
|
62
72
|
/**
|
|
@@ -106,8 +116,13 @@ export declare class RelationService extends CommonHttpService {
|
|
|
106
116
|
/**
|
|
107
117
|
* - The identifier for the source entity:
|
|
108
118
|
*
|
|
109
|
-
* - If `sourceType` is
|
|
110
|
-
*
|
|
119
|
+
* - If `sourceType` is `user`, then specify either `current` (logged-in user),
|
|
120
|
+
* the user key of the user, or
|
|
121
|
+
* the account ID of the user. Note that the user key has been deprecated in favor
|
|
122
|
+
* of the account ID for this parameter. See the
|
|
123
|
+
* [migration
|
|
124
|
+
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
125
|
+
* for details.
|
|
111
126
|
* - If `sourceType` is 'content', then specify the content ID.
|
|
112
127
|
* - If `sourceType` is 'space', then specify the space key.
|
|
113
128
|
*/
|
|
@@ -120,10 +135,15 @@ export declare class RelationService extends CommonHttpService {
|
|
|
120
135
|
/**
|
|
121
136
|
* - The identifier for the target entity:
|
|
122
137
|
*
|
|
123
|
-
* - If `
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
138
|
+
* - If `targetType` is `user`, then specify either `current` (logged-in user),
|
|
139
|
+
* the user key of the user, or
|
|
140
|
+
* the account ID of the user. Note that the user key has been deprecated in favor
|
|
141
|
+
* of the account ID for this parameter. See the
|
|
142
|
+
* [migration
|
|
143
|
+
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)
|
|
144
|
+
* for details.
|
|
145
|
+
* - If `targetType` is 'content', then specify the content ID.
|
|
146
|
+
* - If `targetType` is 'space', then specify the space key.
|
|
127
147
|
*/
|
|
128
148
|
targetKey: string;
|
|
129
149
|
/**
|