@openfilz-sdk/typescript-ee 1.12.16 → 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,1008 @@
|
|
|
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, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* OwnershipApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const OwnershipApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
37
|
+
* @param {string} userId
|
|
38
|
+
* @param {string} [parentId]
|
|
39
|
+
* @param {boolean} [recursive]
|
|
40
|
+
* @param {AdminCountOwnedDocumentsTypeEnum} [type]
|
|
41
|
+
* @param {string} [name]
|
|
42
|
+
* @param {string} [updatedAfter]
|
|
43
|
+
* @param {string} [updatedBefore]
|
|
44
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
adminCountOwnedDocuments: (userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, xOpenFilzReason_1, ...args_1) => __awaiter(this, [userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, xOpenFilzReason_1, ...args_1], void 0, function* (userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options = {}) {
|
|
49
|
+
// verify required parameter 'userId' is not null or undefined
|
|
50
|
+
assertParamExists('adminCountOwnedDocuments', 'userId', userId);
|
|
51
|
+
const localVarPath = `/api/v1/admin/ownership/users/{userId}/documents/count`
|
|
52
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, 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 setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
65
|
+
if (parentId !== undefined) {
|
|
66
|
+
localVarQueryParameter['parentId'] = parentId;
|
|
67
|
+
}
|
|
68
|
+
if (recursive !== undefined) {
|
|
69
|
+
localVarQueryParameter['recursive'] = recursive;
|
|
70
|
+
}
|
|
71
|
+
if (type !== undefined) {
|
|
72
|
+
localVarQueryParameter['type'] = type;
|
|
73
|
+
}
|
|
74
|
+
if (name !== undefined) {
|
|
75
|
+
localVarQueryParameter['name'] = name;
|
|
76
|
+
}
|
|
77
|
+
if (updatedAfter !== undefined) {
|
|
78
|
+
localVarQueryParameter['updatedAfter'] = (updatedAfter instanceof Date) ?
|
|
79
|
+
updatedAfter.toISOString() :
|
|
80
|
+
updatedAfter;
|
|
81
|
+
}
|
|
82
|
+
if (updatedBefore !== undefined) {
|
|
83
|
+
localVarQueryParameter['updatedBefore'] = (updatedBefore instanceof Date) ?
|
|
84
|
+
updatedBefore.toISOString() :
|
|
85
|
+
updatedBefore;
|
|
86
|
+
}
|
|
87
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
88
|
+
if (xOpenFilzReason != null) {
|
|
89
|
+
localVarHeaderParameter['X-OpenFilz-Reason'] = String(xOpenFilzReason);
|
|
90
|
+
}
|
|
91
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
94
|
+
return {
|
|
95
|
+
url: toPathString(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
97
|
+
};
|
|
98
|
+
}),
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @summary A transfer\'s progress and outcome
|
|
102
|
+
* @param {string} jobId
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
adminGetOwnershipTransfer: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
|
|
107
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
108
|
+
assertParamExists('adminGetOwnershipTransfer', 'jobId', jobId);
|
|
109
|
+
const localVarPath = `/api/v1/admin/ownership/transfers/{jobId}`
|
|
110
|
+
.replace('{jobId}', encodeURIComponent(String(jobId)));
|
|
111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
113
|
+
let baseOptions;
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
}
|
|
117
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
118
|
+
const localVarHeaderParameter = {};
|
|
119
|
+
const localVarQueryParameter = {};
|
|
120
|
+
// authentication keycloak_auth required
|
|
121
|
+
// http bearer authentication required
|
|
122
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
123
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
127
|
+
return {
|
|
128
|
+
url: toPathString(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
};
|
|
131
|
+
}),
|
|
132
|
+
/**
|
|
133
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
134
|
+
* @summary List the documents a user owns
|
|
135
|
+
* @param {string} userId
|
|
136
|
+
* @param {string} [parentId]
|
|
137
|
+
* @param {boolean} [recursive]
|
|
138
|
+
* @param {AdminListOwnedDocumentsTypeEnum} [type]
|
|
139
|
+
* @param {string} [name]
|
|
140
|
+
* @param {string} [updatedAfter]
|
|
141
|
+
* @param {string} [updatedBefore]
|
|
142
|
+
* @param {number} [page]
|
|
143
|
+
* @param {number} [size]
|
|
144
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
adminListOwnedDocuments: (userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, page_1, size_1, xOpenFilzReason_1, ...args_1) => __awaiter(this, [userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, page_1, size_1, xOpenFilzReason_1, ...args_1], void 0, function* (userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options = {}) {
|
|
149
|
+
// verify required parameter 'userId' is not null or undefined
|
|
150
|
+
assertParamExists('adminListOwnedDocuments', 'userId', userId);
|
|
151
|
+
const localVarPath = `/api/v1/admin/ownership/users/{userId}/documents`
|
|
152
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
}
|
|
159
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
160
|
+
const localVarHeaderParameter = {};
|
|
161
|
+
const localVarQueryParameter = {};
|
|
162
|
+
// authentication keycloak_auth required
|
|
163
|
+
// http bearer authentication required
|
|
164
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
165
|
+
if (parentId !== undefined) {
|
|
166
|
+
localVarQueryParameter['parentId'] = parentId;
|
|
167
|
+
}
|
|
168
|
+
if (recursive !== undefined) {
|
|
169
|
+
localVarQueryParameter['recursive'] = recursive;
|
|
170
|
+
}
|
|
171
|
+
if (type !== undefined) {
|
|
172
|
+
localVarQueryParameter['type'] = type;
|
|
173
|
+
}
|
|
174
|
+
if (name !== undefined) {
|
|
175
|
+
localVarQueryParameter['name'] = name;
|
|
176
|
+
}
|
|
177
|
+
if (updatedAfter !== undefined) {
|
|
178
|
+
localVarQueryParameter['updatedAfter'] = (updatedAfter instanceof Date) ?
|
|
179
|
+
updatedAfter.toISOString() :
|
|
180
|
+
updatedAfter;
|
|
181
|
+
}
|
|
182
|
+
if (updatedBefore !== undefined) {
|
|
183
|
+
localVarQueryParameter['updatedBefore'] = (updatedBefore instanceof Date) ?
|
|
184
|
+
updatedBefore.toISOString() :
|
|
185
|
+
updatedBefore;
|
|
186
|
+
}
|
|
187
|
+
if (page !== undefined) {
|
|
188
|
+
localVarQueryParameter['page'] = page;
|
|
189
|
+
}
|
|
190
|
+
if (size !== undefined) {
|
|
191
|
+
localVarQueryParameter['size'] = size;
|
|
192
|
+
}
|
|
193
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
194
|
+
if (xOpenFilzReason != null) {
|
|
195
|
+
localVarHeaderParameter['X-OpenFilz-Reason'] = String(xOpenFilzReason);
|
|
196
|
+
}
|
|
197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
200
|
+
return {
|
|
201
|
+
url: toPathString(localVarUrlObj),
|
|
202
|
+
options: localVarRequestOptions,
|
|
203
|
+
};
|
|
204
|
+
}),
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @summary The last 50 transfers from or to a user
|
|
208
|
+
* @param {string} userId
|
|
209
|
+
* @param {*} [options] Override http request option.
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
*/
|
|
212
|
+
adminListOwnershipTransfers: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
213
|
+
// verify required parameter 'userId' is not null or undefined
|
|
214
|
+
assertParamExists('adminListOwnershipTransfers', 'userId', userId);
|
|
215
|
+
const localVarPath = `/api/v1/admin/ownership/transfers`;
|
|
216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
217
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
218
|
+
let baseOptions;
|
|
219
|
+
if (configuration) {
|
|
220
|
+
baseOptions = configuration.baseOptions;
|
|
221
|
+
}
|
|
222
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
223
|
+
const localVarHeaderParameter = {};
|
|
224
|
+
const localVarQueryParameter = {};
|
|
225
|
+
// authentication keycloak_auth required
|
|
226
|
+
// http bearer authentication required
|
|
227
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
228
|
+
if (userId !== undefined) {
|
|
229
|
+
localVarQueryParameter['userId'] = userId;
|
|
230
|
+
}
|
|
231
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
232
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
234
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
}),
|
|
240
|
+
/**
|
|
241
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
242
|
+
* @summary Transfer documents to another user
|
|
243
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
adminTransferOwnership: (ownershipTransferRequest_1, ...args_1) => __awaiter(this, [ownershipTransferRequest_1, ...args_1], void 0, function* (ownershipTransferRequest, options = {}) {
|
|
248
|
+
// verify required parameter 'ownershipTransferRequest' is not null or undefined
|
|
249
|
+
assertParamExists('adminTransferOwnership', 'ownershipTransferRequest', ownershipTransferRequest);
|
|
250
|
+
const localVarPath = `/api/v1/admin/ownership/transfers`;
|
|
251
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
252
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
253
|
+
let baseOptions;
|
|
254
|
+
if (configuration) {
|
|
255
|
+
baseOptions = configuration.baseOptions;
|
|
256
|
+
}
|
|
257
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
258
|
+
const localVarHeaderParameter = {};
|
|
259
|
+
const localVarQueryParameter = {};
|
|
260
|
+
// authentication keycloak_auth required
|
|
261
|
+
// http bearer authentication required
|
|
262
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
263
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
264
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
268
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ownershipTransferRequest, localVarRequestOptions, configuration);
|
|
269
|
+
return {
|
|
270
|
+
url: toPathString(localVarUrlObj),
|
|
271
|
+
options: localVarRequestOptions,
|
|
272
|
+
};
|
|
273
|
+
}),
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
277
|
+
* @param {string} userId
|
|
278
|
+
* @param {string} [parentId]
|
|
279
|
+
* @param {boolean} [recursive]
|
|
280
|
+
* @param {CountOwnedDocumentsTypeEnum} [type]
|
|
281
|
+
* @param {string} [name]
|
|
282
|
+
* @param {string} [updatedAfter]
|
|
283
|
+
* @param {string} [updatedBefore]
|
|
284
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
285
|
+
* @param {*} [options] Override http request option.
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
*/
|
|
288
|
+
countOwnedDocuments: (userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, xOpenFilzReason_1, ...args_1) => __awaiter(this, [userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, xOpenFilzReason_1, ...args_1], void 0, function* (userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options = {}) {
|
|
289
|
+
// verify required parameter 'userId' is not null or undefined
|
|
290
|
+
assertParamExists('countOwnedDocuments', 'userId', userId);
|
|
291
|
+
const localVarPath = `/api/v1/users/ownership/users/{userId}/documents/count`
|
|
292
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
294
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
295
|
+
let baseOptions;
|
|
296
|
+
if (configuration) {
|
|
297
|
+
baseOptions = configuration.baseOptions;
|
|
298
|
+
}
|
|
299
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
300
|
+
const localVarHeaderParameter = {};
|
|
301
|
+
const localVarQueryParameter = {};
|
|
302
|
+
// authentication keycloak_auth required
|
|
303
|
+
// http bearer authentication required
|
|
304
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
305
|
+
if (parentId !== undefined) {
|
|
306
|
+
localVarQueryParameter['parentId'] = parentId;
|
|
307
|
+
}
|
|
308
|
+
if (recursive !== undefined) {
|
|
309
|
+
localVarQueryParameter['recursive'] = recursive;
|
|
310
|
+
}
|
|
311
|
+
if (type !== undefined) {
|
|
312
|
+
localVarQueryParameter['type'] = type;
|
|
313
|
+
}
|
|
314
|
+
if (name !== undefined) {
|
|
315
|
+
localVarQueryParameter['name'] = name;
|
|
316
|
+
}
|
|
317
|
+
if (updatedAfter !== undefined) {
|
|
318
|
+
localVarQueryParameter['updatedAfter'] = (updatedAfter instanceof Date) ?
|
|
319
|
+
updatedAfter.toISOString() :
|
|
320
|
+
updatedAfter;
|
|
321
|
+
}
|
|
322
|
+
if (updatedBefore !== undefined) {
|
|
323
|
+
localVarQueryParameter['updatedBefore'] = (updatedBefore instanceof Date) ?
|
|
324
|
+
updatedBefore.toISOString() :
|
|
325
|
+
updatedBefore;
|
|
326
|
+
}
|
|
327
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
328
|
+
if (xOpenFilzReason != null) {
|
|
329
|
+
localVarHeaderParameter['X-OpenFilz-Reason'] = String(xOpenFilzReason);
|
|
330
|
+
}
|
|
331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
334
|
+
return {
|
|
335
|
+
url: toPathString(localVarUrlObj),
|
|
336
|
+
options: localVarRequestOptions,
|
|
337
|
+
};
|
|
338
|
+
}),
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @summary A transfer\'s progress and outcome
|
|
342
|
+
* @param {string} jobId
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
getOwnershipTransfer: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
|
|
347
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
348
|
+
assertParamExists('getOwnershipTransfer', 'jobId', jobId);
|
|
349
|
+
const localVarPath = `/api/v1/users/ownership/transfers/{jobId}`
|
|
350
|
+
.replace('{jobId}', encodeURIComponent(String(jobId)));
|
|
351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
353
|
+
let baseOptions;
|
|
354
|
+
if (configuration) {
|
|
355
|
+
baseOptions = configuration.baseOptions;
|
|
356
|
+
}
|
|
357
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
358
|
+
const localVarHeaderParameter = {};
|
|
359
|
+
const localVarQueryParameter = {};
|
|
360
|
+
// authentication keycloak_auth required
|
|
361
|
+
// http bearer authentication required
|
|
362
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
363
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
364
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
365
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
366
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
367
|
+
return {
|
|
368
|
+
url: toPathString(localVarUrlObj),
|
|
369
|
+
options: localVarRequestOptions,
|
|
370
|
+
};
|
|
371
|
+
}),
|
|
372
|
+
/**
|
|
373
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
374
|
+
* @summary List the documents a user owns
|
|
375
|
+
* @param {string} userId
|
|
376
|
+
* @param {string} [parentId]
|
|
377
|
+
* @param {boolean} [recursive]
|
|
378
|
+
* @param {ListOwnedDocumentsTypeEnum} [type]
|
|
379
|
+
* @param {string} [name]
|
|
380
|
+
* @param {string} [updatedAfter]
|
|
381
|
+
* @param {string} [updatedBefore]
|
|
382
|
+
* @param {number} [page]
|
|
383
|
+
* @param {number} [size]
|
|
384
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
listOwnedDocuments: (userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, page_1, size_1, xOpenFilzReason_1, ...args_1) => __awaiter(this, [userId_1, parentId_1, recursive_1, type_1, name_1, updatedAfter_1, updatedBefore_1, page_1, size_1, xOpenFilzReason_1, ...args_1], void 0, function* (userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options = {}) {
|
|
389
|
+
// verify required parameter 'userId' is not null or undefined
|
|
390
|
+
assertParamExists('listOwnedDocuments', 'userId', userId);
|
|
391
|
+
const localVarPath = `/api/v1/users/ownership/users/{userId}/documents`
|
|
392
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
395
|
+
let baseOptions;
|
|
396
|
+
if (configuration) {
|
|
397
|
+
baseOptions = configuration.baseOptions;
|
|
398
|
+
}
|
|
399
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
400
|
+
const localVarHeaderParameter = {};
|
|
401
|
+
const localVarQueryParameter = {};
|
|
402
|
+
// authentication keycloak_auth required
|
|
403
|
+
// http bearer authentication required
|
|
404
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
405
|
+
if (parentId !== undefined) {
|
|
406
|
+
localVarQueryParameter['parentId'] = parentId;
|
|
407
|
+
}
|
|
408
|
+
if (recursive !== undefined) {
|
|
409
|
+
localVarQueryParameter['recursive'] = recursive;
|
|
410
|
+
}
|
|
411
|
+
if (type !== undefined) {
|
|
412
|
+
localVarQueryParameter['type'] = type;
|
|
413
|
+
}
|
|
414
|
+
if (name !== undefined) {
|
|
415
|
+
localVarQueryParameter['name'] = name;
|
|
416
|
+
}
|
|
417
|
+
if (updatedAfter !== undefined) {
|
|
418
|
+
localVarQueryParameter['updatedAfter'] = (updatedAfter instanceof Date) ?
|
|
419
|
+
updatedAfter.toISOString() :
|
|
420
|
+
updatedAfter;
|
|
421
|
+
}
|
|
422
|
+
if (updatedBefore !== undefined) {
|
|
423
|
+
localVarQueryParameter['updatedBefore'] = (updatedBefore instanceof Date) ?
|
|
424
|
+
updatedBefore.toISOString() :
|
|
425
|
+
updatedBefore;
|
|
426
|
+
}
|
|
427
|
+
if (page !== undefined) {
|
|
428
|
+
localVarQueryParameter['page'] = page;
|
|
429
|
+
}
|
|
430
|
+
if (size !== undefined) {
|
|
431
|
+
localVarQueryParameter['size'] = size;
|
|
432
|
+
}
|
|
433
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
434
|
+
if (xOpenFilzReason != null) {
|
|
435
|
+
localVarHeaderParameter['X-OpenFilz-Reason'] = String(xOpenFilzReason);
|
|
436
|
+
}
|
|
437
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
440
|
+
return {
|
|
441
|
+
url: toPathString(localVarUrlObj),
|
|
442
|
+
options: localVarRequestOptions,
|
|
443
|
+
};
|
|
444
|
+
}),
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @summary The last 50 transfers from or to a user
|
|
448
|
+
* @param {string} userId
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
listOwnershipTransfers: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
453
|
+
// verify required parameter 'userId' is not null or undefined
|
|
454
|
+
assertParamExists('listOwnershipTransfers', 'userId', userId);
|
|
455
|
+
const localVarPath = `/api/v1/users/ownership/transfers`;
|
|
456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
458
|
+
let baseOptions;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
463
|
+
const localVarHeaderParameter = {};
|
|
464
|
+
const localVarQueryParameter = {};
|
|
465
|
+
// authentication keycloak_auth required
|
|
466
|
+
// http bearer authentication required
|
|
467
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
468
|
+
if (userId !== undefined) {
|
|
469
|
+
localVarQueryParameter['userId'] = userId;
|
|
470
|
+
}
|
|
471
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
472
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
474
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
475
|
+
return {
|
|
476
|
+
url: toPathString(localVarUrlObj),
|
|
477
|
+
options: localVarRequestOptions,
|
|
478
|
+
};
|
|
479
|
+
}),
|
|
480
|
+
/**
|
|
481
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
482
|
+
* @summary Transfer documents to another user
|
|
483
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
*/
|
|
487
|
+
transferOwnership: (ownershipTransferRequest_1, ...args_1) => __awaiter(this, [ownershipTransferRequest_1, ...args_1], void 0, function* (ownershipTransferRequest, options = {}) {
|
|
488
|
+
// verify required parameter 'ownershipTransferRequest' is not null or undefined
|
|
489
|
+
assertParamExists('transferOwnership', 'ownershipTransferRequest', ownershipTransferRequest);
|
|
490
|
+
const localVarPath = `/api/v1/users/ownership/transfers`;
|
|
491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
493
|
+
let baseOptions;
|
|
494
|
+
if (configuration) {
|
|
495
|
+
baseOptions = configuration.baseOptions;
|
|
496
|
+
}
|
|
497
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
498
|
+
const localVarHeaderParameter = {};
|
|
499
|
+
const localVarQueryParameter = {};
|
|
500
|
+
// authentication keycloak_auth required
|
|
501
|
+
// http bearer authentication required
|
|
502
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
503
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
504
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
505
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
508
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ownershipTransferRequest, localVarRequestOptions, configuration);
|
|
509
|
+
return {
|
|
510
|
+
url: toPathString(localVarUrlObj),
|
|
511
|
+
options: localVarRequestOptions,
|
|
512
|
+
};
|
|
513
|
+
}),
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* OwnershipApi - functional programming interface
|
|
518
|
+
*/
|
|
519
|
+
export const OwnershipApiFp = function (configuration) {
|
|
520
|
+
const localVarAxiosParamCreator = OwnershipApiAxiosParamCreator(configuration);
|
|
521
|
+
return {
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
525
|
+
* @param {string} userId
|
|
526
|
+
* @param {string} [parentId]
|
|
527
|
+
* @param {boolean} [recursive]
|
|
528
|
+
* @param {AdminCountOwnedDocumentsTypeEnum} [type]
|
|
529
|
+
* @param {string} [name]
|
|
530
|
+
* @param {string} [updatedAfter]
|
|
531
|
+
* @param {string} [updatedBefore]
|
|
532
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
adminCountOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options) {
|
|
537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
538
|
+
var _a, _b, _c;
|
|
539
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminCountOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options);
|
|
540
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
541
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.adminCountOwnedDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
542
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
543
|
+
});
|
|
544
|
+
},
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @summary A transfer\'s progress and outcome
|
|
548
|
+
* @param {string} jobId
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
adminGetOwnershipTransfer(jobId, options) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
554
|
+
var _a, _b, _c;
|
|
555
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetOwnershipTransfer(jobId, options);
|
|
556
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
557
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.adminGetOwnershipTransfer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
559
|
+
});
|
|
560
|
+
},
|
|
561
|
+
/**
|
|
562
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
563
|
+
* @summary List the documents a user owns
|
|
564
|
+
* @param {string} userId
|
|
565
|
+
* @param {string} [parentId]
|
|
566
|
+
* @param {boolean} [recursive]
|
|
567
|
+
* @param {AdminListOwnedDocumentsTypeEnum} [type]
|
|
568
|
+
* @param {string} [name]
|
|
569
|
+
* @param {string} [updatedAfter]
|
|
570
|
+
* @param {string} [updatedBefore]
|
|
571
|
+
* @param {number} [page]
|
|
572
|
+
* @param {number} [size]
|
|
573
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
*/
|
|
577
|
+
adminListOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options) {
|
|
578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
579
|
+
var _a, _b, _c;
|
|
580
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminListOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options);
|
|
581
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
582
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.adminListOwnedDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
583
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
584
|
+
});
|
|
585
|
+
},
|
|
586
|
+
/**
|
|
587
|
+
*
|
|
588
|
+
* @summary The last 50 transfers from or to a user
|
|
589
|
+
* @param {string} userId
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
adminListOwnershipTransfers(userId, options) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
var _a, _b, _c;
|
|
596
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminListOwnershipTransfers(userId, options);
|
|
597
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
598
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.adminListOwnershipTransfers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
599
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
600
|
+
});
|
|
601
|
+
},
|
|
602
|
+
/**
|
|
603
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
604
|
+
* @summary Transfer documents to another user
|
|
605
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
adminTransferOwnership(ownershipTransferRequest, options) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
611
|
+
var _a, _b, _c;
|
|
612
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTransferOwnership(ownershipTransferRequest, options);
|
|
613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
614
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.adminTransferOwnership']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
616
|
+
});
|
|
617
|
+
},
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
621
|
+
* @param {string} userId
|
|
622
|
+
* @param {string} [parentId]
|
|
623
|
+
* @param {boolean} [recursive]
|
|
624
|
+
* @param {CountOwnedDocumentsTypeEnum} [type]
|
|
625
|
+
* @param {string} [name]
|
|
626
|
+
* @param {string} [updatedAfter]
|
|
627
|
+
* @param {string} [updatedBefore]
|
|
628
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
countOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options) {
|
|
633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
634
|
+
var _a, _b, _c;
|
|
635
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.countOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options);
|
|
636
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
637
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.countOwnedDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
638
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
639
|
+
});
|
|
640
|
+
},
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
* @summary A transfer\'s progress and outcome
|
|
644
|
+
* @param {string} jobId
|
|
645
|
+
* @param {*} [options] Override http request option.
|
|
646
|
+
* @throws {RequiredError}
|
|
647
|
+
*/
|
|
648
|
+
getOwnershipTransfer(jobId, options) {
|
|
649
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
650
|
+
var _a, _b, _c;
|
|
651
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOwnershipTransfer(jobId, options);
|
|
652
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
653
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.getOwnershipTransfer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
654
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
655
|
+
});
|
|
656
|
+
},
|
|
657
|
+
/**
|
|
658
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
659
|
+
* @summary List the documents a user owns
|
|
660
|
+
* @param {string} userId
|
|
661
|
+
* @param {string} [parentId]
|
|
662
|
+
* @param {boolean} [recursive]
|
|
663
|
+
* @param {ListOwnedDocumentsTypeEnum} [type]
|
|
664
|
+
* @param {string} [name]
|
|
665
|
+
* @param {string} [updatedAfter]
|
|
666
|
+
* @param {string} [updatedBefore]
|
|
667
|
+
* @param {number} [page]
|
|
668
|
+
* @param {number} [size]
|
|
669
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
listOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
+
var _a, _b, _c;
|
|
676
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options);
|
|
677
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
678
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.listOwnedDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
679
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
680
|
+
});
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @summary The last 50 transfers from or to a user
|
|
685
|
+
* @param {string} userId
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
listOwnershipTransfers(userId, options) {
|
|
690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
691
|
+
var _a, _b, _c;
|
|
692
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOwnershipTransfers(userId, options);
|
|
693
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
694
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.listOwnershipTransfers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
695
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
696
|
+
});
|
|
697
|
+
},
|
|
698
|
+
/**
|
|
699
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
700
|
+
* @summary Transfer documents to another user
|
|
701
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
*/
|
|
705
|
+
transferOwnership(ownershipTransferRequest, options) {
|
|
706
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
707
|
+
var _a, _b, _c;
|
|
708
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.transferOwnership(ownershipTransferRequest, options);
|
|
709
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
710
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.transferOwnership']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
711
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
|
+
});
|
|
713
|
+
},
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* OwnershipApi - factory interface
|
|
718
|
+
*/
|
|
719
|
+
export const OwnershipApiFactory = function (configuration, basePath, axios) {
|
|
720
|
+
const localVarFp = OwnershipApiFp(configuration);
|
|
721
|
+
return {
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
725
|
+
* @param {string} userId
|
|
726
|
+
* @param {string} [parentId]
|
|
727
|
+
* @param {boolean} [recursive]
|
|
728
|
+
* @param {AdminCountOwnedDocumentsTypeEnum} [type]
|
|
729
|
+
* @param {string} [name]
|
|
730
|
+
* @param {string} [updatedAfter]
|
|
731
|
+
* @param {string} [updatedBefore]
|
|
732
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
adminCountOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options) {
|
|
737
|
+
return localVarFp.adminCountOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options).then((request) => request(axios, basePath));
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @summary A transfer\'s progress and outcome
|
|
742
|
+
* @param {string} jobId
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
adminGetOwnershipTransfer(jobId, options) {
|
|
747
|
+
return localVarFp.adminGetOwnershipTransfer(jobId, options).then((request) => request(axios, basePath));
|
|
748
|
+
},
|
|
749
|
+
/**
|
|
750
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
751
|
+
* @summary List the documents a user owns
|
|
752
|
+
* @param {string} userId
|
|
753
|
+
* @param {string} [parentId]
|
|
754
|
+
* @param {boolean} [recursive]
|
|
755
|
+
* @param {AdminListOwnedDocumentsTypeEnum} [type]
|
|
756
|
+
* @param {string} [name]
|
|
757
|
+
* @param {string} [updatedAfter]
|
|
758
|
+
* @param {string} [updatedBefore]
|
|
759
|
+
* @param {number} [page]
|
|
760
|
+
* @param {number} [size]
|
|
761
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
adminListOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options) {
|
|
766
|
+
return localVarFp.adminListOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options).then((request) => request(axios, basePath));
|
|
767
|
+
},
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @summary The last 50 transfers from or to a user
|
|
771
|
+
* @param {string} userId
|
|
772
|
+
* @param {*} [options] Override http request option.
|
|
773
|
+
* @throws {RequiredError}
|
|
774
|
+
*/
|
|
775
|
+
adminListOwnershipTransfers(userId, options) {
|
|
776
|
+
return localVarFp.adminListOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
|
|
777
|
+
},
|
|
778
|
+
/**
|
|
779
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
780
|
+
* @summary Transfer documents to another user
|
|
781
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
adminTransferOwnership(ownershipTransferRequest, options) {
|
|
786
|
+
return localVarFp.adminTransferOwnership(ownershipTransferRequest, options).then((request) => request(axios, basePath));
|
|
787
|
+
},
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
791
|
+
* @param {string} userId
|
|
792
|
+
* @param {string} [parentId]
|
|
793
|
+
* @param {boolean} [recursive]
|
|
794
|
+
* @param {CountOwnedDocumentsTypeEnum} [type]
|
|
795
|
+
* @param {string} [name]
|
|
796
|
+
* @param {string} [updatedAfter]
|
|
797
|
+
* @param {string} [updatedBefore]
|
|
798
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
799
|
+
* @param {*} [options] Override http request option.
|
|
800
|
+
* @throws {RequiredError}
|
|
801
|
+
*/
|
|
802
|
+
countOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options) {
|
|
803
|
+
return localVarFp.countOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options).then((request) => request(axios, basePath));
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @summary A transfer\'s progress and outcome
|
|
808
|
+
* @param {string} jobId
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
getOwnershipTransfer(jobId, options) {
|
|
813
|
+
return localVarFp.getOwnershipTransfer(jobId, options).then((request) => request(axios, basePath));
|
|
814
|
+
},
|
|
815
|
+
/**
|
|
816
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
817
|
+
* @summary List the documents a user owns
|
|
818
|
+
* @param {string} userId
|
|
819
|
+
* @param {string} [parentId]
|
|
820
|
+
* @param {boolean} [recursive]
|
|
821
|
+
* @param {ListOwnedDocumentsTypeEnum} [type]
|
|
822
|
+
* @param {string} [name]
|
|
823
|
+
* @param {string} [updatedAfter]
|
|
824
|
+
* @param {string} [updatedBefore]
|
|
825
|
+
* @param {number} [page]
|
|
826
|
+
* @param {number} [size]
|
|
827
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
828
|
+
* @param {*} [options] Override http request option.
|
|
829
|
+
* @throws {RequiredError}
|
|
830
|
+
*/
|
|
831
|
+
listOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options) {
|
|
832
|
+
return localVarFp.listOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options).then((request) => request(axios, basePath));
|
|
833
|
+
},
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
* @summary The last 50 transfers from or to a user
|
|
837
|
+
* @param {string} userId
|
|
838
|
+
* @param {*} [options] Override http request option.
|
|
839
|
+
* @throws {RequiredError}
|
|
840
|
+
*/
|
|
841
|
+
listOwnershipTransfers(userId, options) {
|
|
842
|
+
return localVarFp.listOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
|
|
843
|
+
},
|
|
844
|
+
/**
|
|
845
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
846
|
+
* @summary Transfer documents to another user
|
|
847
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
848
|
+
* @param {*} [options] Override http request option.
|
|
849
|
+
* @throws {RequiredError}
|
|
850
|
+
*/
|
|
851
|
+
transferOwnership(ownershipTransferRequest, options) {
|
|
852
|
+
return localVarFp.transferOwnership(ownershipTransferRequest, options).then((request) => request(axios, basePath));
|
|
853
|
+
},
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* OwnershipApi - object-oriented interface
|
|
858
|
+
*/
|
|
859
|
+
export class OwnershipApi extends BaseAPI {
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
863
|
+
* @param {string} userId
|
|
864
|
+
* @param {string} [parentId]
|
|
865
|
+
* @param {boolean} [recursive]
|
|
866
|
+
* @param {AdminCountOwnedDocumentsTypeEnum} [type]
|
|
867
|
+
* @param {string} [name]
|
|
868
|
+
* @param {string} [updatedAfter]
|
|
869
|
+
* @param {string} [updatedBefore]
|
|
870
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
adminCountOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options) {
|
|
875
|
+
return OwnershipApiFp(this.configuration).adminCountOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options).then((request) => request(this.axios, this.basePath));
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @summary A transfer\'s progress and outcome
|
|
880
|
+
* @param {string} jobId
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
adminGetOwnershipTransfer(jobId, options) {
|
|
885
|
+
return OwnershipApiFp(this.configuration).adminGetOwnershipTransfer(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
889
|
+
* @summary List the documents a user owns
|
|
890
|
+
* @param {string} userId
|
|
891
|
+
* @param {string} [parentId]
|
|
892
|
+
* @param {boolean} [recursive]
|
|
893
|
+
* @param {AdminListOwnedDocumentsTypeEnum} [type]
|
|
894
|
+
* @param {string} [name]
|
|
895
|
+
* @param {string} [updatedAfter]
|
|
896
|
+
* @param {string} [updatedBefore]
|
|
897
|
+
* @param {number} [page]
|
|
898
|
+
* @param {number} [size]
|
|
899
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
900
|
+
* @param {*} [options] Override http request option.
|
|
901
|
+
* @throws {RequiredError}
|
|
902
|
+
*/
|
|
903
|
+
adminListOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options) {
|
|
904
|
+
return OwnershipApiFp(this.configuration).adminListOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options).then((request) => request(this.axios, this.basePath));
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @summary The last 50 transfers from or to a user
|
|
909
|
+
* @param {string} userId
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
adminListOwnershipTransfers(userId, options) {
|
|
914
|
+
return OwnershipApiFp(this.configuration).adminListOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
918
|
+
* @summary Transfer documents to another user
|
|
919
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
adminTransferOwnership(ownershipTransferRequest, options) {
|
|
924
|
+
return OwnershipApiFp(this.configuration).adminTransferOwnership(ownershipTransferRequest, options).then((request) => request(this.axios, this.basePath));
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
*
|
|
928
|
+
* @summary Count the documents a user owns (same filter as the listing)
|
|
929
|
+
* @param {string} userId
|
|
930
|
+
* @param {string} [parentId]
|
|
931
|
+
* @param {boolean} [recursive]
|
|
932
|
+
* @param {CountOwnedDocumentsTypeEnum} [type]
|
|
933
|
+
* @param {string} [name]
|
|
934
|
+
* @param {string} [updatedAfter]
|
|
935
|
+
* @param {string} [updatedBefore]
|
|
936
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
countOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options) {
|
|
941
|
+
return OwnershipApiFp(this.configuration).countOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, xOpenFilzReason, options).then((request) => request(this.axios, this.basePath));
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @summary A transfer\'s progress and outcome
|
|
946
|
+
* @param {string} jobId
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
getOwnershipTransfer(jobId, options) {
|
|
951
|
+
return OwnershipApiFp(this.configuration).getOwnershipTransfer(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
955
|
+
* @summary List the documents a user owns
|
|
956
|
+
* @param {string} userId
|
|
957
|
+
* @param {string} [parentId]
|
|
958
|
+
* @param {boolean} [recursive]
|
|
959
|
+
* @param {ListOwnedDocumentsTypeEnum} [type]
|
|
960
|
+
* @param {string} [name]
|
|
961
|
+
* @param {string} [updatedAfter]
|
|
962
|
+
* @param {string} [updatedBefore]
|
|
963
|
+
* @param {number} [page]
|
|
964
|
+
* @param {number} [size]
|
|
965
|
+
* @param {string} [xOpenFilzReason] Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
*/
|
|
969
|
+
listOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options) {
|
|
970
|
+
return OwnershipApiFp(this.configuration).listOwnedDocuments(userId, parentId, recursive, type, name, updatedAfter, updatedBefore, page, size, xOpenFilzReason, options).then((request) => request(this.axios, this.basePath));
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
*
|
|
974
|
+
* @summary The last 50 transfers from or to a user
|
|
975
|
+
* @param {string} userId
|
|
976
|
+
* @param {*} [options] Override http request option.
|
|
977
|
+
* @throws {RequiredError}
|
|
978
|
+
*/
|
|
979
|
+
listOwnershipTransfers(userId, options) {
|
|
980
|
+
return OwnershipApiFp(this.configuration).listOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
|
|
981
|
+
}
|
|
982
|
+
/**
|
|
983
|
+
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
984
|
+
* @summary Transfer documents to another user
|
|
985
|
+
* @param {OwnershipTransferRequest} ownershipTransferRequest
|
|
986
|
+
* @param {*} [options] Override http request option.
|
|
987
|
+
* @throws {RequiredError}
|
|
988
|
+
*/
|
|
989
|
+
transferOwnership(ownershipTransferRequest, options) {
|
|
990
|
+
return OwnershipApiFp(this.configuration).transferOwnership(ownershipTransferRequest, options).then((request) => request(this.axios, this.basePath));
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
export const AdminCountOwnedDocumentsTypeEnum = {
|
|
994
|
+
File: 'FILE',
|
|
995
|
+
Folder: 'FOLDER',
|
|
996
|
+
};
|
|
997
|
+
export const AdminListOwnedDocumentsTypeEnum = {
|
|
998
|
+
File: 'FILE',
|
|
999
|
+
Folder: 'FOLDER',
|
|
1000
|
+
};
|
|
1001
|
+
export const CountOwnedDocumentsTypeEnum = {
|
|
1002
|
+
File: 'FILE',
|
|
1003
|
+
Folder: 'FOLDER',
|
|
1004
|
+
};
|
|
1005
|
+
export const ListOwnedDocumentsTypeEnum = {
|
|
1006
|
+
File: 'FILE',
|
|
1007
|
+
Folder: 'FOLDER',
|
|
1008
|
+
};
|