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 fabfbe32 Jaroslav Hrubý
    'finalizedDocumentsCount'?: number;
1876
    /**
1877
     * 
1878
     * @type {number}
1879
     * @memberof UserInfo
1880
     */
1881
    'inProgressDocumentsCount'?: number;
1882
    /**
1883
     * 
1884
     * @type {number}
1885
     * @memberof UserInfo
1886
     */
1887
    'newDocumentsCount'?: number;
1888 cca0bfa0 Lukáš Vlček
    /**
1889
     * 
1890
     * @type {ERole}
1891
     * @memberof UserInfo
1892
     */
1893
    'role'?: ERole;
1894 3e6b15a7 Lukáš Vlček
}
1895
/**
1896 19b68a2e Lukáš Vlček
 * 
1897 3e6b15a7 Lukáš Vlček
 * @export
1898
 * @interface UserList
1899
 */
1900
export interface UserList {
1901
    /**
1902 19b68a2e Lukáš Vlček
     * 
1903 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
1904
     * @memberof UserList
1905
     */
1906 19b68a2e Lukáš Vlček
    'users'?: Array<UserInfo> | null;
1907 3e6b15a7 Lukáš Vlček
}
1908 db0f300f Jaroslav Hrubý
/**
1909
 * 
1910
 * @export
1911
 * @interface UserMeResponse
1912
 */
1913
export interface UserMeResponse {
1914
    /**
1915
     * 
1916
     * @type {string}
1917
     * @memberof UserMeResponse
1918
     */
1919
    'name'?: string | null;
1920
    /**
1921
     * 
1922
     * @type {ERole}
1923
     * @memberof UserMeResponse
1924
     */
1925
    'role'?: ERole;
1926
}
1927 3e6b15a7 Lukáš Vlček
1928
/**
1929
 * AnnotationApi - axios parameter creator
1930
 * @export
1931
 */
1932
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
1933
    return {
1934 b51488cd Jaroslav Hrubý
        /**
1935
         * 
1936
         * @param {string} annotationId 
1937 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1938 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
1939
         * @param {*} [options] Override http request option.
1940
         * @throws {RequiredError}
1941
         */
1942 048b4bc0 Lukáš Vlček
        annotationAnnotationIdDonePut: async (annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1943 b51488cd Jaroslav Hrubý
            // verify required parameter 'annotationId' is not null or undefined
1944
            assertParamExists('annotationAnnotationIdDonePut', 'annotationId', annotationId)
1945
            const localVarPath = `/annotation/{annotationId}/done`
1946
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1947
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1948
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1949
            let baseOptions;
1950
            if (configuration) {
1951
                baseOptions = configuration.baseOptions;
1952
            }
1953
1954
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1955
            const localVarHeaderParameter = {} as any;
1956
            const localVarQueryParameter = {} as any;
1957
1958 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1959
                localVarQueryParameter['isFinal'] = isFinal;
1960
            }
1961
1962 b51488cd Jaroslav Hrubý
1963
    
1964
            localVarHeaderParameter['Content-Type'] = 'application/json';
1965
1966
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1967
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1968
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1969
            localVarRequestOptions.data = serializeDataIfNeeded(markAnnotationDoneRequest, localVarRequestOptions, configuration)
1970
1971
            return {
1972
                url: toPathString(localVarUrlObj),
1973
                options: localVarRequestOptions,
1974
            };
1975
        },
1976 3e6b15a7 Lukáš Vlček
        /**
1977 19b68a2e Lukáš Vlček
         * 
1978
         * @param {string} annotationId 
1979 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1980 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1981
         * @throws {RequiredError}
1982
         */
1983 048b4bc0 Lukáš Vlček
        annotationAnnotationIdGet: async (annotationId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1984 dd747fc5 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1985 19b68a2e Lukáš Vlček
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
1986
            const localVarPath = `/annotation/{annotationId}`
1987
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1988 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1989
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1990
            let baseOptions;
1991
            if (configuration) {
1992
                baseOptions = configuration.baseOptions;
1993
            }
1994
1995 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1996 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1997
            const localVarQueryParameter = {} as any;
1998
1999 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2000
                localVarQueryParameter['isFinal'] = isFinal;
2001
            }
2002
2003 19b68a2e Lukáš Vlček
2004
    
2005 9fdb7d55 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2006 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2007
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2008 9fdb7d55 Lukáš Vlček
2009
            return {
2010
                url: toPathString(localVarUrlObj),
2011
                options: localVarRequestOptions,
2012
            };
2013
        },
2014
        /**
2015 19b68a2e Lukáš Vlček
         * 
2016
         * @param {string} annotationId 
2017 cca0bfa0 Lukáš Vlček
         * @param {string} instanceId 
2018 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2019 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2020 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
2021
         * @throws {RequiredError}
2022
         */
2023 048b4bc0 Lukáš Vlček
        annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2024 9fdb7d55 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2025 cca0bfa0 Lukáš Vlček
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
2026
            // verify required parameter 'instanceId' is not null or undefined
2027
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
2028
            const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
2029 19b68a2e Lukáš Vlček
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2030 cca0bfa0 Lukáš Vlček
                .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
2031 9fdb7d55 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2032
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2033
            let baseOptions;
2034
            if (configuration) {
2035
                baseOptions = configuration.baseOptions;
2036
            }
2037
2038 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2039 9fdb7d55 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2040
            const localVarQueryParameter = {} as any;
2041
2042 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2043
                localVarQueryParameter['isFinal'] = isFinal;
2044
            }
2045
2046 19b68a2e Lukáš Vlček
2047
    
2048 cca0bfa0 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2049
2050 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2051 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2052
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2053 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
2054 3e6b15a7 Lukáš Vlček
2055
            return {
2056
                url: toPathString(localVarUrlObj),
2057
                options: localVarRequestOptions,
2058
            };
2059
        },
2060 4bc99591 Lukáš Vlček
        /**
2061 19b68a2e Lukáš Vlček
         * 
2062
         * @param {string} annotationId 
2063 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2064 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2065 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
2066
         * @throws {RequiredError}
2067
         */
2068 048b4bc0 Lukáš Vlček
        annotationAnnotationIdNotePost: async (annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2069 4bc99591 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2070 cca0bfa0 Lukáš Vlček
            assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
2071
            const localVarPath = `/annotation/{annotationId}/note`
2072 19b68a2e Lukáš Vlček
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
2073 4bc99591 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2074
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2075
            let baseOptions;
2076
            if (configuration) {
2077
                baseOptions = configuration.baseOptions;
2078
            }
2079
2080 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2081 4bc99591 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2082
            const localVarQueryParameter = {} as any;
2083
2084 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2085
                localVarQueryParameter['isFinal'] = isFinal;
2086
            }
2087
2088 19b68a2e Lukáš Vlček
2089
    
2090 4bc99591 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2091
2092
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2093 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2094
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2095 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
2096 4bc99591 Lukáš Vlček
2097
            return {
2098
                url: toPathString(localVarUrlObj),
2099
                options: localVarRequestOptions,
2100
            };
2101
        },
2102 3e6b15a7 Lukáš Vlček
        /**
2103 19b68a2e Lukáš Vlček
         * 
2104 cca0bfa0 Lukáš Vlček
         * @param {string} annotationId 
2105
         * @param {string} occurenceId 
2106 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2107 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2108
         * @throws {RequiredError}
2109
         */
2110 048b4bc0 Lukáš Vlček
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2111 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2112
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
2113
            // verify required parameter 'occurenceId' is not null or undefined
2114
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
2115
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
2116
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2117
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2118 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2119
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2120
            let baseOptions;
2121
            if (configuration) {
2122
                baseOptions = configuration.baseOptions;
2123
            }
2124
2125 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2126 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2127
            const localVarQueryParameter = {} as any;
2128
2129 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2130
                localVarQueryParameter['isFinal'] = isFinal;
2131
            }
2132
2133 19b68a2e Lukáš Vlček
2134
    
2135 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2136 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2137
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2138 3e6b15a7 Lukáš Vlček
2139
            return {
2140
                url: toPathString(localVarUrlObj),
2141
                options: localVarRequestOptions,
2142
            };
2143
        },
2144 b80a6919 Lukáš Vlček
        /**
2145
         * 
2146
         * @param {string} annotationId 
2147
         * @param {string} occurenceId 
2148
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2149
         * @param {*} [options] Override http request option.
2150
         * @throws {RequiredError}
2151
         */
2152
        annotationAnnotationIdOccurenceIdFinalPut: async (annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2153
            // verify required parameter 'annotationId' is not null or undefined
2154
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'annotationId', annotationId)
2155
            // verify required parameter 'occurenceId' is not null or undefined
2156
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'occurenceId', occurenceId)
2157
            const localVarPath = `/annotation/{annotationId}/{occurenceId}/final`
2158
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2159
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2160
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2161
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2162
            let baseOptions;
2163
            if (configuration) {
2164
                baseOptions = configuration.baseOptions;
2165
            }
2166
2167
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2168
            const localVarHeaderParameter = {} as any;
2169
            const localVarQueryParameter = {} as any;
2170
2171
2172
    
2173
            localVarHeaderParameter['Content-Type'] = 'application/json';
2174
2175
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2176
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2177
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2178
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceIsFinalRequest, localVarRequestOptions, configuration)
2179
2180
            return {
2181
                url: toPathString(localVarUrlObj),
2182
                options: localVarRequestOptions,
2183
            };
2184
        },
2185 3e6b15a7 Lukáš Vlček
        /**
2186 19b68a2e Lukáš Vlček
         * 
2187
         * @param {string} annotationId 
2188 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2189 cca0bfa0 Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2190 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2191
         * @throws {RequiredError}
2192
         */
2193 048b4bc0 Lukáš Vlček
        annotationAnnotationIdPost: async (annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2194 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2195
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
2196
            const localVarPath = `/annotation/{annotationId}`
2197
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
2198
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2199
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2200
            let baseOptions;
2201
            if (configuration) {
2202
                baseOptions = configuration.baseOptions;
2203
            }
2204
2205
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2206
            const localVarHeaderParameter = {} as any;
2207
            const localVarQueryParameter = {} as any;
2208
2209 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2210
                localVarQueryParameter['isFinal'] = isFinal;
2211
            }
2212
2213 cca0bfa0 Lukáš Vlček
2214
    
2215
            localVarHeaderParameter['Content-Type'] = 'application/json';
