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