Projekt

Obecné

Profil

Stáhnout (159 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 cca0bfa0 Lukáš Vlček
/**
25
 * 
26
 * @export
27
 * @interface AddNoteToAnnotationRequest
28
 */
29
export interface AddNoteToAnnotationRequest {
30
    /**
31
     * 
32
     * @type {string}
33
     * @memberof AddNoteToAnnotationRequest
34
     */
35
    'note'?: string | null;
36
}
37
/**
38
 * 
39
 * @export
40
 * @interface AddNoteToTagOccurenceRequest
41
 */
42
export interface AddNoteToTagOccurenceRequest {
43
    /**
44
     * 
45
     * @type {string}
46
     * @memberof AddNoteToTagOccurenceRequest
47
     */
48
    'note'?: string | null;
49
}
50 b80a6919 Lukáš Vlček
/**
51
 * 
52
 * @export
53
 * @interface Annotation
54
 */
55
export interface Annotation {
56
    /**
57
     * 
58
     * @type {string}
59
     * @memberof Annotation
60
     */
61
    'id'?: string;
62
    /**
63
     * 
64
     * @type {Document}
65
     * @memberof Annotation
66
     */
67
    'document'?: Document;
68
    /**
69
     * 
70
     * @type {User}
71
     * @memberof Annotation
72
     */
73
    'user'?: User;
74
    /**
75
     * 
76
     * @type {User}
77
     * @memberof Annotation
78
     */
79
    'userAssigned'?: User;
80
    /**
81
     * 
82
     * @type {string}
83
     * @memberof Annotation
84
     */
85
    'dateAssigned'?: string;
86
    /**
87
     * 
88
     * @type {EState}
89
     * @memberof Annotation
90
     */
91
    'state'?: EState;
92
    /**
93
     * 
94
     * @type {string}
95
     * @memberof Annotation
96
     */
97
    'dateLastChanged'?: string;
98
    /**
99
     * 
100
     * @type {string}
101
     * @memberof Annotation
102
     */
103
    'note'?: string | null;
104
    /**
105
     * 
106
     * @type {string}
107
     * @memberof Annotation
108
     */
109
    'cachedDocumentHTML'?: string | null;
110
    /**
111
     * 
112
     * @type {string}
113
     * @memberof Annotation
114
     */
115
    'cachedStartPositions'?: string | null;
116
    /**
117
     * 
118
     * @type {string}
119
     * @memberof Annotation
120
     */
121
    'cachedLengths'?: string | null;
122
    /**
123
     * 
124
     * @type {string}
125
     * @memberof Annotation
126
     */
127
    'cachedClosingPositions'?: string | null;
128
    /**
129
     * 
130
     * @type {string}
131
     * @memberof Annotation
132
     */
133
    'cachedClosingLengths'?: string | null;
134
    /**
135
     * 
136
     * @type {string}
137
     * @memberof Annotation
138
     */
139
    'cachedCSS'?: string | null;
140
    /**
141
     * 
142
     * @type {string}
143
     * @memberof Annotation
144
     */
145
    'lastModifiedTagId'?: string | null;
146
    /**
147
     * 
148
     * @type {EModified}
149
     * @memberof Annotation
150
     */
151
    'modifiedType'?: EModified;
152
    /**
153
     * 
154
     * @type {Array<Class>}
155
     * @memberof Annotation
156
     */
157
    'classes'?: Array<Class> | null;
158
    /**
159
     * 
160
     * @type {Array<FinalAnnotation>}
161
     * @memberof Annotation
162
     */
163
    'finalAnnotations'?: Array<FinalAnnotation> | null;
164
}
165 3e6b15a7 Lukáš Vlček
/**
166 19b68a2e Lukáš Vlček
 * 
167 3e6b15a7 Lukáš Vlček
 * @export
168
 * @interface AnnotationInfo
169
 */
170
export interface AnnotationInfo {
171
    /**
172 19b68a2e Lukáš Vlček
     * 
173 3e6b15a7 Lukáš Vlček
     * @type {string}
174
     * @memberof AnnotationInfo
175
     */
176 19b68a2e Lukáš Vlček
    'sourceDocumentContent'?: string | null;
177 b5f60842 Lukáš Vlček
    /**
178 19b68a2e Lukáš Vlček
     * 
179 b5f60842 Lukáš Vlček
     * @type {string}
180
     * @memberof AnnotationInfo
181
     */
182 19b68a2e Lukáš Vlček
    'documentToRender'?: string | null;
183 b5f60842 Lukáš Vlček
    /**
184 19b68a2e Lukáš Vlček
     * 
185 b5f60842 Lukáš Vlček
     * @type {Array<number>}
186
     * @memberof AnnotationInfo
187
     */
188 19b68a2e Lukáš Vlček
    'tagStartPositions'?: Array<number> | null;
189 b5f60842 Lukáš Vlček
    /**
190 19b68a2e Lukáš Vlček
     * 
191 b5f60842 Lukáš Vlček
     * @type {Array<number>}
192
     * @memberof AnnotationInfo
193
     */
194 19b68a2e Lukáš Vlček
    'tagLengths'?: Array<number> | null;
195 3e6b15a7 Lukáš Vlček
    /**
196 19b68a2e Lukáš Vlček
     * 
197 3e6b15a7 Lukáš Vlček
     * @type {EState}
198
     * @memberof AnnotationInfo
199
     */
200 19b68a2e Lukáš Vlček
    'state'?: EState;
201 3e6b15a7 Lukáš Vlček
    /**
202 19b68a2e Lukáš Vlček
     * 
203 3e6b15a7 Lukáš Vlček
     * @type {EDocumentType}
204
     * @memberof AnnotationInfo
205
     */
206 19b68a2e Lukáš Vlček
    'type'?: EDocumentType;
207 3e6b15a7 Lukáš Vlček
    /**
208 19b68a2e Lukáš Vlček
     * 
209 3e6b15a7 Lukáš Vlček
     * @type {string}
210
     * @memberof AnnotationInfo
211
     */
212 19b68a2e Lukáš Vlček
    'note'?: string | null;
213 3e6b15a7 Lukáš Vlček
    /**
214 19b68a2e Lukáš Vlček
     * 
215 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInstanceInfo>}
216
     * @memberof AnnotationInfo
217
     */
218 19b68a2e Lukáš Vlček
    'tagInstances'?: Array<TagInstanceInfo> | null;
219 f30a7b90 Lukáš Vlček
    /**
220
     * 
221
     * @type {Array<TagInstanceCSSInfo>}
222
     * @memberof AnnotationInfo
223
     */
224
    'cssInfo'?: Array<TagInstanceCSSInfo> | null;
225 3e6b15a7 Lukáš Vlček
}
226 4bc99591 Lukáš Vlček
/**
227 19b68a2e Lukáš Vlček
 * 
228 4bc99591 Lukáš Vlček
 * @export
229
 * @interface AnnotationInstanceAddRequest
230
 */
231
export interface AnnotationInstanceAddRequest {
232
    /**
233 19b68a2e Lukáš Vlček
     * 
234 4bc99591 Lukáš Vlček
     * @type {number}
235
     * @memberof AnnotationInstanceAddRequest
236
     */
237 19b68a2e Lukáš Vlček
    'position'?: number;
238 4bc99591 Lukáš Vlček
    /**
239 19b68a2e Lukáš Vlček
     * 
240 4bc99591 Lukáš Vlček
     * @type {number}
241
     * @memberof AnnotationInstanceAddRequest
242
     */
243 19b68a2e Lukáš Vlček
    'length'?: number;
244 4bc99591 Lukáš Vlček
    /**
245 19b68a2e Lukáš Vlček
     * 
246 4bc99591 Lukáš Vlček
     * @type {ETagType}
247
     * @memberof AnnotationInstanceAddRequest
248
     */
249 19b68a2e Lukáš Vlček
    'type'?: ETagType;
250 4bc99591 Lukáš Vlček
    /**
251 19b68a2e Lukáš Vlček
     * 
252 4bc99591 Lukáš Vlček
     * @type {string}
253
     * @memberof AnnotationInstanceAddRequest
254
     */
255 19b68a2e Lukáš Vlček
    'id'?: string;
256 4bc99591 Lukáš Vlček
    /**
257 19b68a2e Lukáš Vlček
     * 
258 4bc99591 Lukáš Vlček
     * @type {string}
259
     * @memberof AnnotationInstanceAddRequest
260
     */
261 19b68a2e Lukáš Vlček
    'instanceId'?: string | null;
262 f30a7b90 Lukáš Vlček
    /**
263
     * 
264
     * @type {string}
265
     * @memberof AnnotationInstanceAddRequest
266
     */
267
    'selectedText'?: string | null;
268 4bc99591 Lukáš Vlček
}
269 3e6b15a7 Lukáš Vlček
/**
270 19b68a2e Lukáš Vlček
 * 
271 3e6b15a7 Lukáš Vlček
 * @export
272
 * @interface AnnotationListInfo
273
 */
274
export interface AnnotationListInfo {
275
    /**
276 19b68a2e Lukáš Vlček
     * 
277 3e6b15a7 Lukáš Vlček
     * @type {string}
278
     * @memberof AnnotationListInfo
279
     */
280 19b68a2e Lukáš Vlček
    'documentName'?: string | null;
281 3e6b15a7 Lukáš Vlček
    /**
282 19b68a2e Lukáš Vlček
     * 
283 3e6b15a7 Lukáš Vlček
     * @type {EState}
284
     * @memberof AnnotationListInfo
285
     */
286 19b68a2e Lukáš Vlček
    'state'?: EState;
287 3e6b15a7 Lukáš Vlček
    /**
288 19b68a2e Lukáš Vlček
     * 
289 3e6b15a7 Lukáš Vlček
     * @type {string}
290
     * @memberof AnnotationListInfo
291
     */
292 19b68a2e Lukáš Vlček
    'annotationId'?: string;
293 3e6b15a7 Lukáš Vlček
}
294
/**
295 19b68a2e Lukáš Vlček
 * 
296 3e6b15a7 Lukáš Vlček
 * @export
297
 * @interface AnnotationListResponse
298
 */
299
export interface AnnotationListResponse {
300
    /**
301 19b68a2e Lukáš Vlček
     * 
302 3e6b15a7 Lukáš Vlček
     * @type {Array<AnnotationListInfo>}
303
     * @memberof AnnotationListResponse
304
     */
305 19b68a2e Lukáš Vlček
    'annotations'?: Array<AnnotationListInfo> | null;
306 3e6b15a7 Lukáš Vlček
}
307
/**
308 19b68a2e Lukáš Vlček
 * 
309 3e6b15a7 Lukáš Vlček
 * @export
310
 * @interface AnnotationsAddRequest
311
 */
312
export interface AnnotationsAddRequest {
313
    /**
314 19b68a2e Lukáš Vlček
     * 
315 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
316
     * @memberof AnnotationsAddRequest
317
     */
318 19b68a2e Lukáš Vlček
    'userIdList'?: Array<string> | null;
319 3e6b15a7 Lukáš Vlček
    /**
320 19b68a2e Lukáš Vlček
     * 
321 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
322
     * @memberof AnnotationsAddRequest
323
     */
324 19b68a2e Lukáš Vlček
    'documentIdList'?: Array<string> | null;
325 3e6b15a7 Lukáš Vlček
}
326 43d49a98 Jaroslav Hrubý
/**
327 19b68a2e Lukáš Vlček
 * 
328 43d49a98 Jaroslav Hrubý
 * @export
329
 * @interface ChangeUserInfoRequest
330
 */
331
export interface ChangeUserInfoRequest {
332
    /**
333 19b68a2e Lukáš Vlček
     * 
334 43d49a98 Jaroslav Hrubý
     * @type {string}
335
     * @memberof ChangeUserInfoRequest
336
     */
337 19b68a2e Lukáš Vlček
    'password'?: string | null;
338 43d49a98 Jaroslav Hrubý
    /**
339 19b68a2e Lukáš Vlček
     * 
340 43d49a98 Jaroslav Hrubý
     * @type {string}
341
     * @memberof ChangeUserInfoRequest
342
     */
343 19b68a2e Lukáš Vlček
    'username'?: string | null;
344 43d49a98 Jaroslav Hrubý
    /**
345 19b68a2e Lukáš Vlček
     * 
346 43d49a98 Jaroslav Hrubý
     * @type {string}
347
     * @memberof ChangeUserInfoRequest
348
     */
349 19b68a2e Lukáš Vlček
    'name'?: string | null;
350 43d49a98 Jaroslav Hrubý
    /**
351 19b68a2e Lukáš Vlček
     * 
352 43d49a98 Jaroslav Hrubý
     * @type {string}
353
     * @memberof ChangeUserInfoRequest
354
     */
355 19b68a2e Lukáš Vlček
    'surname'?: string | null;
356 43d49a98 Jaroslav Hrubý
    /**
357 19b68a2e Lukáš Vlček
     * 
358 43d49a98 Jaroslav Hrubý
     * @type {ERole}
359
     * @memberof ChangeUserInfoRequest
360
     */
361 19b68a2e Lukáš Vlček
    'role'?: ERole;
362 43d49a98 Jaroslav Hrubý
}
363 b80a6919 Lukáš Vlček
/**
364
 * 
365
 * @export
366
 * @interface Class
367
 */
368
export interface Class {
369
    /**
370
     * 
371
     * @type {string}
372
     * @memberof Class
373
     */
374
    'id'?: string;
375
    /**
376
     * 
377
     * @type {string}
378
     * @memberof Class
379
     */
380
    'name'?: string | null;
381
    /**
382
     * 
383
     * @type {string}
384
     * @memberof Class
385
     */
386
    'description'?: string | null;
387
    /**
388
     * 
389
     * @type {string}
390
     * @memberof Class
391
     */
392
    'color'?: string | null;
393
    /**
394
     * 
395
     * @type {Array<Annotation>}
396
     * @memberof Class
397
     */
398
    'annotations'?: Array<Annotation> | null;
399
}
400 3e6b15a7 Lukáš Vlček
/**
401 19b68a2e Lukáš Vlček
 * 
402 3e6b15a7 Lukáš Vlček
 * @export
403
 * @interface ClientInfo
404
 */
405
export interface ClientInfo {
406
    /**
407 19b68a2e Lukáš Vlček
     * 
408 3e6b15a7 Lukáš Vlček
     * @type {boolean}
409
     * @memberof ClientInfo
410
     */
411 19b68a2e Lukáš Vlček
    'isLogged'?: boolean;
412 3e6b15a7 Lukáš Vlček
    /**
413 19b68a2e Lukáš Vlček
     * 
414 3e6b15a7 Lukáš Vlček
     * @type {User}
415
     * @memberof ClientInfo
416
     */
417 19b68a2e Lukáš Vlček
    'loggedUser'?: User;
418 3e6b15a7 Lukáš Vlček
    /**
419 19b68a2e Lukáš Vlček
     * 
420 3e6b15a7 Lukáš Vlček
     * @type {string}
421
     * @memberof ClientInfo
422
     */
423 19b68a2e Lukáš Vlček
    'ip'?: string | null;
424 3e6b15a7 Lukáš Vlček
}
425 cca0bfa0 Lukáš Vlček
/**
426
 * 
427
 * @export
428
 * @interface CreateCategoryRequest
429
 */
430
export interface CreateCategoryRequest {
431
    /**
432
     * 
433
     * @type {string}
434
     * @memberof CreateCategoryRequest
435
     */
436
    'name'?: string | null;
437
    /**
438
     * 
439
     * @type {string}
440
     * @memberof CreateCategoryRequest
441
     */
442
    'description'?: string | null;
443
    /**
444
     * 
445
     * @type {string}
446
     * @memberof CreateCategoryRequest
447
     */
448
    'color'?: string | null;
449
    /**
450
     * 
451
     * @type {boolean}
452
     * @memberof CreateCategoryRequest
453
     */
454
    'disabledForAnnotators'?: boolean;
455
}
456 048b4bc0 Lukáš Vlček
/**
457
 * 
458
 * @export
459
 * @interface CreateFinalAnnotationResponse
460
 */
461
export interface CreateFinalAnnotationResponse {
462
    /**
463
     * 
464
     * @type {string}
465
     * @memberof CreateFinalAnnotationResponse
466
     */
467
    'finalAnnotationId'?: string;
468
}
469 cca0bfa0 Lukáš Vlček
/**
470
 * 
471
 * @export
472
 * @interface CreateSubTagRequest
473
 */
474
export interface CreateSubTagRequest {
475
    /**
476
     * 
477
     * @type {string}
478
     * @memberof CreateSubTagRequest
479
     */
480
    'name'?: string | null;
481
    /**
482
     * 
483
     * @type {string}
484
     * @memberof CreateSubTagRequest
485
     */
486
    'description'?: string | null;
487
    /**
488
     * 
489
     * @type {string}
490
     * @memberof CreateSubTagRequest
491
     */
492
    'tagId'?: string;
493
    /**
494
     * 
495
     * @type {boolean}
496
     * @memberof CreateSubTagRequest
497
     */
498
    'sentimentEnabled'?: boolean;
499
}
500
/**
501
 * 
502
 * @export
503
 * @interface CreateTagRequest
504
 */
505
export interface CreateTagRequest {
506
    /**
507
     * 
508
     * @type {string}
509
     * @memberof CreateTagRequest
510
     */
511
    'categoryId'?: string;
512
    /**
513
     * 
514
     * @type {string}
515
     * @memberof CreateTagRequest
516
     */
517
    'name'?: string | null;
518
    /**
519
     * 
520
     * @type {string}
521
     * @memberof CreateTagRequest
522
     */
523
    'description'?: string | null;
524
    /**
525
     * 
526
     * @type {string}
527
     * @memberof CreateTagRequest
528
     */
529
    'color'?: string | null;
530
    /**
531
     * 
532
     * @type {boolean}
533
     * @memberof CreateTagRequest
534
     */
535
    'sentimentEnabled'?: boolean;
536
}
537 43d49a98 Jaroslav Hrubý
/**
538 19b68a2e Lukáš Vlček
 * 
539 43d49a98 Jaroslav Hrubý
 * @export
540
 * @interface CreateUserRequest
541
 */
542
export interface CreateUserRequest {
543
    /**
544 19b68a2e Lukáš Vlček
     * 
545 43d49a98 Jaroslav Hrubý
     * @type {string}
546
     * @memberof CreateUserRequest
547
     */
548 19b68a2e Lukáš Vlček
    'username'?: string | null;
549 43d49a98 Jaroslav Hrubý
    /**
550 19b68a2e Lukáš Vlček
     * 
551 43d49a98 Jaroslav Hrubý
     * @type {string}
552
     * @memberof CreateUserRequest
553
     */
554 19b68a2e Lukáš Vlček
    'password'?: string | null;
555 43d49a98 Jaroslav Hrubý
    /**
556 19b68a2e Lukáš Vlček
     * 
557 43d49a98 Jaroslav Hrubý
     * @type {string}
558
     * @memberof CreateUserRequest
559
     */
560 19b68a2e Lukáš Vlček
    'name'?: string | null;
561 43d49a98 Jaroslav Hrubý
    /**
562 19b68a2e Lukáš Vlček
     * 
563 43d49a98 Jaroslav Hrubý
     * @type {string}
564
     * @memberof CreateUserRequest
565
     */
566 19b68a2e Lukáš Vlček
    'surname'?: string | null;
567 43d49a98 Jaroslav Hrubý
    /**
568 19b68a2e Lukáš Vlček
     * 
569 43d49a98 Jaroslav Hrubý
     * @type {ERole}
570
     * @memberof CreateUserRequest
571
     */
572 19b68a2e Lukáš Vlček
    'role'?: ERole;
573 43d49a98 Jaroslav Hrubý
}
574 ef5792a8 Lukáš Vlček
/**
575
 * 
576
 * @export
577
 * @interface DeleteDocumentsRequest
578
 */
579
export interface DeleteDocumentsRequest {
580
    /**
581
     * 
582
     * @type {Array<string>}
583
     * @memberof DeleteDocumentsRequest
584
     */
585
    'documentIds'?: Array<string> | null;
586
}
587 b80a6919 Lukáš Vlček
/**
588
 * 
589
 * @export
590
 * @interface Document
591
 */
592
export interface Document {
593
    /**
594
     * 
595
     * @type {string}
596
     * @memberof Document
597
     */
598
    'id'?: string;
599
    /**
600
     * 
601
     * @type {string}
602
     * @memberof Document
603
     */
604
    'name'?: string | null;
605
    /**
606
     * 
607
     * @type {number}
608
     * @memberof Document
609
     */
610
    'length'?: number;
611
    /**
612
     * 
613
     * @type {DocumentContent}
614
     * @memberof Document
615
     */
616
    'content'?: DocumentContent;
617
    /**
618
     * 
619
     * @type {string}
620
     * @memberof Document
621
     */
622
    'dateAdded'?: string;
623
    /**
624
     * 
625
     * @type {User}
626
     * @memberof Document
627
     */
628
    'userAdded'?: User;
629
    /**
630
     * 
631
     * @type {number}
632
     * @memberof Document
633
     */
634
    'requiredAnnotations'?: number;
635
}
636 3e6b15a7 Lukáš Vlček
/**
637 19b68a2e Lukáš Vlček
 * 
638 3e6b15a7 Lukáš Vlček
 * @export
639
 * @interface DocumentAddInfo
640
 */
641
export interface DocumentAddInfo {
642
    /**
643 19b68a2e Lukáš Vlček
     * 
644 3e6b15a7 Lukáš Vlček
     * @type {string}
645
     * @memberof DocumentAddInfo
646
     */
647 19b68a2e Lukáš Vlček
    'name'?: string | null;
648 3e6b15a7 Lukáš Vlček
    /**
649 19b68a2e Lukáš Vlček
     * 
650 3e6b15a7 Lukáš Vlček
     * @type {EAddDocumentFormat}
651
     * @memberof DocumentAddInfo
652
     */
653 19b68a2e Lukáš Vlček
    'format'?: EAddDocumentFormat;
654 3e6b15a7 Lukáš Vlček
    /**
655 19b68a2e Lukáš Vlček
     * 
656 3e6b15a7 Lukáš Vlček
     * @type {string}
657
     * @memberof DocumentAddInfo
658
     */
659 19b68a2e Lukáš Vlček
    'content'?: string | null;
660 3e6b15a7 Lukáš Vlček
}
661
/**
662 19b68a2e Lukáš Vlček
 * 
663 3e6b15a7 Lukáš Vlček
 * @export
664
 * @interface DocumentAddRequest
665
 */
666
export interface DocumentAddRequest {
667
    /**
668 19b68a2e Lukáš Vlček
     * 
669 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentAddInfo>}
670
     * @memberof DocumentAddRequest
671
     */
672 19b68a2e Lukáš Vlček
    'documents'?: Array<DocumentAddInfo> | null;
673 3e6b15a7 Lukáš Vlček
}
674 f30a7b90 Lukáš Vlček
/**
675
 * 
676
 * @export
677
 * @interface DocumentAnnotationInfo
678
 */
679
export interface DocumentAnnotationInfo {
680
    /**
681
     * 
682
     * @type {string}
683
     * @memberof DocumentAnnotationInfo
684
     */
685
    'annotationId'?: string;
686
    /**
687
     * 
688
     * @type {string}
689
     * @memberof DocumentAnnotationInfo
690
     */
691
    'userId'?: string;
692
    /**
693
     * 
694
     * @type {string}
695
     * @memberof DocumentAnnotationInfo
696
     */
697
    'userFirstName'?: string | null;
698
    /**
699
     * 
700
     * @type {string}
701
     * @memberof DocumentAnnotationInfo
702
     */
703
    'userSurname'?: string | null;
704
    /**
705
     * 
706
     * @type {string}
707
     * @memberof DocumentAnnotationInfo
708
     */
709
    'username'?: string | null;
710
}
711 b80a6919 Lukáš Vlček
/**
712
 * 
713
 * @export
714
 * @interface DocumentContent
715
 */
716
export interface DocumentContent {
717
    /**
718
     * 
719
     * @type {string}
720
     * @memberof DocumentContent
721
     */
722
    'id'?: string;
723
    /**
724
     * 
725
     * @type {string}
726
     * @memberof DocumentContent
727
     */
728
    'content'?: string | null;
729
}
730 3e6b15a7 Lukáš Vlček
/**
731 19b68a2e Lukáš Vlček
 * 
732 3e6b15a7 Lukáš Vlček
 * @export
733
 * @interface DocumentListInfo
734
 */
735
export interface DocumentListInfo {
736
    /**
737 19b68a2e Lukáš Vlček
     * 
738 3e6b15a7 Lukáš Vlček
     * @type {string}
739
     * @memberof DocumentListInfo
740
     */
741 19b68a2e Lukáš Vlček
    'id'?: string;
742 3e6b15a7 Lukáš Vlček
    /**
743 19b68a2e Lukáš Vlček
     * 
744 3e6b15a7 Lukáš Vlček
     * @type {string}
745
     * @memberof DocumentListInfo
746
     */
747 19b68a2e Lukáš Vlček
    'name'?: string | null;
748 3e6b15a7 Lukáš Vlček
    /**
749 19b68a2e Lukáš Vlček
     * 
750 3e6b15a7 Lukáš Vlček
     * @type {number}
751
     * @memberof DocumentListInfo
752
     */
753 19b68a2e Lukáš Vlček
    'length'?: number;
754 3e6b15a7 Lukáš Vlček
    /**
755 19b68a2e Lukáš Vlček
     * 
756 3e6b15a7 Lukáš Vlček
     * @type {number}
757
     * @memberof DocumentListInfo
758
     */
759 19b68a2e Lukáš Vlček
    'requiredAnnotations'?: number;
760 3e6b15a7 Lukáš Vlček
    /**
761 19b68a2e Lukáš Vlček
     * 
762
     * @type {Array<DocumentUserInfo>}
763 3e6b15a7 Lukáš Vlček
     * @memberof DocumentListInfo
764
     */
765 19b68a2e Lukáš Vlček
    'annotatingUsers'?: Array<DocumentUserInfo> | null;
766 f30a7b90 Lukáš Vlček
    /**
767
     * 
768
     * @type {boolean}
769
     * @memberof DocumentListInfo
770
     */
771
    'finalizedExists'?: boolean;
772
    /**
773
     * 
774
     * @type {string}
775
     * @memberof DocumentListInfo
776
     */
777
    'finalizedAnnotationId'?: string | null;
778
    /**
779
     * 
780
     * @type {EState}
781
     * @memberof DocumentListInfo
782
     */
783
    'finalizedState'?: EState;
784
    /**
785
     * 
786
     * @type {Array<DocumentAnnotationInfo>}
787
     * @memberof DocumentListInfo
788
     */
789
    'finalAnnotations'?: Array<DocumentAnnotationInfo> | null;
790 3e6b15a7 Lukáš Vlček
}
791
/**
792 19b68a2e Lukáš Vlček
 * 
793 3e6b15a7 Lukáš Vlček
 * @export
794
 * @interface DocumentListResponse
795
 */
796
export interface DocumentListResponse {
797
    /**
798 19b68a2e Lukáš Vlček
     * 
799 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentListInfo>}
800
     * @memberof DocumentListResponse
801
     */
802 19b68a2e Lukáš Vlček
    'documents'?: Array<DocumentListInfo> | null;
803 3e6b15a7 Lukáš Vlček
}
804 cca0bfa0 Lukáš Vlček
/**
805
 * 
806
 * @export
807
 * @interface DocumentPreviewResponse
808
 */
809
export interface DocumentPreviewResponse {
810
    /**
811
     * 
812
     * @type {string}
813
     * @memberof DocumentPreviewResponse
814
     */
815
    'content'?: string | null;
816
}
817 3e6b15a7 Lukáš Vlček
/**
818 19b68a2e Lukáš Vlček
 * 
819
 * @export
820
 * @interface DocumentUserInfo
821
 */
822
export interface DocumentUserInfo {
823
    /**
824
     * 
825
     * @type {string}
826
     * @memberof DocumentUserInfo
827
     */
828
    'id'?: string;
829
    /**
830
     * 
831
     * @type {string}
832
     * @memberof DocumentUserInfo
833
     */
834
    'username'?: string | null;
835
    /**
836
     * 
837
     * @type {string}
838
     * @memberof DocumentUserInfo
839
     */
840
    'name'?: string | null;
841
    /**
842
     * 
843
     * @type {string}
844
     * @memberof DocumentUserInfo
845
     */
846
    'surname'?: string | null;
847
    /**
848
     * 
849
     * @type {EState}
850
     * @memberof DocumentUserInfo
851
     */
852
    'state'?: EState;
853 937bfbee Jaroslav Hrubý
    /**
854
     * 
855
     * @type {string}
856
     * @memberof DocumentUserInfo
857
     */
858
    'annotationId'?: string;
859 19b68a2e Lukáš Vlček
}
860
/**
861
 * 
862 3e6b15a7 Lukáš Vlček
 * @export
863
 * @enum {string}
864
 */
865
866
export const EAddDocumentFormat = {
867
    Zip: 'ZIP',
868 19b68a2e Lukáš Vlček
    Textfile: 'TEXTFILE'
869 3e6b15a7 Lukáš Vlček
} as const;
870
871 19b68a2e Lukáš Vlček
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
872
873 3e6b15a7 Lukáš Vlček
874
/**
875 19b68a2e Lukáš Vlček
 * 
876 3e6b15a7 Lukáš Vlček
 * @export
877
 * @enum {string}
878
 */
879
880
export const EDocumentType = {
881
    Html: 'HTML',
882 19b68a2e Lukáš Vlček
    Text: 'TEXT'
883 3e6b15a7 Lukáš Vlček
} as const;
884
885
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
886
887 19b68a2e Lukáš Vlček
888 b80a6919 Lukáš Vlček
/**
889
 * 
890
 * @export
891
 * @enum {string}
892
 */
893
894
export const EModified = {
895
    Added: 'ADDED',
896
    Removed: 'REMOVED',
897
    None: 'NONE'
898
} as const;
899
900
export type EModified = typeof EModified[keyof typeof EModified];
901
902
903 3e6b15a7 Lukáš Vlček
/**
904 19b68a2e Lukáš Vlček
 * 
905 3e6b15a7 Lukáš Vlček
 * @export
906
 * @enum {string}
907
 */
908
909
export const ERole = {
910
    Annotator: 'ANNOTATOR',
911 19b68a2e Lukáš Vlček
    Administrator: 'ADMINISTRATOR'
912 3e6b15a7 Lukáš Vlček
} as const;
913
914
export type ERole = typeof ERole[keyof typeof ERole];
915
916 19b68a2e Lukáš Vlček
917 3e6b15a7 Lukáš Vlček
/**
918 19b68a2e Lukáš Vlček
 * 
919 3e6b15a7 Lukáš Vlček
 * @export
920
 * @enum {string}
921
 */
922
923
export const EState = {
924
    Done: 'DONE',
925
    InProgress: 'IN_PROGRESS',
926 19b68a2e Lukáš Vlček
    New: 'NEW'
927 3e6b15a7 Lukáš Vlček
} as const;
928
929
export type EState = typeof EState[keyof typeof EState];
930
931 19b68a2e Lukáš Vlček
932 cca0bfa0 Lukáš Vlček
/**
933
 * 
934
 * @export
935
 * @enum {string}
936
 */
937
938
export const ETagSentiment = {
939
    Neutral: 'NEUTRAL',
940
    Positive: 'POSITIVE',
941
    Negative: 'NEGATIVE'
942
} as const;
943
944
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment];
945
946
947 4bc99591 Lukáš Vlček
/**
948 19b68a2e Lukáš Vlček
 * 
949 4bc99591 Lukáš Vlček
 * @export
950
 * @enum {string}
951
 */
