Projekt

Obecné

Profil

Stáhnout (62.9 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 3e6b15a7 Lukáš Vlček
}
791
/**
792 0db53e25 Jaroslav Hrubý
 * 
793 3e6b15a7 Lukáš Vlček
 * @export
794
 * @interface UserList
795
 */
796
export interface UserList {
797
    /**
798 0db53e25 Jaroslav Hrubý
     * 
799 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
800
     * @memberof UserList
801
     */
802 0db53e25 Jaroslav Hrubý
    'users'?: Array<UserInfo> | null;
803 3e6b15a7 Lukáš Vlček
}
804
805
/**
806
 * AnnotationApi - axios parameter creator
807
 * @export
808
 */
809
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
810
    return {
811
        /**
812 0db53e25 Jaroslav Hrubý
         * 
813
         * @param {string} annotationId 
814 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
815
         * @throws {RequiredError}
816
         */
817 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
818 dd747fc5 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
819 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
820
            const localVarPath = `/annotation/{annotationId}`
821
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
822 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
823
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
824
            let baseOptions;
825
            if (configuration) {
826
                baseOptions = configuration.baseOptions;
827
            }
828
829 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
830 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
831
            const localVarQueryParameter = {} as any;
832
833 0db53e25 Jaroslav Hrubý
834
    
835 9fdb7d55 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
836 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
837
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
838 9fdb7d55 Lukáš Vlček
839
            return {
840
                url: toPathString(localVarUrlObj),
841
                options: localVarRequestOptions,
842
            };
843
        },
844
        /**
845 0db53e25 Jaroslav Hrubý
         * 
846
         * @param {string} annotationId 
847
         * @param {string} occurenceId 
848 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
849
         * @throws {RequiredError}
850
         */
851 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
852 9fdb7d55 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
853 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
854 9fdb7d55 Lukáš Vlček
            // verify required parameter 'occurenceId' is not null or undefined
855 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
856 9fdb7d55 Lukáš Vlček
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
857 0db53e25 Jaroslav Hrubý
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
858
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
859 9fdb7d55 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
860
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
861
            let baseOptions;
862
            if (configuration) {
863
                baseOptions = configuration.baseOptions;
864
            }
865
866 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
867 9fdb7d55 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
868
            const localVarQueryParameter = {} as any;
869
870 0db53e25 Jaroslav Hrubý
871
    
872 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
873 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
874
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
875 3e6b15a7 Lukáš Vlček
876
            return {
877
                url: toPathString(localVarUrlObj),
878
                options: localVarRequestOptions,
879
            };
880
        },
881 4bc99591 Lukáš Vlček
        /**
882 0db53e25 Jaroslav Hrubý
         * 
883
         * @param {string} annotationId 
884
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
885 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
886
         * @throws {RequiredError}
887
         */
888 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
889 4bc99591 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
890 0db53e25 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
891
            const localVarPath = `/annotation/{annotationId}`
892
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
893 4bc99591 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
894
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
895
            let baseOptions;
896
            if (configuration) {
897
                baseOptions = configuration.baseOptions;
898
            }
899
900 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
901 4bc99591 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
902
            const localVarQueryParameter = {} as any;
903
904 0db53e25 Jaroslav Hrubý
905
    
906 4bc99591 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
907
908
            setSearchParams(localVarUrlObj, localVarQueryParameter);
909 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
910
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
911
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
912 4bc99591 Lukáš Vlček
913
            return {
914
                url: toPathString(localVarUrlObj),
915
                options: localVarRequestOptions,
916
            };
917
        },
918 3e6b15a7 Lukáš Vlček
        /**
919 0db53e25 Jaroslav Hrubý
         * 
920
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
921 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
922
         * @throws {RequiredError}
923
         */
924 0db53e25 Jaroslav Hrubý
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
925 3e6b15a7 Lukáš Vlček
            const localVarPath = `/annotations`;
926
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
927
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
928
            let baseOptions;
929
            if (configuration) {
930
                baseOptions = configuration.baseOptions;
931
            }
932
933 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
934 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
935
            const localVarQueryParameter = {} as any;
936
937 0db53e25 Jaroslav Hrubý
938
    
939 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
940
941
            setSearchParams(localVarUrlObj, localVarQueryParameter);
942 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
943
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
944
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
945 3e6b15a7 Lukáš Vlček
946
            return {
947
                url: toPathString(localVarUrlObj),
948
                options: localVarRequestOptions,
949
            };
950
        },
951 0db53e25 Jaroslav Hrubý
    }
952 3e6b15a7 Lukáš Vlček
};
953
954
/**
955
 * AnnotationApi - functional programming interface
956
 * @export
957
 */
