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.
Files changed (319) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +15 -57
  3. package/out/api/analytics.d.ts +16 -0
  4. package/out/api/analytics.js +34 -0
  5. package/out/api/audit.d.ts +1 -1
  6. package/out/api/audit.js +12 -12
  7. package/out/api/content.d.ts +1 -1
  8. package/out/api/content.js +20 -20
  9. package/out/api/contentAttachments.d.ts +3 -3
  10. package/out/api/contentAttachments.js +13 -12
  11. package/out/api/contentBody.d.ts +1 -1
  12. package/out/api/contentBody.js +2 -2
  13. package/out/api/contentChildrenAndDescendants.d.ts +3 -3
  14. package/out/api/contentChildrenAndDescendants.js +16 -15
  15. package/out/api/contentComments.d.ts +1 -1
  16. package/out/api/contentComments.js +2 -2
  17. package/out/api/contentContentState.d.ts +58 -0
  18. package/out/api/contentContentState.js +63 -0
  19. package/out/api/contentLabels.d.ts +1 -1
  20. package/out/api/contentLabels.js +8 -8
  21. package/out/api/contentMacroBody.d.ts +1 -1
  22. package/out/api/contentMacroBody.js +2 -2
  23. package/out/api/contentPermissions.d.ts +1 -1
  24. package/out/api/contentPermissions.js +3 -3
  25. package/out/api/contentProperties.d.ts +1 -1
  26. package/out/api/contentProperties.js +12 -12
  27. package/out/api/contentRestrictions.d.ts +1 -1
  28. package/out/api/contentRestrictions.js +30 -30
  29. package/out/api/contentVersions.d.ts +1 -1
  30. package/out/api/contentVersions.js +8 -8
  31. package/out/api/contentWatches.d.ts +1 -1
  32. package/out/api/contentWatches.js +24 -24
  33. package/out/api/dynamicModules.d.ts +1 -1
  34. package/out/api/dynamicModules.js +6 -6
  35. package/out/api/experimental.d.ts +123 -5
  36. package/out/api/experimental.js +65 -13
  37. package/out/api/group.d.ts +1 -1
  38. package/out/api/group.js +35 -32
  39. package/out/api/index.d.ts +2 -0
  40. package/out/api/index.js +31 -29
  41. package/out/api/inlineTasks.d.ts +1 -1
  42. package/out/api/inlineTasks.js +6 -6
  43. package/out/api/labelInfo.d.ts +1 -1
  44. package/out/api/labelInfo.js +2 -2
  45. package/out/api/longRunningTask.d.ts +1 -1
  46. package/out/api/longRunningTask.js +4 -4
  47. package/out/api/models/availableContentStates.d.ts +6 -0
  48. package/out/api/models/availableContentStates.js +2 -0
  49. package/out/api/models/blueprintTemplate.d.ts +1 -1
  50. package/out/api/models/bulkUserLookup.d.ts +2 -2
  51. package/out/api/models/content.d.ts +6 -6
  52. package/out/api/models/contentHistory.d.ts +2 -2
  53. package/out/api/models/contentLookAndFeel.d.ts +1 -1
  54. package/out/api/models/contentMetadata.d.ts +1 -1
  55. package/out/api/models/contentRestriction.d.ts +2 -2
  56. package/out/api/models/contentState.d.ts +8 -0
  57. package/out/api/models/contentState.js +2 -0
  58. package/out/api/models/contentStateContainer.d.ts +5 -0
  59. package/out/api/models/contentStateContainer.js +2 -0
  60. package/out/api/models/contentStateSettings.d.ts +11 -0
  61. package/out/api/models/contentStateSettings.js +2 -0
  62. package/out/api/models/contentTemplate.d.ts +1 -1
  63. package/out/api/models/copyPageHierarchyRequest.d.ts +2 -0
  64. package/out/api/models/copyPageRequest.d.ts +1 -1
  65. package/out/api/models/horizontalHeaderLookAndFeel.d.ts +1 -1
  66. package/out/api/models/index.d.ts +8 -0
  67. package/out/api/models/index.js +166 -158
  68. package/out/api/models/labelArray.d.ts +1 -1
  69. package/out/api/models/longTask.d.ts +8 -0
  70. package/out/api/models/longTask.js +2 -0
  71. package/out/api/models/longTaskStatusArray.d.ts +1 -1
  72. package/out/api/models/lookAndFeel.d.ts +2 -2
  73. package/out/api/models/migratedUserArray.d.ts +1 -1
  74. package/out/api/models/relation.d.ts +1 -1
  75. package/out/api/models/relationArray.d.ts +1 -1
  76. package/out/api/models/searchPageResponseSearchResult.d.ts +1 -1
  77. package/out/api/models/searchResult.d.ts +2 -2
  78. package/out/api/models/space.d.ts +4 -4
  79. package/out/api/models/spaceArray.d.ts +1 -1
  80. package/out/api/models/spacePermission.d.ts +1 -1
  81. package/out/api/models/spacePermissionCreate.d.ts +1 -1
  82. package/out/api/models/spacePermissionRequest.d.ts +1 -1
  83. package/out/api/models/spacePermissionV2.d.ts +1 -1
  84. package/out/api/models/spacePropertyArray.d.ts +1 -1
  85. package/out/api/models/spaceWatchArray.d.ts +1 -1
  86. package/out/api/models/themeArray.d.ts +1 -1
  87. package/out/api/models/user.d.ts +2 -2
  88. package/out/api/models/userAnonymous.d.ts +1 -1
  89. package/out/api/models/userProperty.d.ts +13 -0
  90. package/out/api/models/userProperty.js +2 -0
  91. package/out/api/models/userPropertyCreate.d.ts +4 -0
  92. package/out/api/models/userPropertyCreate.js +2 -0
  93. package/out/api/models/userPropertyKeyArray.d.ts +10 -0
  94. package/out/api/models/userPropertyKeyArray.js +2 -0
  95. package/out/api/models/userPropertyUpdate.d.ts +4 -0
  96. package/out/api/models/userPropertyUpdate.js +2 -0
  97. package/out/api/models/usersUserKeys.d.ts +1 -1
  98. package/out/api/models/version.d.ts +2 -2
  99. package/out/api/models/versionArray.d.ts +1 -1
  100. package/out/api/models/watchArray.d.ts +1 -1
  101. package/out/api/parameters/createUserProperty.d.ts +10 -0
  102. package/out/api/parameters/createUserProperty.js +2 -0
  103. package/out/api/parameters/deletePageTree.d.ts +4 -0
  104. package/out/api/parameters/deletePageTree.js +2 -0
  105. package/out/api/parameters/deleteUserProperty.d.ts +9 -0
  106. package/out/api/parameters/deleteUserProperty.js +2 -0
  107. package/out/api/parameters/getAvailableContentStates.d.ts +4 -0
  108. package/out/api/parameters/getAvailableContentStates.js +2 -0
  109. package/out/api/parameters/getContentState.d.ts +6 -0
  110. package/out/api/parameters/getContentState.js +2 -0
  111. package/out/api/parameters/getContentStateLastUpdated.d.ts +4 -0
  112. package/out/api/parameters/getContentStateLastUpdated.js +2 -0
  113. package/out/api/parameters/getContentStateSettings.d.ts +4 -0
  114. package/out/api/parameters/getContentStateSettings.js +2 -0
  115. package/out/api/parameters/getGroupMembersByGroupId.d.ts +5 -0
  116. package/out/api/parameters/getMembersByQueryParam.d.ts +5 -0
  117. package/out/api/parameters/getSpaces.d.ts +1 -1
  118. package/out/api/parameters/getUserProperties.d.ts +8 -0
  119. package/out/api/parameters/getUserProperties.js +2 -0
  120. package/out/api/parameters/getUserProperty.d.ts +6 -0
  121. package/out/api/parameters/getUserProperty.js +2 -0
  122. package/out/api/parameters/index.d.ts +12 -0
  123. package/out/api/parameters/index.js +170 -158
  124. package/out/api/parameters/removeContentState.d.ts +4 -0
  125. package/out/api/parameters/removeContentState.js +2 -0
  126. package/out/api/parameters/searchGroups.d.ts +5 -0
  127. package/out/api/parameters/setContentState.d.ts +8 -0
  128. package/out/api/parameters/setContentState.js +2 -0
  129. package/out/api/parameters/updateUserProperty.d.ts +10 -0
  130. package/out/api/parameters/updateUserProperty.js +2 -0
  131. package/out/api/relation.d.ts +1 -1
  132. package/out/api/relation.js +12 -12
  133. package/out/api/search.d.ts +3 -3
  134. package/out/api/search.js +7 -6
  135. package/out/api/settings.d.ts +5 -1
  136. package/out/api/settings.js +21 -12
  137. package/out/api/space.d.ts +1 -1
  138. package/out/api/space.js +21 -17
  139. package/out/api/spacePermissions.d.ts +1 -1
  140. package/out/api/spacePermissions.js +7 -7
  141. package/out/api/spaceProperties.d.ts +1 -1
  142. package/out/api/spaceProperties.js +12 -12
  143. package/out/api/spaceSettings.d.ts +1 -1
  144. package/out/api/spaceSettings.js +4 -4
  145. package/out/api/template.d.ts +1 -1
  146. package/out/api/template.js +12 -12
  147. package/out/api/themes.d.ts +1 -1
  148. package/out/api/themes.js +12 -12
  149. package/out/api/users.d.ts +3 -3
  150. package/out/api/users.js +16 -16
  151. package/out/clients/baseClient.d.ts +3 -6
  152. package/out/clients/baseClient.js +16 -38
  153. package/out/clients/client.d.ts +2 -3
  154. package/out/clients/confluenceClient.d.ts +3 -1
  155. package/out/clients/confluenceClient.js +2 -0
  156. package/out/clients/index.js +4 -4
  157. package/out/config.d.ts +8 -4
  158. package/out/index.js +4 -4
  159. package/out/paramSerializer.d.ts +1 -0
  160. package/out/paramSerializer.js +16 -0
  161. package/out/server/audit.d.ts +1 -1
  162. package/out/server/audit.js +6 -6
  163. package/out/server/content.d.ts +1 -1
  164. package/out/server/content.js +32 -32
  165. package/out/server/contentBody.d.ts +1 -1
  166. package/out/server/contentBody.js +1 -1
  167. package/out/server/group.d.ts +1 -1
  168. package/out/server/group.js +3 -3
  169. package/out/server/index.js +8 -8
  170. package/out/server/longTask.d.ts +1 -1
  171. package/out/server/longTask.js +2 -2
  172. package/out/server/models/content.d.ts +6 -6
  173. package/out/server/models/contentChildren.d.ts +1 -1
  174. package/out/server/models/contentHistory.d.ts +2 -2
  175. package/out/server/models/contentLookAndFeel.d.ts +1 -1
  176. package/out/server/models/contentRestriction.d.ts +2 -2
  177. package/out/server/models/index.js +60 -60
  178. package/out/server/models/lookAndFeel.d.ts +2 -2
  179. package/out/server/models/searchResult.d.ts +2 -2
  180. package/out/server/models/space.d.ts +3 -3
  181. package/out/server/models/spacePermission.d.ts +1 -1
  182. package/out/server/models/user.d.ts +1 -1
  183. package/out/server/models/version.d.ts +1 -1
  184. package/out/server/parameters/index.js +64 -64
  185. package/out/server/search.d.ts +1 -1
  186. package/out/server/search.js +1 -1
  187. package/out/server/space.d.ts +1 -1
  188. package/out/server/space.js +14 -14
  189. package/out/server/user.d.ts +1 -1
  190. package/out/server/user.js +10 -10
  191. package/out/services/authenticationService/authenticationService.js +4 -1
  192. package/out/services/authenticationService/authentications/createPATAuthenticationToken.d.ts +2 -0
  193. package/out/services/authenticationService/authentications/createPATAuthenticationToken.js +10 -0
  194. package/out/services/authenticationService/authentications/index.d.ts +1 -0
  195. package/out/services/authenticationService/authentications/index.js +4 -3
  196. package/out/services/authenticationService/index.js +1 -1
  197. package/package.json +30 -27
  198. package/src/api/analytics.ts +44 -0
  199. package/src/api/audit.ts +7 -7
  200. package/src/api/content.ts +11 -11
  201. package/src/api/contentAttachments.ts +11 -10
  202. package/src/api/contentBody.ts +2 -2
  203. package/src/api/contentChildrenAndDescendants.ts +15 -11
  204. package/src/api/contentComments.ts +2 -2
  205. package/src/api/contentContentState.ts +157 -0
  206. package/src/api/contentLabels.ts +5 -5
  207. package/src/api/contentMacroBody.ts +2 -2
  208. package/src/api/contentPermissions.ts +2 -2
  209. package/src/api/contentProperties.ts +7 -7
  210. package/src/api/contentRestrictions.ts +16 -16
  211. package/src/api/contentVersions.ts +5 -5
  212. package/src/api/contentWatches.ts +13 -13
  213. package/src/api/dynamicModules.ts +4 -4
  214. package/src/api/experimental.ts +216 -13
  215. package/src/api/group.ts +20 -16
  216. package/src/api/index.ts +2 -0
  217. package/src/api/inlineTasks.ts +4 -4
  218. package/src/api/labelInfo.ts +2 -2
  219. package/src/api/longRunningTask.ts +3 -3
  220. package/src/api/models/availableContentStates.ts +7 -0
  221. package/src/api/models/blueprintTemplate.ts +1 -1
  222. package/src/api/models/bulkUserLookup.ts +2 -2
  223. package/src/api/models/content.ts +6 -6
  224. package/src/api/models/contentHistory.ts +2 -2
  225. package/src/api/models/contentLookAndFeel.ts +1 -1
  226. package/src/api/models/contentMetadata.ts +1 -1
  227. package/src/api/models/contentRestriction.ts +2 -2
  228. package/src/api/models/contentState.ts +8 -0
  229. package/src/api/models/contentStateContainer.ts +6 -0
  230. package/src/api/models/contentStateSettings.ts +12 -0
  231. package/src/api/models/contentTemplate.ts +1 -1
  232. package/src/api/models/copyPageHierarchyRequest.ts +2 -0
  233. package/src/api/models/copyPageRequest.ts +1 -1
  234. package/src/api/models/horizontalHeaderLookAndFeel.ts +1 -1
  235. package/src/api/models/index.ts +8 -0
  236. package/src/api/models/labelArray.ts +1 -1
  237. package/src/api/models/longTask.ts +8 -0
  238. package/src/api/models/longTaskStatusArray.ts +1 -1
  239. package/src/api/models/lookAndFeel.ts +2 -2
  240. package/src/api/models/migratedUserArray.ts +1 -1
  241. package/src/api/models/relation.ts +1 -1
  242. package/src/api/models/relationArray.ts +1 -1
  243. package/src/api/models/searchPageResponseSearchResult.ts +1 -1
  244. package/src/api/models/searchResult.ts +2 -2
  245. package/src/api/models/space.ts +4 -4
  246. package/src/api/models/spaceArray.ts +1 -1
  247. package/src/api/models/spacePermission.ts +1 -1
  248. package/src/api/models/spacePermissionCreate.ts +1 -1
  249. package/src/api/models/spacePermissionRequest.ts +1 -1
  250. package/src/api/models/spacePermissionV2.ts +1 -1
  251. package/src/api/models/spacePropertyArray.ts +1 -1
  252. package/src/api/models/spaceWatchArray.ts +1 -1
  253. package/src/api/models/themeArray.ts +1 -1
  254. package/src/api/models/user.ts +2 -2
  255. package/src/api/models/userAnonymous.ts +1 -1
  256. package/src/api/models/userProperty.ts +14 -0
  257. package/src/api/models/userPropertyCreate.ts +4 -0
  258. package/src/api/models/userPropertyKeyArray.ts +11 -0
  259. package/src/api/models/userPropertyUpdate.ts +4 -0
  260. package/src/api/models/usersUserKeys.ts +1 -1
  261. package/src/api/models/version.ts +2 -2
  262. package/src/api/models/versionArray.ts +1 -1
  263. package/src/api/models/watchArray.ts +1 -1
  264. package/src/api/parameters/createUserProperty.ts +11 -0
  265. package/src/api/parameters/deletePageTree.ts +4 -0
  266. package/src/api/parameters/deleteUserProperty.ts +9 -0
  267. package/src/api/parameters/getAvailableContentStates.ts +4 -0
  268. package/src/api/parameters/getContentState.ts +6 -0
  269. package/src/api/parameters/getContentStateLastUpdated.ts +4 -0
  270. package/src/api/parameters/getContentStateSettings.ts +4 -0
  271. package/src/api/parameters/getGroupMembersByGroupId.ts +5 -0
  272. package/src/api/parameters/getMembersByQueryParam.ts +5 -0
  273. package/src/api/parameters/getSpaces.ts +31 -1
  274. package/src/api/parameters/getUserProperties.ts +8 -0
  275. package/src/api/parameters/getUserProperty.ts +6 -0
  276. package/src/api/parameters/index.ts +12 -0
  277. package/src/api/parameters/removeContentState.ts +4 -0
  278. package/src/api/parameters/searchGroups.ts +5 -0
  279. package/src/api/parameters/setContentState.ts +8 -0
  280. package/src/api/parameters/updateUserProperty.ts +11 -0
  281. package/src/api/relation.ts +6 -6
  282. package/src/api/search.ts +7 -5
  283. package/src/api/settings.ts +29 -7
  284. package/src/api/space.ts +14 -10
  285. package/src/api/spacePermissions.ts +4 -4
  286. package/src/api/spaceProperties.ts +7 -7
  287. package/src/api/spaceSettings.ts +3 -3
  288. package/src/api/template.ts +7 -7
  289. package/src/api/themes.ts +7 -7
  290. package/src/api/users.ts +12 -12
  291. package/src/clients/baseClient.ts +12 -64
  292. package/src/clients/client.ts +2 -3
  293. package/src/clients/confluenceClient.ts +4 -0
  294. package/src/config.ts +9 -4
  295. package/src/paramSerializer.ts +15 -0
  296. package/src/server/audit.ts +2 -2
  297. package/src/server/content.ts +2 -2
  298. package/src/server/contentBody.ts +1 -1
  299. package/src/server/group.ts +2 -2
  300. package/src/server/longTask.ts +2 -2
  301. package/src/server/models/content.ts +6 -6
  302. package/src/server/models/contentChildren.ts +1 -1
  303. package/src/server/models/contentHistory.ts +2 -2
  304. package/src/server/models/contentLookAndFeel.ts +1 -1
  305. package/src/server/models/contentRestriction.ts +2 -2
  306. package/src/server/models/lookAndFeel.ts +2 -2
  307. package/src/server/models/searchResult.ts +2 -2
  308. package/src/server/models/space.ts +3 -3
  309. package/src/server/models/spacePermission.ts +1 -1
  310. package/src/server/models/user.ts +1 -1
  311. package/src/server/models/version.ts +1 -1
  312. package/src/server/search.ts +2 -2
  313. package/src/server/space.ts +2 -2
  314. package/src/server/user.ts +2 -2
  315. package/src/services/authenticationService/authenticationService.ts +5 -0
  316. package/src/services/authenticationService/authentications/createBasicAuthenticationToken.ts +1 -1
  317. package/src/services/authenticationService/authentications/createPATAuthenticationToken.ts +5 -0
  318. package/src/services/authenticationService/authentications/index.ts +1 -0
  319. package/tsconfig.lint.json +7 -0
