Projekt

Obecné

Profil

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