Projekt

Obecné

Profil

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