confluence.js 1.7.2 → 1.7.4
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/.eslintrc.yml +91 -0
- package/CHANGELOG.md +6 -1
- package/README.md +1 -1
- package/assets/logo.svg +72 -0
- package/out/api/contentAttachments.js +4 -4
- package/out/api/contentAttachments.js.map +1 -1
- package/out/api/contentComments.js +1 -0
- package/out/api/contentComments.js.map +1 -1
- package/out/api/models/contentCreate.d.ts +9 -0
- package/out/api/models/contentUpdate.d.ts +2 -0
- package/out/api/space.js +2 -0
- package/out/api/space.js.map +1 -1
- package/out/clients/baseClient.js +3 -3
- package/out/clients/baseClient.js.map +1 -1
- package/out/clients/serverClient.js.map +1 -1
- package/package.json +24 -22
- package/src/api/contentComments.ts +1 -0
- package/src/api/models/contentCreate.ts +9 -0
- package/src/api/models/contentUpdate.ts +2 -0
- package/src/api/parameters/asyncConvertContentBodyRequest.ts +23 -23
- package/src/api/parameters/convertContentBody.ts +12 -12
- package/src/api/parameters/getAndAsyncConvertMacroBodyByMacroId.ts +23 -23
- package/src/api/parameters/getAndConvertMacroBodyByMacroId.ts +37 -37
- package/src/api/parameters/getAttachments.ts +38 -38
- package/src/api/parameters/getSpaces.ts +17 -17
- package/src/api/parameters/getUser.ts +8 -8
- package/src/api/space.ts +2 -0
- package/src/clients/baseClient.ts +2 -3
- package/src/clients/serverClient.ts +3 -1
- package/src/config.ts +20 -20
- package/src/server/parameters/convertContentBody.ts +12 -12
package/.eslintrc.yml
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
parser: "@typescript-eslint/parser"
|
|
2
|
+
extends:
|
|
3
|
+
- airbnb-base
|
|
4
|
+
parserOptions:
|
|
5
|
+
ecmaVersion: 2018
|
|
6
|
+
project: ./tsconfig.lint.json
|
|
7
|
+
plugins:
|
|
8
|
+
- import
|
|
9
|
+
env:
|
|
10
|
+
node: true
|
|
11
|
+
browser: true
|
|
12
|
+
rules:
|
|
13
|
+
"@typescript-eslint/lines-between-class-members": off
|
|
14
|
+
arrow-parens:
|
|
15
|
+
- error
|
|
16
|
+
- as-needed
|
|
17
|
+
class-methods-use-this: off
|
|
18
|
+
eol-last: error
|
|
19
|
+
import/extensions: off
|
|
20
|
+
import/no-cycle: off
|
|
21
|
+
import/no-unresolved: off
|
|
22
|
+
import/prefer-default-export: off
|
|
23
|
+
linebreak-style:
|
|
24
|
+
- error
|
|
25
|
+
- unix
|
|
26
|
+
lines-between-class-members: off
|
|
27
|
+
max-len: off
|
|
28
|
+
no-trailing-spaces: error
|
|
29
|
+
no-underscore-dangle: off
|
|
30
|
+
no-dupe-class-members: off
|
|
31
|
+
no-unused-vars: off
|
|
32
|
+
no-useless-constructor: off
|
|
33
|
+
no-empty-function: off
|
|
34
|
+
no-param-reassign: off
|
|
35
|
+
no-shadow: off
|
|
36
|
+
no-redeclare: off
|
|
37
|
+
padding-line-between-statements:
|
|
38
|
+
- error
|
|
39
|
+
- blankLine: always
|
|
40
|
+
prev: "*"
|
|
41
|
+
next:
|
|
42
|
+
- block
|
|
43
|
+
- block-like
|
|
44
|
+
- cjs-export
|
|
45
|
+
- class
|
|
46
|
+
- const
|
|
47
|
+
- export
|
|
48
|
+
- import
|
|
49
|
+
- let
|
|
50
|
+
- var
|
|
51
|
+
- blankLine: always
|
|
52
|
+
prev:
|
|
53
|
+
- block
|
|
54
|
+
- block-like
|
|
55
|
+
- cjs-export
|
|
56
|
+
- class
|
|
57
|
+
- const
|
|
58
|
+
- export
|
|
59
|
+
- import
|
|
60
|
+
- let
|
|
61
|
+
- var
|
|
62
|
+
next: "*"
|
|
63
|
+
- blankLine: any
|
|
64
|
+
prev:
|
|
65
|
+
- const
|
|
66
|
+
- let
|
|
67
|
+
- var
|
|
68
|
+
next:
|
|
69
|
+
- const
|
|
70
|
+
- let
|
|
71
|
+
- var
|
|
72
|
+
- blankLine: never
|
|
73
|
+
prev:
|
|
74
|
+
- import
|
|
75
|
+
next:
|
|
76
|
+
- import
|
|
77
|
+
- blankLine: always
|
|
78
|
+
prev:
|
|
79
|
+
- import
|
|
80
|
+
next:
|
|
81
|
+
- export
|
|
82
|
+
- blankLine: any
|
|
83
|
+
prev:
|
|
84
|
+
- export
|
|
85
|
+
next:
|
|
86
|
+
- export
|
|
87
|
+
settings:
|
|
88
|
+
import/parsers:
|
|
89
|
+
"@typescript-eslint/parser":
|
|
90
|
+
- .ts
|
|
91
|
+
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img alt="Confluence.js logo" src="
|
|
2
|
+
<img alt="Confluence.js logo" src="./assets/logo.svg"/>
|
|
3
3
|
|
|
4
4
|
<a href="https://www.npmjs.com/package/confluence.js"><img alt="NPM version" src="https://img.shields.io/npm/v/confluence.js.svg?maxAge=3600&style=flat-square" /></a>
|
|
5
5
|
<a href="https://www.npmjs.com/package/confluence.js"><img alt="NPM downloads per month" src="https://img.shields.io/npm/dm/confluence.js.svg?maxAge=3600&style=flat-square" /></a>
|
package/assets/logo.svg
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 25.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.0" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 700 121.94" style="enable-background:new 0 0 700 121.94;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#2A56A3;}
|
|
7
|
+
.st1{fill:#3BB07D;}
|
|
8
|
+
</style>
|
|
9
|
+
<g>
|
|
10
|
+
<path class="st0" d="M22,88.69c-5.13-2.48-9.06-5.98-11.81-10.49c-2.74-4.51-4.12-9.7-4.12-15.58c0-7.77,1.78-14.78,5.34-21.02
|
|
11
|
+
c3.56-6.24,8.58-11.15,15.04-14.75c6.47-3.59,13.88-5.39,22.25-5.39c6.14,0,11.56,1.05,16.27,3.14c4.7,2.09,8.26,5.1,10.68,9.02
|
|
12
|
+
l-11.47,9.41c-3.66-5.36-9.18-8.04-16.56-8.04c-5.03,0-9.47,1.18-13.33,3.53c-3.86,2.35-6.84,5.55-8.97,9.6
|
|
13
|
+
c-2.12,4.05-3.19,8.56-3.19,13.52c0,5.29,1.68,9.49,5.05,12.59c3.36,3.1,8.08,4.65,14.16,4.65c7.25,0,13.33-2.65,18.23-7.94
|
|
14
|
+
l9.41,9.6c-6.8,7.91-16.46,11.86-29.01,11.86C33.12,92.41,27.13,91.17,22,88.69z"/>
|
|
15
|
+
<path class="st0" d="M86.48,89.08c-4.02-1.96-7.12-4.72-9.31-8.28c-2.19-3.56-3.28-7.69-3.28-12.4c0-5.81,1.37-11.04,4.12-15.68
|
|
16
|
+
c2.74-4.64,6.53-8.3,11.37-10.98c4.83-2.68,10.29-4.02,16.37-4.02c5.36,0,10.03,0.98,14.01,2.94c3.98,1.96,7.07,4.72,9.26,8.28
|
|
17
|
+
c2.19,3.56,3.28,7.69,3.28,12.4c0,5.82-1.36,11.04-4.07,15.68c-2.71,4.64-6.5,8.3-11.37,10.98c-4.87,2.68-10.34,4.02-16.42,4.02
|
|
18
|
+
C95.15,92.02,90.5,91.04,86.48,89.08z M109.36,77.17c2.35-1.47,4.18-3.51,5.49-6.12c1.31-2.61,1.96-5.62,1.96-9.02
|
|
19
|
+
c0-3.59-1.05-6.43-3.14-8.53c-2.09-2.09-5.03-3.14-8.82-3.14c-3.01,0-5.68,0.74-8.04,2.21c-2.35,1.47-4.18,3.51-5.49,6.12
|
|
20
|
+
c-1.31,2.61-1.96,5.62-1.96,9.02c0,3.59,1.06,6.44,3.19,8.53c2.12,2.09,5.08,3.14,8.87,3.14
|
|
21
|
+
C104.36,79.38,107.01,78.64,109.36,77.17z"/>
|
|
22
|
+
<path class="st0" d="M192.17,42.38c3.46,3.1,5.19,7.53,5.19,13.28c0,2.16-0.23,4.28-0.69,6.37l-5.88,29.2h-15.29l5.68-28.22
|
|
23
|
+
c0.26-1.11,0.39-2.32,0.39-3.63c0-2.74-0.75-4.83-2.25-6.27c-1.5-1.44-3.76-2.16-6.76-2.16c-3.92,0-7.17,1.13-9.75,3.38
|
|
24
|
+
c-2.58,2.25-4.33,5.63-5.24,10.14l-5.29,26.75H137l10.49-52.72h14.5l-1.18,5.68c4.7-4.31,10.49-6.47,17.35-6.47
|
|
25
|
+
C184.04,37.73,188.71,39.28,192.17,42.38z"/>
|
|
26
|
+
<path class="st0" d="M234.95,31.7c-1.34,1.27-2.27,3.28-2.79,6.03l-0.39,1.96h13.43l-2.35,11.76H229.8l-7.94,39.79h-15.29
|
|
27
|
+
l7.94-39.79h-8.23l2.35-11.76h8.23l0.59-3.04c1.24-5.88,3.81-10.5,7.69-13.87c3.89-3.36,8.97-5.05,15.24-5.05
|
|
28
|
+
c2.35,0,4.59,0.26,6.71,0.78c2.12,0.52,3.94,1.24,5.44,2.16l-5.98,10.98c-1.63-1.24-3.66-1.86-6.08-1.86
|
|
29
|
+
C238.13,29.79,236.29,30.42,234.95,31.7z M257.15,18.52h15.29l-14.5,72.72h-15.29L257.15,18.52z"/>
|
|
30
|
+
<path class="st0" d="M335.74,38.51l-10.49,52.72h-14.5l1.08-5.68c-2.29,2.16-4.9,3.77-7.84,4.85s-6.04,1.62-9.31,1.62
|
|
31
|
+
c-5.75,0-10.34-1.57-13.77-4.7c-3.43-3.14-5.15-7.55-5.15-13.23c0-2.16,0.23-4.28,0.69-6.37l5.78-29.2h15.29l-5.59,28.22
|
|
32
|
+
c-0.26,1.24-0.39,2.52-0.39,3.82c0,5.49,2.94,8.23,8.82,8.23c3.85,0,7.04-1.13,9.56-3.38c2.51-2.25,4.23-5.63,5.15-10.14
|
|
33
|
+
l5.39-26.75H335.74z"/>
|
|
34
|
+
<path class="st0" d="M395.81,68.99h-40.38c0.52,7.19,5.06,10.78,13.62,10.78c2.68,0,5.24-0.42,7.69-1.27
|
|
35
|
+
c2.45-0.85,4.59-2.06,6.42-3.63l6.37,10.09c-2.94,2.35-6.31,4.12-10.09,5.29s-7.78,1.76-11.96,1.76c-5.42,0-10.18-0.96-14.26-2.89
|
|
36
|
+
c-4.08-1.93-7.22-4.69-9.41-8.28c-2.19-3.59-3.28-7.74-3.28-12.45c0-5.81,1.32-11.06,3.97-15.73c2.65-4.67,6.32-8.33,11.02-10.98
|
|
37
|
+
c4.7-2.65,10.06-3.97,16.07-3.97c5.1,0,9.52,0.95,13.28,2.84c3.76,1.9,6.66,4.61,8.72,8.13c2.06,3.53,3.09,7.61,3.09,12.25
|
|
38
|
+
C396.7,63.37,396.4,66.05,395.81,68.99z M361.81,52.08c-2.48,1.93-4.25,4.59-5.29,7.99h26.17c0-3.4-1.06-6.06-3.19-7.99
|
|
39
|
+
c-2.12-1.93-4.98-2.89-8.57-2.89C367.33,49.19,364.29,50.16,361.81,52.08z"/>
|
|
40
|
+
<path class="st0" d="M456.18,42.38c3.46,3.1,5.19,7.53,5.19,13.28c0,2.16-0.23,4.28-0.69,6.37l-5.88,29.2h-15.29l5.68-28.22
|
|
41
|
+
c0.26-1.11,0.39-2.32,0.39-3.63c0-2.74-0.75-4.83-2.25-6.27c-1.5-1.44-3.76-2.16-6.76-2.16c-3.92,0-7.17,1.13-9.75,3.38
|
|
42
|
+
s-4.33,5.63-5.24,10.14l-5.29,26.75h-15.29l10.49-52.72H426l-1.18,5.68c4.7-4.31,10.49-6.47,17.35-6.47
|
|
43
|
+
C448.05,37.73,452.72,39.28,456.18,42.38z"/>
|
|
44
|
+
<path class="st0" d="M482.94,89.08c-4.05-1.96-7.17-4.72-9.36-8.28c-2.19-3.56-3.28-7.69-3.28-12.4c0-5.81,1.37-11.04,4.12-15.68
|
|
45
|
+
c2.74-4.64,6.57-8.3,11.47-10.98c4.9-2.68,10.42-4.02,16.56-4.02c5.62,0,10.47,1.16,14.55,3.48c4.08,2.32,7.14,5.6,9.16,9.85
|
|
46
|
+
l-12.94,6.47c-2.29-4.77-6.21-7.15-11.76-7.15c-3.01,0-5.7,0.74-8.08,2.21c-2.39,1.47-4.25,3.51-5.59,6.12
|
|
47
|
+
c-1.34,2.61-2.01,5.59-2.01,8.92c0,3.59,1.08,6.45,3.23,8.58c2.16,2.12,5.16,3.18,9.02,3.18c5.62,0,9.93-2.35,12.94-7.06
|
|
48
|
+
l11.27,7.06c-2.55,3.99-6.03,7.09-10.44,9.31c-4.41,2.22-9.29,3.33-14.65,3.33C491.72,92.02,486.99,91.04,482.94,89.08z"/>
|
|
49
|
+
<path class="st0" d="M582.9,68.99h-40.38c0.52,7.19,5.06,10.78,13.62,10.78c2.68,0,5.24-0.42,7.69-1.27
|
|
50
|
+
c2.45-0.85,4.59-2.06,6.42-3.63l6.37,10.09c-2.94,2.35-6.31,4.12-10.09,5.29s-7.78,1.76-11.96,1.76c-5.42,0-10.18-0.96-14.26-2.89
|
|
51
|
+
c-4.08-1.93-7.22-4.69-9.41-8.28c-2.19-3.59-3.28-7.74-3.28-12.45c0-5.81,1.32-11.06,3.97-15.73c2.65-4.67,6.32-8.33,11.02-10.98
|
|
52
|
+
c4.7-2.65,10.06-3.97,16.07-3.97c5.1,0,9.52,0.95,13.28,2.84c3.76,1.9,6.66,4.61,8.72,8.13c2.06,3.53,3.09,7.61,3.09,12.25
|
|
53
|
+
C583.78,63.37,583.48,66.05,582.9,68.99z M548.89,52.08c-2.48,1.93-4.25,4.59-5.29,7.99h26.17c0-3.4-1.06-6.06-3.19-7.99
|
|
54
|
+
c-2.12-1.93-4.98-2.89-8.57-2.89C554.41,49.19,551.37,50.16,548.89,52.08z"/>
|
|
55
|
+
<path class="st1" d="M588.58,89.52c-1.7-1.67-2.55-3.77-2.55-6.32c0-3,0.98-5.45,2.94-7.35c1.96-1.89,4.38-2.84,7.25-2.84
|
|
56
|
+
c2.61,0,4.75,0.82,6.42,2.45c1.67,1.63,2.5,3.76,2.5,6.37c0,2.94-1,5.38-2.99,7.3c-1.99,1.93-4.36,2.89-7.1,2.89
|
|
57
|
+
C592.43,92.02,590.28,91.18,588.58,89.52z"/>
|
|
58
|
+
<path class="st1" d="M595.24,108.09l6.08-11.07c1.76,1.24,3.89,1.86,6.37,1.86c2.09,0,3.74-0.62,4.95-1.86
|
|
59
|
+
c1.21-1.24,2.07-3.2,2.6-5.88l10.58-52.63h15.29l-10.49,52.23c-2.68,13.52-10.26,20.29-22.74,20.29
|
|
60
|
+
C602.79,111.03,598.57,110.05,595.24,108.09z M629.59,28.86c-1.67-1.53-2.5-3.41-2.5-5.64c0-2.61,0.93-4.79,2.79-6.52
|
|
61
|
+
c1.86-1.73,4.29-2.6,7.3-2.6c2.68,0,4.85,0.73,6.52,2.21c1.67,1.47,2.5,3.28,2.5,5.44c0,2.81-0.95,5.08-2.84,6.81
|
|
62
|
+
c-1.9,1.73-4.35,2.6-7.35,2.6C633.4,31.16,631.26,30.39,629.59,28.86z"/>
|
|
63
|
+
<path class="st1" d="M650.95,90.5c-4.08-1.01-7.27-2.33-9.55-3.97l5.88-11.07c2.29,1.5,5.08,2.71,8.38,3.63
|
|
64
|
+
c3.3,0.92,6.62,1.37,9.95,1.37c3.46,0,6.04-0.44,7.74-1.32c1.7-0.88,2.55-2.14,2.55-3.77c0-1.31-0.75-2.25-2.25-2.84
|
|
65
|
+
c-1.5-0.59-3.92-1.21-7.25-1.86c-3.79-0.72-6.91-1.5-9.36-2.35c-2.45-0.85-4.57-2.24-6.37-4.17c-1.8-1.93-2.7-4.56-2.7-7.89
|
|
66
|
+
c0-5.81,2.43-10.35,7.3-13.62c4.87-3.27,11.25-4.9,19.16-4.9c3.66,0,7.22,0.39,10.68,1.18c3.46,0.78,6.4,1.86,8.82,3.23
|
|
67
|
+
l-5.49,11.17c-4.31-2.68-9.51-4.02-15.58-4.02c-3.33,0-5.87,0.49-7.6,1.47c-1.73,0.98-2.6,2.22-2.6,3.72
|
|
68
|
+
c0,1.37,0.75,2.37,2.25,2.99c1.5,0.62,4.02,1.29,7.55,2.01c3.72,0.72,6.78,1.49,9.16,2.3c2.38,0.82,4.46,2.17,6.22,4.07
|
|
69
|
+
c1.76,1.9,2.65,4.48,2.65,7.74c0,5.88-2.47,10.42-7.4,13.62c-4.93,3.2-11.32,4.8-19.16,4.8C659.37,92.02,655.04,91.51,650.95,90.5z
|
|
70
|
+
"/>
|
|
71
|
+
</g>
|
|
72
|
+
</svg>
|
|
@@ -24,8 +24,8 @@ class ContentAttachments {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
createAttachments(parameters, callback) {
|
|
27
|
-
var _a;
|
|
28
27
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
var _a;
|
|
29
29
|
const formData = new FormData();
|
|
30
30
|
const attachments = Array.isArray(parameters.attachments) ? parameters.attachments : [parameters.attachments];
|
|
31
31
|
attachments.forEach(attachment => {
|
|
@@ -51,8 +51,8 @@ class ContentAttachments {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
createOrUpdateAttachments(parameters, callback) {
|
|
54
|
-
var _a;
|
|
55
54
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
var _a;
|
|
56
56
|
const formData = new FormData();
|
|
57
57
|
const attachments = Array.isArray(parameters.attachments) ? parameters.attachments : [parameters.attachments];
|
|
58
58
|
attachments.forEach(attachment => {
|
|
@@ -78,8 +78,8 @@ class ContentAttachments {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
updateAttachmentProperties(parameters, callback) {
|
|
81
|
-
var _a;
|
|
82
81
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a;
|
|
83
83
|
const config = {
|
|
84
84
|
url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}`,
|
|
85
85
|
method: 'PUT',
|
|
@@ -89,8 +89,8 @@ class ContentAttachments {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
updateAttachmentData(parameters, callback) {
|
|
92
|
-
var _a;
|
|
93
92
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
var _a;
|
|
94
94
|
const { attachment } = parameters;
|
|
95
95
|
const formData = new FormData();
|
|
96
96
|
formData.append('minorEdit', attachment.minorEdit.toString(), 'minorEdit');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentAttachments.js","sourceRoot":"","sources":["../../src/api/contentAttachments.ts"],"names":[],"mappings":";;;;AAAA,sCAAsC;AAOtC,MAAa,kBAAkB;IAC7B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IA0BhC,cAAc,CAClB,UAAqC,EACrC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,mBAAmB;gBACrD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;oBAC/B,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAwBK,iBAAiB,CACrB,UAAwC,EACxC,QAAsB;;;YAEtB,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;YAChC,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAE9G,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;gBAC/B,QAAQ,CAAC,MAAM,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AAC,UAAU,wDAAI,CAC3B;gBACD,IAAI,EAAE,QAAQ;aACf,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAMK,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,qBAAqB,UAAU,CAAC,YAAY,WAAW;gBACzF,MAAM,EAAE,KAAK;gBACb,YAAY,EAAE,aAAa;gBAC3B,MAAM,EAAE;oBACN,OAAO,EAAE,UAAU,CAAC,OAAO;iBAC5B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAhRD,gDAgRC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentComments.js","sourceRoot":"","sources":["../../src/api/contentComments.ts"],"names":[],"mappings":";;;;AAMA,MAAa,eAAe;IAC1B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAsBhC,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,gBAAgB;gBAClD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,aAAa,EAAE,UAAU,CAAC,aAAa;oBACvC,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,KAAK,EAAE,UAAU,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"contentComments.js","sourceRoot":"","sources":["../../src/api/contentComments.ts"],"names":[],"mappings":";;;;AAMA,MAAa,eAAe;IAC1B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAsBhC,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,gBAAgB;gBAClD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,aAAa,EAAE,UAAU,CAAC,aAAa;oBACvC,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AA1CD,0CA0CC"}
|
|
@@ -48,4 +48,13 @@ export interface ContentCreate {
|
|
|
48
48
|
anonymous_export_view?: ContentBodyCreate;
|
|
49
49
|
atlas_doc_format?: ContentBodyCreate;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* The new version for the created content.
|
|
53
|
+
*
|
|
54
|
+
* To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.
|
|
55
|
+
*/
|
|
56
|
+
version?: {
|
|
57
|
+
/** The version comment. */
|
|
58
|
+
message?: string;
|
|
59
|
+
};
|
|
51
60
|
}
|
|
@@ -10,6 +10,8 @@ export interface ContentUpdate {
|
|
|
10
10
|
version: {
|
|
11
11
|
/** The version number. */
|
|
12
12
|
number: number;
|
|
13
|
+
/** The version comment. */
|
|
14
|
+
message?: string;
|
|
13
15
|
};
|
|
14
16
|
/** The updated title of the content. If you are not changing this field, set this to the current `title`. */
|
|
15
17
|
title: string;
|
package/out/api/space.js
CHANGED
|
@@ -102,6 +102,7 @@ class Space {
|
|
|
102
102
|
method: 'GET',
|
|
103
103
|
params: {
|
|
104
104
|
depth: parameters.depth,
|
|
105
|
+
expand: parameters.expand,
|
|
105
106
|
start: parameters.start,
|
|
106
107
|
limit: parameters.limit,
|
|
107
108
|
},
|
|
@@ -116,6 +117,7 @@ class Space {
|
|
|
116
117
|
method: 'GET',
|
|
117
118
|
params: {
|
|
118
119
|
depth: parameters.depth,
|
|
120
|
+
expand: parameters.expand,
|
|
119
121
|
start: parameters.start,
|
|
120
122
|
limit: parameters.limit,
|
|
121
123
|
},
|
package/out/api/space.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.js","sourceRoot":"","sources":["../../src/api/space.ts"],"names":[],"mappings":";;;;AAIA,wDAAqD;AAGrD,MAAa,KAAK;IAChB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAqBhC,SAAS,CAAwB,UAAiC,EAAE,QAAsB;;YAC9F,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,YAAY;gBACjB,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,QAAQ,EAAE,IAAA,iCAAe,EAAC,UAAU,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,CAAC;oBAC3D,OAAO,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO;oBAC5B,IAAI,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI;oBACtB,MAAM,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM;oBAC1B,KAAK,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK;oBACxB,SAAS,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS;oBAChC,gBAAgB,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,gBAAgB;oBAC9C,KAAK,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK;oBACxB,KAAK,EAAE,UAAU,aAAV,UAAU,uBA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CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAwBK,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,cAAc,UAAU,CAAC,QAAQ,UAAU;gBAChD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;iBACxB;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAsBK,wBAAwB,CAC5B,UAA+C,EAC/C,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,cAAc,UAAU,CAAC,QAAQ,YAAY,UAAU,CAAC,IAAI,EAAE;gBACnE,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;iBACxB;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAnRD,sBAmRC"}
|
|
@@ -3,8 +3,8 @@ var _BaseClient_instance;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.BaseClient = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
const authenticationService_1 = require("../services/authenticationService");
|
|
7
6
|
const axios_1 = require("axios");
|
|
7
|
+
const authenticationService_1 = require("../services/authenticationService");
|
|
8
8
|
const ATLASSIAN_TOKEN_CHECK_FLAG = 'X-Atlassian-Token';
|
|
9
9
|
const ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE = 'no-check';
|
|
10
10
|
class BaseClient {
|
|
@@ -33,10 +33,10 @@ class BaseClient {
|
|
|
33
33
|
}
|
|
34
34
|
else if (value instanceof Function) {
|
|
35
35
|
const part = value();
|
|
36
|
+
// eslint-disable-next-line consistent-return
|
|
36
37
|
return part && parts.push(part);
|
|
37
38
|
}
|
|
38
39
|
parts.push(`${this.encode(key)}=${this.encode(value)}`);
|
|
39
|
-
return;
|
|
40
40
|
});
|
|
41
41
|
return parts.join('&');
|
|
42
42
|
}
|
|
@@ -65,8 +65,8 @@ class BaseClient {
|
|
|
65
65
|
return tslib_1.__classPrivateFieldGet(this, _BaseClient_instance, "f");
|
|
66
66
|
}
|
|
67
67
|
sendRequest(requestConfig, callback) {
|
|
68
|
-
var _a, _b, _c, _d;
|
|
69
68
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
var _a, _b, _c, _d;
|
|
70
70
|
try {
|
|
71
71
|
const modifiedRequestConfig = Object.assign(Object.assign({}, requestConfig), { headers: this.removeUndefinedProperties(Object.assign({ Authorization: yield authenticationService_1.AuthenticationService.getAuthenticationToken(this.config.authentication, {
|
|
72
72
|
baseURL: this.config.host,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseClient.js","sourceRoot":"","sources":["../../src/clients/baseClient.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"baseClient.js","sourceRoot":"","sources":["../../src/clients/baseClient.ts"],"names":[],"mappings":";;;;;AAAA,iCAA6C;AAC7C,6EAA0E;AAM1E,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;AACvD,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAEvD,MAAa,UAAU;IAGrB,YAA+B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAF7C,uCAAqC;QAGnC,IA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C,CAAC,CAAC;gBAEjF,MAAM,oBAAoB,GAAG,QAAQ,IAAI,CAAC,CAAC,KAAmB,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;gBACpF,MAAM,mBAAmB,GAAG,CAAC,KAAY,EAAE,EAAE;oBAC3C,MAAM,KAAK,CAAC;gBACd,CAAC,CAAC;gBAEF,MAAM,YAAY,GAAG,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,GAAI,mBAAmB,CAAC;gBAEjE,MAAA,MAAA,IAAI,CAAC,MAAM,CAAC,WAAW,0CAAE,OAAO,mDAAG,GAAG,CAAC,CAAC;gBAExC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC;KAAA;CACF;AApHD,gCAoHC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverClient.js","sourceRoot":"","sources":["../../src/clients/serverClient.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"serverClient.js","sourceRoot":"","sources":["../../src/clients/serverClient.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,sCAEmB;AAEnB,MAAa,YAAa,SAAQ,uBAAU;IAC1C,YAAY,MAAc;;QACxB,KAAK,iCACA,MAAM,KACT,SAAS,EAAE,MAAA,MAAM,CAAC,SAAS,mCAAI,GAAG,IAClC,CAAC;QAGL,UAAK,GAAG,IAAI,cAAK,CAAC,IAAI,CAAC,CAAC;QACxB,YAAO,GAAG,IAAI,gBAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,gBAAW,GAAG,IAAI,oBAAW,CAAC,IAAI,CAAC,CAAC;QACpC,UAAK,GAAG,IAAI,cAAK,CAAC,IAAI,CAAC,CAAC;QACxB,aAAQ,GAAG,IAAI,iBAAQ,CAAC,IAAI,CAAC,CAAC;QAC9B,WAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,CAAC;QAC1B,UAAK,GAAG,IAAI,cAAK,CAAC,IAAI,CAAC,CAAC;QACxB,SAAI,GAAG,IAAI,aAAI,CAAC,IAAI,CAAC,CAAC;IATtB,CAAC;CAUF;AAhBD,oCAgBC"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "confluence.js",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "confluence.js is a powerful Node.JS/Browser module that allows you to interact with the Confluence API very easily",
|
|
5
5
|
"author": "Vladislav Tupikin <mrrefactoring@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://mrrefactoring.github.io/confluence.js",
|
|
8
|
-
"repository":
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/MrRefactoring/confluence.js.git"
|
|
11
|
+
},
|
|
9
12
|
"main": "out/index.js",
|
|
10
13
|
"types": "out/index.d.ts",
|
|
11
14
|
"scripts": {
|
|
12
15
|
"build": "tsc",
|
|
13
|
-
"
|
|
14
|
-
"test": "npm run test:unit",
|
|
16
|
+
"test": "npm run test:unit && npm run test:integration",
|
|
15
17
|
"prettier": "prettier --write src",
|
|
16
18
|
"doc": "typedoc --name \"Confluence.js - Cloud and Server API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bVi.svg",
|
|
17
19
|
"lint": "eslint src tests --ext .ts",
|
|
18
20
|
"lint:fix": "npm run lint -- --fix",
|
|
19
21
|
"test:unit": "ava tests/unit",
|
|
20
|
-
"test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts"
|
|
22
|
+
"test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts",
|
|
23
|
+
"code:formatting": "npm run prettier && npm run lint:fix"
|
|
21
24
|
},
|
|
22
25
|
"ava": {
|
|
23
26
|
"extensions": [
|
|
@@ -42,30 +45,29 @@
|
|
|
42
45
|
"atlassian"
|
|
43
46
|
],
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@swc-node/register": "^1.
|
|
46
|
-
"@swc/helpers": "^0.5.
|
|
48
|
+
"@swc-node/register": "^1.9.0",
|
|
49
|
+
"@swc/helpers": "^0.5.8",
|
|
47
50
|
"@types/express": "^4.17.21",
|
|
48
51
|
"@types/oauth": "^0.9.4",
|
|
49
|
-
"@types/sinon": "^17.0.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
51
|
-
"@typescript-eslint/parser": "^
|
|
52
|
-
"ava": "^
|
|
53
|
-
"dotenv": "^16.
|
|
54
|
-
"eslint": "^8.
|
|
55
|
-
"eslint-config-airbnb": "^
|
|
56
|
-
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
52
|
+
"@types/sinon": "^17.0.3",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
|
54
|
+
"@typescript-eslint/parser": "^7.5.0",
|
|
55
|
+
"ava": "^6.1.2",
|
|
56
|
+
"dotenv": "^16.4.5",
|
|
57
|
+
"eslint": "^8.57.0",
|
|
58
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
57
59
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
58
|
-
"eslint-plugin-import": "^2.29.
|
|
59
|
-
"prettier": "^3.
|
|
60
|
-
"prettier-plugin-jsdoc": "^1.
|
|
60
|
+
"eslint-plugin-import": "^2.29.1",
|
|
61
|
+
"prettier": "^3.2.5",
|
|
62
|
+
"prettier-plugin-jsdoc": "^1.3.0",
|
|
61
63
|
"sinon": "^17.0.1",
|
|
62
|
-
"typedoc": "^0.25.
|
|
64
|
+
"typedoc": "^0.25.12",
|
|
63
65
|
"typedoc-plugin-extras": "^3.0.0",
|
|
64
|
-
"typescript": "^5.
|
|
66
|
+
"typescript": "^5.4.4"
|
|
65
67
|
},
|
|
66
68
|
"dependencies": {
|
|
67
|
-
"atlassian-jwt": "^2.0.
|
|
68
|
-
"axios": "^1.6.
|
|
69
|
+
"atlassian-jwt": "^2.0.3",
|
|
70
|
+
"axios": "^1.6.8",
|
|
69
71
|
"form-data": "^4.0.0",
|
|
70
72
|
"oauth": "^0.10.0",
|
|
71
73
|
"tslib": "^2.6.2"
|
|
@@ -49,4 +49,13 @@ export interface ContentCreate {
|
|
|
49
49
|
anonymous_export_view?: ContentBodyCreate;
|
|
50
50
|
atlas_doc_format?: ContentBodyCreate;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* The new version for the created content.
|
|
54
|
+
*
|
|
55
|
+
* To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.
|
|
56
|
+
*/
|
|
57
|
+
version?: {
|
|
58
|
+
/** The version comment. */
|
|
59
|
+
message?: string;
|
|
60
|
+
};
|
|
52
61
|
}
|
|
@@ -11,6 +11,8 @@ export interface ContentUpdate {
|
|
|
11
11
|
version: {
|
|
12
12
|
/** The version number. */
|
|
13
13
|
number: number;
|
|
14
|
+
/** The version comment. */
|
|
15
|
+
message?: string;
|
|
14
16
|
};
|
|
15
17
|
/** The updated title of the content. If you are not changing this field, set this to the current `title`. */
|
|
16
18
|
title: string;
|
|
@@ -36,26 +36,6 @@ export interface AsyncConvertContentBodyRequest extends ContentBodyCreate {
|
|
|
36
36
|
embeddedContentRender?: string;
|
|
37
37
|
/** A multi-value parameter indicating which properties of the content to expand and populate. */
|
|
38
38
|
expand?:
|
|
39
|
-
| 'embeddedContent'
|
|
40
|
-
| 'mediaToken'
|
|
41
|
-
| 'webresource.superbatch.metatags'
|
|
42
|
-
| 'webresource.superbatch.tags.all'
|
|
43
|
-
| 'webresource.superbatch.tags.css'
|
|
44
|
-
| 'webresource.superbatch.tags.data'
|
|
45
|
-
| 'webresource.superbatch.tags.js'
|
|
46
|
-
| 'webresource.superbatch.uris.all'
|
|
47
|
-
| 'webresource.superbatch.uris.css'
|
|
48
|
-
| 'webresource.superbatch.uris.data'
|
|
49
|
-
| 'webresource.superbatch.uris.js'
|
|
50
|
-
| 'webresource.tags.all'
|
|
51
|
-
| 'webresource.tags.css'
|
|
52
|
-
| 'webresource.tags.data'
|
|
53
|
-
| 'webresource.tags.js'
|
|
54
|
-
| 'webresource.uris.all'
|
|
55
|
-
| 'webresource.uris.css'
|
|
56
|
-
| 'webresource.uris.data'
|
|
57
|
-
| 'webresource.uris.js'
|
|
58
|
-
| (
|
|
59
39
|
| 'embeddedContent'
|
|
60
40
|
| 'mediaToken'
|
|
61
41
|
| 'webresource.superbatch.metatags'
|
|
@@ -75,7 +55,27 @@ export interface AsyncConvertContentBodyRequest extends ContentBodyCreate {
|
|
|
75
55
|
| 'webresource.uris.css'
|
|
76
56
|
| 'webresource.uris.data'
|
|
77
57
|
| 'webresource.uris.js'
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
58
|
+
| (
|
|
59
|
+
| 'embeddedContent'
|
|
60
|
+
| 'mediaToken'
|
|
61
|
+
| 'webresource.superbatch.metatags'
|
|
62
|
+
| 'webresource.superbatch.tags.all'
|
|
63
|
+
| 'webresource.superbatch.tags.css'
|
|
64
|
+
| 'webresource.superbatch.tags.data'
|
|
65
|
+
| 'webresource.superbatch.tags.js'
|
|
66
|
+
| 'webresource.superbatch.uris.all'
|
|
67
|
+
| 'webresource.superbatch.uris.css'
|
|
68
|
+
| 'webresource.superbatch.uris.data'
|
|
69
|
+
| 'webresource.superbatch.uris.js'
|
|
70
|
+
| 'webresource.tags.all'
|
|
71
|
+
| 'webresource.tags.css'
|
|
72
|
+
| 'webresource.tags.data'
|
|
73
|
+
| 'webresource.tags.js'
|
|
74
|
+
| 'webresource.uris.all'
|
|
75
|
+
| 'webresource.uris.css'
|
|
76
|
+
| 'webresource.uris.data'
|
|
77
|
+
| 'webresource.uris.js'
|
|
78
|
+
)[]
|
|
79
|
+
| string
|
|
80
|
+
| string[];
|
|
81
81
|
}
|
|
@@ -19,15 +19,6 @@ export interface ConvertContentBody extends ContentBodyCreate {
|
|
|
19
19
|
* - `macroRenderedOutput` additionally converts body to view format
|
|
20
20
|
*/
|
|
21
21
|
expand?:
|
|
22
|
-
| 'webresource'
|
|
23
|
-
| 'webresource.superbatch.uris.js'
|
|
24
|
-
| 'webresource.superbatch.uris.css'
|
|
25
|
-
| 'webresource.uris.js'
|
|
26
|
-
| 'webresource.uris.css'
|
|
27
|
-
| 'embeddedContent'
|
|
28
|
-
| 'mediaToken'
|
|
29
|
-
| 'macroRenderedOutput'
|
|
30
|
-
| (
|
|
31
22
|
| 'webresource'
|
|
32
23
|
| 'webresource.superbatch.uris.js'
|
|
33
24
|
| 'webresource.superbatch.uris.css'
|
|
@@ -36,9 +27,18 @@ export interface ConvertContentBody extends ContentBodyCreate {
|
|
|
36
27
|
| 'embeddedContent'
|
|
37
28
|
| 'mediaToken'
|
|
38
29
|
| 'macroRenderedOutput'
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
| (
|
|
31
|
+
| 'webresource'
|
|
32
|
+
| 'webresource.superbatch.uris.js'
|
|
33
|
+
| 'webresource.superbatch.uris.css'
|
|
34
|
+
| 'webresource.uris.js'
|
|
35
|
+
| 'webresource.uris.css'
|
|
36
|
+
| 'embeddedContent'
|
|
37
|
+
| 'mediaToken'
|
|
38
|
+
| 'macroRenderedOutput'
|
|
39
|
+
)[]
|
|
40
|
+
| string
|
|
41
|
+
| string[];
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* The space key used for resolving embedded content (page includes, files, and links) in the content body. For
|
|
@@ -43,26 +43,6 @@ export interface GetAndAsyncConvertMacroBodyByMacroId {
|
|
|
43
43
|
embeddedContentRender?: string;
|
|
44
44
|
/** A multi-value parameter indicating which properties of the content to expand and populate. */
|
|
45
45
|
expand?:
|
|
46
|
-
| 'embeddedContent'
|
|
47
|
-
| 'mediaToken'
|
|
48
|
-
| 'webresource.superbatch.metatags'
|
|
49
|
-
| 'webresource.superbatch.tags.all'
|
|
50
|
-
| 'webresource.superbatch.tags.css'
|
|
51
|
-
| 'webresource.superbatch.tags.data'
|
|
52
|
-
| 'webresource.superbatch.tags.js'
|
|
53
|
-
| 'webresource.superbatch.uris.all'
|
|
54
|
-
| 'webresource.superbatch.uris.css'
|
|
55
|
-
| 'webresource.superbatch.uris.data'
|
|
56
|
-
| 'webresource.superbatch.uris.js'
|
|
57
|
-
| 'webresource.tags.all'
|
|
58
|
-
| 'webresource.tags.css'
|
|
59
|
-
| 'webresource.tags.data'
|
|
60
|
-
| 'webresource.tags.js'
|
|
61
|
-
| 'webresource.uris.all'
|
|
62
|
-
| 'webresource.uris.css'
|
|
63
|
-
| 'webresource.uris.data'
|
|
64
|
-
| 'webresource.uris.js'
|
|
65
|
-
| (
|
|
66
46
|
| 'embeddedContent'
|
|
67
47
|
| 'mediaToken'
|
|
68
48
|
| 'webresource.superbatch.metatags'
|
|
@@ -82,7 +62,27 @@ export interface GetAndAsyncConvertMacroBodyByMacroId {
|
|
|
82
62
|
| 'webresource.uris.css'
|
|
83
63
|
| 'webresource.uris.data'
|
|
84
64
|
| 'webresource.uris.js'
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
65
|
+
| (
|
|
66
|
+
| 'embeddedContent'
|
|
67
|
+
| 'mediaToken'
|
|
68
|
+
| 'webresource.superbatch.metatags'
|
|
69
|
+
| 'webresource.superbatch.tags.all'
|
|
70
|
+
| 'webresource.superbatch.tags.css'
|
|
71
|
+
| 'webresource.superbatch.tags.data'
|
|
72
|
+
| 'webresource.superbatch.tags.js'
|
|
73
|
+
| 'webresource.superbatch.uris.all'
|
|
74
|
+
| 'webresource.superbatch.uris.css'
|
|
75
|
+
| 'webresource.superbatch.uris.data'
|
|
76
|
+
| 'webresource.superbatch.uris.js'
|
|
77
|
+
| 'webresource.tags.all'
|
|
78
|
+
| 'webresource.tags.css'
|
|
79
|
+
| 'webresource.tags.data'
|
|
80
|
+
| 'webresource.tags.js'
|
|
81
|
+
| 'webresource.uris.all'
|
|
82
|
+
| 'webresource.uris.css'
|
|
83
|
+
| 'webresource.uris.data'
|
|
84
|
+
| 'webresource.uris.js'
|
|
85
|
+
)[]
|
|
86
|
+
| string
|
|
87
|
+
| string[];
|
|
88
88
|
}
|
|
@@ -31,40 +31,6 @@ export interface GetAndConvertMacroBodyByMacroId {
|
|
|
31
31
|
embeddedContentRender?: 'current' | 'version-at-save' | string;
|
|
32
32
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
33
33
|
expand?:
|
|
34
|
-
| 'childTypes.all'
|
|
35
|
-
| 'childTypes.attachment'
|
|
36
|
-
| 'childTypes.comment'
|
|
37
|
-
| 'childTypes.page'
|
|
38
|
-
| 'container'
|
|
39
|
-
| 'metadata.currentuser'
|
|
40
|
-
| 'metadata.properties'
|
|
41
|
-
| 'metadata.labels'
|
|
42
|
-
| 'metadata.frontend'
|
|
43
|
-
| 'operations'
|
|
44
|
-
| 'children.page'
|
|
45
|
-
| 'children.attachment'
|
|
46
|
-
| 'children.comment'
|
|
47
|
-
| 'restrictions.read.restrictions.user'
|
|
48
|
-
| 'restrictions.read.restrictions.group'
|
|
49
|
-
| 'restrictions.update.restrictions.user'
|
|
50
|
-
| 'restrictions.update.restrictions.group'
|
|
51
|
-
| 'history'
|
|
52
|
-
| 'history.lastUpdated'
|
|
53
|
-
| 'history.previousVersion'
|
|
54
|
-
| 'history.contributors'
|
|
55
|
-
| 'history.nextVersion'
|
|
56
|
-
| 'ancestors'
|
|
57
|
-
| 'body'
|
|
58
|
-
| 'body.storage'
|
|
59
|
-
| 'body.view'
|
|
60
|
-
| 'version'
|
|
61
|
-
| 'descendants.page'
|
|
62
|
-
| 'descendants.attachment'
|
|
63
|
-
| 'descendants.comment'
|
|
64
|
-
| 'space'
|
|
65
|
-
| 'extensions.inlineProperties'
|
|
66
|
-
| 'extensions.resolution'
|
|
67
|
-
| (
|
|
68
34
|
| 'childTypes.all'
|
|
69
35
|
| 'childTypes.attachment'
|
|
70
36
|
| 'childTypes.comment'
|
|
@@ -98,7 +64,41 @@ export interface GetAndConvertMacroBodyByMacroId {
|
|
|
98
64
|
| 'space'
|
|
99
65
|
| 'extensions.inlineProperties'
|
|
100
66
|
| 'extensions.resolution'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
67
|
+
| (
|
|
68
|
+
| 'childTypes.all'
|
|
69
|
+
| 'childTypes.attachment'
|
|
70
|
+
| 'childTypes.comment'
|
|
71
|
+
| 'childTypes.page'
|
|
72
|
+
| 'container'
|
|
73
|
+
| 'metadata.currentuser'
|
|
74
|
+
| 'metadata.properties'
|
|
75
|
+
| 'metadata.labels'
|
|
76
|
+
| 'metadata.frontend'
|
|
77
|
+
| 'operations'
|
|
78
|
+
| 'children.page'
|
|
79
|
+
| 'children.attachment'
|
|
80
|
+
| 'children.comment'
|
|
81
|
+
| 'restrictions.read.restrictions.user'
|
|
82
|
+
| 'restrictions.read.restrictions.group'
|
|
83
|
+
| 'restrictions.update.restrictions.user'
|
|
84
|
+
| 'restrictions.update.restrictions.group'
|
|
85
|
+
| 'history'
|
|
86
|
+
| 'history.lastUpdated'
|
|
87
|
+
| 'history.previousVersion'
|
|
88
|
+
| 'history.contributors'
|
|
89
|
+
| 'history.nextVersion'
|
|
90
|
+
| 'ancestors'
|
|
91
|
+
| 'body'
|
|
92
|
+
| 'body.storage'
|
|
93
|
+
| 'body.view'
|
|
94
|
+
| 'version'
|
|
95
|
+
| 'descendants.page'
|
|
96
|
+
| 'descendants.attachment'
|
|
97
|
+
| 'descendants.comment'
|
|
98
|
+
| 'space'
|
|
99
|
+
| 'extensions.inlineProperties'
|
|
100
|
+
| 'extensions.resolution'
|
|
101
|
+
)[]
|
|
102
|
+
| string
|
|
103
|
+
| string[];
|
|
104
104
|
}
|
|
@@ -3,39 +3,6 @@ export interface GetAttachments {
|
|
|
3
3
|
id: string;
|
|
4
4
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
5
5
|
expand?:
|
|
6
|
-
| 'childTypes.all'
|
|
7
|
-
| 'childTypes.attachment'
|
|
8
|
-
| 'childTypes.comment'
|
|
9
|
-
| 'childTypes.page'
|
|
10
|
-
| 'container'
|
|
11
|
-
| 'metadata'
|
|
12
|
-
| 'metadata.currentuser'
|
|
13
|
-
| 'metadata.properties'
|
|
14
|
-
| 'metadata.labels'
|
|
15
|
-
| 'metadata.frontend'
|
|
16
|
-
| 'operations'
|
|
17
|
-
| 'children.page'
|
|
18
|
-
| 'children.attachment'
|
|
19
|
-
| 'children.comment'
|
|
20
|
-
| 'restrictions.read.restrictions.user'
|
|
21
|
-
| 'restrictions.read.restrictions.group'
|
|
22
|
-
| 'restrictions.update.restrictions.user'
|
|
23
|
-
| 'restrictions.update.restrictions.group'
|
|
24
|
-
| 'history'
|
|
25
|
-
| 'history.lastUpdated'
|
|
26
|
-
| 'history.previousVersion'
|
|
27
|
-
| 'history.contributors'
|
|
28
|
-
| 'history.nextVersion'
|
|
29
|
-
| 'ancestors'
|
|
30
|
-
| 'body'
|
|
31
|
-
| 'version'
|
|
32
|
-
| 'descendants.page'
|
|
33
|
-
| 'descendants.attachment'
|
|
34
|
-
| 'descendants.comment'
|
|
35
|
-
| 'space'
|
|
36
|
-
| 'extensions.inlineProperties'
|
|
37
|
-
| 'extensions.resolution'
|
|
38
|
-
| (
|
|
39
6
|
| 'childTypes.all'
|
|
40
7
|
| 'childTypes.attachment'
|
|
41
8
|
| 'childTypes.comment'
|
|
@@ -68,11 +35,44 @@ export interface GetAttachments {
|
|
|
68
35
|
| 'space'
|
|
69
36
|
| 'extensions.inlineProperties'
|
|
70
37
|
| 'extensions.resolution'
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
38
|
+
| (
|
|
39
|
+
| 'childTypes.all'
|
|
40
|
+
| 'childTypes.attachment'
|
|
41
|
+
| 'childTypes.comment'
|
|
42
|
+
| 'childTypes.page'
|
|
43
|
+
| 'container'
|
|
44
|
+
| 'metadata'
|
|
45
|
+
| 'metadata.currentuser'
|
|
46
|
+
| 'metadata.properties'
|
|
47
|
+
| 'metadata.labels'
|
|
48
|
+
| 'metadata.frontend'
|
|
49
|
+
| 'operations'
|
|
50
|
+
| 'children.page'
|
|
51
|
+
| 'children.attachment'
|
|
52
|
+
| 'children.comment'
|
|
53
|
+
| 'restrictions.read.restrictions.user'
|
|
54
|
+
| 'restrictions.read.restrictions.group'
|
|
55
|
+
| 'restrictions.update.restrictions.user'
|
|
56
|
+
| 'restrictions.update.restrictions.group'
|
|
57
|
+
| 'history'
|
|
58
|
+
| 'history.lastUpdated'
|
|
59
|
+
| 'history.previousVersion'
|
|
60
|
+
| 'history.contributors'
|
|
61
|
+
| 'history.nextVersion'
|
|
62
|
+
| 'ancestors'
|
|
63
|
+
| 'body'
|
|
64
|
+
| 'version'
|
|
65
|
+
| 'descendants.page'
|
|
66
|
+
| 'descendants.attachment'
|
|
67
|
+
| 'descendants.comment'
|
|
68
|
+
| 'space'
|
|
69
|
+
| 'extensions.inlineProperties'
|
|
70
|
+
| 'extensions.resolution'
|
|
71
|
+
)[]
|
|
72
|
+
| string
|
|
73
|
+
| string[]
|
|
74
|
+
| GetAttachments.Expand
|
|
75
|
+
| GetAttachments.Expand[];
|
|
76
76
|
/** The starting index of the returned attachments. */
|
|
77
77
|
start?: number;
|
|
78
78
|
/** The maximum number of attachments to return per page. Note, this may be restricted by fixed system limits. */
|
|
@@ -29,20 +29,6 @@ export interface GetSpaces {
|
|
|
29
29
|
favouriteUserKey?: string;
|
|
30
30
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
31
31
|
expand?:
|
|
32
|
-
| 'settings'
|
|
33
|
-
| 'metadata'
|
|
34
|
-
| 'metadata.labels'
|
|
35
|
-
| 'operations'
|
|
36
|
-
| 'lookAndFeel'
|
|
37
|
-
| 'permissions'
|
|
38
|
-
| 'icon'
|
|
39
|
-
| 'description'
|
|
40
|
-
| 'description.plain'
|
|
41
|
-
| 'description.view'
|
|
42
|
-
| 'theme'
|
|
43
|
-
| 'homepage'
|
|
44
|
-
| 'history'
|
|
45
|
-
| (
|
|
46
32
|
| 'settings'
|
|
47
33
|
| 'metadata'
|
|
48
34
|
| 'metadata.labels'
|
|
@@ -56,9 +42,23 @@ export interface GetSpaces {
|
|
|
56
42
|
| 'theme'
|
|
57
43
|
| 'homepage'
|
|
58
44
|
| 'history'
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
| (
|
|
46
|
+
| 'settings'
|
|
47
|
+
| 'metadata'
|
|
48
|
+
| 'metadata.labels'
|
|
49
|
+
| 'operations'
|
|
50
|
+
| 'lookAndFeel'
|
|
51
|
+
| 'permissions'
|
|
52
|
+
| 'icon'
|
|
53
|
+
| 'description'
|
|
54
|
+
| 'description.plain'
|
|
55
|
+
| 'description.view'
|
|
56
|
+
| 'theme'
|
|
57
|
+
| 'homepage'
|
|
58
|
+
| 'history'
|
|
59
|
+
)[]
|
|
60
|
+
| string
|
|
61
|
+
| string[];
|
|
62
62
|
/** The starting index of the returned spaces. */
|
|
63
63
|
start?: number;
|
|
64
64
|
/** The maximum number of spaces to return per page. Note, this may be restricted by fixed system limits. */
|
|
@@ -30,12 +30,12 @@ export interface GetUser {
|
|
|
30
30
|
* - `isExternalCollaborator` returns whether the user is an external collaborator user
|
|
31
31
|
*/
|
|
32
32
|
expand?:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
| 'operations'
|
|
34
|
+
| 'details.personal'
|
|
35
|
+
| 'details.business'
|
|
36
|
+
| 'personalSpace'
|
|
37
|
+
| 'isExternalCollaborator'
|
|
38
|
+
| ('operations' | 'details.personal' | 'details.business' | 'personalSpace' | 'isExternalCollaborator')[]
|
|
39
|
+
| string
|
|
40
|
+
| string[];
|
|
41
41
|
}
|
package/src/api/space.ts
CHANGED
|
@@ -234,6 +234,7 @@ export class Space {
|
|
|
234
234
|
method: 'GET',
|
|
235
235
|
params: {
|
|
236
236
|
depth: parameters.depth,
|
|
237
|
+
expand: parameters.expand,
|
|
237
238
|
start: parameters.start,
|
|
238
239
|
limit: parameters.limit,
|
|
239
240
|
},
|
|
@@ -271,6 +272,7 @@ export class Space {
|
|
|
271
272
|
method: 'GET',
|
|
272
273
|
params: {
|
|
273
274
|
depth: parameters.depth,
|
|
275
|
+
expand: parameters.expand,
|
|
274
276
|
start: parameters.start,
|
|
275
277
|
limit: parameters.limit,
|
|
276
278
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import axios, { AxiosInstance } from 'axios';
|
|
1
2
|
import { AuthenticationService } from '../services/authenticationService';
|
|
2
3
|
import type { Callback } from '../callback';
|
|
3
4
|
import type { Client } from './client';
|
|
4
5
|
import type { Config } from '../config';
|
|
5
6
|
import type { RequestConfig } from '../requestConfig';
|
|
6
|
-
import axios, { AxiosInstance } from 'axios';
|
|
7
7
|
|
|
8
8
|
const ATLASSIAN_TOKEN_CHECK_FLAG = 'X-Atlassian-Token';
|
|
9
9
|
const ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE = 'no-check';
|
|
@@ -37,12 +37,11 @@ export class BaseClient implements Client {
|
|
|
37
37
|
} else if (value instanceof Function) {
|
|
38
38
|
const part = value();
|
|
39
39
|
|
|
40
|
+
// eslint-disable-next-line consistent-return
|
|
40
41
|
return part && parts.push(part);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
parts.push(`${this.encode(key)}=${this.encode(value)}`);
|
|
44
|
-
|
|
45
|
-
return;
|
|
46
45
|
});
|
|
47
46
|
|
|
48
47
|
return parts.join('&');
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseClient } from './baseClient';
|
|
2
2
|
import { Config } from '../config';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Audit, Content, ContentBody, Group, LongTask, Search, Space, User,
|
|
5
|
+
} from '../server';
|
|
4
6
|
|
|
5
7
|
export class ServerClient extends BaseClient {
|
|
6
8
|
constructor(config: Config) {
|
package/src/config.ts
CHANGED
|
@@ -24,18 +24,18 @@ export namespace Config {
|
|
|
24
24
|
export type Telemetry = boolean | any;
|
|
25
25
|
|
|
26
26
|
export type Authentication = UtilityTypes.XOR4<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
{
|
|
28
|
+
jwt: Authentication.JWT;
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
personalAccessToken: Authentication.PersonalAccessToken;
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
basic: Authentication.Basic;
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
oauth2: Authentication.OAuth2;
|
|
38
|
+
}
|
|
39
39
|
>;
|
|
40
40
|
|
|
41
41
|
export interface Middlewares {
|
|
@@ -61,14 +61,14 @@ export namespace Config {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
export type Basic = UtilityTypes.XOR<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
{
|
|
65
|
+
email: string;
|
|
66
|
+
apiToken: string;
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
username: string;
|
|
70
|
+
password: string;
|
|
71
|
+
}
|
|
72
72
|
>;
|
|
73
73
|
|
|
74
74
|
export type OAuth2 = {
|
|
@@ -23,15 +23,6 @@ export interface ConvertContentBody {
|
|
|
23
23
|
* - `macroRenderedOutput` additionally converts body to view format
|
|
24
24
|
*/
|
|
25
25
|
expand?:
|
|
26
|
-
| 'webresource'
|
|
27
|
-
| 'webresource.superbatch.uris.js'
|
|
28
|
-
| 'webresource.superbatch.uris.css'
|
|
29
|
-
| 'webresource.uris.js'
|
|
30
|
-
| 'webresource.uris.css'
|
|
31
|
-
| 'embeddedContent'
|
|
32
|
-
| 'mediaToken'
|
|
33
|
-
| 'macroRenderedOutput'
|
|
34
|
-
| (
|
|
35
26
|
| 'webresource'
|
|
36
27
|
| 'webresource.superbatch.uris.js'
|
|
37
28
|
| 'webresource.superbatch.uris.css'
|
|
@@ -40,9 +31,18 @@ export interface ConvertContentBody {
|
|
|
40
31
|
| 'embeddedContent'
|
|
41
32
|
| 'mediaToken'
|
|
42
33
|
| 'macroRenderedOutput'
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
| (
|
|
35
|
+
| 'webresource'
|
|
36
|
+
| 'webresource.superbatch.uris.js'
|
|
37
|
+
| 'webresource.superbatch.uris.css'
|
|
38
|
+
| 'webresource.uris.js'
|
|
39
|
+
| 'webresource.uris.css'
|
|
40
|
+
| 'embeddedContent'
|
|
41
|
+
| 'mediaToken'
|
|
42
|
+
| 'macroRenderedOutput'
|
|
43
|
+
)[]
|
|
44
|
+
| string
|
|
45
|
+
| string[];
|
|
46
46
|
|
|
47
47
|
[key: string]: any;
|
|
48
48
|
}
|