958 0db53e25 Jaroslav Hrubý
export const AnnotationApiFp = function(configuration?: Configuration) {
959
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
960 3e6b15a7 Lukáš Vlček
    return {
961
        /**
962 0db53e25 Jaroslav Hrubý
         * 
963
         * @param {string} annotationId 
964 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
965
         * @throws {RequiredError}
966
         */
967 0db53e25 Jaroslav Hrubý
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
968
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
969
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
970 3e6b15a7 Lukáš Vlček
        },
971 9fdb7d55 Lukáš Vlček
        /**
972 0db53e25 Jaroslav Hrubý
         * 
973
         * @param {string} annotationId 
974
         * @param {string} occurenceId 
975 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
976
         * @throws {RequiredError}
977
         */
978 0db53e25 Jaroslav Hrubý
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
979
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
980
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
981 9fdb7d55 Lukáš Vlček
        },
982 4bc99591 Lukáš Vlček
        /**
983 0db53e25 Jaroslav Hrubý
         * 
984
         * @param {string} annotationId 
985
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
986 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
987
         * @throws {RequiredError}
988
         */
989 0db53e25 Jaroslav Hrubý
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
990
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
991
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
992 4bc99591 Lukáš Vlček
        },
993 3e6b15a7 Lukáš Vlček
        /**
994 0db53e25 Jaroslav Hrubý
         * 
995
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
996 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
997
         * @throws {RequiredError}
998
         */
999 0db53e25 Jaroslav Hrubý
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1000
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1001
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1002 3e6b15a7 Lukáš Vlček
        },
1003 0db53e25 Jaroslav Hrubý
    }
1004 3e6b15a7 Lukáš Vlček
};
1005
1006
/**
1007
 * AnnotationApi - factory interface
1008
 * @export
1009
 */
1010 0db53e25 Jaroslav Hrubý
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1011
    const localVarFp = AnnotationApiFp(configuration)
1012 3e6b15a7 Lukáš Vlček
    return {
1013
        /**
1014 0db53e25 Jaroslav Hrubý
         * 
1015
         * @param {string} annotationId 
1016 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1017
         * @throws {RequiredError}
1018
         */
1019 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
1020
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
1021 3e6b15a7 Lukáš Vlček
        },
1022 9fdb7d55 Lukáš Vlček
        /**
1023 0db53e25 Jaroslav Hrubý
         * 
1024
         * @param {string} annotationId 
1025
         * @param {string} occurenceId 
1026 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
1027
         * @throws {RequiredError}
1028
         */
1029 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> {
1030
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath));
1031 9fdb7d55 Lukáš Vlček
        },
1032 4bc99591 Lukáš Vlček
        /**
1033 0db53e25 Jaroslav Hrubý
         * 
1034
         * @param {string} annotationId 
1035
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1036 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
1037
         * @throws {RequiredError}
1038
         */
1039 0db53e25 Jaroslav Hrubý
        annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
1040
            return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
1041 4bc99591 Lukáš Vlček
        },
1042 3e6b15a7 Lukáš Vlček
        /**
1043 0db53e25 Jaroslav Hrubý
         * 
1044
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1045 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1046
         * @throws {RequiredError}
1047
         */
1048 0db53e25 Jaroslav Hrubý
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
1049
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
1050 3e6b15a7 Lukáš Vlček
        },
1051
    };
1052
};
1053
1054
/**
1055
 * AnnotationApi - object-oriented interface
1056
 * @export
1057
 * @class AnnotationApi
1058
 * @extends {BaseAPI}
1059
 */
1060
export class AnnotationApi extends BaseAPI {
1061
    /**
1062 0db53e25 Jaroslav Hrubý
     * 
1063
     * @param {string} annotationId 
1064 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1065
     * @throws {RequiredError}
1066
     * @memberof AnnotationApi
1067
     */
1068 dd747fc5 Lukáš Vlček
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
1069 0db53e25 Jaroslav Hrubý
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
1070 3e6b15a7 Lukáš Vlček
    }
1071
1072 9fdb7d55 Lukáš Vlček
    /**
1073 0db53e25 Jaroslav Hrubý
     * 
1074
     * @param {string} annotationId 
1075
     * @param {string} occurenceId 
1076 9fdb7d55 Lukáš Vlček
     * @param {*} [options] Override http request option.
1077
     * @throws {RequiredError}
1078
     * @memberof AnnotationApi
1079
     */
1080 0db53e25 Jaroslav Hrubý
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
1081
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
1082 9fdb7d55 Lukáš Vlček
    }
1083
1084 4bc99591 Lukáš Vlček
    /**
1085 0db53e25 Jaroslav Hrubý
     * 
1086
     * @param {string} annotationId 
1087
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1088 4bc99591 Lukáš Vlček
     * @param {*} [options] Override http request option.
1089
     * @throws {RequiredError}
1090
     * @memberof AnnotationApi
1091
     */
1092 0db53e25 Jaroslav Hrubý
    public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
1093
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
1094 4bc99591 Lukáš Vlček
    }
