Projekt

Obecné

Profil

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