Projekt

Obecné

Profil

Stáhnout (63 KB) Statistiky
| Větev: | Tag: | Revize:
1 3e6b15a7 Lukáš Vlček
/* tslint:disable */
2
/* eslint-disable */
3
/**
4
 * AnnotationTool
5
 * KIV/ASWI ZČU Plzeň, 2022
6
 *
7
 * The version of the OpenAPI document: 0.1.1
8 0db53e25 Jaroslav Hrubý
 * 
9 3e6b15a7 Lukáš Vlček
 *
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 0db53e25 Jaroslav Hrubý
16 3e6b15a7 Lukáš Vlček
import { Configuration } from './configuration';
17
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
// Some imports not used depending on template conditions
19
// @ts-ignore
20 0db53e25 Jaroslav Hrubý
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21 3e6b15a7 Lukáš Vlček
// @ts-ignore
22 0db53e25 Jaroslav Hrubý
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23 3e6b15a7 Lukáš Vlček
24
/**
25 0db53e25 Jaroslav Hrubý
 * 
26 3e6b15a7 Lukáš Vlček
 * @export
27
 * @interface AnnotationInfo
28
 */
29
export interface AnnotationInfo {
30
    /**
31 0db53e25 Jaroslav Hrubý
     * 
32 3e6b15a7 Lukáš Vlček
     * @type {string}
33
     * @memberof AnnotationInfo
34
     */
35 0db53e25 Jaroslav Hrubý
    'sourceDocumentContent'?: string | null;
36 b5f60842 Lukáš Vlček
    /**
37 0db53e25 Jaroslav Hrubý
     * 
38 b5f60842 Lukáš Vlček
     * @type {string}
39
     * @memberof AnnotationInfo
40
     */
41 0db53e25 Jaroslav Hrubý
    'documentToRender'?: string | null;
42 b5f60842 Lukáš Vlček
    /**
43 0db53e25 Jaroslav Hrubý
     * 
44 b5f60842 Lukáš Vlček
     * @type {Array<number>}
45
     * @memberof AnnotationInfo
46
     */
47 0db53e25 Jaroslav Hrubý
    'tagStartPositions'?: Array<number> | null;
48 b5f60842 Lukáš Vlček
    /**
49 0db53e25 Jaroslav Hrubý
     * 
50 b5f60842 Lukáš Vlček
     * @type {Array<number>}
51
     * @memberof AnnotationInfo
52
     */
53 0db53e25 Jaroslav Hrubý
    'tagLengths'?: Array<number> | null;
54 3e6b15a7 Lukáš Vlček
    /**
55 0db53e25 Jaroslav Hrubý
     * 
56 3e6b15a7 Lukáš Vlček
     * @type {EState}
57
     * @memberof AnnotationInfo
58
     */
59 0db53e25 Jaroslav Hrubý
    'state'?: EState;
60 3e6b15a7 Lukáš Vlček
    /**
61 0db53e25 Jaroslav Hrubý
     * 
62 3e6b15a7 Lukáš Vlček
     * @type {EDocumentType}
63
     * @memberof AnnotationInfo
64
     */
65 0db53e25 Jaroslav Hrubý
    'type'?: EDocumentType;
66 3e6b15a7 Lukáš Vlček
    /**
67 0db53e25 Jaroslav Hrubý
     * 
68 3e6b15a7 Lukáš Vlček
     * @type {string}
69
     * @memberof AnnotationInfo
70
     */
71 0db53e25 Jaroslav Hrubý
    'note'?: string | null;
72 3e6b15a7 Lukáš Vlček
    /**
73 0db53e25 Jaroslav Hrubý
     * 
74 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInstanceInfo>}
75
     * @memberof AnnotationInfo
76
     */
77 0db53e25 Jaroslav Hrubý
    'tagInstances'?: Array<TagInstanceInfo> | null;
78 3e6b15a7 Lukáš Vlček
}
79 4bc99591 Lukáš Vlček
/**
80 0db53e25 Jaroslav Hrubý
 * 
81 4bc99591 Lukáš Vlček
 * @export
82
 * @interface AnnotationInstanceAddRequest
83
 */
84
export interface AnnotationInstanceAddRequest {
85
    /**
86 0db53e25 Jaroslav Hrubý
     * 
87 4bc99591 Lukáš Vlček
     * @type {number}
88
     * @memberof AnnotationInstanceAddRequest
89
     */
90 0db53e25 Jaroslav Hrubý
    'position'?: number;
91 4bc99591 Lukáš Vlček
    /**
92 0db53e25 Jaroslav Hrubý
     * 
93 4bc99591 Lukáš Vlček
     * @type {number}
94
     * @memberof AnnotationInstanceAddRequest
95
     */
96 0db53e25 Jaroslav Hrubý
    'length'?: number;
97 4bc99591 Lukáš Vlček
    /**
98 0db53e25 Jaroslav Hrubý
     * 
99 4bc99591 Lukáš Vlček
     * @type {ETagType}
100
     * @memberof AnnotationInstanceAddRequest
101
     */
102 0db53e25 Jaroslav Hrubý
    'type'?: ETagType;
103 4bc99591 Lukáš Vlček
    /**
104 0db53e25 Jaroslav Hrubý
     * 
105 4bc99591 Lukáš Vlček
     * @type {string}
106
     * @memberof AnnotationInstanceAddRequest
107
     */
108 0db53e25 Jaroslav Hrubý
    'id'?: string;
109 4bc99591 Lukáš Vlček
    /**
110 0db53e25 Jaroslav Hrubý
     * 
111 4bc99591 Lukáš Vlček
     * @type {string}
112
     * @memberof AnnotationInstanceAddRequest
113
     */
114 0db53e25 Jaroslav Hrubý
    'instanceId'?: string | null;
115 4bc99591 Lukáš Vlček
}
116 3e6b15a7 Lukáš Vlček
/**
117 0db53e25 Jaroslav Hrubý
 * 
118 3e6b15a7 Lukáš Vlček
 * @export
119
 * @interface AnnotationListInfo
120
 */
121
export interface AnnotationListInfo {
122
    /**
123 0db53e25 Jaroslav Hrubý
     * 
124 3e6b15a7 Lukáš Vlček
     * @type {string}
125
     * @memberof AnnotationListInfo
126
     */
127 0db53e25 Jaroslav Hrubý
    'documentName'?: string | null;
128 3e6b15a7 Lukáš Vlček
    /**
129 0db53e25 Jaroslav Hrubý
     * 
130 3e6b15a7 Lukáš Vlček
     * @type {EState}
131
     * @memberof AnnotationListInfo
132
     */
133 0db53e25 Jaroslav Hrubý
    'state'?: EState;
134 3e6b15a7 Lukáš Vlček
    /**
135 0db53e25 Jaroslav Hrubý
     * 
136 3e6b15a7 Lukáš Vlček
     * @type {string}
137
     * @memberof AnnotationListInfo
138
     */
139 0db53e25 Jaroslav Hrubý
    'annotationId'?: string;
140 3e6b15a7 Lukáš Vlček
}
141
/**
142 0db53e25 Jaroslav Hrubý
 * 
143 3e6b15a7 Lukáš Vlček
 * @export
144
 * @interface AnnotationListResponse
145
 */
146
export interface AnnotationListResponse {
147
    /**
148 0db53e25 Jaroslav Hrubý
     * 
149 3e6b15a7 Lukáš Vlček
     * @type {Array<AnnotationListInfo>}
150
     * @memberof AnnotationListResponse
151
     */
152 0db53e25 Jaroslav Hrubý
    'annotations'?: Array<AnnotationListInfo> | null;
153 3e6b15a7 Lukáš Vlček
}
154
/**
155 0db53e25 Jaroslav Hrubý
 * 
156 3e6b15a7 Lukáš Vlček
 * @export
157
 * @interface AnnotationsAddRequest
158
 */
159
export interface AnnotationsAddRequest {
160
    /**
161 0db53e25 Jaroslav Hrubý
     * 
162 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
163
     * @memberof AnnotationsAddRequest
164
     */
165 0db53e25 Jaroslav Hrubý
    'userIdList'?: Array<string> | null;
166 3e6b15a7 Lukáš Vlček
    /**
167 0db53e25 Jaroslav Hrubý
     * 
168 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
169
     * @memberof AnnotationsAddRequest
170
     */
171 0db53e25 Jaroslav Hrubý
    'documentIdList'?: Array<string> | null;
172 3e6b15a7 Lukáš Vlček
}
173 43d49a98 Jaroslav Hrubý
/**
174 0db53e25 Jaroslav Hrubý
 * 
175 43d49a98 Jaroslav Hrubý
 * @export
176
 * @interface ChangeUserInfoRequest
177
 */