@@ -7,7 +7,7 @@ class Settings {
7
7
  this.client = client;
8
8
  }
9
9
  getLookAndFeelSettings(parameters, callback) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  const config = {
12
12
  url: '/api/settings/lookandfeel',
13
13
  method: 'GET',
@@ -15,11 +15,11 @@ 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, { methodName: 'getLookAndFeelSettings' });
18
+ return this.client.sendRequest(config, callback);
19
19
  });
20
20
  }
21
21
  updateLookAndFeel(parameters, callback) {
22
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
23
  const config = {
24
24
  url: '/api/settings/lookandfeel',
25
25
  method: 'PUT',
@@ -28,11 +28,11 @@ 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, { methodName: 'updateLookAndFeel' });
31
+ return this.client.sendRequest(config, callback);
32
32
  });
33
33
  }
34
34
  updateLookAndFeelSettings(parameters, callback) {
35
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
35
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
36
36
  const config = {
37
37
  url: '/api/settings/lookandfeel/custom',
38
38
  method: 'POST',
@@ -51,11 +51,11 @@ 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, { methodName: 'updateLookAndFeelSettings' });
54
+ return this.client.sendRequest(config, callback);
55
55
  });
56
56
  }
57
57
  resetLookAndFeelSettings(parameters, callback) {
58
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
58
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
59
59
  const config = {
60
60
  url: '/api/settings/lookandfeel/custom',
61
61
  method: 'DELETE',
@@ -63,11 +63,11 @@ 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, { methodName: 'resetLookAndFeelSettings' });
66
+ return this.client.sendRequest(config, callback);
67
67
  });