1095
1096 3e6b15a7 Lukáš Vlček
    /**
1097 0db53e25 Jaroslav Hrubý
     * 
1098
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1099 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1100
     * @throws {RequiredError}
1101
     * @memberof AnnotationApi
1102
     */
1103 0db53e25 Jaroslav Hrubý
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
1104
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
1105 3e6b15a7 Lukáš Vlček
    }
1106
}
1107
1108 0db53e25 Jaroslav Hrubý
1109 3e6b15a7 Lukáš Vlček
/**
1110
 * AuthApi - axios parameter creator
1111
 * @export
1112
 */
1113
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1114
    return {
1115
        /**
1116 0db53e25 Jaroslav Hrubý
         * 
1117
         * @param {LoginRequest} [loginRequest] 
1118 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1119
         * @throws {RequiredError}
1120
         */
1121 0db53e25 Jaroslav Hrubý
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1122 3e6b15a7 Lukáš Vlček
            const localVarPath = `/auth/login`;
1123
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1124
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1125
            let baseOptions;
1126
            if (configuration) {
1127
                baseOptions = configuration.baseOptions;
1128
            }
1129
1130 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1131 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1132
            const localVarQueryParameter = {} as any;
1133
1134 0db53e25 Jaroslav Hrubý
1135
    
1136 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
1137
1138
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1139 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1140
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1141
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
1142 3e6b15a7 Lukáš Vlček
1143
            return {
1144
                url: toPathString(localVarUrlObj),
1145
                options: localVarRequestOptions,
1146
            };
1147
        },
1148
        /**
1149 0db53e25 Jaroslav Hrubý
         * 
1150 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1151
         * @throws {RequiredError}
1152
         */
1153
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1154
            const localVarPath = `/auth/test/aa`;
1155
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1156
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1157
            let baseOptions;
1158
            if (configuration) {
1159
                baseOptions = configuration.baseOptions;
1160
            }
1161
1162 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1163 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1164
            const localVarQueryParameter = {} as any;
1165
1166 0db53e25 Jaroslav Hrubý
1167
    
1168 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1169 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1170
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1171 3e6b15a7 Lukáš Vlček
1172
            return {
1173
                url: toPathString(localVarUrlObj),
1174
                options: localVarRequestOptions,
1175
            };
1176
        },
1177
        /**
1178 0db53e25 Jaroslav Hrubý
         * 
1179 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1180
         * @throws {RequiredError}
1181
         */
1182
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1183
            const localVarPath = `/auth/test`;
1184
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1185
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1186
            let baseOptions;
1187
            if (configuration) {
1188
                baseOptions = configuration.baseOptions;
1189
            }
1190
1191 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1192 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1193
            const localVarQueryParameter = {} as any;
1194
1195 0db53e25 Jaroslav Hrubý
1196
    
1197 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1198 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1199
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1200 3e6b15a7 Lukáš Vlček
1201
            return {
1202
                url: toPathString(localVarUrlObj),
1203
                options: localVarRequestOptions,
1204
            };
1205
        },
1206 0db53e25 Jaroslav Hrubý
    }
1207 3e6b15a7 Lukáš Vlček
};
1208
1209
/**
1210
 * AuthApi - functional programming interface
1211
 * @export
1212
 */
1213 0db53e25 Jaroslav Hrubý
export const AuthApiFp = function(configuration?: Configuration) {
1214
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1215 3e6b15a7 Lukáš Vlček
    return {
1216
        /**
1217 0db53e25 Jaroslav Hrubý
         * 
1218
         * @param {LoginRequest} [loginRequest] 
1219 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1220
         * @throws {RequiredError}
1221
         */
1222 0db53e25 Jaroslav Hrubý
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
1223
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
1224
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1225 3e6b15a7 Lukáš Vlček
        },
1226
        /**
1227 0db53e25 Jaroslav Hrubý
         * 
1228 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1229
         * @throws {RequiredError}
1230
         */
1231 0db53e25 Jaroslav Hrubý
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1232
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
1233
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1234 3e6b15a7 Lukáš Vlček
        },
1235
        /**
1236 0db53e25 Jaroslav Hrubý
         * 
1237 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1238
         * @throws {RequiredError}
1239
         */
1240 0db53e25 Jaroslav Hrubý
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1241
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
1242
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1243 3e6b15a7 Lukáš Vlček
        },
1244 0db53e25 Jaroslav Hrubý
    }
1245 3e6b15a7 Lukáš Vlček
};
1246
1247
/**
1248
 * AuthApi - factory interface
1249
 * @export
1250
 */
1251 0db53e25 Jaroslav Hrubý
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1252
    const localVarFp = AuthApiFp(configuration)
