@alfresco/js-api 10.2.0-30612540894 → 10.2.0-30804668708

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/esm2015/package.json +1 -1
  2. package/esm2015/src/alfrescoApi.js.map +1 -1
  3. package/esm2015/src/alfrescoApiClient.js.map +1 -1
  4. package/esm2015/src/api/activiti-rest-api/api/about.api.js.map +1 -1
  5. package/esm2015/src/api/activiti-rest-api/api/accountIntegration.api.js.map +1 -1
  6. package/esm2015/src/api/activiti-rest-api/api/adminEndpoints.api.js.map +1 -1
  7. package/esm2015/src/api/activiti-rest-api/api/adminGroups.api.js.map +1 -1
  8. package/esm2015/src/api/activiti-rest-api/api/adminTenants.api.js.map +1 -1
  9. package/esm2015/src/api/activiti-rest-api/api/adminUsers.api.js.map +1 -1
  10. package/esm2015/src/api/activiti-rest-api/api/appDefinitions.api.js.map +1 -1
  11. package/esm2015/src/api/activiti-rest-api/api/checklists.api.js.map +1 -1
  12. package/esm2015/src/api/activiti-rest-api/api/comments.api.js.map +1 -1
  13. package/esm2015/src/api/activiti-rest-api/api/content.api.js.map +1 -1
  14. package/esm2015/src/api/activiti-rest-api/api/dataSources.api.js.map +1 -1
  15. package/esm2015/src/api/activiti-rest-api/api/decisionAudits.api.js.map +1 -1
  16. package/esm2015/src/api/activiti-rest-api/api/decisionTables.api.js.map +1 -1
  17. package/esm2015/src/api/activiti-rest-api/api/endpoints.api.js.map +1 -1
  18. package/esm2015/src/api/activiti-rest-api/api/formModels.api.js.map +1 -1
  19. package/esm2015/src/api/activiti-rest-api/api/groups.api.js.map +1 -1
  20. package/esm2015/src/api/activiti-rest-api/api/iDMSync.api.js.map +1 -1
  21. package/esm2015/src/api/activiti-rest-api/api/integrationAlfrescoCloud.api.js.map +1 -1
  22. package/esm2015/src/api/activiti-rest-api/api/integrationAlfrescoOnPremise.api.js.map +1 -1
  23. package/esm2015/src/api/activiti-rest-api/api/integrationBox.api.js.map +1 -1
  24. package/esm2015/src/api/activiti-rest-api/api/integrationDrive.api.js.map +1 -1
  25. package/esm2015/src/api/activiti-rest-api/api/integrationSSO.api.js.map +1 -1
  26. package/esm2015/src/api/activiti-rest-api/api/modelJsonBpmn.api.js.map +1 -1
  27. package/esm2015/src/api/activiti-rest-api/api/models.api.js.map +1 -1
  28. package/esm2015/src/api/activiti-rest-api/api/modelsBpmn.api.js.map +1 -1
  29. package/esm2015/src/api/activiti-rest-api/api/modelsHistory.api.js.map +1 -1
  30. package/esm2015/src/api/activiti-rest-api/api/processDefinitions.api.js.map +1 -1
  31. package/esm2015/src/api/activiti-rest-api/api/processInstanceVariables.api.js.map +1 -1
  32. package/esm2015/src/api/activiti-rest-api/api/processInstances.api.js.map +1 -1
  33. package/esm2015/src/api/activiti-rest-api/api/processScopes.api.js.map +1 -1
  34. package/esm2015/src/api/activiti-rest-api/api/report.api.js.map +1 -1
  35. package/esm2015/src/api/activiti-rest-api/api/runtimeAppDefinitions.api.js.map +1 -1
  36. package/esm2015/src/api/activiti-rest-api/api/runtimeAppDeployments.api.js.map +1 -1
  37. package/esm2015/src/api/activiti-rest-api/api/scriptFiles.api.js.map +1 -1
  38. package/esm2015/src/api/activiti-rest-api/api/submittedForms.api.js.map +1 -1
  39. package/esm2015/src/api/activiti-rest-api/api/systemProperties.api.js.map +1 -1
  40. package/esm2015/src/api/activiti-rest-api/api/taskActions.api.js.map +1 -1
  41. package/esm2015/src/api/activiti-rest-api/api/taskForms.api.js.map +1 -1
  42. package/esm2015/src/api/activiti-rest-api/api/taskVariables.api.js.map +1 -1
  43. package/esm2015/src/api/activiti-rest-api/api/tasks.api.js.map +1 -1
  44. package/esm2015/src/api/activiti-rest-api/api/temporary.api.js.map +1 -1
  45. package/esm2015/src/api/activiti-rest-api/api/userFilters.api.js.map +1 -1
  46. package/esm2015/src/api/activiti-rest-api/api/userProfile.api.js.map +1 -1
  47. package/esm2015/src/api/activiti-rest-api/api/users.api.js.map +1 -1
  48. package/esm2015/src/api/activiti-rest-api/model/jsonNode.js.map +1 -1
  49. package/esm2015/src/api/activiti-rest-api/model/objectNode.js.map +1 -1
  50. package/esm2015/src/api/auth-rest-api/api/authentication.api.js.map +1 -1
  51. package/esm2015/src/api/content-custom-api/api/classes.api.js.map +1 -1
  52. package/esm2015/src/api/content-custom-api/api/content.api.js.map +1 -1
  53. package/esm2015/src/api/content-custom-api/api/webscript.api.js.map +1 -1
  54. package/esm2015/src/api/content-custom-api/model/dateAlfresco.js.map +1 -1
  55. package/esm2015/src/api/content-rest-api/api/actions.api.js.map +1 -1
  56. package/esm2015/src/api/content-rest-api/api/activities.api.js.map +1 -1
  57. package/esm2015/src/api/content-rest-api/api/audit.api.js.map +1 -1
  58. package/esm2015/src/api/content-rest-api/api/categories.api.js.map +1 -1
  59. package/esm2015/src/api/content-rest-api/api/comments.api.js.map +1 -1
  60. package/esm2015/src/api/content-rest-api/api/downloads.api.js.map +1 -1
  61. package/esm2015/src/api/content-rest-api/api/favorites.api.js.map +1 -1
  62. package/esm2015/src/api/content-rest-api/api/groups.api.js.map +1 -1
  63. package/esm2015/src/api/content-rest-api/api/networks.api.js.map +1 -1
  64. package/esm2015/src/api/content-rest-api/api/nodes.api.js.map +1 -1
  65. package/esm2015/src/api/content-rest-api/api/people.api.js.map +1 -1
  66. package/esm2015/src/api/content-rest-api/api/preferences.api.js.map +1 -1
  67. package/esm2015/src/api/content-rest-api/api/probes.api.js.map +1 -1
  68. package/esm2015/src/api/content-rest-api/api/queries.api.js.map +1 -1
  69. package/esm2015/src/api/content-rest-api/api/ratings.api.js.map +1 -1
  70. package/esm2015/src/api/content-rest-api/api/renditions.api.js.map +1 -1
  71. package/esm2015/src/api/content-rest-api/api/sharedlinks.api.js.map +1 -1
  72. package/esm2015/src/api/content-rest-api/api/sites.api.js.map +1 -1
  73. package/esm2015/src/api/content-rest-api/api/tags.api.js.map +1 -1
  74. package/esm2015/src/api/content-rest-api/api/trashcan.api.js.map +1 -1
  75. package/esm2015/src/api/content-rest-api/api/versions.api.js.map +1 -1
  76. package/esm2015/src/api/discovery-rest-api/api/discovery.api.js.map +1 -1
  77. package/esm2015/src/api/gs-classification-rest-api/api/authorityClearance.api.js.map +1 -1
  78. package/esm2015/src/api/gs-classification-rest-api/api/classificationGuides.api.js.map +1 -1
  79. package/esm2015/src/api/gs-classification-rest-api/api/classificationReasons.api.js.map +1 -1
  80. package/esm2015/src/api/gs-classification-rest-api/api/declassificationExemptions.api.js.map +1 -1
  81. package/esm2015/src/api/gs-classification-rest-api/api/defaultClassificationValues.api.js.map +1 -1
  82. package/esm2015/src/api/gs-classification-rest-api/api/nodeSecurityMarks.api.js.map +1 -1
  83. package/esm2015/src/api/gs-classification-rest-api/api/securityControlSettings.api.js.map +1 -1
  84. package/esm2015/src/api/gs-classification-rest-api/api/securityGroups.api.js.map +1 -1
  85. package/esm2015/src/api/gs-classification-rest-api/api/securityMarks.api.js.map +1 -1
  86. package/esm2015/src/api/gs-core-rest-api/api/filePlans.api.js.map +1 -1
  87. package/esm2015/src/api/gs-core-rest-api/api/files.api.js.map +1 -1
  88. package/esm2015/src/api/gs-core-rest-api/api/gsSites.api.js.map +1 -1
  89. package/esm2015/src/api/gs-core-rest-api/api/legal-hold.api.js.map +1 -1
  90. package/esm2015/src/api/gs-core-rest-api/api/recordCategories.api.js.map +1 -1
  91. package/esm2015/src/api/gs-core-rest-api/api/recordFolders.api.js.map +1 -1
  92. package/esm2015/src/api/gs-core-rest-api/api/records.api.js.map +1 -1
  93. package/esm2015/src/api/gs-core-rest-api/api/transferContainers.api.js.map +1 -1
  94. package/esm2015/src/api/gs-core-rest-api/api/transfers.api.js.map +1 -1
  95. package/esm2015/src/api/gs-core-rest-api/api/unfiledContainers.api.js.map +1 -1
  96. package/esm2015/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js.map +1 -1
  97. package/esm2015/src/api/model-rest-api/api/aspects.api.js.map +1 -1
  98. package/esm2015/src/api/model-rest-api/api/types.api.js.map +1 -1
  99. package/esm2015/src/api/search-rest-api/api/search.api.js.map +1 -1
  100. package/esm2015/src/assert.js.map +1 -1
  101. package/esm2015/src/authentication/contentAuth.js.map +1 -1
  102. package/esm2015/src/authentication/oauth2Auth.js.map +1 -1
  103. package/esm2015/src/authentication/processAuth.js.map +1 -1
  104. package/esm2015/src/contentClient.js.map +1 -1
  105. package/esm2015/src/processClient.js.map +1 -1
  106. package/esm2015/src/utils/lazy-api.js.map +1 -1
  107. package/esm2015/src/utils/param-to-string.js.map +1 -1
  108. package/package.json +1 -1
  109. package/src/alfrescoApi.js.map +1 -1
  110. package/src/alfrescoApiClient.js.map +1 -1
  111. package/src/api/activiti-rest-api/api/about.api.js.map +1 -1
  112. package/src/api/activiti-rest-api/api/accountIntegration.api.js.map +1 -1
  113. package/src/api/activiti-rest-api/api/adminEndpoints.api.js.map +1 -1
  114. package/src/api/activiti-rest-api/api/adminGroups.api.js.map +1 -1
  115. package/src/api/activiti-rest-api/api/adminTenants.api.js.map +1 -1
  116. package/src/api/activiti-rest-api/api/adminUsers.api.js.map +1 -1
  117. package/src/api/activiti-rest-api/api/appDefinitions.api.js.map +1 -1
  118. package/src/api/activiti-rest-api/api/checklists.api.js.map +1 -1
  119. package/src/api/activiti-rest-api/api/comments.api.js.map +1 -1
  120. package/src/api/activiti-rest-api/api/content.api.js.map +1 -1
  121. package/src/api/activiti-rest-api/api/dataSources.api.js.map +1 -1
  122. package/src/api/activiti-rest-api/api/decisionAudits.api.js.map +1 -1
  123. package/src/api/activiti-rest-api/api/decisionTables.api.js.map +1 -1
  124. package/src/api/activiti-rest-api/api/endpoints.api.js.map +1 -1
  125. package/src/api/activiti-rest-api/api/formModels.api.js.map +1 -1
  126. package/src/api/activiti-rest-api/api/groups.api.js.map +1 -1
  127. package/src/api/activiti-rest-api/api/iDMSync.api.js.map +1 -1
  128. package/src/api/activiti-rest-api/api/integrationAlfrescoCloud.api.js.map +1 -1
  129. package/src/api/activiti-rest-api/api/integrationAlfrescoOnPremise.api.js.map +1 -1
  130. package/src/api/activiti-rest-api/api/integrationBox.api.js.map +1 -1
  131. package/src/api/activiti-rest-api/api/integrationDrive.api.js.map +1 -1
  132. package/src/api/activiti-rest-api/api/integrationSSO.api.js.map +1 -1
  133. package/src/api/activiti-rest-api/api/modelJsonBpmn.api.js.map +1 -1
  134. package/src/api/activiti-rest-api/api/models.api.js.map +1 -1
  135. package/src/api/activiti-rest-api/api/modelsBpmn.api.js.map +1 -1
  136. package/src/api/activiti-rest-api/api/modelsHistory.api.js.map +1 -1
  137. package/src/api/activiti-rest-api/api/processDefinitions.api.js.map +1 -1
  138. package/src/api/activiti-rest-api/api/processInstanceVariables.api.js.map +1 -1
  139. package/src/api/activiti-rest-api/api/processInstances.api.js.map +1 -1
  140. package/src/api/activiti-rest-api/api/processScopes.api.js.map +1 -1
  141. package/src/api/activiti-rest-api/api/report.api.js.map +1 -1
  142. package/src/api/activiti-rest-api/api/runtimeAppDefinitions.api.js.map +1 -1
  143. package/src/api/activiti-rest-api/api/runtimeAppDeployments.api.js.map +1 -1
  144. package/src/api/activiti-rest-api/api/scriptFiles.api.js.map +1 -1
  145. package/src/api/activiti-rest-api/api/submittedForms.api.js.map +1 -1
  146. package/src/api/activiti-rest-api/api/systemProperties.api.js.map +1 -1
  147. package/src/api/activiti-rest-api/api/taskActions.api.js.map +1 -1
  148. package/src/api/activiti-rest-api/api/taskForms.api.js.map +1 -1
  149. package/src/api/activiti-rest-api/api/taskVariables.api.js.map +1 -1
  150. package/src/api/activiti-rest-api/api/tasks.api.js.map +1 -1
  151. package/src/api/activiti-rest-api/api/temporary.api.js.map +1 -1
  152. package/src/api/activiti-rest-api/api/userFilters.api.js.map +1 -1
  153. package/src/api/activiti-rest-api/api/userProfile.api.js.map +1 -1
  154. package/src/api/activiti-rest-api/api/users.api.js.map +1 -1
  155. package/src/api/activiti-rest-api/model/jsonNode.js.map +1 -1
  156. package/src/api/activiti-rest-api/model/objectNode.js.map +1 -1
  157. package/src/api/auth-rest-api/api/authentication.api.js.map +1 -1
  158. package/src/api/content-custom-api/api/classes.api.js.map +1 -1
  159. package/src/api/content-custom-api/api/content.api.js.map +1 -1
  160. package/src/api/content-custom-api/api/webscript.api.js.map +1 -1
  161. package/src/api/content-custom-api/model/dateAlfresco.js.map +1 -1
  162. package/src/api/content-rest-api/api/actions.api.js.map +1 -1
  163. package/src/api/content-rest-api/api/activities.api.js.map +1 -1
  164. package/src/api/content-rest-api/api/audit.api.js.map +1 -1
  165. package/src/api/content-rest-api/api/categories.api.js.map +1 -1
  166. package/src/api/content-rest-api/api/comments.api.js.map +1 -1
  167. package/src/api/content-rest-api/api/downloads.api.js.map +1 -1
  168. package/src/api/content-rest-api/api/favorites.api.js.map +1 -1
  169. package/src/api/content-rest-api/api/groups.api.js.map +1 -1
  170. package/src/api/content-rest-api/api/networks.api.js.map +1 -1
  171. package/src/api/content-rest-api/api/nodes.api.js.map +1 -1
  172. package/src/api/content-rest-api/api/people.api.js.map +1 -1
  173. package/src/api/content-rest-api/api/preferences.api.js.map +1 -1
  174. package/src/api/content-rest-api/api/probes.api.js.map +1 -1
  175. package/src/api/content-rest-api/api/queries.api.js.map +1 -1
  176. package/src/api/content-rest-api/api/ratings.api.js.map +1 -1
  177. package/src/api/content-rest-api/api/renditions.api.js.map +1 -1
  178. package/src/api/content-rest-api/api/sharedlinks.api.js.map +1 -1
  179. package/src/api/content-rest-api/api/sites.api.js.map +1 -1
  180. package/src/api/content-rest-api/api/tags.api.js.map +1 -1
  181. package/src/api/content-rest-api/api/trashcan.api.js.map +1 -1
  182. package/src/api/content-rest-api/api/versions.api.js.map +1 -1
  183. package/src/api/discovery-rest-api/api/discovery.api.js.map +1 -1
  184. package/src/api/gs-classification-rest-api/api/authorityClearance.api.js.map +1 -1
  185. package/src/api/gs-classification-rest-api/api/classificationGuides.api.js.map +1 -1
  186. package/src/api/gs-classification-rest-api/api/classificationReasons.api.js.map +1 -1
  187. package/src/api/gs-classification-rest-api/api/declassificationExemptions.api.js.map +1 -1
  188. package/src/api/gs-classification-rest-api/api/defaultClassificationValues.api.js.map +1 -1
  189. package/src/api/gs-classification-rest-api/api/nodeSecurityMarks.api.js.map +1 -1
  190. package/src/api/gs-classification-rest-api/api/securityControlSettings.api.js.map +1 -1
  191. package/src/api/gs-classification-rest-api/api/securityGroups.api.js.map +1 -1
  192. package/src/api/gs-classification-rest-api/api/securityMarks.api.js.map +1 -1
  193. package/src/api/gs-core-rest-api/api/filePlans.api.js.map +1 -1
  194. package/src/api/gs-core-rest-api/api/files.api.js.map +1 -1
  195. package/src/api/gs-core-rest-api/api/gsSites.api.js.map +1 -1
  196. package/src/api/gs-core-rest-api/api/legal-hold.api.js.map +1 -1
  197. package/src/api/gs-core-rest-api/api/recordCategories.api.js.map +1 -1
  198. package/src/api/gs-core-rest-api/api/recordFolders.api.js.map +1 -1
  199. package/src/api/gs-core-rest-api/api/records.api.js.map +1 -1
  200. package/src/api/gs-core-rest-api/api/transferContainers.api.js.map +1 -1
  201. package/src/api/gs-core-rest-api/api/transfers.api.js.map +1 -1
  202. package/src/api/gs-core-rest-api/api/unfiledContainers.api.js.map +1 -1
  203. package/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.js.map +1 -1
  204. package/src/api/model-rest-api/api/aspects.api.js.map +1 -1
  205. package/src/api/model-rest-api/api/types.api.js.map +1 -1
  206. package/src/api/search-rest-api/api/search.api.js.map +1 -1
  207. package/src/assert.js.map +1 -1
  208. package/src/authentication/contentAuth.js.map +1 -1
  209. package/src/authentication/oauth2Auth.js.map +1 -1
  210. package/src/authentication/processAuth.js.map +1 -1
  211. package/src/contentClient.js.map +1 -1
  212. package/src/processClient.js.map +1 -1
  213. package/src/utils/lazy-api.js.map +1 -1
  214. package/src/utils/param-to-string.js.map +1 -1
  215. package/typings/package.json +1 -1
  216. package/typings/src/alfrescoApi.d.ts +3 -0
  217. package/typings/src/alfrescoApiClient.d.ts +3 -0
  218. package/typings/src/api/activiti-rest-api/api/about.api.d.ts +1 -0
  219. package/typings/src/api/activiti-rest-api/api/accountIntegration.api.d.ts +1 -0
  220. package/typings/src/api/activiti-rest-api/api/adminEndpoints.api.d.ts +10 -0
  221. package/typings/src/api/activiti-rest-api/api/adminGroups.api.d.ts +16 -0
  222. package/typings/src/api/activiti-rest-api/api/adminTenants.api.d.ts +8 -0
  223. package/typings/src/api/activiti-rest-api/api/adminUsers.api.d.ts +5 -0
  224. package/typings/src/api/activiti-rest-api/api/appDefinitions.api.d.ts +7 -0
  225. package/typings/src/api/activiti-rest-api/api/checklists.api.d.ts +3 -0
  226. package/typings/src/api/activiti-rest-api/api/comments.api.d.ts +4 -0
  227. package/typings/src/api/activiti-rest-api/api/content.api.d.ts +11 -0
  228. package/typings/src/api/activiti-rest-api/api/dataSources.api.d.ts +1 -0
  229. package/typings/src/api/activiti-rest-api/api/decisionAudits.api.d.ts +2 -0
  230. package/typings/src/api/activiti-rest-api/api/decisionTables.api.d.ts +3 -0
  231. package/typings/src/api/activiti-rest-api/api/endpoints.api.d.ts +2 -0
  232. package/typings/src/api/activiti-rest-api/api/formModels.api.d.ts +6 -0
  233. package/typings/src/api/activiti-rest-api/api/groups.api.d.ts +2 -0
  234. package/typings/src/api/activiti-rest-api/api/iDMSync.api.d.ts +2 -0
  235. package/typings/src/api/activiti-rest-api/api/integrationAlfrescoCloud.api.d.ts +6 -0
  236. package/typings/src/api/activiti-rest-api/api/integrationAlfrescoOnPremise.api.d.ts +5 -0
  237. package/typings/src/api/activiti-rest-api/api/integrationBox.api.d.ts +7 -0
  238. package/typings/src/api/activiti-rest-api/api/integrationDrive.api.d.ts +2 -0
  239. package/typings/src/api/activiti-rest-api/api/integrationSSO.api.d.ts +1 -0
  240. package/typings/src/api/activiti-rest-api/api/modelJsonBpmn.api.d.ts +4 -0
  241. package/typings/src/api/activiti-rest-api/api/models.api.d.ts +13 -0
  242. package/typings/src/api/activiti-rest-api/api/modelsBpmn.api.d.ts +2 -0
  243. package/typings/src/api/activiti-rest-api/api/modelsHistory.api.d.ts +2 -0
  244. package/typings/src/api/activiti-rest-api/api/processDefinitions.api.d.ts +11 -0
  245. package/typings/src/api/activiti-rest-api/api/processInstanceVariables.api.d.ts +5 -0
  246. package/typings/src/api/activiti-rest-api/api/processInstances.api.d.ts +20 -0
  247. package/typings/src/api/activiti-rest-api/api/processScopes.api.d.ts +1 -0
  248. package/typings/src/api/activiti-rest-api/api/report.api.d.ts +3 -0
  249. package/typings/src/api/activiti-rest-api/api/runtimeAppDefinitions.api.d.ts +3 -0
  250. package/typings/src/api/activiti-rest-api/api/runtimeAppDeployments.api.d.ts +5 -0
  251. package/typings/src/api/activiti-rest-api/api/scriptFiles.api.d.ts +2 -0
  252. package/typings/src/api/activiti-rest-api/api/submittedForms.api.d.ts +4 -0
  253. package/typings/src/api/activiti-rest-api/api/systemProperties.api.d.ts +4 -0
  254. package/typings/src/api/activiti-rest-api/api/taskActions.api.d.ts +11 -0
  255. package/typings/src/api/activiti-rest-api/api/taskForms.api.d.ts +7 -0
  256. package/typings/src/api/activiti-rest-api/api/taskVariables.api.d.ts +6 -0
  257. package/typings/src/api/activiti-rest-api/api/tasks.api.d.ts +14 -0
  258. package/typings/src/api/activiti-rest-api/api/temporary.api.d.ts +2 -0
  259. package/typings/src/api/activiti-rest-api/api/userFilters.api.d.ts +12 -0
  260. package/typings/src/api/activiti-rest-api/api/userProfile.api.d.ts +5 -0
  261. package/typings/src/api/activiti-rest-api/api/users.api.d.ts +6 -0
  262. package/typings/src/api/auth-rest-api/api/authentication.api.d.ts +4 -0
  263. package/typings/src/api/content-custom-api/api/classes.api.d.ts +1 -0
  264. package/typings/src/api/content-custom-api/api/content.api.d.ts +8 -0
  265. package/typings/src/api/content-custom-api/api/webscript.api.d.ts +1 -0
  266. package/typings/src/api/content-custom-api/model/dateAlfresco.d.ts +3 -0
  267. package/typings/src/api/content-rest-api/api/actions.api.d.ts +4 -0
  268. package/typings/src/api/content-rest-api/api/activities.api.d.ts +1 -0
  269. package/typings/src/api/content-rest-api/api/audit.api.d.ts +8 -0
  270. package/typings/src/api/content-rest-api/api/categories.api.d.ts +8 -0
  271. package/typings/src/api/content-rest-api/api/comments.api.d.ts +4 -0
  272. package/typings/src/api/content-rest-api/api/downloads.api.d.ts +3 -0
  273. package/typings/src/api/content-rest-api/api/favorites.api.d.ts +8 -0
  274. package/typings/src/api/content-rest-api/api/groups.api.d.ts +9 -0
  275. package/typings/src/api/content-rest-api/api/networks.api.d.ts +3 -0
  276. package/typings/src/api/content-rest-api/api/nodes.api.d.ts +24 -0
  277. package/typings/src/api/content-rest-api/api/people.api.d.ts +10 -0
  278. package/typings/src/api/content-rest-api/api/preferences.api.d.ts +2 -0
  279. package/typings/src/api/content-rest-api/api/probes.api.d.ts +1 -0
  280. package/typings/src/api/content-rest-api/api/queries.api.d.ts +3 -0
  281. package/typings/src/api/content-rest-api/api/ratings.api.d.ts +4 -0
  282. package/typings/src/api/content-rest-api/api/renditions.api.d.ts +5 -0
  283. package/typings/src/api/content-rest-api/api/sharedlinks.api.d.ts +9 -0
  284. package/typings/src/api/content-rest-api/api/sites.api.d.ts +28 -0
  285. package/typings/src/api/content-rest-api/api/tags.api.d.ts +10 -0
  286. package/typings/src/api/content-rest-api/api/trashcan.api.d.ts +11 -0
  287. package/typings/src/api/content-rest-api/api/versions.api.d.ts +11 -0
  288. package/typings/src/api/discovery-rest-api/api/discovery.api.d.ts +1 -0
  289. package/typings/src/api/gs-classification-rest-api/api/authorityClearance.api.d.ts +2 -0
  290. package/typings/src/api/gs-classification-rest-api/api/classificationGuides.api.d.ts +13 -0
  291. package/typings/src/api/gs-classification-rest-api/api/classificationReasons.api.d.ts +5 -0
  292. package/typings/src/api/gs-classification-rest-api/api/declassificationExemptions.api.d.ts +5 -0
  293. package/typings/src/api/gs-classification-rest-api/api/defaultClassificationValues.api.d.ts +1 -0
  294. package/typings/src/api/gs-classification-rest-api/api/nodeSecurityMarks.api.d.ts +2 -0
  295. package/typings/src/api/gs-classification-rest-api/api/securityControlSettings.api.d.ts +3 -0
  296. package/typings/src/api/gs-classification-rest-api/api/securityGroups.api.d.ts +6 -0
  297. package/typings/src/api/gs-classification-rest-api/api/securityMarks.api.d.ts +6 -0
  298. package/typings/src/api/gs-core-rest-api/api/filePlans.api.d.ts +5 -0
  299. package/typings/src/api/gs-core-rest-api/api/files.api.d.ts +2 -0
  300. package/typings/src/api/gs-core-rest-api/api/gsSites.api.d.ts +4 -0
  301. package/typings/src/api/gs-core-rest-api/api/legal-hold.api.d.ts +9 -0
  302. package/typings/src/api/gs-core-rest-api/api/recordCategories.api.d.ts +5 -0
  303. package/typings/src/api/gs-core-rest-api/api/recordFolders.api.d.ts +5 -0
  304. package/typings/src/api/gs-core-rest-api/api/records.api.d.ts +7 -0
  305. package/typings/src/api/gs-core-rest-api/api/transferContainers.api.d.ts +3 -0
  306. package/typings/src/api/gs-core-rest-api/api/transfers.api.d.ts +3 -0
  307. package/typings/src/api/gs-core-rest-api/api/unfiledContainers.api.d.ts +5 -0
  308. package/typings/src/api/gs-core-rest-api/api/unfiledRecordFolders.api.d.ts +6 -0
  309. package/typings/src/api/model-rest-api/api/aspects.api.d.ts +2 -0
  310. package/typings/src/api/model-rest-api/api/types.api.d.ts +2 -0
  311. package/typings/src/api/search-rest-api/api/search.api.d.ts +2 -0
  312. package/typings/src/assert.d.ts +1 -0
  313. package/typings/src/authentication/contentAuth.d.ts +6 -0
  314. package/typings/src/authentication/oauth2Auth.d.ts +5 -0
  315. package/typings/src/authentication/processAuth.d.ts +6 -0
  316. package/typings/src/contentClient.d.ts +1 -0
  317. package/typings/src/processClient.d.ts +1 -0
  318. package/typings/src/utils/lazy-api.d.ts +1 -0
  319. package/typings/src/utils/param-to-string.d.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"sharedlinks.api.js","sourceRoot":"","sources":["sharedlinks.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4DAAyD;AACzD,8DAA2D;AAG3D,8DAA2D;AAC3D,gEAA6D;A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;YAClB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,eAAe;YACrB,WAAW;YACX,UAAU,EAAE,mCAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ;AAvSD,wCAuSC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RenditionEntry } from '../model/renditionEntry';\nimport { RenditionPaging } from '../model/renditionPaging';\nimport { SharedLinkBodyCreate } from '../model/sharedLinkBodyCreate';\nimport { SharedLinkBodyEmail } from '../model/sharedLinkBodyEmail';\nimport { SharedLinkEntry } from '../model/sharedLinkEntry';\nimport { SharedLinkPaging } from '../model/sharedLinkPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Sharedlinks service.\n */\nexport class SharedlinksApi extends BaseApi {\n /**\n * Create a shared link to a file\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param sharedLinkBodyCreate The nodeId to create a shared link for.\n * @param opts Optional parameters\n * @returns Promise<SharedLinkEntry>\n */\n createSharedLink(sharedLinkBodyCreate: SharedLinkBodyCreate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<SharedLinkEntry> {\n throwIfNotDefined(sharedLinkBodyCreate, 'sharedLinkBodyCreate');\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/shared-links',\n queryParams,\n bodyParam: sharedLinkBodyCreate,\n returnType: SharedLinkEntry\n });\n }\n\n /**\n * Deletes a shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param sharedId The identifier of a shared link to a file.\n * @returns Promise<{}>\n */\n deleteSharedLink(sharedId: string): Promise<void> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n return this.delete({\n path: '/shared-links/{sharedId}',\n pathParams\n });\n }\n\n /**\n * Email shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param sharedId The identifier of a shared link to a file.\n * @param sharedLinkBodyEmail The shared link email to send.\n * @returns Promise<{}>\n */\n emailSharedLink(sharedId: string, sharedLinkBodyEmail: SharedLinkBodyEmail): Promise<any> {\n throwIfNotDefined(sharedId, 'sharedId');\n throwIfNotDefined(sharedLinkBodyEmail, 'sharedLinkBodyEmail');\n\n const pathParams = {\n sharedId\n };\n\n return this.post({\n path: '/shared-links/{sharedId}/email',\n pathParams,\n bodyParam: sharedLinkBodyEmail\n });\n }\n\n /**\n * Get a shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n * @param sharedId The identifier of a shared link to a file.\n * @param opts Optional parameters\n * @returns Promise<SharedLinkEntry>\n */\n getSharedLink(sharedId: string, opts?: ContentFieldsQuery): Promise<SharedLinkEntry> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/shared-links/{sharedId}',\n pathParams,\n queryParams,\n returnType: SharedLinkEntry\n });\n }\n\n /**\n * Get shared link content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n * @param sharedId The identifier of a shared link to a file.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and the attachment will be returned in the response.\n * (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getSharedLinkContent(\n sharedId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts: ['application/octet-stream'],\n returnType: 'blob'\n });\n }\n\n /**\n * Get shared link rendition information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * This API method returns rendition information where the rendition status is CREATED,\n * which means the rendition is available to view/download.\n *\n * **Note:** No authentication is required to call this endpoint.\n * @param sharedId The identifier of a shared link to a file.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getSharedLinkRendition(sharedId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(sharedId, 'sharedId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n sharedId,\n renditionId\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get shared link rendition content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n * @param sharedId The identifier of a shared link to a file.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getSharedLinkRenditionContent(\n sharedId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(sharedId, 'sharedId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n sharedId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts: ['application/octet-stream'],\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions for a shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of the rendition information for the file with shared link identifier **sharedId**.\n * This API method returns rendition information, including the rendition id, for each rendition\n * where the rendition status is CREATED, which means the rendition is available to view/download.\n *\n * **Note:** No authentication is required to call this endpoint.\n * @param sharedId The identifier of a shared link to a file.\n * @returns Promise<RenditionPaging>\n */\n listSharedLinkRenditions(sharedId: string): Promise<RenditionPaging> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/renditions',\n pathParams,\n returnType: RenditionPaging\n });\n }\n\n /**\n * List shared links\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Get a list of links that the current user has read permission on source node.\n * The list is ordered in descending modified order.\n *\n * **Note:** The list of links is eventually consistent so newly created shared links may not appear immediately.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by \\\"sharedByUser\\\" `userId` of person who shared the link (can also use -me-)\n * where=(sharedByUser='jbloggs')\n * where=(sharedByUser='-me-')\n * @returns Promise<SharedLinkPaging>\n */\n listSharedLinks(\n opts?: {\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<SharedLinkPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/shared-links',\n queryParams,\n returnType: SharedLinkPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"sharedlinks.api.js","sourceRoot":"","sources":["sharedlinks.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4DAAyD;AACzD,8DAA2D;AAG3D,8DAA2D;AAC3D,gEAA6D;AAC7D,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAMlE,MAAa,cAAe,SAAQ,kBAAO;IAUvC,gBAAgB,CAAC,oBAA0C,EAAE,IAA+C;QACxG,IAAA,0BAAiB,EAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;QAEhE,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,E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CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,eAAe;YACrB,WAAW;YACX,UAAU,EAAE,mCAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ;AAhTD,wCAgTC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RenditionEntry } from '../model/renditionEntry';\nimport { RenditionPaging } from '../model/renditionPaging';\nimport { SharedLinkBodyCreate } from '../model/sharedLinkBodyCreate';\nimport { SharedLinkBodyEmail } from '../model/sharedLinkBodyEmail';\nimport { SharedLinkEntry } from '../model/sharedLinkEntry';\nimport { SharedLinkPaging } from '../model/sharedLinkPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Sharedlinks service.\n */\nexport class SharedlinksApi extends BaseApi {\n /**\n * Create a shared link to a file\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param sharedLinkBodyCreate The nodeId to create a shared link for.\n * @param opts Optional parameters\n * @returns Promise<SharedLinkEntry>\n */\n createSharedLink(sharedLinkBodyCreate: SharedLinkBodyCreate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<SharedLinkEntry> {\n throwIfNotDefined(sharedLinkBodyCreate, 'sharedLinkBodyCreate');\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/shared-links',\n queryParams,\n bodyParam: sharedLinkBodyCreate,\n returnType: SharedLinkEntry\n });\n }\n\n /**\n * Deletes a shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param sharedId The identifier of a shared link to a file.\n * @returns Promise<{}>\n */\n deleteSharedLink(sharedId: string): Promise<void> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n return this.delete({\n path: '/shared-links/{sharedId}',\n pathParams\n });\n }\n\n /**\n * Email shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param sharedId The identifier of a shared link to a file.\n * @param sharedLinkBodyEmail The shared link email to send.\n * @returns Promise<{}>\n */\n emailSharedLink(sharedId: string, sharedLinkBodyEmail: SharedLinkBodyEmail): Promise<any> {\n throwIfNotDefined(sharedId, 'sharedId');\n throwIfNotDefined(sharedLinkBodyEmail, 'sharedLinkBodyEmail');\n\n const pathParams = {\n sharedId\n };\n\n return this.post({\n path: '/shared-links/{sharedId}/email',\n pathParams,\n bodyParam: sharedLinkBodyEmail\n });\n }\n\n /**\n * Get a shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n *\n * @param sharedId The identifier of a shared link to a file.\n * @param opts Optional parameters\n * @returns Promise<SharedLinkEntry>\n */\n getSharedLink(sharedId: string, opts?: ContentFieldsQuery): Promise<SharedLinkEntry> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/shared-links/{sharedId}',\n pathParams,\n queryParams,\n returnType: SharedLinkEntry\n });\n }\n\n /**\n * Get shared link content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n *\n * @param sharedId The identifier of a shared link to a file.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and the attachment will be returned in the response.\n * (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getSharedLinkContent(\n sharedId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts: ['application/octet-stream'],\n returnType: 'blob'\n });\n }\n\n /**\n * Get shared link rendition information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * This API method returns rendition information where the rendition status is CREATED,\n * which means the rendition is available to view/download.\n *\n * **Note:** No authentication is required to call this endpoint.\n *\n * @param sharedId The identifier of a shared link to a file.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getSharedLinkRendition(sharedId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(sharedId, 'sharedId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n sharedId,\n renditionId\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get shared link rendition content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n *\n * @param sharedId The identifier of a shared link to a file.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getSharedLinkRenditionContent(\n sharedId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(sharedId, 'sharedId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n sharedId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts: ['application/octet-stream'],\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions for a shared link\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of the rendition information for the file with shared link identifier **sharedId**.\n * This API method returns rendition information, including the rendition id, for each rendition\n * where the rendition status is CREATED, which means the rendition is available to view/download.\n *\n * **Note:** No authentication is required to call this endpoint.\n *\n * @param sharedId The identifier of a shared link to a file.\n * @returns Promise<RenditionPaging>\n */\n listSharedLinkRenditions(sharedId: string): Promise<RenditionPaging> {\n throwIfNotDefined(sharedId, 'sharedId');\n\n const pathParams = {\n sharedId\n };\n\n return this.get({\n path: '/shared-links/{sharedId}/renditions',\n pathParams,\n returnType: RenditionPaging\n });\n }\n\n /**\n * List shared links\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Get a list of links that the current user has read permission on source node.\n * The list is ordered in descending modified order.\n *\n * **Note:** The list of links is eventually consistent so newly created shared links may not appear immediately.\n *\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by \\\"sharedByUser\\\" `userId` of person who shared the link (can also use -me-)\n * where=(sharedByUser='jbloggs')\n * where=(sharedByUser='-me-')\n * @returns Promise<SharedLinkPaging>\n */\n listSharedLinks(\n opts?: {\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<SharedLinkPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/shared-links',\n queryParams,\n returnType: SharedLinkPaging\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sites.api.js","sourceRoot":"","sources":["sites.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAoBkB;AAClB,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAMlE,MAAa,QAAS,SAAQ,kBAAO;IASjC,4BAA4B,CAAC,MAAc,EAAE,SAAiB,EAAE,IAA2C;QACvG,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,0BAA0B,CAAC;QAElD,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,8DAA8D;YACpE,UAAU;YACV,SAAS,EAAE,QAAQ;SACtB,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D,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEtC,MAAM,UAAU,GAAG;YACf,MAAM;YACN,OAAO;SACV,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,yCAAyC;YAC/C,UAAU;SACb,CAAC,CAAC;IACP,CAAC;CACJ;AAz6BD,4BAy6BC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n SiteBodyCreate,\n SiteBodyUpdate,\n SiteContainerEntry,\n SiteContainerPaging,\n SiteEntry,\n SiteGroupEntry,\n SiteGroupPaging,\n SiteMemberEntry,\n SiteMemberPaging,\n SiteMembershipBodyCreate,\n SiteMembershipBodyUpdate,\n SiteMembershipRequestBodyCreate,\n SiteMembershipRequestBodyUpdate,\n SiteMembershipRequestEntry,\n SiteMembershipRequestPaging,\n SiteMembershipRequestWithPersonPaging,\n SitePaging,\n SiteRoleEntry,\n SiteRolePaging\n} from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentPagingQuery } from './types';\n\n/**\n * Sites service.\n */\nexport class SitesApi extends BaseApi {\n /**\n * Approve a site membership request\n * @param siteId The identifier of a site.\n * @param inviteeId The invitee username.\n * @param opts Optional parameters\n * @param opts.siteMembershipApprovalBody Accepting a request to join, optionally, allows assignment of a role to the user.\n * @returns Promise<{}>\n */\n approveSiteMembershipRequest(siteId: string, inviteeId: string, opts?: { siteMembershipApprovalBody?: any }): Promise<any> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(inviteeId, 'inviteeId');\n\n const postBody = opts?.siteMembershipApprovalBody;\n\n const pathParams = {\n siteId,\n inviteeId\n };\n\n return this.post({\n path: '/sites/{siteId}/site-membership-requests/{inviteeId}/approve',\n pathParams,\n bodyParam: postBody\n });\n }\n\n /**\n * Create a site\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param siteBodyCreate The site details\n * @param opts Optional parameters\n * @param opts.skipConfiguration Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created. (default to false)\n * @param opts.skipAddToFavorites Flag to indicate whether the site should not be added to the user's site favorites. (default to false)\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<SiteEntry>\n */\n createSite(\n siteBodyCreate: SiteBodyCreate,\n opts?: { skipConfiguration?: boolean; skipAddToFavorites?: boolean; fields?: string[] }\n ): Promise<SiteEntry> {\n throwIfNotDefined(siteBodyCreate, 'siteBodyCreate');\n opts = opts || {};\n\n const queryParams = {\n skipConfiguration: opts?.skipConfiguration,\n skipAddToFavorites: opts?.skipAddToFavorites,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/sites',\n queryParams,\n bodyParam: siteBodyCreate,\n returnType: SiteEntry\n });\n }\n\n /**\n * Create a site membership\n * @param siteId The identifier of a site.\n * @param siteMembershipBodyCreate The person to add and their role\n * @param opts Optional parameters\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual\n * entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<SiteMemberEntry>\n */\n createSiteMembership(siteId: string, siteMembershipBodyCreate: SiteMembershipBodyCreate, opts?: { fields?: string[] }): Promise<SiteMemberEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteMembershipBodyCreate, 'siteMembershipBodyCreate');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/sites/{siteId}/members',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyCreate,\n returnType: SiteMemberEntry\n });\n }\n\n /**\n * Create a site membership request\n * @param personId The identifier of a person.\n * @param siteMembershipRequestBodyCreate Site membership request details\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestEntry>\n */\n createSiteMembershipRequestForPerson(\n personId: string,\n siteMembershipRequestBodyCreate: SiteMembershipRequestBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<SiteMembershipRequestEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteMembershipRequestBodyCreate, 'siteMembershipRequestBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/site-membership-requests',\n pathParams,\n queryParams,\n bodyParam: siteMembershipRequestBodyCreate,\n returnType: SiteMembershipRequestEntry\n });\n }\n\n /**\n * Delete a site\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @param opts.permanent Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan. (default to false)\n * @returns Promise<{}>\n */\n deleteSite(siteId: string, opts?: { permanent?: boolean }): Promise<void> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n permanent: opts?.permanent\n };\n\n return this.delete({\n path: '/sites/{siteId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Delete a site membership\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param siteId The identifier of a site.\n * @param personId The identifier of a person.\n * @returns Promise<{}>\n */\n deleteSiteMembership(siteId: string, personId: string): Promise<void> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n siteId,\n personId\n };\n\n return this.delete({\n path: '/sites/{siteId}/members/{personId}',\n pathParams\n });\n }\n\n /**\n * Delete a site membership\n *\n * Deletes person **personId** as a member of site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<{}>\n */\n deleteSiteMembershipForPerson(personId: string, siteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.delete({\n path: '/people/{personId}/sites/{siteId}',\n pathParams\n });\n }\n\n /**\n * Delete a site membership request\n *\n * Deletes the site membership request to site **siteId** for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<{}>\n */\n deleteSiteMembershipRequestForPerson(personId: string, siteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.delete({\n path: '/people/{personId}/site-membership-requests/{siteId}',\n pathParams\n });\n }\n\n /**\n * Get a site\n *\n * Gets information for site **siteId**.\n *\n * You can use the **relations** parameter to include one or more related\n * entities in a single response and so reduce network traffic.\n *\n * The entity types in Alfresco are organized in a tree structure.\n * The **sites** entity has two children, **containers** and **members**.\n * The following relations parameter returns all the container and member\n * objects related to the site **siteId**:\n *\n * containers,members\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @param opts.relations Use the relations parameter to include one or more related entities in a single response.\n * @returns Promise<SiteEntry>\n */\n getSite(siteId: string, opts?: { relations?: string[] } & ContentFieldsQuery): Promise<SiteEntry> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n relations: buildCollectionParam(opts?.relations, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteEntry\n });\n }\n\n /**\n * Get a site container\n *\n * Gets information on the container **containerId** in site **siteId**.\n * @param siteId The identifier of a site.\n * @param containerId The unique identifier of a site container.\n * @param opts Optional parameters\n * @returns Promise<SiteContainerEntry>\n */\n getSiteContainer(siteId: string, containerId: string, opts?: ContentFieldsQuery): Promise<SiteContainerEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(containerId, 'containerId');\n\n const pathParams = {\n siteId,\n containerId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/containers/{containerId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Get a site membership\n *\n * Gets site membership information for person **personId** on site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param siteId The identifier of a site.\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @returns Promise<SiteMemberEntry>\n */\n getSiteMembership(siteId: string, personId: string, opts?: ContentFieldsQuery): Promise<SiteMemberEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n siteId,\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/members/{personId}',\n pathParams,\n queryParams,\n returnType: SiteMemberEntry\n });\n }\n\n /**\n * Get a site membership\n *\n * Gets site membership information for person **personId** on site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<SiteRoleEntry>\n */\n getSiteMembershipForPerson(personId: string, siteId: string): Promise<SiteRoleEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.get({\n path: '/people/{personId}/sites/{siteId}',\n pathParams,\n returnType: SiteRoleEntry\n });\n }\n\n /**\n * Get a site membership request\n *\n * Gets the site membership request for site **siteId** for person **personId**, if one exists.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestEntry>\n */\n getSiteMembershipRequestForPerson(personId: string, siteId: string, opts?: ContentFieldsQuery): Promise<SiteMembershipRequestEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/site-membership-requests/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteMembershipRequestEntry\n });\n }\n\n /**\n * Get site membership requests\n *\n * You can use the **where** parameter to filter the returned site membership requests by **siteId**. For example:\n *\n * (siteId=mySite)\n *\n * The **where** parameter can also be used to filter by ***personId***. For example:\n *\n * where=(personId=person)\n *\n * This may be combined with the siteId filter, as shown below:\n *\n * where=(siteId=mySite AND personId=person))\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<SiteMembershipRequestWithPersonPaging>\n */\n getSiteMembershipRequests(opts?: { where?: string } & ContentPagingQuery & ContentFieldsQuery): Promise<SiteMembershipRequestWithPersonPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/site-membership-requests',\n queryParams,\n returnType: SiteMembershipRequestWithPersonPaging\n });\n }\n\n /**\n * List site containers\n *\n * Gets a list of containers for the site **siteId**.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteContainerPaging>\n */\n listSiteContainers(siteId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SiteContainerPaging> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/containers',\n pathParams,\n queryParams,\n returnType: SiteContainerPaging\n });\n }\n\n /**\n * List site membership requests\n *\n * Gets a list of the current site membership requests for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestPaging>\n */\n listSiteMembershipRequestsForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SiteMembershipRequestPaging> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/site-membership-requests',\n pathParams,\n queryParams,\n returnType: SiteMembershipRequestPaging\n });\n }\n\n /**\n * List site memberships\n *\n * Gets a list of site memberships for site **siteId**.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteMemberPaging>\n */\n listSiteMemberships(siteId: string, opts?: { where?: string } & ContentPagingQuery & ContentFieldsQuery): Promise<SiteMemberPaging> {\n throwIfNotDefined(siteId, 'siteId');\n\n opts = opts || {};\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/members',\n pathParams,\n queryParams,\n returnType: SiteMemberPaging\n });\n }\n\n /**\n * List site memberships\n *\n * Gets a list of site membership information for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**.\n *\n * Example to filter by **visibility**, use any one of:\n * - (visibility='PRIVATE')\n * - (visibility='PUBLIC')\n * - (visibility='MODERATED')\n *\n * Example to filter by site **preset**:\n *\n * (preset='site-dashboard')\n *\n * The default sort order for the returned list is for sites to be sorted by ascending title.\n * You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter:\n * - id\n * - title\n * - role\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.relations Use the relations parameter to include one or more related entities in a single response.\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<SiteRolePaging>\n */\n listSiteMembershipsForPerson(\n personId: string,\n opts?: { where?: string; orderBy?: string[]; relations?: string[] } & ContentPagingQuery & ContentFieldsQuery\n ): Promise<SiteRolePaging> {\n throwIfNotDefined(personId, 'personId');\n opts = opts || {};\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n relations: buildCollectionParam(opts?.relations, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv'),\n where: opts?.where\n };\n\n return this.get({\n path: '/people/{personId}/sites',\n pathParams,\n queryParams,\n returnType: SiteRolePaging\n });\n }\n\n /**\n * List sites\n *\n * Gets a list of sites in this repository.\n *\n * You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**.\n *\n * Example to filter by **visibility**, use any one of:\n *\n * (visibility='PRIVATE')\n * (visibility='PUBLIC')\n * (visibility='MODERATED')\n *\n * Example to filter by site **preset**:\n *\n * (preset='site-dashboard')\n *\n * The default sort order for the returned list is for sites to be sorted by ascending title.\n * You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter:\n * id\n * title\n * description\n *\n * You can use the **relations** parameter to include one or more related\n * entities in a single response and so reduce network traffic.\n *\n * The entity types in Alfresco are organized in a tree structure.\n * The **sites** entity has two children, **containers** and **members**.\n * The following relations parameter returns all the container and member\n * objects related to each site:\n *\n * containers,members\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.relations Use the relations parameter to include one or more related entities in a single response.\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<SitePaging>\n */\n listSites(\n opts?: {\n orderBy?: string[];\n relations?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentFieldsQuery\n ): Promise<SitePaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n relations: buildCollectionParam(opts?.relations, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv'),\n where: opts?.where\n };\n\n return this.get({\n path: '/sites',\n queryParams,\n returnType: SitePaging\n });\n }\n\n /**\n * Reject a site membership request\n * @param siteId The identifier of a site.\n * @param inviteeId The invitee username.\n * @param opts Optional parameters\n * @param opts.siteMembershipRejectionBody Rejecting a request to join, optionally, allows the inclusion of comment.\n * @returns Promise<{}>\n */\n rejectSiteMembershipRequest(siteId: string, inviteeId: string, opts?: { siteMembershipRejectionBody?: any }): Promise<any> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(inviteeId, 'inviteeId');\n\n const postBody = opts?.siteMembershipRejectionBody;\n\n const pathParams = {\n siteId,\n inviteeId\n };\n\n return this.post({\n path: '/sites/{siteId}/site-membership-requests/{inviteeId}/reject',\n pathParams,\n bodyParam: postBody\n });\n }\n\n /**\n * Update a site\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Update the details for the given site **siteId**. Site Manager or otherwise a\n * (site) admin can update title, description or visibility.\n *\n * Note: the id of a site cannot be updated once the site has been created.\n * @param siteId The identifier of a site.\n * @param siteBodyUpdate The site information to update.\n * @param opts Optional parameters\n * @returns Promise<SiteEntry>\n */\n updateSite(siteId: string, siteBodyUpdate: SiteBodyUpdate, opts?: ContentFieldsQuery): Promise<SiteEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteBodyUpdate, 'siteBodyUpdate');\n\n opts = opts || {};\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/sites/{siteId}',\n pathParams,\n queryParams,\n bodyParam: siteBodyUpdate,\n returnType: SiteEntry\n });\n }\n\n /**\n * Update a site membership\n *\n * Update the membership of person **personId** in site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * You can set the **role** to one of four types:\n * - SiteConsumer\n * - SiteCollaborator\n * - SiteContributor\n * - SiteManager\n * @param siteId The identifier of a site.\n * @param personId The identifier of a person.\n * @param siteMembershipBodyUpdate The persons new role\n * @param opts Optional parameters\n * @returns Promise<SiteMemberEntry>\n */\n updateSiteMembership(\n siteId: string,\n personId: string,\n siteMembershipBodyUpdate: SiteMembershipBodyUpdate,\n opts?: ContentFieldsQuery\n ): Promise<SiteMemberEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteMembershipBodyUpdate, 'siteMembershipBodyUpdate');\n\n const pathParams = {\n siteId,\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/sites/{siteId}/members/{personId}',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyUpdate,\n returnType: SiteMemberEntry\n });\n }\n\n /**\n * Update a site membership request\n *\n * Updates the message for the site membership request to site **siteId** for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @param siteMembershipRequestBodyUpdate The new message to display\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestEntry>\n */\n updateSiteMembershipRequestForPerson(\n personId: string,\n siteId: string,\n siteMembershipRequestBodyUpdate: SiteMembershipRequestBodyUpdate,\n opts?: ContentFieldsQuery\n ): Promise<SiteMembershipRequestEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteMembershipRequestBodyUpdate, 'siteMembershipRequestBodyUpdate');\n\n const pathParams = {\n personId,\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/people/{personId}/site-membership-requests/{siteId}',\n pathParams,\n queryParams,\n bodyParam: siteMembershipRequestBodyUpdate,\n returnType: SiteMembershipRequestEntry\n });\n }\n\n /**\n * Create a site membership for group\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * You can set the **role** to one of four types:\n * - SiteConsumer\n * - SiteCollaborator\n * - SiteContributor\n * - SiteManager\n * @param siteId The identifier of a site.\n * @param siteMembershipBodyCreate The group to add and it role\n * @param opts Optional parameters\n * @returns Promise<SiteGroupEntry>\n */\n createSiteGroupMembership(\n siteId: string,\n siteMembershipBodyCreate: SiteMembershipBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<SiteGroupEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteMembershipBodyCreate, 'siteMembershipBodyCreate');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/sites/{siteId}/group-members',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyCreate,\n returnType: SiteGroupEntry\n });\n }\n\n /**\n * List group membership for site\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteGroupPaging>\n */\n listSiteGroups(siteId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SiteGroupPaging> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/group-members',\n pathParams,\n queryParams,\n returnType: SiteGroupPaging\n });\n }\n\n /**\n * Get information about site membership of group\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * Gets site membership information for group **groupId** on site **siteId**.\n * @param siteId The identifier of a site.\n * @param groupId The authorityId of a group.\n * @param opts Optional parameters\n * @returns Promise<SiteGroupEntry>\n */\n getSiteGroupMembership(siteId: string, groupId: string, opts?: ContentFieldsQuery): Promise<SiteGroupEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n siteId,\n groupId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/group-members/{groupId}',\n pathParams,\n queryParams,\n returnType: SiteGroupEntry\n });\n }\n\n /**\n * Update site membership of group\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * You can set the **role** to one of four types:\n * - SiteConsumer\n * - SiteCollaborator\n * - SiteContributor\n * - SiteManager\n * @param siteId The identifier of a site.\n * @param groupId The authorityId of a group.\n * @param siteMembershipBodyUpdate The group new role\n * @param opts Optional parameters\n * @returns Promise<SiteGroupEntry>\n */\n updateSiteGroupMembership(\n siteId: string,\n groupId: string,\n siteMembershipBodyUpdate: SiteMembershipBodyUpdate,\n opts?: ContentFieldsQuery\n ): Promise<SiteGroupEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(siteMembershipBodyUpdate, 'siteMembershipBodyUpdate');\n\n const pathParams = {\n siteId,\n groupId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/sites/{siteId}/group-members/{groupId}',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyUpdate,\n returnType: SiteGroupEntry\n });\n }\n\n /**\n * Delete a group membership for site\n * @param siteId The identifier of a site.\n * @param groupId The authorityId of a group.\n * @returns Promise<{}>\n */\n deleteSiteGroupMembership(siteId: string, groupId: string): Promise<void> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n siteId,\n groupId\n };\n\n return this.delete({\n path: '/sites/{siteId}/group-members/{groupId}',\n pathParams\n });\n }\n}\n"]}
1
+ {"version":3,"file":"sites.api.js","sourceRoot":"","sources":["sites.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAoBkB;AAClB,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAMlE,MAAa,QAAS,SAAQ,kBAAO;IAUjC,4BAA4B,CAAC,MAAc,EAAE,SAAiB,EAAE,IAA2C;QACvG,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,QAAQ,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,0BAA0B,CAAC;QAElD,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,8DAA8D;YACpE,UAAU;YACV,SAAS,EAAE,QAAQ;SACtB,CAAC,CAAC;IACP,CAAC;IAkB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M,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAEtC,MAAM,UAAU,GAAG;YACf,MAAM;YACN,OAAO;SACV,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,yCAAyC;YAC/C,UAAU;SACb,CAAC,CAAC;IACP,CAAC;CACJ;AAr8BD,4BAq8BC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n SiteBodyCreate,\n SiteBodyUpdate,\n SiteContainerEntry,\n SiteContainerPaging,\n SiteEntry,\n SiteGroupEntry,\n SiteGroupPaging,\n SiteMemberEntry,\n SiteMemberPaging,\n SiteMembershipBodyCreate,\n SiteMembershipBodyUpdate,\n SiteMembershipRequestBodyCreate,\n SiteMembershipRequestBodyUpdate,\n SiteMembershipRequestEntry,\n SiteMembershipRequestPaging,\n SiteMembershipRequestWithPersonPaging,\n SitePaging,\n SiteRoleEntry,\n SiteRolePaging\n} from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentPagingQuery } from './types';\n\n/**\n * Sites service.\n */\nexport class SitesApi extends BaseApi {\n /**\n * Approve a site membership request\n *\n * @param siteId The identifier of a site.\n * @param inviteeId The invitee username.\n * @param opts Optional parameters\n * @param opts.siteMembershipApprovalBody Accepting a request to join, optionally, allows assignment of a role to the user.\n * @returns Promise<{}>\n */\n approveSiteMembershipRequest(siteId: string, inviteeId: string, opts?: { siteMembershipApprovalBody?: any }): Promise<any> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(inviteeId, 'inviteeId');\n\n const postBody = opts?.siteMembershipApprovalBody;\n\n const pathParams = {\n siteId,\n inviteeId\n };\n\n return this.post({\n path: '/sites/{siteId}/site-membership-requests/{inviteeId}/approve',\n pathParams,\n bodyParam: postBody\n });\n }\n\n /**\n * Create a site\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param siteBodyCreate The site details\n * @param opts Optional parameters\n * @param opts.skipConfiguration Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created. (default to false)\n * @param opts.skipAddToFavorites Flag to indicate whether the site should not be added to the user's site favorites. (default to false)\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth.\n * The list applies to a returned individual entity or entries within a collection.\n * If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<SiteEntry>\n */\n createSite(\n siteBodyCreate: SiteBodyCreate,\n opts?: { skipConfiguration?: boolean; skipAddToFavorites?: boolean; fields?: string[] }\n ): Promise<SiteEntry> {\n throwIfNotDefined(siteBodyCreate, 'siteBodyCreate');\n opts = opts || {};\n\n const queryParams = {\n skipConfiguration: opts?.skipConfiguration,\n skipAddToFavorites: opts?.skipAddToFavorites,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/sites',\n queryParams,\n bodyParam: siteBodyCreate,\n returnType: SiteEntry\n });\n }\n\n /**\n * Create a site membership\n *\n * @param siteId The identifier of a site.\n * @param siteMembershipBodyCreate The person to add and their role\n * @param opts Optional parameters\n * @param opts.fields A list of field names. You can use this parameter to restrict the fields\n * returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual\n * entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n * @returns Promise<SiteMemberEntry>\n */\n createSiteMembership(siteId: string, siteMembershipBodyCreate: SiteMembershipBodyCreate, opts?: { fields?: string[] }): Promise<SiteMemberEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteMembershipBodyCreate, 'siteMembershipBodyCreate');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/sites/{siteId}/members',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyCreate,\n returnType: SiteMemberEntry\n });\n }\n\n /**\n * Create a site membership request\n *\n * @param personId The identifier of a person.\n * @param siteMembershipRequestBodyCreate Site membership request details\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestEntry>\n */\n createSiteMembershipRequestForPerson(\n personId: string,\n siteMembershipRequestBodyCreate: SiteMembershipRequestBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<SiteMembershipRequestEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteMembershipRequestBodyCreate, 'siteMembershipRequestBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/site-membership-requests',\n pathParams,\n queryParams,\n bodyParam: siteMembershipRequestBodyCreate,\n returnType: SiteMembershipRequestEntry\n });\n }\n\n /**\n * Delete a site\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @param opts.permanent Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan. (default to false)\n * @returns Promise<{}>\n */\n deleteSite(siteId: string, opts?: { permanent?: boolean }): Promise<void> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n permanent: opts?.permanent\n };\n\n return this.delete({\n path: '/sites/{siteId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Delete a site membership\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param siteId The identifier of a site.\n * @param personId The identifier of a person.\n * @returns Promise<{}>\n */\n deleteSiteMembership(siteId: string, personId: string): Promise<void> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n siteId,\n personId\n };\n\n return this.delete({\n path: '/sites/{siteId}/members/{personId}',\n pathParams\n });\n }\n\n /**\n * Delete a site membership\n *\n * Deletes person **personId** as a member of site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<{}>\n */\n deleteSiteMembershipForPerson(personId: string, siteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.delete({\n path: '/people/{personId}/sites/{siteId}',\n pathParams\n });\n }\n\n /**\n * Delete a site membership request\n *\n * Deletes the site membership request to site **siteId** for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<{}>\n */\n deleteSiteMembershipRequestForPerson(personId: string, siteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.delete({\n path: '/people/{personId}/site-membership-requests/{siteId}',\n pathParams\n });\n }\n\n /**\n * Get a site\n *\n * Gets information for site **siteId**.\n *\n * You can use the **relations** parameter to include one or more related\n * entities in a single response and so reduce network traffic.\n *\n * The entity types in Alfresco are organized in a tree structure.\n * The **sites** entity has two children, **containers** and **members**.\n * The following relations parameter returns all the container and member\n * objects related to the site **siteId**:\n *\n * containers,members\n *\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @param opts.relations Use the relations parameter to include one or more related entities in a single response.\n * @returns Promise<SiteEntry>\n */\n getSite(siteId: string, opts?: { relations?: string[] } & ContentFieldsQuery): Promise<SiteEntry> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n relations: buildCollectionParam(opts?.relations, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteEntry\n });\n }\n\n /**\n * Get a site container\n *\n * Gets information on the container **containerId** in site **siteId**.\n *\n * @param siteId The identifier of a site.\n * @param containerId The unique identifier of a site container.\n * @param opts Optional parameters\n * @returns Promise<SiteContainerEntry>\n */\n getSiteContainer(siteId: string, containerId: string, opts?: ContentFieldsQuery): Promise<SiteContainerEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(containerId, 'containerId');\n\n const pathParams = {\n siteId,\n containerId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/containers/{containerId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Get a site membership\n *\n * Gets site membership information for person **personId** on site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param siteId The identifier of a site.\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @returns Promise<SiteMemberEntry>\n */\n getSiteMembership(siteId: string, personId: string, opts?: ContentFieldsQuery): Promise<SiteMemberEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n siteId,\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/members/{personId}',\n pathParams,\n queryParams,\n returnType: SiteMemberEntry\n });\n }\n\n /**\n * Get a site membership\n *\n * Gets site membership information for person **personId** on site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @returns Promise<SiteRoleEntry>\n */\n getSiteMembershipForPerson(personId: string, siteId: string): Promise<SiteRoleEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n return this.get({\n path: '/people/{personId}/sites/{siteId}',\n pathParams,\n returnType: SiteRoleEntry\n });\n }\n\n /**\n * Get a site membership request\n *\n * Gets the site membership request for site **siteId** for person **personId**, if one exists.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestEntry>\n */\n getSiteMembershipRequestForPerson(personId: string, siteId: string, opts?: ContentFieldsQuery): Promise<SiteMembershipRequestEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n personId,\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/site-membership-requests/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteMembershipRequestEntry\n });\n }\n\n /**\n * Get site membership requests\n *\n * You can use the **where** parameter to filter the returned site membership requests by **siteId**. For example:\n *\n * (siteId=mySite)\n *\n * The **where** parameter can also be used to filter by ***personId***. For example:\n *\n * where=(personId=person)\n *\n * This may be combined with the siteId filter, as shown below:\n *\n * where=(siteId=mySite AND personId=person))\n *\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<SiteMembershipRequestWithPersonPaging>\n */\n getSiteMembershipRequests(opts?: { where?: string } & ContentPagingQuery & ContentFieldsQuery): Promise<SiteMembershipRequestWithPersonPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/site-membership-requests',\n queryParams,\n returnType: SiteMembershipRequestWithPersonPaging\n });\n }\n\n /**\n * List site containers\n *\n * Gets a list of containers for the site **siteId**.\n *\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteContainerPaging>\n */\n listSiteContainers(siteId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SiteContainerPaging> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/containers',\n pathParams,\n queryParams,\n returnType: SiteContainerPaging\n });\n }\n\n /**\n * List site membership requests\n *\n * Gets a list of the current site membership requests for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestPaging>\n */\n listSiteMembershipRequestsForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SiteMembershipRequestPaging> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/site-membership-requests',\n pathParams,\n queryParams,\n returnType: SiteMembershipRequestPaging\n });\n }\n\n /**\n * List site memberships\n *\n * Gets a list of site memberships for site **siteId**.\n *\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteMemberPaging>\n */\n listSiteMemberships(siteId: string, opts?: { where?: string } & ContentPagingQuery & ContentFieldsQuery): Promise<SiteMemberPaging> {\n throwIfNotDefined(siteId, 'siteId');\n\n opts = opts || {};\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/members',\n pathParams,\n queryParams,\n returnType: SiteMemberPaging\n });\n }\n\n /**\n * List site memberships\n *\n * Gets a list of site membership information for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**.\n *\n * Example to filter by **visibility**, use any one of:\n * - (visibility='PRIVATE')\n * - (visibility='PUBLIC')\n * - (visibility='MODERATED')\n *\n * Example to filter by site **preset**:\n *\n * (preset='site-dashboard')\n *\n * The default sort order for the returned list is for sites to be sorted by ascending title.\n * You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter:\n * - id\n * - title\n * - role\n *\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.relations Use the relations parameter to include one or more related entities in a single response.\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<SiteRolePaging>\n */\n listSiteMembershipsForPerson(\n personId: string,\n opts?: { where?: string; orderBy?: string[]; relations?: string[] } & ContentPagingQuery & ContentFieldsQuery\n ): Promise<SiteRolePaging> {\n throwIfNotDefined(personId, 'personId');\n opts = opts || {};\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n relations: buildCollectionParam(opts?.relations, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv'),\n where: opts?.where\n };\n\n return this.get({\n path: '/people/{personId}/sites',\n pathParams,\n queryParams,\n returnType: SiteRolePaging\n });\n }\n\n /**\n * List sites\n *\n * Gets a list of sites in this repository.\n *\n * You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**.\n *\n * Example to filter by **visibility**, use any one of:\n *\n * (visibility='PRIVATE')\n * (visibility='PUBLIC')\n * (visibility='MODERATED')\n *\n * Example to filter by site **preset**:\n *\n * (preset='site-dashboard')\n *\n * The default sort order for the returned list is for sites to be sorted by ascending title.\n * You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter:\n * id\n * title\n * description\n *\n * You can use the **relations** parameter to include one or more related\n * entities in a single response and so reduce network traffic.\n *\n * The entity types in Alfresco are organized in a tree structure.\n * The **sites** entity has two children, **containers** and **members**.\n * The following relations parameter returns all the container and member\n * objects related to each site:\n *\n * containers,members\n *\n * @param opts Optional parameters\n * @param opts.orderBy A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to\n * sort the list by one or more fields.\n * Each field has a default sort order, which is normally ascending order. Read the API method implementation notes\n * above to check if any fields used in this method have a descending default search order.\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @param opts.relations Use the relations parameter to include one or more related entities in a single response.\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<SitePaging>\n */\n listSites(\n opts?: {\n orderBy?: string[];\n relations?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentFieldsQuery\n ): Promise<SitePaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n relations: buildCollectionParam(opts?.relations, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv'),\n where: opts?.where\n };\n\n return this.get({\n path: '/sites',\n queryParams,\n returnType: SitePaging\n });\n }\n\n /**\n * Reject a site membership request\n *\n * @param siteId The identifier of a site.\n * @param inviteeId The invitee username.\n * @param opts Optional parameters\n * @param opts.siteMembershipRejectionBody Rejecting a request to join, optionally, allows the inclusion of comment.\n * @returns Promise<{}>\n */\n rejectSiteMembershipRequest(siteId: string, inviteeId: string, opts?: { siteMembershipRejectionBody?: any }): Promise<any> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(inviteeId, 'inviteeId');\n\n const postBody = opts?.siteMembershipRejectionBody;\n\n const pathParams = {\n siteId,\n inviteeId\n };\n\n return this.post({\n path: '/sites/{siteId}/site-membership-requests/{inviteeId}/reject',\n pathParams,\n bodyParam: postBody\n });\n }\n\n /**\n * Update a site\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Update the details for the given site **siteId**. Site Manager or otherwise a\n * (site) admin can update title, description or visibility.\n *\n * Note: the id of a site cannot be updated once the site has been created.\n *\n * @param siteId The identifier of a site.\n * @param siteBodyUpdate The site information to update.\n * @param opts Optional parameters\n * @returns Promise<SiteEntry>\n */\n updateSite(siteId: string, siteBodyUpdate: SiteBodyUpdate, opts?: ContentFieldsQuery): Promise<SiteEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteBodyUpdate, 'siteBodyUpdate');\n\n opts = opts || {};\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/sites/{siteId}',\n pathParams,\n queryParams,\n bodyParam: siteBodyUpdate,\n returnType: SiteEntry\n });\n }\n\n /**\n * Update a site membership\n *\n * Update the membership of person **personId** in site **siteId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n * You can set the **role** to one of four types:\n * - SiteConsumer\n * - SiteCollaborator\n * - SiteContributor\n * - SiteManager\n *\n * @param siteId The identifier of a site.\n * @param personId The identifier of a person.\n * @param siteMembershipBodyUpdate The persons new role\n * @param opts Optional parameters\n * @returns Promise<SiteMemberEntry>\n */\n updateSiteMembership(\n siteId: string,\n personId: string,\n siteMembershipBodyUpdate: SiteMembershipBodyUpdate,\n opts?: ContentFieldsQuery\n ): Promise<SiteMemberEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteMembershipBodyUpdate, 'siteMembershipBodyUpdate');\n\n const pathParams = {\n siteId,\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/sites/{siteId}/members/{personId}',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyUpdate,\n returnType: SiteMemberEntry\n });\n }\n\n /**\n * Update a site membership request\n *\n * Updates the message for the site membership request to site **siteId** for person **personId**.\n * You can use the -me- string in place of <personId> to specify the currently authenticated user.\n *\n * @param personId The identifier of a person.\n * @param siteId The identifier of a site.\n * @param siteMembershipRequestBodyUpdate The new message to display\n * @param opts Optional parameters\n * @returns Promise<SiteMembershipRequestEntry>\n */\n updateSiteMembershipRequestForPerson(\n personId: string,\n siteId: string,\n siteMembershipRequestBodyUpdate: SiteMembershipRequestBodyUpdate,\n opts?: ContentFieldsQuery\n ): Promise<SiteMembershipRequestEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteMembershipRequestBodyUpdate, 'siteMembershipRequestBodyUpdate');\n\n const pathParams = {\n personId,\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/people/{personId}/site-membership-requests/{siteId}',\n pathParams,\n queryParams,\n bodyParam: siteMembershipRequestBodyUpdate,\n returnType: SiteMembershipRequestEntry\n });\n }\n\n /**\n * Create a site membership for group\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * You can set the **role** to one of four types:\n * - SiteConsumer\n * - SiteCollaborator\n * - SiteContributor\n * - SiteManager\n *\n * @param siteId The identifier of a site.\n * @param siteMembershipBodyCreate The group to add and it role\n * @param opts Optional parameters\n * @returns Promise<SiteGroupEntry>\n */\n createSiteGroupMembership(\n siteId: string,\n siteMembershipBodyCreate: SiteMembershipBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<SiteGroupEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(siteMembershipBodyCreate, 'siteMembershipBodyCreate');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/sites/{siteId}/group-members',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyCreate,\n returnType: SiteGroupEntry\n });\n }\n\n /**\n * List group membership for site\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * @param siteId The identifier of a site.\n * @param opts Optional parameters\n * @returns Promise<SiteGroupPaging>\n */\n listSiteGroups(siteId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SiteGroupPaging> {\n throwIfNotDefined(siteId, 'siteId');\n\n const pathParams = {\n siteId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/group-members',\n pathParams,\n queryParams,\n returnType: SiteGroupPaging\n });\n }\n\n /**\n * Get information about site membership of group\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * Gets site membership information for group **groupId** on site **siteId**.\n *\n * @param siteId The identifier of a site.\n * @param groupId The authorityId of a group.\n * @param opts Optional parameters\n * @returns Promise<SiteGroupEntry>\n */\n getSiteGroupMembership(siteId: string, groupId: string, opts?: ContentFieldsQuery): Promise<SiteGroupEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n siteId,\n groupId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/sites/{siteId}/group-members/{groupId}',\n pathParams,\n queryParams,\n returnType: SiteGroupEntry\n });\n }\n\n /**\n * Update site membership of group\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * You can set the **role** to one of four types:\n * - SiteConsumer\n * - SiteCollaborator\n * - SiteContributor\n * - SiteManager\n *\n * @param siteId The identifier of a site.\n * @param groupId The authorityId of a group.\n * @param siteMembershipBodyUpdate The group new role\n * @param opts Optional parameters\n * @returns Promise<SiteGroupEntry>\n */\n updateSiteGroupMembership(\n siteId: string,\n groupId: string,\n siteMembershipBodyUpdate: SiteMembershipBodyUpdate,\n opts?: ContentFieldsQuery\n ): Promise<SiteGroupEntry> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(siteMembershipBodyUpdate, 'siteMembershipBodyUpdate');\n\n const pathParams = {\n siteId,\n groupId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/sites/{siteId}/group-members/{groupId}',\n pathParams,\n queryParams,\n bodyParam: siteMembershipBodyUpdate,\n returnType: SiteGroupEntry\n });\n }\n\n /**\n * Delete a group membership for site\n *\n * @param siteId The identifier of a site.\n * @param groupId The authorityId of a group.\n * @returns Promise<{}>\n */\n deleteSiteGroupMembership(siteId: string, groupId: string): Promise<void> {\n throwIfNotDefined(siteId, 'siteId');\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n siteId,\n groupId\n };\n\n return this.delete({\n path: '/sites/{siteId}/group-members/{groupId}',\n pathParams\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"tags.api.js","sourceRoot":"","sources":["tags.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,gDAA6C;AAC7C,kDAA+C;AAC/C,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAMlE,MAAa,OAAQ,SAAQ,kBAAO;IAQhC,gBAAgB,CAAC,MAAc,EAAE,aAAwB,EAAE,IAAyB;QAChF,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAElD,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK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ND,0BA+NC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TagBody } from '../model/tagBody';\nimport { TagEntry } from '../model/tagEntry';\nimport { TagPaging } from '../model/tagPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Tags service.\n */\nexport class TagsApi extends BaseApi {\n /**\n * Create a tag for a node\n * @param nodeId The identifier of a node.\n * @param tagBodyCreate The new tag\n * @param opts Optional parameters\n * @returns Promise<TagEntry>\n */\n createTagForNode(nodeId: string, tagBodyCreate: TagBody[], opts?: ContentFieldsQuery): Promise<TagEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(tagBodyCreate, 'tagBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/tags',\n pathParams,\n queryParams,\n bodyParam: tagBodyCreate,\n returnType: TagEntry\n });\n }\n\n /**\n * Delete a tag from a node\n * @param nodeId The identifier of a node.\n * @param tagId The identifier of a tag.\n * @returns Promise<{}>\n */\n deleteTagFromNode(nodeId: string, tagId: string): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(tagId, 'tagId');\n\n const pathParams = {\n nodeId,\n tagId\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/tags/{tagId}',\n pathParams\n });\n }\n\n /**\n * Get a tag\n * @param tagId The identifier of a tag.\n * @param opts Optional parameters\n * @returns Promise<TagEntry>\n */\n getTag(tagId: string, opts?: ContentFieldsQuery): Promise<TagEntry> {\n throwIfNotDefined(tagId, 'tagId');\n\n const pathParams = {\n tagId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/tags/{tagId}',\n pathParams,\n queryParams,\n returnType: TagEntry\n });\n }\n\n /**\n * List tags\n * @param opts Optional parameters\n * @param opts.tag Name or pattern for which tag is returned. Example of pattern: *test* which returns tags like 'my test 1'\n * @param opts.matching Switches filtering to pattern mode instead of exact mode.\n * @returns Promise<TagPaging>\n */\n listTags(opts?: { tag?: string; matching?: boolean } & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<TagPaging> {\n opts = opts || {};\n\n const pathParams = {};\n\n let where: string;\n if (opts?.tag) {\n where = opts.matching ? `(tag matches ('${opts.tag}'))` : `(tag='${opts.tag}')`;\n }\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where\n };\n\n return this.get({\n path: '/tags',\n pathParams,\n queryParams,\n returnType: TagPaging\n });\n }\n\n /**\n * List tags for a node\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<TagPaging>\n */\n listTagsForNode(nodeId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<TagPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/tags',\n pathParams,\n queryParams,\n returnType: TagPaging\n });\n }\n\n /**\n * Update a tag\n * @param tagId The identifier of a tag.\n * @param tagBodyUpdate The updated tag\n * @param opts Optional parameters\n * @returns Promise<TagEntry>\n */\n updateTag(tagId: string, tagBodyUpdate: TagBody, opts?: ContentFieldsQuery): Promise<TagEntry> {\n throwIfNotDefined(tagId, 'tagId');\n throwIfNotDefined(tagBodyUpdate, 'tagBodyUpdate');\n\n const pathParams = {\n tagId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/tags/{tagId}',\n pathParams,\n queryParams,\n bodyParam: tagBodyUpdate,\n returnType: TagEntry\n });\n }\n\n /**\n * Deletes a tag by **tagId**. This will cause the tag to be removed from all nodes.\n * @param tagId The identifier of a tag.\n * @returns Promise<{}>\n */\n deleteTag(tagId: string): Promise<void> {\n throwIfNotDefined(tagId, 'tagId');\n\n const pathParams = {\n tagId\n };\n\n return this.delete({\n path: '/tags/{tagId}',\n pathParams\n });\n }\n\n /**\n * Create specified by **tags** list of tags.\n * @param tags List of tags to create.\n * @returns Promise<TagEntry | TagPaging>\n */\n createTags(tags: TagBody[]): Promise<TagEntry | TagPaging> {\n throwIfNotDefined(tags, 'tags');\n\n return this.post({\n path: '/tags',\n bodyParam: tags\n });\n }\n\n /**\n * Assign tags to node. If tag is new then tag is also created additionally, if tag already exists then it is just assigned.\n * @param nodeId Id of node to which tags should be assigned.\n * @param tags List of tags to create and assign or just assign if they already exist.\n * @returns Promise<TagPaging>\n */\n assignTagsToNode(nodeId: string, tags: TagBody[]): Promise<TagPaging> {\n return this.post({\n path: '/nodes/{nodeId}/tags',\n pathParams: { nodeId },\n bodyParam: tags,\n returnType: TagPaging\n });\n }\n\n /**\n * Assign tags to node. If tag is new then tag is also created additionally, if tag already exists then it is just assigned.\n * @param nodeId Id of node to which tags should be assigned.\n * @param tag List of tags to create and assign or just assign if they already exist.\n * @returns Promise<TagEntry>\n */\n assignTagToNode(nodeId: string, tag: TagBody): Promise<TagEntry> {\n return this.post({\n path: '/nodes/{nodeId}/tags',\n pathParams: { nodeId },\n bodyParam: tag,\n return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CAAC,CAAC;QAEhC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,IAAI;SAClB,CAAC,CAAC;IACP,CAAC;IASD,gBAAgB,CAAC,MAAc,EAAE,IAAe;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,EAAE,MAAM,EAAE;YACtB,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,qBAAS;SACxB,CAAC,CAAC;IACP,CAAC;IASD,eAAe,CAAC,MAAc,EAAE,GAAY;QACxC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,sBAAsB;YAC5B,UAAU,EAAE,EAAE,MAAM,EAAE;YACtB,SAAS,EAAE,GAAG;YACd,UAAU,EAAE,mBAAQ;SACvB,CAAC,CAAC;IACP,CAAC;CACJ;AAzOD,0BAyOC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TagBody } from '../model/tagBody';\nimport { TagEntry } from '../model/tagEntry';\nimport { TagPaging } from '../model/tagPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Tags service.\n */\nexport class TagsApi extends BaseApi {\n /**\n * Create a tag for a node\n *\n * @param nodeId The identifier of a node.\n * @param tagBodyCreate The new tag\n * @param opts Optional parameters\n * @returns Promise<TagEntry>\n */\n createTagForNode(nodeId: string, tagBodyCreate: TagBody[], opts?: ContentFieldsQuery): Promise<TagEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(tagBodyCreate, 'tagBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/tags',\n pathParams,\n queryParams,\n bodyParam: tagBodyCreate,\n returnType: TagEntry\n });\n }\n\n /**\n * Delete a tag from a node\n *\n * @param nodeId The identifier of a node.\n * @param tagId The identifier of a tag.\n * @returns Promise<{}>\n */\n deleteTagFromNode(nodeId: string, tagId: string): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(tagId, 'tagId');\n\n const pathParams = {\n nodeId,\n tagId\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/tags/{tagId}',\n pathParams\n });\n }\n\n /**\n * Get a tag\n *\n * @param tagId The identifier of a tag.\n * @param opts Optional parameters\n * @returns Promise<TagEntry>\n */\n getTag(tagId: string, opts?: ContentFieldsQuery): Promise<TagEntry> {\n throwIfNotDefined(tagId, 'tagId');\n\n const pathParams = {\n tagId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/tags/{tagId}',\n pathParams,\n queryParams,\n returnType: TagEntry\n });\n }\n\n /**\n * List tags\n *\n * @param opts Optional parameters\n * @param opts.tag Name or pattern for which tag is returned. Example of pattern: *test* which returns tags like 'my test 1'\n * @param opts.matching Switches filtering to pattern mode instead of exact mode.\n * @returns Promise<TagPaging>\n */\n listTags(opts?: { tag?: string; matching?: boolean } & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<TagPaging> {\n opts = opts || {};\n\n const pathParams = {};\n\n let where: string;\n if (opts?.tag) {\n where = opts.matching ? `(tag matches ('${opts.tag}'))` : `(tag='${opts.tag}')`;\n }\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where\n };\n\n return this.get({\n path: '/tags',\n pathParams,\n queryParams,\n returnType: TagPaging\n });\n }\n\n /**\n * List tags for a node\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<TagPaging>\n */\n listTagsForNode(nodeId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<TagPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/tags',\n pathParams,\n queryParams,\n returnType: TagPaging\n });\n }\n\n /**\n * Update a tag\n *\n * @param tagId The identifier of a tag.\n * @param tagBodyUpdate The updated tag\n * @param opts Optional parameters\n * @returns Promise<TagEntry>\n */\n updateTag(tagId: string, tagBodyUpdate: TagBody, opts?: ContentFieldsQuery): Promise<TagEntry> {\n throwIfNotDefined(tagId, 'tagId');\n throwIfNotDefined(tagBodyUpdate, 'tagBodyUpdate');\n\n const pathParams = {\n tagId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/tags/{tagId}',\n pathParams,\n queryParams,\n bodyParam: tagBodyUpdate,\n returnType: TagEntry\n });\n }\n\n /**\n * Deletes a tag by **tagId**. This will cause the tag to be removed from all nodes.\n *\n * @param tagId The identifier of a tag.\n * @returns Promise<{}>\n */\n deleteTag(tagId: string): Promise<void> {\n throwIfNotDefined(tagId, 'tagId');\n\n const pathParams = {\n tagId\n };\n\n return this.delete({\n path: '/tags/{tagId}',\n pathParams\n });\n }\n\n /**\n * Create specified by **tags** list of tags.\n *\n * @param tags List of tags to create.\n * @returns Promise<TagEntry | TagPaging>\n */\n createTags(tags: TagBody[]): Promise<TagEntry | TagPaging> {\n throwIfNotDefined(tags, 'tags');\n\n return this.post({\n path: '/tags',\n bodyParam: tags\n });\n }\n\n /**\n * Assign tags to node. If tag is new then tag is also created additionally, if tag already exists then it is just assigned.\n *\n * @param nodeId Id of node to which tags should be assigned.\n * @param tags List of tags to create and assign or just assign if they already exist.\n * @returns Promise<TagPaging>\n */\n assignTagsToNode(nodeId: string, tags: TagBody[]): Promise<TagPaging> {\n return this.post({\n path: '/nodes/{nodeId}/tags',\n pathParams: { nodeId },\n bodyParam: tags,\n returnType: TagPaging\n });\n }\n\n /**\n * Assign tags to node. If tag is new then tag is also created additionally, if tag already exists then it is just assigned.\n *\n * @param nodeId Id of node to which tags should be assigned.\n * @param tag List of tags to create and assign or just assign if they already exist.\n * @returns Promise<TagEntry>\n */\n assignTagToNode(nodeId: string, tag: TagBody): Promise<TagEntry> {\n return this.post({\n path: '/nodes/{nodeId}/tags',\n pathParams: { nodeId },\n bodyParam: tag,\n returnType: TagEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"trashcan.api.js","sourceRoot":"","sources":["trashcan.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,gEAA6D;AAC7D,oEAAiE;AACjE,wEAAqE;AACrE,kDAA+C;AAC/C,4DAAyD;AACzD,8DAA2D;AAC3D,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAOlE,MAAa,WAAY,SAAQ,kBAAO;IAQpC,iBAAiB,CAAC,MAAc;QAC5B,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,yBAAyB;YAC/B,UAAU;SACb,CAAC,CAAC;IACP,CAAC;IAUD,wBAAwB,CAAC,MAAc,EAAE,WAAmB;QACxD,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,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MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,4EAA4E;YAClF,UAAU;YACV,UAAU,EAAE,2CAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AAjVD,kCAiVC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DeletedNodeEntry } from '../model/deletedNodeEntry';\nimport { DeletedNodesPaging } from '../model/deletedNodesPaging';\nimport { DirectAccessUrlEntry } from '../model/directAccessUrlEntry';\nimport { NodeEntry } from '../model/nodeEntry';\nimport { RenditionEntry } from '../model/renditionEntry';\nimport { RenditionPaging } from '../model/renditionPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Trashcan service.\n * @module TrashcanApi\n */\nexport class TrashcanApi extends BaseApi {\n /**\n * Permanently delete a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node.\n * @returns Promise<{}>\n */\n deleteDeletedNode(nodeId: string): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.delete({\n path: '/deleted-nodes/{nodeId}',\n pathParams\n });\n }\n\n /**\n * Get rendition information for a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getArchivedNodeRendition(nodeId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content of a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response. (default to false)\n * @returns Promise<Blob>\n */\n getArchivedNodeRenditionContent(\n nodeId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n opts = opts || {};\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts: ['application/octet-stream']\n });\n }\n\n /**\n * Get a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<DeletedNodeEntry>\n */\n getDeletedNode(nodeId: string, opts?: ContentIncludeQuery): Promise<DeletedNodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}',\n pathParams,\n queryParams,\n returnType: DeletedNodeEntry\n });\n }\n\n /**\n * Get deleted node content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getDeletedNodeContent(\n nodeId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions for a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Each rendition returned has a **status**: `CREATED` means it is available to view or download,\n * `NOT_CREATED` means the rendition can be requested.\n *\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions:\n *\n * - (status='CREATED')\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listDeletedNodeRenditions(nodeId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/renditions',\n pathParams,\n queryParams,\n returnType: RenditionPaging\n });\n }\n\n /**\n * List deleted nodes\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of deleted nodes for the current user.\n * If the current user is an administrator deleted nodes for all users will be returned.\n * The list of deleted nodes will be ordered with the most recently deleted node at the top of the list.\n * @param opts Optional parameters\n * @returns Promise<DeletedNodesPaging>\n */\n listDeletedNodes(opts?: ContentPagingQuery & ContentIncludeQuery): Promise<DeletedNodesPaging> {\n const queryParams = {\n ...(opts || {}),\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get({\n path: '/deleted-nodes',\n queryParams,\n returnType: DeletedNodesPaging\n });\n }\n\n /**\n * Restore a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Attempts to restore the deleted node **nodeId** to its original location or to a new location.\n *\n * If the node is successfully restored to its former primary parent, then only the\n * primary child association will be restored, including recursively for any primary\n * children. It should be noted that no other secondary child associations or peer\n * associations will be restored, for any of the nodes within the primary parent-child\n * hierarchy of restored nodes, irrespective of whether these associations were to\n * nodes within or outside the restored hierarchy.\n *\n * Also, any previously shared link will not be restored since it is deleted at the time\n * of delete of each node.\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.deletedNodeBodyRestore The targetParentId if the node is restored to a new location.\n * @returns Promise<NodeEntry>\n */\n restoreDeletedNode(\n nodeId: string,\n opts?: {\n deletedNodeBodyRestore?: {\n targetParentId?: string;\n assocType?: string;\n };\n } & ContentFieldsQuery\n ): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/deleted-nodes/{nodeId}/restore',\n pathParams,\n queryParams,\n bodyParam: opts?.deletedNodeBodyRestore,\n returnType: NodeEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given deleted node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n * @param nodeId The identifier of a node.\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/deleted-nodes/{nodeId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given rendition of a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n * @param nodeId The identifier of a node.\n * @param renditionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestRenditionDirectAccessUrl(nodeId: string, renditionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.post({\n path: '/deleted-nodes/{nodeId}/renditions/{renditionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"trashcan.api.js","sourceRoot":"","sources":["trashcan.api.ts"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aAAJ,IAAI,uBAAJ,IAAI,CAAE,sBAAsB;YACvC,UAAU,EAAE,qBAAS;SACxB,CAAC,CAAC;IACP,CAAC;IAUD,sBAAsB,CAAC,MAAc;QACjC,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,mDAAmD;YACzD,UAAU;YACV,UAAU,EAAE,2CAAoB;SACnC,CAAC,CAAC;IACP,CAAC;IAWD,+BAA+B,CAAC,MAAc,EAAE,WAAmB;QAC/D,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAE9C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,WAAW;SACd,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,4EAA4E;YAClF,UAAU;YACV,UAAU,EAAE,2CAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AA3VD,kCA2VC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DeletedNodeEntry } from '../model/deletedNodeEntry';\nimport { DeletedNodesPaging } from '../model/deletedNodesPaging';\nimport { DirectAccessUrlEntry } from '../model/directAccessUrlEntry';\nimport { NodeEntry } from '../model/nodeEntry';\nimport { RenditionEntry } from '../model/renditionEntry';\nimport { RenditionPaging } from '../model/renditionPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Trashcan service.\n *\n * @module TrashcanApi\n */\nexport class TrashcanApi extends BaseApi {\n /**\n * Permanently delete a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<{}>\n */\n deleteDeletedNode(nodeId: string): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.delete({\n path: '/deleted-nodes/{nodeId}',\n pathParams\n });\n }\n\n /**\n * Get rendition information for a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getArchivedNodeRendition(nodeId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content of a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response. (default to false)\n * @returns Promise<Blob>\n */\n getArchivedNodeRenditionContent(\n nodeId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n opts = opts || {};\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts: ['application/octet-stream']\n });\n }\n\n /**\n * Get a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<DeletedNodeEntry>\n */\n getDeletedNode(nodeId: string, opts?: ContentIncludeQuery): Promise<DeletedNodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}',\n pathParams,\n queryParams,\n returnType: DeletedNodeEntry\n });\n }\n\n /**\n * Get deleted node content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response. (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getDeletedNodeContent(\n nodeId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List renditions for a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Each rendition returned has a **status**: `CREATED` means it is available to view or download,\n * `NOT_CREATED` means the rendition can be requested.\n *\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions:\n *\n * - (status='CREATED')\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listDeletedNodeRenditions(nodeId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where\n };\n\n return this.get({\n path: '/deleted-nodes/{nodeId}/renditions',\n pathParams,\n queryParams,\n returnType: RenditionPaging\n });\n }\n\n /**\n * List deleted nodes\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of deleted nodes for the current user.\n * If the current user is an administrator deleted nodes for all users will be returned.\n * The list of deleted nodes will be ordered with the most recently deleted node at the top of the list.\n *\n * @param opts Optional parameters\n * @returns Promise<DeletedNodesPaging>\n */\n listDeletedNodes(opts?: ContentPagingQuery & ContentIncludeQuery): Promise<DeletedNodesPaging> {\n const queryParams = {\n ...(opts || {}),\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get({\n path: '/deleted-nodes',\n queryParams,\n returnType: DeletedNodesPaging\n });\n }\n\n /**\n * Restore a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Attempts to restore the deleted node **nodeId** to its original location or to a new location.\n *\n * If the node is successfully restored to its former primary parent, then only the\n * primary child association will be restored, including recursively for any primary\n * children. It should be noted that no other secondary child associations or peer\n * associations will be restored, for any of the nodes within the primary parent-child\n * hierarchy of restored nodes, irrespective of whether these associations were to\n * nodes within or outside the restored hierarchy.\n *\n * Also, any previously shared link will not be restored since it is deleted at the time\n * of delete of each node.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.deletedNodeBodyRestore The targetParentId if the node is restored to a new location.\n * @returns Promise<NodeEntry>\n */\n restoreDeletedNode(\n nodeId: string,\n opts?: {\n deletedNodeBodyRestore?: {\n targetParentId?: string;\n assocType?: string;\n };\n } & ContentFieldsQuery\n ): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/deleted-nodes/{nodeId}/restore',\n pathParams,\n queryParams,\n bodyParam: opts?.deletedNodeBodyRestore,\n returnType: NodeEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given deleted node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/deleted-nodes/{nodeId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given rendition of a deleted node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param renditionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestRenditionDirectAccessUrl(nodeId: string, renditionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n renditionId\n };\n\n return this.post({\n path: '/deleted-nodes/{nodeId}/renditions/{renditionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"versions.api.js","sourceRoot":"","sources":["versions.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAA+I;AAC/I,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAOlE,MAAa,WAAY,SAAQ,kBAAO;IAUpC,sBAAsB,CAAC,MAAc,EAAE,SAAiB,EAAE,mBAAwC;QAC9F,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAC1C,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAE9D,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,iDAAiD;YACvD,UAAU;YACV,SAAS,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACP,CAAC;IAsBD,aAAa,CAAC,MAAc,EAAE,SAAiB;QAC3C,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,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,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAC1C,IAAA,0BAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,6CAA6C;YACnD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,UAAU;YACrB,UAAU,EAAE,oBAAY;SAC3B,CAAC,CAAC;IACP,CAAC;IAUD,sBAAsB,CAAC,MAAc,EAAE,SAAiB;QACpD,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gEAAgE;YACtE,UAAU;YACV,UAAU,EAAE,4BAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AA/WD,kCA+WC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DirectAccessUrlEntry, RenditionBodyCreate, RenditionEntry, RenditionPaging, RevertBody, VersionEntry, VersionPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Versions service.\n * @module VersionsApi\n */\nexport class VersionsApi extends BaseApi {\n /**\n * Create rendition for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param renditionBodyCreate The rendition \\\"id\\\".\n * @returns Promise<{}>\n */\n createVersionRendition(nodeId: string, versionId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(renditionBodyCreate, 'renditionBodyCreate');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions',\n pathParams,\n bodyParam: renditionBodyCreate\n });\n }\n\n /**\n * Delete a version\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Delete the version identified by **versionId** and **nodeId*.\n *\n * If the version is successfully deleted then the content and metadata for that versioned node\n * will be deleted and will no longer appear in the version history. This operation cannot be undone.\n *\n * If the most recent version is deleted the live node will revert to the next most recent version.\n *\n * We currently do not allow the last version to be deleted. If you wish to clear the history then you\n * can remove the \\\"cm:versionable\\\" aspect (via update node) which will also disable versioning. In this\n * case, you can re-enable versioning by adding back the \\\"cm:versionable\\\" aspect or using the version\n * params (majorVersion and comment) on a subsequent file content update.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @returns Promise<{}>\n */\n deleteVersion(nodeId: string, versionId: string): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/versions/{versionId}',\n pathParams\n });\n }\n\n /**\n * Get version information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @returns Promise<VersionEntry>\n */\n getVersion(nodeId: string, versionId: string): Promise<VersionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}',\n pathParams,\n returnType: VersionEntry\n });\n }\n\n /**\n * Get version content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response.\n * (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getVersionContent(\n nodeId: string,\n versionId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n /**\n * Get rendition information for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getVersionRendition(nodeId: string, versionId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n versionId,\n renditionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not\n * download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response.\n * (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response.\n * (default to false)\n * @returns Promise<Blob>\n */\n getVersionRenditionContent(\n nodeId: string,\n versionId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n opts = opts || {};\n\n const pathParams = {\n nodeId,\n versionId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List version history\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets the version history as an ordered list of versions for the specified **nodeId**.\n *\n * The list is ordered in descending modified order. So the most recent version is first and\n * the original version is last in the list.\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<VersionPaging>\n */\n listVersionHistory(nodeId: string, opts?: ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<VersionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv'),\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions',\n pathParams,\n queryParams,\n returnType: VersionPaging\n });\n }\n\n /**\n * List renditions for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * Gets a list of the rendition information for each rendition of the version of file **nodeId** and **versionId**, including the rendition id.\n * Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested.\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions: (status='CREATED')\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listVersionRenditions(nodeId: string, versionId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions',\n pathParams,\n queryParams: opts,\n returnType: RenditionPaging\n });\n }\n\n /**\n * Revert a version\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Attempts to revert the version identified by **versionId** and **nodeId** to the live node.\n * If the node is successfully reverted then the content and metadata for that versioned node\n * will be promoted to the live node and a new version will appear in the version history.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param revertBody Optionally, specify a version comment and whether this should be a major version, or not.\n * @param opts Optional parameters\n * @returns Promise<VersionEntry>\n */\n revertVersion(nodeId: string, versionId: string, revertBody: RevertBody, opts?: ContentFieldsQuery): Promise<VersionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(revertBody, 'revertBody');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/versions/{versionId}/revert',\n pathParams,\n queryParams,\n bodyParam: revertBody,\n returnType: VersionEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given version of a node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string, versionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/versions/{versionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"versions.api.js","sourceRoot":"","sources":["versions.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAA+I;AAC/I,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAQlE,MAAa,WAAY,SAAQ,kBAAO;IAWpC,sBAAsB,CAAC,MAAc,EAAE,SAAiB,EAAE,mBAAwC;QAC9F,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAC1C,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAE9D,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,iDAAiD;YACvD,UAAU;YACV,SAAS,EAAE,mBAAmB;SACjC,CAAC,CAAC;IACP,CAAC;IAuBD,aAAa,CAAC,MAAc,EAAE,SAAiB;QAC3C,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,sCAAsC;YAC5C,UAAU;SACb,CAAC,CAAC;IACP,CAAC;IAWD,UAAU,CAAC,MAAc,EAAE,SAAiB;QACxC,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MA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AAI,CAAC;YACb,IAAI,EAAE,6CAA6C;YACnD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,UAAU;YACrB,UAAU,EAAE,oBAAY;SAC3B,CAAC,CAAC;IACP,CAAC;IAWD,sBAAsB,CAAC,MAAc,EAAE,SAAiB;QACpD,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAG;YACf,MAAM;YACN,SAAS;SACZ,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,gEAAgE;YACtE,UAAU;YACV,UAAU,EAAE,4BAAoB;SACnC,CAAC,CAAC;IACP,CAAC;CACJ;AAzXD,kCAyXC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DirectAccessUrlEntry, RenditionBodyCreate, RenditionEntry, RenditionPaging, RevertBody, VersionEntry, VersionPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Versions service.\n *\n * @module VersionsApi\n */\nexport class VersionsApi extends BaseApi {\n /**\n * Create rendition for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param renditionBodyCreate The rendition \\\"id\\\".\n * @returns Promise<{}>\n */\n createVersionRendition(nodeId: string, versionId: string, renditionBodyCreate: RenditionBodyCreate): Promise<any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(renditionBodyCreate, 'renditionBodyCreate');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions',\n pathParams,\n bodyParam: renditionBodyCreate\n });\n }\n\n /**\n * Delete a version\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Delete the version identified by **versionId** and **nodeId*.\n *\n * If the version is successfully deleted then the content and metadata for that versioned node\n * will be deleted and will no longer appear in the version history. This operation cannot be undone.\n *\n * If the most recent version is deleted the live node will revert to the next most recent version.\n *\n * We currently do not allow the last version to be deleted. If you wish to clear the history then you\n * can remove the \\\"cm:versionable\\\" aspect (via update node) which will also disable versioning. In this\n * case, you can re-enable versioning by adding back the \\\"cm:versionable\\\" aspect or using the version\n * params (majorVersion and comment) on a subsequent file content update.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @returns Promise<{}>\n */\n deleteVersion(nodeId: string, versionId: string): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/versions/{versionId}',\n pathParams\n });\n }\n\n /**\n * Get version information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @returns Promise<VersionEntry>\n */\n getVersion(nodeId: string, versionId: string): Promise<VersionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}',\n pathParams,\n returnType: VersionEntry\n });\n }\n\n /**\n * Get version content\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response.\n * (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @returns Promise<Blob>\n */\n getVersionContent(\n nodeId: string,\n versionId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n /**\n * Get rendition information for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @returns Promise<RenditionEntry>\n */\n getVersionRendition(nodeId: string, versionId: string, renditionId: string): Promise<RenditionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n const pathParams = {\n nodeId,\n versionId,\n renditionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}',\n pathParams,\n returnType: RenditionEntry\n });\n }\n\n /**\n * Get rendition content for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param renditionId The name of a thumbnail rendition, for example *doclib*, or *pdf*.\n * @param opts Optional parameters\n * @param opts.attachment **true** enables a web browser to download the file as an attachment.\n * **false** means a web browser may preview the file in a new tab or window, but not\n * download the file.\n * You can only set this parameter to **false** if the content type of the file is in the supported list;\n * for example, certain image files and PDF files.\n * If the content type is not supported for preview, then a value of **false** is ignored, and\n * the attachment will be returned in the response.\n * (default to true)\n * @param opts.ifModifiedSince Only returns the content if it has been modified since the date provided.\n * Use the date format defined by HTTP. For example, Wed, 09 Mar 2016 16:56:34 GMT.\n * @param opts.range The Range header indicates the part of a document that the server should return.\n * Single part request supported, for example: bytes=1-10.\n * @param opts.placeholder If **true** and there is no rendition for this **nodeId** and **renditionId**,\n * then the placeholder image for the mime type of this rendition is returned, rather than a 404 response.\n * (default to false)\n * @returns Promise<Blob>\n */\n getVersionRenditionContent(\n nodeId: string,\n versionId: string,\n renditionId: string,\n opts?: {\n attachment?: boolean;\n placeholder?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(renditionId, 'renditionId');\n\n opts = opts || {};\n\n const pathParams = {\n nodeId,\n versionId,\n renditionId\n };\n\n const queryParams = {\n attachment: opts?.attachment,\n placeholder: opts?.placeholder\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince,\n Range: opts?.range\n };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List version history\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets the version history as an ordered list of versions for the specified **nodeId**.\n *\n * The list is ordered in descending modified order. So the most recent version is first and\n * the original version is last in the list.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<VersionPaging>\n */\n listVersionHistory(nodeId: string, opts?: ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<VersionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv'),\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions',\n pathParams,\n queryParams,\n returnType: VersionPaging\n });\n }\n\n /**\n * List renditions for a file version\n *\n * **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions.\n *\n * Gets a list of the rendition information for each rendition of the version of file **nodeId** and **versionId**, including the rendition id.\n * Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested.\n * You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where**\n * clause will return just the CREATED renditions: (status='CREATED')\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param opts Optional parameters\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @returns Promise<RenditionPaging>\n */\n listVersionRenditions(nodeId: string, versionId: string, opts?: { where?: string }): Promise<RenditionPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.get({\n path: '/nodes/{nodeId}/versions/{versionId}/renditions',\n pathParams,\n queryParams: opts,\n returnType: RenditionPaging\n });\n }\n\n /**\n * Revert a version\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Attempts to revert the version identified by **versionId** and **nodeId** to the live node.\n * If the node is successfully reverted then the content and metadata for that versioned node\n * will be promoted to the live node and a new version will appear in the version history.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version, ie. version label, within the version history of a node.\n * @param revertBody Optionally, specify a version comment and whether this should be a major version, or not.\n * @param opts Optional parameters\n * @returns Promise<VersionEntry>\n */\n revertVersion(nodeId: string, versionId: string, revertBody: RevertBody, opts?: ContentFieldsQuery): Promise<VersionEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n throwIfNotDefined(revertBody, 'revertBody');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/versions/{versionId}/revert',\n pathParams,\n queryParams,\n bodyParam: revertBody,\n returnType: VersionEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given version of a node\n *\n * **Note:** this endpoint is available in Alfresco 7.1 and newer versions.\n *\n * @param nodeId The identifier of a node.\n * @param versionId The identifier of a version\n * @returns Promise<DirectAccessUrlEntry>\n */\n requestDirectAccessUrl(nodeId: string, versionId: string): Promise<DirectAccessUrlEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(versionId, 'versionId');\n\n const pathParams = {\n nodeId,\n versionId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/versions/{versionId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"discovery.api.js","sourceRoot":"","sources":["discovery.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4DAAyD;AACzD,yCAAqC;AAKrC,MAAa,YAAa,SAAQ,kBAAO;IAOrC,wBAAwB;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,+BAAc;SAC7B,CAAC,CAAC;IACP,CAAC;CACJ;AAbD,oCAaC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DiscoveryEntry } from '../model/discoveryEntry';\nimport { BaseApi } from './base.api';\n\n/**\n * Discovery service.\n */\nexport class DiscoveryApi extends BaseApi {\n /**\n * Get repository information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @returns Promise<DiscoveryEntry>\n */\n getRepositoryInformation(): Promise<DiscoveryEntry> {\n return this.get({\n path: '/discovery',\n returnType: DiscoveryEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"discovery.api.js","sourceRoot":"","sources":["discovery.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,4DAAyD;AACzD,yCAAqC;AAKrC,MAAa,YAAa,SAAQ,kBAAO;IAQrC,wBAAwB;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,+BAAc;SAC7B,CAAC,CAAC;IACP,CAAC;CACJ;AAdD,oCAcC","sourcesContent":["/*!\n * @license\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { DiscoveryEntry } from '../model/discoveryEntry';\nimport { BaseApi } from './base.api';\n\n/**\n * Discovery service.\n */\nexport class DiscoveryApi extends BaseApi {\n /**\n * Get repository information\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @returns Promise<DiscoveryEntry>\n */\n getRepositoryInformation(): Promise<DiscoveryEntry> {\n return this.get({\n path: '/discovery',\n returnType: DiscoveryEntry\n });\n }\n}\n"]}