68
68
  }
69
69
  setLookAndFeelSettings(parameters, callback) {
70
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
70
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
71
71
  const config = {
72
72
  url: '/api/settings/lookandfeel/selected',
73
73
  method: 'PUT',
@@ -75,16 +75,25 @@ 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, { methodName: 'setLookAndFeelSettings' });
78
+ return this.client.sendRequest(config, callback);
79
79
  });
80
80
  }
81
81
  getSystemInfo(callback) {
82
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
82
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
83
83
  const config = {
84
84
  url: '/api/settings/systemInfo',
85
85
  method: 'GET',
86
86
  };
87
- return this.client.sendRequest(config, callback, { methodName: 'getSystemInfo' });
87
+ return this.client.sendRequest(config, callback);
88
+ });
89
+ }
90
+ getContentStateSettings(parameters, callback) {
91
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
92
+ const config = {
93
+ url: `/api/space/${parameters.spaceKey}/state/settings`,
94
+ method: 'GET',
95
+ };
96
+ return this.client.sendRequest(config, callback);
88
97
  });
89
98
  }
90
99
  }
@@ -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
  export declare class Space {
6
6
  private client;
7
7
  constructor(client: Client);
package/out/api/space.js CHANGED
@@ -2,17 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Space = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const paramSerializer_1 = require("../paramSerializer");
5
6
  class Space {
6
7
  constructor(client) {
7
8
  this.client = client;
8
9
  }
9
10
  getSpaces(parameters, callback) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
11
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
12
  const config = {
12
13
  url: '/api/space',
13
14
  method: 'GET',
14
15
  params: {
15
- spaceKey: parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey,
16
+ spaceKey: (0, paramSerializer_1.paramSerializer)('spaceKey', parameters === null || parameters === void 0 ? void 0 : parameters.spaceKey),
16
17
  spaceId: parameters === null || parameters === void 0 ? void 0 : parameters.spaceId,
17
18
  type: parameters === null || parameters === void 0 ? void 0 : parameters.type,
18
19
  status: parameters === null || parameters === void 0 ? void 0 : parameters.status,
@@ -23,11 +24,11 @@ class Space {
23
24
  limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
24
25
  },
25
26
  };
26
- return this.client.sendRequest(config, callback, { methodName: 'getSpaces' });
27
+ return this.client.sendRequest(config, callback);
27
28
  });
28
29
  }