2216
2217
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2218
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2219
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2220
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
2221
2222
            return {
2223
                url: toPathString(localVarUrlObj),
2224
                options: localVarRequestOptions,
2225
            };
2226
        },
2227
        /**
2228
         * 
2229
         * @param {string} annotationId 
2230
         * @param {string} occurenceId 
2231 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2232 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2233
         * @param {*} [options] Override http request option.
2234
         * @throws {RequiredError}
2235
         */
2236 048b4bc0 Lukáš Vlček
        annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2237 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
2238
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
2239
            // verify required parameter 'occurenceId' is not null or undefined
2240
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
2241
            const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
2242
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2243
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2244
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2245
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2246
            let baseOptions;
2247
            if (configuration) {
2248
                baseOptions = configuration.baseOptions;
2249
            }
2250
2251
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2252
            const localVarHeaderParameter = {} as any;
2253
            const localVarQueryParameter = {} as any;
2254
2255 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
2256
                localVarQueryParameter['isFinal'] = isFinal;
2257
            }
2258
2259 cca0bfa0 Lukáš Vlček
2260
    
2261
            localVarHeaderParameter['Content-Type'] = 'application/json';
2262
2263
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2264
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2265
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2266
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
2267
2268
            return {
2269
                url: toPathString(localVarUrlObj),
2270
                options: localVarRequestOptions,
2271
            };
2272
        },
2273
        /**
2274
         * 
2275
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2276
         * @param {*} [options] Override http request option.
2277
         * @throws {RequiredError}
2278
         */
2279
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2280
            const localVarPath = `/annotations`;
2281
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2282
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2283
            let baseOptions;
2284
            if (configuration) {
2285
                baseOptions = configuration.baseOptions;
2286
            }
2287
2288
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2289
            const localVarHeaderParameter = {} as any;
2290
            const localVarQueryParameter = {} as any;
2291
2292
2293
    
2294
            localVarHeaderParameter['Content-Type'] = 'application/json';
2295
2296
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2297
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2298
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2299
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
2300
2301
            return {
2302
                url: toPathString(localVarUrlObj),
2303
                options: localVarRequestOptions,
2304
            };
2305
        },
2306
    }
2307
};
2308
2309
/**
2310
 * AnnotationApi - functional programming interface
2311
 * @export
2312
 */
2313
export const AnnotationApiFp = function(configuration?: Configuration) {
2314
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
2315
    return {
2316 b51488cd Jaroslav Hrubý
        /**
2317
         * 
2318
         * @param {string} annotationId 
2319 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2320 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2321
         * @param {*} [options] Override http request option.
2322
         * @throws {RequiredError}
2323
         */
2324 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2325
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options);
2326 b51488cd Jaroslav Hrubý
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2327
        },
2328 cca0bfa0 Lukáš Vlček
        /**
2329
         * 
2330
         * @param {string} annotationId 
2331 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2332 cca0bfa0 Lukáš Vlček
         * @param {*} [options] Override http request option.
2333
         * @throws {RequiredError}
2334
         */
2335 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
2336
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, isFinal, options);
2337 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2338 3e6b15a7 Lukáš Vlček
        },
2339 cca0bfa0 Lukáš Vlček
        /**
2340
         * 
2341
         * @param {string} annotationId 
2342
         * @param {string} instanceId 
2343 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2344 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2345
         * @param {*} [options] Override http request option.
2346
         * @throws {RequiredError}
2347
         */
2348 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2349
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options);
2350 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2351
        },
2352
        /**
2353
         * 
2354
         * @param {string} annotationId 
2355 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2356 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2357
         * @param {*} [options] Override http request option.
2358
         * @throws {RequiredError}
2359
         */
2360 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2361
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options);
2362 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2363
        },
2364 9fdb7d55 Lukáš Vlček
        /**
2365 19b68a2e Lukáš Vlček
         * 
2366
         * @param {string} annotationId 
2367
         * @param {string} occurenceId 
2368 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2369 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
2370
         * @throws {RequiredError}
2371
         */
2372 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2373
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options);
2374 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2375 9fdb7d55 Lukáš Vlček
        },
2376 b80a6919 Lukáš Vlček
        /**
2377
         * 
2378
         * @param {string} annotationId 
2379
         * @param {string} occurenceId 
2380
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2381
         * @param {*} [options] Override http request option.
2382
         * @throws {RequiredError}
2383
         */
2384
        async annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2385
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options);
2386
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2387
        },
2388 4bc99591 Lukáš Vlček
        /**
2389 19b68a2e Lukáš Vlček
         * 
2390
         * @param {string} annotationId 
2391 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2392 19b68a2e Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2393 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
2394
         * @throws {RequiredError}
2395
         */
2396 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2397
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options);
2398 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2399 4bc99591 Lukáš Vlček
        },
2400 cca0bfa0 Lukáš Vlček
        /**
2401
         * 
2402
         * @param {string} annotationId 
2403
         * @param {string} occurenceId 
2404 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2405 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2406
         * @param {*} [options] Override http request option.
2407
         * @throws {RequiredError}
2408
         */
2409 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2410
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options);
2411 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2412
        },
2413 3e6b15a7 Lukáš Vlček
        /**
2414 19b68a2e Lukáš Vlček
         * 
2415
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2416 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2417
         * @throws {RequiredError}
2418
         */
2419 19b68a2e Lukáš Vlček
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2420
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
2421
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2422 3e6b15a7 Lukáš Vlček
        },
2423 19b68a2e Lukáš Vlček
    }
2424 3e6b15a7 Lukáš Vlček
};
2425
2426
/**
2427
 * AnnotationApi - factory interface
2428
 * @export
2429
 */
2430 19b68a2e Lukáš Vlček
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2431
    const localVarFp = AnnotationApiFp(configuration)
2432 3e6b15a7 Lukáš Vlček
    return {
2433 b51488cd Jaroslav Hrubý
        /**
2434
         * 
2435
         * @param {string} annotationId 
2436 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2437 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2438
         * @param {*} [options] Override http request option.
2439
         * @throws {RequiredError}
2440
         */
2441 048b4bc0 Lukáš Vlček
        annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: any): AxiosPromise<void> {
2442
            return localVarFp.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(axios, basePath));
2443 b51488cd Jaroslav Hrubý
        },
2444 3e6b15a7 Lukáš Vlček
        /**
2445 19b68a2e Lukáš Vlček
         * 
2446
         * @param {string} annotationId 
2447 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2448 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2449
         * @throws {RequiredError}
2450
         */
2451 048b4bc0 Lukáš Vlček
        annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: any): AxiosPromise<AnnotationInfo> {
2452
            return localVarFp.annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(axios, basePath));
2453 3e6b15a7 Lukáš Vlček
        },
2454 cca0bfa0 Lukáš Vlček
        /**
2455
         * 
2456
         * @param {string} annotationId 
2457
         * @param {string} instanceId 
2458 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2459 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2460
         * @param {*} [options] Override http request option.
2461
         * @throws {RequiredError}
2462
         */
2463 048b4bc0 Lukáš Vlček
        annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
2464
            return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
2465 cca0bfa0 Lukáš Vlček
        },
2466
        /**
2467
         * 
2468
         * @param {string} annotationId 
2469 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2470 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2471
         * @param {*} [options] Override http request option.
2472
         * @throws {RequiredError}
2473
         */
2474 048b4bc0 Lukáš Vlček
        annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
2475
            return localVarFp.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
2476 cca0bfa0 Lukáš Vlček
        },
2477 9fdb7d55 Lukáš Vlček
        /**
2478 19b68a2e Lukáš Vlček
         * 
2479
         * @param {string} annotationId 
2480
         * @param {string} occurenceId 
2481 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2482 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
2483
         * @throws {RequiredError}
2484
         */
2485 048b4bc0 Lukáš Vlček
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: any): AxiosPromise<void> {
2486
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(axios, basePath));
2487 9fdb7d55 Lukáš Vlček
        },
2488 b80a6919 Lukáš Vlček
        /**
2489
         * 
2490
         * @param {string} annotationId 
2491
         * @param {string} occurenceId 
2492
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2493
         * @param {*} [options] Override http request option.
2494
         * @throws {RequiredError}
2495
         */
2496
        annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: any): AxiosPromise<void> {
2497
            return localVarFp.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(axios, basePath));
2498
        },
2499 4bc99591 Lukáš Vlček
        /**
2500 19b68a2e Lukáš Vlček
         * 
2501
         * @param {string} annotationId 
2502 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2503 19b68a2e Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2504 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
2505
         * @throws {RequiredError}
2506
         */
2507 048b4bc0 Lukáš Vlček
        annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
2508
            return localVarFp.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
2509 4bc99591 Lukáš Vlček
        },
2510 cca0bfa0 Lukáš Vlček
        /**
2511
         * 
2512
         * @param {string} annotationId 
2513
         * @param {string} occurenceId 
2514 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
2515 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2516
         * @param {*} [options] Override http request option.
2517
         * @throws {RequiredError}
2518
         */
2519 048b4bc0 Lukáš Vlček
        annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
2520
            return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
2521 cca0bfa0 Lukáš Vlček
        },
2522 3e6b15a7 Lukáš Vlček
        /**
2523 19b68a2e Lukáš Vlček
         * 
2524
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2525 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2526
         * @throws {RequiredError}
2527
         */
2528 19b68a2e Lukáš Vlček
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
2529
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
2530 3e6b15a7 Lukáš Vlček
        },
2531
    };
2532
};
2533
2534
/**
2535
 * AnnotationApi - object-oriented interface
2536
 * @export
2537
 * @class AnnotationApi
2538
 * @extends {BaseAPI}
2539
 */
2540
export class AnnotationApi extends BaseAPI {
2541 b51488cd Jaroslav Hrubý
    /**
2542
     * 
2543
     * @param {string} annotationId 
2544 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2545 b51488cd Jaroslav Hrubý
     * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2546
     * @param {*} [options] Override http request option.
2547
     * @throws {RequiredError}
2548
     * @memberof AnnotationApi
2549
     */
2550 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig) {
2551
        return AnnotationApiFp(this.configuration).annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(this.axios, this.basePath));
2552 b51488cd Jaroslav Hrubý
    }
2553
2554 3e6b15a7 Lukáš Vlček
    /**
2555 19b68a2e Lukáš Vlček
     * 
2556
     * @param {string} annotationId 
2557 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2558 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2559
     * @throws {RequiredError}
2560
     * @memberof AnnotationApi
2561
     */