178
export interface ChangeUserInfoRequest {
179
    /**
180 0db53e25 Jaroslav Hrubý
     * 
181 43d49a98 Jaroslav Hrubý
     * @type {string}
182
     * @memberof ChangeUserInfoRequest
183
     */
184 0db53e25 Jaroslav Hrubý
    'password'?: string | null;
185 43d49a98 Jaroslav Hrubý
    /**
186 0db53e25 Jaroslav Hrubý
     * 
187 43d49a98 Jaroslav Hrubý
     * @type {string}
188
     * @memberof ChangeUserInfoRequest
189
     */
190 0db53e25 Jaroslav Hrubý
    'username'?: string | null;
191 43d49a98 Jaroslav Hrubý
    /**
192 0db53e25 Jaroslav Hrubý
     * 
193 43d49a98 Jaroslav Hrubý
     * @type {string}
194
     * @memberof ChangeUserInfoRequest
195
     */
196 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
197 43d49a98 Jaroslav Hrubý
    /**
198 0db53e25 Jaroslav Hrubý
     * 
199 43d49a98 Jaroslav Hrubý
     * @type {string}
200
     * @memberof ChangeUserInfoRequest
201
     */
202 0db53e25 Jaroslav Hrubý
    'surname'?: string | null;
203 43d49a98 Jaroslav Hrubý
    /**
204 0db53e25 Jaroslav Hrubý
     * 
205 43d49a98 Jaroslav Hrubý
     * @type {ERole}
206
     * @memberof ChangeUserInfoRequest
207
     */
208 0db53e25 Jaroslav Hrubý
    'role'?: ERole;
209 43d49a98 Jaroslav Hrubý
}
210 3e6b15a7 Lukáš Vlček
/**
211 0db53e25 Jaroslav Hrubý
 * 
212 3e6b15a7 Lukáš Vlček
 * @export
213
 * @interface ClientInfo
214
 */
215
export interface ClientInfo {
216
    /**
217 0db53e25 Jaroslav Hrubý
     * 
218 3e6b15a7 Lukáš Vlček
     * @type {boolean}
219
     * @memberof ClientInfo
220
     */
221 0db53e25 Jaroslav Hrubý
    'isLogged'?: boolean;
222 3e6b15a7 Lukáš Vlček
    /**
223 0db53e25 Jaroslav Hrubý
     * 
224 3e6b15a7 Lukáš Vlček
     * @type {User}
225
     * @memberof ClientInfo
226
     */
227 0db53e25 Jaroslav Hrubý
    'loggedUser'?: User;
228 3e6b15a7 Lukáš Vlček
    /**
229 0db53e25 Jaroslav Hrubý
     * 
230 3e6b15a7 Lukáš Vlček
     * @type {string}
231
     * @memberof ClientInfo
232
     */
233 0db53e25 Jaroslav Hrubý
    'ip'?: string | null;
234 3e6b15a7 Lukáš Vlček
}
235 43d49a98 Jaroslav Hrubý
/**
236 0db53e25 Jaroslav Hrubý
 * 
237 43d49a98 Jaroslav Hrubý
 * @export
238
 * @interface CreateUserRequest
239
 */
240
export interface CreateUserRequest {
241
    /**
242 0db53e25 Jaroslav Hrubý
     * 
243 43d49a98 Jaroslav Hrubý
     * @type {string}
244
     * @memberof CreateUserRequest
245
     */
246 0db53e25 Jaroslav Hrubý
    'username'?: string | null;
247 43d49a98 Jaroslav Hrubý
    /**
248 0db53e25 Jaroslav Hrubý
     * 
249 43d49a98 Jaroslav Hrubý
     * @type {string}
250
     * @memberof CreateUserRequest
251
     */
252 0db53e25 Jaroslav Hrubý
    'password'?: string | null;
253 43d49a98 Jaroslav Hrubý
    /**
254 0db53e25 Jaroslav Hrubý
     * 
255 43d49a98 Jaroslav Hrubý
     * @type {string}
256
     * @memberof CreateUserRequest
257
     */
258 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
259 43d49a98 Jaroslav Hrubý
    /**
260 0db53e25 Jaroslav Hrubý
     * 
261 43d49a98 Jaroslav Hrubý
     * @type {string}
262
     * @memberof CreateUserRequest
263
     */
264 0db53e25 Jaroslav Hrubý
    'surname'?: string | null;
265 43d49a98 Jaroslav Hrubý
    /**
266 0db53e25 Jaroslav Hrubý
     * 
267 43d49a98 Jaroslav Hrubý
     * @type {ERole}
268
     * @memberof CreateUserRequest
269
     */
270 0db53e25 Jaroslav Hrubý
    'role'?: ERole;
271 43d49a98 Jaroslav Hrubý
}
272 3e6b15a7 Lukáš Vlček
/**
273 0db53e25 Jaroslav Hrubý
 * 
274 3e6b15a7 Lukáš Vlček
 * @export
275
 * @interface DocumentAddInfo
276
 */
277
export interface DocumentAddInfo {
278
    /**
279 0db53e25 Jaroslav Hrubý
     * 
280 3e6b15a7 Lukáš Vlček
     * @type {string}
281
     * @memberof DocumentAddInfo
282
     */
283 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
284 3e6b15a7 Lukáš Vlček
    /**
285 0db53e25 Jaroslav Hrubý
     * 
286 3e6b15a7 Lukáš Vlček
     * @type {EAddDocumentFormat}
287
     * @memberof DocumentAddInfo
288
     */
289 0db53e25 Jaroslav Hrubý
    'format'?: EAddDocumentFormat;
290 3e6b15a7 Lukáš Vlček
    /**
291 0db53e25 Jaroslav Hrubý
     * 
292 3e6b15a7 Lukáš Vlček
     * @type {string}
293
     * @memberof DocumentAddInfo
294
     */
295 0db53e25 Jaroslav Hrubý
    'content'?: string | null;
296 3e6b15a7 Lukáš Vlček
}
297
/**
298 0db53e25 Jaroslav Hrubý
 * 
299 3e6b15a7 Lukáš Vlček
 * @export
300
 * @interface DocumentAddRequest
301
 */
302
export interface DocumentAddRequest {
303
    /**
304 0db53e25 Jaroslav Hrubý
     * 
305 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentAddInfo>}
306
     * @memberof DocumentAddRequest
307
     */
308 0db53e25 Jaroslav Hrubý
    'documents'?: Array<DocumentAddInfo> | null;
309 3e6b15a7 Lukáš Vlček
}
310
/**
311 0db53e25 Jaroslav Hrubý
 * 
312 3e6b15a7 Lukáš Vlček
 * @export
313
 * @interface DocumentListInfo
314
 */
315
export interface DocumentListInfo {
316
    /**
317 0db53e25 Jaroslav Hrubý
     * 
318 3e6b15a7 Lukáš Vlček
     * @type {string}
319
     * @memberof DocumentListInfo
320
     */
321 0db53e25 Jaroslav Hrubý
    'id'?: string;
322 3e6b15a7 Lukáš Vlček
    /**
323 0db53e25 Jaroslav Hrubý
     * 
324 3e6b15a7 Lukáš Vlček
     * @type {string}
325
     * @memberof DocumentListInfo
326
     */
327 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
328 3e6b15a7 Lukáš Vlček
    /**
329 0db53e25 Jaroslav Hrubý
     * 
330 3e6b15a7 Lukáš Vlček
     * @type {number}
331
     * @memberof DocumentListInfo
332
     */
333 0db53e25 Jaroslav Hrubý
    'length'?: number;
334 3e6b15a7 Lukáš Vlček
    /**
335 0db53e25 Jaroslav Hrubý
     * 
336 3e6b15a7 Lukáš Vlček
     * @type {number}
337
     * @memberof DocumentListInfo
338
     */
339 0db53e25 Jaroslav Hrubý
    'requiredAnnotations'?: number;
340 3e6b15a7 Lukáš Vlček
    /**
341 0db53e25 Jaroslav Hrubý
     * 
342 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
343
     * @memberof DocumentListInfo
344
     */
345 0db53e25 Jaroslav Hrubý
    'annotatingUsers'?: Array<UserInfo> | null;
346 3e6b15a7 Lukáš Vlček
}
347
/**
348 0db53e25 Jaroslav Hrubý
 * 
349 3e6b15a7 Lukáš Vlček
 * @export
350
 * @interface DocumentListResponse
351
 */
352
export interface DocumentListResponse {
353
    /**
354 0db53e25 Jaroslav Hrubý
     * 
355 3e6b15a7 Lukáš Vlček
     * @type {number}
356
     * @memberof DocumentListResponse
357
     */
358 0db53e25 Jaroslav Hrubý
    'totalCount'?: number;
359 3e6b15a7 Lukáš Vlček
    /**
360 0db53e25 Jaroslav Hrubý
     * 
361 3e6b15a7 Lukáš Vlček
     * @type {number}
362
     * @memberof DocumentListResponse
363
     */
364 0db53e25 Jaroslav Hrubý
    'pageCount'?: number;
365 3e6b15a7 Lukáš Vlček
    /**
366 0db53e25 Jaroslav Hrubý
     * 
367 3e6b15a7 Lukáš Vlček
     * @type {number}
368
     * @memberof DocumentListResponse
369
     */
370 0db53e25 Jaroslav Hrubý
    'pageIndex'?: number;
371 3e6b15a7 Lukáš Vlček
    /**
372 0db53e25 Jaroslav Hrubý
     * 
373 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentListInfo>}
374
     * @memberof DocumentListResponse
375
     */
376 0db53e25 Jaroslav Hrubý
    'documents'?: Array<DocumentListInfo> | null;
377 3e6b15a7 Lukáš Vlček
}
378
/**
379 0db53e25 Jaroslav Hrubý
 * 
380 3e6b15a7 Lukáš Vlček
 * @export
381
 * @enum {string}
382
 */
383
384
export const EAddDocumentFormat = {
385
    Zip: 'ZIP',
386 0db53e25 Jaroslav Hrubý
    Textfile: 'TEXTFILE'
387 3e6b15a7 Lukáš Vlček
} as const;
388
389 0db53e25 Jaroslav Hrubý
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
390
391 3e6b15a7 Lukáš Vlček
392
/**
393 0db53e25 Jaroslav Hrubý
 * 
394 3e6b15a7 Lukáš Vlček
 * @export
395
 * @enum {string}
396
 */