29
30
  createSpace(parameters, callback) {
30
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
31
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
32
  const config = {
32
33
  url: '/api/space',
33
34
  method: 'POST',
@@ -38,11 +39,11 @@ class Space {
38
39
  permissions: parameters === null || parameters === void 0 ? void 0 : parameters.permissions,
39
40
  },
40
41
  };
41
- return this.client.sendRequest(config, callback, { methodName: 'createSpace' });
42
+ return this.client.sendRequest(config, callback);
42
43
  });
43
44
  }
44
45
  createPrivateSpace(parameters, callback) {
45
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
46
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
46
47
  const config = {
47
48
  url: '/api/space/_private',
48
49
  method: 'POST',
@@ -53,20 +54,23 @@ class Space {
53
54
  permissions: parameters === null || parameters === void 0 ? void 0 : parameters.permissions,
54
55
  },
55
56
  };
56
- return this.client.sendRequest(config, callback, { methodName: 'createPrivateSpace' });
57
+ return this.client.sendRequest(config, callback);
57
58
  });
58
59
  }
59
60
  getSpace(parameters, callback) {
60
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
61
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
61
62
  const config = {
62
63
  url: `/api/space/${parameters.spaceKey}`,
63
64
  method: 'GET',
65
+ params: {
66
+ expand: parameters.expand,
67
+ },
64
68
  };
65
- return this.client.sendRequest(config, callback, { methodName: 'getSpace' });
69
+ return this.client.sendRequest(config, callback);
66
70
  });