2562 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
2563
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(this.axios, this.basePath));
2564 3e6b15a7 Lukáš Vlček
    }
2565
2566 cca0bfa0 Lukáš Vlček
    /**
2567
     * 
2568
     * @param {string} annotationId 
2569
     * @param {string} instanceId 
2570 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2571 cca0bfa0 Lukáš Vlček
     * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2572
     * @param {*} [options] Override http request option.
2573
     * @throws {RequiredError}
2574
     * @memberof AnnotationApi
2575
     */
2576 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
2577
        return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
2578 cca0bfa0 Lukáš Vlček
    }
2579
2580
    /**
2581
     * 
2582
     * @param {string} annotationId 
2583 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2584 cca0bfa0 Lukáš Vlček
     * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2585
     * @param {*} [options] Override http request option.
2586
     * @throws {RequiredError}
2587
     * @memberof AnnotationApi
2588
     */
2589 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
2590
        return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
2591 cca0bfa0 Lukáš Vlček
    }
2592
2593 9fdb7d55 Lukáš Vlček
    /**
2594 19b68a2e Lukáš Vlček
     * 
2595
     * @param {string} annotationId 
2596
     * @param {string} occurenceId 
2597 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2598 9fdb7d55 Lukáš Vlček
     * @param {*} [options] Override http request option.
2599
     * @throws {RequiredError}
2600
     * @memberof AnnotationApi
2601
     */
2602 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
2603
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(this.axios, this.basePath));
2604 9fdb7d55 Lukáš Vlček
    }
2605
2606 b80a6919 Lukáš Vlček
    /**
2607
     * 
2608
     * @param {string} annotationId 
2609
     * @param {string} occurenceId 
2610
     * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2611
     * @param {*} [options] Override http request option.
2612
     * @throws {RequiredError}
2613
     * @memberof AnnotationApi
2614
     */
2615
    public annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig) {
2616
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(this.axios, this.basePath));
2617
    }
2618
2619 4bc99591 Lukáš Vlček
    /**
2620 19b68a2e Lukáš Vlček
     * 
2621
     * @param {string} annotationId 
2622 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2623 19b68a2e Lukáš Vlček
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2624 4bc99591 Lukáš Vlček
     * @param {*} [options] Override http request option.
2625
     * @throws {RequiredError}
2626
     * @memberof AnnotationApi
2627
     */
2628 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
2629
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
2630 4bc99591 Lukáš Vlček
    }
2631
2632 cca0bfa0 Lukáš Vlček
    /**
2633
     * 
2634
     * @param {string} annotationId 
2635
     * @param {string} occurenceId 
2636 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
2637 cca0bfa0 Lukáš Vlček
     * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2638
     * @param {*} [options] Override http request option.
2639
     * @throws {RequiredError}
2640
     * @memberof AnnotationApi
2641
     */
2642 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
2643
        return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
2644 cca0bfa0 Lukáš Vlček
    }
2645
2646 3e6b15a7 Lukáš Vlček
    /**
2647 19b68a2e Lukáš Vlček
     * 
2648
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2649 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2650
     * @throws {RequiredError}
2651
     * @memberof AnnotationApi
2652
     */
2653 19b68a2e Lukáš Vlček
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
2654
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
2655 3e6b15a7 Lukáš Vlček
    }
2656
}
2657
2658 19b68a2e Lukáš Vlček
2659 3e6b15a7 Lukáš Vlček
/**
2660
 * AuthApi - axios parameter creator
2661
 * @export
2662
 */
2663
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
2664
    return {
2665
        /**
2666 19b68a2e Lukáš Vlček
         * 
2667
         * @param {LoginRequest} [loginRequest] 
2668 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2669
         * @throws {RequiredError}
2670
         */
2671 19b68a2e Lukáš Vlček
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2672 3e6b15a7 Lukáš Vlček
            const localVarPath = `/auth/login`;
2673
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2674
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2675
            let baseOptions;
2676
            if (configuration) {
2677
                baseOptions = configuration.baseOptions;
2678
            }
2679
2680 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2681 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2682
            const localVarQueryParameter = {} as any;
2683
2684 19b68a2e Lukáš Vlček
2685
    
2686 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2687
2688
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2689 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2690
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2691
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
2692 3e6b15a7 Lukáš Vlček
2693
            return {
2694
                url: toPathString(localVarUrlObj),
2695
                options: localVarRequestOptions,
2696
            };
2697
        },
2698
        /**
2699 19b68a2e Lukáš Vlček
         * 
2700 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2701
         * @throws {RequiredError}
2702
         */
2703
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2704
            const localVarPath = `/auth/test/aa`;
2705
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2706
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2707
            let baseOptions;
2708
            if (configuration) {
2709
                baseOptions = configuration.baseOptions;
2710
            }
2711
2712 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2713 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2714
            const localVarQueryParameter = {} as any;
2715
2716 19b68a2e Lukáš Vlček
2717
    
2718 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2719 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2720
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2721 3e6b15a7 Lukáš Vlček
2722
            return {
2723
                url: toPathString(localVarUrlObj),
2724
                options: localVarRequestOptions,
2725
            };
2726
        },
2727
        /**
2728 19b68a2e Lukáš Vlček
         * 
2729 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2730
         * @throws {RequiredError}
2731
         */
2732
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2733
            const localVarPath = `/auth/test`;
2734
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2735
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2736
            let baseOptions;
2737
            if (configuration) {
2738
                baseOptions = configuration.baseOptions;
2739
            }
2740
2741 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2742 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2743
            const localVarQueryParameter = {} as any;
2744
2745 19b68a2e Lukáš Vlček
2746
    
2747 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2748 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2749
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2750 3e6b15a7 Lukáš Vlček
2751
            return {
2752
                url: toPathString(localVarUrlObj),
2753
                options: localVarRequestOptions,
2754
            };
2755
        },
2756 19b68a2e Lukáš Vlček
    }
2757 3e6b15a7 Lukáš Vlček
};
2758
2759
/**
2760
 * AuthApi - functional programming interface
2761
 * @export
2762
 */
2763 19b68a2e Lukáš Vlček
export const AuthApiFp = function(configuration?: Configuration) {
2764
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
2765 3e6b15a7 Lukáš Vlček
    return {
2766
        /**
2767 19b68a2e Lukáš Vlček
         * 
2768
         * @param {LoginRequest} [loginRequest] 
2769 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2770
         * @throws {RequiredError}
2771
         */
2772 19b68a2e Lukáš Vlček
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
2773
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
2774
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2775 3e6b15a7 Lukáš Vlček
        },
2776
        /**
2777 19b68a2e Lukáš Vlček
         * 
2778 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2779
         * @throws {RequiredError}
2780
         */
2781 19b68a2e Lukáš Vlček
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2782
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
2783
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2784 3e6b15a7 Lukáš Vlček
        },
2785
        /**
2786 19b68a2e Lukáš Vlček
         * 
2787 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2788
         * @throws {RequiredError}
2789
         */
2790 19b68a2e Lukáš Vlček
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2791
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
2792
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2793 3e6b15a7 Lukáš Vlček
        },
2794 19b68a2e Lukáš Vlček
    }
2795 3e6b15a7 Lukáš Vlček
};
2796
2797
/**
2798
 * AuthApi - factory interface
2799
 * @export
2800
 */
2801 19b68a2e Lukáš Vlček
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2802
    const localVarFp = AuthApiFp(configuration)
2803 3e6b15a7 Lukáš Vlček
    return {
2804
        /**
2805 19b68a2e Lukáš Vlček
         * 
2806
         * @param {LoginRequest} [loginRequest] 
2807 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2808
         * @throws {RequiredError}
2809
         */
2810 19b68a2e Lukáš Vlček
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
2811
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
2812 3e6b15a7 Lukáš Vlček
        },
2813
        /**
2814 19b68a2e Lukáš Vlček
         * 
2815 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2816
         * @throws {RequiredError}
2817
         */
2818
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
2819 19b68a2e Lukáš Vlček
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
2820 3e6b15a7 Lukáš Vlček
        },
2821
        /**
2822 19b68a2e Lukáš Vlček
         * 
2823 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2824
         * @throws {RequiredError}
2825
         */
2826
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
2827 19b68a2e Lukáš Vlček
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
2828 3e6b15a7 Lukáš Vlček
        },
2829
    };
2830
};
2831
2832
/**
2833
 * AuthApi - object-oriented interface
2834
 * @export
2835
 * @class AuthApi
2836
 * @extends {BaseAPI}
2837
 */
2838
export class AuthApi extends BaseAPI {
2839
    /**
2840 19b68a2e Lukáš Vlček
     * 
2841
     * @param {LoginRequest} [loginRequest] 
2842 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2843
     * @throws {RequiredError}
2844
     * @memberof AuthApi
2845
     */
2846
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
2847 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
2848 3e6b15a7 Lukáš Vlček
    }
2849
2850
    /**
2851 19b68a2e Lukáš Vlček
     * 
2852 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2853
     * @throws {RequiredError}
2854
     * @memberof AuthApi
2855
     */
2856
    public authTestAaGet(options?: AxiosRequestConfig) {
2857 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
2858 3e6b15a7 Lukáš Vlček
    }
2859
2860
    /**
2861 19b68a2e Lukáš Vlček
     * 
2862 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2863
     * @throws {RequiredError}
2864
     * @memberof AuthApi
2865
     */
2866
    public authTestGet(options?: AxiosRequestConfig) {
2867 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
2868 3e6b15a7 Lukáš Vlček
    }
2869
}
2870
2871 19b68a2e Lukáš Vlček
2872 3e6b15a7 Lukáš Vlček
/**
2873
 * DocumentApi - axios parameter creator
2874
 * @export
2875
 */
2876
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
2877
    return {
2878 048b4bc0 Lukáš Vlček
        /**
2879
         * 
2880
         * @param {string} documentId 
2881
         * @param {*} [options] Override http request option.
2882
         * @throws {RequiredError}
2883
         */
2884
        documentDocumentIdFinalPost: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2885
            // verify required parameter 'documentId' is not null or undefined
2886
            assertParamExists('documentDocumentIdFinalPost', 'documentId', documentId)
2887
            const localVarPath = `/document/{documentId}/final`
2888
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2889
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2890
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2891
            let baseOptions;
2892
            if (configuration) {
2893
                baseOptions = configuration.baseOptions;
2894
            }
2895
2896
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2897
            const localVarHeaderParameter = {} as any;
2898
            const localVarQueryParameter = {} as any;
2899
2900
2901
    
2902
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2903
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2904
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2905
2906
            return {
2907
                url: toPathString(localVarUrlObj),
2908
                options: localVarRequestOptions,
2909
            };
2910
        },