952
953
export const ETagType = {
954
    Tag: 'TAG',
955 19b68a2e Lukáš Vlček
    Subtag: 'SUBTAG'
956 4bc99591 Lukáš Vlček
} as const;
957
958
export type ETagType = typeof ETagType[keyof typeof ETagType];
959
960 19b68a2e Lukáš Vlček
961 ef5792a8 Lukáš Vlček
/**
962
 * 
963
 * @export
964
 * @interface ExportRequest
965
 */
966
export interface ExportRequest {
967
    /**
968
     * 
969
     * @type {Array<string>}
970
     * @memberof ExportRequest
971
     */
972
    'documentIds'?: Array<string> | null;
973
}
974 b80a6919 Lukáš Vlček
/**
975
 * 
976
 * @export
977
 * @interface FinalAnnotation
978
 */
979
export interface FinalAnnotation {
980
    /**
981
     * 
982
     * @type {string}
983
     * @memberof FinalAnnotation
984
     */
985
    'id'?: string;
986
    /**
987
     * 
988
     * @type {Document}
989
     * @memberof FinalAnnotation
990
     */
991
    'document'?: Document;
992
    /**
993
     * 
994
     * @type {User}
995
     * @memberof FinalAnnotation
996
     */
997
    'user'?: User;
998
    /**
999
     * 
1000
     * @type {User}
1001
     * @memberof FinalAnnotation
1002
     */
1003
    'userAssigned'?: User;
1004
    /**
1005
     * 
1006
     * @type {string}
1007
     * @memberof FinalAnnotation
1008
     */
1009
    'dateAssigned'?: string;
1010
    /**
1011
     * 
1012
     * @type {EState}
1013
     * @memberof FinalAnnotation
1014
     */
1015
    'state'?: EState;
1016
    /**
1017
     * 
1018
     * @type {string}
1019
     * @memberof FinalAnnotation
1020
     */
1021
    'dateLastChanged'?: string;
1022
    /**
1023
     * 
1024
     * @type {string}
1025
     * @memberof FinalAnnotation
1026
     */
1027
    'note'?: string | null;
1028
    /**
1029
     * 
1030
     * @type {string}
1031
     * @memberof FinalAnnotation
1032
     */
1033
    'cachedDocumentHTML'?: string | null;
1034
    /**
1035
     * 
1036
     * @type {string}
1037
     * @memberof FinalAnnotation
1038
     */
1039
    'cachedStartPositions'?: string | null;
1040
    /**
1041
     * 
1042
     * @type {string}
1043
     * @memberof FinalAnnotation
1044
     */
1045
    'cachedLengths'?: string | null;
1046
    /**
1047
     * 
1048
     * @type {string}
1049
     * @memberof FinalAnnotation
1050
     */
1051
    'cachedClosingPositions'?: string | null;
1052
    /**
1053
     * 
1054
     * @type {string}
1055
     * @memberof FinalAnnotation
1056
     */
1057
    'cachedClosingLengths'?: string | null;
1058
    /**
1059
     * 
1060
     * @type {string}
1061
     * @memberof FinalAnnotation
1062
     */
1063
    'cachedCSS'?: string | null;
1064
    /**
1065
     * 
1066
     * @type {string}
1067
     * @memberof FinalAnnotation
1068
     */
1069
    'lastModifiedTagId'?: string | null;
1070
    /**
1071
     * 
1072
     * @type {EModified}
1073
     * @memberof FinalAnnotation
1074
     */
1075
    'modifiedType'?: EModified;
1076
    /**
1077
     * 
1078
     * @type {Array<Class>}
1079
     * @memberof FinalAnnotation
1080
     */
1081
    'classes'?: Array<Class> | null;
1082
    /**
1083
     * 
1084
     * @type {Array<FinalAnnotation>}
1085
     * @memberof FinalAnnotation
1086
     */
1087
    'finalAnnotations'?: Array<FinalAnnotation> | null;
1088
    /**
1089
     * 
1090
     * @type {Array<Annotation>}
1091
     * @memberof FinalAnnotation
1092
     */
1093
    'annotations'?: Array<Annotation> | null;
1094
}
1095
/**
1096
 * 
1097
 * @export
1098
 * @interface FinalAnnotationTag
1099
 */