67
71
  }
68
72
  updateSpace(parameters, callback) {
69
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
73
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
70
74
  const config = {
71
75
  url: `/api/space/${parameters.spaceKey}`,
72
76
  method: 'PUT',
@@ -78,20 +82,20 @@ class Space {
78
82
  status: parameters.status,
79
83
  },
80
84
  };
81
- return this.client.sendRequest(config, callback, { methodName: 'updateSpace' });
85
+ return this.client.sendRequest(config, callback);
82
86
  });
83
87
  }
84
88
  deleteSpace(parameters, callback) {
85
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
89
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
86
90
  const config = {
87
91
  url: `/api/space/${parameters.spaceKey}`,
88
92
  method: 'DELETE',
89
93
  };
90
- return this.client.sendRequest(config, callback, { methodName: 'deleteSpace' });
94
+ return this.client.sendRequest(config, callback);
91
95
  });
92
96
  }
93
97
  getContentForSpace(parameters, callback) {
94
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
98
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
95
99
  const config = {
96
100
  url: `/api/space/${parameters.spaceKey}/content`,
97
101
  method: 'GET',
@@ -101,11 +105,11 @@ class Space {
101
105
  limit: parameters.limit,
102
106
  },
103
107
  };
104
- return this.client.sendRequest(config, callback, { methodName: 'getContentForSpace' });
108
+ return this.client.sendRequest(config, callback);
105
109
  });
