@openfilz-sdk/typescript 1.3.28 → 1.3.30
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
|
@@ -0,0 +1,437 @@
|
|
|
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.QuotaAdministrationApi = exports.QuotaAdministrationApiFactory = exports.QuotaAdministrationApiFp = exports.QuotaAdministrationApiAxiosParamCreator = 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
|
+
* QuotaAdministrationApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const QuotaAdministrationApiAxiosParamCreator = function (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: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
45
|
+
// verify required parameter 'username' is not null or undefined
|
|
46
|
+
(0, common_1.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, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication keycloak_auth required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary Get one user\'s storage
|
|
73
|
+
* @param {string} username
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
getUser: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
78
|
+
// verify required parameter 'username' is not null or undefined
|
|
79
|
+
(0, common_1.assertParamExists)('getUser', 'username', username);
|
|
80
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
81
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
89
|
+
const localVarHeaderParameter = {};
|
|
90
|
+
const localVarQueryParameter = {};
|
|
91
|
+
// authentication keycloak_auth required
|
|
92
|
+
// http bearer authentication required
|
|
93
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
94
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
95
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
98
|
+
return {
|
|
99
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
105
|
+
* @summary List users\' storage
|
|
106
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
107
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
108
|
+
* @param {string} [order] asc | desc
|
|
109
|
+
* @param {number} [page]
|
|
110
|
+
* @param {number} [size]
|
|
111
|
+
* @param {*} [options] Override http request option.
|
|
112
|
+
* @throws {RequiredError}
|
|
113
|
+
*/
|
|
114
|
+
listUsers: (search_1, sort_1, order_1, page_1, size_1, ...args_1) => __awaiter(this, [search_1, sort_1, order_1, page_1, size_1, ...args_1], void 0, function* (search, sort, order, page, size, options = {}) {
|
|
115
|
+
const localVarPath = `/api/v1/admin/quotas/users`;
|
|
116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
let baseOptions;
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
}
|
|
122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
123
|
+
const localVarHeaderParameter = {};
|
|
124
|
+
const localVarQueryParameter = {};
|
|
125
|
+
// authentication keycloak_auth required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
128
|
+
if (search !== undefined) {
|
|
129
|
+
localVarQueryParameter['search'] = search;
|
|
130
|
+
}
|
|
131
|
+
if (sort !== undefined) {
|
|
132
|
+
localVarQueryParameter['sort'] = sort;
|
|
133
|
+
}
|
|
134
|
+
if (order !== undefined) {
|
|
135
|
+
localVarQueryParameter['order'] = order;
|
|
136
|
+
}
|
|
137
|
+
if (page !== undefined) {
|
|
138
|
+
localVarQueryParameter['page'] = page;
|
|
139
|
+
}
|
|
140
|
+
if (size !== undefined) {
|
|
141
|
+
localVarQueryParameter['size'] = size;
|
|
142
|
+
}
|
|
143
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
+
return {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
};
|
|
151
|
+
}),
|
|
152
|
+
/**
|
|
153
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
154
|
+
* @summary Quota overview
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
overview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
159
|
+
const localVarPath = `/api/v1/admin/quotas`;
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
167
|
+
const localVarHeaderParameter = {};
|
|
168
|
+
const localVarQueryParameter = {};
|
|
169
|
+
// authentication keycloak_auth required
|
|
170
|
+
// http bearer authentication required
|
|
171
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
172
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
176
|
+
return {
|
|
177
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
178
|
+
options: localVarRequestOptions,
|
|
179
|
+
};
|
|
180
|
+
}),
|
|
181
|
+
/**
|
|
182
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
183
|
+
* @summary Set one user\'s own limit
|
|
184
|
+
* @param {string} username
|
|
185
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
setUserQuota: (username_1, userQuotaRequest_1, ...args_1) => __awaiter(this, [username_1, userQuotaRequest_1, ...args_1], void 0, function* (username, userQuotaRequest, options = {}) {
|
|
190
|
+
// verify required parameter 'username' is not null or undefined
|
|
191
|
+
(0, common_1.assertParamExists)('setUserQuota', 'username', username);
|
|
192
|
+
// verify required parameter 'userQuotaRequest' is not null or undefined
|
|
193
|
+
(0, common_1.assertParamExists)('setUserQuota', 'userQuotaRequest', userQuotaRequest);
|
|
194
|
+
const localVarPath = `/api/v1/admin/quotas/users/{username}`
|
|
195
|
+
.replace('{username}', encodeURIComponent(String(username)));
|
|
196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
198
|
+
let baseOptions;
|
|
199
|
+
if (configuration) {
|
|
200
|
+
baseOptions = configuration.baseOptions;
|
|
201
|
+
}
|
|
202
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
203
|
+
const localVarHeaderParameter = {};
|
|
204
|
+
const localVarQueryParameter = {};
|
|
205
|
+
// authentication keycloak_auth required
|
|
206
|
+
// http bearer authentication required
|
|
207
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
208
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
209
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
213
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userQuotaRequest, localVarRequestOptions, configuration);
|
|
214
|
+
return {
|
|
215
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
216
|
+
options: localVarRequestOptions,
|
|
217
|
+
};
|
|
218
|
+
}),
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
exports.QuotaAdministrationApiAxiosParamCreator = QuotaAdministrationApiAxiosParamCreator;
|
|
222
|
+
/**
|
|
223
|
+
* QuotaAdministrationApi - functional programming interface
|
|
224
|
+
*/
|
|
225
|
+
const QuotaAdministrationApiFp = function (configuration) {
|
|
226
|
+
const localVarAxiosParamCreator = (0, exports.QuotaAdministrationApiAxiosParamCreator)(configuration);
|
|
227
|
+
return {
|
|
228
|
+
/**
|
|
229
|
+
* The group or default limit applies again.
|
|
230
|
+
* @summary Remove one user\'s own limit
|
|
231
|
+
* @param {string} username
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
clearUserQuota(username, options) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
var _a, _b, _c;
|
|
238
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clearUserQuota(username, options);
|
|
239
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
240
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.clearUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
241
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
242
|
+
});
|
|
243
|
+
},
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @summary Get one user\'s storage
|
|
247
|
+
* @param {string} username
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
getUser(username, options) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
var _a, _b, _c;
|
|
254
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(username, options);
|
|
255
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
256
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.getUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
257
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
258
|
+
});
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
262
|
+
* @summary List users\' storage
|
|
263
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
264
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
265
|
+
* @param {string} [order] asc | desc
|
|
266
|
+
* @param {number} [page]
|
|
267
|
+
* @param {number} [size]
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
listUsers(search, sort, order, page, size, options) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
var _a, _b, _c;
|
|
274
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(search, sort, order, page, size, options);
|
|
275
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
276
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
277
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
282
|
+
* @summary Quota overview
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
overview(options) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
var _a, _b, _c;
|
|
289
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.overview(options);
|
|
290
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
291
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.overview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
292
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
293
|
+
});
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
297
|
+
* @summary Set one user\'s own limit
|
|
298
|
+
* @param {string} username
|
|
299
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
setUserQuota(username, userQuotaRequest, options) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
305
|
+
var _a, _b, _c;
|
|
306
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setUserQuota(username, userQuotaRequest, options);
|
|
307
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
308
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotaAdministrationApi.setUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
309
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
310
|
+
});
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
exports.QuotaAdministrationApiFp = QuotaAdministrationApiFp;
|
|
315
|
+
/**
|
|
316
|
+
* QuotaAdministrationApi - factory interface
|
|
317
|
+
*/
|
|
318
|
+
const QuotaAdministrationApiFactory = function (configuration, basePath, axios) {
|
|
319
|
+
const localVarFp = (0, exports.QuotaAdministrationApiFp)(configuration);
|
|
320
|
+
return {
|
|
321
|
+
/**
|
|
322
|
+
* The group or default limit applies again.
|
|
323
|
+
* @summary Remove one user\'s own limit
|
|
324
|
+
* @param {string} username
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
clearUserQuota(username, options) {
|
|
329
|
+
return localVarFp.clearUserQuota(username, options).then((request) => request(axios, basePath));
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @summary Get one user\'s storage
|
|
334
|
+
* @param {string} username
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
getUser(username, options) {
|
|
339
|
+
return localVarFp.getUser(username, options).then((request) => request(axios, basePath));
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
343
|
+
* @summary List users\' storage
|
|
344
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
345
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
346
|
+
* @param {string} [order] asc | desc
|
|
347
|
+
* @param {number} [page]
|
|
348
|
+
* @param {number} [size]
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
*/
|
|
352
|
+
listUsers(search, sort, order, page, size, options) {
|
|
353
|
+
return localVarFp.listUsers(search, sort, order, page, size, options).then((request) => request(axios, basePath));
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
357
|
+
* @summary Quota overview
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
*/
|
|
361
|
+
overview(options) {
|
|
362
|
+
return localVarFp.overview(options).then((request) => request(axios, basePath));
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
366
|
+
* @summary Set one user\'s own limit
|
|
367
|
+
* @param {string} username
|
|
368
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
setUserQuota(username, userQuotaRequest, options) {
|
|
373
|
+
return localVarFp.setUserQuota(username, userQuotaRequest, options).then((request) => request(axios, basePath));
|
|
374
|
+
},
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
exports.QuotaAdministrationApiFactory = QuotaAdministrationApiFactory;
|
|
378
|
+
/**
|
|
379
|
+
* QuotaAdministrationApi - object-oriented interface
|
|
380
|
+
*/
|
|
381
|
+
class QuotaAdministrationApi extends base_1.BaseAPI {
|
|
382
|
+
/**
|
|
383
|
+
* The group or default limit applies again.
|
|
384
|
+
* @summary Remove one user\'s own limit
|
|
385
|
+
* @param {string} username
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
*/
|
|
389
|
+
clearUserQuota(username, options) {
|
|
390
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).clearUserQuota(username, options).then((request) => request(this.axios, this.basePath));
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
*
|
|
394
|
+
* @summary Get one user\'s storage
|
|
395
|
+
* @param {string} username
|
|
396
|
+
* @param {*} [options] Override http request option.
|
|
397
|
+
* @throws {RequiredError}
|
|
398
|
+
*/
|
|
399
|
+
getUser(username, options) {
|
|
400
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).getUser(username, options).then((request) => request(this.axios, this.basePath));
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
|
|
404
|
+
* @summary List users\' storage
|
|
405
|
+
* @param {string} [search] Case-insensitive filter on the user name
|
|
406
|
+
* @param {string} [sort] usage | percent | limit | name
|
|
407
|
+
* @param {string} [order] asc | desc
|
|
408
|
+
* @param {number} [page]
|
|
409
|
+
* @param {number} [size]
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
listUsers(search, sort, order, page, size, options) {
|
|
414
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).listUsers(search, sort, order, page, size, options).then((request) => request(this.axios, this.basePath));
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
|
|
418
|
+
* @summary Quota overview
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
overview(options) {
|
|
423
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).overview(options).then((request) => request(this.axios, this.basePath));
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
|
|
427
|
+
* @summary Set one user\'s own limit
|
|
428
|
+
* @param {string} username
|
|
429
|
+
* @param {UserQuotaRequest} userQuotaRequest
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
*/
|
|
433
|
+
setUserQuota(username, userQuotaRequest, options) {
|
|
434
|
+
return (0, exports.QuotaAdministrationApiFp)(this.configuration).setUserQuota(username, userQuotaRequest, options).then((request) => request(this.axios, this.basePath));
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
exports.QuotaAdministrationApi = QuotaAdministrationApi;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { MyStorageQuota } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* QuotasApi - axios parameter creator
|
|
18
|
+
*/
|
|
19
|
+
export declare const QuotasApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
22
|
+
* @summary Get my storage quota
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
myQuota: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* QuotasApi - functional programming interface
|
|
30
|
+
*/
|
|
31
|
+
export declare const QuotasApiFp: (configuration?: Configuration) => {
|
|
32
|
+
/**
|
|
33
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
34
|
+
* @summary Get my storage quota
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
myQuota(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyStorageQuota>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* QuotasApi - factory interface
|
|
42
|
+
*/
|
|
43
|
+
export declare const QuotasApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
44
|
+
/**
|
|
45
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
46
|
+
* @summary Get my storage quota
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
myQuota(options?: RawAxiosRequestConfig): AxiosPromise<MyStorageQuota>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* QuotasApi - object-oriented interface
|
|
54
|
+
*/
|
|
55
|
+
export declare class QuotasApi extends BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
58
|
+
* @summary Get my storage quota
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
myQuota(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MyStorageQuota, any, {}>>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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.QuotasApi = exports.QuotasApiFactory = exports.QuotasApiFp = exports.QuotasApiAxiosParamCreator = 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
|
+
* QuotasApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const QuotasApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
39
|
+
* @summary Get my storage quota
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
myQuota: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
44
|
+
const localVarPath = `/api/v1/quotas/me`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
52
|
+
const localVarHeaderParameter = {};
|
|
53
|
+
const localVarQueryParameter = {};
|
|
54
|
+
// authentication keycloak_auth required
|
|
55
|
+
// http bearer authentication required
|
|
56
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
57
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
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.QuotasApiAxiosParamCreator = QuotasApiAxiosParamCreator;
|
|
69
|
+
/**
|
|
70
|
+
* QuotasApi - functional programming interface
|
|
71
|
+
*/
|
|
72
|
+
const QuotasApiFp = function (configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = (0, exports.QuotasApiAxiosParamCreator)(configuration);
|
|
74
|
+
return {
|
|
75
|
+
/**
|
|
76
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
77
|
+
* @summary Get my storage quota
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
myQuota(options) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
var _a, _b, _c;
|
|
84
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.myQuota(options);
|
|
85
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
86
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['QuotasApi.myQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
87
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
exports.QuotasApiFp = QuotasApiFp;
|
|
93
|
+
/**
|
|
94
|
+
* QuotasApi - factory interface
|
|
95
|
+
*/
|
|
96
|
+
const QuotasApiFactory = function (configuration, basePath, axios) {
|
|
97
|
+
const localVarFp = (0, exports.QuotasApiFp)(configuration);
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
101
|
+
* @summary Get my storage quota
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
myQuota(options) {
|
|
106
|
+
return localVarFp.myQuota(options).then((request) => request(axios, basePath));
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
exports.QuotasApiFactory = QuotasApiFactory;
|
|
111
|
+
/**
|
|
112
|
+
* QuotasApi - object-oriented interface
|
|
113
|
+
*/
|
|
114
|
+
class QuotasApi extends base_1.BaseAPI {
|
|
115
|
+
/**
|
|
116
|
+
* The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
|
|
117
|
+
* @summary Get my storage quota
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
myQuota(options) {
|
|
122
|
+
return (0, exports.QuotasApiFp)(this.configuration).myQuota(options).then((request) => request(this.axios, this.basePath));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.QuotasApi = QuotasApi;
|