397
398
export const EDocumentType = {
399
    Html: 'HTML',
400 0db53e25 Jaroslav Hrubý
    Text: 'TEXT'
401 3e6b15a7 Lukáš Vlček
} as const;
402
403
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
404
405 0db53e25 Jaroslav Hrubý
406 3e6b15a7 Lukáš Vlček
/**
407 0db53e25 Jaroslav Hrubý
 * 
408 3e6b15a7 Lukáš Vlček
 * @export
409
 * @enum {string}
410
 */
411
412
export const ERole = {
413
    Annotator: 'ANNOTATOR',
414 0db53e25 Jaroslav Hrubý
    Administrator: 'ADMINISTRATOR'
415 3e6b15a7 Lukáš Vlček
} as const;
416
417
export type ERole = typeof ERole[keyof typeof ERole];
418
419 0db53e25 Jaroslav Hrubý
420 3e6b15a7 Lukáš Vlček
/**
421 0db53e25 Jaroslav Hrubý
 * 
422 3e6b15a7 Lukáš Vlček
 * @export
423
 * @enum {string}
424
 */
425
426
export const EState = {
427
    Done: 'DONE',
428
    InProgress: 'IN_PROGRESS',
429 0db53e25 Jaroslav Hrubý
    New: 'NEW'
430 3e6b15a7 Lukáš Vlček
} as const;
431
432
export type EState = typeof EState[keyof typeof EState];
433
434 0db53e25 Jaroslav Hrubý
435 4bc99591 Lukáš Vlček
/**
436 0db53e25 Jaroslav Hrubý
 * 
437 4bc99591 Lukáš Vlček
 * @export
438
 * @enum {string}
439
 */
440
441
export const ETagType = {
442
    Tag: 'TAG',
443 0db53e25 Jaroslav Hrubý
    Subtag: 'SUBTAG'
444 4bc99591 Lukáš Vlček
} as const;
445
446
export type ETagType = typeof ETagType[keyof typeof ETagType];
447
448 0db53e25 Jaroslav Hrubý
449 3e6b15a7 Lukáš Vlček
/**
450 0db53e25 Jaroslav Hrubý
 * 
451 3e6b15a7 Lukáš Vlček
 * @export
452
 * @interface LoginRequest
453
 */
454
export interface LoginRequest {
455
    /**
456 0db53e25 Jaroslav Hrubý
     * 
457 3e6b15a7 Lukáš Vlček
     * @type {string}
458
     * @memberof LoginRequest
459
     */
460 0db53e25 Jaroslav Hrubý
    'username'?: string | null;
461 3e6b15a7 Lukáš Vlček
    /**
462 0db53e25 Jaroslav Hrubý
     * 
463 3e6b15a7 Lukáš Vlček
     * @type {string}
464
     * @memberof LoginRequest
465
     */
466 0db53e25 Jaroslav Hrubý
    'password'?: string | null;
467 3e6b15a7 Lukáš Vlček
}
468
/**
469 0db53e25 Jaroslav Hrubý
 * 
470 3e6b15a7 Lukáš Vlček
 * @export
471
 * @interface LoginResponse
472
 */
473
export interface LoginResponse {
474
    /**
475 0db53e25 Jaroslav Hrubý
     * 
476 3e6b15a7 Lukáš Vlček
     * @type {boolean}
477
     * @memberof LoginResponse
478
     */
479 0db53e25 Jaroslav Hrubý
    'ok'?: boolean;
480 3e6b15a7 Lukáš Vlček
    /**
481 0db53e25 Jaroslav Hrubý
     * 
482 3e6b15a7 Lukáš Vlček
     * @type {string}
483
     * @memberof LoginResponse
484
     */
485 0db53e25 Jaroslav Hrubý
    'token'?: string | null;
486 3e6b15a7 Lukáš Vlček
    /**
487 0db53e25 Jaroslav Hrubý
     * 
488 3e6b15a7 Lukáš Vlček
     * @type {string}
489
     * @memberof LoginResponse
490
     */
491 0db53e25 Jaroslav Hrubý
    'expiration'?: string;
492 3e6b15a7 Lukáš Vlček
    /**
493 0db53e25 Jaroslav Hrubý
     * 
494 3e6b15a7 Lukáš Vlček
     * @type {ERole}
495
     * @memberof LoginResponse
496
     */
497 0db53e25 Jaroslav Hrubý
    'role'?: ERole;
498 3e6b15a7 Lukáš Vlček
}
499
/**
500 0db53e25 Jaroslav Hrubý
 * 
501 3e6b15a7 Lukáš Vlček
 * @export
502
 * @interface ProblemDetails
503
 */
504
export interface ProblemDetails {
505
    [key: string]: any | any;
506
507
    /**
508 0db53e25 Jaroslav Hrubý
     * 
509 3e6b15a7 Lukáš Vlček
     * @type {string}
510
     * @memberof ProblemDetails
511
     */
512 0db53e25 Jaroslav Hrubý
    'type'?: string | null;
513 3e6b15a7 Lukáš Vlček
    /**
514 0db53e25 Jaroslav Hrubý
     * 
515 3e6b15a7 Lukáš Vlček
     * @type {string}
516
     * @memberof ProblemDetails
517
     */
518 0db53e25 Jaroslav Hrubý
    'title'?: string | null;
519 3e6b15a7 Lukáš Vlček
    /**
520 0db53e25 Jaroslav Hrubý
     * 
521 3e6b15a7 Lukáš Vlček
     * @type {number}
522
     * @memberof ProblemDetails
523
     */
524 0db53e25 Jaroslav Hrubý
    'status'?: number | null;
525 3e6b15a7 Lukáš Vlček
    /**
526 0db53e25 Jaroslav Hrubý
     * 
527 3e6b15a7 Lukáš Vlček
     * @type {string}
528
     * @memberof ProblemDetails
529
     */
530 0db53e25 Jaroslav Hrubý
    'detail'?: string | null;
531 3e6b15a7 Lukáš Vlček
    /**
532 0db53e25 Jaroslav Hrubý
     * 
533 3e6b15a7 Lukáš Vlček
     * @type {string}
534
     * @memberof ProblemDetails
535
     */
536 0db53e25 Jaroslav Hrubý
    'instance'?: string | null;
537 3e6b15a7 Lukáš Vlček
}
538
/**
539 0db53e25 Jaroslav Hrubý
 * 
540 3e6b15a7 Lukáš Vlček
 * @export
541
 * @interface SubTagInfo
542
 */
543
export interface SubTagInfo {
544
    /**
545 0db53e25 Jaroslav Hrubý
     * 
546 3e6b15a7 Lukáš Vlček
     * @type {string}
547
     * @memberof SubTagInfo
548
     */
549 0db53e25 Jaroslav Hrubý
    'id'?: string;
550 3e6b15a7 Lukáš Vlček
    /**
551 0db53e25 Jaroslav Hrubý
     * 
552 3e6b15a7 Lukáš Vlček
     * @type {string}
553
     * @memberof SubTagInfo
554
     */
555 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
556 3e6b15a7 Lukáš Vlček
    /**
557 0db53e25 Jaroslav Hrubý
     * 
558 3e6b15a7 Lukáš Vlček
     * @type {string}
559
     * @memberof SubTagInfo
560
     */
561 0db53e25 Jaroslav Hrubý
    'description'?: string | null;
562 3e6b15a7 Lukáš Vlček
}
563
/**
564 0db53e25 Jaroslav Hrubý
 * 
565 3e6b15a7 Lukáš Vlček
 * @export
566
 * @interface TagCategoryInfo
567
 */
568
export interface TagCategoryInfo {
569
    /**
570 0db53e25 Jaroslav Hrubý
     * 
571 3e6b15a7 Lukáš Vlček
     * @type {string}
572
     * @memberof TagCategoryInfo
573
     */
574 0db53e25 Jaroslav Hrubý
    'id'?: string;
575 3e6b15a7 Lukáš Vlček
    /**
576 0db53e25 Jaroslav Hrubý
     * 
577 3e6b15a7 Lukáš Vlček
     * @type {string}
578
     * @memberof TagCategoryInfo
579
     */
580 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
581 3e6b15a7 Lukáš Vlček
    /**
582 0db53e25 Jaroslav Hrubý
     * 
583 3e6b15a7 Lukáš Vlček
     * @type {string}
584
     * @memberof TagCategoryInfo
585
     */
586 0db53e25 Jaroslav Hrubý
    'description'?: string | null;
587 3e6b15a7 Lukáš Vlček
    /**
588 0db53e25 Jaroslav Hrubý
     * 
589 3e6b15a7 Lukáš Vlček
     * @type {string}
590
     * @memberof TagCategoryInfo
591
     */
592 0db53e25 Jaroslav Hrubý
    'color'?: string | null;
593 3e6b15a7 Lukáš Vlček
    /**
594 0db53e25 Jaroslav Hrubý
     * 
595 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInfo>}
596
     * @memberof TagCategoryInfo
597
     */
598 0db53e25 Jaroslav Hrubý
    'tags'?: Array<TagInfo> | null;
599 3e6b15a7 Lukáš Vlček
}
600
/**
601 0db53e25 Jaroslav Hrubý
 * 
602 3e6b15a7 Lukáš Vlček
 * @export
603
 * @interface TagInfo
604
 */
