Projekt

Obecné

Profil

Stáhnout (133 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 3e6b15a7 Lukáš Vlček
/**
51 19b68a2e Lukáš Vlček
 * 
52 3e6b15a7 Lukáš Vlček
 * @export
53
 * @interface AnnotationInfo
54
 */
55
export interface AnnotationInfo {
56
    /**
57 19b68a2e Lukáš Vlček
     * 
58 3e6b15a7 Lukáš Vlček
     * @type {string}
59
     * @memberof AnnotationInfo
60
     */
61 19b68a2e Lukáš Vlček
    'sourceDocumentContent'?: string | null;
62 b5f60842 Lukáš Vlček
    /**
63 19b68a2e Lukáš Vlček
     * 
64 b5f60842 Lukáš Vlček
     * @type {string}
65
     * @memberof AnnotationInfo
66
     */
67 19b68a2e Lukáš Vlček
    'documentToRender'?: string | null;
68 b5f60842 Lukáš Vlček
    /**
69 19b68a2e Lukáš Vlček
     * 
70 b5f60842 Lukáš Vlček
     * @type {Array<number>}
71
     * @memberof AnnotationInfo
72
     */
73 19b68a2e Lukáš Vlček
    'tagStartPositions'?: Array<number> | null;
74 b5f60842 Lukáš Vlček
    /**
75 19b68a2e Lukáš Vlček
     * 
76 b5f60842 Lukáš Vlček
     * @type {Array<number>}
77
     * @memberof AnnotationInfo
78
     */
79 19b68a2e Lukáš Vlček
    'tagLengths'?: Array<number> | null;
80 3e6b15a7 Lukáš Vlček
    /**
81 19b68a2e Lukáš Vlček
     * 
82 3e6b15a7 Lukáš Vlček
     * @type {EState}
83
     * @memberof AnnotationInfo
84
     */
85 19b68a2e Lukáš Vlček
    'state'?: EState;
86 3e6b15a7 Lukáš Vlček
    /**
87 19b68a2e Lukáš Vlček
     * 
88 3e6b15a7 Lukáš Vlček
     * @type {EDocumentType}
89
     * @memberof AnnotationInfo
90
     */
91 19b68a2e Lukáš Vlček
    'type'?: EDocumentType;
92 3e6b15a7 Lukáš Vlček
    /**
93 19b68a2e Lukáš Vlček
     * 
94 3e6b15a7 Lukáš Vlček
     * @type {string}
95
     * @memberof AnnotationInfo
96
     */
97 19b68a2e Lukáš Vlček
    'note'?: string | null;
98 3e6b15a7 Lukáš Vlček
    /**
99 19b68a2e Lukáš Vlček
     * 
100 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInstanceInfo>}
101
     * @memberof AnnotationInfo
102
     */
103 19b68a2e Lukáš Vlček
    'tagInstances'?: Array<TagInstanceInfo> | null;
104 f30a7b90 Lukáš Vlček
    /**
105
     * 
106
     * @type {Array<TagInstanceCSSInfo>}
107
     * @memberof AnnotationInfo
108
     */
109
    'cssInfo'?: Array<TagInstanceCSSInfo> | null;
110 3e6b15a7 Lukáš Vlček
}
111 4bc99591 Lukáš Vlček
/**
112 19b68a2e Lukáš Vlček
 * 
113 4bc99591 Lukáš Vlček
 * @export
114
 * @interface AnnotationInstanceAddRequest
115
 */
116
export interface AnnotationInstanceAddRequest {
117
    /**
118 19b68a2e Lukáš Vlček
     * 
119 4bc99591 Lukáš Vlček
     * @type {number}
120
     * @memberof AnnotationInstanceAddRequest
121
     */
122 19b68a2e Lukáš Vlček
    'position'?: number;
123 4bc99591 Lukáš Vlček
    /**
124 19b68a2e Lukáš Vlček
     * 
125 4bc99591 Lukáš Vlček
     * @type {number}
126
     * @memberof AnnotationInstanceAddRequest
127
     */
128 19b68a2e Lukáš Vlček
    'length'?: number;
129 4bc99591 Lukáš Vlček
    /**
130 19b68a2e Lukáš Vlček
     * 
131 4bc99591 Lukáš Vlček
     * @type {ETagType}
132
     * @memberof AnnotationInstanceAddRequest
133
     */
134 19b68a2e Lukáš Vlček
    'type'?: ETagType;
135 4bc99591 Lukáš Vlček
    /**
136 19b68a2e Lukáš Vlček
     * 
137 4bc99591 Lukáš Vlček
     * @type {string}
138
     * @memberof AnnotationInstanceAddRequest
139
     */
140 19b68a2e Lukáš Vlček
    'id'?: string;
141 4bc99591 Lukáš Vlček
    /**
142 19b68a2e Lukáš Vlček
     * 
143 4bc99591 Lukáš Vlček
     * @type {string}
144
     * @memberof AnnotationInstanceAddRequest
145
     */
146 19b68a2e Lukáš Vlček
    'instanceId'?: string | null;
147 f30a7b90 Lukáš Vlček
    /**
148
     * 
149
     * @type {string}
150
     * @memberof AnnotationInstanceAddRequest
151
     */
152
    'selectedText'?: string | null;
153 4bc99591 Lukáš Vlček
}
154 3e6b15a7 Lukáš Vlček
/**
155 19b68a2e Lukáš Vlček
 * 
156 3e6b15a7 Lukáš Vlček
 * @export
157
 * @interface AnnotationListInfo
158
 */
159
export interface AnnotationListInfo {
160
    /**
161 19b68a2e Lukáš Vlček
     * 
162 3e6b15a7 Lukáš Vlček
     * @type {string}
163
     * @memberof AnnotationListInfo
164
     */
165 19b68a2e Lukáš Vlček
    'documentName'?: string | null;
166 3e6b15a7 Lukáš Vlček
    /**
167 19b68a2e Lukáš Vlček
     * 
168 3e6b15a7 Lukáš Vlček
     * @type {EState}
169
     * @memberof AnnotationListInfo
170
     */
171 19b68a2e Lukáš Vlček
    'state'?: EState;
172 3e6b15a7 Lukáš Vlček
    /**
173 19b68a2e Lukáš Vlček
     * 
174 3e6b15a7 Lukáš Vlček
     * @type {string}
175
     * @memberof AnnotationListInfo
176
     */
177 19b68a2e Lukáš Vlček
    'annotationId'?: string;
178 3e6b15a7 Lukáš Vlček
}
179
/**
180 19b68a2e Lukáš Vlček
 * 
181 3e6b15a7 Lukáš Vlček
 * @export
182
 * @interface AnnotationListResponse
183
 */
184
export interface AnnotationListResponse {
185
    /**
186 19b68a2e Lukáš Vlček
     * 
187 3e6b15a7 Lukáš Vlček
     * @type {Array<AnnotationListInfo>}
188
     * @memberof AnnotationListResponse
189
     */
190 19b68a2e Lukáš Vlček
    'annotations'?: Array<AnnotationListInfo> | null;
191 3e6b15a7 Lukáš Vlček
}
192
/**
193 19b68a2e Lukáš Vlček
 * 
194 3e6b15a7 Lukáš Vlček
 * @export
195
 * @interface AnnotationsAddRequest
196
 */
197
export interface AnnotationsAddRequest {
198
    /**
199 19b68a2e Lukáš Vlček
     * 
200 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
201
     * @memberof AnnotationsAddRequest
202
     */
203 19b68a2e Lukáš Vlček
    'userIdList'?: Array<string> | null;
204 3e6b15a7 Lukáš Vlček
    /**
205 19b68a2e Lukáš Vlček
     * 
206 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
207
     * @memberof AnnotationsAddRequest
208
     */
209 19b68a2e Lukáš Vlček
    'documentIdList'?: Array<string> | null;
210 3e6b15a7 Lukáš Vlček
}
211 43d49a98 Jaroslav Hrubý
/**
212 19b68a2e Lukáš Vlček
 * 
213 43d49a98 Jaroslav Hrubý
 * @export
214
 * @interface ChangeUserInfoRequest
215
 */
216
export interface ChangeUserInfoRequest {
217
    /**
218 19b68a2e Lukáš Vlček
     * 
219 43d49a98 Jaroslav Hrubý
     * @type {string}
220
     * @memberof ChangeUserInfoRequest
221
     */
222 19b68a2e Lukáš Vlček
    'password'?: string | null;
223 43d49a98 Jaroslav Hrubý
    /**
224 19b68a2e Lukáš Vlček
     * 
225 43d49a98 Jaroslav Hrubý
     * @type {string}
226
     * @memberof ChangeUserInfoRequest
227
     */
228 19b68a2e Lukáš Vlček
    'username'?: string | null;
229 43d49a98 Jaroslav Hrubý
    /**
230 19b68a2e Lukáš Vlček
     * 
231 43d49a98 Jaroslav Hrubý
     * @type {string}
232
     * @memberof ChangeUserInfoRequest
233
     */
234 19b68a2e Lukáš Vlček
    'name'?: string | null;
235 43d49a98 Jaroslav Hrubý
    /**
236 19b68a2e Lukáš Vlček
     * 
237 43d49a98 Jaroslav Hrubý
     * @type {string}
238
     * @memberof ChangeUserInfoRequest
239
     */
240 19b68a2e Lukáš Vlček
    'surname'?: string | null;
241 43d49a98 Jaroslav Hrubý
    /**
242 19b68a2e Lukáš Vlček
     * 
243 43d49a98 Jaroslav Hrubý
     * @type {ERole}
244
     * @memberof ChangeUserInfoRequest
245
     */
246 19b68a2e Lukáš Vlček
    'role'?: ERole;
247 43d49a98 Jaroslav Hrubý
}
248 3e6b15a7 Lukáš Vlček
/**
249 19b68a2e Lukáš Vlček
 * 
250 3e6b15a7 Lukáš Vlček
 * @export
251
 * @interface ClientInfo
252
 */
253
export interface ClientInfo {
254
    /**
255 19b68a2e Lukáš Vlček
     * 
256 3e6b15a7 Lukáš Vlček
     * @type {boolean}
257
     * @memberof ClientInfo
258
     */
259 19b68a2e Lukáš Vlček
    'isLogged'?: boolean;
260 3e6b15a7 Lukáš Vlček
    /**
261 19b68a2e Lukáš Vlček
     * 
262 3e6b15a7 Lukáš Vlček
     * @type {User}
263
     * @memberof ClientInfo
264
     */
265 19b68a2e Lukáš Vlček
    'loggedUser'?: User;
266 3e6b15a7 Lukáš Vlček
    /**
267 19b68a2e Lukáš Vlček
     * 
268 3e6b15a7 Lukáš Vlček
     * @type {string}
269
     * @memberof ClientInfo
270
     */
271 19b68a2e Lukáš Vlček
    'ip'?: string | null;
272 3e6b15a7 Lukáš Vlček
}
273 cca0bfa0 Lukáš Vlček
/**
274
 * 
275
 * @export
276
 * @interface CreateCategoryRequest
277
 */
278
export interface CreateCategoryRequest {
279
    /**
280
     * 
281
     * @type {string}
282
     * @memberof CreateCategoryRequest
283
     */
284
    'name'?: string | null;
285
    /**
286
     * 
287
     * @type {string}
288
     * @memberof CreateCategoryRequest
289
     */
290
    'description'?: string | null;
291
    /**
292
     * 
293
     * @type {string}
294
     * @memberof CreateCategoryRequest
295
     */
296
    'color'?: string | null;
297
    /**
298
     * 
299
     * @type {boolean}
300
     * @memberof CreateCategoryRequest
301
     */
302
    'disabledForAnnotators'?: boolean;
303
}
304 048b4bc0 Lukáš Vlček
/**
305
 * 
306
 * @export
307
 * @interface CreateFinalAnnotationResponse
308
 */
309
export interface CreateFinalAnnotationResponse {
310
    /**
311
     * 
312
     * @type {string}
313
     * @memberof CreateFinalAnnotationResponse
314
     */
315
    'finalAnnotationId'?: string;
316
}
317 cca0bfa0 Lukáš Vlček
/**
318
 * 
319
 * @export
320
 * @interface CreateSubTagRequest
321
 */
322
export interface CreateSubTagRequest {
323
    /**
324
     * 
325
     * @type {string}
326
     * @memberof CreateSubTagRequest
327
     */
328
    'name'?: string | null;
329
    /**
330
     * 
331
     * @type {string}
332
     * @memberof CreateSubTagRequest
333
     */
334
    'description'?: string | null;
335
    /**
336
     * 
337
     * @type {string}
338
     * @memberof CreateSubTagRequest
339
     */
340
    'tagId'?: string;
341
    /**
342
     * 
343
     * @type {boolean}
344
     * @memberof CreateSubTagRequest
345
     */
346
    'sentimentEnabled'?: boolean;
347
}
348
/**
349
 * 
350
 * @export
351
 * @interface CreateTagRequest
352
 */
353
export interface CreateTagRequest {
354
    /**
355
     * 
356
     * @type {string}
357
     * @memberof CreateTagRequest
358
     */
359
    'categoryId'?: string;
360
    /**
361
     * 
362
     * @type {string}
363
     * @memberof CreateTagRequest
364
     */
365
    'name'?: string | null;
366
    /**
367
     * 
368
     * @type {string}
369
     * @memberof CreateTagRequest
370
     */
371
    'description'?: string | null;
372
    /**
373
     * 
374
     * @type {string}
375
     * @memberof CreateTagRequest
376
     */
377
    'color'?: string | null;
378
    /**
379
     * 
380
     * @type {boolean}
381
     * @memberof CreateTagRequest
382
     */
383
    'sentimentEnabled'?: boolean;
384
}
385 43d49a98 Jaroslav Hrubý
/**
386 19b68a2e Lukáš Vlček
 * 
387 43d49a98 Jaroslav Hrubý
 * @export
388
 * @interface CreateUserRequest
389
 */
390
export interface CreateUserRequest {
391
    /**
392 19b68a2e Lukáš Vlček
     * 
393 43d49a98 Jaroslav Hrubý
     * @type {string}
394
     * @memberof CreateUserRequest
395
     */
396 19b68a2e Lukáš Vlček
    'username'?: string | null;
397 43d49a98 Jaroslav Hrubý
    /**
398 19b68a2e Lukáš Vlček
     * 
399 43d49a98 Jaroslav Hrubý
     * @type {string}
400
     * @memberof CreateUserRequest
401
     */
402 19b68a2e Lukáš Vlček
    'password'?: string | null;
403 43d49a98 Jaroslav Hrubý
    /**
404 19b68a2e Lukáš Vlček
     * 
405 43d49a98 Jaroslav Hrubý
     * @type {string}
406
     * @memberof CreateUserRequest
407
     */
408 19b68a2e Lukáš Vlček
    'name'?: string | null;
409 43d49a98 Jaroslav Hrubý
    /**
410 19b68a2e Lukáš Vlček
     * 
411 43d49a98 Jaroslav Hrubý
     * @type {string}
412
     * @memberof CreateUserRequest
413
     */
414 19b68a2e Lukáš Vlček
    'surname'?: string | null;
415 43d49a98 Jaroslav Hrubý
    /**
416 19b68a2e Lukáš Vlček
     * 
417 43d49a98 Jaroslav Hrubý
     * @type {ERole}
418
     * @memberof CreateUserRequest
419
     */
420 19b68a2e Lukáš Vlček
    'role'?: ERole;
421 43d49a98 Jaroslav Hrubý
}
422 3e6b15a7 Lukáš Vlček
/**
423 19b68a2e Lukáš Vlček
 * 
424 3e6b15a7 Lukáš Vlček
 * @export
425
 * @interface DocumentAddInfo
426
 */
427
export interface DocumentAddInfo {
428
    /**
429 19b68a2e Lukáš Vlček
     * 
430 3e6b15a7 Lukáš Vlček
     * @type {string}
431
     * @memberof DocumentAddInfo
432
     */
433 19b68a2e Lukáš Vlček
    'name'?: string | null;
434 3e6b15a7 Lukáš Vlček
    /**
435 19b68a2e Lukáš Vlček
     * 
436 3e6b15a7 Lukáš Vlček
     * @type {EAddDocumentFormat}
437
     * @memberof DocumentAddInfo
438
     */
439 19b68a2e Lukáš Vlček
    'format'?: EAddDocumentFormat;
440 3e6b15a7 Lukáš Vlček
    /**
441 19b68a2e Lukáš Vlček
     * 
442 3e6b15a7 Lukáš Vlček
     * @type {string}
443
     * @memberof DocumentAddInfo
444
     */
445 19b68a2e Lukáš Vlček
    'content'?: string | null;
446 3e6b15a7 Lukáš Vlček
}
447
/**
448 19b68a2e Lukáš Vlček
 * 
449 3e6b15a7 Lukáš Vlček
 * @export
450
 * @interface DocumentAddRequest
451
 */
452
export interface DocumentAddRequest {
453
    /**
454 19b68a2e Lukáš Vlček
     * 
455 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentAddInfo>}
456
     * @memberof DocumentAddRequest
457
     */
458 19b68a2e Lukáš Vlček
    'documents'?: Array<DocumentAddInfo> | null;
459 3e6b15a7 Lukáš Vlček
}
460 f30a7b90 Lukáš Vlček
/**
461
 * 
462
 * @export
463
 * @interface DocumentAnnotationInfo
464
 */
465
export interface DocumentAnnotationInfo {
466
    /**
467
     * 
468
     * @type {string}
469
     * @memberof DocumentAnnotationInfo
470
     */
471
    'annotationId'?: string;
472
    /**
473
     * 
474
     * @type {string}
475
     * @memberof DocumentAnnotationInfo
476
     */
477
    'userId'?: string;
478
    /**
479
     * 
480
     * @type {string}
481
     * @memberof DocumentAnnotationInfo
482
     */
483
    'userFirstName'?: string | null;
484
    /**
485
     * 
486
     * @type {string}
487
     * @memberof DocumentAnnotationInfo
488
     */
489
    'userSurname'?: string | null;
490
    /**
491
     * 
492
     * @type {string}
493
     * @memberof DocumentAnnotationInfo
494
     */
495
    'username'?: string | null;
496
}
497 3e6b15a7 Lukáš Vlček
/**
498 19b68a2e Lukáš Vlček
 * 
499 3e6b15a7 Lukáš Vlček
 * @export
500
 * @interface DocumentListInfo
501
 */
502
export interface DocumentListInfo {
503
    /**
504 19b68a2e Lukáš Vlček
     * 
505 3e6b15a7 Lukáš Vlček
     * @type {string}
506
     * @memberof DocumentListInfo
507
     */
508 19b68a2e Lukáš Vlček
    'id'?: string;
509 3e6b15a7 Lukáš Vlček
    /**
510 19b68a2e Lukáš Vlček
     * 
511 3e6b15a7 Lukáš Vlček
     * @type {string}
512
     * @memberof DocumentListInfo
513
     */
514 19b68a2e Lukáš Vlček
    'name'?: string | null;
515 3e6b15a7 Lukáš Vlček
    /**
516 19b68a2e Lukáš Vlček
     * 
517 3e6b15a7 Lukáš Vlček
     * @type {number}
518
     * @memberof DocumentListInfo
519
     */
520 19b68a2e Lukáš Vlček
    'length'?: number;
521 3e6b15a7 Lukáš Vlček
    /**
522 19b68a2e Lukáš Vlček
     * 
523 3e6b15a7 Lukáš Vlček
     * @type {number}
524
     * @memberof DocumentListInfo
525
     */
526 19b68a2e Lukáš Vlček
    'requiredAnnotations'?: number;
527 3e6b15a7 Lukáš Vlček
    /**
528 19b68a2e Lukáš Vlček
     * 
529
     * @type {Array<DocumentUserInfo>}
530 3e6b15a7 Lukáš Vlček
     * @memberof DocumentListInfo
531
     */
532 19b68a2e Lukáš Vlček
    'annotatingUsers'?: Array<DocumentUserInfo> | null;
533 f30a7b90 Lukáš Vlček
    /**
534
     * 
535
     * @type {boolean}
536
     * @memberof DocumentListInfo
537
     */
538
    'finalizedExists'?: boolean;
539
    /**
540
     * 
541
     * @type {string}
542
     * @memberof DocumentListInfo
543
     */
544
    'finalizedAnnotationId'?: string | null;
545
    /**
546
     * 
547
     * @type {EState}
548
     * @memberof DocumentListInfo
549
     */
550
    'finalizedState'?: EState;
551
    /**
552
     * 
553
     * @type {Array<DocumentAnnotationInfo>}
554
     * @memberof DocumentListInfo
555
     */
556
    'finalAnnotations'?: Array<DocumentAnnotationInfo> | null;
557 3e6b15a7 Lukáš Vlček
}
558
/**
559 19b68a2e Lukáš Vlček
 * 
560 3e6b15a7 Lukáš Vlček
 * @export
561
 * @interface DocumentListResponse
562
 */
563
export interface DocumentListResponse {
564
    /**
565 19b68a2e Lukáš Vlček
     * 
566 3e6b15a7 Lukáš Vlček
     * @type {number}
567
     * @memberof DocumentListResponse
568
     */
569 19b68a2e Lukáš Vlček
    'totalCount'?: number;
570 3e6b15a7 Lukáš Vlček
    /**
571 19b68a2e Lukáš Vlček
     * 
572 3e6b15a7 Lukáš Vlček
     * @type {number}
573
     * @memberof DocumentListResponse
574
     */
575 19b68a2e Lukáš Vlček
    'pageCount'?: number;
576 3e6b15a7 Lukáš Vlček
    /**
577 19b68a2e Lukáš Vlček
     * 
578 3e6b15a7 Lukáš Vlček
     * @type {number}
579
     * @memberof DocumentListResponse
580
     */
581 19b68a2e Lukáš Vlček
    'pageIndex'?: number;
582 3e6b15a7 Lukáš Vlček
    /**
583 19b68a2e Lukáš Vlček
     * 
584 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentListInfo>}
585
     * @memberof DocumentListResponse
586
     */
587 19b68a2e Lukáš Vlček
    'documents'?: Array<DocumentListInfo> | null;
588 3e6b15a7 Lukáš Vlček
}
589 cca0bfa0 Lukáš Vlček
/**
590
 * 
591
 * @export
592
 * @interface DocumentPreviewResponse
593
 */
594
export interface DocumentPreviewResponse {
595
    /**
596
     * 
597
     * @type {string}
598
     * @memberof DocumentPreviewResponse
599
     */
600
    'content'?: string | null;
601
}
602 3e6b15a7 Lukáš Vlček
/**
603 19b68a2e Lukáš Vlček
 * 
604
 * @export
605
 * @interface DocumentUserInfo
606
 */
607
export interface DocumentUserInfo {
608
    /**
609
     * 
610
     * @type {string}
611
     * @memberof DocumentUserInfo
612
     */
613
    'id'?: string;
614
    /**
615
     * 
616
     * @type {string}
617
     * @memberof DocumentUserInfo
618
     */
619
    'username'?: string | null;
620
    /**
621
     * 
622
     * @type {string}
623
     * @memberof DocumentUserInfo
624
     */
625
    'name'?: string | null;
626
    /**
627
     * 
628
     * @type {string}
629
     * @memberof DocumentUserInfo
630
     */
631
    'surname'?: string | null;
632
    /**
633
     * 
634
     * @type {EState}
635
     * @memberof DocumentUserInfo
636
     */
637
    'state'?: EState;
638
}
639
/**
640
 * 
641 3e6b15a7 Lukáš Vlček
 * @export
642
 * @enum {string}
643
 */
644
645
export const EAddDocumentFormat = {
646
    Zip: 'ZIP',
647 19b68a2e Lukáš Vlček
    Textfile: 'TEXTFILE'
648 3e6b15a7 Lukáš Vlček
} as const;
649
650 19b68a2e Lukáš Vlček
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
651
652 3e6b15a7 Lukáš Vlček
653
/**
654 19b68a2e Lukáš Vlček
 * 
655 3e6b15a7 Lukáš Vlček
 * @export
656
 * @enum {string}
657
 */
658
659
export const EDocumentType = {
660
    Html: 'HTML',
661 19b68a2e Lukáš Vlček
    Text: 'TEXT'
662 3e6b15a7 Lukáš Vlček
} as const;
663
664
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
665
666 19b68a2e Lukáš Vlček
667 3e6b15a7 Lukáš Vlček
/**
668 19b68a2e Lukáš Vlček
 * 
669 3e6b15a7 Lukáš Vlček
 * @export
670
 * @enum {string}
671
 */
672
673
export const ERole = {
674
    Annotator: 'ANNOTATOR',
675 19b68a2e Lukáš Vlček
    Administrator: 'ADMINISTRATOR'
676 3e6b15a7 Lukáš Vlček
} as const;
677
678
export type ERole = typeof ERole[keyof typeof ERole];
679
680 19b68a2e Lukáš Vlček
681 3e6b15a7 Lukáš Vlček
/**
682 19b68a2e Lukáš Vlček
 * 
683 3e6b15a7 Lukáš Vlček
 * @export
684
 * @enum {string}
685
 */
686
687
export const EState = {
688
    Done: 'DONE',
689
    InProgress: 'IN_PROGRESS',
690 19b68a2e Lukáš Vlček
    New: 'NEW'
691 3e6b15a7 Lukáš Vlček
} as const;
692
693
export type EState = typeof EState[keyof typeof EState];
694
695 19b68a2e Lukáš Vlček
696 cca0bfa0 Lukáš Vlček
/**
697
 * 
698
 * @export
699
 * @enum {string}
700
 */
701
702
export const ETagSentiment = {
703
    Neutral: 'NEUTRAL',
704
    Positive: 'POSITIVE',
705
    Negative: 'NEGATIVE'
706
} as const;
707
708
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment];
709
710
711 4bc99591 Lukáš Vlček
/**
712 19b68a2e Lukáš Vlček
 * 
713 4bc99591 Lukáš Vlček
 * @export
714
 * @enum {string}
715
 */