1253 3e6b15a7 Lukáš Vlček
    return {
1254
        /**
1255 0db53e25 Jaroslav Hrubý
         * 
1256
         * @param {LoginRequest} [loginRequest] 
1257 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1258
         * @throws {RequiredError}
1259
         */
1260 0db53e25 Jaroslav Hrubý
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
1261
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
1262 3e6b15a7 Lukáš Vlček
        },
1263
        /**
1264 0db53e25 Jaroslav Hrubý
         * 
1265 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1266
         * @throws {RequiredError}
1267
         */
1268
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1269 0db53e25 Jaroslav Hrubý
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
1270 3e6b15a7 Lukáš Vlček
        },
1271
        /**
1272 0db53e25 Jaroslav Hrubý
         * 
1273 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1274
         * @throws {RequiredError}
1275
         */
1276
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1277 0db53e25 Jaroslav Hrubý
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
1278 3e6b15a7 Lukáš Vlček
        },
1279
    };
1280
};
1281
1282
/**
1283
 * AuthApi - object-oriented interface
1284
 * @export
1285
 * @class AuthApi
1286
 * @extends {BaseAPI}
1287
 */
1288
export class AuthApi extends BaseAPI {
1289
    /**
1290 0db53e25 Jaroslav Hrubý
     * 
1291
     * @param {LoginRequest} [loginRequest] 
1292 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1293
     * @throws {RequiredError}
1294
     * @memberof AuthApi
1295
     */
1296
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1297 0db53e25 Jaroslav Hrubý
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
1298 3e6b15a7 Lukáš Vlček
    }
1299
1300
    /**
1301 0db53e25 Jaroslav Hrubý
     * 
1302 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1303
     * @throws {RequiredError}
1304
     * @memberof AuthApi
1305
     */
1306
    public authTestAaGet(options?: AxiosRequestConfig) {
1307 0db53e25 Jaroslav Hrubý
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1308 3e6b15a7 Lukáš Vlček
    }
1309
1310
    /**
1311 0db53e25 Jaroslav Hrubý
     * 
1312 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1313
     * @throws {RequiredError}
1314
     * @memberof AuthApi
1315
     */
1316
    public authTestGet(options?: AxiosRequestConfig) {
1317 0db53e25 Jaroslav Hrubý
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1318 3e6b15a7 Lukáš Vlček
    }
1319
}
1320
1321 0db53e25 Jaroslav Hrubý
1322 3e6b15a7 Lukáš Vlček
/**
1323
 * DocumentApi - axios parameter creator
1324
 * @export
1325
 */
1326
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1327
    return {
1328
        /**
1329 0db53e25 Jaroslav Hrubý
         * 
1330
         * @param {number} [pageIndex] 
1331
         * @param {number} [pageSize] 
1332 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1333
         * @throws {RequiredError}
1334
         */
1335 0db53e25 Jaroslav Hrubý
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1336 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
1337
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1338
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1339
            let baseOptions;
1340
            if (configuration) {
1341
                baseOptions = configuration.baseOptions;
1342
            }
1343
1344 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1345 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1346
            const localVarQueryParameter = {} as any;
1347
1348 dd747fc5 Lukáš Vlček
            if (pageIndex !== undefined) {
1349
                localVarQueryParameter['pageIndex'] = pageIndex;
1350
            }
1351 3e6b15a7 Lukáš Vlček
1352 dd747fc5 Lukáš Vlček
            if (pageSize !== undefined) {
1353
                localVarQueryParameter['pageSize'] = pageSize;
1354
            }
1355 3e6b15a7 Lukáš Vlček
1356 0db53e25 Jaroslav Hrubý
1357
    
1358 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1359 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1360
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1361 3e6b15a7 Lukáš Vlček
1362
            return {
1363
                url: toPathString(localVarUrlObj),
1364
                options: localVarRequestOptions,
1365
            };
1366
        },
1367
        /**
1368 0db53e25 Jaroslav Hrubý
         * 
1369
         * @param {DocumentAddRequest} [documentAddRequest] 
1370 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1371
         * @throws {RequiredError}
1372
         */
1373 0db53e25 Jaroslav Hrubý
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1374 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
1375
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1376
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1377
            let baseOptions;
1378
            if (configuration) {
1379
                baseOptions = configuration.baseOptions;
1380
            }
1381
1382 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1383 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1384
            const localVarQueryParameter = {} as any;
1385
1386 0db53e25 Jaroslav Hrubý
1387
    
1388 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
1389
1390
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1391 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1392
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1393
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
1394 3e6b15a7 Lukáš Vlček
1395
            return {
1396
                url: toPathString(localVarUrlObj),
1397
                options: localVarRequestOptions,
1398
            };
1399
        },
1400 0db53e25 Jaroslav Hrubý
    }
1401 3e6b15a7 Lukáš Vlček
};
1402
1403
/**
1404
 * DocumentApi - functional programming interface
1405
 * @export
1406
 */