605
export interface TagInfo {
606
    /**
607 0db53e25 Jaroslav Hrubý
     * 
608 3e6b15a7 Lukáš Vlček
     * @type {string}
609
     * @memberof TagInfo
610
     */
611 0db53e25 Jaroslav Hrubý
    'id'?: string;
612 3e6b15a7 Lukáš Vlček
    /**
613 0db53e25 Jaroslav Hrubý
     * 
614 3e6b15a7 Lukáš Vlček
     * @type {string}
615
     * @memberof TagInfo
616
     */
617 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
618 3e6b15a7 Lukáš Vlček
    /**
619 0db53e25 Jaroslav Hrubý
     * 
620 3e6b15a7 Lukáš Vlček
     * @type {string}
621
     * @memberof TagInfo
622
     */
623 0db53e25 Jaroslav Hrubý
    'description'?: string | null;
624 3e6b15a7 Lukáš Vlček
    /**
625 0db53e25 Jaroslav Hrubý
     * 
626 3e6b15a7 Lukáš Vlček
     * @type {string}
627
     * @memberof TagInfo
628
     */
629 0db53e25 Jaroslav Hrubý
    'color'?: string | null;
630 3e6b15a7 Lukáš Vlček
    /**
631 0db53e25 Jaroslav Hrubý
     * 
632 3e6b15a7 Lukáš Vlček
     * @type {Array<SubTagInfo>}
633
     * @memberof TagInfo
634
     */
635 0db53e25 Jaroslav Hrubý
    'subTags'?: Array<SubTagInfo> | null;
636 3e6b15a7 Lukáš Vlček
}
637
/**
638 0db53e25 Jaroslav Hrubý
 * 
639 3e6b15a7 Lukáš Vlček
 * @export
640
 * @interface TagInstanceInfo
641
 */
642
export interface TagInstanceInfo {
643 9fdb7d55 Lukáš Vlček
    /**
644 0db53e25 Jaroslav Hrubý
     * 
645 9fdb7d55 Lukáš Vlček
     * @type {string}
646
     * @memberof TagInstanceInfo
647
     */
648 0db53e25 Jaroslav Hrubý
    'occurenceId'?: string;
649 3e6b15a7 Lukáš Vlček
    /**
650 0db53e25 Jaroslav Hrubý
     * 
651 3e6b15a7 Lukáš Vlček
     * @type {string}
652
     * @memberof TagInstanceInfo
653
     */
654 0db53e25 Jaroslav Hrubý
    'tagName'?: string | null;
655 3e6b15a7 Lukáš Vlček
    /**
656 0db53e25 Jaroslav Hrubý
     * 
657 3e6b15a7 Lukáš Vlček
     * @type {string}
658
     * @memberof TagInstanceInfo
659
     */
660 0db53e25 Jaroslav Hrubý
    'tagId'?: string;
661 3e6b15a7 Lukáš Vlček
    /**
662 0db53e25 Jaroslav Hrubý
     * 
663 3e6b15a7 Lukáš Vlček
     * @type {string}
664
     * @memberof TagInstanceInfo
665
     */
666 0db53e25 Jaroslav Hrubý
    'tagCategoryName'?: string | null;
667 3e6b15a7 Lukáš Vlček
    /**
668 0db53e25 Jaroslav Hrubý
     * 
669 3e6b15a7 Lukáš Vlček
     * @type {string}
670
     * @memberof TagInstanceInfo
671
     */
672 0db53e25 Jaroslav Hrubý
    'tagCategoryId'?: string;
673 3e6b15a7 Lukáš Vlček
    /**
674 0db53e25 Jaroslav Hrubý
     * 
675 3e6b15a7 Lukáš Vlček
     * @type {string}
676
     * @memberof TagInstanceInfo
677
     */
678 0db53e25 Jaroslav Hrubý
    'subTagName'?: string | null;
679 3e6b15a7 Lukáš Vlček
    /**
680 0db53e25 Jaroslav Hrubý
     * 
681 3e6b15a7 Lukáš Vlček
     * @type {string}
682
     * @memberof TagInstanceInfo
683
     */
684 0db53e25 Jaroslav Hrubý
    'subTagId'?: string | null;
685 3e6b15a7 Lukáš Vlček
    /**
686 0db53e25 Jaroslav Hrubý
     * 
687 4bc99591 Lukáš Vlček
     * @type {string}
688 3e6b15a7 Lukáš Vlček
     * @memberof TagInstanceInfo
689
     */
690 0db53e25 Jaroslav Hrubý
    'instance'?: string;
691 3e6b15a7 Lukáš Vlček
    /**
692 0db53e25 Jaroslav Hrubý
     * 
693 3e6b15a7 Lukáš Vlček
     * @type {number}
694
     * @memberof TagInstanceInfo
695
     */
696 0db53e25 Jaroslav Hrubý
    'position'?: number;
697 3e6b15a7 Lukáš Vlček
    /**
698 0db53e25 Jaroslav Hrubý
     * 
699 3e6b15a7 Lukáš Vlček
     * @type {number}
700
     * @memberof TagInstanceInfo
701
     */
702 0db53e25 Jaroslav Hrubý
    'length'?: number;
703 3e6b15a7 Lukáš Vlček
    /**
704 0db53e25 Jaroslav Hrubý
     * 
705 3e6b15a7 Lukáš Vlček
     * @type {string}
706
     * @memberof TagInstanceInfo
707
     */
708 0db53e25 Jaroslav Hrubý
    'note'?: string | null;
709 3e6b15a7 Lukáš Vlček
}
710
/**
711 0db53e25 Jaroslav Hrubý
 * 
712 3e6b15a7 Lukáš Vlček
 * @export
713
 * @interface TagTreeResponse
714
 */
715
export interface TagTreeResponse {
716
    /**
717 0db53e25 Jaroslav Hrubý
     * 
718 3e6b15a7 Lukáš Vlček
     * @type {Array<TagCategoryInfo>}
719
     * @memberof TagTreeResponse
720
     */
721 0db53e25 Jaroslav Hrubý
    'tagCategories'?: Array<TagCategoryInfo> | null;
722 3e6b15a7 Lukáš Vlček
}
723
/**
724 0db53e25 Jaroslav Hrubý
 * 
725 3e6b15a7 Lukáš Vlček
 * @export
726
 * @interface User
727
 */
728
export interface User {
729
    /**
730 0db53e25 Jaroslav Hrubý
     * 
731 3e6b15a7 Lukáš Vlček
     * @type {string}
732
     * @memberof User
733
     */
734 0db53e25 Jaroslav Hrubý
    'id'?: string;
735 3e6b15a7 Lukáš Vlček
    /**
736 0db53e25 Jaroslav Hrubý
     * 
737 3e6b15a7 Lukáš Vlček
     * @type {string}
738
     * @memberof User
739
     */
740 0db53e25 Jaroslav Hrubý
    'username'?: string | null;
741 3e6b15a7 Lukáš Vlček
    /**
742 0db53e25 Jaroslav Hrubý
     * 
743 3e6b15a7 Lukáš Vlček
     * @type {string}
744
     * @memberof User
745
     */
746 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
747 3e6b15a7 Lukáš Vlček
    /**
748 0db53e25 Jaroslav Hrubý
     * 
749 3e6b15a7 Lukáš Vlček
     * @type {string}
750
     * @memberof User
751
     */
752 0db53e25 Jaroslav Hrubý
    'surname'?: string | null;
753 3e6b15a7 Lukáš Vlček
    /**
754 0db53e25 Jaroslav Hrubý
     * 
755 3e6b15a7 Lukáš Vlček
     * @type {ERole}
756
     * @memberof User
757
     */
758 0db53e25 Jaroslav Hrubý
    'role'?: ERole;
759 3e6b15a7 Lukáš Vlček
}
760
/**
761 0db53e25 Jaroslav Hrubý
 * 
762 3e6b15a7 Lukáš Vlček
 * @export
763
 * @interface UserInfo
764
 */
765
export interface UserInfo {
766
    /**
767 0db53e25 Jaroslav Hrubý
     * 
768 3e6b15a7 Lukáš Vlček
     * @type {string}
769
     * @memberof UserInfo
770
     */
771 0db53e25 Jaroslav Hrubý
    'id'?: string;
772 3e6b15a7 Lukáš Vlček
    /**
773 0db53e25 Jaroslav Hrubý
     * 
774 3e6b15a7 Lukáš Vlček
     * @type {string}
775
     * @memberof UserInfo
776
     */
777 0db53e25 Jaroslav Hrubý
    'username'?: string | null;
778 3e6b15a7 Lukáš Vlček
    /**
779 0db53e25 Jaroslav Hrubý
     * 
780 3e6b15a7 Lukáš Vlček
     * @type {string}
781
     * @memberof UserInfo
782
     */
783 0db53e25 Jaroslav Hrubý
    'name'?: string | null;
784 3e6b15a7 Lukáš Vlček
    /**
785 0db53e25 Jaroslav Hrubý
     * 
786 3e6b15a7 Lukáš Vlček
     * @type {string}
787
     * @memberof UserInfo
788
     */
789 0db53e25 Jaroslav Hrubý
    'surname'?: string | null;
790 9980241e Jaroslav Hrubý
    /**
791
     * 
792
     * @type {number}
793
     * @memberof UserInfo
794
     */
795
    'assignedDocumentsCount'?: number;
796 3e6b15a7 Lukáš Vlček
}
797
/**
798 0db53e25 Jaroslav Hrubý
 * 
799 3e6b15a7 Lukáš Vlček
 * @export
800
 * @interface UserList
801
 */
