@openfilz-sdk/typescript-ee 1.3.5

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 (507) hide show
  1. package/.openapi-generator/FILES +167 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/LICENSE +148 -0
  6. package/README.md +211 -0
  7. package/api/audit-controller-api.ts +283 -0
  8. package/api/collaboration-controller-api.ts +1172 -0
  9. package/api/comments-api.ts +284 -0
  10. package/api/dashboard-api.ts +121 -0
  11. package/api/document-controller-api.ts +1287 -0
  12. package/api/document-suggestion-controller-api.ts +149 -0
  13. package/api/favorites-api.ts +340 -0
  14. package/api/file-controller-api.ts +363 -0
  15. package/api/folder-controller-api.ts +605 -0
  16. package/api/notifications-api.ts +386 -0
  17. package/api/scan-agent-api.ts +206 -0
  18. package/api/scanner-proxy-api.ts +428 -0
  19. package/api/search-administration-api.ts +314 -0
  20. package/api/settings-api.ts +196 -0
  21. package/api/tus-controller-api.ts +738 -0
  22. package/api.ts +32 -0
  23. package/base.ts +62 -0
  24. package/common.ts +127 -0
  25. package/configuration.ts +121 -0
  26. package/dist/api/audit-controller-api.d.ts +138 -0
  27. package/dist/api/audit-controller-api.js +275 -0
  28. package/dist/api/collaboration-controller-api.d.ts +534 -0
  29. package/dist/api/collaboration-controller-api.js +1120 -0
  30. package/dist/api/comments-api.d.ts +137 -0
  31. package/dist/api/comments-api.js +278 -0
  32. package/dist/api/dashboard-api.d.ts +63 -0
  33. package/dist/api/dashboard-api.js +125 -0
  34. package/dist/api/document-controller-api.d.ts +594 -0
  35. package/dist/api/document-controller-api.js +1219 -0
  36. package/dist/api/document-suggestion-controller-api.d.ts +73 -0
  37. package/dist/api/document-suggestion-controller-api.js +146 -0
  38. package/dist/api/favorites-api.d.ts +162 -0
  39. package/dist/api/favorites-api.js +337 -0
  40. package/dist/api/file-controller-api.d.ts +172 -0
  41. package/dist/api/file-controller-api.js +348 -0
  42. package/dist/api/folder-controller-api.d.ts +282 -0
  43. package/dist/api/folder-controller-api.js +573 -0
  44. package/dist/api/notifications-api.d.ts +179 -0
  45. package/dist/api/notifications-api.js +378 -0
  46. package/dist/api/scan-agent-api.d.ts +108 -0
  47. package/dist/api/scan-agent-api.js +208 -0
  48. package/dist/api/scanner-proxy-api.d.ts +202 -0
  49. package/dist/api/scanner-proxy-api.js +414 -0
  50. package/dist/api/search-administration-api.d.ts +146 -0
  51. package/dist/api/search-administration-api.js +311 -0
  52. package/dist/api/settings-api.d.ts +96 -0
  53. package/dist/api/settings-api.js +195 -0
  54. package/dist/api/tus-controller-api.d.ts +338 -0
  55. package/dist/api/tus-controller-api.js +712 -0
  56. package/dist/api.d.ts +26 -0
  57. package/dist/api.js +44 -0
  58. package/dist/base.d.ts +42 -0
  59. package/dist/base.js +46 -0
  60. package/dist/common.d.ts +34 -0
  61. package/dist/common.js +139 -0
  62. package/dist/configuration.d.ts +98 -0
  63. package/dist/configuration.js +44 -0
  64. package/dist/esm/api/audit-controller-api.d.ts +138 -0
  65. package/dist/esm/api/audit-controller-api.js +268 -0
  66. package/dist/esm/api/collaboration-controller-api.d.ts +534 -0
  67. package/dist/esm/api/collaboration-controller-api.js +1113 -0
  68. package/dist/esm/api/comments-api.d.ts +137 -0
  69. package/dist/esm/api/comments-api.js +271 -0
  70. package/dist/esm/api/dashboard-api.d.ts +63 -0
  71. package/dist/esm/api/dashboard-api.js +118 -0
  72. package/dist/esm/api/document-controller-api.d.ts +594 -0
  73. package/dist/esm/api/document-controller-api.js +1212 -0
  74. package/dist/esm/api/document-suggestion-controller-api.d.ts +73 -0
  75. package/dist/esm/api/document-suggestion-controller-api.js +139 -0
  76. package/dist/esm/api/favorites-api.d.ts +162 -0
  77. package/dist/esm/api/favorites-api.js +330 -0
  78. package/dist/esm/api/file-controller-api.d.ts +172 -0
  79. package/dist/esm/api/file-controller-api.js +341 -0
  80. package/dist/esm/api/folder-controller-api.d.ts +282 -0
  81. package/dist/esm/api/folder-controller-api.js +566 -0
  82. package/dist/esm/api/notifications-api.d.ts +179 -0
  83. package/dist/esm/api/notifications-api.js +371 -0
  84. package/dist/esm/api/scan-agent-api.d.ts +108 -0
  85. package/dist/esm/api/scan-agent-api.js +201 -0
  86. package/dist/esm/api/scanner-proxy-api.d.ts +202 -0
  87. package/dist/esm/api/scanner-proxy-api.js +407 -0
  88. package/dist/esm/api/search-administration-api.d.ts +146 -0
  89. package/dist/esm/api/search-administration-api.js +304 -0
  90. package/dist/esm/api/settings-api.d.ts +96 -0
  91. package/dist/esm/api/settings-api.js +188 -0
  92. package/dist/esm/api/tus-controller-api.d.ts +338 -0
  93. package/dist/esm/api/tus-controller-api.js +705 -0
  94. package/dist/esm/api.d.ts +26 -0
  95. package/dist/esm/api.js +28 -0
  96. package/dist/esm/base.d.ts +42 -0
  97. package/dist/esm/base.js +41 -0
  98. package/dist/esm/common.d.ts +34 -0
  99. package/dist/esm/common.js +126 -0
  100. package/dist/esm/configuration.d.ts +98 -0
  101. package/dist/esm/configuration.js +40 -0
  102. package/dist/esm/index.d.ts +14 -0
  103. package/dist/esm/index.js +16 -0
  104. package/dist/esm/models/ancestor-info.d.ts +16 -0
  105. package/dist/esm/models/ancestor-info.js +14 -0
  106. package/dist/esm/models/audit-log-details-one-of.d.ts +42 -0
  107. package/dist/esm/models/audit-log-details-one-of.js +14 -0
  108. package/dist/esm/models/audit-log-details.d.ts +14 -0
  109. package/dist/esm/models/audit-log-details.js +14 -0
  110. package/dist/esm/models/audit-log.d.ts +63 -0
  111. package/dist/esm/models/audit-log.js +49 -0
  112. package/dist/esm/models/audit-verification-result.d.ts +28 -0
  113. package/dist/esm/models/audit-verification-result.js +18 -0
  114. package/dist/esm/models/broken-link.d.ts +16 -0
  115. package/dist/esm/models/broken-link.js +14 -0
  116. package/dist/esm/models/comment-dto.d.ts +22 -0
  117. package/dist/esm/models/comment-dto.js +14 -0
  118. package/dist/esm/models/copy-audit.d.ts +17 -0
  119. package/dist/esm/models/copy-audit.js +14 -0
  120. package/dist/esm/models/copy-request.d.ts +25 -0
  121. package/dist/esm/models/copy-request.js +14 -0
  122. package/dist/esm/models/copy-response.d.ts +21 -0
  123. package/dist/esm/models/copy-response.js +14 -0
  124. package/dist/esm/models/create-blank-document-request.d.ts +29 -0
  125. package/dist/esm/models/create-blank-document-request.js +19 -0
  126. package/dist/esm/models/create-comment-request.d.ts +25 -0
  127. package/dist/esm/models/create-comment-request.js +14 -0
  128. package/dist/esm/models/create-folder-audit.d.ts +17 -0
  129. package/dist/esm/models/create-folder-audit.js +14 -0
  130. package/dist/esm/models/create-folder-request.d.ts +18 -0
  131. package/dist/esm/models/create-folder-request.js +14 -0
  132. package/dist/esm/models/create-team-request.d.ts +15 -0
  133. package/dist/esm/models/create-team-request.js +14 -0
  134. package/dist/esm/models/dashboard-statistics-response.d.ts +19 -0
  135. package/dist/esm/models/dashboard-statistics-response.js +14 -0
  136. package/dist/esm/models/delete-audit.d.ts +17 -0
  137. package/dist/esm/models/delete-audit.js +14 -0
  138. package/dist/esm/models/delete-metadata-audit.d.ts +17 -0
  139. package/dist/esm/models/delete-metadata-audit.js +14 -0
  140. package/dist/esm/models/delete-metadata-request.d.ts +17 -0
  141. package/dist/esm/models/delete-metadata-request.js +14 -0
  142. package/dist/esm/models/delete-request.d.ts +17 -0
  143. package/dist/esm/models/delete-request.js +14 -0
  144. package/dist/esm/models/delete-share-request.d.ts +18 -0
  145. package/dist/esm/models/delete-share-request.js +14 -0
  146. package/dist/esm/models/document-info.d.ts +44 -0
  147. package/dist/esm/models/document-info.js +17 -0
  148. package/dist/esm/models/document-position.d.ts +17 -0
  149. package/dist/esm/models/document-position.js +14 -0
  150. package/dist/esm/models/element-info.d.ts +16 -0
  151. package/dist/esm/models/element-info.js +14 -0
  152. package/dist/esm/models/file-type-stats.d.ts +16 -0
  153. package/dist/esm/models/file-type-stats.js +14 -0
  154. package/dist/esm/models/filter-input.d.ts +15 -0
  155. package/dist/esm/models/filter-input.js +14 -0
  156. package/dist/esm/models/folder-element-info.d.ts +30 -0
  157. package/dist/esm/models/folder-element-info.js +17 -0
  158. package/dist/esm/models/folder-response.d.ts +16 -0
  159. package/dist/esm/models/folder-response.js +14 -0
  160. package/dist/esm/models/index.d.ts +62 -0
  161. package/dist/esm/models/index.js +62 -0
  162. package/dist/esm/models/ingestion-status-dto.d.ts +22 -0
  163. package/dist/esm/models/ingestion-status-dto.js +14 -0
  164. package/dist/esm/models/move-audit.d.ts +17 -0
  165. package/dist/esm/models/move-audit.js +14 -0
  166. package/dist/esm/models/move-request.d.ts +25 -0
  167. package/dist/esm/models/move-request.js +14 -0
  168. package/dist/esm/models/notification-dto.d.ts +29 -0
  169. package/dist/esm/models/notification-dto.js +19 -0
  170. package/dist/esm/models/rename-audit.d.ts +17 -0
  171. package/dist/esm/models/rename-audit.js +14 -0
  172. package/dist/esm/models/rename-request.d.ts +14 -0
  173. package/dist/esm/models/rename-request.js +14 -0
  174. package/dist/esm/models/replace-audit.d.ts +17 -0
  175. package/dist/esm/models/replace-audit.js +14 -0
  176. package/dist/esm/models/scan-job-status-dto.d.ts +20 -0
  177. package/dist/esm/models/scan-job-status-dto.js +14 -0
  178. package/dist/esm/models/scan-request-dto.d.ts +18 -0
  179. package/dist/esm/models/scan-request-dto.js +14 -0
  180. package/dist/esm/models/scanner-info-dto.d.ts +22 -0
  181. package/dist/esm/models/scanner-info-dto.js +14 -0
  182. package/dist/esm/models/search-by-audit-log-request.d.ts +76 -0
  183. package/dist/esm/models/search-by-audit-log-request.js +49 -0
  184. package/dist/esm/models/search-by-metadata-request.d.ts +43 -0
  185. package/dist/esm/models/search-by-metadata-request.js +17 -0
  186. package/dist/esm/models/search-metadata-request.d.ts +17 -0
  187. package/dist/esm/models/search-metadata-request.js +14 -0
  188. package/dist/esm/models/settings.d.ts +19 -0
  189. package/dist/esm/models/settings.js +14 -0
  190. package/dist/esm/models/share-request.d.ts +35 -0
  191. package/dist/esm/models/share-request.js +18 -0
  192. package/dist/esm/models/share-result-error.d.ts +26 -0
  193. package/dist/esm/models/share-result-error.js +22 -0
  194. package/dist/esm/models/share-result-item.d.ts +15 -0
  195. package/dist/esm/models/share-result-item.js +14 -0
  196. package/dist/esm/models/share-result-response.d.ts +18 -0
  197. package/dist/esm/models/share-result-response.js +14 -0
  198. package/dist/esm/models/sort-input.d.ts +20 -0
  199. package/dist/esm/models/sort-input.js +17 -0
  200. package/dist/esm/models/storage-breakdown.d.ts +17 -0
  201. package/dist/esm/models/storage-breakdown.js +14 -0
  202. package/dist/esm/models/suggest.d.ts +17 -0
  203. package/dist/esm/models/suggest.js +14 -0
  204. package/dist/esm/models/team-member-info.d.ts +23 -0
  205. package/dist/esm/models/team-member-info.js +18 -0
  206. package/dist/esm/models/tus-config-response.d.ts +18 -0
  207. package/dist/esm/models/tus-config-response.js +14 -0
  208. package/dist/esm/models/tus-finalize-request.d.ts +19 -0
  209. package/dist/esm/models/tus-finalize-request.js +14 -0
  210. package/dist/esm/models/tus-upload-info.d.ts +18 -0
  211. package/dist/esm/models/tus-upload-info.js +14 -0
  212. package/dist/esm/models/update-comment-request.d.ts +21 -0
  213. package/dist/esm/models/update-comment-request.js +14 -0
  214. package/dist/esm/models/update-metadata-audit.d.ts +17 -0
  215. package/dist/esm/models/update-metadata-audit.js +14 -0
  216. package/dist/esm/models/update-metadata-request.d.ts +19 -0
  217. package/dist/esm/models/update-metadata-request.js +14 -0
  218. package/dist/esm/models/update-team-request.d.ts +15 -0
  219. package/dist/esm/models/update-team-request.js +14 -0
  220. package/dist/esm/models/update-user-request.d.ts +22 -0
  221. package/dist/esm/models/update-user-request.js +18 -0
  222. package/dist/esm/models/upload-audit.d.ts +17 -0
  223. package/dist/esm/models/upload-audit.js +14 -0
  224. package/dist/esm/models/upload-response.d.ts +19 -0
  225. package/dist/esm/models/upload-response.js +14 -0
  226. package/dist/esm/models/user-preferences-request.d.ts +15 -0
  227. package/dist/esm/models/user-preferences-request.js +14 -0
  228. package/dist/esm/models/user-registration-request.d.ts +22 -0
  229. package/dist/esm/models/user-registration-request.js +18 -0
  230. package/dist/index.d.ts +14 -0
  231. package/dist/index.js +32 -0
  232. package/dist/models/ancestor-info.d.ts +16 -0
  233. package/dist/models/ancestor-info.js +15 -0
  234. package/dist/models/audit-log-details-one-of.d.ts +42 -0
  235. package/dist/models/audit-log-details-one-of.js +15 -0
  236. package/dist/models/audit-log-details.d.ts +14 -0
  237. package/dist/models/audit-log-details.js +15 -0
  238. package/dist/models/audit-log.d.ts +63 -0
  239. package/dist/models/audit-log.js +52 -0
  240. package/dist/models/audit-verification-result.d.ts +28 -0
  241. package/dist/models/audit-verification-result.js +21 -0
  242. package/dist/models/broken-link.d.ts +16 -0
  243. package/dist/models/broken-link.js +15 -0
  244. package/dist/models/comment-dto.d.ts +22 -0
  245. package/dist/models/comment-dto.js +15 -0
  246. package/dist/models/copy-audit.d.ts +17 -0
  247. package/dist/models/copy-audit.js +15 -0
  248. package/dist/models/copy-request.d.ts +25 -0
  249. package/dist/models/copy-request.js +15 -0
  250. package/dist/models/copy-response.d.ts +21 -0
  251. package/dist/models/copy-response.js +15 -0
  252. package/dist/models/create-blank-document-request.d.ts +29 -0
  253. package/dist/models/create-blank-document-request.js +22 -0
  254. package/dist/models/create-comment-request.d.ts +25 -0
  255. package/dist/models/create-comment-request.js +15 -0
  256. package/dist/models/create-folder-audit.d.ts +17 -0
  257. package/dist/models/create-folder-audit.js +15 -0
  258. package/dist/models/create-folder-request.d.ts +18 -0
  259. package/dist/models/create-folder-request.js +15 -0
  260. package/dist/models/create-team-request.d.ts +15 -0
  261. package/dist/models/create-team-request.js +15 -0
  262. package/dist/models/dashboard-statistics-response.d.ts +19 -0
  263. package/dist/models/dashboard-statistics-response.js +15 -0
  264. package/dist/models/delete-audit.d.ts +17 -0
  265. package/dist/models/delete-audit.js +15 -0
  266. package/dist/models/delete-metadata-audit.d.ts +17 -0
  267. package/dist/models/delete-metadata-audit.js +15 -0
  268. package/dist/models/delete-metadata-request.d.ts +17 -0
  269. package/dist/models/delete-metadata-request.js +15 -0
  270. package/dist/models/delete-request.d.ts +17 -0
  271. package/dist/models/delete-request.js +15 -0
  272. package/dist/models/delete-share-request.d.ts +18 -0
  273. package/dist/models/delete-share-request.js +15 -0
  274. package/dist/models/document-info.d.ts +44 -0
  275. package/dist/models/document-info.js +20 -0
  276. package/dist/models/document-position.d.ts +17 -0
  277. package/dist/models/document-position.js +15 -0
  278. package/dist/models/element-info.d.ts +16 -0
  279. package/dist/models/element-info.js +15 -0
  280. package/dist/models/file-type-stats.d.ts +16 -0
  281. package/dist/models/file-type-stats.js +15 -0
  282. package/dist/models/filter-input.d.ts +15 -0
  283. package/dist/models/filter-input.js +15 -0
  284. package/dist/models/folder-element-info.d.ts +30 -0
  285. package/dist/models/folder-element-info.js +20 -0
  286. package/dist/models/folder-response.d.ts +16 -0
  287. package/dist/models/folder-response.js +15 -0
  288. package/dist/models/index.d.ts +62 -0
  289. package/dist/models/index.js +78 -0
  290. package/dist/models/ingestion-status-dto.d.ts +22 -0
  291. package/dist/models/ingestion-status-dto.js +15 -0
  292. package/dist/models/move-audit.d.ts +17 -0
  293. package/dist/models/move-audit.js +15 -0
  294. package/dist/models/move-request.d.ts +25 -0
  295. package/dist/models/move-request.js +15 -0
  296. package/dist/models/notification-dto.d.ts +29 -0
  297. package/dist/models/notification-dto.js +22 -0
  298. package/dist/models/rename-audit.d.ts +17 -0
  299. package/dist/models/rename-audit.js +15 -0
  300. package/dist/models/rename-request.d.ts +14 -0
  301. package/dist/models/rename-request.js +15 -0
  302. package/dist/models/replace-audit.d.ts +17 -0
  303. package/dist/models/replace-audit.js +15 -0
  304. package/dist/models/scan-job-status-dto.d.ts +20 -0
  305. package/dist/models/scan-job-status-dto.js +15 -0
  306. package/dist/models/scan-request-dto.d.ts +18 -0
  307. package/dist/models/scan-request-dto.js +15 -0
  308. package/dist/models/scanner-info-dto.d.ts +22 -0
  309. package/dist/models/scanner-info-dto.js +15 -0
  310. package/dist/models/search-by-audit-log-request.d.ts +76 -0
  311. package/dist/models/search-by-audit-log-request.js +52 -0
  312. package/dist/models/search-by-metadata-request.d.ts +43 -0
  313. package/dist/models/search-by-metadata-request.js +20 -0
  314. package/dist/models/search-metadata-request.d.ts +17 -0
  315. package/dist/models/search-metadata-request.js +15 -0
  316. package/dist/models/settings.d.ts +19 -0
  317. package/dist/models/settings.js +15 -0
  318. package/dist/models/share-request.d.ts +35 -0
  319. package/dist/models/share-request.js +21 -0
  320. package/dist/models/share-result-error.d.ts +26 -0
  321. package/dist/models/share-result-error.js +25 -0
  322. package/dist/models/share-result-item.d.ts +15 -0
  323. package/dist/models/share-result-item.js +15 -0
  324. package/dist/models/share-result-response.d.ts +18 -0
  325. package/dist/models/share-result-response.js +15 -0
  326. package/dist/models/sort-input.d.ts +20 -0
  327. package/dist/models/sort-input.js +20 -0
  328. package/dist/models/storage-breakdown.d.ts +17 -0
  329. package/dist/models/storage-breakdown.js +15 -0
  330. package/dist/models/suggest.d.ts +17 -0
  331. package/dist/models/suggest.js +15 -0
  332. package/dist/models/team-member-info.d.ts +23 -0
  333. package/dist/models/team-member-info.js +21 -0
  334. package/dist/models/tus-config-response.d.ts +18 -0
  335. package/dist/models/tus-config-response.js +15 -0
  336. package/dist/models/tus-finalize-request.d.ts +19 -0
  337. package/dist/models/tus-finalize-request.js +15 -0
  338. package/dist/models/tus-upload-info.d.ts +18 -0
  339. package/dist/models/tus-upload-info.js +15 -0
  340. package/dist/models/update-comment-request.d.ts +21 -0
  341. package/dist/models/update-comment-request.js +15 -0
  342. package/dist/models/update-metadata-audit.d.ts +17 -0
  343. package/dist/models/update-metadata-audit.js +15 -0
  344. package/dist/models/update-metadata-request.d.ts +19 -0
  345. package/dist/models/update-metadata-request.js +15 -0
  346. package/dist/models/update-team-request.d.ts +15 -0
  347. package/dist/models/update-team-request.js +15 -0
  348. package/dist/models/update-user-request.d.ts +22 -0
  349. package/dist/models/update-user-request.js +21 -0
  350. package/dist/models/upload-audit.d.ts +17 -0
  351. package/dist/models/upload-audit.js +15 -0
  352. package/dist/models/upload-response.d.ts +19 -0
  353. package/dist/models/upload-response.js +15 -0
  354. package/dist/models/user-preferences-request.d.ts +15 -0
  355. package/dist/models/user-preferences-request.js +15 -0
  356. package/dist/models/user-registration-request.d.ts +22 -0
  357. package/dist/models/user-registration-request.js +21 -0
  358. package/docs/AncestorInfo.md +24 -0
  359. package/docs/AuditControllerApi.md +160 -0
  360. package/docs/AuditLog.md +35 -0
  361. package/docs/AuditLogDetails.md +20 -0
  362. package/docs/AuditLogDetailsOneOf.md +42 -0
  363. package/docs/AuditVerificationResult.md +29 -0
  364. package/docs/BrokenLink.md +24 -0
  365. package/docs/CollaborationControllerApi.md +802 -0
  366. package/docs/CommentDTO.md +36 -0
  367. package/docs/CommentsApi.md +168 -0
  368. package/docs/CopyAudit.md +25 -0
  369. package/docs/CopyRequest.md +24 -0
  370. package/docs/CopyResponse.md +22 -0
  371. package/docs/CreateBlankDocumentRequest.md +24 -0
  372. package/docs/CreateCommentRequest.md +24 -0
  373. package/docs/CreateFolderAudit.md +23 -0
  374. package/docs/CreateFolderRequest.md +22 -0
  375. package/docs/CreateTeamRequest.md +22 -0
  376. package/docs/DashboardApi.md +52 -0
  377. package/docs/DashboardStatisticsResponse.md +26 -0
  378. package/docs/DeleteAudit.md +21 -0
  379. package/docs/DeleteMetadataAudit.md +21 -0
  380. package/docs/DeleteMetadataRequest.md +20 -0
  381. package/docs/DeleteRequest.md +20 -0
  382. package/docs/DeleteShareRequest.md +22 -0
  383. package/docs/DocumentControllerApi.md +834 -0
  384. package/docs/DocumentInfo.md +30 -0
  385. package/docs/DocumentPosition.md +26 -0
  386. package/docs/DocumentSuggestionControllerApi.md +65 -0
  387. package/docs/ElementInfo.md +24 -0
  388. package/docs/FavoritesApi.md +215 -0
  389. package/docs/FileControllerApi.md +222 -0
  390. package/docs/FileTypeStats.md +24 -0
  391. package/docs/FilterInput.md +22 -0
  392. package/docs/FolderControllerApi.md +385 -0
  393. package/docs/FolderElementInfo.md +24 -0
  394. package/docs/FolderResponse.md +24 -0
  395. package/docs/IngestionStatusDto.md +36 -0
  396. package/docs/MoveAudit.md +21 -0
  397. package/docs/MoveRequest.md +24 -0
  398. package/docs/NotificationDTO.md +36 -0
  399. package/docs/NotificationsApi.md +239 -0
  400. package/docs/RenameAudit.md +21 -0
  401. package/docs/RenameRequest.md +20 -0
  402. package/docs/ReplaceAudit.md +23 -0
  403. package/docs/ScanAgentApi.md +110 -0
  404. package/docs/ScanJobStatusDto.md +32 -0
  405. package/docs/ScanRequestDto.md +28 -0
  406. package/docs/ScannerInfoDto.md +36 -0
  407. package/docs/ScannerProxyApi.md +263 -0
  408. package/docs/SearchAdministrationApi.md +187 -0
  409. package/docs/SearchByAuditLogRequest.md +29 -0
  410. package/docs/SearchByMetadataRequest.md +29 -0
  411. package/docs/SearchMetadataRequest.md +20 -0
  412. package/docs/Settings.md +30 -0
  413. package/docs/SettingsApi.md +105 -0
  414. package/docs/ShareRequest.md +26 -0
  415. package/docs/ShareResultError.md +24 -0
  416. package/docs/ShareResultItem.md +22 -0
  417. package/docs/ShareResultResponse.md +24 -0
  418. package/docs/SortInput.md +22 -0
  419. package/docs/StorageBreakdown.md +24 -0
  420. package/docs/Suggest.md +26 -0
  421. package/docs/TeamMemberInfo.md +26 -0
  422. package/docs/TusConfigResponse.md +28 -0
  423. package/docs/TusControllerApi.md +493 -0
  424. package/docs/TusFinalizeRequest.md +26 -0
  425. package/docs/TusUploadInfo.md +28 -0
  426. package/docs/UpdateCommentRequest.md +22 -0
  427. package/docs/UpdateMetadataAudit.md +21 -0
  428. package/docs/UpdateMetadataRequest.md +20 -0
  429. package/docs/UpdateTeamRequest.md +22 -0
  430. package/docs/UpdateUserRequest.md +24 -0
  431. package/docs/UploadAudit.md +25 -0
  432. package/docs/UploadResponse.md +30 -0
  433. package/docs/UserPreferencesRequest.md +22 -0
  434. package/docs/UserRegistrationRequest.md +24 -0
  435. package/git_push.sh +57 -0
  436. package/graphql/analytics.graphqls +101 -0
  437. package/graphql/comment.graphqls +33 -0
  438. package/graphql/document-search.graphqls +44 -0
  439. package/graphql/document.graphqls +116 -0
  440. package/graphql/share.graphqls +168 -0
  441. package/index.ts +18 -0
  442. package/models/ancestor-info.ts +22 -0
  443. package/models/audit-log-details-one-of.ts +70 -0
  444. package/models/audit-log-details.ts +20 -0
  445. package/models/audit-log.ts +75 -0
  446. package/models/audit-verification-result.ts +39 -0
  447. package/models/broken-link.ts +22 -0
  448. package/models/comment-dto.ts +28 -0
  449. package/models/copy-audit.ts +26 -0
  450. package/models/copy-request.ts +31 -0
  451. package/models/copy-response.ts +27 -0
  452. package/models/create-blank-document-request.ts +38 -0
  453. package/models/create-comment-request.ts +31 -0
  454. package/models/create-folder-audit.ts +29 -0
  455. package/models/create-folder-request.ts +24 -0
  456. package/models/create-team-request.ts +21 -0
  457. package/models/dashboard-statistics-response.ts +29 -0
  458. package/models/delete-audit.ts +26 -0
  459. package/models/delete-metadata-audit.ts +26 -0
  460. package/models/delete-metadata-request.ts +23 -0
  461. package/models/delete-request.ts +23 -0
  462. package/models/delete-share-request.ts +24 -0
  463. package/models/document-info.ts +51 -0
  464. package/models/document-position.ts +23 -0
  465. package/models/element-info.ts +22 -0
  466. package/models/file-type-stats.ts +22 -0
  467. package/models/filter-input.ts +21 -0
  468. package/models/folder-element-info.ts +39 -0
  469. package/models/folder-response.ts +22 -0
  470. package/models/index.ts +62 -0
  471. package/models/ingestion-status-dto.ts +28 -0
  472. package/models/move-audit.ts +26 -0
  473. package/models/move-request.ts +31 -0
  474. package/models/notification-dto.ts +38 -0
  475. package/models/rename-audit.ts +26 -0
  476. package/models/rename-request.ts +20 -0
  477. package/models/replace-audit.ts +26 -0
  478. package/models/scan-job-status-dto.ts +26 -0
  479. package/models/scan-request-dto.ts +24 -0
  480. package/models/scanner-info-dto.ts +28 -0
  481. package/models/search-by-audit-log-request.ts +84 -0
  482. package/models/search-by-metadata-request.ts +50 -0
  483. package/models/search-metadata-request.ts +23 -0
  484. package/models/settings.ts +25 -0
  485. package/models/share-request.ts +44 -0
  486. package/models/share-result-error.ts +35 -0
  487. package/models/share-result-item.ts +21 -0
  488. package/models/share-result-response.ts +28 -0
  489. package/models/sort-input.ts +29 -0
  490. package/models/storage-breakdown.ts +25 -0
  491. package/models/suggest.ts +23 -0
  492. package/models/team-member-info.ts +32 -0
  493. package/models/tus-config-response.ts +24 -0
  494. package/models/tus-finalize-request.ts +23 -0
  495. package/models/tus-upload-info.ts +24 -0
  496. package/models/update-comment-request.ts +27 -0
  497. package/models/update-metadata-audit.ts +26 -0
  498. package/models/update-metadata-request.ts +23 -0
  499. package/models/update-team-request.ts +21 -0
  500. package/models/update-user-request.ts +31 -0
  501. package/models/upload-audit.ts +26 -0
  502. package/models/upload-response.ts +25 -0
  503. package/models/user-preferences-request.ts +21 -0
  504. package/models/user-registration-request.ts +31 -0
  505. package/package.json +33 -0
  506. package/tsconfig.esm.json +7 -0
  507. package/tsconfig.json +18 -0
