@openfilz-sdk/typescript-ee 1.13.4 → 1.14.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 +26 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +33 -2
- package/api/metadata-key-controller-api.ts +121 -0
- package/api/sharing-policy-api.ts +1471 -0
- package/api/team-administration-api.ts +133 -0
- package/api.ts +3 -0
- package/dist/api/metadata-key-controller-api.d.ts +63 -0
- package/dist/api/metadata-key-controller-api.js +125 -0
- package/dist/api/sharing-policy-api.d.ts +662 -0
- package/dist/api/sharing-policy-api.js +1399 -0
- package/dist/api/team-administration-api.d.ts +70 -0
- package/dist/api/team-administration-api.js +139 -0
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/esm/api/metadata-key-controller-api.d.ts +63 -0
- package/dist/esm/api/metadata-key-controller-api.js +118 -0
- package/dist/esm/api/sharing-policy-api.d.ts +662 -0
- package/dist/esm/api/sharing-policy-api.js +1392 -0
- package/dist/esm/api/team-administration-api.d.ts +70 -0
- package/dist/esm/api/team-administration-api.js +132 -0
- package/dist/esm/api.d.ts +3 -0
- package/dist/esm/api.js +3 -0
- package/dist/esm/models/effective-policy.d.ts +31 -0
- package/dist/esm/models/effective-policy.js +24 -0
- package/dist/esm/models/enriched-audit-log.d.ts +2 -0
- package/dist/esm/models/enriched-audit-log.js +2 -0
- package/dist/esm/models/global-policy.d.ts +26 -0
- package/dist/esm/models/global-policy.js +19 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/item.d.ts +1 -7
- package/dist/esm/models/metadata-key-suggestion.d.ts +24 -0
- package/dist/esm/models/metadata-key-suggestion.js +14 -0
- package/dist/esm/models/my-policy.d.ts +30 -0
- package/dist/esm/models/my-policy.js +24 -0
- package/dist/esm/models/notification-dto.d.ts +1 -0
- package/dist/esm/models/notification-dto.js +1 -0
- package/dist/esm/models/override-request.d.ts +21 -0
- package/dist/esm/models/override-request.js +19 -0
- package/dist/esm/models/override-view.d.ts +27 -0
- package/dist/esm/models/override-view.js +19 -0
- package/dist/esm/models/revoke-request.d.ts +16 -0
- package/dist/esm/models/revoke-request.js +14 -0
- package/dist/esm/models/revoke-result.d.ts +18 -0
- package/dist/esm/models/revoke-result.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +2 -0
- package/dist/esm/models/search-by-audit-log-request.js +2 -0
- package/dist/esm/models/search-by-metadata-request.d.ts +1 -1
- package/dist/esm/models/share-result-error.d.ts +6 -0
- package/dist/esm/models/share-result-error.js +6 -0
- package/dist/esm/models/violation.d.ts +41 -0
- package/dist/esm/models/violation.js +28 -0
- package/dist/esm/models/violations-response.d.ts +17 -0
- package/dist/esm/models/violations-response.js +14 -0
- package/dist/models/effective-policy.d.ts +31 -0
- package/dist/models/effective-policy.js +27 -0
- package/dist/models/enriched-audit-log.d.ts +2 -0
- package/dist/models/enriched-audit-log.js +2 -0
- package/dist/models/global-policy.d.ts +26 -0
- package/dist/models/global-policy.js +22 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/item.d.ts +1 -7
- package/dist/models/metadata-key-suggestion.d.ts +24 -0
- package/dist/models/metadata-key-suggestion.js +15 -0
- package/dist/models/my-policy.d.ts +30 -0
- package/dist/models/my-policy.js +27 -0
- package/dist/models/notification-dto.d.ts +1 -0
- package/dist/models/notification-dto.js +1 -0
- package/dist/models/override-request.d.ts +21 -0
- package/dist/models/override-request.js +22 -0
- package/dist/models/override-view.d.ts +27 -0
- package/dist/models/override-view.js +22 -0
- package/dist/models/revoke-request.d.ts +16 -0
- package/dist/models/revoke-request.js +15 -0
- package/dist/models/revoke-result.d.ts +18 -0
- package/dist/models/revoke-result.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +2 -0
- package/dist/models/search-by-audit-log-request.js +2 -0
- package/dist/models/search-by-metadata-request.d.ts +1 -1
- package/dist/models/share-result-error.d.ts +6 -0
- package/dist/models/share-result-error.js +6 -0
- package/dist/models/violation.d.ts +41 -0
- package/dist/models/violation.js +31 -0
- package/dist/models/violations-response.d.ts +17 -0
- package/dist/models/violations-response.js +15 -0
- package/docs/EffectivePolicy.md +28 -0
- package/docs/GlobalPolicy.md +30 -0
- package/docs/Item.md +2 -14
- package/docs/MetadataKeyControllerApi.md +52 -0
- package/docs/MetadataKeySuggestion.md +23 -0
- package/docs/MyPolicy.md +26 -0
- package/docs/OverrideRequest.md +20 -0
- package/docs/OverrideView.md +32 -0
- package/docs/RevokeRequest.md +22 -0
- package/docs/RevokeResult.md +28 -0
- package/docs/SearchByMetadataRequest.md +1 -1
- package/docs/SharingPolicyApi.md +988 -0
- package/docs/TeamAdministrationApi.md +62 -0
- package/docs/Violation.md +42 -0
- package/docs/ViolationsResponse.md +24 -0
- package/graphql/document.graphqls +2 -2
- package/graphql/share.graphqls +2 -0
- package/models/effective-policy.ts +41 -0
- package/models/enriched-audit-log.ts +2 -0
- package/models/global-policy.ts +35 -0
- package/models/index.ts +10 -0
- package/models/item.ts +1 -7
- package/models/metadata-key-suggestion.ts +30 -0
- package/models/my-policy.ts +40 -0
- package/models/notification-dto.ts +1 -0
- package/models/override-request.ts +30 -0
- package/models/override-view.ts +36 -0
- package/models/revoke-request.ts +24 -0
- package/models/revoke-result.ts +24 -0
- package/models/search-by-audit-log-request.ts +2 -0
- package/models/search-by-metadata-request.ts +1 -1
- package/models/share-result-error.ts +6 -0
- package/models/violation.ts +50 -0
- package/models/violations-response.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* TeamAdministrationApi - axios parameter creator
|
|
17
|
+
*/
|
|
18
|
+
export declare const TeamAdministrationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19
|
+
/**
|
|
20
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
21
|
+
* @summary Add members to a team
|
|
22
|
+
* @param {string} teamId
|
|
23
|
+
* @param {Array<string>} requestBody
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
adminAddTeamMembers: (teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* TeamAdministrationApi - functional programming interface
|
|
31
|
+
*/
|
|
32
|
+
export declare const TeamAdministrationApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
35
|
+
* @summary Add members to a team
|
|
36
|
+
* @param {string} teamId
|
|
37
|
+
* @param {Array<string>} requestBody
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* TeamAdministrationApi - factory interface
|
|
45
|
+
*/
|
|
46
|
+
export declare const TeamAdministrationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
|
+
/**
|
|
48
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
49
|
+
* @summary Add members to a team
|
|
50
|
+
* @param {string} teamId
|
|
51
|
+
* @param {Array<string>} requestBody
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* TeamAdministrationApi - object-oriented interface
|
|
59
|
+
*/
|
|
60
|
+
export declare class TeamAdministrationApi extends BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
63
|
+
* @summary Add members to a team
|
|
64
|
+
* @param {string} teamId
|
|
65
|
+
* @param {Array<string>} requestBody
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
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.TeamAdministrationApi = exports.TeamAdministrationApiFactory = exports.TeamAdministrationApiFp = exports.TeamAdministrationApiAxiosParamCreator = 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
|
+
* TeamAdministrationApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const TeamAdministrationApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
39
|
+
* @summary Add members to a team
|
|
40
|
+
* @param {string} teamId
|
|
41
|
+
* @param {Array<string>} requestBody
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
adminAddTeamMembers: (teamId_1, requestBody_1, ...args_1) => __awaiter(this, [teamId_1, requestBody_1, ...args_1], void 0, function* (teamId, requestBody, options = {}) {
|
|
46
|
+
// verify required parameter 'teamId' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('adminAddTeamMembers', 'teamId', teamId);
|
|
48
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('adminAddTeamMembers', 'requestBody', requestBody);
|
|
50
|
+
const localVarPath = `/api/v1/admin/teams/{teamId}/members`
|
|
51
|
+
.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
}
|
|
58
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
59
|
+
const localVarHeaderParameter = {};
|
|
60
|
+
const localVarQueryParameter = {};
|
|
61
|
+
// authentication keycloak_auth required
|
|
62
|
+
// http bearer authentication required
|
|
63
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
64
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
65
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
66
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
68
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
69
|
+
return {
|
|
70
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
exports.TeamAdministrationApiAxiosParamCreator = TeamAdministrationApiAxiosParamCreator;
|
|
77
|
+
/**
|
|
78
|
+
* TeamAdministrationApi - functional programming interface
|
|
79
|
+
*/
|
|
80
|
+
const TeamAdministrationApiFp = function (configuration) {
|
|
81
|
+
const localVarAxiosParamCreator = (0, exports.TeamAdministrationApiAxiosParamCreator)(configuration);
|
|
82
|
+
return {
|
|
83
|
+
/**
|
|
84
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
85
|
+
* @summary Add members to a team
|
|
86
|
+
* @param {string} teamId
|
|
87
|
+
* @param {Array<string>} requestBody
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
adminAddTeamMembers(teamId, requestBody, options) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
var _a, _b, _c;
|
|
94
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAddTeamMembers(teamId, requestBody, options);
|
|
95
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
96
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminAddTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
97
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
exports.TeamAdministrationApiFp = TeamAdministrationApiFp;
|
|
103
|
+
/**
|
|
104
|
+
* TeamAdministrationApi - factory interface
|
|
105
|
+
*/
|
|
106
|
+
const TeamAdministrationApiFactory = function (configuration, basePath, axios) {
|
|
107
|
+
const localVarFp = (0, exports.TeamAdministrationApiFp)(configuration);
|
|
108
|
+
return {
|
|
109
|
+
/**
|
|
110
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
111
|
+
* @summary Add members to a team
|
|
112
|
+
* @param {string} teamId
|
|
113
|
+
* @param {Array<string>} requestBody
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
adminAddTeamMembers(teamId, requestBody, options) {
|
|
118
|
+
return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
exports.TeamAdministrationApiFactory = TeamAdministrationApiFactory;
|
|
123
|
+
/**
|
|
124
|
+
* TeamAdministrationApi - object-oriented interface
|
|
125
|
+
*/
|
|
126
|
+
class TeamAdministrationApi extends base_1.BaseAPI {
|
|
127
|
+
/**
|
|
128
|
+
* Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
|
|
129
|
+
* @summary Add members to a team
|
|
130
|
+
* @param {string} teamId
|
|
131
|
+
* @param {Array<string>} requestBody
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
adminAddTeamMembers(teamId, requestBody, options) {
|
|
136
|
+
return (0, exports.TeamAdministrationApiFp)(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.TeamAdministrationApi = TeamAdministrationApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './api/file-controller-api';
|
|
|
44
44
|
export * from './api/folder-controller-api';
|
|
45
45
|
export * from './api/mcp-discovery-controller-api';
|
|
46
46
|
export * from './api/mcp-token-admin-controller-api';
|
|
47
|
+
export * from './api/metadata-key-controller-api';
|
|
47
48
|
export * from './api/notifications-api';
|
|
48
49
|
export * from './api/organisation-settings-api';
|
|
49
50
|
export * from './api/ownership-api';
|
|
@@ -55,8 +56,10 @@ export * from './api/scanner-proxy-api';
|
|
|
55
56
|
export * from './api/search-administration-api';
|
|
56
57
|
export * from './api/settings-api';
|
|
57
58
|
export * from './api/sharing-api';
|
|
59
|
+
export * from './api/sharing-policy-api';
|
|
58
60
|
export * from './api/smart-filing-api';
|
|
59
61
|
export * from './api/storage-encryption-administration-api';
|
|
62
|
+
export * from './api/team-administration-api';
|
|
60
63
|
export * from './api/tus-controller-api';
|
|
61
64
|
export * from './api/upload-token-controller-api';
|
|
62
65
|
export * from './api/user-privacy-api';
|
package/dist/api.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./api/file-controller-api"), exports);
|
|
|
62
62
|
__exportStar(require("./api/folder-controller-api"), exports);
|
|
63
63
|
__exportStar(require("./api/mcp-discovery-controller-api"), exports);
|
|
64
64
|
__exportStar(require("./api/mcp-token-admin-controller-api"), exports);
|
|
65
|
+
__exportStar(require("./api/metadata-key-controller-api"), exports);
|
|
65
66
|
__exportStar(require("./api/notifications-api"), exports);
|
|
66
67
|
__exportStar(require("./api/organisation-settings-api"), exports);
|
|
67
68
|
__exportStar(require("./api/ownership-api"), exports);
|
|
@@ -73,8 +74,10 @@ __exportStar(require("./api/scanner-proxy-api"), exports);
|
|
|
73
74
|
__exportStar(require("./api/search-administration-api"), exports);
|
|
74
75
|
__exportStar(require("./api/settings-api"), exports);
|
|
75
76
|
__exportStar(require("./api/sharing-api"), exports);
|
|
77
|
+
__exportStar(require("./api/sharing-policy-api"), exports);
|
|
76
78
|
__exportStar(require("./api/smart-filing-api"), exports);
|
|
77
79
|
__exportStar(require("./api/storage-encryption-administration-api"), exports);
|
|
80
|
+
__exportStar(require("./api/team-administration-api"), exports);
|
|
78
81
|
__exportStar(require("./api/tus-controller-api"), exports);
|
|
79
82
|
__exportStar(require("./api/upload-token-controller-api"), exports);
|
|
80
83
|
__exportStar(require("./api/user-privacy-api"), exports);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { MetadataKeySuggestion } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* MetadataKeyControllerApi - axios parameter creator
|
|
18
|
+
*/
|
|
19
|
+
export declare const MetadataKeyControllerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
22
|
+
* @summary List metadata keys
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
listMetadataKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* MetadataKeyControllerApi - functional programming interface
|
|
30
|
+
*/
|
|
31
|
+
export declare const MetadataKeyControllerApiFp: (configuration?: Configuration) => {
|
|
32
|
+
/**
|
|
33
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
34
|
+
* @summary List metadata keys
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
listMetadataKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetadataKeySuggestion>>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* MetadataKeyControllerApi - factory interface
|
|
42
|
+
*/
|
|
43
|
+
export declare const MetadataKeyControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
44
|
+
/**
|
|
45
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
46
|
+
* @summary List metadata keys
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
listMetadataKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<MetadataKeySuggestion>>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* MetadataKeyControllerApi - object-oriented interface
|
|
54
|
+
*/
|
|
55
|
+
export declare class MetadataKeyControllerApi extends BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
58
|
+
* @summary List metadata keys
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
listMetadataKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetadataKeySuggestion[], any, {}, any>>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* MetadataKeyControllerApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const MetadataKeyControllerApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
36
|
+
* @summary List metadata keys
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
listMetadataKeys: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
41
|
+
const localVarPath = `/api/v1/documents/metadata-keys`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
49
|
+
const localVarHeaderParameter = {};
|
|
50
|
+
const localVarQueryParameter = {};
|
|
51
|
+
// authentication keycloak_auth required
|
|
52
|
+
// http bearer authentication required
|
|
53
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
54
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
55
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
58
|
+
return {
|
|
59
|
+
url: toPathString(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* MetadataKeyControllerApi - functional programming interface
|
|
67
|
+
*/
|
|
68
|
+
export const MetadataKeyControllerApiFp = function (configuration) {
|
|
69
|
+
const localVarAxiosParamCreator = MetadataKeyControllerApiAxiosParamCreator(configuration);
|
|
70
|
+
return {
|
|
71
|
+
/**
|
|
72
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
73
|
+
* @summary List metadata keys
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
listMetadataKeys(options) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
var _a, _b, _c;
|
|
80
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listMetadataKeys(options);
|
|
81
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MetadataKeyControllerApi.listMetadataKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
83
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* MetadataKeyControllerApi - factory interface
|
|
90
|
+
*/
|
|
91
|
+
export const MetadataKeyControllerApiFactory = function (configuration, basePath, axios) {
|
|
92
|
+
const localVarFp = MetadataKeyControllerApiFp(configuration);
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
96
|
+
* @summary List metadata keys
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
listMetadataKeys(options) {
|
|
101
|
+
return localVarFp.listMetadataKeys(options).then((request) => request(axios, basePath));
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* MetadataKeyControllerApi - object-oriented interface
|
|
107
|
+
*/
|
|
108
|
+
export class MetadataKeyControllerApi extends BaseAPI {
|
|
109
|
+
/**
|
|
110
|
+
* Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
|
|
111
|
+
* @summary List metadata keys
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
listMetadataKeys(options) {
|
|
116
|
+
return MetadataKeyControllerApiFp(this.configuration).listMetadataKeys(options).then((request) => request(this.axios, this.basePath));
|
|
117
|
+
}
|
|
118
|
+
}
|