@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,284 @@
|
|
|
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.DocumentVersionControllerApi = exports.DocumentVersionControllerApiFactory = exports.DocumentVersionControllerApiFp = exports.DocumentVersionControllerApiAxiosParamCreator = 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
|
+
* DocumentVersionControllerApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const DocumentVersionControllerApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Downloads the content of a specific stored version of a file document.
|
|
39
|
+
* @summary Download a specific document version
|
|
40
|
+
* @param {string} documentId
|
|
41
|
+
* @param {string} versionId
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
downloadVersion: (documentId_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, versionId_1, ...args_1], void 0, function* (documentId, versionId, options = {}) {
|
|
46
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('downloadVersion', 'documentId', documentId);
|
|
48
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('downloadVersion', 'versionId', versionId);
|
|
50
|
+
const localVarPath = `/api/v1/documents/{documentId}/versions/{versionId}/download`
|
|
51
|
+
.replace('{documentId}', encodeURIComponent(String(documentId)))
|
|
52
|
+
.replace('{versionId}', encodeURIComponent(String(versionId)));
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
}
|
|
59
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
60
|
+
const localVarHeaderParameter = {};
|
|
61
|
+
const localVarQueryParameter = {};
|
|
62
|
+
// authentication keycloak_auth required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
65
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
66
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
69
|
+
return {
|
|
70
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
}),
|
|
74
|
+
/**
|
|
75
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
76
|
+
* @summary List document versions
|
|
77
|
+
* @param {string} documentId
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
listVersions: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
|
|
82
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
83
|
+
(0, common_1.assertParamExists)('listVersions', 'documentId', documentId);
|
|
84
|
+
const localVarPath = `/api/v1/documents/{documentId}/versions`
|
|
85
|
+
.replace('{documentId}', encodeURIComponent(String(documentId)));
|
|
86
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
88
|
+
let baseOptions;
|
|
89
|
+
if (configuration) {
|
|
90
|
+
baseOptions = configuration.baseOptions;
|
|
91
|
+
}
|
|
92
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
93
|
+
const localVarHeaderParameter = {};
|
|
94
|
+
const localVarQueryParameter = {};
|
|
95
|
+
// authentication keycloak_auth required
|
|
96
|
+
// http bearer authentication required
|
|
97
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
98
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
99
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
102
|
+
return {
|
|
103
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
104
|
+
options: localVarRequestOptions,
|
|
105
|
+
};
|
|
106
|
+
}),
|
|
107
|
+
/**
|
|
108
|
+
* 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).
|
|
109
|
+
* @summary Restore a previous document version
|
|
110
|
+
* @param {string} documentId
|
|
111
|
+
* @param {string} versionId
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
restoreVersion: (documentId_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, versionId_1, ...args_1], void 0, function* (documentId, versionId, options = {}) {
|
|
116
|
+
// verify required parameter 'documentId' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('restoreVersion', 'documentId', documentId);
|
|
118
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
119
|
+
(0, common_1.assertParamExists)('restoreVersion', 'versionId', versionId);
|
|
120
|
+
const localVarPath = `/api/v1/documents/{documentId}/versions/{versionId}/restore`
|
|
121
|
+
.replace('{documentId}', encodeURIComponent(String(documentId)))
|
|
122
|
+
.replace('{versionId}', encodeURIComponent(String(versionId)));
|
|
123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
124
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
125
|
+
let baseOptions;
|
|
126
|
+
if (configuration) {
|
|
127
|
+
baseOptions = configuration.baseOptions;
|
|
128
|
+
}
|
|
129
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
130
|
+
const localVarHeaderParameter = {};
|
|
131
|
+
const localVarQueryParameter = {};
|
|
132
|
+
// authentication keycloak_auth required
|
|
133
|
+
// http bearer authentication required
|
|
134
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
135
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
return {
|
|
140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions,
|
|
142
|
+
};
|
|
143
|
+
}),
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
exports.DocumentVersionControllerApiAxiosParamCreator = DocumentVersionControllerApiAxiosParamCreator;
|
|
147
|
+
/**
|
|
148
|
+
* DocumentVersionControllerApi - functional programming interface
|
|
149
|
+
*/
|
|
150
|
+
const DocumentVersionControllerApiFp = function (configuration) {
|
|
151
|
+
const localVarAxiosParamCreator = (0, exports.DocumentVersionControllerApiAxiosParamCreator)(configuration);
|
|
152
|
+
return {
|
|
153
|
+
/**
|
|
154
|
+
* Downloads the content of a specific stored version of a file document.
|
|
155
|
+
* @summary Download a specific document version
|
|
156
|
+
* @param {string} documentId
|
|
157
|
+
* @param {string} versionId
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
downloadVersion(documentId, versionId, options) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
var _a, _b, _c;
|
|
164
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadVersion(documentId, versionId, options);
|
|
165
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
166
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentVersionControllerApi.downloadVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
167
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
168
|
+
});
|
|
169
|
+
},
|
|
170
|
+
/**
|
|
171
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
172
|
+
* @summary List document versions
|
|
173
|
+
* @param {string} documentId
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
listVersions(documentId, options) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
var _a, _b, _c;
|
|
180
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listVersions(documentId, options);
|
|
181
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
182
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentVersionControllerApi.listVersions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
183
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* 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).
|
|
188
|
+
* @summary Restore a previous document version
|
|
189
|
+
* @param {string} documentId
|
|
190
|
+
* @param {string} versionId
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
restoreVersion(documentId, versionId, options) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
var _a, _b, _c;
|
|
197
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreVersion(documentId, versionId, options);
|
|
198
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
199
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentVersionControllerApi.restoreVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
200
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
201
|
+
});
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
exports.DocumentVersionControllerApiFp = DocumentVersionControllerApiFp;
|
|
206
|
+
/**
|
|
207
|
+
* DocumentVersionControllerApi - factory interface
|
|
208
|
+
*/
|
|
209
|
+
const DocumentVersionControllerApiFactory = function (configuration, basePath, axios) {
|
|
210
|
+
const localVarFp = (0, exports.DocumentVersionControllerApiFp)(configuration);
|
|
211
|
+
return {
|
|
212
|
+
/**
|
|
213
|
+
* Downloads the content of a specific stored version of a file document.
|
|
214
|
+
* @summary Download a specific document version
|
|
215
|
+
* @param {string} documentId
|
|
216
|
+
* @param {string} versionId
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
downloadVersion(documentId, versionId, options) {
|
|
221
|
+
return localVarFp.downloadVersion(documentId, versionId, options).then((request) => request(axios, basePath));
|
|
222
|
+
},
|
|
223
|
+
/**
|
|
224
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
225
|
+
* @summary List document versions
|
|
226
|
+
* @param {string} documentId
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
listVersions(documentId, options) {
|
|
231
|
+
return localVarFp.listVersions(documentId, options).then((request) => request(axios, basePath));
|
|
232
|
+
},
|
|
233
|
+
/**
|
|
234
|
+
* 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).
|
|
235
|
+
* @summary Restore a previous document version
|
|
236
|
+
* @param {string} documentId
|
|
237
|
+
* @param {string} versionId
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
restoreVersion(documentId, versionId, options) {
|
|
242
|
+
return localVarFp.restoreVersion(documentId, versionId, options).then((request) => request(axios, basePath));
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
exports.DocumentVersionControllerApiFactory = DocumentVersionControllerApiFactory;
|
|
247
|
+
/**
|
|
248
|
+
* DocumentVersionControllerApi - object-oriented interface
|
|
249
|
+
*/
|
|
250
|
+
class DocumentVersionControllerApi extends base_1.BaseAPI {
|
|
251
|
+
/**
|
|
252
|
+
* Downloads the content of a specific stored version of a file document.
|
|
253
|
+
* @summary Download a specific document version
|
|
254
|
+
* @param {string} documentId
|
|
255
|
+
* @param {string} versionId
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
downloadVersion(documentId, versionId, options) {
|
|
260
|
+
return (0, exports.DocumentVersionControllerApiFp)(this.configuration).downloadVersion(documentId, versionId, options).then((request) => request(this.axios, this.basePath));
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
264
|
+
* @summary List document versions
|
|
265
|
+
* @param {string} documentId
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
listVersions(documentId, options) {
|
|
270
|
+
return (0, exports.DocumentVersionControllerApiFp)(this.configuration).listVersions(documentId, options).then((request) => request(this.axios, this.basePath));
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* 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).
|
|
274
|
+
* @summary Restore a previous document version
|
|
275
|
+
* @param {string} documentId
|
|
276
|
+
* @param {string} versionId
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
restoreVersion(documentId, versionId, options) {
|
|
281
|
+
return (0, exports.DocumentVersionControllerApiFp)(this.configuration).restoreVersion(documentId, versionId, options).then((request) => request(this.axios, this.basePath));
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
exports.DocumentVersionControllerApi = DocumentVersionControllerApi;
|
package/dist/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/api.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./api/audit-controller-api"), exports);
|
|
|
31
31
|
__exportStar(require("./api/dashboard-api"), exports);
|
|
32
32
|
__exportStar(require("./api/document-controller-api"), exports);
|
|
33
33
|
__exportStar(require("./api/document-suggestion-controller-api"), exports);
|
|
34
|
+
__exportStar(require("./api/document-version-controller-api"), exports);
|
|
34
35
|
__exportStar(require("./api/favorites-api"), exports);
|
|
35
36
|
__exportStar(require("./api/file-controller-api"), exports);
|
|
36
37
|
__exportStar(require("./api/folder-controller-api"), exports);
|
|
@@ -0,0 +1,140 @@
|
|
|
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 { DocumentVersionInfo } from '../models';
|
|
16
|
+
import type { RestoreVersionResponse } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* DocumentVersionControllerApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const DocumentVersionControllerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Downloads the content of a specific stored version of a file document.
|
|
23
|
+
* @summary Download a specific document version
|
|
24
|
+
* @param {string} documentId
|
|
25
|
+
* @param {string} versionId
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
downloadVersion: (documentId: string, versionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
/**
|
|
31
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
32
|
+
* @summary List document versions
|
|
33
|
+
* @param {string} documentId
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
listVersions: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
+
/**
|
|
39
|
+
* 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).
|
|
40
|
+
* @summary Restore a previous document version
|
|
41
|
+
* @param {string} documentId
|
|
42
|
+
* @param {string} versionId
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
restoreVersion: (documentId: string, versionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* DocumentVersionControllerApi - functional programming interface
|
|
50
|
+
*/
|
|
51
|
+
export declare const DocumentVersionControllerApiFp: (configuration?: Configuration) => {
|
|
52
|
+
/**
|
|
53
|
+
* Downloads the content of a specific stored version of a file document.
|
|
54
|
+
* @summary Download a specific document version
|
|
55
|
+
* @param {string} documentId
|
|
56
|
+
* @param {string} versionId
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
*/
|
|
60
|
+
downloadVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
61
|
+
/**
|
|
62
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
63
|
+
* @summary List document versions
|
|
64
|
+
* @param {string} documentId
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
listVersions(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DocumentVersionInfo>>>;
|
|
69
|
+
/**
|
|
70
|
+
* 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).
|
|
71
|
+
* @summary Restore a previous document version
|
|
72
|
+
* @param {string} documentId
|
|
73
|
+
* @param {string} versionId
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
restoreVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreVersionResponse>>;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* DocumentVersionControllerApi - factory interface
|
|
81
|
+
*/
|
|
82
|
+
export declare const DocumentVersionControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
83
|
+
/**
|
|
84
|
+
* Downloads the content of a specific stored version of a file document.
|
|
85
|
+
* @summary Download a specific document version
|
|
86
|
+
* @param {string} documentId
|
|
87
|
+
* @param {string} versionId
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
downloadVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
92
|
+
/**
|
|
93
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
94
|
+
* @summary List document versions
|
|
95
|
+
* @param {string} documentId
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
listVersions(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DocumentVersionInfo>>;
|
|
100
|
+
/**
|
|
101
|
+
* 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).
|
|
102
|
+
* @summary Restore a previous document version
|
|
103
|
+
* @param {string} documentId
|
|
104
|
+
* @param {string} versionId
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
restoreVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): AxiosPromise<RestoreVersionResponse>;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* DocumentVersionControllerApi - object-oriented interface
|
|
112
|
+
*/
|
|
113
|
+
export declare class DocumentVersionControllerApi extends BaseAPI {
|
|
114
|
+
/**
|
|
115
|
+
* Downloads the content of a specific stored version of a file document.
|
|
116
|
+
* @summary Download a specific document version
|
|
117
|
+
* @param {string} documentId
|
|
118
|
+
* @param {string} versionId
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
downloadVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
123
|
+
/**
|
|
124
|
+
* Lists all stored versions of a file document, newest first. Requires storage versioning to be enabled (otherwise HTTP 409).
|
|
125
|
+
* @summary List document versions
|
|
126
|
+
* @param {string} documentId
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
listVersions(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentVersionInfo[], any, {}>>;
|
|
131
|
+
/**
|
|
132
|
+
* 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).
|
|
133
|
+
* @summary Restore a previous document version
|
|
134
|
+
* @param {string} documentId
|
|
135
|
+
* @param {string} versionId
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
restoreVersion(documentId: string, versionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RestoreVersionResponse, any, {}>>;
|
|
140
|
+
}
|