@openfilz-sdk/typescript-ee 1.12.17 → 1.12.18
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 +18 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +21 -2
- package/api/ownership-api.ts +1076 -0
- package/api/sharing-api.ts +210 -0
- package/api.ts +2 -0
- package/dist/api/ownership-api.d.ts +505 -0
- package/dist/api/ownership-api.js +1015 -0
- package/dist/api/sharing-api.d.ts +104 -0
- package/dist/api/sharing-api.js +209 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/ownership-api.d.ts +505 -0
- package/dist/esm/api/ownership-api.js +1008 -0
- package/dist/esm/api/sharing-api.d.ts +104 -0
- package/dist/esm/api/sharing-api.js +202 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/enriched-audit-log.d.ts +9 -0
- package/dist/esm/models/enriched-audit-log.js +9 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/models/notification-dto.d.ts +2 -0
- package/dist/esm/models/notification-dto.js +2 -0
- package/dist/esm/models/owned-document.d.ts +25 -0
- package/dist/esm/models/owned-document.js +17 -0
- package/dist/esm/models/owned-documents-filter.d.ts +45 -0
- package/dist/esm/models/owned-documents-filter.js +17 -0
- package/dist/esm/models/ownership-transfer-report.d.ts +29 -0
- package/dist/esm/models/ownership-transfer-report.js +14 -0
- package/dist/esm/models/ownership-transfer-request.d.ts +53 -0
- package/dist/esm/models/ownership-transfer-request.js +18 -0
- package/dist/esm/models/quota-check.d.ts +17 -0
- package/dist/esm/models/quota-check.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +9 -0
- package/dist/esm/models/search-by-audit-log-request.js +9 -0
- package/dist/esm/models/share-inheritance-request.d.ts +14 -0
- package/dist/esm/models/share-inheritance-request.js +14 -0
- package/dist/esm/models/share-inheritance.d.ts +16 -0
- package/dist/esm/models/share-inheritance.js +14 -0
- package/dist/esm/models/user-registration-request.d.ts +1 -0
- package/dist/models/enriched-audit-log.d.ts +9 -0
- package/dist/models/enriched-audit-log.js +9 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/notification-dto.d.ts +2 -0
- package/dist/models/notification-dto.js +2 -0
- package/dist/models/owned-document.d.ts +25 -0
- package/dist/models/owned-document.js +20 -0
- package/dist/models/owned-documents-filter.d.ts +45 -0
- package/dist/models/owned-documents-filter.js +20 -0
- package/dist/models/ownership-transfer-report.d.ts +29 -0
- package/dist/models/ownership-transfer-report.js +15 -0
- package/dist/models/ownership-transfer-request.d.ts +53 -0
- package/dist/models/ownership-transfer-request.js +21 -0
- package/dist/models/quota-check.d.ts +17 -0
- package/dist/models/quota-check.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +9 -0
- package/dist/models/search-by-audit-log-request.js +9 -0
- package/dist/models/share-inheritance-request.d.ts +14 -0
- package/dist/models/share-inheritance-request.js +15 -0
- package/dist/models/share-inheritance.d.ts +16 -0
- package/dist/models/share-inheritance.js +15 -0
- package/dist/models/user-registration-request.d.ts +1 -0
- package/docs/OwnedDocument.md +32 -0
- package/docs/OwnedDocumentsFilter.md +31 -0
- package/docs/OwnershipApi.md +621 -0
- package/docs/OwnershipTransferReport.md +48 -0
- package/docs/OwnershipTransferRequest.md +37 -0
- package/docs/QuotaCheck.md +26 -0
- package/docs/ShareInheritance.md +24 -0
- package/docs/ShareInheritanceRequest.md +20 -0
- package/docs/SharingApi.md +114 -0
- package/docs/UserRegistrationRequest.md +2 -0
- package/models/enriched-audit-log-details.ts +26 -0
- package/models/enriched-audit-log.ts +9 -0
- package/models/index.ts +7 -0
- package/models/notification-dto.ts +2 -0
- package/models/owned-document.ts +34 -0
- package/models/owned-documents-filter.ts +54 -0
- package/models/ownership-transfer-report.ts +37 -0
- package/models/ownership-transfer-request.ts +64 -0
- package/models/quota-check.ts +23 -0
- package/models/search-by-audit-log-request.ts +9 -0
- package/models/share-inheritance-request.ts +20 -0
- package/models/share-inheritance.ts +22 -0
- package/models/user-registration-request.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,104 @@
|
|
|
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 { ShareInheritance } from '../models';
|
|
16
|
+
import type { ShareInheritanceRequest } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* SharingApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const SharingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
24
|
+
* @param {string} id
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
getShareInheritance: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
31
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
32
|
+
* @param {string} id
|
|
33
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
setShareInheritance: (id: string, shareInheritanceRequest: ShareInheritanceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* SharingApi - functional programming interface
|
|
41
|
+
*/
|
|
42
|
+
export declare const SharingApiFp: (configuration?: Configuration) => {
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
46
|
+
* @param {string} id
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
getShareInheritance(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareInheritance>>;
|
|
51
|
+
/**
|
|
52
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
53
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
54
|
+
* @param {string} id
|
|
55
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
setShareInheritance(id: string, shareInheritanceRequest: ShareInheritanceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareInheritance>>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* SharingApi - factory interface
|
|
63
|
+
*/
|
|
64
|
+
export declare const SharingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
68
|
+
* @param {string} id
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
getShareInheritance(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShareInheritance>;
|
|
73
|
+
/**
|
|
74
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
75
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
76
|
+
* @param {string} id
|
|
77
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
setShareInheritance(id: string, shareInheritanceRequest: ShareInheritanceRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareInheritance>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* SharingApi - object-oriented interface
|
|
85
|
+
*/
|
|
86
|
+
export declare class SharingApi extends BaseAPI {
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
90
|
+
* @param {string} id
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
getShareInheritance(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShareInheritance, any, {}, any>>;
|
|
95
|
+
/**
|
|
96
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
97
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
98
|
+
* @param {string} id
|
|
99
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
setShareInheritance(id: string, shareInheritanceRequest: ShareInheritanceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShareInheritance, any, {}, any>>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
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.SharingApi = exports.SharingApiFactory = exports.SharingApiFp = exports.SharingApiAxiosParamCreator = 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
|
+
* SharingApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const SharingApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
40
|
+
* @param {string} id
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
getShareInheritance: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
45
|
+
// verify required parameter 'id' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('getShareInheritance', 'id', id);
|
|
47
|
+
const localVarPath = `/api/v1/documents/{id}/share-inheritance`
|
|
48
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication keycloak_auth required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
72
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
73
|
+
* @param {string} id
|
|
74
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
setShareInheritance: (id_1, shareInheritanceRequest_1, ...args_1) => __awaiter(this, [id_1, shareInheritanceRequest_1, ...args_1], void 0, function* (id, shareInheritanceRequest, options = {}) {
|
|
79
|
+
// verify required parameter 'id' is not null or undefined
|
|
80
|
+
(0, common_1.assertParamExists)('setShareInheritance', 'id', id);
|
|
81
|
+
// verify required parameter 'shareInheritanceRequest' is not null or undefined
|
|
82
|
+
(0, common_1.assertParamExists)('setShareInheritance', 'shareInheritanceRequest', shareInheritanceRequest);
|
|
83
|
+
const localVarPath = `/api/v1/users/share/inheritance/{id}`
|
|
84
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
85
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
87
|
+
let baseOptions;
|
|
88
|
+
if (configuration) {
|
|
89
|
+
baseOptions = configuration.baseOptions;
|
|
90
|
+
}
|
|
91
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
92
|
+
const localVarHeaderParameter = {};
|
|
93
|
+
const localVarQueryParameter = {};
|
|
94
|
+
// authentication keycloak_auth required
|
|
95
|
+
// http bearer authentication required
|
|
96
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
97
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
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
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shareInheritanceRequest, localVarRequestOptions, configuration);
|
|
103
|
+
return {
|
|
104
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
}),
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
exports.SharingApiAxiosParamCreator = SharingApiAxiosParamCreator;
|
|
111
|
+
/**
|
|
112
|
+
* SharingApi - functional programming interface
|
|
113
|
+
*/
|
|
114
|
+
const SharingApiFp = function (configuration) {
|
|
115
|
+
const localVarAxiosParamCreator = (0, exports.SharingApiAxiosParamCreator)(configuration);
|
|
116
|
+
return {
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
120
|
+
* @param {string} id
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
getShareInheritance(id, options) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
var _a, _b, _c;
|
|
127
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getShareInheritance(id, options);
|
|
128
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
129
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharingApi.getShareInheritance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
130
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
131
|
+
});
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
135
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
136
|
+
* @param {string} id
|
|
137
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
setShareInheritance(id, shareInheritanceRequest, options) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
var _a, _b, _c;
|
|
144
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setShareInheritance(id, shareInheritanceRequest, options);
|
|
145
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
146
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharingApi.setShareInheritance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
147
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
exports.SharingApiFp = SharingApiFp;
|
|
153
|
+
/**
|
|
154
|
+
* SharingApi - factory interface
|
|
155
|
+
*/
|
|
156
|
+
const SharingApiFactory = function (configuration, basePath, axios) {
|
|
157
|
+
const localVarFp = (0, exports.SharingApiFp)(configuration);
|
|
158
|
+
return {
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
162
|
+
* @param {string} id
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
getShareInheritance(id, options) {
|
|
167
|
+
return localVarFp.getShareInheritance(id, options).then((request) => request(axios, basePath));
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
171
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
172
|
+
* @param {string} id
|
|
173
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
setShareInheritance(id, shareInheritanceRequest, options) {
|
|
178
|
+
return localVarFp.setShareInheritance(id, shareInheritanceRequest, options).then((request) => request(axios, basePath));
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
exports.SharingApiFactory = SharingApiFactory;
|
|
183
|
+
/**
|
|
184
|
+
* SharingApi - object-oriented interface
|
|
185
|
+
*/
|
|
186
|
+
class SharingApi extends base_1.BaseAPI {
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Does the document receive the shares of its ancestors?
|
|
190
|
+
* @param {string} id
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
getShareInheritance(id, options) {
|
|
195
|
+
return (0, exports.SharingApiFp)(this.configuration).getShareInheritance(id, options).then((request) => request(this.axios, this.basePath));
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* inherit=false removes every share the document and its subtree inherited from above; shares placed on the document or inside it remain and keep flowing down. inherit=true copies the parent\'s shares down again. Owner or SHARE_ADMIN. Audited SHARE_INHERITANCE_CHANGED.
|
|
199
|
+
* @summary Stop (inherit=false) or resume (inherit=true) inheriting the ancestors\' shares
|
|
200
|
+
* @param {string} id
|
|
201
|
+
* @param {ShareInheritanceRequest} shareInheritanceRequest
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
setShareInheritance(id, shareInheritanceRequest, options) {
|
|
206
|
+
return (0, exports.SharingApiFp)(this.configuration).setShareInheritance(id, shareInheritanceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.SharingApi = SharingApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export * from './api/mcp-discovery-controller-api';
|
|
|
46
46
|
export * from './api/mcp-token-admin-controller-api';
|
|
47
47
|
export * from './api/notifications-api';
|
|
48
48
|
export * from './api/organisation-settings-api';
|
|
49
|
+
export * from './api/ownership-api';
|
|
49
50
|
export * from './api/pdftools-api';
|
|
50
51
|
export * from './api/quota-administration-api';
|
|
51
52
|
export * from './api/quotas-api';
|
|
@@ -53,6 +54,7 @@ export * from './api/scan-agent-api';
|
|
|
53
54
|
export * from './api/scanner-proxy-api';
|
|
54
55
|
export * from './api/search-administration-api';
|
|
55
56
|
export * from './api/settings-api';
|
|
57
|
+
export * from './api/sharing-api';
|
|
56
58
|
export * from './api/smart-filing-api';
|
|
57
59
|
export * from './api/storage-encryption-administration-api';
|
|
58
60
|
export * from './api/tus-controller-api';
|
package/dist/api.js
CHANGED
|
@@ -64,6 +64,7 @@ __exportStar(require("./api/mcp-discovery-controller-api"), exports);
|
|
|
64
64
|
__exportStar(require("./api/mcp-token-admin-controller-api"), exports);
|
|
65
65
|
__exportStar(require("./api/notifications-api"), exports);
|
|
66
66
|
__exportStar(require("./api/organisation-settings-api"), exports);
|
|
67
|
+
__exportStar(require("./api/ownership-api"), exports);
|
|
67
68
|
__exportStar(require("./api/pdftools-api"), exports);
|
|
68
69
|
__exportStar(require("./api/quota-administration-api"), exports);
|
|
69
70
|
__exportStar(require("./api/quotas-api"), exports);
|
|
@@ -71,6 +72,7 @@ __exportStar(require("./api/scan-agent-api"), exports);
|
|
|
71
72
|
__exportStar(require("./api/scanner-proxy-api"), exports);
|
|
72
73
|
__exportStar(require("./api/search-administration-api"), exports);
|
|
73
74
|
__exportStar(require("./api/settings-api"), exports);
|
|
75
|
+
__exportStar(require("./api/sharing-api"), exports);
|
|
74
76
|
__exportStar(require("./api/smart-filing-api"), exports);
|
|
75
77
|
__exportStar(require("./api/storage-encryption-administration-api"), exports);
|
|
76
78
|
__exportStar(require("./api/tus-controller-api"), exports);
|