@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,284 @@
|
|
|
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.GetAuditTrailSortEnum = exports.AuditControllerApi = exports.AuditControllerApiFactory = exports.AuditControllerApiFp = exports.AuditControllerApiAxiosParamCreator = 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
|
+
* AuditControllerApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const AuditControllerApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves the audit trail for a given resource.
|
|
40
|
+
* @summary Get audit trail for a resource
|
|
41
|
+
* @param {string} id ID of the resource to get the audit trail for
|
|
42
|
+
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getAuditTrail: (id_1, sort_1, ...args_1) => __awaiter(this, [id_1, sort_1, ...args_1], void 0, function* (id, sort, options = {}) {
|
|
47
|
+
// verify required parameter 'id' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('getAuditTrail', 'id', id);
|
|
49
|
+
const localVarPath = `/api/v1/audit/{id}`
|
|
50
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
if (configuration) {
|
|
55
|
+
baseOptions = configuration.baseOptions;
|
|
56
|
+
}
|
|
57
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
58
|
+
const localVarHeaderParameter = {};
|
|
59
|
+
const localVarQueryParameter = {};
|
|
60
|
+
// authentication keycloak_auth required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
63
|
+
if (sort !== undefined) {
|
|
64
|
+
localVarQueryParameter['sort'] = sort;
|
|
65
|
+
}
|
|
66
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
69
|
+
return {
|
|
70
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
}),
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves the audit trail according to the search parameters
|
|
76
|
+
* @summary Search for audit trails
|
|
77
|
+
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
searchAuditTrail: (searchByAuditLogRequest_1, ...args_1) => __awaiter(this, [searchByAuditLogRequest_1, ...args_1], void 0, function* (searchByAuditLogRequest, options = {}) {
|
|
82
|
+
// verify required parameter 'searchByAuditLogRequest' is not null or undefined
|
|
83
|
+
(0, common_1.assertParamExists)('searchAuditTrail', 'searchByAuditLogRequest', searchByAuditLogRequest);
|
|
84
|
+
const localVarPath = `/api/v1/audit/search`;
|
|
85
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
87
|
+
let baseOptions;
|
|
88
|
+
if (configuration) {
|
|
89
|
+
baseOptions = configuration.baseOptions;
|
|
90
|
+
}
|
|
91
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
92
|
+
const localVarHeaderParameter = {};
|
|
93
|
+
const localVarQueryParameter = {};
|
|
94
|
+
// authentication keycloak_auth required
|
|
95
|
+
// http bearer authentication required
|
|
96
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
97
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
98
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
99
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
101
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(searchByAuditLogRequest, localVarRequestOptions, configuration);
|
|
102
|
+
return {
|
|
103
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
104
|
+
options: localVarRequestOptions,
|
|
105
|
+
};
|
|
106
|
+
}),
|
|
107
|
+
/**
|
|
108
|
+
* Verifies the cryptographic hash chain of the audit log to detect any tampering.
|
|
109
|
+
* @summary Verify audit chain integrity
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
verifyChain: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
114
|
+
const localVarPath = `/api/v1/audit/verify`;
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
123
|
+
const localVarQueryParameter = {};
|
|
124
|
+
// authentication keycloak_auth required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
127
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
+
return {
|
|
131
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
}),
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
exports.AuditControllerApiAxiosParamCreator = AuditControllerApiAxiosParamCreator;
|
|
138
|
+
/**
|
|
139
|
+
* AuditControllerApi - functional programming interface
|
|
140
|
+
* @export
|
|
141
|
+
*/
|
|
142
|
+
const AuditControllerApiFp = function (configuration) {
|
|
143
|
+
const localVarAxiosParamCreator = (0, exports.AuditControllerApiAxiosParamCreator)(configuration);
|
|
144
|
+
return {
|
|
145
|
+
/**
|
|
146
|
+
* Retrieves the audit trail for a given resource.
|
|
147
|
+
* @summary Get audit trail for a resource
|
|
148
|
+
* @param {string} id ID of the resource to get the audit trail for
|
|
149
|
+
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
getAuditTrail(id, sort, options) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
var _a, _b, _c;
|
|
156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAuditTrail(id, sort, options);
|
|
157
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
158
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuditControllerApi.getAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
159
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
160
|
+
});
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* Retrieves the audit trail according to the search parameters
|
|
164
|
+
* @summary Search for audit trails
|
|
165
|
+
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
searchAuditTrail(searchByAuditLogRequest, options) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
var _a, _b, _c;
|
|
172
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchAuditTrail(searchByAuditLogRequest, options);
|
|
173
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
174
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuditControllerApi.searchAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
175
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
176
|
+
});
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
* Verifies the cryptographic hash chain of the audit log to detect any tampering.
|
|
180
|
+
* @summary Verify audit chain integrity
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
verifyChain(options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
var _a, _b, _c;
|
|
187
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyChain(options);
|
|
188
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
189
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuditControllerApi.verifyChain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
190
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
exports.AuditControllerApiFp = AuditControllerApiFp;
|
|
196
|
+
/**
|
|
197
|
+
* AuditControllerApi - factory interface
|
|
198
|
+
* @export
|
|
199
|
+
*/
|
|
200
|
+
const AuditControllerApiFactory = function (configuration, basePath, axios) {
|
|
201
|
+
const localVarFp = (0, exports.AuditControllerApiFp)(configuration);
|
|
202
|
+
return {
|
|
203
|
+
/**
|
|
204
|
+
* Retrieves the audit trail for a given resource.
|
|
205
|
+
* @summary Get audit trail for a resource
|
|
206
|
+
* @param {string} id ID of the resource to get the audit trail for
|
|
207
|
+
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
getAuditTrail(id, sort, options) {
|
|
212
|
+
return localVarFp.getAuditTrail(id, sort, options).then((request) => request(axios, basePath));
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* Retrieves the audit trail according to the search parameters
|
|
216
|
+
* @summary Search for audit trails
|
|
217
|
+
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
searchAuditTrail(searchByAuditLogRequest, options) {
|
|
222
|
+
return localVarFp.searchAuditTrail(searchByAuditLogRequest, options).then((request) => request(axios, basePath));
|
|
223
|
+
},
|
|
224
|
+
/**
|
|
225
|
+
* Verifies the cryptographic hash chain of the audit log to detect any tampering.
|
|
226
|
+
* @summary Verify audit chain integrity
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
verifyChain(options) {
|
|
231
|
+
return localVarFp.verifyChain(options).then((request) => request(axios, basePath));
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
exports.AuditControllerApiFactory = AuditControllerApiFactory;
|
|
236
|
+
/**
|
|
237
|
+
* AuditControllerApi - object-oriented interface
|
|
238
|
+
* @export
|
|
239
|
+
* @class AuditControllerApi
|
|
240
|
+
* @extends {BaseAPI}
|
|
241
|
+
*/
|
|
242
|
+
class AuditControllerApi extends base_1.BaseAPI {
|
|
243
|
+
/**
|
|
244
|
+
* Retrieves the audit trail for a given resource.
|
|
245
|
+
* @summary Get audit trail for a resource
|
|
246
|
+
* @param {string} id ID of the resource to get the audit trail for
|
|
247
|
+
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
* @memberof AuditControllerApi
|
|
251
|
+
*/
|
|
252
|
+
getAuditTrail(id, sort, options) {
|
|
253
|
+
return (0, exports.AuditControllerApiFp)(this.configuration).getAuditTrail(id, sort, options).then((request) => request(this.axios, this.basePath));
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Retrieves the audit trail according to the search parameters
|
|
257
|
+
* @summary Search for audit trails
|
|
258
|
+
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
* @memberof AuditControllerApi
|
|
262
|
+
*/
|
|
263
|
+
searchAuditTrail(searchByAuditLogRequest, options) {
|
|
264
|
+
return (0, exports.AuditControllerApiFp)(this.configuration).searchAuditTrail(searchByAuditLogRequest, options).then((request) => request(this.axios, this.basePath));
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Verifies the cryptographic hash chain of the audit log to detect any tampering.
|
|
268
|
+
* @summary Verify audit chain integrity
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
* @memberof AuditControllerApi
|
|
272
|
+
*/
|
|
273
|
+
verifyChain(options) {
|
|
274
|
+
return (0, exports.AuditControllerApiFp)(this.configuration).verifyChain(options).then((request) => request(this.axios, this.basePath));
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
exports.AuditControllerApi = AuditControllerApi;
|
|
278
|
+
/**
|
|
279
|
+
* @export
|
|
280
|
+
*/
|
|
281
|
+
exports.GetAuditTrailSortEnum = {
|
|
282
|
+
Asc: 'ASC',
|
|
283
|
+
Desc: 'DESC'
|
|
284
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { DashboardStatisticsResponse } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* DashboardApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const DashboardApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
23
|
+
* @summary Get dashboard statistics
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
getDashboardStatistics: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* DashboardApi - functional programming interface
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const DashboardApiFp: (configuration?: Configuration) => {
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
36
|
+
* @summary Get dashboard statistics
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
getDashboardStatistics(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardStatisticsResponse>>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* DashboardApi - factory interface
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const DashboardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
|
+
/**
|
|
48
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
49
|
+
* @summary Get dashboard statistics
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
getDashboardStatistics(options?: RawAxiosRequestConfig): AxiosPromise<DashboardStatisticsResponse>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* DashboardApi - object-oriented interface
|
|
57
|
+
* @export
|
|
58
|
+
* @class DashboardApi
|
|
59
|
+
* @extends {BaseAPI}
|
|
60
|
+
*/
|
|
61
|
+
export declare class DashboardApi extends BaseAPI {
|
|
62
|
+
/**
|
|
63
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
64
|
+
* @summary Get dashboard statistics
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
* @memberof DashboardApi
|
|
68
|
+
*/
|
|
69
|
+
getDashboardStatistics(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DashboardStatisticsResponse, any, {}>>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = 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
|
+
* DashboardApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const DashboardApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
40
|
+
* @summary Get dashboard statistics
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
getDashboardStatistics: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
45
|
+
const localVarPath = `/api/v1/dashboard/statistics`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
// authentication keycloak_auth required
|
|
56
|
+
// http bearer authentication required
|
|
57
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
58
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
59
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
61
|
+
return {
|
|
62
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
63
|
+
options: localVarRequestOptions,
|
|
64
|
+
};
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
exports.DashboardApiAxiosParamCreator = DashboardApiAxiosParamCreator;
|
|
69
|
+
/**
|
|
70
|
+
* DashboardApi - functional programming interface
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
const DashboardApiFp = function (configuration) {
|
|
74
|
+
const localVarAxiosParamCreator = (0, exports.DashboardApiAxiosParamCreator)(configuration);
|
|
75
|
+
return {
|
|
76
|
+
/**
|
|
77
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
78
|
+
* @summary Get dashboard statistics
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
getDashboardStatistics(options) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
var _a, _b, _c;
|
|
85
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDashboardStatistics(options);
|
|
86
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
87
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DashboardApi.getDashboardStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
88
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
exports.DashboardApiFp = DashboardApiFp;
|
|
94
|
+
/**
|
|
95
|
+
* DashboardApi - factory interface
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
const DashboardApiFactory = function (configuration, basePath, axios) {
|
|
99
|
+
const localVarFp = (0, exports.DashboardApiFp)(configuration);
|
|
100
|
+
return {
|
|
101
|
+
/**
|
|
102
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
103
|
+
* @summary Get dashboard statistics
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
getDashboardStatistics(options) {
|
|
108
|
+
return localVarFp.getDashboardStatistics(options).then((request) => request(axios, basePath));
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
exports.DashboardApiFactory = DashboardApiFactory;
|
|
113
|
+
/**
|
|
114
|
+
* DashboardApi - object-oriented interface
|
|
115
|
+
* @export
|
|
116
|
+
* @class DashboardApi
|
|
117
|
+
* @extends {BaseAPI}
|
|
118
|
+
*/
|
|
119
|
+
class DashboardApi extends base_1.BaseAPI {
|
|
120
|
+
/**
|
|
121
|
+
* Retrieve aggregated dashboard metrics including file counts, storage usage, and file type distribution
|
|
122
|
+
* @summary Get dashboard statistics
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
* @memberof DashboardApi
|
|
126
|
+
*/
|
|
127
|
+
getDashboardStatistics(options) {
|
|
128
|
+
return (0, exports.DashboardApiFp)(this.configuration).getDashboardStatistics(options).then((request) => request(this.axios, this.basePath));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.DashboardApi = DashboardApi;
|