716
717
export const ETagType = {
718
    Tag: 'TAG',
719 19b68a2e Lukáš Vlček
    Subtag: 'SUBTAG'
720 4bc99591 Lukáš Vlček
} as const;
721
722
export type ETagType = typeof ETagType[keyof typeof ETagType];
723
724 19b68a2e Lukáš Vlček
725 3e6b15a7 Lukáš Vlček
/**
726 19b68a2e Lukáš Vlček
 * 
727
 * @export
728
 * @interface GetRequiredAnnotationsGlobalResponse
729
 */
730
export interface GetRequiredAnnotationsGlobalResponse {
731
    /**
732
     * 
733
     * @type {number}
734
     * @memberof GetRequiredAnnotationsGlobalResponse
735
     */
736
    'requiredAnnotationsGlobal'?: number;
737
}
738
/**
739
 * 
740 3e6b15a7 Lukáš Vlček
 * @export
741
 * @interface LoginRequest
742
 */
743
export interface LoginRequest {
744
    /**
745 19b68a2e Lukáš Vlček
     * 
746 3e6b15a7 Lukáš Vlček
     * @type {string}
747
     * @memberof LoginRequest
748
     */
749 19b68a2e Lukáš Vlček
    'username'?: string | null;
750 3e6b15a7 Lukáš Vlček
    /**
751 19b68a2e Lukáš Vlček
     * 
752 3e6b15a7 Lukáš Vlček
     * @type {string}
753
     * @memberof LoginRequest
754
     */
755 19b68a2e Lukáš Vlček
    'password'?: string | null;
756 3e6b15a7 Lukáš Vlček
}
757
/**
758 19b68a2e Lukáš Vlček
 * 
759 3e6b15a7 Lukáš Vlček
 * @export
760
 * @interface LoginResponse
761
 */
762
export interface LoginResponse {
763
    /**
764 19b68a2e Lukáš Vlček
     * 
765 3e6b15a7 Lukáš Vlček
     * @type {boolean}
766
     * @memberof LoginResponse
767
     */
768 19b68a2e Lukáš Vlček
    'ok'?: boolean;
769 3e6b15a7 Lukáš Vlček
    /**
770 19b68a2e Lukáš Vlček
     * 
771 3e6b15a7 Lukáš Vlček
     * @type {string}
772
     * @memberof LoginResponse
773
     */
774 19b68a2e Lukáš Vlček
    'token'?: string | null;
775 3e6b15a7 Lukáš Vlček
    /**
776 19b68a2e Lukáš Vlček
     * 
777 3e6b15a7 Lukáš Vlček
     * @type {string}
778
     * @memberof LoginResponse
779
     */
780 19b68a2e Lukáš Vlček
    'expiration'?: string;
781 3e6b15a7 Lukáš Vlček
    /**
782 19b68a2e Lukáš Vlček
     * 
783 3e6b15a7 Lukáš Vlček
     * @type {ERole}
784
     * @memberof LoginResponse
785
     */
786 19b68a2e Lukáš Vlček
    'role'?: ERole;
787 3e6b15a7 Lukáš Vlček
}
788 b51488cd Jaroslav Hrubý
/**
789
 * 
790
 * @export
791
 * @interface MarkAnnotationDoneRequest
792
 */
793
export interface MarkAnnotationDoneRequest {
794
    /**
795
     * 
796
     * @type {boolean}
797
     * @memberof MarkAnnotationDoneRequest
798
     */
799
    'done'?: boolean;
800
}
801 cca0bfa0 Lukáš Vlček
/**
802
 * 
803
 * @export
804
 * @interface ModifyCategoryRequest
805
 */
806
export interface ModifyCategoryRequest {
807
    /**
808
     * 
809
     * @type {string}
810
     * @memberof ModifyCategoryRequest
811
     */
812
    'name'?: string | null;
813
    /**
814
     * 
815
     * @type {string}
816
     * @memberof ModifyCategoryRequest
817
     */
818
    'description'?: string | null;
819
    /**
820
     * 
821
     * @type {string}
822
     * @memberof ModifyCategoryRequest
823
     */
824
    'color'?: string | null;
825
    /**
826
     * 
827
     * @type {boolean}
828
     * @memberof ModifyCategoryRequest
829
     */
830
    'disabledForAnnotators'?: boolean | null;
831
}
832
/**
833
 * 
834
 * @export
835
 * @interface ModifySubTagRequest
836
 */
