@openfilz-sdk/typescript 1.2.2 → 1.2.4
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 +8 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +8 -2
- package/api/document-version-controller-api.ts +288 -0
- package/api.ts +1 -0
- package/dist/api/document-version-controller-api.d.ts +140 -0
- package/dist/api/document-version-controller-api.js +284 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/document-version-controller-api.d.ts +140 -0
- package/dist/esm/api/document-version-controller-api.js +277 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/audit-log-details-one-of.d.ts +3 -0
- package/dist/esm/models/audit-log.d.ts +1 -0
- package/dist/esm/models/audit-log.js +1 -0
- package/dist/esm/models/document-version-info.d.ts +32 -0
- package/dist/esm/models/document-version-info.js +14 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/restore-version-audit.d.ts +17 -0
- package/dist/esm/models/restore-version-audit.js +14 -0
- package/dist/esm/models/restore-version-response.d.ts +32 -0
- package/dist/esm/models/restore-version-response.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/esm/models/search-by-audit-log-request.js +1 -0
- package/dist/models/audit-log-details-one-of.d.ts +3 -0
- package/dist/models/audit-log.d.ts +1 -0
- package/dist/models/audit-log.js +1 -0
- package/dist/models/document-version-info.d.ts +32 -0
- package/dist/models/document-version-info.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/restore-version-audit.d.ts +17 -0
- package/dist/models/restore-version-audit.js +15 -0
- package/dist/models/restore-version-response.d.ts +32 -0
- package/dist/models/restore-version-response.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/models/search-by-audit-log-request.js +1 -0
- package/docs/AuditLogDetailsOneOf.md +6 -0
- package/docs/CopyAudit.md +2 -0
- package/docs/DocumentVersionControllerApi.md +169 -0
- package/docs/DocumentVersionInfo.md +27 -0
- package/docs/ReplaceAudit.md +2 -0
- package/docs/RestoreVersionAudit.md +27 -0
- package/docs/RestoreVersionResponse.md +27 -0
- package/docs/UploadAudit.md +2 -0
- package/models/audit-log-details-one-of.ts +4 -1
- package/models/audit-log.ts +1 -0
- package/models/document-version-info.ts +38 -0
- package/models/index.ts +3 -0
- package/models/restore-version-audit.ts +26 -0
- package/models/restore-version-response.ts +38 -0
- package/models/search-by-audit-log-request.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,277 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* DocumentVersionControllerApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const DocumentVersionControllerApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Downloads the content of a specific stored version of a file document.
|
|
36
|
+
* @summary Download a specific document version
|
|
37
|
+
* @param {string} documentId
|
|
38
|
+
* @param {string} versionId
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
downloadVersion: (documentId_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, versionId_1, ...args_1], void 0, function* (documentId, versionId, options = {}) {
|
|
43
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
44
|
+
assertParamExists('downloadVersion', 'documentId', documentId);
|
|
45
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
46
|
+
assertParamExists('downloadVersion', 'versionId', versionId);
|
|
47
|
+
const localVarPath = `/api/v1/documents/{documentId}/versions/{versionId}/download`
|
|
48
|
+
.replace('{documentId}', encodeURIComponent(String(documentId)))
|
|
49
|
+
.replace('{versionId}', encodeURIComponent(String(versionId)));
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
58
|
+
const localVarQueryParameter = {};
|
|
59
|
+
// authentication keycloak_auth required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
62
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
63
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
66
|
+
return {
|
|
67
|
+
url: toPathString(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
73
|
+
* @summary List document versions
|
|
74
|
+
* @param {string} documentId
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
listVersions: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
|
|
79
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
80
|
+
assertParamExists('listVersions', 'documentId', documentId);
|
|
81
|
+
const localVarPath = `/api/v1/documents/{documentId}/versions`
|
|
82
|
+
.replace('{documentId}', encodeURIComponent(String(documentId)));
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication keycloak_auth required
|
|
93
|
+
// http bearer authentication required
|
|
94
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
95
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
99
|
+
return {
|
|
100
|
+
url: toPathString(localVarUrlObj),
|
|
101
|
+
options: localVarRequestOptions,
|
|
102
|
+
};
|
|
103
|
+
}),
|
|
104
|
+
/**
|
|
105
|
+
* Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
|
|
106
|
+
* @summary Restore a previous document version
|
|
107
|
+
* @param {string} documentId
|
|
108
|
+
* @param {string} versionId
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
restoreVersion: (documentId_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, versionId_1, ...args_1], void 0, function* (documentId, versionId, options = {}) {
|
|
113
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
114
|
+
assertParamExists('restoreVersion', 'documentId', documentId);
|
|
115
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
116
|
+
assertParamExists('restoreVersion', 'versionId', versionId);
|
|
117
|
+
const localVarPath = `/api/v1/documents/{documentId}/versions/{versionId}/restore`
|
|
118
|
+
.replace('{documentId}', encodeURIComponent(String(documentId)))
|
|
119
|
+
.replace('{versionId}', encodeURIComponent(String(versionId)));
|
|
120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
|
+
let baseOptions;
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
}
|
|
126
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
127
|
+
const localVarHeaderParameter = {};
|
|
128
|
+
const localVarQueryParameter = {};
|
|
129
|
+
// authentication keycloak_auth required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
132
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
136
|
+
return {
|
|
137
|
+
url: toPathString(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
};
|
|
140
|
+
}),
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* DocumentVersionControllerApi - functional programming interface
|
|
145
|
+
*/
|
|
146
|
+
export const DocumentVersionControllerApiFp = function (configuration) {
|
|
147
|
+
const localVarAxiosParamCreator = DocumentVersionControllerApiAxiosParamCreator(configuration);
|
|
148
|
+
return {
|
|
149
|
+
/**
|
|
150
|
+
* Downloads the content of a specific stored version of a file document.
|
|
151
|
+
* @summary Download a specific document version
|
|
152
|
+
* @param {string} documentId
|
|
153
|
+
* @param {string} versionId
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
downloadVersion(documentId, versionId, options) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadVersion(documentId, versionId, options);
|
|
161
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
162
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentVersionControllerApi.downloadVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
163
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
168
|
+
* @summary List document versions
|
|
169
|
+
* @param {string} documentId
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
listVersions(documentId, options) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
var _a, _b, _c;
|
|
176
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listVersions(documentId, options);
|
|
177
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
178
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentVersionControllerApi.listVersions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
|
|
184
|
+
* @summary Restore a previous document version
|
|
185
|
+
* @param {string} documentId
|
|
186
|
+
* @param {string} versionId
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
restoreVersion(documentId, versionId, options) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
var _a, _b, _c;
|
|
193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreVersion(documentId, versionId, options);
|
|
194
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
195
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentVersionControllerApi.restoreVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
196
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
197
|
+
});
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* DocumentVersionControllerApi - factory interface
|
|
203
|
+
*/
|
|
204
|
+
export const DocumentVersionControllerApiFactory = function (configuration, basePath, axios) {
|
|
205
|
+
const localVarFp = DocumentVersionControllerApiFp(configuration);
|
|
206
|
+
return {
|
|
207
|
+
/**
|
|
208
|
+
* Downloads the content of a specific stored version of a file document.
|
|
209
|
+
* @summary Download a specific document version
|
|
210
|
+
* @param {string} documentId
|
|
211
|
+
* @param {string} versionId
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
downloadVersion(documentId, versionId, options) {
|
|
216
|
+
return localVarFp.downloadVersion(documentId, versionId, options).then((request) => request(axios, basePath));
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
220
|
+
* @summary List document versions
|
|
221
|
+
* @param {string} documentId
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
listVersions(documentId, options) {
|
|
226
|
+
return localVarFp.listVersions(documentId, options).then((request) => request(axios, basePath));
|
|
227
|
+
},
|
|
228
|
+
/**
|
|
229
|
+
* Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
|
|
230
|
+
* @summary Restore a previous document version
|
|
231
|
+
* @param {string} documentId
|
|
232
|
+
* @param {string} versionId
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
restoreVersion(documentId, versionId, options) {
|
|
237
|
+
return localVarFp.restoreVersion(documentId, versionId, options).then((request) => request(axios, basePath));
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* DocumentVersionControllerApi - object-oriented interface
|
|
243
|
+
*/
|
|
244
|
+
export class DocumentVersionControllerApi extends BaseAPI {
|
|
245
|
+
/**
|
|
246
|
+
* Downloads the content of a specific stored version of a file document.
|
|
247
|
+
* @summary Download a specific document version
|
|
248
|
+
* @param {string} documentId
|
|
249
|
+
* @param {string} versionId
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
downloadVersion(documentId, versionId, options) {
|
|
254
|
+
return DocumentVersionControllerApiFp(this.configuration).downloadVersion(documentId, versionId, options).then((request) => request(this.axios, this.basePath));
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
258
|
+
* @summary List document versions
|
|
259
|
+
* @param {string} documentId
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
listVersions(documentId, options) {
|
|
264
|
+
return DocumentVersionControllerApiFp(this.configuration).listVersions(documentId, options).then((request) => request(this.axios, this.basePath));
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Restores the selected version as the new latest version. History-preserving: a new version is created on top, no version is deleted, and a RESTORE_DOCUMENT_VERSION audit entry is logged. Restoring the current latest version is rejected (HTTP 400).
|
|
268
|
+
* @summary Restore a previous document version
|
|
269
|
+
* @param {string} documentId
|
|
270
|
+
* @param {string} versionId
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
restoreVersion(documentId, versionId, options) {
|
|
275
|
+
return DocumentVersionControllerApiFp(this.configuration).restoreVersion(documentId, versionId, options).then((request) => request(this.axios, this.basePath));
|
|
276
|
+
}
|
|
277
|
+
}
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './api/audit-controller-api';
|
|
|
13
13
|
export * from './api/dashboard-api';
|
|
14
14
|
export * from './api/document-controller-api';
|
|
15
15
|
export * from './api/document-suggestion-controller-api';
|
|
16
|
+
export * from './api/document-version-controller-api';
|
|
16
17
|
export * from './api/favorites-api';
|
|
17
18
|
export * from './api/file-controller-api';
|
|
18
19
|
export * from './api/folder-controller-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from './api/audit-controller-api';
|
|
|
15
15
|
export * from './api/dashboard-api';
|
|
16
16
|
export * from './api/document-controller-api';
|
|
17
17
|
export * from './api/document-suggestion-controller-api';
|
|
18
|
+
export * from './api/document-version-controller-api';
|
|
18
19
|
export * from './api/favorites-api';
|
|
19
20
|
export * from './api/file-controller-api';
|
|
20
21
|
export * from './api/folder-controller-api';
|
|
@@ -18,6 +18,7 @@ import type { RenameAudit } from './rename-audit';
|
|
|
18
18
|
import type { ReplaceAudit } from './replace-audit';
|
|
19
19
|
import type { UpdateMetadataAudit } from './update-metadata-audit';
|
|
20
20
|
import type { UploadAudit } from './upload-audit';
|
|
21
|
+
import type { RestoreVersionAudit } from './restore-version-audit';
|
|
21
22
|
/**
|
|
22
23
|
* @type AuditLogDetailsOneOf
|
|
23
24
|
*/
|
|
@@ -36,6 +37,8 @@ export type AuditLogDetailsOneOf = {
|
|
|
36
37
|
} & RenameAudit | {
|
|
37
38
|
type: 'replace';
|
|
38
39
|
} & ReplaceAudit | {
|
|
40
|
+
type: 'restoreVersion';
|
|
41
|
+
} & RestoreVersionAudit | {
|
|
39
42
|
type: 'updateMetadata';
|
|
40
43
|
} & UpdateMetadataAudit | {
|
|
41
44
|
type: 'upload';
|
|
@@ -37,6 +37,7 @@ export declare const AuditLogActionEnum: {
|
|
|
37
37
|
readonly MoveFolder: "MOVE_FOLDER";
|
|
38
38
|
readonly UploadDocument: "UPLOAD_DOCUMENT";
|
|
39
39
|
readonly ReplaceDocumentContent: "REPLACE_DOCUMENT_CONTENT";
|
|
40
|
+
readonly RestoreDocumentVersion: "RESTORE_DOCUMENT_VERSION";
|
|
40
41
|
readonly ReplaceDocumentMetadata: "REPLACE_DOCUMENT_METADATA";
|
|
41
42
|
readonly UpdateDocumentMetadata: "UPDATE_DOCUMENT_METADATA";
|
|
42
43
|
readonly DownloadDocument: "DOWNLOAD_DOCUMENT";
|
|
@@ -25,6 +25,7 @@ export const AuditLogActionEnum = {
|
|
|
25
25
|
MoveFolder: 'MOVE_FOLDER',
|
|
26
26
|
UploadDocument: 'UPLOAD_DOCUMENT',
|
|
27
27
|
ReplaceDocumentContent: 'REPLACE_DOCUMENT_CONTENT',
|
|
28
|
+
RestoreDocumentVersion: 'RESTORE_DOCUMENT_VERSION',
|
|
28
29
|
ReplaceDocumentMetadata: 'REPLACE_DOCUMENT_METADATA',
|
|
29
30
|
UpdateDocumentMetadata: 'UPDATE_DOCUMENT_METADATA',
|
|
30
31
|
DownloadDocument: 'DOWNLOAD_DOCUMENT',
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Information about a single stored version of a file document
|
|
14
|
+
*/
|
|
15
|
+
export interface DocumentVersionInfo {
|
|
16
|
+
/**
|
|
17
|
+
* Storage version identifier (MinIO/S3 versionId)
|
|
18
|
+
*/
|
|
19
|
+
'versionId'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Date the version was created
|
|
22
|
+
*/
|
|
23
|
+
'lastModified'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Size of the version in bytes
|
|
26
|
+
*/
|
|
27
|
+
'size'?: number;
|
|
28
|
+
/**
|
|
29
|
+
* True if this version is the current (latest) one
|
|
30
|
+
*/
|
|
31
|
+
'latest'?: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -17,6 +17,7 @@ export * from './delete-metadata-request';
|
|
|
17
17
|
export * from './delete-request';
|
|
18
18
|
export * from './document-info';
|
|
19
19
|
export * from './document-position';
|
|
20
|
+
export * from './document-version-info';
|
|
20
21
|
export * from './element-info';
|
|
21
22
|
export * from './file-type-stats';
|
|
22
23
|
export * from './filter-input';
|
|
@@ -27,6 +28,8 @@ export * from './move-request';
|
|
|
27
28
|
export * from './rename-audit';
|
|
28
29
|
export * from './rename-request';
|
|
29
30
|
export * from './replace-audit';
|
|
31
|
+
export * from './restore-version-audit';
|
|
32
|
+
export * from './restore-version-response';
|
|
30
33
|
export * from './search-by-audit-log-request';
|
|
31
34
|
export * from './search-by-metadata-request';
|
|
32
35
|
export * from './search-metadata-request';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export * from './delete-metadata-request';
|
|
|
17
17
|
export * from './delete-request';
|
|
18
18
|
export * from './document-info';
|
|
19
19
|
export * from './document-position';
|
|
20
|
+
export * from './document-version-info';
|
|
20
21
|
export * from './element-info';
|
|
21
22
|
export * from './file-type-stats';
|
|
22
23
|
export * from './filter-input';
|
|
@@ -27,6 +28,8 @@ export * from './move-request';
|
|
|
27
28
|
export * from './rename-audit';
|
|
28
29
|
export * from './rename-request';
|
|
29
30
|
export * from './replace-audit';
|
|
31
|
+
export * from './restore-version-audit';
|
|
32
|
+
export * from './restore-version-response';
|
|
30
33
|
export * from './search-by-audit-log-request';
|
|
31
34
|
export * from './search-by-metadata-request';
|
|
32
35
|
export * from './search-metadata-request';
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { AuditLogDetails } from './audit-log-details';
|
|
13
|
+
/**
|
|
14
|
+
* @type RestoreVersionAudit
|
|
15
|
+
* type=restoreVersion
|
|
16
|
+
*/
|
|
17
|
+
export type RestoreVersionAudit = AuditLogDetails;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Result of restoring a previous version of a file document
|
|
14
|
+
*/
|
|
15
|
+
export interface RestoreVersionResponse {
|
|
16
|
+
/**
|
|
17
|
+
* Document identifier
|
|
18
|
+
*/
|
|
19
|
+
'documentId'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Version identifier that was restored
|
|
22
|
+
*/
|
|
23
|
+
'restoredFromVersionId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Creation date of the restored version
|
|
26
|
+
*/
|
|
27
|
+
'restoredFromDate'?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Identifier of the new latest version created by the restore
|
|
30
|
+
*/
|
|
31
|
+
'newVersionId'?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -55,6 +55,7 @@ export declare const SearchByAuditLogRequestActionEnum: {
|
|
|
55
55
|
readonly MoveFolder: "MOVE_FOLDER";
|
|
56
56
|
readonly UploadDocument: "UPLOAD_DOCUMENT";
|
|
57
57
|
readonly ReplaceDocumentContent: "REPLACE_DOCUMENT_CONTENT";
|
|
58
|
+
readonly RestoreDocumentVersion: "RESTORE_DOCUMENT_VERSION";
|
|
58
59
|
readonly ReplaceDocumentMetadata: "REPLACE_DOCUMENT_METADATA";
|
|
59
60
|
readonly UpdateDocumentMetadata: "UPDATE_DOCUMENT_METADATA";
|
|
60
61
|
readonly DownloadDocument: "DOWNLOAD_DOCUMENT";
|
|
@@ -29,6 +29,7 @@ export const SearchByAuditLogRequestActionEnum = {
|
|
|
29
29
|
MoveFolder: 'MOVE_FOLDER',
|
|
30
30
|
UploadDocument: 'UPLOAD_DOCUMENT',
|
|
31
31
|
ReplaceDocumentContent: 'REPLACE_DOCUMENT_CONTENT',
|
|
32
|
+
RestoreDocumentVersion: 'RESTORE_DOCUMENT_VERSION',
|
|
32
33
|
ReplaceDocumentMetadata: 'REPLACE_DOCUMENT_METADATA',
|
|
33
34
|
UpdateDocumentMetadata: 'UPDATE_DOCUMENT_METADATA',
|
|
34
35
|
DownloadDocument: 'DOWNLOAD_DOCUMENT',
|
|
@@ -18,6 +18,7 @@ import type { RenameAudit } from './rename-audit';
|
|
|
18
18
|
import type { ReplaceAudit } from './replace-audit';
|
|
19
19
|
import type { UpdateMetadataAudit } from './update-metadata-audit';
|
|
20
20
|
import type { UploadAudit } from './upload-audit';
|
|
21
|
+
import type { RestoreVersionAudit } from './restore-version-audit';
|
|
21
22
|
/**
|
|
22
23
|
* @type AuditLogDetailsOneOf
|
|
23
24
|
*/
|
|
@@ -36,6 +37,8 @@ export type AuditLogDetailsOneOf = {
|
|
|
36
37
|
} & RenameAudit | {
|
|
37
38
|
type: 'replace';
|
|
38
39
|
} & ReplaceAudit | {
|
|
40
|
+
type: 'restoreVersion';
|
|
41
|
+
} & RestoreVersionAudit | {
|
|
39
42
|
type: 'updateMetadata';
|
|
40
43
|
} & UpdateMetadataAudit | {
|
|
41
44
|
type: 'upload';
|
|
@@ -37,6 +37,7 @@ export declare const AuditLogActionEnum: {
|
|
|
37
37
|
readonly MoveFolder: "MOVE_FOLDER";
|
|
38
38
|
readonly UploadDocument: "UPLOAD_DOCUMENT";
|
|
39
39
|
readonly ReplaceDocumentContent: "REPLACE_DOCUMENT_CONTENT";
|
|
40
|
+
readonly RestoreDocumentVersion: "RESTORE_DOCUMENT_VERSION";
|
|
40
41
|
readonly ReplaceDocumentMetadata: "REPLACE_DOCUMENT_METADATA";
|
|
41
42
|
readonly UpdateDocumentMetadata: "UPDATE_DOCUMENT_METADATA";
|
|
42
43
|
readonly DownloadDocument: "DOWNLOAD_DOCUMENT";
|
package/dist/models/audit-log.js
CHANGED
|
@@ -28,6 +28,7 @@ exports.AuditLogActionEnum = {
|
|
|
28
28
|
MoveFolder: 'MOVE_FOLDER',
|
|
29
29
|
UploadDocument: 'UPLOAD_DOCUMENT',
|
|
30
30
|
ReplaceDocumentContent: 'REPLACE_DOCUMENT_CONTENT',
|
|
31
|
+
RestoreDocumentVersion: 'RESTORE_DOCUMENT_VERSION',
|
|
31
32
|
ReplaceDocumentMetadata: 'REPLACE_DOCUMENT_METADATA',
|
|
32
33
|
UpdateDocumentMetadata: 'UPDATE_DOCUMENT_METADATA',
|
|
33
34
|
DownloadDocument: 'DOWNLOAD_DOCUMENT',
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Information about a single stored version of a file document
|
|
14
|
+
*/
|
|
15
|
+
export interface DocumentVersionInfo {
|
|
16
|
+
/**
|
|
17
|
+
* Storage version identifier (MinIO/S3 versionId)
|
|
18
|
+
*/
|
|
19
|
+
'versionId'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Date the version was created
|
|
22
|
+
*/
|
|
23
|
+
'lastModified'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Size of the version in bytes
|
|
26
|
+
*/
|
|
27
|
+
'size'?: number;
|
|
28
|
+
/**
|
|
29
|
+
* True if this version is the current (latest) one
|
|
30
|
+
*/
|
|
31
|
+
'latest'?: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './delete-metadata-request';
|
|
|
17
17
|
export * from './delete-request';
|
|
18
18
|
export * from './document-info';
|
|
19
19
|
export * from './document-position';
|
|
20
|
+
export * from './document-version-info';
|
|
20
21
|
export * from './element-info';
|
|
21
22
|
export * from './file-type-stats';
|
|
22
23
|
export * from './filter-input';
|
|
@@ -27,6 +28,8 @@ export * from './move-request';
|
|
|
27
28
|
export * from './rename-audit';
|
|
28
29
|
export * from './rename-request';
|
|
29
30
|
export * from './replace-audit';
|
|
31
|
+
export * from './restore-version-audit';
|
|
32
|
+
export * from './restore-version-response';
|
|
30
33
|
export * from './search-by-audit-log-request';
|
|
31
34
|
export * from './search-by-metadata-request';
|
|
32
35
|
export * from './search-metadata-request';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./delete-metadata-request"), exports);
|
|
|
33
33
|
__exportStar(require("./delete-request"), exports);
|
|
34
34
|
__exportStar(require("./document-info"), exports);
|
|
35
35
|
__exportStar(require("./document-position"), exports);
|
|
36
|
+
__exportStar(require("./document-version-info"), exports);
|
|
36
37
|
__exportStar(require("./element-info"), exports);
|
|
37
38
|
__exportStar(require("./file-type-stats"), exports);
|
|
38
39
|
__exportStar(require("./filter-input"), exports);
|
|
@@ -43,6 +44,8 @@ __exportStar(require("./move-request"), exports);
|
|
|
43
44
|
__exportStar(require("./rename-audit"), exports);
|
|
44
45
|
__exportStar(require("./rename-request"), exports);
|
|
45
46
|
__exportStar(require("./replace-audit"), exports);
|
|
47
|
+
__exportStar(require("./restore-version-audit"), exports);
|
|
48
|
+
__exportStar(require("./restore-version-response"), exports);
|
|
46
49
|
__exportStar(require("./search-by-audit-log-request"), exports);
|
|
47
50
|
__exportStar(require("./search-by-metadata-request"), exports);
|
|
48
51
|
__exportStar(require("./search-metadata-request"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { AuditLogDetails } from './audit-log-details';
|
|
13
|
+
/**
|
|
14
|
+
* @type RestoreVersionAudit
|
|
15
|
+
* type=restoreVersion
|
|
16
|
+
*/
|
|
17
|
+
export type RestoreVersionAudit = AuditLogDetails;
|