1407 0db53e25 Jaroslav Hrubý
export const DocumentApiFp = function(configuration?: Configuration) {
1408
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
1409 3e6b15a7 Lukáš Vlček
    return {
1410
        /**
1411 0db53e25 Jaroslav Hrubý
         * 
1412
         * @param {number} [pageIndex] 
1413
         * @param {number} [pageSize] 
1414 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1415
         * @throws {RequiredError}
1416
         */
1417 0db53e25 Jaroslav Hrubý
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
1418
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
1419
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1420 3e6b15a7 Lukáš Vlček
        },
1421
        /**
1422 0db53e25 Jaroslav Hrubý
         * 
1423
         * @param {DocumentAddRequest} [documentAddRequest] 
1424 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1425
         * @throws {RequiredError}
1426
         */
1427 0db53e25 Jaroslav Hrubý
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1428
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
1429
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1430 3e6b15a7 Lukáš Vlček
        },
1431 0db53e25 Jaroslav Hrubý
    }
1432 3e6b15a7 Lukáš Vlček
};
1433
1434
/**
1435
 * DocumentApi - factory interface
1436
 * @export
1437
 */
1438 0db53e25 Jaroslav Hrubý
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1439
    const localVarFp = DocumentApiFp(configuration)
1440 3e6b15a7 Lukáš Vlček
    return {
1441
        /**
1442 0db53e25 Jaroslav Hrubý
         * 
1443
         * @param {number} [pageIndex] 
1444
         * @param {number} [pageSize] 
1445 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1446
         * @throws {RequiredError}
1447
         */
1448 0db53e25 Jaroslav Hrubý
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
1449
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
1450 3e6b15a7 Lukáš Vlček
        },
1451
        /**
1452 0db53e25 Jaroslav Hrubý
         * 
1453
         * @param {DocumentAddRequest} [documentAddRequest] 
1454 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1455
         * @throws {RequiredError}
1456
         */
1457 0db53e25 Jaroslav Hrubý
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
1458
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
1459 3e6b15a7 Lukáš Vlček
        },
1460
    };
1461
};
1462
1463
/**
1464
 * DocumentApi - object-oriented interface
1465
 * @export
1466
 * @class DocumentApi
1467
 * @extends {BaseAPI}
1468
 */
1469
export class DocumentApi extends BaseAPI {
1470
    /**
1471 0db53e25 Jaroslav Hrubý
     * 
1472
     * @param {number} [pageIndex] 
1473
     * @param {number} [pageSize] 
1474 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1475
     * @throws {RequiredError}
1476
     * @memberof DocumentApi
1477
     */
1478 0db53e25 Jaroslav Hrubý
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
1479
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
1480 3e6b15a7 Lukáš Vlček
    }
1481
1482
    /**
1483 0db53e25 Jaroslav Hrubý
     * 
1484
     * @param {DocumentAddRequest} [documentAddRequest] 
1485 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1486
     * @throws {RequiredError}
1487
     * @memberof DocumentApi
1488
     */
1489 0db53e25 Jaroslav Hrubý
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
1490
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
1491 3e6b15a7 Lukáš Vlček
    }
1492
}
1493
1494 0db53e25 Jaroslav Hrubý
1495 3e6b15a7 Lukáš Vlček
/**
1496
 * TagApi - axios parameter creator
1497
 * @export
1498
 */
1499
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
1500
    return {
1501
        /**
1502 0db53e25 Jaroslav Hrubý
         * 
1503 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1504
         * @throws {RequiredError}
1505
         */
1506
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1507
            const localVarPath = `/tags`;
1508
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1509
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1510
            let baseOptions;
1511
            if (configuration) {
1512
                baseOptions = configuration.baseOptions;
1513
            }
1514
1515 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1516 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1517
            const localVarQueryParameter = {} as any;
1518
1519 0db53e25 Jaroslav Hrubý
1520
    
1521 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1522 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1523
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1524 3e6b15a7 Lukáš Vlček
1525
            return {
1526
                url: toPathString(localVarUrlObj),
1527
                options: localVarRequestOptions,
1528
            };
1529
        },
1530 0db53e25 Jaroslav Hrubý
    }
1531 3e6b15a7 Lukáš Vlček
};
1532
1533
/**
1534
 * TagApi - functional programming interface
1535
 * @export
1536
 */
1537 0db53e25 Jaroslav Hrubý
export const TagApiFp = function(configuration?: Configuration) {
1538
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
1539 3e6b15a7 Lukáš Vlček
    return {
1540
        /**
1541 0db53e25 Jaroslav Hrubý
         * 
1542 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1543
         * @throws {RequiredError}
1544
         */
1545 0db53e25 Jaroslav Hrubý
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
1546 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
1547 0db53e25 Jaroslav Hrubý
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1548 3e6b15a7 Lukáš Vlček
        },
1549 0db53e25 Jaroslav Hrubý
    }