837
export interface ModifySubTagRequest {
838
    /**
839
     * 
840
     * @type {string}
841
     * @memberof ModifySubTagRequest
842
     */
843
    'name'?: string | null;
844
    /**
845
     * 
846
     * @type {string}
847
     * @memberof ModifySubTagRequest
848
     */
849
    'description'?: string | null;
850
    /**
851
     * 
852
     * @type {boolean}
853
     * @memberof ModifySubTagRequest
854
     */
855
    'sentimentEnabled'?: boolean | null;
856
}
857
/**
858
 * 
859
 * @export
860
 * @interface ModifyTagRequest
861
 */
862
export interface ModifyTagRequest {
863
    /**
864
     * 
865
     * @type {string}
866
     * @memberof ModifyTagRequest
867
     */
868
    'name'?: string | null;
869
    /**
870
     * 
871
     * @type {string}
872
     * @memberof ModifyTagRequest
873
     */
874
    'description'?: string | null;
875
    /**
876
     * 
877
     * @type {string}
878
     * @memberof ModifyTagRequest
879
     */
880
    'color'?: string | null;
881
    /**
882
     * 
883
     * @type {boolean}
884
     * @memberof ModifyTagRequest
885
     */
886
    'sentimentEnabled'?: boolean | null;
887
}
888 3e6b15a7 Lukáš Vlček
/**
889 19b68a2e Lukáš Vlček
 * 
890 3e6b15a7 Lukáš Vlček
 * @export
891
 * @interface ProblemDetails
892
 */
893
export interface ProblemDetails {
894
    [key: string]: any | any;
895
896
    /**
897 19b68a2e Lukáš Vlček
     * 
898 3e6b15a7 Lukáš Vlček
     * @type {string}
899
     * @memberof ProblemDetails
900
     */
901 19b68a2e Lukáš Vlček
    'type'?: string | null;
902 3e6b15a7 Lukáš Vlček
    /**
903 19b68a2e Lukáš Vlček
     * 
904 3e6b15a7 Lukáš Vlček
     * @type {string}
905
     * @memberof ProblemDetails
906
     */
907 19b68a2e Lukáš Vlček
    'title'?: string | null;
908 3e6b15a7 Lukáš Vlček
    /**
909 19b68a2e Lukáš Vlček
     * 
910 3e6b15a7 Lukáš Vlček
     * @type {number}
911
     * @memberof ProblemDetails
912
     */
913 19b68a2e Lukáš Vlček
    'status'?: number | null;
914 3e6b15a7 Lukáš Vlček
    /**
915 19b68a2e Lukáš Vlček
     * 
916 3e6b15a7 Lukáš Vlček
     * @type {string}
917
     * @memberof ProblemDetails
918
     */
919 19b68a2e Lukáš Vlček
    'detail'?: string | null;
920 3e6b15a7 Lukáš Vlček
    /**
921 19b68a2e Lukáš Vlček
     * 
922 3e6b15a7 Lukáš Vlček
     * @type {string}
923
     * @memberof ProblemDetails
924
     */
925 19b68a2e Lukáš Vlček
    'instance'?: string | null;
926 3e6b15a7 Lukáš Vlček
}
927 cca0bfa0 Lukáš Vlček
/**
928
 * 
929
 * @export
930
 * @interface SetInstanceSentimentRequest
931
 */
932
export interface SetInstanceSentimentRequest {
933
    /**
934
     * 
935
     * @type {ETagSentiment}
936
     * @memberof SetInstanceSentimentRequest
937
     */
938
    'sentiment'?: ETagSentiment;
939
}
940 3e6b15a7 Lukáš Vlček
/**
941 19b68a2e Lukáš Vlček
 * 
942
 * @export
943
 * @interface SetRequiredAnnotationsGlobalRequest
944
 */
945
export interface SetRequiredAnnotationsGlobalRequest {
946
    /**
947
     * 
948
     * @type {number}
949
     * @memberof SetRequiredAnnotationsGlobalRequest
950
     */
951
    'requiredAnnotations'?: number;
952
}
953
/**
954
 * 
955
 * @export
956
 * @interface SetRequiredAnnotationsRequest
957
 */
958
export interface SetRequiredAnnotationsRequest {
959
    /**
960
     * 
961
     * @type {number}
962
     * @memberof SetRequiredAnnotationsRequest
963
     */
964
    'requiredAnnotations'?: number;
965
    /**
966
     * 
967
     * @type {Array<string>}
968
     * @memberof SetRequiredAnnotationsRequest
969
     */
970
    'documentIds'?: Array<string> | null;
971
}
972
/**
973
 * 
974 3e6b15a7 Lukáš Vlček
 * @export
975
 * @interface SubTagInfo
976
 */
977
export interface SubTagInfo {
978
    /**
979 19b68a2e Lukáš Vlček
     * 
980 3e6b15a7 Lukáš Vlček
     * @type {string}
981
     * @memberof SubTagInfo
982
     */
983 19b68a2e Lukáš Vlček
    'id'?: string;
984 3e6b15a7 Lukáš Vlček
    /**
985 19b68a2e Lukáš Vlček
     * 
986 3e6b15a7 Lukáš Vlček
     * @type {string}
987
     * @memberof SubTagInfo
988
     */
989 19b68a2e Lukáš Vlček
    'name'?: string | null;
990 3e6b15a7 Lukáš Vlček
    /**
991 19b68a2e Lukáš Vlček
     * 
992 3e6b15a7 Lukáš Vlček
     * @type {string}
993
     * @memberof SubTagInfo
994
     */
995 19b68a2e Lukáš Vlček
    'description'?: string | null;
996 3e6b15a7 Lukáš Vlček
}
997
/**
998 19b68a2e Lukáš Vlček
 * 
999 3e6b15a7 Lukáš Vlček
 * @export
1000
 * @interface TagCategoryInfo
1001
 */
1002
export interface TagCategoryInfo {
1003
    /**
1004 19b68a2e Lukáš Vlček
     * 
1005 3e6b15a7 Lukáš Vlček
     * @type {string}
1006
     * @memberof TagCategoryInfo
1007
     */
1008 19b68a2e Lukáš Vlček
    'id'?: string;
1009 3e6b15a7 Lukáš Vlček
    /**
1010 19b68a2e Lukáš Vlček
     * 
1011 3e6b15a7 Lukáš Vlček
     * @type {string}
1012
     * @memberof TagCategoryInfo
1013
     */
1014 19b68a2e Lukáš Vlček
    'name'?: string | null;
1015 3e6b15a7 Lukáš Vlček
    /**
1016 19b68a2e Lukáš Vlček
     * 
1017 3e6b15a7 Lukáš Vlček
     * @type {string}
1018
     * @memberof TagCategoryInfo
1019
     */
1020 19b68a2e Lukáš Vlček
    'description'?: string | null;
1021 3e6b15a7 Lukáš Vlček
    /**
1022 19b68a2e Lukáš Vlček
     * 
1023 3e6b15a7 Lukáš Vlček
     * @type {string}
1024
     * @memberof TagCategoryInfo
1025
     */
1026 19b68a2e Lukáš Vlček
    'color'?: string | null;
1027 3e6b15a7 Lukáš Vlček
    /**
1028 19b68a2e Lukáš Vlček
     * 
1029 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInfo>}
1030
     * @memberof TagCategoryInfo
1031
     */
1032 19b68a2e Lukáš Vlček
    'tags'?: Array<TagInfo> | null;
1033 cca0bfa0 Lukáš Vlček
    /**
1034
     * 
1035
     * @type {boolean}
1036
     * @memberof TagCategoryInfo
1037
     */
1038
    'disabledForAnnotators'?: boolean;
1039 3e6b15a7 Lukáš Vlček
}
1040
/**
1041 19b68a2e Lukáš Vlček
 * 
1042 3e6b15a7 Lukáš Vlček
 * @export
1043
 * @interface TagInfo
1044
 */
1045
export interface TagInfo {
1046
    /**
1047 19b68a2e Lukáš Vlček
     * 
1048 3e6b15a7 Lukáš Vlček
     * @type {string}
1049
     * @memberof TagInfo
1050
     */
1051 19b68a2e Lukáš Vlček
    'id'?: string;
1052 3e6b15a7 Lukáš Vlček
    /**
1053 19b68a2e Lukáš Vlček
     * 
1054 3e6b15a7 Lukáš Vlček
     * @type {string}
1055
     * @memberof TagInfo
1056
     */
1057 19b68a2e Lukáš Vlček
    'name'?: string | null;
1058 3e6b15a7 Lukáš Vlček
    /**
1059 19b68a2e Lukáš Vlček
     * 
1060 3e6b15a7 Lukáš Vlček
     * @type {string}
1061
     * @memberof TagInfo
1062
     */
1063 19b68a2e Lukáš Vlček
    'description'?: string | null;
1064 3e6b15a7 Lukáš Vlček
    /**
1065 19b68a2e Lukáš Vlček
     * 
1066 3e6b15a7 Lukáš Vlček
     * @type {string}
1067
     * @memberof TagInfo
1068
     */
1069 19b68a2e Lukáš Vlček
    'color'?: string | null;
1070 3e6b15a7 Lukáš Vlček
    /**
1071 19b68a2e Lukáš Vlček
     * 
1072 3e6b15a7 Lukáš Vlček
     * @type {Array<SubTagInfo>}
1073
     * @memberof TagInfo
1074
     */
1075 19b68a2e Lukáš Vlček
    'subTags'?: Array<SubTagInfo> | null;
1076 3e6b15a7 Lukáš Vlček
}
1077 f30a7b90 Lukáš Vlček
/**
1078
 * 
1079
 * @export
1080
 * @interface TagInstanceCSSInfo
1081
 */
1082
export interface TagInstanceCSSInfo {
1083
    /**
1084
     * 
1085
     * @type {string}
1086
     * @memberof TagInstanceCSSInfo
1087
     */
1088
    'instanceId'?: string;
1089
    /**
1090
     * 
1091
     * @type {string}
1092
     * @memberof TagInstanceCSSInfo
1093
     */
1094
    'color'?: string | null;
1095
    /**
1096
     * 
1097
     * @type {number}
1098
     * @memberof TagInstanceCSSInfo
1099
     */
1100
    'padding'?: number;
1101
}
1102 3e6b15a7 Lukáš Vlček
/**
1103 19b68a2e Lukáš Vlček
 * 
1104 3e6b15a7 Lukáš Vlček
 * @export
1105
 * @interface TagInstanceInfo
1106
 */
1107
export interface TagInstanceInfo {
1108 9fdb7d55 Lukáš Vlček
    /**
1109 19b68a2e Lukáš Vlček
     * 
1110 9fdb7d55 Lukáš Vlček
     * @type {string}
1111
     * @memberof TagInstanceInfo
1112
     */
1113 19b68a2e Lukáš Vlček
    'occurenceId'?: string;
1114 3e6b15a7 Lukáš Vlček
    /**
1115 19b68a2e Lukáš Vlček
     * 
1116 3e6b15a7 Lukáš Vlček
     * @type {string}
1117
     * @memberof TagInstanceInfo
1118
     */
1119 19b68a2e Lukáš Vlček
    'tagName'?: string | null;
1120 3e6b15a7 Lukáš Vlček
    /**
1121 19b68a2e Lukáš Vlček
     * 
1122 3e6b15a7 Lukáš Vlček
     * @type {string}
1123
     * @memberof TagInstanceInfo
1124
     */
1125 19b68a2e Lukáš Vlček
    'tagId'?: string;
1126 3e6b15a7 Lukáš Vlček
    /**
1127 19b68a2e Lukáš Vlček
     * 
1128 3e6b15a7 Lukáš Vlček
     * @type {string}
1129
     * @memberof TagInstanceInfo
1130
     */
1131 19b68a2e Lukáš Vlček
    'tagCategoryName'?: string | null;
1132 3e6b15a7 Lukáš Vlček
    /**
1133 19b68a2e Lukáš Vlček
     * 
1134 3e6b15a7 Lukáš Vlček
     * @type {string}
1135
     * @memberof TagInstanceInfo
1136
     */
1137 19b68a2e Lukáš Vlček
    'tagCategoryId'?: string;
1138 3e6b15a7 Lukáš Vlček
    /**
1139 19b68a2e Lukáš Vlček
     * 
1140 3e6b15a7 Lukáš Vlček
     * @type {string}
1141
     * @memberof TagInstanceInfo
1142
     */
1143 19b68a2e Lukáš Vlček
    'subTagName'?: string | null;
1144 3e6b15a7 Lukáš Vlček
    /**
1145 19b68a2e Lukáš Vlček
     * 
1146 3e6b15a7 Lukáš Vlček
     * @type {string}
1147
     * @memberof TagInstanceInfo
1148
     */
1149 19b68a2e Lukáš Vlček
    'subTagId'?: string | null;
1150 3e6b15a7 Lukáš Vlček
    /**
1151 19b68a2e Lukáš Vlček
     * 
1152 4bc99591 Lukáš Vlček
     * @type {string}
1153 3e6b15a7 Lukáš Vlček
     * @memberof TagInstanceInfo
1154
     */
1155 19b68a2e Lukáš Vlček
    'instance'?: string;
1156 3e6b15a7 Lukáš Vlček
    /**
1157 19b68a2e Lukáš Vlček
     * 
1158 3e6b15a7 Lukáš Vlček
     * @type {number}
1159
     * @memberof TagInstanceInfo
1160
     */
1161 19b68a2e Lukáš Vlček
    'position'?: number;
1162 3e6b15a7 Lukáš Vlček
    /**
1163 19b68a2e Lukáš Vlček
     * 
1164 3e6b15a7 Lukáš Vlček
     * @type {number}
1165
     * @memberof TagInstanceInfo
1166
     */
1167 19b68a2e Lukáš Vlček
    'length'?: number;
1168 3e6b15a7 Lukáš Vlček
    /**
1169 19b68a2e Lukáš Vlček
     * 
1170 3e6b15a7 Lukáš Vlček
     * @type {string}
1171
     * @memberof TagInstanceInfo
1172
     */
1173 19b68a2e Lukáš Vlček
    'note'?: string | null;
1174 cca0bfa0 Lukáš Vlček
    /**
1175
     * 
1176
     * @type {ETagSentiment}
1177
     * @memberof TagInstanceInfo
1178
     */
1179
    'sentiment'?: ETagSentiment;
1180 f30a7b90 Lukáš Vlček
    /**
1181
     * 
1182
     * @type {string}
1183
     * @memberof TagInstanceInfo
1184
     */
1185
    'selectedText'?: string | null;
1186 3e6b15a7 Lukáš Vlček
}
1187
/**
1188 19b68a2e Lukáš Vlček
 * 
1189 3e6b15a7 Lukáš Vlček
 * @export
1190
 * @interface TagTreeResponse
1191
 */
1192
export interface TagTreeResponse {
1193
    /**
1194 19b68a2e Lukáš Vlček
     * 
1195 3e6b15a7 Lukáš Vlček
     * @type {Array<TagCategoryInfo>}
1196
     * @memberof TagTreeResponse
1197
     */
1198 19b68a2e Lukáš Vlček
    'tagCategories'?: Array<TagCategoryInfo> | null;
1199 3e6b15a7 Lukáš Vlček
}
1200
/**
1201 19b68a2e Lukáš Vlček
 * 
1202 3e6b15a7 Lukáš Vlček
 * @export
1203
 * @interface User
1204
 */
