confluence.js 1.3.1 → 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 (317) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +15 -0
  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 +6 -6
  7. package/out/api/content.d.ts +1 -1
  8. package/out/api/content.js +10 -10
  9. package/out/api/contentAttachments.d.ts +1 -1
  10. package/out/api/contentAttachments.js +6 -6
  11. package/out/api/contentBody.d.ts +1 -1
  12. package/out/api/contentBody.js +1 -1
  13. package/out/api/contentChildrenAndDescendants.d.ts +3 -3
  14. package/out/api/contentChildrenAndDescendants.js +9 -8
  15. package/out/api/contentComments.d.ts +1 -1
  16. package/out/api/contentComments.js +1 -1
  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 +4 -4
  21. package/out/api/contentMacroBody.d.ts +1 -1
  22. package/out/api/contentMacroBody.js +1 -1
  23. package/out/api/contentPermissions.d.ts +1 -1
  24. package/out/api/contentPermissions.js +2 -2
  25. package/out/api/contentProperties.d.ts +1 -1
  26. package/out/api/contentProperties.js +6 -6
  27. package/out/api/contentRestrictions.d.ts +1 -1
  28. package/out/api/contentRestrictions.js +15 -15
  29. package/out/api/contentVersions.d.ts +1 -1
  30. package/out/api/contentVersions.js +4 -4
  31. package/out/api/contentWatches.d.ts +1 -1
  32. package/out/api/contentWatches.js +12 -12
  33. package/out/api/dynamicModules.d.ts +1 -1
  34. package/out/api/dynamicModules.js +3 -3
  35. package/out/api/experimental.d.ts +123 -5
  36. package/out/api/experimental.js +60 -8
  37. package/out/api/group.d.ts +1 -1
  38. package/out/api/group.js +20 -17
  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 +3 -3
  43. package/out/api/labelInfo.d.ts +1 -1
  44. package/out/api/labelInfo.js +1 -1
  45. package/out/api/longRunningTask.d.ts +1 -1
  46. package/out/api/longRunningTask.js +2 -2
  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 +7 -7
  133. package/out/api/search.d.ts +1 -1
  134. package/out/api/search.js +4 -4
  135. package/out/api/settings.d.ts +5 -1
  136. package/out/api/settings.js +15 -6
  137. package/out/api/space.d.ts +1 -1
  138. package/out/api/space.js +13 -9
  139. package/out/api/spacePermissions.d.ts +1 -1
  140. package/out/api/spacePermissions.js +4 -4
  141. package/out/api/spaceProperties.d.ts +1 -1
  142. package/out/api/spaceProperties.js +6 -6
  143. package/out/api/spaceSettings.d.ts +1 -1
  144. package/out/api/spaceSettings.js +2 -2
  145. package/out/api/template.d.ts +1 -1
  146. package/out/api/template.js +6 -6
  147. package/out/api/themes.d.ts +1 -1
  148. package/out/api/themes.js +6 -6
  149. package/out/api/users.d.ts +3 -3
  150. package/out/api/users.js +8 -8
  151. package/out/clients/baseClient.d.ts +1 -1
  152. package/out/clients/baseClient.js +6 -6
  153. package/out/clients/confluenceClient.d.ts +3 -1
  154. package/out/clients/confluenceClient.js +2 -0
  155. package/out/clients/index.js +4 -4
  156. package/out/config.d.ts +5 -2
  157. package/out/index.js +4 -4
  158. package/out/paramSerializer.d.ts +1 -0
  159. package/out/paramSerializer.js +16 -0
  160. package/out/server/audit.d.ts +1 -1
  161. package/out/server/audit.js +6 -6
  162. package/out/server/content.d.ts +1 -1
  163. package/out/server/content.js +32 -32
  164. package/out/server/contentBody.d.ts +1 -1
  165. package/out/server/contentBody.js +1 -1
  166. package/out/server/group.d.ts +1 -1
  167. package/out/server/group.js +3 -3
  168. package/out/server/index.js +8 -8
  169. package/out/server/longTask.d.ts +1 -1
  170. package/out/server/longTask.js +2 -2
  171. package/out/server/models/content.d.ts +6 -6
  172. package/out/server/models/contentChildren.d.ts +1 -1
  173. package/out/server/models/contentHistory.d.ts +2 -2
  174. package/out/server/models/contentLookAndFeel.d.ts +1 -1
  175. package/out/server/models/contentRestriction.d.ts +2 -2
  176. package/out/server/models/index.js +60 -60
  177. package/out/server/models/lookAndFeel.d.ts +2 -2
  178. package/out/server/models/searchResult.d.ts +2 -2
  179. package/out/server/models/space.d.ts +3 -3
  180. package/out/server/models/spacePermission.d.ts +1 -1
  181. package/out/server/models/user.d.ts +1 -1
  182. package/out/server/models/version.d.ts +1 -1
  183. package/out/server/parameters/index.js +64 -64
  184. package/out/server/search.d.ts +1 -1
  185. package/out/server/search.js +1 -1
  186. package/out/server/space.d.ts +1 -1
  187. package/out/server/space.js +14 -14
  188. package/out/server/user.d.ts +1 -1
  189. package/out/server/user.js +10 -10
  190. package/out/services/authenticationService/authenticationService.js +4 -1
  191. package/out/services/authenticationService/authentications/createPATAuthenticationToken.d.ts +2 -0
  192. package/out/services/authenticationService/authentications/createPATAuthenticationToken.js +10 -0
  193. package/out/services/authenticationService/authentications/index.d.ts +1 -0
  194. package/out/services/authenticationService/authentications/index.js +4 -3
  195. package/out/services/authenticationService/index.js +1 -1
  196. package/package.json +30 -26
  197. package/src/api/analytics.ts +44 -0
  198. package/src/api/audit.ts +1 -1
  199. package/src/api/content.ts +1 -1
  200. package/src/api/contentAttachments.ts +1 -1
  201. package/src/api/contentBody.ts +1 -1
  202. package/src/api/contentChildrenAndDescendants.ts +8 -4
  203. package/src/api/contentComments.ts +1 -1
  204. package/src/api/contentContentState.ts +157 -0
  205. package/src/api/contentLabels.ts +1 -1
  206. package/src/api/contentMacroBody.ts +1 -1
  207. package/src/api/contentPermissions.ts +1 -1
  208. package/src/api/contentProperties.ts +1 -1
  209. package/src/api/contentRestrictions.ts +1 -1
  210. package/src/api/contentVersions.ts +1 -1
  211. package/src/api/contentWatches.ts +1 -1
  212. package/src/api/dynamicModules.ts +1 -1
  213. package/src/api/experimental.ts +211 -8
  214. package/src/api/group.ts +4 -1
  215. package/src/api/index.ts +2 -0
  216. package/src/api/inlineTasks.ts +1 -1
  217. package/src/api/labelInfo.ts +1 -1
  218. package/src/api/longRunningTask.ts +1 -1
  219. package/src/api/models/availableContentStates.ts +7 -0
  220. package/src/api/models/blueprintTemplate.ts +1 -1
  221. package/src/api/models/bulkUserLookup.ts +2 -2
  222. package/src/api/models/content.ts +6 -6
  223. package/src/api/models/contentHistory.ts +2 -2
  224. package/src/api/models/contentLookAndFeel.ts +1 -1
  225. package/src/api/models/contentMetadata.ts +1 -1
  226. package/src/api/models/contentRestriction.ts +2 -2
  227. package/src/api/models/contentState.ts +8 -0
  228. package/src/api/models/contentStateContainer.ts +6 -0
  229. package/src/api/models/contentStateSettings.ts +12 -0
  230. package/src/api/models/contentTemplate.ts +1 -1
  231. package/src/api/models/copyPageHierarchyRequest.ts +2 -0
  232. package/src/api/models/copyPageRequest.ts +1 -1
  233. package/src/api/models/horizontalHeaderLookAndFeel.ts +1 -1
  234. package/src/api/models/index.ts +8 -0
  235. package/src/api/models/labelArray.ts +1 -1
  236. package/src/api/models/longTask.ts +8 -0
  237. package/src/api/models/longTaskStatusArray.ts +1 -1
  238. package/src/api/models/lookAndFeel.ts +2 -2
  239. package/src/api/models/migratedUserArray.ts +1 -1
  240. package/src/api/models/relation.ts +1 -1
  241. package/src/api/models/relationArray.ts +1 -1
  242. package/src/api/models/searchPageResponseSearchResult.ts +1 -1
  243. package/src/api/models/searchResult.ts +2 -2
  244. package/src/api/models/space.ts +4 -4
  245. package/src/api/models/spaceArray.ts +1 -1
  246. package/src/api/models/spacePermission.ts +1 -1
  247. package/src/api/models/spacePermissionCreate.ts +1 -1
  248. package/src/api/models/spacePermissionRequest.ts +1 -1
  249. package/src/api/models/spacePermissionV2.ts +1 -1
  250. package/src/api/models/spacePropertyArray.ts +1 -1
  251. package/src/api/models/spaceWatchArray.ts +1 -1
  252. package/src/api/models/themeArray.ts +1 -1
  253. package/src/api/models/user.ts +2 -2
  254. package/src/api/models/userAnonymous.ts +1 -1
  255. package/src/api/models/userProperty.ts +14 -0
  256. package/src/api/models/userPropertyCreate.ts +4 -0
  257. package/src/api/models/userPropertyKeyArray.ts +11 -0
  258. package/src/api/models/userPropertyUpdate.ts +4 -0
  259. package/src/api/models/usersUserKeys.ts +1 -1
  260. package/src/api/models/version.ts +2 -2
  261. package/src/api/models/versionArray.ts +1 -1
  262. package/src/api/models/watchArray.ts +1 -1
  263. package/src/api/parameters/createUserProperty.ts +11 -0
  264. package/src/api/parameters/deletePageTree.ts +4 -0
  265. package/src/api/parameters/deleteUserProperty.ts +9 -0
  266. package/src/api/parameters/getAvailableContentStates.ts +4 -0
  267. package/src/api/parameters/getContentState.ts +6 -0
  268. package/src/api/parameters/getContentStateLastUpdated.ts +4 -0
  269. package/src/api/parameters/getContentStateSettings.ts +4 -0
  270. package/src/api/parameters/getGroupMembersByGroupId.ts +5 -0
  271. package/src/api/parameters/getMembersByQueryParam.ts +5 -0
  272. package/src/api/parameters/getSpaces.ts +31 -1
  273. package/src/api/parameters/getUserProperties.ts +8 -0
  274. package/src/api/parameters/getUserProperty.ts +6 -0
  275. package/src/api/parameters/index.ts +12 -0
  276. package/src/api/parameters/removeContentState.ts +4 -0
  277. package/src/api/parameters/searchGroups.ts +5 -0
  278. package/src/api/parameters/setContentState.ts +8 -0
  279. package/src/api/parameters/updateUserProperty.ts +11 -0
  280. package/src/api/relation.ts +1 -1
  281. package/src/api/search.ts +1 -1
  282. package/src/api/settings.ts +23 -1
  283. package/src/api/space.ts +6 -2
  284. package/src/api/spacePermissions.ts +1 -1
  285. package/src/api/spaceProperties.ts +1 -1
  286. package/src/api/spaceSettings.ts +1 -1
  287. package/src/api/template.ts +1 -1
  288. package/src/api/themes.ts +1 -1
  289. package/src/api/users.ts +4 -4
  290. package/src/clients/baseClient.ts +3 -3
  291. package/src/clients/confluenceClient.ts +4 -0
  292. package/src/config.ts +6 -2
  293. package/src/paramSerializer.ts +15 -0
  294. package/src/server/audit.ts +2 -2
  295. package/src/server/content.ts +2 -2
  296. package/src/server/contentBody.ts +1 -1
  297. package/src/server/group.ts +2 -2
  298. package/src/server/longTask.ts +2 -2
  299. package/src/server/models/content.ts +6 -6
  300. package/src/server/models/contentChildren.ts +1 -1
  301. package/src/server/models/contentHistory.ts +2 -2
  302. package/src/server/models/contentLookAndFeel.ts +1 -1
  303. package/src/server/models/contentRestriction.ts +2 -2
  304. package/src/server/models/lookAndFeel.ts +2 -2
  305. package/src/server/models/searchResult.ts +2 -2
  306. package/src/server/models/space.ts +3 -3
  307. package/src/server/models/spacePermission.ts +1 -1
  308. package/src/server/models/user.ts +1 -1
  309. package/src/server/models/version.ts +1 -1
  310. package/src/server/search.ts +2 -2
  311. package/src/server/space.ts +2 -2
  312. package/src/server/user.ts +2 -2
  313. package/src/services/authenticationService/authenticationService.ts +5 -0
  314. package/src/services/authenticationService/authentications/createBasicAuthenticationToken.ts +1 -1
  315. package/src/services/authenticationService/authentications/createPATAuthenticationToken.ts +5 -0
  316. package/src/services/authenticationService/authentications/index.ts +1 -0
  317. package/tsconfig.lint.json +7 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ - Analytics API added.
