confluence.js 1.3.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/out/api/audit.js +6 -6
- package/out/api/content.js +10 -10
- package/out/api/contentAttachments.js +6 -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 +6 -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.js +5 -5
- 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/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 -10
- 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.js +6 -6
- package/out/api/themes.js +6 -6
- package/out/api/users.js +8 -8
- package/out/clients/baseClient.js +6 -2
- package/package.json +3 -3
- package/src/api/audit.ts +6 -6
- package/src/api/content.ts +10 -10
- package/src/api/contentAttachments.ts +6 -6
- 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 +6 -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 +5 -5
- 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/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 +6 -6
- package/src/api/themes.ts +6 -6
- package/src/api/users.ts +8 -8
- package/src/clients/baseClient.ts +6 -2
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) {
|
|
@@ -107,7 +107,7 @@ class Content {
|
|
|
107
107
|
expand: parameters.expand,
|
|
108
108
|
},
|
|
109
109
|
};
|
|
110
|
-
return this.client.sendRequest(config, callback
|
|
110
|
+
return this.client.sendRequest(config, callback);
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
updateContent(parameters, callback) {
|
|
@@ -128,7 +128,7 @@ class Content {
|
|
|
128
128
|
body: parameters.body,
|
|
129
129
|
},
|
|
130
130
|
};
|
|
131
|
-
return this.client.sendRequest(config, callback
|
|
131
|
+
return this.client.sendRequest(config, callback);
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
deleteContent(parameters, callback) {
|
|
@@ -140,7 +140,7 @@ class Content {
|
|
|
140
140
|
status: parameters.status,
|
|
141
141
|
},
|
|
142
142
|
};
|
|
143
|
-
return this.client.sendRequest(config, callback
|
|
143
|
+
return this.client.sendRequest(config, callback);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
getHistoryForContent(parameters, callback) {
|
|
@@ -152,7 +152,7 @@ class Content {
|
|
|
152
152
|
expand: parameters.expand,
|
|
153
153
|
},
|
|
154
154
|
};
|
|
155
|
-
return this.client.sendRequest(config, callback
|
|
155
|
+
return this.client.sendRequest(config, callback);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -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) {
|
|
@@ -78,7 +78,7 @@ class ContentAttachments {
|
|
|
78
78
|
version: parameters.version,
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
|
-
return this.client.sendRequest(config, callback
|
|
81
|
+
return this.client.sendRequest(config, callback);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
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) {
|
|
@@ -44,7 +44,7 @@ class ContentProperties {
|
|
|
44
44
|
status: parameters.status,
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
|
-
return this.client.sendRequest(config, callback
|
|
47
|
+
return this.client.sendRequest(config, callback);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
createContentPropertyForKey(parameters, callback) {
|
|
@@ -56,7 +56,7 @@ class ContentProperties {
|
|
|
56
56
|
value: parameters.value,
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
|
-
return this.client.sendRequest(config, callback
|
|
59
|
+
return this.client.sendRequest(config, callback);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
updateContentProperty(parameters, callback) {
|
|
@@ -69,7 +69,7 @@ class ContentProperties {
|
|
|
69
69
|
version: parameters.version,
|
|
70
70
|
},
|
|
71
71
|
};
|
|
72
|
-
return this.client.sendRequest(config, callback
|
|
72
|
+
return this.client.sendRequest(config, callback);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
deleteContentProperty(parameters, callback) {
|
|
@@ -78,7 +78,7 @@ class ContentProperties {
|
|
|
78
78
|
url: `/api/content/${parameters.id}/property/${parameters.key}`,
|
|
79
79
|
method: 'DELETE',
|
|
80
80
|
};
|
|
81
|
-
return this.client.sendRequest(config, callback
|
|
81
|
+
return this.client.sendRequest(config, callback);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
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
|
}
|
|
@@ -16,7 +16,7 @@ class ContentWatches {
|
|
|
16
16
|
limit: parameters.limit,
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
|
-
return this.client.sendRequest(config, callback
|
|
19
|
+
return this.client.sendRequest(config, callback);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
getWatchesForSpace(parameters, callback) {
|
|
@@ -29,7 +29,7 @@ class ContentWatches {
|
|
|
29
29
|
limit: parameters.limit,
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
|
-
return this.client.sendRequest(config, callback
|
|
32
|
+
return this.client.sendRequest(config, callback);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
getWatchersForSpace(parameters, callback) {
|
|
@@ -42,7 +42,7 @@ class ContentWatches {
|
|
|
42
42
|
limit: parameters.limit,
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
|
-
return this.client.sendRequest(config, callback
|
|
45
|
+
return this.client.sendRequest(config, callback);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
getContentWatchStatus(parameters, callback) {
|
|
@@ -56,7 +56,7 @@ class ContentWatches {
|
|
|
56
56
|
accountId: parameters.accountId,
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
|
-
return this.client.sendRequest(config, callback
|
|
59
|
+
return this.client.sendRequest(config, callback);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
addContentWatcher(parameters, callback) {
|
|
@@ -70,7 +70,7 @@ class ContentWatches {
|
|
|
70
70
|
accountId: parameters.accountId,
|
|
71
71
|
},
|
|
72
72
|
};
|
|
73
|
-
return this.client.sendRequest(config, callback
|
|
73
|
+
return this.client.sendRequest(config, callback);
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
removeContentWatcher(parameters, callback) {
|
|
@@ -87,7 +87,7 @@ class ContentWatches {
|
|
|
87
87
|
accountId: parameters.accountId,
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
|
-
return this.client.sendRequest(config, callback
|
|
90
|
+
return this.client.sendRequest(config, callback);
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
isWatchingLabel(parameters, callback) {
|
|
@@ -101,7 +101,7 @@ class ContentWatches {
|
|
|
101
101
|
accountId: parameters.accountId,
|
|
102
102
|
},
|
|
103
103
|
};
|
|
104
|
-
return this.client.sendRequest(config, callback
|
|
104
|
+
return this.client.sendRequest(config, callback);
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
addLabelWatcher(parameters, callback) {
|
|
@@ -118,7 +118,7 @@ class ContentWatches {
|
|
|
118
118
|
accountId: parameters.accountId,
|
|
119
119
|
},
|
|
120
120
|
};
|
|
121
|
-
return this.client.sendRequest(config, callback
|
|
121
|
+
return this.client.sendRequest(config, callback);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
removeLabelWatcher(parameters, callback) {
|
|
@@ -132,7 +132,7 @@ class ContentWatches {
|
|
|
132
132
|
accountId: parameters.accountId,
|
|
133
133
|
},
|
|
134
134
|
};
|
|
135
|
-
return this.client.sendRequest(config, callback
|
|
135
|
+
return this.client.sendRequest(config, callback);
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
isWatchingSpace(parameters, callback) {
|
|
@@ -146,7 +146,7 @@ class ContentWatches {
|
|
|
146
146
|
accountId: parameters.accountId,
|
|
147
147
|
},
|
|
148
148
|
};
|
|
149
|
-
return this.client.sendRequest(config, callback
|
|
149
|
+
return this.client.sendRequest(config, callback);
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
addSpaceWatcher(parameters, callback) {
|
|
@@ -163,7 +163,7 @@ class ContentWatches {
|
|
|
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
|
removeSpaceWatch(parameters, callback) {
|
|
@@ -177,7 +177,7 @@ class ContentWatches {
|
|
|
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
|
}
|