1205
export interface User {
1206
    /**
1207 19b68a2e Lukáš Vlček
     * 
1208 3e6b15a7 Lukáš Vlček
     * @type {string}
1209
     * @memberof User
1210
     */
1211 19b68a2e Lukáš Vlček
    'id'?: string;
1212 3e6b15a7 Lukáš Vlček
    /**
1213 19b68a2e Lukáš Vlček
     * 
1214 3e6b15a7 Lukáš Vlček
     * @type {string}
1215
     * @memberof User
1216
     */
1217 19b68a2e Lukáš Vlček
    'username'?: string | null;
1218 3e6b15a7 Lukáš Vlček
    /**
1219 19b68a2e Lukáš Vlček
     * 
1220 3e6b15a7 Lukáš Vlček
     * @type {string}
1221
     * @memberof User
1222
     */
1223 19b68a2e Lukáš Vlček
    'name'?: string | null;
1224 3e6b15a7 Lukáš Vlček
    /**
1225 19b68a2e Lukáš Vlček
     * 
1226 3e6b15a7 Lukáš Vlček
     * @type {string}
1227
     * @memberof User
1228
     */
1229 19b68a2e Lukáš Vlček
    'surname'?: string | null;
1230 3e6b15a7 Lukáš Vlček
    /**
1231 19b68a2e Lukáš Vlček
     * 
1232 3e6b15a7 Lukáš Vlček
     * @type {ERole}
1233
     * @memberof User
1234
     */
1235 19b68a2e Lukáš Vlček
    'role'?: ERole;
1236 3e6b15a7 Lukáš Vlček
}
1237
/**
1238 19b68a2e Lukáš Vlček
 * 
1239 3e6b15a7 Lukáš Vlček
 * @export
1240
 * @interface UserInfo
1241
 */
1242
export interface UserInfo {
1243
    /**
1244 19b68a2e Lukáš Vlček
     * 
1245 3e6b15a7 Lukáš Vlček
     * @type {string}
1246
     * @memberof UserInfo
1247
     */
1248 19b68a2e Lukáš Vlček
    'id'?: string;
1249 3e6b15a7 Lukáš Vlček
    /**
1250 19b68a2e Lukáš Vlček
     * 
1251 3e6b15a7 Lukáš Vlček
     * @type {string}
1252
     * @memberof UserInfo
1253
     */
1254 19b68a2e Lukáš Vlček
    'username'?: string | null;
1255 3e6b15a7 Lukáš Vlček
    /**
1256 19b68a2e Lukáš Vlček
     * 
1257 3e6b15a7 Lukáš Vlček
     * @type {string}
1258
     * @memberof UserInfo
1259
     */
1260 19b68a2e Lukáš Vlček
    'name'?: string | null;
1261 3e6b15a7 Lukáš Vlček
    /**
1262 19b68a2e Lukáš Vlček
     * 
1263 3e6b15a7 Lukáš Vlček
     * @type {string}
1264
     * @memberof UserInfo
1265
     */
1266 19b68a2e Lukáš Vlček
    'surname'?: string | null;
1267 cca0bfa0 Lukáš Vlček
    /**
1268
     * 
1269
     * @type {number}
1270
     * @memberof UserInfo
1271
     */
1272
    'assignedDocumentsCount'?: number;
1273
    /**
1274
     * 
1275
     * @type {ERole}
1276
     * @memberof UserInfo
1277
     */
1278
    'role'?: ERole;
1279 3e6b15a7 Lukáš Vlček
}
1280
/**
1281 19b68a2e Lukáš Vlček
 * 
1282 3e6b15a7 Lukáš Vlček
 * @export
1283
 * @interface UserList
1284
 */
1285
export interface UserList {
1286
    /**
1287 19b68a2e Lukáš Vlček
     * 
1288 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
1289
     * @memberof UserList
1290
     */
1291 19b68a2e Lukáš Vlček
    'users'?: Array<UserInfo> | null;
1292 3e6b15a7 Lukáš Vlček
}
1293
1294
/**
1295
 * AnnotationApi - axios parameter creator
1296
 * @export
1297
 */
1298
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
1299
    return {
1300 b51488cd Jaroslav Hrubý
        /**
1301
         * 
1302
         * @param {string} annotationId 
1303 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1304 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
1305
         * @param {*} [options] Override http request option.
1306
         * @throws {RequiredError}
1307
         */
1308 048b4bc0 Lukáš Vlček
        annotationAnnotationIdDonePut: async (annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1309 b51488cd Jaroslav Hrubý
            // verify required parameter 'annotationId' is not null or undefined
1310
            assertParamExists('annotationAnnotationIdDonePut', 'annotationId', annotationId)
1311
            const localVarPath = `/annotation/{annotationId}/done`
1312
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1313
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1314
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1315
            let baseOptions;
1316
            if (configuration) {
1317
                baseOptions = configuration.baseOptions;
1318
            }
1319
1320
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1321
            const localVarHeaderParameter = {} as any;
1322
            const localVarQueryParameter = {} as any;
1323
1324 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1325
                localVarQueryParameter['isFinal'] = isFinal;
1326
            }
1327
1328 b51488cd Jaroslav Hrubý
1329
    
1330
            localVarHeaderParameter['Content-Type'] = 'application/json';
1331
1332
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1333
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1334
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1335
            localVarRequestOptions.data = serializeDataIfNeeded(markAnnotationDoneRequest, localVarRequestOptions, configuration)
1336
1337
            return {
1338
                url: toPathString(localVarUrlObj),
1339
                options: localVarRequestOptions,
1340
            };
1341
        },
1342 3e6b15a7 Lukáš Vlček
        /**
1343 19b68a2e Lukáš Vlček
         * 
1344
         * @param {string} annotationId 
1345 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1346 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1347
         * @throws {RequiredError}
1348
         */
1349 048b4bc0 Lukáš Vlček
        annotationAnnotationIdGet: async (annotationId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1350 dd747fc5 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1351 19b68a2e Lukáš Vlček
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
1352
            const localVarPath = `/annotation/{annotationId}`
1353
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1354 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1355
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1356
            let baseOptions;
1357
            if (configuration) {
1358
                baseOptions = configuration.baseOptions;
1359
            }
1360
1361 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1362 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1363
            const localVarQueryParameter = {} as any;
1364
1365 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1366
                localVarQueryParameter['isFinal'] = isFinal;
1367
            }
1368
1369 19b68a2e Lukáš Vlček
1370
    
1371 9fdb7d55 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1372 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1373
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1374 9fdb7d55 Lukáš Vlček
1375
            return {
1376
                url: toPathString(localVarUrlObj),
1377
                options: localVarRequestOptions,
1378
            };
1379
        },
1380
        /**
1381 19b68a2e Lukáš Vlček
         * 
1382
         * @param {string} annotationId 
1383 cca0bfa0 Lukáš Vlček
         * @param {string} instanceId 
1384 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1385 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1386 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
1387
         * @throws {RequiredError}
1388
         */
1389 048b4bc0 Lukáš Vlček
        annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1390 9fdb7d55 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1391 cca0bfa0 Lukáš Vlček
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
1392
            // verify required parameter 'instanceId' is not null or undefined
1393
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
1394
            const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
1395 19b68a2e Lukáš Vlček
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1396 cca0bfa0 Lukáš Vlček
                .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1397 9fdb7d55 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1398
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1399
            let baseOptions;
1400
            if (configuration) {
1401
                baseOptions = configuration.baseOptions;
1402
            }
1403
1404 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1405 9fdb7d55 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1406
            const localVarQueryParameter = {} as any;
1407
1408 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1409
                localVarQueryParameter['isFinal'] = isFinal;
1410
            }
1411
1412 19b68a2e Lukáš Vlček
1413
    
1414 cca0bfa0 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
1415
1416 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1417 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1418
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1419 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
1420 3e6b15a7 Lukáš Vlček
1421
            return {
1422
                url: toPathString(localVarUrlObj),
1423
                options: localVarRequestOptions,
1424
            };
1425
        },
1426 4bc99591 Lukáš Vlček
        /**
1427 19b68a2e Lukáš Vlček
         * 
1428
         * @param {string} annotationId 
1429 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1430 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1431 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
1432
         * @throws {RequiredError}
1433
         */
1434 048b4bc0 Lukáš Vlček
        annotationAnnotationIdNotePost: async (annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1435 4bc99591 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1436 cca0bfa0 Lukáš Vlček
            assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
1437
            const localVarPath = `/annotation/{annotationId}/note`
1438 19b68a2e Lukáš Vlček
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1439 4bc99591 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1440
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1441
            let baseOptions;
1442
            if (configuration) {
1443
                baseOptions = configuration.baseOptions;
1444
            }
1445
1446 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1447 4bc99591 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1448
            const localVarQueryParameter = {} as any;
1449
1450 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1451
                localVarQueryParameter['isFinal'] = isFinal;
1452
            }
1453
1454 19b68a2e Lukáš Vlček
1455
    
1456 4bc99591 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
1457
1458
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1459 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1460
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1461 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
1462 4bc99591 Lukáš Vlček
1463
            return {
1464
                url: toPathString(localVarUrlObj),
1465
                options: localVarRequestOptions,
1466
            };
1467
        },
1468 3e6b15a7 Lukáš Vlček
        /**
1469 19b68a2e Lukáš Vlček
         * 
1470 cca0bfa0 Lukáš Vlček
         * @param {string} annotationId 
1471
         * @param {string} occurenceId 
1472 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1473 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1474
         * @throws {RequiredError}
1475
         */
1476 048b4bc0 Lukáš Vlček
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1477 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1478
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
1479
            // verify required parameter 'occurenceId' is not null or undefined
1480
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
1481
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
1482
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1483
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
1484 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1485
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1486
            let baseOptions;
1487
            if (configuration) {
1488
                baseOptions = configuration.baseOptions;
1489
            }
1490
1491 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1492 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1493
            const localVarQueryParameter = {} as any;
1494
1495 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1496
                localVarQueryParameter['isFinal'] = isFinal;
1497
            }
1498
1499 19b68a2e Lukáš Vlček
1500
    
1501 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1502 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1503
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1504 3e6b15a7 Lukáš Vlček
1505
            return {
1506
                url: toPathString(localVarUrlObj),
1507
                options: localVarRequestOptions,
1508
            };
1509
        },
1510
        /**
1511 19b68a2e Lukáš Vlček
         * 
1512
         * @param {string} annotationId 
1513 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1514 cca0bfa0 Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1515 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1516
         * @throws {RequiredError}
1517
         */
1518 048b4bc0 Lukáš Vlček
        annotationAnnotationIdPost: async (annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1519 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1520
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
1521
            const localVarPath = `/annotation/{annotationId}`
1522
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1523
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1524
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1525
            let baseOptions;
1526
            if (configuration) {
1527
                baseOptions = configuration.baseOptions;
1528
            }
1529
1530
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1531
            const localVarHeaderParameter = {} as any;
1532
            const localVarQueryParameter = {} as any;
1533
1534 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1535
                localVarQueryParameter['isFinal'] = isFinal;
1536
            }
1537
1538 cca0bfa0 Lukáš Vlček
1539
    
1540
            localVarHeaderParameter['Content-Type'] = 'application/json';
1541
1542
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1543
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1544
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1545
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
1546
1547
            return {
1548
                url: toPathString(localVarUrlObj),
1549
                options: localVarRequestOptions,
1550
            };
1551
        },
1552
        /**
1553
         * 
1554
         * @param {string} annotationId 
1555
         * @param {string} occurenceId 
1556 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1557 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1558
         * @param {*} [options] Override http request option.
1559
         * @throws {RequiredError}
1560
         */
1561 048b4bc0 Lukáš Vlček
        annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1562 cca0bfa0 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
1563
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
1564
            // verify required parameter 'occurenceId' is not null or undefined
1565
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
1566
            const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
1567
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1568
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
1569
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1570
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1571
            let baseOptions;
1572
            if (configuration) {
1573
                baseOptions = configuration.baseOptions;
1574
            }
1575
1576
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1577
            const localVarHeaderParameter = {} as any;
1578
            const localVarQueryParameter = {} as any;
1579
1580 048b4bc0 Lukáš Vlček
            if (isFinal !== undefined) {
1581
                localVarQueryParameter['isFinal'] = isFinal;
1582
            }
1583
1584 cca0bfa0 Lukáš Vlček
1585
    
1586
            localVarHeaderParameter['Content-Type'] = 'application/json';
1587
1588
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1589
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1590
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1591
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
1592
1593
            return {
1594
                url: toPathString(localVarUrlObj),
1595
                options: localVarRequestOptions,
1596
            };
1597
        },
1598
        /**
1599
         * 
1600
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1601
         * @param {*} [options] Override http request option.
1602
         * @throws {RequiredError}
1603
         */
1604
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1605
            const localVarPath = `/annotations`;
1606
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1607
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1608
            let baseOptions;
1609
            if (configuration) {
1610
                baseOptions = configuration.baseOptions;
1611
            }
1612
1613
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1614
            const localVarHeaderParameter = {} as any;
1615
            const localVarQueryParameter = {} as any;
1616
1617
1618
    
1619
            localVarHeaderParameter['Content-Type'] = 'application/json';
1620
1621
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1622
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1623
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1624
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
1625
1626
            return {
1627
                url: toPathString(localVarUrlObj),
1628
                options: localVarRequestOptions,
1629
            };
1630
        },
1631
    }
1632
};
1633
1634
/**
1635
 * AnnotationApi - functional programming interface
1636
 * @export
1637
 */
1638
export const AnnotationApiFp = function(configuration?: Configuration) {
1639
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
1640
    return {
1641 b51488cd Jaroslav Hrubý
        /**
1642
         * 
1643
         * @param {string} annotationId 
1644 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1645 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
1646
         * @param {*} [options] Override http request option.
1647
         * @throws {RequiredError}
1648
         */
1649 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1650
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options);
1651 b51488cd Jaroslav Hrubý
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1652
        },
1653 cca0bfa0 Lukáš Vlček
        /**
1654
         * 
1655
         * @param {string} annotationId 
1656 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1657 cca0bfa0 Lukáš Vlček
         * @param {*} [options] Override http request option.
1658
         * @throws {RequiredError}
1659
         */
1660 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
1661
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, isFinal, options);
1662 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1663 3e6b15a7 Lukáš Vlček
        },
1664 cca0bfa0 Lukáš Vlček
        /**
1665
         * 
1666
         * @param {string} annotationId 
1667
         * @param {string} instanceId 
1668 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1669 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1670
         * @param {*} [options] Override http request option.
1671
         * @throws {RequiredError}
1672
         */
1673 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1674
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options);
1675 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1676
        },
1677
        /**
1678
         * 
1679
         * @param {string} annotationId 
1680 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1681 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1682
         * @param {*} [options] Override http request option.
1683
         * @throws {RequiredError}
1684
         */
1685 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1686
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options);
1687 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1688
        },