1100
export interface FinalAnnotationTag {
1101
    /**
1102
     * 
1103
     * @type {string}
1104
     * @memberof FinalAnnotationTag
1105
     */
1106
    'id'?: string;
1107
    /**
1108
     * 
1109
     * @type {Tag}
1110
     * @memberof FinalAnnotationTag
1111
     */
1112
    'tag'?: Tag;
1113
    /**
1114
     * 
1115
     * @type {SubTag}
1116
     * @memberof FinalAnnotationTag
1117
     */
1118
    'subTag'?: SubTag;
1119
    /**
1120
     * 
1121
     * @type {string}
1122
     * @memberof FinalAnnotationTag
1123
     */
1124
    'instance'?: string;
1125
    /**
1126
     * 
1127
     * @type {string}
1128
     * @memberof FinalAnnotationTag
1129
     */
1130
    'note'?: string | null;
1131
    /**
1132
     * 
1133
     * @type {number}
1134
     * @memberof FinalAnnotationTag
1135
     */
1136
    'position'?: number;
1137
    /**
1138
     * 
1139
     * @type {number}
1140
     * @memberof FinalAnnotationTag
1141
     */
1142
    'length'?: number;
1143
    /**
1144
     * 
1145
     * @type {ETagSentiment}
1146
     * @memberof FinalAnnotationTag
1147
     */
1148
    'sentiment'?: ETagSentiment;
1149
    /**
1150
     * 
1151
     * @type {string}
1152
     * @memberof FinalAnnotationTag
1153
     */
1154
    'selectedText'?: string | null;
1155
    /**
1156
     * 
1157
     * @type {FinalAnnotation}
1158
     * @memberof FinalAnnotationTag
1159
     */
1160
    'annotation'?: FinalAnnotation;
1161
    /**
1162
     * 
1163
     * @type {boolean}
1164
     * @memberof FinalAnnotationTag
1165
     */
1166
    'isFinal'?: boolean;
1167
    /**
1168
     * 
1169
     * @type {Array<User>}
1170
     * @memberof FinalAnnotationTag
1171
     */
1172
    'users'?: Array<User> | null;
1173
}
1174 3e6b15a7 Lukáš Vlček
/**
1175 19b68a2e Lukáš Vlček
 * 
1176
 * @export
1177
 * @interface GetRequiredAnnotationsGlobalResponse
1178
 */
1179
export interface GetRequiredAnnotationsGlobalResponse {
1180
    /**
1181
     * 
1182
     * @type {number}
1183
     * @memberof GetRequiredAnnotationsGlobalResponse
1184
     */
1185
    'requiredAnnotationsGlobal'?: number;
1186
}
1187
/**
1188
 * 
1189 3e6b15a7 Lukáš Vlček
 * @export
1190
 * @interface LoginRequest
1191
 */
1192
export interface LoginRequest {
1193
    /**
1194 19b68a2e Lukáš Vlček
     * 
1195 3e6b15a7 Lukáš Vlček
     * @type {string}
1196
     * @memberof LoginRequest
1197
     */
1198 19b68a2e Lukáš Vlček
    'username'?: string | null;
1199 3e6b15a7 Lukáš Vlček
    /**
1200 19b68a2e Lukáš Vlček
     * 
1201 3e6b15a7 Lukáš Vlček
     * @type {string}
1202
     * @memberof LoginRequest
1203
     */
1204 19b68a2e Lukáš Vlček
    'password'?: string | null;
1205 3e6b15a7 Lukáš Vlček
}
1206
/**
1207 19b68a2e Lukáš Vlček
 * 
1208 3e6b15a7 Lukáš Vlček
 * @export
1209
 * @interface LoginResponse
1210
 */
1211
export interface LoginResponse {
1212
    /**
1213 19b68a2e Lukáš Vlček
     * 
1214 3e6b15a7 Lukáš Vlček
     * @type {boolean}
1215
     * @memberof LoginResponse
1216
     */
1217 19b68a2e Lukáš Vlček
    'ok'?: boolean;
1218 3e6b15a7 Lukáš Vlček
    /**
1219 19b68a2e Lukáš Vlček
     * 
1220 3e6b15a7 Lukáš Vlček
     * @type {string}
1221
     * @memberof LoginResponse
1222
     */
1223 19b68a2e Lukáš Vlček
    'token'?: string | null;
1224 3e6b15a7 Lukáš Vlček
    /**
1225 19b68a2e Lukáš Vlček
     * 
1226 3e6b15a7 Lukáš Vlček
     * @type {string}
1227
     * @memberof LoginResponse
1228
     */
1229 19b68a2e Lukáš Vlček
    'expiration'?: string;
1230 3e6b15a7 Lukáš Vlček
    /**
1231 19b68a2e Lukáš Vlček
     * 
1232 3e6b15a7 Lukáš Vlček
     * @type {ERole}
1233
     * @memberof LoginResponse
1234
     */
1235 19b68a2e Lukáš Vlček
    'role'?: ERole;
1236 3e6b15a7 Lukáš Vlček
}
1237 b51488cd Jaroslav Hrubý
/**
1238
 * 
1239
 * @export
1240
 * @interface MarkAnnotationDoneRequest
1241
 */
1242
export interface MarkAnnotationDoneRequest {
1243
    /**
1244
     * 
1245
     * @type {boolean}
1246
     * @memberof MarkAnnotationDoneRequest
1247
     */
1248
    'done'?: boolean;
1249
}
1250 cca0bfa0 Lukáš Vlček
/**
1251
 * 
1252
 * @export
1253
 * @interface ModifyCategoryRequest
1254
 */
1255
export interface ModifyCategoryRequest {
1256
    /**
1257
     * 
1258
     * @type {string}
1259
     * @memberof ModifyCategoryRequest
1260
     */
1261
    'name'?: string | null;
1262
    /**
1263
     * 
1264
     * @type {string}
1265
     * @memberof ModifyCategoryRequest
1266
     */
1267
    'description'?: string | null;
1268
    /**
1269
     * 
1270
     * @type {string}
1271
     * @memberof ModifyCategoryRequest
1272
     */
1273
    'color'?: string | null;
1274
    /**
1275
     * 
1276
     * @type {boolean}
1277
     * @memberof ModifyCategoryRequest
1278
     */
1279
    'disabledForAnnotators'?: boolean | null;
1280
}
1281
/**
1282
 * 
1283
 * @export
1284
 * @interface ModifySubTagRequest
1285
 */
1286
export interface ModifySubTagRequest {
1287
    /**
1288
     * 
1289
     * @type {string}
1290
     * @memberof ModifySubTagRequest
1291
     */
1292
    'name'?: string | null;
1293
    /**
1294
     * 
1295
     * @type {string}
1296
     * @memberof ModifySubTagRequest
1297
     */
1298
    'description'?: string | null;
1299
    /**
1300
     * 
1301
     * @type {boolean}
1302
     * @memberof ModifySubTagRequest
1303
     */
1304
    'sentimentEnabled'?: boolean | null;
1305
}
1306
/**
1307
 * 
1308
 * @export
1309
 * @interface ModifyTagRequest
1310
 */
1311
export interface ModifyTagRequest {
1312
    /**
1313
     * 
1314
     * @type {string}
1315
     * @memberof ModifyTagRequest
1316
     */
1317
    'name'?: string | null;
1318
    /**
1319
     * 
1320
     * @type {string}
1321
     * @memberof ModifyTagRequest
1322
     */
1323
    'description'?: string | null;
1324
    /**
1325
     * 
1326
     * @type {string}
1327
     * @memberof ModifyTagRequest
1328
     */
1329
    'color'?: string | null;
1330
    /**
1331
     * 
1332
     * @type {boolean}
1333
     * @memberof ModifyTagRequest
1334
     */
1335
    'sentimentEnabled'?: boolean | null;
1336
}
1337 3e6b15a7 Lukáš Vlček
/**
1338 19b68a2e Lukáš Vlček
 * 
1339 3e6b15a7 Lukáš Vlček
 * @export
1340
 * @interface ProblemDetails
1341
 */
1342
export interface ProblemDetails {
1343
    [key: string]: any | any;
1344
1345
    /**
1346 19b68a2e Lukáš Vlček
     * 
1347 3e6b15a7 Lukáš Vlček
     * @type {string}
1348
     * @memberof ProblemDetails
1349
     */
1350 19b68a2e Lukáš Vlček
    'type'?: string | null;
1351 3e6b15a7 Lukáš Vlček
    /**
1352 19b68a2e Lukáš Vlček
     * 
1353 3e6b15a7 Lukáš Vlček
     * @type {string}
1354
     * @memberof ProblemDetails
1355
     */
1356 19b68a2e Lukáš Vlček
    'title'?: string | null;
1357 3e6b15a7 Lukáš Vlček
    /**
1358 19b68a2e Lukáš Vlček
     * 
1359 3e6b15a7 Lukáš Vlček
     * @type {number}
1360
     * @memberof ProblemDetails
1361
     */
1362 19b68a2e Lukáš Vlček
    'status'?: number | null;
1363 3e6b15a7 Lukáš Vlček
    /**
1364 19b68a2e Lukáš Vlček
     * 
1365 3e6b15a7 Lukáš Vlček
     * @type {string}
1366
     * @memberof ProblemDetails
1367
     */
1368 19b68a2e Lukáš Vlček
    'detail'?: string | null;
1369 3e6b15a7 Lukáš Vlček
    /**
1370 19b68a2e Lukáš Vlček
     * 
1371 3e6b15a7 Lukáš Vlček
     * @type {string}
1372
     * @memberof ProblemDetails
1373
     */
1374 19b68a2e Lukáš Vlček
    'instance'?: string | null;
1375 3e6b15a7 Lukáš Vlček
}
1376 b80a6919 Lukáš Vlček
/**
1377
 * 
1378
 * @export
1379
 * @interface SetInstanceIsFinalRequest
1380
 */
1381
export interface SetInstanceIsFinalRequest {
1382
    /**
1383
     * 
1384
     * @type {boolean}
1385
     * @memberof SetInstanceIsFinalRequest
1386
     */
1387
    'isFinal'?: boolean;
1388
}
1389 cca0bfa0 Lukáš Vlček
/**
1390
 * 
1391
 * @export
1392
 * @interface SetInstanceSentimentRequest
1393
 */
1394
export interface SetInstanceSentimentRequest {
1395
    /**
1396
     * 
1397
     * @type {ETagSentiment}
1398
     * @memberof SetInstanceSentimentRequest
1399
     */
1400
    'sentiment'?: ETagSentiment;
1401
}
1402 3e6b15a7 Lukáš Vlček
/**
1403 19b68a2e Lukáš Vlček
 * 
1404
 * @export
1405
 * @interface SetRequiredAnnotationsGlobalRequest
1406
 */
1407
export interface SetRequiredAnnotationsGlobalRequest {
1408
    /**
1409
     * 
1410
     * @type {number}
1411
     * @memberof SetRequiredAnnotationsGlobalRequest
1412
     */
1413
    'requiredAnnotations'?: number;
1414
}
1415
/**
1416
 * 
1417
 * @export
1418
 * @interface SetRequiredAnnotationsRequest
1419
 */
1420
export interface SetRequiredAnnotationsRequest {
1421
    /**
1422
     * 
1423
     * @type {number}
1424
     * @memberof SetRequiredAnnotationsRequest
1425
     */
1426
    'requiredAnnotations'?: number;
1427
    /**
1428
     * 
1429
     * @type {Array<string>}
1430
     * @memberof SetRequiredAnnotationsRequest
1431
     */
1432
    'documentIds'?: Array<string> | null;
1433
}
1434 b80a6919 Lukáš Vlček
/**
1435
 * 
1436
 * @export
1437
 * @interface SubTag
1438
 */
1439
export interface SubTag {
1440
    /**
1441
     * 
1442
     * @type {string}
1443
     * @memberof SubTag
1444
     */
1445
    'id'?: string;
1446
    /**
1447
     * 
1448
     * @type {string}
1449
     * @memberof SubTag
1450
     */
1451
    'name'?: string | null;
1452
    /**
1453
     * 
1454
     * @type {string}
1455
     * @memberof SubTag
1456
     */
1457
    'description'?: string | null;
1458
    /**
1459
     * 
1460
     * @type {Tag}
1461
     * @memberof SubTag
1462
     */
1463
    'tag'?: Tag;
1464
    /**
1465
     * 
1466
     * @type {boolean}
1467
     * @memberof SubTag
1468
     */
1469
    'sentimentEnabled'?: boolean;
1470
}
1471 19b68a2e Lukáš Vlček
/**
1472
 * 
1473 3e6b15a7 Lukáš Vlček
 * @export
1474
 * @interface SubTagInfo
1475
 */
1476
export interface SubTagInfo {
1477
    /**
1478 19b68a2e Lukáš Vlček
     * 
1479 3e6b15a7 Lukáš Vlček
     * @type {string}
1480
     * @memberof SubTagInfo
1481
     */
1482 19b68a2e Lukáš Vlček
    'id'?: string;
1483 3e6b15a7 Lukáš Vlček
    /**
1484 19b68a2e Lukáš Vlček
     * 
1485 3e6b15a7 Lukáš Vlček
     * @type {string}
1486
     * @memberof SubTagInfo
1487
     */
1488 19b68a2e Lukáš Vlček
    'name'?: string | null;
1489 3e6b15a7 Lukáš Vlček
    /**
1490 19b68a2e Lukáš Vlček
     * 
1491 3e6b15a7 Lukáš Vlček
     * @type {string}
1492
     * @memberof SubTagInfo
1493
     */
1494 19b68a2e Lukáš Vlček
    'description'?: string | null;
1495 3e6b15a7 Lukáš Vlček
}
1496 b80a6919 Lukáš Vlček
/**
1497
 * 
1498
 * @export
1499
 * @interface Tag
1500
 */
1501
export interface Tag {
1502
    /**
1503
     * 
1504
     * @type {string}
1505
     * @memberof Tag
1506
     */
1507
    'id'?: string;
1508
    /**
1509
     * 
1510
     * @type {TagCategory}
1511
     * @memberof Tag
1512
     */
1513
    'category'?: TagCategory;
1514
    /**
1515
     * 
1516
     * @type {string}
1517
     * @memberof Tag
1518
     */
1519
    'name'?: string | null;
1520
    /**
1521
     * 
1522
     * @type {string}
1523
     * @memberof Tag
1524
     */
1525
    'description'?: string | null;
1526
    /**
1527
     * 
1528
     * @type {string}
1529
     * @memberof Tag
1530
     */
1531
    'color'?: string | null;
1532
    /**
1533
     * 
1534
     * @type {boolean}
1535
     * @memberof Tag
1536
     */
1537
    'sentimentEnabled'?: boolean;
1538
}
1539
/**
1540
 * 
1541
 * @export
1542
 * @interface TagCategory
1543
 */
1544
export interface TagCategory {
1545
    /**
1546
     * 
1547
     * @type {string}
1548
     * @memberof TagCategory
1549
     */
1550
    'id'?: string;
1551
    /**
1552
     * 
1553
     * @type {string}
1554
     * @memberof TagCategory
1555
     */
1556
    'name'?: string | null;
1557
    /**
1558
     * 
1559
     * @type {string}
1560
     * @memberof TagCategory
1561
     */
1562
    'color'?: string | null;
1563
    /**
1564
     * 
1565
     * @type {string}
1566
     * @memberof TagCategory
1567
     */
1568
    'description'?: string | null;
1569
    /**
1570
     * 
1571
     * @type {boolean}
1572
     * @memberof TagCategory
1573
     */
1574
    'disabledForAnnotators'?: boolean;
1575
}
1576 3e6b15a7 Lukáš Vlček
/**
1577 19b68a2e Lukáš Vlček
 * 
1578 3e6b15a7 Lukáš Vlček
 * @export
1579
 * @interface TagCategoryInfo
1580
 */
1581
export interface TagCategoryInfo {
1582
    /**
1583 19b68a2e Lukáš Vlček
     * 
1584 3e6b15a7 Lukáš Vlček
     * @type {string}
1585
     * @memberof TagCategoryInfo
1586
     */
1587 19b68a2e Lukáš Vlček
    'id'?: string;
1588 3e6b15a7 Lukáš Vlček
    /**
1589 19b68a2e Lukáš Vlček
     * 
1590 3e6b15a7 Lukáš Vlček
     * @type {string}
1591
     * @memberof TagCategoryInfo
1592
     */
1593 19b68a2e Lukáš Vlček
    'name'?: string | null;
1594 3e6b15a7 Lukáš Vlček
    /**
1595 19b68a2e Lukáš Vlček
     * 
1596 3e6b15a7 Lukáš Vlček
     * @type {string}
1597
     * @memberof TagCategoryInfo
1598
     */
1599 19b68a2e Lukáš Vlček
    'description'?: string | null;
1600 3e6b15a7 Lukáš Vlček
    /**
1601 19b68a2e Lukáš Vlček
     * 
1602 3e6b15a7 Lukáš Vlček
     * @type {string}
1603
     * @memberof TagCategoryInfo
1604
     */
1605 19b68a2e Lukáš Vlček
    'color'?: string | null;
1606 3e6b15a7 Lukáš Vlček
    /**
1607 19b68a2e Lukáš Vlček
     * 
1608 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInfo>}
1609
     * @memberof TagCategoryInfo
1610
     */
1611 19b68a2e Lukáš Vlček
    'tags'?: Array<TagInfo> | null;
1612 cca0bfa0 Lukáš Vlček
    /**
1613
     * 
1614
     * @type {boolean}
1615
     * @memberof TagCategoryInfo
1616
     */
1617
    'disabledForAnnotators'?: boolean;
1618 3e6b15a7 Lukáš Vlček
}
1619
/**
1620 19b68a2e Lukáš Vlček
 * 
1621 3e6b15a7 Lukáš Vlček
 * @export
1622
 * @interface TagInfo
1623
 */
1624
export interface TagInfo {
1625
    /**
1626 19b68a2e Lukáš Vlček
     * 
1627 3e6b15a7 Lukáš Vlček
     * @type {string}
1628
     * @memberof TagInfo
1629
     */
1630 19b68a2e Lukáš Vlček
    'id'?: string;
1631 3e6b15a7 Lukáš Vlček
    /**
1632 19b68a2e Lukáš Vlček
     * 
1633 3e6b15a7 Lukáš Vlček
     * @type {string}
1634
     * @memberof TagInfo
1635
     */
1636 19b68a2e Lukáš Vlček
    'name'?: string | null;
1637 3e6b15a7 Lukáš Vlček
    /**
1638 19b68a2e Lukáš Vlček
     * 
1639 3e6b15a7 Lukáš Vlček
     * @type {string}
1640
     * @memberof TagInfo
1641
     */
1642 19b68a2e Lukáš Vlček
    'description'?: string | null;
1643 3e6b15a7 Lukáš Vlček
    /**
1644 19b68a2e Lukáš Vlček
     * 
1645 3e6b15a7 Lukáš Vlček
     * @type {string}
1646
     * @memberof TagInfo
1647
     */
1648 19b68a2e Lukáš Vlček
    'color'?: string | null;
1649 3e6b15a7 Lukáš Vlček
    /**
1650 19b68a2e Lukáš Vlček
     * 
1651 3e6b15a7 Lukáš Vlček
     * @type {Array<SubTagInfo>}
1652
     * @memberof TagInfo
1653
     */
1654 19b68a2e Lukáš Vlček
    'subTags'?: Array<SubTagInfo> | null;
1655 0e4d7bd0 Dominik Poch
    /**
1656
     * 
1657
     * @type {boolean}
1658
     * @memberof TagInfo
1659
     */
1660
    'sentimentEnabled'?: boolean;
1661 3e6b15a7 Lukáš Vlček
}
1662 f30a7b90 Lukáš Vlček
/**
1663
 * 
1664
 * @export
1665
 * @interface TagInstanceCSSInfo
1666
 */