802
export interface UserList {
803
    /**
804 0db53e25 Jaroslav Hrubý
     * 
805 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
806
     * @memberof UserList
807
     */
808 0db53e25 Jaroslav Hrubý
    'users'?: Array<UserInfo> | null;
809 3e6b15a7 Lukáš Vlček
}
810
811
/**
812
 * AnnotationApi - axios parameter creator
813
 * @export
814
 */
815
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
816
    return {
817
        /**
818 0db53e25 Jaroslav Hrubý
         * 
819
         * @param {string} annotationId 
820 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
821
         * @throws {RequiredError}
822
         */
823 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
824 dd747fc5 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
825 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
826
            const localVarPath = `/annotation/{annotationId}`
827
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
828 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
829
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
830
            let baseOptions;
831
            if (configuration) {
832
                baseOptions = configuration.baseOptions;
833
            }
834
835 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
836 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
837
            const localVarQueryParameter = {} as any;
838
839 0db53e25 Jaroslav Hrubý
840
    
841 9fdb7d55 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
842 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
843
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
844 9fdb7d55 Lukáš Vlček
845
            return {
846
                url: toPathString(localVarUrlObj),
847
                options: localVarRequestOptions,
848
            };
849
        },
850
        /**
851 0db53e25 Jaroslav Hrubý
         * 
852
         * @param {string} annotationId 
853
         * @param {string} occurenceId 
854 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
855
         * @throws {RequiredError}
856
         */
857 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
858 9fdb7d55 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
859 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
860 9fdb7d55 Lukáš Vlček
            // verify required parameter 'occurenceId' is not null or undefined
861 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
862 9fdb7d55 Lukáš Vlček
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
863 0db53e25 Jaroslav Hrubý
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
864
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
865 9fdb7d55 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
866
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
867
            let baseOptions;
868
            if (configuration) {
869
                baseOptions = configuration.baseOptions;
870
            }
871
872 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
873 9fdb7d55 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
874
            const localVarQueryParameter = {} as any;
875
876 0db53e25 Jaroslav Hrubý
877
    
878 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
879 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
880
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
881 3e6b15a7 Lukáš Vlček
882
            return {
883
                url: toPathString(localVarUrlObj),
884
                options: localVarRequestOptions,
885
            };
886
        },
887 4bc99591 Lukáš Vlček
        /**
888 0db53e25 Jaroslav Hrubý
         * 
889
         * @param {string} annotationId 
890
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
891 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
892
         * @throws {RequiredError}
893
         */
894 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
895 4bc99591 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
896 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
897
            const localVarPath = `/annotation/{annotationId}`
898
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
899 4bc99591 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
900
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
901
            let baseOptions;
902
            if (configuration) {
903
                baseOptions = configuration.baseOptions;
904
            }
905
906 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
907 4bc99591 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
908
            const localVarQueryParameter = {} as any;
909
910 0db53e25 Jaroslav Hrubý
911
    
912 4bc99591 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
913
914
            setSearchParams(localVarUrlObj, localVarQueryParameter);
915 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
916
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
917
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
918 4bc99591 Lukáš Vlček
919
            return {
920
                url: toPathString(localVarUrlObj),
921
                options: localVarRequestOptions,
922
            };
923
        },
924 3e6b15a7 Lukáš Vlček
        /**
925 0db53e25 Jaroslav Hrubý
         * 
926
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
927 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
928
         * @throws {RequiredError}
929
         */
930 0db53e25 Jaroslav Hrubý
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
931 3e6b15a7 Lukáš Vlček
            const localVarPath = `/annotations`;
932
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
933
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
934
            let baseOptions;
935
            if (configuration) {
936
                baseOptions = configuration.baseOptions;
937
            }
938
939 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
940 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
941
            const localVarQueryParameter = {} as any;
942
943 0db53e25 Jaroslav Hrubý
944
    
945 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
946
947
            setSearchParams(localVarUrlObj, localVarQueryParameter);
948 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
949
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
950
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
951 3e6b15a7 Lukáš Vlček
952
            return {
953
                url: toPathString(localVarUrlObj),
954
                options: localVarRequestOptions,
955
            };
956
        },
957 0db53e25 Jaroslav Hrubý
    }
958 3e6b15a7 Lukáš Vlček
};
959
960
/**
961
 * AnnotationApi - functional programming interface
962
 * @export
963
 */
964 0db53e25 Jaroslav Hrubý
export const AnnotationApiFp = function(configuration?: Configuration) {
965
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
966 3e6b15a7 Lukáš Vlček
    return {
967
        /**
968 0db53e25 Jaroslav Hrubý
         * 
969
         * @param {string} annotationId 
970 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
971
         * @throws {RequiredError}
972
         */
973 0db53e25 Jaroslav Hrubý
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
974
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
975
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
976 3e6b15a7 Lukáš Vlček
        },
977 9fdb7d55 Lukáš Vlček
        /**
978 0db53e25 Jaroslav Hrubý
         * 
979
         * @param {string} annotationId 
980
         * @param {string} occurenceId 
981 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
982
         * @throws {RequiredError}
983
         */
984 0db53e25 Jaroslav Hrubý
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
985
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
986
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
987 9fdb7d55 Lukáš Vlček
        },
988 4bc99591 Lukáš Vlček
        /**
989 0db53e25 Jaroslav Hrubý
         * 
990
         * @param {string} annotationId 
991
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
992 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
993
         * @throws {RequiredError}
994
         */
995 0db53e25 Jaroslav Hrubý
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
996
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
997
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
998 4bc99591 Lukáš Vlček
        },
999 3e6b15a7 Lukáš Vlček
        /**
1000 0db53e25 Jaroslav Hrubý
         * 
1001
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1002 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1003
         * @throws {RequiredError}
1004
         */
1005 0db53e25 Jaroslav Hrubý
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1006
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1007
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1008 3e6b15a7 Lukáš Vlček
        },
1009 0db53e25 Jaroslav Hrubý
    }
1010 3e6b15a7 Lukáš Vlček
};
1011
1012
/**
1013
 * AnnotationApi - factory interface
1014
 * @export
1015
 */
1016 0db53e25 Jaroslav Hrubý
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1017
    const localVarFp = AnnotationApiFp(configuration)
1018 3e6b15a7 Lukáš Vlček
    return {
1019
        /**
1020 0db53e25 Jaroslav Hrubý
         * 
1021
         * @param {string} annotationId 
1022 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1023
         * @throws {RequiredError}
1024
         */
1025 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
1026
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
1027 3e6b15a7 Lukáš Vlček
        },
1028 9fdb7d55 Lukáš Vlček
        /**
1029 0db53e25 Jaroslav Hrubý
         * 
1030
         * @param {string} annotationId 
1031
         * @param {string} occurenceId 
1032 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
1033
         * @throws {RequiredError}
1034
         */
1035 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> {
1036
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath));
1037 9fdb7d55 Lukáš Vlček
        },
1038 4bc99591 Lukáš Vlček
        /**
1039 0db53e25 Jaroslav Hrubý
         * 
1040
         * @param {string} annotationId 
1041
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1042 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
1043
         * @throws {RequiredError}
1044
         */
1045 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
1046
            return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
1047 4bc99591 Lukáš Vlček
        },
1048 3e6b15a7 Lukáš Vlček
        /**
1049 0db53e25 Jaroslav Hrubý
         * 
1050
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1051 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1052
         * @throws {RequiredError}
1053
         */
1054 0db53e25 Jaroslav Hrubý
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
1055
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
1056 3e6b15a7 Lukáš Vlček
        },
1057
    };
1058
};
1059
1060
/**
1061
 * AnnotationApi - object-oriented interface
1062
 * @export
1063
 * @class AnnotationApi
1064
 * @extends {BaseAPI}
1065
 */
1066
export class AnnotationApi extends BaseAPI {
1067
    /**
1068 0db53e25 Jaroslav Hrubý
     * 
1069
     * @param {string} annotationId 
1070 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1071
     * @throws {RequiredError}
1072
     * @memberof AnnotationApi
1073
     */
1074 dd747fc5 Lukáš Vlček
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
1075 0db53e25 Jaroslav Hrubý
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
1076 3e6b15a7 Lukáš Vlček
    }
1077
1078 9fdb7d55 Lukáš Vlček
    /**
1079 0db53e25 Jaroslav Hrubý
     * 
1080
     * @param {string} annotationId 
1081
     * @param {string} occurenceId 
1082 9fdb7d55 Lukáš Vlček
     * @param {*} [options] Override http request option.
1083
     * @throws {RequiredError}
1084
     * @memberof AnnotationApi
1085
     */
1086 0db53e25 Jaroslav Hrubý
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
1087
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
1088 9fdb7d55 Lukáš Vlček
    }
1089
1090 4bc99591 Lukáš Vlček
    /**
1091 0db53e25 Jaroslav Hrubý
     * 
1092
     * @param {string} annotationId 
1093
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1094 4bc99591 Lukáš Vlček
     * @param {*} [options] Override http request option.
1095
     * @throws {RequiredError}
1096
     * @memberof AnnotationApi
1097
     */
1098 0db53e25 Jaroslav Hrubý
    public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
1099
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
1100 4bc99591 Lukáš Vlček
    }
1101
1102 3e6b15a7 Lukáš Vlček
    /**
1103 0db53e25 Jaroslav Hrubý
     * 
1104
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1105 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1106
     * @throws {RequiredError}
1107
     * @memberof AnnotationApi
1108
     */