1689 9fdb7d55 Lukáš Vlček
        /**
1690 19b68a2e Lukáš Vlček
         * 
1691
         * @param {string} annotationId 
1692
         * @param {string} occurenceId 
1693 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1694 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
1695
         * @throws {RequiredError}
1696
         */
1697 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1698
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options);
1699 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1700 9fdb7d55 Lukáš Vlček
        },
1701 4bc99591 Lukáš Vlček
        /**
1702 19b68a2e Lukáš Vlček
         * 
1703
         * @param {string} annotationId 
1704 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1705 19b68a2e Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1706 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
1707
         * @throws {RequiredError}
1708
         */
1709 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1710
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options);
1711 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1712 4bc99591 Lukáš Vlček
        },
1713 cca0bfa0 Lukáš Vlček
        /**
1714
         * 
1715
         * @param {string} annotationId 
1716
         * @param {string} occurenceId 
1717 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1718 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1719
         * @param {*} [options] Override http request option.
1720
         * @throws {RequiredError}
1721
         */
1722 048b4bc0 Lukáš Vlček
        async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1723
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options);
1724 cca0bfa0 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1725
        },
1726 3e6b15a7 Lukáš Vlček
        /**
1727 19b68a2e Lukáš Vlček
         * 
1728
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1729 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1730
         * @throws {RequiredError}
1731
         */
1732 19b68a2e Lukáš Vlček
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1733
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1734
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1735 3e6b15a7 Lukáš Vlček
        },
1736 19b68a2e Lukáš Vlček
    }
1737 3e6b15a7 Lukáš Vlček
};
1738
1739
/**
1740
 * AnnotationApi - factory interface
1741
 * @export
1742
 */
1743 19b68a2e Lukáš Vlček
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1744
    const localVarFp = AnnotationApiFp(configuration)
1745 3e6b15a7 Lukáš Vlček
    return {
1746 b51488cd Jaroslav Hrubý
        /**
1747
         * 
1748
         * @param {string} annotationId 
1749 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1750 b51488cd Jaroslav Hrubý
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
1751
         * @param {*} [options] Override http request option.
1752
         * @throws {RequiredError}
1753
         */
1754 048b4bc0 Lukáš Vlček
        annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: any): AxiosPromise<void> {
1755
            return localVarFp.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(axios, basePath));
1756 b51488cd Jaroslav Hrubý
        },
1757 3e6b15a7 Lukáš Vlček
        /**
1758 19b68a2e Lukáš Vlček
         * 
1759
         * @param {string} annotationId 
1760 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1761 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1762
         * @throws {RequiredError}
1763
         */
1764 048b4bc0 Lukáš Vlček
        annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: any): AxiosPromise<AnnotationInfo> {
1765
            return localVarFp.annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(axios, basePath));
1766 3e6b15a7 Lukáš Vlček
        },
1767 cca0bfa0 Lukáš Vlček
        /**
1768
         * 
1769
         * @param {string} annotationId 
1770
         * @param {string} instanceId 
1771 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1772 cca0bfa0 Lukáš Vlček
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1773
         * @param {*} [options] Override http request option.
1774
         * @throws {RequiredError}
1775
         */
1776 048b4bc0 Lukáš Vlček
        annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
1777
            return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
1778 cca0bfa0 Lukáš Vlček
        },
1779
        /**
1780
         * 
1781
         * @param {string} annotationId 
1782 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1783 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1784
         * @param {*} [options] Override http request option.
1785
         * @throws {RequiredError}
1786
         */
1787 048b4bc0 Lukáš Vlček
        annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
1788
            return localVarFp.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
1789 cca0bfa0 Lukáš Vlček
        },
1790 9fdb7d55 Lukáš Vlček
        /**
1791 19b68a2e Lukáš Vlček
         * 
1792
         * @param {string} annotationId 
1793
         * @param {string} occurenceId 
1794 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1795 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
1796
         * @throws {RequiredError}
1797
         */
1798 048b4bc0 Lukáš Vlček
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: any): AxiosPromise<void> {
1799
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(axios, basePath));
1800 9fdb7d55 Lukáš Vlček
        },
1801 4bc99591 Lukáš Vlček
        /**
1802 19b68a2e Lukáš Vlček
         * 
1803
         * @param {string} annotationId 
1804 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1805 19b68a2e Lukáš Vlček
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1806 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
1807
         * @throws {RequiredError}
1808
         */
1809 048b4bc0 Lukáš Vlček
        annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
1810
            return localVarFp.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
1811 4bc99591 Lukáš Vlček
        },
1812 cca0bfa0 Lukáš Vlček
        /**
1813
         * 
1814
         * @param {string} annotationId 
1815
         * @param {string} occurenceId 
1816 048b4bc0 Lukáš Vlček
         * @param {boolean} [isFinal] 
1817 cca0bfa0 Lukáš Vlček
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1818
         * @param {*} [options] Override http request option.
1819
         * @throws {RequiredError}
1820
         */
1821 048b4bc0 Lukáš Vlček
        annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
1822
            return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
1823 cca0bfa0 Lukáš Vlček
        },
1824 3e6b15a7 Lukáš Vlček
        /**
1825 19b68a2e Lukáš Vlček
         * 
1826
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1827 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1828
         * @throws {RequiredError}
1829
         */
1830 19b68a2e Lukáš Vlček
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
1831
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
1832 3e6b15a7 Lukáš Vlček
        },
1833
    };
1834
};
1835
1836
/**
1837
 * AnnotationApi - object-oriented interface
1838
 * @export
1839
 * @class AnnotationApi
1840
 * @extends {BaseAPI}
1841
 */
1842
export class AnnotationApi extends BaseAPI {
1843 b51488cd Jaroslav Hrubý
    /**
1844
     * 
1845
     * @param {string} annotationId 
1846 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
1847 b51488cd Jaroslav Hrubý
     * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
1848
     * @param {*} [options] Override http request option.
1849
     * @throws {RequiredError}
1850
     * @memberof AnnotationApi
1851
     */
1852 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig) {
1853
        return AnnotationApiFp(this.configuration).annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(this.axios, this.basePath));
1854 b51488cd Jaroslav Hrubý
    }
1855
1856 3e6b15a7 Lukáš Vlček
    /**
1857 19b68a2e Lukáš Vlček
     * 
1858
     * @param {string} annotationId 
1859 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
1860 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1861
     * @throws {RequiredError}
1862
     * @memberof AnnotationApi
1863
     */
1864 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
1865
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(this.axios, this.basePath));
1866 3e6b15a7 Lukáš Vlček
    }
1867
1868 cca0bfa0 Lukáš Vlček
    /**
1869
     * 
1870
     * @param {string} annotationId 
1871
     * @param {string} instanceId 
1872 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
1873 cca0bfa0 Lukáš Vlček
     * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1874
     * @param {*} [options] Override http request option.
1875
     * @throws {RequiredError}
1876
     * @memberof AnnotationApi
1877
     */
1878 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
1879
        return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
1880 cca0bfa0 Lukáš Vlček
    }
1881
1882
    /**
1883
     * 
1884
     * @param {string} annotationId 
1885 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
1886 cca0bfa0 Lukáš Vlček
     * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1887
     * @param {*} [options] Override http request option.
1888
     * @throws {RequiredError}
1889
     * @memberof AnnotationApi
1890
     */
1891 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
1892
        return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
1893 cca0bfa0 Lukáš Vlček
    }
1894
1895 9fdb7d55 Lukáš Vlček
    /**
1896 19b68a2e Lukáš Vlček
     * 
1897
     * @param {string} annotationId 
1898
     * @param {string} occurenceId 
1899 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
1900 9fdb7d55 Lukáš Vlček
     * @param {*} [options] Override http request option.
1901
     * @throws {RequiredError}
1902
     * @memberof AnnotationApi
1903
     */
1904 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
1905
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(this.axios, this.basePath));
1906 9fdb7d55 Lukáš Vlček
    }
1907
1908 4bc99591 Lukáš Vlček
    /**
1909 19b68a2e Lukáš Vlček
     * 
1910
     * @param {string} annotationId 
1911 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
1912 19b68a2e Lukáš Vlček
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1913 4bc99591 Lukáš Vlček
     * @param {*} [options] Override http request option.
1914
     * @throws {RequiredError}
1915
     * @memberof AnnotationApi
1916
     */
1917 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
1918
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
1919 4bc99591 Lukáš Vlček
    }
1920
1921 cca0bfa0 Lukáš Vlček
    /**
1922
     * 
1923
     * @param {string} annotationId 
1924
     * @param {string} occurenceId 
1925 048b4bc0 Lukáš Vlček
     * @param {boolean} [isFinal] 
1926 cca0bfa0 Lukáš Vlček
     * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1927
     * @param {*} [options] Override http request option.
1928
     * @throws {RequiredError}
1929
     * @memberof AnnotationApi
1930
     */
1931 048b4bc0 Lukáš Vlček
    public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
1932
        return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
1933 cca0bfa0 Lukáš Vlček
    }
1934
1935 3e6b15a7 Lukáš Vlček
    /**
1936 19b68a2e Lukáš Vlček
     * 
1937
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1938 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1939
     * @throws {RequiredError}
1940
     * @memberof AnnotationApi
1941
     */
1942 19b68a2e Lukáš Vlček
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
1943
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
1944 3e6b15a7 Lukáš Vlček
    }
1945
}
1946
1947 19b68a2e Lukáš Vlček
1948 3e6b15a7 Lukáš Vlček
/**
1949
 * AuthApi - axios parameter creator
1950
 * @export
1951
 */
1952
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1953
    return {
1954
        /**
1955 19b68a2e Lukáš Vlček
         * 
1956
         * @param {LoginRequest} [loginRequest] 
1957 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1958
         * @throws {RequiredError}
1959
         */
1960 19b68a2e Lukáš Vlček
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1961 3e6b15a7 Lukáš Vlček
            const localVarPath = `/auth/login`;
1962
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1963
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1964
            let baseOptions;
1965
            if (configuration) {
1966
                baseOptions = configuration.baseOptions;
1967
            }
1968
1969 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1970 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1971
            const localVarQueryParameter = {} as any;
1972
1973 19b68a2e Lukáš Vlček
1974
    
1975 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
1976
1977
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1978 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1979
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1980
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
1981 3e6b15a7 Lukáš Vlček
1982
            return {
1983
                url: toPathString(localVarUrlObj),
1984
                options: localVarRequestOptions,
1985
            };
1986
        },
1987
        /**
1988 19b68a2e Lukáš Vlček
         * 
1989 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1990
         * @throws {RequiredError}
1991
         */
1992
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1993
            const localVarPath = `/auth/test/aa`;
1994
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1995
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1996
            let baseOptions;
1997
            if (configuration) {
1998
                baseOptions = configuration.baseOptions;
1999
            }
2000
2001 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2002 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2003
            const localVarQueryParameter = {} as any;
2004
2005 19b68a2e Lukáš Vlček
2006
    
2007 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2008 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2009
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2010 3e6b15a7 Lukáš Vlček
2011
            return {
2012
                url: toPathString(localVarUrlObj),
2013
                options: localVarRequestOptions,
2014
            };
2015
        },
2016
        /**
2017 19b68a2e Lukáš Vlček
         * 
2018 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2019
         * @throws {RequiredError}
2020
         */
2021
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2022
            const localVarPath = `/auth/test`;
2023
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2024
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2025
            let baseOptions;
2026
            if (configuration) {
2027
                baseOptions = configuration.baseOptions;
2028
            }
2029
2030 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2031 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2032
            const localVarQueryParameter = {} as any;
2033
2034 19b68a2e Lukáš Vlček
2035
    
2036 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2037 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2038
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2039 3e6b15a7 Lukáš Vlček
2040
            return {
2041
                url: toPathString(localVarUrlObj),
2042
                options: localVarRequestOptions,
2043
            };
2044
        },
2045 19b68a2e Lukáš Vlček
    }
2046 3e6b15a7 Lukáš Vlček
};
2047
2048
/**
2049
 * AuthApi - functional programming interface
2050
 * @export
2051
 */
2052 19b68a2e Lukáš Vlček
export const AuthApiFp = function(configuration?: Configuration) {
2053
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
2054 3e6b15a7 Lukáš Vlček
    return {
2055
        /**
2056 19b68a2e Lukáš Vlček
         * 
2057
         * @param {LoginRequest} [loginRequest] 
2058 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2059
         * @throws {RequiredError}
2060
         */
2061 19b68a2e Lukáš Vlček
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
2062
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
2063
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2064 3e6b15a7 Lukáš Vlček
        },
2065
        /**
2066 19b68a2e Lukáš Vlček
         * 
2067 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2068
         * @throws {RequiredError}
2069
         */
2070 19b68a2e Lukáš Vlček
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2071
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
2072
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2073 3e6b15a7 Lukáš Vlček
        },
2074
        /**
2075 19b68a2e Lukáš Vlček
         * 
2076 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2077
         * @throws {RequiredError}
2078
         */
2079 19b68a2e Lukáš Vlček
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2080
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
2081
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2082 3e6b15a7 Lukáš Vlček
        },
2083 19b68a2e Lukáš Vlček
    }
2084 3e6b15a7 Lukáš Vlček
};
2085
2086
/**
2087
 * AuthApi - factory interface
2088
 * @export
2089
 */
2090 19b68a2e Lukáš Vlček
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2091
    const localVarFp = AuthApiFp(configuration)
2092 3e6b15a7 Lukáš Vlček
    return {
2093
        /**
2094 19b68a2e Lukáš Vlček
         * 
2095
         * @param {LoginRequest} [loginRequest] 
2096 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2097
         * @throws {RequiredError}
2098
         */
2099 19b68a2e Lukáš Vlček
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
2100
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
2101 3e6b15a7 Lukáš Vlček
        },
2102
        /**
2103 19b68a2e Lukáš Vlček
         * 
2104 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2105
         * @throws {RequiredError}
2106
         */
2107
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
2108 19b68a2e Lukáš Vlček
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
2109 3e6b15a7 Lukáš Vlček
        },
2110
        /**
2111 19b68a2e Lukáš Vlček
         * 
2112 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2113
         * @throws {RequiredError}
2114
         */
2115
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
2116 19b68a2e Lukáš Vlček
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
2117 3e6b15a7 Lukáš Vlček
        },
2118
    };
2119
};
2120
2121
/**
2122
 * AuthApi - object-oriented interface
2123
 * @export
2124
 * @class AuthApi
2125
 * @extends {BaseAPI}
2126
 */
2127
export class AuthApi extends BaseAPI {
2128
    /**
2129 19b68a2e Lukáš Vlček
     * 
2130
     * @param {LoginRequest} [loginRequest] 
2131 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2132
     * @throws {RequiredError}
2133
     * @memberof AuthApi
2134
     */
2135
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
2136 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
2137 3e6b15a7 Lukáš Vlček
    }
2138
2139
    /**
2140 19b68a2e Lukáš Vlček
     * 
2141 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2142
     * @throws {RequiredError}
2143
     * @memberof AuthApi
2144
     */
2145
    public authTestAaGet(options?: AxiosRequestConfig) {
2146 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
2147 3e6b15a7 Lukáš Vlček
    }
2148
2149
    /**
2150 19b68a2e Lukáš Vlček
     * 
2151 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2152
     * @throws {RequiredError}
2153
     * @memberof AuthApi
2154
     */