2911 cca0bfa0 Lukáš Vlček
        /**
2912
         * 
2913
         * @param {string} documentId 
2914
         * @param {*} [options] Override http request option.
2915
         * @throws {RequiredError}
2916
         */
2917
        documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2918
            // verify required parameter 'documentId' is not null or undefined
2919
            assertParamExists('documentDocumentIdGet', 'documentId', documentId)
2920
            const localVarPath = `/document/{documentId}`
2921
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2922
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2923
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2924
            let baseOptions;
2925
            if (configuration) {
2926
                baseOptions = configuration.baseOptions;
2927
            }
2928
2929
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2930
            const localVarHeaderParameter = {} as any;
2931
            const localVarQueryParameter = {} as any;
2932
2933
2934
    
2935
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2936
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2937
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2938
2939
            return {
2940
                url: toPathString(localVarUrlObj),
2941
                options: localVarRequestOptions,
2942
            };
2943
        },
2944 3e6b15a7 Lukáš Vlček
        /**
2945 19b68a2e Lukáš Vlček
         * 
2946 ef5792a8 Lukáš Vlček
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
2947 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2948
         * @throws {RequiredError}
2949
         */
2950 ef5792a8 Lukáš Vlček
        documentsDelete: async (deleteDocumentsRequest?: DeleteDocumentsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2951 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
2952
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2953
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2954
            let baseOptions;
2955
            if (configuration) {
2956
                baseOptions = configuration.baseOptions;
2957
            }
2958
2959 ef5792a8 Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2960 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2961
            const localVarQueryParameter = {} as any;
2962
2963 ef5792a8 Lukáš Vlček
2964
    
2965
            localVarHeaderParameter['Content-Type'] = 'application/json';
2966
2967
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2968
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2969
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2970
            localVarRequestOptions.data = serializeDataIfNeeded(deleteDocumentsRequest, localVarRequestOptions, configuration)
2971
2972
            return {
2973
                url: toPathString(localVarUrlObj),
2974
                options: localVarRequestOptions,
2975
            };
2976
        },
2977
        /**
2978
         * 
2979
         * @param {string} documentId 
2980
         * @param {string} annotatorId 
2981
         * @param {*} [options] Override http request option.
2982
         * @throws {RequiredError}
2983
         */
2984
        documentsDocumentIdAnnotatorsAnnotatorIdDelete: async (documentId: string, annotatorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2985
            // verify required parameter 'documentId' is not null or undefined
2986
            assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'documentId', documentId)
2987
            // verify required parameter 'annotatorId' is not null or undefined
2988
            assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'annotatorId', annotatorId)
2989
            const localVarPath = `/documents/{documentId}/annotators/{annotatorId}`
2990
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)))
2991
                .replace(`{${"annotatorId"}}`, encodeURIComponent(String(annotatorId)));
2992
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2993
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2994
            let baseOptions;
2995
            if (configuration) {
2996
                baseOptions = configuration.baseOptions;
2997 dd747fc5 Lukáš Vlček
            }
2998 3e6b15a7 Lukáš Vlček
2999 ef5792a8 Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3000
            const localVarHeaderParameter = {} as any;
3001
            const localVarQueryParameter = {} as any;
3002
3003
3004
    
3005
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3006
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3007
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3008
3009
            return {
3010
                url: toPathString(localVarUrlObj),
3011
                options: localVarRequestOptions,
3012
            };
3013
        },
3014
        /**
3015
         * 
3016
         * @param {ExportRequest} [exportRequest] 
3017
         * @param {*} [options] Override http request option.
3018
         * @throws {RequiredError}
3019
         */
3020
        documentsExportPost: async (exportRequest?: ExportRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3021
            const localVarPath = `/documents/export`;
3022
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3023
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3024
            let baseOptions;
3025
            if (configuration) {
3026
                baseOptions = configuration.baseOptions;
3027 dd747fc5 Lukáš Vlček
            }
3028 3e6b15a7 Lukáš Vlček
3029 ef5792a8 Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3030
            const localVarHeaderParameter = {} as any;
3031
            const localVarQueryParameter = {} as any;
3032
3033
3034
    
3035
            localVarHeaderParameter['Content-Type'] = 'application/json';
3036
3037
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3038
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3039
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3040
            localVarRequestOptions.data = serializeDataIfNeeded(exportRequest, localVarRequestOptions, configuration)
3041
3042
            return {
3043
                url: toPathString(localVarUrlObj),
3044
                options: localVarRequestOptions,
3045
            };
3046
        },
3047
        /**
3048
         * 
3049
         * @param {*} [options] Override http request option.
3050
         * @throws {RequiredError}
3051
         */
3052
        documentsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3053
            const localVarPath = `/documents`;
3054
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3055
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3056
            let baseOptions;
3057
            if (configuration) {
3058
                baseOptions = configuration.baseOptions;
3059
            }
3060
3061
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3062
            const localVarHeaderParameter = {} as any;
3063
            const localVarQueryParameter = {} as any;
3064
3065 19b68a2e Lukáš Vlček
3066
    
3067 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3068 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3069
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3070 3e6b15a7 Lukáš Vlček
3071
            return {
3072
                url: toPathString(localVarUrlObj),
3073
                options: localVarRequestOptions,
3074
            };
3075
        },
3076
        /**
3077 19b68a2e Lukáš Vlček
         * 
3078
         * @param {DocumentAddRequest} [documentAddRequest] 
3079 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3080
         * @throws {RequiredError}
3081
         */
3082 19b68a2e Lukáš Vlček
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3083 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
3084
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3085
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3086
            let baseOptions;
3087
            if (configuration) {
3088
                baseOptions = configuration.baseOptions;
3089
            }
3090
3091 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3092 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
3093
            const localVarQueryParameter = {} as any;
3094
3095 19b68a2e Lukáš Vlček
3096
    
3097 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
3098
3099
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3100 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3101
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3102
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
3103
3104
            return {
3105
                url: toPathString(localVarUrlObj),
3106
                options: localVarRequestOptions,
3107 9bfa1e39 Jaroslav Hrubý
            };
3108 19b68a2e Lukáš Vlček
        },
3109
        /**
3110
         * 
3111
         * @param {*} [options] Override http request option.
3112
         * @throws {RequiredError}
3113
         */
3114
        documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3115
            const localVarPath = `/documents/requiredAnnotations/global`;
3116
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3117
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3118
            let baseOptions;
3119
            if (configuration) {
3120
                baseOptions = configuration.baseOptions;
3121
            }
3122
3123
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3124
            const localVarHeaderParameter = {} as any;
3125
            const localVarQueryParameter = {} as any;
3126
3127
3128
    
3129
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3130
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3131
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3132 3e6b15a7 Lukáš Vlček
3133
            return {
3134
                url: toPathString(localVarUrlObj),
3135
                options: localVarRequestOptions,
3136
            };
3137
        },
3138 19b68a2e Lukáš Vlček
        /**
3139
         * 
3140
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3141
         * @param {*} [options] Override http request option.
3142
         * @throws {RequiredError}
3143
         */
3144
        documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3145
            const localVarPath = `/documents/requiredAnnotations/global`;
3146
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3147
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3148
            let baseOptions;
3149
            if (configuration) {
3150
                baseOptions = configuration.baseOptions;
3151
            }
3152
3153
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3154
            const localVarHeaderParameter = {} as any;
3155
            const localVarQueryParameter = {} as any;
3156
3157
3158
    
3159
            localVarHeaderParameter['Content-Type'] = 'application/json';
3160
3161
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3162
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3163
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3164
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
3165
3166
            return {
3167
                url: toPathString(localVarUrlObj),
3168
                options: localVarRequestOptions,
3169
            };
3170
        },
3171
        /**
3172
         * 
3173
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3174
         * @param {*} [options] Override http request option.
3175
         * @throws {RequiredError}
3176
         */
3177
        documentsRequiredAnnotationsPost: async (setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3178
            const localVarPath = `/documents/requiredAnnotations`;
3179
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3180
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3181
            let baseOptions;
3182
            if (configuration) {
3183
                baseOptions = configuration.baseOptions;
3184
            }
3185
3186
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3187
            const localVarHeaderParameter = {} as any;
3188
            const localVarQueryParameter = {} as any;
3189
3190
3191
    
3192
            localVarHeaderParameter['Content-Type'] = 'application/json';
3193
3194
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3195
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3196
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3197
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
3198
3199
            return {
3200
                url: toPathString(localVarUrlObj),
3201
                options: localVarRequestOptions,
3202
            };
3203
        },
3204
    }
3205 3e6b15a7 Lukáš Vlček
};
3206
3207
/**
3208
 * DocumentApi - functional programming interface
3209
 * @export
3210
 */
3211 19b68a2e Lukáš Vlček
export const DocumentApiFp = function(configuration?: Configuration) {
3212
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
3213 3e6b15a7 Lukáš Vlček
    return {
3214 048b4bc0 Lukáš Vlček
        /**
3215
         * 
3216
         * @param {string} documentId 
3217
         * @param {*} [options] Override http request option.
3218
         * @throws {RequiredError}
3219
         */
3220
        async documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFinalAnnotationResponse>> {
3221
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdFinalPost(documentId, options);
3222
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3223
        },
3224 cca0bfa0 Lukáš Vlček
        /**
3225
         * 
3226
         * @param {string} documentId 
3227
         * @param {*} [options] Override http request option.
3228
         * @throws {RequiredError}
3229
         */
3230
        async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
3231
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
3232
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3233
        },
3234 3e6b15a7 Lukáš Vlček
        /**
3235 19b68a2e Lukáš Vlček
         * 
3236 ef5792a8 Lukáš Vlček
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3237
         * @param {*} [options] Override http request option.
3238
         * @throws {RequiredError}
3239
         */
3240
        async documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3241
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDelete(deleteDocumentsRequest, options);
3242
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3243
        },
3244
        /**
3245
         * 
3246
         * @param {string} documentId 
3247
         * @param {string} annotatorId 
3248 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3249
         * @throws {RequiredError}
3250
         */
3251 ef5792a8 Lukáš Vlček
        async documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3252
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options);
3253
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3254
        },
3255
        /**
3256
         * 
3257
         * @param {ExportRequest} [exportRequest] 
3258
         * @param {*} [options] Override http request option.
3259
         * @throws {RequiredError}
3260
         */