1550 3e6b15a7 Lukáš Vlček
};
1551
1552
/**
1553
 * TagApi - factory interface
1554
 * @export
1555
 */
1556 0db53e25 Jaroslav Hrubý
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1557
    const localVarFp = TagApiFp(configuration)
1558 3e6b15a7 Lukáš Vlček
    return {
1559
        /**
1560 0db53e25 Jaroslav Hrubý
         * 
1561 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1562
         * @throws {RequiredError}
1563
         */
1564
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
1565 0db53e25 Jaroslav Hrubý
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
1566 3e6b15a7 Lukáš Vlček
        },
1567
    };
1568
};
1569
1570
/**
1571
 * TagApi - object-oriented interface
1572
 * @export
1573
 * @class TagApi
1574
 * @extends {BaseAPI}
1575
 */
1576
export class TagApi extends BaseAPI {
1577
    /**
1578 0db53e25 Jaroslav Hrubý
     * 
1579 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1580
     * @throws {RequiredError}
1581
     * @memberof TagApi
1582
     */
1583
    public tagsGet(options?: AxiosRequestConfig) {
1584 0db53e25 Jaroslav Hrubý
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
1585 3e6b15a7 Lukáš Vlček
    }
1586
}
1587
1588 0db53e25 Jaroslav Hrubý
1589 3e6b15a7 Lukáš Vlček
/**
1590
 * UserApi - axios parameter creator
1591
 * @export
1592
 */
1593
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
1594
    return {
1595
        /**
1596 0db53e25 Jaroslav Hrubý
         * 
1597 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1598
         * @throws {RequiredError}
1599
         */
1600 0db53e25 Jaroslav Hrubý
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1601 3e6b15a7 Lukáš Vlček
            const localVarPath = `/user/annotations`;
1602
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1603
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1604
            let baseOptions;
1605
            if (configuration) {
1606
                baseOptions = configuration.baseOptions;
1607
            }
1608
1609 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1610 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1611
            const localVarQueryParameter = {} as any;
1612
1613 0db53e25 Jaroslav Hrubý
1614
    
1615 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1616 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1617
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1618 3e6b15a7 Lukáš Vlček
1619
            return {
1620
                url: toPathString(localVarUrlObj),
1621
                options: localVarRequestOptions,
1622
            };
1623
        },
1624 43d49a98 Jaroslav Hrubý
        /**
1625 0db53e25 Jaroslav Hrubý
         * 
1626
         * @param {string} userId 
1627 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1628
         * @throws {RequiredError}
1629
         */
1630 0db53e25 Jaroslav Hrubý
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1631 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
1632 0db53e25 Jaroslav Hrubý
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
1633
            const localVarPath = `/user/{userId}/annotations`
1634
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1635 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1636
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1637
            let baseOptions;
1638
            if (configuration) {
1639
                baseOptions = configuration.baseOptions;
1640
            }
1641
1642 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1643 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1644
            const localVarQueryParameter = {} as any;
1645
1646 0db53e25 Jaroslav Hrubý
1647
    
1648 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1649 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1650
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1651 43d49a98 Jaroslav Hrubý
1652
            return {
1653
                url: toPathString(localVarUrlObj),
1654
                options: localVarRequestOptions,
1655
            };
1656
        },
1657
        /**
1658 0db53e25 Jaroslav Hrubý
         * 
1659
         * @param {string} userId 
1660 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1661
         * @throws {RequiredError}
1662
         */
1663 0db53e25 Jaroslav Hrubý
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1664 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
1665 0db53e25 Jaroslav Hrubý
            assertParamExists('userUserIdDelete', 'userId', userId)
1666
            const localVarPath = `/user/{userId}`
1667
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1668 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1669
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1670
            let baseOptions;
1671
            if (configuration) {
1672
                baseOptions = configuration.baseOptions;
1673
            }
1674
1675 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1676 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1677
            const localVarQueryParameter = {} as any;
1678
1679 0db53e25 Jaroslav Hrubý
1680
    
1681 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1682 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1683
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1684 43d49a98 Jaroslav Hrubý
1685
            return {
1686
                url: toPathString(localVarUrlObj),
1687
                options: localVarRequestOptions,
1688
            };
1689
        },
1690
        /**
1691 0db53e25 Jaroslav Hrubý
         * 
1692
         * @param {string} userId 
1693
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1694 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1695
         * @throws {RequiredError}
1696
         */
1697 0db53e25 Jaroslav Hrubý
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1698 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
1699 0db53e25 Jaroslav Hrubý
            assertParamExists('userUserIdPut', 'userId', userId)
1700
            const localVarPath = `/user/{userId}`
1701
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1702 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1703
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1704
            let baseOptions;
1705
            if (configuration) {
1706
                baseOptions = configuration.baseOptions;
1707
            }
1708
1709 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1710 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1711
            const localVarQueryParameter = {} as any;