2155
    public authTestGet(options?: AxiosRequestConfig) {
2156 19b68a2e Lukáš Vlček
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
2157 3e6b15a7 Lukáš Vlček
    }
2158
}
2159
2160 19b68a2e Lukáš Vlček
2161 3e6b15a7 Lukáš Vlček
/**
2162
 * DocumentApi - axios parameter creator
2163
 * @export
2164
 */
2165
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
2166
    return {
2167 048b4bc0 Lukáš Vlček
        /**
2168
         * 
2169
         * @param {string} documentId 
2170
         * @param {*} [options] Override http request option.
2171
         * @throws {RequiredError}
2172
         */
2173
        documentDocumentIdFinalPost: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2174
            // verify required parameter 'documentId' is not null or undefined
2175
            assertParamExists('documentDocumentIdFinalPost', 'documentId', documentId)
2176
            const localVarPath = `/document/{documentId}/final`
2177
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2178
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2179
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2180
            let baseOptions;
2181
            if (configuration) {
2182
                baseOptions = configuration.baseOptions;
2183
            }
2184
2185
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2186
            const localVarHeaderParameter = {} as any;
2187
            const localVarQueryParameter = {} as any;
2188
2189
2190
    
2191
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2192
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2193
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2194
2195
            return {
2196
                url: toPathString(localVarUrlObj),
2197
                options: localVarRequestOptions,
2198
            };
2199
        },
2200 cca0bfa0 Lukáš Vlček
        /**
2201
         * 
2202
         * @param {string} documentId 
2203
         * @param {*} [options] Override http request option.
2204
         * @throws {RequiredError}
2205
         */
2206
        documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2207
            // verify required parameter 'documentId' is not null or undefined
2208
            assertParamExists('documentDocumentIdGet', 'documentId', documentId)
2209
            const localVarPath = `/document/{documentId}`
2210
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2211
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2212
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2213
            let baseOptions;
2214
            if (configuration) {
2215
                baseOptions = configuration.baseOptions;
2216
            }
2217
2218
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2219
            const localVarHeaderParameter = {} as any;
2220
            const localVarQueryParameter = {} as any;
2221
2222
2223
    
2224
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2225
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2226
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2227
2228
            return {
2229
                url: toPathString(localVarUrlObj),
2230
                options: localVarRequestOptions,
2231
            };
2232
        },
2233 3e6b15a7 Lukáš Vlček
        /**
2234 19b68a2e Lukáš Vlček
         * 
2235
         * @param {number} [pageIndex] 
2236
         * @param {number} [pageSize] 
2237 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2238
         * @throws {RequiredError}
2239
         */
2240 19b68a2e Lukáš Vlček
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2241 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
2242
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2243
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2244
            let baseOptions;
2245
            if (configuration) {
2246
                baseOptions = configuration.baseOptions;
2247
            }
2248
2249 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2250 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2251
            const localVarQueryParameter = {} as any;
2252
2253 dd747fc5 Lukáš Vlček
            if (pageIndex !== undefined) {
2254
                localVarQueryParameter['pageIndex'] = pageIndex;
2255
            }
2256 3e6b15a7 Lukáš Vlček
2257 dd747fc5 Lukáš Vlček
            if (pageSize !== undefined) {
2258
                localVarQueryParameter['pageSize'] = pageSize;
2259
            }
2260 3e6b15a7 Lukáš Vlček
2261 19b68a2e Lukáš Vlček
2262
    
2263 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2264 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2265
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2266 3e6b15a7 Lukáš Vlček
2267
            return {
2268
                url: toPathString(localVarUrlObj),
2269
                options: localVarRequestOptions,
2270
            };
2271
        },
2272
        /**
2273 19b68a2e Lukáš Vlček
         * 
2274
         * @param {DocumentAddRequest} [documentAddRequest] 
2275 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2276
         * @throws {RequiredError}
2277
         */
2278 19b68a2e Lukáš Vlček
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2279 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
2280
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2281
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2282
            let baseOptions;
2283
            if (configuration) {
2284
                baseOptions = configuration.baseOptions;
2285
            }
2286
2287 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2288 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2289
            const localVarQueryParameter = {} as any;
2290
2291 19b68a2e Lukáš Vlček
2292
    
2293 3e6b15a7 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2294
2295
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2296 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2297
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2298
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
2299
2300
            return {
2301
                url: toPathString(localVarUrlObj),
2302
                options: localVarRequestOptions,
2303 9bfa1e39 Jaroslav Hrubý
            };
2304 19b68a2e Lukáš Vlček
        },
2305
        /**
2306
         * 
2307
         * @param {*} [options] Override http request option.
2308
         * @throws {RequiredError}
2309
         */
2310
        documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2311
            const localVarPath = `/documents/requiredAnnotations/global`;
2312
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2313
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2314
            let baseOptions;
2315
            if (configuration) {
2316
                baseOptions = configuration.baseOptions;
2317
            }
2318
2319
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2320
            const localVarHeaderParameter = {} as any;
2321
            const localVarQueryParameter = {} as any;
2322
2323
2324
    
2325
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2326
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2327
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2328 3e6b15a7 Lukáš Vlček
2329
            return {
2330
                url: toPathString(localVarUrlObj),
2331
                options: localVarRequestOptions,
2332
            };
2333
        },
2334 19b68a2e Lukáš Vlček
        /**
2335
         * 
2336
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2337
         * @param {*} [options] Override http request option.
2338
         * @throws {RequiredError}
2339
         */
2340
        documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2341
            const localVarPath = `/documents/requiredAnnotations/global`;
2342
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2343
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2344
            let baseOptions;
2345
            if (configuration) {
2346
                baseOptions = configuration.baseOptions;
2347
            }
2348
2349
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2350
            const localVarHeaderParameter = {} as any;
2351
            const localVarQueryParameter = {} as any;
2352
2353
2354
    
2355
            localVarHeaderParameter['Content-Type'] = 'application/json';
2356
2357
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2358
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2359
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2360
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
2361
2362
            return {
2363
                url: toPathString(localVarUrlObj),
2364
                options: localVarRequestOptions,
2365
            };
2366
        },
2367
        /**
2368
         * 
2369
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2370
         * @param {*} [options] Override http request option.
2371
         * @throws {RequiredError}
2372
         */
2373
        documentsRequiredAnnotationsPost: async (setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2374
            const localVarPath = `/documents/requiredAnnotations`;
2375
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2376
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2377
            let baseOptions;
2378
            if (configuration) {
2379
                baseOptions = configuration.baseOptions;
2380
            }
2381
2382
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2383
            const localVarHeaderParameter = {} as any;
2384
            const localVarQueryParameter = {} as any;
2385
2386
2387
    
2388
            localVarHeaderParameter['Content-Type'] = 'application/json';
2389
2390
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2391
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2392
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2393
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
2394
2395
            return {
2396
                url: toPathString(localVarUrlObj),
2397
                options: localVarRequestOptions,
2398
            };
2399
        },
2400
    }
2401 3e6b15a7 Lukáš Vlček
};
2402
2403
/**
2404
 * DocumentApi - functional programming interface
2405
 * @export
2406
 */
2407 19b68a2e Lukáš Vlček
export const DocumentApiFp = function(configuration?: Configuration) {
2408
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
2409 3e6b15a7 Lukáš Vlček
    return {
2410 048b4bc0 Lukáš Vlček
        /**
2411
         * 
2412
         * @param {string} documentId 
2413
         * @param {*} [options] Override http request option.
2414
         * @throws {RequiredError}
2415
         */
2416
        async documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFinalAnnotationResponse>> {
2417
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdFinalPost(documentId, options);
2418
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2419
        },
2420 cca0bfa0 Lukáš Vlček
        /**
2421
         * 
2422
         * @param {string} documentId 
2423
         * @param {*} [options] Override http request option.
2424
         * @throws {RequiredError}
2425
         */
2426
        async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
2427
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
2428
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2429
        },
2430 3e6b15a7 Lukáš Vlček
        /**
2431 19b68a2e Lukáš Vlček
         * 
2432
         * @param {number} [pageIndex] 
2433
         * @param {number} [pageSize] 
2434 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2435
         * @throws {RequiredError}
2436
         */
2437 19b68a2e Lukáš Vlček
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
2438
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
2439
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2440 3e6b15a7 Lukáš Vlček
        },
2441
        /**
2442 19b68a2e Lukáš Vlček
         * 
2443
         * @param {DocumentAddRequest} [documentAddRequest] 
2444 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2445
         * @throws {RequiredError}
2446
         */
2447 19b68a2e Lukáš Vlček
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2448
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
2449
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2450 3e6b15a7 Lukáš Vlček
        },
2451 19b68a2e Lukáš Vlček
        /**
2452
         * 
2453
         * @param {*} [options] Override http request option.
2454
         * @throws {RequiredError}
2455
         */
2456
        async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
2457
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
2458
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2459
        },
2460
        /**
2461
         * 
2462
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2463
         * @param {*} [options] Override http request option.
2464
         * @throws {RequiredError}
2465
         */
2466
        async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2467
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
2468
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2469
        },
2470
        /**
2471
         * 
2472
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2473
         * @param {*} [options] Override http request option.
2474
         * @throws {RequiredError}
2475
         */
2476
        async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2477
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
2478
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2479
        },
2480
    }
2481 3e6b15a7 Lukáš Vlček
};
2482
2483
/**
2484
 * DocumentApi - factory interface
2485
 * @export
2486
 */
2487 19b68a2e Lukáš Vlček
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2488
    const localVarFp = DocumentApiFp(configuration)
2489 3e6b15a7 Lukáš Vlček
    return {
2490 048b4bc0 Lukáš Vlček
        /**
2491
         * 
2492
         * @param {string} documentId 
2493
         * @param {*} [options] Override http request option.
2494
         * @throws {RequiredError}
2495
         */
2496
        documentDocumentIdFinalPost(documentId: string, options?: any): AxiosPromise<CreateFinalAnnotationResponse> {
2497
            return localVarFp.documentDocumentIdFinalPost(documentId, options).then((request) => request(axios, basePath));
2498
        },
2499 cca0bfa0 Lukáš Vlček
        /**
2500
         * 
2501
         * @param {string} documentId 
2502
         * @param {*} [options] Override http request option.
2503
         * @throws {RequiredError}
2504
         */
2505
        documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
2506
            return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
2507
        },
2508 3e6b15a7 Lukáš Vlček
        /**
2509 19b68a2e Lukáš Vlček
         * 
2510
         * @param {number} [pageIndex] 
2511
         * @param {number} [pageSize] 
2512
         * @param {*} [options] Override http request option.
2513
         * @throws {RequiredError}
2514
         */
2515
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
2516
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
2517
        },
2518
        /**
2519
         * 
2520
         * @param {DocumentAddRequest} [documentAddRequest] 
2521
         * @param {*} [options] Override http request option.
2522
         * @throws {RequiredError}
2523
         */
2524
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
2525
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
2526
        },
2527
        /**
2528
         * 
2529
         * @param {*} [options] Override http request option.
2530
         * @throws {RequiredError}
2531
         */
2532
        documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
2533
            return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
2534
        },
2535
        /**
2536
         * 
2537
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2538 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2539
         * @throws {RequiredError}
2540
         */
2541 19b68a2e Lukáš Vlček
        documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
2542
            return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
2543 3e6b15a7 Lukáš Vlček
        },
2544
        /**
2545 19b68a2e Lukáš Vlček
         * 
2546
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2547 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2548
         * @throws {RequiredError}
2549
         */
2550 19b68a2e Lukáš Vlček
        documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
2551
            return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
2552 3e6b15a7 Lukáš Vlček
        },
2553
    };
2554
};
2555
2556
/**
2557
 * DocumentApi - object-oriented interface
2558
 * @export
2559
 * @class DocumentApi
2560
 * @extends {BaseAPI}
2561
 */
2562
export class DocumentApi extends BaseAPI {
2563 048b4bc0 Lukáš Vlček
    /**
2564
     * 
2565
     * @param {string} documentId 
2566
     * @param {*} [options] Override http request option.
2567
     * @throws {RequiredError}
2568
     * @memberof DocumentApi
2569
     */
2570
    public documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig) {
2571
        return DocumentApiFp(this.configuration).documentDocumentIdFinalPost(documentId, options).then((request) => request(this.axios, this.basePath));
2572
    }
2573
2574 cca0bfa0 Lukáš Vlček
    /**
2575
     * 
2576
     * @param {string} documentId 
2577
     * @param {*} [options] Override http request option.
2578
     * @throws {RequiredError}
2579
     * @memberof DocumentApi
2580
     */
2581
    public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
2582
        return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
2583
    }
2584
2585 3e6b15a7 Lukáš Vlček
    /**
2586 19b68a2e Lukáš Vlček
     * 
2587
     * @param {number} [pageIndex] 
2588
     * @param {number} [pageSize] 
2589
     * @param {*} [options] Override http request option.
2590
     * @throws {RequiredError}
2591
     * @memberof DocumentApi
2592
     */
2593
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
2594
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
2595
    }
2596
2597
    /**
2598
     * 
2599
     * @param {DocumentAddRequest} [documentAddRequest] 
2600
     * @param {*} [options] Override http request option.
2601
     * @throws {RequiredError}
2602
     * @memberof DocumentApi
2603
     */
2604
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
2605
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
2606
    }
2607
2608
    /**
2609
     * 
2610
     * @param {*} [options] Override http request option.
2611
     * @throws {RequiredError}
2612
     * @memberof DocumentApi
2613
     */
2614
    public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
2615
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
2616
    }
2617
2618
    /**
2619
     * 
2620
     * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2621 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2622
     * @throws {RequiredError}
2623
     * @memberof DocumentApi
2624
     */
2625 19b68a2e Lukáš Vlček
    public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
2626
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
2627 3e6b15a7 Lukáš Vlček
    }
2628
2629
    /**
2630 19b68a2e Lukáš Vlček
     * 
2631
     * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2632 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2633
     * @throws {RequiredError}
2634
     * @memberof DocumentApi
2635
     */
2636 19b68a2e Lukáš Vlček
    public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
2637
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
2638 3e6b15a7 Lukáš Vlček
    }
2639
}
2640
2641 19b68a2e Lukáš Vlček
2642 3e6b15a7 Lukáš Vlček
/**
2643
 * TagApi - axios parameter creator
2644
 * @export
2645
 */
2646
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
2647
    return {
2648
        /**
2649 19b68a2e Lukáš Vlček
         * 
2650 cca0bfa0 Lukáš Vlček
         * @param {CreateCategoryRequest} [createCategoryRequest] 
2651 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2652
         * @throws {RequiredError}
2653
         */
2654 cca0bfa0 Lukáš Vlček
        categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2655
            const localVarPath = `/categories`;
2656 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2657
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2658
            let baseOptions;
2659
            if (configuration) {
2660
                baseOptions = configuration.baseOptions;
2661
            }
2662
2663 cca0bfa0 Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2664 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2665
            const localVarQueryParameter = {} as any;
2666
2667 19b68a2e Lukáš Vlček
2668
    
2669 cca0bfa0 Lukáš Vlček
            localVarHeaderParameter['Content-Type'] = 'application/json';
2670
2671 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2672 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2673
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2674 cca0bfa0 Lukáš Vlček
            localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
2675 3e6b15a7 Lukáš Vlček
2676
            return {
2677
                url: toPathString(localVarUrlObj),
2678
                options: localVarRequestOptions,
2679
            };
2680
        },