3261 9e60bee1 Lukáš Vlček
        async documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
3262 ef5792a8 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsExportPost(exportRequest, options);
3263
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3264
        },
3265
        /**
3266
         * 
3267
         * @param {*} [options] Override http request option.
3268
         * @throws {RequiredError}
3269
         */
3270
        async documentsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
3271
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(options);
3272 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3273 3e6b15a7 Lukáš Vlček
        },
3274
        /**
3275 19b68a2e Lukáš Vlček
         * 
3276
         * @param {DocumentAddRequest} [documentAddRequest] 
3277 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3278
         * @throws {RequiredError}
3279
         */
3280 19b68a2e Lukáš Vlček
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3281
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
3282
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3283 3e6b15a7 Lukáš Vlček
        },
3284 19b68a2e Lukáš Vlček
        /**
3285
         * 
3286
         * @param {*} [options] Override http request option.
3287
         * @throws {RequiredError}
3288
         */
3289
        async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
3290
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
3291
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3292
        },
3293
        /**
3294
         * 
3295
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3296
         * @param {*} [options] Override http request option.
3297
         * @throws {RequiredError}
3298
         */
3299
        async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3300
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
3301
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3302
        },
3303
        /**
3304
         * 
3305
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3306
         * @param {*} [options] Override http request option.
3307
         * @throws {RequiredError}
3308
         */
3309
        async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3310
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
3311
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3312
        },
3313
    }
3314 3e6b15a7 Lukáš Vlček
};
3315
3316
/**
3317
 * DocumentApi - factory interface
3318
 * @export
3319
 */
3320 19b68a2e Lukáš Vlček
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3321
    const localVarFp = DocumentApiFp(configuration)
3322 3e6b15a7 Lukáš Vlček
    return {
3323 048b4bc0 Lukáš Vlček
        /**
3324
         * 
3325
         * @param {string} documentId 
3326
         * @param {*} [options] Override http request option.
3327
         * @throws {RequiredError}
3328
         */
3329
        documentDocumentIdFinalPost(documentId: string, options?: any): AxiosPromise<CreateFinalAnnotationResponse> {
3330
            return localVarFp.documentDocumentIdFinalPost(documentId, options).then((request) => request(axios, basePath));
3331
        },
3332 cca0bfa0 Lukáš Vlček
        /**
3333
         * 
3334
         * @param {string} documentId 
3335
         * @param {*} [options] Override http request option.
3336
         * @throws {RequiredError}
3337
         */
3338
        documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
3339
            return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
3340
        },
3341 3e6b15a7 Lukáš Vlček
        /**
3342 19b68a2e Lukáš Vlček
         * 
3343 ef5792a8 Lukáš Vlček
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3344
         * @param {*} [options] Override http request option.
3345
         * @throws {RequiredError}
3346
         */
3347
        documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: any): AxiosPromise<void> {
3348
            return localVarFp.documentsDelete(deleteDocumentsRequest, options).then((request) => request(axios, basePath));
3349
        },
3350
        /**
3351
         * 
3352
         * @param {string} documentId 
3353
         * @param {string} annotatorId 
3354 19b68a2e Lukáš Vlček
         * @param {*} [options] Override http request option.
3355
         * @throws {RequiredError}
3356
         */
3357 ef5792a8 Lukáš Vlček
        documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: any): AxiosPromise<void> {
3358
            return localVarFp.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(axios, basePath));
3359
        },
3360
        /**
3361
         * 
3362
         * @param {ExportRequest} [exportRequest] 
3363
         * @param {*} [options] Override http request option.
3364
         * @throws {RequiredError}
3365
         */
3366 9e60bee1 Lukáš Vlček
        documentsExportPost(exportRequest?: ExportRequest, options?: any): AxiosPromise<string> {
3367 ef5792a8 Lukáš Vlček
            return localVarFp.documentsExportPost(exportRequest, options).then((request) => request(axios, basePath));
3368
        },
3369
        /**
3370
         * 
3371
         * @param {*} [options] Override http request option.
3372
         * @throws {RequiredError}
3373
         */
3374
        documentsGet(options?: any): AxiosPromise<DocumentListResponse> {
3375
            return localVarFp.documentsGet(options).then((request) => request(axios, basePath));
3376 19b68a2e Lukáš Vlček
        },
3377
        /**
3378
         * 
3379
         * @param {DocumentAddRequest} [documentAddRequest] 
3380
         * @param {*} [options] Override http request option.
3381
         * @throws {RequiredError}
3382
         */
3383
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
3384
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
3385
        },
3386
        /**
3387
         * 
3388
         * @param {*} [options] Override http request option.
3389
         * @throws {RequiredError}
3390
         */
3391
        documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
3392
            return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
3393
        },
3394
        /**
3395
         * 
3396
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3397 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3398
         * @throws {RequiredError}
3399
         */
3400 19b68a2e Lukáš Vlček
        documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
3401
            return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
3402 3e6b15a7 Lukáš Vlček
        },
3403
        /**
3404 19b68a2e Lukáš Vlček
         * 
3405
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3406 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3407
         * @throws {RequiredError}
3408
         */
3409 19b68a2e Lukáš Vlček
        documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
3410
            return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
3411 3e6b15a7 Lukáš Vlček
        },
3412
    };
3413
};
3414
3415
/**
3416
 * DocumentApi - object-oriented interface
3417
 * @export
3418
 * @class DocumentApi
3419
 * @extends {BaseAPI}
3420
 */
3421
export class DocumentApi extends BaseAPI {
3422 048b4bc0 Lukáš Vlček
    /**
3423
     * 
3424
     * @param {string} documentId 
3425
     * @param {*} [options] Override http request option.
3426
     * @throws {RequiredError}
3427
     * @memberof DocumentApi
3428
     */
3429
    public documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig) {
3430
        return DocumentApiFp(this.configuration).documentDocumentIdFinalPost(documentId, options).then((request) => request(this.axios, this.basePath));
3431
    }
3432
3433 cca0bfa0 Lukáš Vlček
    /**
3434
     * 
3435
     * @param {string} documentId 
3436
     * @param {*} [options] Override http request option.
3437
     * @throws {RequiredError}
3438
     * @memberof DocumentApi
3439
     */
3440
    public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
3441
        return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
3442
    }
3443
3444 3e6b15a7 Lukáš Vlček
    /**
3445 19b68a2e Lukáš Vlček
     * 
3446 ef5792a8 Lukáš Vlček
     * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3447
     * @param {*} [options] Override http request option.
3448
     * @throws {RequiredError}
3449
     * @memberof DocumentApi
3450
     */
3451
    public documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig) {
3452
        return DocumentApiFp(this.configuration).documentsDelete(deleteDocumentsRequest, options).then((request) => request(this.axios, this.basePath));
3453
    }
3454
3455
    /**
3456
     * 
3457
     * @param {string} documentId 
3458
     * @param {string} annotatorId 
3459
     * @param {*} [options] Override http request option.
3460
     * @throws {RequiredError}
3461
     * @memberof DocumentApi
3462
     */
3463
    public documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig) {
3464
        return DocumentApiFp(this.configuration).documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(this.axios, this.basePath));
3465
    }
3466
3467
    /**
3468
     * 
3469
     * @param {ExportRequest} [exportRequest] 
3470
     * @param {*} [options] Override http request option.
3471
     * @throws {RequiredError}
3472
     * @memberof DocumentApi
3473
     */
3474
    public documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig) {
3475
        return DocumentApiFp(this.configuration).documentsExportPost(exportRequest, options).then((request) => request(this.axios, this.basePath));
3476
    }
3477
3478
    /**
3479
     * 
3480 19b68a2e Lukáš Vlček
     * @param {*} [options] Override http request option.
3481
     * @throws {RequiredError}
3482
     * @memberof DocumentApi
3483
     */
3484 ef5792a8 Lukáš Vlček
    public documentsGet(options?: AxiosRequestConfig) {
3485
        return DocumentApiFp(this.configuration).documentsGet(options).then((request) => request(this.axios, this.basePath));
3486 19b68a2e Lukáš Vlček
    }
3487
3488
    /**
3489
     * 
3490
     * @param {DocumentAddRequest} [documentAddRequest] 
3491
     * @param {*} [options] Override http request option.
3492
     * @throws {RequiredError}
3493
     * @memberof DocumentApi
3494
     */
3495
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
3496
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
3497
    }
3498
3499
    /**
3500
     * 
3501
     * @param {*} [options] Override http request option.
3502
     * @throws {RequiredError}
3503
     * @memberof DocumentApi
3504
     */
3505
    public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
3506
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
3507
    }
3508
3509
    /**
3510
     * 
3511
     * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3512 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
3513
     * @throws {RequiredError}
3514
     * @memberof DocumentApi
3515
     */
3516 19b68a2e Lukáš Vlček
    public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
3517
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
3518 3e6b15a7 Lukáš Vlček
    }
3519
3520
    /**
3521 19b68a2e Lukáš Vlček
     * 
3522
     * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3523 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
3524
     * @throws {RequiredError}
3525
     * @memberof DocumentApi
3526
     */
3527 19b68a2e Lukáš Vlček
    public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
3528
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
3529 3e6b15a7 Lukáš Vlček
    }
3530
}
3531
3532 19b68a2e Lukáš Vlček
3533 3e6b15a7 Lukáš Vlček
/**
3534
 * TagApi - axios parameter creator
3535
 * @export
3536
 */
3537
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
3538
    return {
3539
        /**
3540 19b68a2e Lukáš Vlček
         * 
3541 cca0bfa0 Lukáš Vlček
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3542 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3543
         * @throws {RequiredError}
3544
         */
3545 cca0bfa0 Lukáš Vlček
        categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3546
            const localVarPath = `/categories`;
3547 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3548
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3549
            let baseOptions;
3550
            if (configuration) {
3551
                baseOptions = configuration.baseOptions;
3552
            }
3553
3554 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3555 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
3556
            const localVarQueryParameter = {} as any;
3557
3558 19b68a2e Lukáš Vlček
3559
    
3560 cca0bfa0 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
3561
3562 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3563 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3564
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3565 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
3566 3e6b15a7 Lukáš Vlček
3567
            return {
3568
                url: toPathString(localVarUrlObj),
3569
                options: localVarRequestOptions,
3570
            };
3571
        },
