@openfilz-sdk/typescript 1.1.5-SNAPSHOT → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +118 -76
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -0
- package/README.md +113 -2
- package/api/audit-controller-api.ts +4 -17
- package/api/dashboard-api.ts +2 -9
- package/api/document-controller-api.ts +21 -53
- package/api/document-suggestion-controller-api.ts +2 -9
- package/api/favorites-api.ts +3 -15
- package/api/file-controller-api.ts +3 -19
- package/api/folder-controller-api.ts +5 -26
- package/api/settings-api.ts +2 -9
- package/api/tus-controller-api.ts +8 -30
- package/base.ts +0 -24
- package/common.ts +19 -42
- package/configuration.ts +24 -18
- package/dist/api/audit-controller-api.d.ts +0 -12
- package/dist/api/audit-controller-api.js +3 -12
- package/dist/api/dashboard-api.d.ts +0 -7
- package/dist/api/dashboard-api.js +1 -7
- package/dist/api/document-controller-api.d.ts +0 -21
- package/dist/api/document-controller-api.js +14 -21
- package/dist/api/document-suggestion-controller-api.d.ts +0 -7
- package/dist/api/document-suggestion-controller-api.js +1 -7
- package/dist/api/favorites-api.d.ts +0 -10
- package/dist/api/favorites-api.js +2 -10
- package/dist/api/file-controller-api.d.ts +0 -10
- package/dist/api/file-controller-api.js +2 -10
- package/dist/api/folder-controller-api.d.ts +0 -13
- package/dist/api/folder-controller-api.js +4 -13
- package/dist/api/settings-api.d.ts +0 -7
- package/dist/api/settings-api.js +1 -7
- package/dist/api/tus-controller-api.d.ts +0 -15
- package/dist/api/tus-controller-api.js +7 -18
- package/dist/base.d.ts +0 -24
- package/dist/base.js +0 -19
- package/dist/common.d.ts +4 -35
- package/dist/common.js +16 -38
- package/dist/configuration.d.ts +24 -17
- package/dist/configuration.js +1 -1
- package/dist/esm/api/audit-controller-api.d.ts +0 -12
- package/dist/esm/api/audit-controller-api.js +3 -12
- package/dist/esm/api/dashboard-api.d.ts +0 -7
- package/dist/esm/api/dashboard-api.js +1 -7
- package/dist/esm/api/document-controller-api.d.ts +0 -21
- package/dist/esm/api/document-controller-api.js +14 -21
- package/dist/esm/api/document-suggestion-controller-api.d.ts +0 -7
- package/dist/esm/api/document-suggestion-controller-api.js +1 -7
- package/dist/esm/api/favorites-api.d.ts +0 -10
- package/dist/esm/api/favorites-api.js +2 -10
- package/dist/esm/api/file-controller-api.d.ts +0 -10
- package/dist/esm/api/file-controller-api.js +2 -10
- package/dist/esm/api/folder-controller-api.d.ts +0 -13
- package/dist/esm/api/folder-controller-api.js +4 -13
- package/dist/esm/api/settings-api.d.ts +0 -7
- package/dist/esm/api/settings-api.js +1 -7
- package/dist/esm/api/tus-controller-api.d.ts +0 -15
- package/dist/esm/api/tus-controller-api.js +8 -19
- package/dist/esm/base.d.ts +0 -24
- package/dist/esm/base.js +0 -19
- package/dist/esm/common.d.ts +4 -35
- package/dist/esm/common.js +14 -37
- package/dist/esm/configuration.d.ts +24 -17
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/models/ancestor-info.d.ts +0 -20
- package/dist/esm/models/audit-log-details-one-of.d.ts +29 -29
- package/dist/esm/models/audit-log-details.d.ts +3 -14
- package/dist/esm/models/audit-log.d.ts +2 -44
- package/dist/esm/models/audit-verification-result.d.ts +2 -29
- package/dist/esm/models/broken-link.d.ts +0 -20
- package/dist/esm/models/copy-audit.d.ts +3 -28
- package/dist/esm/models/copy-request.d.ts +0 -11
- package/dist/esm/models/copy-response.d.ts +0 -9
- package/dist/esm/models/create-blank-document-request.d.ts +0 -14
- package/dist/esm/models/create-folder-audit.d.ts +3 -23
- package/dist/esm/models/create-folder-request.d.ts +0 -12
- package/dist/esm/models/dashboard-statistics-response.d.ts +4 -29
- package/dist/esm/models/delete-audit.d.ts +3 -16
- package/dist/esm/models/delete-metadata-audit.d.ts +3 -16
- package/dist/esm/models/delete-metadata-request.d.ts +0 -7
- package/dist/esm/models/delete-request.d.ts +0 -7
- package/dist/esm/models/document-info.d.ts +0 -17
- package/dist/esm/models/document-position.d.ts +0 -25
- package/dist/esm/models/element-info.d.ts +0 -20
- package/dist/esm/models/file-type-stats.d.ts +0 -20
- package/dist/esm/models/filter-input.d.ts +0 -15
- package/dist/esm/models/folder-element-info.d.ts +0 -11
- package/dist/esm/models/folder-response.d.ts +0 -20
- package/dist/esm/models/index.d.ts +0 -11
- package/dist/esm/models/index.js +0 -11
- package/dist/esm/models/move-audit.d.ts +3 -16
- package/dist/esm/models/move-request.d.ts +0 -11
- package/dist/esm/models/rename-audit.d.ts +3 -16
- package/dist/esm/models/rename-request.d.ts +0 -10
- package/dist/esm/models/replace-audit.d.ts +3 -24
- package/dist/esm/models/search-by-audit-log-request.d.ts +0 -12
- package/dist/esm/models/search-by-metadata-request.d.ts +0 -12
- package/dist/esm/models/search-metadata-request.d.ts +0 -7
- package/dist/esm/models/settings.d.ts +0 -30
- package/dist/esm/models/sort-input.d.ts +0 -15
- package/dist/esm/models/storage-breakdown.d.ts +2 -22
- package/dist/esm/models/suggest.d.ts +0 -20
- package/dist/esm/models/tus-config-response.d.ts +0 -30
- package/dist/esm/models/tus-finalize-request.d.ts +0 -25
- package/dist/esm/models/tus-upload-info.d.ts +0 -30
- package/dist/esm/models/update-metadata-audit.d.ts +3 -18
- package/dist/esm/models/update-metadata-request.d.ts +0 -7
- package/dist/esm/models/upload-audit.d.ts +3 -30
- package/dist/esm/models/upload-response.d.ts +0 -35
- package/dist/models/ancestor-info.d.ts +0 -20
- package/dist/models/audit-log-details-one-of.d.ts +29 -29
- package/dist/models/audit-log-details.d.ts +3 -14
- package/dist/models/audit-log.d.ts +2 -44
- package/dist/models/audit-verification-result.d.ts +2 -29
- package/dist/models/broken-link.d.ts +0 -20
- package/dist/models/copy-audit.d.ts +3 -28
- package/dist/models/copy-request.d.ts +0 -11
- package/dist/models/copy-response.d.ts +0 -9
- package/dist/models/create-blank-document-request.d.ts +0 -14
- package/dist/models/create-folder-audit.d.ts +3 -23
- package/dist/models/create-folder-request.d.ts +0 -12
- package/dist/models/dashboard-statistics-response.d.ts +4 -29
- package/dist/models/delete-audit.d.ts +3 -16
- package/dist/models/delete-metadata-audit.d.ts +3 -16
- package/dist/models/delete-metadata-request.d.ts +0 -7
- package/dist/models/delete-request.d.ts +0 -7
- package/dist/models/document-info.d.ts +0 -17
- package/dist/models/document-position.d.ts +0 -25
- package/dist/models/element-info.d.ts +0 -20
- package/dist/models/file-type-stats.d.ts +0 -20
- package/dist/models/filter-input.d.ts +0 -15
- package/dist/models/folder-element-info.d.ts +0 -11
- package/dist/models/folder-response.d.ts +0 -20
- package/dist/models/index.d.ts +0 -11
- package/dist/models/index.js +0 -11
- package/dist/models/move-audit.d.ts +3 -16
- package/dist/models/move-request.d.ts +0 -11
- package/dist/models/rename-audit.d.ts +3 -16
- package/dist/models/rename-request.d.ts +0 -10
- package/dist/models/replace-audit.d.ts +3 -24
- package/dist/models/search-by-audit-log-request.d.ts +0 -12
- package/dist/models/search-by-metadata-request.d.ts +0 -12
- package/dist/models/search-metadata-request.d.ts +0 -7
- package/dist/models/settings.d.ts +0 -30
- package/dist/models/sort-input.d.ts +0 -15
- package/dist/models/storage-breakdown.d.ts +2 -22
- package/dist/models/suggest.d.ts +0 -20
- package/dist/models/tus-config-response.d.ts +0 -30
- package/dist/models/tus-finalize-request.d.ts +0 -25
- package/dist/models/tus-upload-info.d.ts +0 -30
- package/dist/models/update-metadata-audit.d.ts +3 -18
- package/dist/models/update-metadata-request.d.ts +0 -7
- package/dist/models/upload-audit.d.ts +3 -30
- package/dist/models/upload-response.d.ts +0 -35
- package/docs/AncestorInfo.md +24 -0
- package/docs/AuditControllerApi.md +160 -0
- package/docs/AuditLog.md +35 -0
- package/docs/AuditLogDetails.md +20 -0
- package/docs/AuditLogDetailsOneOf.md +42 -0
- package/docs/AuditVerificationResult.md +29 -0
- package/docs/BrokenLink.md +24 -0
- package/docs/CopyAudit.md +25 -0
- package/docs/CopyRequest.md +24 -0
- package/docs/CopyResponse.md +22 -0
- package/docs/CreateBlankDocumentRequest.md +24 -0
- package/docs/CreateFolderAudit.md +23 -0
- package/docs/CreateFolderRequest.md +22 -0
- package/docs/DashboardApi.md +52 -0
- package/docs/DashboardStatisticsResponse.md +26 -0
- package/docs/DeleteAudit.md +21 -0
- package/docs/DeleteMetadataAudit.md +21 -0
- package/docs/DeleteMetadataRequest.md +20 -0
- package/docs/DeleteRequest.md +20 -0
- package/docs/DocumentControllerApi.md +834 -0
- package/docs/DocumentInfo.md +30 -0
- package/docs/DocumentPosition.md +26 -0
- package/docs/DocumentSuggestionControllerApi.md +65 -0
- package/docs/ElementInfo.md +24 -0
- package/docs/FavoritesApi.md +215 -0
- package/docs/FileControllerApi.md +222 -0
- package/docs/FileTypeStats.md +24 -0
- package/docs/FilterInput.md +22 -0
- package/docs/FolderControllerApi.md +385 -0
- package/docs/FolderElementInfo.md +24 -0
- package/docs/FolderResponse.md +24 -0
- package/docs/MoveAudit.md +21 -0
- package/docs/MoveRequest.md +24 -0
- package/docs/RenameAudit.md +21 -0
- package/docs/RenameRequest.md +20 -0
- package/docs/ReplaceAudit.md +23 -0
- package/docs/SearchByAuditLogRequest.md +29 -0
- package/docs/SearchByMetadataRequest.md +29 -0
- package/docs/SearchMetadataRequest.md +20 -0
- package/docs/Settings.md +28 -0
- package/docs/SettingsApi.md +52 -0
- package/docs/SortInput.md +22 -0
- package/docs/StorageBreakdown.md +24 -0
- package/docs/Suggest.md +24 -0
- package/docs/TusConfigResponse.md +28 -0
- package/docs/TusControllerApi.md +493 -0
- package/docs/TusFinalizeRequest.md +26 -0
- package/docs/TusUploadInfo.md +28 -0
- package/docs/UpdateMetadataAudit.md +21 -0
- package/docs/UpdateMetadataRequest.md +20 -0
- package/docs/UploadAudit.md +25 -0
- package/docs/UploadResponse.md +30 -0
- package/graphql/document-search.graphqls +44 -44
- package/graphql/document.graphqls +114 -114
- package/models/ancestor-info.ts +0 -20
- package/models/audit-log-details-one-of.ts +33 -29
- package/models/audit-log-details.ts +3 -36
- package/models/audit-log.ts +2 -44
- package/models/audit-verification-result.ts +2 -29
- package/models/broken-link.ts +0 -20
- package/models/copy-audit.ts +6 -28
- package/models/copy-request.ts +0 -11
- package/models/copy-response.ts +0 -9
- package/models/create-blank-document-request.ts +0 -14
- package/models/create-folder-audit.ts +6 -22
- package/models/create-folder-request.ts +0 -12
- package/models/dashboard-statistics-response.ts +4 -29
- package/models/delete-audit.ts +6 -16
- package/models/delete-metadata-audit.ts +6 -16
- package/models/delete-metadata-request.ts +0 -7
- package/models/delete-request.ts +0 -7
- package/models/document-info.ts +0 -17
- package/models/document-position.ts +0 -25
- package/models/element-info.ts +0 -20
- package/models/file-type-stats.ts +0 -20
- package/models/filter-input.ts +0 -15
- package/models/folder-element-info.ts +0 -11
- package/models/folder-response.ts +0 -20
- package/models/index.ts +0 -11
- package/models/move-audit.ts +6 -16
- package/models/move-request.ts +0 -11
- package/models/rename-audit.ts +6 -16
- package/models/rename-request.ts +0 -10
- package/models/replace-audit.ts +6 -22
- package/models/search-by-audit-log-request.ts +0 -12
- package/models/search-by-metadata-request.ts +0 -12
- package/models/search-metadata-request.ts +0 -7
- package/models/settings.ts +0 -30
- package/models/sort-input.ts +0 -15
- package/models/storage-breakdown.ts +2 -22
- package/models/suggest.ts +0 -20
- package/models/tus-config-response.ts +0 -30
- package/models/tus-finalize-request.ts +0 -25
- package/models/tus-upload-info.ts +0 -30
- package/models/update-metadata-audit.ts +6 -16
- package/models/update-metadata-request.ts +0 -7
- package/models/upload-audit.ts +6 -28
- package/models/upload-response.ts +0 -35
- package/package.json +2 -2
- package/.openapi-generator/openfilz-api.json-generate-typescript-sdk.sha256 +0 -1
- package/dist/esm/models/audit-log-details-one-of1.d.ts +0 -37
- package/dist/esm/models/audit-log-details-one-of1.js +0 -14
- package/dist/esm/models/audit-log-details-one-of2.d.ts +0 -30
- package/dist/esm/models/audit-log-details-one-of2.js +0 -14
- package/dist/esm/models/audit-log-details-one-of3.d.ts +0 -30
- package/dist/esm/models/audit-log-details-one-of3.js +0 -14
- package/dist/esm/models/audit-log-details-one-of4.d.ts +0 -30
- package/dist/esm/models/audit-log-details-one-of4.js +0 -14
- package/dist/esm/models/audit-log-details-one-of5.d.ts +0 -30
- package/dist/esm/models/audit-log-details-one-of5.js +0 -14
- package/dist/esm/models/audit-log-details-one-of6.d.ts +0 -38
- package/dist/esm/models/audit-log-details-one-of6.js +0 -14
- package/dist/esm/models/audit-log-details-one-of7.d.ts +0 -32
- package/dist/esm/models/audit-log-details-one-of7.js +0 -14
- package/dist/esm/models/audit-log-details-one-of8.d.ts +0 -44
- package/dist/esm/models/audit-log-details-one-of8.js +0 -14
- package/dist/esm/models/audit-verification-result-broken-link.d.ts +0 -36
- package/dist/esm/models/audit-verification-result-broken-link.js +0 -14
- package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +0 -36
- package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +0 -14
- package/dist/esm/models/dashboard-statistics-response-storage.d.ts +0 -37
- package/dist/esm/models/dashboard-statistics-response-storage.js +0 -14
- package/dist/models/audit-log-details-one-of1.d.ts +0 -37
- package/dist/models/audit-log-details-one-of1.js +0 -15
- package/dist/models/audit-log-details-one-of2.d.ts +0 -30
- package/dist/models/audit-log-details-one-of2.js +0 -15
- package/dist/models/audit-log-details-one-of3.d.ts +0 -30
- package/dist/models/audit-log-details-one-of3.js +0 -15
- package/dist/models/audit-log-details-one-of4.d.ts +0 -30
- package/dist/models/audit-log-details-one-of4.js +0 -15
- package/dist/models/audit-log-details-one-of5.d.ts +0 -30
- package/dist/models/audit-log-details-one-of5.js +0 -15
- package/dist/models/audit-log-details-one-of6.d.ts +0 -38
- package/dist/models/audit-log-details-one-of6.js +0 -15
- package/dist/models/audit-log-details-one-of7.d.ts +0 -32
- package/dist/models/audit-log-details-one-of7.js +0 -15
- package/dist/models/audit-log-details-one-of8.d.ts +0 -44
- package/dist/models/audit-log-details-one-of8.js +0 -15
- package/dist/models/audit-verification-result-broken-link.d.ts +0 -36
- package/dist/models/audit-verification-result-broken-link.js +0 -15
- package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +0 -36
- package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +0 -15
- package/dist/models/dashboard-statistics-response-storage.d.ts +0 -37
- package/dist/models/dashboard-statistics-response-storage.js +0 -15
- package/models/audit-log-details-one-of1.ts +0 -45
- package/models/audit-log-details-one-of2.ts +0 -36
- package/models/audit-log-details-one-of3.ts +0 -36
- package/models/audit-log-details-one-of4.ts +0 -36
- package/models/audit-log-details-one-of5.ts +0 -36
- package/models/audit-log-details-one-of6.ts +0 -42
- package/models/audit-log-details-one-of7.ts +0 -36
- package/models/audit-log-details-one-of8.ts +0 -48
- package/models/audit-verification-result-broken-link.ts +0 -42
- package/models/dashboard-statistics-response-storage-file-type-breakdown-inner.ts +0 -42
- package/models/dashboard-statistics-response-storage.ts +0 -45
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -39,7 +39,6 @@ import type { MoveRequest } from '../models';
|
|
|
39
39
|
import type { RenameRequest } from '../models';
|
|
40
40
|
/**
|
|
41
41
|
* FolderControllerApi - axios parameter creator
|
|
42
|
-
* @export
|
|
43
42
|
*/
|
|
44
43
|
export const FolderControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45
44
|
return {
|
|
@@ -69,8 +68,6 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
69
68
|
// http bearer authentication required
|
|
70
69
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
71
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
72
|
|
|
76
73
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -112,8 +109,8 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
112
109
|
localVarQueryParameter['folderId'] = folderId;
|
|
113
110
|
}
|
|
114
111
|
|
|
112
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
115
113
|
|
|
116
|
-
|
|
117
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
116
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -149,9 +146,8 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
149
146
|
// http bearer authentication required
|
|
150
147
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
151
148
|
|
|
152
|
-
|
|
153
|
-
|
|
154
149
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
150
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
155
151
|
|
|
156
152
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
157
153
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -189,8 +185,6 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
189
185
|
// http bearer authentication required
|
|
190
186
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
191
187
|
|
|
192
|
-
|
|
193
|
-
|
|
194
188
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
195
189
|
|
|
196
190
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -241,8 +235,8 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
241
235
|
localVarQueryParameter['onlyFolders'] = onlyFolders;
|
|
242
236
|
}
|
|
243
237
|
|
|
238
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
244
239
|
|
|
245
|
-
|
|
246
240
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
247
241
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
242
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -278,8 +272,6 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
278
272
|
// http bearer authentication required
|
|
279
273
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
280
274
|
|
|
281
|
-
|
|
282
|
-
|
|
283
275
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
284
276
|
|
|
285
277
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -322,9 +314,8 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
322
314
|
// http bearer authentication required
|
|
323
315
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
324
316
|
|
|
325
|
-
|
|
326
|
-
|
|
327
317
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
318
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
328
319
|
|
|
329
320
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
330
321
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -341,7 +332,6 @@ export const FolderControllerApiAxiosParamCreator = function (configuration?: Co
|
|
|
341
332
|
|
|
342
333
|
/**
|
|
343
334
|
* FolderControllerApi - functional programming interface
|
|
344
|
-
* @export
|
|
345
335
|
*/
|
|
346
336
|
export const FolderControllerApiFp = function(configuration?: Configuration) {
|
|
347
337
|
const localVarAxiosParamCreator = FolderControllerApiAxiosParamCreator(configuration)
|
|
@@ -446,7 +436,6 @@ export const FolderControllerApiFp = function(configuration?: Configuration) {
|
|
|
446
436
|
|
|
447
437
|
/**
|
|
448
438
|
* FolderControllerApi - factory interface
|
|
449
|
-
* @export
|
|
450
439
|
*/
|
|
451
440
|
export const FolderControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
452
441
|
const localVarFp = FolderControllerApiFp(configuration)
|
|
@@ -530,9 +519,6 @@ export const FolderControllerApiFactory = function (configuration?: Configuratio
|
|
|
530
519
|
|
|
531
520
|
/**
|
|
532
521
|
* FolderControllerApi - object-oriented interface
|
|
533
|
-
* @export
|
|
534
|
-
* @class FolderControllerApi
|
|
535
|
-
* @extends {BaseAPI}
|
|
536
522
|
*/
|
|
537
523
|
export class FolderControllerApi extends BaseAPI {
|
|
538
524
|
/**
|
|
@@ -541,7 +527,6 @@ export class FolderControllerApi extends BaseAPI {
|
|
|
541
527
|
* @param {CopyRequest} copyRequest
|
|
542
528
|
* @param {*} [options] Override http request option.
|
|
543
529
|
* @throws {RequiredError}
|
|
544
|
-
* @memberof FolderControllerApi
|
|
545
530
|
*/
|
|
546
531
|
public copyFolders(copyRequest: CopyRequest, options?: RawAxiosRequestConfig) {
|
|
547
532
|
return FolderControllerApiFp(this.configuration).copyFolders(copyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -554,7 +539,6 @@ export class FolderControllerApi extends BaseAPI {
|
|
|
554
539
|
* @param {*} [options] Override http request option.
|
|
555
540
|
* @deprecated
|
|
556
541
|
* @throws {RequiredError}
|
|
557
|
-
* @memberof FolderControllerApi
|
|
558
542
|
*/
|
|
559
543
|
public countFolderElements(folderId?: string, options?: RawAxiosRequestConfig) {
|
|
560
544
|
return FolderControllerApiFp(this.configuration).countFolderElements(folderId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -566,7 +550,6 @@ export class FolderControllerApi extends BaseAPI {
|
|
|
566
550
|
* @param {CreateFolderRequest} createFolderRequest
|
|
567
551
|
* @param {*} [options] Override http request option.
|
|
568
552
|
* @throws {RequiredError}
|
|
569
|
-
* @memberof FolderControllerApi
|
|
570
553
|
*/
|
|
571
554
|
public createFolder(createFolderRequest: CreateFolderRequest, options?: RawAxiosRequestConfig) {
|
|
572
555
|
return FolderControllerApiFp(this.configuration).createFolder(createFolderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -578,7 +561,6 @@ export class FolderControllerApi extends BaseAPI {
|
|
|
578
561
|
* @param {DeleteRequest} deleteRequest
|
|
579
562
|
* @param {*} [options] Override http request option.
|
|
580
563
|
* @throws {RequiredError}
|
|
581
|
-
* @memberof FolderControllerApi
|
|
582
564
|
*/
|
|
583
565
|
public deleteFolders(deleteRequest: DeleteRequest, options?: RawAxiosRequestConfig) {
|
|
584
566
|
return FolderControllerApiFp(this.configuration).deleteFolders(deleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -592,7 +574,6 @@ export class FolderControllerApi extends BaseAPI {
|
|
|
592
574
|
* @param {boolean} [onlyFolders] if true, only folders are listed
|
|
593
575
|
* @param {*} [options] Override http request option.
|
|
594
576
|
* @throws {RequiredError}
|
|
595
|
-
* @memberof FolderControllerApi
|
|
596
577
|
*/
|
|
597
578
|
public listFolder(folderId?: string, onlyFiles?: boolean, onlyFolders?: boolean, options?: RawAxiosRequestConfig) {
|
|
598
579
|
return FolderControllerApiFp(this.configuration).listFolder(folderId, onlyFiles, onlyFolders, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -604,7 +585,6 @@ export class FolderControllerApi extends BaseAPI {
|
|
|
604
585
|
* @param {MoveRequest} moveRequest
|
|
605
586
|
* @param {*} [options] Override http request option.
|
|
606
587
|
* @throws {RequiredError}
|
|
607
|
-
* @memberof FolderControllerApi
|
|
608
588
|
*/
|
|
609
589
|
public moveFolders(moveRequest: MoveRequest, options?: RawAxiosRequestConfig) {
|
|
610
590
|
return FolderControllerApiFp(this.configuration).moveFolders(moveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -617,7 +597,6 @@ export class FolderControllerApi extends BaseAPI {
|
|
|
617
597
|
* @param {RenameRequest} renameRequest
|
|
618
598
|
* @param {*} [options] Override http request option.
|
|
619
599
|
* @throws {RequiredError}
|
|
620
|
-
* @memberof FolderControllerApi
|
|
621
600
|
*/
|
|
622
601
|
public renameFolder(folderId: string, renameRequest: RenameRequest, options?: RawAxiosRequestConfig) {
|
|
623
602
|
return FolderControllerApiFp(this.configuration).renameFolder(folderId, renameRequest, options).then((request) => request(this.axios, this.basePath));
|
package/api/settings-api.ts
CHANGED
|
@@ -18,14 +18,13 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { Settings } from '../models';
|
|
26
26
|
/**
|
|
27
27
|
* SettingsApi - axios parameter creator
|
|
28
|
-
* @export
|
|
29
28
|
*/
|
|
30
29
|
export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31
30
|
return {
|
|
@@ -52,8 +51,8 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
52
51
|
// http bearer authentication required
|
|
53
52
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
54
53
|
|
|
54
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
55
55
|
|
|
56
|
-
|
|
57
56
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58
57
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
58
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -68,7 +67,6 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
68
67
|
|
|
69
68
|
/**
|
|
70
69
|
* SettingsApi - functional programming interface
|
|
71
|
-
* @export
|
|
72
70
|
*/
|
|
73
71
|
export const SettingsApiFp = function(configuration?: Configuration) {
|
|
74
72
|
const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
|
|
@@ -90,7 +88,6 @@ export const SettingsApiFp = function(configuration?: Configuration) {
|
|
|
90
88
|
|
|
91
89
|
/**
|
|
92
90
|
* SettingsApi - factory interface
|
|
93
|
-
* @export
|
|
94
91
|
*/
|
|
95
92
|
export const SettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
96
93
|
const localVarFp = SettingsApiFp(configuration)
|
|
@@ -109,9 +106,6 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
109
106
|
|
|
110
107
|
/**
|
|
111
108
|
* SettingsApi - object-oriented interface
|
|
112
|
-
* @export
|
|
113
|
-
* @class SettingsApi
|
|
114
|
-
* @extends {BaseAPI}
|
|
115
109
|
*/
|
|
116
110
|
export class SettingsApi extends BaseAPI {
|
|
117
111
|
/**
|
|
@@ -119,7 +113,6 @@ export class SettingsApi extends BaseAPI {
|
|
|
119
113
|
* @summary Get user\'s settings
|
|
120
114
|
* @param {*} [options] Override http request option.
|
|
121
115
|
* @throws {RequiredError}
|
|
122
|
-
* @memberof SettingsApi
|
|
123
116
|
*/
|
|
124
117
|
public getSettings(options?: RawAxiosRequestConfig) {
|
|
125
118
|
return SettingsApiFp(this.configuration).getSettings(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -18,7 +18,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
@@ -31,7 +31,6 @@ import type { TusUploadInfo } from '../models';
|
|
|
31
31
|
import type { UploadResponse } from '../models';
|
|
32
32
|
/**
|
|
33
33
|
* TusControllerApi - axios parameter creator
|
|
34
|
-
* @export
|
|
35
34
|
*/
|
|
36
35
|
export const TusControllerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
37
36
|
return {
|
|
@@ -59,7 +58,6 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
59
58
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
59
|
|
|
61
60
|
|
|
62
|
-
|
|
63
61
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
62
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
63
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -97,7 +95,6 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
97
95
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
98
96
|
|
|
99
97
|
|
|
100
|
-
|
|
101
98
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
99
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
100
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -135,11 +132,10 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
135
132
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
136
133
|
|
|
137
134
|
|
|
138
|
-
|
|
139
135
|
if (uploadLength != null) {
|
|
140
136
|
localVarHeaderParameter['Upload-Length'] = typeof uploadLength === 'string'
|
|
141
137
|
? uploadLength
|
|
142
|
-
: JSON.stringify(uploadLength);
|
|
138
|
+
: JSON.stringify(uploadLength, replaceWithSerializableTypeIfNeeded);
|
|
143
139
|
}
|
|
144
140
|
if (uploadMetadata != null) {
|
|
145
141
|
localVarHeaderParameter['Upload-Metadata'] = String(uploadMetadata);
|
|
@@ -183,9 +179,8 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
183
179
|
// http bearer authentication required
|
|
184
180
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
185
181
|
|
|
186
|
-
|
|
187
|
-
|
|
188
182
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
183
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
189
184
|
|
|
190
185
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
186
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -220,8 +215,8 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
220
215
|
// http bearer authentication required
|
|
221
216
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
222
217
|
|
|
218
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
223
219
|
|
|
224
|
-
|
|
225
220
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
221
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
222
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -258,8 +253,8 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
258
253
|
// http bearer authentication required
|
|
259
254
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
260
255
|
|
|
256
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
261
257
|
|
|
262
|
-
|
|
263
258
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
264
259
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
265
260
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -297,7 +292,6 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
297
292
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
298
293
|
|
|
299
294
|
|
|
300
|
-
|
|
301
295
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
302
296
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
297
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -334,8 +328,8 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
334
328
|
// http bearer authentication required
|
|
335
329
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
336
330
|
|
|
331
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
337
332
|
|
|
338
|
-
|
|
339
333
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
340
334
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
335
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -379,19 +373,17 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
379
373
|
// http bearer authentication required
|
|
380
374
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
381
375
|
|
|
382
|
-
|
|
383
|
-
|
|
384
376
|
localVarHeaderParameter['Content-Type'] = 'application/offset+octet-stream';
|
|
385
377
|
|
|
386
378
|
if (uploadOffset != null) {
|
|
387
379
|
localVarHeaderParameter['Upload-Offset'] = typeof uploadOffset === 'string'
|
|
388
380
|
? uploadOffset
|
|
389
|
-
: JSON.stringify(uploadOffset);
|
|
381
|
+
: JSON.stringify(uploadOffset, replaceWithSerializableTypeIfNeeded);
|
|
390
382
|
}
|
|
391
383
|
if (contentLength != null) {
|
|
392
384
|
localVarHeaderParameter['Content-Length'] = typeof contentLength === 'string'
|
|
393
385
|
? contentLength
|
|
394
|
-
: JSON.stringify(contentLength);
|
|
386
|
+
: JSON.stringify(contentLength, replaceWithSerializableTypeIfNeeded);
|
|
395
387
|
}
|
|
396
388
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
397
389
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -408,7 +400,6 @@ export const TusControllerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
408
400
|
|
|
409
401
|
/**
|
|
410
402
|
* TusControllerApi - functional programming interface
|
|
411
|
-
* @export
|
|
412
403
|
*/
|
|
413
404
|
export const TusControllerApiFp = function(configuration?: Configuration) {
|
|
414
405
|
const localVarAxiosParamCreator = TusControllerApiAxiosParamCreator(configuration)
|
|
@@ -538,7 +529,6 @@ export const TusControllerApiFp = function(configuration?: Configuration) {
|
|
|
538
529
|
|
|
539
530
|
/**
|
|
540
531
|
* TusControllerApi - factory interface
|
|
541
|
-
* @export
|
|
542
532
|
*/
|
|
543
533
|
export const TusControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
544
534
|
const localVarFp = TusControllerApiFp(configuration)
|
|
@@ -641,9 +631,6 @@ export const TusControllerApiFactory = function (configuration?: Configuration,
|
|
|
641
631
|
|
|
642
632
|
/**
|
|
643
633
|
* TusControllerApi - object-oriented interface
|
|
644
|
-
* @export
|
|
645
|
-
* @class TusControllerApi
|
|
646
|
-
* @extends {BaseAPI}
|
|
647
634
|
*/
|
|
648
635
|
export class TusControllerApi extends BaseAPI {
|
|
649
636
|
/**
|
|
@@ -651,7 +638,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
651
638
|
* @summary TUS capability discovery
|
|
652
639
|
* @param {*} [options] Override http request option.
|
|
653
640
|
* @throws {RequiredError}
|
|
654
|
-
* @memberof TusControllerApi
|
|
655
641
|
*/
|
|
656
642
|
public _options(options?: RawAxiosRequestConfig) {
|
|
657
643
|
return TusControllerApiFp(this.configuration)._options(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -663,7 +649,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
663
649
|
* @param {string} uploadId Upload identifier
|
|
664
650
|
* @param {*} [options] Override http request option.
|
|
665
651
|
* @throws {RequiredError}
|
|
666
|
-
* @memberof TusControllerApi
|
|
667
652
|
*/
|
|
668
653
|
public cancelUpload(uploadId: string, options?: RawAxiosRequestConfig) {
|
|
669
654
|
return TusControllerApiFp(this.configuration).cancelUpload(uploadId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -676,7 +661,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
676
661
|
* @param {string} [uploadMetadata]
|
|
677
662
|
* @param {*} [options] Override http request option.
|
|
678
663
|
* @throws {RequiredError}
|
|
679
|
-
* @memberof TusControllerApi
|
|
680
664
|
*/
|
|
681
665
|
public createUpload(uploadLength: number, uploadMetadata?: string, options?: RawAxiosRequestConfig) {
|
|
682
666
|
return TusControllerApiFp(this.configuration).createUpload(uploadLength, uploadMetadata, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -689,7 +673,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
689
673
|
* @param {TusFinalizeRequest} tusFinalizeRequest
|
|
690
674
|
* @param {*} [options] Override http request option.
|
|
691
675
|
* @throws {RequiredError}
|
|
692
|
-
* @memberof TusControllerApi
|
|
693
676
|
*/
|
|
694
677
|
public finalizeUpload(uploadId: string, tusFinalizeRequest: TusFinalizeRequest, options?: RawAxiosRequestConfig) {
|
|
695
678
|
return TusControllerApiFp(this.configuration).finalizeUpload(uploadId, tusFinalizeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -700,7 +683,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
700
683
|
* @summary Get TUS configuration
|
|
701
684
|
* @param {*} [options] Override http request option.
|
|
702
685
|
* @throws {RequiredError}
|
|
703
|
-
* @memberof TusControllerApi
|
|
704
686
|
*/
|
|
705
687
|
public getConfig(options?: RawAxiosRequestConfig) {
|
|
706
688
|
return TusControllerApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -712,7 +694,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
712
694
|
* @param {string} uploadId Upload identifier
|
|
713
695
|
* @param {*} [options] Override http request option.
|
|
714
696
|
* @throws {RequiredError}
|
|
715
|
-
* @memberof TusControllerApi
|
|
716
697
|
*/
|
|
717
698
|
public getUploadInfo(uploadId: string, options?: RawAxiosRequestConfig) {
|
|
718
699
|
return TusControllerApiFp(this.configuration).getUploadInfo(uploadId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -724,7 +705,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
724
705
|
* @param {string} uploadId Upload identifier
|
|
725
706
|
* @param {*} [options] Override http request option.
|
|
726
707
|
* @throws {RequiredError}
|
|
727
|
-
* @memberof TusControllerApi
|
|
728
708
|
*/
|
|
729
709
|
public getUploadOffset(uploadId: string, options?: RawAxiosRequestConfig) {
|
|
730
710
|
return TusControllerApiFp(this.configuration).getUploadOffset(uploadId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -736,7 +716,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
736
716
|
* @param {string} uploadId Upload identifier
|
|
737
717
|
* @param {*} [options] Override http request option.
|
|
738
718
|
* @throws {RequiredError}
|
|
739
|
-
* @memberof TusControllerApi
|
|
740
719
|
*/
|
|
741
720
|
public isUploadComplete(uploadId: string, options?: RawAxiosRequestConfig) {
|
|
742
721
|
return TusControllerApiFp(this.configuration).isUploadComplete(uploadId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -751,7 +730,6 @@ export class TusControllerApi extends BaseAPI {
|
|
|
751
730
|
* @param {number} [contentLength]
|
|
752
731
|
* @param {*} [options] Override http request option.
|
|
753
732
|
* @throws {RequiredError}
|
|
754
|
-
* @memberof TusControllerApi
|
|
755
733
|
*/
|
|
756
734
|
public uploadChunk(uploadId: string, uploadOffset: number, requestBody: Array<any>, contentLength?: number, options?: RawAxiosRequestConfig) {
|
|
757
735
|
return TusControllerApiFp(this.configuration).uploadChunk(uploadId, uploadOffset, requestBody, contentLength, options).then((request) => request(this.axios, this.basePath));
|
package/base.ts
CHANGED
|
@@ -21,10 +21,6 @@ import globalAxios from 'axios';
|
|
|
21
21
|
|
|
22
22
|
export const BASE_PATH = "http://localhost:8081".replace(/\/+$/, "");
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
24
|
export const COLLECTION_FORMATS = {
|
|
29
25
|
csv: ",",
|
|
30
26
|
ssv: " ",
|
|
@@ -32,21 +28,11 @@ export const COLLECTION_FORMATS = {
|
|
|
32
28
|
pipes: "|",
|
|
33
29
|
};
|
|
34
30
|
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface RequestArgs
|
|
39
|
-
*/
|
|
40
31
|
export interface RequestArgs {
|
|
41
32
|
url: string;
|
|
42
33
|
options: RawAxiosRequestConfig;
|
|
43
34
|
}
|
|
44
35
|
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class BaseAPI
|
|
49
|
-
*/
|
|
50
36
|
export class BaseAPI {
|
|
51
37
|
protected configuration: Configuration | undefined;
|
|
52
38
|
|
|
@@ -58,12 +44,6 @@ export class BaseAPI {
|
|
|
58
44
|
}
|
|
59
45
|
};
|
|
60
46
|
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
* @class RequiredError
|
|
65
|
-
* @extends {Error}
|
|
66
|
-
*/
|
|
67
47
|
export class RequiredError extends Error {
|
|
68
48
|
constructor(public field: string, msg?: string) {
|
|
69
49
|
super(msg);
|
|
@@ -78,9 +58,5 @@ interface ServerMap {
|
|
|
78
58
|
}[];
|
|
79
59
|
}
|
|
80
60
|
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
61
|
export const operationServerMap: ServerMap = {
|
|
86
62
|
}
|
package/common.ts
CHANGED
|
@@ -12,22 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import type { Configuration } from "./configuration";
|
|
17
16
|
import type { RequestArgs } from "./base";
|
|
18
17
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
18
|
import { RequiredError } from "./base";
|
|
20
19
|
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
20
|
export const DUMMY_BASE_URL = 'https://example.com'
|
|
26
21
|
|
|
27
22
|
/**
|
|
28
23
|
*
|
|
29
24
|
* @throws {RequiredError}
|
|
30
|
-
* @export
|
|
31
25
|
*/
|
|
32
26
|
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
33
27
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -35,10 +29,6 @@ export const assertParamExists = function (functionName: string, paramName: stri
|
|
|
35
29
|
}
|
|
36
30
|
}
|
|
37
31
|
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @export
|
|
41
|
-
*/
|
|
42
32
|
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
43
33
|
if (configuration && configuration.apiKey) {
|
|
44
34
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -48,20 +38,12 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
|
|
|
48
38
|
}
|
|
49
39
|
}
|
|
50
40
|
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
41
|
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
56
42
|
if (configuration && (configuration.username || configuration.password)) {
|
|
57
43
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
58
44
|
}
|
|
59
45
|
}
|
|
60
46
|
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
47
|
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
66
48
|
if (configuration && configuration.accessToken) {
|
|
67
49
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -71,10 +53,6 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
71
53
|
}
|
|
72
54
|
}
|
|
73
55
|
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @export
|
|
77
|
-
*/
|
|
78
56
|
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
79
57
|
if (configuration && configuration.accessToken) {
|
|
80
58
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -84,32 +62,29 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
84
62
|
}
|
|
85
63
|
}
|
|
86
64
|
|
|
65
|
+
|
|
87
66
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
88
67
|
if (parameter == null) return;
|
|
89
68
|
if (typeof parameter === "object") {
|
|
90
|
-
if (Array.isArray(parameter)) {
|
|
69
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
91
70
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
-
}
|
|
71
|
+
}
|
|
93
72
|
else {
|
|
94
|
-
Object.keys(parameter).forEach(currentKey =>
|
|
73
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
95
74
|
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
75
|
);
|
|
97
76
|
}
|
|
98
|
-
}
|
|
77
|
+
}
|
|
99
78
|
else {
|
|
100
79
|
if (urlSearchParams.has(key)) {
|
|
101
80
|
urlSearchParams.append(key, parameter);
|
|
102
|
-
}
|
|
81
|
+
}
|
|
103
82
|
else {
|
|
104
83
|
urlSearchParams.set(key, parameter);
|
|
105
84
|
}
|
|
106
85
|
}
|
|
107
86
|
}
|
|
108
87
|
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
88
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
114
89
|
const searchParams = new URLSearchParams(url.search);
|
|
115
90
|
setFlattenedQueryParams(searchParams, objects);
|
|
@@ -117,31 +92,33 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
|
117
92
|
}
|
|
118
93
|
|
|
119
94
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
95
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
96
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
97
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
122
98
|
*/
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {
|
|
101
|
+
if (value instanceof Set) {
|
|
102
|
+
return Array.from(value);
|
|
103
|
+
} else {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
123
108
|
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
124
109
|
const nonString = typeof value !== 'string';
|
|
125
110
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
111
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
112
|
: nonString;
|
|
128
113
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
114
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
115
|
: (value || "");
|
|
131
116
|
}
|
|
132
117
|
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @export
|
|
136
|
-
*/
|
|
137
118
|
export const toPathString = function (url: URL) {
|
|
138
119
|
return url.pathname + url.search + url.hash
|
|
139
120
|
}
|
|
140
121
|
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @export
|
|
144
|
-
*/
|
|
145
122
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
123
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
124
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|