@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":"records.api.js","sourceRoot":"","sources":["records.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,sDAAmD;AAEnD,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAOpD,MAAa,U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EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,IAAA,0BAAiB,EAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;QAExD,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,qBAAqB;YAC3B,UAAU;YACV,WAAW;YACX,SAAS,EAAE,gBAAgB;YAC3B,UAAU,EAAE,yBAAW;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ;AAvMD,gCAuMC","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 { FilePlanComponentBodyUpdate } from '../model/filePlanComponentBodyUpdate';\nimport { RecordEntry } from '../model/recordEntry';\nimport { RequestBodyFile } from '../model/requestBodyFile';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery } from './types';\n\n/**\n * Records service.\n * @module RecordsApi\n */\nexport class RecordsApi extends BaseApi {\n /**\n * Complete a record\n * @param recordId The identifier of a record.\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n completeRecord(recordId: string, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\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: '/records/{recordId}/complete',\n pathParams,\n queryParams,\n returnType: RecordEntry\n });\n }\n\n /**\n * Delete a record. Deleted file plan components cannot be recovered, they are deleted permanently.\n * @param recordId The identifier of a record.\n * @returns Promise<{}>\n */\n deleteRecord(recordId: string): Promise<void> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\n };\n\n return this.delete({\n path: '/records/{recordId}',\n pathParams\n });\n }\n\n /**\n * File a record\n *\n * You need to specify the target record folder by providing its id **targetParentId**\n * If the record is already filed, a link to the target record folder is created.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param recordId The identifier of a record.\n * @param nodeBodyFile The target record folder id\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n fileRecord(recordId: string, nodeBodyFile: RequestBodyFile, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n throwIfNotDefined(nodeBodyFile, 'nodeBodyFile');\n\n const pathParams = {\n recordId\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: '/records/{recordId}/file',\n pathParams,\n queryParams,\n bodyParam: nodeBodyFile,\n returnType: RecordEntry\n });\n }\n\n /**\n * Get a record\n *\n * Mandatory fields and the record's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param recordId The identifier of a record.\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n getRecord(recordId: string, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\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: '/records/{recordId}',\n pathParams,\n queryParams,\n returnType: RecordEntry\n });\n }\n\n /**\n * Get record content\n * @param recordId The identifier of a record.\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 *\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 *\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 * @returns Promise<{}>\n */\n getRecordContent(\n recordId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n }\n ): Promise<any> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince\n };\n\n return this.get({\n path: '/records/{recordId}/content',\n pathParams,\n queryParams,\n headerParams\n });\n }\n\n /**\n * Update record\n *\n * Updates the record **recordId**. For example, you can rename a record:\n * JSON\n * {\n * \\\"name\\\":\\\"My new name\\\"\n * }\n *\n * You can also set or update one or more properties:\n * JSON\n * {\n * \\\"properties\\\":\n * {\n * \\\"cm:title\\\":\\\"New title\\\",\n * \\\"cm:description\\\":\\\"New description\\\"\n * }\n * }\n *\n * **Note:** if you want to add or remove aspects, then you must use **GET /records/{recordId}** first to get the complete set of *aspectNames*.\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param recordId The identifier of a record.\n * @param recordBodyUpdate The record information to update.\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n updateRecord(recordId: string, recordBodyUpdate: FilePlanComponentBodyUpdate, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n throwIfNotDefined(recordBodyUpdate, 'recordBodyUpdate');\n\n const pathParams = {\n recordId\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: '/records/{recordId}',\n pathParams,\n queryParams,\n bodyParam: recordBodyUpdate,\n returnType: RecordEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"records.api.js","sourceRoot":"","sources":["records.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAGH,sDAAmD;AAEnD,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAQpD,MAAa,UAAW,SAAQ,kBAAO;IAQnC,cAAc,CAAC,QAAgB,EAAE,IAA0B;QACvD,IAAA,0BAAiB,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,8BAA8B;YACpC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,yBAAW;SAC1B,CAAC,CAAC;IACP,CAAC;IAQD,YAAY,CAAC,QAAgB;QACzB,IAAA,0BAAiB,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,qBAAqB;YAC3B,UAAU;SACb,CAAC,CAAC;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UAAU,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,UAAU,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU;SAC/B,CAAC;QAEF,MAAM,YAAY,GAAG;YACjB,mBAAmB,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe;SAC7C,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,6BAA6B;YACnC,UAAU;YACV,WAAW;YACX,YAAY;SACf,CAAC,CAAC;IACP,CAAC;IA6BD,YAAY,CAAC,QAAgB,EAAE,gBAA6C,EAAE,IAA0B;QACpG,IAAA,0BAAiB,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxC,IAAA,0BAAiB,EAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;QAExD,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,qBAAqB;YAC3B,UAAU;YACV,WAAW;YACX,SAAS,EAAE,gBAAgB;YAC3B,UAAU,EAAE,yBAAW;SAC1B,CAAC,CAAC;IACP,CAAC;CACJ;AA7MD,gCA6MC","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 { FilePlanComponentBodyUpdate } from '../model/filePlanComponentBodyUpdate';\nimport { RecordEntry } from '../model/recordEntry';\nimport { RequestBodyFile } from '../model/requestBodyFile';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery } from './types';\n\n/**\n * Records service.\n *\n * @module RecordsApi\n */\nexport class RecordsApi extends BaseApi {\n /**\n * Complete a record\n *\n * @param recordId The identifier of a record.\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n completeRecord(recordId: string, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\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: '/records/{recordId}/complete',\n pathParams,\n queryParams,\n returnType: RecordEntry\n });\n }\n\n /**\n * Delete a record. Deleted file plan components cannot be recovered, they are deleted permanently.\n *\n * @param recordId The identifier of a record.\n * @returns Promise<{}>\n */\n deleteRecord(recordId: string): Promise<void> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\n };\n\n return this.delete({\n path: '/records/{recordId}',\n pathParams\n });\n }\n\n /**\n * File a record\n *\n * You need to specify the target record folder by providing its id **targetParentId**\n * If the record is already filed, a link to the target record folder is created.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param recordId The identifier of a record.\n * @param nodeBodyFile The target record folder id\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n fileRecord(recordId: string, nodeBodyFile: RequestBodyFile, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n throwIfNotDefined(nodeBodyFile, 'nodeBodyFile');\n\n const pathParams = {\n recordId\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: '/records/{recordId}/file',\n pathParams,\n queryParams,\n bodyParam: nodeBodyFile,\n returnType: RecordEntry\n });\n }\n\n /**\n * Get a record\n *\n * Mandatory fields and the record's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param recordId The identifier of a record.\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n getRecord(recordId: string, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\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: '/records/{recordId}',\n pathParams,\n queryParams,\n returnType: RecordEntry\n });\n }\n\n /**\n * Get record content\n *\n * @param recordId The identifier of a record.\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 *\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 *\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 * @returns Promise<{}>\n */\n getRecordContent(\n recordId: string,\n opts?: {\n attachment?: boolean;\n ifModifiedSince?: string;\n }\n ): Promise<any> {\n throwIfNotDefined(recordId, 'recordId');\n\n const pathParams = {\n recordId\n };\n\n const queryParams = {\n attachment: opts?.attachment\n };\n\n const headerParams = {\n 'If-Modified-Since': opts?.ifModifiedSince\n };\n\n return this.get({\n path: '/records/{recordId}/content',\n pathParams,\n queryParams,\n headerParams\n });\n }\n\n /**\n * Update record\n *\n * Updates the record **recordId**. For example, you can rename a record:\n * JSON\n * {\n * \\\"name\\\":\\\"My new name\\\"\n * }\n *\n * You can also set or update one or more properties:\n * JSON\n * {\n * \\\"properties\\\":\n * {\n * \\\"cm:title\\\":\\\"New title\\\",\n * \\\"cm:description\\\":\\\"New description\\\"\n * }\n * }\n *\n * **Note:** if you want to add or remove aspects, then you must use **GET /records/{recordId}** first to get the complete set of *aspectNames*.\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n *\n * @param recordId The identifier of a record.\n * @param recordBodyUpdate The record information to update.\n * @param opts Optional parameters\n * @returns Promise<RecordEntry>\n */\n updateRecord(recordId: string, recordBodyUpdate: FilePlanComponentBodyUpdate, opts?: RecordsIncludeQuery): Promise<RecordEntry> {\n throwIfNotDefined(recordId, 'recordId');\n throwIfNotDefined(recordBodyUpdate, 'recordBodyUpdate');\n\n const pathParams = {\n recordId\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: '/records/{recordId}',\n pathParams,\n queryParams,\n bodyParam: recordBodyUpdate,\n returnType: RecordEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"transferContainers.api.js","sourceRoot":"","sources":["transferContainers.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oGAAiG;AAEjG,4EAAyE;AACzE,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAMpD,MAAa,qBAAsB,SAAQ,kBAAO;IAU9C,oBAAoB,CAAC,mBAA2B,EAAE,IAA0B;QACxE,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAE9D,MAAM,UAAU,GAAG;YACf,mBAAmB;SACtB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,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iB,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QACpD,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAElB,MAAM,UAAU,GAAG;YACf,mBAAmB;SACtB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,4CAA4C;YAClD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,cAAc;YACzB,UAAU,EAAE,+CAAsB;SACrC,CAAC,CAAC;IACP,CAAC;CACJ;AAnGD,sDAmGC","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 { TransferContainerAssociationPaging } from '../model/transferContainerAssociationPaging';\nimport { TransferContainerBodyUpdate } from '../model/transferContainerBodyUpdate';\nimport { TransferContainerEntry } from '../model/transferContainerEntry';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * TransferContainersApi service.\n */\nexport class TransferContainersApi extends BaseApi {\n /**\n * Get a transfer container\n *\n * Mandatory fields and the transfer container's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param transferContainerId The identifier of a transfer container. You can also use the -transfers- alias.\n * @param opts Optional parameters\n * @returns Promise<TransferContainerEntry>\n */\n getTransferContainer(transferContainerId: string, opts?: RecordsIncludeQuery): Promise<TransferContainerEntry> {\n throwIfNotDefined(transferContainerId, 'transferContainerId');\n\n const pathParams = {\n transferContainerId\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: '/transfer-containers/{transferContainerId}',\n pathParams,\n queryParams,\n returnType: TransferContainerEntry\n });\n }\n\n /**\n * List transfer container's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param transferContainerId The identifier of a transfer container. You can also use the -transfers- alias.\n * @param opts Optional parameters\n * @returns Promise<TransferContainerAssociationPaging>\n */\n listTransfers(\n transferContainerId: string,\n opts?: RecordsSourceQuery & RecordsIncludeQuery & RecordsPagingQuery\n ): Promise<TransferContainerAssociationPaging> {\n throwIfNotDefined(transferContainerId, 'transferContainerId');\n opts = opts || {};\n\n const pathParams = {\n transferContainerId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/transfer-containers/{transferContainerId}/transfers',\n pathParams,\n queryParams,\n returnType: TransferContainerAssociationPaging\n });\n }\n\n /**\n * Update transfer container\n * @param transferContainerId The identifier of a transfer container. You can also use the -transfers- alias.\n * @param nodeBodyUpdate The node information to update.\n * @param opts Optional parameters\n * @returns Promise<TransferContainerEntry>\n */\n updateTransferContainer(\n transferContainerId: string,\n nodeBodyUpdate: TransferContainerBodyUpdate,\n opts?: RecordsIncludeQuery\n ): Promise<TransferContainerEntry> {\n throwIfNotDefined(transferContainerId, 'transferContainerId');\n throwIfNotDefined(nodeBodyUpdate, 'nodeBodyUpdate');\n opts = opts || {};\n\n const pathParams = {\n transferContainerId\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: '/transfer-containers/{transferContainerId}',\n pathParams,\n queryParams,\n bodyParam: nodeBodyUpdate,\n returnType: TransferContainerEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"transferContainers.api.js","sourceRoot":"","sources":["transferContainers.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oGAAiG;AAEjG,4EAAyE;AACzE,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAMpD,MAAa,qBAAsB,SAAQ,kBAAO;IAW9C,oBAAoB,CAAC,mBAA2B,EAAE,IAA0B;QACxE,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAE9D,MAAM,UAAU,GAAG;YACf,mBAAmB;SACtB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,4CAA4C;YAClD,UAAU;YACV,WAAW;YACX,UAAU,EAAE,+CAAsB;SACrC,CAAC,CAAC;IACP,CAAC;IAYD,aAAa,CACT,mBAA2B,EAC3B,IAAoE;QAEpE,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,qBAAqB,CAAC,CAAC;QAC9D,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAElB,MAAM,UAAU,GAAG;YACf,mBAAmB;SACtB,CAAC;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AC,CAAC;IACP,CAAC;CACJ;AAtGD,sDAsGC","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 { TransferContainerAssociationPaging } from '../model/transferContainerAssociationPaging';\nimport { TransferContainerBodyUpdate } from '../model/transferContainerBodyUpdate';\nimport { TransferContainerEntry } from '../model/transferContainerEntry';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * TransferContainersApi service.\n */\nexport class TransferContainersApi extends BaseApi {\n /**\n * Get a transfer container\n *\n * Mandatory fields and the transfer container's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param transferContainerId The identifier of a transfer container. You can also use the -transfers- alias.\n * @param opts Optional parameters\n * @returns Promise<TransferContainerEntry>\n */\n getTransferContainer(transferContainerId: string, opts?: RecordsIncludeQuery): Promise<TransferContainerEntry> {\n throwIfNotDefined(transferContainerId, 'transferContainerId');\n\n const pathParams = {\n transferContainerId\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: '/transfer-containers/{transferContainerId}',\n pathParams,\n queryParams,\n returnType: TransferContainerEntry\n });\n }\n\n /**\n * List transfer container's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param transferContainerId The identifier of a transfer container. You can also use the -transfers- alias.\n * @param opts Optional parameters\n * @returns Promise<TransferContainerAssociationPaging>\n */\n listTransfers(\n transferContainerId: string,\n opts?: RecordsSourceQuery & RecordsIncludeQuery & RecordsPagingQuery\n ): Promise<TransferContainerAssociationPaging> {\n throwIfNotDefined(transferContainerId, 'transferContainerId');\n opts = opts || {};\n\n const pathParams = {\n transferContainerId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/transfer-containers/{transferContainerId}/transfers',\n pathParams,\n queryParams,\n returnType: TransferContainerAssociationPaging\n });\n }\n\n /**\n * Update transfer container\n *\n * @param transferContainerId The identifier of a transfer container. You can also use the -transfers- alias.\n * @param nodeBodyUpdate The node information to update.\n * @param opts Optional parameters\n * @returns Promise<TransferContainerEntry>\n */\n updateTransferContainer(\n transferContainerId: string,\n nodeBodyUpdate: TransferContainerBodyUpdate,\n opts?: RecordsIncludeQuery\n ): Promise<TransferContainerEntry> {\n throwIfNotDefined(transferContainerId, 'transferContainerId');\n throwIfNotDefined(nodeBodyUpdate, 'nodeBodyUpdate');\n opts = opts || {};\n\n const pathParams = {\n transferContainerId\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: '/transfer-containers/{transferContainerId}',\n pathParams,\n queryParams,\n bodyParam: nodeBodyUpdate,\n returnType: TransferContainerEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.api.js","sourceRoot":"","sources":["transfers.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,kFAA+E;AAC/E,0DAAuD;AACvD,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAOpD,MAAa,YAAa,SAAQ,kBAAO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AC;IACP,CAAC;CACJ;AAhED,oCAgEC","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 { TransferAssociationPaging } from '../model/transferAssociationPaging';\nimport { TransferEntry } from '../model/transferEntry';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * Transfers service.\n * @module TransfersApi\n */\nexport class TransfersApi extends BaseApi {\n /**\n * Get a transfer\n *\n * Mandatory fields and the transfer's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param transferId The identifier of a transfer.\n * @param opts Optional parameters\n * @returns Promise<TransferEntry>\n */\n getTransfer(transferId: string, opts?: RecordsIncludeQuery): Promise<TransferEntry> {\n throwIfNotDefined(transferId, 'transferId');\n\n const pathParams = {\n transferId\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: '/transfers/{transferId}',\n pathParams,\n queryParams,\n returnType: TransferEntry\n });\n }\n\n /**\n * List transfer's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param transferId The identifier of a transfer.\n * @param opts Optional parameters\n * @returns Promise<TransferAssociationPaging>\n */\n listTransfersChildren(\n transferId: string,\n opts?: RecordsSourceQuery & RecordsIncludeQuery & RecordsPagingQuery\n ): Promise<TransferAssociationPaging> {\n throwIfNotDefined(transferId, 'transferId');\n\n const pathParams = {\n transferId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/transfers/{transferId}/children',\n pathParams,\n queryParams,\n returnType: TransferAssociationPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"transfers.api.js","sourceRoot":"","sources":["transfers.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,kFAA+E;AAC/E,0DAAuD;AACvD,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAQpD,MAAa,YAAa,SAAQ,kBAAO;IAWrC,WAAW,CAAC,UAAkB,EAAE,IAA0B;QACtD,IAAA,0BAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,yBAAyB;YAC/B,UAAU;YACV,WAAW;YACX,UAAU,EAAE,6BAAa;SAC5B,CAAC,CAAC;IACP,CAAC;IAYD,qBAAqB,CACjB,UAAkB,EAClB,IAAoE;QAEpE,IAAA,0BAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE5C,MAAM,UAAU,GAAG;YACf,UAAU;SACb,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,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,aAAa,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa;YAClC,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,kCAAkC;YACxC,UAAU;YACV,WAAW;YACX,UAAU,EAAE,qDAAyB;SACxC,CAAC,CAAC;IACP,CAAC;CACJ;AAlED,oCAkEC","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 { TransferAssociationPaging } from '../model/transferAssociationPaging';\nimport { TransferEntry } from '../model/transferEntry';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * Transfers service.\n *\n * @module TransfersApi\n */\nexport class TransfersApi extends BaseApi {\n /**\n * Get a transfer\n *\n * Mandatory fields and the transfer's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param transferId The identifier of a transfer.\n * @param opts Optional parameters\n * @returns Promise<TransferEntry>\n */\n getTransfer(transferId: string, opts?: RecordsIncludeQuery): Promise<TransferEntry> {\n throwIfNotDefined(transferId, 'transferId');\n\n const pathParams = {\n transferId\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: '/transfers/{transferId}',\n pathParams,\n queryParams,\n returnType: TransferEntry\n });\n }\n\n /**\n * List transfer's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param transferId The identifier of a transfer.\n * @param opts Optional parameters\n * @returns Promise<TransferAssociationPaging>\n */\n listTransfersChildren(\n transferId: string,\n opts?: RecordsSourceQuery & RecordsIncludeQuery & RecordsPagingQuery\n ): Promise<TransferAssociationPaging> {\n throwIfNotDefined(transferId, 'transferId');\n\n const pathParams = {\n transferId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/transfers/{transferId}/children',\n pathParams,\n queryParams,\n returnType: TransferAssociationPaging\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"unfiledContainers.api.js","sourceRoot":"","sources":["unfiledContainers.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAAwI;AACxI,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAOpD,MAAa,oBAAqB,SAAQ,kBAAO;IAS7C,8BAA8B,CAC1B,kBAA0B,EAC1B,cAAgC,EAChC,IAEuB;QAEvB,IAAA,0BAAiB,EAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;QAC5D,IAAA,0BAAiB,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAEpD,MAAM,UAAU,GAAG;YACf,kB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S,EAAE,0BAA0B;YACrC,UAAU,EAAE,6BAAqB;SACpC,CAAC,CAAC;IACP,CAAC;CACJ;AAzJD,oDAyJC","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 { RMNodeBodyCreate, UnfiledContainerAssociationPaging, UnfiledContainerEntry, UnfiledRecordContainerBodyUpdate } from '../model';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * Unfiled containers service.\n * @module UnfiledContainersApi\n */\nexport class UnfiledContainersApi extends BaseApi {\n /**\n * Creates a record or an unfiled record folder as a primary child of **unfiledContainerId**.\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\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 * @returns Promise<UnfiledContainerAssociationPaging>\n */\n createUnfiledContainerChildren(\n unfiledContainerId: string,\n nodeBodyCreate: RMNodeBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<UnfiledContainerAssociationPaging> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n unfiledContainerId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n const contentTypes = ['application/json', 'multipart/form-data'];\n\n return this.post({\n path: '/unfiled-containers/{unfiledContainerId}/children',\n pathParams,\n queryParams,\n contentTypes,\n bodyParam: nodeBodyCreate,\n returnType: UnfiledContainerAssociationPaging\n });\n }\n\n /**\n * Get the unfiled records container\n *\n * Gets information for unfiled records container **unfiledContainerId**\n * Mandatory fields and the unfiled records container's aspects and properties are returned by default.\n *\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\n * @param opts Optional parameters\n * @returns Promise<UnfiledContainerEntry>\n */\n getUnfiledContainer(unfiledContainerId: string, opts?: RecordsIncludeQuery): Promise<UnfiledContainerEntry> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n\n const pathParams = {\n unfiledContainerId\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: '/unfiled-containers/{unfiledContainerId}',\n pathParams,\n queryParams,\n returnType: UnfiledContainerEntry\n });\n }\n\n /**\n * List unfiled record container's children\n *\n * Returns a list of records or unfiled record folders.\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(isRecord=true)\n * - where=(isUnfiledRecordFolder=false)\n * - where=(nodeType='cm:content INCLUDESUBTYPES')\n * @param opts.includeSource Also include **source** (in addition to **entries**) with folder information on the parent node – the specified parent **unfiledContainerId**\n * @returns Promise<UnfiledContainerAssociationPaging>\n */\n listUnfiledContainerChildren(\n unfiledContainerId: string,\n opts?: {\n where?: string;\n } & RecordsSourceQuery &\n RecordsIncludeQuery &\n RecordsPagingQuery\n ): Promise<UnfiledContainerAssociationPaging> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n\n const pathParams = {\n unfiledContainerId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/unfiled-containers/{unfiledContainerId}/children',\n pathParams,\n queryParams,\n returnType: UnfiledContainerAssociationPaging\n });\n }\n\n /**\n * Update an unfiled record container\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\n * @param unfiledContainerBodyUpdate The unfiled record container information to update.\n * @param opts Optional parameters\n * @returns Promise<UnfiledContainerEntry>\n */\n updateUnfiledContainer(\n unfiledContainerId: string,\n unfiledContainerBodyUpdate: UnfiledRecordContainerBodyUpdate,\n opts?: RecordsIncludeQuery\n ): Promise<UnfiledContainerEntry> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n throwIfNotDefined(unfiledContainerBodyUpdate, 'unfiledContainerBodyUpdate');\n\n const pathParams = {\n unfiledContainerId\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: '/unfiled-containers/{unfiledContainerId}',\n pathParams,\n queryParams,\n bodyParam: unfiledContainerBodyUpdate,\n returnType: UnfiledContainerEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"unfiledContainers.api.js","sourceRoot":"","sources":["unfiledContainers.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,oCAAwI;AACxI,yCAAqC;AACrC,kEAAkE;AAClE,4CAAoD;AAQpD,MAAa,oBAAqB,SAAQ,kBAAO;IAU7C,8BAA8B,CAC1B,kBAA0B,EAC1B,cAAgC,EAChC,IAEuB;QAEvB,I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AJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0CAA0C;YAChD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,0BAA0B;YACrC,UAAU,EAAE,6BAAqB;SACpC,CAAC,CAAC;IACP,CAAC;CACJ;AA7JD,oDA6JC","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 { RMNodeBodyCreate, UnfiledContainerAssociationPaging, UnfiledContainerEntry, UnfiledRecordContainerBodyUpdate } from '../model';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * Unfiled containers service.\n *\n * @module UnfiledContainersApi\n */\nexport class UnfiledContainersApi extends BaseApi {\n /**\n * Creates a record or an unfiled record folder as a primary child of **unfiledContainerId**.\n *\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\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 * @returns Promise<UnfiledContainerAssociationPaging>\n */\n createUnfiledContainerChildren(\n unfiledContainerId: string,\n nodeBodyCreate: RMNodeBodyCreate,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<UnfiledContainerAssociationPaging> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n unfiledContainerId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n const contentTypes = ['application/json', 'multipart/form-data'];\n\n return this.post({\n path: '/unfiled-containers/{unfiledContainerId}/children',\n pathParams,\n queryParams,\n contentTypes,\n bodyParam: nodeBodyCreate,\n returnType: UnfiledContainerAssociationPaging\n });\n }\n\n /**\n * Get the unfiled records container\n *\n * Gets information for unfiled records container **unfiledContainerId**\n * Mandatory fields and the unfiled records container's aspects and properties are returned by default.\n *\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\n * @param opts Optional parameters\n * @returns Promise<UnfiledContainerEntry>\n */\n getUnfiledContainer(unfiledContainerId: string, opts?: RecordsIncludeQuery): Promise<UnfiledContainerEntry> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n\n const pathParams = {\n unfiledContainerId\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: '/unfiled-containers/{unfiledContainerId}',\n pathParams,\n queryParams,\n returnType: UnfiledContainerEntry\n });\n }\n\n /**\n * List unfiled record container's children\n *\n * Returns a list of records or unfiled record folders.\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(isRecord=true)\n * - where=(isUnfiledRecordFolder=false)\n * - where=(nodeType='cm:content INCLUDESUBTYPES')\n * @param opts.includeSource Also include **source** (in addition to **entries**) with folder information on the parent node – the specified parent **unfiledContainerId**\n * @returns Promise<UnfiledContainerAssociationPaging>\n */\n listUnfiledContainerChildren(\n unfiledContainerId: string,\n opts?: {\n where?: string;\n } & RecordsSourceQuery &\n RecordsIncludeQuery &\n RecordsPagingQuery\n ): Promise<UnfiledContainerAssociationPaging> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n\n const pathParams = {\n unfiledContainerId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n where: opts?.where,\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.get({\n path: '/unfiled-containers/{unfiledContainerId}/children',\n pathParams,\n queryParams,\n returnType: UnfiledContainerAssociationPaging\n });\n }\n\n /**\n * Update an unfiled record container\n *\n * **Note:** Currently there is no optimistic locking for updates, so they are applied in \\\"last one wins\\\" order.\n *\n * @param unfiledContainerId The identifier of an unfiled records container. You can use the **-unfiled-** alias.\n * @param unfiledContainerBodyUpdate The unfiled record container information to update.\n * @param opts Optional parameters\n * @returns Promise<UnfiledContainerEntry>\n */\n updateUnfiledContainer(\n unfiledContainerId: string,\n unfiledContainerBodyUpdate: UnfiledRecordContainerBodyUpdate,\n opts?: RecordsIncludeQuery\n ): Promise<UnfiledContainerEntry> {\n throwIfNotDefined(unfiledContainerId, 'unfiledContainerId');\n throwIfNotDefined(unfiledContainerBodyUpdate, 'unfiledContainerBodyUpdate');\n\n const pathParams = {\n unfiledContainerId\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: '/unfiled-containers/{unfiledContainerId}',\n pathParams,\n queryParams,\n bodyParam: unfiledContainerBodyUpdate,\n returnType: UnfiledContainerEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"unfiledRecordFolders.api.js","sourceRoot":"","sources":["unfiledRecordFolders.api.ts"],"names":[],"mappings":";AAAA;;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AAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0DAA0D;YAChE,UAAU;YACV,WAAW;YACX,UAAU,EAAE,2EAAoC;SACnD,CAAC,CAAC;IACP,CAAC;IAUD,yBAAyB,CACrB,qBAA6B,EAC7B,6BAA4D,EAC5D,IAA+C;QAE/C,IAAA,0BAAiB,EAAC,qBAAqB,EAAE,uBAAuB,CAAC,CAAC;QAClE,IAAA,0BAAiB,EAAC,6BAA6B,EAAE,+BAA+B,CAAC,CAAC;QAElF,MAAM,UAAU,GAAG;YACf,qBAAqB;SACxB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,aAAa,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa;YAClC,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,iDAAiD;YACvD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,6BAA6B;YACxC,UAAU,EAAE,mDAAwB;SACvC,CAAC,CAAC;IACP,CAAC;CACJ;AA/KD,0DA+KC","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 { RMNodeBodyCreateWithRelativePath } from '../model/rMNodeBodyCreateWithRelativePath';\nimport { UnfiledRecordFolderAssociationPaging } from '../model/unfiledRecordFolderAssociationPaging';\nimport { UnfiledRecordFolderBodyUpdate } from '../model/unfiledRecordFolderBodyUpdate';\nimport { UnfiledRecordFolderEntry } from '../model/unfiledRecordFolderEntry';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * UnfiledRecordFoldersApi service.\n * @module UnfiledRecordFoldersApi\n */\nexport class UnfiledRecordFoldersApi extends BaseApi {\n /**\n * Create a record or an unfiled record folder\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\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 * @returns Promise<UnfiledRecordFolderAssociationPaging>\n */\n createUnfiledRecordFolderChildren(\n unfiledRecordFolderId: string,\n nodeBodyCreate: RMNodeBodyCreateWithRelativePath,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<UnfiledRecordFolderAssociationPaging> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/unfiled-record-folders/{unfiledRecordFolderId}/children',\n pathParams,\n queryParams,\n bodyParam: nodeBodyCreate,\n contentTypes: ['application/json', 'multipart/form-data'],\n returnType: UnfiledRecordFolderAssociationPaging\n });\n }\n\n /**\n * Delete an unfiled record folder. Deleted file plan components cannot be recovered, they are deleted permanently.\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @returns Promise<{}>\n */\n deleteUnfiledRecordFolder(unfiledRecordFolderId: string): Promise<void> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n return this.delete({\n path: '/unfiled-record-folders/{unfiledRecordFolderId}',\n pathParams\n });\n }\n\n /**\n * Get the unfiled record folder\n *\n * Mandatory fields and the unfiled record folder's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @param opts Optional parameters\n * @param opts.relativePath Return information on children in the unfiled records container resolved by this path. The path is relative to **unfiledRecordFolderId**.\n * @returns Promise<UnfiledRecordFolderEntry>\n */\n getUnfiledRecordFolder(\n unfiledRecordFolderId: string,\n opts?: {\n relativePath?: string;\n } & RecordsIncludeQuery\n ): Promise<UnfiledRecordFolderEntry> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n\n const pathParams = {\n unfiledRecordFolderId\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: '/unfiled-record-folders/{unfiledRecordFolderId}',\n pathParams,\n queryParams,\n returnType: UnfiledRecordFolderEntry\n });\n }\n\n /**\n * List unfiled record folder's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(isRecord=true)\n * - where=(isUnfiledRecordFolder=false)\n * - where=(nodeType='cm:content INCLUDESUBTYPES')\n * @param opts.relativePath Return information on children in the unfiled records container resolved by this path. The path is relative to **unfiledRecordFolderId**.\n * @returns Promise<UnfiledRecordFolderAssociationPaging>\n */\n listUnfiledRecordFolderChildren(\n unfiledRecordFolderId: string,\n opts?: {\n where?: string;\n relativePath?: string[];\n } & RecordsIncludeQuery &\n RecordsPagingQuery &\n RecordsSourceQuery\n ): Promise<UnfiledRecordFolderAssociationPaging> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n opts = opts || {};\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\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: '/unfiled-record-folders/{unfiledRecordFolderId}/children',\n pathParams,\n queryParams,\n returnType: UnfiledRecordFolderAssociationPaging\n });\n }\n\n /**\n * Updates unfiled record folder **unfiledRecordFolderId**.\n * For example, you can rename a record folder:\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @param unfiledRecordFolderBodyUpdate The record folder information to update.\n * @param opts Optional parameters\n * @returns Promise<UnfiledRecordFolderEntry>\n */\n updateUnfiledRecordFolder(\n unfiledRecordFolderId: string,\n unfiledRecordFolderBodyUpdate: UnfiledRecordFolderBodyUpdate,\n opts?: RecordsIncludeQuery & RecordsSourceQuery\n ): Promise<UnfiledRecordFolderEntry> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n throwIfNotDefined(unfiledRecordFolderBodyUpdate, 'unfiledRecordFolderBodyUpdate');\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/unfiled-record-folders/{unfiledRecordFolderId}',\n pathParams,\n queryParams,\n bodyParam: unfiledRecordFolderBodyUpdate,\n returnType: UnfiledRecordFolderEntry\n });\n }\n}\n"]}
1
+ {"version":3,"file":"unfiledRecordFolders.api.js","sourceRoot":"","sources":["unfiledRecordFolders.api.ts"],"names":[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AE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,0DAA0D;YAChE,UAAU;YACV,WAAW;YACX,UAAU,EAAE,2EAAoC;SACnD,CAAC,CAAC;IACP,CAAC;IAWD,yBAAyB,CACrB,qBAA6B,EAC7B,6BAA4D,EAC5D,IAA+C;QAE/C,IAAA,0BAAiB,EAAC,qBAAqB,EAAE,uBAAuB,CAAC,CAAC;QAClE,IAAA,0BAAiB,EAAC,6BAA6B,EAAE,+BAA+B,CAAC,CAAC;QAElF,MAAM,UAAU,GAAG;YACf,qBAAqB;SACxB,CAAC;QAEF,MAAM,WAAW,GAAG;YAChB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;YACnD,aAAa,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa;YAClC,MAAM,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,KAAK,CAAC;SACpD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC;YACZ,IAAI,EAAE,iDAAiD;YACvD,UAAU;YACV,WAAW;YACX,SAAS,EAAE,6BAA6B;YACxC,UAAU,EAAE,mDAAwB;SACvC,CAAC,CAAC;IACP,CAAC;CACJ;AApLD,0DAoLC","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 { RMNodeBodyCreateWithRelativePath } from '../model/rMNodeBodyCreateWithRelativePath';\nimport { UnfiledRecordFolderAssociationPaging } from '../model/unfiledRecordFolderAssociationPaging';\nimport { UnfiledRecordFolderBodyUpdate } from '../model/unfiledRecordFolderBodyUpdate';\nimport { UnfiledRecordFolderEntry } from '../model/unfiledRecordFolderEntry';\nimport { BaseApi } from './base.api';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\nimport { throwIfNotDefined } from '../../../assert';\nimport { RecordsIncludeQuery, RecordsPagingQuery, RecordsSourceQuery } from './types';\n\n/**\n * UnfiledRecordFoldersApi service.\n *\n * @module UnfiledRecordFoldersApi\n */\nexport class UnfiledRecordFoldersApi extends BaseApi {\n /**\n * Create a record or an unfiled record folder\n *\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\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 * @returns Promise<UnfiledRecordFolderAssociationPaging>\n */\n createUnfiledRecordFolderChildren(\n unfiledRecordFolderId: string,\n nodeBodyCreate: RMNodeBodyCreateWithRelativePath,\n opts?: {\n autoRename?: boolean;\n } & RecordsIncludeQuery\n ): Promise<UnfiledRecordFolderAssociationPaging> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n throwIfNotDefined(nodeBodyCreate, 'nodeBodyCreate');\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n const queryParams = {\n autoRename: opts?.autoRename,\n include: buildCollectionParam(opts?.include, 'csv'),\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.post({\n path: '/unfiled-record-folders/{unfiledRecordFolderId}/children',\n pathParams,\n queryParams,\n bodyParam: nodeBodyCreate,\n contentTypes: ['application/json', 'multipart/form-data'],\n returnType: UnfiledRecordFolderAssociationPaging\n });\n }\n\n /**\n * Delete an unfiled record folder. Deleted file plan components cannot be recovered, they are deleted permanently.\n *\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @returns Promise<{}>\n */\n deleteUnfiledRecordFolder(unfiledRecordFolderId: string): Promise<void> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n return this.delete({\n path: '/unfiled-record-folders/{unfiledRecordFolderId}',\n pathParams\n });\n }\n\n /**\n * Get the unfiled record folder\n *\n * Mandatory fields and the unfiled record folder's aspects and properties are returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @param opts Optional parameters\n * @param opts.relativePath Return information on children in the unfiled records container resolved by this path. The path is relative to **unfiledRecordFolderId**.\n * @returns Promise<UnfiledRecordFolderEntry>\n */\n getUnfiledRecordFolder(\n unfiledRecordFolderId: string,\n opts?: {\n relativePath?: string;\n } & RecordsIncludeQuery\n ): Promise<UnfiledRecordFolderEntry> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n\n const pathParams = {\n unfiledRecordFolderId\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: '/unfiled-record-folders/{unfiledRecordFolderId}',\n pathParams,\n queryParams,\n returnType: UnfiledRecordFolderEntry\n });\n }\n\n /**\n * List unfiled record folder's children\n *\n * Minimal information for each child is returned by default.\n * You can use the **include** parameter (include=allowableOperations) to return additional information.\n *\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @param opts Optional parameters\n * @param opts.where Optionally filter the list. Here are some examples:\n * - where=(isRecord=true)\n * - where=(isUnfiledRecordFolder=false)\n * - where=(nodeType='cm:content INCLUDESUBTYPES')\n * @param opts.relativePath Return information on children in the unfiled records container resolved by this path. The path is relative to **unfiledRecordFolderId**.\n * @returns Promise<UnfiledRecordFolderAssociationPaging>\n */\n listUnfiledRecordFolderChildren(\n unfiledRecordFolderId: string,\n opts?: {\n where?: string;\n relativePath?: string[];\n } & RecordsIncludeQuery &\n RecordsPagingQuery &\n RecordsSourceQuery\n ): Promise<UnfiledRecordFolderAssociationPaging> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n opts = opts || {};\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n const queryParams = {\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\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: '/unfiled-record-folders/{unfiledRecordFolderId}/children',\n pathParams,\n queryParams,\n returnType: UnfiledRecordFolderAssociationPaging\n });\n }\n\n /**\n * Updates unfiled record folder **unfiledRecordFolderId**.\n * For example, you can rename a record folder:\n *\n * @param unfiledRecordFolderId The identifier of an unfiled record folder.\n * @param unfiledRecordFolderBodyUpdate The record folder information to update.\n * @param opts Optional parameters\n * @returns Promise<UnfiledRecordFolderEntry>\n */\n updateUnfiledRecordFolder(\n unfiledRecordFolderId: string,\n unfiledRecordFolderBodyUpdate: UnfiledRecordFolderBodyUpdate,\n opts?: RecordsIncludeQuery & RecordsSourceQuery\n ): Promise<UnfiledRecordFolderEntry> {\n throwIfNotDefined(unfiledRecordFolderId, 'unfiledRecordFolderId');\n throwIfNotDefined(unfiledRecordFolderBodyUpdate, 'unfiledRecordFolderBodyUpdate');\n\n const pathParams = {\n unfiledRecordFolderId\n };\n\n const queryParams = {\n include: buildCollectionParam(opts?.include, 'csv'),\n includeSource: opts?.includeSource,\n fields: buildCollectionParam(opts?.fields, 'csv')\n };\n\n return this.put({\n path: '/unfiled-record-folders/{unfiledRecordFolderId}',\n pathParams,\n queryParams,\n bodyParam: unfiledRecordFolderBodyUpdate,\n returnType: UnfiledRecordFolderEntry\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"aspects.api.js","sourceRoot":"","sources":["aspects.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,sDAAmD;AACnD,wDAAqD;AACrD,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAElE,MAAa,eAAe;CAqC3B;AArCD,0CAqCC;AAKD,MAAa,UAAW,SAAQ,kBAAO;IAQnC,SAAS,CAAC,QAAgB;QACtB,IAAA,0BAAiB,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAc;YACzB,IAAI,EAAE,qBAAqB;YAC3B,UAAU;YACV,UAAU,EAAE,yBAAW;SAC1B,CAAC,CAAC;IACP,CAAC;IASD,WAAW,CAAC,IAAsB;QAC9B,MAAM,WAAW,GAAG;YAChB,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;SACtD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAe;YAC1B,IAAI,EAAE,UAAU;YAChB,WAAW;YACX,UAAU,EAAE,2BAAY;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AA3CD,gCA2CC","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 { AspectEntry } from '../model/aspectEntry';\nimport { AspectPaging } from '../model/aspectPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\n\nexport class ListAspectsOpts {\n /**\n * Optionally filter the list. Here are some examples:\n *\n * An aspect should be represented in the following format(prefix:name). e.g 'cm:title'.\n *\n * The following where clause will only return aspects from the namespace1:model and namespace2:model.\n *\n * - where=(modelId in ('namespace1:model','namespace2:model'))\n * - where=(modelId in ('namespace1:model INCLUDESUBASPECTS','namespace2:model'))\n *\n * The following where clause will only return sub aspects for the given parents.\n *\n * - where=(parentId in ('namespace1:parent','namespace2:parent'))\n *\n * The following where clause will only return aspects that match the pattern.\n *\n * - where=(namespaceUri matches('http://www.alfresco.*'))\n *\n * The following where clause will only return aspects that don't match the pattern.\n *\n * - where=(not namespaceUri matches('http://www.alfresco.*'))\n */\n where?: string;\n // 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.\n skipCount?: number;\n // The maximum number of items to return in the list.\n // If not supplied then the default value is 100.\n maxItems?: number;\n /**\n * Returns additional information about the aspect. The following optional fields can be requested:\n * - properties\n * - mandatoryAspects\n * - associations\n */\n include?: string[];\n}\n\n/**\n * Aspects service.\n */\nexport class AspectsApi extends BaseApi {\n /**\n * Get an aspect\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n * @param aspectId The `Qname` of an aspect(prefix:name) e.g 'cm:title'\n * @returns Promise<AspectEntry>\n */\n getAspect(aspectId: string): Promise<AspectEntry> {\n throwIfNotDefined(aspectId, 'aspectId');\n\n const pathParams = {\n aspectId\n };\n\n return this.get<AspectEntry>({\n path: '/aspects/{aspectId}',\n pathParams,\n returnType: AspectEntry\n });\n }\n\n /**\n * List aspects\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n * @param opts Optional parameters\n * @returns Promise<AspectPaging>\n */\n listAspects(opts?: ListAspectsOpts): Promise<AspectPaging> {\n const queryParams = {\n where: opts?.where,\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get<AspectPaging>({\n path: '/aspects',\n queryParams,\n returnType: AspectPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"aspects.api.js","sourceRoot":"","sources":["aspects.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,sDAAmD;AACnD,wDAAqD;AACrD,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAElE,MAAa,eAAe;CAqC3B;AArCD,0CAqCC;AAKD,MAAa,UAAW,SAAQ,kBAAO;IASnC,SAAS,CAAC,QAAgB;QACtB,IAAA,0BAAiB,EAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAExC,MAAM,UAAU,GAAG;YACf,QAAQ;SACX,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAc;YACzB,IAAI,EAAE,qBAAqB;YAC3B,UAAU;YACV,UAAU,EAAE,yBAAW;SAC1B,CAAC,CAAC;IACP,CAAC;IAUD,WAAW,CAAC,IAAsB;QAC9B,MAAM,WAAW,GAAG;YAChB,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;SACtD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAe;YAC1B,IAAI,EAAE,UAAU;YAChB,WAAW;YACX,UAAU,EAAE,2BAAY;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AA7CD,gCA6CC","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 { AspectEntry } from '../model/aspectEntry';\nimport { AspectPaging } from '../model/aspectPaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\n\nexport class ListAspectsOpts {\n /**\n * Optionally filter the list. Here are some examples:\n *\n * An aspect should be represented in the following format(prefix:name). e.g 'cm:title'.\n *\n * The following where clause will only return aspects from the namespace1:model and namespace2:model.\n *\n * - where=(modelId in ('namespace1:model','namespace2:model'))\n * - where=(modelId in ('namespace1:model INCLUDESUBASPECTS','namespace2:model'))\n *\n * The following where clause will only return sub aspects for the given parents.\n *\n * - where=(parentId in ('namespace1:parent','namespace2:parent'))\n *\n * The following where clause will only return aspects that match the pattern.\n *\n * - where=(namespaceUri matches('http://www.alfresco.*'))\n *\n * The following where clause will only return aspects that don't match the pattern.\n *\n * - where=(not namespaceUri matches('http://www.alfresco.*'))\n */\n where?: string;\n // 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.\n skipCount?: number;\n // The maximum number of items to return in the list.\n // If not supplied then the default value is 100.\n maxItems?: number;\n /**\n * Returns additional information about the aspect. The following optional fields can be requested:\n * - properties\n * - mandatoryAspects\n * - associations\n */\n include?: string[];\n}\n\n/**\n * Aspects service.\n */\nexport class AspectsApi extends BaseApi {\n /**\n * Get an aspect\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n *\n * @param aspectId The `Qname` of an aspect(prefix:name) e.g 'cm:title'\n * @returns Promise<AspectEntry>\n */\n getAspect(aspectId: string): Promise<AspectEntry> {\n throwIfNotDefined(aspectId, 'aspectId');\n\n const pathParams = {\n aspectId\n };\n\n return this.get<AspectEntry>({\n path: '/aspects/{aspectId}',\n pathParams,\n returnType: AspectEntry\n });\n }\n\n /**\n * List aspects\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n *\n * @param opts Optional parameters\n * @returns Promise<AspectPaging>\n */\n listAspects(opts?: ListAspectsOpts): Promise<AspectPaging> {\n const queryParams = {\n where: opts?.where,\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get<AspectPaging>({\n path: '/aspects',\n queryParams,\n returnType: AspectPaging\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.api.js","sourceRoot":"","sources":["types.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,kDAA+C;AAC/C,oDAAiD;AACjD,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAyClE,MAAa,QAAS,SAAQ,kBAAO;IAQjC,OAAO,CAAC,MAAc;QAClB,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAY;YACvB,IAAI,EAAE,iBAAiB;YACvB,UAAU;YACV,UAAU,EAAE,qBAAS;SACxB,CAAC,CAAC;IACP,CAAC;IASD,SAAS,CAAC,IAAoB;QAC1B,MAAM,WAAW,GAAG;YAChB,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;SACtD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAa;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW;YACX,UAAU,EAAE,uBAAU;SACzB,CAAC,CAAC;IACP,CAAC;CACJ;AA3CD,4BA2CC","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 { TypeEntry } from '../model/typeEntry';\nimport { TypePaging } from '../model/typePaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\n\nexport interface ListTypesOpts {\n /**\n * Optionally filter the list. Here are some examples:\n *\n * A type should be represented in the following format(prefix:name). e.g 'cm:content'.\n *\n * The following where clause will only return types from the namespace1:model and namespace2:model.\n * - where=(modelId in ('namespace1:model','namespace2:model'))\n * - where=(modelId in ('namespace1:model INCLUDESUBTYPES','namespace2:model'))\n *\n * The following where clause will only return sub types for the given parents.\n * - where=(parentId in ('namespace1:parent','namespace2:parent'))\n *\n * The following where clause will only return types that match the pattern.\n * - where=(namespaceUri matches('http://www.alfresco.*'))\n *\n * The following where clause will only return types that don't match the pattern.\n * - where=(not namespaceUri matches('http://www.alfresco.*'))\n */\n where?: string;\n // 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.\n skipCount?: number;\n // The maximum number of items to return in the list.\n // If not supplied then the default value is 100.\n maxItems?: number;\n /**\n * Returns additional information about the type.\n * The following optional fields can be requested:\n * - properties\n * - mandatoryAspects\n * - associations\n */\n include?: string[];\n}\n\n/**\n * Types service.\n */\nexport class TypesApi extends BaseApi {\n /**\n * Get a type\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n * @param typeId The `Qname` of a type(prefix:name) e.g 'cm:content'\n * @returns Promise<TypeEntry>\n */\n getType(typeId: string): Promise<TypeEntry> {\n throwIfNotDefined(typeId, 'typeId');\n\n const pathParams = {\n typeId\n };\n\n return this.get<TypeEntry>({\n path: '/types/{typeId}',\n pathParams,\n returnType: TypeEntry\n });\n }\n\n /**\n * List types\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n * @param opts Optional parameters\n * @returns Promise<TypePaging>\n */\n listTypes(opts?: ListTypesOpts): Promise<TypePaging> {\n const queryParams = {\n where: opts?.where,\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get<TypePaging>({\n path: '/types',\n queryParams,\n returnType: TypePaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"types.api.js","sourceRoot":"","sources":["types.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,kDAA+C;AAC/C,oDAAiD;AACjD,yCAAqC;AACrC,4CAAoD;AACpD,kEAAkE;AAyClE,MAAa,QAAS,SAAQ,kBAAO;IASjC,OAAO,CAAC,MAAc;QAClB,IAAA,0BAAiB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEpC,MAAM,UAAU,GAAG;YACf,MAAM;SACT,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAY;YACvB,IAAI,EAAE,iBAAiB;YACvB,UAAU;YACV,UAAU,EAAE,qBAAS;SACxB,CAAC,CAAC;IACP,CAAC;IAUD,SAAS,CAAC,IAAoB;QAC1B,MAAM,WAAW,GAAG;YAChB,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK;YAClB,SAAS,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;YAC1B,QAAQ,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ;YACxB,OAAO,EAAE,IAAA,wCAAoB,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,EAAE,KAAK,CAAC;SACtD,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAa;YACxB,IAAI,EAAE,QAAQ;YACd,WAAW;YACX,UAAU,EAAE,uBAAU;SACzB,CAAC,CAAC;IACP,CAAC;CACJ;AA7CD,4BA6CC","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 { TypeEntry } from '../model/typeEntry';\nimport { TypePaging } from '../model/typePaging';\nimport { BaseApi } from './base.api';\nimport { throwIfNotDefined } from '../../../assert';\nimport { buildCollectionParam } from '../../../alfrescoApiClient';\n\nexport interface ListTypesOpts {\n /**\n * Optionally filter the list. Here are some examples:\n *\n * A type should be represented in the following format(prefix:name). e.g 'cm:content'.\n *\n * The following where clause will only return types from the namespace1:model and namespace2:model.\n * - where=(modelId in ('namespace1:model','namespace2:model'))\n * - where=(modelId in ('namespace1:model INCLUDESUBTYPES','namespace2:model'))\n *\n * The following where clause will only return sub types for the given parents.\n * - where=(parentId in ('namespace1:parent','namespace2:parent'))\n *\n * The following where clause will only return types that match the pattern.\n * - where=(namespaceUri matches('http://www.alfresco.*'))\n *\n * The following where clause will only return types that don't match the pattern.\n * - where=(not namespaceUri matches('http://www.alfresco.*'))\n */\n where?: string;\n // 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.\n skipCount?: number;\n // The maximum number of items to return in the list.\n // If not supplied then the default value is 100.\n maxItems?: number;\n /**\n * Returns additional information about the type.\n * The following optional fields can be requested:\n * - properties\n * - mandatoryAspects\n * - associations\n */\n include?: string[];\n}\n\n/**\n * Types service.\n */\nexport class TypesApi extends BaseApi {\n /**\n * Get a type\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n *\n * @param typeId The `Qname` of a type(prefix:name) e.g 'cm:content'\n * @returns Promise<TypeEntry>\n */\n getType(typeId: string): Promise<TypeEntry> {\n throwIfNotDefined(typeId, 'typeId');\n\n const pathParams = {\n typeId\n };\n\n return this.get<TypeEntry>({\n path: '/types/{typeId}',\n pathParams,\n returnType: TypeEntry\n });\n }\n\n /**\n * List types\n *\n * **Note:** This is available in Alfresco 7.0.0 and newer versions.\n *\n * @param opts Optional parameters\n * @returns Promise<TypePaging>\n */\n listTypes(opts?: ListTypesOpts): Promise<TypePaging> {\n const queryParams = {\n where: opts?.where,\n skipCount: opts?.skipCount,\n maxItems: opts?.maxItems,\n include: buildCollectionParam(opts?.include, 'csv')\n };\n\n return this.get<TypePaging>({\n path: '/types',\n queryParams,\n returnType: TypePaging\n });\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"search.api.js","sourceRoot":"","sources":["search.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,8DAA2D;AAE3D,4CAAoD;AACpD,gEAA4D;AAO5D,MAAa,SAAU,SAAQ,sBAAS;IACpC,IAAa,SAAS;;QAClB,OAAO,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IASD,MAAM,CAAC,SAAwB;QAC3B,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,iCAAe;SAC9B,CAAC,CAAC;IACP,CAAC;CACJ;AArBD,8BAqBC","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 { ResultSetPaging } from '../model/resultSetPaging';\nimport { SearchRequest } from '../model/searchRequest';\nimport { throwIfNotDefined } from '../../../assert';\nimport { ApiClient } from '../../../api-clients/api-client';\nimport { LegacyHttpClient } from '../../../api-clients/http-client.interface';\n\n/**\n * Search service.\n * @module SearchApi\n */\nexport class SearchApi extends ApiClient {\n override get apiClient(): LegacyHttpClient {\n return this.httpClient ?? this.alfrescoApi.searchClient;\n }\n\n /**\n * Searches Alfresco\n *\n * **Note**: this endpoint is available in Alfresco 5.2 and newer versions.\n * @param queryBody Generic query API\n * @returns Promise<ResultSetPaging>\n */\n search(queryBody: SearchRequest): Promise<ResultSetPaging> {\n throwIfNotDefined(queryBody, 'queryBody');\n\n return this.post({\n path: '/search',\n bodyParam: queryBody,\n returnType: ResultSetPaging\n });\n }\n}\n"]}
1
+ {"version":3,"file":"search.api.js","sourceRoot":"","sources":["search.api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,8DAA2D;AAE3D,4CAAoD;AACpD,gEAA4D;AAQ5D,MAAa,SAAU,SAAQ,sBAAS;IACpC,IAAa,SAAS;;QAClB,OAAO,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAUD,MAAM,CAAC,SAAwB;QAC3B,IAAA,0BAAiB,EAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QAE1C,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,iCAAe;SAC9B,CAAC,CAAC;IACP,CAAC;CACJ;AAtBD,8BAsBC","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 { ResultSetPaging } from '../model/resultSetPaging';\nimport { SearchRequest } from '../model/searchRequest';\nimport { throwIfNotDefined } from '../../../assert';\nimport { ApiClient } from '../../../api-clients/api-client';\nimport { LegacyHttpClient } from '../../../api-clients/http-client.interface';\n\n/**\n * Search service.\n *\n * @module SearchApi\n */\nexport class SearchApi extends ApiClient {\n override get apiClient(): LegacyHttpClient {\n return this.httpClient ?? this.alfrescoApi.searchClient;\n }\n\n /**\n * Searches Alfresco\n *\n * **Note**: this endpoint is available in Alfresco 5.2 and newer versions.\n *\n * @param queryBody Generic query API\n * @returns Promise<ResultSetPaging>\n */\n search(queryBody: SearchRequest): Promise<ResultSetPaging> {\n throwIfNotDefined(queryBody, 'queryBody');\n\n return this.post({\n path: '/search',\n bodyParam: queryBody,\n returnType: ResultSetPaging\n });\n }\n}\n"]}
package/src/assert.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"assert.js","sourceRoot":"","sources":["assert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAOH,8CAIC;AAJD,SAAgB,iBAAiB,CAAC,KAAU,EAAE,IAAY;IACtD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,GAAG,CAAC,CAAC;IAC/C,CAAC;AACL,CAAC","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\n/**\n * Throw exception if param is not defined\n * @param param param\n * @param name param name\n */\nexport function throwIfNotDefined(param: any, name: string) {\n if (param === null || param === undefined) {\n throw new Error(`Missing param '${name}'`);\n }\n}\n"]}
1
+ {"version":3,"file":"assert.js","sourceRoot":"","sources":["assert.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAQH,8CAIC;AAJD,SAAgB,iBAAiB,CAAC,KAAU,EAAE,IAAY;IACtD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,GAAG,CAAC,CAAC;IAC/C,CAAC;AACL,CAAC","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\n/**\n * Throw exception if param is not defined\n *\n * @param param param\n * @param name param name\n */\nexport function throwIfNotDefined(param: any, name: string) {\n if (param === null || param === undefined) {\n throw new Error(`Missing param '${name}'`);\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"contentAuth.js","sourceRoot":"","sources":["contentAuth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,iDAA6C;AAC7C,wDAAqE;AACrE,4DAAyD;AAGzD,wCAAqC;AAIrC,MAAa,WAAY,SAAQ,qCAAiB;IAM9C,YAAY,MAAyB,EAAE,WAA4B,EAAE,UAAuB;QACxF,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,aAAa,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC,WAAW,EAAE,CAAC;QACrC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAElD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,OAAO,GAAG,IAAI,iCAAiB,CAAC,WAAW,CAAC,CAAC;IACtD,CAAC;IAED,SAAS,CAAC,MAAyB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,iDAAiD,CAAC;QAExH,IAAI,CAAC,kBAAkB,GAAG,YAAY,CAAC;QAEvC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YACxB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,CAAC;aAAM,IAAI,IAAI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GAAG,MAAM,CAAC;QACjD,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAMD,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,iBAAiB;QACb,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACjD,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC/C,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IAMD,UAAU;QACN,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;IACzB,CAAC;IAMD,iBAAiB;QACb,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;CACJ;AAnLD,kCAmLC","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 { EventEmitter } from 'eventemitter3';\nimport { AuthenticationApi, TicketBody } from '../api/auth-rest-api';\nimport { AlfrescoApiClient } from '../alfrescoApiClient';\nimport { AlfrescoApiConfig } from '../alfrescoApiConfig';\nimport { Authentication } from './authentication';\nimport { Storage } from '../storage';\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { HttpClient } from '../api-clients/http-client.interface';\n\nexport class ContentAuth extends AlfrescoApiClient {\n ticketStorageLabel: string;\n ticket: string;\n\n authApi: AuthenticationApi;\n\n constructor(config: AlfrescoApiConfig, alfrescoApi: AlfrescoApiType, httpClient?: HttpClient) {\n super(undefined, httpClient);\n this.className = 'ContentAuth';\n this.storage = Storage.getInstance();\n this.storage.setDomainPrefix(config.domainPrefix);\n\n this.setConfig(config);\n\n this.authApi = new AuthenticationApi(alfrescoApi);\n }\n\n setConfig(config: AlfrescoApiConfig) {\n this.config = config;\n\n this.basePath = this.config.hostEcm + '/' + this.config.contextRoot + '/api/-default-/public/authentication/versions/1'; //Auth Call\n\n this.ticketStorageLabel = 'ticket-ECM';\n\n if (this.config.ticketEcm) {\n this.setTicket(config.ticketEcm);\n } else if (this.storage.getItem(this.ticketStorageLabel)) {\n this.setTicket(this.storage.getItem(this.ticketStorageLabel));\n }\n }\n\n changeHost() {\n this.basePath = this.config.hostEcm + '/' + this.config.contextRoot + '/api/-default-/public/authentication/versions/1'; //Auth Call\n this.ticket = undefined;\n }\n\n saveUsername(username: string) {\n if (this.storage.supportsStorage()) {\n this.storage.setItem('ACS_USERNAME', username);\n }\n }\n\n /**\n * login Alfresco API\n * @param username Username to login\n * @param password Password to login\n * @returns A promise that returns {new authentication ticket} if resolved and {error} if rejected.\n */\n login(username: string, password: string): Promise<string> {\n this.authentications.basicAuth.username = username;\n this.authentications.basicAuth.password = password;\n\n const loginRequest = new TicketBody({\n userId: this.authentications.basicAuth.username,\n password: this.authentications.basicAuth.password\n });\n\n const promise: any = new Promise<string>((resolve, reject) => {\n this.authApi.createTicket(loginRequest).then(\n (data) => {\n this.saveUsername(username);\n this.setTicket(data.entry.id);\n promise.emit('success');\n this.emit('logged-in');\n resolve(data.entry.id);\n },\n (error) => {\n this.saveUsername('');\n if (error.status === 401) {\n promise.emit('unauthorized');\n } else if (error.status === 403) {\n promise.emit('forbidden');\n } else {\n promise.emit('error');\n }\n reject(error);\n }\n );\n });\n\n return this.addPromiseListeners(promise, new EventEmitter());\n }\n\n /**\n * validate the ticket present in this.config.ticket against the server\n * @returns A promise that returns if resolved and {error} if rejected.\n */\n validateTicket(): Promise<string> {\n this.setTicket(this.config.ticketEcm);\n\n const promise: any = new Promise<string>((resolve, reject) => {\n this.authApi.validateTicket().then(\n (data) => {\n this.setTicket(data.entry.id);\n promise.emit('success');\n this.emit('logged-in');\n resolve(data.entry.id);\n },\n (error) => {\n if (error.status === 401) {\n promise.emit('unauthorized');\n }\n promise.emit('error');\n reject(error);\n }\n );\n });\n\n return this.addPromiseListeners(promise, new EventEmitter());\n }\n\n /**\n * logout Alfresco API\n * @returns A promise that returns { authentication ticket} if resolved and {error} if rejected.\n */\n logout(): Promise<void> {\n this.saveUsername('');\n const promise: any = new Promise<void>((resolve, reject) => {\n this.authApi.deleteTicket().then(\n () => {\n promise.emit('logout');\n this.invalidateSession();\n resolve();\n },\n (error) => {\n if (error.status === 401) {\n promise.emit('unauthorized');\n }\n promise.emit('error');\n reject(error);\n }\n );\n });\n\n return this.addPromiseListeners(promise, new EventEmitter());\n }\n\n /**\n * Set the current Ticket\n */\n setTicket(ticket: string) {\n this.authentications.basicAuth.username = 'ROLE_TICKET';\n this.authentications.basicAuth.password = ticket;\n this.config.ticketEcm = ticket;\n this.storage.setItem(this.ticketStorageLabel, ticket);\n this.ticket = ticket;\n }\n\n /**\n * Get the current Ticket\n * @returns ticket value\n */\n getTicket(): string {\n return this.ticket;\n }\n\n invalidateSession() {\n this.storage.removeItem(this.ticketStorageLabel);\n this.authentications.basicAuth.username = null;\n this.authentications.basicAuth.password = null;\n this.config.ticketEcm = null;\n this.ticket = null;\n }\n\n /**\n * If the client is logged in return true\n * @returns `true` if client is logged in, otherwise `false`\n */\n isLoggedIn(): boolean {\n return !!this.ticket;\n }\n\n /**\n * return the Authentication\n * @returns authentication object\n */\n getAuthentication(): Authentication {\n return this.authentications;\n }\n}\n"]}
1
+ {"version":3,"file":"contentAuth.js","sourceRoot":"","sources":["contentAuth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,iDAA6C;AAC7C,wDAAqE;AACrE,4DAAyD;AAGzD,wCAAqC;AAIrC,MAAa,WAAY,SAAQ,qCAAiB;IAM9C,YAAY,MAAyB,EAAE,WAA4B,EAAE,UAAuB;QACxF,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,aAAa,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC,WAAW,EAAE,CAAC;QACrC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAElD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEvB,IAAI,CAAC,OAAO,GAAG,IAAI,iCAAiB,CAAC,WAAW,CAAC,CAAC;IACtD,CAAC;IAED,SAAS,CAAC,MAAyB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,iDAAiD,CAAC;QAExH,IAAI,CAAC,kBAAkB,GAAG,YAAY,CAAC;QAEvC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YACxB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,CAAC;aAAM,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACvD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAClE,CAAC;IACL,CAAC;IAED,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ACzB,CAAC;IAOD,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,iBAAiB;QACb,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACjD,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC/C,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IAOD,UAAU;QACN,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;IACzB,CAAC;IAOD,iBAAiB;QACb,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;CACJ;AAzLD,kCAyLC","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 { EventEmitter } from 'eventemitter3';\nimport { AuthenticationApi, TicketBody } from '../api/auth-rest-api';\nimport { AlfrescoApiClient } from '../alfrescoApiClient';\nimport { AlfrescoApiConfig } from '../alfrescoApiConfig';\nimport { Authentication } from './authentication';\nimport { Storage } from '../storage';\nimport { AlfrescoApiType } from '../to-deprecate/alfresco-api-type';\nimport { HttpClient } from '../api-clients/http-client.interface';\n\nexport class ContentAuth extends AlfrescoApiClient {\n ticketStorageLabel: string;\n ticket: string;\n\n authApi: AuthenticationApi;\n\n constructor(config: AlfrescoApiConfig, alfrescoApi: AlfrescoApiType, httpClient?: HttpClient) {\n super(undefined, httpClient);\n this.className = 'ContentAuth';\n this.storage = Storage.getInstance();\n this.storage.setDomainPrefix(config.domainPrefix);\n\n this.setConfig(config);\n\n this.authApi = new AuthenticationApi(alfrescoApi);\n }\n\n setConfig(config: AlfrescoApiConfig) {\n this.config = config;\n\n this.basePath = this.config.hostEcm + '/' + this.config.contextRoot + '/api/-default-/public/authentication/versions/1'; //Auth Call\n\n this.ticketStorageLabel = 'ticket-ECM';\n\n if (this.config.ticketEcm) {\n this.setTicket(config.ticketEcm);\n } else if (this.storage.getItem(this.ticketStorageLabel)) {\n this.setTicket(this.storage.getItem(this.ticketStorageLabel));\n }\n }\n\n changeHost() {\n this.basePath = this.config.hostEcm + '/' + this.config.contextRoot + '/api/-default-/public/authentication/versions/1'; //Auth Call\n this.ticket = undefined;\n }\n\n saveUsername(username: string) {\n if (this.storage.supportsStorage()) {\n this.storage.setItem('ACS_USERNAME', username);\n }\n }\n\n /**\n * login Alfresco API\n *\n * @param username Username to login\n * @param password Password to login\n * @returns A promise that returns {new authentication ticket} if resolved and {error} if rejected.\n */\n login(username: string, password: string): Promise<string> {\n this.authentications.basicAuth.username = username;\n this.authentications.basicAuth.password = password;\n\n const loginRequest = new TicketBody({\n userId: this.authentications.basicAuth.username,\n password: this.authentications.basicAuth.password\n });\n\n const promise: any = new Promise<string>((resolve, reject) => {\n this.authApi.createTicket(loginRequest).then(\n (data) => {\n this.saveUsername(username);\n this.setTicket(data.entry.id);\n promise.emit('success');\n this.emit('logged-in');\n resolve(data.entry.id);\n },\n (error) => {\n this.saveUsername('');\n if (error.status === 401) {\n promise.emit('unauthorized');\n } else if (error.status === 403) {\n promise.emit('forbidden');\n } else {\n promise.emit('error');\n }\n reject(error);\n }\n );\n });\n\n return this.addPromiseListeners(promise, new EventEmitter());\n }\n\n /**\n * validate the ticket present in this.config.ticket against the server\n *\n * @returns A promise that returns if resolved and {error} if rejected.\n */\n validateTicket(): Promise<string> {\n this.setTicket(this.config.ticketEcm);\n\n const promise: any = new Promise<string>((resolve, reject) => {\n this.authApi.validateTicket().then(\n (data) => {\n this.setTicket(data.entry.id);\n promise.emit('success');\n this.emit('logged-in');\n resolve(data.entry.id);\n },\n (error) => {\n if (error.status === 401) {\n promise.emit('unauthorized');\n }\n promise.emit('error');\n reject(error);\n }\n );\n });\n\n return this.addPromiseListeners(promise, new EventEmitter());\n }\n\n /**\n * logout Alfresco API\n *\n * @returns A promise that returns { authentication ticket} if resolved and {error} if rejected.\n */\n logout(): Promise<void> {\n this.saveUsername('');\n const promise: any = new Promise<void>((resolve, reject) => {\n this.authApi.deleteTicket().then(\n () => {\n promise.emit('logout');\n this.invalidateSession();\n resolve();\n },\n (error) => {\n if (error.status === 401) {\n promise.emit('unauthorized');\n }\n promise.emit('error');\n reject(error);\n }\n );\n });\n\n return this.addPromiseListeners(promise, new EventEmitter());\n }\n\n /**\n * Set the current Ticket\n */\n setTicket(ticket: string) {\n this.authentications.basicAuth.username = 'ROLE_TICKET';\n this.authentications.basicAuth.password = ticket;\n this.config.ticketEcm = ticket;\n this.storage.setItem(this.ticketStorageLabel, ticket);\n this.ticket = ticket;\n }\n\n /**\n * Get the current Ticket\n *\n * @returns ticket value\n */\n getTicket(): string {\n return this.ticket;\n }\n\n invalidateSession() {\n this.storage.removeItem(this.ticketStorageLabel);\n this.authentications.basicAuth.username = null;\n this.authentications.basicAuth.password = null;\n this.config.ticketEcm = null;\n this.ticket = null;\n }\n\n /**\n * If the client is logged in return true\n *\n * @returns `true` if client is logged in, otherwise `false`\n */\n isLoggedIn(): boolean {\n return !!this.ticket;\n }\n\n /**\n * return the Authentication\n *\n * @returns authentication object\n */\n getAuthentication(): Authentication {\n return this.authentications;\n }\n}\n"]}