@openfilz-sdk/typescript 1.1.5-SNAPSHOT
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.
- package/.openapi-generator/FILES +76 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator/openfilz-api.json-generate-typescript-sdk.sha256 +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/api/audit-controller-api.ts +296 -0
- package/api/dashboard-api.ts +128 -0
- package/api/document-controller-api.ts +1319 -0
- package/api/document-suggestion-controller-api.ts +156 -0
- package/api/favorites-api.ts +352 -0
- package/api/file-controller-api.ts +379 -0
- package/api/folder-controller-api.ts +626 -0
- package/api/settings-api.ts +128 -0
- package/api/tus-controller-api.ts +760 -0
- package/api.ts +26 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api/audit-controller-api.d.ts +150 -0
- package/dist/api/audit-controller-api.js +284 -0
- package/dist/api/dashboard-api.d.ts +70 -0
- package/dist/api/dashboard-api.js +131 -0
- package/dist/api/document-controller-api.d.ts +615 -0
- package/dist/api/document-controller-api.js +1226 -0
- package/dist/api/document-suggestion-controller-api.d.ts +80 -0
- package/dist/api/document-suggestion-controller-api.js +152 -0
- package/dist/api/favorites-api.d.ts +172 -0
- package/dist/api/favorites-api.js +345 -0
- package/dist/api/file-controller-api.d.ts +182 -0
- package/dist/api/file-controller-api.js +356 -0
- package/dist/api/folder-controller-api.d.ts +295 -0
- package/dist/api/folder-controller-api.js +582 -0
- package/dist/api/settings-api.d.ts +70 -0
- package/dist/api/settings-api.js +131 -0
- package/dist/api/tus-controller-api.d.ts +353 -0
- package/dist/api/tus-controller-api.js +723 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +38 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api/audit-controller-api.d.ts +150 -0
- package/dist/esm/api/audit-controller-api.js +277 -0
- package/dist/esm/api/dashboard-api.d.ts +70 -0
- package/dist/esm/api/dashboard-api.js +124 -0
- package/dist/esm/api/document-controller-api.d.ts +615 -0
- package/dist/esm/api/document-controller-api.js +1219 -0
- package/dist/esm/api/document-suggestion-controller-api.d.ts +80 -0
- package/dist/esm/api/document-suggestion-controller-api.js +145 -0
- package/dist/esm/api/favorites-api.d.ts +172 -0
- package/dist/esm/api/favorites-api.js +338 -0
- package/dist/esm/api/file-controller-api.d.ts +182 -0
- package/dist/esm/api/file-controller-api.js +349 -0
- package/dist/esm/api/folder-controller-api.d.ts +295 -0
- package/dist/esm/api/folder-controller-api.js +575 -0
- package/dist/esm/api/settings-api.d.ts +70 -0
- package/dist/esm/api/settings-api.js +124 -0
- package/dist/esm/api/tus-controller-api.d.ts +353 -0
- package/dist/esm/api/tus-controller-api.js +716 -0
- package/dist/esm/api.d.ts +20 -0
- package/dist/esm/api.js +22 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/ancestor-info.d.ts +36 -0
- package/dist/esm/models/ancestor-info.js +14 -0
- package/dist/esm/models/audit-log-details-one-of.d.ts +42 -0
- package/dist/esm/models/audit-log-details-one-of.js +14 -0
- package/dist/esm/models/audit-log-details-one-of1.d.ts +37 -0
- package/dist/esm/models/audit-log-details-one-of1.js +14 -0
- package/dist/esm/models/audit-log-details-one-of2.d.ts +30 -0
- package/dist/esm/models/audit-log-details-one-of2.js +14 -0
- package/dist/esm/models/audit-log-details-one-of3.d.ts +30 -0
- package/dist/esm/models/audit-log-details-one-of3.js +14 -0
- package/dist/esm/models/audit-log-details-one-of4.d.ts +30 -0
- package/dist/esm/models/audit-log-details-one-of4.js +14 -0
- package/dist/esm/models/audit-log-details-one-of5.d.ts +30 -0
- package/dist/esm/models/audit-log-details-one-of5.js +14 -0
- package/dist/esm/models/audit-log-details-one-of6.d.ts +38 -0
- package/dist/esm/models/audit-log-details-one-of6.js +14 -0
- package/dist/esm/models/audit-log-details-one-of7.d.ts +32 -0
- package/dist/esm/models/audit-log-details-one-of7.js +14 -0
- package/dist/esm/models/audit-log-details-one-of8.d.ts +44 -0
- package/dist/esm/models/audit-log-details-one-of8.js +14 -0
- package/dist/esm/models/audit-log-details.d.ts +25 -0
- package/dist/esm/models/audit-log-details.js +14 -0
- package/dist/esm/models/audit-log.d.ts +105 -0
- package/dist/esm/models/audit-log.js +49 -0
- package/dist/esm/models/audit-verification-result-broken-link.d.ts +36 -0
- package/dist/esm/models/audit-verification-result-broken-link.js +14 -0
- package/dist/esm/models/audit-verification-result.d.ts +55 -0
- package/dist/esm/models/audit-verification-result.js +18 -0
- package/dist/esm/models/broken-link.d.ts +36 -0
- package/dist/esm/models/broken-link.js +14 -0
- package/dist/esm/models/copy-audit.d.ts +42 -0
- package/dist/esm/models/copy-audit.js +14 -0
- package/dist/esm/models/copy-request.d.ts +36 -0
- package/dist/esm/models/copy-request.js +14 -0
- package/dist/esm/models/copy-response.d.ts +30 -0
- package/dist/esm/models/copy-response.js +14 -0
- package/dist/esm/models/create-blank-document-request.d.ts +43 -0
- package/dist/esm/models/create-blank-document-request.js +19 -0
- package/dist/esm/models/create-folder-audit.d.ts +37 -0
- package/dist/esm/models/create-folder-audit.js +14 -0
- package/dist/esm/models/create-folder-request.d.ts +30 -0
- package/dist/esm/models/create-folder-request.js +14 -0
- package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +36 -0
- package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +14 -0
- package/dist/esm/models/dashboard-statistics-response-storage.d.ts +37 -0
- package/dist/esm/models/dashboard-statistics-response-storage.js +14 -0
- package/dist/esm/models/dashboard-statistics-response.d.ts +44 -0
- package/dist/esm/models/dashboard-statistics-response.js +14 -0
- package/dist/esm/models/delete-audit.d.ts +30 -0
- package/dist/esm/models/delete-audit.js +14 -0
- package/dist/esm/models/delete-metadata-audit.d.ts +30 -0
- package/dist/esm/models/delete-metadata-audit.js +14 -0
- package/dist/esm/models/delete-metadata-request.d.ts +24 -0
- package/dist/esm/models/delete-metadata-request.js +14 -0
- package/dist/esm/models/delete-request.d.ts +24 -0
- package/dist/esm/models/delete-request.js +14 -0
- package/dist/esm/models/document-info.d.ts +61 -0
- package/dist/esm/models/document-info.js +17 -0
- package/dist/esm/models/document-position.d.ts +42 -0
- package/dist/esm/models/document-position.js +14 -0
- package/dist/esm/models/element-info.d.ts +36 -0
- package/dist/esm/models/element-info.js +14 -0
- package/dist/esm/models/file-type-stats.d.ts +36 -0
- package/dist/esm/models/file-type-stats.js +14 -0
- package/dist/esm/models/filter-input.d.ts +30 -0
- package/dist/esm/models/filter-input.js +14 -0
- package/dist/esm/models/folder-element-info.d.ts +41 -0
- package/dist/esm/models/folder-element-info.js +17 -0
- package/dist/esm/models/folder-response.d.ts +36 -0
- package/dist/esm/models/folder-response.js +14 -0
- package/dist/esm/models/index.d.ts +54 -0
- package/dist/esm/models/index.js +54 -0
- package/dist/esm/models/move-audit.d.ts +30 -0
- package/dist/esm/models/move-audit.js +14 -0
- package/dist/esm/models/move-request.d.ts +36 -0
- package/dist/esm/models/move-request.js +14 -0
- package/dist/esm/models/rename-audit.d.ts +30 -0
- package/dist/esm/models/rename-audit.js +14 -0
- package/dist/esm/models/rename-request.d.ts +24 -0
- package/dist/esm/models/rename-request.js +14 -0
- package/dist/esm/models/replace-audit.d.ts +38 -0
- package/dist/esm/models/replace-audit.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +88 -0
- package/dist/esm/models/search-by-audit-log-request.js +49 -0
- package/dist/esm/models/search-by-metadata-request.d.ts +55 -0
- package/dist/esm/models/search-by-metadata-request.js +17 -0
- package/dist/esm/models/search-metadata-request.d.ts +24 -0
- package/dist/esm/models/search-metadata-request.js +14 -0
- package/dist/esm/models/settings.d.ts +48 -0
- package/dist/esm/models/settings.js +14 -0
- package/dist/esm/models/sort-input.d.ts +35 -0
- package/dist/esm/models/sort-input.js +17 -0
- package/dist/esm/models/storage-breakdown.d.ts +37 -0
- package/dist/esm/models/storage-breakdown.js +14 -0
- package/dist/esm/models/suggest.d.ts +36 -0
- package/dist/esm/models/suggest.js +14 -0
- package/dist/esm/models/tus-config-response.d.ts +48 -0
- package/dist/esm/models/tus-config-response.js +14 -0
- package/dist/esm/models/tus-finalize-request.d.ts +44 -0
- package/dist/esm/models/tus-finalize-request.js +14 -0
- package/dist/esm/models/tus-upload-info.d.ts +48 -0
- package/dist/esm/models/tus-upload-info.js +14 -0
- package/dist/esm/models/update-metadata-audit.d.ts +32 -0
- package/dist/esm/models/update-metadata-audit.js +14 -0
- package/dist/esm/models/update-metadata-request.d.ts +26 -0
- package/dist/esm/models/update-metadata-request.js +14 -0
- package/dist/esm/models/upload-audit.d.ts +44 -0
- package/dist/esm/models/upload-audit.js +14 -0
- package/dist/esm/models/upload-response.d.ts +54 -0
- package/dist/esm/models/upload-response.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/ancestor-info.d.ts +36 -0
- package/dist/models/ancestor-info.js +15 -0
- package/dist/models/audit-log-details-one-of.d.ts +42 -0
- package/dist/models/audit-log-details-one-of.js +15 -0
- package/dist/models/audit-log-details-one-of1.d.ts +37 -0
- package/dist/models/audit-log-details-one-of1.js +15 -0
- package/dist/models/audit-log-details-one-of2.d.ts +30 -0
- package/dist/models/audit-log-details-one-of2.js +15 -0
- package/dist/models/audit-log-details-one-of3.d.ts +30 -0
- package/dist/models/audit-log-details-one-of3.js +15 -0
- package/dist/models/audit-log-details-one-of4.d.ts +30 -0
- package/dist/models/audit-log-details-one-of4.js +15 -0
- package/dist/models/audit-log-details-one-of5.d.ts +30 -0
- package/dist/models/audit-log-details-one-of5.js +15 -0
- package/dist/models/audit-log-details-one-of6.d.ts +38 -0
- package/dist/models/audit-log-details-one-of6.js +15 -0
- package/dist/models/audit-log-details-one-of7.d.ts +32 -0
- package/dist/models/audit-log-details-one-of7.js +15 -0
- package/dist/models/audit-log-details-one-of8.d.ts +44 -0
- package/dist/models/audit-log-details-one-of8.js +15 -0
- package/dist/models/audit-log-details.d.ts +25 -0
- package/dist/models/audit-log-details.js +15 -0
- package/dist/models/audit-log.d.ts +105 -0
- package/dist/models/audit-log.js +52 -0
- package/dist/models/audit-verification-result-broken-link.d.ts +36 -0
- package/dist/models/audit-verification-result-broken-link.js +15 -0
- package/dist/models/audit-verification-result.d.ts +55 -0
- package/dist/models/audit-verification-result.js +21 -0
- package/dist/models/broken-link.d.ts +36 -0
- package/dist/models/broken-link.js +15 -0
- package/dist/models/copy-audit.d.ts +42 -0
- package/dist/models/copy-audit.js +15 -0
- package/dist/models/copy-request.d.ts +36 -0
- package/dist/models/copy-request.js +15 -0
- package/dist/models/copy-response.d.ts +30 -0
- package/dist/models/copy-response.js +15 -0
- package/dist/models/create-blank-document-request.d.ts +43 -0
- package/dist/models/create-blank-document-request.js +22 -0
- package/dist/models/create-folder-audit.d.ts +37 -0
- package/dist/models/create-folder-audit.js +15 -0
- package/dist/models/create-folder-request.d.ts +30 -0
- package/dist/models/create-folder-request.js +15 -0
- package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +36 -0
- package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +15 -0
- package/dist/models/dashboard-statistics-response-storage.d.ts +37 -0
- package/dist/models/dashboard-statistics-response-storage.js +15 -0
- package/dist/models/dashboard-statistics-response.d.ts +44 -0
- package/dist/models/dashboard-statistics-response.js +15 -0
- package/dist/models/delete-audit.d.ts +30 -0
- package/dist/models/delete-audit.js +15 -0
- package/dist/models/delete-metadata-audit.d.ts +30 -0
- package/dist/models/delete-metadata-audit.js +15 -0
- package/dist/models/delete-metadata-request.d.ts +24 -0
- package/dist/models/delete-metadata-request.js +15 -0
- package/dist/models/delete-request.d.ts +24 -0
- package/dist/models/delete-request.js +15 -0
- package/dist/models/document-info.d.ts +61 -0
- package/dist/models/document-info.js +20 -0
- package/dist/models/document-position.d.ts +42 -0
- package/dist/models/document-position.js +15 -0
- package/dist/models/element-info.d.ts +36 -0
- package/dist/models/element-info.js +15 -0
- package/dist/models/file-type-stats.d.ts +36 -0
- package/dist/models/file-type-stats.js +15 -0
- package/dist/models/filter-input.d.ts +30 -0
- package/dist/models/filter-input.js +15 -0
- package/dist/models/folder-element-info.d.ts +41 -0
- package/dist/models/folder-element-info.js +20 -0
- package/dist/models/folder-response.d.ts +36 -0
- package/dist/models/folder-response.js +15 -0
- package/dist/models/index.d.ts +54 -0
- package/dist/models/index.js +70 -0
- package/dist/models/move-audit.d.ts +30 -0
- package/dist/models/move-audit.js +15 -0
- package/dist/models/move-request.d.ts +36 -0
- package/dist/models/move-request.js +15 -0
- package/dist/models/rename-audit.d.ts +30 -0
- package/dist/models/rename-audit.js +15 -0
- package/dist/models/rename-request.d.ts +24 -0
- package/dist/models/rename-request.js +15 -0
- package/dist/models/replace-audit.d.ts +38 -0
- package/dist/models/replace-audit.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +88 -0
- package/dist/models/search-by-audit-log-request.js +52 -0
- package/dist/models/search-by-metadata-request.d.ts +55 -0
- package/dist/models/search-by-metadata-request.js +20 -0
- package/dist/models/search-metadata-request.d.ts +24 -0
- package/dist/models/search-metadata-request.js +15 -0
- package/dist/models/settings.d.ts +48 -0
- package/dist/models/settings.js +15 -0
- package/dist/models/sort-input.d.ts +35 -0
- package/dist/models/sort-input.js +20 -0
- package/dist/models/storage-breakdown.d.ts +37 -0
- package/dist/models/storage-breakdown.js +15 -0
- package/dist/models/suggest.d.ts +36 -0
- package/dist/models/suggest.js +15 -0
- package/dist/models/tus-config-response.d.ts +48 -0
- package/dist/models/tus-config-response.js +15 -0
- package/dist/models/tus-finalize-request.d.ts +44 -0
- package/dist/models/tus-finalize-request.js +15 -0
- package/dist/models/tus-upload-info.d.ts +48 -0
- package/dist/models/tus-upload-info.js +15 -0
- package/dist/models/update-metadata-audit.d.ts +32 -0
- package/dist/models/update-metadata-audit.js +15 -0
- package/dist/models/update-metadata-request.d.ts +26 -0
- package/dist/models/update-metadata-request.js +15 -0
- package/dist/models/upload-audit.d.ts +44 -0
- package/dist/models/upload-audit.js +15 -0
- package/dist/models/upload-response.d.ts +54 -0
- package/dist/models/upload-response.js +15 -0
- package/git_push.sh +57 -0
- package/graphql/document-search.graphqls +44 -0
- package/graphql/document.graphqls +114 -0
- package/index.ts +18 -0
- package/models/ancestor-info.ts +42 -0
- package/models/audit-log-details-one-of.ts +48 -0
- package/models/audit-log-details-one-of1.ts +45 -0
- package/models/audit-log-details-one-of2.ts +36 -0
- package/models/audit-log-details-one-of3.ts +36 -0
- package/models/audit-log-details-one-of4.ts +36 -0
- package/models/audit-log-details-one-of5.ts +36 -0
- package/models/audit-log-details-one-of6.ts +42 -0
- package/models/audit-log-details-one-of7.ts +36 -0
- package/models/audit-log-details-one-of8.ts +48 -0
- package/models/audit-log-details.ts +53 -0
- package/models/audit-log.ts +117 -0
- package/models/audit-verification-result-broken-link.ts +42 -0
- package/models/audit-verification-result.ts +66 -0
- package/models/broken-link.ts +42 -0
- package/models/copy-audit.ts +48 -0
- package/models/copy-request.ts +42 -0
- package/models/copy-response.ts +36 -0
- package/models/create-blank-document-request.ts +52 -0
- package/models/create-folder-audit.ts +45 -0
- package/models/create-folder-request.ts +36 -0
- package/models/dashboard-statistics-response-storage-file-type-breakdown-inner.ts +42 -0
- package/models/dashboard-statistics-response-storage.ts +45 -0
- package/models/dashboard-statistics-response.ts +54 -0
- package/models/delete-audit.ts +36 -0
- package/models/delete-metadata-audit.ts +36 -0
- package/models/delete-metadata-request.ts +30 -0
- package/models/delete-request.ts +30 -0
- package/models/document-info.ts +68 -0
- package/models/document-position.ts +48 -0
- package/models/element-info.ts +42 -0
- package/models/file-type-stats.ts +42 -0
- package/models/filter-input.ts +36 -0
- package/models/folder-element-info.ts +50 -0
- package/models/folder-response.ts +42 -0
- package/models/index.ts +54 -0
- package/models/move-audit.ts +36 -0
- package/models/move-request.ts +42 -0
- package/models/rename-audit.ts +36 -0
- package/models/rename-request.ts +30 -0
- package/models/replace-audit.ts +42 -0
- package/models/search-by-audit-log-request.ts +96 -0
- package/models/search-by-metadata-request.ts +62 -0
- package/models/search-metadata-request.ts +30 -0
- package/models/settings.ts +54 -0
- package/models/sort-input.ts +44 -0
- package/models/storage-breakdown.ts +45 -0
- package/models/suggest.ts +42 -0
- package/models/tus-config-response.ts +54 -0
- package/models/tus-finalize-request.ts +48 -0
- package/models/tus-upload-info.ts +54 -0
- package/models/update-metadata-audit.ts +36 -0
- package/models/update-metadata-request.ts +30 -0
- package/models/upload-audit.ts +48 -0
- package/models/upload-response.ts +60 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { CopyRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { CreateFolderRequest } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { DeleteRequest } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { ElementInfo } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { FolderElementInfo } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { FolderResponse } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { MoveRequest } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import type { RenameRequest } from '../models';
|
|
40
|
+
/**
|
|
41
|
+
* FolderControllerApi - axios parameter creator
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export const FolderControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45
|
+
return {
|
|
46
|
+
/**
|
|
47
|
+
* Copies a set of folders (and their contents) into an existing target folder.
|
|
48
|
+
* @summary Copy folders
|
|
49
|
+
* @param {CopyRequest} copyRequest
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
copyFolders: async (copyRequest: CopyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
// verify required parameter 'copyRequest' is not null or undefined
|
|
55
|
+
assertParamExists('copyFolders', 'copyRequest', copyRequest)
|
|
56
|
+
const localVarPath = `/api/v1/folders/copy`;
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
65
|
+
const localVarHeaderParameter = {} as any;
|
|
66
|
+
const localVarQueryParameter = {} as any;
|
|
67
|
+
|
|
68
|
+
// authentication keycloak_auth required
|
|
69
|
+
// http bearer authentication required
|
|
70
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
|
+
|
|
76
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
+
localVarRequestOptions.data = serializeDataIfNeeded(copyRequest, localVarRequestOptions, configuration)
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves the number of elements (files and folders) contained in a given folder - return 0 if empty or not exists(no recursive count, just count the flat list of objects at the root level of a folder)
|
|
88
|
+
* @summary Count files and subfolders contained in a given folder - return 0 if empty or not exists
|
|
89
|
+
* @param {string} [folderId] ID of the folder or to count elements at the root level
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @deprecated
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
countFolderElements: async (folderId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
const localVarPath = `/api/v1/folders/count`;
|
|
96
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
// authentication keycloak_auth required
|
|
108
|
+
// http bearer authentication required
|
|
109
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
110
|
+
|
|
111
|
+
if (folderId !== undefined) {
|
|
112
|
+
localVarQueryParameter['folderId'] = folderId;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
url: toPathString(localVarUrlObj),
|
|
123
|
+
options: localVarRequestOptions,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Creates a new folder, optionally under a parent folder.
|
|
128
|
+
* @summary Create a new folder
|
|
129
|
+
* @param {CreateFolderRequest} createFolderRequest
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
createFolder: async (createFolderRequest: CreateFolderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
134
|
+
// verify required parameter 'createFolderRequest' is not null or undefined
|
|
135
|
+
assertParamExists('createFolder', 'createFolderRequest', createFolderRequest)
|
|
136
|
+
const localVarPath = `/api/v1/folders`;
|
|
137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
139
|
+
let baseOptions;
|
|
140
|
+
if (configuration) {
|
|
141
|
+
baseOptions = configuration.baseOptions;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
145
|
+
const localVarHeaderParameter = {} as any;
|
|
146
|
+
const localVarQueryParameter = {} as any;
|
|
147
|
+
|
|
148
|
+
// authentication keycloak_auth required
|
|
149
|
+
// http bearer authentication required
|
|
150
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
155
|
+
|
|
156
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
158
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
159
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createFolderRequest, localVarRequestOptions, configuration)
|
|
160
|
+
|
|
161
|
+
return {
|
|
162
|
+
url: toPathString(localVarUrlObj),
|
|
163
|
+
options: localVarRequestOptions,
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* Deletes a set of folders and their contents from storage and database.
|
|
168
|
+
* @summary Delete folders
|
|
169
|
+
* @param {DeleteRequest} deleteRequest
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
deleteFolders: async (deleteRequest: DeleteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
174
|
+
// verify required parameter 'deleteRequest' is not null or undefined
|
|
175
|
+
assertParamExists('deleteFolders', 'deleteRequest', deleteRequest)
|
|
176
|
+
const localVarPath = `/api/v1/folders`;
|
|
177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
178
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
179
|
+
let baseOptions;
|
|
180
|
+
if (configuration) {
|
|
181
|
+
baseOptions = configuration.baseOptions;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
185
|
+
const localVarHeaderParameter = {} as any;
|
|
186
|
+
const localVarQueryParameter = {} as any;
|
|
187
|
+
|
|
188
|
+
// authentication keycloak_auth required
|
|
189
|
+
// http bearer authentication required
|
|
190
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
195
|
+
|
|
196
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
197
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
199
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteRequest, localVarRequestOptions, configuration)
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
url: toPathString(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* Retrieves document information of all files and subfolders contained in a given folder (no recursive list, just the flat list of objects at the root level of a folder)
|
|
208
|
+
* @summary List files and subfolders contained in a given folder
|
|
209
|
+
* @param {string} [folderId] if null, empty or not provided, then lists the content of the root folder
|
|
210
|
+
* @param {boolean} [onlyFiles] if true, only files are listed
|
|
211
|
+
* @param {boolean} [onlyFolders] if true, only folders are listed
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
listFolder: async (folderId?: string, onlyFiles?: boolean, onlyFolders?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
216
|
+
const localVarPath = `/api/v1/folders/list`;
|
|
217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
219
|
+
let baseOptions;
|
|
220
|
+
if (configuration) {
|
|
221
|
+
baseOptions = configuration.baseOptions;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
225
|
+
const localVarHeaderParameter = {} as any;
|
|
226
|
+
const localVarQueryParameter = {} as any;
|
|
227
|
+
|
|
228
|
+
// authentication keycloak_auth required
|
|
229
|
+
// http bearer authentication required
|
|
230
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
231
|
+
|
|
232
|
+
if (folderId !== undefined) {
|
|
233
|
+
localVarQueryParameter['folderId'] = folderId;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (onlyFiles !== undefined) {
|
|
237
|
+
localVarQueryParameter['onlyFiles'] = onlyFiles;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (onlyFolders !== undefined) {
|
|
241
|
+
localVarQueryParameter['onlyFolders'] = onlyFolders;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
249
|
+
|
|
250
|
+
return {
|
|
251
|
+
url: toPathString(localVarUrlObj),
|
|
252
|
+
options: localVarRequestOptions,
|
|
253
|
+
};
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* Moves a set of folders (and their contents) into an existing target folder.
|
|
257
|
+
* @summary Move folders
|
|
258
|
+
* @param {MoveRequest} moveRequest
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
moveFolders: async (moveRequest: MoveRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
+
// verify required parameter 'moveRequest' is not null or undefined
|
|
264
|
+
assertParamExists('moveFolders', 'moveRequest', moveRequest)
|
|
265
|
+
const localVarPath = `/api/v1/folders/move`;
|
|
266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
267
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
268
|
+
let baseOptions;
|
|
269
|
+
if (configuration) {
|
|
270
|
+
baseOptions = configuration.baseOptions;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
274
|
+
const localVarHeaderParameter = {} as any;
|
|
275
|
+
const localVarQueryParameter = {} as any;
|
|
276
|
+
|
|
277
|
+
// authentication keycloak_auth required
|
|
278
|
+
// http bearer authentication required
|
|
279
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
284
|
+
|
|
285
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
286
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
288
|
+
localVarRequestOptions.data = serializeDataIfNeeded(moveRequest, localVarRequestOptions, configuration)
|
|
289
|
+
|
|
290
|
+
return {
|
|
291
|
+
url: toPathString(localVarUrlObj),
|
|
292
|
+
options: localVarRequestOptions,
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
* Renames an existing folder.
|
|
297
|
+
* @summary Rename a folder
|
|
298
|
+
* @param {string} folderId
|
|
299
|
+
* @param {RenameRequest} renameRequest
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
renameFolder: async (folderId: string, renameRequest: RenameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
304
|
+
// verify required parameter 'folderId' is not null or undefined
|
|
305
|
+
assertParamExists('renameFolder', 'folderId', folderId)
|
|
306
|
+
// verify required parameter 'renameRequest' is not null or undefined
|
|
307
|
+
assertParamExists('renameFolder', 'renameRequest', renameRequest)
|
|
308
|
+
const localVarPath = `/api/v1/folders/{folderId}/rename`
|
|
309
|
+
.replace(`{${"folderId"}}`, encodeURIComponent(String(folderId)));
|
|
310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
312
|
+
let baseOptions;
|
|
313
|
+
if (configuration) {
|
|
314
|
+
baseOptions = configuration.baseOptions;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
318
|
+
const localVarHeaderParameter = {} as any;
|
|
319
|
+
const localVarQueryParameter = {} as any;
|
|
320
|
+
|
|
321
|
+
// authentication keycloak_auth required
|
|
322
|
+
// http bearer authentication required
|
|
323
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
328
|
+
|
|
329
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
330
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
331
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
332
|
+
localVarRequestOptions.data = serializeDataIfNeeded(renameRequest, localVarRequestOptions, configuration)
|
|
333
|
+
|
|
334
|
+
return {
|
|
335
|
+
url: toPathString(localVarUrlObj),
|
|
336
|
+
options: localVarRequestOptions,
|
|
337
|
+
};
|
|
338
|
+
},
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* FolderControllerApi - functional programming interface
|
|
344
|
+
* @export
|
|
345
|
+
*/
|
|
346
|
+
export const FolderControllerApiFp = function(configuration?: Configuration) {
|
|
347
|
+
const localVarAxiosParamCreator = FolderControllerApiAxiosParamCreator(configuration)
|
|
348
|
+
return {
|
|
349
|
+
/**
|
|
350
|
+
* Copies a set of folders (and their contents) into an existing target folder.
|
|
351
|
+
* @summary Copy folders
|
|
352
|
+
* @param {CopyRequest} copyRequest
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
*/
|
|
356
|
+
async copyFolders(copyRequest: CopyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.copyFolders(copyRequest, options);
|
|
358
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
359
|
+
const localVarOperationServerBasePath = operationServerMap['FolderControllerApi.copyFolders']?.[localVarOperationServerIndex]?.url;
|
|
360
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
361
|
+
},
|
|
362
|
+
/**
|
|
363
|
+
* Retrieves the number of elements (files and folders) contained in a given folder - return 0 if empty or not exists(no recursive count, just count the flat list of objects at the root level of a folder)
|
|
364
|
+
* @summary Count files and subfolders contained in a given folder - return 0 if empty or not exists
|
|
365
|
+
* @param {string} [folderId] ID of the folder or to count elements at the root level
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @deprecated
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
async countFolderElements(folderId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>> {
|
|
371
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.countFolderElements(folderId, options);
|
|
372
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
373
|
+
const localVarOperationServerBasePath = operationServerMap['FolderControllerApi.countFolderElements']?.[localVarOperationServerIndex]?.url;
|
|
374
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
* Creates a new folder, optionally under a parent folder.
|
|
378
|
+
* @summary Create a new folder
|
|
379
|
+
* @param {CreateFolderRequest} createFolderRequest
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
async createFolder(createFolderRequest: CreateFolderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FolderResponse>> {
|
|
384
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createFolder(createFolderRequest, options);
|
|
385
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
386
|
+
const localVarOperationServerBasePath = operationServerMap['FolderControllerApi.createFolder']?.[localVarOperationServerIndex]?.url;
|
|
387
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
* Deletes a set of folders and their contents from storage and database.
|
|
391
|
+
* @summary Delete folders
|
|
392
|
+
* @param {DeleteRequest} deleteRequest
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
async deleteFolders(deleteRequest: DeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFolders(deleteRequest, options);
|
|
398
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
399
|
+
const localVarOperationServerBasePath = operationServerMap['FolderControllerApi.deleteFolders']?.[localVarOperationServerIndex]?.url;
|
|
400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
* Retrieves document information of all files and subfolders contained in a given folder (no recursive list, just the flat list of objects at the root level of a folder)
|
|
404
|
+
* @summary List files and subfolders contained in a given folder
|
|
405
|
+
* @param {string} [folderId] if null, empty or not provided, then lists the content of the root folder
|
|
406
|
+
* @param {boolean} [onlyFiles] if true, only files are listed
|
|
407
|
+
* @param {boolean} [onlyFolders] if true, only folders are listed
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
async listFolder(folderId?: string, onlyFiles?: boolean, onlyFolders?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FolderElementInfo>>> {
|
|
412
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFolder(folderId, onlyFiles, onlyFolders, options);
|
|
413
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
414
|
+
const localVarOperationServerBasePath = operationServerMap['FolderControllerApi.listFolder']?.[localVarOperationServerIndex]?.url;
|
|
415
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
* Moves a set of folders (and their contents) into an existing target folder.
|
|
419
|
+
* @summary Move folders
|
|
420
|
+
* @param {MoveRequest} moveRequest
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
*/
|
|
424
|
+
async moveFolders(moveRequest: MoveRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.moveFolders(moveRequest, options);
|
|
426
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
427
|
+
const localVarOperationServerBasePath = operationServerMap['FolderControllerApi.moveFolders']?.[localVarOperationServerIndex]?.url;
|
|
428
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
* Renames an existing folder.
|
|
432
|
+
* @summary Rename a folder
|
|
433
|
+
* @param {string} folderId
|
|
434
|
+
* @param {RenameRequest} renameRequest
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
async renameFolder(folderId: string, renameRequest: RenameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ElementInfo>> {
|
|
439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.renameFolder(folderId, renameRequest, options);
|
|
440
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
441
|
+
const localVarOperationServerBasePath = operationServerMap['FolderControllerApi.renameFolder']?.[localVarOperationServerIndex]?.url;
|
|
442
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
443
|
+
},
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* FolderControllerApi - factory interface
|
|
449
|
+
* @export
|
|
450
|
+
*/
|
|
451
|
+
export const FolderControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
452
|
+
const localVarFp = FolderControllerApiFp(configuration)
|
|
453
|
+
return {
|
|
454
|
+
/**
|
|
455
|
+
* Copies a set of folders (and their contents) into an existing target folder.
|
|
456
|
+
* @summary Copy folders
|
|
457
|
+
* @param {CopyRequest} copyRequest
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
copyFolders(copyRequest: CopyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
462
|
+
return localVarFp.copyFolders(copyRequest, options).then((request) => request(axios, basePath));
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
* Retrieves the number of elements (files and folders) contained in a given folder - return 0 if empty or not exists(no recursive count, just count the flat list of objects at the root level of a folder)
|
|
466
|
+
* @summary Count files and subfolders contained in a given folder - return 0 if empty or not exists
|
|
467
|
+
* @param {string} [folderId] ID of the folder or to count elements at the root level
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @deprecated
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
countFolderElements(folderId?: string, options?: RawAxiosRequestConfig): AxiosPromise<number> {
|
|
473
|
+
return localVarFp.countFolderElements(folderId, options).then((request) => request(axios, basePath));
|
|
474
|
+
},
|
|
475
|
+
/**
|
|
476
|
+
* Creates a new folder, optionally under a parent folder.
|
|
477
|
+
* @summary Create a new folder
|
|
478
|
+
* @param {CreateFolderRequest} createFolderRequest
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
createFolder(createFolderRequest: CreateFolderRequest, options?: RawAxiosRequestConfig): AxiosPromise<FolderResponse> {
|
|
483
|
+
return localVarFp.createFolder(createFolderRequest, options).then((request) => request(axios, basePath));
|
|
484
|
+
},
|
|
485
|
+
/**
|
|
486
|
+
* Deletes a set of folders and their contents from storage and database.
|
|
487
|
+
* @summary Delete folders
|
|
488
|
+
* @param {DeleteRequest} deleteRequest
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
*/
|
|
492
|
+
deleteFolders(deleteRequest: DeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
493
|
+
return localVarFp.deleteFolders(deleteRequest, options).then((request) => request(axios, basePath));
|
|
494
|
+
},
|
|
495
|
+
/**
|
|
496
|
+
* Retrieves document information of all files and subfolders contained in a given folder (no recursive list, just the flat list of objects at the root level of a folder)
|
|
497
|
+
* @summary List files and subfolders contained in a given folder
|
|
498
|
+
* @param {string} [folderId] if null, empty or not provided, then lists the content of the root folder
|
|
499
|
+
* @param {boolean} [onlyFiles] if true, only files are listed
|
|
500
|
+
* @param {boolean} [onlyFolders] if true, only folders are listed
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
listFolder(folderId?: string, onlyFiles?: boolean, onlyFolders?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<FolderElementInfo>> {
|
|
505
|
+
return localVarFp.listFolder(folderId, onlyFiles, onlyFolders, options).then((request) => request(axios, basePath));
|
|
506
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
* Moves a set of folders (and their contents) into an existing target folder.
|
|
509
|
+
* @summary Move folders
|
|
510
|
+
* @param {MoveRequest} moveRequest
|
|
511
|
+
* @param {*} [options] Override http request option.
|
|
512
|
+
* @throws {RequiredError}
|
|
513
|
+
*/
|
|
514
|
+
moveFolders(moveRequest: MoveRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
515
|
+
return localVarFp.moveFolders(moveRequest, options).then((request) => request(axios, basePath));
|
|
516
|
+
},
|
|
517
|
+
/**
|
|
518
|
+
* Renames an existing folder.
|
|
519
|
+
* @summary Rename a folder
|
|
520
|
+
* @param {string} folderId
|
|
521
|
+
* @param {RenameRequest} renameRequest
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
renameFolder(folderId: string, renameRequest: RenameRequest, options?: RawAxiosRequestConfig): AxiosPromise<ElementInfo> {
|
|
526
|
+
return localVarFp.renameFolder(folderId, renameRequest, options).then((request) => request(axios, basePath));
|
|
527
|
+
},
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* FolderControllerApi - object-oriented interface
|
|
533
|
+
* @export
|
|
534
|
+
* @class FolderControllerApi
|
|
535
|
+
* @extends {BaseAPI}
|
|
536
|
+
*/
|
|
537
|
+
export class FolderControllerApi extends BaseAPI {
|
|
538
|
+
/**
|
|
539
|
+
* Copies a set of folders (and their contents) into an existing target folder.
|
|
540
|
+
* @summary Copy folders
|
|
541
|
+
* @param {CopyRequest} copyRequest
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
* @memberof FolderControllerApi
|
|
545
|
+
*/
|
|
546
|
+
public copyFolders(copyRequest: CopyRequest, options?: RawAxiosRequestConfig) {
|
|
547
|
+
return FolderControllerApiFp(this.configuration).copyFolders(copyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Retrieves the number of elements (files and folders) contained in a given folder - return 0 if empty or not exists(no recursive count, just count the flat list of objects at the root level of a folder)
|
|
552
|
+
* @summary Count files and subfolders contained in a given folder - return 0 if empty or not exists
|
|
553
|
+
* @param {string} [folderId] ID of the folder or to count elements at the root level
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @deprecated
|
|
556
|
+
* @throws {RequiredError}
|
|
557
|
+
* @memberof FolderControllerApi
|
|
558
|
+
*/
|
|
559
|
+
public countFolderElements(folderId?: string, options?: RawAxiosRequestConfig) {
|
|
560
|
+
return FolderControllerApiFp(this.configuration).countFolderElements(folderId, options).then((request) => request(this.axios, this.basePath));
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Creates a new folder, optionally under a parent folder.
|
|
565
|
+
* @summary Create a new folder
|
|
566
|
+
* @param {CreateFolderRequest} createFolderRequest
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
* @memberof FolderControllerApi
|
|
570
|
+
*/
|
|
571
|
+
public createFolder(createFolderRequest: CreateFolderRequest, options?: RawAxiosRequestConfig) {
|
|
572
|
+
return FolderControllerApiFp(this.configuration).createFolder(createFolderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Deletes a set of folders and their contents from storage and database.
|
|
577
|
+
* @summary Delete folders
|
|
578
|
+
* @param {DeleteRequest} deleteRequest
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
* @memberof FolderControllerApi
|
|
582
|
+
*/
|
|
583
|
+
public deleteFolders(deleteRequest: DeleteRequest, options?: RawAxiosRequestConfig) {
|
|
584
|
+
return FolderControllerApiFp(this.configuration).deleteFolders(deleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Retrieves document information of all files and subfolders contained in a given folder (no recursive list, just the flat list of objects at the root level of a folder)
|
|
589
|
+
* @summary List files and subfolders contained in a given folder
|
|
590
|
+
* @param {string} [folderId] if null, empty or not provided, then lists the content of the root folder
|
|
591
|
+
* @param {boolean} [onlyFiles] if true, only files are listed
|
|
592
|
+
* @param {boolean} [onlyFolders] if true, only folders are listed
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
* @memberof FolderControllerApi
|
|
596
|
+
*/
|
|
597
|
+
public listFolder(folderId?: string, onlyFiles?: boolean, onlyFolders?: boolean, options?: RawAxiosRequestConfig) {
|
|
598
|
+
return FolderControllerApiFp(this.configuration).listFolder(folderId, onlyFiles, onlyFolders, options).then((request) => request(this.axios, this.basePath));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Moves a set of folders (and their contents) into an existing target folder.
|
|
603
|
+
* @summary Move folders
|
|
604
|
+
* @param {MoveRequest} moveRequest
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
* @memberof FolderControllerApi
|
|
608
|
+
*/
|
|
609
|
+
public moveFolders(moveRequest: MoveRequest, options?: RawAxiosRequestConfig) {
|
|
610
|
+
return FolderControllerApiFp(this.configuration).moveFolders(moveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Renames an existing folder.
|
|
615
|
+
* @summary Rename a folder
|
|
616
|
+
* @param {string} folderId
|
|
617
|
+
* @param {RenameRequest} renameRequest
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
* @memberof FolderControllerApi
|
|
621
|
+
*/
|
|
622
|
+
public renameFolder(folderId: string, renameRequest: RenameRequest, options?: RawAxiosRequestConfig) {
|
|
623
|
+
return FolderControllerApiFp(this.configuration).renameFolder(folderId, renameRequest, options).then((request) => request(this.axios, this.basePath));
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|