106
110
  }
107
111
  getContentByTypeForSpace(parameters, callback) {
108
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
112
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
109
113
  const config = {
110
114
  url: `/api/space/${parameters.spaceKey}/content/${parameters.type}`,
111
115
  method: 'GET',
@@ -115,7 +119,7 @@ class Space {
115
119
  limit: parameters.limit,
116
120
  },
117
121
  };
118
- return this.client.sendRequest(config, callback, { methodName: 'getContentByTypeForSpace' });
122
+ return this.client.sendRequest(config, callback);
119
123
  });
120
124
  }
121
125
  }
@@ -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
  export declare class SpacePermissions {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,12 +7,12 @@ class SpacePermissions {
7
7
  this.client = client;
8
8
  }
9
9
  addPermission(parameters, callback) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  return this.addPermissionToSpace(parameters, callback);
12
12
  });
13
13
  }
14
14
  addPermissionToSpace(parameters, callback) {
15
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
15
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
16
  const config = {
17
17
  url: `/api/space/${parameters.spaceKey}/permission`,
18
18
  method: 'POST',
@@ -22,11 +22,11 @@ class SpacePermissions {
22
22
  _links: parameters.links,
23
23
  },
24
24
  };
25
- return this.client.sendRequest(config, callback, { methodName: 'addPermissionToSpace' });
25
+ return this.client.sendRequest(config, callback);
26
26
  });
27
27
  }
28
28
  addCustomContentPermissions(parameters, callback) {
29
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
29
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
30
  const config = {
31
31
  url: `/api/space/${parameters.spaceKey}/permission/custom-content`,
32
32
  method: 'POST',
@@ -35,16 +35,16 @@ class SpacePermissions {
35
35
  operations: parameters.operations,
36
36
  },
37
37
  };
38
- return this.client.sendRequest(config, callback, { methodName: 'addCustomContentPermissions' });
38
+ return this.client.sendRequest(config, callback);
39
39
  });
40
40
  }
41
41
  removePermission(parameters, callback) {
42
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
42
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
43
43
  const config = {
44
44
  url: `/api/space/${parameters.spaceKey}/permission/${parameters.id}`,
45
45
  method: 'DELETE',
46
46
  };
47
- return this.client.sendRequest(config, callback, { methodName: 'removePermission' });
47
+ return this.client.sendRequest(config, callback);
48
48
  });
49
49
  }
50
50
  }
@@ -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
  export declare class SpaceProperties {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,7 +7,7 @@ class SpaceProperties {
7
7
  this.client = client;
8
8
  }
9
9
  getSpaceProperties(parameters, callback) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  const config = {
12
12
  url: `/api/space/${parameters.spaceKey}/property`,
13
13
  method: 'GET',
@@ -17,11 +17,11 @@ class SpaceProperties {
17
17
  limit: parameters.limit,
18
18
  },
19
19
  };
20
- return this.client.sendRequest(config, callback, { methodName: 'getSpaceProperties' });
20
+ return this.client.sendRequest(config, callback);
21
21
  });
