@openfilz-sdk/typescript 1.1.5-SNAPSHOT → 1.1.7

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 (309) hide show
  1. package/.openapi-generator/FILES +118 -76
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -0
  4. package/README.md +113 -2
  5. package/api/audit-controller-api.ts +4 -17
  6. package/api/dashboard-api.ts +2 -9
  7. package/api/document-controller-api.ts +21 -53
  8. package/api/document-suggestion-controller-api.ts +2 -9
  9. package/api/favorites-api.ts +3 -15
  10. package/api/file-controller-api.ts +3 -19
  11. package/api/folder-controller-api.ts +5 -26
  12. package/api/settings-api.ts +2 -9
  13. package/api/tus-controller-api.ts +8 -30
  14. package/base.ts +0 -24
  15. package/common.ts +19 -42
  16. package/configuration.ts +24 -18
  17. package/dist/api/audit-controller-api.d.ts +0 -12
  18. package/dist/api/audit-controller-api.js +3 -12
  19. package/dist/api/dashboard-api.d.ts +0 -7
  20. package/dist/api/dashboard-api.js +1 -7
  21. package/dist/api/document-controller-api.d.ts +0 -21
  22. package/dist/api/document-controller-api.js +14 -21
  23. package/dist/api/document-suggestion-controller-api.d.ts +0 -7
  24. package/dist/api/document-suggestion-controller-api.js +1 -7
  25. package/dist/api/favorites-api.d.ts +0 -10
  26. package/dist/api/favorites-api.js +2 -10
  27. package/dist/api/file-controller-api.d.ts +0 -10
  28. package/dist/api/file-controller-api.js +2 -10
  29. package/dist/api/folder-controller-api.d.ts +0 -13
  30. package/dist/api/folder-controller-api.js +4 -13
  31. package/dist/api/settings-api.d.ts +0 -7
  32. package/dist/api/settings-api.js +1 -7
  33. package/dist/api/tus-controller-api.d.ts +0 -15
  34. package/dist/api/tus-controller-api.js +7 -18
  35. package/dist/base.d.ts +0 -24
  36. package/dist/base.js +0 -19
  37. package/dist/common.d.ts +4 -35
  38. package/dist/common.js +16 -38
  39. package/dist/configuration.d.ts +24 -17
  40. package/dist/configuration.js +1 -1
  41. package/dist/esm/api/audit-controller-api.d.ts +0 -12
  42. package/dist/esm/api/audit-controller-api.js +3 -12
  43. package/dist/esm/api/dashboard-api.d.ts +0 -7
  44. package/dist/esm/api/dashboard-api.js +1 -7
  45. package/dist/esm/api/document-controller-api.d.ts +0 -21
  46. package/dist/esm/api/document-controller-api.js +14 -21
  47. package/dist/esm/api/document-suggestion-controller-api.d.ts +0 -7
  48. package/dist/esm/api/document-suggestion-controller-api.js +1 -7
  49. package/dist/esm/api/favorites-api.d.ts +0 -10
  50. package/dist/esm/api/favorites-api.js +2 -10
  51. package/dist/esm/api/file-controller-api.d.ts +0 -10
  52. package/dist/esm/api/file-controller-api.js +2 -10
  53. package/dist/esm/api/folder-controller-api.d.ts +0 -13
  54. package/dist/esm/api/folder-controller-api.js +4 -13
  55. package/dist/esm/api/settings-api.d.ts +0 -7
  56. package/dist/esm/api/settings-api.js +1 -7
  57. package/dist/esm/api/tus-controller-api.d.ts +0 -15
  58. package/dist/esm/api/tus-controller-api.js +8 -19
  59. package/dist/esm/base.d.ts +0 -24
  60. package/dist/esm/base.js +0 -19
  61. package/dist/esm/common.d.ts +4 -35
  62. package/dist/esm/common.js +14 -37
  63. package/dist/esm/configuration.d.ts +24 -17
  64. package/dist/esm/configuration.js +1 -1
  65. package/dist/esm/models/ancestor-info.d.ts +0 -20
  66. package/dist/esm/models/audit-log-details-one-of.d.ts +29 -29
  67. package/dist/esm/models/audit-log-details.d.ts +3 -14
  68. package/dist/esm/models/audit-log.d.ts +2 -44
  69. package/dist/esm/models/audit-verification-result.d.ts +2 -29
  70. package/dist/esm/models/broken-link.d.ts +0 -20
  71. package/dist/esm/models/copy-audit.d.ts +3 -28
  72. package/dist/esm/models/copy-request.d.ts +0 -11
  73. package/dist/esm/models/copy-response.d.ts +0 -9
  74. package/dist/esm/models/create-blank-document-request.d.ts +0 -14
  75. package/dist/esm/models/create-folder-audit.d.ts +3 -23
  76. package/dist/esm/models/create-folder-request.d.ts +0 -12
  77. package/dist/esm/models/dashboard-statistics-response.d.ts +4 -29
  78. package/dist/esm/models/delete-audit.d.ts +3 -16
  79. package/dist/esm/models/delete-metadata-audit.d.ts +3 -16
  80. package/dist/esm/models/delete-metadata-request.d.ts +0 -7
  81. package/dist/esm/models/delete-request.d.ts +0 -7
  82. package/dist/esm/models/document-info.d.ts +0 -17
  83. package/dist/esm/models/document-position.d.ts +0 -25
  84. package/dist/esm/models/element-info.d.ts +0 -20
  85. package/dist/esm/models/file-type-stats.d.ts +0 -20
  86. package/dist/esm/models/filter-input.d.ts +0 -15
  87. package/dist/esm/models/folder-element-info.d.ts +0 -11
  88. package/dist/esm/models/folder-response.d.ts +0 -20
  89. package/dist/esm/models/index.d.ts +0 -11
  90. package/dist/esm/models/index.js +0 -11
  91. package/dist/esm/models/move-audit.d.ts +3 -16
  92. package/dist/esm/models/move-request.d.ts +0 -11
  93. package/dist/esm/models/rename-audit.d.ts +3 -16
  94. package/dist/esm/models/rename-request.d.ts +0 -10
  95. package/dist/esm/models/replace-audit.d.ts +3 -24
  96. package/dist/esm/models/search-by-audit-log-request.d.ts +0 -12
  97. package/dist/esm/models/search-by-metadata-request.d.ts +0 -12
  98. package/dist/esm/models/search-metadata-request.d.ts +0 -7
  99. package/dist/esm/models/settings.d.ts +0 -30
  100. package/dist/esm/models/sort-input.d.ts +0 -15
  101. package/dist/esm/models/storage-breakdown.d.ts +2 -22
  102. package/dist/esm/models/suggest.d.ts +0 -20
  103. package/dist/esm/models/tus-config-response.d.ts +0 -30
  104. package/dist/esm/models/tus-finalize-request.d.ts +0 -25
  105. package/dist/esm/models/tus-upload-info.d.ts +0 -30
  106. package/dist/esm/models/update-metadata-audit.d.ts +3 -18
  107. package/dist/esm/models/update-metadata-request.d.ts +0 -7
  108. package/dist/esm/models/upload-audit.d.ts +3 -30
  109. package/dist/esm/models/upload-response.d.ts +0 -35
  110. package/dist/models/ancestor-info.d.ts +0 -20
  111. package/dist/models/audit-log-details-one-of.d.ts +29 -29
  112. package/dist/models/audit-log-details.d.ts +3 -14
  113. package/dist/models/audit-log.d.ts +2 -44
  114. package/dist/models/audit-verification-result.d.ts +2 -29
  115. package/dist/models/broken-link.d.ts +0 -20
  116. package/dist/models/copy-audit.d.ts +3 -28
  117. package/dist/models/copy-request.d.ts +0 -11
  118. package/dist/models/copy-response.d.ts +0 -9
  119. package/dist/models/create-blank-document-request.d.ts +0 -14
  120. package/dist/models/create-folder-audit.d.ts +3 -23
  121. package/dist/models/create-folder-request.d.ts +0 -12
  122. package/dist/models/dashboard-statistics-response.d.ts +4 -29
  123. package/dist/models/delete-audit.d.ts +3 -16
  124. package/dist/models/delete-metadata-audit.d.ts +3 -16
  125. package/dist/models/delete-metadata-request.d.ts +0 -7
  126. package/dist/models/delete-request.d.ts +0 -7
  127. package/dist/models/document-info.d.ts +0 -17
  128. package/dist/models/document-position.d.ts +0 -25
  129. package/dist/models/element-info.d.ts +0 -20
  130. package/dist/models/file-type-stats.d.ts +0 -20
  131. package/dist/models/filter-input.d.ts +0 -15
  132. package/dist/models/folder-element-info.d.ts +0 -11
  133. package/dist/models/folder-response.d.ts +0 -20
  134. package/dist/models/index.d.ts +0 -11
  135. package/dist/models/index.js +0 -11
  136. package/dist/models/move-audit.d.ts +3 -16
  137. package/dist/models/move-request.d.ts +0 -11
  138. package/dist/models/rename-audit.d.ts +3 -16
  139. package/dist/models/rename-request.d.ts +0 -10
  140. package/dist/models/replace-audit.d.ts +3 -24
  141. package/dist/models/search-by-audit-log-request.d.ts +0 -12
  142. package/dist/models/search-by-metadata-request.d.ts +0 -12
  143. package/dist/models/search-metadata-request.d.ts +0 -7
  144. package/dist/models/settings.d.ts +0 -30
  145. package/dist/models/sort-input.d.ts +0 -15
  146. package/dist/models/storage-breakdown.d.ts +2 -22
  147. package/dist/models/suggest.d.ts +0 -20
  148. package/dist/models/tus-config-response.d.ts +0 -30
  149. package/dist/models/tus-finalize-request.d.ts +0 -25
  150. package/dist/models/tus-upload-info.d.ts +0 -30
  151. package/dist/models/update-metadata-audit.d.ts +3 -18
  152. package/dist/models/update-metadata-request.d.ts +0 -7
  153. package/dist/models/upload-audit.d.ts +3 -30
  154. package/dist/models/upload-response.d.ts +0 -35
  155. package/docs/AncestorInfo.md +24 -0
  156. package/docs/AuditControllerApi.md +160 -0
  157. package/docs/AuditLog.md +35 -0
  158. package/docs/AuditLogDetails.md +20 -0
  159. package/docs/AuditLogDetailsOneOf.md +42 -0
  160. package/docs/AuditVerificationResult.md +29 -0
  161. package/docs/BrokenLink.md +24 -0
  162. package/docs/CopyAudit.md +25 -0
  163. package/docs/CopyRequest.md +24 -0
  164. package/docs/CopyResponse.md +22 -0
  165. package/docs/CreateBlankDocumentRequest.md +24 -0
  166. package/docs/CreateFolderAudit.md +23 -0
  167. package/docs/CreateFolderRequest.md +22 -0
  168. package/docs/DashboardApi.md +52 -0
  169. package/docs/DashboardStatisticsResponse.md +26 -0
  170. package/docs/DeleteAudit.md +21 -0
  171. package/docs/DeleteMetadataAudit.md +21 -0
  172. package/docs/DeleteMetadataRequest.md +20 -0
  173. package/docs/DeleteRequest.md +20 -0
  174. package/docs/DocumentControllerApi.md +834 -0
  175. package/docs/DocumentInfo.md +30 -0
  176. package/docs/DocumentPosition.md +26 -0
  177. package/docs/DocumentSuggestionControllerApi.md +65 -0
  178. package/docs/ElementInfo.md +24 -0
  179. package/docs/FavoritesApi.md +215 -0
  180. package/docs/FileControllerApi.md +222 -0
  181. package/docs/FileTypeStats.md +24 -0
  182. package/docs/FilterInput.md +22 -0
  183. package/docs/FolderControllerApi.md +385 -0
  184. package/docs/FolderElementInfo.md +24 -0
  185. package/docs/FolderResponse.md +24 -0
  186. package/docs/MoveAudit.md +21 -0
  187. package/docs/MoveRequest.md +24 -0
  188. package/docs/RenameAudit.md +21 -0
  189. package/docs/RenameRequest.md +20 -0
  190. package/docs/ReplaceAudit.md +23 -0
  191. package/docs/SearchByAuditLogRequest.md +29 -0
  192. package/docs/SearchByMetadataRequest.md +29 -0
  193. package/docs/SearchMetadataRequest.md +20 -0
  194. package/docs/Settings.md +28 -0
  195. package/docs/SettingsApi.md +52 -0
  196. package/docs/SortInput.md +22 -0
  197. package/docs/StorageBreakdown.md +24 -0
  198. package/docs/Suggest.md +24 -0
  199. package/docs/TusConfigResponse.md +28 -0
  200. package/docs/TusControllerApi.md +493 -0
  201. package/docs/TusFinalizeRequest.md +26 -0
  202. package/docs/TusUploadInfo.md +28 -0
  203. package/docs/UpdateMetadataAudit.md +21 -0
  204. package/docs/UpdateMetadataRequest.md +20 -0
  205. package/docs/UploadAudit.md +25 -0
  206. package/docs/UploadResponse.md +30 -0
  207. package/graphql/document-search.graphqls +44 -44
  208. package/graphql/document.graphqls +114 -114
  209. package/models/ancestor-info.ts +0 -20
  210. package/models/audit-log-details-one-of.ts +33 -29
  211. package/models/audit-log-details.ts +3 -36
  212. package/models/audit-log.ts +2 -44
  213. package/models/audit-verification-result.ts +2 -29
  214. package/models/broken-link.ts +0 -20
  215. package/models/copy-audit.ts +6 -28
  216. package/models/copy-request.ts +0 -11
  217. package/models/copy-response.ts +0 -9
  218. package/models/create-blank-document-request.ts +0 -14
  219. package/models/create-folder-audit.ts +6 -22
  220. package/models/create-folder-request.ts +0 -12
  221. package/models/dashboard-statistics-response.ts +4 -29
  222. package/models/delete-audit.ts +6 -16
  223. package/models/delete-metadata-audit.ts +6 -16
  224. package/models/delete-metadata-request.ts +0 -7
  225. package/models/delete-request.ts +0 -7
  226. package/models/document-info.ts +0 -17
  227. package/models/document-position.ts +0 -25
  228. package/models/element-info.ts +0 -20
  229. package/models/file-type-stats.ts +0 -20
  230. package/models/filter-input.ts +0 -15
  231. package/models/folder-element-info.ts +0 -11
  232. package/models/folder-response.ts +0 -20
  233. package/models/index.ts +0 -11
  234. package/models/move-audit.ts +6 -16
  235. package/models/move-request.ts +0 -11
  236. package/models/rename-audit.ts +6 -16
  237. package/models/rename-request.ts +0 -10
  238. package/models/replace-audit.ts +6 -22
  239. package/models/search-by-audit-log-request.ts +0 -12
  240. package/models/search-by-metadata-request.ts +0 -12
  241. package/models/search-metadata-request.ts +0 -7
  242. package/models/settings.ts +0 -30
  243. package/models/sort-input.ts +0 -15
  244. package/models/storage-breakdown.ts +2 -22
  245. package/models/suggest.ts +0 -20
  246. package/models/tus-config-response.ts +0 -30
  247. package/models/tus-finalize-request.ts +0 -25
  248. package/models/tus-upload-info.ts +0 -30
  249. package/models/update-metadata-audit.ts +6 -16
  250. package/models/update-metadata-request.ts +0 -7
  251. package/models/upload-audit.ts +6 -28
  252. package/models/upload-response.ts +0 -35
  253. package/package.json +2 -2
  254. package/.openapi-generator/openfilz-api.json-generate-typescript-sdk.sha256 +0 -1
  255. package/dist/esm/models/audit-log-details-one-of1.d.ts +0 -37
  256. package/dist/esm/models/audit-log-details-one-of1.js +0 -14
  257. package/dist/esm/models/audit-log-details-one-of2.d.ts +0 -30
  258. package/dist/esm/models/audit-log-details-one-of2.js +0 -14
  259. package/dist/esm/models/audit-log-details-one-of3.d.ts +0 -30
  260. package/dist/esm/models/audit-log-details-one-of3.js +0 -14
  261. package/dist/esm/models/audit-log-details-one-of4.d.ts +0 -30
  262. package/dist/esm/models/audit-log-details-one-of4.js +0 -14
  263. package/dist/esm/models/audit-log-details-one-of5.d.ts +0 -30
  264. package/dist/esm/models/audit-log-details-one-of5.js +0 -14
  265. package/dist/esm/models/audit-log-details-one-of6.d.ts +0 -38
  266. package/dist/esm/models/audit-log-details-one-of6.js +0 -14
  267. package/dist/esm/models/audit-log-details-one-of7.d.ts +0 -32
  268. package/dist/esm/models/audit-log-details-one-of7.js +0 -14
  269. package/dist/esm/models/audit-log-details-one-of8.d.ts +0 -44
  270. package/dist/esm/models/audit-log-details-one-of8.js +0 -14
  271. package/dist/esm/models/audit-verification-result-broken-link.d.ts +0 -36
  272. package/dist/esm/models/audit-verification-result-broken-link.js +0 -14
  273. package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +0 -36
  274. package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +0 -14
  275. package/dist/esm/models/dashboard-statistics-response-storage.d.ts +0 -37
  276. package/dist/esm/models/dashboard-statistics-response-storage.js +0 -14
  277. package/dist/models/audit-log-details-one-of1.d.ts +0 -37
  278. package/dist/models/audit-log-details-one-of1.js +0 -15
  279. package/dist/models/audit-log-details-one-of2.d.ts +0 -30
  280. package/dist/models/audit-log-details-one-of2.js +0 -15
  281. package/dist/models/audit-log-details-one-of3.d.ts +0 -30
  282. package/dist/models/audit-log-details-one-of3.js +0 -15
  283. package/dist/models/audit-log-details-one-of4.d.ts +0 -30
  284. package/dist/models/audit-log-details-one-of4.js +0 -15
  285. package/dist/models/audit-log-details-one-of5.d.ts +0 -30
  286. package/dist/models/audit-log-details-one-of5.js +0 -15
  287. package/dist/models/audit-log-details-one-of6.d.ts +0 -38
  288. package/dist/models/audit-log-details-one-of6.js +0 -15
  289. package/dist/models/audit-log-details-one-of7.d.ts +0 -32
  290. package/dist/models/audit-log-details-one-of7.js +0 -15
  291. package/dist/models/audit-log-details-one-of8.d.ts +0 -44
  292. package/dist/models/audit-log-details-one-of8.js +0 -15
  293. package/dist/models/audit-verification-result-broken-link.d.ts +0 -36
  294. package/dist/models/audit-verification-result-broken-link.js +0 -15
  295. package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +0 -36
  296. package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +0 -15
  297. package/dist/models/dashboard-statistics-response-storage.d.ts +0 -37
  298. package/dist/models/dashboard-statistics-response-storage.js +0 -15
  299. package/models/audit-log-details-one-of1.ts +0 -45
  300. package/models/audit-log-details-one-of2.ts +0 -36
  301. package/models/audit-log-details-one-of3.ts +0 -36
  302. package/models/audit-log-details-one-of4.ts +0 -36
  303. package/models/audit-log-details-one-of5.ts +0 -36
  304. package/models/audit-log-details-one-of6.ts +0 -42
  305. package/models/audit-log-details-one-of7.ts +0 -36
  306. package/models/audit-log-details-one-of8.ts +0 -48
  307. package/models/audit-verification-result-broken-link.ts +0 -42
  308. package/models/dashboard-statistics-response-storage-file-type-breakdown-inner.ts +0 -42
  309. package/models/dashboard-statistics-response-storage.ts +0 -45
