Projekt

Obecné

Profil

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