2681
        /**
2682 19b68a2e Lukáš Vlček
         * 
2683 cca0bfa0 Lukáš Vlček
         * @param {string} categoryId 
2684 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2685
         * @throws {RequiredError}
2686
         */
2687 cca0bfa0 Lukáš Vlček
        categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2688
            // verify required parameter 'categoryId' is not null or undefined
2689
            assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
2690
            const localVarPath = `/category/{categoryId}`
2691
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
2692
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2693
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2694
            let baseOptions;
2695
            if (configuration) {
2696
                baseOptions = configuration.baseOptions;
2697
            }
2698
2699
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2700
            const localVarHeaderParameter = {} as any;
2701
            const localVarQueryParameter = {} as any;
2702
2703
2704
    
2705
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2706
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2707
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2708
2709
            return {
2710
                url: toPathString(localVarUrlObj),
2711
                options: localVarRequestOptions,
2712
            };
2713
        },
2714
        /**
2715
         * 
2716
         * @param {string} categoryId 
2717
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
2718
         * @param {*} [options] Override http request option.
2719
         * @throws {RequiredError}
2720
         */
2721
        categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2722
            // verify required parameter 'categoryId' is not null or undefined
2723
            assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
2724
            const localVarPath = `/category/{categoryId}`
2725
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
2726
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2727
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2728
            let baseOptions;
2729
            if (configuration) {
2730
                baseOptions = configuration.baseOptions;
2731
            }
2732
2733
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2734
            const localVarHeaderParameter = {} as any;
2735
            const localVarQueryParameter = {} as any;
2736
2737
2738
    
2739
            localVarHeaderParameter['Content-Type'] = 'application/json';
2740
2741
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2742
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2743
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2744
            localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
2745
2746
            return {
2747
                url: toPathString(localVarUrlObj),
2748
                options: localVarRequestOptions,
2749
            };
2750
        },
2751
        /**
2752
         * 
2753
         * @param {string} subtagId 
2754
         * @param {*} [options] Override http request option.
2755
         * @throws {RequiredError}
2756
         */
2757
        subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2758
            // verify required parameter 'subtagId' is not null or undefined
2759
            assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
2760
            const localVarPath = `/subtag/{subtagId}`
2761
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
2762
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2763
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2764
            let baseOptions;
2765
            if (configuration) {
2766
                baseOptions = configuration.baseOptions;
2767
            }
2768
2769
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2770
            const localVarHeaderParameter = {} as any;
2771
            const localVarQueryParameter = {} as any;
2772
2773
2774
    
2775
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2776
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2777
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2778
2779
            return {
2780
                url: toPathString(localVarUrlObj),
2781
                options: localVarRequestOptions,
2782
            };
2783
        },
2784
        /**
2785
         * 
2786
         * @param {string} subtagId 
2787
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
2788
         * @param {*} [options] Override http request option.
2789
         * @throws {RequiredError}
2790
         */
2791
        subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2792
            // verify required parameter 'subtagId' is not null or undefined
2793
            assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
2794
            const localVarPath = `/subtag/{subtagId}`
2795
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
2796
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2797
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2798
            let baseOptions;
2799
            if (configuration) {
2800
                baseOptions = configuration.baseOptions;
2801
            }
2802
2803
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2804
            const localVarHeaderParameter = {} as any;
2805
            const localVarQueryParameter = {} as any;
2806
2807
2808
    
2809
            localVarHeaderParameter['Content-Type'] = 'application/json';
2810
2811
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2812
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2813
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2814
            localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
2815
2816
            return {
2817
                url: toPathString(localVarUrlObj),
2818
                options: localVarRequestOptions,
2819
            };
2820
        },
2821
        /**
2822
         * 
2823
         * @param {CreateSubTagRequest} [createSubTagRequest] 
2824
         * @param {*} [options] Override http request option.
2825
         * @throws {RequiredError}
2826
         */
2827
        subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2828
            const localVarPath = `/subtags`;
2829
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2830
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2831
            let baseOptions;
2832
            if (configuration) {
2833
                baseOptions = configuration.baseOptions;
2834
            }
2835
2836
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2837
            const localVarHeaderParameter = {} as any;
2838
            const localVarQueryParameter = {} as any;
2839
2840
2841
    
2842
            localVarHeaderParameter['Content-Type'] = 'application/json';
2843
2844
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2845
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2846
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2847
            localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
2848
2849
            return {
2850
                url: toPathString(localVarUrlObj),
2851
                options: localVarRequestOptions,
2852
            };
2853
        },
2854
        /**
2855
         * 
2856
         * @param {string} tagId 
2857
         * @param {*} [options] Override http request option.
2858
         * @throws {RequiredError}
2859
         */
2860
        tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2861
            // verify required parameter 'tagId' is not null or undefined
2862
            assertParamExists('tagTagIdDelete', 'tagId', tagId)
2863
            const localVarPath = `/tag/{tagId}`
2864
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
2865
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2866
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2867
            let baseOptions;
2868
            if (configuration) {
2869
                baseOptions = configuration.baseOptions;
2870
            }
2871
2872
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2873
            const localVarHeaderParameter = {} as any;
2874
            const localVarQueryParameter = {} as any;
2875
2876
2877
    
2878
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2879
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2880
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2881
2882
            return {
2883
                url: toPathString(localVarUrlObj),
2884
                options: localVarRequestOptions,
2885
            };
2886
        },
2887
        /**
2888
         * 
2889
         * @param {string} tagId 
2890
         * @param {ModifyTagRequest} [modifyTagRequest] 
2891
         * @param {*} [options] Override http request option.
2892
         * @throws {RequiredError}
2893
         */
2894
        tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2895
            // verify required parameter 'tagId' is not null or undefined
2896
            assertParamExists('tagTagIdPut', 'tagId', tagId)
2897
            const localVarPath = `/tag/{tagId}`
2898
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
2899
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2900
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2901
            let baseOptions;
2902
            if (configuration) {
2903
                baseOptions = configuration.baseOptions;
2904
            }
2905
2906
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2907
            const localVarHeaderParameter = {} as any;
2908
            const localVarQueryParameter = {} as any;
2909
2910
2911
    
2912
            localVarHeaderParameter['Content-Type'] = 'application/json';
2913
2914
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2915
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2916
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2917
            localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
2918
2919
            return {
2920
                url: toPathString(localVarUrlObj),
2921
                options: localVarRequestOptions,
2922
            };
2923
        },
2924
        /**
2925
         * 
2926
         * @param {*} [options] Override http request option.
2927
         * @throws {RequiredError}
2928
         */
2929
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2930
            const localVarPath = `/tags`;
2931
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2932
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2933
            let baseOptions;
2934
            if (configuration) {
2935
                baseOptions = configuration.baseOptions;
2936
            }
2937
2938
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2939
            const localVarHeaderParameter = {} as any;
2940
            const localVarQueryParameter = {} as any;
2941
2942
2943
    
2944
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2945
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2946
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2947
2948
            return {
2949
                url: toPathString(localVarUrlObj),
2950
                options: localVarRequestOptions,
2951
            };
2952
        },
2953
        /**
2954
         * 
2955
         * @param {CreateTagRequest} [createTagRequest] 
2956
         * @param {*} [options] Override http request option.
2957
         * @throws {RequiredError}
2958
         */
2959
        tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2960
            const localVarPath = `/tags`;
2961
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2962
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2963
            let baseOptions;
2964
            if (configuration) {
2965
                baseOptions = configuration.baseOptions;
2966
            }
2967
2968
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2969
            const localVarHeaderParameter = {} as any;
2970
            const localVarQueryParameter = {} as any;
2971
2972
2973
    
2974
            localVarHeaderParameter['Content-Type'] = 'application/json';
2975
2976
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2977
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2978
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2979
            localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
2980
2981
            return {
2982
                url: toPathString(localVarUrlObj),
2983
                options: localVarRequestOptions,
2984
            };
2985
        },
2986
    }
2987
};
2988
2989
/**
2990
 * TagApi - functional programming interface
2991
 * @export
2992
 */
2993
export const TagApiFp = function(configuration?: Configuration) {
2994
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
2995
    return {
2996
        /**
2997
         * 
2998
         * @param {CreateCategoryRequest} [createCategoryRequest] 
2999
         * @param {*} [options] Override http request option.
3000
         * @throws {RequiredError}
3001
         */
3002
        async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3003
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options);
3004
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3005
        },
3006
        /**
3007
         * 
3008
         * @param {string} categoryId 
3009
         * @param {*} [options] Override http request option.
3010
         * @throws {RequiredError}
3011
         */
3012
        async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3013
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options);
3014
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3015
        },
3016
        /**
3017
         * 
3018
         * @param {string} categoryId 
3019
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3020
         * @param {*} [options] Override http request option.
3021
         * @throws {RequiredError}
3022
         */
3023
        async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3024
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options);
3025
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3026
        },
3027
        /**
3028
         * 
3029
         * @param {string} subtagId 
3030
         * @param {*} [options] Override http request option.
3031
         * @throws {RequiredError}
3032
         */
3033
        async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3034
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options);
3035
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3036
        },
3037
        /**
3038
         * 
3039
         * @param {string} subtagId 
3040
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3041
         * @param {*} [options] Override http request option.
3042
         * @throws {RequiredError}
3043
         */
3044
        async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3045
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options);
3046
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3047
        },
3048
        /**
3049
         * 
3050
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3051
         * @param {*} [options] Override http request option.
3052
         * @throws {RequiredError}
3053
         */
3054
        async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3055
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options);
3056
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3057
        },
3058
        /**
3059
         * 
3060
         * @param {string} tagId 
3061
         * @param {*} [options] Override http request option.
3062
         * @throws {RequiredError}
3063
         */
3064
        async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3065
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options);
3066
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3067
        },
3068
        /**
3069
         * 
3070
         * @param {string} tagId 
3071
         * @param {ModifyTagRequest} [modifyTagRequest] 
3072
         * @param {*} [options] Override http request option.
3073
         * @throws {RequiredError}
3074
         */
3075
        async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3076
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options);
3077
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3078
        },
3079
        /**
3080
         * 
3081
         * @param {*} [options] Override http request option.
3082
         * @throws {RequiredError}
3083
         */
3084
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
3085
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
3086
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3087
        },
3088
        /**
3089
         * 
3090
         * @param {CreateTagRequest} [createTagRequest] 
3091
         * @param {*} [options] Override http request option.
3092
         * @throws {RequiredError}
3093
         */
3094
        async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3095
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options);
3096 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3097 3e6b15a7 Lukáš Vlček
        },
3098 19b68a2e Lukáš Vlček
    }
3099 3e6b15a7 Lukáš Vlček
};
3100
3101
/**
3102
 * TagApi - factory interface
3103
 * @export
3104
 */
3105 19b68a2e Lukáš Vlček
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3106
    const localVarFp = TagApiFp(configuration)
3107 3e6b15a7 Lukáš Vlček
    return {
3108 cca0bfa0 Lukáš Vlček
        /**
3109
         * 
3110
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3111
         * @param {*} [options] Override http request option.
3112
         * @throws {RequiredError}
3113
         */
3114
        categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> {
3115
            return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath));
3116
        },
3117
        /**
3118
         * 
3119
         * @param {string} categoryId 
3120
         * @param {*} [options] Override http request option.
3121
         * @throws {RequiredError}
3122
         */
3123
        categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> {
3124
            return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath));
3125
        },
3126
        /**
3127
         * 
3128
         * @param {string} categoryId 
3129
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3130
         * @param {*} [options] Override http request option.
3131
         * @throws {RequiredError}
3132
         */
3133
        categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> {
3134
            return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath));
3135
        },
3136
        /**
3137
         * 
3138
         * @param {string} subtagId 
3139
         * @param {*} [options] Override http request option.
3140
         * @throws {RequiredError}
3141
         */
3142
        subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> {
3143
            return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath));
3144
        },
3145
        /**
3146
         * 
3147
         * @param {string} subtagId 
3148
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3149
         * @param {*} [options] Override http request option.
3150
         * @throws {RequiredError}
3151
         */
3152
        subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> {
3153
            return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath));
3154
        },
3155
        /**
3156
         * 
3157
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3158
         * @param {*} [options] Override http request option.
3159
         * @throws {RequiredError}
3160
         */
3161
        subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> {
3162
            return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath));
3163
        },
3164
        /**
3165
         * 
3166
         * @param {string} tagId 
3167
         * @param {*} [options] Override http request option.
3168
         * @throws {RequiredError}
3169
         */
3170
        tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> {
3171
            return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
3172
        },
3173
        /**
3174
         * 
3175
         * @param {string} tagId 
3176
         * @param {ModifyTagRequest} [modifyTagRequest] 
3177
         * @param {*} [options] Override http request option.
3178
         * @throws {RequiredError}
3179
         */
3180
        tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> {
3181
            return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath));
3182
        },
3183 3e6b15a7 Lukáš Vlček
        /**
3184 19b68a2e Lukáš Vlček
         * 
3185 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3186
         * @throws {RequiredError}
3187
         */
3188
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
3189 19b68a2e Lukáš Vlček
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
3190 3e6b15a7 Lukáš Vlček
        },
3191 cca0bfa0 Lukáš Vlček
        /**
3192
         * 
3193
         * @param {CreateTagRequest} [createTagRequest] 
3194
         * @param {*} [options] Override http request option.
3195
         * @throws {RequiredError}
3196
         */
3197
        tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> {
3198
            return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath));
3199
        },
3200 3e6b15a7 Lukáš Vlček
    };
3201
};
3202
3203
/**
3204
 * TagApi - object-oriented interface
3205
 * @export
3206
 * @class TagApi
3207
 * @extends {BaseAPI}
3208
 */
3209
export class TagApi extends BaseAPI {
3210 cca0bfa0 Lukáš Vlček
    /**
3211
     * 
3212
     * @param {CreateCategoryRequest} [createCategoryRequest] 
3213
     * @param {*} [options] Override http request option.
3214
     * @throws {RequiredError}
3215
     * @memberof TagApi
3216
     */
3217
    public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
3218
        return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
3219
    }
3220
3221
    /**
3222
     * 
3223
     * @param {string} categoryId 
3224
     * @param {*} [options] Override http request option.
3225
     * @throws {RequiredError}
3226
     * @memberof TagApi
3227
     */
3228
    public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
3229
        return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
3230
    }
3231
3232
    /**
3233
     * 
3234
     * @param {string} categoryId 
3235
     * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3236
     * @param {*} [options] Override http request option.
3237
     * @throws {RequiredError}
3238
     * @memberof TagApi
3239
     */
3240
    public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
3241
        return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
3242
    }
3243
3244
    /**
3245
     * 
3246
     * @param {string} subtagId 
3247
     * @param {*} [options] Override http request option.
3248
     * @throws {RequiredError}
3249
     * @memberof TagApi
3250
     */
3251
    public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
3252
        return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
3253
    }
