confluence.js 1.2.2 → 1.4.0
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 +18 -0
- package/README.md +15 -57
- package/out/api/analytics.d.ts +16 -0
- package/out/api/analytics.js +34 -0
- package/out/api/audit.d.ts +1 -1
- package/out/api/audit.js +12 -12
- package/out/api/content.d.ts +1 -1
- package/out/api/content.js +20 -20
- package/out/api/contentAttachments.d.ts +3 -3
- package/out/api/contentAttachments.js +13 -12
- package/out/api/contentBody.d.ts +1 -1
- package/out/api/contentBody.js +2 -2
- package/out/api/contentChildrenAndDescendants.d.ts +3 -3
- package/out/api/contentChildrenAndDescendants.js +16 -15
- package/out/api/contentComments.d.ts +1 -1
- package/out/api/contentComments.js +2 -2
- package/out/api/contentContentState.d.ts +58 -0
- package/out/api/contentContentState.js +63 -0
- package/out/api/contentLabels.d.ts +1 -1
- package/out/api/contentLabels.js +8 -8
- package/out/api/contentMacroBody.d.ts +1 -1
- package/out/api/contentMacroBody.js +2 -2
- package/out/api/contentPermissions.d.ts +1 -1
- package/out/api/contentPermissions.js +3 -3
- package/out/api/contentProperties.d.ts +1 -1
- package/out/api/contentProperties.js +12 -12
- package/out/api/contentRestrictions.d.ts +1 -1
- package/out/api/contentRestrictions.js +30 -30
- package/out/api/contentVersions.d.ts +1 -1
- package/out/api/contentVersions.js +8 -8
- package/out/api/contentWatches.d.ts +1 -1
- package/out/api/contentWatches.js +24 -24
- package/out/api/dynamicModules.d.ts +1 -1
- package/out/api/dynamicModules.js +6 -6
- package/out/api/experimental.d.ts +123 -5
- package/out/api/experimental.js +65 -13
- package/out/api/group.d.ts +1 -1
- package/out/api/group.js +35 -32
- package/out/api/index.d.ts +2 -0
- package/out/api/index.js +31 -29
- package/out/api/inlineTasks.d.ts +1 -1
- package/out/api/inlineTasks.js +6 -6
- package/out/api/labelInfo.d.ts +1 -1
- package/out/api/labelInfo.js +2 -2
- package/out/api/longRunningTask.d.ts +1 -1
- package/out/api/longRunningTask.js +4 -4
- package/out/api/models/availableContentStates.d.ts +6 -0
- package/out/api/models/availableContentStates.js +2 -0
- package/out/api/models/blueprintTemplate.d.ts +1 -1
- package/out/api/models/bulkUserLookup.d.ts +2 -2
- package/out/api/models/content.d.ts +6 -6
- package/out/api/models/contentHistory.d.ts +2 -2
- package/out/api/models/contentLookAndFeel.d.ts +1 -1
- package/out/api/models/contentMetadata.d.ts +1 -1
- package/out/api/models/contentRestriction.d.ts +2 -2
- package/out/api/models/contentState.d.ts +8 -0
- package/out/api/models/contentState.js +2 -0
- package/out/api/models/contentStateContainer.d.ts +5 -0
- package/out/api/models/contentStateContainer.js +2 -0
- package/out/api/models/contentStateSettings.d.ts +11 -0
- package/out/api/models/contentStateSettings.js +2 -0
- package/out/api/models/contentTemplate.d.ts +1 -1
- package/out/api/models/copyPageHierarchyRequest.d.ts +2 -0
- package/out/api/models/copyPageRequest.d.ts +1 -1
- package/out/api/models/horizontalHeaderLookAndFeel.d.ts +1 -1
- package/out/api/models/index.d.ts +8 -0
- package/out/api/models/index.js +166 -158
- package/out/api/models/labelArray.d.ts +1 -1
- package/out/api/models/longTask.d.ts +8 -0
- package/out/api/models/longTask.js +2 -0
- package/out/api/models/longTaskStatusArray.d.ts +1 -1
- package/out/api/models/lookAndFeel.d.ts +2 -2
- package/out/api/models/migratedUserArray.d.ts +1 -1
- package/out/api/models/relation.d.ts +1 -1
- package/out/api/models/relationArray.d.ts +1 -1
- package/out/api/models/searchPageResponseSearchResult.d.ts +1 -1
- package/out/api/models/searchResult.d.ts +2 -2
- package/out/api/models/space.d.ts +4 -4
- package/out/api/models/spaceArray.d.ts +1 -1
- package/out/api/models/spacePermission.d.ts +1 -1
- package/out/api/models/spacePermissionCreate.d.ts +1 -1
- package/out/api/models/spacePermissionRequest.d.ts +1 -1
- package/out/api/models/spacePermissionV2.d.ts +1 -1
- package/out/api/models/spacePropertyArray.d.ts +1 -1
- package/out/api/models/spaceWatchArray.d.ts +1 -1
- package/out/api/models/themeArray.d.ts +1 -1
- package/out/api/models/user.d.ts +2 -2
- package/out/api/models/userAnonymous.d.ts +1 -1
- package/out/api/models/userProperty.d.ts +13 -0
- package/out/api/models/userProperty.js +2 -0
- package/out/api/models/userPropertyCreate.d.ts +4 -0
- package/out/api/models/userPropertyCreate.js +2 -0
- package/out/api/models/userPropertyKeyArray.d.ts +10 -0
- package/out/api/models/userPropertyKeyArray.js +2 -0
- package/out/api/models/userPropertyUpdate.d.ts +4 -0
- package/out/api/models/userPropertyUpdate.js +2 -0
- package/out/api/models/usersUserKeys.d.ts +1 -1
- package/out/api/models/version.d.ts +2 -2
- package/out/api/models/versionArray.d.ts +1 -1
- package/out/api/models/watchArray.d.ts +1 -1
- package/out/api/parameters/createUserProperty.d.ts +10 -0
- package/out/api/parameters/createUserProperty.js +2 -0
- package/out/api/parameters/deletePageTree.d.ts +4 -0
- package/out/api/parameters/deletePageTree.js +2 -0
- package/out/api/parameters/deleteUserProperty.d.ts +9 -0
- package/out/api/parameters/deleteUserProperty.js +2 -0
- package/out/api/parameters/getAvailableContentStates.d.ts +4 -0
- package/out/api/parameters/getAvailableContentStates.js +2 -0
- package/out/api/parameters/getContentState.d.ts +6 -0
- package/out/api/parameters/getContentState.js +2 -0
- package/out/api/parameters/getContentStateLastUpdated.d.ts +4 -0
- package/out/api/parameters/getContentStateLastUpdated.js +2 -0
- package/out/api/parameters/getContentStateSettings.d.ts +4 -0
- package/out/api/parameters/getContentStateSettings.js +2 -0
- package/out/api/parameters/getGroupMembersByGroupId.d.ts +5 -0
- package/out/api/parameters/getMembersByQueryParam.d.ts +5 -0
- package/out/api/parameters/getSpaces.d.ts +1 -1
- package/out/api/parameters/getUserProperties.d.ts +8 -0
- package/out/api/parameters/getUserProperties.js +2 -0
- package/out/api/parameters/getUserProperty.d.ts +6 -0
- package/out/api/parameters/getUserProperty.js +2 -0
- package/out/api/parameters/index.d.ts +12 -0
- package/out/api/parameters/index.js +170 -158
- package/out/api/parameters/removeContentState.d.ts +4 -0
- package/out/api/parameters/removeContentState.js +2 -0
- package/out/api/parameters/searchGroups.d.ts +5 -0
- package/out/api/parameters/setContentState.d.ts +8 -0
- package/out/api/parameters/setContentState.js +2 -0
- package/out/api/parameters/updateUserProperty.d.ts +10 -0
- package/out/api/parameters/updateUserProperty.js +2 -0
- package/out/api/relation.d.ts +1 -1
- package/out/api/relation.js +12 -12
- package/out/api/search.d.ts +3 -3
- package/out/api/search.js +7 -6
- package/out/api/settings.d.ts +5 -1
- package/out/api/settings.js +21 -12
- package/out/api/space.d.ts +1 -1
- package/out/api/space.js +21 -17
- package/out/api/spacePermissions.d.ts +1 -1
- package/out/api/spacePermissions.js +7 -7
- package/out/api/spaceProperties.d.ts +1 -1
- package/out/api/spaceProperties.js +12 -12
- package/out/api/spaceSettings.d.ts +1 -1
- package/out/api/spaceSettings.js +4 -4
- package/out/api/template.d.ts +1 -1
- package/out/api/template.js +12 -12
- package/out/api/themes.d.ts +1 -1
- package/out/api/themes.js +12 -12
- package/out/api/users.d.ts +3 -3
- package/out/api/users.js +16 -16
- package/out/clients/baseClient.d.ts +3 -6
- package/out/clients/baseClient.js +16 -38
- package/out/clients/client.d.ts +2 -3
- package/out/clients/confluenceClient.d.ts +3 -1
- package/out/clients/confluenceClient.js +2 -0
- package/out/clients/index.js +4 -4
- package/out/config.d.ts +8 -4
- package/out/index.js +4 -4
- package/out/paramSerializer.d.ts +1 -0
- package/out/paramSerializer.js +16 -0
- package/out/server/audit.d.ts +1 -1
- package/out/server/audit.js +6 -6
- package/out/server/content.d.ts +1 -1
- package/out/server/content.js +32 -32
- package/out/server/contentBody.d.ts +1 -1
- package/out/server/contentBody.js +1 -1
- package/out/server/group.d.ts +1 -1
- package/out/server/group.js +3 -3
- package/out/server/index.js +8 -8
- package/out/server/longTask.d.ts +1 -1
- package/out/server/longTask.js +2 -2
- package/out/server/models/content.d.ts +6 -6
- package/out/server/models/contentChildren.d.ts +1 -1
- package/out/server/models/contentHistory.d.ts +2 -2
- package/out/server/models/contentLookAndFeel.d.ts +1 -1
- package/out/server/models/contentRestriction.d.ts +2 -2
- package/out/server/models/index.js +60 -60
- package/out/server/models/lookAndFeel.d.ts +2 -2
- package/out/server/models/searchResult.d.ts +2 -2
- package/out/server/models/space.d.ts +3 -3
- package/out/server/models/spacePermission.d.ts +1 -1
- package/out/server/models/user.d.ts +1 -1
- package/out/server/models/version.d.ts +1 -1
- package/out/server/parameters/index.js +64 -64
- package/out/server/search.d.ts +1 -1
- package/out/server/search.js +1 -1
- package/out/server/space.d.ts +1 -1
- package/out/server/space.js +14 -14
- package/out/server/user.d.ts +1 -1
- package/out/server/user.js +10 -10
- package/out/services/authenticationService/authenticationService.js +4 -1
- package/out/services/authenticationService/authentications/createPATAuthenticationToken.d.ts +2 -0
- package/out/services/authenticationService/authentications/createPATAuthenticationToken.js +10 -0
- package/out/services/authenticationService/authentications/index.d.ts +1 -0
- package/out/services/authenticationService/authentications/index.js +4 -3
- package/out/services/authenticationService/index.js +1 -1
- package/package.json +30 -27
- package/src/api/analytics.ts +44 -0
- package/src/api/audit.ts +7 -7
- package/src/api/content.ts +11 -11
- package/src/api/contentAttachments.ts +11 -10
- package/src/api/contentBody.ts +2 -2
- package/src/api/contentChildrenAndDescendants.ts +15 -11
- package/src/api/contentComments.ts +2 -2
- package/src/api/contentContentState.ts +157 -0
- package/src/api/contentLabels.ts +5 -5
- package/src/api/contentMacroBody.ts +2 -2
- package/src/api/contentPermissions.ts +2 -2
- package/src/api/contentProperties.ts +7 -7
- package/src/api/contentRestrictions.ts +16 -16
- package/src/api/contentVersions.ts +5 -5
- package/src/api/contentWatches.ts +13 -13
- package/src/api/dynamicModules.ts +4 -4
- package/src/api/experimental.ts +216 -13
- package/src/api/group.ts +20 -16
- package/src/api/index.ts +2 -0
- package/src/api/inlineTasks.ts +4 -4
- package/src/api/labelInfo.ts +2 -2
- package/src/api/longRunningTask.ts +3 -3
- package/src/api/models/availableContentStates.ts +7 -0
- package/src/api/models/blueprintTemplate.ts +1 -1
- package/src/api/models/bulkUserLookup.ts +2 -2
- package/src/api/models/content.ts +6 -6
- package/src/api/models/contentHistory.ts +2 -2
- package/src/api/models/contentLookAndFeel.ts +1 -1
- package/src/api/models/contentMetadata.ts +1 -1
- package/src/api/models/contentRestriction.ts +2 -2
- package/src/api/models/contentState.ts +8 -0
- package/src/api/models/contentStateContainer.ts +6 -0
- package/src/api/models/contentStateSettings.ts +12 -0
- package/src/api/models/contentTemplate.ts +1 -1
- package/src/api/models/copyPageHierarchyRequest.ts +2 -0
- package/src/api/models/copyPageRequest.ts +1 -1
- package/src/api/models/horizontalHeaderLookAndFeel.ts +1 -1
- package/src/api/models/index.ts +8 -0
- package/src/api/models/labelArray.ts +1 -1
- package/src/api/models/longTask.ts +8 -0
- package/src/api/models/longTaskStatusArray.ts +1 -1
- package/src/api/models/lookAndFeel.ts +2 -2
- package/src/api/models/migratedUserArray.ts +1 -1
- package/src/api/models/relation.ts +1 -1
- package/src/api/models/relationArray.ts +1 -1
- package/src/api/models/searchPageResponseSearchResult.ts +1 -1
- package/src/api/models/searchResult.ts +2 -2
- package/src/api/models/space.ts +4 -4
- package/src/api/models/spaceArray.ts +1 -1
- package/src/api/models/spacePermission.ts +1 -1
- package/src/api/models/spacePermissionCreate.ts +1 -1
- package/src/api/models/spacePermissionRequest.ts +1 -1
- package/src/api/models/spacePermissionV2.ts +1 -1
- package/src/api/models/spacePropertyArray.ts +1 -1
- package/src/api/models/spaceWatchArray.ts +1 -1
- package/src/api/models/themeArray.ts +1 -1
- package/src/api/models/user.ts +2 -2
- package/src/api/models/userAnonymous.ts +1 -1
- package/src/api/models/userProperty.ts +14 -0
- package/src/api/models/userPropertyCreate.ts +4 -0
- package/src/api/models/userPropertyKeyArray.ts +11 -0
- package/src/api/models/userPropertyUpdate.ts +4 -0
- package/src/api/models/usersUserKeys.ts +1 -1
- package/src/api/models/version.ts +2 -2
- package/src/api/models/versionArray.ts +1 -1
- package/src/api/models/watchArray.ts +1 -1
- package/src/api/parameters/createUserProperty.ts +11 -0
- package/src/api/parameters/deletePageTree.ts +4 -0
- package/src/api/parameters/deleteUserProperty.ts +9 -0
- package/src/api/parameters/getAvailableContentStates.ts +4 -0
- package/src/api/parameters/getContentState.ts +6 -0
- package/src/api/parameters/getContentStateLastUpdated.ts +4 -0
- package/src/api/parameters/getContentStateSettings.ts +4 -0
- package/src/api/parameters/getGroupMembersByGroupId.ts +5 -0
- package/src/api/parameters/getMembersByQueryParam.ts +5 -0
- package/src/api/parameters/getSpaces.ts +31 -1
- package/src/api/parameters/getUserProperties.ts +8 -0
- package/src/api/parameters/getUserProperty.ts +6 -0
- package/src/api/parameters/index.ts +12 -0
- package/src/api/parameters/removeContentState.ts +4 -0
- package/src/api/parameters/searchGroups.ts +5 -0
- package/src/api/parameters/setContentState.ts +8 -0
- package/src/api/parameters/updateUserProperty.ts +11 -0
- package/src/api/relation.ts +6 -6
- package/src/api/search.ts +7 -5
- package/src/api/settings.ts +29 -7
- package/src/api/space.ts +14 -10
- package/src/api/spacePermissions.ts +4 -4
- package/src/api/spaceProperties.ts +7 -7
- package/src/api/spaceSettings.ts +3 -3
- package/src/api/template.ts +7 -7
- package/src/api/themes.ts +7 -7
- package/src/api/users.ts +12 -12
- package/src/clients/baseClient.ts +12 -64
- package/src/clients/client.ts +2 -3
- package/src/clients/confluenceClient.ts +4 -0
- package/src/config.ts +9 -4
- package/src/paramSerializer.ts +15 -0
- package/src/server/audit.ts +2 -2
- package/src/server/content.ts +2 -2
- package/src/server/contentBody.ts +1 -1
- package/src/server/group.ts +2 -2
- package/src/server/longTask.ts +2 -2
- package/src/server/models/content.ts +6 -6
- package/src/server/models/contentChildren.ts +1 -1
- package/src/server/models/contentHistory.ts +2 -2
- package/src/server/models/contentLookAndFeel.ts +1 -1
- package/src/server/models/contentRestriction.ts +2 -2
- package/src/server/models/lookAndFeel.ts +2 -2
- package/src/server/models/searchResult.ts +2 -2
- package/src/server/models/space.ts +3 -3
- package/src/server/models/spacePermission.ts +1 -1
- package/src/server/models/user.ts +1 -1
- package/src/server/models/version.ts +1 -1
- package/src/server/search.ts +2 -2
- package/src/server/space.ts +2 -2
- package/src/server/user.ts +2 -2
- package/src/services/authenticationService/authenticationService.ts +5 -0
- package/src/services/authenticationService/authentications/createBasicAuthenticationToken.ts +1 -1
- package/src/services/authenticationService/authentications/createPATAuthenticationToken.ts +5 -0
- package/src/services/authenticationService/authentications/index.ts +1 -0
- package/tsconfig.lint.json +7 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentRestrictions {
|
|
@@ -39,7 +39,7 @@ export class ContentRestrictions {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -73,7 +73,7 @@ export class ContentRestrictions {
|
|
|
73
73
|
data: parameters.body,
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
return this.client.sendRequest(config, callback
|
|
76
|
+
return this.client.sendRequest(config, callback);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -109,7 +109,7 @@ export class ContentRestrictions {
|
|
|
109
109
|
data: parameters.body,
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
return this.client.sendRequest(config, callback
|
|
112
|
+
return this.client.sendRequest(config, callback);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
@@ -142,7 +142,7 @@ export class ContentRestrictions {
|
|
|
142
142
|
},
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
return this.client.sendRequest(config, callback
|
|
145
|
+
return this.client.sendRequest(config, callback);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -179,7 +179,7 @@ export class ContentRestrictions {
|
|
|
179
179
|
},
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
return this.client.sendRequest(config, callback
|
|
182
|
+
return this.client.sendRequest(config, callback);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
/**
|
|
@@ -214,7 +214,7 @@ export class ContentRestrictions {
|
|
|
214
214
|
},
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
return this.client.sendRequest(config, callback
|
|
217
|
+
return this.client.sendRequest(config, callback);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/**
|
|
@@ -258,7 +258,7 @@ export class ContentRestrictions {
|
|
|
258
258
|
method: 'GET',
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
return this.client.sendRequest(config, callback
|
|
261
|
+
return this.client.sendRequest(config, callback);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
/**
|
|
@@ -288,7 +288,7 @@ export class ContentRestrictions {
|
|
|
288
288
|
method: 'PUT',
|
|
289
289
|
};
|
|
290
290
|
|
|
291
|
-
return this.client.sendRequest(config, callback
|
|
291
|
+
return this.client.sendRequest(config, callback);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
/**
|
|
@@ -312,7 +312,7 @@ export class ContentRestrictions {
|
|
|
312
312
|
method: 'DELETE',
|
|
313
313
|
};
|
|
314
314
|
|
|
315
|
-
return this.client.sendRequest(config, callback
|
|
315
|
+
return this.client.sendRequest(config, callback);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
/**
|
|
@@ -356,7 +356,7 @@ export class ContentRestrictions {
|
|
|
356
356
|
method: 'GET',
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
-
return this.client.sendRequest(config, callback
|
|
359
|
+
return this.client.sendRequest(config, callback);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
/**
|
|
@@ -388,7 +388,7 @@ export class ContentRestrictions {
|
|
|
388
388
|
method: 'PUT',
|
|
389
389
|
};
|
|
390
390
|
|
|
391
|
-
return this.client.sendRequest(config, callback
|
|
391
|
+
return this.client.sendRequest(config, callback);
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
/**
|
|
@@ -412,7 +412,7 @@ export class ContentRestrictions {
|
|
|
412
412
|
method: 'DELETE',
|
|
413
413
|
};
|
|
414
414
|
|
|
415
|
-
return this.client.sendRequest(config, callback
|
|
415
|
+
return this.client.sendRequest(config, callback);
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
/**
|
|
@@ -463,7 +463,7 @@ export class ContentRestrictions {
|
|
|
463
463
|
},
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
-
return this.client.sendRequest(config, callback
|
|
466
|
+
return this.client.sendRequest(config, callback);
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
/**
|
|
@@ -498,7 +498,7 @@ export class ContentRestrictions {
|
|
|
498
498
|
},
|
|
499
499
|
};
|
|
500
500
|
|
|
501
|
-
return this.client.sendRequest(config, callback
|
|
501
|
+
return this.client.sendRequest(config, callback);
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
/**
|
|
@@ -533,6 +533,6 @@ export class ContentRestrictions {
|
|
|
533
533
|
},
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
-
return this.client.sendRequest(config, callback
|
|
536
|
+
return this.client.sendRequest(config, callback);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentVersions {
|
|
@@ -41,7 +41,7 @@ export class ContentVersions {
|
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
return this.client.sendRequest(config, callback
|
|
44
|
+
return this.client.sendRequest(config, callback);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -80,7 +80,7 @@ export class ContentVersions {
|
|
|
80
80
|
},
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
return this.client.sendRequest(config, callback
|
|
83
|
+
return this.client.sendRequest(config, callback);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
@@ -112,7 +112,7 @@ export class ContentVersions {
|
|
|
112
112
|
},
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
return this.client.sendRequest(config, callback
|
|
115
|
+
return this.client.sendRequest(config, callback);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -141,6 +141,6 @@ export class ContentVersions {
|
|
|
141
141
|
method: 'DELETE',
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
return this.client.sendRequest(config, callback
|
|
144
|
+
return this.client.sendRequest(config, callback);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class ContentWatches {
|
|
@@ -52,7 +52,7 @@ export class ContentWatches {
|
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
return this.client.sendRequest(config, callback
|
|
55
|
+
return this.client.sendRequest(config, callback);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
@@ -102,7 +102,7 @@ export class ContentWatches {
|
|
|
102
102
|
},
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
return this.client.sendRequest(config, callback
|
|
105
|
+
return this.client.sendRequest(config, callback);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/** Returns a list of watchers of a space */
|
|
@@ -128,7 +128,7 @@ export class ContentWatches {
|
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
return this.client.sendRequest(config, callback
|
|
131
|
+
return this.client.sendRequest(config, callback);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
/**
|
|
@@ -171,7 +171,7 @@ export class ContentWatches {
|
|
|
171
171
|
},
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
return this.client.sendRequest(config, callback
|
|
174
|
+
return this.client.sendRequest(config, callback);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
@@ -212,7 +212,7 @@ export class ContentWatches {
|
|
|
212
212
|
},
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
return this.client.sendRequest(config, callback
|
|
215
|
+
return this.client.sendRequest(config, callback);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/**
|
|
@@ -255,7 +255,7 @@ export class ContentWatches {
|
|
|
255
255
|
},
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
-
return this.client.sendRequest(config, callback
|
|
258
|
+
return this.client.sendRequest(config, callback);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
/**
|
|
@@ -295,7 +295,7 @@ export class ContentWatches {
|
|
|
295
295
|
},
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
return this.client.sendRequest(config, callback
|
|
298
|
+
return this.client.sendRequest(config, callback);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
/**
|
|
@@ -336,7 +336,7 @@ export class ContentWatches {
|
|
|
336
336
|
},
|
|
337
337
|
};
|
|
338
338
|
|
|
339
|
-
return this.client.sendRequest(config, callback
|
|
339
|
+
return this.client.sendRequest(config, callback);
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
/**
|
|
@@ -373,7 +373,7 @@ export class ContentWatches {
|
|
|
373
373
|
},
|
|
374
374
|
};
|
|
375
375
|
|
|
376
|
-
return this.client.sendRequest(config, callback
|
|
376
|
+
return this.client.sendRequest(config, callback);
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
/**
|
|
@@ -413,7 +413,7 @@ export class ContentWatches {
|
|
|
413
413
|
},
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
return this.client.sendRequest(config, callback
|
|
416
|
+
return this.client.sendRequest(config, callback);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
/**
|
|
@@ -454,7 +454,7 @@ export class ContentWatches {
|
|
|
454
454
|
},
|
|
455
455
|
};
|
|
456
456
|
|
|
457
|
-
return this.client.sendRequest(config, callback
|
|
457
|
+
return this.client.sendRequest(config, callback);
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
/**
|
|
@@ -488,6 +488,6 @@ export class ContentWatches {
|
|
|
488
488
|
},
|
|
489
489
|
};
|
|
490
490
|
|
|
491
|
-
return this.client.sendRequest(config, callback
|
|
491
|
+
return this.client.sendRequest(config, callback);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Parameters from './parameters';
|
|
2
|
-
import { Client } from '../clients';
|
|
3
2
|
import { Callback } from '../callback';
|
|
3
|
+
import { Client } from '../clients';
|
|
4
4
|
import { RequestConfig } from '../requestConfig';
|
|
5
5
|
|
|
6
6
|
export class DynamicModules {
|
|
@@ -24,7 +24,7 @@ export class DynamicModules {
|
|
|
24
24
|
method: 'GET',
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
return this.client.sendRequest(config, callback
|
|
27
|
+
return this.client.sendRequest(config, callback);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -53,7 +53,7 @@ export class DynamicModules {
|
|
|
53
53
|
method: 'POST',
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
return this.client.sendRequest(config, callback
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -77,6 +77,6 @@ export class DynamicModules {
|
|
|
77
77
|
},
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
return this.client.sendRequest(config, callback
|
|
80
|
+
return this.client.sendRequest(config, callback);
|
|
81
81
|
}
|
|
82
82
|
}
|
package/src/api/experimental.ts
CHANGED
|
@@ -1,12 +1,55 @@
|
|
|
1
1
|
import * as Models from './models';
|
|
2
2
|
import * as Parameters from './parameters';
|
|
3
|
-
import { Client } from '../clients';
|
|
4
3
|
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
5
|
import { RequestConfig } from '../requestConfig';
|
|
6
6
|
|
|
7
7
|
export class Experimental {
|
|
8
8
|
constructor(private client: Client) {}
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Moves a pagetree rooted at a page to the space's trash:
|
|
12
|
+
*
|
|
13
|
+
* - If the content's type is `page` and its status is `current`, it will be trashed including all its descendants.
|
|
14
|
+
* - For every other combination of content type and status, this API is not supported.
|
|
15
|
+
*
|
|
16
|
+
* This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.
|
|
17
|
+
*
|
|
18
|
+
* Use the `/longtask/<taskId>` REST API to get the copy task status.
|
|
19
|
+
*
|
|
20
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the
|
|
21
|
+
* content is in.
|
|
22
|
+
*/
|
|
23
|
+
async deletePageTree<T = Models.LongTask>(
|
|
24
|
+
parameters: Parameters.DeletePageTree,
|
|
25
|
+
callback: Callback<T>
|
|
26
|
+
): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Moves a pagetree rooted at a page to the space's trash:
|
|
29
|
+
*
|
|
30
|
+
* - If the content's type is `page` and its status is `current`, it will be trashed including all its descendants.
|
|
31
|
+
* - For every other combination of content type and status, this API is not supported.
|
|
32
|
+
*
|
|
33
|
+
* This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.
|
|
34
|
+
*
|
|
35
|
+
* Use the `/longtask/<taskId>` REST API to get the copy task status.
|
|
36
|
+
*
|
|
37
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the
|
|
38
|
+
* content is in.
|
|
39
|
+
*/
|
|
40
|
+
async deletePageTree<T = Models.LongTask>(parameters: Parameters.DeletePageTree, callback?: never): Promise<T>;
|
|
41
|
+
async deletePageTree<T = Models.LongTask>(
|
|
42
|
+
parameters: Parameters.DeletePageTree,
|
|
43
|
+
callback?: Callback<T>,
|
|
44
|
+
): Promise<void | T> {
|
|
45
|
+
const config: RequestConfig = {
|
|
46
|
+
url: `/api/content/${parameters.id}/pageTree`,
|
|
47
|
+
method: 'DELETE',
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
return this.client.sendRequest(config, callback);
|
|
51
|
+
}
|
|
52
|
+
|
|
10
53
|
/**
|
|
11
54
|
* Returns a list of labels associated with a space. Can provide a prefix as well as other filters to select different
|
|
12
55
|
* types of labels.
|
|
@@ -37,7 +80,7 @@ export class Experimental {
|
|
|
37
80
|
},
|
|
38
81
|
};
|
|
39
82
|
|
|
40
|
-
return this.client.sendRequest(config, callback
|
|
83
|
+
return this.client.sendRequest(config, callback);
|
|
41
84
|
}
|
|
42
85
|
|
|
43
86
|
/**
|
|
@@ -76,7 +119,7 @@ export class Experimental {
|
|
|
76
119
|
method: 'POST',
|
|
77
120
|
};
|
|
78
121
|
|
|
79
|
-
return this.client.sendRequest(config, callback
|
|
122
|
+
return this.client.sendRequest(config, callback);
|
|
80
123
|
}
|
|
81
124
|
|
|
82
125
|
async deleteLabelFromSpace<T = void>(
|
|
@@ -97,23 +140,183 @@ export class Experimental {
|
|
|
97
140
|
},
|
|
98
141
|
};
|
|
99
142
|
|
|
100
|
-
return this.client.sendRequest(config, callback
|
|
143
|
+
return this.client.sendRequest(config, callback);
|
|
101
144
|
}
|
|
102
145
|
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Returns the properties for a user as list of property keys. For more information about user properties, see
|
|
148
|
+
* [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
149
|
+
* `Note`, these properties stored against a user are on a Confluence site level and not space/content level.
|
|
150
|
+
*
|
|
151
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
152
|
+
* ('Can use' global permission).
|
|
153
|
+
*/
|
|
154
|
+
async getUserProperties<T = Models.UserPropertyKeyArray>(
|
|
155
|
+
parameters: Parameters.GetUserProperties,
|
|
156
|
+
callback: Callback<T>
|
|
157
|
+
): Promise<void>;
|
|
158
|
+
/**
|
|
159
|
+
* Returns the properties for a user as list of property keys. For more information about user properties, see
|
|
160
|
+
* [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
161
|
+
* `Note`, these properties stored against a user are on a Confluence site level and not space/content level.
|
|
162
|
+
*
|
|
163
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
164
|
+
* ('Can use' global permission).
|
|
165
|
+
*/
|
|
166
|
+
async getUserProperties<T = Models.UserPropertyKeyArray>(
|
|
167
|
+
parameters: Parameters.GetUserProperties,
|
|
168
|
+
callback?: never
|
|
169
|
+
): Promise<T>;
|
|
170
|
+
async getUserProperties<T = Models.UserPropertyKeyArray>(
|
|
171
|
+
parameters: Parameters.GetUserProperties,
|
|
172
|
+
callback?: Callback<T>,
|
|
173
|
+
): Promise<void | T> {
|
|
108
174
|
const config: RequestConfig = {
|
|
109
|
-
url: `/api/
|
|
175
|
+
url: `/api/user/${parameters.userId}/property`,
|
|
110
176
|
method: 'GET',
|
|
111
177
|
params: {
|
|
112
|
-
|
|
178
|
+
start: parameters.start,
|
|
179
|
+
limit: parameters.limit,
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
return this.client.sendRequest(config, callback);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Returns the property corresponding to `key` for a user. For more information about user properties, see [Confluence
|
|
188
|
+
* entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
189
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
190
|
+
*
|
|
191
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
192
|
+
* ('Can use' global permission).
|
|
193
|
+
*/
|
|
194
|
+
async getUserProperty<T = Models.UserProperty>(
|
|
195
|
+
parameters: Parameters.GetUserProperty,
|
|
196
|
+
callback: Callback<T>
|
|
197
|
+
): Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* Returns the property corresponding to `key` for a user. For more information about user properties, see [Confluence
|
|
200
|
+
* entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
201
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
202
|
+
*
|
|
203
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
204
|
+
* ('Can use' global permission).
|
|
205
|
+
*/
|
|
206
|
+
async getUserProperty<T = Models.UserProperty>(parameters: Parameters.GetUserProperty, callback?: never): Promise<T>;
|
|
207
|
+
async getUserProperty<T = Models.UserProperty>(
|
|
208
|
+
parameters: Parameters.GetUserProperty,
|
|
209
|
+
callback?: Callback<T>,
|
|
210
|
+
): Promise<void | T> {
|
|
211
|
+
const config: RequestConfig = {
|
|
212
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
213
|
+
method: 'GET',
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
return this.client.sendRequest(config, callback);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Creates a property for a user. For more information about user properties, see [Confluence entity properties]
|
|
221
|
+
* (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these properties stored
|
|
222
|
+
* against a user are on a Confluence site level and not space/content level.
|
|
223
|
+
*
|
|
224
|
+
* `Note:` the number of properties which could be created per app in a tenant for each user might be restricted by
|
|
225
|
+
* fixed system limits. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access
|
|
226
|
+
* the Confluence site ('Can use' global permission).
|
|
227
|
+
*/
|
|
228
|
+
async createUserProperty<T = unknown>(
|
|
229
|
+
parameters: Parameters.CreateUserProperty,
|
|
230
|
+
callback: Callback<T>
|
|
231
|
+
): Promise<void>;
|
|
232
|
+
/**
|
|
233
|
+
* Creates a property for a user. For more information about user properties, see [Confluence entity properties]
|
|
234
|
+
* (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these properties stored
|
|
235
|
+
* against a user are on a Confluence site level and not space/content level.
|
|
236
|
+
*
|
|
237
|
+
* `Note:` the number of properties which could be created per app in a tenant for each user might be restricted by
|
|
238
|
+
* fixed system limits. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access
|
|
239
|
+
* the Confluence site ('Can use' global permission).
|
|
240
|
+
*/
|
|
241
|
+
async createUserProperty<T = unknown>(parameters: Parameters.CreateUserProperty, callback?: never): Promise<T>;
|
|
242
|
+
async createUserProperty<T = unknown>(
|
|
243
|
+
parameters: Parameters.CreateUserProperty,
|
|
244
|
+
callback?: Callback<T>,
|
|
245
|
+
): Promise<void | T> {
|
|
246
|
+
const config: RequestConfig = {
|
|
247
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
248
|
+
method: 'POST',
|
|
249
|
+
data: {
|
|
250
|
+
value: parameters.value,
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
return this.client.sendRequest(config, callback);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more
|
|
259
|
+
* information about user properties, see [Confluence entity
|
|
260
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
261
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
262
|
+
*
|
|
263
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
264
|
+
* ('Can use' global permission).
|
|
265
|
+
*/
|
|
266
|
+
async updateUserProperty<T = void>(parameters: Parameters.UpdateUserProperty, callback: Callback<T>): Promise<void>;
|
|
267
|
+
/**
|
|
268
|
+
* Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more
|
|
269
|
+
* information about user properties, see [Confluence entity
|
|
270
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
271
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
272
|
+
*
|
|
273
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
274
|
+
* ('Can use' global permission).
|
|
275
|
+
*/
|
|
276
|
+
async updateUserProperty<T = void>(parameters: Parameters.UpdateUserProperty, callback?: never): Promise<T>;
|
|
277
|
+
async updateUserProperty<T = void>(
|
|
278
|
+
parameters: Parameters.UpdateUserProperty,
|
|
279
|
+
callback?: Callback<T>,
|
|
280
|
+
): Promise<void | T> {
|
|
281
|
+
const config: RequestConfig = {
|
|
282
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
283
|
+
method: 'PUT',
|
|
284
|
+
data: {
|
|
285
|
+
value: parameters.value,
|
|
113
286
|
},
|
|
114
287
|
};
|
|
115
288
|
|
|
116
|
-
return this.client.sendRequest(config, callback
|
|
289
|
+
return this.client.sendRequest(config, callback);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Deletes a property for the given user. For more information about user properties, see [Confluence entity
|
|
294
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
295
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
296
|
+
*
|
|
297
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
298
|
+
* ('Can use' global permission).
|
|
299
|
+
*/
|
|
300
|
+
async deleteUserProperty<T = void>(parameters: Parameters.DeleteUserProperty, callback: Callback<T>): Promise<void>;
|
|
301
|
+
/**
|
|
302
|
+
* Deletes a property for the given user. For more information about user properties, see [Confluence entity
|
|
303
|
+
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these
|
|
304
|
+
* properties stored against a user are on a Confluence site level and not space/content level.
|
|
305
|
+
*
|
|
306
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
|
|
307
|
+
* ('Can use' global permission).
|
|
308
|
+
*/
|
|
309
|
+
async deleteUserProperty<T = void>(parameters: Parameters.DeleteUserProperty, callback?: never): Promise<T>;
|
|
310
|
+
async deleteUserProperty<T = void>(
|
|
311
|
+
parameters: Parameters.DeleteUserProperty,
|
|
312
|
+
callback?: Callback<T>,
|
|
313
|
+
): Promise<void | T> {
|
|
314
|
+
const config: RequestConfig = {
|
|
315
|
+
url: `/api/user/${parameters.userId}/property/${parameters.key}`,
|
|
316
|
+
method: 'DELETE',
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
return this.client.sendRequest(config, callback);
|
|
117
320
|
}
|
|
118
321
|
|
|
119
322
|
/** Get the total number of distinct viewers a piece of content has. */
|
|
@@ -132,6 +335,6 @@ export class Experimental {
|
|
|
132
335
|
},
|
|
133
336
|
};
|
|
134
337
|
|
|
135
|
-
return this.client.sendRequest(config, callback
|
|
338
|
+
return this.client.sendRequest(config, callback);
|
|
136
339
|
}
|
|
137
340
|
}
|