1712
1713 0db53e25 Jaroslav Hrubý
1714
    
1715 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
1716
1717
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1718 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1719
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1720
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
1721 43d49a98 Jaroslav Hrubý
1722
            return {
1723
                url: toPathString(localVarUrlObj),
1724
                options: localVarRequestOptions,
1725
            };
1726
        },
1727 3e6b15a7 Lukáš Vlček
        /**
1728 0db53e25 Jaroslav Hrubý
         * 
1729 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1730
         * @throws {RequiredError}
1731
         */
1732
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1733
            const localVarPath = `/users`;
1734
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1735
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1736
            let baseOptions;
1737
            if (configuration) {
1738
                baseOptions = configuration.baseOptions;
1739
            }
1740
1741 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1742 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1743
            const localVarQueryParameter = {} as any;
1744
1745 0db53e25 Jaroslav Hrubý
1746
    
1747 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1748 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1749
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1750 3e6b15a7 Lukáš Vlček
1751 43d49a98 Jaroslav Hrubý
            return {
1752
                url: toPathString(localVarUrlObj),
1753
                options: localVarRequestOptions,
1754
            };
1755
        },
1756
        /**
1757 0db53e25 Jaroslav Hrubý
         * 
1758
         * @param {CreateUserRequest} [createUserRequest] 
1759 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1760
         * @throws {RequiredError}
1761
         */
1762 0db53e25 Jaroslav Hrubý
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1763 43d49a98 Jaroslav Hrubý
            const localVarPath = `/users`;
1764
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1765
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1766
            let baseOptions;
1767
            if (configuration) {
1768
                baseOptions = configuration.baseOptions;
1769
            }
1770
1771 0db53e25 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1772 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
1773
            const localVarQueryParameter = {} as any;
1774
1775 0db53e25 Jaroslav Hrubý
1776
    
1777 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
1778
1779
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1780 0db53e25 Jaroslav Hrubý
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1781
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1782
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
1783 43d49a98 Jaroslav Hrubý
1784 3e6b15a7 Lukáš Vlček
            return {
1785
                url: toPathString(localVarUrlObj),
1786
                options: localVarRequestOptions,
1787
            };
1788
        },
1789 0db53e25 Jaroslav Hrubý
    }
1790 3e6b15a7 Lukáš Vlček
};
1791
1792
/**
1793
 * UserApi - functional programming interface
1794
 * @export
1795
 */
1796 0db53e25 Jaroslav Hrubý
export const UserApiFp = function(configuration?: Configuration) {
1797
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
1798 3e6b15a7 Lukáš Vlček
    return {
1799
        /**
1800 0db53e25 Jaroslav Hrubý
         * 
1801 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1802
         * @throws {RequiredError}
1803
         */
1804 0db53e25 Jaroslav Hrubý
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1805
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
1806
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1807 3e6b15a7 Lukáš Vlček
        },
1808 43d49a98 Jaroslav Hrubý
        /**
1809 0db53e25 Jaroslav Hrubý
         * 
1810
         * @param {string} userId 
1811 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1812
         * @throws {RequiredError}
1813
         */
1814 0db53e25 Jaroslav Hrubý
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1815
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
1816
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1817 43d49a98 Jaroslav Hrubý
        },
1818
        /**
1819 0db53e25 Jaroslav Hrubý
         * 
1820
         * @param {string} userId 
1821 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1822
         * @throws {RequiredError}
1823
         */
1824 0db53e25 Jaroslav Hrubý
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1825
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
1826
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1827 43d49a98 Jaroslav Hrubý
        },
1828
        /**
1829 0db53e25 Jaroslav Hrubý
         * 
1830
         * @param {string} userId 
1831
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1832 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1833
         * @throws {RequiredError}
1834
         */
1835 0db53e25 Jaroslav Hrubý
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1836
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
1837
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1838 43d49a98 Jaroslav Hrubý
        },
1839 3e6b15a7 Lukáš Vlček
        /**
1840 0db53e25 Jaroslav Hrubý
         * 
1841 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1842
         * @throws {RequiredError}
1843
         */
1844 0db53e25 Jaroslav Hrubý
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
1845 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
1846 0db53e25 Jaroslav Hrubý
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1847 3e6b15a7 Lukáš Vlček
        },
1848 43d49a98 Jaroslav Hrubý
        /**
1849 0db53e25 Jaroslav Hrubý
         * 
1850
         * @param {CreateUserRequest} [createUserRequest] 
1851 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1852
         * @throws {RequiredError}
1853
         */
1854 0db53e25 Jaroslav Hrubý
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1855
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
1856
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1857 43d49a98 Jaroslav Hrubý
        },
1858 0db53e25 Jaroslav Hrubý
    }
1859 3e6b15a7 Lukáš Vlček
};
1860
1861
/**
1862
 * UserApi - factory interface
1863
 * @export
1864
 */
