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
|
@@ -12,7 +12,7 @@ class DynamicModules {
|
|
|
12
12
|
url: '/atlassian-connect/1/app/module/dynamic',
|
|
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
|
registerModules(parameters, callback) {
|
|
@@ -21,7 +21,7 @@ class DynamicModules {
|
|
|
21
21
|
url: '/atlassian-connect/1/app/module/dynamic',
|
|
22
22
|
method: 'POST',
|
|
23
23
|
};
|
|
24
|
-
return this.client.sendRequest(config, callback
|
|
24
|
+
return this.client.sendRequest(config, callback);
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
removeModules(parameters, callback) {
|
|
@@ -33,7 +33,7 @@ class DynamicModules {
|
|
|
33
33
|
moduleKey: parameters.moduleKey,
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
|
-
return this.client.sendRequest(config, callback
|
|
36
|
+
return this.client.sendRequest(config, callback);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}
|
package/out/api/experimental.js
CHANGED
|
@@ -17,7 +17,7 @@ class Experimental {
|
|
|
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
|
addLabelsToSpace(parameters, callback) {
|
|
@@ -26,7 +26,7 @@ class Experimental {
|
|
|
26
26
|
url: `/api/space/${parameters.spaceKey}/label`,
|
|
27
27
|
method: 'POST',
|
|
28
28
|
};
|
|
29
|
-
return this.client.sendRequest(config, callback
|
|
29
|
+
return this.client.sendRequest(config, callback);
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
deleteLabelFromSpace(parameters, callback) {
|
|
@@ -39,7 +39,7 @@ class Experimental {
|
|
|
39
39
|
prefix: parameters.prefix,
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
getViews(parameters, callback) {
|
|
@@ -51,7 +51,7 @@ class Experimental {
|
|
|
51
51
|
fromDate: parameters.fromDate,
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
|
-
return this.client.sendRequest(config, callback
|
|
54
|
+
return this.client.sendRequest(config, callback);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getViewers(parameters, callback) {
|
|
@@ -63,7 +63,7 @@ class Experimental {
|
|
|
63
63
|
fromDate: parameters.fromDate,
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
|
-
return this.client.sendRequest(config, callback
|
|
66
|
+
return this.client.sendRequest(config, callback);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
}
|
package/out/api/group.js
CHANGED
|
@@ -17,7 +17,7 @@ class Group {
|
|
|
17
17
|
accessType: parameters === null || parameters === void 0 ? void 0 : parameters.accessType,
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
|
-
return this.client.sendRequest(config, callback
|
|
20
|
+
return this.client.sendRequest(config, callback);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
createGroup(parameters, callback) {
|
|
@@ -29,7 +29,7 @@ class Group {
|
|
|
29
29
|
name: parameters === null || parameters === void 0 ? void 0 : parameters.name,
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
|
-
return this.client.sendRequest(config, callback
|
|
32
|
+
return this.client.sendRequest(config, callback);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
removeGroup(parameters, callback) {
|
|
@@ -41,7 +41,7 @@ class Group {
|
|
|
41
41
|
name: parameters.name,
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
|
-
return this.client.sendRequest(config, callback
|
|
44
|
+
return this.client.sendRequest(config, callback);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
getGroupByQueryParam(parameters, callback) {
|
|
@@ -53,7 +53,7 @@ class Group {
|
|
|
53
53
|
name: parameters.name,
|
|
54
54
|
},
|
|
55
55
|
};
|
|
56
|
-
return this.client.sendRequest(config, callback
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
getGroupByGroupId(parameters, callback) {
|
|
@@ -65,7 +65,7 @@ class Group {
|
|
|
65
65
|
id: parameters.id,
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
|
-
return this.client.sendRequest(config, callback
|
|
68
|
+
return this.client.sendRequest(config, callback);
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
removeGroupById(parameters, callback) {
|
|
@@ -77,7 +77,7 @@ class Group {
|
|
|
77
77
|
id: parameters.id,
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
80
|
+
return this.client.sendRequest(config, callback);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
getGroup(parameters, callback) {
|
|
@@ -91,7 +91,7 @@ class Group {
|
|
|
91
91
|
url: `/api/group/${parameters.groupName}`,
|
|
92
92
|
method: 'GET',
|
|
93
93
|
};
|
|
94
|
-
return this.client.sendRequest(config, callback
|
|
94
|
+
return this.client.sendRequest(config, callback);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
getMembersByQueryParam(parameters, callback) {
|
|
@@ -105,7 +105,7 @@ class Group {
|
|
|
105
105
|
limit: parameters.limit,
|
|
106
106
|
},
|
|
107
107
|
};
|
|
108
|
-
return this.client.sendRequest(config, callback
|
|
108
|
+
return this.client.sendRequest(config, callback);
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
getGroupMembers(parameters, callback) {
|
|
@@ -118,7 +118,7 @@ class Group {
|
|
|
118
118
|
limit: parameters.limit,
|
|
119
119
|
},
|
|
120
120
|
};
|
|
121
|
-
return this.client.sendRequest(config, callback
|
|
121
|
+
return this.client.sendRequest(config, callback);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
getGroupsSearch(parameters, callback) {
|
|
@@ -137,7 +137,7 @@ class Group {
|
|
|
137
137
|
limit: parameters.limit,
|
|
138
138
|
},
|
|
139
139
|
};
|
|
140
|
-
return this.client.sendRequest(config, callback
|
|
140
|
+
return this.client.sendRequest(config, callback);
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
addUserToGroupByGroupId(parameters, callback) {
|
|
@@ -152,7 +152,7 @@ class Group {
|
|
|
152
152
|
accountId: parameters.accountId,
|
|
153
153
|
},
|
|
154
154
|
};
|
|
155
|
-
return this.client.sendRequest(config, callback
|
|
155
|
+
return this.client.sendRequest(config, callback);
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
removeMemberFromGroupByGroupId(parameters, callback) {
|
|
@@ -165,7 +165,7 @@ class Group {
|
|
|
165
165
|
accountId: parameters.accountId,
|
|
166
166
|
},
|
|
167
167
|
};
|
|
168
|
-
return this.client.sendRequest(config, callback
|
|
168
|
+
return this.client.sendRequest(config, callback);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
getGroupMembersByGroupId(parameters, callback) {
|
|
@@ -178,7 +178,7 @@ class Group {
|
|
|
178
178
|
limit: parameters.limit,
|
|
179
179
|
},
|
|
180
180
|
};
|
|
181
|
-
return this.client.sendRequest(config, callback
|
|
181
|
+
return this.client.sendRequest(config, callback);
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
addUserToGroup(parameters, callback) {
|
|
@@ -193,7 +193,7 @@ class Group {
|
|
|
193
193
|
accountId: parameters.accountId,
|
|
194
194
|
},
|
|
195
195
|
};
|
|
196
|
-
return this.client.sendRequest(config, callback
|
|
196
|
+
return this.client.sendRequest(config, callback);
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
removeMemberFromGroup(parameters, callback) {
|
|
@@ -206,7 +206,7 @@ class Group {
|
|
|
206
206
|
accountId: parameters.accountId,
|
|
207
207
|
},
|
|
208
208
|
};
|
|
209
|
-
return this.client.sendRequest(config, callback
|
|
209
|
+
return this.client.sendRequest(config, callback);
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
}
|
package/out/api/inlineTasks.js
CHANGED
|
@@ -28,7 +28,7 @@ class InlineTasks {
|
|
|
28
28
|
status: parameters === null || parameters === void 0 ? void 0 : parameters.status,
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
|
-
return this.client.sendRequest(config, callback
|
|
31
|
+
return this.client.sendRequest(config, callback);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
getTaskById(parameters, callback) {
|
|
@@ -37,7 +37,7 @@ class InlineTasks {
|
|
|
37
37
|
url: `/api/inlinetasks/${parameters.inlineTaskId}`,
|
|
38
38
|
method: 'GET',
|
|
39
39
|
};
|
|
40
|
-
return this.client.sendRequest(config, callback
|
|
40
|
+
return this.client.sendRequest(config, callback);
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
updateTaskById(parameters, callback) {
|
|
@@ -49,7 +49,7 @@ class InlineTasks {
|
|
|
49
49
|
status: parameters.status,
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
|
-
return this.client.sendRequest(config, callback
|
|
52
|
+
return this.client.sendRequest(config, callback);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
}
|
package/out/api/labelInfo.js
CHANGED
|
@@ -16,7 +16,7 @@ class LongRunningTask {
|
|
|
16
16
|
limit: parameters === null || parameters === void 0 ? void 0 : 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
|
getTask(parameters, callback) {
|
|
@@ -25,7 +25,7 @@ class LongRunningTask {
|
|
|
25
25
|
url: `/api/longtask/${parameters.id}`,
|
|
26
26
|
method: 'GET',
|
|
27
27
|
};
|
|
28
|
-
return this.client.sendRequest(config, callback
|
|
28
|
+
return this.client.sendRequest(config, callback);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
}
|
package/out/api/relation.js
CHANGED
|
@@ -21,7 +21,7 @@ class Relation {
|
|
|
21
21
|
limit: parameters.limit,
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
|
-
return this.client.sendRequest(config, callback
|
|
24
|
+
return this.client.sendRequest(config, callback);
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
GetRelationship(parameters, callback) {
|
|
@@ -42,7 +42,7 @@ class Relation {
|
|
|
42
42
|
expand: parameters.expand,
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
|
-
return this.client.sendRequest(config, callback
|
|
45
|
+
return this.client.sendRequest(config, callback);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
createRelationship(parameters, callback) {
|
|
@@ -57,7 +57,7 @@ class Relation {
|
|
|
57
57
|
targetVersion: parameters.targetVersion,
|
|
58
58
|
},
|
|
59
59
|
};
|
|
60
|
-
return this.client.sendRequest(config, callback
|
|
60
|
+
return this.client.sendRequest(config, callback);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
delete(parameters, callback) {
|
|
@@ -77,7 +77,7 @@ class Relation {
|
|
|
77
77
|
targetVersion: parameters.targetVersion,
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
80
|
+
return this.client.sendRequest(config, callback);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
findSourcesForTarget(parameters, callback) {
|
|
@@ -95,7 +95,7 @@ class Relation {
|
|
|
95
95
|
limit: parameters.limit,
|
|
96
96
|
},
|
|
97
97
|
};
|
|
98
|
-
return this.client.sendRequest(config, callback
|
|
98
|
+
return this.client.sendRequest(config, callback);
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
}
|
package/out/api/search.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare class Search {
|
|
|
42
42
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
43
43
|
*
|
|
44
44
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
45
|
-
* profilePicture, and
|
|
45
|
+
* profilePicture, displayName, and timeZone.
|
|
46
46
|
*/
|
|
47
47
|
searchUser<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.SearchUser, callback: Callback<T>): Promise<void>;
|
|
48
48
|
/**
|
|
@@ -50,7 +50,7 @@ export declare class Search {
|
|
|
50
50
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
51
51
|
*
|
|
52
52
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
53
|
-
* profilePicture, and
|
|
53
|
+
* profilePicture, displayName, and timeZone.
|
|
54
54
|
*/
|
|
55
55
|
searchUser<T = Models.SearchPageResponseSearchResult>(parameters: Parameters.SearchUser, callback?: never): Promise<T>;
|
|
56
56
|
}
|
package/out/api/search.js
CHANGED
|
@@ -31,7 +31,7 @@ class Search {
|
|
|
31
31
|
expand: parameters.expand,
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
|
-
return this.client.sendRequest(config, callback
|
|
34
|
+
return this.client.sendRequest(config, callback);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
userSearch(parameters, callback) {
|
|
@@ -48,9 +48,10 @@ class Search {
|
|
|
48
48
|
cql: parameters.cql,
|
|
49
49
|
start: parameters.start,
|
|
50
50
|
limit: parameters.limit,
|
|
51
|
+
expand: parameters.expand,
|
|
51
52
|
},
|
|
52
53
|
};
|
|
53
|
-
return this.client.sendRequest(config, callback
|
|
54
|
+
return this.client.sendRequest(config, callback);
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
}
|
package/out/api/settings.js
CHANGED
|
@@ -15,7 +15,7 @@ class Settings {
|
|
|
15
15
|
spaceKey: parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey,
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
|
-
return this.client.sendRequest(config, callback
|
|
18
|
+
return this.client.sendRequest(config, callback);
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
updateLookAndFeel(parameters, callback) {
|
|
@@ -28,7 +28,7 @@ class Settings {
|
|
|
28
28
|
lookAndFeelType: parameters === null || parameters === void 0 ? void 0 : parameters.lookAndFeelType,
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
|
-
return this.client.sendRequest(config, callback
|
|
31
|
+
return this.client.sendRequest(config, callback);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
updateLookAndFeelSettings(parameters, callback) {
|
|
@@ -51,7 +51,7 @@ class Settings {
|
|
|
51
51
|
_links: parameters === null || parameters === void 0 ? void 0 : parameters.links,
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
|
-
return this.client.sendRequest(config, callback
|
|
54
|
+
return this.client.sendRequest(config, callback);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
resetLookAndFeelSettings(parameters, callback) {
|
|
@@ -63,7 +63,7 @@ class Settings {
|
|
|
63
63
|
spaceKey: parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey,
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
|
-
return this.client.sendRequest(config, callback
|
|
66
|
+
return this.client.sendRequest(config, callback);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
setLookAndFeelSettings(parameters, callback) {
|
|
@@ -75,7 +75,7 @@ class Settings {
|
|
|
75
75
|
spaceKey: parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey,
|
|
76
76
|
},
|
|
77
77
|
};
|
|
78
|
-
return this.client.sendRequest(config, callback
|
|
78
|
+
return this.client.sendRequest(config, callback);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
getSystemInfo(callback) {
|
|
@@ -84,7 +84,7 @@ class Settings {
|
|
|
84
84
|
url: '/api/settings/systemInfo',
|
|
85
85
|
method: 'GET',
|
|
86
86
|
};
|
|
87
|
-
return this.client.sendRequest(config, callback
|
|
87
|
+
return this.client.sendRequest(config, callback);
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
}
|
package/out/api/space.js
CHANGED
|
@@ -7,13 +7,12 @@ class Space {
|
|
|
7
7
|
this.client = client;
|
|
8
8
|
}
|
|
9
9
|
getSpaces(parameters, callback) {
|
|
10
|
-
var _a;
|
|
11
10
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
12
11
|
const config = {
|
|
13
12
|
url: '/api/space',
|
|
14
13
|
method: 'GET',
|
|
15
14
|
params: {
|
|
16
|
-
spaceKey: (_a = parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey) === null || _a === void 0 ? void 0 : _a.map((key
|
|
15
|
+
spaceKey: () => { var _a; return (_a = parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey) === null || _a === void 0 ? void 0 : _a.map((key) => `spaceKey=${key}`).join('&'); },
|
|
17
16
|
spaceId: parameters === null || parameters === void 0 ? void 0 : parameters.spaceId,
|
|
18
17
|
type: parameters === null || parameters === void 0 ? void 0 : parameters.type,
|
|
19
18
|
status: parameters === null || parameters === void 0 ? void 0 : parameters.status,
|
|
@@ -24,7 +23,7 @@ class Space {
|
|
|
24
23
|
limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
|
|
25
24
|
},
|
|
26
25
|
};
|
|
27
|
-
return this.client.sendRequest(config, callback
|
|
26
|
+
return this.client.sendRequest(config, callback);
|
|
28
27
|
});
|
|
29
28
|
}
|
|
30
29
|
createSpace(parameters, callback) {
|
|
@@ -39,7 +38,7 @@ class Space {
|
|
|
39
38
|
permissions: parameters === null || parameters === void 0 ? void 0 : parameters.permissions,
|
|
40
39
|
},
|
|
41
40
|
};
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
41
|
+
return this.client.sendRequest(config, callback);
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
44
|
createPrivateSpace(parameters, callback) {
|
|
@@ -54,7 +53,7 @@ class Space {
|
|
|
54
53
|
permissions: parameters === null || parameters === void 0 ? void 0 : parameters.permissions,
|
|
55
54
|
},
|
|
56
55
|
};
|
|
57
|
-
return this.client.sendRequest(config, callback
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
getSpace(parameters, callback) {
|
|
@@ -63,7 +62,7 @@ class Space {
|
|
|
63
62
|
url: `/api/space/${parameters.spaceKey}`,
|
|
64
63
|
method: 'GET',
|
|
65
64
|
};
|
|
66
|
-
return this.client.sendRequest(config, callback
|
|
65
|
+
return this.client.sendRequest(config, callback);
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
68
|
updateSpace(parameters, callback) {
|
|
@@ -79,7 +78,7 @@ class Space {
|
|
|
79
78
|
status: parameters.status,
|
|
80
79
|
},
|
|
81
80
|
};
|
|
82
|
-
return this.client.sendRequest(config, callback
|
|
81
|
+
return this.client.sendRequest(config, callback);
|
|
83
82
|
});
|
|
84
83
|
}
|
|
85
84
|
deleteSpace(parameters, callback) {
|
|
@@ -88,7 +87,7 @@ class Space {
|
|
|
88
87
|
url: `/api/space/${parameters.spaceKey}`,
|
|
89
88
|
method: 'DELETE',
|
|
90
89
|
};
|
|
91
|
-
return this.client.sendRequest(config, callback
|
|
90
|
+
return this.client.sendRequest(config, callback);
|
|
92
91
|
});
|
|
93
92
|
}
|
|
94
93
|
getContentForSpace(parameters, callback) {
|
|
@@ -102,7 +101,7 @@ class Space {
|
|
|
102
101
|
limit: parameters.limit,
|
|
103
102
|
},
|
|
104
103
|
};
|
|
105
|
-
return this.client.sendRequest(config, callback
|
|
104
|
+
return this.client.sendRequest(config, callback);
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
107
|
getContentByTypeForSpace(parameters, callback) {
|
|
@@ -116,7 +115,7 @@ class Space {
|
|
|
116
115
|
limit: parameters.limit,
|
|
117
116
|
},
|
|
118
117
|
};
|
|
119
|
-
return this.client.sendRequest(config, callback
|
|
118
|
+
return this.client.sendRequest(config, callback);
|
|
120
119
|
});
|
|
121
120
|
}
|
|
122
121
|
}
|
|
@@ -22,7 +22,7 @@ class SpacePermissions {
|
|
|
22
22
|
_links: parameters.links,
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
|
-
return this.client.sendRequest(config, callback
|
|
25
|
+
return this.client.sendRequest(config, callback);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
addCustomContentPermissions(parameters, callback) {
|
|
@@ -35,7 +35,7 @@ class SpacePermissions {
|
|
|
35
35
|
operations: parameters.operations,
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
|
-
return this.client.sendRequest(config, callback
|
|
38
|
+
return this.client.sendRequest(config, callback);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
removePermission(parameters, callback) {
|
|
@@ -44,7 +44,7 @@ class SpacePermissions {
|
|
|
44
44
|
url: `/api/space/${parameters.spaceKey}/permission/${parameters.id}`,
|
|
45
45
|
method: 'DELETE',
|
|
46
46
|
};
|
|
47
|
-
return this.client.sendRequest(config, callback
|
|
47
|
+
return this.client.sendRequest(config, callback);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -17,7 +17,7 @@ class SpaceProperties {
|
|
|
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
|
createSpaceProperty(parameters, callback) {
|
|
@@ -31,7 +31,7 @@ class SpaceProperties {
|
|
|
31
31
|
space: parameters.space,
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
|
-
return this.client.sendRequest(config, callback
|
|
34
|
+
return this.client.sendRequest(config, callback);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
getSpaceProperty(parameters, callback) {
|
|
@@ -43,7 +43,7 @@ class SpaceProperties {
|
|
|
43
43
|
expand: parameters.expand,
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
|
-
return this.client.sendRequest(config, callback
|
|
46
|
+
return this.client.sendRequest(config, callback);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
createSpacePropertyForKey(parameters, callback) {
|
|
@@ -55,7 +55,7 @@ class SpaceProperties {
|
|
|
55
55
|
value: parameters.value,
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
|
-
return this.client.sendRequest(config, callback
|
|
58
|
+
return this.client.sendRequest(config, callback);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
updateSpaceProperty(parameters, callback) {
|
|
@@ -68,7 +68,7 @@ class SpaceProperties {
|
|
|
68
68
|
version: parameters.version,
|
|
69
69
|
},
|
|
70
70
|
};
|
|
71
|
-
return this.client.sendRequest(config, callback
|
|
71
|
+
return this.client.sendRequest(config, callback);
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
deleteSpaceProperty(parameters, callback) {
|
|
@@ -77,7 +77,7 @@ class SpaceProperties {
|
|
|
77
77
|
url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
|
|
78
78
|
method: 'DELETE',
|
|
79
79
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
80
|
+
return this.client.sendRequest(config, callback);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
}
|
package/out/api/spaceSettings.js
CHANGED
|
@@ -12,7 +12,7 @@ class SpaceSettings {
|
|
|
12
12
|
url: `/api/space/${parameters.spaceKey}/settings`,
|
|
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
|
updateSpaceSettings(parameters, callback) {
|
|
@@ -24,7 +24,7 @@ class SpaceSettings {
|
|
|
24
24
|
routeOverrideEnabled: parameters.routeOverrideEnabled,
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
|
-
return this.client.sendRequest(config, callback
|
|
27
|
+
return this.client.sendRequest(config, callback);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}
|
package/out/api/template.js
CHANGED
|
@@ -20,7 +20,7 @@ class Template {
|
|
|
20
20
|
space: parameters === null || parameters === void 0 ? void 0 : parameters.space,
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
|
-
return this.client.sendRequest(config, callback
|
|
23
|
+
return this.client.sendRequest(config, callback);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
updateContentTemplate(parameters, callback) {
|
|
@@ -38,7 +38,7 @@ class Template {
|
|
|
38
38
|
space: parameters === null || parameters === void 0 ? void 0 : parameters.space,
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
|
-
return this.client.sendRequest(config, callback
|
|
41
|
+
return this.client.sendRequest(config, callback);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
getBlueprintTemplates(parameters, callback) {
|
|
@@ -53,7 +53,7 @@ class Template {
|
|
|
53
53
|
expand: parameters === null || parameters === void 0 ? void 0 : parameters.expand,
|
|
54
54
|
},
|
|
55
55
|
};
|
|
56
|
-
return this.client.sendRequest(config, callback
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
getContentTemplates(parameters, callback) {
|
|
@@ -68,7 +68,7 @@ class Template {
|
|
|
68
68
|
expand: parameters === null || parameters === void 0 ? void 0 : parameters.expand,
|
|
69
69
|
},
|
|
70
70
|
};
|
|
71
|
-
return this.client.sendRequest(config, callback
|
|
71
|
+
return this.client.sendRequest(config, callback);
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
getContentTemplate(parameters, callback) {
|
|
@@ -77,7 +77,7 @@ class Template {
|
|
|
77
77
|
url: `/api/template/${parameters.contentTemplateId}`,
|
|
78
78
|
method: 'GET',
|
|
79
79
|
};
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
80
|
+
return this.client.sendRequest(config, callback);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
removeTemplate(parameters, callback) {
|
|
@@ -86,7 +86,7 @@ class Template {
|
|
|
86
86
|
url: `/api/template/${parameters.contentTemplateId}`,
|
|
87
87
|
method: 'DELETE',
|
|
88
88
|
};
|
|
89
|
-
return this.client.sendRequest(config, callback
|
|
89
|
+
return this.client.sendRequest(config, callback);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
}
|