4
+ - ContentContentState API added.
5
+ - `deletePageTree` method added to `Experimental`.
6
+ - `getUserProperties` method added to `Experimental`.
7
+ - `getUserProperty` method added to `Experimental`.
8
+ - `createUserProperty` method added to `Experimental`.
9
+ - `updateUserProperty` method added to `Experimental`.
10
+ - `deleteUserProperty` method added to `Experimental`.
11
+ - `getContentStateSettings` method added to `Settings`.
12
+ - Another small changes.
13
+ - Personal Access token authentication added.
14
+
3
15
  ### 1.3.0
4
16
 
5
17
  - Telemetry removed (deprecated)
package/README.md CHANGED
@@ -23,6 +23,7 @@ Usability, consistency, and performance are key focuses of confluence.js, and it
23
23
  - [Basic](#basic-authenticationhttpsdeveloperatlassiancomcloudconfluencebasic-auth-for-rest-apis)
24
24
  - [OAuth 2.0](#oauth-20httpsdeveloperatlassiancomcloudconfluenceoauth-2-3lo-apps)
25
25
  - [JWT](#jwthttpsdeveloperatlassiancomcloudconfluenceunderstanding-jwt)
26
+ - [Personal access token](#personal-access-token)
26
27
  - [Your first request and using algorithm](#your-first-request-and-using-algorithm)
27
28
  - [Decreasing Webpack bundle size](#decreasing-webpack-bundle-size)
28
29
  - [Take a look at our other products](#take-a-look-at-our-other-products)
@@ -122,6 +123,19 @@ const client = new ConfluenceClient({
122
123
  });
123
124
  ```
124
125
 
126
+ ##### [Personal access token](https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html)
127
+
128
+ ```typescript
129
+ import { ConfluenceClient } from 'confluence.js';
130
+
131
+ const client = new ConfluenceClient({
132
+ host: 'https://your-domain.atlassian.net',
133
+ authentication: {
134
+ personalAccessToken: 'secrectPAT',
135
+ },
136
+ });
137
+ ```
138
+
125
139
  #### Your first request and using algorithm
126
140
 
127
141
  ```typescript
@@ -221,6 +235,7 @@ client.<group>.<methodName>(parametersObject);
221
235
 
222
236
  Available groups:
223
237
 
238
+ - [analytics](https://developer.atlassian.com/cloud/confluence/rest/api-group-analytics/)
224
239
  - [audit](https://developer.atlassian.com/cloud/confluence/rest/api-group-audit)
225
240
  - [content](https://developer.atlassian.com/cloud/confluence/rest/api-group-content/)
226
241
  - [contentAttachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-group-content---attachments)
@@ -0,0 +1,16 @@
1
+ import * as Models from './models';
2
+ import * as Parameters from './parameters';
3
+ import { Callback } from '../callback';
4
+ import { Client } from '../clients';
5
+ export declare class Analytics {
6
+ private client;
7
+ constructor(client: Client);
8
+ /** Get the total number of views a piece of content has. */
9
+ getViews<T = Models.GetViews>(parameters: Parameters.GetViews, callback: Callback<T>): Promise<void>;
10
+ /** Get the total number of views a piece of content has. */
11
+ getViews<T = Models.GetViews>(parameters: Parameters.GetViews, callback?: never): Promise<T>;
12
+ /** Get the total number of distinct viewers a piece of content has. */
13
+ getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback: Callback<T>): Promise<void>;
14
+ /** Get the total number of distinct viewers a piece of content has. */
15
+ getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback?: never): Promise<T>;
16
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Analytics = void 0;
4
+ const tslib_1 = require("tslib");
5
+ class Analytics {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ getViews(parameters, callback) {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
+ const config = {
12
+ url: `/api/analytics/content/${parameters.contentId}/views`,
13
+ method: 'GET',
14
+ params: {
15
+ fromDate: parameters.fromDate,
16
+ },
17
+ };
18
+ return this.client.sendRequest(config, callback);
19
+ });
20
+ }
21
+ getViewers(parameters, callback) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const config = {
24
+ url: `/api/analytics/content/${parameters.contentId}/viewers`,
25
+ method: 'GET',
26
+ params: {
27
+ fromDate: parameters.fromDate,
28
+ },
29
+ };
30
+ return this.client.sendRequest(config, callback);
31
+ });
32
+ }
33
+ }
34
+ exports.Analytics = Analytics;
@@ -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 Audit {
6
6
  private client;
7
7
  constructor(client: Client);
package/out/api/audit.js CHANGED
@@ -7,7 +7,7 @@ class Audit {
7
7
  this.client = client;
8
8
  }
9
9
  getAuditRecords(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/audit',
13
13
  method: 'GET',
@@ -23,7 +23,7 @@ class Audit {
23
23
  });
24
24
  }
25
25
  createAuditRecord(parameters, callback) {
26
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
26
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
27
  const config = {
28
28
  url: '/api/audit',
29
29
  method: 'POST',
@@ -44,7 +44,7 @@ class Audit {
44
44
  });
45
45
  }
46
46
  exportAuditRecords(parameters, callback) {
47
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
47
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
48
48
  const config = {
49
49
  url: '/api/audit/export',
50
50
  method: 'GET',
@@ -59,7 +59,7 @@ class Audit {
59
59
  });
60
60
  }
61
61
  getRetentionPeriod(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/audit/retention',
65
65
  method: 'GET',
@@ -68,7 +68,7 @@ class Audit {
68
68
  });
69
69
  }
70
70
  setRetentionPeriod(parameters, callback) {
71
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
71
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
72
72
  const config = {
73
73
  url: '/api/audit/retention',
74
74
  method: 'PUT',
@@ -81,7 +81,7 @@ class Audit {
81
81
  });
82
82
  }
83
83
  getAuditRecordsForTimePeriod(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/audit/since',
87
87
  method: 'GET',
@@ -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 Content {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,7 +7,7 @@ class Content {
7
7
  this.client = client;
8
8
  }
9
9
  getContent(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/content',
13
13
  method: 'GET',
@@ -28,7 +28,7 @@ class Content {
28
28
  });
29
29
  }
30
30
  createContent(parameters, callback) {
31
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
31
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
32
32
  const config = {
33
33
  url: '/api/content',
34
34
  method: 'POST',
@@ -42,7 +42,7 @@ class Content {
42
42
  });
43
43
  }
44
44
  archivePages(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/content/archive',
48
48
  method: 'POST',
@@ -54,7 +54,7 @@ class Content {
54
54
  });
55
55
  }
56
56
  publishLegacyDraft(parameters, callback) {
57
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
57
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
58
58
  const config = {
59
59
  url: `/api/content/blueprint/instance/${parameters.draftId}`,
60
60
  method: 'POST',
@@ -67,7 +67,7 @@ class Content {
67
67
  });
68
68
  }
69
69
  publishSharedDraft(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/content/blueprint/instance/${parameters.draftId}`,
73
73
  method: 'PUT',
@@ -80,7 +80,7 @@ class Content {
80
80
  });
81
81
  }
82
82
  searchContentByCQL(parameters, callback) {
83
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
83
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
84
84
  const config = {
85
85
  url: '/api/content/search',
86
86
  method: 'GET',
@@ -95,7 +95,7 @@ class Content {
95
95
  });
96
96
  }
97
97
  getContentById(parameters, callback) {
98
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
98
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
99
99
  const config = {
100
100
  url: `/api/content/${parameters.id}`,
101
101
  method: 'GET',
@@ -111,7 +111,7 @@ class Content {
111
111
  });
112
112
  }
113
113
  updateContent(parameters, callback) {
114
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
114
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
115
115
  const config = {
116
116
  url: `/api/content/${parameters.id}`,
117
117
  method: 'PUT',
@@ -132,7 +132,7 @@ class Content {
132
132
  });
133
133
  }
134
134
  deleteContent(parameters, callback) {
135
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
135
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
136
136
  const config = {
137
137
  url: `/api/content/${parameters.id}`,
138
138
  method: 'DELETE',
@@ -144,7 +144,7 @@ class Content {
144
144
  });
145
145
  }
146
146
  getHistoryForContent(parameters, callback) {
147
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
147
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
148
148
  const config = {
149
149
  url: `/api/content/${parameters.id}/history`,
150
150
  method: 'GET',
@@ -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 ContentAttachments {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,7 +7,7 @@ class ContentAttachments {
7
7
  this.client = client;
8
8
  }
9
9
  getAttachments(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/content/${parameters.id}/child/attachment`,
13
13
  method: 'GET',
@@ -23,7 +23,7 @@ class ContentAttachments {
23
23
  });
24
24
  }
25
25
  createAttachments(parameters, callback) {
26
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
26
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
27
  const config = {
28
28
  url: `/api/content/${parameters.id}/child/attachment`,
29
29
  method: 'POST',
@@ -36,7 +36,7 @@ class ContentAttachments {
36
36
  });
37
37
  }
38
38
  createOrUpdateAttachments(parameters, callback) {
39
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
39
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
40
40
  const config = {
41
41
  url: `/api/content/${parameters.id}/child/attachment`,
42
42
  method: 'PUT',
@@ -49,7 +49,7 @@ class ContentAttachments {
49
49
  });
50
50
  }
51
51
  updateAttachmentProperties(parameters, callback) {
52
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
52
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
53
53
  const config = {
54
54
  url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}`,
55
55
  method: 'PUT',
@@ -59,7 +59,7 @@ class ContentAttachments {
59
59
  });
60
60
  }
61
61
  updateAttachmentData(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/content/${parameters.id}/child/attachment/${parameters.attachmentId}/data`,
65
65
  method: 'POST',
@@ -69,7 +69,7 @@ class ContentAttachments {
69
69
  });
70
70
  }
71
71
  downloadAttachment(parameters, callback) {
72
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
72
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
73
73
  const config = {
74
74
  url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}/download`,
75
75
  method: 'GET',
@@ -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 ContentBody {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,7 +7,7 @@ class ContentBody {
7
7
  this.client = client;
8
8
  }
9
9
  convertContentBody(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/contentbody/convert/${parameters.to}`,
13
13
  method: 'POST',
@@ -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 ContentChildrenAndDescendants {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -188,7 +188,7 @@ export declare class ContentChildrenAndDescendants {
188
188
  * of renaming page titles during the copy; for example, search and replace can be used in conjunction to rewrite the
189
189
  * copied page titles.
190
190
  */
191
- copyPageHierarchy<T = unknown>(parameters: Parameters.CopyPageHierarchy, callback: Callback<T>): Promise<void>;
191
+ copyPageHierarchy<T = Models.LongTask>(parameters: Parameters.CopyPageHierarchy, callback: Callback<T>): Promise<void>;
192
192
  /**
193
193
  * Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions
194
194
  * and attachments. The id path parameter refers to the content id of the page to copy, and the new parent of this
@@ -196,7 +196,7 @@ export declare class ContentChildrenAndDescendants {
196
196
  * of renaming page titles during the copy; for example, search and replace can be used in conjunction to rewrite the
197
197
  * copied page titles.
198
198
  */
199
- copyPageHierarchy<T = unknown>(parameters: Parameters.CopyPageHierarchy, callback?: never): Promise<T>;
199
+ copyPageHierarchy<T = Models.LongTask>(parameters: Parameters.CopyPageHierarchy, callback?: never): Promise<T>;
200
200
  /**
201
201
  * Copies a single page and its associated properties, permissions, attachments, and custom contents. The `id` path
202
202
  * parameter refers to the content ID of the page to copy. The target of the page to be copied is defined using the
@@ -7,7 +7,7 @@ class ContentChildrenAndDescendants {
7
7
  this.client = client;
8
8
  }
9
9
  getContentChildren(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/content/${parameters.id}/child`,
13
13
  method: 'GET',
@@ -20,7 +20,7 @@ class ContentChildrenAndDescendants {
20
20
  });
21
21
  }
22
22
  movePage(parameters, 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/content/${parameters.id}/move/${parameters.position}/${parameters.targetId}`,
26
26
  method: 'PUT',
@@ -29,7 +29,7 @@ class ContentChildrenAndDescendants {
29
29
  });
30
30
  }
31
31
  getContentChildrenByType(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/content/${parameters.id}/child/${parameters.type}`,
35
35
  method: 'GET',
@@ -43,7 +43,7 @@ class ContentChildrenAndDescendants {
43
43
  });
44
44
  }
45
45
  getContentDescendants(parameters, callback) {
46
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
46
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
47
  const config = {
48
48
  url: `/api/content/${parameters.id}/descendant`,
49
49
  method: 'GET',
@@ -55,12 +55,12 @@ class ContentChildrenAndDescendants {
55
55
  });
56
56
  }
57
57
  descendantsOfType(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
  return this.getDescendantsOfType(parameters, callback);
60
60
  });
61
61
  }
62
62
  getDescendantsOfType(parameters, callback) {
63
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
63
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
64
64
  const config = {
65
65
  url: `/api/content/${parameters.id}/descendant/${parameters.type}`,
66
66
  method: 'GET',
@@ -75,7 +75,7 @@ class ContentChildrenAndDescendants {
75
75
  });
76
76
  }
77
77
  copyPageHierarchy(parameters, callback) {
78
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
78
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
79
79
  const config = {
80
80
  url: `/api/content/${parameters.id}/pagehierarchy/copy`,
81
81
  method: 'POST',
@@ -85,6 +85,7 @@ class ContentChildrenAndDescendants {
85
85
  copyProperties: parameters.copyProperties,
86
86
  copyLabels: parameters.copyLabels,
87
87
  copyCustomContents: parameters.copyCustomContents,
88
+ copyDescendants: parameters.copyDescendants,
88
89
  destinationPageId: parameters.destinationPageId,
89
90
  titleOptions: parameters.titleOptions,
90
91
  },
@@ -93,7 +94,7 @@ class ContentChildrenAndDescendants {
93
94
  });
94
95
  }
95
96
  copyPage(parameters, callback) {
96
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
97
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
97
98
  const config = {
98
99
  url: `/api/content/${parameters.id}/copy`,
99
100
  method: 'POST',
@@ -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 ContentComments {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,7 +7,7 @@ class ContentComments {
7
7
  this.client = client;
8
8
  }
9
9
  getContentComments(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/content/${parameters.id}/child/comment`,
13
13
  method: 'GET',
@@ -0,0 +1,58 @@
1
+ import * as Models from './models';
2
+ import * as Parameters from './parameters';
3
+ import { Callback } from '../callback';
4
+ import { Client } from '../clients';
5
+ export declare class ContentContentState {
6
+ private client;
7
+ constructor(client: Client);
8
+ /**
9
+ * Gets the current page status of the draft or published version of content. To specify the draft version, set the
10
+ * parameter status to PUBLISHED, otherwise DRAFT.
11
+ */
12
+ getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback: Callback<T>): Promise<void>;
13
+ /**
14
+ * Gets the current page status of the draft or published version of content. To specify the draft version, set the
15
+ * parameter status to PUBLISHED, otherwise DRAFT.
16
+ */
17
+ getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback?: never): Promise<T>;
18
+ /**
19
+ * Sets the content state of the content specified and creates a new version (publishes the content without changing
20
+ * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
21
+ * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
22
+ * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
23
+ * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
24
+ * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
25
+ * status with this name and color will be created. Color can be specified in traditional english colors (teal,
26
+ * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
27
+ */
28
+ setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback: Callback<T>): Promise<void>;
29
+ /**
30
+ * Sets the content state of the content specified and creates a new version (publishes the content without changing
31
+ * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
32
+ * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
33
+ * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
34
+ * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
35
+ * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
36
+ * status with this name and color will be created. Color can be specified in traditional english colors (teal,
37
+ * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
38
+ */
39
+ setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback?: never): Promise<T>;
40
+ /**
41
+ * Removes the content state of the content specified and creates a new version (publishes the content without
42
+ * changing the body) of the content with the new status.
43
+ */
44
+ removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback: Callback<T>): Promise<void>;
45
+ /**
46
+ * Removes the content state of the content specified and creates a new version (publishes the content without
47
+ * changing the body) of the content with the new status.
48
+ */
49
+ removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback?: never): Promise<T>;
50
+ /** Gets a Global Timestamp of the last time the content state was updated */
51
+ getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback: Callback<T>): Promise<void>;
52
+ /** Gets a Global Timestamp of the last time the content state was updated */
53
+ getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback?: never): Promise<T>;
54
+ /** Gets content states that are available for the content to be set as. */
55
+ getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback: Callback<T>): Promise<void>;
56
+ /** Gets content states that are available for the content to be set as. */
57
+ getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback?: never): Promise<T>;
58
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentContentState = void 0;
4
+ const tslib_1 = require("tslib");
5
+ class ContentContentState {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ getContentState(parameters, callback) {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
+ const config = {
12
+ url: `/api/content/${parameters.contentId}/state`,
13
+ method: 'GET',
14
+ params: {
15
+ designation: parameters.designation,
16
+ },
17
+ };
18
+ return this.client.sendRequest(config, callback);
19
+ });
20
+ }
21
+ setContentState(parameters, callback) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const config = {
24
+ url: `/api/content/${parameters.contentId}/state`,
25
+ method: 'PUT',
26
+ params: {
27
+ contentStateId: parameters.contentStateId,
28
+ name: parameters.name,
29
+ color: parameters.color,
30
+ },
31
+ };
32
+ return this.client.sendRequest(config, callback);
33
+ });
34
+ }
35
+ removeContentState(parameters, callback) {
36
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
37
+ const config = {
38
+ url: `/api/content/${parameters.contentId}/state`,
39
+ method: 'DELETE',
40
+ };
41
+ return this.client.sendRequest(config, callback);
42
+ });
43
+ }
44
+ getContentStateLastUpdated(parameters, callback) {
45
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
46
+ const config = {
47
+ url: `/api/content/${parameters.contentId}/state/last-updated`,
48
+ method: 'GET',
49
+ };
50
+ return this.client.sendRequest(config, callback);
51
+ });
52
+ }
53
+ getAvailableContentStates(parameters, callback) {
54
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
55
+ const config = {
56
+ url: `/api/content/${parameters.contentId}/state/available-states`,
57
+ method: 'GET',
58
+ };
59
+ return this.client.sendRequest(config, callback);
60
+ });
61
+ }
62
+ }
63
+ exports.ContentContentState = ContentContentState;
@@ -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 ContentLabels {
6
6
  private client;
7
7
  constructor(client: Client);
@@ -7,7 +7,7 @@ class ContentLabels {
7
7
  this.client = client;
8
8
  }
9
9
  getLabelsForContent(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/content/${parameters.id}/label`,
13
13
  method: 'GET',
@@ -21,7 +21,7 @@ class ContentLabels {
21
21
  });
22
22
  }
23
23
  addLabelsToContent(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/content/${parameters.id}/label`,
27
27
  method: 'POST',
@@ -34,7 +34,7 @@ class ContentLabels {
34
34
  });
35
35
  }
36
36
  removeLabelFromContentUsingQueryParameter(parameters, callback) {
37
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
37
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
38
38
  const config = {
39
39
  url: `/api/content/${parameters.id}/label`,
40
40
  method: 'DELETE',
@@ -46,7 +46,7 @@ class ContentLabels {
46
46
  });
47
47
  }
48
48
  removeLabelFromContent(parameters, callback) {
49
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
49
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
50
50
  const config = {
51
51
  url: `/api/content/${parameters.id}/label/${parameters.label}`,
52
52
  method: 'DELETE',
@@ -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 ContentMacroBody {
6
6
  private client;
7
7
  constructor(client: Client);