1109 0db53e25 Jaroslav Hrubý
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
1110
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
1111 3e6b15a7 Lukáš Vlček
    }
1112
}
1113
1114 0db53e25 Jaroslav Hrubý
1115 3e6b15a7 Lukáš Vlček
/**
1116
 * AuthApi - axios parameter creator
1117
 * @export
1118
 */
1119
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1120
    return {
1121
        /**
1122 0db53e25 Jaroslav Hrubý
         * 
1123
         * @param {LoginRequest} [loginRequest] 
1124 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1125
         * @throws {RequiredError}
1126
         */
1127 0db53e25 Jaroslav Hrubý
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1128 3e6b15a7 Lukáš Vlček
            const localVarPath = `/auth/login`;
1129
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1130
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1131
            let baseOptions;
1132
            if (configuration) {
1133
                baseOptions = configuration.baseOptions;
1134
            }
1135
1136 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1137 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1138
            const localVarQueryParameter = {} as any;
1139
1140 0db53e25 Jaroslav Hrubý
1141
    
1142 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
1143
1144
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1145 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1146
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1147
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
1148 3e6b15a7 Lukáš Vlček
1149
            return {
1150
                url: toPathString(localVarUrlObj),
1151
                options: localVarRequestOptions,
1152
            };
1153
        },
1154
        /**
1155 0db53e25 Jaroslav Hrubý
         * 
1156 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1157
         * @throws {RequiredError}
1158
         */
1159
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1160
            const localVarPath = `/auth/test/aa`;
1161
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1162
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1163
            let baseOptions;
1164
            if (configuration) {
1165
                baseOptions = configuration.baseOptions;
1166
            }
1167
1168 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1169 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1170
            const localVarQueryParameter = {} as any;
1171
1172 0db53e25 Jaroslav Hrubý
1173
    
1174 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1175 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1176
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1177 3e6b15a7 Lukáš Vlček
1178
            return {
1179
                url: toPathString(localVarUrlObj),
1180
                options: localVarRequestOptions,
1181
            };
1182
        },
1183
        /**
1184 0db53e25 Jaroslav Hrubý
         * 
1185 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1186
         * @throws {RequiredError}
1187
         */
1188
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1189
            const localVarPath = `/auth/test`;
1190
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1191
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1192
            let baseOptions;
1193
            if (configuration) {
1194
                baseOptions = configuration.baseOptions;
1195
            }
1196
1197 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1198 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1199
            const localVarQueryParameter = {} as any;
1200
1201 0db53e25 Jaroslav Hrubý
1202
    
1203 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1204 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1205
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1206 3e6b15a7 Lukáš Vlček
1207
            return {
1208
                url: toPathString(localVarUrlObj),
1209
                options: localVarRequestOptions,
1210
            };
1211
        },
1212 0db53e25 Jaroslav Hrubý
    }
1213 3e6b15a7 Lukáš Vlček
};
1214
1215
/**
1216
 * AuthApi - functional programming interface
1217
 * @export
1218
 */
1219 0db53e25 Jaroslav Hrubý
export const AuthApiFp = function(configuration?: Configuration) {
1220
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1221 3e6b15a7 Lukáš Vlček
    return {
1222
        /**
1223 0db53e25 Jaroslav Hrubý
         * 
1224
         * @param {LoginRequest} [loginRequest] 
1225 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1226
         * @throws {RequiredError}
1227
         */
1228 0db53e25 Jaroslav Hrubý
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
1229
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
1230
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1231 3e6b15a7 Lukáš Vlček
        },
1232
        /**
1233 0db53e25 Jaroslav Hrubý
         * 
1234 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1235
         * @throws {RequiredError}
1236
         */
1237 0db53e25 Jaroslav Hrubý
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1238
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
1239
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1240 3e6b15a7 Lukáš Vlček
        },
1241
        /**
1242 0db53e25 Jaroslav Hrubý
         * 
1243 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1244
         * @throws {RequiredError}
1245
         */
1246 0db53e25 Jaroslav Hrubý
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1247
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
1248
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1249 3e6b15a7 Lukáš Vlček
        },
1250 0db53e25 Jaroslav Hrubý
    }
1251 3e6b15a7 Lukáš Vlček
};
1252
1253
/**
1254
 * AuthApi - factory interface
1255
 * @export
1256
 */
1257 0db53e25 Jaroslav Hrubý
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1258
    const localVarFp = AuthApiFp(configuration)
1259 3e6b15a7 Lukáš Vlček
    return {
1260
        /**
1261 0db53e25 Jaroslav Hrubý
         * 
1262
         * @param {LoginRequest} [loginRequest] 
1263 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1264
         * @throws {RequiredError}
1265
         */
1266 0db53e25 Jaroslav Hrubý
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
1267
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
1268 3e6b15a7 Lukáš Vlček
        },
1269
        /**
1270 0db53e25 Jaroslav Hrubý
         * 
1271 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1272
         * @throws {RequiredError}
1273
         */
1274
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1275 0db53e25 Jaroslav Hrubý
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
1276 3e6b15a7 Lukáš Vlček
        },
1277
        /**
1278 0db53e25 Jaroslav Hrubý
         * 
1279 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1280
         * @throws {RequiredError}
1281
         */
1282
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1283 0db53e25 Jaroslav Hrubý
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
1284 3e6b15a7 Lukáš Vlček
        },
1285
    };
1286
};
1287
1288
/**
1289
 * AuthApi - object-oriented interface
1290
 * @export
1291
 * @class AuthApi
1292
 * @extends {BaseAPI}
1293
 */
1294
export class AuthApi extends BaseAPI {
1295
    /**
1296 0db53e25 Jaroslav Hrubý
     * 
1297
     * @param {LoginRequest} [loginRequest] 
1298 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1299
     * @throws {RequiredError}
1300
     * @memberof AuthApi
1301
     */
1302
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1303 0db53e25 Jaroslav Hrubý
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
1304 3e6b15a7 Lukáš Vlček
    }
1305
1306
    /**
1307 0db53e25 Jaroslav Hrubý
     * 
1308 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1309
     * @throws {RequiredError}
1310
     * @memberof AuthApi
1311
     */
1312
    public authTestAaGet(options?: AxiosRequestConfig) {
1313 0db53e25 Jaroslav Hrubý
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1314 3e6b15a7 Lukáš Vlček
    }
1315
1316
    /**
1317 0db53e25 Jaroslav Hrubý
     * 
1318 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1319
     * @throws {RequiredError}
1320
     * @memberof AuthApi
1321
     */
1322
    public authTestGet(options?: AxiosRequestConfig) {
1323 0db53e25 Jaroslav Hrubý
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1324 3e6b15a7 Lukáš Vlček
    }
1325
}
1326
1327 0db53e25 Jaroslav Hrubý
1328 3e6b15a7 Lukáš Vlček
/**
1329
 * DocumentApi - axios parameter creator
1330
 * @export
1331
 */
1332
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1333
    return {
1334
        /**
1335 0db53e25 Jaroslav Hrubý
         * 
1336
         * @param {number} [pageIndex] 
1337
         * @param {number} [pageSize] 
1338 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1339
         * @throws {RequiredError}
1340
         */
1341 0db53e25 Jaroslav Hrubý
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1342 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
1343
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1344
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1345
            let baseOptions;
1346
            if (configuration) {
1347
                baseOptions = configuration.baseOptions;
1348
            }
1349
1350 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1351 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1352
            const localVarQueryParameter = {} as any;
1353
1354 dd747fc5 Lukáš Vlček
            if (pageIndex !== undefined) {
1355
                localVarQueryParameter['pageIndex'] = pageIndex;
1356
            }
1357 3e6b15a7 Lukáš Vlček
1358 dd747fc5 Lukáš Vlček
            if (pageSize !== undefined) {
1359
                localVarQueryParameter['pageSize'] = pageSize;
1360
            }
1361 3e6b15a7 Lukáš Vlček
1362 0db53e25 Jaroslav Hrubý
1363
    
1364 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1365 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1366
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1367 3e6b15a7 Lukáš Vlček
1368
            return {
1369
                url: toPathString(localVarUrlObj),
1370
                options: localVarRequestOptions,
1371
            };
1372
        },
1373
        /**
1374 0db53e25 Jaroslav Hrubý
         * 
1375
         * @param {DocumentAddRequest} [documentAddRequest] 
1376 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1377
         * @throws {RequiredError}
1378
         */
1379 0db53e25 Jaroslav Hrubý
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1380 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
1381
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1382
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1383
            let baseOptions;
1384
            if (configuration) {
1385
                baseOptions = configuration.baseOptions;
1386
            }
1387
1388 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1389 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1390
            const localVarQueryParameter = {} as any;
1391
1392 0db53e25 Jaroslav Hrubý
1393
    
1394 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
1395
1396
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1397 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1398
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1399
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
1400 3e6b15a7 Lukáš Vlček
1401
            return {
1402
                url: toPathString(localVarUrlObj),
1403
                options: localVarRequestOptions,
1404
            };
1405
        },
1406 0db53e25 Jaroslav Hrubý
    }
1407 3e6b15a7 Lukáš Vlček
};
1408
1409
/**
1410
 * DocumentApi - functional programming interface
1411
 * @export
1412
 */