@@ -23,12 +23,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import globalAxios from 'axios';
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
29
  /**
30
30
  * TusControllerApi - axios parameter creator
31
- * @export
32
31
  */
33
32
  export const TusControllerApiAxiosParamCreator = function (configuration) {
34
33
  return {
@@ -119,7 +118,7 @@ export const TusControllerApiAxiosParamCreator = function (configuration) {
119
118
  if (uploadLength != null) {
120
119
  localVarHeaderParameter['Upload-Length'] = typeof uploadLength === 'string'
121
120
  ? uploadLength
122
- : JSON.stringify(uploadLength);
121
+ : JSON.stringify(uploadLength, replaceWithSerializableTypeIfNeeded);
123
122
  }
124
123
  if (uploadMetadata != null) {
125
124
  localVarHeaderParameter['Upload-Metadata'] = String(uploadMetadata);
@@ -160,6 +159,7 @@ export const TusControllerApiAxiosParamCreator = function (configuration) {
160
159
  // http bearer authentication required
161
160
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
162
161
  localVarHeaderParameter['Content-Type'] = 'application/json';
162
+ localVarHeaderParameter['Accept'] = '*/*';
163
163
  setSearchParams(localVarUrlObj, localVarQueryParameter);
164
164
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
165
165
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -189,6 +189,7 @@ export const TusControllerApiAxiosParamCreator = function (configuration) {
189
189
  // authentication keycloak_auth required
190
190
  // http bearer authentication required
191
191
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
192
+ localVarHeaderParameter['Accept'] = '*/*';
192
193
  setSearchParams(localVarUrlObj, localVarQueryParameter);
193
194
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
195
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -221,6 +222,7 @@ export const TusControllerApiAxiosParamCreator = function (configuration) {
221
222
  // authentication keycloak_auth required
222
223
  // http bearer authentication required
223
224
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
225
+ localVarHeaderParameter['Accept'] = '*/*';
224
226
  setSearchParams(localVarUrlObj, localVarQueryParameter);
225
227
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
228
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -285,6 +287,7 @@ export const TusControllerApiAxiosParamCreator = function (configuration) {
285
287
  // authentication keycloak_auth required
286
288
  // http bearer authentication required
287
289
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
290
+ localVarHeaderParameter['Accept'] = '*/*';
288
291
  setSearchParams(localVarUrlObj, localVarQueryParameter);
289
292
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
290
293
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -328,12 +331,12 @@ export const TusControllerApiAxiosParamCreator = function (configuration) {
328
331
  if (uploadOffset != null) {
329
332
  localVarHeaderParameter['Upload-Offset'] = typeof uploadOffset === 'string'
330
333
  ? uploadOffset
331
- : JSON.stringify(uploadOffset);
334
+ : JSON.stringify(uploadOffset, replaceWithSerializableTypeIfNeeded);
332
335
  }
333
336
  if (contentLength != null) {
334
337
  localVarHeaderParameter['Content-Length'] = typeof contentLength === 'string'
335
338
  ? contentLength
336
- : JSON.stringify(contentLength);
339
+ : JSON.stringify(contentLength, replaceWithSerializableTypeIfNeeded);
337
340
  }
338
341
  setSearchParams(localVarUrlObj, localVarQueryParameter);
339
342
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -348,7 +351,6 @@ export const TusControllerApiAxiosParamCreator = function (configuration) {
348
351
  };
349
352
  /**
350
353
  * TusControllerApi - functional programming interface
351
- * @export
352
354
  */
353
355
  export const TusControllerApiFp = function (configuration) {
354
356
  const localVarAxiosParamCreator = TusControllerApiAxiosParamCreator(configuration);
@@ -504,7 +506,6 @@ export const TusControllerApiFp = function (configuration) {
504
506
  };
505
507
  /**
506
508
  * TusControllerApi - factory interface
507
- * @export
508
509
  */
509
510
  export const TusControllerApiFactory = function (configuration, basePath, axios) {
510
511
  const localVarFp = TusControllerApiFp(configuration);
@@ -606,9 +607,6 @@ export const TusControllerApiFactory = function (configuration, basePath, axios)
606
607
  };
607
608
  /**
608
609
  * TusControllerApi - object-oriented interface
609
- * @export
610
- * @class TusControllerApi
611
- * @extends {BaseAPI}
612
610
  */
613
611
  export class TusControllerApi extends BaseAPI {
614
612
  /**
@@ -616,7 +614,6 @@ export class TusControllerApi extends BaseAPI {
616
614
  * @summary TUS capability discovery
617
615
  * @param {*} [options] Override http request option.
618
616
  * @throws {RequiredError}
619
- * @memberof TusControllerApi
620
617
  */
621
618
  _options(options) {
622
619
  return TusControllerApiFp(this.configuration)._options(options).then((request) => request(this.axios, this.basePath));
@@ -627,7 +624,6 @@ export class TusControllerApi extends BaseAPI {
627
624
  * @param {string} uploadId Upload identifier
628
625
  * @param {*} [options] Override http request option.
629
626
  * @throws {RequiredError}
630
- * @memberof TusControllerApi
631
627
  */
632
628
  cancelUpload(uploadId, options) {
633
629
  return TusControllerApiFp(this.configuration).cancelUpload(uploadId, options).then((request) => request(this.axios, this.basePath));
@@ -639,7 +635,6 @@ export class TusControllerApi extends BaseAPI {
639
635
  * @param {string} [uploadMetadata]
640
636
  * @param {*} [options] Override http request option.
641
637
  * @throws {RequiredError}
642
- * @memberof TusControllerApi
643
638
  */
644
639
  createUpload(uploadLength, uploadMetadata, options) {
645
640
  return TusControllerApiFp(this.configuration).createUpload(uploadLength, uploadMetadata, options).then((request) => request(this.axios, this.basePath));
@@ -651,7 +646,6 @@ export class TusControllerApi extends BaseAPI {
651
646
  * @param {TusFinalizeRequest} tusFinalizeRequest
652
647
  * @param {*} [options] Override http request option.
653
648
  * @throws {RequiredError}
654
- * @memberof TusControllerApi
655
649
  */
656
650
  finalizeUpload(uploadId, tusFinalizeRequest, options) {
657
651
  return TusControllerApiFp(this.configuration).finalizeUpload(uploadId, tusFinalizeRequest, options).then((request) => request(this.axios, this.basePath));
@@ -661,7 +655,6 @@ export class TusControllerApi extends BaseAPI {
661
655
  * @summary Get TUS configuration
662
656
  * @param {*} [options] Override http request option.
663
657
  * @throws {RequiredError}
664
- * @memberof TusControllerApi
665
658
  */
666
659
  getConfig(options) {
667
660
  return TusControllerApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
@@ -672,7 +665,6 @@ export class TusControllerApi extends BaseAPI {
672
665
  * @param {string} uploadId Upload identifier
673
666
  * @param {*} [options] Override http request option.
674
667
  * @throws {RequiredError}
675
- * @memberof TusControllerApi
676
668
  */
677
669
  getUploadInfo(uploadId, options) {
678
670
  return TusControllerApiFp(this.configuration).getUploadInfo(uploadId, options).then((request) => request(this.axios, this.basePath));
@@ -683,7 +675,6 @@ export class TusControllerApi extends BaseAPI {
683
675
  * @param {string} uploadId Upload identifier
684
676
  * @param {*} [options] Override http request option.
685
677
  * @throws {RequiredError}
686
- * @memberof TusControllerApi
687
678
  */
688
679
  getUploadOffset(uploadId, options) {
689
680
  return TusControllerApiFp(this.configuration).getUploadOffset(uploadId, options).then((request) => request(this.axios, this.basePath));
@@ -694,7 +685,6 @@ export class TusControllerApi extends BaseAPI {
694
685
  * @param {string} uploadId Upload identifier
695
686
  * @param {*} [options] Override http request option.
696
687
  * @throws {RequiredError}
697
- * @memberof TusControllerApi
698
688
  */
699
689
  isUploadComplete(uploadId, options) {
700
690
  return TusControllerApiFp(this.configuration).isUploadComplete(uploadId, options).then((request) => request(this.axios, this.basePath));
@@ -708,7 +698,6 @@ export class TusControllerApi extends BaseAPI {
708
698
  * @param {number} [contentLength]
709
699
  * @param {*} [options] Override http request option.
710
700
  * @throws {RequiredError}
711
- * @memberof TusControllerApi
712
701
  */
713
702
  uploadChunk(uploadId, uploadOffset, requestBody, contentLength, options) {
714
703
  return TusControllerApiFp(this.configuration).uploadChunk(uploadId, uploadOffset, requestBody, contentLength, options).then((request) => request(this.axios, this.basePath));
@@ -12,42 +12,22 @@
12
12
  import type { Configuration } from './configuration';
13
13
  import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const COLLECTION_FORMATS: {
20
16
  csv: string;
21
17
  ssv: string;
22
18
  tsv: string;
23
19
  pipes: string;
24
20
  };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
21
  export interface RequestArgs {
31
22
  url: string;
32
23
  options: RawAxiosRequestConfig;
33
24
  }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
25
  export declare class BaseAPI {
40
26
  protected basePath: string;
41
27
  protected axios: AxiosInstance;
42
28
  protected configuration: Configuration | undefined;
43
29
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
30
  }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
31
  export declare class RequiredError extends Error {
52
32
  field: string;
53
33
  constructor(field: string, msg?: string);
@@ -58,9 +38,5 @@ interface ServerMap {
58
38
  description: string;
59
39
  }[];
60
40
  }
61
- /**
62
- *
63
- * @export
64
- */
65
41
  export declare const operationServerMap: ServerMap;
66
42
  export {};
package/dist/esm/base.js CHANGED
@@ -13,21 +13,12 @@
13
13
  */
14
14
  import globalAxios from 'axios';
15
15
  export const BASE_PATH = "http://localhost:8081".replace(/\/+$/, "");
16
- /**
17
- *
18
- * @export
19
- */
20
16
  export const COLLECTION_FORMATS = {
21
17
  csv: ",",
22
18
  ssv: " ",
23
19
  tsv: "\t",
24
20
  pipes: "|",
25
21
  };
26
- /**
27
- *
28
- * @export
29
- * @class BaseAPI
30
- */
31
22
  export class BaseAPI {
32
23
  constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
24
  var _a;
@@ -40,12 +31,6 @@ export class BaseAPI {
40
31
  }
41
32
  }
42
33
  ;
43
- /**
44
- *
45
- * @export
46
- * @class RequiredError
47
- * @extends {Error}
48
- */
49
34
  export class RequiredError extends Error {
50
35
  constructor(field, msg) {
51
36
  super(msg);
@@ -53,8 +38,4 @@ export class RequiredError extends Error {
53
38
  this.name = "RequiredError";
54
39
  }
55
40
  }
56
- /**
57
- *
58
- * @export
59
- */
60
41
  export const operationServerMap = {};
@@ -12,54 +12,23 @@
12
12
  import type { Configuration } from "./configuration";
13
13
  import type { RequestArgs } from "./base";
14
14
  import type { AxiosInstance, AxiosResponse } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const DUMMY_BASE_URL = "https://example.com";
20
16
  /**
21
17
  *
22
18
  * @throws {RequiredError}
23
- * @export
24
19
  */
25
20
  export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
21
  export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
22
  export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
23
  export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
24
  export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
25
  export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
26
  /**
52
- *
53
- * @export
27
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
28
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
54
30
  */
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
55
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
33
  export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -21,25 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import { RequiredError } from "./base";
24
- /**
25
- *
26
- * @export
27
- */
28
24
  export const DUMMY_BASE_URL = 'https://example.com';
29
25
  /**
30
26
  *
31
27
  * @throws {RequiredError}
32
- * @export
33
28
  */
34
29
  export const assertParamExists = function (functionName, paramName, paramValue) {
35
30
  if (paramValue === null || paramValue === undefined) {
36
31
  throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
37
32
  }
38
33
  };
39
- /**
40
- *
41
- * @export
42
- */
43
34
  export const setApiKeyToObject = function (object, keyParamName, configuration) {
44
35
  return __awaiter(this, void 0, void 0, function* () {
45
36
  if (configuration && configuration.apiKey) {
@@ -50,19 +41,11 @@ export const setApiKeyToObject = function (object, keyParamName, configuration)
50
41
  }
51
42
  });
52
43
  };
53
- /**
54
- *
55
- * @export
56
- */
57
44
  export const setBasicAuthToObject = function (object, configuration) {
58
45
  if (configuration && (configuration.username || configuration.password)) {
59
46
  object["auth"] = { username: configuration.username, password: configuration.password };
60
47
  }
61
48
  };
62
- /**
63
- *
64
- * @export
65
- */
66
49
  export const setBearerAuthToObject = function (object, configuration) {
67
50
  return __awaiter(this, void 0, void 0, function* () {
68
51
  if (configuration && configuration.accessToken) {
@@ -73,10 +56,6 @@ export const setBearerAuthToObject = function (object, configuration) {
73
56
  }
74
57
  });
75
58
  };
76
- /**
77
- *
78
- * @export
79
- */
80
59
  export const setOAuthToObject = function (object, name, scopes, configuration) {
81
60
  return __awaiter(this, void 0, void 0, function* () {
82
61
  if (configuration && configuration.accessToken) {
@@ -91,7 +70,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
91
70
  if (parameter == null)
92
71
  return;
93
72
  if (typeof parameter === "object") {
94
- if (Array.isArray(parameter)) {
73
+ if (Array.isArray(parameter) || parameter instanceof Set) {
95
74
  parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
96
75
  }
97
76
  else {
@@ -107,39 +86,37 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
107
86
  }
108
87
  }
109
88
  }
110
- /**
111
- *
112
- * @export
113
- */
114
89
  export const setSearchParams = function (url, ...objects) {
115
90
  const searchParams = new URLSearchParams(url.search);
116
91
  setFlattenedQueryParams(searchParams, objects);
117
92
  url.search = searchParams.toString();
118
93
  };
119
94
  /**
120
- *
121
- * @export
95
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
96
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
97
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
122
98
  */
99
+ // @ts-ignore
100
+ export const replaceWithSerializableTypeIfNeeded = function (key, value) {
101
+ if (value instanceof Set) {
102
+ return Array.from(value);
103
+ }
104
+ else {
105
+ return value;
106
+ }
107
+ };
123
108
  export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
124
109
  const nonString = typeof value !== 'string';
125
110
  const needsSerialization = nonString && configuration && configuration.isJsonMime
126
111
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
127
112
  : nonString;
128
113
  return needsSerialization
129
- ? JSON.stringify(value !== undefined ? value : {})
114
+ ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
130
115
  : (value || "");
131
116
  };
132
- /**
133
- *
134
- * @export
135
- */
136
117
  export const toPathString = function (url) {
137
118
  return url.pathname + url.search + url.hash;
138
119
  };
139
- /**
140
- *
141
- * @export
142
- */
143
120
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
144
121
  return (axios = globalAxios, basePath = BASE_PATH) => {
145
122
  var _a;
@@ -9,11 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ interface AWSv4Configuration {
13
+ options?: {
14
+ region?: string;
15
+ service?: string;
16
+ };
17
+ credentials?: {
18
+ accessKeyId?: string;
19
+ secretAccessKey?: string;
20
+ sessionToken?: string;
21
+ };
22
+ }
12
23
  export interface ConfigurationParameters {
13
24
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
25
  username?: string;
15
26
  password?: string;
16
27
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
+ awsv4?: AWSv4Configuration;
17
29
  basePath?: string;
18
30
  serverIndex?: number;
19
31
  baseOptions?: any;
@@ -23,49 +35,43 @@ export declare class Configuration {
23
35
  /**
24
36
  * parameter for apiKey security
25
37
  * @param name security name
26
- * @memberof Configuration
27
38
  */
28
39
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
40
  /**
30
41
  * parameter for basic security
31
- *
32
- * @type {string}
33
- * @memberof Configuration
34
42
  */
35
43
  username?: string;
36
44
  /**
37
45
  * parameter for basic security
38
- *
39
- * @type {string}
40
- * @memberof Configuration
41
46
  */
42
47
  password?: string;
43
48
  /**
44
49
  * parameter for oauth2 security
45
50
  * @param name security name
46
51
  * @param scopes oauth2 scope
47
- * @memberof Configuration
48
52
  */
49
53
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
54
  /**
51
- * override base path
52
- *
53
- * @type {string}
55
+ * parameter for aws4 signature security
56
+ * @param {Object} AWS4Signature - AWS4 Signature security
57
+ * @param {string} options.region - aws region
58
+ * @param {string} options.service - name of the service.
59
+ * @param {string} credentials.accessKeyId - aws access key id
60
+ * @param {string} credentials.secretAccessKey - aws access key
61
+ * @param {string} credentials.sessionToken - aws session token
54
62
  * @memberof Configuration
55
63
  */
64
+ awsv4?: AWSv4Configuration;
65
+ /**
66
+ * override base path
67
+ */
56
68
  basePath?: string;
57
69
  /**
58
70
  * override server index
59
- *
60
- * @type {number}
61
- * @memberof Configuration
62
71
  */
63
72
  serverIndex?: number;
64
73
  /**
65
74
  * base options for axios calls
66
- *
67
- * @type {any}
68
- * @memberof Configuration
69
75
  */
70
76
  baseOptions?: any;
71
77
  /**
@@ -89,3 +95,4 @@ export declare class Configuration {
89
95
  */
90
96
  isJsonMime(mime: string): boolean;
91
97
  }
98
+ export {};
@@ -1,5 +1,4 @@
1
1
  /* tslint:disable */
2
- /* eslint-disable */
3
2
  /**
4
3
  * openfilz-api
5
4
  * API for Document Management System
@@ -18,6 +17,7 @@ export class Configuration {
18
17
  this.username = param.username;
19
18
  this.password = param.password;
20
19
  this.accessToken = param.accessToken;
20
+ this.awsv4 = param.awsv4;
21
21
  this.basePath = param.basePath;
22
22
  this.serverIndex = param.serverIndex;
23
23
  this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
@@ -9,28 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- /**
13
- *
14
- * @export
15
- * @interface AncestorInfo
16
- */
17
12
  export interface AncestorInfo {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AncestorInfo
22
- */
23
13
  'id'?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AncestorInfo
28
- */
29
14
  'name'?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AncestorInfo
34
- */
35
15
  'type'?: string;
36
16
  }
@@ -9,34 +9,34 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CopyAudit } from './copy-audit';
13
+ import type { CreateFolderAudit } from './create-folder-audit';
14
+ import type { DeleteAudit } from './delete-audit';
15
+ import type { DeleteMetadataAudit } from './delete-metadata-audit';
16
+ import type { MoveAudit } from './move-audit';
17
+ import type { RenameAudit } from './rename-audit';
18
+ import type { ReplaceAudit } from './replace-audit';
19
+ import type { UpdateMetadataAudit } from './update-metadata-audit';
20
+ import type { UploadAudit } from './upload-audit';
12
21
  /**
13
- * type=copy
14
- * @export
15
- * @interface AuditLogDetailsOneOf
22
+ * @type AuditLogDetailsOneOf
16
23
  */
17
- export interface AuditLogDetailsOneOf {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AuditLogDetailsOneOf
22
- */
23
- 'type': string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AuditLogDetailsOneOf
28
- */
29
- 'sourceFileId'?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AuditLogDetailsOneOf
34
- */
35
- 'targetFolderId'?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof AuditLogDetailsOneOf
40
- */
41
- 'sourceFolderId'?: string;
42
- }
24
+ export type AuditLogDetailsOneOf = {
25
+ type: 'CopyAudit';
26
+ } & CopyAudit | {
27
+ type: 'CreateFolderAudit';
28
+ } & CreateFolderAudit | {
29
+ type: 'DeleteAudit';
30
+ } & DeleteAudit | {
31
+ type: 'DeleteMetadataAudit';
32
+ } & DeleteMetadataAudit | {
33
+ type: 'MoveAudit';
34
+ } & MoveAudit | {
35
+ type: 'RenameAudit';
36
+ } & RenameAudit | {
37
+ type: 'ReplaceAudit';
38
+ } & ReplaceAudit | {
39
+ type: 'UpdateMetadataAudit';
40
+ } & UpdateMetadataAudit | {
41
+ type: 'UploadAudit';
42
+ } & UploadAudit;
@@ -9,17 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AuditLogDetailsOneOf } from './audit-log-details-one-of';
13
- import type { AuditLogDetailsOneOf1 } from './audit-log-details-one-of1';
14
- import type { AuditLogDetailsOneOf2 } from './audit-log-details-one-of2';
15
- import type { AuditLogDetailsOneOf3 } from './audit-log-details-one-of3';
16
- import type { AuditLogDetailsOneOf4 } from './audit-log-details-one-of4';
17
- import type { AuditLogDetailsOneOf5 } from './audit-log-details-one-of5';
18
- import type { AuditLogDetailsOneOf6 } from './audit-log-details-one-of6';
19
- import type { AuditLogDetailsOneOf7 } from './audit-log-details-one-of7';
20
- import type { AuditLogDetailsOneOf8 } from './audit-log-details-one-of8';
21
- /**
22
- * @type AuditLogDetails
23
- * @export
24
- */
25
- export type AuditLogDetails = AuditLogDetailsOneOf | AuditLogDetailsOneOf1 | AuditLogDetailsOneOf2 | AuditLogDetailsOneOf3 | AuditLogDetailsOneOf4 | AuditLogDetailsOneOf5 | AuditLogDetailsOneOf6 | AuditLogDetailsOneOf7 | AuditLogDetailsOneOf8;
12
+ export interface AuditLogDetails {
13
+ 'type': string;
14
+ }