3572
        /**
3573 19b68a2e Lukáš Vlček
         * 
3574 cca0bfa0 Lukáš Vlček
         * @param {string} categoryId 
3575 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3576
         * @throws {RequiredError}
3577
         */
3578 cca0bfa0 Lukáš Vlček
        categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3579
            // verify required parameter 'categoryId' is not null or undefined
3580
            assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
3581
            const localVarPath = `/category/{categoryId}`
3582
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
3583
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3584
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3585
            let baseOptions;
3586
            if (configuration) {
3587
                baseOptions = configuration.baseOptions;
3588
            }
3589
3590
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3591
            const localVarHeaderParameter = {} as any;
3592
            const localVarQueryParameter = {} as any;
3593
3594
3595
    
3596
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3597
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3598
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3599
3600
            return {
3601
                url: toPathString(localVarUrlObj),
3602
                options: localVarRequestOptions,
3603
            };
3604
        },
3605
        /**
3606
         * 
3607
         * @param {string} categoryId 
3608
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3609
         * @param {*} [options] Override http request option.
3610
         * @throws {RequiredError}
3611
         */
3612
        categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3613
            // verify required parameter 'categoryId' is not null or undefined
3614
            assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
3615
            const localVarPath = `/category/{categoryId}`
3616
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
3617
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3618
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3619
            let baseOptions;
3620
            if (configuration) {
3621
                baseOptions = configuration.baseOptions;
3622
            }
3623
3624
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3625
            const localVarHeaderParameter = {} as any;
3626
            const localVarQueryParameter = {} as any;
3627
3628
3629
    
3630
            localVarHeaderParameter['Content-Type'] = 'application/json';
3631
3632
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3633
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3634
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3635
            localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
3636
3637
            return {
3638
                url: toPathString(localVarUrlObj),
3639
                options: localVarRequestOptions,
3640
            };
3641
        },
3642
        /**
3643
         * 
3644
         * @param {string} subtagId 
3645
         * @param {*} [options] Override http request option.
3646
         * @throws {RequiredError}
3647
         */
3648
        subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3649
            // verify required parameter 'subtagId' is not null or undefined
3650
            assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
3651
            const localVarPath = `/subtag/{subtagId}`
3652
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
3653
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3654
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3655
            let baseOptions;
3656
            if (configuration) {
3657
                baseOptions = configuration.baseOptions;
3658
            }
3659
3660
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3661
            const localVarHeaderParameter = {} as any;
3662
            const localVarQueryParameter = {} as any;
3663
3664
3665
    
3666
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3667
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3668
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3669
3670
            return {
3671
                url: toPathString(localVarUrlObj),
3672
                options: localVarRequestOptions,
3673
            };
3674
        },
3675
        /**
3676
         * 
3677
         * @param {string} subtagId 
3678
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3679
         * @param {*} [options] Override http request option.
3680
         * @throws {RequiredError}
3681
         */
3682
        subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3683
            // verify required parameter 'subtagId' is not null or undefined
3684
            assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
3685
            const localVarPath = `/subtag/{subtagId}`
3686
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
3687
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3688
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3689
            let baseOptions;
3690
            if (configuration) {
3691
                baseOptions = configuration.baseOptions;
3692
            }
3693
3694
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3695
            const localVarHeaderParameter = {} as any;
3696
            const localVarQueryParameter = {} as any;
3697
3698
3699
    
3700
            localVarHeaderParameter['Content-Type'] = 'application/json';
3701
3702
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3703
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3704
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3705
            localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
3706
3707
            return {
3708
                url: toPathString(localVarUrlObj),
3709
                options: localVarRequestOptions,
3710
            };
3711
        },
3712
        /**
3713
         * 
3714
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3715
         * @param {*} [options] Override http request option.
3716
         * @throws {RequiredError}
3717
         */
3718
        subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3719
            const localVarPath = `/subtags`;
3720
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3721
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3722
            let baseOptions;
3723
            if (configuration) {
3724
                baseOptions = configuration.baseOptions;
3725
            }
3726
3727
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3728
            const localVarHeaderParameter = {} as any;
3729
            const localVarQueryParameter = {} as any;
3730
3731
3732
    
3733
            localVarHeaderParameter['Content-Type'] = 'application/json';
3734
3735
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3736
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3737
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3738
            localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
3739
3740
            return {
3741
                url: toPathString(localVarUrlObj),
3742
                options: localVarRequestOptions,
3743
            };
3744
        },
3745
        /**
3746
         * 
3747
         * @param {string} tagId 
3748
         * @param {*} [options] Override http request option.
3749
         * @throws {RequiredError}
3750
         */
3751
        tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3752
            // verify required parameter 'tagId' is not null or undefined
3753
            assertParamExists('tagTagIdDelete', 'tagId', tagId)
3754
            const localVarPath = `/tag/{tagId}`
3755
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
3756
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3757
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3758
            let baseOptions;
3759
            if (configuration) {
3760
                baseOptions = configuration.baseOptions;
3761
            }
3762
3763
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3764
            const localVarHeaderParameter = {} as any;
3765
            const localVarQueryParameter = {} as any;
3766
3767
3768
    
3769
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3770
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3771
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3772
3773
            return {
3774
                url: toPathString(localVarUrlObj),
3775
                options: localVarRequestOptions,
3776
            };
3777
        },
3778
        /**
3779
         * 
3780
         * @param {string} tagId 
3781
         * @param {ModifyTagRequest} [modifyTagRequest] 
3782
         * @param {*} [options] Override http request option.
3783
         * @throws {RequiredError}
3784
         */
3785
        tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3786
            // verify required parameter 'tagId' is not null or undefined
3787
            assertParamExists('tagTagIdPut', 'tagId', tagId)
3788
            const localVarPath = `/tag/{tagId}`
3789
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
3790
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3791
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3792
            let baseOptions;
3793
            if (configuration) {
3794
                baseOptions = configuration.baseOptions;
3795
            }
3796
3797
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3798
            const localVarHeaderParameter = {} as any;
3799
            const localVarQueryParameter = {} as any;
3800
3801
3802
    
3803
            localVarHeaderParameter['Content-Type'] = 'application/json';
3804
3805
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3806
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3807
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3808
            localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
3809
3810
            return {
3811
                url: toPathString(localVarUrlObj),
3812
                options: localVarRequestOptions,
3813
            };
3814
        },
3815
        /**
3816
         * 
3817
         * @param {*} [options] Override http request option.
3818
         * @throws {RequiredError}
3819
         */
3820
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3821
            const localVarPath = `/tags`;
3822
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3823
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3824
            let baseOptions;
3825
            if (configuration) {
3826
                baseOptions = configuration.baseOptions;
3827
            }
3828
3829
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3830
            const localVarHeaderParameter = {} as any;
3831
            const localVarQueryParameter = {} as any;
3832
3833
3834
    
3835
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3836
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3837
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3838
3839
            return {
3840
                url: toPathString(localVarUrlObj),
3841
                options: localVarRequestOptions,
3842
            };
3843
        },
3844
        /**
3845
         * 
3846
         * @param {CreateTagRequest} [createTagRequest] 
3847
         * @param {*} [options] Override http request option.
3848
         * @throws {RequiredError}
3849
         */
3850
        tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3851
            const localVarPath = `/tags`;
3852
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3853
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3854
            let baseOptions;
3855
            if (configuration) {
3856
                baseOptions = configuration.baseOptions;
3857
            }
3858
3859
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3860
            const localVarHeaderParameter = {} as any;
3861
            const localVarQueryParameter = {} as any;
3862
3863
3864
    
3865
            localVarHeaderParameter['Content-Type'] = 'application/json';
3866
3867
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3868
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3869
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3870
            localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
3871
3872
            return {
3873
                url: toPathString(localVarUrlObj),
3874
                options: localVarRequestOptions,
3875
            };
3876
        },
3877
    }
3878
};
3879
3880
/**
3881
 * TagApi - functional programming interface
3882
 * @export
3883
 */
3884
export const TagApiFp = function(configuration?: Configuration) {
3885
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
3886
    return {
3887
        /**
3888
         * 
3889
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3890
         * @param {*} [options] Override http request option.
3891
         * @throws {RequiredError}
3892
         */
3893
        async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3894
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options);
3895
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3896
        },
3897
        /**
3898
         * 
3899
         * @param {string} categoryId 
3900
         * @param {*} [options] Override http request option.
3901
         * @throws {RequiredError}
3902
         */
3903
        async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3904
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options);
3905
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3906
        },
3907
        /**
3908
         * 
3909
         * @param {string} categoryId 
3910
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3911
         * @param {*} [options] Override http request option.
3912
         * @throws {RequiredError}
3913
         */
3914
        async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3915
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options);
3916
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3917
        },
3918
        /**
3919
         * 
3920
         * @param {string} subtagId 
3921
         * @param {*} [options] Override http request option.
3922
         * @throws {RequiredError}
3923
         */
3924
        async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3925
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options);
3926
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3927
        },
3928
        /**
3929
         * 
3930
         * @param {string} subtagId 
3931
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3932
         * @param {*} [options] Override http request option.
3933
         * @throws {RequiredError}
3934
         */
3935
        async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3936
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options);
3937
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3938
        },
3939
        /**
3940
         * 
3941
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3942
         * @param {*} [options] Override http request option.
3943
         * @throws {RequiredError}
3944
         */
3945
        async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3946
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options);
3947
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3948
        },
3949
        /**
3950
         * 
3951
         * @param {string} tagId 
3952
         * @param {*} [options] Override http request option.
3953
         * @throws {RequiredError}
3954
         */
3955
        async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3956
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options);
3957
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3958
        },
3959
        /**
3960
         * 
3961
         * @param {string} tagId 
3962
         * @param {ModifyTagRequest} [modifyTagRequest] 
3963
         * @param {*} [options] Override http request option.
3964
         * @throws {RequiredError}
3965
         */
3966
        async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3967
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options);
3968
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3969
        },
3970
        /**
3971
         * 
3972
         * @param {*} [options] Override http request option.
3973
         * @throws {RequiredError}
3974
         */
3975
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
3976
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
3977
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3978
        },
3979
        /**
3980
         * 
3981
         * @param {CreateTagRequest} [createTagRequest] 
3982
         * @param {*} [options] Override http request option.
3983
         * @throws {RequiredError}
3984
         */
3985
        async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3986
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options);
3987 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3988 3e6b15a7 Lukáš Vlček
        },
3989 19b68a2e Lukáš Vlček
    }