1865 0db53e25 Jaroslav Hrubý
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1866
    const localVarFp = UserApiFp(configuration)
1867 3e6b15a7 Lukáš Vlček
    return {
1868
        /**
1869 0db53e25 Jaroslav Hrubý
         * 
1870 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1871
         * @throws {RequiredError}
1872
         */
1873
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
1874 0db53e25 Jaroslav Hrubý
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
1875 3e6b15a7 Lukáš Vlček
        },
1876 43d49a98 Jaroslav Hrubý
        /**
1877 0db53e25 Jaroslav Hrubý
         * 
1878
         * @param {string} userId 
1879 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1880
         * @throws {RequiredError}
1881
         */
1882 0db53e25 Jaroslav Hrubý
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
1883
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
1884 43d49a98 Jaroslav Hrubý
        },
1885
        /**
1886 0db53e25 Jaroslav Hrubý
         * 
1887
         * @param {string} userId 
1888 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1889
         * @throws {RequiredError}
1890
         */
1891
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
1892 0db53e25 Jaroslav Hrubý
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
1893 43d49a98 Jaroslav Hrubý
        },
1894
        /**
1895 0db53e25 Jaroslav Hrubý
         * 
1896
         * @param {string} userId 
1897
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1898 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1899
         * @throws {RequiredError}
1900
         */
1901 0db53e25 Jaroslav Hrubý
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
1902
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
1903 43d49a98 Jaroslav Hrubý
        },
1904 3e6b15a7 Lukáš Vlček
        /**
1905 0db53e25 Jaroslav Hrubý
         * 
1906 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1907
         * @throws {RequiredError}
1908
         */
1909
        usersGet(options?: any): AxiosPromise<UserList> {
1910 0db53e25 Jaroslav Hrubý
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
1911 3e6b15a7 Lukáš Vlček
        },
1912 43d49a98 Jaroslav Hrubý
        /**
1913 0db53e25 Jaroslav Hrubý
         * 
1914
         * @param {CreateUserRequest} [createUserRequest] 
1915 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
1916
         * @throws {RequiredError}
1917
         */
1918 0db53e25 Jaroslav Hrubý
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
1919
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
1920 43d49a98 Jaroslav Hrubý
        },
1921 3e6b15a7 Lukáš Vlček
    };
1922
};
1923
1924
/**
1925
 * UserApi - object-oriented interface
1926
 * @export
1927
 * @class UserApi
1928
 * @extends {BaseAPI}
1929
 */
1930
export class UserApi extends BaseAPI {
1931
    /**
1932 0db53e25 Jaroslav Hrubý
     * 
1933 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1934
     * @throws {RequiredError}
1935
     * @memberof UserApi
1936
     */
1937
    public userAnnotationsGet(options?: AxiosRequestConfig) {
1938 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
1939 3e6b15a7 Lukáš Vlček
    }
1940
1941 43d49a98 Jaroslav Hrubý
    /**
1942 0db53e25 Jaroslav Hrubý
     * 
1943
     * @param {string} userId 
1944 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1945
     * @throws {RequiredError}
1946
     * @memberof UserApi
1947
     */
1948
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
1949 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
1950 43d49a98 Jaroslav Hrubý
    }
1951
1952
    /**
1953 0db53e25 Jaroslav Hrubý
     * 
1954
     * @param {string} userId 
1955 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1956
     * @throws {RequiredError}
1957
     * @memberof UserApi
1958
     */
1959
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
1960 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
1961 43d49a98 Jaroslav Hrubý
    }
1962
1963
    /**
1964 0db53e25 Jaroslav Hrubý
     * 
1965
     * @param {string} userId 
1966
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1967 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1968
     * @throws {RequiredError}
1969
     * @memberof UserApi
1970
     */
1971 0db53e25 Jaroslav Hrubý
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
1972
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
1973 43d49a98 Jaroslav Hrubý
    }
1974
1975 3e6b15a7 Lukáš Vlček
    /**
1976 0db53e25 Jaroslav Hrubý
     * 
1977 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1978
     * @throws {RequiredError}
1979
     * @memberof UserApi
1980
     */
1981
    public usersGet(options?: AxiosRequestConfig) {
1982 0db53e25 Jaroslav Hrubý
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
1983 3e6b15a7 Lukáš Vlček
    }
1984 43d49a98 Jaroslav Hrubý
1985
    /**
1986 0db53e25 Jaroslav Hrubý
     * 
1987
     * @param {CreateUserRequest} [createUserRequest] 
1988 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
1989
     * @throws {RequiredError}
1990
     * @memberof UserApi
1991
     */
1992 0db53e25 Jaroslav Hrubý
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
1993
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
1994 43d49a98 Jaroslav Hrubý
    }
1995 3e6b15a7 Lukáš Vlček
}
1996 0db53e25 Jaroslav Hrubý