@openfilz-sdk/typescript-ee 1.3.5 → 1.4.1
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 +32 -6
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +36 -7
- package/api/{audit-controller-api.ts → collaboration-audit-controller-api.ts} +42 -42
- package/api/delegated-browse-grants-admin-api.ts +452 -0
- package/api/delegated-browse-grants-end-user-api.ts +426 -0
- package/api/upload-token-controller-api.ts +219 -0
- package/api/user-privacy-api.ts +196 -0
- package/api/webhook-proxy-controller-api.ts +523 -0
- package/api.ts +6 -1
- package/dist/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
- package/dist/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +41 -41
- package/dist/api/delegated-browse-grants-admin-api.d.ts +215 -0
- package/dist/api/delegated-browse-grants-admin-api.js +434 -0
- package/dist/api/delegated-browse-grants-end-user-api.d.ts +204 -0
- package/dist/api/delegated-browse-grants-end-user-api.js +416 -0
- package/dist/api/upload-token-controller-api.d.ts +105 -0
- package/dist/api/upload-token-controller-api.js +214 -0
- package/dist/api/user-privacy-api.d.ts +96 -0
- package/dist/api/user-privacy-api.js +195 -0
- package/dist/api/webhook-proxy-controller-api.d.ts +230 -0
- package/dist/api/webhook-proxy-controller-api.js +511 -0
- package/dist/api.d.ts +6 -1
- package/dist/api.js +6 -1
- package/dist/esm/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
- package/dist/esm/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +36 -36
- package/dist/esm/api/delegated-browse-grants-admin-api.d.ts +215 -0
- package/dist/esm/api/delegated-browse-grants-admin-api.js +427 -0
- package/dist/esm/api/delegated-browse-grants-end-user-api.d.ts +204 -0
- package/dist/esm/api/delegated-browse-grants-end-user-api.js +409 -0
- package/dist/esm/api/upload-token-controller-api.d.ts +105 -0
- package/dist/esm/api/upload-token-controller-api.js +207 -0
- package/dist/esm/api/user-privacy-api.d.ts +96 -0
- package/dist/esm/api/user-privacy-api.js +188 -0
- package/dist/esm/api/webhook-proxy-controller-api.d.ts +230 -0
- package/dist/esm/api/webhook-proxy-controller-api.js +504 -0
- package/dist/esm/api.d.ts +6 -1
- package/dist/esm/api.js +6 -1
- package/dist/esm/models/consume-delegated-grant-request.d.ts +15 -0
- package/dist/esm/models/create-delegated-grant-request.d.ts +21 -0
- package/dist/esm/models/create-delegated-grant-request.js +16 -0
- package/dist/esm/models/delegated-folder-node.d.ts +16 -0
- package/dist/esm/models/delegated-folder-node.js +14 -0
- package/dist/esm/models/delegated-grant-dto.d.ts +43 -0
- package/dist/esm/models/delegated-grant-dto.js +24 -0
- package/dist/esm/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
- package/dist/esm/models/enriched-audit-log-details.js +14 -0
- package/dist/esm/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
- package/dist/{models/audit-log.js → esm/models/enriched-audit-log.js} +17 -11
- package/dist/esm/models/index.d.ts +10 -2
- package/dist/esm/models/index.js +10 -2
- package/dist/esm/models/mint-upload-token-request.d.ts +17 -0
- package/dist/esm/models/mint-upload-token-request.js +14 -0
- package/dist/esm/models/notification-dto.d.ts +3 -0
- package/dist/esm/models/notification-dto.js +4 -1
- package/dist/esm/models/search-by-audit-log-request.d.ts +15 -6
- package/dist/esm/models/search-by-audit-log-request.js +15 -6
- package/dist/esm/models/update-user-privacy-request.d.ts +14 -0
- package/dist/esm/models/update-user-privacy-request.js +14 -0
- package/dist/esm/models/upload-token-response.d.ts +18 -0
- package/dist/esm/models/upload-token-response.js +14 -0
- package/dist/esm/models/user-privacy-dto.d.ts +14 -0
- package/dist/esm/models/user-privacy-dto.js +14 -0
- package/dist/models/consume-delegated-grant-request.d.ts +15 -0
- package/dist/models/create-delegated-grant-request.d.ts +21 -0
- package/dist/models/create-delegated-grant-request.js +19 -0
- package/dist/models/delegated-folder-node.d.ts +16 -0
- package/dist/models/delegated-folder-node.js +15 -0
- package/dist/models/delegated-grant-dto.d.ts +43 -0
- package/dist/models/delegated-grant-dto.js +27 -0
- package/dist/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
- package/dist/models/enriched-audit-log-details.js +15 -0
- package/dist/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
- package/dist/{esm/models/audit-log.js → models/enriched-audit-log.js} +20 -8
- package/dist/models/index.d.ts +10 -2
- package/dist/models/index.js +10 -2
- package/dist/models/mint-upload-token-request.d.ts +17 -0
- package/dist/models/mint-upload-token-request.js +15 -0
- package/dist/models/notification-dto.d.ts +3 -0
- package/dist/models/notification-dto.js +4 -1
- package/dist/models/search-by-audit-log-request.d.ts +15 -6
- package/dist/models/search-by-audit-log-request.js +15 -6
- package/dist/models/update-user-privacy-request.d.ts +14 -0
- package/dist/models/update-user-privacy-request.js +15 -0
- package/dist/models/upload-token-response.d.ts +18 -0
- package/dist/models/upload-token-response.js +15 -0
- package/dist/models/user-privacy-dto.d.ts +14 -0
- package/dist/models/user-privacy-dto.js +15 -0
- package/docs/{AuditControllerApi.md → CollaborationAuditControllerApi.md} +16 -16
- package/docs/ConsumeDelegatedGrantRequest.md +22 -0
- package/docs/CreateDelegatedGrantRequest.md +26 -0
- package/docs/DelegatedBrowseGrantsAdminApi.md +275 -0
- package/docs/DelegatedBrowseGrantsEndUserApi.md +266 -0
- package/docs/DelegatedFolderNode.md +24 -0
- package/docs/DelegatedGrantDTO.md +52 -0
- package/docs/{AuditLog.md → EnrichedAuditLog.md} +9 -5
- package/docs/{AuditLogDetailsOneOf.md → EnrichedAuditLogDetails.md} +3 -3
- package/docs/MintUploadTokenRequest.md +26 -0
- package/docs/UpdateUserPrivacyRequest.md +20 -0
- package/docs/UploadTokenControllerApi.md +115 -0
- package/docs/UploadTokenResponse.md +28 -0
- package/docs/UserPrivacyApi.md +104 -0
- package/docs/UserPrivacyDTO.md +20 -0
- package/docs/WebhookProxyControllerApi.md +364 -0
- package/models/consume-delegated-grant-request.ts +21 -0
- package/models/create-delegated-grant-request.ts +30 -0
- package/models/delegated-folder-node.ts +22 -0
- package/models/delegated-grant-dto.ts +53 -0
- package/models/{audit-log-details-one-of.ts → enriched-audit-log-details.ts} +2 -20
- package/models/{audit-log.ts → enriched-audit-log.ts} +27 -16
- package/models/index.ts +10 -2
- package/models/mint-upload-token-request.ts +23 -0
- package/models/notification-dto.ts +4 -1
- package/models/search-by-audit-log-request.ts +15 -6
- package/models/update-user-privacy-request.ts +20 -0
- package/models/upload-token-response.ts +24 -0
- package/models/user-privacy-dto.ts +20 -0
- package/package.json +1 -1
- /package/dist/esm/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
- /package/dist/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
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.UploadTokenControllerApi = exports.UploadTokenControllerApiFactory = exports.UploadTokenControllerApiFp = exports.UploadTokenControllerApiAxiosParamCreator = 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
|
+
* UploadTokenControllerApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const UploadTokenControllerApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Issues a one-shot HS256 JWT scoped to a single upload into a single folder. Caller must hold the UPLOAD_TOKEN_ISSUER realm role.
|
|
39
|
+
* @summary Mint a scoped upload token
|
|
40
|
+
* @param {MintUploadTokenRequest} mintUploadTokenRequest
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
mintUploadToken: (mintUploadTokenRequest_1, ...args_1) => __awaiter(this, [mintUploadTokenRequest_1, ...args_1], void 0, function* (mintUploadTokenRequest, options = {}) {
|
|
45
|
+
// verify required parameter 'mintUploadTokenRequest' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('mintUploadToken', 'mintUploadTokenRequest', mintUploadTokenRequest);
|
|
47
|
+
const localVarPath = `/api/v1/upload-tokens`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication keycloak_auth required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
60
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
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
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mintUploadTokenRequest, localVarRequestOptions, configuration);
|
|
66
|
+
return {
|
|
67
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
* Anonymous-callable endpoint authenticated by the scoped JWT minted via POST /api/v1/upload-tokens. Forces the target folder to the one baked into the token. One-shot — replays return 401.
|
|
73
|
+
* @summary Upload a single document with a scoped upload token
|
|
74
|
+
* @param {File} file
|
|
75
|
+
* @param {string} [metadata]
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
uploadWithToken: (file_1, metadata_1, ...args_1) => __awaiter(this, [file_1, metadata_1, ...args_1], void 0, function* (file, metadata, options = {}) {
|
|
80
|
+
// verify required parameter 'file' is not null or undefined
|
|
81
|
+
(0, common_1.assertParamExists)('uploadWithToken', 'file', file);
|
|
82
|
+
const localVarPath = `/api/v1/upload-tokens/upload`;
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
93
|
+
// authentication keycloak_auth required
|
|
94
|
+
// http bearer authentication required
|
|
95
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
96
|
+
if (file !== undefined) {
|
|
97
|
+
localVarFormParams.append('file', file);
|
|
98
|
+
}
|
|
99
|
+
if (metadata !== undefined) {
|
|
100
|
+
localVarFormParams.append('metadata', metadata);
|
|
101
|
+
}
|
|
102
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
103
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
104
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
107
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
108
|
+
return {
|
|
109
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
};
|
|
112
|
+
}),
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
exports.UploadTokenControllerApiAxiosParamCreator = UploadTokenControllerApiAxiosParamCreator;
|
|
116
|
+
/**
|
|
117
|
+
* UploadTokenControllerApi - functional programming interface
|
|
118
|
+
*/
|
|
119
|
+
const UploadTokenControllerApiFp = function (configuration) {
|
|
120
|
+
const localVarAxiosParamCreator = (0, exports.UploadTokenControllerApiAxiosParamCreator)(configuration);
|
|
121
|
+
return {
|
|
122
|
+
/**
|
|
123
|
+
* Issues a one-shot HS256 JWT scoped to a single upload into a single folder. Caller must hold the UPLOAD_TOKEN_ISSUER realm role.
|
|
124
|
+
* @summary Mint a scoped upload token
|
|
125
|
+
* @param {MintUploadTokenRequest} mintUploadTokenRequest
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
mintUploadToken(mintUploadTokenRequest, options) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
var _a, _b, _c;
|
|
132
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mintUploadToken(mintUploadTokenRequest, options);
|
|
133
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
134
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UploadTokenControllerApi.mintUploadToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
135
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* Anonymous-callable endpoint authenticated by the scoped JWT minted via POST /api/v1/upload-tokens. Forces the target folder to the one baked into the token. One-shot — replays return 401.
|
|
140
|
+
* @summary Upload a single document with a scoped upload token
|
|
141
|
+
* @param {File} file
|
|
142
|
+
* @param {string} [metadata]
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
uploadWithToken(file, metadata, options) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
var _a, _b, _c;
|
|
149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadWithToken(file, metadata, options);
|
|
150
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
151
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UploadTokenControllerApi.uploadWithToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
152
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
exports.UploadTokenControllerApiFp = UploadTokenControllerApiFp;
|
|
158
|
+
/**
|
|
159
|
+
* UploadTokenControllerApi - factory interface
|
|
160
|
+
*/
|
|
161
|
+
const UploadTokenControllerApiFactory = function (configuration, basePath, axios) {
|
|
162
|
+
const localVarFp = (0, exports.UploadTokenControllerApiFp)(configuration);
|
|
163
|
+
return {
|
|
164
|
+
/**
|
|
165
|
+
* Issues a one-shot HS256 JWT scoped to a single upload into a single folder. Caller must hold the UPLOAD_TOKEN_ISSUER realm role.
|
|
166
|
+
* @summary Mint a scoped upload token
|
|
167
|
+
* @param {MintUploadTokenRequest} mintUploadTokenRequest
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
mintUploadToken(mintUploadTokenRequest, options) {
|
|
172
|
+
return localVarFp.mintUploadToken(mintUploadTokenRequest, options).then((request) => request(axios, basePath));
|
|
173
|
+
},
|
|
174
|
+
/**
|
|
175
|
+
* Anonymous-callable endpoint authenticated by the scoped JWT minted via POST /api/v1/upload-tokens. Forces the target folder to the one baked into the token. One-shot — replays return 401.
|
|
176
|
+
* @summary Upload a single document with a scoped upload token
|
|
177
|
+
* @param {File} file
|
|
178
|
+
* @param {string} [metadata]
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
uploadWithToken(file, metadata, options) {
|
|
183
|
+
return localVarFp.uploadWithToken(file, metadata, options).then((request) => request(axios, basePath));
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
exports.UploadTokenControllerApiFactory = UploadTokenControllerApiFactory;
|
|
188
|
+
/**
|
|
189
|
+
* UploadTokenControllerApi - object-oriented interface
|
|
190
|
+
*/
|
|
191
|
+
class UploadTokenControllerApi extends base_1.BaseAPI {
|
|
192
|
+
/**
|
|
193
|
+
* Issues a one-shot HS256 JWT scoped to a single upload into a single folder. Caller must hold the UPLOAD_TOKEN_ISSUER realm role.
|
|
194
|
+
* @summary Mint a scoped upload token
|
|
195
|
+
* @param {MintUploadTokenRequest} mintUploadTokenRequest
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
mintUploadToken(mintUploadTokenRequest, options) {
|
|
200
|
+
return (0, exports.UploadTokenControllerApiFp)(this.configuration).mintUploadToken(mintUploadTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Anonymous-callable endpoint authenticated by the scoped JWT minted via POST /api/v1/upload-tokens. Forces the target folder to the one baked into the token. One-shot — replays return 401.
|
|
204
|
+
* @summary Upload a single document with a scoped upload token
|
|
205
|
+
* @param {File} file
|
|
206
|
+
* @param {string} [metadata]
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
uploadWithToken(file, metadata, options) {
|
|
211
|
+
return (0, exports.UploadTokenControllerApiFp)(this.configuration).uploadWithToken(file, metadata, options).then((request) => request(this.axios, this.basePath));
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
exports.UploadTokenControllerApi = UploadTokenControllerApi;
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { UpdateUserPrivacyRequest } from '../models';
|
|
16
|
+
import type { UserPrivacyDTO } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* UserPrivacyApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const UserPrivacyApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Read my privacy preferences
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
get: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
/**
|
|
29
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
30
|
+
* @summary Update my privacy preferences
|
|
31
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
update: (updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* UserPrivacyApi - functional programming interface
|
|
39
|
+
*/
|
|
40
|
+
export declare const UserPrivacyApiFp: (configuration?: Configuration) => {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Read my privacy preferences
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPrivacyDTO>>;
|
|
48
|
+
/**
|
|
49
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
50
|
+
* @summary Update my privacy preferences
|
|
51
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPrivacyDTO>>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* UserPrivacyApi - factory interface
|
|
59
|
+
*/
|
|
60
|
+
export declare const UserPrivacyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @summary Read my privacy preferences
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
get(options?: RawAxiosRequestConfig): AxiosPromise<UserPrivacyDTO>;
|
|
68
|
+
/**
|
|
69
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
70
|
+
* @summary Update my privacy preferences
|
|
71
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPrivacyDTO>;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* UserPrivacyApi - object-oriented interface
|
|
79
|
+
*/
|
|
80
|
+
export declare class UserPrivacyApi extends BaseAPI {
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Read my privacy preferences
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
get(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPrivacyDTO, any, {}>>;
|
|
88
|
+
/**
|
|
89
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
90
|
+
* @summary Update my privacy preferences
|
|
91
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPrivacyDTO, any, {}>>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
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.UserPrivacyApi = exports.UserPrivacyApiFactory = exports.UserPrivacyApiFp = exports.UserPrivacyApiAxiosParamCreator = 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
|
+
* UserPrivacyApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const UserPrivacyApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Read my privacy preferences
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
get: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
44
|
+
const localVarPath = `/api/v1/users/me/privacy`;
|
|
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'] = 'application/json';
|
|
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
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
68
|
+
* @summary Update my privacy preferences
|
|
69
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
update: (updateUserPrivacyRequest_1, ...args_1) => __awaiter(this, [updateUserPrivacyRequest_1, ...args_1], void 0, function* (updateUserPrivacyRequest, options = {}) {
|
|
74
|
+
// verify required parameter 'updateUserPrivacyRequest' is not null or undefined
|
|
75
|
+
(0, common_1.assertParamExists)('update', 'updateUserPrivacyRequest', updateUserPrivacyRequest);
|
|
76
|
+
const localVarPath = `/api/v1/users/me/privacy`;
|
|
77
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
79
|
+
let baseOptions;
|
|
80
|
+
if (configuration) {
|
|
81
|
+
baseOptions = configuration.baseOptions;
|
|
82
|
+
}
|
|
83
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
84
|
+
const localVarHeaderParameter = {};
|
|
85
|
+
const localVarQueryParameter = {};
|
|
86
|
+
// authentication keycloak_auth required
|
|
87
|
+
// http bearer authentication required
|
|
88
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
89
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
90
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
91
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
94
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserPrivacyRequest, localVarRequestOptions, configuration);
|
|
95
|
+
return {
|
|
96
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
97
|
+
options: localVarRequestOptions,
|
|
98
|
+
};
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
exports.UserPrivacyApiAxiosParamCreator = UserPrivacyApiAxiosParamCreator;
|
|
103
|
+
/**
|
|
104
|
+
* UserPrivacyApi - functional programming interface
|
|
105
|
+
*/
|
|
106
|
+
const UserPrivacyApiFp = function (configuration) {
|
|
107
|
+
const localVarAxiosParamCreator = (0, exports.UserPrivacyApiAxiosParamCreator)(configuration);
|
|
108
|
+
return {
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @summary Read my privacy preferences
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
get(options) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
var _a, _b, _c;
|
|
118
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.get(options);
|
|
119
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
120
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPrivacyApi.get']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
121
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
122
|
+
});
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
126
|
+
* @summary Update my privacy preferences
|
|
127
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
update(updateUserPrivacyRequest, options) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
var _a, _b, _c;
|
|
134
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.update(updateUserPrivacyRequest, options);
|
|
135
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
136
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPrivacyApi.update']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
137
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
exports.UserPrivacyApiFp = UserPrivacyApiFp;
|
|
143
|
+
/**
|
|
144
|
+
* UserPrivacyApi - factory interface
|
|
145
|
+
*/
|
|
146
|
+
const UserPrivacyApiFactory = function (configuration, basePath, axios) {
|
|
147
|
+
const localVarFp = (0, exports.UserPrivacyApiFp)(configuration);
|
|
148
|
+
return {
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @summary Read my privacy preferences
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
get(options) {
|
|
156
|
+
return localVarFp.get(options).then((request) => request(axios, basePath));
|
|
157
|
+
},
|
|
158
|
+
/**
|
|
159
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
160
|
+
* @summary Update my privacy preferences
|
|
161
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
update(updateUserPrivacyRequest, options) {
|
|
166
|
+
return localVarFp.update(updateUserPrivacyRequest, options).then((request) => request(axios, basePath));
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
exports.UserPrivacyApiFactory = UserPrivacyApiFactory;
|
|
171
|
+
/**
|
|
172
|
+
* UserPrivacyApi - object-oriented interface
|
|
173
|
+
*/
|
|
174
|
+
class UserPrivacyApi extends base_1.BaseAPI {
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @summary Read my privacy preferences
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
get(options) {
|
|
182
|
+
return (0, exports.UserPrivacyApiFp)(this.configuration).get(options).then((request) => request(this.axios, this.basePath));
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
186
|
+
* @summary Update my privacy preferences
|
|
187
|
+
* @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
update(updateUserPrivacyRequest, options) {
|
|
192
|
+
return (0, exports.UserPrivacyApiFp)(this.configuration).update(updateUserPrivacyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.UserPrivacyApi = UserPrivacyApi;
|