3990 3e6b15a7 Lukáš Vlček
};
3991
3992
/**
3993
 * TagApi - factory interface
3994
 * @export
3995
 */
3996 19b68a2e Lukáš Vlček
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3997
    const localVarFp = TagApiFp(configuration)
3998 3e6b15a7 Lukáš Vlček
    return {
3999 cca0bfa0 Lukáš Vlček
        /**
4000
         * 
4001
         * @param {CreateCategoryRequest} [createCategoryRequest] 
4002
         * @param {*} [options] Override http request option.
4003
         * @throws {RequiredError}
4004
         */
4005
        categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> {
4006
            return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath));
4007
        },
4008
        /**
4009
         * 
4010
         * @param {string} categoryId 
4011
         * @param {*} [options] Override http request option.
4012
         * @throws {RequiredError}
4013
         */
4014
        categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> {
4015
            return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath));
4016
        },
4017
        /**
4018
         * 
4019
         * @param {string} categoryId 
4020
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
4021
         * @param {*} [options] Override http request option.
4022
         * @throws {RequiredError}
4023
         */
4024
        categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> {
4025
            return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath));
4026
        },
4027
        /**
4028
         * 
4029
         * @param {string} subtagId 
4030
         * @param {*} [options] Override http request option.
4031
         * @throws {RequiredError}
4032
         */
4033
        subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> {
4034
            return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath));
4035
        },
4036
        /**
4037
         * 
4038
         * @param {string} subtagId 
4039
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
4040
         * @param {*} [options] Override http request option.
4041
         * @throws {RequiredError}
4042
         */
4043
        subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> {
4044
            return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath));
4045
        },
4046
        /**
4047
         * 
4048
         * @param {CreateSubTagRequest} [createSubTagRequest] 
4049
         * @param {*} [options] Override http request option.
4050
         * @throws {RequiredError}
4051
         */
4052
        subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> {
4053
            return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath));
4054
        },
4055
        /**
4056
         * 
4057
         * @param {string} tagId 
4058
         * @param {*} [options] Override http request option.
4059
         * @throws {RequiredError}
4060
         */
4061
        tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> {
4062
            return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
4063
        },
4064
        /**
4065
         * 
4066
         * @param {string} tagId 
4067
         * @param {ModifyTagRequest} [modifyTagRequest] 
4068
         * @param {*} [options] Override http request option.
4069
         * @throws {RequiredError}
4070
         */
4071
        tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> {
4072
            return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath));
4073
        },
4074 3e6b15a7 Lukáš Vlček
        /**
4075 19b68a2e Lukáš Vlček
         * 
4076 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4077
         * @throws {RequiredError}
4078
         */
4079
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
4080 19b68a2e Lukáš Vlček
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
4081 3e6b15a7 Lukáš Vlček
        },
4082 cca0bfa0 Lukáš Vlček
        /**
4083
         * 
4084
         * @param {CreateTagRequest} [createTagRequest] 
4085
         * @param {*} [options] Override http request option.
4086
         * @throws {RequiredError}
4087
         */
4088
        tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> {
4089
            return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath));
4090
        },
4091 3e6b15a7 Lukáš Vlček
    };
4092
};
4093
4094
/**
4095
 * TagApi - object-oriented interface
4096
 * @export
4097
 * @class TagApi
4098
 * @extends {BaseAPI}
4099
 */
4100
export class TagApi extends BaseAPI {
4101 cca0bfa0 Lukáš Vlček
    /**
4102
     * 
4103
     * @param {CreateCategoryRequest} [createCategoryRequest] 
4104
     * @param {*} [options] Override http request option.
4105
     * @throws {RequiredError}
4106
     * @memberof TagApi
4107
     */
4108
    public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
4109
        return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
4110
    }
4111
4112
    /**
4113
     * 
4114
     * @param {string} categoryId 
4115
     * @param {*} [options] Override http request option.
4116
     * @throws {RequiredError}
4117
     * @memberof TagApi
4118
     */
4119
    public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
4120
        return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
4121
    }
4122
4123
    /**
4124
     * 
4125
     * @param {string} categoryId 
4126
     * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
4127
     * @param {*} [options] Override http request option.
4128
     * @throws {RequiredError}
4129
     * @memberof TagApi
4130
     */
4131
    public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
4132
        return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
4133
    }
4134
4135
    /**
4136
     * 
4137
     * @param {string} subtagId 
4138
     * @param {*} [options] Override http request option.
4139
     * @throws {RequiredError}
4140
     * @memberof TagApi
4141
     */
4142
    public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
4143
        return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
4144
    }
4145
4146
    /**
4147
     * 
4148
     * @param {string} subtagId 
4149
     * @param {ModifySubTagRequest} [modifySubTagRequest] 
4150
     * @param {*} [options] Override http request option.
4151
     * @throws {RequiredError}
4152
     * @memberof TagApi
4153
     */
4154
    public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
4155
        return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
4156
    }
4157
4158
    /**
4159
     * 
4160
     * @param {CreateSubTagRequest} [createSubTagRequest] 
4161
     * @param {*} [options] Override http request option.
4162
     * @throws {RequiredError}
4163
     * @memberof TagApi
4164
     */
4165
    public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
4166
        return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
4167
    }
4168
4169
    /**
4170
     * 
4171
     * @param {string} tagId 
4172
     * @param {*} [options] Override http request option.
4173
     * @throws {RequiredError}
4174
     * @memberof TagApi
4175
     */
4176
    public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
4177
        return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
4178
    }
4179
4180
    /**
4181
     * 
4182
     * @param {string} tagId 
4183
     * @param {ModifyTagRequest} [modifyTagRequest] 
4184
     * @param {*} [options] Override http request option.
4185
     * @throws {RequiredError}
4186
     * @memberof TagApi
4187
     */
4188
    public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
4189
        return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
4190
    }
4191
4192 3e6b15a7 Lukáš Vlček
    /**
4193 19b68a2e Lukáš Vlček
     * 
4194 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
4195
     * @throws {RequiredError}
4196
     * @memberof TagApi
4197
     */
4198
    public tagsGet(options?: AxiosRequestConfig) {
4199 19b68a2e Lukáš Vlček
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
4200 3e6b15a7 Lukáš Vlček
    }
4201 cca0bfa0 Lukáš Vlček
4202
    /**
4203
     * 
4204
     * @param {CreateTagRequest} [createTagRequest] 
4205
     * @param {*} [options] Override http request option.
4206
     * @throws {RequiredError}
4207
     * @memberof TagApi
4208
     */
4209
    public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
4210
        return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
4211
    }
4212 3e6b15a7 Lukáš Vlček
}
4213
4214 19b68a2e Lukáš Vlček
4215 3e6b15a7 Lukáš Vlček
/**
4216
 * UserApi - axios parameter creator
4217
 * @export
4218
 */
4219
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
4220
    return {
4221
        /**
4222 19b68a2e Lukáš Vlček
         * 
4223 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4224
         * @throws {RequiredError}
4225
         */
4226 19b68a2e Lukáš Vlček
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4227 3e6b15a7 Lukáš Vlček
            const localVarPath = `/user/annotations`;
4228
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4229
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4230
            let baseOptions;
4231
            if (configuration) {
4232
                baseOptions = configuration.baseOptions;
4233
            }
4234
4235 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4236 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
4237
            const localVarQueryParameter = {} as any;
4238
4239 19b68a2e Lukáš Vlček
4240
    
4241 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4242 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4243
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4244 3e6b15a7 Lukáš Vlček
4245
            return {
4246
                url: toPathString(localVarUrlObj),
4247
                options: localVarRequestOptions,
4248
            };
4249
        },
4250 43d49a98 Jaroslav Hrubý
        /**
4251 19b68a2e Lukáš Vlček
         * 
4252
         * @param {string} userId 
4253 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4254
         * @throws {RequiredError}
4255
         */
4256 19b68a2e Lukáš Vlček
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4257 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
4258 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
4259
            const localVarPath = `/user/{userId}/annotations`
4260
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4261 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4262
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4263
            let baseOptions;
4264
            if (configuration) {
4265
                baseOptions = configuration.baseOptions;
4266
            }
4267
4268 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4269 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4270
            const localVarQueryParameter = {} as any;
4271
4272 19b68a2e Lukáš Vlček
4273
    
4274 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4275 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4276
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4277 43d49a98 Jaroslav Hrubý
4278
            return {
4279
                url: toPathString(localVarUrlObj),
4280
                options: localVarRequestOptions,
4281
            };
4282
        },
4283
        /**
4284 19b68a2e Lukáš Vlček
         * 
4285
         * @param {string} userId 
4286 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4287
         * @throws {RequiredError}
4288
         */
4289 19b68a2e Lukáš Vlček
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4290 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
4291 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdDelete', 'userId', userId)
4292
            const localVarPath = `/user/{userId}`
4293
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4294 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4295
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4296
            let baseOptions;
4297
            if (configuration) {
4298
                baseOptions = configuration.baseOptions;
4299
            }
4300
4301 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4302 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4303
            const localVarQueryParameter = {} as any;
4304
4305 19b68a2e Lukáš Vlček
4306
    
4307 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4308 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4309
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4310 43d49a98 Jaroslav Hrubý
4311
            return {
4312
                url: toPathString(localVarUrlObj),
4313
                options: localVarRequestOptions,
4314
            };
4315
        },
4316
        /**
4317 19b68a2e Lukáš Vlček
         * 
4318
         * @param {string} userId 
4319
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4320 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4321
         * @throws {RequiredError}
4322
         */
4323 19b68a2e Lukáš Vlček
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4324 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
4325 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdPut', 'userId', userId)
4326
            const localVarPath = `/user/{userId}`
4327
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4328 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4329
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4330
            let baseOptions;
4331
            if (configuration) {
4332
                baseOptions = configuration.baseOptions;
4333
            }
4334
4335 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
4336 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4337
            const localVarQueryParameter = {} as any;
4338
4339 19b68a2e Lukáš Vlček
4340
    
4341 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
4342
4343
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4344 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4345
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4346
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
4347 43d49a98 Jaroslav Hrubý
4348
            return {
4349
                url: toPathString(localVarUrlObj),
4350
                options: localVarRequestOptions,
4351
            };
4352
        },
4353 3e6b15a7 Lukáš Vlček
        /**
4354 19b68a2e Lukáš Vlček
         * 
4355 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4356
         * @throws {RequiredError}
4357
         */
4358
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4359
            const localVarPath = `/users`;
