@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,615 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { AncestorInfo } from '../models';
|
|
16
|
+
import type { CreateBlankDocumentRequest } from '../models';
|
|
17
|
+
import type { DeleteMetadataRequest } from '../models';
|
|
18
|
+
import type { DocumentInfo } from '../models';
|
|
19
|
+
import type { DocumentPosition } from '../models';
|
|
20
|
+
import type { ElementInfo } from '../models';
|
|
21
|
+
import type { SearchByMetadataRequest } from '../models';
|
|
22
|
+
import type { SearchMetadataRequest } from '../models';
|
|
23
|
+
import type { UpdateMetadataRequest } from '../models';
|
|
24
|
+
import type { UploadResponse } from '../models';
|
|
25
|
+
/**
|
|
26
|
+
* DocumentControllerApi - axios parameter creator
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const DocumentControllerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
|
|
32
|
+
* @summary Create a blank document from template
|
|
33
|
+
* @param {CreateBlankDocumentRequest} createBlankDocumentRequest
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
createBlankDocument: (createBlankDocumentRequest: CreateBlankDocumentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
+
/**
|
|
39
|
+
* Deletes specified metadata keys from a document.
|
|
40
|
+
* @summary Delete specific metadata keys
|
|
41
|
+
* @param {string} documentId
|
|
42
|
+
* @param {DeleteMetadataRequest} deleteMetadataRequest
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
deleteDocumentMetadata: (documentId: string, deleteMetadataRequest: DeleteMetadataRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
/**
|
|
48
|
+
* Downloads a single file document.
|
|
49
|
+
* @summary Download a document
|
|
50
|
+
* @param {string} documentId
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
downloadDocument: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
|
+
/**
|
|
56
|
+
* Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
|
|
57
|
+
* @summary Download document for OnlyOffice
|
|
58
|
+
* @param {string} documentId
|
|
59
|
+
* @param {string} token
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
downloadForOnlyOffice: (documentId: string, token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
|
+
/**
|
|
65
|
+
* Downloads multiple documents as a single ZIP file.
|
|
66
|
+
* @summary Download multiple documents as ZIP
|
|
67
|
+
* @param {Array<string>} requestBody
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
downloadMultipleDocumentsAsZip: (requestBody: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
|
|
74
|
+
* @summary Get document ancestors
|
|
75
|
+
* @param {string} documentId
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
getDocumentAncestors: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieves information for a document.
|
|
82
|
+
* @summary Get information of a document
|
|
83
|
+
* @param {string} documentId
|
|
84
|
+
* @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
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
getDocumentInfo: (documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves metadata for a document. Can filter by keys.
|
|
91
|
+
* @summary Search metadata of a document
|
|
92
|
+
* @param {string} documentId
|
|
93
|
+
* @param {SearchMetadataRequest} [searchMetadataRequest]
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
getDocumentMetadata: (documentId: string, searchMetadataRequest?: SearchMetadataRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
98
|
+
/**
|
|
99
|
+
* Retrieves the position of a document within its parent folder, useful for pagination.
|
|
100
|
+
* @summary Get document position in folder
|
|
101
|
+
* @param {string} documentId
|
|
102
|
+
* @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \'name\'.
|
|
103
|
+
* @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \'ASC\'.
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
getDocumentPosition: (documentId: string, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
108
|
+
/**
|
|
109
|
+
* Replaces the content of an existing file document.
|
|
110
|
+
* @summary Replace document content
|
|
111
|
+
* @param {string} documentId
|
|
112
|
+
* @param {File} file
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
replaceDocumentContent: (documentId: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
117
|
+
/**
|
|
118
|
+
* Replaces all metadata of a document (file or folder).
|
|
119
|
+
* @summary Replace document metadata
|
|
120
|
+
* @param {string} documentId
|
|
121
|
+
* @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
replaceDocumentMetadata: (documentId: string, requestBody: {
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
}, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
128
|
+
/**
|
|
129
|
+
* Finds document IDs matching all provided metadata criteria.
|
|
130
|
+
* @summary Search document IDs by metadata
|
|
131
|
+
* @param {SearchByMetadataRequest} searchByMetadataRequest
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
searchDocumentIdsByMetadata: (searchByMetadataRequest: SearchByMetadataRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
136
|
+
/**
|
|
137
|
+
* Updates or adds specific metadata fields for a document.
|
|
138
|
+
* @summary Update document metadata
|
|
139
|
+
* @param {string} documentId
|
|
140
|
+
* @param {UpdateMetadataRequest} updateMetadataRequest
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
updateDocumentMetadata: (documentId: string, updateMetadataRequest: UpdateMetadataRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
145
|
+
/**
|
|
146
|
+
* 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.
|
|
147
|
+
* @summary Upload multiple documents
|
|
148
|
+
* @param {Array<File>} file
|
|
149
|
+
* @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)
|
|
150
|
+
* @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>
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
uploadDocument: (file: Array<File>, allowDuplicateFileNames?: boolean, parametersByFilename?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
155
|
+
/**
|
|
156
|
+
* Uploads a single file, optionally with metadata and a parent folder ID.
|
|
157
|
+
* @summary Upload a single document
|
|
158
|
+
* @param {File} file
|
|
159
|
+
* @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)
|
|
160
|
+
* @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
|
|
161
|
+
* @param {string} [metadata]
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
uploadDocument1: (file: File, allowDuplicateFileNames?: boolean, parentFolderId?: string, metadata?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* DocumentControllerApi - functional programming interface
|
|
169
|
+
* @export
|
|
170
|
+
*/
|
|
171
|
+
export declare const DocumentControllerApiFp: (configuration?: Configuration) => {
|
|
172
|
+
/**
|
|
173
|
+
* Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
|
|
174
|
+
* @summary Create a blank document from template
|
|
175
|
+
* @param {CreateBlankDocumentRequest} createBlankDocumentRequest
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
createBlankDocument(createBlankDocumentRequest: CreateBlankDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadResponse>>;
|
|
180
|
+
/**
|
|
181
|
+
* Deletes specified metadata keys from a document.
|
|
182
|
+
* @summary Delete specific metadata keys
|
|
183
|
+
* @param {string} documentId
|
|
184
|
+
* @param {DeleteMetadataRequest} deleteMetadataRequest
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
deleteDocumentMetadata(documentId: string, deleteMetadataRequest: DeleteMetadataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
189
|
+
/**
|
|
190
|
+
* Downloads a single file document.
|
|
191
|
+
* @summary Download a document
|
|
192
|
+
* @param {string} documentId
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
downloadDocument(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
197
|
+
/**
|
|
198
|
+
* Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
|
|
199
|
+
* @summary Download document for OnlyOffice
|
|
200
|
+
* @param {string} documentId
|
|
201
|
+
* @param {string} token
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
206
|
+
/**
|
|
207
|
+
* Downloads multiple documents as a single ZIP file.
|
|
208
|
+
* @summary Download multiple documents as ZIP
|
|
209
|
+
* @param {Array<string>} requestBody
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
downloadMultipleDocumentsAsZip(requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
214
|
+
/**
|
|
215
|
+
* Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
|
|
216
|
+
* @summary Get document ancestors
|
|
217
|
+
* @param {string} documentId
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
getDocumentAncestors(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AncestorInfo>>>;
|
|
222
|
+
/**
|
|
223
|
+
* Retrieves information for a document.
|
|
224
|
+
* @summary Get information of a document
|
|
225
|
+
* @param {string} documentId
|
|
226
|
+
* @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
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
getDocumentInfo(documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentInfo>>;
|
|
231
|
+
/**
|
|
232
|
+
* Retrieves metadata for a document. Can filter by keys.
|
|
233
|
+
* @summary Search metadata of a document
|
|
234
|
+
* @param {string} documentId
|
|
235
|
+
* @param {SearchMetadataRequest} [searchMetadataRequest]
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
getDocumentMetadata(documentId: string, searchMetadataRequest?: SearchMetadataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
240
|
+
[key: string]: any;
|
|
241
|
+
}>>;
|
|
242
|
+
/**
|
|
243
|
+
* Retrieves the position of a document within its parent folder, useful for pagination.
|
|
244
|
+
* @summary Get document position in folder
|
|
245
|
+
* @param {string} documentId
|
|
246
|
+
* @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \'name\'.
|
|
247
|
+
* @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \'ASC\'.
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
getDocumentPosition(documentId: string, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPosition>>;
|
|
252
|
+
/**
|
|
253
|
+
* Replaces the content of an existing file document.
|
|
254
|
+
* @summary Replace document content
|
|
255
|
+
* @param {string} documentId
|
|
256
|
+
* @param {File} file
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
replaceDocumentContent(documentId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ElementInfo>>;
|
|
261
|
+
/**
|
|
262
|
+
* Replaces all metadata of a document (file or folder).
|
|
263
|
+
* @summary Replace document metadata
|
|
264
|
+
* @param {string} documentId
|
|
265
|
+
* @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
replaceDocumentMetadata(documentId: string, requestBody: {
|
|
270
|
+
[key: string]: any;
|
|
271
|
+
}, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ElementInfo>>;
|
|
272
|
+
/**
|
|
273
|
+
* Finds document IDs matching all provided metadata criteria.
|
|
274
|
+
* @summary Search document IDs by metadata
|
|
275
|
+
* @param {SearchByMetadataRequest} searchByMetadataRequest
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
searchDocumentIdsByMetadata(searchByMetadataRequest: SearchByMetadataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
280
|
+
/**
|
|
281
|
+
* Updates or adds specific metadata fields for a document.
|
|
282
|
+
* @summary Update document metadata
|
|
283
|
+
* @param {string} documentId
|
|
284
|
+
* @param {UpdateMetadataRequest} updateMetadataRequest
|
|
285
|
+
* @param {*} [options] Override http request option.
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
*/
|
|
288
|
+
updateDocumentMetadata(documentId: string, updateMetadataRequest: UpdateMetadataRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ElementInfo>>;
|
|
289
|
+
/**
|
|
290
|
+
* 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.
|
|
291
|
+
* @summary Upload multiple documents
|
|
292
|
+
* @param {Array<File>} file
|
|
293
|
+
* @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)
|
|
294
|
+
* @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>
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
*/
|
|
298
|
+
uploadDocument(file: Array<File>, allowDuplicateFileNames?: boolean, parametersByFilename?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UploadResponse>>>;
|
|
299
|
+
/**
|
|
300
|
+
* Uploads a single file, optionally with metadata and a parent folder ID.
|
|
301
|
+
* @summary Upload a single document
|
|
302
|
+
* @param {File} file
|
|
303
|
+
* @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)
|
|
304
|
+
* @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
|
|
305
|
+
* @param {string} [metadata]
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
uploadDocument1(file: File, allowDuplicateFileNames?: boolean, parentFolderId?: string, metadata?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadResponse>>;
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* DocumentControllerApi - factory interface
|
|
313
|
+
* @export
|
|
314
|
+
*/
|
|
315
|
+
export declare const DocumentControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
316
|
+
/**
|
|
317
|
+
* Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
|
|
318
|
+
* @summary Create a blank document from template
|
|
319
|
+
* @param {CreateBlankDocumentRequest} createBlankDocumentRequest
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
createBlankDocument(createBlankDocumentRequest: CreateBlankDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<UploadResponse>;
|
|
324
|
+
/**
|
|
325
|
+
* Deletes specified metadata keys from a document.
|
|
326
|
+
* @summary Delete specific metadata keys
|
|
327
|
+
* @param {string} documentId
|
|
328
|
+
* @param {DeleteMetadataRequest} deleteMetadataRequest
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
deleteDocumentMetadata(documentId: string, deleteMetadataRequest: DeleteMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
333
|
+
/**
|
|
334
|
+
* Downloads a single file document.
|
|
335
|
+
* @summary Download a document
|
|
336
|
+
* @param {string} documentId
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
downloadDocument(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
341
|
+
/**
|
|
342
|
+
* Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
|
|
343
|
+
* @summary Download document for OnlyOffice
|
|
344
|
+
* @param {string} documentId
|
|
345
|
+
* @param {string} token
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
350
|
+
/**
|
|
351
|
+
* Downloads multiple documents as a single ZIP file.
|
|
352
|
+
* @summary Download multiple documents as ZIP
|
|
353
|
+
* @param {Array<string>} requestBody
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
downloadMultipleDocumentsAsZip(requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
358
|
+
/**
|
|
359
|
+
* Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
|
|
360
|
+
* @summary Get document ancestors
|
|
361
|
+
* @param {string} documentId
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
getDocumentAncestors(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AncestorInfo>>;
|
|
366
|
+
/**
|
|
367
|
+
* Retrieves information for a document.
|
|
368
|
+
* @summary Get information of a document
|
|
369
|
+
* @param {string} documentId
|
|
370
|
+
* @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
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
getDocumentInfo(documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DocumentInfo>;
|
|
375
|
+
/**
|
|
376
|
+
* Retrieves metadata for a document. Can filter by keys.
|
|
377
|
+
* @summary Search metadata of a document
|
|
378
|
+
* @param {string} documentId
|
|
379
|
+
* @param {SearchMetadataRequest} [searchMetadataRequest]
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
getDocumentMetadata(documentId: string, searchMetadataRequest?: SearchMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
384
|
+
[key: string]: any;
|
|
385
|
+
}>;
|
|
386
|
+
/**
|
|
387
|
+
* Retrieves the position of a document within its parent folder, useful for pagination.
|
|
388
|
+
* @summary Get document position in folder
|
|
389
|
+
* @param {string} documentId
|
|
390
|
+
* @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \'name\'.
|
|
391
|
+
* @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \'ASC\'.
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
getDocumentPosition(documentId: string, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): AxiosPromise<DocumentPosition>;
|
|
396
|
+
/**
|
|
397
|
+
* Replaces the content of an existing file document.
|
|
398
|
+
* @summary Replace document content
|
|
399
|
+
* @param {string} documentId
|
|
400
|
+
* @param {File} file
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
replaceDocumentContent(documentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<ElementInfo>;
|
|
405
|
+
/**
|
|
406
|
+
* Replaces all metadata of a document (file or folder).
|
|
407
|
+
* @summary Replace document metadata
|
|
408
|
+
* @param {string} documentId
|
|
409
|
+
* @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
replaceDocumentMetadata(documentId: string, requestBody: {
|
|
414
|
+
[key: string]: any;
|
|
415
|
+
}, options?: RawAxiosRequestConfig): AxiosPromise<ElementInfo>;
|
|
416
|
+
/**
|
|
417
|
+
* Finds document IDs matching all provided metadata criteria.
|
|
418
|
+
* @summary Search document IDs by metadata
|
|
419
|
+
* @param {SearchByMetadataRequest} searchByMetadataRequest
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
searchDocumentIdsByMetadata(searchByMetadataRequest: SearchByMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
424
|
+
/**
|
|
425
|
+
* Updates or adds specific metadata fields for a document.
|
|
426
|
+
* @summary Update document metadata
|
|
427
|
+
* @param {string} documentId
|
|
428
|
+
* @param {UpdateMetadataRequest} updateMetadataRequest
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
updateDocumentMetadata(documentId: string, updateMetadataRequest: UpdateMetadataRequest, options?: RawAxiosRequestConfig): AxiosPromise<ElementInfo>;
|
|
433
|
+
/**
|
|
434
|
+
* 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.
|
|
435
|
+
* @summary Upload multiple documents
|
|
436
|
+
* @param {Array<File>} file
|
|
437
|
+
* @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)
|
|
438
|
+
* @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>
|
|
439
|
+
* @param {*} [options] Override http request option.
|
|
440
|
+
* @throws {RequiredError}
|
|
441
|
+
*/
|
|
442
|
+
uploadDocument(file: Array<File>, allowDuplicateFileNames?: boolean, parametersByFilename?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UploadResponse>>;
|
|
443
|
+
/**
|
|
444
|
+
* Uploads a single file, optionally with metadata and a parent folder ID.
|
|
445
|
+
* @summary Upload a single document
|
|
446
|
+
* @param {File} file
|
|
447
|
+
* @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)
|
|
448
|
+
* @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
|
|
449
|
+
* @param {string} [metadata]
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
*/
|
|
453
|
+
uploadDocument1(file: File, allowDuplicateFileNames?: boolean, parentFolderId?: string, metadata?: string, options?: RawAxiosRequestConfig): AxiosPromise<UploadResponse>;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* DocumentControllerApi - object-oriented interface
|
|
457
|
+
* @export
|
|
458
|
+
* @class DocumentControllerApi
|
|
459
|
+
* @extends {BaseAPI}
|
|
460
|
+
*/
|
|
461
|
+
export declare class DocumentControllerApi extends BaseAPI {
|
|
462
|
+
/**
|
|
463
|
+
* Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
|
|
464
|
+
* @summary Create a blank document from template
|
|
465
|
+
* @param {CreateBlankDocumentRequest} createBlankDocumentRequest
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
* @memberof DocumentControllerApi
|
|
469
|
+
*/
|
|
470
|
+
createBlankDocument(createBlankDocumentRequest: CreateBlankDocumentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadResponse, any, {}>>;
|
|
471
|
+
/**
|
|
472
|
+
* Deletes specified metadata keys from a document.
|
|
473
|
+
* @summary Delete specific metadata keys
|
|
474
|
+
* @param {string} documentId
|
|
475
|
+
* @param {DeleteMetadataRequest} deleteMetadataRequest
|
|
476
|
+
* @param {*} [options] Override http request option.
|
|
477
|
+
* @throws {RequiredError}
|
|
478
|
+
* @memberof DocumentControllerApi
|
|
479
|
+
*/
|
|
480
|
+
deleteDocumentMetadata(documentId: string, deleteMetadataRequest: DeleteMetadataRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
481
|
+
/**
|
|
482
|
+
* Downloads a single file document.
|
|
483
|
+
* @summary Download a document
|
|
484
|
+
* @param {string} documentId
|
|
485
|
+
* @param {*} [options] Override http request option.
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
* @memberof DocumentControllerApi
|
|
488
|
+
*/
|
|
489
|
+
downloadDocument(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
490
|
+
/**
|
|
491
|
+
* Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
|
|
492
|
+
* @summary Download document for OnlyOffice
|
|
493
|
+
* @param {string} documentId
|
|
494
|
+
* @param {string} token
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
* @memberof DocumentControllerApi
|
|
498
|
+
*/
|
|
499
|
+
downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
500
|
+
/**
|
|
501
|
+
* Downloads multiple documents as a single ZIP file.
|
|
502
|
+
* @summary Download multiple documents as ZIP
|
|
503
|
+
* @param {Array<string>} requestBody
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
* @memberof DocumentControllerApi
|
|
507
|
+
*/
|
|
508
|
+
downloadMultipleDocumentsAsZip(requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
509
|
+
/**
|
|
510
|
+
* Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
|
|
511
|
+
* @summary Get document ancestors
|
|
512
|
+
* @param {string} documentId
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
* @memberof DocumentControllerApi
|
|
516
|
+
*/
|
|
517
|
+
getDocumentAncestors(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AncestorInfo[], any, {}>>;
|
|
518
|
+
/**
|
|
519
|
+
* Retrieves information for a document.
|
|
520
|
+
* @summary Get information of a document
|
|
521
|
+
* @param {string} documentId
|
|
522
|
+
* @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
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
* @memberof DocumentControllerApi
|
|
526
|
+
*/
|
|
527
|
+
getDocumentInfo(documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentInfo, any, {}>>;
|
|
528
|
+
/**
|
|
529
|
+
* Retrieves metadata for a document. Can filter by keys.
|
|
530
|
+
* @summary Search metadata of a document
|
|
531
|
+
* @param {string} documentId
|
|
532
|
+
* @param {SearchMetadataRequest} [searchMetadataRequest]
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
* @memberof DocumentControllerApi
|
|
536
|
+
*/
|
|
537
|
+
getDocumentMetadata(documentId: string, searchMetadataRequest?: SearchMetadataRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
538
|
+
[key: string]: any;
|
|
539
|
+
}, any, {}>>;
|
|
540
|
+
/**
|
|
541
|
+
* Retrieves the position of a document within its parent folder, useful for pagination.
|
|
542
|
+
* @summary Get document position in folder
|
|
543
|
+
* @param {string} documentId
|
|
544
|
+
* @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \'name\'.
|
|
545
|
+
* @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \'ASC\'.
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
* @memberof DocumentControllerApi
|
|
549
|
+
*/
|
|
550
|
+
getDocumentPosition(documentId: string, sortBy?: string, sortOrder?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentPosition, any, {}>>;
|
|
551
|
+
/**
|
|
552
|
+
* Replaces the content of an existing file document.
|
|
553
|
+
* @summary Replace document content
|
|
554
|
+
* @param {string} documentId
|
|
555
|
+
* @param {File} file
|
|
556
|
+
* @param {*} [options] Override http request option.
|
|
557
|
+
* @throws {RequiredError}
|
|
558
|
+
* @memberof DocumentControllerApi
|
|
559
|
+
*/
|
|
560
|
+
replaceDocumentContent(documentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ElementInfo, any, {}>>;
|
|
561
|
+
/**
|
|
562
|
+
* Replaces all metadata of a document (file or folder).
|
|
563
|
+
* @summary Replace document metadata
|
|
564
|
+
* @param {string} documentId
|
|
565
|
+
* @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
* @memberof DocumentControllerApi
|
|
569
|
+
*/
|
|
570
|
+
replaceDocumentMetadata(documentId: string, requestBody: {
|
|
571
|
+
[key: string]: any;
|
|
572
|
+
}, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ElementInfo, any, {}>>;
|
|
573
|
+
/**
|
|
574
|
+
* Finds document IDs matching all provided metadata criteria.
|
|
575
|
+
* @summary Search document IDs by metadata
|
|
576
|
+
* @param {SearchByMetadataRequest} searchByMetadataRequest
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
* @memberof DocumentControllerApi
|
|
580
|
+
*/
|
|
581
|
+
searchDocumentIdsByMetadata(searchByMetadataRequest: SearchByMetadataRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any, {}>>;
|
|
582
|
+
/**
|
|
583
|
+
* Updates or adds specific metadata fields for a document.
|
|
584
|
+
* @summary Update document metadata
|
|
585
|
+
* @param {string} documentId
|
|
586
|
+
* @param {UpdateMetadataRequest} updateMetadataRequest
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
* @memberof DocumentControllerApi
|
|
590
|
+
*/
|
|
591
|
+
updateDocumentMetadata(documentId: string, updateMetadataRequest: UpdateMetadataRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ElementInfo, any, {}>>;
|
|
592
|
+
/**
|
|
593
|
+
* 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.
|
|
594
|
+
* @summary Upload multiple documents
|
|
595
|
+
* @param {Array<File>} file
|
|
596
|
+
* @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)
|
|
597
|
+
* @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>
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
* @memberof DocumentControllerApi
|
|
601
|
+
*/
|
|
602
|
+
uploadDocument(file: Array<File>, allowDuplicateFileNames?: boolean, parametersByFilename?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadResponse[], any, {}>>;
|
|
603
|
+
/**
|
|
604
|
+
* Uploads a single file, optionally with metadata and a parent folder ID.
|
|
605
|
+
* @summary Upload a single document
|
|
606
|
+
* @param {File} file
|
|
607
|
+
* @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)
|
|
608
|
+
* @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
|
|
609
|
+
* @param {string} [metadata]
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
* @memberof DocumentControllerApi
|
|
613
|
+
*/
|
|
614
|
+
uploadDocument1(file: File, allowDuplicateFileNames?: boolean, parentFolderId?: string, metadata?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadResponse, any, {}>>;
|
|
615
|
+
}
|