3254
3255
    /**
3256
     * 
3257
     * @param {string} subtagId 
3258
     * @param {ModifySubTagRequest} [modifySubTagRequest] 
3259
     * @param {*} [options] Override http request option.
3260
     * @throws {RequiredError}
3261
     * @memberof TagApi
3262
     */
3263
    public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
3264
        return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
3265
    }
3266
3267
    /**
3268
     * 
3269
     * @param {CreateSubTagRequest} [createSubTagRequest] 
3270
     * @param {*} [options] Override http request option.
3271
     * @throws {RequiredError}
3272
     * @memberof TagApi
3273
     */
3274
    public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
3275
        return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
3276
    }
3277
3278
    /**
3279
     * 
3280
     * @param {string} tagId 
3281
     * @param {*} [options] Override http request option.
3282
     * @throws {RequiredError}
3283
     * @memberof TagApi
3284
     */
3285
    public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
3286
        return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
3287
    }
3288
3289
    /**
3290
     * 
3291
     * @param {string} tagId 
3292
     * @param {ModifyTagRequest} [modifyTagRequest] 
3293
     * @param {*} [options] Override http request option.
3294
     * @throws {RequiredError}
3295
     * @memberof TagApi
3296
     */
3297
    public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
3298
        return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
3299
    }
3300
3301 3e6b15a7 Lukáš Vlček
    /**
3302 19b68a2e Lukáš Vlček
     * 
3303 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
3304
     * @throws {RequiredError}
3305
     * @memberof TagApi
3306
     */
3307
    public tagsGet(options?: AxiosRequestConfig) {
3308 19b68a2e Lukáš Vlček
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
3309 3e6b15a7 Lukáš Vlček
    }
3310 cca0bfa0 Lukáš Vlček
3311
    /**
3312
     * 
3313
     * @param {CreateTagRequest} [createTagRequest] 
3314
     * @param {*} [options] Override http request option.
3315
     * @throws {RequiredError}
3316
     * @memberof TagApi
3317
     */
3318
    public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
3319
        return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
3320
    }
3321 3e6b15a7 Lukáš Vlček
}
3322
3323 19b68a2e Lukáš Vlček
3324 3e6b15a7 Lukáš Vlček
/**
3325
 * UserApi - axios parameter creator
3326
 * @export
3327
 */
3328
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
3329
    return {
3330
        /**
3331 19b68a2e Lukáš Vlček
         * 
3332 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3333
         * @throws {RequiredError}
3334
         */
3335 19b68a2e Lukáš Vlček
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3336 3e6b15a7 Lukáš Vlček
            const localVarPath = `/user/annotations`;
3337
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3338
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3339
            let baseOptions;
3340
            if (configuration) {
3341
                baseOptions = configuration.baseOptions;
3342
            }
3343
3344 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3345 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
3346
            const localVarQueryParameter = {} as any;
3347
3348 19b68a2e Lukáš Vlček
3349
    
3350 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3351 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3352
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3353 3e6b15a7 Lukáš Vlček
3354
            return {
3355
                url: toPathString(localVarUrlObj),
3356
                options: localVarRequestOptions,
3357
            };
3358
        },
3359 43d49a98 Jaroslav Hrubý
        /**
3360 19b68a2e Lukáš Vlček
         * 
3361
         * @param {string} userId 
3362 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3363
         * @throws {RequiredError}
3364
         */
3365 19b68a2e Lukáš Vlček
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3366 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
3367 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
3368
            const localVarPath = `/user/{userId}/annotations`
3369
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3370 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3371
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3372
            let baseOptions;
3373
            if (configuration) {
3374
                baseOptions = configuration.baseOptions;
3375
            }
3376
3377 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3378 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
3379
            const localVarQueryParameter = {} as any;
3380
3381 19b68a2e Lukáš Vlček
3382
    
3383 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3384 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3385
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3386 43d49a98 Jaroslav Hrubý
3387
            return {
3388
                url: toPathString(localVarUrlObj),
3389
                options: localVarRequestOptions,
3390
            };
3391
        },
3392
        /**
3393 19b68a2e Lukáš Vlček
         * 
3394
         * @param {string} userId 
3395 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3396
         * @throws {RequiredError}
3397
         */
3398 19b68a2e Lukáš Vlček
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3399 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
3400 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdDelete', 'userId', userId)
3401
            const localVarPath = `/user/{userId}`
3402
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3403 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3404
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3405
            let baseOptions;
3406
            if (configuration) {
3407
                baseOptions = configuration.baseOptions;
3408
            }
3409
3410 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3411 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
3412
            const localVarQueryParameter = {} as any;
3413
3414 19b68a2e Lukáš Vlček
3415
    
3416 43d49a98 Jaroslav Hrubý
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3417 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3418
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3419 43d49a98 Jaroslav Hrubý
3420
            return {
3421
                url: toPathString(localVarUrlObj),
3422
                options: localVarRequestOptions,
3423
            };
3424
        },
3425
        /**
3426 19b68a2e Lukáš Vlček
         * 
3427
         * @param {string} userId 
3428
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3429 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3430
         * @throws {RequiredError}
3431
         */
3432 19b68a2e Lukáš Vlček
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3433 43d49a98 Jaroslav Hrubý
            // verify required parameter 'userId' is not null or undefined
3434 19b68a2e Lukáš Vlček
            assertParamExists('userUserIdPut', 'userId', userId)
3435
            const localVarPath = `/user/{userId}`
3436
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3437 43d49a98 Jaroslav Hrubý
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3438
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3439
            let baseOptions;
3440
            if (configuration) {
3441
                baseOptions = configuration.baseOptions;
3442
            }
3443
3444 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3445 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
3446
            const localVarQueryParameter = {} as any;
3447
3448 19b68a2e Lukáš Vlček
3449
    
3450 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
3451
3452
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3453 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3454
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3455
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
3456 43d49a98 Jaroslav Hrubý
3457
            return {
3458
                url: toPathString(localVarUrlObj),
3459
                options: localVarRequestOptions,
3460
            };
3461
        },
3462 3e6b15a7 Lukáš Vlček
        /**
3463 19b68a2e Lukáš Vlček
         * 
3464 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3465
         * @throws {RequiredError}
3466
         */
3467
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3468
            const localVarPath = `/users`;
3469
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3470
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3471
            let baseOptions;
3472
            if (configuration) {
3473
                baseOptions = configuration.baseOptions;
3474
            }
3475
3476 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3477 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
3478
            const localVarQueryParameter = {} as any;
3479
3480 19b68a2e Lukáš Vlček
3481
    
3482 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3483 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3484
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3485 3e6b15a7 Lukáš Vlček
3486 43d49a98 Jaroslav Hrubý
            return {
3487
                url: toPathString(localVarUrlObj),
3488
                options: localVarRequestOptions,
3489
            };
3490
        },
3491
        /**
3492 19b68a2e Lukáš Vlček
         * 
3493
         * @param {CreateUserRequest} [createUserRequest] 
3494 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3495
         * @throws {RequiredError}
3496
         */
3497 19b68a2e Lukáš Vlček
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3498 43d49a98 Jaroslav Hrubý
            const localVarPath = `/users`;
3499
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3500
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3501
            let baseOptions;
3502
            if (configuration) {
3503
                baseOptions = configuration.baseOptions;
3504
            }
3505
3506 19b68a2e Lukáš Vlček
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3507 43d49a98 Jaroslav Hrubý
            const localVarHeaderParameter = {} as any;
3508
            const localVarQueryParameter = {} as any;
3509
3510 19b68a2e Lukáš Vlček
3511
    
3512 43d49a98 Jaroslav Hrubý
            localVarHeaderParameter['Content-Type'] = 'application/json';
3513
3514
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3515 19b68a2e Lukáš Vlček
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3516
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3517
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
3518 43d49a98 Jaroslav Hrubý
3519 3e6b15a7 Lukáš Vlček
            return {
3520
                url: toPathString(localVarUrlObj),
3521
                options: localVarRequestOptions,
3522
            };
3523
        },
3524 19b68a2e Lukáš Vlček
    }
3525 3e6b15a7 Lukáš Vlček
};
3526
3527
/**
3528
 * UserApi - functional programming interface
3529
 * @export
3530
 */
3531 19b68a2e Lukáš Vlček
export const UserApiFp = function(configuration?: Configuration) {
3532
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
3533 3e6b15a7 Lukáš Vlček
    return {
3534
        /**
3535 19b68a2e Lukáš Vlček
         * 
3536 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3537
         * @throws {RequiredError}
3538
         */
3539 19b68a2e Lukáš Vlček
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
3540
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
3541
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3542 3e6b15a7 Lukáš Vlček
        },
3543 43d49a98 Jaroslav Hrubý
        /**
3544 19b68a2e Lukáš Vlček
         * 
3545
         * @param {string} userId 
3546 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3547
         * @throws {RequiredError}
3548
         */
3549 19b68a2e Lukáš Vlček
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
3550
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
3551
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3552 43d49a98 Jaroslav Hrubý
        },
3553
        /**
3554 19b68a2e Lukáš Vlček
         * 
3555
         * @param {string} userId 
3556 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3557
         * @throws {RequiredError}
3558
         */
3559 19b68a2e Lukáš Vlček
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3560
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
3561
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3562 43d49a98 Jaroslav Hrubý
        },
3563
        /**
3564 19b68a2e Lukáš Vlček
         * 
3565
         * @param {string} userId 
3566
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3567 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3568
         * @throws {RequiredError}
3569
         */
3570 19b68a2e Lukáš Vlček
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3571
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
3572
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3573 43d49a98 Jaroslav Hrubý
        },
3574 3e6b15a7 Lukáš Vlček
        /**
3575 19b68a2e Lukáš Vlček
         * 
3576 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3577
         * @throws {RequiredError}
3578
         */
3579 19b68a2e Lukáš Vlček
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
3580 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
3581 19b68a2e Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3582 3e6b15a7 Lukáš Vlček
        },
3583 43d49a98 Jaroslav Hrubý
        /**
3584 19b68a2e Lukáš Vlček
         * 
3585
         * @param {CreateUserRequest} [createUserRequest] 
3586 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3587
         * @throws {RequiredError}
3588
         */
3589 19b68a2e Lukáš Vlček
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3590
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
3591
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3592 43d49a98 Jaroslav Hrubý
        },
3593 19b68a2e Lukáš Vlček
    }
3594 3e6b15a7 Lukáš Vlček
};
3595
3596
/**
3597
 * UserApi - factory interface
3598
 * @export
3599
 */
3600 19b68a2e Lukáš Vlček
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3601
    const localVarFp = UserApiFp(configuration)
3602 3e6b15a7 Lukáš Vlček
    return {
3603
        /**
3604 19b68a2e Lukáš Vlček
         * 
3605 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3606
         * @throws {RequiredError}
3607
         */
3608
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
3609 19b68a2e Lukáš Vlček
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
3610 3e6b15a7 Lukáš Vlček
        },
3611 43d49a98 Jaroslav Hrubý
        /**
3612 19b68a2e Lukáš Vlček
         * 
3613
         * @param {string} userId 
3614 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3615
         * @throws {RequiredError}
3616
         */
3617 19b68a2e Lukáš Vlček
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
3618
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
3619 43d49a98 Jaroslav Hrubý
        },
3620
        /**
3621 19b68a2e Lukáš Vlček
         * 
3622
         * @param {string} userId 
3623 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3624
         * @throws {RequiredError}
3625
         */
3626
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
3627 19b68a2e Lukáš Vlček
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
3628 43d49a98 Jaroslav Hrubý
        },
3629
        /**
3630 19b68a2e Lukáš Vlček
         * 
3631
         * @param {string} userId 
3632
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3633 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3634
         * @throws {RequiredError}
3635
         */
3636 19b68a2e Lukáš Vlček
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
3637
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
3638 43d49a98 Jaroslav Hrubý
        },
3639 3e6b15a7 Lukáš Vlček
        /**
3640 19b68a2e Lukáš Vlček
         * 
3641 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
3642
         * @throws {RequiredError}
3643
         */
3644
        usersGet(options?: any): AxiosPromise<UserList> {
3645 19b68a2e Lukáš Vlček
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
3646 3e6b15a7 Lukáš Vlček
        },
3647 43d49a98 Jaroslav Hrubý
        /**
3648 19b68a2e Lukáš Vlček
         * 
3649
         * @param {CreateUserRequest} [createUserRequest] 
3650 43d49a98 Jaroslav Hrubý
         * @param {*} [options] Override http request option.
3651
         * @throws {RequiredError}
3652
         */
3653 19b68a2e Lukáš Vlček
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
3654
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
3655 43d49a98 Jaroslav Hrubý
        },
3656 3e6b15a7 Lukáš Vlček
    };
3657
};
3658
3659
/**
3660
 * UserApi - object-oriented interface
3661
 * @export
3662
 * @class UserApi
3663
 * @extends {BaseAPI}
3664
 */
3665
export class UserApi extends BaseAPI {
3666
    /**
3667 19b68a2e Lukáš Vlček
     * 
3668 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
3669
     * @throws {RequiredError}
3670
     * @memberof UserApi
3671
     */
3672
    public userAnnotationsGet(options?: AxiosRequestConfig) {
3673 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
3674 3e6b15a7 Lukáš Vlček
    }
3675
3676 43d49a98 Jaroslav Hrubý
    /**
3677 19b68a2e Lukáš Vlček
     * 
3678
     * @param {string} userId 
3679 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
3680
     * @throws {RequiredError}
3681
     * @memberof UserApi
3682
     */
3683
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
3684 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
3685 43d49a98 Jaroslav Hrubý
    }
3686
3687
    /**
3688 19b68a2e Lukáš Vlček
     * 
3689
     * @param {string} userId 
3690 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
3691
     * @throws {RequiredError}
3692
     * @memberof UserApi
3693
     */
3694
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
3695 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
3696 43d49a98 Jaroslav Hrubý
    }
3697
3698
    /**
3699 19b68a2e Lukáš Vlček
     * 
3700
     * @param {string} userId 
3701
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3702 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
3703
     * @throws {RequiredError}
3704
     * @memberof UserApi
3705
     */
3706 19b68a2e Lukáš Vlček
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
3707
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
3708 43d49a98 Jaroslav Hrubý
    }
3709
3710 3e6b15a7 Lukáš Vlček
    /**
3711 19b68a2e Lukáš Vlček
     * 
3712 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
3713
     * @throws {RequiredError}
3714
     * @memberof UserApi
3715
     */
3716
    public usersGet(options?: AxiosRequestConfig) {
3717 19b68a2e Lukáš Vlček
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
3718 3e6b15a7 Lukáš Vlček
    }
3719 43d49a98 Jaroslav Hrubý
3720
    /**
3721 19b68a2e Lukáš Vlček
     * 
3722
     * @param {CreateUserRequest} [createUserRequest] 
3723 43d49a98 Jaroslav Hrubý
     * @param {*} [options] Override http request option.
3724
     * @throws {RequiredError}
3725
     * @memberof UserApi
3726
     */
3727 19b68a2e Lukáš Vlček
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
3728
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
3729 43d49a98 Jaroslav Hrubý
    }
3730 3e6b15a7 Lukáš Vlček
}
3731 19b68a2e Lukáš Vlček