confluence.js 1.2.0 → 1.3.1
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 +19 -0
- package/README.md +0 -57
- package/out/api/audit.js +6 -6
- package/out/api/content.js +11 -10
- package/out/api/contentAttachments.d.ts +2 -2
- package/out/api/contentAttachments.js +7 -6
- package/out/api/contentBody.js +1 -1
- package/out/api/contentChildrenAndDescendants.js +7 -7
- package/out/api/contentComments.js +1 -1
- package/out/api/contentLabels.js +4 -4
- package/out/api/contentMacroBody.js +1 -1
- package/out/api/contentPermissions.js +1 -1
- package/out/api/contentProperties.js +7 -6
- package/out/api/contentRestrictions.js +15 -15
- package/out/api/contentVersions.js +4 -4
- package/out/api/contentWatches.js +12 -12
- package/out/api/dynamicModules.js +3 -3
- package/out/api/experimental.d.ts +36 -0
- package/out/api/experimental.js +38 -2
- package/out/api/group.js +15 -15
- package/out/api/inlineTasks.js +3 -3
- package/out/api/labelInfo.js +1 -1
- package/out/api/longRunningTask.js +2 -2
- package/out/api/parameters/addLabelsToSpace.d.ts +4 -0
- package/out/api/parameters/addLabelsToSpace.js +2 -0
- package/out/api/parameters/deleteLabelFromSpace.d.ts +8 -0
- package/out/api/parameters/deleteLabelFromSpace.js +2 -0
- package/out/api/parameters/getBulkUserLookup.d.ts +0 -6
- package/out/api/parameters/getContentById.d.ts +85 -1
- package/out/api/parameters/getContentById.js +87 -0
- package/out/api/parameters/getContentChildren.d.ts +1 -0
- package/out/api/parameters/getContentProperties.d.ts +1 -1
- package/out/api/parameters/getContentProperty.d.ts +12 -0
- package/out/api/parameters/getContentVersions.d.ts +1 -1
- package/out/api/parameters/getCurrentUser.d.ts +1 -6
- package/out/api/parameters/getHistoryForContent.d.ts +1 -1
- package/out/api/parameters/getLabelsForSpace.d.ts +18 -0
- package/out/api/parameters/getLabelsForSpace.js +2 -0
- package/out/api/parameters/index.d.ts +3 -0
- package/out/api/parameters/index.js +3 -0
- package/out/api/parameters/restoreContentVersion.d.ts +1 -1
- package/out/api/parameters/searchUser.d.ts +7 -0
- package/out/api/relation.js +5 -5
- package/out/api/search.d.ts +2 -2
- package/out/api/search.js +3 -2
- package/out/api/settings.js +6 -6
- package/out/api/space.js +9 -9
- package/out/api/spacePermissions.js +3 -3
- package/out/api/spaceProperties.js +6 -6
- package/out/api/spaceSettings.js +2 -2
- package/out/api/template.d.ts +24 -16
- package/out/api/template.js +6 -6
- package/out/api/themes.js +6 -6
- package/out/api/users.js +8 -8
- package/out/clients/baseClient.d.ts +2 -5
- package/out/clients/baseClient.js +10 -32
- package/out/clients/client.d.ts +2 -3
- package/out/config.d.ts +3 -2
- package/out/index.d.ts +1 -0
- package/out/index.js +2 -1
- package/package.json +24 -24
- package/src/api/audit.ts +6 -6
- package/src/api/content.ts +11 -10
- package/src/api/contentAttachments.ts +10 -9
- package/src/api/contentBody.ts +1 -1
- package/src/api/contentChildrenAndDescendants.ts +7 -7
- package/src/api/contentComments.ts +1 -1
- package/src/api/contentLabels.ts +4 -4
- package/src/api/contentMacroBody.ts +1 -1
- package/src/api/contentPermissions.ts +1 -1
- package/src/api/contentProperties.ts +7 -6
- package/src/api/contentRestrictions.ts +15 -15
- package/src/api/contentVersions.ts +4 -4
- package/src/api/contentWatches.ts +12 -12
- package/src/api/dynamicModules.ts +3 -3
- package/src/api/experimental.ts +95 -2
- package/src/api/group.ts +16 -15
- package/src/api/inlineTasks.ts +3 -3
- package/src/api/labelInfo.ts +1 -1
- package/src/api/longRunningTask.ts +2 -2
- package/src/api/parameters/addLabelsToSpace.ts +4 -0
- package/src/api/parameters/deleteLabelFromSpace.ts +8 -0
- package/src/api/parameters/getBulkUserLookup.ts +0 -6
- package/src/api/parameters/getContentById.ts +86 -1
- package/src/api/parameters/getContentChildren.ts +1 -0
- package/src/api/parameters/getContentProperties.ts +1 -1
- package/src/api/parameters/getContentProperty.ts +12 -0
- package/src/api/parameters/getContentVersions.ts +1 -1
- package/src/api/parameters/getCurrentUser.ts +1 -6
- package/src/api/parameters/getHistoryForContent.ts +1 -1
- package/src/api/parameters/getLabelsForSpace.ts +18 -0
- package/src/api/parameters/index.ts +3 -0
- package/src/api/parameters/restoreContentVersion.ts +1 -1
- package/src/api/parameters/searchUser.ts +7 -0
- package/src/api/relation.ts +5 -5
- package/src/api/search.ts +6 -4
- package/src/api/settings.ts +6 -6
- package/src/api/space.ts +9 -9
- package/src/api/spacePermissions.ts +3 -3
- package/src/api/spaceProperties.ts +6 -6
- package/src/api/spaceSettings.ts +2 -2
- package/src/api/template.ts +30 -22
- package/src/api/themes.ts +6 -6
- package/src/api/users.ts +8 -8
- package/src/clients/baseClient.ts +10 -62
- package/src/clients/client.ts +2 -3
- package/src/config.ts +3 -2
- package/src/index.ts +1 -0
- package/tsconfig.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 1.3.0
|
|
4
|
+
|
|
5
|
+
- Telemetry removed (deprecated)
|
|
6
|
+
- Fixed bug with spaceKeys in `client.space.getSpaces` ([#14](https://github.com/MrRefactoring/confluence.js/issues/14) Thanks [David Sanchez](https://github.com/emulienfou) for catching)
|
|
7
|
+
- Fixed bug with attachment download ([#15](https://github.com/MrRefactoring/confluence.js/issues/15) Thanks [Martin Reinhardt](https://github.com/hypery2k) for catching)
|
|
8
|
+
|
|
9
|
+
### 1.2.2
|
|
10
|
+
|
|
11
|
+
- JSDOC improvements
|
|
12
|
+
- New experimental endpoints
|
|
13
|
+
- Small improvements
|
|
14
|
+
|
|
15
|
+
### 1.2.1
|
|
16
|
+
|
|
17
|
+
- Vulnerabilities fixes.
|
|
18
|
+
- Dependencies updated.
|
|
19
|
+
- Docs updated
|
|
20
|
+
- `expand` property added to `getContentById` method.
|
|
21
|
+
|
|
3
22
|
### 1.2.0
|
|
4
23
|
|
|
5
24
|
- Cloud API
|
package/README.md
CHANGED
|
@@ -18,9 +18,6 @@ Usability, consistency, and performance are key focuses of confluence.js, and it
|
|
|
18
18
|
## Table of contents
|
|
19
19
|
|
|
20
20
|
- [Installation](#installation)
|
|
21
|
-
- [Telemetry information collection agreement](#telemetry-information-collection-agreement)
|
|
22
|
-
- [Customizing telemetry collection data example](#customizing-telemetry-collection-data-example)
|
|
23
|
-
- [Disabling telemetry collection example](#disabling-telemetry-collection-example)
|
|
24
21
|
- [Usage](#usage)
|
|
25
22
|
- [Authentication](#authentication)
|
|
26
23
|
- [Basic](#basic-authenticationhttpsdeveloperatlassiancomcloudconfluencebasic-auth-for-rest-apis)
|
|
@@ -47,60 +44,6 @@ Install with the yarn:
|
|
|
47
44
|
yarn add confluence.js
|
|
48
45
|
```
|
|
49
46
|
|
|
50
|
-
## Telemetry information collecting agreement
|
|
51
|
-
|
|
52
|
-
The use of this library may collect, record and transmit data
|
|
53
|
-
about the operation of the library and related data, as well
|
|
54
|
-
as potentially personal data, including ip address from which
|
|
55
|
-
the request is made, user agent from the device from which the
|
|
56
|
-
request is made, version of the library used, version of the
|
|
57
|
-
telemetry sending library, name of the invoked method, authorization
|
|
58
|
-
type information (can be configured), base configuration request
|
|
59
|
-
usage information, callback information, onResponse middleware usage
|
|
60
|
-
information, onError middleware usage information, queries usage
|
|
61
|
-
information, body usage information in request, headers usage
|
|
62
|
-
information in request, HTTP response code (can be configured),
|
|
63
|
-
request start date and time and response receipt date and time
|
|
64
|
-
(can be configured), No check atlassian token flag enabling information.
|
|
65
|
-
|
|
66
|
-
The type and amount of data may vary with the version of the libraries and can be changed at any time without notice.
|
|
67
|
-
|
|
68
|
-
Telemetry data collection is enabled by default.
|
|
69
|
-
|
|
70
|
-
The following tracking parameters can be configured:
|
|
71
|
-
|
|
72
|
-
- Authentication type
|
|
73
|
-
- Request status code
|
|
74
|
-
- Request timings
|
|
75
|
-
|
|
76
|
-
#### Customizing telemetry collecting data example
|
|
77
|
-
|
|
78
|
-
```typescript
|
|
79
|
-
import { Config } from 'confluence.js';
|
|
80
|
-
|
|
81
|
-
const config: Config = {
|
|
82
|
-
host: 'https://your-domain.atlassian.net',
|
|
83
|
-
telemetry: {
|
|
84
|
-
allowedToPassAuthenticationType: false, // true by default
|
|
85
|
-
allowedToPassRequestStatusCode: true, // true by default
|
|
86
|
-
allowedToPassRequestTimings: false, // true by default
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
If you want to disable telemetry, set the `telemetry` field to `false`.
|
|
92
|
-
|
|
93
|
-
#### Disabling telemetry collection example
|
|
94
|
-
|
|
95
|
-
```typescript
|
|
96
|
-
import { Config } from 'confluence.js';
|
|
97
|
-
|
|
98
|
-
const config: Config = {
|
|
99
|
-
host: 'https://your-domain.atlassian.net',
|
|
100
|
-
telemetry: false, // Telemetry will not be collected
|
|
101
|
-
};
|
|
102
|
-
```
|
|
103
|
-
|
|
104
47
|
## Usage
|
|
105
48
|
|
|
106
49
|
#### Authentication
|
package/out/api/audit.js
CHANGED
|
@@ -19,7 +19,7 @@ class Audit {
|
|
|
19
19
|
limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
return this.client.sendRequest(config, callback
|
|
22
|
+
return this.client.sendRequest(config, callback);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
createAuditRecord(parameters, callback) {
|
|
@@ -40,7 +40,7 @@ class Audit {
|
|
|
40
40
|
associatedObjects: parameters === null || parameters === void 0 ? void 0 : parameters.associatedObjects,
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
|
-
return this.client.sendRequest(config, callback
|
|
43
|
+
return this.client.sendRequest(config, callback);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
exportAuditRecords(parameters, callback) {
|
|
@@ -55,7 +55,7 @@ class Audit {
|
|
|
55
55
|
format: parameters === null || parameters === void 0 ? void 0 : parameters.format,
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
|
-
return this.client.sendRequest(config, callback
|
|
58
|
+
return this.client.sendRequest(config, callback);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
getRetentionPeriod(callback) {
|
|
@@ -64,7 +64,7 @@ class Audit {
|
|
|
64
64
|
url: '/api/audit/retention',
|
|
65
65
|
method: 'GET',
|
|
66
66
|
};
|
|
67
|
-
return this.client.sendRequest(config, callback
|
|
67
|
+
return this.client.sendRequest(config, callback);
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
setRetentionPeriod(parameters, callback) {
|
|
@@ -77,7 +77,7 @@ class Audit {
|
|
|
77
77
|
units: parameters === null || parameters === void 0 ? void 0 : parameters.units,
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
80
|
+
return this.client.sendRequest(config, callback);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
getAuditRecordsForTimePeriod(parameters, callback) {
|
|
@@ -93,7 +93,7 @@ class Audit {
|
|
|
93
93
|
limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
|
-
return this.client.sendRequest(config, callback
|
|
96
|
+
return this.client.sendRequest(config, callback);
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
}
|
package/out/api/content.js
CHANGED
|
@@ -24,7 +24,7 @@ class Content {
|
|
|
24
24
|
expand: parameters === null || parameters === void 0 ? void 0 : parameters.expand,
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
|
-
return this.client.sendRequest(config, callback
|
|
27
|
+
return this.client.sendRequest(config, callback);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
createContent(parameters, callback) {
|
|
@@ -38,7 +38,7 @@ class Content {
|
|
|
38
38
|
},
|
|
39
39
|
data: Object.assign(Object.assign({}, parameters), { status: undefined, expand: undefined }),
|
|
40
40
|
};
|
|
41
|
-
return this.client.sendRequest(config, callback
|
|
41
|
+
return this.client.sendRequest(config, callback);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
archivePages(parameters, callback) {
|
|
@@ -50,7 +50,7 @@ class Content {
|
|
|
50
50
|
pages: parameters.pages,
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
|
-
return this.client.sendRequest(config, callback
|
|
53
|
+
return this.client.sendRequest(config, callback);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
publishLegacyDraft(parameters, callback) {
|
|
@@ -63,7 +63,7 @@ class Content {
|
|
|
63
63
|
},
|
|
64
64
|
data: Object.assign(Object.assign({}, parameters), { version: parameters.version, title: parameters.title, type: parameters.type, status: parameters.bodyStatus, space: parameters.space, ancestors: parameters.ancestors }),
|
|
65
65
|
};
|
|
66
|
-
return this.client.sendRequest(config, callback
|
|
66
|
+
return this.client.sendRequest(config, callback);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
publishSharedDraft(parameters, callback) {
|
|
@@ -76,7 +76,7 @@ class Content {
|
|
|
76
76
|
},
|
|
77
77
|
data: Object.assign(Object.assign({}, parameters), { version: parameters.version, title: parameters.title, type: parameters.type, status: parameters.bodyStatus, space: parameters.space, ancestors: parameters.ancestors }),
|
|
78
78
|
};
|
|
79
|
-
return this.client.sendRequest(config, callback
|
|
79
|
+
return this.client.sendRequest(config, callback);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
searchContentByCQL(parameters, callback) {
|
|
@@ -91,7 +91,7 @@ class Content {
|
|
|
91
91
|
limit: parameters.limit,
|
|
92
92
|
},
|
|
93
93
|
};
|
|
94
|
-
return this.client.sendRequest(config, callback
|
|
94
|
+
return this.client.sendRequest(config, callback);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
getContentById(parameters, callback) {
|
|
@@ -104,9 +104,10 @@ class Content {
|
|
|
104
104
|
version: parameters.version,
|
|
105
105
|
embeddedContentRender: parameters.embeddedContentRender,
|
|
106
106
|
trigger: parameters.trigger,
|
|
107
|
+
expand: parameters.expand,
|
|
107
108
|
},
|
|
108
109
|
};
|
|
109
|
-
return this.client.sendRequest(config, callback
|
|
110
|
+
return this.client.sendRequest(config, callback);
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
updateContent(parameters, callback) {
|
|
@@ -127,7 +128,7 @@ class Content {
|
|
|
127
128
|
body: parameters.body,
|
|
128
129
|
},
|
|
129
130
|
};
|
|
130
|
-
return this.client.sendRequest(config, callback
|
|
131
|
+
return this.client.sendRequest(config, callback);
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
deleteContent(parameters, callback) {
|
|
@@ -139,7 +140,7 @@ class Content {
|
|
|
139
140
|
status: parameters.status,
|
|
140
141
|
},
|
|
141
142
|
};
|
|
142
|
-
return this.client.sendRequest(config, callback
|
|
143
|
+
return this.client.sendRequest(config, callback);
|
|
143
144
|
});
|
|
144
145
|
}
|
|
145
146
|
getHistoryForContent(parameters, callback) {
|
|
@@ -151,7 +152,7 @@ class Content {
|
|
|
151
152
|
expand: parameters.expand,
|
|
152
153
|
},
|
|
153
154
|
};
|
|
154
|
-
return this.client.sendRequest(config, callback
|
|
155
|
+
return this.client.sendRequest(config, callback);
|
|
155
156
|
});
|
|
156
157
|
}
|
|
157
158
|
}
|
|
@@ -244,7 +244,7 @@ export declare class ContentAttachments {
|
|
|
244
244
|
*/
|
|
245
245
|
updateAttachmentData<T = Models.Content>(parameters: Parameters.UpdateAttachmentData, callback?: never): Promise<T>;
|
|
246
246
|
/** Redirects the client to a URL that serves an attachment's binary data. */
|
|
247
|
-
downloadAttachment<T =
|
|
247
|
+
downloadAttachment<T = ArrayBuffer>(parameters: Parameters.DownloadAttachment, callback: Callback<T>): Promise<void>;
|
|
248
248
|
/** Redirects the client to a URL that serves an attachment's binary data. */
|
|
249
|
-
downloadAttachment<T =
|
|
249
|
+
downloadAttachment<T = ArrayBuffer>(parameters: Parameters.DownloadAttachment, callback?: never): Promise<T>;
|
|
250
250
|
}
|
|
@@ -19,7 +19,7 @@ class ContentAttachments {
|
|
|
19
19
|
expand: parameters.expand,
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
return this.client.sendRequest(config, callback
|
|
22
|
+
return this.client.sendRequest(config, callback);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
createAttachments(parameters, callback) {
|
|
@@ -32,7 +32,7 @@ class ContentAttachments {
|
|
|
32
32
|
},
|
|
33
33
|
data: Object.assign(Object.assign({}, parameters), { id: undefined, status: undefined }),
|
|
34
34
|
};
|
|
35
|
-
return this.client.sendRequest(config, callback
|
|
35
|
+
return this.client.sendRequest(config, callback);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
createOrUpdateAttachments(parameters, callback) {
|
|
@@ -45,7 +45,7 @@ class ContentAttachments {
|
|
|
45
45
|
},
|
|
46
46
|
data: Object.assign(Object.assign({}, parameters), { id: undefined, status: undefined }),
|
|
47
47
|
};
|
|
48
|
-
return this.client.sendRequest(config, callback
|
|
48
|
+
return this.client.sendRequest(config, callback);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
updateAttachmentProperties(parameters, callback) {
|
|
@@ -55,7 +55,7 @@ class ContentAttachments {
|
|
|
55
55
|
method: 'PUT',
|
|
56
56
|
data: parameters.body,
|
|
57
57
|
};
|
|
58
|
-
return this.client.sendRequest(config, callback
|
|
58
|
+
return this.client.sendRequest(config, callback);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
updateAttachmentData(parameters, callback) {
|
|
@@ -65,7 +65,7 @@ class ContentAttachments {
|
|
|
65
65
|
method: 'POST',
|
|
66
66
|
data: Object.assign(Object.assign({}, parameters), { id: undefined, attachmentId: undefined }),
|
|
67
67
|
};
|
|
68
|
-
return this.client.sendRequest(config, callback
|
|
68
|
+
return this.client.sendRequest(config, callback);
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
downloadAttachment(parameters, callback) {
|
|
@@ -73,11 +73,12 @@ class ContentAttachments {
|
|
|
73
73
|
const config = {
|
|
74
74
|
url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}/download`,
|
|
75
75
|
method: 'GET',
|
|
76
|
+
responseType: 'arraybuffer',
|
|
76
77
|
params: {
|
|
77
78
|
version: parameters.version,
|
|
78
79
|
},
|
|
79
80
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
81
|
+
return this.client.sendRequest(config, callback);
|
|
81
82
|
});
|
|
82
83
|
}
|
|
83
84
|
}
|
package/out/api/contentBody.js
CHANGED
|
@@ -16,7 +16,7 @@ class ContentChildrenAndDescendants {
|
|
|
16
16
|
parentVersion: parameters.parentVersion,
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
|
-
return this.client.sendRequest(config, callback
|
|
19
|
+
return this.client.sendRequest(config, callback);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
movePage(parameters, callback) {
|
|
@@ -25,7 +25,7 @@ class ContentChildrenAndDescendants {
|
|
|
25
25
|
url: `/api/content/${parameters.id}/move/${parameters.position}/${parameters.targetId}`,
|
|
26
26
|
method: 'PUT',
|
|
27
27
|
};
|
|
28
|
-
return this.client.sendRequest(config, callback
|
|
28
|
+
return this.client.sendRequest(config, callback);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
getContentChildrenByType(parameters, callback) {
|
|
@@ -39,7 +39,7 @@ class ContentChildrenAndDescendants {
|
|
|
39
39
|
limit: parameters.limit,
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
getContentDescendants(parameters, callback) {
|
|
@@ -51,7 +51,7 @@ class ContentChildrenAndDescendants {
|
|
|
51
51
|
expand: parameters.expand,
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
|
-
return this.client.sendRequest(config, callback
|
|
54
|
+
return this.client.sendRequest(config, callback);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
descendantsOfType(parameters, callback) {
|
|
@@ -71,7 +71,7 @@ class ContentChildrenAndDescendants {
|
|
|
71
71
|
expand: parameters.expand,
|
|
72
72
|
},
|
|
73
73
|
};
|
|
74
|
-
return this.client.sendRequest(config, callback
|
|
74
|
+
return this.client.sendRequest(config, callback);
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
copyPageHierarchy(parameters, callback) {
|
|
@@ -89,7 +89,7 @@ class ContentChildrenAndDescendants {
|
|
|
89
89
|
titleOptions: parameters.titleOptions,
|
|
90
90
|
},
|
|
91
91
|
};
|
|
92
|
-
return this.client.sendRequest(config, callback
|
|
92
|
+
return this.client.sendRequest(config, callback);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
copyPage(parameters, callback) {
|
|
@@ -102,7 +102,7 @@ class ContentChildrenAndDescendants {
|
|
|
102
102
|
},
|
|
103
103
|
data: parameters.bodyParameters,
|
|
104
104
|
};
|
|
105
|
-
return this.client.sendRequest(config, callback
|
|
105
|
+
return this.client.sendRequest(config, callback);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
}
|
package/out/api/contentLabels.js
CHANGED
|
@@ -17,7 +17,7 @@ class ContentLabels {
|
|
|
17
17
|
limit: parameters.limit,
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
|
-
return this.client.sendRequest(config, callback
|
|
20
|
+
return this.client.sendRequest(config, callback);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
addLabelsToContent(parameters, callback) {
|
|
@@ -30,7 +30,7 @@ class ContentLabels {
|
|
|
30
30
|
},
|
|
31
31
|
data: parameters.body,
|
|
32
32
|
};
|
|
33
|
-
return this.client.sendRequest(config, callback
|
|
33
|
+
return this.client.sendRequest(config, callback);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
removeLabelFromContentUsingQueryParameter(parameters, callback) {
|
|
@@ -42,7 +42,7 @@ class ContentLabels {
|
|
|
42
42
|
name: parameters.name,
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
|
-
return this.client.sendRequest(config, callback
|
|
45
|
+
return this.client.sendRequest(config, callback);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
removeLabelFromContent(parameters, callback) {
|
|
@@ -51,7 +51,7 @@ class ContentLabels {
|
|
|
51
51
|
url: `/api/content/${parameters.id}/label/${parameters.label}`,
|
|
52
52
|
method: 'DELETE',
|
|
53
53
|
};
|
|
54
|
-
return this.client.sendRequest(config, callback
|
|
54
|
+
return this.client.sendRequest(config, callback);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -12,7 +12,7 @@ class ContentMacroBody {
|
|
|
12
12
|
url: `/api/content/${parameters.id}/history/${parameters.version}/macro/id/${parameters.macroId}`,
|
|
13
13
|
method: 'GET',
|
|
14
14
|
};
|
|
15
|
-
return this.client.sendRequest(config, callback
|
|
15
|
+
return this.client.sendRequest(config, callback);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -18,7 +18,7 @@ class ContentProperties {
|
|
|
18
18
|
limit: parameters.limit,
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
|
-
return this.client.sendRequest(config, callback
|
|
21
|
+
return this.client.sendRequest(config, callback);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
createContentProperty(parameters, callback) {
|
|
@@ -31,7 +31,7 @@ class ContentProperties {
|
|
|
31
31
|
value: parameters.value,
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
|
-
return this.client.sendRequest(config, callback
|
|
34
|
+
return this.client.sendRequest(config, callback);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
getContentProperty(parameters, callback) {
|
|
@@ -41,9 +41,10 @@ class ContentProperties {
|
|
|
41
41
|
method: 'GET',
|
|
42
42
|
params: {
|
|
43
43
|
expand: parameters.expand,
|
|
44
|
+
status: parameters.status,
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
|
-
return this.client.sendRequest(config, callback
|
|
47
|
+
return this.client.sendRequest(config, callback);
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
createContentPropertyForKey(parameters, callback) {
|
|
@@ -55,7 +56,7 @@ class ContentProperties {
|
|
|
55
56
|
value: parameters.value,
|
|
56
57
|
},
|
|
57
58
|
};
|
|
58
|
-
return this.client.sendRequest(config, callback
|
|
59
|
+
return this.client.sendRequest(config, callback);
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
updateContentProperty(parameters, callback) {
|
|
@@ -68,7 +69,7 @@ class ContentProperties {
|
|
|
68
69
|
version: parameters.version,
|
|
69
70
|
},
|
|
70
71
|
};
|
|
71
|
-
return this.client.sendRequest(config, callback
|
|
72
|
+
return this.client.sendRequest(config, callback);
|
|
72
73
|
});
|
|
73
74
|
}
|
|
74
75
|
deleteContentProperty(parameters, callback) {
|
|
@@ -77,7 +78,7 @@ class ContentProperties {
|
|
|
77
78
|
url: `/api/content/${parameters.id}/property/${parameters.key}`,
|
|
78
79
|
method: 'DELETE',
|
|
79
80
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
81
|
+
return this.client.sendRequest(config, callback);
|
|
81
82
|
});
|
|
82
83
|
}
|
|
83
84
|
}
|
|
@@ -17,7 +17,7 @@ class ContentRestrictions {
|
|
|
17
17
|
limit: parameters.limit,
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
|
-
return this.client.sendRequest(config, callback
|
|
20
|
+
return this.client.sendRequest(config, callback);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
addRestrictions(parameters, callback) {
|
|
@@ -30,7 +30,7 @@ class ContentRestrictions {
|
|
|
30
30
|
},
|
|
31
31
|
data: parameters.body,
|
|
32
32
|
};
|
|
33
|
-
return this.client.sendRequest(config, callback
|
|
33
|
+
return this.client.sendRequest(config, callback);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
updateRestrictions(parameters, callback) {
|
|
@@ -43,7 +43,7 @@ class ContentRestrictions {
|
|
|
43
43
|
},
|
|
44
44
|
data: parameters.body,
|
|
45
45
|
};
|
|
46
|
-
return this.client.sendRequest(config, callback
|
|
46
|
+
return this.client.sendRequest(config, callback);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
deleteRestrictions(parameters, callback) {
|
|
@@ -55,7 +55,7 @@ class ContentRestrictions {
|
|
|
55
55
|
expand: parameters.expand,
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
|
-
return this.client.sendRequest(config, callback
|
|
58
|
+
return this.client.sendRequest(config, callback);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
getRestrictionsByOperation(parameters, callback) {
|
|
@@ -67,7 +67,7 @@ class ContentRestrictions {
|
|
|
67
67
|
expand: parameters.expand,
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
|
-
return this.client.sendRequest(config, callback
|
|
70
|
+
return this.client.sendRequest(config, callback);
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
getRestrictionsForOperation(parameters, callback) {
|
|
@@ -81,7 +81,7 @@ class ContentRestrictions {
|
|
|
81
81
|
limit: parameters.limit,
|
|
82
82
|
},
|
|
83
83
|
};
|
|
84
|
-
return this.client.sendRequest(config, callback
|
|
84
|
+
return this.client.sendRequest(config, callback);
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
getContentRestrictionStatusForGroup(parameters, callback) {
|
|
@@ -90,7 +90,7 @@ class ContentRestrictions {
|
|
|
90
90
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,
|
|
91
91
|
method: 'GET',
|
|
92
92
|
};
|
|
93
|
-
return this.client.sendRequest(config, callback
|
|
93
|
+
return this.client.sendRequest(config, callback);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
addGroupToContentRestriction(parameters, callback) {
|
|
@@ -99,7 +99,7 @@ class ContentRestrictions {
|
|
|
99
99
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,
|
|
100
100
|
method: 'PUT',
|
|
101
101
|
};
|
|
102
|
-
return this.client.sendRequest(config, callback
|
|
102
|
+
return this.client.sendRequest(config, callback);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
removeGroupByName(parameters, callback) {
|
|
@@ -108,7 +108,7 @@ class ContentRestrictions {
|
|
|
108
108
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,
|
|
109
109
|
method: 'DELETE',
|
|
110
110
|
};
|
|
111
|
-
return this.client.sendRequest(config, callback
|
|
111
|
+
return this.client.sendRequest(config, callback);
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
getIndividualGroupRestrictionStatusByGroupId(parameters, callback) {
|
|
@@ -117,7 +117,7 @@ class ContentRestrictions {
|
|
|
117
117
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,
|
|
118
118
|
method: 'GET',
|
|
119
119
|
};
|
|
120
|
-
return this.client.sendRequest(config, callback
|
|
120
|
+
return this.client.sendRequest(config, callback);
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
addGroupToContentRestrictionByGroupId(parameters, callback) {
|
|
@@ -126,7 +126,7 @@ class ContentRestrictions {
|
|
|
126
126
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,
|
|
127
127
|
method: 'PUT',
|
|
128
128
|
};
|
|
129
|
-
return this.client.sendRequest(config, callback
|
|
129
|
+
return this.client.sendRequest(config, callback);
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
removeGroupById(parameters, callback) {
|
|
@@ -135,7 +135,7 @@ class ContentRestrictions {
|
|
|
135
135
|
url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,
|
|
136
136
|
method: 'DELETE',
|
|
137
137
|
};
|
|
138
|
-
return this.client.sendRequest(config, callback
|
|
138
|
+
return this.client.sendRequest(config, callback);
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
getContentRestrictionStatusForUser(parameters, callback) {
|
|
@@ -149,7 +149,7 @@ class ContentRestrictions {
|
|
|
149
149
|
accountId: parameters.accountId,
|
|
150
150
|
},
|
|
151
151
|
};
|
|
152
|
-
return this.client.sendRequest(config, callback
|
|
152
|
+
return this.client.sendRequest(config, callback);
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
addUserToContentRestriction(parameters, callback) {
|
|
@@ -163,7 +163,7 @@ class ContentRestrictions {
|
|
|
163
163
|
accountId: parameters.accountId,
|
|
164
164
|
},
|
|
165
165
|
};
|
|
166
|
-
return this.client.sendRequest(config, callback
|
|
166
|
+
return this.client.sendRequest(config, callback);
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
removeUserFromContentRestriction(parameters, callback) {
|
|
@@ -177,7 +177,7 @@ class ContentRestrictions {
|
|
|
177
177
|
accountId: parameters.accountId,
|
|
178
178
|
},
|
|
179
179
|
};
|
|
180
|
-
return this.client.sendRequest(config, callback
|
|
180
|
+
return this.client.sendRequest(config, callback);
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -17,7 +17,7 @@ class ContentVersions {
|
|
|
17
17
|
expand: parameters.expand,
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
|
-
return this.client.sendRequest(config, callback
|
|
20
|
+
return this.client.sendRequest(config, callback);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
restoreContentVersion(parameters, callback) {
|
|
@@ -33,7 +33,7 @@ class ContentVersions {
|
|
|
33
33
|
params: parameters.params,
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
|
-
return this.client.sendRequest(config, callback
|
|
36
|
+
return this.client.sendRequest(config, callback);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
getContentVersion(parameters, callback) {
|
|
@@ -45,7 +45,7 @@ class ContentVersions {
|
|
|
45
45
|
expand: parameters.expand,
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
|
-
return this.client.sendRequest(config, callback
|
|
48
|
+
return this.client.sendRequest(config, callback);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
deleteContentVersion(parameters, callback) {
|
|
@@ -54,7 +54,7 @@ class ContentVersions {
|
|
|
54
54
|
url: `/api/content/${parameters.id}/version/${parameters.versionNumber}`,
|
|
55
55
|
method: 'DELETE',
|
|
56
56
|
};
|
|
57
|
-
return this.client.sendRequest(config, callback
|
|
57
|
+
return this.client.sendRequest(config, callback);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
}
|