1667
export interface TagInstanceCSSInfo {
1668
    /**
1669
     * 
1670
     * @type {string}
1671
     * @memberof TagInstanceCSSInfo
1672
     */
1673
    'instanceId'?: string;
1674
    /**
1675
     * 
1676
     * @type {string}
1677
     * @memberof TagInstanceCSSInfo
1678
     */
1679
    'color'?: string | null;
1680
    /**
1681
     * 
1682
     * @type {number}
1683
     * @memberof TagInstanceCSSInfo
1684
     */
1685
    'padding'?: number;
1686
}
1687 3e6b15a7 Lukáš Vlček
/**
1688 19b68a2e Lukáš Vlček
 * 
1689 3e6b15a7 Lukáš Vlček
 * @export
1690
 * @interface TagInstanceInfo
1691
 */
1692
export interface TagInstanceInfo {
1693 9fdb7d55 Lukáš Vlček
    /**
1694 19b68a2e Lukáš Vlček
     * 
1695 9fdb7d55 Lukáš Vlček
     * @type {string}
1696
     * @memberof TagInstanceInfo
1697
     */
1698 19b68a2e Lukáš Vlček
    'occurenceId'?: string;
1699 3e6b15a7 Lukáš Vlček
    /**
1700 19b68a2e Lukáš Vlček
     * 
1701 3e6b15a7 Lukáš Vlček
     * @type {string}
1702
     * @memberof TagInstanceInfo
1703
     */
1704 19b68a2e Lukáš Vlček
    'tagName'?: string | null;
1705 3e6b15a7 Lukáš Vlček
    /**
1706 19b68a2e Lukáš Vlček
     * 
1707 3e6b15a7 Lukáš Vlček
     * @type {string}
1708
     * @memberof TagInstanceInfo
1709
     */
1710 19b68a2e Lukáš Vlček
    'tagId'?: string;
1711 3e6b15a7 Lukáš Vlček
    /**
1712 19b68a2e Lukáš Vlček
     * 
1713 3e6b15a7 Lukáš Vlček
     * @type {string}
1714
     * @memberof TagInstanceInfo
1715
     */
1716 19b68a2e Lukáš Vlček
    'tagCategoryName'?: string | null;
1717 3e6b15a7 Lukáš Vlček
    /**
1718 19b68a2e Lukáš Vlček
     * 
1719 3e6b15a7 Lukáš Vlček
     * @type {string}
1720
     * @memberof TagInstanceInfo
1721
     */
1722 19b68a2e Lukáš Vlček
    'tagCategoryId'?: string;
1723 3e6b15a7 Lukáš Vlček
    /**
1724 19b68a2e Lukáš Vlček
     * 
1725 3e6b15a7 Lukáš Vlček
     * @type {string}
1726
     * @memberof TagInstanceInfo
1727
     */
1728 19b68a2e Lukáš Vlček
    'subTagName'?: string | null;
1729 3e6b15a7 Lukáš Vlček
    /**
1730 19b68a2e Lukáš Vlček
     * 
1731 3e6b15a7 Lukáš Vlček
     * @type {string}
1732
     * @memberof TagInstanceInfo
1733
     */
1734 19b68a2e Lukáš Vlček
    'subTagId'?: string | null;
1735 3e6b15a7 Lukáš Vlček
    /**
1736 19b68a2e Lukáš Vlček
     * 
1737 4bc99591 Lukáš Vlček
     * @type {string}
1738 3e6b15a7 Lukáš Vlček
     * @memberof TagInstanceInfo
1739
     */
1740 19b68a2e Lukáš Vlček
    'instance'?: string;
1741 3e6b15a7 Lukáš Vlček
    /**
1742 19b68a2e Lukáš Vlček
     * 
1743 3e6b15a7 Lukáš Vlček
     * @type {number}
1744
     * @memberof TagInstanceInfo
1745
     */
1746 19b68a2e Lukáš Vlček
    'position'?: number;
1747 3e6b15a7 Lukáš Vlček
    /**
1748 19b68a2e Lukáš Vlček
     * 
1749 3e6b15a7 Lukáš Vlček
     * @type {number}
1750
     * @memberof TagInstanceInfo
1751
     */
1752 19b68a2e Lukáš Vlček
    'length'?: number;
1753 3e6b15a7 Lukáš Vlček
    /**
1754 19b68a2e Lukáš Vlček
     * 
1755 3e6b15a7 Lukáš Vlček
     * @type {string}
1756
     * @memberof TagInstanceInfo
1757
     */
1758 19b68a2e Lukáš Vlček
    'note'?: string | null;
1759 cca0bfa0 Lukáš Vlček
    /**
1760
     * 
1761
     * @type {ETagSentiment}
1762
     * @memberof TagInstanceInfo
1763
     */
1764
    'sentiment'?: ETagSentiment;
1765 f30a7b90 Lukáš Vlček
    /**
1766
     * 
1767
     * @type {string}
1768
     * @memberof TagInstanceInfo
1769
     */
1770
    'selectedText'?: string | null;
1771 b80a6919 Lukáš Vlček
    /**
1772
     * 
1773
     * @type {Array<UserInfo>}
1774
     * @memberof TagInstanceInfo
1775
     */
1776
    'users'?: Array<UserInfo> | null;
1777
    /**
1778
     * 
1779
     * @type {boolean}
1780
     * @memberof TagInstanceInfo
1781
     */
1782
    'isFinal'?: boolean | null;
1783 3e6b15a7 Lukáš Vlček
}
1784
/**
1785 19b68a2e Lukáš Vlček
 * 
1786 3e6b15a7 Lukáš Vlček
 * @export
1787
 * @interface TagTreeResponse
1788
 */
1789
export interface TagTreeResponse {
1790
    /**
1791 19b68a2e Lukáš Vlček
     * 
1792 3e6b15a7 Lukáš Vlček
     * @type {Array<TagCategoryInfo>}
1793
     * @memberof TagTreeResponse
1794
     */
1795 19b68a2e Lukáš Vlček
    'tagCategories'?: Array<TagCategoryInfo> | null;
1796 3e6b15a7 Lukáš Vlček
}
1797
/**
1798 19b68a2e Lukáš Vlček
 * 
1799 3e6b15a7 Lukáš Vlček
 * @export
1800
 * @interface User
1801
 */
1802
export interface User {
1803
    /**
1804 19b68a2e Lukáš Vlček
     * 
1805 3e6b15a7 Lukáš Vlček
     * @type {string}
1806
     * @memberof User
1807
     */
1808 19b68a2e Lukáš Vlček
    'id'?: string;
1809 3e6b15a7 Lukáš Vlček
    /**
1810 19b68a2e Lukáš Vlček
     * 
1811 3e6b15a7 Lukáš Vlček
     * @type {string}
1812
     * @memberof User
1813
     */
1814 19b68a2e Lukáš Vlček
    'username'?: string | null;
1815 3e6b15a7 Lukáš Vlček
    /**
1816 19b68a2e Lukáš Vlček
     * 
1817 3e6b15a7 Lukáš Vlček
     * @type {string}
1818
     * @memberof User
1819
     */
1820 19b68a2e Lukáš Vlček
    'name'?: string | null;
1821 3e6b15a7 Lukáš Vlček
    /**
1822 19b68a2e Lukáš Vlček
     * 
1823 3e6b15a7 Lukáš Vlček
     * @type {string}
1824
     * @memberof User
1825
     */
1826 19b68a2e Lukáš Vlček
    'surname'?: string | null;
1827 3e6b15a7 Lukáš Vlček
    /**
1828 19b68a2e Lukáš Vlček
     * 
1829 3e6b15a7 Lukáš Vlček
     * @type {ERole}
1830
     * @memberof User
1831
     */
1832 19b68a2e Lukáš Vlček
    'role'?: ERole;
1833 b80a6919 Lukáš Vlček
    /**
1834
     * 
1835
     * @type {Array<FinalAnnotationTag>}
1836
     * @memberof User
1837
     */
1838
    'finalAnnotationTags'?: Array<FinalAnnotationTag> | null;
1839 3e6b15a7 Lukáš Vlček
}
1840
/**
1841 19b68a2e Lukáš Vlček
 * 
1842 3e6b15a7 Lukáš Vlček
 * @export
1843
 * @interface UserInfo
1844
 */
1845
export interface UserInfo {
1846
    /**
1847 19b68a2e Lukáš Vlček
     * 
1848 3e6b15a7 Lukáš Vlček
     * @type {string}
1849
     * @memberof UserInfo
1850
     */
1851 19b68a2e Lukáš Vlček
    'id'?: string;
1852 3e6b15a7 Lukáš Vlček
    /**
1853 19b68a2e Lukáš Vlček
     * 
1854 3e6b15a7 Lukáš Vlček
     * @type {string}
1855
     * @memberof UserInfo
1856
     */
1857 19b68a2e Lukáš Vlček
    'username'?: string | null;
1858 3e6b15a7 Lukáš Vlček
    /**
1859 19b68a2e Lukáš Vlček
     * 
1860 3e6b15a7 Lukáš Vlček
     * @type {string}
1861
     * @memberof UserInfo
1862
     */
1863 19b68a2e Lukáš Vlček
    'name'?: string | null;
1864 3e6b15a7 Lukáš Vlček
    /**
1865 19b68a2e Lukáš Vlček
     * 
1866 3e6b15a7 Lukáš Vlček
     * @type {string}
1867
     * @memberof UserInfo
1868
     */
1869 19b68a2e Lukáš Vlček
    'surname'?: string | null;
1870 cca0bfa0 Lukáš Vlček
    /**
1871
     * 
1872
     * @type {number}
1873
     * @memberof UserInfo
1874
     */
1875
    'assignedDocumentsCount'?: number;
1876
    /**
1877
     * 
1878
     * @type {ERole}
1879
     * @memberof UserInfo
1880
     */
1881
    'role'?: ERole;
1882 3e6b15a7 Lukáš Vlček
}
1883
/**
1884 19b68a2e Lukáš Vlček
 * 
1885 3e6b15a7 Lukáš Vlček
 * @export
1886
 * @interface UserList
1887
 */
1888
export interface UserList {
1889
    /**
1890 19b68a2e Lukáš Vlček
     * 
1891 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
1892
     * @memberof UserList
1893
     */
1894 19b68a2e Lukáš Vlček
    'users'?: Array<UserInfo> | null;
1895 3e6b15a7 Lukáš Vlček
}
1896 db0f300f Jaroslav Hrubý
/**
1897
 * 
1898
 * @export
1899
 * @interface UserMeResponse
1900
 */
1901
export interface UserMeResponse {
1902
    /**
1903
     * 
1904
     * @type {string}
1905
     * @memberof UserMeResponse
1906
     */
1907
    'name'?: string | null;
1908
    /**
1909
     * 
1910
     * @type {ERole}
1911
     * @memberof UserMeResponse
1912
     */
1913
    'role'?: ERole;
1914
}
1915 3e6b15a7 Lukáš Vlček
1916
/**
1917
 * AnnotationApi - axios parameter creator
1918
 * @export
1919
 */
1920
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
1921
    return {
1922 b51488cd Jaroslav Hrubý
        /**
1923
         * 
1924
         * @param {string} annotationId 
1925 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1926 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
1927
         * @param {*} [options] Override http request option.
1928
         * @throws {RequiredError}
1929
         */
1930 048b4bc0 Lukáš Vlček
        annotationAnnotationIdDonePut: async (annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1931 b51488cd Jaroslav Hrubý
            // verify required parameter 'annotationId' is not null or undefined
1932
            assertParamExists('annotationAnnotationIdDonePut', 'annotationId', annotationId)
1933
            const localVarPath = `/annotation/{annotationId}/done`
1934
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1935
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1936
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1937
            let baseOptions;
1938
            if (configuration) {
1939
                baseOptions = configuration.baseOptions;
1940
            }
1941
1942
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1943
            const localVarHeaderParameter = {} as any;
1944
            const localVarQueryParameter = {} as any;
1945
1946 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1947
                localVarQueryParameter['isFinal'] = isFinal;
1948
            }
1949
1950 b51488cd Jaroslav Hrubý
1951
    
1952
            localVarHeaderParameter['Content-Type'] = 'application/json';
1953
1954
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1955
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1956
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1957
            localVarRequestOptions.data = serializeDataIfNeeded(markAnnotationDoneRequest, localVarRequestOptions, configuration)
1958
1959
            return {
1960
                url: toPathString(localVarUrlObj),
1961
                options: localVarRequestOptions,
1962
            };
1963
        },
1964 3e6b15a7 Lukáš Vlček
        /**
1965 19b68a2e Lukáš Vlček
         * 
1966
         * @param {string} annotationId 
1967 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1968 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1969
         * @throws {RequiredError}
1970
         */
1971 048b4bc0 Lukáš Vlček
        annotationAnnotationIdGet: async (annotationId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1972 dd747fc5 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1973 19b68a2e Lukáš Vlček
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
1974
            const localVarPath = `/annotation/{annotationId}`
1975
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1976 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1977
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1978
            let baseOptions;
1979
            if (configuration) {
1980
                baseOptions = configuration.baseOptions;
1981
            }
1982
1983 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1984 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1985
            const localVarQueryParameter = {} as any;
1986
1987 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1988
                localVarQueryParameter['isFinal'] = isFinal;
1989
            }
1990
1991 19b68a2e Lukáš Vlček
1992
    
1993 9fdb7d55 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1994 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1995
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1996 9fdb7d55 Lukáš Vlček
1997
            return {
1998
                url: toPathString(localVarUrlObj),
1999
                options: localVarRequestOptions,
2000
            };
2001
        },
2002
        /**
2003 19b68a2e Lukáš Vlček
         * 
2004
         * @param {string} annotationId 
2005 cca0bfa0 Lukáš Vlček
         * @param {string} instanceId 
2006 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2007 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2008 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
2009
         * @throws {RequiredError}
2010
         */
2011 048b4bc0 Lukáš Vlček
        annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2012 9fdb7d55 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2013 cca0bfa0 Lukáš Vlček
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
2014
            // verify required parameter 'instanceId' is not null or undefined
2015
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
2016
            const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
2017 19b68a2e Lukáš Vlček
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2018 cca0bfa0 Lukáš Vlček
                .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
2019 9fdb7d55 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2020
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2021
            let baseOptions;
2022
            if (configuration) {
2023
                baseOptions = configuration.baseOptions;
2024
            }
2025
2026 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2027 9fdb7d55 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2028
            const localVarQueryParameter = {} as any;
2029
2030 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2031
                localVarQueryParameter['isFinal'] = isFinal;
2032
            }
2033
2034 19b68a2e Lukáš Vlček
2035
    
2036 cca0bfa0 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2037
2038 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2039 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2040
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2041 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
2042 3e6b15a7 Lukáš Vlček
2043
            return {
2044
                url: toPathString(localVarUrlObj),
2045
                options: localVarRequestOptions,
2046
            };
2047
        },
2048 4bc99591 Lukáš Vlček
        /**
2049 19b68a2e Lukáš Vlček
         * 
2050
         * @param {string} annotationId 
2051 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2052 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2053 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
2054
         * @throws {RequiredError}
2055
         */
2056 048b4bc0 Lukáš Vlček
        annotationAnnotationIdNotePost: async (annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2057 4bc99591 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2058 cca0bfa0 Lukáš Vlček
            assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
2059
            const localVarPath = `/annotation/{annotationId}/note`
2060 19b68a2e Lukáš Vlček
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
2061 4bc99591 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2062
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2063
            let baseOptions;
2064
            if (configuration) {
2065
                baseOptions = configuration.baseOptions;
2066
            }
2067
2068 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2069 4bc99591 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2070
            const localVarQueryParameter = {} as any;
2071
2072 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2073
                localVarQueryParameter['isFinal'] = isFinal;
2074
            }
2075
2076 19b68a2e Lukáš Vlček
2077
    
2078 4bc99591 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2079
2080
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2081 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2082
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2083 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
2084 4bc99591 Lukáš Vlček
2085
            return {
2086
                url: toPathString(localVarUrlObj),
2087
                options: localVarRequestOptions,
2088
            };
2089
        },
2090 3e6b15a7 Lukáš Vlček
        /**
2091 19b68a2e Lukáš Vlček
         * 
2092 cca0bfa0 Lukáš Vlček
         * @param {string} annotationId 
2093
         * @param {string} occurenceId 
2094 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2095 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2096
         * @throws {RequiredError}
2097
         */
2098 048b4bc0 Lukáš Vlček
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2099 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2100
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
2101
            // verify required parameter 'occurenceId' is not null or undefined
2102
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
2103
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
2104
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2105
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2106 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2107
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2108
            let baseOptions;
2109
            if (configuration) {
2110
                baseOptions = configuration.baseOptions;
2111
            }
2112
2113 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2114 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2115
            const localVarQueryParameter = {} as any;
2116
2117 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2118
                localVarQueryParameter['isFinal'] = isFinal;
2119
            }
2120
2121 19b68a2e Lukáš Vlček
2122
    
2123 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2124 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2125
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2126 3e6b15a7 Lukáš Vlček
2127
            return {
2128
                url: toPathString(localVarUrlObj),
2129
                options: localVarRequestOptions,
2130
            };
2131
        },
2132 b80a6919 Lukáš Vlček
        /**
2133
         * 
2134
         * @param {string} annotationId 
2135
         * @param {string} occurenceId 
2136
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2137
         * @param {*} [options] Override http request option.
2138
         * @throws {RequiredError}
2139
         */
2140
        annotationAnnotationIdOccurenceIdFinalPut: async (annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2141
            // verify required parameter 'annotationId' is not null or undefined
2142
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'annotationId', annotationId)
2143
            // verify required parameter 'occurenceId' is not null or undefined
2144
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'occurenceId', occurenceId)
2145
            const localVarPath = `/annotation/{annotationId}/{occurenceId}/final`
2146
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2147
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2148
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2149
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2150
            let baseOptions;
2151
            if (configuration) {
2152
                baseOptions = configuration.baseOptions;
2153
            }