22
22
  }
23
23
  createSpaceProperty(parameters, callback) {
24
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
24
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
25
  const config = {
26
26
  url: `/api/space/${parameters.spaceKey}/property`,
27
27
  method: 'POST',
@@ -31,11 +31,11 @@ class SpaceProperties {
31
31
  space: parameters.space,
32
32
  },
33
33
  };
34
- return this.client.sendRequest(config, callback, { methodName: 'createSpaceProperty' });
34
+ return this.client.sendRequest(config, callback);
35
35
  });
36
36
  }
37
37
  getSpaceProperty(parameters, callback) {
38
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
38
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
39
39
  const config = {
40
40
  url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
41
41
  method: 'GET',
@@ -43,11 +43,11 @@ class SpaceProperties {
43
43
  expand: parameters.expand,
44
44
  },
45
45
  };
46
- return this.client.sendRequest(config, callback, { methodName: 'getSpaceProperty' });
46
+ return this.client.sendRequest(config, callback);
47
47
  });
48
48
  }
49
49
  createSpacePropertyForKey(parameters, callback) {
50
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
50
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
51
51
  const config = {
52
52
  url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
53
53
  method: 'POST',
@@ -55,11 +55,11 @@ class SpaceProperties {
55
55
  value: parameters.value,
56
56
  },
57
57
  };
58
- return this.client.sendRequest(config, callback, { methodName: 'createSpacePropertyForKey' });
58
+ return this.client.sendRequest(config, callback);
59
59
  });
60
60
  }
61
61
  updateSpaceProperty(parameters, callback) {
62
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
62
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
63
63
  const config = {
64
64
  url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
65
65
  method: 'PUT',
@@ -68,16 +68,16 @@ class SpaceProperties {
68
68
  version: parameters.version,
69
69
  },
70
70
  };
71
- return this.client.sendRequest(config, callback, { methodName: 'updateSpaceProperty' });
71
+ return this.client.sendRequest(config, callback);
72
72
  });
73
73
  }
74
74
  deleteSpaceProperty(parameters, callback) {
75
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
75
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
76
76
  const config = {
77
77
  url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,
78
78
  method: 'DELETE',
79
79
  };
80
- return this.client.sendRequest(config, callback, { methodName: 'deleteSpaceProperty' });
80
+ return this.client.sendRequest(config, callback);
81
81
  });
82
82
  }
83
83
  }
@@ -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
  export declare class SpaceSettings {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,16 +7,16 @@ class SpaceSettings {
7
7
  this.client = client;
8
8
  }
9
9
  getSpaceSettings(parameters, callback) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  const config = {
12
12
  url: `/api/space/${parameters.spaceKey}/settings`,
13
13
  method: 'GET',
14
14
  };
15
- return this.client.sendRequest(config, callback, { methodName: 'getSpaceSettings' });
15
+ return this.client.sendRequest(config, callback);
16
16
  });
17
17
  }
18
18
  updateSpaceSettings(parameters, callback) {
19
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
19
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
20
  const config = {
21
21
  url: `/api/space/${parameters.spaceKey}/settings`,
22
22
  method: 'PUT',
@@ -24,7 +24,7 @@ class SpaceSettings {
24
24
  routeOverrideEnabled: parameters.routeOverrideEnabled,
25
25
  },
26
26
  };
27
- return this.client.sendRequest(config, callback, { methodName: 'updateSpaceSettings' });
27
+ return this.client.sendRequest(config, callback);
28
28
  });
29
29
  }
30
30
  }
@@ -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
  export declare class Template {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,7 +7,7 @@ class Template {
7
7
  this.client = client;
8
8
  }
9
9
  createContentTemplate(parameters, callback) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  const config = {
12
12
  url: '/api/template',
13
13
  method: 'POST',
@@ -20,11 +20,11 @@ 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, { methodName: 'createContentTemplate' });
23
+ return this.client.sendRequest(config, callback);
24
24
  });
25
25
  }
26
26
  updateContentTemplate(parameters, callback) {
27
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
28
  const config = {
29
29
  url: '/api/template',
30
30
  method: 'PUT',
@@ -38,11 +38,11 @@ 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, { methodName: 'updateContentTemplate' });
41
+ return this.client.sendRequest(config, callback);
42
42
  });
43
43
  }
44
44
  getBlueprintTemplates(parameters, callback) {
45
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
45
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
46
46
  const config = {
47
47
  url: '/api/template/blueprint',
48
48
  method: 'GET',
@@ -53,11 +53,11 @@ 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, { methodName: 'getBlueprintTemplates' });
56
+ return this.client.sendRequest(config, callback);
57
57
  });
58
58
  }
