Projekt

Obecné

Profil

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