2154
2155
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2156
            const localVarHeaderParameter = {} as any;
2157
            const localVarQueryParameter = {} as any;
2158
2159
2160
    
2161
            localVarHeaderParameter['Content-Type'] = 'application/json';
2162
2163
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2164
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2165
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2166
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceIsFinalRequest, localVarRequestOptions, configuration)
2167
2168
            return {
2169
                url: toPathString(localVarUrlObj),
2170
                options: localVarRequestOptions,
2171
            };
2172
        },
2173 3e6b15a7 Lukáš Vlček
        /**
2174 19b68a2e Lukáš Vlček
         * 
2175
         * @param {string} annotationId 
2176 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2177 cca0bfa0 Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2178 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2179
         * @throws {RequiredError}
2180
         */
2181 048b4bc0 Lukáš Vlček
        annotationAnnotationIdPost: async (annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2182 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2183
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
2184
            const localVarPath = `/annotation/{annotationId}`
2185
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
2186
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2187
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2188
            let baseOptions;
2189
            if (configuration) {
2190
                baseOptions = configuration.baseOptions;
2191
            }
2192
2193
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2194
            const localVarHeaderParameter = {} as any;
2195
            const localVarQueryParameter = {} as any;
2196
2197 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2198
                localVarQueryParameter['isFinal'] = isFinal;
2199
            }
2200
2201 cca0bfa0 Lukáš Vlček
2202
    
2203
            localVarHeaderParameter['Content-Type'] = 'application/json';
2204
2205
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2206
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2207
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2208
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
2209
2210
            return {
2211
                url: toPathString(localVarUrlObj),
2212
                options: localVarRequestOptions,
2213
            };
2214
        },
2215
        /**
2216
         * 
2217
         * @param {string} annotationId 
2218
         * @param {string} occurenceId 
2219 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2220 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2221
         * @param {*} [options] Override http request option.
2222
         * @throws {RequiredError}
2223
         */
2224 048b4bc0 Lukáš Vlček
        annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2225 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2226
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
2227
            // verify required parameter 'occurenceId' is not null or undefined
2228
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
2229
            const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
2230
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2231
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2232
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2233
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2234
            let baseOptions;
2235
            if (configuration) {
2236
                baseOptions = configuration.baseOptions;
2237
            }
2238
2239
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2240
            const localVarHeaderParameter = {} as any;
2241
            const localVarQueryParameter = {} as any;
2242
2243 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2244
                localVarQueryParameter['isFinal'] = isFinal;
2245
            }
2246
2247 cca0bfa0 Lukáš Vlček
2248
    
2249
            localVarHeaderParameter['Content-Type'] = 'application/json';
2250
2251
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2252
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2253
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2254
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
2255
2256
            return {
2257
                url: toPathString(localVarUrlObj),
2258
                options: localVarRequestOptions,
2259
            };
2260
        },
2261
        /**
2262
         * 
2263
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2264
         * @param {*} [options] Override http request option.
2265
         * @throws {RequiredError}
2266
         */
2267
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2268
            const localVarPath = `/annotations`;
2269
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2270
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2271
            let baseOptions;
2272
            if (configuration) {
2273
                baseOptions = configuration.baseOptions;
2274
            }
2275
2276
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2277
            const localVarHeaderParameter = {} as any;
2278
            const localVarQueryParameter = {} as any;
2279
2280
2281
    
2282
            localVarHeaderParameter['Content-Type'] = 'application/json';
2283
2284
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2285
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2286
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2287
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
2288
2289
            return {
2290
                url: toPathString(localVarUrlObj),
2291
                options: localVarRequestOptions,
2292
            };
2293
        },
2294
    }
2295
};
2296
2297
/**
2298
 * AnnotationApi - functional programming interface
2299
 * @export
2300
 */
2301
export const AnnotationApiFp = function(configuration?: Configuration) {
2302
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
2303
    return {
2304 b51488cd Jaroslav Hrubý
        /**
2305
         * 
2306
         * @param {string} annotationId 
2307 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2308 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2309
         * @param {*} [options] Override http request option.
2310
         * @throws {RequiredError}
2311
         */
2312 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2313
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options);
2314 b51488cd Jaroslav Hrubý
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2315
        },
2316 cca0bfa0 Lukáš Vlček
        /**
2317
         * 
2318
         * @param {string} annotationId 
2319 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2320 cca0bfa0 Lukáš Vlček
         * @param {*} [options] Override http request option.
2321
         * @throws {RequiredError}
2322
         */
2323 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
2324
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, isFinal, options);
2325 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2326 3e6b15a7 Lukáš Vlček
        },
2327 cca0bfa0 Lukáš Vlček
        /**
2328
         * 
2329
         * @param {string} annotationId 
2330
         * @param {string} instanceId 
2331 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2332 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2333
         * @param {*} [options] Override http request option.
2334
         * @throws {RequiredError}
2335
         */
2336 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2337
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options);
2338 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2339
        },
2340
        /**
2341
         * 
2342
         * @param {string} annotationId 
2343 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2344 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2345
         * @param {*} [options] Override http request option.
2346
         * @throws {RequiredError}
2347
         */
2348 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2349
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options);
2350 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2351
        },
2352 9fdb7d55 Lukáš Vlček
        /**
2353 19b68a2e Lukáš Vlček
         * 
2354
         * @param {string} annotationId 
2355
         * @param {string} occurenceId 
2356 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2357 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
2358
         * @throws {RequiredError}
2359
         */
2360 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2361
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options);
2362 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2363 9fdb7d55 Lukáš Vlček
        },
2364 b80a6919 Lukáš Vlček
        /**
2365
         * 
2366
         * @param {string} annotationId 
2367
         * @param {string} occurenceId 
2368
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2369
         * @param {*} [options] Override http request option.
2370
         * @throws {RequiredError}
2371
         */
2372
        async annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2373
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options);
2374
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2375
        },
2376 4bc99591 Lukáš Vlček
        /**
2377 19b68a2e Lukáš Vlček
         * 
2378
         * @param {string} annotationId 
2379 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2380 19b68a2e Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2381 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
2382
         * @throws {RequiredError}
2383
         */
2384 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2385
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options);
2386 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2387 4bc99591 Lukáš Vlček
        },
2388 cca0bfa0 Lukáš Vlček
        /**
2389
         * 
2390
         * @param {string} annotationId 
2391
         * @param {string} occurenceId 
2392 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2393 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2394
         * @param {*} [options] Override http request option.
2395
         * @throws {RequiredError}
2396
         */
2397 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2398
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options);
2399 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2400
        },
2401 3e6b15a7 Lukáš Vlček
        /**
2402 19b68a2e Lukáš Vlček
         * 
2403
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2404 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2405
         * @throws {RequiredError}
2406
         */
2407 19b68a2e Lukáš Vlček
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2408
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
2409
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2410 3e6b15a7 Lukáš Vlček
        },
2411 19b68a2e Lukáš Vlček
    }
2412 3e6b15a7 Lukáš Vlček
};
2413
2414
/**
2415
 * AnnotationApi - factory interface
2416
 * @export
2417
 */
2418 19b68a2e Lukáš Vlček
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2419
    const localVarFp = AnnotationApiFp(configuration)
2420 3e6b15a7 Lukáš Vlček
    return {
2421 b51488cd Jaroslav Hrubý
        /**
2422
         * 
2423
         * @param {string} annotationId 
2424 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2425 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2426
         * @param {*} [options] Override http request option.
2427
         * @throws {RequiredError}
2428
         */
2429 048b4bc0 Lukáš Vlček
        annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: any): AxiosPromise<void> {
2430
            return localVarFp.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(axios, basePath));
2431 b51488cd Jaroslav Hrubý
        },
2432 3e6b15a7 Lukáš Vlček
        /**
2433 19b68a2e Lukáš Vlček
         * 
2434
         * @param {string} annotationId 
2435 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2436 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2437
         * @throws {RequiredError}
2438
         */
2439 048b4bc0 Lukáš Vlček
        annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: any): AxiosPromise<AnnotationInfo> {
2440
            return localVarFp.annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(axios, basePath));
2441 3e6b15a7 Lukáš Vlček
        },
2442 cca0bfa0 Lukáš Vlček
        /**
2443
         * 
2444
         * @param {string} annotationId 
2445
         * @param {string} instanceId 
2446 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2447 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2448
         * @param {*} [options] Override http request option.
2449
         * @throws {RequiredError}
2450
         */
2451 048b4bc0 Lukáš Vlček
        annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
2452
            return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
2453 cca0bfa0 Lukáš Vlček
        },
2454
        /**
2455
         * 
2456
         * @param {string} annotationId 
2457 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2458 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2459
         * @param {*} [options] Override http request option.
2460
         * @throws {RequiredError}
2461
         */
2462 048b4bc0 Lukáš Vlček
        annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
2463
            return localVarFp.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
2464 cca0bfa0 Lukáš Vlček
        },
2465 9fdb7d55 Lukáš Vlček
        /**
2466 19b68a2e Lukáš Vlček
         * 
2467
         * @param {string} annotationId 
2468
         * @param {string} occurenceId 
2469 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2470 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
2471
         * @throws {RequiredError}
2472
         */
2473 048b4bc0 Lukáš Vlček
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: any): AxiosPromise<void> {
2474
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(axios, basePath));
2475 9fdb7d55 Lukáš Vlček
        },
2476 b80a6919 Lukáš Vlček
        /**
2477
         * 
2478
         * @param {string} annotationId 
2479
         * @param {string} occurenceId 
2480
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2481
         * @param {*} [options] Override http request option.
2482
         * @throws {RequiredError}
2483
         */
2484
        annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: any): AxiosPromise<void> {
2485
            return localVarFp.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(axios, basePath));
2486
        },
2487 4bc99591 Lukáš Vlček
        /**
2488 19b68a2e Lukáš Vlček
         * 
2489
         * @param {string} annotationId 
2490 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2491 19b68a2e Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2492 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
2493
         * @throws {RequiredError}
2494
         */
2495 048b4bc0 Lukáš Vlček
        annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
2496
            return localVarFp.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
2497 4bc99591 Lukáš Vlček
        },
2498 cca0bfa0 Lukáš Vlček
        /**
2499
         * 
2500
         * @param {string} annotationId 
2501
         * @param {string} occurenceId 
2502 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2503 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2504
         * @param {*} [options] Override http request option.
2505
         * @throws {RequiredError}
2506
         */
2507 048b4bc0 Lukáš Vlček
        annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
2508
            return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
2509 cca0bfa0 Lukáš Vlček
        },
2510 3e6b15a7 Lukáš Vlček
        /**
2511 19b68a2e Lukáš Vlček
         * 
2512
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2513 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2514
         * @throws {RequiredError}
2515
         */
2516 19b68a2e Lukáš Vlček
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
2517
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
2518 3e6b15a7 Lukáš Vlček
        },
2519
    };
2520
};
2521
2522
/**
2523
 * AnnotationApi - object-oriented interface
2524
 * @export
2525
 * @class AnnotationApi
2526
 * @extends {BaseAPI}
2527
 */
2528
export class AnnotationApi extends BaseAPI {
2529 b51488cd Jaroslav Hrubý
    /**
2530
     * 
2531
     * @param {string} annotationId 
2532 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2533 b51488cd Jaroslav Hrubý
     * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2534
     * @param {*} [options] Override http request option.
2535
     * @throws {RequiredError}
2536
     * @memberof AnnotationApi
2537
     */
2538 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig) {
2539
        return AnnotationApiFp(this.configuration).annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(this.axios, this.basePath));
2540 b51488cd Jaroslav Hrubý
    }
2541
2542 3e6b15a7 Lukáš Vlček
    /**
2543 19b68a2e Lukáš Vlček
     * 
2544
     * @param {string} annotationId 
2545 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2546 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2547
     * @throws {RequiredError}
2548
     * @memberof AnnotationApi
2549
     */
2550 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
2551
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(this.axios, this.basePath));
2552 3e6b15a7 Lukáš Vlček
    }
2553
2554 cca0bfa0 Lukáš Vlček
    /**
2555
     * 
2556
     * @param {string} annotationId 
2557
     * @param {string} instanceId 
2558 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2559 cca0bfa0 Lukáš Vlček
     * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2560
     * @param {*} [options] Override http request option.
2561
     * @throws {RequiredError}
2562
     * @memberof AnnotationApi
2563
     */
2564 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
2565
        return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
2566 cca0bfa0 Lukáš Vlček
    }
2567
2568
    /**
2569
     * 
2570
     * @param {string} annotationId 
2571 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2572 cca0bfa0 Lukáš Vlček
     * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2573
     * @param {*} [options] Override http request option.
2574
     * @throws {RequiredError}
2575
     * @memberof AnnotationApi
2576
     */
2577 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
2578
        return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
2579 cca0bfa0 Lukáš Vlček
    }
2580
2581 9fdb7d55 Lukáš Vlček
    /**
2582 19b68a2e Lukáš Vlček
     * 
2583
     * @param {string} annotationId 
2584
     * @param {string} occurenceId 
2585 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2586 9fdb7d55 Lukáš Vlček
     * @param {*} [options] Override http request option.
2587
     * @throws {RequiredError}
2588
     * @memberof AnnotationApi
2589
     */
2590 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
2591
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(this.axios, this.basePath));
2592 9fdb7d55 Lukáš Vlček
    }
2593
2594 b80a6919 Lukáš Vlček
    /**
2595
     * 
2596
     * @param {string} annotationId 
2597
     * @param {string} occurenceId 
2598
     * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2599
     * @param {*} [options] Override http request option.
2600
     * @throws {RequiredError}
2601
     * @memberof AnnotationApi
2602
     */
2603
    public annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig) {
2604
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(this.axios, this.basePath));
2605
    }
2606
2607 4bc99591 Lukáš Vlček
    /**
2608 19b68a2e Lukáš Vlček
     * 
2609
     * @param {string} annotationId 
2610 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2611 19b68a2e Lukáš Vlček
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2612 4bc99591 Lukáš Vlček
     * @param {*} [options] Override http request option.
2613
     * @throws {RequiredError}
2614
     * @memberof AnnotationApi
2615
     */
2616 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
2617
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
2618 4bc99591 Lukáš Vlček
    }
2619
2620 cca0bfa0 Lukáš Vlček
    /**
2621
     * 
2622
     * @param {string} annotationId 
2623
     * @param {string} occurenceId 
2624 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2625 cca0bfa0 Lukáš Vlček
     * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2626
     * @param {*} [options] Override http request option.
2627
     * @throws {RequiredError}
2628
     * @memberof AnnotationApi
2629
     */
2630 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
2631
        return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
2632 cca0bfa0 Lukáš Vlček
    }
2633
2634 3e6b15a7 Lukáš Vlček
    /**
2635 19b68a2e Lukáš Vlček
     * 
2636
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2637 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2638
     * @throws {RequiredError}
2639
     * @memberof AnnotationApi
2640
     */
2641 19b68a2e Lukáš Vlček
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
2642
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
2643 3e6b15a7 Lukáš Vlček
    }
2644
}
2645
2646 19b68a2e Lukáš Vlček
2647 3e6b15a7 Lukáš Vlček
/**
2648
 * AuthApi - axios parameter creator
2649
 * @export
2650
 */
2651
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
2652
    return {
2653
        /**
2654 19b68a2e Lukáš Vlček
         * 
2655
         * @param {LoginRequest} [loginRequest] 
2656 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2657
         * @throws {RequiredError}
2658
         */
2659 19b68a2e Lukáš Vlček
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2660 3e6b15a7 Lukáš Vlček
            const localVarPath = `/auth/login`;
2661
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2662
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2663
            let baseOptions;
2664
            if (configuration) {
2665
                baseOptions = configuration.baseOptions;
2666
            }
2667
2668 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2669 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2670
            const localVarQueryParameter = {} as any;
2671
2672 19b68a2e Lukáš Vlček
2673
    
2674 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2675
2676
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2677 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2678
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2679
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
2680 3e6b15a7 Lukáš Vlček
2681
            return {
2682
                url: toPathString(localVarUrlObj),
2683
                options: localVarRequestOptions,
2684
            };
2685
        },
2686
        /**
2687 19b68a2e Lukáš Vlček
         * 
2688 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2689
         * @throws {RequiredError}
2690
         */
2691
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2692
            const localVarPath = `/auth/test/aa`;
2693
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2694
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2695
            let baseOptions;
2696
            if (configuration) {
2697
                baseOptions = configuration.baseOptions;
2698
            }
2699
2700 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2701 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2702
            const localVarQueryParameter = {} as any;
2703
2704 19b68a2e Lukáš Vlček
2705
    
2706 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2707 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2708
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2709 3e6b15a7 Lukáš Vlček
2710
            return {
2711
                url: toPathString(localVarUrlObj),
2712
                options: localVarRequestOptions,
2713
            };
2714
        },
2715
        /**
2716 19b68a2e Lukáš Vlček
         * 
2717 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2718
         * @throws {RequiredError}
2719
         */
2720
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2721
            const localVarPath = `/auth/test`;
2722
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2723
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2724
            let baseOptions;
2725
            if (configuration) {
2726
                baseOptions = configuration.baseOptions;
2727
            }
2728
2729 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2730 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2731
            const localVarQueryParameter = {} as any;
2732
2733 19b68a2e Lukáš Vlček
2734
    
2735 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2736 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2737
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2738 3e6b15a7 Lukáš Vlček
2739
            return {
2740
                url: toPathString(localVarUrlObj),
2741
                options: localVarRequestOptions,
2742
            };
2743
        },
2744 19b68a2e Lukáš Vlček
    }
2745 3e6b15a7 Lukáš Vlček
};
2746
2747
/**
2748
 * AuthApi - functional programming interface
2749
 * @export
2750
 */
2751 19b68a2e Lukáš Vlček
export const AuthApiFp = function(configuration?: Configuration) {
2752
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
2753 3e6b15a7 Lukáš Vlček
    return {
2754
        /**
2755 19b68a2e Lukáš Vlček
         * 
2756
         * @param {LoginRequest} [loginRequest] 
2757 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2758
         * @throws {RequiredError}
2759
         */
2760 19b68a2e Lukáš Vlček
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
2761
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
2762
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2763 3e6b15a7 Lukáš Vlček
        },
2764
        /**
2765 19b68a2e Lukáš Vlček
         * 
2766 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2767
         * @throws {RequiredError}
2768
         */
2769 19b68a2e Lukáš Vlček
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2770
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
2771
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2772 3e6b15a7 Lukáš Vlček
        },