1413 0db53e25 Jaroslav Hrubý
export const DocumentApiFp = function(configuration?: Configuration) {
1414
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
1415 3e6b15a7 Lukáš Vlček
    return {
1416
        /**
1417 0db53e25 Jaroslav Hrubý
         * 
1418
         * @param {number} [pageIndex] 
1419
         * @param {number} [pageSize] 
1420 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1421
         * @throws {RequiredError}
1422
         */
1423 0db53e25 Jaroslav Hrubý
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
1424
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
1425
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1426 3e6b15a7 Lukáš Vlček
        },
1427
        /**
1428 0db53e25 Jaroslav Hrubý
         * 
1429
         * @param {DocumentAddRequest} [documentAddRequest] 
1430 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1431
         * @throws {RequiredError}
1432
         */
1433 0db53e25 Jaroslav Hrubý
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1434
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
1435
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1436 3e6b15a7 Lukáš Vlček
        },
1437 0db53e25 Jaroslav Hrubý
    }
1438 3e6b15a7 Lukáš Vlček
};
1439
1440
/**
1441
 * DocumentApi - factory interface
1442
 * @export
1443
 */
1444 0db53e25 Jaroslav Hrubý
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1445
    const localVarFp = DocumentApiFp(configuration)
1446 3e6b15a7 Lukáš Vlček
    return {
1447
        /**
1448 0db53e25 Jaroslav Hrubý
         * 
1449
         * @param {number} [pageIndex] 
1450
         * @param {number} [pageSize] 
1451 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1452
         * @throws {RequiredError}
1453
         */
1454 0db53e25 Jaroslav Hrubý
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
1455
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
1456 3e6b15a7 Lukáš Vlček
        },
1457
        /**
1458 0db53e25 Jaroslav Hrubý
         * 
1459
         * @param {DocumentAddRequest} [documentAddRequest] 
1460 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1461
         * @throws {RequiredError}
1462
         */
1463 0db53e25 Jaroslav Hrubý
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
1464
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
1465 3e6b15a7 Lukáš Vlček
        },
1466
    };
1467
};
1468
1469
/**
1470
 * DocumentApi - object-oriented interface
1471
 * @export
1472
 * @class DocumentApi
1473
 * @extends {BaseAPI}
1474
 */
1475
export class DocumentApi extends BaseAPI {
1476
    /**
1477 0db53e25 Jaroslav Hrubý
     * 
1478
     * @param {number} [pageIndex] 
1479
     * @param {number} [pageSize] 
1480 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1481
     * @throws {RequiredError}
1482
     * @memberof DocumentApi
1483
     */
1484 0db53e25 Jaroslav Hrubý
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
1485
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
1486 3e6b15a7 Lukáš Vlček
    }
1487
1488
    /**
1489 0db53e25 Jaroslav Hrubý
     * 
1490
     * @param {DocumentAddRequest} [documentAddRequest] 
1491 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1492
     * @throws {RequiredError}
1493
     * @memberof DocumentApi
1494
     */
1495 0db53e25 Jaroslav Hrubý
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
1496
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
1497 3e6b15a7 Lukáš Vlček
    }
1498
}
1499
1500 0db53e25 Jaroslav Hrubý
1501 3e6b15a7 Lukáš Vlček
/**
1502
 * TagApi - axios parameter creator
1503
 * @export
1504
 */
1505
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
1506
    return {
1507
        /**
1508 0db53e25 Jaroslav Hrubý
         * 
1509 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1510
         * @throws {RequiredError}
1511
         */
1512
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1513
            const localVarPath = `/tags`;
1514
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1515
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1516
            let baseOptions;
1517
            if (configuration) {
1518
                baseOptions = configuration.baseOptions;
1519
            }
1520
1521 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1522 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1523
            const localVarQueryParameter = {} as any;
1524
1525 0db53e25 Jaroslav Hrubý
1526
    
1527 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1528 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1529
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1530 3e6b15a7 Lukáš Vlček
1531
            return {
1532
                url: toPathString(localVarUrlObj),
1533
                options: localVarRequestOptions,
1534
            };
1535
        },
1536 0db53e25 Jaroslav Hrubý
    }
1537 3e6b15a7 Lukáš Vlček
};
1538
1539
/**
1540
 * TagApi - functional programming interface
1541
 * @export
1542
 */
1543 0db53e25 Jaroslav Hrubý
export const TagApiFp = function(configuration?: Configuration) {
1544
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
1545 3e6b15a7 Lukáš Vlček
    return {
1546
        /**
1547 0db53e25 Jaroslav Hrubý
         * 
1548 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1549
         * @throws {RequiredError}
1550
         */
1551 0db53e25 Jaroslav Hrubý
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
1552 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
1553 0db53e25 Jaroslav Hrubý
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1554 3e6b15a7 Lukáš Vlček
        },
1555 0db53e25 Jaroslav Hrubý
    }
1556 3e6b15a7 Lukáš Vlček
};
1557
1558
/**
1559
 * TagApi - factory interface
1560
 * @export
1561
 */
1562 0db53e25 Jaroslav Hrubý
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1563
    const localVarFp = TagApiFp(configuration)
1564 3e6b15a7 Lukáš Vlček
    return {
1565
        /**
1566 0db53e25 Jaroslav Hrubý
         * 
1567 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1568
         * @throws {RequiredError}
1569
         */
1570
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
1571 0db53e25 Jaroslav Hrubý
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
1572 3e6b15a7 Lukáš Vlček
        },
1573
    };
1574
};
1575
1576
/**
1577
 * TagApi - object-oriented interface
1578
 * @export
1579
 * @class TagApi
1580
 * @extends {BaseAPI}
1581
 */
1582
export class TagApi extends BaseAPI {
1583
    /**
1584 0db53e25 Jaroslav Hrubý
     * 
1585 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1586
     * @throws {RequiredError}
1587
     * @memberof TagApi
1588
     */
1589
    public tagsGet(options?: AxiosRequestConfig) {
1590 0db53e25 Jaroslav Hrubý
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
1591 3e6b15a7 Lukáš Vlček
    }
1592
}
1593
1594 0db53e25 Jaroslav Hrubý
1595 3e6b15a7 Lukáš Vlček
/**
1596
 * UserApi - axios parameter creator
1597
 * @export
1598
 */
1599
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
1600
    return {
1601
        /**
1602 0db53e25 Jaroslav Hrubý
         * 
1603 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1604
         * @throws {RequiredError}
1605
         */
1606 0db53e25 Jaroslav Hrubý
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1607 3e6b15a7 Lukáš Vlček
            const localVarPath = `/user/annotations`;
1608
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1609
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1610
            let baseOptions;
1611
            if (configuration) {
1612
                baseOptions = configuration.baseOptions;
1613
            }
1614
1615 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1616 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1617
            const localVarQueryParameter = {} as any;
1618
1619 0db53e25 Jaroslav Hrubý
1620
    
1621 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1622 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1623
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1624 3e6b15a7 Lukáš Vlček
1625
            return {
1626
                url: toPathString(localVarUrlObj),
1627
                options: localVarRequestOptions,
1628
            };
1629
        },
1630 43d49a98 Jaroslav Hrubý
        /**
1631 0db53e25 Jaroslav Hrubý
         * 
1632
         * @param {string} userId 
1633 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1634
         * @throws {RequiredError}
1635
         */
1636 0db53e25 Jaroslav Hrubý
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1637 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
1638 0db53e25 Jaroslav Hrubý
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
1639
            const localVarPath = `/user/{userId}/annotations`
1640
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1641 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1642
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1643
            let baseOptions;
1644
            if (configuration) {
1645
                baseOptions = configuration.baseOptions;
1646
            }
1647
1648 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1649 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1650
            const localVarQueryParameter = {} as any;
1651
1652 0db53e25 Jaroslav Hrubý
1653
    
1654 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1655 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1656
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1657 43d49a98 Jaroslav Hrubý
1658
            return {
1659
                url: toPathString(localVarUrlObj),
1660
                options: localVarRequestOptions,
1661
            };
1662
        },
1663
        /**
1664 0db53e25 Jaroslav Hrubý
         * 
1665
         * @param {string} userId 
1666 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1667
         * @throws {RequiredError}
1668
         */
1669 0db53e25 Jaroslav Hrubý
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1670 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
1671 0db53e25 Jaroslav Hrubý
            assertParamExists('userUserIdDelete', 'userId', userId)
1672
            const localVarPath = `/user/{userId}`
1673
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1674 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1675
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1676
            let baseOptions;
1677
            if (configuration) {
1678
                baseOptions = configuration.baseOptions;
1679
            }
1680
1681 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1682 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1683
            const localVarQueryParameter = {} as any;
1684
1685 0db53e25 Jaroslav Hrubý
1686
    
1687 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1688 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1689
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1690 43d49a98 Jaroslav Hrubý
1691
            return {
1692
                url: toPathString(localVarUrlObj),
1693
                options: localVarRequestOptions,
1694
            };
1695
        },
1696
        /**
1697 0db53e25 Jaroslav Hrubý
         * 
1698
         * @param {string} userId 
1699
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1700 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1701
         * @throws {RequiredError}
1702
         */
1703 0db53e25 Jaroslav Hrubý
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1704 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
1705 0db53e25 Jaroslav Hrubý
            assertParamExists('userUserIdPut', 'userId', userId)
1706
            const localVarPath = `/user/{userId}`
1707
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1708 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1709
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1710
            let baseOptions;
1711
            if (configuration) {
1712
                baseOptions = configuration.baseOptions;
1713
            }
1714
1715 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1716 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1717
            const localVarQueryParameter = {} as any;
