@openfilz-sdk/typescript 1.3.29 → 1.3.31
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 +16 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +14 -2
- package/api/quota-administration-api.ts +456 -0
- package/api/quotas-api.ts +121 -0
- package/api/tus-controller-api.ts +8 -4
- package/api.ts +2 -0
- package/dist/api/quota-administration-api.d.ts +214 -0
- package/dist/api/quota-administration-api.js +437 -0
- package/dist/api/quotas-api.d.ts +63 -0
- package/dist/api/quotas-api.js +125 -0
- package/dist/api/tus-controller-api.d.ts +6 -6
- package/dist/api/tus-controller-api.js +2 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/quota-administration-api.d.ts +214 -0
- package/dist/esm/api/quota-administration-api.js +430 -0
- package/dist/esm/api/quotas-api.d.ts +63 -0
- package/dist/esm/api/quotas-api.js +118 -0
- package/dist/esm/api/tus-controller-api.d.ts +6 -6
- package/dist/esm/api/tus-controller-api.js +2 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/error-response.d.ts +16 -0
- package/dist/esm/models/error-response.js +14 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/my-storage-quota.d.ts +24 -0
- package/dist/esm/models/my-storage-quota.js +18 -0
- package/dist/esm/models/quota-overview.d.ts +19 -0
- package/dist/esm/models/quota-overview.js +14 -0
- package/dist/esm/models/quota-usage.d.ts +27 -0
- package/dist/esm/models/quota-usage.js +18 -0
- package/dist/esm/models/quota-user-page.d.ts +18 -0
- package/dist/esm/models/quota-user-page.js +14 -0
- package/dist/esm/models/storage-breakdown.d.ts +2 -0
- package/dist/esm/models/user-quota-request.d.ts +17 -0
- package/dist/esm/models/user-quota-request.js +14 -0
- package/dist/models/error-response.d.ts +16 -0
- package/dist/models/error-response.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/my-storage-quota.d.ts +24 -0
- package/dist/models/my-storage-quota.js +21 -0
- package/dist/models/quota-overview.d.ts +19 -0
- package/dist/models/quota-overview.js +15 -0
- package/dist/models/quota-usage.d.ts +27 -0
- package/dist/models/quota-usage.js +21 -0
- package/dist/models/quota-user-page.d.ts +18 -0
- package/dist/models/quota-user-page.js +15 -0
- package/dist/models/storage-breakdown.d.ts +2 -0
- package/dist/models/user-quota-request.d.ts +17 -0
- package/dist/models/user-quota-request.js +15 -0
- package/docs/ErrorResponse.md +24 -0
- package/docs/MyStorageQuota.md +28 -0
- package/docs/QuotaAdministrationApi.md +275 -0
- package/docs/QuotaOverview.md +30 -0
- package/docs/QuotaUsage.md +34 -0
- package/docs/QuotaUserPage.md +26 -0
- package/docs/QuotasApi.md +52 -0
- package/docs/StorageBreakdown.md +2 -0
- package/docs/TusControllerApi.md +8 -7
- package/docs/UserQuotaRequest.md +20 -0
- package/models/error-response.ts +22 -0
- package/models/index.ts +6 -0
- package/models/my-storage-quota.ts +33 -0
- package/models/quota-overview.ts +25 -0
- package/models/quota-usage.ts +36 -0
- package/models/quota-user-page.ts +26 -0
- package/models/storage-breakdown.ts +4 -0
- package/models/user-quota-request.ts +23 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -20,6 +20,8 @@ api/file-controller-api.ts
|
|
|
20
20
|
api/folder-controller-api.ts
|
|
21
21
|
api/mcp-discovery-controller-api.ts
|
|
22
22
|
api/pdftools-api.ts
|
|
23
|
+
api/quota-administration-api.ts
|
|
24
|
+
api/quotas-api.ts
|
|
23
25
|
api/settings-api.ts
|
|
24
26
|
api/smart-filing-api.ts
|
|
25
27
|
api/tus-controller-api.ts
|
|
@@ -83,6 +85,7 @@ docs/ESignTemplatesApi.md
|
|
|
83
85
|
docs/ElementInfo.md
|
|
84
86
|
docs/EmbeddingBackfillRequest.md
|
|
85
87
|
docs/EmbeddingBackfillStatus.md
|
|
88
|
+
docs/ErrorResponse.md
|
|
86
89
|
docs/Facet.md
|
|
87
90
|
docs/FavoritesApi.md
|
|
88
91
|
docs/FileControllerApi.md
|
|
@@ -105,6 +108,7 @@ docs/MergeRequest.md
|
|
|
105
108
|
docs/MergeSource.md
|
|
106
109
|
docs/MoveAudit.md
|
|
107
110
|
docs/MoveRequest.md
|
|
111
|
+
docs/MyStorageQuota.md
|
|
108
112
|
docs/MyTasksCountDTO.md
|
|
109
113
|
docs/OrganizeRequest.md
|
|
110
114
|
docs/OutputTarget.md
|
|
@@ -118,6 +122,11 @@ docs/PdfPageInfo.md
|
|
|
118
122
|
docs/PdfTransformAudit.md
|
|
119
123
|
docs/PerDefinition.md
|
|
120
124
|
docs/PublicSignatureView.md
|
|
125
|
+
docs/QuotaAdministrationApi.md
|
|
126
|
+
docs/QuotaOverview.md
|
|
127
|
+
docs/QuotaUsage.md
|
|
128
|
+
docs/QuotaUserPage.md
|
|
129
|
+
docs/QuotasApi.md
|
|
121
130
|
docs/ReassignTaskRequest.md
|
|
122
131
|
docs/RenameAudit.md
|
|
123
132
|
docs/RenameRequest.md
|
|
@@ -168,6 +177,7 @@ docs/UpdateMetadataAudit.md
|
|
|
168
177
|
docs/UpdateMetadataRequest.md
|
|
169
178
|
docs/UploadAudit.md
|
|
170
179
|
docs/UploadResponse.md
|
|
180
|
+
docs/UserQuotaRequest.md
|
|
171
181
|
docs/VerifyOtpRequest.md
|
|
172
182
|
docs/Vote.md
|
|
173
183
|
docs/WorkflowAction.md
|
|
@@ -235,6 +245,7 @@ models/document-version-info.ts
|
|
|
235
245
|
models/element-info.ts
|
|
236
246
|
models/embedding-backfill-request.ts
|
|
237
247
|
models/embedding-backfill-status.ts
|
|
248
|
+
models/error-response.ts
|
|
238
249
|
models/facet.ts
|
|
239
250
|
models/file-type-stats.ts
|
|
240
251
|
models/filing-outcome.ts
|
|
@@ -254,6 +265,7 @@ models/merge-request.ts
|
|
|
254
265
|
models/merge-source.ts
|
|
255
266
|
models/move-audit.ts
|
|
256
267
|
models/move-request.ts
|
|
268
|
+
models/my-storage-quota.ts
|
|
257
269
|
models/my-tasks-count-dto.ts
|
|
258
270
|
models/organize-request.ts
|
|
259
271
|
models/output-target.ts
|
|
@@ -266,6 +278,9 @@ models/pdf-page-info.ts
|
|
|
266
278
|
models/pdf-transform-audit.ts
|
|
267
279
|
models/per-definition.ts
|
|
268
280
|
models/public-signature-view.ts
|
|
281
|
+
models/quota-overview.ts
|
|
282
|
+
models/quota-usage.ts
|
|
283
|
+
models/quota-user-page.ts
|
|
269
284
|
models/reassign-task-request.ts
|
|
270
285
|
models/rename-audit.ts
|
|
271
286
|
models/rename-request.ts
|
|
@@ -313,6 +328,7 @@ models/update-metadata-audit.ts
|
|
|
313
328
|
models/update-metadata-request.ts
|
|
314
329
|
models/upload-audit.ts
|
|
315
330
|
models/upload-response.ts
|
|
331
|
+
models/user-quota-request.ts
|
|
316
332
|
models/verify-otp-request.ts
|
|
317
333
|
models/vote.ts
|
|
318
334
|
models/workflow-action-failure-audit.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fd80ce671912b5791db2da2fe2b4559ac53317cfbd48ef51d48992c63ec23beb
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript@1.3.
|
|
1
|
+
## @openfilz-sdk/typescript@1.3.31
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript@1.3.
|
|
39
|
+
npm install @openfilz-sdk/typescript@1.3.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -142,6 +142,12 @@ Class | Method | HTTP request | Description
|
|
|
142
142
|
*PDFToolsApi* | [**organize**](docs/PDFToolsApi.md#organize) | **POST** /api/v1/pdf/organize | Reorganise the pages of a PDF
|
|
143
143
|
*PDFToolsApi* | [**rotate**](docs/PDFToolsApi.md#rotate) | **POST** /api/v1/pdf/rotate | Rotate pages
|
|
144
144
|
*PDFToolsApi* | [**split**](docs/PDFToolsApi.md#split) | **POST** /api/v1/pdf/split | Split a PDF
|
|
145
|
+
*QuotaAdministrationApi* | [**clearUserQuota**](docs/QuotaAdministrationApi.md#clearuserquota) | **DELETE** /api/v1/admin/quotas/users/{username} | Remove one user\'s own limit
|
|
146
|
+
*QuotaAdministrationApi* | [**getUser**](docs/QuotaAdministrationApi.md#getuser) | **GET** /api/v1/admin/quotas/users/{username} | Get one user\'s storage
|
|
147
|
+
*QuotaAdministrationApi* | [**listUsers**](docs/QuotaAdministrationApi.md#listusers) | **GET** /api/v1/admin/quotas/users | List users\' storage
|
|
148
|
+
*QuotaAdministrationApi* | [**overview**](docs/QuotaAdministrationApi.md#overview) | **GET** /api/v1/admin/quotas | Quota overview
|
|
149
|
+
*QuotaAdministrationApi* | [**setUserQuota**](docs/QuotaAdministrationApi.md#setuserquota) | **PUT** /api/v1/admin/quotas/users/{username} | Set one user\'s own limit
|
|
150
|
+
*QuotasApi* | [**myQuota**](docs/QuotasApi.md#myquota) | **GET** /api/v1/quotas/me | Get my storage quota
|
|
145
151
|
*SettingsApi* | [**get1**](docs/SettingsApi.md#get1) | **GET** /api/v1/settings/ai/preferences | The caller\'s smart-filing preferences
|
|
146
152
|
*SettingsApi* | [**getSettings1**](docs/SettingsApi.md#getsettings1) | **GET** /api/v1/settings | Get user\'s settings
|
|
147
153
|
*SettingsApi* | [**save**](docs/SettingsApi.md#save) | **PUT** /api/v1/settings/ai/preferences | Save the caller\'s smart-filing preferences
|
|
@@ -224,6 +230,7 @@ Class | Method | HTTP request | Description
|
|
|
224
230
|
- [ElementInfo](docs/ElementInfo.md)
|
|
225
231
|
- [EmbeddingBackfillRequest](docs/EmbeddingBackfillRequest.md)
|
|
226
232
|
- [EmbeddingBackfillStatus](docs/EmbeddingBackfillStatus.md)
|
|
233
|
+
- [ErrorResponse](docs/ErrorResponse.md)
|
|
227
234
|
- [Facet](docs/Facet.md)
|
|
228
235
|
- [FileTypeStats](docs/FileTypeStats.md)
|
|
229
236
|
- [FilingOutcome](docs/FilingOutcome.md)
|
|
@@ -242,6 +249,7 @@ Class | Method | HTTP request | Description
|
|
|
242
249
|
- [MergeSource](docs/MergeSource.md)
|
|
243
250
|
- [MoveAudit](docs/MoveAudit.md)
|
|
244
251
|
- [MoveRequest](docs/MoveRequest.md)
|
|
252
|
+
- [MyStorageQuota](docs/MyStorageQuota.md)
|
|
245
253
|
- [MyTasksCountDTO](docs/MyTasksCountDTO.md)
|
|
246
254
|
- [OrganizeRequest](docs/OrganizeRequest.md)
|
|
247
255
|
- [OutputTarget](docs/OutputTarget.md)
|
|
@@ -254,6 +262,9 @@ Class | Method | HTTP request | Description
|
|
|
254
262
|
- [PdfTransformAudit](docs/PdfTransformAudit.md)
|
|
255
263
|
- [PerDefinition](docs/PerDefinition.md)
|
|
256
264
|
- [PublicSignatureView](docs/PublicSignatureView.md)
|
|
265
|
+
- [QuotaOverview](docs/QuotaOverview.md)
|
|
266
|
+
- [QuotaUsage](docs/QuotaUsage.md)
|
|
267
|
+
- [QuotaUserPage](docs/QuotaUserPage.md)
|
|
257
268
|
- [ReassignTaskRequest](docs/ReassignTaskRequest.md)
|
|
258
269
|
- [RenameAudit](docs/RenameAudit.md)
|
|
259
270
|
- [RenameRequest](docs/RenameRequest.md)
|
|
@@ -301,6 +312,7 @@ Class | Method | HTTP request | Description
|
|
|
301
312
|
- [UpdateMetadataRequest](docs/UpdateMetadataRequest.md)
|
|
302
313
|
- [UploadAudit](docs/UploadAudit.md)
|
|
303
314
|
- [UploadResponse](docs/UploadResponse.md)
|
|
315
|
+
- [UserQuotaRequest](docs/UserQuotaRequest.md)
|
|
304
316
|
- [VerifyOtpRequest](docs/VerifyOtpRequest.md)
|
|
305
317
|
- [Vote](docs/Vote.md)
|
|
306
318
|
- [WorkflowAction](docs/WorkflowAction.md)
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { QuotaOverview } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { QuotaUsage } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { QuotaUserPage } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { UserQuotaRequest } from '../models';
|
|
32
|
+
/**
|
|
33
|
+
* QuotaAdministrationApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
export const QuotaAdministrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* The group or default limit applies again.
|
|
39
|
+
* @summary Remove one user\'s own limit
|
|
40
|
+
* @param {string} username
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
clearUserQuota: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'username' is not null or undefined
|
|
46
|
+
assertParamExists('clearUserQuota', 'username', username)
|
|
47
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
48
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
57
|
+
const localVarHeaderParameter = {} as any;
|
|
58
|
+
const localVarQueryParameter = {} as any;
|
|
59
|
+
|
|
60
|
+
// authentication keycloak_auth required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63
|
+
|
|
64
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
65
|
+
|
|
66
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
url: toPathString(localVarUrlObj),
|
|
72
|
+
options: localVarRequestOptions,
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @summary Get one user\'s storage
|
|
78
|
+
* @param {string} username
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
getUser: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
83
|
+
// verify required parameter 'username' is not null or undefined
|
|
84
|
+
assertParamExists('getUser', 'username', username)
|
|
85
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
86
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
87
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
88
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
89
|
+
let baseOptions;
|
|
90
|
+
if (configuration) {
|
|
91
|
+
baseOptions = configuration.baseOptions;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
95
|
+
const localVarHeaderParameter = {} as any;
|
|
96
|
+
const localVarQueryParameter = {} as any;
|
|
97
|
+
|
|
98
|
+
// authentication keycloak_auth required
|
|
99
|
+
// http bearer authentication required
|
|
100
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
101
|
+
|
|
102
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
103
|
+
|
|
104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
url: toPathString(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
115
|
+
* @summary List users\' storage
|
|
116
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
117
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
118
|
+
* @param {string} [order] asc | desc
|
|
119
|
+
* @param {number} [page]
|
|
120
|
+
* @param {number} [size]
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
listUsers: async (search?: string, sort?: string, order?: string, page?: number, size?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
125
|
+
const localVarPath = `/api/v1/admin/quotas/users`;
|
|
126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
127
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
128
|
+
let baseOptions;
|
|
129
|
+
if (configuration) {
|
|
130
|
+
baseOptions = configuration.baseOptions;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
134
|
+
const localVarHeaderParameter = {} as any;
|
|
135
|
+
const localVarQueryParameter = {} as any;
|
|
136
|
+
|
|
137
|
+
// authentication keycloak_auth required
|
|
138
|
+
// http bearer authentication required
|
|
139
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
140
|
+
|
|
141
|
+
if (search !== undefined) {
|
|
142
|
+
localVarQueryParameter['search'] = search;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (sort !== undefined) {
|
|
146
|
+
localVarQueryParameter['sort'] = sort;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (order !== undefined) {
|
|
150
|
+
localVarQueryParameter['order'] = order;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (page !== undefined) {
|
|
154
|
+
localVarQueryParameter['page'] = page;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (size !== undefined) {
|
|
158
|
+
localVarQueryParameter['size'] = size;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
162
|
+
|
|
163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
url: toPathString(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions,
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
174
|
+
* @summary Quota overview
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
overview: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
179
|
+
const localVarPath = `/api/v1/admin/quotas`;
|
|
180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
182
|
+
let baseOptions;
|
|
183
|
+
if (configuration) {
|
|
184
|
+
baseOptions = configuration.baseOptions;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
188
|
+
const localVarHeaderParameter = {} as any;
|
|
189
|
+
const localVarQueryParameter = {} as any;
|
|
190
|
+
|
|
191
|
+
// authentication keycloak_auth required
|
|
192
|
+
// http bearer authentication required
|
|
193
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
194
|
+
|
|
195
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
196
|
+
|
|
197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
url: toPathString(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
208
|
+
* @summary Set one user\'s own limit
|
|
209
|
+
* @param {string} username
|
|
210
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
setUserQuota: async (username: string, userQuotaRequest: UserQuotaRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
215
|
+
// verify required parameter 'username' is not null or undefined
|
|
216
|
+
assertParamExists('setUserQuota', 'username', username)
|
|
217
|
+
// verify required parameter 'userQuotaRequest' is not null or undefined
|
|
218
|
+
assertParamExists('setUserQuota', 'userQuotaRequest', userQuotaRequest)
|
|
219
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
220
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
222
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
223
|
+
let baseOptions;
|
|
224
|
+
if (configuration) {
|
|
225
|
+
baseOptions = configuration.baseOptions;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
229
|
+
const localVarHeaderParameter = {} as any;
|
|
230
|
+
const localVarQueryParameter = {} as any;
|
|
231
|
+
|
|
232
|
+
// authentication keycloak_auth required
|
|
233
|
+
// http bearer authentication required
|
|
234
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
235
|
+
|
|
236
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
237
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
238
|
+
|
|
239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
242
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userQuotaRequest, localVarRequestOptions, configuration)
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
url: toPathString(localVarUrlObj),
|
|
246
|
+
options: localVarRequestOptions,
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* QuotaAdministrationApi - functional programming interface
|
|
254
|
+
*/
|
|
255
|
+
export const QuotaAdministrationApiFp = function(configuration?: Configuration) {
|
|
256
|
+
const localVarAxiosParamCreator = QuotaAdministrationApiAxiosParamCreator(configuration)
|
|
257
|
+
return {
|
|
258
|
+
/**
|
|
259
|
+
* The group or default limit applies again.
|
|
260
|
+
* @summary Remove one user\'s own limit
|
|
261
|
+
* @param {string} username
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
async clearUserQuota(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUsage>> {
|
|
266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.clearUserQuota(username, options);
|
|
267
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
268
|
+
const localVarOperationServerBasePath = operationServerMap['QuotaAdministrationApi.clearUserQuota']?.[localVarOperationServerIndex]?.url;
|
|
269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @summary Get one user\'s storage
|
|
274
|
+
* @param {string} username
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
async getUser(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUsage>> {
|
|
279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(username, options);
|
|
280
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
281
|
+
const localVarOperationServerBasePath = operationServerMap['QuotaAdministrationApi.getUser']?.[localVarOperationServerIndex]?.url;
|
|
282
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
286
|
+
* @summary List users\' storage
|
|
287
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
288
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
289
|
+
* @param {string} [order] asc | desc
|
|
290
|
+
* @param {number} [page]
|
|
291
|
+
* @param {number} [size]
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
async listUsers(search?: string, sort?: string, order?: string, page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUserPage>> {
|
|
296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(search, sort, order, page, size, options);
|
|
297
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
298
|
+
const localVarOperationServerBasePath = operationServerMap['QuotaAdministrationApi.listUsers']?.[localVarOperationServerIndex]?.url;
|
|
299
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
303
|
+
* @summary Quota overview
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
async overview(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaOverview>> {
|
|
308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.overview(options);
|
|
309
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
310
|
+
const localVarOperationServerBasePath = operationServerMap['QuotaAdministrationApi.overview']?.[localVarOperationServerIndex]?.url;
|
|
311
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
312
|
+
},
|
|
313
|
+
/**
|
|
314
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
315
|
+
* @summary Set one user\'s own limit
|
|
316
|
+
* @param {string} username
|
|
317
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
async setUserQuota(username: string, userQuotaRequest: UserQuotaRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuotaUsage>> {
|
|
322
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setUserQuota(username, userQuotaRequest, options);
|
|
323
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
324
|
+
const localVarOperationServerBasePath = operationServerMap['QuotaAdministrationApi.setUserQuota']?.[localVarOperationServerIndex]?.url;
|
|
325
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
326
|
+
},
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* QuotaAdministrationApi - factory interface
|
|
332
|
+
*/
|
|
333
|
+
export const QuotaAdministrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
334
|
+
const localVarFp = QuotaAdministrationApiFp(configuration)
|
|
335
|
+
return {
|
|
336
|
+
/**
|
|
337
|
+
* The group or default limit applies again.
|
|
338
|
+
* @summary Remove one user\'s own limit
|
|
339
|
+
* @param {string} username
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
clearUserQuota(username: string, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUsage> {
|
|
344
|
+
return localVarFp.clearUserQuota(username, options).then((request) => request(axios, basePath));
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @summary Get one user\'s storage
|
|
349
|
+
* @param {string} username
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
getUser(username: string, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUsage> {
|
|
354
|
+
return localVarFp.getUser(username, options).then((request) => request(axios, basePath));
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
358
|
+
* @summary List users\' storage
|
|
359
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
360
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
361
|
+
* @param {string} [order] asc | desc
|
|
362
|
+
* @param {number} [page]
|
|
363
|
+
* @param {number} [size]
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
listUsers(search?: string, sort?: string, order?: string, page?: number, size?: number, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUserPage> {
|
|
368
|
+
return localVarFp.listUsers(search, sort, order, page, size, options).then((request) => request(axios, basePath));
|
|
369
|
+
},
|
|
370
|
+
/**
|
|
371
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
372
|
+
* @summary Quota overview
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
overview(options?: RawAxiosRequestConfig): AxiosPromise<QuotaOverview> {
|
|
377
|
+
return localVarFp.overview(options).then((request) => request(axios, basePath));
|
|
378
|
+
},
|
|
379
|
+
/**
|
|
380
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
381
|
+
* @summary Set one user\'s own limit
|
|
382
|
+
* @param {string} username
|
|
383
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
setUserQuota(username: string, userQuotaRequest: UserQuotaRequest, options?: RawAxiosRequestConfig): AxiosPromise<QuotaUsage> {
|
|
388
|
+
return localVarFp.setUserQuota(username, userQuotaRequest, options).then((request) => request(axios, basePath));
|
|
389
|
+
},
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* QuotaAdministrationApi - object-oriented interface
|
|
395
|
+
*/
|
|
396
|
+
export class QuotaAdministrationApi extends BaseAPI {
|
|
397
|
+
/**
|
|
398
|
+
* The group or default limit applies again.
|
|
399
|
+
* @summary Remove one user\'s own limit
|
|
400
|
+
* @param {string} username
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
public clearUserQuota(username: string, options?: RawAxiosRequestConfig) {
|
|
405
|
+
return QuotaAdministrationApiFp(this.configuration).clearUserQuota(username, options).then((request) => request(this.axios, this.basePath));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @summary Get one user\'s storage
|
|
411
|
+
* @param {string} username
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
public getUser(username: string, options?: RawAxiosRequestConfig) {
|
|
416
|
+
return QuotaAdministrationApiFp(this.configuration).getUser(username, options).then((request) => request(this.axios, this.basePath));
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
421
|
+
* @summary List users\' storage
|
|
422
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
423
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
424
|
+
* @param {string} [order] asc | desc
|
|
425
|
+
* @param {number} [page]
|
|
426
|
+
* @param {number} [size]
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
public listUsers(search?: string, sort?: string, order?: string, page?: number, size?: number, options?: RawAxiosRequestConfig) {
|
|
431
|
+
return QuotaAdministrationApiFp(this.configuration).listUsers(search, sort, order, page, size, options).then((request) => request(this.axios, this.basePath));
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
436
|
+
* @summary Quota overview
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
public overview(options?: RawAxiosRequestConfig) {
|
|
441
|
+
return QuotaAdministrationApiFp(this.configuration).overview(options).then((request) => request(this.axios, this.basePath));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
446
|
+
* @summary Set one user\'s own limit
|
|
447
|
+
* @param {string} username
|
|
448
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
public setUserQuota(username: string, userQuotaRequest: UserQuotaRequest, options?: RawAxiosRequestConfig) {
|
|
453
|
+
return QuotaAdministrationApiFp(this.configuration).setUserQuota(username, userQuotaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|