2773
        /**
2774 19b68a2e Lukáš Vlček
         * 
2775 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2776
         * @throws {RequiredError}
2777
         */
2778 19b68a2e Lukáš Vlček
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2779
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
2780
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2781 3e6b15a7 Lukáš Vlček
        },
2782 19b68a2e Lukáš Vlček
    }
2783 3e6b15a7 Lukáš Vlček
};
2784
2785
/**
2786
 * AuthApi - factory interface
2787
 * @export
2788
 */
2789 19b68a2e Lukáš Vlček
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2790
    const localVarFp = AuthApiFp(configuration)
2791 3e6b15a7 Lukáš Vlček
    return {
2792
        /**
2793 19b68a2e Lukáš Vlček
         * 
2794
         * @param {LoginRequest} [loginRequest] 
2795 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2796
         * @throws {RequiredError}
2797
         */
2798 19b68a2e Lukáš Vlček
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
2799
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
2800 3e6b15a7 Lukáš Vlček
        },
2801
        /**
2802 19b68a2e Lukáš Vlček
         * 
2803 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2804
         * @throws {RequiredError}
2805
         */
2806
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
2807 19b68a2e Lukáš Vlček
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
2808 3e6b15a7 Lukáš Vlček
        },
2809
        /**
2810 19b68a2e Lukáš Vlček
         * 
2811 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2812
         * @throws {RequiredError}
2813
         */
2814
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
2815 19b68a2e Lukáš Vlček
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
2816 3e6b15a7 Lukáš Vlček
        },
2817
    };
2818
};
2819
2820
/**
2821
 * AuthApi - object-oriented interface
2822
 * @export
2823
 * @class AuthApi
2824
 * @extends {BaseAPI}
2825
 */
2826
export class AuthApi extends BaseAPI {
2827
    /**
2828 19b68a2e Lukáš Vlček
     * 
2829
     * @param {LoginRequest} [loginRequest] 
2830 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2831
     * @throws {RequiredError}
2832
     * @memberof AuthApi
2833
     */
2834
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
2835 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
2836 3e6b15a7 Lukáš Vlček
    }
2837
2838
    /**
2839 19b68a2e Lukáš Vlček
     * 
2840 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2841
     * @throws {RequiredError}
2842
     * @memberof AuthApi
2843
     */
2844
    public authTestAaGet(options?: AxiosRequestConfig) {
2845 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
2846 3e6b15a7 Lukáš Vlček
    }
2847
2848
    /**
2849 19b68a2e Lukáš Vlček
     * 
2850 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2851
     * @throws {RequiredError}
2852
     * @memberof AuthApi
2853
     */
2854
    public authTestGet(options?: AxiosRequestConfig) {
2855 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
2856 3e6b15a7 Lukáš Vlček
    }
2857
}
2858
2859 19b68a2e Lukáš Vlček
2860 3e6b15a7 Lukáš Vlček
/**
2861
 * DocumentApi - axios parameter creator
2862
 * @export
2863
 */
2864
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
2865
    return {
2866 048b4bc0 Lukáš Vlček
        /**
2867
         * 
2868
         * @param {string} documentId 
2869
         * @param {*} [options] Override http request option.
2870
         * @throws {RequiredError}
2871
         */
2872
        documentDocumentIdFinalPost: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2873
            // verify required parameter 'documentId' is not null or undefined
2874
            assertParamExists('documentDocumentIdFinalPost', 'documentId', documentId)
2875
            const localVarPath = `/document/{documentId}/final`
2876
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2877
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2878
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2879
            let baseOptions;
2880
            if (configuration) {
2881
                baseOptions = configuration.baseOptions;
2882
            }
2883
2884
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2885
            const localVarHeaderParameter = {} as any;
2886
            const localVarQueryParameter = {} as any;
2887
2888
2889
    
2890
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2891
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2892
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2893
2894
            return {
2895
                url: toPathString(localVarUrlObj),
2896
                options: localVarRequestOptions,
2897
            };
2898
        },
2899 cca0bfa0 Lukáš Vlček
        /**
2900
         * 
2901
         * @param {string} documentId 
2902
         * @param {*} [options] Override http request option.
2903
         * @throws {RequiredError}
2904
         */
2905
        documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2906
            // verify required parameter 'documentId' is not null or undefined
2907
            assertParamExists('documentDocumentIdGet', 'documentId', documentId)
2908
            const localVarPath = `/document/{documentId}`
2909
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2910
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2911
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2912
            let baseOptions;
2913
            if (configuration) {
2914
                baseOptions = configuration.baseOptions;
2915
            }
2916
2917
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2918
            const localVarHeaderParameter = {} as any;
2919
            const localVarQueryParameter = {} as any;
2920
2921
2922
    
2923
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2924
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2925
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2926
2927
            return {
2928
                url: toPathString(localVarUrlObj),
2929
                options: localVarRequestOptions,
2930
            };
2931
        },
2932 3e6b15a7 Lukáš Vlček
        /**
2933 19b68a2e Lukáš Vlček
         * 
2934 ef5792a8 Lukáš Vlček
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
2935 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2936
         * @throws {RequiredError}
2937
         */
2938 ef5792a8 Lukáš Vlček
        documentsDelete: async (deleteDocumentsRequest?: DeleteDocumentsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2939 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
2940
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2941
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2942
            let baseOptions;
2943
            if (configuration) {
2944
                baseOptions = configuration.baseOptions;
2945
            }
2946
2947 ef5792a8 Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2948 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2949
            const localVarQueryParameter = {} as any;
2950
2951 ef5792a8 Lukáš Vlček
2952
    
2953
            localVarHeaderParameter['Content-Type'] = 'application/json';
2954
2955
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2956
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2957
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2958
            localVarRequestOptions.data = serializeDataIfNeeded(deleteDocumentsRequest, localVarRequestOptions, configuration)
2959
2960
            return {
2961
                url: toPathString(localVarUrlObj),
2962
                options: localVarRequestOptions,
2963
            };
2964
        },
2965
        /**
2966
         * 
2967
         * @param {string} documentId 
2968
         * @param {string} annotatorId 
2969
         * @param {*} [options] Override http request option.
2970
         * @throws {RequiredError}
2971
         */
2972
        documentsDocumentIdAnnotatorsAnnotatorIdDelete: async (documentId: string, annotatorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2973
            // verify required parameter 'documentId' is not null or undefined
2974
            assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'documentId', documentId)
2975
            // verify required parameter 'annotatorId' is not null or undefined
2976
            assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'annotatorId', annotatorId)
2977
            const localVarPath = `/documents/{documentId}/annotators/{annotatorId}`
2978
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)))
2979
                .replace(`{${"annotatorId"}}`, encodeURIComponent(String(annotatorId)));
2980
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2981
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2982
            let baseOptions;
2983
            if (configuration) {
2984
                baseOptions = configuration.baseOptions;
2985 dd747fc5 Lukáš Vlček
            }
2986 3e6b15a7 Lukáš Vlček
2987 ef5792a8 Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2988
            const localVarHeaderParameter = {} as any;
2989
            const localVarQueryParameter = {} as any;
2990
2991
2992
    
2993
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2994
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2995
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2996
2997
            return {
2998
                url: toPathString(localVarUrlObj),
2999
                options: localVarRequestOptions,
3000
            };
3001
        },
3002
        /**
3003
         * 
3004
         * @param {ExportRequest} [exportRequest] 
3005
         * @param {*} [options] Override http request option.
3006
         * @throws {RequiredError}
3007
         */
3008
        documentsExportPost: async (exportRequest?: ExportRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3009
            const localVarPath = `/documents/export`;
3010
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3011
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3012
            let baseOptions;
3013
            if (configuration) {
3014
                baseOptions = configuration.baseOptions;
3015 dd747fc5 Lukáš Vlček
            }
3016 3e6b15a7 Lukáš Vlček
3017 ef5792a8 Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3018
            const localVarHeaderParameter = {} as any;
3019
            const localVarQueryParameter = {} as any;
3020
3021
3022
    
3023
            localVarHeaderParameter['Content-Type'] = 'application/json';
3024
3025
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3026
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3027
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3028
            localVarRequestOptions.data = serializeDataIfNeeded(exportRequest, localVarRequestOptions, configuration)
3029
3030
            return {
3031
                url: toPathString(localVarUrlObj),
3032
                options: localVarRequestOptions,
3033
            };
3034
        },
3035
        /**
3036
         * 
3037
         * @param {*} [options] Override http request option.
3038
         * @throws {RequiredError}
3039
         */
3040
        documentsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3041
            const localVarPath = `/documents`;
3042
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3043
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3044
            let baseOptions;
3045
            if (configuration) {
3046
                baseOptions = configuration.baseOptions;
3047
            }
3048
3049
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3050
            const localVarHeaderParameter = {} as any;
3051
            const localVarQueryParameter = {} as any;
3052
3053 19b68a2e Lukáš Vlček
3054
    
3055 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3056 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3057
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3058 3e6b15a7 Lukáš Vlček
3059
            return {
3060
                url: toPathString(localVarUrlObj),
3061
                options: localVarRequestOptions,
3062
            };
3063
        },
3064
        /**
3065 19b68a2e Lukáš Vlček
         * 
3066
         * @param {DocumentAddRequest} [documentAddRequest] 
3067 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3068
         * @throws {RequiredError}
3069
         */
3070 19b68a2e Lukáš Vlček
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3071 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
3072
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3073
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3074
            let baseOptions;
3075
            if (configuration) {
3076
                baseOptions = configuration.baseOptions;
3077
            }
3078
3079 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3080 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
3081
            const localVarQueryParameter = {} as any;
3082
3083 19b68a2e Lukáš Vlček
3084
    
3085 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
3086
3087
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3088 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3089
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3090
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
3091
3092
            return {
3093
                url: toPathString(localVarUrlObj),
3094
                options: localVarRequestOptions,
3095 9bfa1e39 Jaroslav Hrubý
            };
3096 19b68a2e Lukáš Vlček
        },
3097
        /**
3098
         * 
3099
         * @param {*} [options] Override http request option.
3100
         * @throws {RequiredError}
3101
         */
3102
        documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3103
            const localVarPath = `/documents/requiredAnnotations/global`;
3104
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3105
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3106
            let baseOptions;
3107
            if (configuration) {
3108
                baseOptions = configuration.baseOptions;
3109
            }
3110
3111
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3112
            const localVarHeaderParameter = {} as any;
3113
            const localVarQueryParameter = {} as any;
3114
3115
3116
    
3117
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3118
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3119
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3120 3e6b15a7 Lukáš Vlček
3121
            return {
3122
                url: toPathString(localVarUrlObj),
3123
                options: localVarRequestOptions,
3124
            };
3125
        },
3126 19b68a2e Lukáš Vlček
        /**
3127
         * 
3128
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3129
         * @param {*} [options] Override http request option.
3130
         * @throws {RequiredError}
3131
         */
3132
        documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3133
            const localVarPath = `/documents/requiredAnnotations/global`;
3134
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3135
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3136
            let baseOptions;
3137
            if (configuration) {
3138
                baseOptions = configuration.baseOptions;
3139
            }
3140
3141
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3142
            const localVarHeaderParameter = {} as any;
3143
            const localVarQueryParameter = {} as any;
3144
3145
3146
    
3147
            localVarHeaderParameter['Content-Type'] = 'application/json';
3148
3149
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3150
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3151
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3152
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
3153
3154
            return {
3155
                url: toPathString(localVarUrlObj),
3156
                options: localVarRequestOptions,
3157
            };
3158
        },
3159
        /**
3160
         * 
3161
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3162
         * @param {*} [options] Override http request option.
3163
         * @throws {RequiredError}
3164
         */
3165
        documentsRequiredAnnotationsPost: async (setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3166
            const localVarPath = `/documents/requiredAnnotations`;
3167
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3168
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3169
            let baseOptions;
3170
            if (configuration) {
3171
                baseOptions = configuration.baseOptions;
3172
            }
3173
3174
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3175
            const localVarHeaderParameter = {} as any;
3176
            const localVarQueryParameter = {} as any;
3177
3178
3179
    
3180
            localVarHeaderParameter['Content-Type'] = 'application/json';
3181
3182
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3183
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3184
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3185
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
3186
3187
            return {
3188
                url: toPathString(localVarUrlObj),
3189
                options: localVarRequestOptions,
3190
            };
3191
        },
3192
    }
3193 3e6b15a7 Lukáš Vlček
};
3194
3195
/**
3196
 * DocumentApi - functional programming interface
3197
 * @export
3198
 */
3199 19b68a2e Lukáš Vlček
export const DocumentApiFp = function(configuration?: Configuration) {
3200
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
3201 3e6b15a7 Lukáš Vlček
    return {
3202 048b4bc0 Lukáš Vlček
        /**
3203
         * 
3204
         * @param {string} documentId 
3205
         * @param {*} [options] Override http request option.
3206
         * @throws {RequiredError}
3207
         */
3208
        async documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFinalAnnotationResponse>> {
3209
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdFinalPost(documentId, options);
3210
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3211
        },
3212 cca0bfa0 Lukáš Vlček
        /**
3213
         * 
3214
         * @param {string} documentId 
3215
         * @param {*} [options] Override http request option.
3216
         * @throws {RequiredError}
3217
         */
3218
        async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
3219
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
3220
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3221
        },
3222 3e6b15a7 Lukáš Vlček
        /**
3223 19b68a2e Lukáš Vlček
         * 
3224 ef5792a8 Lukáš Vlček
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3225
         * @param {*} [options] Override http request option.
3226
         * @throws {RequiredError}
3227
         */
3228
        async documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3229
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDelete(deleteDocumentsRequest, options);
3230
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3231
        },
3232
        /**
3233
         * 
3234
         * @param {string} documentId 
3235
         * @param {string} annotatorId 
3236 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3237
         * @throws {RequiredError}
3238
         */
3239 ef5792a8 Lukáš Vlček
        async documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3240
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options);
3241
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3242
        },
3243
        /**
3244
         * 
3245
         * @param {ExportRequest} [exportRequest] 
3246
         * @param {*} [options] Override http request option.
3247
         * @throws {RequiredError}
3248
         */
3249 9e60bee1 Lukáš Vlček
        async documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
3250 ef5792a8 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsExportPost(exportRequest, options);
3251
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3252
        },
3253
        /**
3254
         * 
3255
         * @param {*} [options] Override http request option.
3256
         * @throws {RequiredError}
3257
         */
3258
        async documentsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
3259
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(options);
3260 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3261 3e6b15a7 Lukáš Vlček
        },
3262
        /**
3263 19b68a2e Lukáš Vlček
         * 
3264
         * @param {DocumentAddRequest} [documentAddRequest] 
3265 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3266
         * @throws {RequiredError}
3267
         */
3268 19b68a2e Lukáš Vlček
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3269
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
3270
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3271 3e6b15a7 Lukáš Vlček
        },
3272 19b68a2e Lukáš Vlček
        /**
3273
         * 
3274
         * @param {*} [options] Override http request option.
3275
         * @throws {RequiredError}
3276
         */
3277
        async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
3278
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
3279
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3280
        },
3281
        /**
3282
         * 
3283
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3284
         * @param {*} [options] Override http request option.
3285
         * @throws {RequiredError}
3286
         */
3287
        async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3288
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
3289
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3290
        },
3291
        /**
3292
         * 
3293
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3294
         * @param {*} [options] Override http request option.
3295
         * @throws {RequiredError}
3296
         */
3297
        async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3298
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
3299
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3300
        },
3301
    }
3302 3e6b15a7 Lukáš Vlček
};
3303
3304
/**
3305
 * DocumentApi - factory interface
3306
 * @export
3307
 */
3308 19b68a2e Lukáš Vlček
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3309
    const localVarFp = DocumentApiFp(configuration)
3310 3e6b15a7 Lukáš Vlček
    return {
3311 048b4bc0 Lukáš Vlček
        /**
3312
         * 
3313
         * @param {string} documentId 
3314
         * @param {*} [options] Override http request option.
3315
         * @throws {RequiredError}
3316
         */
3317
        documentDocumentIdFinalPost(documentId: string, options?: any): AxiosPromise<CreateFinalAnnotationResponse> {
3318
            return localVarFp.documentDocumentIdFinalPost(documentId, options).then((request) => request(axios, basePath));
3319
        },
3320 cca0bfa0 Lukáš Vlček
        /**
3321
         * 
3322
         * @param {string} documentId 
3323
         * @param {*} [options] Override http request option.
3324
         * @throws {RequiredError}
3325
         */
3326
        documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
3327
            return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
3328
        },
3329 3e6b15a7 Lukáš Vlček
        /**
3330 19b68a2e Lukáš Vlček
         * 
3331 ef5792a8 Lukáš Vlček
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3332
         * @param {*} [options] Override http request option.
3333
         * @throws {RequiredError}
3334
         */
3335
        documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: any): AxiosPromise<void> {
3336
            return localVarFp.documentsDelete(deleteDocumentsRequest, options).then((request) => request(axios, basePath));
3337
        },
3338
        /**
3339
         * 
3340
         * @param {string} documentId 
3341
         * @param {string} annotatorId 
3342 19b68a2e Lukáš Vlček
         * @param {*} [options] Override http request option.
3343
         * @throws {RequiredError}
3344
         */
3345 ef5792a8 Lukáš Vlček
        documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: any): AxiosPromise<void> {
3346
            return localVarFp.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(axios, basePath));
3347
        },
3348
        /**
3349
         * 
3350
         * @param {ExportRequest} [exportRequest] 
3351
         * @param {*} [options] Override http request option.
3352
         * @throws {RequiredError}
3353
         */
3354 9e60bee1 Lukáš Vlček
        documentsExportPost(exportRequest?: ExportRequest, options?: any): AxiosPromise<string> {
3355 ef5792a8 Lukáš Vlček
            return localVarFp.documentsExportPost(exportRequest, options).then((request) => request(axios, basePath));
3356
        },
3357
        /**
3358
         * 
3359
         * @param {*} [options] Override http request option.
3360
         * @throws {RequiredError}
3361
         */
3362
        documentsGet(options?: any): AxiosPromise<DocumentListResponse> {
3363
            return localVarFp.documentsGet(options).then((request) => request(axios, basePath));
3364 19b68a2e Lukáš Vlček
        },
3365
        /**
3366
         * 
3367
         * @param {DocumentAddRequest} [documentAddRequest] 
3368
         * @param {*} [options] Override http request option.
3369
         * @throws {RequiredError}
3370
         */
