@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":"downloads.api.js","sourceRoot":"","sources":["downloads.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAKlE,MAAM,OAAO,YAAa,SAAQ,OAAO;IAgBrC,cAAc,CAAC,UAAkB;QAC7B,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,yBAAyB;YAC/B,UAAU;SACb,CAAC,CAAC;IACP,CAAC;IAgBD,cAAc,CAAC,kBAAsC,EAAE,IAA4B;QAC/E,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAE5D,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,YAAY;YAClB,WAAW;YACX,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IAeD,WAAW,CAAC,UAAkB,EAAE,IAA4B;QACxD,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,yBAAyB;YAC/B,UAAU;YACV,WAAW;SACd,CAAC,CAAC;IACP,CAAC;CACJ","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 { DownloadBodyCreate, DownloadEntry } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\n\n/**\n * Downloads service.\n */\nexport class DownloadsApi extends BaseApi {\n /**\n * Cancel a download\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Cancels the creation of a download request.\n *\n * **Note:** The download node can be deleted using the **DELETE /nodes/{downloadId}** endpoint\n *\n * By default, if the download node is not deleted it will be picked up by a cleaner job which removes download nodes older than a configurable amount of time (default is 1 hour)\n * Information about the existing progress at the time of cancelling can be retrieved by calling the **GET /downloads/{downloadId}** endpoint\n * The cancel operation is done asynchronously.\n * @param downloadId The identifier of a download node.\n * @returns Promise<{}>\n */\n cancelDownload(downloadId: string): Promise<any> {\n throwIfNotDefined(downloadId, 'downloadId');\n\n const pathParams = {\n downloadId\n };\n\n return this.delete({\n path: '/downloads/{downloadId}',\n pathParams\n });\n }\n\n /**\n * Create a new download\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * **Note:** The content of the download node can be obtained using the **GET /nodes/{downloadId}/content** endpoint\n * @param downloadBodyCreate The nodeIds the content of which will be zipped, which zip will be set as the content of our download node.\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.\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<DownloadEntry>\n */\n createDownload(downloadBodyCreate: DownloadBodyCreate, opts?: { fields?: string[] }): Promise<DownloadEntry> {\n throwIfNotDefined(downloadBodyCreate, 'downloadBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/downloads',\n queryParams,\n bodyParam: downloadBodyCreate\n });\n }\n\n /**\n * Get a download\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * @param downloadId The identifier of a download node.\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.\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<DownloadEntry>\n */\n getDownload(downloadId: string, opts?: { fields?: string[] }): Promise<DownloadEntry> {\n throwIfNotDefined(downloadId, 'downloadId');\n\n const pathParams = {\n downloadId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/downloads/{downloadId}',\n pathParams,\n queryParams\n });\n }\n}\n"]}
1
+ {"version":3,"file":"downloads.api.js","sourceRoot":"","sources":["downloads.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAKlE,MAAM,OAAO,YAAa,SAAQ,OAAO;IAiBrC,cAAc,CAAC,UAAkB;QAC7B,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,yBAAyB;YAC/B,UAAU;SACb,CAAC,CAAC;IACP,CAAC;IAiBD,cAAc,CAAC,kBAAsC,EAAE,IAA4B;QAC/E,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAE5D,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,YAAY;YAClB,WAAW;YACX,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IAgBD,WAAW,CAAC,UAAkB,EAAE,IAA4B;QACxD,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,yBAAyB;YAC/B,UAAU;YACV,WAAW;SACd,CAAC,CAAC;IACP,CAAC;CACJ","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 { DownloadBodyCreate, DownloadEntry } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\n\n/**\n * Downloads service.\n */\nexport class DownloadsApi extends BaseApi {\n /**\n * Cancel a download\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Cancels the creation of a download request.\n *\n * **Note:** The download node can be deleted using the **DELETE /nodes/{downloadId}** endpoint\n *\n * By default, if the download node is not deleted it will be picked up by a cleaner job which removes download nodes older than a configurable amount of time (default is 1 hour)\n * Information about the existing progress at the time of cancelling can be retrieved by calling the **GET /downloads/{downloadId}** endpoint\n * The cancel operation is done asynchronously.\n *\n * @param downloadId The identifier of a download node.\n * @returns Promise<{}>\n */\n cancelDownload(downloadId: string): Promise<any> {\n throwIfNotDefined(downloadId, 'downloadId');\n\n const pathParams = {\n downloadId\n };\n\n return this.delete({\n path: '/downloads/{downloadId}',\n pathParams\n });\n }\n\n /**\n * Create a new download\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * **Note:** The content of the download node can be obtained using the **GET /nodes/{downloadId}/content** endpoint\n *\n * @param downloadBodyCreate The nodeIds the content of which will be zipped, which zip will be set as the content of our download node.\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.\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<DownloadEntry>\n */\n createDownload(downloadBodyCreate: DownloadBodyCreate, opts?: { fields?: string[] }): Promise<DownloadEntry> {\n throwIfNotDefined(downloadBodyCreate, 'downloadBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/downloads',\n queryParams,\n bodyParam: downloadBodyCreate\n });\n }\n\n /**\n * Get a download\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * @param downloadId The identifier of a download node.\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.\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<DownloadEntry>\n */\n getDownload(downloadId: string, opts?: { fields?: string[] }): Promise<DownloadEntry> {\n throwIfNotDefined(downloadId, 'downloadId');\n\n const pathParams = {\n downloadId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/downloads/{downloadId}',\n pathParams,\n queryParams\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"favorites.api.js","sourceRoot":"","sources":["favorites.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAsB,aAAa,EAAE,cAAc,EAA6C,SAAS,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC/I,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,OAAO,YAAa,SAAQ,OAAO;IAqBrC,cAAc,CACV,QAAgB,EAChB,kBAAsC,EACtC,IAAgD;QAEhD,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,iBAAiB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAE5D,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,WAAW;YACX,SAAS,EAAE,kBAAkB;YAC7B,UAAU,EAAE,aAAa;SAC5B,CAAC,CAAC;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xB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,mCAAmC;YACzC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,UAAU;SACzB,CAAC,CAAC;IACP,CAAC;IAWD,aAAa,CACT,QAAgB,EAChB,IAKsB;QAEtB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAElB,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,cAAc;SAC7B,CAAC,CAAC;IACP,CAAC;CACJ","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 { FavoriteBodyCreate, FavoriteEntry, FavoritePaging, FavoriteSiteBodyCreate, FavoriteSiteEntry, SiteEntry, SitePaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Favorites service.\n */\nexport class FavoritesApi extends BaseApi {\n /**\n * Create a favorite\n *\n * Favorite a **site**, **file**, or **folder** in the repository.\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 favoriteBodyCreate An object identifying the entity to be favorited.\n * The object consists of a single property which is an object with the name site, file, or folder.\n * The content of that object is the guid of the target entity.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\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<FavoriteEntry>\n */\n createFavorite(\n personId: string,\n favoriteBodyCreate: FavoriteBodyCreate,\n opts?: { include?: string[]; fields?: string[] }\n ): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteBodyCreate, 'favoriteBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n bodyParam: favoriteBodyCreate,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Create a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use /people/{personId}/favorites instead.\n * @param personId The identifier of a person.\n * @param favoriteSiteBodyCreate The id of the site to favorite.\n * @param opts Optional parameters\n * @returns Promise<FavoriteSiteEntry>\n */\n createSiteFavorite(personId: string, favoriteSiteBodyCreate: FavoriteSiteBodyCreate, opts?: ContentFieldsQuery): Promise<FavoriteSiteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteSiteBodyCreate, 'favoriteSiteBodyCreate');\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}/favorite-sites',\n pathParams,\n queryParams,\n bodyParam: favoriteSiteBodyCreate\n });\n }\n\n /**\n * Delete a favorite\n *\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 favoriteId The identifier of a favorite.\n * @returns Promise<{}>\n */\n deleteFavorite(personId: string, favoriteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n return this.delete({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams\n });\n }\n\n /**\n * Delete a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\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 deleteSiteFavorite(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}/favorite-sites/{siteId}',\n pathParams\n });\n }\n\n /**\n * Get a favorite\n *\n * Gets favorite **favoriteId** 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 favoriteId The identifier of a favorite.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\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<FavoriteEntry>\n */\n getFavorite(personId: string, favoriteId: string, opts?: { include?: string[]; fields?: string[] }): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams,\n queryParams,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Get a favorite site\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\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 * @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 getFavoriteSite(personId: string, siteId: string, opts?: { fields?: string[] }): Promise<SiteEntry> {\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}/favorite-sites/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteEntry\n });\n }\n\n /**\n * List favorite sites\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites instead.\n *\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<SitePaging>\n */\n listFavoriteSitesForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SitePaging> {\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}/favorite-sites',\n pathParams,\n queryParams,\n returnType: SitePaging\n });\n }\n\n /**\n * List favorites\n *\n * Gets a list of favorites 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<FavoritePaging>\n */\n listFavorites(\n personId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<FavoritePaging> {\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 where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n returnType: FavoritePaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"favorites.api.js","sourceRoot":"","sources":["favorites.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG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IAAI,EAAE,CAAC;QAElB,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,cAAc;SAC7B,CAAC,CAAC;IACP,CAAC;CACJ","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 { FavoriteBodyCreate, FavoriteEntry, FavoritePaging, FavoriteSiteBodyCreate, FavoriteSiteEntry, SiteEntry, SitePaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * Favorites service.\n */\nexport class FavoritesApi extends BaseApi {\n /**\n * Create a favorite\n *\n * Favorite a **site**, **file**, or **folder** in the repository.\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 favoriteBodyCreate An object identifying the entity to be favorited.\n * The object consists of a single property which is an object with the name site, file, or folder.\n * The content of that object is the guid of the target entity.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\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<FavoriteEntry>\n */\n createFavorite(\n personId: string,\n favoriteBodyCreate: FavoriteBodyCreate,\n opts?: { include?: string[]; fields?: string[] }\n ): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteBodyCreate, 'favoriteBodyCreate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n bodyParam: favoriteBodyCreate,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Create a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use /people/{personId}/favorites instead.\n *\n * @param personId The identifier of a person.\n * @param favoriteSiteBodyCreate The id of the site to favorite.\n * @param opts Optional parameters\n * @returns Promise<FavoriteSiteEntry>\n */\n createSiteFavorite(personId: string, favoriteSiteBodyCreate: FavoriteSiteBodyCreate, opts?: ContentFieldsQuery): Promise<FavoriteSiteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteSiteBodyCreate, 'favoriteSiteBodyCreate');\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}/favorite-sites',\n pathParams,\n queryParams,\n bodyParam: favoriteSiteBodyCreate\n });\n }\n\n /**\n * Delete a favorite\n *\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 favoriteId The identifier of a favorite.\n * @returns Promise<{}>\n */\n deleteFavorite(personId: string, favoriteId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n return this.delete({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams\n });\n }\n\n /**\n * Delete a site favorite\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\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 deleteSiteFavorite(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}/favorite-sites/{siteId}',\n pathParams\n });\n }\n\n /**\n * Get a favorite\n *\n * Gets favorite **favoriteId** 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 favoriteId The identifier of a favorite.\n * @param opts Optional parameters\n * @param opts.include Returns additional information about favorites, the following optional fields can be requested:\n * - path (note, this only applies to files and folders)\n * - properties\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<FavoriteEntry>\n */\n getFavorite(personId: string, favoriteId: string, opts?: { include?: string[]; fields?: string[] }): Promise<FavoriteEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(favoriteId, 'favoriteId');\n\n const pathParams = {\n personId,\n favoriteId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites/{favoriteId}',\n pathParams,\n queryParams,\n returnType: FavoriteEntry\n });\n }\n\n /**\n * Get a favorite site\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites/{favoriteId} instead.\n *\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 * @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 getFavoriteSite(personId: string, siteId: string, opts?: { fields?: string[] }): Promise<SiteEntry> {\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}/favorite-sites/{siteId}',\n pathParams,\n queryParams,\n returnType: SiteEntry\n });\n }\n\n /**\n * List favorite sites\n *\n * **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future.\n * Use /people/{personId}/favorites instead.\n *\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<SitePaging>\n */\n listFavoriteSitesForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<SitePaging> {\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}/favorite-sites',\n pathParams,\n queryParams,\n returnType: SitePaging\n });\n }\n\n /**\n * List favorites\n *\n * Gets a list of favorites 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<FavoritePaging>\n */\n listFavorites(\n personId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<FavoritePaging> {\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 where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/favorites',\n pathParams,\n queryParams,\n returnType: FavoritePaging\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"groups.api.js","sourceRoot":"","sources":["groups.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAkE,iBAAiB,EAA6B,WAAW,EAAE,MAAM,UAAU,CAAC;AACrJ,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAwClE,MAAM,OAAO,SAAU,SAAQ,OAAO;IAqBlC,WAAW,CAAC,eAAgC,EAAE,IAA+C;QACzF,iBAAiB,CA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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 { GroupBodyCreate, GroupBodyUpdate, GroupEntry, GroupMemberEntry, GroupMemberPaging, GroupMembershipBodyCreate, GroupPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\nexport interface ListGroupMembershipsOpts {\n /**\n * 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 *\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 *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field\n */\n orderBy?: string[];\n // A string to restrict the returned objects by using a predicate.\n where?: string;\n}\n\nexport interface GroupPagingOpts {\n /**\n * 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 *\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 *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n */\n orderBy?: string[];\n /**\n * A string to restrict the returned objects by using a predicate.\n */\n where?: string;\n}\n\nexport type DeleteGroupOpts = { cascade?: boolean };\n\n/**\n * Groups service.\n */\nexport class GroupsApi extends BaseApi {\n /**\n * Create a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group.\n *\n * The group id must start with \\\"GROUP\\\\_\\\". If this is omitted it will be added automatically.\n * This format is also returned when listing groups or group memberships. It should be noted\n * that the other group-related operations also expect the id to start with \\\"GROUP\\\\_\\\".\n *\n * If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups.\n * If no parentIds are specified then the group will be created as a root group.\n * The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones.\n *\n * You must have admin rights to create a group.\n * @param groupBodyCreate The group to create.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n createGroup(groupBodyCreate: GroupBodyCreate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupBodyCreate, 'groupBodyCreate');\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups',\n queryParams,\n bodyParam: groupBodyCreate\n });\n }\n\n /**\n * Create a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group membership (for an existing person or group) within a group **groupId**.\n * If the added group was previously a root group then it becomes a non-root group since it now has a parent.\n * It is an error to specify an **id** that does not exist.\n * You must have admin rights to create a group membership.\n * @param groupId The identifier of a group.\n * @param groupMembershipBodyCreate The group membership to add (person or sub-group).\n * @param opts Optional parameters\n * @returns Promise<GroupMemberEntry>\n */\n createGroupMembership(\n groupId: string,\n groupMembershipBodyCreate: GroupMembershipBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<GroupMemberEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMembershipBodyCreate, 'groupMembershipBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups/{groupId}/members',\n pathParams: { groupId },\n queryParams,\n bodyParam: groupMembershipBodyCreate\n });\n }\n\n /**\n * Delete a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group **groupId**.\n * The option to cascade delete applies this recursively to any hierarchy of group members.\n * In this case, removing a group member does not delete the person or sub-group itself.\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n * You must have admin rights to delete a group.\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise\n */\n deleteGroup(groupId: string, opts?: DeleteGroupOpts): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n opts = opts || {};\n\n const cascadeDelete = opts['cascade'] ? opts['cascade'] : false;\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n cascade: cascadeDelete\n };\n\n return this.delete({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Delete a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group member **groupMemberId** (person or sub-group) from group **groupId**.\n * Removing a group member does not delete the person or sub-group itself.\\\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n * @param groupId The identifier of a group.\n * @param groupMemberId The identifier of a person or group.\n * @returns Promise<{}>\n */\n deleteGroupMembership(groupId: string, groupMemberId: string): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMemberId, 'groupMemberId');\n\n const pathParams = {\n groupId,\n groupMemberId\n };\n\n return this.delete({\n path: '/groups/{groupId}/members/{groupMemberId}',\n pathParams\n });\n }\n\n /**\n * Get group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Get details for group **groupId**.\n * You can use the **include** parameter to return additional information.\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n getGroup(groupId: string, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * List memberships of a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Gets a list of the group memberships for the group **groupId**.\n *\n * You can use the **where** parameter to filter the returned groups by **memberType**.\n * Example to filter by **memberType**, use any one of:\n * - (memberType='GROUP')\n * - (memberType='PERSON')\n *\n * The default sort order for the returned list is for group members to be sorted by ascending displayName.\n * You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter:\n * - id\n * - displayName\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupMemberPaging>\n */\n listGroupMemberships(groupId: string, opts?: ListGroupMembershipsOpts & ContentPagingQuery & ContentFieldsQuery): Promise<GroupMemberPaging> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}/members',\n pathParams,\n queryParams,\n returnType: GroupMemberPaging\n });\n }\n\n /**\n * List group memberships\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @param opts.skipCount The number of entities that exist in the collection before those included in this list.\n * If not supplied then the default value is 0. (default to 0)\n * @param opts.maxItems The maximum number of items to return in the list. If not supplied then the default value is 100. (default to 100)\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.include Returns additional information about the group. The following optional fields can be requested:\n * - parentIds\n * - zones\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @param opts.fields A list of field names.\n * 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<GroupPaging>\n */\n listGroupMembershipsForPerson(\n personId: string,\n opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery\n ): Promise<GroupPaging> {\n throwIfNotDefined(personId, 'personId');\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 include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/groups',\n pathParams,\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * List groups\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * @param opts Optional parameters\n * @returns Promise<GroupPaging>\n */\n listGroups(opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<GroupPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups',\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * Update group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * You must have admin rights to update a group.\n * @param groupId The identifier of a group.\n * @param groupBodyUpdate The group information to update.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n updateGroup(groupId: string, groupBodyUpdate: GroupBodyUpdate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupBodyUpdate, 'groupBodyUpdate');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/groups/{groupId}',\n pathParams,\n queryParams,\n bodyParam: groupBodyUpdate\n });\n }\n}\n"]}
1
+ {"version":3,"file":"groups.api.js","sourceRoot":"","sources":["groups.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAkE,iBAAiB,EAA6B,WAAW,EAAE,MAAM,UAAU,CAAC;AACrJ,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAwClE,MAAM,OAAO,SAAU,SAAQ,OAAO;IAsBlC,WAAW,CAAC,eAAgC,EAAE,IAA+C;QACzF,iBAAiB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,SAAS;YACf,WAAW;YACX,SAAS,EAAE,eAAe;SAC7B,CAAC,CAAC;IACP,CAAC;IAiBD,qBAAqB,CACjB,OAAe,EACf,yBAAoD,EACpD,IAAyB;QAEzB,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtC,iBAAiB,CAAC,yBAAyB,EAAE,2BAA2B,CAAC,CAAC;QAE1E,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAA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QAEtD,MAAM,UAAU,GAAG;YACf,OAAO;SACV,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,mBAAmB;YACzB,UAAU;YACV,WAAW;YACX,SAAS,EAAE,eAAe;SAC7B,CAAC,CAAC;IACP,CAAC;CACJ","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 { GroupBodyCreate, GroupBodyUpdate, GroupEntry, GroupMemberEntry, GroupMemberPaging, GroupMembershipBodyCreate, GroupPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\nexport interface ListGroupMembershipsOpts {\n /**\n * 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 *\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 *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field\n */\n orderBy?: string[];\n // A string to restrict the returned objects by using a predicate.\n where?: string;\n}\n\nexport interface GroupPagingOpts {\n /**\n * 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 *\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 *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n */\n orderBy?: string[];\n /**\n * A string to restrict the returned objects by using a predicate.\n */\n where?: string;\n}\n\nexport type DeleteGroupOpts = { cascade?: boolean };\n\n/**\n * Groups service.\n */\nexport class GroupsApi extends BaseApi {\n /**\n * Create a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group.\n *\n * The group id must start with \\\"GROUP\\\\_\\\". If this is omitted it will be added automatically.\n * This format is also returned when listing groups or group memberships. It should be noted\n * that the other group-related operations also expect the id to start with \\\"GROUP\\\\_\\\".\n *\n * If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups.\n * If no parentIds are specified then the group will be created as a root group.\n * The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones.\n *\n * You must have admin rights to create a group.\n *\n * @param groupBodyCreate The group to create.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n createGroup(groupBodyCreate: GroupBodyCreate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupBodyCreate, 'groupBodyCreate');\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups',\n queryParams,\n bodyParam: groupBodyCreate\n });\n }\n\n /**\n * Create a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Create a group membership (for an existing person or group) within a group **groupId**.\n * If the added group was previously a root group then it becomes a non-root group since it now has a parent.\n * It is an error to specify an **id** that does not exist.\n * You must have admin rights to create a group membership.\n *\n * @param groupId The identifier of a group.\n * @param groupMembershipBodyCreate The group membership to add (person or sub-group).\n * @param opts Optional parameters\n * @returns Promise<GroupMemberEntry>\n */\n createGroupMembership(\n groupId: string,\n groupMembershipBodyCreate: GroupMembershipBodyCreate,\n opts?: ContentFieldsQuery\n ): Promise<GroupMemberEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMembershipBodyCreate, 'groupMembershipBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/groups/{groupId}/members',\n pathParams: { groupId },\n queryParams,\n bodyParam: groupMembershipBodyCreate\n });\n }\n\n /**\n * Delete a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group **groupId**.\n * The option to cascade delete applies this recursively to any hierarchy of group members.\n * In this case, removing a group member does not delete the person or sub-group itself.\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n * You must have admin rights to delete a group.\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise\n */\n deleteGroup(groupId: string, opts?: DeleteGroupOpts): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n opts = opts || {};\n\n const cascadeDelete = opts['cascade'] ? opts['cascade'] : false;\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n cascade: cascadeDelete\n };\n\n return this.delete({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * Delete a group membership\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Delete group member **groupMemberId** (person or sub-group) from group **groupId**.\n * Removing a group member does not delete the person or sub-group itself.\\\n * If a removed sub-group no longer has any parent groups then it becomes a root group.\n *\n * @param groupId The identifier of a group.\n * @param groupMemberId The identifier of a person or group.\n * @returns Promise<{}>\n */\n deleteGroupMembership(groupId: string, groupMemberId: string): Promise<void> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupMemberId, 'groupMemberId');\n\n const pathParams = {\n groupId,\n groupMemberId\n };\n\n return this.delete({\n path: '/groups/{groupId}/members/{groupMemberId}',\n pathParams\n });\n }\n\n /**\n * Get group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Get details for group **groupId**.\n * You can use the **include** parameter to return additional information.\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n getGroup(groupId: string, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}',\n pathParams,\n queryParams\n });\n }\n\n /**\n * List memberships of a group\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * Gets a list of the group memberships for the group **groupId**.\n *\n * You can use the **where** parameter to filter the returned groups by **memberType**.\n * Example to filter by **memberType**, use any one of:\n * - (memberType='GROUP')\n * - (memberType='PERSON')\n *\n * The default sort order for the returned list is for group members to be sorted by ascending displayName.\n * You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter:\n * - id\n * - displayName\n *\n * @param groupId The identifier of a group.\n * @param opts Optional parameters\n * @returns Promise<GroupMemberPaging>\n */\n listGroupMemberships(groupId: string, opts?: ListGroupMembershipsOpts & ContentPagingQuery & ContentFieldsQuery): Promise<GroupMemberPaging> {\n throwIfNotDefined(groupId, 'groupId');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups/{groupId}/members',\n pathParams,\n queryParams,\n returnType: GroupMemberPaging\n });\n }\n\n /**\n * List group memberships\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * @param personId The identifier of a person.\n * @param opts Optional parameters\n * @param opts.skipCount The number of entities that exist in the collection before those included in this list.\n * If not supplied then the default value is 0. (default to 0)\n * @param opts.maxItems The maximum number of items to return in the list. If not supplied then the default value is 100. (default to 100)\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.include Returns additional information about the group. The following optional fields can be requested:\n * - parentIds\n * - zones\n * @param opts.where A string to restrict the returned objects by using a predicate.\n * @param opts.fields A list of field names.\n * 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<GroupPaging>\n */\n listGroupMembershipsForPerson(\n personId: string,\n opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery\n ): Promise<GroupPaging> {\n throwIfNotDefined(personId, 'personId');\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 include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/groups',\n pathParams,\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * List groups\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n *\n * @param opts Optional parameters\n * @returns Promise<GroupPaging>\n */\n listGroups(opts?: GroupPagingOpts & ContentPagingQuery & ContentIncludeQuery & ContentFieldsQuery): Promise<GroupPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n where: opts?.where,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/groups',\n queryParams,\n returnType: GroupPaging\n });\n }\n\n /**\n * Update group details\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * You must have admin rights to update a group.\n *\n * @param groupId The identifier of a group.\n * @param groupBodyUpdate The group information to update.\n * @param opts Optional parameters\n * @returns Promise<GroupEntry>\n */\n updateGroup(groupId: string, groupBodyUpdate: GroupBodyUpdate, opts?: ContentIncludeQuery & ContentFieldsQuery): Promise<GroupEntry> {\n throwIfNotDefined(groupId, 'groupId');\n throwIfNotDefined(groupBodyUpdate, 'groupBodyUpdate');\n\n const pathParams = {\n groupId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/groups/{groupId}',\n pathParams,\n queryParams,\n bodyParam: groupBodyUpdate\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"networks.api.js","sourceRoot":"","sources":["networks.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,OAAO,WAAY,SAAQ,OAAO;IAOpC,UAAU,CAAC,SAAiB,EAAE,IAAyB;QACnD,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAG;YACf,SAAS;SACZ,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,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,CAAC;IACP,CAAC;CACJ","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 { PersonNetworkEntry } from '../model/personNetworkEntry';\nimport { PersonNetworkPaging } from '../model/personNetworkPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentPagingQuery } from './types';\n\n/**\n * Networks service.\n */\nexport class NetworksApi extends BaseApi {\n /**\n * Get a network\n * @param networkId The identifier of a network.\n * @param opts Optional parameters\n * @returns Promise<PersonNetworkEntry>\n */\n getNetwork(networkId: string, opts?: ContentFieldsQuery): Promise<PersonNetworkEntry> {\n throwIfNotDefined(networkId, 'networkId');\n\n const pathParams = {\n networkId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/networks/{networkId}',\n pathParams,\n queryParams,\n returnType: PersonNetworkEntry\n });\n }\n\n /**\n * Get network information\n *\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 networkId The identifier of a network.\n * @param opts Optional parameters\n * @returns Promise<PersonNetworkEntry>\n */\n getNetworkForPerson(personId: string, networkId: string, opts?: ContentFieldsQuery): Promise<PersonNetworkEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(networkId, 'networkId');\n\n const pathParams = {\n personId,\n networkId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/networks/{networkId}',\n pathParams,\n queryParams,\n returnType: PersonNetworkEntry\n });\n }\n\n /**\n * List network membership\n *\n * Gets a list of network memberships 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<PersonNetworkPaging>\n */\n listNetworksForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<PersonNetworkPaging> {\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}/networks',\n pathParams,\n queryParams,\n returnType: PersonNetworkPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"networks.api.js","sourceRoot":"","sources":["networks.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,OAAO,WAAY,SAAQ,OAAO;IAQpC,UAAU,CAAC,SAAiB,EAAE,IAAyB;QACnD,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAG;YACf,SAAS;SACZ,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,uBAAuB;YAC7B,UAAU;YACV,WAAW;YACX,UAAU,EAAE,kBAAkB;SACjC,CAAC,CAAC;IACP,CAAC;IAYD,mBAAmB,CAAC,QAAgB,EAAE,SAAiB,EAAE,IAAyB;QAC9E,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,iBAAiB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,MAAM,UAAU,GAAG;YACf,QAAQ;YACR,SAAS;SACZ,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,yCAAyC;YAC/C,UAAU;YACV,WAAW;YACX,UAAU,EAAE,kBAAkB;SACjC,CAAC,CAAC;IACP,CAAC;IAYD,qBAAqB,CAAC,QAAgB,EAAE,IAA8C;QAClF,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,mBAAmB;SAClC,CAAC,CAAC;IACP,CAAC;CACJ","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 { PersonNetworkEntry } from '../model/personNetworkEntry';\nimport { PersonNetworkPaging } from '../model/personNetworkPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentPagingQuery } from './types';\n\n/**\n * Networks service.\n */\nexport class NetworksApi extends BaseApi {\n /**\n * Get a network\n *\n * @param networkId The identifier of a network.\n * @param opts Optional parameters\n * @returns Promise<PersonNetworkEntry>\n */\n getNetwork(networkId: string, opts?: ContentFieldsQuery): Promise<PersonNetworkEntry> {\n throwIfNotDefined(networkId, 'networkId');\n\n const pathParams = {\n networkId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/networks/{networkId}',\n pathParams,\n queryParams,\n returnType: PersonNetworkEntry\n });\n }\n\n /**\n * Get network information\n *\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 networkId The identifier of a network.\n * @param opts Optional parameters\n * @returns Promise<PersonNetworkEntry>\n */\n getNetworkForPerson(personId: string, networkId: string, opts?: ContentFieldsQuery): Promise<PersonNetworkEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(networkId, 'networkId');\n\n const pathParams = {\n personId,\n networkId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}/networks/{networkId}',\n pathParams,\n queryParams,\n returnType: PersonNetworkEntry\n });\n }\n\n /**\n * List network membership\n *\n * Gets a list of network memberships 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<PersonNetworkPaging>\n */\n listNetworksForPerson(personId: string, opts?: ContentPagingQuery & ContentFieldsQuery): Promise<PersonNetworkPaging> {\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}/networks',\n pathParams,\n queryParams,\n returnType: PersonNetworkPaging\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.api.js","sourceRoot":"","sources":["nodes.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;AAEH,OAAO,EAIH,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EAErB,cAAc,EAId,0BAA0B,EAC1B,SAAS,EACT,gBAAgB,EAChB,cAAc,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AA8ClE,MAAM,OAAO,QAAS,SAAQ,OAAO;IAkBjC,QAAQ,CAAC,MAAc,EAAE,YAA0B,EAAE,IAAwB;QACzE,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAEhD,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAA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AAC,GAAG,CAAC;YACZ,IAAI,EAAE,yBAAyB;YAC/B,UAAU;YACV,WAAW;YACX,YAAY,EAAE,CAAC,0BAA0B,CAAC;YAC1C,SAAS,EAAE,iBAAiB;YAC5B,UAAU,EAAE,SAAS;SACxB,CAAC,CAAC;IACP,CAAC;IASD,sBAAsB,CAAC,MAAc;QACjC,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,2CAA2C;YACjD,UAAU;YACV,UAAU,EAAE,oBAAoB;SACnC,CAAC,CAAC;IACP,CAAC;IASD,6BAA6B,CAAC,MAAc;QACxC,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,UAAU,EAAE,cAAc;SAC7B,CAAC,CAAC;IACP,CAAC;IAWD,iBAAiB,CAAC,MAAc,EAAE,KAAa;QAC3C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,UAAU,GAAG;YACf,MAAM;YACN,KAAK;SACR,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,qCAAqC;YAC3C,UAAU;YACV,UAAU,EAAE,gBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ","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 AssociationBody,\n AssociationEntry,\n ChildAssociationBody,\n ChildAssociationEntry,\n DirectAccessUrlEntry,\n NodeAssociationPaging,\n NodeBodyCopy,\n NodeBodyCreate,\n NodeBodyLock,\n NodeBodyMove,\n NodeBodyUpdate,\n NodeChildAssociationPaging,\n NodeEntry,\n SizeDetailsEntry,\n JobIdBodyEntry\n} from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentPagingQuery } from './types';\n\nexport type NodesIncludeQuery = {\n /**\n * Returns additional information about the node. The following optional fields can be requested:\n * - allowableOperations\n * - association\n * - isLink\n * - isFavorite\n * - isLocked\n * - path\n * - permissions\n * - definition\n */\n include?: string[];\n\n /**\n * A list of field names.\n *\n * 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 *\n * The list applies to a returned individual\n * entity or entries within a collection.\n *\n * If the API method also supports the **include**\n * parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n */\n fields?: string[];\n};\n\nexport interface CreateNodeOpts extends NodesIncludeQuery {\n [key: string]: any;\n // If true, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n autoRename?: boolean;\n // If true, then created node will be version 1.0 MAJOR. If false, then created node will be version 0.1 MINOR.\n majorVersion?: boolean;\n // If true, then created node will be versioned. If false, then created node will be unversioned and auto-versioning disabled.\n versioningEnabled?: boolean;\n}\n\n/**\n * Nodes service.\n */\nexport class NodesApi extends BaseApi {\n /**\n * Copy a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Copies the node **nodeId** to the parent folder node **targetParentId**. You specify the **targetParentId** in the request body.\n *\n * The new node has the same name as the source node unless you specify a new **name** in the request body.\n *\n * If the source **nodeId** is a folder, then all of its children are also copied.\n *\n * If the source **nodeId** is a file, it's properties, aspects and tags are copied, it's ratings, comments and locks are not.\n * @param nodeId The identifier of a node.\n * @param nodeBodyCopy The targetParentId and, optionally, a new name which should include the file extension.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n copyNode(nodeId: string, nodeBodyCopy: NodeBodyCopy, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyCopy, 'nodeBodyCopy');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/copy',\n pathParams,\n queryParams,\n bodyParam: nodeBodyCopy,\n returnType: NodeEntry\n });\n }\n\n /**\n * Create node association\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a source node.\n * @param associationBodyCreate The target node id and assoc type.\n * @param opts Optional parameters\n * @param opts.fields A list of field names.\n * 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<AssociationEntry>\n */\n createAssociation(nodeId: string, associationBodyCreate: AssociationBody, opts?: { fields?: string[] }): Promise<AssociationEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(associationBodyCreate, 'associationBodyCreate');\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}/targets',\n pathParams,\n queryParams,\n bodyParam: associationBodyCreate\n });\n }\n\n /**\n * Create a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a node. You can also use one of these well-known aliases:\n * -my-\n * -shared-\n * -root-\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If true, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @param opts.include Returns additional information about the node. The following optional fields can be requested:\n * - allowableOperations\n * - association\n * - isLink\n * - isFavorite\n * - isLocked\n * - path\n * - permissions\n * - definition\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 * @param formParams parameters\n * @returns Promise<NodeEntry>\n */\n createNode(nodeId: string, nodeBodyCreate: NodeBodyCreate, opts?: CreateNodeOpts, formParams?: any): Promise<NodeEntry | any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n formParams = formParams || {};\n\n let contentTypes;\n let returnType;\n\n if (formParams.filedata) {\n contentTypes = ['multipart/form-data'];\n } else {\n contentTypes = ['application/json'];\n returnType = NodeEntry;\n }\n\n return this.post({\n path: '/nodes/{nodeId}/children',\n pathParams,\n queryParams,\n formParams,\n bodyParam: nodeBodyCreate,\n contentTypes,\n returnType\n });\n }\n\n /**\n * Create a folder\n * @param name - folder name\n * @param relativePath - The relativePath specifies the folder structure to create relative to the node identified by nodeId.\n * @param nodeId default value root.The identifier of a node where add the folder. You can also use one of these well-known aliases: -my- | -shared- | -root-\n * @param opts Optional parameters\n * @returns A promise that is resolved if the folder is created and {error} if rejected.\n */\n createFolder(name: string, relativePath: string, nodeId: string, opts?: CreateNodeOpts): Promise<NodeEntry> {\n nodeId = nodeId || '-root-';\n\n const nodeBody = new NodeBodyCreate({\n name,\n relativePath,\n nodeType: 'cm:folder'\n });\n\n return this.createNode(nodeId, nodeBody, opts);\n }\n\n /**\n * Create secondary child\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a parent node.\n * @param secondaryChildAssociationBodyCreate The child node id and assoc type.\n * @param opts Optional parameters\n * @param opts.fields A list of field names.\n * You can use this parameter to restrict the fields 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<ChildAssociationEntry>\n */\n createSecondaryChildAssociation(\n nodeId: string,\n secondaryChildAssociationBodyCreate: ChildAssociationBody,\n opts?: {\n fields?: string[];\n }\n ): Promise<ChildAssociationEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(secondaryChildAssociationBodyCreate, 'secondaryChildAssociationBodyCreate');\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}/secondary-children',\n pathParams,\n queryParams,\n bodyParam: secondaryChildAssociationBodyCreate,\n returnType: ChildAssociationEntry\n });\n }\n /**\n * Delete node association(s)\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Delete an association, or associations, from the source **nodeId* to a target node for the given association type.\n * If the association type is **not** specified, then all peer associations, of any type, in the direction\n * from source to target, are deleted.\n * **Note:** After removal of the peer association, or associations, from source to target, the two nodes may still have peer associations in the other direction.\n * @param nodeId The identifier of a source node.\n * @param targetId The identifier of a target node.\n * @param opts Optional parameters\n * @param opts.assocType Only delete associations of this type.\n * @returns Promise<{}>\n */\n deleteAssociation(nodeId: string, targetId: string, opts?: { assocType?: string }): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(targetId, 'targetId');\n\n const pathParams = {\n nodeId,\n targetId\n };\n\n const queryParams = {\n assocType: opts?.assocType\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/targets/{targetId}',\n pathParams,\n queryParams\n });\n }\n /**\n * Delete a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * If **nodeId** is a folder, then its children are also deleted.\n * Deleted nodes move to the trashcan unless the **permanent** query parameter is **true** and the current user is the owner of the node or an admin.\n *\n * Deleting a node deletes it from its primary parent and also from any secondary parents. Peer associations are also deleted, where the deleted\n * node is either a source or target of an association. This applies recursively to any hierarchy of primary children of the deleted node.\n *\n * **Note:** If the node is not permanently deleted, and is later successfully restored to its former primary parent, then the primary\n * child association is restored. This applies recursively for any primary children. No other secondary child associations or\n * peer associations are restored for any of the nodes in the primary parent-child hierarchy of restored nodes, regardless of whether the original\n * associations were to nodes inside or outside the restored hierarchy.\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.permanent If **true** then the node is deleted permanently, without moving to the trashcan.\n * Only the owner of the node or an admin can permanently delete the node. (default to false)\n * @returns Promise<{}>\n */\n deleteNode(nodeId: string, opts?: { permanent?: boolean }): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n permanent: opts?.permanent\n };\n\n return this.delete({\n path: '/nodes/{nodeId}',\n pathParams,\n queryParams\n });\n }\n /**\n * Delete multiple nodes\n * @param nodeIds The list of node IDs to delete.\n * @param opts Optional parameters\n * @param opts.permanent If **true** then nodes are deleted permanently, without moving to the trashcan.\n * Only the owner of the node or an admin can permanently delete the node. (default to false)\n * @returns Promise<[]>\n */\n async deleteNodes(nodeIds: string[], opts?: { permanent?: boolean }): Promise<void[]> {\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n const promises = [];\n\n for (const id of nodeIds) {\n promises.push(await this.deleteNode(id, opts));\n }\n\n return Promise.all(promises);\n }\n\n /**\n * Delete secondary child or children\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Delete secondary child associations between the parent **nodeId** and child nodes for the given association type.\n *\n * If the association type is **not** specified, then all secondary child associations, of any type in the direction\n * from parent to secondary child, will be deleted. The child will still have a primary parent and may still be\n * associated as a secondary child with other secondary parents.\n * @param nodeId The identifier of a parent node.\n * @param childId The identifier of a child node.\n * @param opts Optional parameters\n * @param opts.assocType Only delete associations of this type.\n * @returns Promise<{}>\n */\n deleteSecondaryChildAssociation(nodeId: string, childId: string, opts?: { assocType?: string }): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(childId, 'childId');\n\n const pathParams = {\n nodeId,\n childId\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/secondary-children/{childId}',\n pathParams,\n queryParams: opts\n });\n }\n\n /**\n * Get a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * You can use the **include** parameter to return additional information.\n * @param nodeId The identifier of a node. You can also use one of these well-known aliases:\n * - -my-\n * - -shared-\n * - -root-\n * @param opts Optional parameters\n * @param opts.relativePath A path relative to the **nodeId**. If you set this, information is returned on the node resolved by this path.\n * @returns Promise<NodeEntry>\n */\n getNode(nodeId: string, opts?: { relativePath?: string } & NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n relativePath: opts?.relativePath,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}',\n pathParams,\n queryParams,\n returnType: NodeEntry\n });\n }\n\n /**\n * Get 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 getNodeContent(\n nodeId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n attachment: opts?.attachment ?? null\n };\n\n const headerParams = {};\n\n if (opts?.ifModifiedSince) {\n Object.defineProperty(headerParams, 'If-Modified-Since', { value: opts?.ifModifiedSince });\n }\n\n if (opts?.range) {\n Object.defineProperty(headerParams, 'Range', { value: opts?.range });\n }\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List node children\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of children of the parent node **nodeId**.\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter to return additional information.\n * The list of child nodes includes primary children and secondary children, if there are any.\n * You can use the **include** parameter (include=association) to return child association details\n * for each child, including the **assocTyp**e and the **isPrimary** flag.\n *\n * The default sort order for the returned list is for folders to be sorted before files, and by ascending name.\n *\n * You can override the default using **orderBy** to specify one or more fields to sort by. The default order is always ascending, but\n * you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order.\n *\n * For example, specifying orderBy=name DESC returns a mixed folder/file list in descending **name** order.\n * You can use any of the following fields to order the results:\n * - isFolder\n * - name\n * - mimeType\n * - nodeType\n * - sizeInBytes\n * - modifiedAt\n * - createdAt\n * - modifiedByUser\n * - createdByUser\n * @param nodeId The identifier of a node. You can also use one of these well-known aliases:\n * - -my-\n * - -shared-\n * - -root-\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 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.where Optionally filter the list. Here are some examples:\n * - where=(isFolder=true)\n * - where=(isFile=true)\n * - where=(nodeType='my:specialNodeType')\n * - where=(nodeType='my:specialNodeType INCLUDESUBTYPES')\n * - where=(isPrimary=true)\n * - where=(assocType='my:specialAssocType')\n * - where=(isPrimary=false and assocType='my:specialAssocType')\n * @param opts.relativePath Return information on children in the folder resolved by this path. The path is relative to **nodeId**.\n * @param opts.includeSource Also include **source** in addition to **entries** with folder information on the parent node – either the specified parent **nodeId**, or as resolved by **relativePath**.\n * @returns Promise<NodeChildAssociationPaging>\n */\n listNodeChildren(\n nodeId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n relativePath?: string;\n includeSource?: boolean;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeChildAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n relativePath: opts?.relativePath,\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/children',\n pathParams,\n queryParams,\n returnType: NodeChildAssociationPaging\n });\n }\n\n /**\n * List parents\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of parent nodes that are associated with the current child **nodeId**.\n * The list includes both the primary parent and any secondary parents.\n * @param nodeId The identifier of a child node. You can also use one of these well-known aliases:\n * - -my-\n * - -shared-\n * - -root-\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by **assocType** and/or **isPrimary**. Here are some example filters:\n * - where=(assocType='my:specialAssocType')\n * - where=(isPrimary=true)\n * - where=(isPrimary=false and assocType='my:specialAssocType')\n * @param opts.includeSource Also include **source** (in addition to **entries**) with folder information on **nodeId**\n * @returns Promise<NodeAssociationPaging>\n */\n listParents(\n nodeId: string,\n opts?: {\n where?: string;\n includeSource?: boolean;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/parents',\n pathParams,\n queryParams,\n returnType: NodeAssociationPaging\n });\n }\n\n /**\n * List secondary children\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of secondary child nodes that are associated with the current parent **nodeId**, via a secondary child association.\n * @param nodeId The identifier of a parent node. You can also use one of these well-known aliases:\n * -my-\n * -shared-\n * -root-\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by assocType. Here's an example:\n * - where=(assocType='my:specialAssocType')\n * @param opts.includeSource Also include **source** (in addition to **entries**) with folder information on **nodeId**\n * @returns Promise<NodeChildAssociationPaging>\n */\n listSecondaryChildren(\n nodeId: string,\n opts?: {\n where?: string;\n includeSource?: boolean;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeChildAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/secondary-children',\n pathParams,\n queryParams,\n returnType: NodeChildAssociationPaging\n });\n }\n\n /**\n * List source associations\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * @param nodeId The identifier of a target node.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by **assocType**. Here's an example:\n * - where=(assocType='my:specialAssocType')\n * @returns Promise<NodeAssociationPaging>\n */\n listSourceAssociations(\n nodeId: string,\n opts?: {\n where?: string;\n } & NodesIncludeQuery\n ): Promise<NodeAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/sources',\n pathParams,\n queryParams,\n returnType: NodeAssociationPaging\n });\n }\n\n /**\n * List target associations\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of target nodes that are associated with the current source **nodeId**.\n * @param nodeId The identifier of a source node.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by **assocType**. Here's an example:\n * - where=(assocType='my:specialAssocType')\n * @returns Promise<NodeAssociationPaging>\n */\n listTargetAssociations(\n nodeId: string,\n opts?: {\n where?: string;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\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: '/nodes/{nodeId}/targets',\n pathParams,\n queryParams,\n returnType: NodeAssociationPaging\n });\n }\n\n /**\n * Lock a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * If a lock on the node cannot be taken, then an error is returned.\n * @param nodeId The identifier of a node.\n * @param nodeBodyLock Lock details.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n lockNode(nodeId: string, nodeBodyLock: NodeBodyLock, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyLock, 'nodeBodyLock');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/lock',\n pathParams,\n queryParams,\n bodyParam: nodeBodyLock,\n returnType: NodeEntry\n });\n }\n\n /**\n * Move a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * The **targetParentId** is specified in the in request body.\n * The moved node retains its name unless you specify a new **name** in the request body.\n * If the source **nodeId** is a folder, then its children are also moved.\n * The move will effectively change the primary parent.\n * @param nodeId The identifier of a node.\n * @param nodeBodyMove The targetParentId and, optionally, a new name which should include the file extension.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n moveNode(nodeId: string, nodeBodyMove: NodeBodyMove, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyMove, 'nodeBodyMove');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/move',\n pathParams,\n queryParams,\n bodyParam: nodeBodyMove,\n returnType: NodeEntry\n });\n }\n\n /**\n * Unlock a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * The current user must be the owner of the locks or have admin rights, otherwise an error is returned.\n * If a lock on the node cannot be released, then an error is returned.\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n unlockNode(nodeId: string, opts?: NodesIncludeQuery): Promise<NodeEntry> {\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 };\n\n return this.post({\n path: '/nodes/{nodeId}/unlock',\n pathParams,\n queryParams,\n returnType: NodeEntry\n });\n }\n\n /**\n * Update a 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 nodeBodyUpdate The node information to update.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n updateNode(nodeId: string, nodeBodyUpdate: NodeBodyUpdate, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyUpdate, 'nodeBodyUpdate');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/nodes/{nodeId}',\n pathParams,\n queryParams,\n bodyParam: nodeBodyUpdate,\n returnType: NodeEntry\n });\n }\n /**\n * Update 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 contentBodyUpdate The binary content\n * @param opts Optional parameters\n * @param opts.majorVersion If **true**, create a major version.\n * Setting this parameter also enables versioning of this node, if it is not already versioned. (default to false)\n * @param opts.comment Add a version comment which will appear in version history.\n * Setting this parameter also enables versioning of this node, if it is not already versioned.\n * @param opts.name Optional new name. This should include the file extension.\n * The name must not contain spaces or the following special characters: * \\\" < > \\\\ / ? : and |.\n * The character . must not be used at the end of the name.\n * @returns Promise<NodeEntry>\n */\n updateNodeContent(\n nodeId: string,\n contentBodyUpdate: string,\n opts?: {\n majorVersion?: boolean;\n comment?: string;\n name?: string;\n } & NodesIncludeQuery\n ): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(contentBodyUpdate, 'contentBodyUpdate');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n majorVersion: opts?.majorVersion,\n comment: opts?.comment,\n name: opts?.name,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/nodes/{nodeId}/content',\n pathParams,\n queryParams,\n contentTypes: ['application/octet-stream'],\n bodyParam: contentBodyUpdate,\n returnType: NodeEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given 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: '/nodes/{nodeId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n\n /**\n * Initiate a new request to calculate folder size.\n *\n * **Note:** this endpoint is available in Alfresco 25.1.0 and newer versions.\n * @param nodeId Node Id\n * @returns The job id which can be used to track request status\n */\n initiateFolderSizeCalculation(nodeId: string): Promise<JobIdBodyEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/size-details',\n pathParams,\n returnType: JobIdBodyEntry\n });\n }\n\n /**\n * Gets the size of a folder.\n *\n * **Note:** this endpoint is available in Alfresco 25.1.0 and newer versions.\n * @param nodeId Node Id\n * @param jobId Job Id\n * @returns Folder details\n */\n\n getFolderSizeInfo(nodeId: string, jobId: string): Promise<SizeDetailsEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(jobId, 'jobId');\n\n const pathParams = {\n nodeId,\n jobId\n };\n\n return this.get({\n path: 'nodes/{nodeId}/size-details/{jobId}',\n pathParams,\n retur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AC,IAAI,CAAC;YACb,IAAI,EAAE,2CAA2C;YACjD,UAAU;YACV,UAAU,EAAE,oBAAoB;SACnC,CAAC,CAAC;IACP,CAAC;IAUD,6BAA6B,CAAC,MAAc;QACxC,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,UAAU,EAAE,cAAc;SAC7B,CAAC,CAAC;IACP,CAAC;IAYD,iBAAiB,CAAC,MAAc,EAAE,KAAa;QAC3C,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACpC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElC,MAAM,UAAU,GAAG;YACf,MAAM;YACN,KAAK;SACR,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,qCAAqC;YAC3C,UAAU;YACV,UAAU,EAAE,gBAAgB;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ","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 AssociationBody,\n AssociationEntry,\n ChildAssociationBody,\n ChildAssociationEntry,\n DirectAccessUrlEntry,\n NodeAssociationPaging,\n NodeBodyCopy,\n NodeBodyCreate,\n NodeBodyLock,\n NodeBodyMove,\n NodeBodyUpdate,\n NodeChildAssociationPaging,\n NodeEntry,\n SizeDetailsEntry,\n JobIdBodyEntry\n} from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentPagingQuery } from './types';\n\nexport type NodesIncludeQuery = {\n /**\n * Returns additional information about the node. The following optional fields can be requested:\n * - allowableOperations\n * - association\n * - isLink\n * - isFavorite\n * - isLocked\n * - path\n * - permissions\n * - definition\n */\n include?: string[];\n\n /**\n * A list of field names.\n *\n * 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 *\n * The list applies to a returned individual\n * entity or entries within a collection.\n *\n * If the API method also supports the **include**\n * parameter, then the fields specified in the **include**\n * parameter are returned in addition to those specified in the **fields** parameter.\n */\n fields?: string[];\n};\n\nexport interface CreateNodeOpts extends NodesIncludeQuery {\n [key: string]: any;\n // If true, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n autoRename?: boolean;\n // If true, then created node will be version 1.0 MAJOR. If false, then created node will be version 0.1 MINOR.\n majorVersion?: boolean;\n // If true, then created node will be versioned. If false, then created node will be unversioned and auto-versioning disabled.\n versioningEnabled?: boolean;\n}\n\n/**\n * Nodes service.\n */\nexport class NodesApi extends BaseApi {\n /**\n * Copy a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Copies the node **nodeId** to the parent folder node **targetParentId**. You specify the **targetParentId** in the request body.\n *\n * The new node has the same name as the source node unless you specify a new **name** in the request body.\n *\n * If the source **nodeId** is a folder, then all of its children are also copied.\n *\n * If the source **nodeId** is a file, it's properties, aspects and tags are copied, it's ratings, comments and locks are not.\n *\n * @param nodeId The identifier of a node.\n * @param nodeBodyCopy The targetParentId and, optionally, a new name which should include the file extension.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n copyNode(nodeId: string, nodeBodyCopy: NodeBodyCopy, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyCopy, 'nodeBodyCopy');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/copy',\n pathParams,\n queryParams,\n bodyParam: nodeBodyCopy,\n returnType: NodeEntry\n });\n }\n\n /**\n * Create node association\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a source node.\n * @param associationBodyCreate The target node id and assoc type.\n * @param opts Optional parameters\n * @param opts.fields A list of field names.\n * 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<AssociationEntry>\n */\n createAssociation(nodeId: string, associationBodyCreate: AssociationBody, opts?: { fields?: string[] }): Promise<AssociationEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(associationBodyCreate, 'associationBodyCreate');\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}/targets',\n pathParams,\n queryParams,\n bodyParam: associationBodyCreate\n });\n }\n\n /**\n * Create a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a node. You can also use one of these well-known aliases:\n * -my-\n * -shared-\n * -root-\n * @param nodeBodyCreate The node information to create.\n * @param opts Optional parameters\n * @param opts.autoRename If true, then a name clash will cause an attempt to auto rename by finding a unique name using an integer suffix.\n * @param opts.include Returns additional information about the node. The following optional fields can be requested:\n * - allowableOperations\n * - association\n * - isLink\n * - isFavorite\n * - isLocked\n * - path\n * - permissions\n * - definition\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 * @param formParams parameters\n * @returns Promise<NodeEntry>\n */\n createNode(nodeId: string, nodeBodyCreate: NodeBodyCreate, opts?: CreateNodeOpts, formParams?: any): Promise<NodeEntry | any> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n formParams = formParams || {};\n\n let contentTypes;\n let returnType;\n\n if (formParams.filedata) {\n contentTypes = ['multipart/form-data'];\n } else {\n contentTypes = ['application/json'];\n returnType = NodeEntry;\n }\n\n return this.post({\n path: '/nodes/{nodeId}/children',\n pathParams,\n queryParams,\n formParams,\n bodyParam: nodeBodyCreate,\n contentTypes,\n returnType\n });\n }\n\n /**\n * Create a folder\n *\n * @param name - folder name\n * @param relativePath - The relativePath specifies the folder structure to create relative to the node identified by nodeId.\n * @param nodeId default value root.The identifier of a node where add the folder. You can also use one of these well-known aliases: -my- | -shared- | -root-\n * @param opts Optional parameters\n * @returns A promise that is resolved if the folder is created and {error} if rejected.\n */\n createFolder(name: string, relativePath: string, nodeId: string, opts?: CreateNodeOpts): Promise<NodeEntry> {\n nodeId = nodeId || '-root-';\n\n const nodeBody = new NodeBodyCreate({\n name,\n relativePath,\n nodeType: 'cm:folder'\n });\n\n return this.createNode(nodeId, nodeBody, opts);\n }\n\n /**\n * Create secondary child\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a parent node.\n * @param secondaryChildAssociationBodyCreate The child node id and assoc type.\n * @param opts Optional parameters\n * @param opts.fields A list of field names.\n * You can use this parameter to restrict the fields 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<ChildAssociationEntry>\n */\n createSecondaryChildAssociation(\n nodeId: string,\n secondaryChildAssociationBodyCreate: ChildAssociationBody,\n opts?: {\n fields?: string[];\n }\n ): Promise<ChildAssociationEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(secondaryChildAssociationBodyCreate, 'secondaryChildAssociationBodyCreate');\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}/secondary-children',\n pathParams,\n queryParams,\n bodyParam: secondaryChildAssociationBodyCreate,\n returnType: ChildAssociationEntry\n });\n }\n /**\n * Delete node association(s)\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Delete an association, or associations, from the source **nodeId* to a target node for the given association type.\n * If the association type is **not** specified, then all peer associations, of any type, in the direction\n * from source to target, are deleted.\n * **Note:** After removal of the peer association, or associations, from source to target, the two nodes may still have peer associations in the other direction.\n *\n * @param nodeId The identifier of a source node.\n * @param targetId The identifier of a target node.\n * @param opts Optional parameters\n * @param opts.assocType Only delete associations of this type.\n * @returns Promise<{}>\n */\n deleteAssociation(nodeId: string, targetId: string, opts?: { assocType?: string }): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(targetId, 'targetId');\n\n const pathParams = {\n nodeId,\n targetId\n };\n\n const queryParams = {\n assocType: opts?.assocType\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/targets/{targetId}',\n pathParams,\n queryParams\n });\n }\n /**\n * Delete a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * If **nodeId** is a folder, then its children are also deleted.\n * Deleted nodes move to the trashcan unless the **permanent** query parameter is **true** and the current user is the owner of the node or an admin.\n *\n * Deleting a node deletes it from its primary parent and also from any secondary parents. Peer associations are also deleted, where the deleted\n * node is either a source or target of an association. This applies recursively to any hierarchy of primary children of the deleted node.\n *\n * **Note:** If the node is not permanently deleted, and is later successfully restored to its former primary parent, then the primary\n * child association is restored. This applies recursively for any primary children. No other secondary child associations or\n * peer associations are restored for any of the nodes in the primary parent-child hierarchy of restored nodes, regardless of whether the original\n * associations were to nodes inside or outside the restored hierarchy.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @param opts.permanent If **true** then the node is deleted permanently, without moving to the trashcan.\n * Only the owner of the node or an admin can permanently delete the node. (default to false)\n * @returns Promise<{}>\n */\n deleteNode(nodeId: string, opts?: { permanent?: boolean }): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n permanent: opts?.permanent\n };\n\n return this.delete({\n path: '/nodes/{nodeId}',\n pathParams,\n queryParams\n });\n }\n /**\n * Delete multiple nodes\n *\n * @param nodeIds The list of node IDs to delete.\n * @param opts Optional parameters\n * @param opts.permanent If **true** then nodes are deleted permanently, without moving to the trashcan.\n * Only the owner of the node or an admin can permanently delete the node. (default to false)\n * @returns Promise<[]>\n */\n async deleteNodes(nodeIds: string[], opts?: { permanent?: boolean }): Promise<void[]> {\n throwIfNotDefined(nodeIds, 'nodeIds');\n\n const promises = [];\n\n for (const id of nodeIds) {\n promises.push(await this.deleteNode(id, opts));\n }\n\n // eslint-disable-next-line @typescript-eslint/await-thenable\n return Promise.all(promises);\n }\n\n /**\n * Delete secondary child or children\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Delete secondary child associations between the parent **nodeId** and child nodes for the given association type.\n *\n * If the association type is **not** specified, then all secondary child associations, of any type in the direction\n * from parent to secondary child, will be deleted. The child will still have a primary parent and may still be\n * associated as a secondary child with other secondary parents.\n *\n * @param nodeId The identifier of a parent node.\n * @param childId The identifier of a child node.\n * @param opts Optional parameters\n * @param opts.assocType Only delete associations of this type.\n * @returns Promise<{}>\n */\n deleteSecondaryChildAssociation(nodeId: string, childId: string, opts?: { assocType?: string }): Promise<void> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(childId, 'childId');\n\n const pathParams = {\n nodeId,\n childId\n };\n\n return this.delete({\n path: '/nodes/{nodeId}/secondary-children/{childId}',\n pathParams,\n queryParams: opts\n });\n }\n\n /**\n * Get a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * You can use the **include** parameter to return additional information.\n *\n * @param nodeId The identifier of a node. You can also use one of these well-known aliases:\n * - -my-\n * - -shared-\n * - -root-\n * @param opts Optional parameters\n * @param opts.relativePath A path relative to the **nodeId**. If you set this, information is returned on the node resolved by this path.\n * @returns Promise<NodeEntry>\n */\n getNode(nodeId: string, opts?: { relativePath?: string } & NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n relativePath: opts?.relativePath,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}',\n pathParams,\n queryParams,\n returnType: NodeEntry\n });\n }\n\n /**\n * Get 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 getNodeContent(\n nodeId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n range?: string;\n }\n ): Promise<Blob> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n attachment: opts?.attachment ?? null\n };\n\n const headerParams = {};\n\n if (opts?.ifModifiedSince) {\n Object.defineProperty(headerParams, 'If-Modified-Since', { value: opts?.ifModifiedSince });\n }\n\n if (opts?.range) {\n Object.defineProperty(headerParams, 'Range', { value: opts?.range });\n }\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/nodes/{nodeId}/content',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * List node children\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of children of the parent node **nodeId**.\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter to return additional information.\n * The list of child nodes includes primary children and secondary children, if there are any.\n * You can use the **include** parameter (include=association) to return child association details\n * for each child, including the **assocTyp**e and the **isPrimary** flag.\n *\n * The default sort order for the returned list is for folders to be sorted before files, and by ascending name.\n *\n * You can override the default using **orderBy** to specify one or more fields to sort by. The default order is always ascending, but\n * you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order.\n *\n * For example, specifying orderBy=name DESC returns a mixed folder/file list in descending **name** order.\n * You can use any of the following fields to order the results:\n * - isFolder\n * - name\n * - mimeType\n * - nodeType\n * - sizeInBytes\n * - modifiedAt\n * - createdAt\n * - modifiedByUser\n * - createdByUser\n *\n * @param nodeId The identifier of a node. You can also use one of these well-known aliases:\n * - -my-\n * - -shared-\n * - -root-\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 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.where Optionally filter the list. Here are some examples:\n * - where=(isFolder=true)\n * - where=(isFile=true)\n * - where=(nodeType='my:specialNodeType')\n * - where=(nodeType='my:specialNodeType INCLUDESUBTYPES')\n * - where=(isPrimary=true)\n * - where=(assocType='my:specialAssocType')\n * - where=(isPrimary=false and assocType='my:specialAssocType')\n * @param opts.relativePath Return information on children in the folder resolved by this path. The path is relative to **nodeId**.\n * @param opts.includeSource Also include **source** in addition to **entries** with folder information on the parent node – either the specified parent **nodeId**, or as resolved by **relativePath**.\n * @returns Promise<NodeChildAssociationPaging>\n */\n listNodeChildren(\n nodeId: string,\n opts?: {\n orderBy?: string[];\n where?: string;\n relativePath?: string;\n includeSource?: boolean;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeChildAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n relativePath: opts?.relativePath,\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/children',\n pathParams,\n queryParams,\n returnType: NodeChildAssociationPaging\n });\n }\n\n /**\n * List parents\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of parent nodes that are associated with the current child **nodeId**.\n * The list includes both the primary parent and any secondary parents.\n *\n * @param nodeId The identifier of a child node. You can also use one of these well-known aliases:\n * - -my-\n * - -shared-\n * - -root-\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by **assocType** and/or **isPrimary**. Here are some example filters:\n * - where=(assocType='my:specialAssocType')\n * - where=(isPrimary=true)\n * - where=(isPrimary=false and assocType='my:specialAssocType')\n * @param opts.includeSource Also include **source** (in addition to **entries**) with folder information on **nodeId**\n * @returns Promise<NodeAssociationPaging>\n */\n listParents(\n nodeId: string,\n opts?: {\n where?: string;\n includeSource?: boolean;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/parents',\n pathParams,\n queryParams,\n returnType: NodeAssociationPaging\n });\n }\n\n /**\n * List secondary children\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of secondary child nodes that are associated with the current parent **nodeId**, via a secondary child association.\n *\n * @param nodeId The identifier of a parent node. You can also use one of these well-known aliases:\n * -my-\n * -shared-\n * -root-\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by assocType. Here's an example:\n * - where=(assocType='my:specialAssocType')\n * @param opts.includeSource Also include **source** (in addition to **entries**) with folder information on **nodeId**\n * @returns Promise<NodeChildAssociationPaging>\n */\n listSecondaryChildren(\n nodeId: string,\n opts?: {\n where?: string;\n includeSource?: boolean;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeChildAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/secondary-children',\n pathParams,\n queryParams,\n returnType: NodeChildAssociationPaging\n });\n }\n\n /**\n * List source associations\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param nodeId The identifier of a target node.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by **assocType**. Here's an example:\n * - where=(assocType='my:specialAssocType')\n * @returns Promise<NodeAssociationPaging>\n */\n listSourceAssociations(\n nodeId: string,\n opts?: {\n where?: string;\n } & NodesIncludeQuery\n ): Promise<NodeAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/nodes/{nodeId}/sources',\n pathParams,\n queryParams,\n returnType: NodeAssociationPaging\n });\n }\n\n /**\n * List target associations\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * Gets a list of target nodes that are associated with the current source **nodeId**.\n *\n * @param nodeId The identifier of a source node.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list by **assocType**. Here's an example:\n * - where=(assocType='my:specialAssocType')\n * @returns Promise<NodeAssociationPaging>\n */\n listTargetAssociations(\n nodeId: string,\n opts?: {\n where?: string;\n } & NodesIncludeQuery &\n ContentPagingQuery\n ): Promise<NodeAssociationPaging> {\n throwIfNotDefined(nodeId, 'nodeId');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\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: '/nodes/{nodeId}/targets',\n pathParams,\n queryParams,\n returnType: NodeAssociationPaging\n });\n }\n\n /**\n * Lock a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * If a lock on the node cannot be taken, then an error is returned.\n *\n * @param nodeId The identifier of a node.\n * @param nodeBodyLock Lock details.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n lockNode(nodeId: string, nodeBodyLock: NodeBodyLock, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyLock, 'nodeBodyLock');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/lock',\n pathParams,\n queryParams,\n bodyParam: nodeBodyLock,\n returnType: NodeEntry\n });\n }\n\n /**\n * Move a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * The **targetParentId** is specified in the in request body.\n * The moved node retains its name unless you specify a new **name** in the request body.\n * If the source **nodeId** is a folder, then its children are also moved.\n * The move will effectively change the primary parent.\n *\n * @param nodeId The identifier of a node.\n * @param nodeBodyMove The targetParentId and, optionally, a new name which should include the file extension.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n moveNode(nodeId: string, nodeBodyMove: NodeBodyMove, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyMove, 'nodeBodyMove');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/nodes/{nodeId}/move',\n pathParams,\n queryParams,\n bodyParam: nodeBodyMove,\n returnType: NodeEntry\n });\n }\n\n /**\n * Unlock a node\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * The current user must be the owner of the locks or have admin rights, otherwise an error is returned.\n * If a lock on the node cannot be released, then an error is returned.\n *\n * @param nodeId The identifier of a node.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n unlockNode(nodeId: string, opts?: NodesIncludeQuery): Promise<NodeEntry> {\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 };\n\n return this.post({\n path: '/nodes/{nodeId}/unlock',\n pathParams,\n queryParams,\n returnType: NodeEntry\n });\n }\n\n /**\n * Update a 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 nodeBodyUpdate The node information to update.\n * @param opts Optional parameters\n * @returns Promise<NodeEntry>\n */\n updateNode(nodeId: string, nodeBodyUpdate: NodeBodyUpdate, opts?: NodesIncludeQuery): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(nodeBodyUpdate, 'nodeBodyUpdate');\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/nodes/{nodeId}',\n pathParams,\n queryParams,\n bodyParam: nodeBodyUpdate,\n returnType: NodeEntry\n });\n }\n /**\n * Update 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 contentBodyUpdate The binary content\n * @param opts Optional parameters\n * @param opts.majorVersion If **true**, create a major version.\n * Setting this parameter also enables versioning of this node, if it is not already versioned. (default to false)\n * @param opts.comment Add a version comment which will appear in version history.\n * Setting this parameter also enables versioning of this node, if it is not already versioned.\n * @param opts.name Optional new name. This should include the file extension.\n * The name must not contain spaces or the following special characters: * \\\" < > \\\\ / ? : and |.\n * The character . must not be used at the end of the name.\n * @returns Promise<NodeEntry>\n */\n updateNodeContent(\n nodeId: string,\n contentBodyUpdate: string,\n opts?: {\n majorVersion?: boolean;\n comment?: string;\n name?: string;\n } & NodesIncludeQuery\n ): Promise<NodeEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(contentBodyUpdate, 'contentBodyUpdate');\n opts = opts || {};\n\n const pathParams = {\n nodeId\n };\n\n const queryParams = {\n majorVersion: opts?.majorVersion,\n comment: opts?.comment,\n name: opts?.name,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/nodes/{nodeId}/content',\n pathParams,\n queryParams,\n contentTypes: ['application/octet-stream'],\n bodyParam: contentBodyUpdate,\n returnType: NodeEntry\n });\n }\n\n /**\n * Generate a direct access content url for a given 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: '/nodes/{nodeId}/request-direct-access-url',\n pathParams,\n returnType: DirectAccessUrlEntry\n });\n }\n\n /**\n * Initiate a new request to calculate folder size.\n *\n * **Note:** this endpoint is available in Alfresco 25.1.0 and newer versions.\n *\n * @param nodeId Node Id\n * @returns The job id which can be used to track request status\n */\n initiateFolderSizeCalculation(nodeId: string): Promise<JobIdBodyEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n\n const pathParams = {\n nodeId\n };\n\n return this.post({\n path: '/nodes/{nodeId}/size-details',\n pathParams,\n returnType: JobIdBodyEntry\n });\n }\n\n /**\n * Gets the size of a folder.\n *\n * **Note:** this endpoint is available in Alfresco 25.1.0 and newer versions.\n *\n * @param nodeId Node Id\n * @param jobId Job Id\n * @returns Folder details\n */\n\n getFolderSizeInfo(nodeId: string, jobId: string): Promise<SizeDetailsEntry> {\n throwIfNotDefined(nodeId, 'nodeId');\n throwIfNotDefined(jobId, 'jobId');\n\n const pathParams = {\n nodeId,\n jobId\n };\n\n return this.get({\n path: 'nodes/{nodeId}/size-details/{jobId}',\n pathParams,\n returnType: SizeDetailsEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"people.api.js","sourceRoot":"","sources":["people.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAqE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxH,OAAO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AAgB,EAAE,gBAAkC,EAAE,IAAyB;QACxF,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,iBAAiB,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;QAExD,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,oBAAoB;YAC1B,UAAU;YACV,WAAW;YACX,SAAS,EAAE,gBAAgB;YAC3B,UAAU,EAAE,WAAW;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ","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 { ClientBody, PasswordResetBody, PersonBodyCreate, PersonBodyUpdate, PersonEntry, PersonPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * People service.\n */\nexport class PeopleApi extends BaseApi {\n /**\n * Create person\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** setting properties of type d:content and d:category are not supported.\n * @param personBodyCreate The person details.\n * @param opts Optional parameters\n * @returns Promise<PersonEntry>\n */\n createPerson(personBodyCreate: PersonBodyCreate, opts?: ContentFieldsQuery): Promise<PersonEntry> {\n throwIfNotDefined(personBodyCreate, 'personBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people',\n queryParams,\n bodyParam: personBodyCreate,\n returnType: PersonEntry\n });\n }\n\n /**\n * Delete avatar image\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Deletes the avatar image related to person **personId**.\n * You must be the person or have admin rights to update a person's avatar.\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 * @returns Promise<{}>\n */\n deleteAvatarImage(personId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n return this.delete({\n path: '/people/{personId}/avatar',\n pathParams\n });\n }\n\n /**\n * Get avatar image\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Gets the avatar image related to the person **personId**. If the person has no related avatar then\n * the **placeholder** query parameter can be optionally used to request a placeholder image to be returned.\n *\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 * @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.placeholder If **true** and there is no avatar for this **personId**\n * then the placeholder image is returned, rather than a 404 response. (default to true)\n * @returns Promise<Blob>\n */\n getAvatarImage(personId: string, opts?: { attachment?: boolean; placeholder?: boolean; ifModifiedSince?: string }): Promise<Blob> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\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 };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/people/{personId}/avatar',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * Get a person\n *\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<PersonEntry>\n */\n getPerson(personId: string, opts?: ContentFieldsQuery): Promise<PersonEntry> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}',\n pathParams,\n queryParams,\n returnType: PersonEntry\n });\n }\n\n /**\n * List people\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * List people.\n *\n * You can use the **include** parameter to return any additional information.\n *\n * The default sort order for the returned list is for people to be sorted by ascending id.\n * You can override the default by using the **orderBy** parameter.\n *\n * You can use any of the following fields to order the results:\n * - id\n * - firstName\n * - lastName\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 *\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 *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @returns Promise<PersonPaging>\n */\n listPeople(\n opts?: {\n orderBy?: string[];\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<PersonPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people',\n queryParams,\n returnType: PersonPaging\n });\n }\n\n /**\n * Request password reset\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n * @param personId The identifier of a person.\n * @param clientBody The client name to send email with app-specific url.\n * @returns Promise<{}>\n */\n requestPasswordReset(personId: string, clientBody: ClientBody): Promise<any> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(clientBody, 'clientBody');\n\n const pathParams = {\n personId\n };\n\n return this.post({\n path: '/people/{personId}/request-password-reset',\n pathParams,\n bodyParam: clientBody\n });\n }\n\n /**\n * Reset password\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n * @param personId The identifier of a person.\n * @param passwordResetBody The reset password details\n * @returns Promise<{}>\n */\n resetPassword(personId: string, passwordResetBody: PasswordResetBody): Promise<any> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(passwordResetBody, 'passwordResetBody');\n\n const pathParams = {\n personId\n };\n\n return this.post({\n path: '/people/{personId}/reset-password',\n pathParams,\n bodyParam: passwordResetBody\n });\n }\n\n /**\n * Update avatar image\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Updates the avatar image related to the person **personId**.\n *\n * The request body should be the binary stream for the avatar image. The content type of the file\n * should be an image file. This will be used to generate an \\\"avatar\\\" thumbnail rendition.\n *\n * You must be the person or have admin rights to update a person's avatar.\n *\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 contentBodyUpdate The binary content\n * @returns Promise<{}>\n */\n updateAvatarImage(personId: string, contentBodyUpdate: string): Promise<any> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(contentBodyUpdate, 'contentBodyUpdate');\n\n const pathParams = {\n personId\n };\n\n const contentTypes = ['application/octet-stream'];\n\n return this.put({\n path: '/people/{personId}/avatar',\n pathParams,\n bodyParam: contentBodyUpdate,\n contentTypes\n });\n }\n\n /**\n * Get avatar image URL\n *\n * Builds and returns the direct URL to fetch the avatar image for the person `personId`.\n * This includes the current authentication ticket in the URL to allow secure access.\n *\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 * @returns A string URL to the user's avatar image.\n */\n getAvatarImageUrl(personId: string): string {\n const ticket = this.alfrescoApi.contentClient.getAlfTicket(undefined);\n return `${this.apiClient.basePath}/people/${personId}/avatar?placeholder=true${ticket}`;\n }\n\n /**\n * Update person\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * You can use the `-me-` string in place of <personId> to specify the currently authenticated user.\n * If applicable, the given person's login access can also be optionally disabled or re-enabled.\n * You must have admin rights to update a person — unless updating your own details.\n * If you are changing your password, as a non-admin user, then the existing password must also\n * be supplied (using the oldPassword field in addition to the new password value).\n *\n * Admin users cannot be disabled by setting enabled to false.\n * Non-admin users may not disable themselves.\n * **Note:** setting properties of type d:content and d:category are not supported.\n * @param personId The identifier of a person.\n * @param personBodyUpdate The person details.\n * @param opts Optional parameters\n * @returns Promise<PersonEntry>\n */\n updatePerson(personId: string, personBodyUpdate: PersonBodyUpdate, opts?: ContentFieldsQuery): Promise<PersonEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(personBodyUpdate, 'personBodyUpdate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/people/{personId}',\n pathParams,\n queryParams,\n bodyParam: personBodyUpdate,\n returnType: PersonEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"people.api.js","sourceRoot":"","sources":["people.api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAqE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EA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,kBAAkB,CAAC,CAAC;QAExD,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,MAAM,EAAE,oBAAoB,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,oBAAoB;YAC1B,UAAU;YACV,WAAW;YACX,SAAS,EAAE,gBAAgB;YAC3B,UAAU,EAAE,WAAW;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ","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 { ClientBody, PasswordResetBody, PersonBodyCreate, PersonBodyUpdate, PersonEntry, PersonPaging } from '../model';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { ContentFieldsQuery, ContentIncludeQuery, ContentPagingQuery } from './types';\n\n/**\n * People service.\n */\nexport class PeopleApi extends BaseApi {\n /**\n * Create person\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n * **Note:** setting properties of type d:content and d:category are not supported.\n *\n * @param personBodyCreate The person details.\n * @param opts Optional parameters\n * @returns Promise<PersonEntry>\n */\n createPerson(personBodyCreate: PersonBodyCreate, opts?: ContentFieldsQuery): Promise<PersonEntry> {\n throwIfNotDefined(personBodyCreate, 'personBodyCreate');\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/people',\n queryParams,\n bodyParam: personBodyCreate,\n returnType: PersonEntry\n });\n }\n\n /**\n * Delete avatar image\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Deletes the avatar image related to person **personId**.\n * You must be the person or have admin rights to update a person's avatar.\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 * @returns Promise<{}>\n */\n deleteAvatarImage(personId: string): Promise<void> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n return this.delete({\n path: '/people/{personId}/avatar',\n pathParams\n });\n }\n\n /**\n * Get avatar image\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Gets the avatar image related to the person **personId**. If the person has no related avatar then\n * the **placeholder** query parameter can be optionally used to request a placeholder image to be returned.\n *\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 * @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.placeholder If **true** and there is no avatar for this **personId**\n * then the placeholder image is returned, rather than a 404 response. (default to true)\n * @returns Promise<Blob>\n */\n getAvatarImage(personId: string, opts?: { attachment?: boolean; placeholder?: boolean; ifModifiedSince?: string }): Promise<Blob> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\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 };\n\n const accepts = ['application/octet-stream'];\n\n return this.get({\n path: '/people/{personId}/avatar',\n pathParams,\n queryParams,\n headerParams,\n accepts,\n returnType: 'blob'\n });\n }\n\n /**\n * Get a person\n *\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<PersonEntry>\n */\n getPerson(personId: string, opts?: ContentFieldsQuery): Promise<PersonEntry> {\n throwIfNotDefined(personId, 'personId');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people/{personId}',\n pathParams,\n queryParams,\n returnType: PersonEntry\n });\n }\n\n /**\n * List people\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * List people.\n *\n * You can use the **include** parameter to return any additional information.\n *\n * The default sort order for the returned list is for people to be sorted by ascending id.\n * You can override the default by using the **orderBy** parameter.\n *\n * You can use any of the following fields to order the results:\n * - id\n * - firstName\n * - lastName\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 *\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 *\n * To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.\n * @returns Promise<PersonPaging>\n */\n listPeople(\n opts?: {\n orderBy?: string[];\n } & ContentPagingQuery &\n ContentIncludeQuery &\n ContentFieldsQuery\n ): Promise<PersonPaging> {\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n orderBy: buildCollectionParam(opts?.orderBy, 'csv'),\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/people',\n queryParams,\n returnType: PersonPaging\n });\n }\n\n /**\n * Request password reset\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n *\n * @param personId The identifier of a person.\n * @param clientBody The client name to send email with app-specific url.\n * @returns Promise<{}>\n */\n requestPasswordReset(personId: string, clientBody: ClientBody): Promise<any> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(clientBody, 'clientBody');\n\n const pathParams = {\n personId\n };\n\n return this.post({\n path: '/people/{personId}/request-password-reset',\n pathParams,\n bodyParam: clientBody\n });\n }\n\n /**\n * Reset password\n *\n * **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions.\n * **Note:** No authentication is required to call this endpoint.\n *\n * @param personId The identifier of a person.\n * @param passwordResetBody The reset password details\n * @returns Promise<{}>\n */\n resetPassword(personId: string, passwordResetBody: PasswordResetBody): Promise<any> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(passwordResetBody, 'passwordResetBody');\n\n const pathParams = {\n personId\n };\n\n return this.post({\n path: '/people/{personId}/reset-password',\n pathParams,\n bodyParam: passwordResetBody\n });\n }\n\n /**\n * Update avatar image\n *\n * **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions.\n *\n * Updates the avatar image related to the person **personId**.\n *\n * The request body should be the binary stream for the avatar image. The content type of the file\n * should be an image file. This will be used to generate an \\\"avatar\\\" thumbnail rendition.\n *\n * You must be the person or have admin rights to update a person's avatar.\n *\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 contentBodyUpdate The binary content\n * @returns Promise<{}>\n */\n updateAvatarImage(personId: string, contentBodyUpdate: string): Promise<any> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(contentBodyUpdate, 'contentBodyUpdate');\n\n const pathParams = {\n personId\n };\n\n const contentTypes = ['application/octet-stream'];\n\n return this.put({\n path: '/people/{personId}/avatar',\n pathParams,\n bodyParam: contentBodyUpdate,\n contentTypes\n });\n }\n\n /**\n * Get avatar image URL\n *\n * Builds and returns the direct URL to fetch the avatar image for the person `personId`.\n * This includes the current authentication ticket in the URL to allow secure access.\n *\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 * @returns A string URL to the user's avatar image.\n */\n getAvatarImageUrl(personId: string): string {\n const ticket = this.alfrescoApi.contentClient.getAlfTicket(undefined);\n return `${this.apiClient.basePath}/people/${personId}/avatar?placeholder=true${ticket}`;\n }\n\n /**\n * Update person\n *\n * **Note:** this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * You can use the `-me-` string in place of <personId> to specify the currently authenticated user.\n * If applicable, the given person's login access can also be optionally disabled or re-enabled.\n * You must have admin rights to update a person — unless updating your own details.\n * If you are changing your password, as a non-admin user, then the existing password must also\n * be supplied (using the oldPassword field in addition to the new password value).\n *\n * Admin users cannot be disabled by setting enabled to false.\n * Non-admin users may not disable themselves.\n * **Note:** setting properties of type d:content and d:category are not supported.\n *\n * @param personId The identifier of a person.\n * @param personBodyUpdate The person details.\n * @param opts Optional parameters\n * @returns Promise<PersonEntry>\n */\n updatePerson(personId: string, personBodyUpdate: PersonBodyUpdate, opts?: ContentFieldsQuery): Promise<PersonEntry> {\n throwIfNotDefined(personId, 'personId');\n throwIfNotDefined(personBodyUpdate, 'personBodyUpdate');\n\n const pathParams = {\n personId\n };\n\n const queryParams = {\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/people/{personId}',\n pathParams,\n queryParams,\n bodyParam: personBodyUpdate,\n returnType: PersonEntry\n });\n }\n}\n"]}