1718
1719 0db53e25 Jaroslav Hrubý
1720
    
1721 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
1722
1723
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1724 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1725
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1726
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
1727 43d49a98 Jaroslav Hrubý
1728
            return {
1729
                url: toPathString(localVarUrlObj),
1730
                options: localVarRequestOptions,
1731
            };
1732
        },
1733 3e6b15a7 Lukáš Vlček
        /**
1734 0db53e25 Jaroslav Hrubý
         * 
1735 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1736
         * @throws {RequiredError}
1737
         */
1738
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1739
            const localVarPath = `/users`;
1740
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1741
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1742
            let baseOptions;
1743
            if (configuration) {
1744
                baseOptions = configuration.baseOptions;
1745
            }
1746
1747 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1748 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1749
            const localVarQueryParameter = {} as any;
1750
1751 0db53e25 Jaroslav Hrubý
1752
    
1753 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1754 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1755
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1756 3e6b15a7 Lukáš Vlček
1757 43d49a98 Jaroslav Hrubý
            return {
1758
                url: toPathString(localVarUrlObj),
1759
                options: localVarRequestOptions,
1760
            };
1761
        },
1762
        /**
1763 0db53e25 Jaroslav Hrubý
         * 
1764
         * @param {CreateUserRequest} [createUserRequest] 
1765 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1766
         * @throws {RequiredError}
1767
         */
1768 0db53e25 Jaroslav Hrubý
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1769 43d49a98 Jaroslav Hrubý
            const localVarPath = `/users`;
1770
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1771
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1772
            let baseOptions;
1773
            if (configuration) {
1774
                baseOptions = configuration.baseOptions;
1775
            }
1776
1777 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1778 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1779
            const localVarQueryParameter = {} as any;
1780
1781 0db53e25 Jaroslav Hrubý
1782
    
1783 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
1784
1785
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1786 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1787
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1788
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
1789 43d49a98 Jaroslav Hrubý
1790 3e6b15a7 Lukáš Vlček
            return {
1791
                url: toPathString(localVarUrlObj),
1792
                options: localVarRequestOptions,
1793
            };
1794
        },
1795 0db53e25 Jaroslav Hrubý
    }
1796 3e6b15a7 Lukáš Vlček
};
1797
1798
/**
1799
 * UserApi - functional programming interface
1800
 * @export
1801
 */
1802 0db53e25 Jaroslav Hrubý
export const UserApiFp = function(configuration?: Configuration) {
1803
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
1804 3e6b15a7 Lukáš Vlček
    return {
1805
        /**
1806 0db53e25 Jaroslav Hrubý
         * 
1807 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1808
         * @throws {RequiredError}
1809
         */
1810 0db53e25 Jaroslav Hrubý
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1811
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
1812
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1813 3e6b15a7 Lukáš Vlček
        },
1814 43d49a98 Jaroslav Hrubý
        /**
1815 0db53e25 Jaroslav Hrubý
         * 
1816
         * @param {string} userId 
1817 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1818
         * @throws {RequiredError}
1819
         */
1820 0db53e25 Jaroslav Hrubý
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1821
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
1822
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1823 43d49a98 Jaroslav Hrubý
        },
1824
        /**
1825 0db53e25 Jaroslav Hrubý
         * 
1826
         * @param {string} userId 
1827 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1828
         * @throws {RequiredError}
1829
         */
1830 0db53e25 Jaroslav Hrubý
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1831
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
1832
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1833 43d49a98 Jaroslav Hrubý
        },
1834
        /**
1835 0db53e25 Jaroslav Hrubý
         * 
1836
         * @param {string} userId 
1837
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1838 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1839
         * @throws {RequiredError}
1840
         */
1841 0db53e25 Jaroslav Hrubý
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1842
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
1843
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1844 43d49a98 Jaroslav Hrubý
        },
1845 3e6b15a7 Lukáš Vlček
        /**
1846 0db53e25 Jaroslav Hrubý
         * 
1847 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1848
         * @throws {RequiredError}
1849
         */
1850 0db53e25 Jaroslav Hrubý
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
1851 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
1852 0db53e25 Jaroslav Hrubý
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1853 3e6b15a7 Lukáš Vlček
        },
1854 43d49a98 Jaroslav Hrubý
        /**
1855 0db53e25 Jaroslav Hrubý
         * 
1856
         * @param {CreateUserRequest} [createUserRequest] 
1857 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1858
         * @throws {RequiredError}
1859
         */
1860 0db53e25 Jaroslav Hrubý
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1861
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
1862
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1863 43d49a98 Jaroslav Hrubý
        },
1864 0db53e25 Jaroslav Hrubý
    }
1865 3e6b15a7 Lukáš Vlček
};
1866
1867
/**
1868
 * UserApi - factory interface
1869
 * @export
1870
 */
1871 0db53e25 Jaroslav Hrubý
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1872
    const localVarFp = UserApiFp(configuration)
1873 3e6b15a7 Lukáš Vlček
    return {
1874
        /**
1875 0db53e25 Jaroslav Hrubý
         * 
1876 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1877
         * @throws {RequiredError}
1878
         */
1879
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
1880 0db53e25 Jaroslav Hrubý
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
1881 3e6b15a7 Lukáš Vlček
        },
1882 43d49a98 Jaroslav Hrubý
        /**
1883 0db53e25 Jaroslav Hrubý
         * 
1884
         * @param {string} userId 
1885 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1886
         * @throws {RequiredError}
1887
         */
1888 0db53e25 Jaroslav Hrubý
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
1889
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
1890 43d49a98 Jaroslav Hrubý
        },
1891
        /**
1892 0db53e25 Jaroslav Hrubý
         * 
1893
         * @param {string} userId 
1894 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1895
         * @throws {RequiredError}
1896
         */
1897
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
1898 0db53e25 Jaroslav Hrubý
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
1899 43d49a98 Jaroslav Hrubý
        },
1900
        /**
1901 0db53e25 Jaroslav Hrubý
         * 
1902
         * @param {string} userId 
1903
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1904 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1905
         * @throws {RequiredError}
1906
         */
1907 0db53e25 Jaroslav Hrubý
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
1908
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
1909 43d49a98 Jaroslav Hrubý
        },
1910 3e6b15a7 Lukáš Vlček
        /**
1911 0db53e25 Jaroslav Hrubý
         * 
1912 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1913
         * @throws {RequiredError}
1914
         */
1915
        usersGet(options?: any): AxiosPromise<UserList> {
1916 0db53e25 Jaroslav Hrubý
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
1917 3e6b15a7 Lukáš Vlček
        },
1918 43d49a98 Jaroslav Hrubý
        /**
1919 0db53e25 Jaroslav Hrubý
         * 
1920
         * @param {CreateUserRequest} [createUserRequest] 
1921 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1922
         * @throws {RequiredError}
1923
         */
1924 0db53e25 Jaroslav Hrubý
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
1925
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
1926 43d49a98 Jaroslav Hrubý
        },
1927 3e6b15a7 Lukáš Vlček
    };
1928
};
1929
1930
/**
1931
 * UserApi - object-oriented interface
1932
 * @export
1933
 * @class UserApi
1934
 * @extends {BaseAPI}
1935
 */
1936
export class UserApi extends BaseAPI {
1937
    /**
1938 0db53e25 Jaroslav Hrubý
     * 
1939 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1940
     * @throws {RequiredError}
1941
     * @memberof UserApi
1942
     */
1943
    public userAnnotationsGet(options?: AxiosRequestConfig) {
1944 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
1945 3e6b15a7 Lukáš Vlček
    }
1946
1947 43d49a98 Jaroslav Hrubý
    /**
1948 0db53e25 Jaroslav Hrubý
     * 
1949
     * @param {string} userId 
1950 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1951
     * @throws {RequiredError}
1952
     * @memberof UserApi
1953
     */
1954
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
1955 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
1956 43d49a98 Jaroslav Hrubý
    }
1957
1958
    /**
1959 0db53e25 Jaroslav Hrubý
     * 
1960
     * @param {string} userId 
1961 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1962
     * @throws {RequiredError}
1963
     * @memberof UserApi
1964
     */
1965
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
1966 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
1967 43d49a98 Jaroslav Hrubý
    }
1968
1969
    /**
1970 0db53e25 Jaroslav Hrubý
     * 
1971
     * @param {string} userId 
1972
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1973 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1974
     * @throws {RequiredError}
1975
     * @memberof UserApi
1976
     */
1977 0db53e25 Jaroslav Hrubý
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
1978
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
1979 43d49a98 Jaroslav Hrubý
    }
1980
1981 3e6b15a7 Lukáš Vlček
    /**
1982 0db53e25 Jaroslav Hrubý
     * 
1983 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1984
     * @throws {RequiredError}
1985
     * @memberof UserApi
1986
     */
1987
    public usersGet(options?: AxiosRequestConfig) {
1988 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
1989 3e6b15a7 Lukáš Vlček
    }
1990 43d49a98 Jaroslav Hrubý
1991
    /**
1992 0db53e25 Jaroslav Hrubý
     * 
1993
     * @param {CreateUserRequest} [createUserRequest] 
1994 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1995
     * @throws {RequiredError}
1996
     * @memberof UserApi
1997
     */
1998 0db53e25 Jaroslav Hrubý
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
1999
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
2000 43d49a98 Jaroslav Hrubý
    }
2001 3e6b15a7 Lukáš Vlček
}
2002 0db53e25 Jaroslav Hrubý