@@ -0,0 +1,1219 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DocumentControllerApi = exports.DocumentControllerApiFactory = exports.DocumentControllerApiFp = exports.DocumentControllerApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * DocumentControllerApi - axios parameter creator
34
+ */
35
+ const DocumentControllerApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
39
+ * @summary Create a blank document from template
40
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ createBlankDocument: (createBlankDocumentRequest_1, ...args_1) => __awaiter(this, [createBlankDocumentRequest_1, ...args_1], void 0, function* (createBlankDocumentRequest, options = {}) {
45
+ // verify required parameter 'createBlankDocumentRequest' is not null or undefined
46
+ (0, common_1.assertParamExists)('createBlankDocument', 'createBlankDocumentRequest', createBlankDocumentRequest);
47
+ const localVarPath = `/api/v1/documents/create-blank`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
55
+ const localVarHeaderParameter = {};
56
+ const localVarQueryParameter = {};
57
+ // authentication keycloak_auth required
58
+ // http bearer authentication required
59
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
60
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61
+ localVarHeaderParameter['Accept'] = '*/*';
62
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
65
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBlankDocumentRequest, localVarRequestOptions, configuration);
66
+ return {
67
+ url: (0, common_1.toPathString)(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ }),
71
+ /**
72
+ * Deletes specified metadata keys from a document.
73
+ * @summary Delete specific metadata keys
74
+ * @param {string} documentId
75
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ deleteDocumentMetadata: (documentId_1, deleteMetadataRequest_1, ...args_1) => __awaiter(this, [documentId_1, deleteMetadataRequest_1, ...args_1], void 0, function* (documentId, deleteMetadataRequest, options = {}) {
80
+ // verify required parameter 'documentId' is not null or undefined
81
+ (0, common_1.assertParamExists)('deleteDocumentMetadata', 'documentId', documentId);
82
+ // verify required parameter 'deleteMetadataRequest' is not null or undefined
83
+ (0, common_1.assertParamExists)('deleteDocumentMetadata', 'deleteMetadataRequest', deleteMetadataRequest);
84
+ const localVarPath = `/api/v1/documents/{documentId}/metadata`
85
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
93
+ const localVarHeaderParameter = {};
94
+ const localVarQueryParameter = {};
95
+ // authentication keycloak_auth required
96
+ // http bearer authentication required
97
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
98
+ localVarHeaderParameter['Content-Type'] = 'application/json';
99
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
102
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteMetadataRequest, localVarRequestOptions, configuration);
103
+ return {
104
+ url: (0, common_1.toPathString)(localVarUrlObj),
105
+ options: localVarRequestOptions,
106
+ };
107
+ }),
108
+ /**
109
+ * Downloads a single file document.
110
+ * @summary Download a document
111
+ * @param {string} documentId
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ downloadDocument: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
116
+ // verify required parameter 'documentId' is not null or undefined
117
+ (0, common_1.assertParamExists)('downloadDocument', 'documentId', documentId);
118
+ const localVarPath = `/api/v1/documents/{documentId}/download`
119
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
121
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ let baseOptions;
123
+ if (configuration) {
124
+ baseOptions = configuration.baseOptions;
125
+ }
126
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
127
+ const localVarHeaderParameter = {};
128
+ const localVarQueryParameter = {};
129
+ // authentication keycloak_auth required
130
+ // http bearer authentication required
131
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
132
+ localVarHeaderParameter['Accept'] = '*/*';
133
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
136
+ return {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ }),
141
+ /**
142
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
143
+ * @summary Download document for OnlyOffice
144
+ * @param {string} documentId
145
+ * @param {string} token
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ downloadForOnlyOffice: (documentId_1, token_1, ...args_1) => __awaiter(this, [documentId_1, token_1, ...args_1], void 0, function* (documentId, token, options = {}) {
150
+ // verify required parameter 'documentId' is not null or undefined
151
+ (0, common_1.assertParamExists)('downloadForOnlyOffice', 'documentId', documentId);
152
+ // verify required parameter 'token' is not null or undefined
153
+ (0, common_1.assertParamExists)('downloadForOnlyOffice', 'token', token);
154
+ const localVarPath = `/api/v1/documents/{documentId}/onlyoffice-download`
155
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ if (configuration) {
160
+ baseOptions = configuration.baseOptions;
161
+ }
162
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
163
+ const localVarHeaderParameter = {};
164
+ const localVarQueryParameter = {};
165
+ // authentication keycloak_auth required
166
+ // http bearer authentication required
167
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
168
+ if (token !== undefined) {
169
+ localVarQueryParameter['token'] = token;
170
+ }
171
+ localVarHeaderParameter['Accept'] = '*/*';
172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
175
+ return {
176
+ url: (0, common_1.toPathString)(localVarUrlObj),
177
+ options: localVarRequestOptions,
178
+ };
179
+ }),
180
+ /**
181
+ * Downloads multiple documents as a single ZIP file.
182
+ * @summary Download multiple documents as ZIP
183
+ * @param {Array<string>} requestBody
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ downloadMultipleDocumentsAsZip: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
188
+ // verify required parameter 'requestBody' is not null or undefined
189
+ (0, common_1.assertParamExists)('downloadMultipleDocumentsAsZip', 'requestBody', requestBody);
190
+ const localVarPath = `/api/v1/documents/download-multiple`;
191
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
192
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
193
+ let baseOptions;
194
+ if (configuration) {
195
+ baseOptions = configuration.baseOptions;
196
+ }
197
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
198
+ const localVarHeaderParameter = {};
199
+ const localVarQueryParameter = {};
200
+ // authentication keycloak_auth required
201
+ // http bearer authentication required
202
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
203
+ localVarHeaderParameter['Content-Type'] = 'application/json';
204
+ localVarHeaderParameter['Accept'] = '*/*';
205
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
206
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
207
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
208
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
209
+ return {
210
+ url: (0, common_1.toPathString)(localVarUrlObj),
211
+ options: localVarRequestOptions,
212
+ };
213
+ }),
214
+ /**
215
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
216
+ * @summary Get document ancestors
217
+ * @param {string} documentId
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ getDocumentAncestors: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
222
+ // verify required parameter 'documentId' is not null or undefined
223
+ (0, common_1.assertParamExists)('getDocumentAncestors', 'documentId', documentId);
224
+ const localVarPath = `/api/v1/documents/{documentId}/ancestors`
225
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
226
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
227
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
228
+ let baseOptions;
229
+ if (configuration) {
230
+ baseOptions = configuration.baseOptions;
231
+ }
232
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
233
+ const localVarHeaderParameter = {};
234
+ const localVarQueryParameter = {};
235
+ // authentication keycloak_auth required
236
+ // http bearer authentication required
237
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
238
+ localVarHeaderParameter['Accept'] = '*/*';
239
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
242
+ return {
243
+ url: (0, common_1.toPathString)(localVarUrlObj),
244
+ options: localVarRequestOptions,
245
+ };
246
+ }),
247
+ /**
248
+ * Retrieves information for a document.
249
+ * @summary Get information of a document
250
+ * @param {string} documentId
251
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ getDocumentInfo: (documentId_1, withMetadata_1, ...args_1) => __awaiter(this, [documentId_1, withMetadata_1, ...args_1], void 0, function* (documentId, withMetadata, options = {}) {
256
+ // verify required parameter 'documentId' is not null or undefined
257
+ (0, common_1.assertParamExists)('getDocumentInfo', 'documentId', documentId);
258
+ const localVarPath = `/api/v1/documents/{documentId}/info`
259
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
260
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
261
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
262
+ let baseOptions;
263
+ if (configuration) {
264
+ baseOptions = configuration.baseOptions;
265
+ }
266
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
267
+ const localVarHeaderParameter = {};
268
+ const localVarQueryParameter = {};
269
+ // authentication keycloak_auth required
270
+ // http bearer authentication required
271
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
272
+ if (withMetadata !== undefined) {
273
+ localVarQueryParameter['withMetadata'] = withMetadata;
274
+ }
275
+ localVarHeaderParameter['Accept'] = '*/*';
276
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
277
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
278
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
279
+ return {
280
+ url: (0, common_1.toPathString)(localVarUrlObj),
281
+ options: localVarRequestOptions,
282
+ };
283
+ }),
284
+ /**
285
+ * Retrieves metadata for a document. Can filter by keys.
286
+ * @summary Search metadata of a document
287
+ * @param {string} documentId
288
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ getDocumentMetadata: (documentId_1, searchMetadataRequest_1, ...args_1) => __awaiter(this, [documentId_1, searchMetadataRequest_1, ...args_1], void 0, function* (documentId, searchMetadataRequest, options = {}) {
293
+ // verify required parameter 'documentId' is not null or undefined
294
+ (0, common_1.assertParamExists)('getDocumentMetadata', 'documentId', documentId);
295
+ const localVarPath = `/api/v1/documents/{documentId}/search/metadata`
296
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
298
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
299
+ let baseOptions;
300
+ if (configuration) {
301
+ baseOptions = configuration.baseOptions;
302
+ }
303
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
304
+ const localVarHeaderParameter = {};
305
+ const localVarQueryParameter = {};
306
+ // authentication keycloak_auth required
307
+ // http bearer authentication required
308
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
309
+ localVarHeaderParameter['Content-Type'] = 'application/json';
310
+ localVarHeaderParameter['Accept'] = '*/*';
311
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(searchMetadataRequest, localVarRequestOptions, configuration);
315
+ return {
316
+ url: (0, common_1.toPathString)(localVarUrlObj),
317
+ options: localVarRequestOptions,
318
+ };
319
+ }),
320
+ /**
321
+ * Retrieves the position of a document within its parent folder, useful for pagination.
322
+ * @summary Get document position in folder
323
+ * @param {string} documentId
324
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
325
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ getDocumentPosition: (documentId_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [documentId_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (documentId, sortBy, sortOrder, options = {}) {
330
+ // verify required parameter 'documentId' is not null or undefined
331
+ (0, common_1.assertParamExists)('getDocumentPosition', 'documentId', documentId);
332
+ const localVarPath = `/api/v1/documents/{documentId}/position`
333
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
334
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
335
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
336
+ let baseOptions;
337
+ if (configuration) {
338
+ baseOptions = configuration.baseOptions;
339
+ }
340
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
341
+ const localVarHeaderParameter = {};
342
+ const localVarQueryParameter = {};
343
+ // authentication keycloak_auth required
344
+ // http bearer authentication required
345
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
346
+ if (sortBy !== undefined) {
347
+ localVarQueryParameter['sortBy'] = sortBy;
348
+ }
349
+ if (sortOrder !== undefined) {
350
+ localVarQueryParameter['sortOrder'] = sortOrder;
351
+ }
352
+ localVarHeaderParameter['Accept'] = '*/*';
353
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
356
+ return {
357
+ url: (0, common_1.toPathString)(localVarUrlObj),
358
+ options: localVarRequestOptions,
359
+ };
360
+ }),
361
+ /**
362
+ * Replaces the content of an existing file document.
363
+ * @summary Replace document content
364
+ * @param {string} documentId
365
+ * @param {File} file
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ replaceDocumentContent: (documentId_1, file_1, ...args_1) => __awaiter(this, [documentId_1, file_1, ...args_1], void 0, function* (documentId, file, options = {}) {
370
+ // verify required parameter 'documentId' is not null or undefined
371
+ (0, common_1.assertParamExists)('replaceDocumentContent', 'documentId', documentId);
372
+ // verify required parameter 'file' is not null or undefined
373
+ (0, common_1.assertParamExists)('replaceDocumentContent', 'file', file);
374
+ const localVarPath = `/api/v1/documents/{documentId}/replace-content`
375
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
377
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
378
+ let baseOptions;
379
+ if (configuration) {
380
+ baseOptions = configuration.baseOptions;
381
+ }
382
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
383
+ const localVarHeaderParameter = {};
384
+ const localVarQueryParameter = {};
385
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
386
+ // authentication keycloak_auth required
387
+ // http bearer authentication required
388
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
389
+ if (file !== undefined) {
390
+ localVarFormParams.append('file', file);
391
+ }
392
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
393
+ localVarHeaderParameter['Accept'] = '*/*';
394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
395
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
396
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
397
+ localVarRequestOptions.data = localVarFormParams;
398
+ return {
399
+ url: (0, common_1.toPathString)(localVarUrlObj),
400
+ options: localVarRequestOptions,
401
+ };
402
+ }),
403
+ /**
404
+ * Replaces all metadata of a document (file or folder).
405
+ * @summary Replace document metadata
406
+ * @param {string} documentId
407
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ replaceDocumentMetadata: (documentId_1, requestBody_1, ...args_1) => __awaiter(this, [documentId_1, requestBody_1, ...args_1], void 0, function* (documentId, requestBody, options = {}) {
412
+ // verify required parameter 'documentId' is not null or undefined
413
+ (0, common_1.assertParamExists)('replaceDocumentMetadata', 'documentId', documentId);
414
+ // verify required parameter 'requestBody' is not null or undefined
415
+ (0, common_1.assertParamExists)('replaceDocumentMetadata', 'requestBody', requestBody);
416
+ const localVarPath = `/api/v1/documents/{documentId}/replace-metadata`
417
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
420
+ let baseOptions;
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ }
424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
425
+ const localVarHeaderParameter = {};
426
+ const localVarQueryParameter = {};
427
+ // authentication keycloak_auth required
428
+ // http bearer authentication required
429
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
430
+ localVarHeaderParameter['Content-Type'] = 'application/json';
431
+ localVarHeaderParameter['Accept'] = '*/*';
432
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
433
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
434
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
435
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
436
+ return {
437
+ url: (0, common_1.toPathString)(localVarUrlObj),
438
+ options: localVarRequestOptions,
439
+ };
440
+ }),
441
+ /**
442
+ * Finds document IDs matching all provided metadata criteria.
443
+ * @summary Search document IDs by metadata
444
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ searchDocumentIdsByMetadata: (searchByMetadataRequest_1, ...args_1) => __awaiter(this, [searchByMetadataRequest_1, ...args_1], void 0, function* (searchByMetadataRequest, options = {}) {
449
+ // verify required parameter 'searchByMetadataRequest' is not null or undefined
450
+ (0, common_1.assertParamExists)('searchDocumentIdsByMetadata', 'searchByMetadataRequest', searchByMetadataRequest);
451
+ const localVarPath = `/api/v1/documents/search/ids-by-metadata`;
452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
453
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
454
+ let baseOptions;
455
+ if (configuration) {
456
+ baseOptions = configuration.baseOptions;
457
+ }
458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
459
+ const localVarHeaderParameter = {};
460
+ const localVarQueryParameter = {};
461
+ // authentication keycloak_auth required
462
+ // http bearer authentication required
463
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
464
+ localVarHeaderParameter['Content-Type'] = 'application/json';
465
+ localVarHeaderParameter['Accept'] = '*/*';
466
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
469
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(searchByMetadataRequest, localVarRequestOptions, configuration);
470
+ return {
471
+ url: (0, common_1.toPathString)(localVarUrlObj),
472
+ options: localVarRequestOptions,
473
+ };
474
+ }),
475
+ /**
476
+ * Updates or adds specific metadata fields for a document.
477
+ * @summary Update document metadata
478
+ * @param {string} documentId
479
+ * @param {UpdateMetadataRequest} updateMetadataRequest
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ updateDocumentMetadata: (documentId_1, updateMetadataRequest_1, ...args_1) => __awaiter(this, [documentId_1, updateMetadataRequest_1, ...args_1], void 0, function* (documentId, updateMetadataRequest, options = {}) {
484
+ // verify required parameter 'documentId' is not null or undefined
485
+ (0, common_1.assertParamExists)('updateDocumentMetadata', 'documentId', documentId);
486
+ // verify required parameter 'updateMetadataRequest' is not null or undefined
487
+ (0, common_1.assertParamExists)('updateDocumentMetadata', 'updateMetadataRequest', updateMetadataRequest);
488
+ const localVarPath = `/api/v1/documents/{documentId}/metadata`
489
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
490
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
491
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
492
+ let baseOptions;
493
+ if (configuration) {
494
+ baseOptions = configuration.baseOptions;
495
+ }
496
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
497
+ const localVarHeaderParameter = {};
498
+ const localVarQueryParameter = {};
499
+ // authentication keycloak_auth required
500
+ // http bearer authentication required
501
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
502
+ localVarHeaderParameter['Content-Type'] = 'application/json';
503
+ localVarHeaderParameter['Accept'] = '*/*';
504
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
505
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
506
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
507
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMetadataRequest, localVarRequestOptions, configuration);
508
+ return {
509
+ url: (0, common_1.toPathString)(localVarUrlObj),
510
+ options: localVarRequestOptions,
511
+ };
512
+ }),
513
+ /**
514
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
515
+ * @summary Upload multiple documents
516
+ * @param {Array<File>} file
517
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
518
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ uploadDocument: (file_1, allowDuplicateFileNames_1, parametersByFilename_1, ...args_1) => __awaiter(this, [file_1, allowDuplicateFileNames_1, parametersByFilename_1, ...args_1], void 0, function* (file, allowDuplicateFileNames, parametersByFilename, options = {}) {
523
+ // verify required parameter 'file' is not null or undefined
524
+ (0, common_1.assertParamExists)('uploadDocument', 'file', file);
525
+ const localVarPath = `/api/v1/documents/upload-multiple`;
526
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
527
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
528
+ let baseOptions;
529
+ if (configuration) {
530
+ baseOptions = configuration.baseOptions;
531
+ }
532
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
533
+ const localVarHeaderParameter = {};
534
+ const localVarQueryParameter = {};
535
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
536
+ // authentication keycloak_auth required
537
+ // http bearer authentication required
538
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
539
+ if (allowDuplicateFileNames !== undefined) {
540
+ localVarQueryParameter['allowDuplicateFileNames'] = allowDuplicateFileNames;
541
+ }
542
+ if (file) {
543
+ file.forEach((element) => {
544
+ localVarFormParams.append('file', element);
545
+ });
546
+ }
547
+ if (parametersByFilename !== undefined) {
548
+ localVarFormParams.append('parametersByFilename', parametersByFilename);
549
+ }
550
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
551
+ localVarHeaderParameter['Accept'] = '*/*';
552
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
554
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
555
+ localVarRequestOptions.data = localVarFormParams;
556
+ return {
557
+ url: (0, common_1.toPathString)(localVarUrlObj),
558
+ options: localVarRequestOptions,
559
+ };
560
+ }),
561
+ /**
562
+ * Uploads a single file, optionally with metadata and a parent folder ID.
563
+ * @summary Upload a single document
564
+ * @param {File} file
565
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
566
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
567
+ * @param {string} [metadata]
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ uploadDocument1: (file_1, allowDuplicateFileNames_1, parentFolderId_1, metadata_1, ...args_1) => __awaiter(this, [file_1, allowDuplicateFileNames_1, parentFolderId_1, metadata_1, ...args_1], void 0, function* (file, allowDuplicateFileNames, parentFolderId, metadata, options = {}) {
572
+ // verify required parameter 'file' is not null or undefined
573
+ (0, common_1.assertParamExists)('uploadDocument1', 'file', file);
574
+ const localVarPath = `/api/v1/documents/upload`;
575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
576
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
577
+ let baseOptions;
578
+ if (configuration) {
579
+ baseOptions = configuration.baseOptions;
580
+ }
581
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
582
+ const localVarHeaderParameter = {};
583
+ const localVarQueryParameter = {};
584
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
585
+ // authentication keycloak_auth required
586
+ // http bearer authentication required
587
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
588
+ if (allowDuplicateFileNames !== undefined) {
589
+ localVarQueryParameter['allowDuplicateFileNames'] = allowDuplicateFileNames;
590
+ }
591
+ if (file !== undefined) {
592
+ localVarFormParams.append('file', file);
593
+ }
594
+ if (parentFolderId !== undefined) {
595
+ localVarFormParams.append('parentFolderId', parentFolderId);
596
+ }
597
+ if (metadata !== undefined) {
598
+ localVarFormParams.append('metadata', metadata);
599
+ }
600
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
601
+ localVarHeaderParameter['Accept'] = '*/*';
602
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
603
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
604
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
605
+ localVarRequestOptions.data = localVarFormParams;
606
+ return {
607
+ url: (0, common_1.toPathString)(localVarUrlObj),
608
+ options: localVarRequestOptions,
609
+ };
610
+ }),
611
+ };
612
+ };
613
+ exports.DocumentControllerApiAxiosParamCreator = DocumentControllerApiAxiosParamCreator;
614
+ /**
615
+ * DocumentControllerApi - functional programming interface
616
+ */
617
+ const DocumentControllerApiFp = function (configuration) {
618
+ const localVarAxiosParamCreator = (0, exports.DocumentControllerApiAxiosParamCreator)(configuration);
619
+ return {
620
+ /**
621
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
622
+ * @summary Create a blank document from template
623
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ createBlankDocument(createBlankDocumentRequest, options) {
628
+ return __awaiter(this, void 0, void 0, function* () {
629
+ var _a, _b, _c;
630
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBlankDocument(createBlankDocumentRequest, options);
631
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
632
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.createBlankDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
633
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
634
+ });
635
+ },
636
+ /**
637
+ * Deletes specified metadata keys from a document.
638
+ * @summary Delete specific metadata keys
639
+ * @param {string} documentId
640
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ deleteDocumentMetadata(documentId, deleteMetadataRequest, options) {
645
+ return __awaiter(this, void 0, void 0, function* () {
646
+ var _a, _b, _c;
647
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDocumentMetadata(documentId, deleteMetadataRequest, options);
648
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
649
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.deleteDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
650
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
651
+ });
652
+ },
653
+ /**
654
+ * Downloads a single file document.
655
+ * @summary Download a document
656
+ * @param {string} documentId
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ downloadDocument(documentId, options) {
661
+ return __awaiter(this, void 0, void 0, function* () {
662
+ var _a, _b, _c;
663
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadDocument(documentId, options);
664
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
665
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.downloadDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
666
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
667
+ });
668
+ },
669
+ /**
670
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
671
+ * @summary Download document for OnlyOffice
672
+ * @param {string} documentId
673
+ * @param {string} token
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ downloadForOnlyOffice(documentId, token, options) {
678
+ return __awaiter(this, void 0, void 0, function* () {
679
+ var _a, _b, _c;
680
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, options);
681
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
682
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.downloadForOnlyOffice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
683
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
684
+ });
685
+ },
686
+ /**
687
+ * Downloads multiple documents as a single ZIP file.
688
+ * @summary Download multiple documents as ZIP
689
+ * @param {Array<string>} requestBody
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ downloadMultipleDocumentsAsZip(requestBody, options) {
694
+ return __awaiter(this, void 0, void 0, function* () {
695
+ var _a, _b, _c;
696
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadMultipleDocumentsAsZip(requestBody, options);
697
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
698
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.downloadMultipleDocumentsAsZip']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
699
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
700
+ });
701
+ },
702
+ /**
703
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
704
+ * @summary Get document ancestors
705
+ * @param {string} documentId
706
+ * @param {*} [options] Override http request option.
707
+ * @throws {RequiredError}
708
+ */
709
+ getDocumentAncestors(documentId, options) {
710
+ return __awaiter(this, void 0, void 0, function* () {
711
+ var _a, _b, _c;
712
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentAncestors(documentId, options);
713
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
714
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.getDocumentAncestors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
715
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
716
+ });
717
+ },
718
+ /**
719
+ * Retrieves information for a document.
720
+ * @summary Get information of a document
721
+ * @param {string} documentId
722
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ getDocumentInfo(documentId, withMetadata, options) {
727
+ return __awaiter(this, void 0, void 0, function* () {
728
+ var _a, _b, _c;
729
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentInfo(documentId, withMetadata, options);
730
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
731
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.getDocumentInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
732
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
733
+ });
734
+ },
735
+ /**
736
+ * Retrieves metadata for a document. Can filter by keys.
737
+ * @summary Search metadata of a document
738
+ * @param {string} documentId
739
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
740
+ * @param {*} [options] Override http request option.
741
+ * @throws {RequiredError}
742
+ */
743
+ getDocumentMetadata(documentId, searchMetadataRequest, options) {
744
+ return __awaiter(this, void 0, void 0, function* () {
745
+ var _a, _b, _c;
746
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentMetadata(documentId, searchMetadataRequest, options);
747
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
748
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.getDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
749
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
750
+ });
751
+ },
752
+ /**
753
+ * Retrieves the position of a document within its parent folder, useful for pagination.
754
+ * @summary Get document position in folder
755
+ * @param {string} documentId
756
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
757
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ getDocumentPosition(documentId, sortBy, sortOrder, options) {
762
+ return __awaiter(this, void 0, void 0, function* () {
763
+ var _a, _b, _c;
764
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentPosition(documentId, sortBy, sortOrder, options);
765
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
766
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.getDocumentPosition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
767
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
768
+ });
769
+ },
770
+ /**
771
+ * Replaces the content of an existing file document.
772
+ * @summary Replace document content
773
+ * @param {string} documentId
774
+ * @param {File} file
775
+ * @param {*} [options] Override http request option.
776
+ * @throws {RequiredError}
777
+ */
778
+ replaceDocumentContent(documentId, file, options) {
779
+ return __awaiter(this, void 0, void 0, function* () {
780
+ var _a, _b, _c;
781
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceDocumentContent(documentId, file, options);
782
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
783
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.replaceDocumentContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
784
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
785
+ });
786
+ },
787
+ /**
788
+ * Replaces all metadata of a document (file or folder).
789
+ * @summary Replace document metadata
790
+ * @param {string} documentId
791
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ replaceDocumentMetadata(documentId, requestBody, options) {
796
+ return __awaiter(this, void 0, void 0, function* () {
797
+ var _a, _b, _c;
798
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceDocumentMetadata(documentId, requestBody, options);
799
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
800
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.replaceDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
801
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
802
+ });
803
+ },
804
+ /**
805
+ * Finds document IDs matching all provided metadata criteria.
806
+ * @summary Search document IDs by metadata
807
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
808
+ * @param {*} [options] Override http request option.
809
+ * @throws {RequiredError}
810
+ */
811
+ searchDocumentIdsByMetadata(searchByMetadataRequest, options) {
812
+ return __awaiter(this, void 0, void 0, function* () {
813
+ var _a, _b, _c;
814
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchDocumentIdsByMetadata(searchByMetadataRequest, options);
815
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
816
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.searchDocumentIdsByMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
817
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
818
+ });
819
+ },
820
+ /**
821
+ * Updates or adds specific metadata fields for a document.
822
+ * @summary Update document metadata
823
+ * @param {string} documentId
824
+ * @param {UpdateMetadataRequest} updateMetadataRequest
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ updateDocumentMetadata(documentId, updateMetadataRequest, options) {
829
+ return __awaiter(this, void 0, void 0, function* () {
830
+ var _a, _b, _c;
831
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDocumentMetadata(documentId, updateMetadataRequest, options);
832
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
833
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.updateDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
834
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
835
+ });
836
+ },
837
+ /**
838
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
839
+ * @summary Upload multiple documents
840
+ * @param {Array<File>} file
841
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
842
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ */
846
+ uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options) {
847
+ return __awaiter(this, void 0, void 0, function* () {
848
+ var _a, _b, _c;
849
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options);
850
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
851
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.uploadDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
852
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
853
+ });
854
+ },
855
+ /**
856
+ * Uploads a single file, optionally with metadata and a parent folder ID.
857
+ * @summary Upload a single document
858
+ * @param {File} file
859
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
860
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
861
+ * @param {string} [metadata]
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ */
865
+ uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options) {
866
+ return __awaiter(this, void 0, void 0, function* () {
867
+ var _a, _b, _c;
868
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options);
869
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
870
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.uploadDocument1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
871
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
872
+ });
873
+ },
874
+ };
875
+ };
876
+ exports.DocumentControllerApiFp = DocumentControllerApiFp;
877
+ /**
878
+ * DocumentControllerApi - factory interface
879
+ */
880
+ const DocumentControllerApiFactory = function (configuration, basePath, axios) {
881
+ const localVarFp = (0, exports.DocumentControllerApiFp)(configuration);
882
+ return {
883
+ /**
884
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
885
+ * @summary Create a blank document from template
886
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ */
890
+ createBlankDocument(createBlankDocumentRequest, options) {
891
+ return localVarFp.createBlankDocument(createBlankDocumentRequest, options).then((request) => request(axios, basePath));
892
+ },
893
+ /**
894
+ * Deletes specified metadata keys from a document.
895
+ * @summary Delete specific metadata keys
896
+ * @param {string} documentId
897
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ */
901
+ deleteDocumentMetadata(documentId, deleteMetadataRequest, options) {
902
+ return localVarFp.deleteDocumentMetadata(documentId, deleteMetadataRequest, options).then((request) => request(axios, basePath));
903
+ },
904
+ /**
905
+ * Downloads a single file document.
906
+ * @summary Download a document
907
+ * @param {string} documentId
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ downloadDocument(documentId, options) {
912
+ return localVarFp.downloadDocument(documentId, options).then((request) => request(axios, basePath));
913
+ },
914
+ /**
915
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
916
+ * @summary Download document for OnlyOffice
917
+ * @param {string} documentId
918
+ * @param {string} token
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ downloadForOnlyOffice(documentId, token, options) {
923
+ return localVarFp.downloadForOnlyOffice(documentId, token, options).then((request) => request(axios, basePath));
924
+ },
925
+ /**
926
+ * Downloads multiple documents as a single ZIP file.
927
+ * @summary Download multiple documents as ZIP
928
+ * @param {Array<string>} requestBody
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ downloadMultipleDocumentsAsZip(requestBody, options) {
933
+ return localVarFp.downloadMultipleDocumentsAsZip(requestBody, options).then((request) => request(axios, basePath));
934
+ },
935
+ /**
936
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
937
+ * @summary Get document ancestors
938
+ * @param {string} documentId
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ getDocumentAncestors(documentId, options) {
943
+ return localVarFp.getDocumentAncestors(documentId, options).then((request) => request(axios, basePath));
944
+ },
945
+ /**
946
+ * Retrieves information for a document.
947
+ * @summary Get information of a document
948
+ * @param {string} documentId
949
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ getDocumentInfo(documentId, withMetadata, options) {
954
+ return localVarFp.getDocumentInfo(documentId, withMetadata, options).then((request) => request(axios, basePath));
955
+ },
956
+ /**
957
+ * Retrieves metadata for a document. Can filter by keys.
958
+ * @summary Search metadata of a document
959
+ * @param {string} documentId
960
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
961
+ * @param {*} [options] Override http request option.
962
+ * @throws {RequiredError}
963
+ */
964
+ getDocumentMetadata(documentId, searchMetadataRequest, options) {
965
+ return localVarFp.getDocumentMetadata(documentId, searchMetadataRequest, options).then((request) => request(axios, basePath));
966
+ },
967
+ /**
968
+ * Retrieves the position of a document within its parent folder, useful for pagination.
969
+ * @summary Get document position in folder
970
+ * @param {string} documentId
971
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
972
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
973
+ * @param {*} [options] Override http request option.
974
+ * @throws {RequiredError}
975
+ */
976
+ getDocumentPosition(documentId, sortBy, sortOrder, options) {
977
+ return localVarFp.getDocumentPosition(documentId, sortBy, sortOrder, options).then((request) => request(axios, basePath));
978
+ },
979
+ /**
980
+ * Replaces the content of an existing file document.
981
+ * @summary Replace document content
982
+ * @param {string} documentId
983
+ * @param {File} file
984
+ * @param {*} [options] Override http request option.
985
+ * @throws {RequiredError}
986
+ */
987
+ replaceDocumentContent(documentId, file, options) {
988
+ return localVarFp.replaceDocumentContent(documentId, file, options).then((request) => request(axios, basePath));
989
+ },
990
+ /**
991
+ * Replaces all metadata of a document (file or folder).
992
+ * @summary Replace document metadata
993
+ * @param {string} documentId
994
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ */
998
+ replaceDocumentMetadata(documentId, requestBody, options) {
999
+ return localVarFp.replaceDocumentMetadata(documentId, requestBody, options).then((request) => request(axios, basePath));
1000
+ },
1001
+ /**
1002
+ * Finds document IDs matching all provided metadata criteria.
1003
+ * @summary Search document IDs by metadata
1004
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
1005
+ * @param {*} [options] Override http request option.
1006
+ * @throws {RequiredError}
1007
+ */
1008
+ searchDocumentIdsByMetadata(searchByMetadataRequest, options) {
1009
+ return localVarFp.searchDocumentIdsByMetadata(searchByMetadataRequest, options).then((request) => request(axios, basePath));
1010
+ },
1011
+ /**
1012
+ * Updates or adds specific metadata fields for a document.
1013
+ * @summary Update document metadata
1014
+ * @param {string} documentId
1015
+ * @param {UpdateMetadataRequest} updateMetadataRequest
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ updateDocumentMetadata(documentId, updateMetadataRequest, options) {
1020
+ return localVarFp.updateDocumentMetadata(documentId, updateMetadataRequest, options).then((request) => request(axios, basePath));
1021
+ },
1022
+ /**
1023
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
1024
+ * @summary Upload multiple documents
1025
+ * @param {Array<File>} file
1026
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1027
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options) {
1032
+ return localVarFp.uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options).then((request) => request(axios, basePath));
1033
+ },
1034
+ /**
1035
+ * Uploads a single file, optionally with metadata and a parent folder ID.
1036
+ * @summary Upload a single document
1037
+ * @param {File} file
1038
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1039
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
1040
+ * @param {string} [metadata]
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
1044
+ uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options) {
1045
+ return localVarFp.uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options).then((request) => request(axios, basePath));
1046
+ },
1047
+ };
1048
+ };
1049
+ exports.DocumentControllerApiFactory = DocumentControllerApiFactory;
1050
+ /**
1051
+ * DocumentControllerApi - object-oriented interface
1052
+ */
1053
+ class DocumentControllerApi extends base_1.BaseAPI {
1054
+ /**
1055
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
1056
+ * @summary Create a blank document from template
1057
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
1058
+ * @param {*} [options] Override http request option.
1059
+ * @throws {RequiredError}
1060
+ */
1061
+ createBlankDocument(createBlankDocumentRequest, options) {
1062
+ return (0, exports.DocumentControllerApiFp)(this.configuration).createBlankDocument(createBlankDocumentRequest, options).then((request) => request(this.axios, this.basePath));
1063
+ }
1064
+ /**
1065
+ * Deletes specified metadata keys from a document.
1066
+ * @summary Delete specific metadata keys
1067
+ * @param {string} documentId
1068
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ deleteDocumentMetadata(documentId, deleteMetadataRequest, options) {
1073
+ return (0, exports.DocumentControllerApiFp)(this.configuration).deleteDocumentMetadata(documentId, deleteMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1074
+ }
1075
+ /**
1076
+ * Downloads a single file document.
1077
+ * @summary Download a document
1078
+ * @param {string} documentId
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ downloadDocument(documentId, options) {
1083
+ return (0, exports.DocumentControllerApiFp)(this.configuration).downloadDocument(documentId, options).then((request) => request(this.axios, this.basePath));
1084
+ }
1085
+ /**
1086
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
1087
+ * @summary Download document for OnlyOffice
1088
+ * @param {string} documentId
1089
+ * @param {string} token
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ downloadForOnlyOffice(documentId, token, options) {
1094
+ return (0, exports.DocumentControllerApiFp)(this.configuration).downloadForOnlyOffice(documentId, token, options).then((request) => request(this.axios, this.basePath));
1095
+ }
1096
+ /**
1097
+ * Downloads multiple documents as a single ZIP file.
1098
+ * @summary Download multiple documents as ZIP
1099
+ * @param {Array<string>} requestBody
1100
+ * @param {*} [options] Override http request option.
1101
+ * @throws {RequiredError}
1102
+ */
1103
+ downloadMultipleDocumentsAsZip(requestBody, options) {
1104
+ return (0, exports.DocumentControllerApiFp)(this.configuration).downloadMultipleDocumentsAsZip(requestBody, options).then((request) => request(this.axios, this.basePath));
1105
+ }
1106
+ /**
1107
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
1108
+ * @summary Get document ancestors
1109
+ * @param {string} documentId
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ */
1113
+ getDocumentAncestors(documentId, options) {
1114
+ return (0, exports.DocumentControllerApiFp)(this.configuration).getDocumentAncestors(documentId, options).then((request) => request(this.axios, this.basePath));
1115
+ }
1116
+ /**
1117
+ * Retrieves information for a document.
1118
+ * @summary Get information of a document
1119
+ * @param {string} documentId
1120
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ */
1124
+ getDocumentInfo(documentId, withMetadata, options) {
1125
+ return (0, exports.DocumentControllerApiFp)(this.configuration).getDocumentInfo(documentId, withMetadata, options).then((request) => request(this.axios, this.basePath));
1126
+ }
1127
+ /**
1128
+ * Retrieves metadata for a document. Can filter by keys.
1129
+ * @summary Search metadata of a document
1130
+ * @param {string} documentId
1131
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
1132
+ * @param {*} [options] Override http request option.
1133
+ * @throws {RequiredError}
1134
+ */
1135
+ getDocumentMetadata(documentId, searchMetadataRequest, options) {
1136
+ return (0, exports.DocumentControllerApiFp)(this.configuration).getDocumentMetadata(documentId, searchMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1137
+ }
1138
+ /**
1139
+ * Retrieves the position of a document within its parent folder, useful for pagination.
1140
+ * @summary Get document position in folder
1141
+ * @param {string} documentId
1142
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
1143
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
1144
+ * @param {*} [options] Override http request option.
1145
+ * @throws {RequiredError}
1146
+ */
1147
+ getDocumentPosition(documentId, sortBy, sortOrder, options) {
1148
+ return (0, exports.DocumentControllerApiFp)(this.configuration).getDocumentPosition(documentId, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
1149
+ }
1150
+ /**
1151
+ * Replaces the content of an existing file document.
1152
+ * @summary Replace document content
1153
+ * @param {string} documentId
1154
+ * @param {File} file
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ */
1158
+ replaceDocumentContent(documentId, file, options) {
1159
+ return (0, exports.DocumentControllerApiFp)(this.configuration).replaceDocumentContent(documentId, file, options).then((request) => request(this.axios, this.basePath));
1160
+ }
1161
+ /**
1162
+ * Replaces all metadata of a document (file or folder).
1163
+ * @summary Replace document metadata
1164
+ * @param {string} documentId
1165
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
1166
+ * @param {*} [options] Override http request option.
1167
+ * @throws {RequiredError}
1168
+ */
1169
+ replaceDocumentMetadata(documentId, requestBody, options) {
1170
+ return (0, exports.DocumentControllerApiFp)(this.configuration).replaceDocumentMetadata(documentId, requestBody, options).then((request) => request(this.axios, this.basePath));
1171
+ }
1172
+ /**
1173
+ * Finds document IDs matching all provided metadata criteria.
1174
+ * @summary Search document IDs by metadata
1175
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
1176
+ * @param {*} [options] Override http request option.
1177
+ * @throws {RequiredError}
1178
+ */
1179
+ searchDocumentIdsByMetadata(searchByMetadataRequest, options) {
1180
+ return (0, exports.DocumentControllerApiFp)(this.configuration).searchDocumentIdsByMetadata(searchByMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1181
+ }
1182
+ /**
1183
+ * Updates or adds specific metadata fields for a document.
1184
+ * @summary Update document metadata
1185
+ * @param {string} documentId
1186
+ * @param {UpdateMetadataRequest} updateMetadataRequest
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ updateDocumentMetadata(documentId, updateMetadataRequest, options) {
1191
+ return (0, exports.DocumentControllerApiFp)(this.configuration).updateDocumentMetadata(documentId, updateMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1192
+ }
1193
+ /**
1194
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
1195
+ * @summary Upload multiple documents
1196
+ * @param {Array<File>} file
1197
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1198
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ */
1202
+ uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options) {
1203
+ return (0, exports.DocumentControllerApiFp)(this.configuration).uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options).then((request) => request(this.axios, this.basePath));
1204
+ }
1205
+ /**
1206
+ * Uploads a single file, optionally with metadata and a parent folder ID.
1207
+ * @summary Upload a single document
1208
+ * @param {File} file
1209
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1210
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
1211
+ * @param {string} [metadata]
1212
+ * @param {*} [options] Override http request option.
1213
+ * @throws {RequiredError}
1214
+ */
1215
+ uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options) {
1216
+ return (0, exports.DocumentControllerApiFp)(this.configuration).uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options).then((request) => request(this.axios, this.basePath));
1217
+ }
1218
+ }
1219
+ exports.DocumentControllerApi = DocumentControllerApi;