3371
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
3372
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
3373
        },
3374
        /**
3375
         * 
3376
         * @param {*} [options] Override http request option.
3377
         * @throws {RequiredError}
3378
         */
3379
        documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
3380
            return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
3381
        },
3382
        /**
3383
         * 
3384
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3385 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3386
         * @throws {RequiredError}
3387
         */
3388 19b68a2e Lukáš Vlček
        documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
3389
            return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
3390 3e6b15a7 Lukáš Vlček
        },
3391
        /**
3392 19b68a2e Lukáš Vlček
         * 
3393
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3394 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3395
         * @throws {RequiredError}
3396
         */
3397 19b68a2e Lukáš Vlček
        documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
3398
            return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
3399 3e6b15a7 Lukáš Vlček
        },
3400
    };
3401
};
3402
3403
/**
3404
 * DocumentApi - object-oriented interface
3405
 * @export
3406
 * @class DocumentApi
3407
 * @extends {BaseAPI}
3408
 */
3409
export class DocumentApi extends BaseAPI {
3410 048b4bc0 Lukáš Vlček
    /**
3411
     * 
3412
     * @param {string} documentId 
3413
     * @param {*} [options] Override http request option.
3414
     * @throws {RequiredError}
3415
     * @memberof DocumentApi
3416
     */
3417
    public documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig) {
3418
        return DocumentApiFp(this.configuration).documentDocumentIdFinalPost(documentId, options).then((request) => request(this.axios, this.basePath));
3419
    }
3420
3421 cca0bfa0 Lukáš Vlček
    /**
3422
     * 
3423
     * @param {string} documentId 
3424
     * @param {*} [options] Override http request option.
3425
     * @throws {RequiredError}
3426
     * @memberof DocumentApi
3427
     */
3428
    public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
3429
        return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
3430
    }
3431
3432 3e6b15a7 Lukáš Vlček
    /**
3433 19b68a2e Lukáš Vlček
     * 
3434 ef5792a8 Lukáš Vlček
     * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3435
     * @param {*} [options] Override http request option.
3436
     * @throws {RequiredError}
3437
     * @memberof DocumentApi
3438
     */
3439
    public documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig) {
3440
        return DocumentApiFp(this.configuration).documentsDelete(deleteDocumentsRequest, options).then((request) => request(this.axios, this.basePath));
3441
    }
3442
3443
    /**
3444
     * 
3445
     * @param {string} documentId 
3446
     * @param {string} annotatorId 
3447
     * @param {*} [options] Override http request option.
3448
     * @throws {RequiredError}
3449
     * @memberof DocumentApi
3450
     */
3451
    public documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig) {
3452
        return DocumentApiFp(this.configuration).documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(this.axios, this.basePath));
3453
    }
3454
3455
    /**
3456
     * 
3457
     * @param {ExportRequest} [exportRequest] 
3458
     * @param {*} [options] Override http request option.
3459
     * @throws {RequiredError}
3460
     * @memberof DocumentApi
3461
     */
3462
    public documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig) {
3463
        return DocumentApiFp(this.configuration).documentsExportPost(exportRequest, options).then((request) => request(this.axios, this.basePath));
3464
    }
3465
3466
    /**
3467
     * 
3468 19b68a2e Lukáš Vlček
     * @param {*} [options] Override http request option.
3469
     * @throws {RequiredError}
3470
     * @memberof DocumentApi
3471
     */
3472 ef5792a8 Lukáš Vlček
    public documentsGet(options?: AxiosRequestConfig) {
3473
        return DocumentApiFp(this.configuration).documentsGet(options).then((request) => request(this.axios, this.basePath));
3474 19b68a2e Lukáš Vlček
    }
3475
3476
    /**
3477
     * 
3478
     * @param {DocumentAddRequest} [documentAddRequest] 
3479
     * @param {*} [options] Override http request option.
3480
     * @throws {RequiredError}
3481
     * @memberof DocumentApi
3482
     */
3483
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
3484
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
3485
    }
3486
3487
    /**
3488
     * 
3489
     * @param {*} [options] Override http request option.
3490
     * @throws {RequiredError}
3491
     * @memberof DocumentApi
3492
     */
3493
    public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
3494
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
3495
    }
3496
3497
    /**
3498
     * 
3499
     * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3500 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
3501
     * @throws {RequiredError}
3502
     * @memberof DocumentApi
3503
     */
3504 19b68a2e Lukáš Vlček
    public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
3505
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
3506 3e6b15a7 Lukáš Vlček
    }
3507
3508
    /**
3509 19b68a2e Lukáš Vlček
     * 
3510
     * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3511 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
3512
     * @throws {RequiredError}
3513
     * @memberof DocumentApi
3514
     */
3515 19b68a2e Lukáš Vlček
    public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
3516
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
3517 3e6b15a7 Lukáš Vlček
    }
3518
}
3519
3520 19b68a2e Lukáš Vlček
3521 3e6b15a7 Lukáš Vlček
/**
3522
 * TagApi - axios parameter creator
3523
 * @export
3524
 */
3525
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
3526
    return {
3527
        /**
3528 19b68a2e Lukáš Vlček
         * 
3529 cca0bfa0 Lukáš Vlček
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3530 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3531
         * @throws {RequiredError}
3532
         */
3533 cca0bfa0 Lukáš Vlček
        categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3534
            const localVarPath = `/categories`;
3535 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3536
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3537
            let baseOptions;
3538
            if (configuration) {
3539
                baseOptions = configuration.baseOptions;
3540
            }
3541
3542 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3543 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
3544
            const localVarQueryParameter = {} as any;
3545
3546 19b68a2e Lukáš Vlček
3547
    
3548 cca0bfa0 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
3549
3550 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3551 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3552
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3553 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
3554 3e6b15a7 Lukáš Vlček
3555
            return {
3556
                url: toPathString(localVarUrlObj),
3557
                options: localVarRequestOptions,
3558
            };
3559
        },
3560
        /**
3561 19b68a2e Lukáš Vlček
         * 
3562 cca0bfa0 Lukáš Vlček
         * @param {string} categoryId 
3563 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3564
         * @throws {RequiredError}
3565
         */
3566 cca0bfa0 Lukáš Vlček
        categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3567
            // verify required parameter 'categoryId' is not null or undefined
3568
            assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
3569
            const localVarPath = `/category/{categoryId}`
3570
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
3571
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3572
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3573
            let baseOptions;
3574
            if (configuration) {
3575
                baseOptions = configuration.baseOptions;
3576
            }
3577
3578
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3579
            const localVarHeaderParameter = {} as any;
3580
            const localVarQueryParameter = {} as any;
3581
3582
3583
    
3584
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3585
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3586
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3587
3588
            return {
3589
                url: toPathString(localVarUrlObj),
3590
                options: localVarRequestOptions,
3591
            };
3592
        },
3593
        /**
3594
         * 
3595
         * @param {string} categoryId 
3596
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3597
         * @param {*} [options] Override http request option.
3598
         * @throws {RequiredError}
3599
         */
3600
        categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3601
            // verify required parameter 'categoryId' is not null or undefined
3602
            assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
3603
            const localVarPath = `/category/{categoryId}`
3604
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
3605
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3606
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3607
            let baseOptions;
3608
            if (configuration) {
3609
                baseOptions = configuration.baseOptions;
3610
            }
3611
3612
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3613
            const localVarHeaderParameter = {} as any;
3614
            const localVarQueryParameter = {} as any;
3615
3616
3617
    
3618
            localVarHeaderParameter['Content-Type'] = 'application/json';
3619
3620
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3621
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3622
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3623
            localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
3624
3625
            return {
3626
                url: toPathString(localVarUrlObj),
3627
                options: localVarRequestOptions,
3628
            };
3629
        },
3630
        /**
3631
         * 
3632
         * @param {string} subtagId 
3633
         * @param {*} [options] Override http request option.
3634
         * @throws {RequiredError}
3635
         */
3636
        subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3637
            // verify required parameter 'subtagId' is not null or undefined
3638
            assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
3639
            const localVarPath = `/subtag/{subtagId}`
3640
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
3641
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3642
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3643
            let baseOptions;
3644
            if (configuration) {
3645
                baseOptions = configuration.baseOptions;
3646
            }
3647
3648
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3649
            const localVarHeaderParameter = {} as any;
3650
            const localVarQueryParameter = {} as any;
3651
3652
3653
    
3654
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3655
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3656
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3657
3658
            return {
3659
                url: toPathString(localVarUrlObj),
3660
                options: localVarRequestOptions,
3661
            };
3662
        },
3663
        /**
3664
         * 
3665
         * @param {string} subtagId 
3666
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3667
         * @param {*} [options] Override http request option.
3668
         * @throws {RequiredError}
3669
         */
3670
        subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3671
            // verify required parameter 'subtagId' is not null or undefined
3672
            assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
3673
            const localVarPath = `/subtag/{subtagId}`
3674
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
3675
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3676
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3677
            let baseOptions;
3678
            if (configuration) {
3679
                baseOptions = configuration.baseOptions;
3680
            }
3681
3682
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3683
            const localVarHeaderParameter = {} as any;
3684
            const localVarQueryParameter = {} as any;
3685
3686
3687
    
3688
            localVarHeaderParameter['Content-Type'] = 'application/json';
3689
3690
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3691
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3692
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3693
            localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
3694
3695
            return {
3696
                url: toPathString(localVarUrlObj),
3697
                options: localVarRequestOptions,
3698
            };
3699
        },
3700
        /**
3701
         * 
3702
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3703
         * @param {*} [options] Override http request option.
3704
         * @throws {RequiredError}
3705
         */
3706
        subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3707
            const localVarPath = `/subtags`;
3708
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3709
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3710
            let baseOptions;
3711
            if (configuration) {
3712
                baseOptions = configuration.baseOptions;
3713
            }
3714
3715
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3716
            const localVarHeaderParameter = {} as any;
3717
            const localVarQueryParameter = {} as any;
3718
3719
3720
    
3721
            localVarHeaderParameter['Content-Type'] = 'application/json';
3722
3723
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3724
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3725
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3726
            localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
3727
3728
            return {
3729
                url: toPathString(localVarUrlObj),
3730
                options: localVarRequestOptions,
3731
            };
3732
        },
3733
        /**
3734
         * 
3735
         * @param {string} tagId 
3736
         * @param {*} [options] Override http request option.
3737
         * @throws {RequiredError}
3738
         */
3739
        tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3740
            // verify required parameter 'tagId' is not null or undefined
3741
            assertParamExists('tagTagIdDelete', 'tagId', tagId)
3742
            const localVarPath = `/tag/{tagId}`
3743
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
3744
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3745
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3746
            let baseOptions;
3747
            if (configuration) {
3748
                baseOptions = configuration.baseOptions;
3749
            }
3750
3751
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3752
            const localVarHeaderParameter = {} as any;
3753
            const localVarQueryParameter = {} as any;
3754
3755
3756
    
3757
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3758
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3759
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3760
3761
            return {
3762
                url: toPathString(localVarUrlObj),
3763
                options: localVarRequestOptions,
3764
            };
3765
        },
3766
        /**
3767
         * 
3768
         * @param {string} tagId 
3769
         * @param {ModifyTagRequest} [modifyTagRequest] 
3770
         * @param {*} [options] Override http request option.
3771
         * @throws {RequiredError}
3772
         */
3773
        tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3774
            // verify required parameter 'tagId' is not null or undefined
3775
            assertParamExists('tagTagIdPut', 'tagId', tagId)
3776
            const localVarPath = `/tag/{tagId}`
3777
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
3778
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3779
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3780
            let baseOptions;
3781
            if (configuration) {
3782
                baseOptions = configuration.baseOptions;
3783
            }
3784
3785
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3786
            const localVarHeaderParameter = {} as any;
3787
            const localVarQueryParameter = {} as any;
3788
3789
3790
    
3791
            localVarHeaderParameter['Content-Type'] = 'application/json';
3792
3793
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3794
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3795
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3796
            localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
3797
3798
            return {
3799
                url: toPathString(localVarUrlObj),
3800
                options: localVarRequestOptions,
3801
            };
3802
        },
3803
        /**
3804
         * 
3805
         * @param {*} [options] Override http request option.
3806
         * @throws {RequiredError}
3807
         */
3808
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3809
            const localVarPath = `/tags`;
3810
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3811
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3812
            let baseOptions;
3813
            if (configuration) {
3814
                baseOptions = configuration.baseOptions;
3815
            }
3816
3817
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3818
            const localVarHeaderParameter = {} as any;
3819
            const localVarQueryParameter = {} as any;
3820
3821
3822
    
3823
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3824
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3825
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3826
3827
            return {
3828
                url: toPathString(localVarUrlObj),
3829
                options: localVarRequestOptions,
3830
            };
3831
        },
3832
        /**
3833
         * 
3834
         * @param {CreateTagRequest} [createTagRequest] 
3835
         * @param {*} [options] Override http request option.
3836
         * @throws {RequiredError}
3837
         */
3838
        tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3839
            const localVarPath = `/tags`;
3840
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3841
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3842
            let baseOptions;
3843
            if (configuration) {
3844
                baseOptions = configuration.baseOptions;
3845
            }
3846
3847
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3848
            const localVarHeaderParameter = {} as any;
3849
            const localVarQueryParameter = {} as any;
3850
3851
3852
    
3853
            localVarHeaderParameter['Content-Type'] = 'application/json';
3854
3855
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3856
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3857
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3858
            localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
3859
3860
            return {
3861
                url: toPathString(localVarUrlObj),
3862
                options: localVarRequestOptions,
3863
            };
3864
        },
3865
    }
3866
};
3867
3868
/**
3869
 * TagApi - functional programming interface
3870
 * @export
3871
 */
3872
export const TagApiFp = function(configuration?: Configuration) {
3873
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
3874
    return {
3875
        /**
3876
         * 
3877
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3878
         * @param {*} [options] Override http request option.
3879
         * @throws {RequiredError}
3880
         */
3881
        async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3882
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options);
3883
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3884
        },
3885
        /**
3886
         * 
3887
         * @param {string} categoryId 
3888
         * @param {*} [options] Override http request option.
3889
         * @throws {RequiredError}
3890
         */
3891
        async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3892
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options);
3893
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3894
        },
3895
        /**
3896
         * 
3897
         * @param {string} categoryId 
3898
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3899
         * @param {*} [options] Override http request option.
3900
         * @throws {RequiredError}
3901
         */
3902
        async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3903
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options);
3904
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3905
        },
3906
        /**
3907
         * 
3908
         * @param {string} subtagId 
3909
         * @param {*} [options] Override http request option.
3910
         * @throws {RequiredError}
3911
         */
3912
        async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3913
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options);
3914
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3915
        },
3916
        /**
3917
         * 
3918
         * @param {string} subtagId 
3919
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3920
         * @param {*} [options] Override http request option.
3921
         * @throws {RequiredError}
3922
         */
3923
        async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3924
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options);
3925
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3926
        },
3927
        /**
3928
         * 
3929
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3930
         * @param {*} [options] Override http request option.
3931
         * @throws {RequiredError}
3932
         */
3933
        async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3934
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options);
3935
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3936
        },
3937
        /**
3938
         * 
3939
         * @param {string} tagId 
3940
         * @param {*} [options] Override http request option.
3941
         * @throws {RequiredError}
3942
         */
3943
        async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3944
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options);
3945
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3946
        },
3947
        /**
3948
         * 
3949
         * @param {string} tagId 
3950
         * @param {ModifyTagRequest} [modifyTagRequest] 
3951
         * @param {*} [options] Override http request option.
3952
         * @throws {RequiredError}
3953
         */
3954
        async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3955
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options);
3956
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3957
        },
3958
        /**
3959
         * 
3960
         * @param {*} [options] Override http request option.
3961
         * @throws {RequiredError}
3962
         */
3963
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
3964
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
3965
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3966
        },
3967
        /**
3968
         * 
3969
         * @param {CreateTagRequest} [createTagRequest] 
3970
         * @param {*} [options] Override http request option.
3971
         * @throws {RequiredError}
3972
         */
3973
        async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3974
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options);
3975 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3976 3e6b15a7 Lukáš Vlček
        },
3977 19b68a2e Lukáš Vlček
    }
3978 3e6b15a7 Lukáš Vlček
};
3979
3980
/**
3981
 * TagApi - factory interface
3982
 * @export
3983
 */
3984 19b68a2e Lukáš Vlček
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3985
    const localVarFp = TagApiFp(configuration)
3986 3e6b15a7 Lukáš Vlček
    return {
3987 cca0bfa0 Lukáš Vlček
        /**
3988
         * 
3989
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3990
         * @param {*} [options] Override http request option.
3991
         * @throws {RequiredError}
3992
         */
3993
        categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> {
3994
            return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath));
3995
        },
3996
        /**
3997
         * 
3998
         * @param {string} categoryId 
3999
         * @param {*} [options] Override http request option.
4000
         * @throws {RequiredError}
4001
         */
4002
        categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> {
4003
            return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath));
4004
        },
4005
        /**
4006
         * 
4007
         * @param {string} categoryId 
4008
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
4009
         * @param {*} [options] Override http request option.
4010
         * @throws {RequiredError}
4011
         */
4012
        categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> {
4013
            return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath));
4014
        },
4015
        /**
4016
         * 
4017
         * @param {string} subtagId 
4018
         * @param {*} [options] Override http request option.
4019
         * @throws {RequiredError}
4020
         */
4021
        subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> {
4022
            return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath));
4023
        },
4024
        /**
4025
         * 
4026
         * @param {string} subtagId 
4027
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
4028
         * @param {*} [options] Override http request option.
4029
         * @throws {RequiredError}
4030
         */
4031
        subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> {
4032
            return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath));
4033
        },
4034
        /**
4035
         * 
4036
         * @param {CreateSubTagRequest} [createSubTagRequest] 
4037
         * @param {*} [options] Override http request option.
4038
         * @throws {RequiredError}
4039
         */
4040
        subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> {
4041
            return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath));
4042
        },
4043
        /**
4044
         * 
4045
         * @param {string} tagId 
4046
         * @param {*} [options] Override http request option.
4047
         * @throws {RequiredError}
4048
         */
4049
        tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> {
4050
            return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
4051
        },