4360
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4361
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4362
            let baseOptions;
4363
            if (configuration) {
4364
                baseOptions = configuration.baseOptions;
4365
            }
4366
4367 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4368 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
4369
            const localVarQueryParameter = {} as any;
4370
4371 19b68a2e Lukáš Vlček
4372
    
4373 db0f300f Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4374
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4375
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4376
4377
            return {
4378
                url: toPathString(localVarUrlObj),
4379
                options: localVarRequestOptions,
4380
            };
4381
        },
4382
        /**
4383
         * 
4384
         * @param {*} [options] Override http request option.
4385
         * @throws {RequiredError}
4386
         */
4387
        usersMeGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4388
            const localVarPath = `/users/me`;
4389
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4390
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4391
            let baseOptions;
4392
            if (configuration) {
4393
                baseOptions = configuration.baseOptions;
4394
            }
4395
4396
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4397
            const localVarHeaderParameter = {} as any;
4398
            const localVarQueryParameter = {} as any;
4399
4400
4401
    
4402 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4403 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4404
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4405 3e6b15a7 Lukáš Vlček
4406 43d49a98 Jaroslav Hrubý
            return {
4407
                url: toPathString(localVarUrlObj),
4408
                options: localVarRequestOptions,
4409
            };
4410
        },
4411
        /**
4412 19b68a2e Lukáš Vlček
         * 
4413
         * @param {CreateUserRequest} [createUserRequest] 
4414 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4415
         * @throws {RequiredError}
4416
         */
4417 19b68a2e Lukáš Vlček
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4418 43d49a98 Jaroslav Hrubý
            const localVarPath = `/users`;
4419
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4420
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4421
            let baseOptions;
4422
            if (configuration) {
4423
                baseOptions = configuration.baseOptions;
4424
            }
4425
4426 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4427 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
4428
            const localVarQueryParameter = {} as any;
4429
4430 19b68a2e Lukáš Vlček
4431
    
4432 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
4433
4434
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4435 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4436
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4437
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
4438 43d49a98 Jaroslav Hrubý
4439 3e6b15a7 Lukáš Vlček
            return {
4440
                url: toPathString(localVarUrlObj),
4441
                options: localVarRequestOptions,
4442
            };
4443
        },
4444 19b68a2e Lukáš Vlček
    }
4445 3e6b15a7 Lukáš Vlček
};
4446
4447
/**
4448
 * UserApi - functional programming interface
4449
 * @export
4450
 */
4451 19b68a2e Lukáš Vlček
export const UserApiFp = function(configuration?: Configuration) {
4452
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
4453 3e6b15a7 Lukáš Vlček
    return {
4454
        /**
4455 19b68a2e Lukáš Vlček
         * 
4456 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4457
         * @throws {RequiredError}
4458
         */
4459 19b68a2e Lukáš Vlček
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
4460
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
4461
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4462 3e6b15a7 Lukáš Vlček
        },
4463 43d49a98 Jaroslav Hrubý
        /**
4464 19b68a2e Lukáš Vlček
         * 
4465
         * @param {string} userId 
4466 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4467
         * @throws {RequiredError}
4468
         */
4469 19b68a2e Lukáš Vlček
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
4470
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
4471
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4472 43d49a98 Jaroslav Hrubý
        },
4473
        /**
4474 19b68a2e Lukáš Vlček
         * 
4475
         * @param {string} userId 
4476 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4477
         * @throws {RequiredError}
4478
         */
4479 19b68a2e Lukáš Vlček
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4480
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
4481
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4482 43d49a98 Jaroslav Hrubý
        },
4483
        /**
4484 19b68a2e Lukáš Vlček
         * 
4485
         * @param {string} userId 
4486
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4487 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4488
         * @throws {RequiredError}
4489
         */
4490 19b68a2e Lukáš Vlček
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4491
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
4492
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4493 43d49a98 Jaroslav Hrubý
        },
4494 3e6b15a7 Lukáš Vlček
        /**
4495 19b68a2e Lukáš Vlček
         * 
4496 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4497
         * @throws {RequiredError}
4498
         */
4499 19b68a2e Lukáš Vlček
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
4500 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
4501 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4502 3e6b15a7 Lukáš Vlček
        },
4503 db0f300f Jaroslav Hrubý
        /**
4504
         * 
4505
         * @param {*} [options] Override http request option.
4506
         * @throws {RequiredError}
4507
         */
4508
        async usersMeGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeResponse>> {
4509
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersMeGet(options);
4510
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4511
        },
4512 43d49a98 Jaroslav Hrubý
        /**
4513 19b68a2e Lukáš Vlček
         * 
4514
         * @param {CreateUserRequest} [createUserRequest] 
4515 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4516
         * @throws {RequiredError}
4517
         */
4518 19b68a2e Lukáš Vlček
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4519
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
4520
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4521 43d49a98 Jaroslav Hrubý
        },
4522 19b68a2e Lukáš Vlček
    }
4523 3e6b15a7 Lukáš Vlček
};
4524
4525
/**
4526
 * UserApi - factory interface
4527
 * @export
4528
 */
4529 19b68a2e Lukáš Vlček
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4530
    const localVarFp = UserApiFp(configuration)
4531 3e6b15a7 Lukáš Vlček
    return {
4532
        /**
4533 19b68a2e Lukáš Vlček
         * 
4534 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4535
         * @throws {RequiredError}
4536
         */
4537
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
4538 19b68a2e Lukáš Vlček
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
4539 3e6b15a7 Lukáš Vlček
        },
4540 43d49a98 Jaroslav Hrubý
        /**
4541 19b68a2e Lukáš Vlček
         * 
4542
         * @param {string} userId 
4543 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4544
         * @throws {RequiredError}
4545
         */
4546 19b68a2e Lukáš Vlček
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
4547
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
4548 43d49a98 Jaroslav Hrubý
        },
4549
        /**
4550 19b68a2e Lukáš Vlček
         * 
4551
         * @param {string} userId 
4552 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4553
         * @throws {RequiredError}
4554
         */
4555
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
4556 19b68a2e Lukáš Vlček
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
4557 43d49a98 Jaroslav Hrubý
        },
4558
        /**
4559 19b68a2e Lukáš Vlček
         * 
4560
         * @param {string} userId 
4561
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4562 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4563
         * @throws {RequiredError}
4564
         */
4565 19b68a2e Lukáš Vlček
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
4566
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
4567 43d49a98 Jaroslav Hrubý
        },
4568 3e6b15a7 Lukáš Vlček
        /**
4569 19b68a2e Lukáš Vlček
         * 
4570 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
4571
         * @throws {RequiredError}
4572
         */
4573
        usersGet(options?: any): AxiosPromise<UserList> {
4574 19b68a2e Lukáš Vlček
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
4575 3e6b15a7 Lukáš Vlček
        },
4576 db0f300f Jaroslav Hrubý
        /**
4577
         * 
4578
         * @param {*} [options] Override http request option.
4579
         * @throws {RequiredError}
4580
         */
4581
        usersMeGet(options?: any): AxiosPromise<UserMeResponse> {
4582
            return localVarFp.usersMeGet(options).then((request) => request(axios, basePath));
4583
        },
4584 43d49a98 Jaroslav Hrubý
        /**
4585 19b68a2e Lukáš Vlček
         * 
4586
         * @param {CreateUserRequest} [createUserRequest] 
4587 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
4588
         * @throws {RequiredError}
4589
         */
4590 19b68a2e Lukáš Vlček
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
4591
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
4592 43d49a98 Jaroslav Hrubý
        },
4593 3e6b15a7 Lukáš Vlček
    };
4594
};
4595
4596
/**
4597
 * UserApi - object-oriented interface
4598
 * @export
4599
 * @class UserApi
4600
 * @extends {BaseAPI}
4601
 */
4602
export class UserApi extends BaseAPI {
4603
    /**
4604 19b68a2e Lukáš Vlček
     * 
4605 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
4606
     * @throws {RequiredError}
4607
     * @memberof UserApi
4608
     */
4609
    public userAnnotationsGet(options?: AxiosRequestConfig) {
4610 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
4611 3e6b15a7 Lukáš Vlček
    }
4612
4613 43d49a98 Jaroslav Hrubý
    /**
4614 19b68a2e Lukáš Vlček
     * 
4615
     * @param {string} userId 
4616 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4617
     * @throws {RequiredError}
4618
     * @memberof UserApi
4619
     */
4620
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
4621 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
4622 43d49a98 Jaroslav Hrubý
    }
4623
4624
    /**
4625 19b68a2e Lukáš Vlček
     * 
4626
     * @param {string} userId 
4627 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4628
     * @throws {RequiredError}
4629
     * @memberof UserApi
4630
     */
4631
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
4632 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
4633 43d49a98 Jaroslav Hrubý
    }
4634
4635
    /**
4636 19b68a2e Lukáš Vlček
     * 
4637
     * @param {string} userId 
4638
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4639 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4640
     * @throws {RequiredError}
4641
     * @memberof UserApi
4642
     */
4643 19b68a2e Lukáš Vlček
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
4644
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
4645 43d49a98 Jaroslav Hrubý
    }
4646
4647 3e6b15a7 Lukáš Vlček
    /**
4648 19b68a2e Lukáš Vlček
     * 
4649 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
4650
     * @throws {RequiredError}
4651
     * @memberof UserApi
4652
     */
4653
    public usersGet(options?: AxiosRequestConfig) {
4654 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
4655 3e6b15a7 Lukáš Vlček
    }
4656 43d49a98 Jaroslav Hrubý
4657 db0f300f Jaroslav Hrubý
    /**
4658
     * 
4659
     * @param {*} [options] Override http request option.
4660
     * @throws {RequiredError}
4661
     * @memberof UserApi
4662
     */
4663
    public usersMeGet(options?: AxiosRequestConfig) {
4664
        return UserApiFp(this.configuration).usersMeGet(options).then((request) => request(this.axios, this.basePath));
4665
    }
4666
4667 43d49a98 Jaroslav Hrubý
    /**
4668 19b68a2e Lukáš Vlček
     * 
4669
     * @param {CreateUserRequest} [createUserRequest] 
4670 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
4671
     * @throws {RequiredError}
4672
     * @memberof UserApi
4673
     */
4674 19b68a2e Lukáš Vlček
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
4675
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
4676 43d49a98 Jaroslav Hrubý
    }
4677 3e6b15a7 Lukáš Vlček
}
4678 19b68a2e Lukáš Vlček