confluence.js 1.6.1 → 1.6.3
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 +9 -0
- package/README.md +1 -1
- package/out/api/models/accountIdEmailRecordArray.d.ts +1 -1
- package/out/api/models/addContentRestrictionUpdateArray.d.ts +1 -1
- package/out/api/models/attachment.d.ts +1 -0
- package/out/api/models/connectModules.d.ts +1 -1
- package/out/api/models/container.d.ts +1 -1
- package/out/api/models/content.d.ts +2 -0
- package/out/api/models/contentCreate.d.ts +1 -0
- package/out/api/models/contentRestrictionUpdateArray.d.ts +1 -1
- package/out/api/models/contentUpdate.d.ts +1 -0
- package/out/api/models/embeddable.d.ts +1 -1
- package/out/api/models/genericLinks.d.ts +1 -1
- package/out/api/models/labelCreateArray.d.ts +1 -1
- package/out/api/models/propertyValue.d.ts +1 -1
- package/out/api/parameters/registerModules.d.ts +1 -1
- package/out/api/space.js +1 -0
- package/out/api/space.js.map +1 -1
- package/out/callback.d.ts +1 -1
- package/out/requestConfig.d.ts +1 -1
- package/out/server/models/container.d.ts +1 -1
- package/out/server/models/content.d.ts +2 -0
- package/out/server/models/embeddable.d.ts +1 -1
- package/package.json +16 -15
- package/src/api/models/attachment.ts +1 -0
- package/src/api/models/content.ts +2 -0
- package/src/api/models/contentCreate.ts +1 -0
- package/src/api/models/contentUpdate.ts +1 -0
- package/src/api/space.ts +1 -0
- package/src/server/models/content.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 1.6.3
|
|
4
|
+
|
|
5
|
+
- `atlas_doc_format` added to some models. Thanks to [Andrew McClenaghan](https://github.com/andymac4182) for pull request.
|
|
6
|
+
|
|
7
|
+
### 1.6.2
|
|
8
|
+
|
|
9
|
+
- Badge fixed
|
|
10
|
+
- Dependencies updated
|
|
11
|
+
|
|
3
12
|
### 1.6.1
|
|
4
13
|
|
|
5
14
|
`AuthenticationService` added to export facade. Thanks to [Andrew McClenaghan](https://github.com/andymac4182) for this improvement.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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>
|
|
6
|
-
<a href="https://github.com/MrRefactoring/confluence.js"><img alt="build status" src="https://img.shields.io/github/workflow/status/mrrefactoring/confluence.js/
|
|
6
|
+
<a href="https://github.com/MrRefactoring/confluence.js"><img alt="build status" src="https://img.shields.io/github/actions/workflow/status/mrrefactoring/confluence.js/ci.yaml?style=flat-square"></a>
|
|
7
7
|
<a href="https://github.com/mrrefactoring/confluence.js/blob/develop/LICENSE"><img alt="license" src="https://img.shields.io/github/license/mrrefactoring/confluence.js?color=green&style=flat-square"/></a>
|
|
8
8
|
|
|
9
9
|
<span>JavaScript / TypeScript library for Node.JS and browsers to easily interact with Atlassian Confluence API</span>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AccountIdEmailRecord } from './accountIdEmailRecord';
|
|
2
|
-
export
|
|
2
|
+
export type AccountIdEmailRecordArray = AccountIdEmailRecord[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AddContentRestriction } from './addContentRestriction';
|
|
2
|
-
export
|
|
2
|
+
export type AddContentRestrictionUpdateArray = AddContentRestriction[];
|
|
@@ -3,4 +3,4 @@ import { AppDescriptor } from './appDescriptor';
|
|
|
3
3
|
* A list of app modules in the same format as the `modules` property in the [app
|
|
4
4
|
* descriptor](https://developer.atlassian.com/cloud/confluence/app-descriptor/).
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type ConnectModules = AppDescriptor[];
|
|
@@ -30,6 +30,7 @@ export interface Content {
|
|
|
30
30
|
storage?: ContentBody;
|
|
31
31
|
editor2?: ContentBody;
|
|
32
32
|
anonymous_export_view?: ContentBody;
|
|
33
|
+
atlas_doc_format?: ContentBody;
|
|
33
34
|
_expandable: {
|
|
34
35
|
editor?: string;
|
|
35
36
|
view?: string;
|
|
@@ -38,6 +39,7 @@ export interface Content {
|
|
|
38
39
|
storage?: string;
|
|
39
40
|
editor2?: string;
|
|
40
41
|
anonymous_export_view?: string;
|
|
42
|
+
atlas_doc_format?: string;
|
|
41
43
|
};
|
|
42
44
|
};
|
|
43
45
|
restrictions?: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ContentRestrictionUpdate } from './contentRestrictionUpdate';
|
|
2
|
-
export
|
|
2
|
+
export type ContentRestrictionUpdateArray = ContentRestrictionUpdate[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Embeddable = Record<string, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LabelCreate } from './labelCreate';
|
|
2
|
-
export
|
|
2
|
+
export type LabelCreateArray = LabelCreate[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ConnectModules } from '../models';
|
|
2
|
-
export
|
|
2
|
+
export type RegisterModules = ConnectModules;
|
package/out/api/space.js
CHANGED
|
@@ -22,6 +22,7 @@ class Space {
|
|
|
22
22
|
favouriteUserKey: parameters === null || parameters === void 0 ? void 0 : parameters.favouriteUserKey,
|
|
23
23
|
start: parameters === null || parameters === void 0 ? void 0 : parameters.start,
|
|
24
24
|
limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
|
|
25
|
+
expand: parameters === null || parameters === void 0 ? void 0 : parameters.expand,
|
|
25
26
|
},
|
|
26
27
|
};
|
|
27
28
|
return this.client.sendRequest(config, callback);
|
package/out/api/space.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.js","sourceRoot":"","sources":["../../src/api/space.ts"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axios';
|
|
2
|
-
export
|
|
2
|
+
export type Callback<T> = (err: AxiosError | null, data?: T) => void;
|
package/out/requestConfig.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
export
|
|
2
|
+
export type RequestConfig = AxiosRequestConfig;
|
|
@@ -29,6 +29,7 @@ export interface Content {
|
|
|
29
29
|
storage?: ContentBody;
|
|
30
30
|
editor2?: ContentBody;
|
|
31
31
|
anonymous_export_view?: ContentBody;
|
|
32
|
+
atlas_doc_format?: ContentBody;
|
|
32
33
|
_expandable: {
|
|
33
34
|
editor?: string;
|
|
34
35
|
view?: string;
|
|
@@ -37,6 +38,7 @@ export interface Content {
|
|
|
37
38
|
storage?: string;
|
|
38
39
|
editor2?: string;
|
|
39
40
|
anonymous_export_view?: string;
|
|
41
|
+
atlas_doc_format?: string;
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
restrictions?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Embeddable = Record<string, any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "confluence.js",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
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",
|
|
@@ -42,31 +42,32 @@
|
|
|
42
42
|
"atlassian"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@swc-node/register": "
|
|
46
|
-
"@
|
|
45
|
+
"@swc-node/register": "1.5.8",
|
|
46
|
+
"@swc/helpers": "^0.4.14",
|
|
47
|
+
"@types/express": "^4.17.17",
|
|
47
48
|
"@types/oauth": "^0.9.1",
|
|
48
49
|
"@types/sinon": "^10.0.13",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
50
|
-
"@typescript-eslint/parser": "^5.
|
|
51
|
-
"ava": "^5.0
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
51
|
+
"@typescript-eslint/parser": "^5.56.0",
|
|
52
|
+
"ava": "^5.2.0",
|
|
52
53
|
"dotenv": "^16.0.3",
|
|
53
|
-
"eslint": "^8.
|
|
54
|
+
"eslint": "^8.36.0",
|
|
54
55
|
"eslint-config-airbnb": "^19.0.4",
|
|
55
56
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
56
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
57
|
-
"eslint-plugin-import": "^2.
|
|
58
|
-
"prettier": "^2.7
|
|
57
|
+
"eslint-import-resolver-typescript": "^3.5.3",
|
|
58
|
+
"eslint-plugin-import": "^2.27.5",
|
|
59
|
+
"prettier": "^2.8.7",
|
|
59
60
|
"prettier-plugin-jsdoc": "^0.4.2",
|
|
60
|
-
"sinon": "^
|
|
61
|
-
"typedoc": "^0.23.
|
|
62
|
-
"typedoc-plugin-extras": "^2.3.
|
|
63
|
-
"typescript": "^
|
|
61
|
+
"sinon": "^15.0.2",
|
|
62
|
+
"typedoc": "^0.23.28",
|
|
63
|
+
"typedoc-plugin-extras": "^2.3.2",
|
|
64
|
+
"typescript": "^5.0.2"
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
66
67
|
"atlassian-jwt": "^2.0.2",
|
|
67
68
|
"axios": "^0.27.2",
|
|
68
69
|
"form-data": "^4.0.0",
|
|
69
70
|
"oauth": "^0.10.0",
|
|
70
|
-
"tslib": "^2.
|
|
71
|
+
"tslib": "^2.5.0"
|
|
71
72
|
}
|
|
72
73
|
}
|
|
@@ -31,6 +31,7 @@ export interface Content {
|
|
|
31
31
|
storage?: ContentBody;
|
|
32
32
|
editor2?: ContentBody;
|
|
33
33
|
anonymous_export_view?: ContentBody;
|
|
34
|
+
atlas_doc_format?: ContentBody;
|
|
34
35
|
_expandable: {
|
|
35
36
|
editor?: string;
|
|
36
37
|
view?: string;
|
|
@@ -39,6 +40,7 @@ export interface Content {
|
|
|
39
40
|
storage?: string;
|
|
40
41
|
editor2?: string;
|
|
41
42
|
anonymous_export_view?: string;
|
|
43
|
+
atlas_doc_format?: string;
|
|
42
44
|
};
|
|
43
45
|
};
|
|
44
46
|
restrictions?: {
|
package/src/api/space.ts
CHANGED
|
@@ -30,6 +30,7 @@ export interface Content {
|
|
|
30
30
|
storage?: ContentBody;
|
|
31
31
|
editor2?: ContentBody;
|
|
32
32
|
anonymous_export_view?: ContentBody;
|
|
33
|
+
atlas_doc_format?: ContentBody;
|
|
33
34
|
_expandable: {
|
|
34
35
|
editor?: string;
|
|
35
36
|
view?: string;
|
|
@@ -38,6 +39,7 @@ export interface Content {
|
|
|
38
39
|
storage?: string;
|
|
39
40
|
editor2?: string;
|
|
40
41
|
anonymous_export_view?: string;
|
|
42
|
+
atlas_doc_format?: string;
|
|
41
43
|
};
|
|
42
44
|
};
|
|
43
45
|
restrictions?: {
|