4052
        /**
4053
         * 
4054
         * @param {string} tagId 
4055
         * @param {ModifyTagRequest} [modifyTagRequest] 
4056
         * @param {*} [options] Override http request option.
4057
         * @throws {RequiredError}
4058
         */
4059
        tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> {
4060
            return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath));
4061
        },
4062 3e6b15a7 Lukáš Vlček
        /**
4063 19b68a2e Lukáš Vlček
         * 
4064 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4065
         * @throws {RequiredError}
4066
         */
4067
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
4068 19b68a2e Lukáš Vlček
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
4069 3e6b15a7 Lukáš Vlček
        },
4070 cca0bfa0 Lukáš Vlček
        /**
4071
         * 
4072
         * @param {CreateTagRequest} [createTagRequest] 
4073
         * @param {*} [options] Override http request option.
4074
         * @throws {RequiredError}
4075
         */
4076
        tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> {
4077
            return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath));
4078
        },
4079 3e6b15a7 Lukáš Vlček
    };
4080
};
4081
4082
/**
4083
 * TagApi - object-oriented interface
4084
 * @export
4085
 * @class TagApi
4086
 * @extends {BaseAPI}
4087
 */
4088
export class TagApi extends BaseAPI {
4089 cca0bfa0 Lukáš Vlček
    /**
4090
     * 
4091
     * @param {CreateCategoryRequest} [createCategoryRequest] 
4092
     * @param {*} [options] Override http request option.
4093
     * @throws {RequiredError}
4094
     * @memberof TagApi
4095
     */
4096
    public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
4097
        return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
4098
    }
4099
4100
    /**
4101
     * 
4102
     * @param {string} categoryId 
4103
     * @param {*} [options] Override http request option.
4104
     * @throws {RequiredError}
4105
     * @memberof TagApi
4106
     */
4107
    public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
4108
        return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
4109
    }
4110
4111
    /**
4112
     * 
4113
     * @param {string} categoryId 
4114
     * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
4115
     * @param {*} [options] Override http request option.
4116
     * @throws {RequiredError}
4117
     * @memberof TagApi
4118
     */
4119
    public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
4120
        return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
4121
    }
4122
4123
    /**
4124
     * 
4125
     * @param {string} subtagId 
4126
     * @param {*} [options] Override http request option.
4127
     * @throws {RequiredError}
4128
     * @memberof TagApi
4129
     */
4130
    public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
4131
        return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
4132
    }
4133
4134
    /**
4135
     * 
4136
     * @param {string} subtagId 
4137
     * @param {ModifySubTagRequest} [modifySubTagRequest] 
4138
     * @param {*} [options] Override http request option.
4139
     * @throws {RequiredError}
4140
     * @memberof TagApi
4141
     */
4142
    public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
4143
        return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
4144
    }
4145
4146
    /**
4147
     * 
4148
     * @param {CreateSubTagRequest} [createSubTagRequest] 
4149
     * @param {*} [options] Override http request option.
4150
     * @throws {RequiredError}
4151
     * @memberof TagApi
4152
     */
4153
    public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
4154
        return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
4155
    }
4156
4157
    /**
4158
     * 
4159
     * @param {string} tagId 
4160
     * @param {*} [options] Override http request option.
4161
     * @throws {RequiredError}
4162
     * @memberof TagApi
4163
     */
4164
    public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
4165
        return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
4166
    }
4167
4168
    /**
4169
     * 
4170
     * @param {string} tagId 
4171
     * @param {ModifyTagRequest} [modifyTagRequest] 
4172
     * @param {*} [options] Override http request option.
4173
     * @throws {RequiredError}
4174
     * @memberof TagApi
4175
     */
4176
    public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
4177
        return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
4178
    }
4179
4180 3e6b15a7 Lukáš Vlček
    /**
4181 19b68a2e Lukáš Vlček
     * 
4182 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
4183
     * @throws {RequiredError}
4184
     * @memberof TagApi
4185
     */
4186
    public tagsGet(options?: AxiosRequestConfig) {
4187 19b68a2e Lukáš Vlček
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
4188 3e6b15a7 Lukáš Vlček
    }
4189 cca0bfa0 Lukáš Vlček
4190
    /**
4191
     * 
4192
     * @param {CreateTagRequest} [createTagRequest] 
4193
     * @param {*} [options] Override http request option.
4194
     * @throws {RequiredError}
4195
     * @memberof TagApi
4196
     */
4197
    public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
4198
        return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
4199
    }
4200 3e6b15a7 Lukáš Vlček
}
4201
4202 19b68a2e Lukáš Vlček
4203 3e6b15a7 Lukáš Vlček
/**
4204
 * UserApi - axios parameter creator
4205
 * @export
4206
 */
4207
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
4208
    return {
4209
        /**
4210 19b68a2e Lukáš Vlček
         * 
4211 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4212
         * @throws {RequiredError}
4213
         */
4214 19b68a2e Lukáš Vlček
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4215 3e6b15a7 Lukáš Vlček
            const localVarPath = `/user/annotations`;
4216
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4217
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4218
            let baseOptions;
4219
            if (configuration) {
4220
                baseOptions = configuration.baseOptions;
4221
            }
4222
4223 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4224 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
4225
            const localVarQueryParameter = {} as any;
4226
4227 19b68a2e Lukáš Vlček
4228
    
4229 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4230 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4231
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4232 3e6b15a7 Lukáš Vlček
4233
            return {
4234
                url: toPathString(localVarUrlObj),
4235
                options: localVarRequestOptions,
4236
            };
4237
        },
4238 43d49a98 Jaroslav Hrubý
        /**
4239 19b68a2e Lukáš Vlček
         * 
4240
         * @param {string} userId 
4241 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4242
         * @throws {RequiredError}
4243
         */
4244 19b68a2e Lukáš Vlček
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4245 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
4246 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
4247
            const localVarPath = `/user/{userId}/annotations`
4248
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4249 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4250
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4251
            let baseOptions;
4252
            if (configuration) {
4253
                baseOptions = configuration.baseOptions;
4254
            }
4255
4256 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4257 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4258
            const localVarQueryParameter = {} as any;
4259
4260 19b68a2e Lukáš Vlček
4261
    
4262 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4263 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4264
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4265 43d49a98 Jaroslav Hrubý
4266
            return {
4267
                url: toPathString(localVarUrlObj),
4268
                options: localVarRequestOptions,
4269
            };
4270
        },
4271
        /**
4272 19b68a2e Lukáš Vlček
         * 
4273
         * @param {string} userId 
4274 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4275
         * @throws {RequiredError}
4276
         */
4277 19b68a2e Lukáš Vlček
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4278 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
4279 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdDelete', 'userId', userId)
4280
            const localVarPath = `/user/{userId}`
4281
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4282 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4283
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4284
            let baseOptions;
4285
            if (configuration) {
4286
                baseOptions = configuration.baseOptions;
4287
            }
4288
4289 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4290 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4291
            const localVarQueryParameter = {} as any;
4292
4293 19b68a2e Lukáš Vlček
4294
    
4295 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4296 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4297
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4298 43d49a98 Jaroslav Hrubý
4299
            return {
4300
                url: toPathString(localVarUrlObj),
4301
                options: localVarRequestOptions,
4302
            };
4303
        },
4304
        /**
4305 19b68a2e Lukáš Vlček
         * 
4306
         * @param {string} userId 
4307
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4308 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4309
         * @throws {RequiredError}
4310
         */
4311 19b68a2e Lukáš Vlček
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4312 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
4313 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdPut', 'userId', userId)
4314
            const localVarPath = `/user/{userId}`
4315
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4316 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4317
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4318
            let baseOptions;
4319
            if (configuration) {
4320
                baseOptions = configuration.baseOptions;
4321
            }
4322
4323 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
4324 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4325
            const localVarQueryParameter = {} as any;
4326
4327 19b68a2e Lukáš Vlček
4328
    
4329 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
4330
4331
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4332 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4333
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4334
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
4335 43d49a98 Jaroslav Hrubý
4336
            return {
4337
                url: toPathString(localVarUrlObj),
4338
                options: localVarRequestOptions,
4339
            };
4340
        },
4341 3e6b15a7 Lukáš Vlček
        /**
4342 19b68a2e Lukáš Vlček
         * 
4343 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4344
         * @throws {RequiredError}
4345
         */
4346
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4347
            const localVarPath = `/users`;
4348
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4349
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4350
            let baseOptions;
4351
            if (configuration) {
4352
                baseOptions = configuration.baseOptions;
4353
            }
4354
4355 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4356 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
4357
            const localVarQueryParameter = {} as any;
4358
4359 19b68a2e Lukáš Vlček
4360
    
4361 db0f300f Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4362
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4363
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4364
4365
            return {
4366
                url: toPathString(localVarUrlObj),
4367
                options: localVarRequestOptions,
4368
            };
4369
        },
4370
        /**
4371
         * 
4372
         * @param {*} [options] Override http request option.
4373
         * @throws {RequiredError}
4374
         */
4375
        usersMeGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4376
            const localVarPath = `/users/me`;
4377
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4378
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4379
            let baseOptions;
4380
            if (configuration) {
4381
                baseOptions = configuration.baseOptions;
4382
            }
4383
4384
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4385
            const localVarHeaderParameter = {} as any;
4386
            const localVarQueryParameter = {} as any;
4387
4388
4389
    
4390 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4391 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4392
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4393 3e6b15a7 Lukáš Vlček
4394 43d49a98 Jaroslav Hrubý
            return {
4395
                url: toPathString(localVarUrlObj),
4396
                options: localVarRequestOptions,
4397
            };
4398
        },
4399
        /**
4400 19b68a2e Lukáš Vlček
         * 
4401
         * @param {CreateUserRequest} [createUserRequest] 
4402 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4403
         * @throws {RequiredError}
4404
         */
4405 19b68a2e Lukáš Vlček
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4406 43d49a98 Jaroslav Hrubý
            const localVarPath = `/users`;
4407
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4408
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4409
            let baseOptions;
4410
            if (configuration) {
4411
                baseOptions = configuration.baseOptions;
4412
            }
4413
4414 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4415 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4416
            const localVarQueryParameter = {} as any;
4417
4418 19b68a2e Lukáš Vlček
4419
    
4420 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
4421
4422
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4423 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4424
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4425
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
4426 43d49a98 Jaroslav Hrubý
4427 3e6b15a7 Lukáš Vlček
            return {
4428
                url: toPathString(localVarUrlObj),
4429
                options: localVarRequestOptions,
4430
            };
4431
        },
4432 19b68a2e Lukáš Vlček
    }
4433 3e6b15a7 Lukáš Vlček
};
4434
4435
/**
4436
 * UserApi - functional programming interface
4437
 * @export
4438
 */
4439 19b68a2e Lukáš Vlček
export const UserApiFp = function(configuration?: Configuration) {
4440
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
4441 3e6b15a7 Lukáš Vlček
    return {
4442
        /**
4443 19b68a2e Lukáš Vlček
         * 
4444 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4445
         * @throws {RequiredError}
4446
         */
4447 19b68a2e Lukáš Vlček
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
4448
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
4449
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4450 3e6b15a7 Lukáš Vlček
        },
4451 43d49a98 Jaroslav Hrubý
        /**
4452 19b68a2e Lukáš Vlček
         * 
4453
         * @param {string} userId 
4454 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4455
         * @throws {RequiredError}
4456
         */
4457 19b68a2e Lukáš Vlček
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
4458
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
4459
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4460 43d49a98 Jaroslav Hrubý
        },
4461
        /**
4462 19b68a2e Lukáš Vlček
         * 
4463
         * @param {string} userId 
4464 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4465
         * @throws {RequiredError}
4466
         */
4467 19b68a2e Lukáš Vlček
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4468
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
4469
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4470 43d49a98 Jaroslav Hrubý
        },
4471
        /**
4472 19b68a2e Lukáš Vlček
         * 
4473
         * @param {string} userId 
4474
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4475 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4476
         * @throws {RequiredError}
4477
         */
4478 19b68a2e Lukáš Vlček
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4479
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
4480
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4481 43d49a98 Jaroslav Hrubý
        },
4482 3e6b15a7 Lukáš Vlček
        /**
4483 19b68a2e Lukáš Vlček
         * 
4484 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4485
         * @throws {RequiredError}
4486
         */
4487 19b68a2e Lukáš Vlček
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
4488 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
4489 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4490 3e6b15a7 Lukáš Vlček
        },
4491 db0f300f Jaroslav Hrubý
        /**
4492
         * 
4493
         * @param {*} [options] Override http request option.
4494
         * @throws {RequiredError}
4495
         */
4496
        async usersMeGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeResponse>> {
4497
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersMeGet(options);
4498
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4499
        },
4500 43d49a98 Jaroslav Hrubý
        /**
4501 19b68a2e Lukáš Vlček
         * 
4502
         * @param {CreateUserRequest} [createUserRequest] 
4503 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4504
         * @throws {RequiredError}
4505
         */
4506 19b68a2e Lukáš Vlček
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4507
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
4508
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4509 43d49a98 Jaroslav Hrubý
        },
4510 19b68a2e Lukáš Vlček
    }
4511 3e6b15a7 Lukáš Vlček
};
4512
4513
/**
4514
 * UserApi - factory interface
4515
 * @export
4516
 */
4517 19b68a2e Lukáš Vlček
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4518
    const localVarFp = UserApiFp(configuration)
4519 3e6b15a7 Lukáš Vlček
    return {
4520
        /**
4521 19b68a2e Lukáš Vlček
         * 
4522 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4523
         * @throws {RequiredError}
4524
         */
4525
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
4526 19b68a2e Lukáš Vlček
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
4527 3e6b15a7 Lukáš Vlček
        },
4528 43d49a98 Jaroslav Hrubý
        /**
4529 19b68a2e Lukáš Vlček
         * 
4530
         * @param {string} userId 
4531 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4532
         * @throws {RequiredError}
4533
         */
4534 19b68a2e Lukáš Vlček
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
4535
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
4536 43d49a98 Jaroslav Hrubý
        },
4537
        /**
4538 19b68a2e Lukáš Vlček
         * 
4539
         * @param {string} userId 
4540 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4541
         * @throws {RequiredError}
4542
         */
4543
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
4544 19b68a2e Lukáš Vlček
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
4545 43d49a98 Jaroslav Hrubý
        },
4546
        /**
4547 19b68a2e Lukáš Vlček
         * 
4548
         * @param {string} userId 
4549
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4550 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4551
         * @throws {RequiredError}
4552
         */
4553 19b68a2e Lukáš Vlček
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
4554
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
4555 43d49a98 Jaroslav Hrubý
        },
4556 3e6b15a7 Lukáš Vlček
        /**
4557 19b68a2e Lukáš Vlček
         * 
4558 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4559
         * @throws {RequiredError}
4560
         */
4561
        usersGet(options?: any): AxiosPromise<UserList> {
4562 19b68a2e Lukáš Vlček
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
4563 3e6b15a7 Lukáš Vlček
        },
4564 db0f300f Jaroslav Hrubý
        /**
4565
         * 
4566
         * @param {*} [options] Override http request option.
4567
         * @throws {RequiredError}
4568
         */
4569
        usersMeGet(options?: any): AxiosPromise<UserMeResponse> {
4570
            return localVarFp.usersMeGet(options).then((request) => request(axios, basePath));
4571
        },
4572 43d49a98 Jaroslav Hrubý
        /**
4573 19b68a2e Lukáš Vlček
         * 
4574
         * @param {CreateUserRequest} [createUserRequest] 
4575 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4576
         * @throws {RequiredError}
4577
         */
4578 19b68a2e Lukáš Vlček
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
4579
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
4580 43d49a98 Jaroslav Hrubý
        },
4581 3e6b15a7 Lukáš Vlček
    };
4582
};
4583
4584
/**
4585
 * UserApi - object-oriented interface
4586
 * @export
4587
 * @class UserApi
4588
 * @extends {BaseAPI}
4589
 */
4590
export class UserApi extends BaseAPI {
4591
    /**
4592 19b68a2e Lukáš Vlček
     * 
4593 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
4594
     * @throws {RequiredError}
4595
     * @memberof UserApi
4596
     */
4597
    public userAnnotationsGet(options?: AxiosRequestConfig) {
4598 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
4599 3e6b15a7 Lukáš Vlček
    }
4600
4601 43d49a98 Jaroslav Hrubý
    /**
4602 19b68a2e Lukáš Vlček
     * 
4603
     * @param {string} userId 
4604 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4605
     * @throws {RequiredError}
4606
     * @memberof UserApi
4607
     */
4608
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
4609 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
4610 43d49a98 Jaroslav Hrubý
    }
4611
4612
    /**
4613 19b68a2e Lukáš Vlček
     * 
4614
     * @param {string} userId 
4615 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4616
     * @throws {RequiredError}
4617
     * @memberof UserApi
4618
     */
4619
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
4620 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
4621 43d49a98 Jaroslav Hrubý
    }
4622
4623
    /**
4624 19b68a2e Lukáš Vlček
     * 
4625
     * @param {string} userId 
4626
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4627 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4628
     * @throws {RequiredError}
4629
     * @memberof UserApi
4630
     */
4631 19b68a2e Lukáš Vlček
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
4632
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
4633 43d49a98 Jaroslav Hrubý
    }
4634
4635 3e6b15a7 Lukáš Vlček
    /**
4636 19b68a2e Lukáš Vlček
     * 
4637 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
4638
     * @throws {RequiredError}
4639
     * @memberof UserApi
4640
     */
4641
    public usersGet(options?: AxiosRequestConfig) {
4642 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
4643 3e6b15a7 Lukáš Vlček
    }
4644 43d49a98 Jaroslav Hrubý
4645 db0f300f Jaroslav Hrubý
    /**
4646
     * 
4647
     * @param {*} [options] Override http request option.
4648
     * @throws {RequiredError}
4649
     * @memberof UserApi
4650
     */
4651
    public usersMeGet(options?: AxiosRequestConfig) {
4652
        return UserApiFp(this.configuration).usersMeGet(options).then((request) => request(this.axios, this.basePath));
4653
    }
4654
4655 43d49a98 Jaroslav Hrubý
    /**
4656 19b68a2e Lukáš Vlček
     * 
4657
     * @param {CreateUserRequest} [createUserRequest] 
4658 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4659
     * @throws {RequiredError}
4660
     * @memberof UserApi
4661
     */
4662 19b68a2e Lukáš Vlček
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
4663
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
4664 43d49a98 Jaroslav Hrubý
    }
4665 3e6b15a7 Lukáš Vlček
}
4666 19b68a2e Lukáš Vlček