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