59
59
  getContentTemplates(parameters, callback) {
60
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
60
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
61
61
  const config = {
62
62
  url: '/api/template/page',
63
63
  method: 'GET',
@@ -68,25 +68,25 @@ 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, { methodName: 'getContentTemplates' });
71
+ return this.client.sendRequest(config, callback);
72
72
  });
73
73
  }
74
74
  getContentTemplate(parameters, callback) {
75
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
75
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
76
76
  const config = {
77
77
  url: `/api/template/${parameters.contentTemplateId}`,
78
78
  method: 'GET',
79
79
  };
80
- return this.client.sendRequest(config, callback, { methodName: 'getContentTemplate' });
80
+ return this.client.sendRequest(config, callback);
81
81
  });
82
82
  }
83
83
  removeTemplate(parameters, callback) {
84
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
84
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
85
85
  const config = {
86
86
  url: `/api/template/${parameters.contentTemplateId}`,
87
87
  method: 'DELETE',
88
88
  };
89
- return this.client.sendRequest(config, callback, { methodName: 'removeTemplate' });
89
+ return this.client.sendRequest(config, callback);
90
90
  });
91
91
  }
92
92
  }
@@ -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
  export declare class Themes {
6
6
  private client;
7
7
  constructor(client: Client);
package/out/api/themes.js CHANGED
@@ -7,7 +7,7 @@ class Themes {
7
7
  this.client = client;
8
8
  }
9
9
  getThemes(parameters, callback) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  const config = {
12
12
  url: '/api/settings/theme',
13
13
  method: 'GET',
@@ -16,38 +16,38 @@ class Themes {
16
16
  limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
17
17
  },
18
18
  };
19
- return this.client.sendRequest(config, callback, { methodName: 'getThemes' });
19
+ return this.client.sendRequest(config, callback);
20
20
  });
21
21
  }
22
22
  getGlobalTheme(callback) {
23
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
23
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
24
24
  const config = {
25
25
  url: '/api/settings/theme/selected',
26
26
  method: 'GET',
27
27
  };
28
- return this.client.sendRequest(config, callback, { methodName: 'getGlobalTheme' });
28
+ return this.client.sendRequest(config, callback);
29
29
  });
30
30
  }
31
31
  getTheme(parameters, callback) {
32
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
32
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
33
  const config = {
34
34
  url: `/api/settings/theme/${parameters.themeKey}`,
35
35
  method: 'GET',
36
36
  };
37
- return this.client.sendRequest(config, callback, { methodName: 'getTheme' });
37
+ return this.client.sendRequest(config, callback);
38
38
  });
39
39
  }
40
40
  getSpaceTheme(parameters, callback) {
41
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
41
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
42
  const config = {
43
43
  url: `/api/space/${parameters.spaceKey}/theme`,
44
44
  method: 'GET',
45
45
  };
46
- return this.client.sendRequest(config, callback, { methodName: 'getSpaceTheme' });
46
+ return this.client.sendRequest(config, callback);
47
47
  });
48
48
  }
49
49
  setSpaceTheme(parameters, callback) {
50
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
50
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
51
51
  const config = {
52
52
  url: `/api/space/${parameters.spaceKey}/theme`,
53
53
  method: 'PUT',
@@ -55,16 +55,16 @@ class Themes {
55
55
  themeKey: parameters.themeKey,
56
56
  },
57
57
  };
58
- return this.client.sendRequest(config, callback, { methodName: 'setSpaceTheme' });
58
+ return this.client.sendRequest(config, callback);
59
59
  });
60
60
  }
61
61
  resetSpaceTheme(parameters, callback) {
62
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
62
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
63
63
  const config = {
64
64
  url: `/api/space/${parameters.spaceKey}/theme`,
65
65
  method: 'DELETE',
66
66
  };
67
- return this.client.sendRequest(config, callback, { methodName: 'resetSpaceTheme' });
67
+ return this.client.sendRequest(config, callback);
68
68
  });
69
69
  }
70
70
  }
@@ -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
  export declare class Users {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -63,14 +63,14 @@ export declare class Users {
63
63
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
64
64
  * ('Can use' global permission).
65
65
  */
66
- getGroupMembershipsForUser<T = Models.GroupArray>(parameters: Parameters.GetGroupMembershipsForUser, callback: Callback<T>): Promise<void>;
66
+ getGroupMembershipsForUser<T = Models.GroupArrayWithLinks>(parameters: Parameters.GetGroupMembershipsForUser, callback: Callback<T>): Promise<void>;
67
67
  /**
68
68
  * Returns the groups that a user is a member of.
69
69
  *
70
70
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
71
71
  * ('Can use' global permission).
72
72
  */
73
- getGroupMembershipsForUser<T = Models.GroupArray>(parameters: Parameters.GetGroupMembershipsForUser, callback?: never): Promise<T>;
73
+ getGroupMembershipsForUser<T = Models.GroupArrayWithLinks>(parameters: Parameters.GetGroupMembershipsForUser, callback?: never): Promise<T>;
74
74
  /**
75
75
  * Returns user details for the ids provided in request.
76
76
  *