Projekt

Obecné

Profil

Stáhnout (69.4 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 9bfa1e39 Jaroslav Hrubý
 *
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
import { Configuration } from './configuration';
16
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
// Some imports not used depending on template conditions
18
// @ts-ignore
19 9bfa1e39 Jaroslav Hrubý
import {
20
    DUMMY_BASE_URL,
21
    assertParamExists,
22
    setApiKeyToObject,
23
    setBasicAuthToObject,
24
    setBearerAuthToObject,
25
    setOAuthToObject,
26
    setSearchParams,
27
    serializeDataIfNeeded,
28
    toPathString,
29
    createRequestFunction,
30
} from './common';
31 3e6b15a7 Lukáš Vlček
// @ts-ignore
32 9bfa1e39 Jaroslav Hrubý
import {
33
    BASE_PATH,
34
    COLLECTION_FORMATS,
35
    RequestArgs,
36
    BaseAPI,
37
    RequiredError,
38
} from './base';
39 3e6b15a7 Lukáš Vlček
40
/**
41 9bfa1e39 Jaroslav Hrubý
 *
42 3e6b15a7 Lukáš Vlček
 * @export
43
 * @interface AnnotationInfo
44
 */
45
export interface AnnotationInfo {
46
    /**
47 9bfa1e39 Jaroslav Hrubý
     *
48 3e6b15a7 Lukáš Vlček
     * @type {string}
49
     * @memberof AnnotationInfo
50
     */
51 9bfa1e39 Jaroslav Hrubý
    sourceDocumentContent?: string | null;
52 b5f60842 Lukáš Vlček
    /**
53 9bfa1e39 Jaroslav Hrubý
     *
54 b5f60842 Lukáš Vlček
     * @type {string}
55
     * @memberof AnnotationInfo
56
     */
57 9bfa1e39 Jaroslav Hrubý
    documentToRender?: string | null;
58 b5f60842 Lukáš Vlček
    /**
59 9bfa1e39 Jaroslav Hrubý
     *
60 b5f60842 Lukáš Vlček
     * @type {Array<number>}
61
     * @memberof AnnotationInfo
62
     */
63 9bfa1e39 Jaroslav Hrubý
    tagStartPositions?: Array<number> | null;
64 b5f60842 Lukáš Vlček
    /**
65 9bfa1e39 Jaroslav Hrubý
     *
66 b5f60842 Lukáš Vlček
     * @type {Array<number>}
67
     * @memberof AnnotationInfo
68
     */
69 9bfa1e39 Jaroslav Hrubý
    tagLengths?: Array<number> | null;
70 3e6b15a7 Lukáš Vlček
    /**
71 9bfa1e39 Jaroslav Hrubý
     *
72 3e6b15a7 Lukáš Vlček
     * @type {EState}
73
     * @memberof AnnotationInfo
74
     */
75 9bfa1e39 Jaroslav Hrubý
    state?: EState;
76 3e6b15a7 Lukáš Vlček
    /**
77 9bfa1e39 Jaroslav Hrubý
     *
78 3e6b15a7 Lukáš Vlček
     * @type {EDocumentType}
79
     * @memberof AnnotationInfo
80
     */
81 9bfa1e39 Jaroslav Hrubý
    type?: EDocumentType;
82 3e6b15a7 Lukáš Vlček
    /**
83 9bfa1e39 Jaroslav Hrubý
     *
84 3e6b15a7 Lukáš Vlček
     * @type {string}
85
     * @memberof AnnotationInfo
86
     */
87 9bfa1e39 Jaroslav Hrubý
    note?: string | null;
88 3e6b15a7 Lukáš Vlček
    /**
89 9bfa1e39 Jaroslav Hrubý
     *
90 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInstanceInfo>}
91
     * @memberof AnnotationInfo
92
     */
93 9bfa1e39 Jaroslav Hrubý
    tagInstances?: Array<TagInstanceInfo> | null;
94 3e6b15a7 Lukáš Vlček
}
95 4bc99591 Lukáš Vlček
/**
96 9bfa1e39 Jaroslav Hrubý
 *
97 4bc99591 Lukáš Vlček
 * @export
98
 * @interface AnnotationInstanceAddRequest
99
 */
100
export interface AnnotationInstanceAddRequest {
101
    /**
102 9bfa1e39 Jaroslav Hrubý
     *
103 4bc99591 Lukáš Vlček
     * @type {number}
104
     * @memberof AnnotationInstanceAddRequest
105
     */
106 9bfa1e39 Jaroslav Hrubý
    position?: number;
107 4bc99591 Lukáš Vlček
    /**
108 9bfa1e39 Jaroslav Hrubý
     *
109 4bc99591 Lukáš Vlček
     * @type {number}
110
     * @memberof AnnotationInstanceAddRequest
111
     */
112 9bfa1e39 Jaroslav Hrubý
    length?: number;
113 4bc99591 Lukáš Vlček
    /**
114 9bfa1e39 Jaroslav Hrubý
     *
115 4bc99591 Lukáš Vlček
     * @type {ETagType}
116
     * @memberof AnnotationInstanceAddRequest
117
     */
118 9bfa1e39 Jaroslav Hrubý
    type?: ETagType;
119 4bc99591 Lukáš Vlček
    /**
120 9bfa1e39 Jaroslav Hrubý
     *
121 4bc99591 Lukáš Vlček
     * @type {string}
122
     * @memberof AnnotationInstanceAddRequest
123
     */
124 9bfa1e39 Jaroslav Hrubý
    id?: string;
125 4bc99591 Lukáš Vlček
    /**
126 9bfa1e39 Jaroslav Hrubý
     *
127 4bc99591 Lukáš Vlček
     * @type {string}
128
     * @memberof AnnotationInstanceAddRequest
129
     */
130 9bfa1e39 Jaroslav Hrubý
    instanceId?: string | null;
131 4bc99591 Lukáš Vlček
}
132 3e6b15a7 Lukáš Vlček
/**
133 9bfa1e39 Jaroslav Hrubý
 *
134 3e6b15a7 Lukáš Vlček
 * @export
135
 * @interface AnnotationListInfo
136
 */
137
export interface AnnotationListInfo {
138
    /**
139 9bfa1e39 Jaroslav Hrubý
     *
140 3e6b15a7 Lukáš Vlček
     * @type {string}
141
     * @memberof AnnotationListInfo
142
     */
143 9bfa1e39 Jaroslav Hrubý
    documentName?: string | null;
144 3e6b15a7 Lukáš Vlček
    /**
145 9bfa1e39 Jaroslav Hrubý
     *
146 3e6b15a7 Lukáš Vlček
     * @type {EState}
147
     * @memberof AnnotationListInfo
148
     */
149 9bfa1e39 Jaroslav Hrubý
    state?: EState;
150 3e6b15a7 Lukáš Vlček
    /**
151 9bfa1e39 Jaroslav Hrubý
     *
152 3e6b15a7 Lukáš Vlček
     * @type {string}
153
     * @memberof AnnotationListInfo
154
     */
155 9bfa1e39 Jaroslav Hrubý
    annotationId?: string;
156 3e6b15a7 Lukáš Vlček
}
157
/**
158 9bfa1e39 Jaroslav Hrubý
 *
159 3e6b15a7 Lukáš Vlček
 * @export
160
 * @interface AnnotationListResponse
161
 */
162
export interface AnnotationListResponse {
163
    /**
164 9bfa1e39 Jaroslav Hrubý
     *
165 3e6b15a7 Lukáš Vlček
     * @type {Array<AnnotationListInfo>}
166
     * @memberof AnnotationListResponse
167
     */
168 9bfa1e39 Jaroslav Hrubý
    annotations?: Array<AnnotationListInfo> | null;
169 3e6b15a7 Lukáš Vlček
}
170
/**
171 9bfa1e39 Jaroslav Hrubý
 *
172 3e6b15a7 Lukáš Vlček
 * @export
173
 * @interface AnnotationsAddRequest
174
 */
175
export interface AnnotationsAddRequest {
176
    /**
177 9bfa1e39 Jaroslav Hrubý
     *
178 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
179
     * @memberof AnnotationsAddRequest
180
     */
181 9bfa1e39 Jaroslav Hrubý
    userIdList?: Array<string> | null;
182 3e6b15a7 Lukáš Vlček
    /**
183 9bfa1e39 Jaroslav Hrubý
     *
184 3e6b15a7 Lukáš Vlček
     * @type {Array<string>}
185
     * @memberof AnnotationsAddRequest
186
     */
187 9bfa1e39 Jaroslav Hrubý
    documentIdList?: Array<string> | null;
188 3e6b15a7 Lukáš Vlček
}
189 43d49a98 Jaroslav Hrubý
/**
190
 *
191
 * @export
192
 * @interface ChangeUserInfoRequest
193
 */
194
export interface ChangeUserInfoRequest {
195
    /**
196
     *
197
     * @type {string}
198
     * @memberof ChangeUserInfoRequest
199
     */
200
    password?: string | null;
201
    /**
202
     *
203
     * @type {string}
204
     * @memberof ChangeUserInfoRequest
205
     */
206
    username?: string | null;
207
    /**
208
     *
209
     * @type {string}
210
     * @memberof ChangeUserInfoRequest
211
     */
212
    name?: string | null;
213
    /**
214
     *
215
     * @type {string}
216
     * @memberof ChangeUserInfoRequest
217
     */
218
    surname?: string | null;
219
    /**
220
     *
221
     * @type {ERole}
222
     * @memberof ChangeUserInfoRequest
223
     */
224
    role?: ERole;
225
}
226 3e6b15a7 Lukáš Vlček
/**
227 9bfa1e39 Jaroslav Hrubý
 *
228 3e6b15a7 Lukáš Vlček
 * @export
229
 * @interface ClientInfo
230
 */
231
export interface ClientInfo {
232
    /**
233 9bfa1e39 Jaroslav Hrubý
     *
234 3e6b15a7 Lukáš Vlček
     * @type {boolean}
235
     * @memberof ClientInfo
236
     */
237 9bfa1e39 Jaroslav Hrubý
    isLogged?: boolean;
238 3e6b15a7 Lukáš Vlček
    /**
239 9bfa1e39 Jaroslav Hrubý
     *
240 3e6b15a7 Lukáš Vlček
     * @type {User}
241
     * @memberof ClientInfo
242
     */
243 9bfa1e39 Jaroslav Hrubý
    loggedUser?: User;
244 3e6b15a7 Lukáš Vlček
    /**
245 9bfa1e39 Jaroslav Hrubý
     *
246 3e6b15a7 Lukáš Vlček
     * @type {string}
247
     * @memberof ClientInfo
248
     */
249 9bfa1e39 Jaroslav Hrubý
    ip?: string | null;
250 3e6b15a7 Lukáš Vlček
}
251 43d49a98 Jaroslav Hrubý
/**
252
 *
253
 * @export
254
 * @interface CreateUserRequest
255
 */
256
export interface CreateUserRequest {
257
    /**
258
     *
259
     * @type {string}
260
     * @memberof CreateUserRequest
261
     */
262
    username?: string | null;
263
    /**
264
     *
265
     * @type {string}
266
     * @memberof CreateUserRequest
267
     */
268
    password?: string | null;
269
    /**
270
     *
271
     * @type {string}
272
     * @memberof CreateUserRequest
273
     */
274
    name?: string | null;
275
    /**
276
     *
277
     * @type {string}
278
     * @memberof CreateUserRequest
279
     */
280
    surname?: string | null;
281
    /**
282
     *
283
     * @type {ERole}
284
     * @memberof CreateUserRequest
285
     */
286
    role?: ERole;
287
}
288 3e6b15a7 Lukáš Vlček
/**
289 9bfa1e39 Jaroslav Hrubý
 *
290 3e6b15a7 Lukáš Vlček
 * @export
291
 * @interface DocumentAddInfo
292
 */
293
export interface DocumentAddInfo {
294
    /**
295 9bfa1e39 Jaroslav Hrubý
     *
296 3e6b15a7 Lukáš Vlček
     * @type {string}
297
     * @memberof DocumentAddInfo
298
     */
299 9bfa1e39 Jaroslav Hrubý
    name?: string | null;
300 3e6b15a7 Lukáš Vlček
    /**
301 9bfa1e39 Jaroslav Hrubý
     *
302 3e6b15a7 Lukáš Vlček
     * @type {EAddDocumentFormat}
303
     * @memberof DocumentAddInfo
304
     */
305 9bfa1e39 Jaroslav Hrubý
    format?: EAddDocumentFormat;
306 3e6b15a7 Lukáš Vlček
    /**
307 9bfa1e39 Jaroslav Hrubý
     *
308 3e6b15a7 Lukáš Vlček
     * @type {string}
309
     * @memberof DocumentAddInfo
310
     */
311 9bfa1e39 Jaroslav Hrubý
    content?: string | null;
312 3e6b15a7 Lukáš Vlček
}
313
/**
314 9bfa1e39 Jaroslav Hrubý
 *
315 3e6b15a7 Lukáš Vlček
 * @export
316
 * @interface DocumentAddRequest
317
 */
318
export interface DocumentAddRequest {
319
    /**
320 9bfa1e39 Jaroslav Hrubý
     *
321 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentAddInfo>}
322
     * @memberof DocumentAddRequest
323
     */
324 9bfa1e39 Jaroslav Hrubý
    documents?: Array<DocumentAddInfo> | null;
325 3e6b15a7 Lukáš Vlček
}
326
/**
327 9bfa1e39 Jaroslav Hrubý
 *
328 3e6b15a7 Lukáš Vlček
 * @export
329
 * @interface DocumentListInfo
330
 */
331
export interface DocumentListInfo {
332
    /**
333 9bfa1e39 Jaroslav Hrubý
     *
334 3e6b15a7 Lukáš Vlček
     * @type {string}
335
     * @memberof DocumentListInfo
336
     */
337 9bfa1e39 Jaroslav Hrubý
    id?: string;
338 3e6b15a7 Lukáš Vlček
    /**
339 9bfa1e39 Jaroslav Hrubý
     *
340 3e6b15a7 Lukáš Vlček
     * @type {string}
341
     * @memberof DocumentListInfo
342
     */
343 9bfa1e39 Jaroslav Hrubý
    name?: string | null;
344 3e6b15a7 Lukáš Vlček
    /**
345 9bfa1e39 Jaroslav Hrubý
     *
346 3e6b15a7 Lukáš Vlček
     * @type {number}
347
     * @memberof DocumentListInfo
348
     */
349 9bfa1e39 Jaroslav Hrubý
    length?: number;
350 3e6b15a7 Lukáš Vlček
    /**
351 9bfa1e39 Jaroslav Hrubý
     *
352 3e6b15a7 Lukáš Vlček
     * @type {number}
353
     * @memberof DocumentListInfo
354
     */
355 9bfa1e39 Jaroslav Hrubý
    requiredAnnotations?: number;
356 3e6b15a7 Lukáš Vlček
    /**
357 9bfa1e39 Jaroslav Hrubý
     *
358 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
359
     * @memberof DocumentListInfo
360
     */
361 9bfa1e39 Jaroslav Hrubý
    annotatingUsers?: Array<UserInfo> | null;
362 3e6b15a7 Lukáš Vlček
}
363
/**
364 9bfa1e39 Jaroslav Hrubý
 *
365 3e6b15a7 Lukáš Vlček
 * @export
366
 * @interface DocumentListResponse
367
 */
368
export interface DocumentListResponse {
369
    /**
370 9bfa1e39 Jaroslav Hrubý
     *
371 3e6b15a7 Lukáš Vlček
     * @type {number}
372
     * @memberof DocumentListResponse
373
     */
374 9bfa1e39 Jaroslav Hrubý
    totalCount?: number;
375 3e6b15a7 Lukáš Vlček
    /**
376 9bfa1e39 Jaroslav Hrubý
     *
377 3e6b15a7 Lukáš Vlček
     * @type {number}
378
     * @memberof DocumentListResponse
379
     */
380 9bfa1e39 Jaroslav Hrubý
    pageCount?: number;
381 3e6b15a7 Lukáš Vlček
    /**
382 9bfa1e39 Jaroslav Hrubý
     *
383 3e6b15a7 Lukáš Vlček
     * @type {number}
384
     * @memberof DocumentListResponse
385
     */
386 9bfa1e39 Jaroslav Hrubý
    pageIndex?: number;
387 3e6b15a7 Lukáš Vlček
    /**
388 9bfa1e39 Jaroslav Hrubý
     *
389 3e6b15a7 Lukáš Vlček
     * @type {Array<DocumentListInfo>}
390
     * @memberof DocumentListResponse
391
     */
392 9bfa1e39 Jaroslav Hrubý
    documents?: Array<DocumentListInfo> | null;
393 3e6b15a7 Lukáš Vlček
}
394
/**
395 9bfa1e39 Jaroslav Hrubý
 *
396 3e6b15a7 Lukáš Vlček
 * @export
397
 * @enum {string}
398
 */
399
400
export const EAddDocumentFormat = {
401
    Zip: 'ZIP',
402 9bfa1e39 Jaroslav Hrubý
    Textfile: 'TEXTFILE',
403 3e6b15a7 Lukáš Vlček
} as const;
404
405 9bfa1e39 Jaroslav Hrubý
export type EAddDocumentFormat =
406
    typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
407 3e6b15a7 Lukáš Vlček
408
/**
409 9bfa1e39 Jaroslav Hrubý
 *
410 3e6b15a7 Lukáš Vlček
 * @export
411
 * @enum {string}
412
 */
413
414
export const EDocumentType = {
415
    Html: 'HTML',
416 9bfa1e39 Jaroslav Hrubý
    Text: 'TEXT',
417 3e6b15a7 Lukáš Vlček
} as const;
418
419
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
420
421
/**
422 9bfa1e39 Jaroslav Hrubý
 *
423 3e6b15a7 Lukáš Vlček
 * @export
424
 * @enum {string}
425
 */
426
427
export const ERole = {
428
    Annotator: 'ANNOTATOR',
429 9bfa1e39 Jaroslav Hrubý
    Administrator: 'ADMINISTRATOR',
430 3e6b15a7 Lukáš Vlček
} as const;
431
432
export type ERole = typeof ERole[keyof typeof ERole];
433
434
/**
435 9bfa1e39 Jaroslav Hrubý
 *
436 3e6b15a7 Lukáš Vlček
 * @export
437
 * @enum {string}
438
 */
439
440
export const EState = {
441
    Done: 'DONE',
442
    InProgress: 'IN_PROGRESS',
443 9bfa1e39 Jaroslav Hrubý
    New: 'NEW',
444 3e6b15a7 Lukáš Vlček
} as const;
445
446
export type EState = typeof EState[keyof typeof EState];
447
448 4bc99591 Lukáš Vlček
/**
449 9bfa1e39 Jaroslav Hrubý
 *
450 4bc99591 Lukáš Vlček
 * @export
451
 * @enum {string}
452
 */
453
454
export const ETagType = {
455
    Tag: 'TAG',
456 9bfa1e39 Jaroslav Hrubý
    Subtag: 'SUBTAG',
457 4bc99591 Lukáš Vlček
} as const;
458
459
export type ETagType = typeof ETagType[keyof typeof ETagType];
460
461 3e6b15a7 Lukáš Vlček
/**
462 9bfa1e39 Jaroslav Hrubý
 *
463 3e6b15a7 Lukáš Vlček
 * @export
464
 * @interface LoginRequest
465
 */
466
export interface LoginRequest {
467
    /**
468 9bfa1e39 Jaroslav Hrubý
     *
469 3e6b15a7 Lukáš Vlček
     * @type {string}
470
     * @memberof LoginRequest
471
     */
472 9bfa1e39 Jaroslav Hrubý
    username?: string | null;
473 3e6b15a7 Lukáš Vlček
    /**
474 9bfa1e39 Jaroslav Hrubý
     *
475 3e6b15a7 Lukáš Vlček
     * @type {string}
476
     * @memberof LoginRequest
477
     */
478 9bfa1e39 Jaroslav Hrubý
    password?: string | null;
479 3e6b15a7 Lukáš Vlček
}
480
/**
481 9bfa1e39 Jaroslav Hrubý
 *
482 3e6b15a7 Lukáš Vlček
 * @export
483
 * @interface LoginResponse
484
 */
485
export interface LoginResponse {
486
    /**
487 9bfa1e39 Jaroslav Hrubý
     *
488 3e6b15a7 Lukáš Vlček
     * @type {boolean}
489
     * @memberof LoginResponse
490
     */
491 9bfa1e39 Jaroslav Hrubý
    ok?: boolean;
492 3e6b15a7 Lukáš Vlček
    /**
493 9bfa1e39 Jaroslav Hrubý
     *
494 3e6b15a7 Lukáš Vlček
     * @type {string}
495
     * @memberof LoginResponse
496
     */
497 9bfa1e39 Jaroslav Hrubý
    token?: string | null;
498 3e6b15a7 Lukáš Vlček
    /**
499 9bfa1e39 Jaroslav Hrubý
     *
500 3e6b15a7 Lukáš Vlček
     * @type {string}
501
     * @memberof LoginResponse
502
     */
503 9bfa1e39 Jaroslav Hrubý
    expiration?: string;
504 3e6b15a7 Lukáš Vlček
    /**
505 9bfa1e39 Jaroslav Hrubý
     *
506 3e6b15a7 Lukáš Vlček
     * @type {ERole}
507
     * @memberof LoginResponse
508
     */
509 9bfa1e39 Jaroslav Hrubý
    role?: ERole;
510 3e6b15a7 Lukáš Vlček
}
511
/**
512 9bfa1e39 Jaroslav Hrubý
 *
513 3e6b15a7 Lukáš Vlček
 * @export
514
 * @interface ProblemDetails
515
 */
516
export interface ProblemDetails {
517
    [key: string]: any | any;
518
519
    /**
520 9bfa1e39 Jaroslav Hrubý
     *
521 3e6b15a7 Lukáš Vlček
     * @type {string}
522
     * @memberof ProblemDetails
523
     */
524 9bfa1e39 Jaroslav Hrubý
    type?: string | null;
525 3e6b15a7 Lukáš Vlček
    /**
526 9bfa1e39 Jaroslav Hrubý
     *
527 3e6b15a7 Lukáš Vlček
     * @type {string}
528
     * @memberof ProblemDetails
529
     */
530 9bfa1e39 Jaroslav Hrubý
    title?: string | null;
531 3e6b15a7 Lukáš Vlček
    /**
532 9bfa1e39 Jaroslav Hrubý
     *
533 3e6b15a7 Lukáš Vlček
     * @type {number}
534
     * @memberof ProblemDetails
535
     */
536 9bfa1e39 Jaroslav Hrubý
    status?: number | null;
537 3e6b15a7 Lukáš Vlček
    /**
538 9bfa1e39 Jaroslav Hrubý
     *
539 3e6b15a7 Lukáš Vlček
     * @type {string}
540
     * @memberof ProblemDetails
541
     */
542 9bfa1e39 Jaroslav Hrubý
    detail?: string | null;
543 3e6b15a7 Lukáš Vlček
    /**
544 9bfa1e39 Jaroslav Hrubý
     *
545 3e6b15a7 Lukáš Vlček
     * @type {string}
546
     * @memberof ProblemDetails
547
     */
548 9bfa1e39 Jaroslav Hrubý
    instance?: string | null;
549 3e6b15a7 Lukáš Vlček
}
550
/**
551 9bfa1e39 Jaroslav Hrubý
 *
552 3e6b15a7 Lukáš Vlček
 * @export
553
 * @interface SubTagInfo
554
 */
555
export interface SubTagInfo {
556
    /**
557 9bfa1e39 Jaroslav Hrubý
     *
558 3e6b15a7 Lukáš Vlček
     * @type {string}
559
     * @memberof SubTagInfo
560
     */
561 9bfa1e39 Jaroslav Hrubý
    id?: string;
562 3e6b15a7 Lukáš Vlček
    /**
563 9bfa1e39 Jaroslav Hrubý
     *
564 3e6b15a7 Lukáš Vlček
     * @type {string}
565
     * @memberof SubTagInfo
566
     */
567 9bfa1e39 Jaroslav Hrubý
    name?: string | null;
568 3e6b15a7 Lukáš Vlček
    /**
569 9bfa1e39 Jaroslav Hrubý
     *
570 3e6b15a7 Lukáš Vlček
     * @type {string}
571
     * @memberof SubTagInfo
572
     */
573 9bfa1e39 Jaroslav Hrubý
    description?: string | null;
574 3e6b15a7 Lukáš Vlček
}
575
/**
576 9bfa1e39 Jaroslav Hrubý
 *
577 3e6b15a7 Lukáš Vlček
 * @export
578
 * @interface TagCategoryInfo
579
 */
580
export interface TagCategoryInfo {
581
    /**
582 9bfa1e39 Jaroslav Hrubý
     *
583 3e6b15a7 Lukáš Vlček
     * @type {string}
584
     * @memberof TagCategoryInfo
585
     */
586 9bfa1e39 Jaroslav Hrubý
    id?: string;
587 3e6b15a7 Lukáš Vlček
    /**
588 9bfa1e39 Jaroslav Hrubý
     *
589 3e6b15a7 Lukáš Vlček
     * @type {string}
590
     * @memberof TagCategoryInfo
591
     */
592 9bfa1e39 Jaroslav Hrubý
    name?: string | null;
593 3e6b15a7 Lukáš Vlček
    /**
594 9bfa1e39 Jaroslav Hrubý
     *
595 3e6b15a7 Lukáš Vlček
     * @type {string}
596
     * @memberof TagCategoryInfo
597
     */
598 9bfa1e39 Jaroslav Hrubý
    description?: string | null;
599 3e6b15a7 Lukáš Vlček
    /**
600 9bfa1e39 Jaroslav Hrubý
     *
601 3e6b15a7 Lukáš Vlček
     * @type {string}
602
     * @memberof TagCategoryInfo
603
     */
604 9bfa1e39 Jaroslav Hrubý
    color?: string | null;
605 3e6b15a7 Lukáš Vlček
    /**
606 9bfa1e39 Jaroslav Hrubý
     *
607 3e6b15a7 Lukáš Vlček
     * @type {Array<TagInfo>}
608
     * @memberof TagCategoryInfo
609
     */
610 9bfa1e39 Jaroslav Hrubý
    tags?: Array<TagInfo> | null;
611 3e6b15a7 Lukáš Vlček
}
612
/**
613 9bfa1e39 Jaroslav Hrubý
 *
614 3e6b15a7 Lukáš Vlček
 * @export
615
 * @interface TagInfo
616
 */
617
export interface TagInfo {
618
    /**
619 9bfa1e39 Jaroslav Hrubý
     *
620 3e6b15a7 Lukáš Vlček
     * @type {string}
621
     * @memberof TagInfo
622
     */
623 9bfa1e39 Jaroslav Hrubý
    id?: string;
624 3e6b15a7 Lukáš Vlček
    /**
625 9bfa1e39 Jaroslav Hrubý
     *
626 3e6b15a7 Lukáš Vlček
     * @type {string}
627
     * @memberof TagInfo
628
     */
629 9bfa1e39 Jaroslav Hrubý
    name?: string | null;
630 3e6b15a7 Lukáš Vlček
    /**
631 9bfa1e39 Jaroslav Hrubý
     *
632 3e6b15a7 Lukáš Vlček
     * @type {string}
633
     * @memberof TagInfo
634
     */
635 9bfa1e39 Jaroslav Hrubý
    description?: string | null;
636 3e6b15a7 Lukáš Vlček
    /**
637 9bfa1e39 Jaroslav Hrubý
     *
638 3e6b15a7 Lukáš Vlček
     * @type {string}
639
     * @memberof TagInfo
640
     */
641 9bfa1e39 Jaroslav Hrubý
    color?: string | null;
642 3e6b15a7 Lukáš Vlček
    /**
643 9bfa1e39 Jaroslav Hrubý
     *
644 3e6b15a7 Lukáš Vlček
     * @type {Array<SubTagInfo>}
645
     * @memberof TagInfo
646
     */
647 9bfa1e39 Jaroslav Hrubý
    subTags?: Array<SubTagInfo> | null;
648 3e6b15a7 Lukáš Vlček
}
649
/**
650 9bfa1e39 Jaroslav Hrubý
 *
651 3e6b15a7 Lukáš Vlček
 * @export
652
 * @interface TagInstanceInfo
653
 */
654
export interface TagInstanceInfo {
655 9fdb7d55 Lukáš Vlček
    /**
656 9bfa1e39 Jaroslav Hrubý
     *
657 9fdb7d55 Lukáš Vlček
     * @type {string}
658
     * @memberof TagInstanceInfo
659
     */
660 9bfa1e39 Jaroslav Hrubý
    occurenceId?: string;
661 3e6b15a7 Lukáš Vlček
    /**
662 9bfa1e39 Jaroslav Hrubý
     *
663 3e6b15a7 Lukáš Vlček
     * @type {string}
664
     * @memberof TagInstanceInfo
665
     */
666 9bfa1e39 Jaroslav Hrubý
    tagName?: string | null;
667 3e6b15a7 Lukáš Vlček
    /**
668 9bfa1e39 Jaroslav Hrubý
     *
669 3e6b15a7 Lukáš Vlček
     * @type {string}
670
     * @memberof TagInstanceInfo
671
     */
672 9bfa1e39 Jaroslav Hrubý
    tagId?: string;
673 3e6b15a7 Lukáš Vlček
    /**
674 9bfa1e39 Jaroslav Hrubý
     *
675 3e6b15a7 Lukáš Vlček
     * @type {string}
676
     * @memberof TagInstanceInfo
677
     */
678 9bfa1e39 Jaroslav Hrubý
    tagCategoryName?: string | null;
679 3e6b15a7 Lukáš Vlček
    /**
680 9bfa1e39 Jaroslav Hrubý
     *
681 3e6b15a7 Lukáš Vlček
     * @type {string}
682
     * @memberof TagInstanceInfo
683
     */
684 9bfa1e39 Jaroslav Hrubý
    tagCategoryId?: string;
685 3e6b15a7 Lukáš Vlček
    /**
686 9bfa1e39 Jaroslav Hrubý
     *
687 3e6b15a7 Lukáš Vlček
     * @type {string}
688
     * @memberof TagInstanceInfo
689
     */
690 9bfa1e39 Jaroslav Hrubý
    subTagName?: string | null;
691 3e6b15a7 Lukáš Vlček
    /**
692 9bfa1e39 Jaroslav Hrubý
     *
693 3e6b15a7 Lukáš Vlček
     * @type {string}
694
     * @memberof TagInstanceInfo
695
     */
696 9bfa1e39 Jaroslav Hrubý
    subTagId?: string | null;
697 3e6b15a7 Lukáš Vlček
    /**
698 9bfa1e39 Jaroslav Hrubý
     *
699 4bc99591 Lukáš Vlček
     * @type {string}
700 3e6b15a7 Lukáš Vlček
     * @memberof TagInstanceInfo
701
     */
702 9bfa1e39 Jaroslav Hrubý
    instance?: string;
703 3e6b15a7 Lukáš Vlček
    /**
704 9bfa1e39 Jaroslav Hrubý
     *
705 3e6b15a7 Lukáš Vlček
     * @type {number}
706
     * @memberof TagInstanceInfo
707
     */
708 9bfa1e39 Jaroslav Hrubý
    position?: number;
709 3e6b15a7 Lukáš Vlček
    /**
710 9bfa1e39 Jaroslav Hrubý
     *
711 3e6b15a7 Lukáš Vlček
     * @type {number}
712
     * @memberof TagInstanceInfo
713
     */
714 9bfa1e39 Jaroslav Hrubý
    length?: number;
715 3e6b15a7 Lukáš Vlček
    /**
716 9bfa1e39 Jaroslav Hrubý
     *
717 3e6b15a7 Lukáš Vlček
     * @type {string}
718
     * @memberof TagInstanceInfo
719
     */
720 9bfa1e39 Jaroslav Hrubý
    note?: string | null;
721 3e6b15a7 Lukáš Vlček
}
722
/**
723 9bfa1e39 Jaroslav Hrubý
 *
724 3e6b15a7 Lukáš Vlček
 * @export
725
 * @interface TagTreeResponse
726
 */
727
export interface TagTreeResponse {
728
    /**
729 9bfa1e39 Jaroslav Hrubý
     *
730 3e6b15a7 Lukáš Vlček
     * @type {Array<TagCategoryInfo>}
731
     * @memberof TagTreeResponse
732
     */
733 9bfa1e39 Jaroslav Hrubý
    tagCategories?: Array<TagCategoryInfo> | null;
734 3e6b15a7 Lukáš Vlček
}
735
/**
736 9bfa1e39 Jaroslav Hrubý
 *
737 3e6b15a7 Lukáš Vlček
 * @export
738
 * @interface User
739
 */
740
export interface User {
741
    /**
742 9bfa1e39 Jaroslav Hrubý
     *
743 3e6b15a7 Lukáš Vlček
     * @type {string}
744
     * @memberof User
745
     */
746 9bfa1e39 Jaroslav Hrubý
    id?: string;
747 3e6b15a7 Lukáš Vlček
    /**
748 9bfa1e39 Jaroslav Hrubý
     *
749 3e6b15a7 Lukáš Vlček
     * @type {string}
750
     * @memberof User
751
     */
752 9bfa1e39 Jaroslav Hrubý
    username?: string | null;
753 3e6b15a7 Lukáš Vlček
    /**
754 9bfa1e39 Jaroslav Hrubý
     *
755 3e6b15a7 Lukáš Vlček
     * @type {string}
756
     * @memberof User
757
     */
758 9bfa1e39 Jaroslav Hrubý
    name?: string | null;
759 3e6b15a7 Lukáš Vlček
    /**
760 9bfa1e39 Jaroslav Hrubý
     *
761 3e6b15a7 Lukáš Vlček
     * @type {string}
762
     * @memberof User
763
     */
764 9bfa1e39 Jaroslav Hrubý
    surname?: string | null;
765 3e6b15a7 Lukáš Vlček
    /**
766 9bfa1e39 Jaroslav Hrubý
     *
767 3e6b15a7 Lukáš Vlček
     * @type {ERole}
768
     * @memberof User
769
     */
770 9bfa1e39 Jaroslav Hrubý
    role?: ERole;
771 3e6b15a7 Lukáš Vlček
}
772
/**
773 9bfa1e39 Jaroslav Hrubý
 *
774 3e6b15a7 Lukáš Vlček
 * @export
775
 * @interface UserInfo
776
 */
777
export interface UserInfo {
778
    /**
779 9bfa1e39 Jaroslav Hrubý
     *
780 3e6b15a7 Lukáš Vlček
     * @type {string}
781
     * @memberof UserInfo
782
     */
783 9bfa1e39 Jaroslav Hrubý
    id?: string;
784 3e6b15a7 Lukáš Vlček
    /**
785 9bfa1e39 Jaroslav Hrubý
     *
786 3e6b15a7 Lukáš Vlček
     * @type {string}
787
     * @memberof UserInfo
788
     */
789 9bfa1e39 Jaroslav Hrubý
    username?: string | null;
790 3e6b15a7 Lukáš Vlček
    /**
791 9bfa1e39 Jaroslav Hrubý
     *
792 3e6b15a7 Lukáš Vlček
     * @type {string}
793
     * @memberof UserInfo
794
     */
795 9bfa1e39 Jaroslav Hrubý
    name?: string | null;
796 3e6b15a7 Lukáš Vlček
    /**
797 9bfa1e39 Jaroslav Hrubý
     *
798 3e6b15a7 Lukáš Vlček
     * @type {string}
799
     * @memberof UserInfo
800
     */
801 9bfa1e39 Jaroslav Hrubý
    surname?: string | null;
802 3e6b15a7 Lukáš Vlček
}
803
/**
804 9bfa1e39 Jaroslav Hrubý
 *
805 3e6b15a7 Lukáš Vlček
 * @export
806
 * @interface UserList
807
 */
808
export interface UserList {
809
    /**
810 9bfa1e39 Jaroslav Hrubý
     *
811 3e6b15a7 Lukáš Vlček
     * @type {Array<UserInfo>}
812
     * @memberof UserList
813
     */
814 9bfa1e39 Jaroslav Hrubý
    users?: Array<UserInfo> | null;
815 3e6b15a7 Lukáš Vlček
}
816
817
/**
818
 * AnnotationApi - axios parameter creator
819
 * @export
820
 */
821
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
822
    return {
823
        /**
824 9bfa1e39 Jaroslav Hrubý
         *
825
         * @param {string} annotationId
826 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
827
         * @throws {RequiredError}
828
         */
829 9bfa1e39 Jaroslav Hrubý
        annotationAnnotationIdGet: async (
830
            annotationId: string,
831
            options: AxiosRequestConfig = {}
832
        ): Promise<RequestArgs> => {
833 dd747fc5 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
834 9bfa1e39 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId);
835
            const localVarPath = `/annotation/{annotationId}`.replace(
836
                `{${'annotationId'}}`,
837
                encodeURIComponent(String(annotationId))
838
            );
839 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
840
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
841
            let baseOptions;
842
            if (configuration) {
843
                baseOptions = configuration.baseOptions;
844
            }
845
846 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
847 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
848
            const localVarQueryParameter = {} as any;
849
850 9fdb7d55 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
851 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
852
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
853
            localVarRequestOptions.headers = {
854
                ...localVarHeaderParameter,
855
                ...headersFromBaseOptions,
856
                ...options.headers,
857
            };
858 9fdb7d55 Lukáš Vlček
859
            return {
860
                url: toPathString(localVarUrlObj),
861
                options: localVarRequestOptions,
862
            };
863
        },
864
        /**
865 9bfa1e39 Jaroslav Hrubý
         *
866
         * @param {string} annotationId
867
         * @param {string} occurenceId
868 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
869
         * @throws {RequiredError}
870
         */
871 9bfa1e39 Jaroslav Hrubý
        annotationAnnotationIdOccurenceIdDelete: async (
872
            annotationId: string,
873
            occurenceId: string,
874
            options: AxiosRequestConfig = {}
875
        ): Promise<RequestArgs> => {
876 9fdb7d55 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
877 9bfa1e39 Jaroslav Hrubý
            assertParamExists(
878
                'annotationAnnotationIdOccurenceIdDelete',
879
                'annotationId',
880
                annotationId
881
            );
882 9fdb7d55 Lukáš Vlček
            // verify required parameter 'occurenceId' is not null or undefined
883 9bfa1e39 Jaroslav Hrubý
            assertParamExists(
884
                'annotationAnnotationIdOccurenceIdDelete',
885
                'occurenceId',
886
                occurenceId
887
            );
888 9fdb7d55 Lukáš Vlček
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
889 9bfa1e39 Jaroslav Hrubý
                .replace(`{${'annotationId'}}`, encodeURIComponent(String(annotationId)))
890
                .replace(`{${'occurenceId'}}`, encodeURIComponent(String(occurenceId)));
891 9fdb7d55 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
892
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
893
            let baseOptions;
894
            if (configuration) {
895
                baseOptions = configuration.baseOptions;
896
            }
897
898 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = {
899
                method: 'DELETE',
900
                ...baseOptions,
901
                ...options,
902
            };
903 9fdb7d55 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
904
            const localVarQueryParameter = {} as any;
905
906 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
907 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
908
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
909
            localVarRequestOptions.headers = {
910
                ...localVarHeaderParameter,
911
                ...headersFromBaseOptions,
912
                ...options.headers,
913
            };
914 3e6b15a7 Lukáš Vlček
915
            return {
916
                url: toPathString(localVarUrlObj),
917
                options: localVarRequestOptions,
918
            };
919
        },
920 4bc99591 Lukáš Vlček
        /**
921 9bfa1e39 Jaroslav Hrubý
         *
922
         * @param {string} annotationId
923
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
924 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
925
         * @throws {RequiredError}
926
         */
927 9bfa1e39 Jaroslav Hrubý
        annotationAnnotationIdPost: async (
928
            annotationId: string,
929
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
930
            options: AxiosRequestConfig = {}
931
        ): Promise<RequestArgs> => {
932 4bc99591 Lukáš Vlček
            // verify required parameter 'annotationId' is not null or undefined
933 9bfa1e39 Jaroslav Hrubý
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId);
934
            const localVarPath = `/annotation/{annotationId}`.replace(
935
                `{${'annotationId'}}`,
936
                encodeURIComponent(String(annotationId))
937
            );
938 4bc99591 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
939
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
940
            let baseOptions;
941
            if (configuration) {
942
                baseOptions = configuration.baseOptions;
943
            }
944
945 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
946 4bc99591 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
947
            const localVarQueryParameter = {} as any;
948
949
            localVarHeaderParameter['Content-Type'] = 'application/json';
950
951
            setSearchParams(localVarUrlObj, localVarQueryParameter);
952 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
953
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
954
            localVarRequestOptions.headers = {
955
                ...localVarHeaderParameter,
956
                ...headersFromBaseOptions,
957
                ...options.headers,
958
            };
959
            localVarRequestOptions.data = serializeDataIfNeeded(
960
                annotationInstanceAddRequest,
961
                localVarRequestOptions,
962
                configuration
963
            );
964 4bc99591 Lukáš Vlček
965
            return {
966
                url: toPathString(localVarUrlObj),
967
                options: localVarRequestOptions,
968
            };
969
        },
970 3e6b15a7 Lukáš Vlček
        /**
971 9bfa1e39 Jaroslav Hrubý
         *
972
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
973 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
974
         * @throws {RequiredError}
975
         */
976 9bfa1e39 Jaroslav Hrubý
        annotationsPost: async (
977
            annotationsAddRequest?: AnnotationsAddRequest,
978
            options: AxiosRequestConfig = {}
979
        ): Promise<RequestArgs> => {
980 3e6b15a7 Lukáš Vlček
            const localVarPath = `/annotations`;
981
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
982
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
983
            let baseOptions;
984
            if (configuration) {
985
                baseOptions = configuration.baseOptions;
986
            }
987
988 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
989 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
990
            const localVarQueryParameter = {} as any;
991
992
            localVarHeaderParameter['Content-Type'] = 'application/json';
993
994
            setSearchParams(localVarUrlObj, localVarQueryParameter);
995 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
996
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
997
            localVarRequestOptions.headers = {
998
                ...localVarHeaderParameter,
999
                ...headersFromBaseOptions,
1000
                ...options.headers,
1001
            };
1002
            localVarRequestOptions.data = serializeDataIfNeeded(
1003
                annotationsAddRequest,
1004
                localVarRequestOptions,
1005
                configuration
1006
            );
1007 3e6b15a7 Lukáš Vlček
1008
            return {
1009
                url: toPathString(localVarUrlObj),
1010
                options: localVarRequestOptions,
1011
            };
1012
        },
1013 9bfa1e39 Jaroslav Hrubý
    };
1014 3e6b15a7 Lukáš Vlček
};
1015
1016
/**
1017
 * AnnotationApi - functional programming interface
1018
 * @export
1019
 */
1020 9bfa1e39 Jaroslav Hrubý
export const AnnotationApiFp = function (configuration?: Configuration) {
1021
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration);
1022 3e6b15a7 Lukáš Vlček
    return {
1023
        /**
1024 9bfa1e39 Jaroslav Hrubý
         *
1025
         * @param {string} annotationId
1026 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1027
         * @throws {RequiredError}
1028
         */
1029 9bfa1e39 Jaroslav Hrubý
        async annotationAnnotationIdGet(
1030
            annotationId: string,
1031
            options?: AxiosRequestConfig
1032
        ): Promise<
1033
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>
1034
        > {
1035
            const localVarAxiosArgs =
1036
                await localVarAxiosParamCreator.annotationAnnotationIdGet(
1037
                    annotationId,
1038
                    options
1039
                );
1040
            return createRequestFunction(
1041
                localVarAxiosArgs,
1042
                globalAxios,
1043
                BASE_PATH,
1044
                configuration
1045
            );
1046 3e6b15a7 Lukáš Vlček
        },
1047 9fdb7d55 Lukáš Vlček
        /**
1048 9bfa1e39 Jaroslav Hrubý
         *
1049
         * @param {string} annotationId
1050
         * @param {string} occurenceId
1051 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
1052
         * @throws {RequiredError}
1053
         */
1054 9bfa1e39 Jaroslav Hrubý
        async annotationAnnotationIdOccurenceIdDelete(
1055
            annotationId: string,
1056
            occurenceId: string,
1057
            options?: AxiosRequestConfig
1058
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1059
            const localVarAxiosArgs =
1060
                await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(
1061
                    annotationId,
1062
                    occurenceId,
1063
                    options
1064
                );
1065
            return createRequestFunction(
1066
                localVarAxiosArgs,
1067
                globalAxios,
1068
                BASE_PATH,
1069
                configuration
1070
            );
1071 9fdb7d55 Lukáš Vlček
        },
1072 4bc99591 Lukáš Vlček
        /**
1073 9bfa1e39 Jaroslav Hrubý
         *
1074
         * @param {string} annotationId
1075
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1076 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
1077
         * @throws {RequiredError}
1078
         */
1079 9bfa1e39 Jaroslav Hrubý
        async annotationAnnotationIdPost(
1080
            annotationId: string,
1081
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1082
            options?: AxiosRequestConfig
1083
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1084
            const localVarAxiosArgs =
1085
                await localVarAxiosParamCreator.annotationAnnotationIdPost(
1086
                    annotationId,
1087
                    annotationInstanceAddRequest,
1088
                    options
1089
                );
1090
            return createRequestFunction(
1091
                localVarAxiosArgs,
1092
                globalAxios,
1093
                BASE_PATH,
1094
                configuration
1095
            );
1096 4bc99591 Lukáš Vlček
        },
1097 3e6b15a7 Lukáš Vlček
        /**
1098 9bfa1e39 Jaroslav Hrubý
         *
1099
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
1100 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1101
         * @throws {RequiredError}
1102
         */
1103 9bfa1e39 Jaroslav Hrubý
        async annotationsPost(
1104
            annotationsAddRequest?: AnnotationsAddRequest,
1105
            options?: AxiosRequestConfig
1106
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1107
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(
1108
                annotationsAddRequest,
1109
                options
1110
            );
1111
            return createRequestFunction(
1112
                localVarAxiosArgs,
1113
                globalAxios,
1114
                BASE_PATH,
1115
                configuration
1116
            );
1117 3e6b15a7 Lukáš Vlček
        },
1118 9bfa1e39 Jaroslav Hrubý
    };
1119 3e6b15a7 Lukáš Vlček
};
1120
1121
/**
1122
 * AnnotationApi - factory interface
1123
 * @export
1124
 */
1125 9bfa1e39 Jaroslav Hrubý
export const AnnotationApiFactory = function (
1126
    configuration?: Configuration,
1127
    basePath?: string,
1128
    axios?: AxiosInstance
1129
) {
1130
    const localVarFp = AnnotationApiFp(configuration);
1131 3e6b15a7 Lukáš Vlček
    return {
1132
        /**
1133 9bfa1e39 Jaroslav Hrubý
         *
1134
         * @param {string} annotationId
1135 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1136
         * @throws {RequiredError}
1137
         */
1138 9bfa1e39 Jaroslav Hrubý
        annotationAnnotationIdGet(
1139
            annotationId: string,
1140
            options?: any
1141
        ): AxiosPromise<AnnotationInfo> {
1142
            return localVarFp
1143
                .annotationAnnotationIdGet(annotationId, options)
1144
                .then((request) => request(axios, basePath));
1145 3e6b15a7 Lukáš Vlček
        },
1146 9fdb7d55 Lukáš Vlček
        /**
1147 9bfa1e39 Jaroslav Hrubý
         *
1148
         * @param {string} annotationId
1149
         * @param {string} occurenceId
1150 9fdb7d55 Lukáš Vlček
         * @param {*} [options] Override http request option.
1151
         * @throws {RequiredError}
1152
         */
1153 9bfa1e39 Jaroslav Hrubý
        annotationAnnotationIdOccurenceIdDelete(
1154
            annotationId: string,
1155
            occurenceId: string,
1156
            options?: any
1157
        ): AxiosPromise<void> {
1158
            return localVarFp
1159
                .annotationAnnotationIdOccurenceIdDelete(
1160
                    annotationId,
1161
                    occurenceId,
1162
                    options
1163
                )
1164
                .then((request) => request(axios, basePath));
1165 9fdb7d55 Lukáš Vlček
        },
1166 4bc99591 Lukáš Vlček
        /**
1167 9bfa1e39 Jaroslav Hrubý
         *
1168
         * @param {string} annotationId
1169
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1170 4bc99591 Lukáš Vlček
         * @param {*} [options] Override http request option.
1171
         * @throws {RequiredError}
1172
         */
1173 9bfa1e39 Jaroslav Hrubý
        annotationAnnotationIdPost(
1174
            annotationId: string,
1175
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1176
            options?: any
1177
        ): AxiosPromise<void> {
1178
            return localVarFp
1179
                .annotationAnnotationIdPost(
1180
                    annotationId,
1181
                    annotationInstanceAddRequest,
1182
                    options
1183
                )
1184
                .then((request) => request(axios, basePath));
1185 4bc99591 Lukáš Vlček
        },
1186 3e6b15a7 Lukáš Vlček
        /**
1187 9bfa1e39 Jaroslav Hrubý
         *
1188
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
1189 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1190
         * @throws {RequiredError}
1191
         */
1192 9bfa1e39 Jaroslav Hrubý
        annotationsPost(
1193
            annotationsAddRequest?: AnnotationsAddRequest,
1194
            options?: any
1195
        ): AxiosPromise<void> {
1196
            return localVarFp
1197
                .annotationsPost(annotationsAddRequest, options)
1198
                .then((request) => request(axios, basePath));
1199 3e6b15a7 Lukáš Vlček
        },
1200
    };
1201
};
1202
1203
/**
1204
 * AnnotationApi - object-oriented interface
1205
 * @export
1206
 * @class AnnotationApi
1207
 * @extends {BaseAPI}
1208
 */
1209
export class AnnotationApi extends BaseAPI {
1210
    /**
1211 9bfa1e39 Jaroslav Hrubý
     *
1212
     * @param {string} annotationId
1213 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1214
     * @throws {RequiredError}
1215
     * @memberof AnnotationApi
1216
     */
1217 dd747fc5 Lukáš Vlček
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
1218 9bfa1e39 Jaroslav Hrubý
        return AnnotationApiFp(this.configuration)
1219
            .annotationAnnotationIdGet(annotationId, options)
1220
            .then((request) => request(this.axios, this.basePath));
1221 3e6b15a7 Lukáš Vlček
    }
1222
1223 9fdb7d55 Lukáš Vlček
    /**
1224 9bfa1e39 Jaroslav Hrubý
     *
1225
     * @param {string} annotationId
1226
     * @param {string} occurenceId
1227 9fdb7d55 Lukáš Vlček
     * @param {*} [options] Override http request option.
1228
     * @throws {RequiredError}
1229
     * @memberof AnnotationApi
1230
     */
1231 9bfa1e39 Jaroslav Hrubý
    public annotationAnnotationIdOccurenceIdDelete(
1232
        annotationId: string,
1233
        occurenceId: string,
1234
        options?: AxiosRequestConfig
1235
    ) {
1236
        return AnnotationApiFp(this.configuration)
1237
            .annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options)
1238
            .then((request) => request(this.axios, this.basePath));
1239 9fdb7d55 Lukáš Vlček
    }
1240
1241 4bc99591 Lukáš Vlček
    /**
1242 9bfa1e39 Jaroslav Hrubý
     *
1243
     * @param {string} annotationId
1244
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1245 4bc99591 Lukáš Vlček
     * @param {*} [options] Override http request option.
1246
     * @throws {RequiredError}
1247
     * @memberof AnnotationApi
1248
     */
1249 9bfa1e39 Jaroslav Hrubý
    public annotationAnnotationIdPost(
1250
        annotationId: string,
1251
        annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1252
        options?: AxiosRequestConfig
1253
    ) {
1254
        return AnnotationApiFp(this.configuration)
1255
            .annotationAnnotationIdPost(
1256
                annotationId,
1257
                annotationInstanceAddRequest,
1258
                options
1259
            )
1260
            .then((request) => request(this.axios, this.basePath));
1261 4bc99591 Lukáš Vlček
    }
1262
1263 3e6b15a7 Lukáš Vlček
    /**
1264 9bfa1e39 Jaroslav Hrubý
     *
1265
     * @param {AnnotationsAddRequest} [annotationsAddRequest]
1266 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1267
     * @throws {RequiredError}
1268
     * @memberof AnnotationApi
1269
     */
1270 9bfa1e39 Jaroslav Hrubý
    public annotationsPost(
1271
        annotationsAddRequest?: AnnotationsAddRequest,
1272
        options?: AxiosRequestConfig
1273
    ) {
1274
        return AnnotationApiFp(this.configuration)
1275
            .annotationsPost(annotationsAddRequest, options)
1276
            .then((request) => request(this.axios, this.basePath));
1277 3e6b15a7 Lukáš Vlček
    }
1278
}
1279
1280
/**
1281
 * AuthApi - axios parameter creator
1282
 * @export
1283
 */
1284
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1285
    return {
1286
        /**
1287 9bfa1e39 Jaroslav Hrubý
         *
1288
         * @param {LoginRequest} [loginRequest]
1289 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1290
         * @throws {RequiredError}
1291
         */
1292 9bfa1e39 Jaroslav Hrubý
        authLoginPost: async (
1293
            loginRequest?: LoginRequest,
1294
            options: AxiosRequestConfig = {}
1295
        ): Promise<RequestArgs> => {
1296 3e6b15a7 Lukáš Vlček
            const localVarPath = `/auth/login`;
1297
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1298
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1299
            let baseOptions;
1300
            if (configuration) {
1301
                baseOptions = configuration.baseOptions;
1302
            }
1303
1304 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1305 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1306
            const localVarQueryParameter = {} as any;
1307
1308
            localVarHeaderParameter['Content-Type'] = 'application/json';
1309
1310
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1311 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
1312
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1313
            localVarRequestOptions.headers = {
1314
                ...localVarHeaderParameter,
1315
                ...headersFromBaseOptions,
1316
                ...options.headers,
1317
            };
1318
            localVarRequestOptions.data = serializeDataIfNeeded(
1319
                loginRequest,
1320
                localVarRequestOptions,
1321
                configuration
1322
            );
1323 3e6b15a7 Lukáš Vlček
1324
            return {
1325
                url: toPathString(localVarUrlObj),
1326
                options: localVarRequestOptions,
1327
            };
1328
        },
1329
        /**
1330 9bfa1e39 Jaroslav Hrubý
         *
1331 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1332
         * @throws {RequiredError}
1333
         */
1334
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1335
            const localVarPath = `/auth/test/aa`;
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 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1344 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1345
            const localVarQueryParameter = {} as any;
1346
1347
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1348 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
1349
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1350
            localVarRequestOptions.headers = {
1351
                ...localVarHeaderParameter,
1352
                ...headersFromBaseOptions,
1353
                ...options.headers,
1354
            };
1355 3e6b15a7 Lukáš Vlček
1356
            return {
1357
                url: toPathString(localVarUrlObj),
1358
                options: localVarRequestOptions,
1359
            };
1360
        },
1361
        /**
1362 9bfa1e39 Jaroslav Hrubý
         *
1363 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1364
         * @throws {RequiredError}
1365
         */
1366
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1367
            const localVarPath = `/auth/test`;
1368
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1369
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1370
            let baseOptions;
1371
            if (configuration) {
1372
                baseOptions = configuration.baseOptions;
1373
            }
1374
1375 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1376 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1377
            const localVarQueryParameter = {} as any;
1378
1379
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1380 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
1381
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1382
            localVarRequestOptions.headers = {
1383
                ...localVarHeaderParameter,
1384
                ...headersFromBaseOptions,
1385
                ...options.headers,
1386
            };
1387 3e6b15a7 Lukáš Vlček
1388
            return {
1389
                url: toPathString(localVarUrlObj),
1390
                options: localVarRequestOptions,
1391
            };
1392
        },
1393 9bfa1e39 Jaroslav Hrubý
    };
1394 3e6b15a7 Lukáš Vlček
};
1395
1396
/**
1397
 * AuthApi - functional programming interface
1398
 * @export
1399
 */
1400 9bfa1e39 Jaroslav Hrubý
export const AuthApiFp = function (configuration?: Configuration) {
1401
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
1402 3e6b15a7 Lukáš Vlček
    return {
1403
        /**
1404 9bfa1e39 Jaroslav Hrubý
         *
1405
         * @param {LoginRequest} [loginRequest]
1406 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1407
         * @throws {RequiredError}
1408
         */
1409 9bfa1e39 Jaroslav Hrubý
        async authLoginPost(
1410
            loginRequest?: LoginRequest,
1411
            options?: AxiosRequestConfig
1412
        ): Promise<
1413
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>
1414
        > {
1415
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(
1416
                loginRequest,
1417
                options
1418
            );
1419
            return createRequestFunction(
1420
                localVarAxiosArgs,
1421
                globalAxios,
1422
                BASE_PATH,
1423
                configuration
1424
            );
1425 3e6b15a7 Lukáš Vlček
        },
1426
        /**
1427 9bfa1e39 Jaroslav Hrubý
         *
1428 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1429
         * @throws {RequiredError}
1430
         */
1431 9bfa1e39 Jaroslav Hrubý
        async authTestAaGet(
1432
            options?: AxiosRequestConfig
1433
        ): Promise<
1434
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>
1435
        > {
1436
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(
1437
                options
1438
            );
1439
            return createRequestFunction(
1440
                localVarAxiosArgs,
1441
                globalAxios,
1442
                BASE_PATH,
1443
                configuration
1444
            );
1445 3e6b15a7 Lukáš Vlček
        },
1446
        /**
1447 9bfa1e39 Jaroslav Hrubý
         *
1448 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1449
         * @throws {RequiredError}
1450
         */
1451 9bfa1e39 Jaroslav Hrubý
        async authTestGet(
1452
            options?: AxiosRequestConfig
1453
        ): Promise<
1454
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>
1455
        > {
1456
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(
1457
                options
1458
            );
1459
            return createRequestFunction(
1460
                localVarAxiosArgs,
1461
                globalAxios,
1462
                BASE_PATH,
1463
                configuration
1464
            );
1465 3e6b15a7 Lukáš Vlček
        },
1466 9bfa1e39 Jaroslav Hrubý
    };
1467 3e6b15a7 Lukáš Vlček
};
1468
1469
/**
1470
 * AuthApi - factory interface
1471
 * @export
1472
 */
1473 9bfa1e39 Jaroslav Hrubý
export const AuthApiFactory = function (
1474
    configuration?: Configuration,
1475
    basePath?: string,
1476
    axios?: AxiosInstance
1477
) {
1478
    const localVarFp = AuthApiFp(configuration);
1479 3e6b15a7 Lukáš Vlček
    return {
1480
        /**
1481 9bfa1e39 Jaroslav Hrubý
         *
1482
         * @param {LoginRequest} [loginRequest]
1483 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1484
         * @throws {RequiredError}
1485
         */
1486 9bfa1e39 Jaroslav Hrubý
        authLoginPost(
1487
            loginRequest?: LoginRequest,
1488
            options?: any
1489
        ): AxiosPromise<LoginResponse> {
1490
            return localVarFp
1491
                .authLoginPost(loginRequest, options)
1492
                .then((request) => request(axios, basePath));
1493 3e6b15a7 Lukáš Vlček
        },
1494
        /**
1495 9bfa1e39 Jaroslav Hrubý
         *
1496 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1497
         * @throws {RequiredError}
1498
         */
1499
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1500 9bfa1e39 Jaroslav Hrubý
            return localVarFp
1501
                .authTestAaGet(options)
1502
                .then((request) => request(axios, basePath));
1503 3e6b15a7 Lukáš Vlček
        },
1504
        /**
1505 9bfa1e39 Jaroslav Hrubý
         *
1506 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1507
         * @throws {RequiredError}
1508
         */
1509
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1510 9bfa1e39 Jaroslav Hrubý
            return localVarFp
1511
                .authTestGet(options)
1512
                .then((request) => request(axios, basePath));
1513 3e6b15a7 Lukáš Vlček
        },
1514
    };
1515
};
1516
1517
/**
1518
 * AuthApi - object-oriented interface
1519
 * @export
1520
 * @class AuthApi
1521
 * @extends {BaseAPI}
1522
 */
1523
export class AuthApi extends BaseAPI {
1524
    /**
1525 9bfa1e39 Jaroslav Hrubý
     *
1526
     * @param {LoginRequest} [loginRequest]
1527 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1528
     * @throws {RequiredError}
1529
     * @memberof AuthApi
1530
     */
1531
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1532 9bfa1e39 Jaroslav Hrubý
        return AuthApiFp(this.configuration)
1533
            .authLoginPost(loginRequest, options)
1534
            .then((request) => request(this.axios, this.basePath));
1535 3e6b15a7 Lukáš Vlček
    }
1536
1537
    /**
1538 9bfa1e39 Jaroslav Hrubý
     *
1539 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1540
     * @throws {RequiredError}
1541
     * @memberof AuthApi
1542
     */
1543
    public authTestAaGet(options?: AxiosRequestConfig) {
1544 9bfa1e39 Jaroslav Hrubý
        return AuthApiFp(this.configuration)
1545
            .authTestAaGet(options)
1546
            .then((request) => request(this.axios, this.basePath));
1547 3e6b15a7 Lukáš Vlček
    }
1548
1549
    /**
1550 9bfa1e39 Jaroslav Hrubý
     *
1551 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1552
     * @throws {RequiredError}
1553
     * @memberof AuthApi
1554
     */
1555
    public authTestGet(options?: AxiosRequestConfig) {
1556 9bfa1e39 Jaroslav Hrubý
        return AuthApiFp(this.configuration)
1557
            .authTestGet(options)
1558
            .then((request) => request(this.axios, this.basePath));
1559 3e6b15a7 Lukáš Vlček
    }
1560
}
1561
1562
/**
1563
 * DocumentApi - axios parameter creator
1564
 * @export
1565
 */
1566
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1567
    return {
1568
        /**
1569 9bfa1e39 Jaroslav Hrubý
         *
1570
         * @param {number} [pageIndex]
1571
         * @param {number} [pageSize]
1572 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1573
         * @throws {RequiredError}
1574
         */
1575 9bfa1e39 Jaroslav Hrubý
        documentsGet: async (
1576
            pageIndex?: number,
1577
            pageSize?: number,
1578
            options: AxiosRequestConfig = {}
1579
        ): Promise<RequestArgs> => {
1580 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
1581
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1582
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1583
            let baseOptions;
1584
            if (configuration) {
1585
                baseOptions = configuration.baseOptions;
1586
            }
1587
1588 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1589 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1590
            const localVarQueryParameter = {} as any;
1591
1592 dd747fc5 Lukáš Vlček
            if (pageIndex !== undefined) {
1593
                localVarQueryParameter['pageIndex'] = pageIndex;
1594
            }
1595 3e6b15a7 Lukáš Vlček
1596 dd747fc5 Lukáš Vlček
            if (pageSize !== undefined) {
1597
                localVarQueryParameter['pageSize'] = pageSize;
1598
            }
1599 3e6b15a7 Lukáš Vlček
1600
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1601 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
1602
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1603
            localVarRequestOptions.headers = {
1604
                ...localVarHeaderParameter,
1605
                ...headersFromBaseOptions,
1606
                ...options.headers,
1607
            };
1608 3e6b15a7 Lukáš Vlček
1609
            return {
1610
                url: toPathString(localVarUrlObj),
1611
                options: localVarRequestOptions,
1612
            };
1613
        },
1614
        /**
1615 9bfa1e39 Jaroslav Hrubý
         *
1616
         * @param {DocumentAddRequest} [documentAddRequest]
1617 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1618
         * @throws {RequiredError}
1619
         */
1620 9bfa1e39 Jaroslav Hrubý
        documentsPost: async (
1621
            documentAddRequest?: DocumentAddRequest,
1622
            options: AxiosRequestConfig = {}
1623
        ): Promise<RequestArgs> => {
1624 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
1625
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1626
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1627
            let baseOptions;
1628
            if (configuration) {
1629
                baseOptions = configuration.baseOptions;
1630
            }
1631
1632 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1633 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1634
            const localVarQueryParameter = {} as any;
1635
1636
            localVarHeaderParameter['Content-Type'] = 'application/json';
1637
1638
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1639 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
1640
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1641
            localVarRequestOptions.headers = {
1642
                ...localVarHeaderParameter,
1643
                ...headersFromBaseOptions,
1644
                ...options.headers,
1645
            };
1646
            localVarRequestOptions.data = serializeDataIfNeeded(
1647
                documentAddRequest,
1648
                localVarRequestOptions,
1649
                configuration
1650
            );
1651 3e6b15a7 Lukáš Vlček
1652
            return {
1653
                url: toPathString(localVarUrlObj),
1654
                options: localVarRequestOptions,
1655
            };
1656
        },
1657 9bfa1e39 Jaroslav Hrubý
    };
1658 3e6b15a7 Lukáš Vlček
};
1659
1660
/**
1661
 * DocumentApi - functional programming interface
1662
 * @export
1663
 */
1664 9bfa1e39 Jaroslav Hrubý
export const DocumentApiFp = function (configuration?: Configuration) {
1665
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration);
1666 3e6b15a7 Lukáš Vlček
    return {
1667
        /**
1668 9bfa1e39 Jaroslav Hrubý
         *
1669
         * @param {number} [pageIndex]
1670
         * @param {number} [pageSize]
1671 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1672
         * @throws {RequiredError}
1673
         */
1674 9bfa1e39 Jaroslav Hrubý
        async documentsGet(
1675
            pageIndex?: number,
1676
            pageSize?: number,
1677
            options?: AxiosRequestConfig
1678
        ): Promise<
1679
            (
1680
                axios?: AxiosInstance,
1681
                basePath?: string
1682
            ) => AxiosPromise<DocumentListResponse>
1683
        > {
1684
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(
1685
                pageIndex,
1686
                pageSize,
1687
                options
1688
            );
1689
            return createRequestFunction(
1690
                localVarAxiosArgs,
1691
                globalAxios,
1692
                BASE_PATH,
1693
                configuration
1694
            );
1695 3e6b15a7 Lukáš Vlček
        },
1696
        /**
1697 9bfa1e39 Jaroslav Hrubý
         *
1698
         * @param {DocumentAddRequest} [documentAddRequest]
1699 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1700
         * @throws {RequiredError}
1701
         */
1702 9bfa1e39 Jaroslav Hrubý
        async documentsPost(
1703
            documentAddRequest?: DocumentAddRequest,
1704
            options?: AxiosRequestConfig
1705
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1706
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(
1707
                documentAddRequest,
1708
                options
1709
            );
1710
            return createRequestFunction(
1711
                localVarAxiosArgs,
1712
                globalAxios,
1713
                BASE_PATH,
1714
                configuration
1715
            );
1716 3e6b15a7 Lukáš Vlček
        },
1717 9bfa1e39 Jaroslav Hrubý
    };
1718 3e6b15a7 Lukáš Vlček
};
1719
1720
/**
1721
 * DocumentApi - factory interface
1722
 * @export
1723
 */
1724 9bfa1e39 Jaroslav Hrubý
export const DocumentApiFactory = function (
1725
    configuration?: Configuration,
1726
    basePath?: string,
1727
    axios?: AxiosInstance
1728
) {
1729
    const localVarFp = DocumentApiFp(configuration);
1730 3e6b15a7 Lukáš Vlček
    return {
1731
        /**
1732 9bfa1e39 Jaroslav Hrubý
         *
1733
         * @param {number} [pageIndex]
1734
         * @param {number} [pageSize]
1735 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1736
         * @throws {RequiredError}
1737
         */
1738 9bfa1e39 Jaroslav Hrubý
        documentsGet(
1739
            pageIndex?: number,
1740
            pageSize?: number,
1741
            options?: any
1742
        ): AxiosPromise<DocumentListResponse> {
1743
            return localVarFp
1744
                .documentsGet(pageIndex, pageSize, options)
1745
                .then((request) => request(axios, basePath));
1746 3e6b15a7 Lukáš Vlček
        },
1747
        /**
1748 9bfa1e39 Jaroslav Hrubý
         *
1749
         * @param {DocumentAddRequest} [documentAddRequest]
1750 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1751
         * @throws {RequiredError}
1752
         */
1753 9bfa1e39 Jaroslav Hrubý
        documentsPost(
1754
            documentAddRequest?: DocumentAddRequest,
1755
            options?: any
1756
        ): AxiosPromise<void> {
1757
            return localVarFp
1758
                .documentsPost(documentAddRequest, options)
1759
                .then((request) => request(axios, basePath));
1760 3e6b15a7 Lukáš Vlček
        },
1761
    };
1762
};
1763
1764
/**
1765
 * DocumentApi - object-oriented interface
1766
 * @export
1767
 * @class DocumentApi
1768
 * @extends {BaseAPI}
1769
 */
1770
export class DocumentApi extends BaseAPI {
1771
    /**
1772 9bfa1e39 Jaroslav Hrubý
     *
1773
     * @param {number} [pageIndex]
1774
     * @param {number} [pageSize]
1775 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1776
     * @throws {RequiredError}
1777
     * @memberof DocumentApi
1778
     */
1779 9bfa1e39 Jaroslav Hrubý
    public documentsGet(
1780
        pageIndex?: number,
1781
        pageSize?: number,
1782
        options?: AxiosRequestConfig
1783
    ) {
1784
        return DocumentApiFp(this.configuration)
1785
            .documentsGet(pageIndex, pageSize, options)
1786
            .then((request) => request(this.axios, this.basePath));
1787 3e6b15a7 Lukáš Vlček
    }
1788
1789
    /**
1790 9bfa1e39 Jaroslav Hrubý
     *
1791
     * @param {DocumentAddRequest} [documentAddRequest]
1792 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1793
     * @throws {RequiredError}
1794
     * @memberof DocumentApi
1795
     */
1796 9bfa1e39 Jaroslav Hrubý
    public documentsPost(
1797
        documentAddRequest?: DocumentAddRequest,
1798
        options?: AxiosRequestConfig
1799
    ) {
1800
        return DocumentApiFp(this.configuration)
1801
            .documentsPost(documentAddRequest, options)
1802
            .then((request) => request(this.axios, this.basePath));
1803 3e6b15a7 Lukáš Vlček
    }
1804
}
1805
1806
/**
1807
 * TagApi - axios parameter creator
1808
 * @export
1809
 */
1810
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
1811
    return {
1812
        /**
1813 9bfa1e39 Jaroslav Hrubý
         *
1814 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1815
         * @throws {RequiredError}
1816
         */
1817
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1818
            const localVarPath = `/tags`;
1819
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1820
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1821
            let baseOptions;
1822
            if (configuration) {
1823
                baseOptions = configuration.baseOptions;
1824
            }
1825
1826 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1827 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1828
            const localVarQueryParameter = {} as any;
1829
1830
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1831 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
1832
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1833
            localVarRequestOptions.headers = {
1834
                ...localVarHeaderParameter,
1835
                ...headersFromBaseOptions,
1836
                ...options.headers,
1837
            };
1838 3e6b15a7 Lukáš Vlček
1839
            return {
1840
                url: toPathString(localVarUrlObj),
1841
                options: localVarRequestOptions,
1842
            };
1843
        },
1844 9bfa1e39 Jaroslav Hrubý
    };
1845 3e6b15a7 Lukáš Vlček
};
1846
1847
/**
1848
 * TagApi - functional programming interface
1849
 * @export
1850
 */
1851 9bfa1e39 Jaroslav Hrubý
export const TagApiFp = function (configuration?: Configuration) {
1852
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration);
1853 3e6b15a7 Lukáš Vlček
    return {
1854
        /**
1855 9bfa1e39 Jaroslav Hrubý
         *
1856 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1857
         * @throws {RequiredError}
1858
         */
1859 9bfa1e39 Jaroslav Hrubý
        async tagsGet(
1860
            options?: AxiosRequestConfig
1861
        ): Promise<
1862
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>
1863
        > {
1864 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
1865 9bfa1e39 Jaroslav Hrubý
            return createRequestFunction(
1866
                localVarAxiosArgs,
1867
                globalAxios,
1868
                BASE_PATH,
1869
                configuration
1870
            );
1871 3e6b15a7 Lukáš Vlček
        },
1872 9bfa1e39 Jaroslav Hrubý
    };
1873 3e6b15a7 Lukáš Vlček
};
1874
1875
/**
1876
 * TagApi - factory interface
1877
 * @export
1878
 */
1879 9bfa1e39 Jaroslav Hrubý
export const TagApiFactory = function (
1880
    configuration?: Configuration,
1881
    basePath?: string,
1882
    axios?: AxiosInstance
1883
) {
1884
    const localVarFp = TagApiFp(configuration);
1885 3e6b15a7 Lukáš Vlček
    return {
1886
        /**
1887 9bfa1e39 Jaroslav Hrubý
         *
1888 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1889
         * @throws {RequiredError}
1890
         */
1891
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
1892 9bfa1e39 Jaroslav Hrubý
            return localVarFp
1893
                .tagsGet(options)
1894
                .then((request) => request(axios, basePath));
1895 3e6b15a7 Lukáš Vlček
        },
1896
    };
1897
};
1898
1899
/**
1900
 * TagApi - object-oriented interface
1901
 * @export
1902
 * @class TagApi
1903
 * @extends {BaseAPI}
1904
 */
1905
export class TagApi extends BaseAPI {
1906
    /**
1907 9bfa1e39 Jaroslav Hrubý
     *
1908 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1909
     * @throws {RequiredError}
1910
     * @memberof TagApi
1911
     */
1912
    public tagsGet(options?: AxiosRequestConfig) {
1913 9bfa1e39 Jaroslav Hrubý
        return TagApiFp(this.configuration)
1914
            .tagsGet(options)
1915
            .then((request) => request(this.axios, this.basePath));
1916 3e6b15a7 Lukáš Vlček
    }
1917
}
1918
1919
/**
1920
 * UserApi - axios parameter creator
1921
 * @export
1922
 */
1923
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
1924
    return {
1925
        /**
1926 9bfa1e39 Jaroslav Hrubý
         *
1927 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1928
         * @throws {RequiredError}
1929
         */
1930 9bfa1e39 Jaroslav Hrubý
        userAnnotationsGet: async (
1931
            options: AxiosRequestConfig = {}
1932
        ): Promise<RequestArgs> => {
1933 3e6b15a7 Lukáš Vlček
            const localVarPath = `/user/annotations`;
1934
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1935
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1936
            let baseOptions;
1937
            if (configuration) {
1938
                baseOptions = configuration.baseOptions;
1939
            }
1940
1941 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1942 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
1943
            const localVarQueryParameter = {} as any;
1944
1945
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1946 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
1947
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1948
            localVarRequestOptions.headers = {
1949
                ...localVarHeaderParameter,
1950
                ...headersFromBaseOptions,
1951
                ...options.headers,
1952
            };
1953 3e6b15a7 Lukáš Vlček
1954
            return {
1955
                url: toPathString(localVarUrlObj),
1956
                options: localVarRequestOptions,
1957
            };
1958
        },
1959 43d49a98 Jaroslav Hrubý
        /**
1960
         *
1961
         * @param {string} userId
1962
         * @param {*} [options] Override http request option.
1963
         * @throws {RequiredError}
1964
         */
1965
        userUserIdAnnotationsGet: async (
1966
            userId: string,
1967
            options: AxiosRequestConfig = {}
1968
        ): Promise<RequestArgs> => {
1969
            // verify required parameter 'userId' is not null or undefined
1970
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId);
1971
            const localVarPath = `/user/{userId}/annotations`.replace(
1972
                `{${'userId'}}`,
1973
                encodeURIComponent(String(userId))
1974
            );
1975
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1976
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1977
            let baseOptions;
1978
            if (configuration) {
1979
                baseOptions = configuration.baseOptions;
1980
            }
1981
1982
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1983
            const localVarHeaderParameter = {} as any;
1984
            const localVarQueryParameter = {} as any;
1985
1986
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1987
            let headersFromBaseOptions =
1988
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1989
            localVarRequestOptions.headers = {
1990
                ...localVarHeaderParameter,
1991
                ...headersFromBaseOptions,
1992
                ...options.headers,
1993
            };
1994
1995
            return {
1996
                url: toPathString(localVarUrlObj),
1997
                options: localVarRequestOptions,
1998
            };
1999
        },
2000
        /**
2001
         *
2002
         * @param {string} userId
2003
         * @param {*} [options] Override http request option.
2004
         * @throws {RequiredError}
2005
         */
2006
        userUserIdDelete: async (
2007
            userId: string,
2008
            options: AxiosRequestConfig = {}
2009
        ): Promise<RequestArgs> => {
2010
            // verify required parameter 'userId' is not null or undefined
2011
            assertParamExists('userUserIdDelete', 'userId', userId);
2012
            const localVarPath = `/user/{userId}`.replace(
2013
                `{${'userId'}}`,
2014
                encodeURIComponent(String(userId))
2015
            );
2016
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2017
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2018
            let baseOptions;
2019
            if (configuration) {
2020
                baseOptions = configuration.baseOptions;
2021
            }
2022
2023
            const localVarRequestOptions = {
2024
                method: 'DELETE',
2025
                ...baseOptions,
2026
                ...options,
2027
            };
2028
            const localVarHeaderParameter = {} as any;
2029
            const localVarQueryParameter = {} as any;
2030
2031
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2032
            let headersFromBaseOptions =
2033
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2034
            localVarRequestOptions.headers = {
2035
                ...localVarHeaderParameter,
2036
                ...headersFromBaseOptions,
2037
                ...options.headers,
2038
            };
2039
2040
            return {
2041
                url: toPathString(localVarUrlObj),
2042
                options: localVarRequestOptions,
2043
            };
2044
        },
2045
        /**
2046
         *
2047
         * @param {string} userId
2048
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2049
         * @param {*} [options] Override http request option.
2050
         * @throws {RequiredError}
2051
         */
2052
        userUserIdPut: async (
2053
            userId: string,
2054
            changeUserInfoRequest?: ChangeUserInfoRequest,
2055
            options: AxiosRequestConfig = {}
2056
        ): Promise<RequestArgs> => {
2057
            // verify required parameter 'userId' is not null or undefined
2058
            assertParamExists('userUserIdPut', 'userId', userId);
2059
            const localVarPath = `/user/{userId}`.replace(
2060
                `{${'userId'}}`,
2061
                encodeURIComponent(String(userId))
2062
            );
2063
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2064
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2065
            let baseOptions;
2066
            if (configuration) {
2067
                baseOptions = configuration.baseOptions;
2068
            }
2069
2070
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2071
            const localVarHeaderParameter = {} as any;
2072
            const localVarQueryParameter = {} as any;
2073
2074
            localVarHeaderParameter['Content-Type'] = 'application/json';
2075
2076
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2077
            let headersFromBaseOptions =
2078
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2079
            localVarRequestOptions.headers = {
2080
                ...localVarHeaderParameter,
2081
                ...headersFromBaseOptions,
2082
                ...options.headers,
2083
            };
2084
            localVarRequestOptions.data = serializeDataIfNeeded(
2085
                changeUserInfoRequest,
2086
                localVarRequestOptions,
2087
                configuration
2088
            );
2089
2090
            return {
2091
                url: toPathString(localVarUrlObj),
2092
                options: localVarRequestOptions,
2093
            };
2094
        },
2095 3e6b15a7 Lukáš Vlček
        /**
2096 9bfa1e39 Jaroslav Hrubý
         *
2097 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2098
         * @throws {RequiredError}
2099
         */
2100
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2101
            const localVarPath = `/users`;
2102
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2103
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2104
            let baseOptions;
2105
            if (configuration) {
2106
                baseOptions = configuration.baseOptions;
2107
            }
2108
2109 9bfa1e39 Jaroslav Hrubý
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2110 3e6b15a7 Lukáš Vlček
            const localVarHeaderParameter = {} as any;
2111
            const localVarQueryParameter = {} as any;
2112
2113
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2114 9bfa1e39 Jaroslav Hrubý
            let headersFromBaseOptions =
2115
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2116
            localVarRequestOptions.headers = {
2117
                ...localVarHeaderParameter,
2118
                ...headersFromBaseOptions,
2119
                ...options.headers,
2120
            };
2121 3e6b15a7 Lukáš Vlček
2122 43d49a98 Jaroslav Hrubý
            return {
2123
                url: toPathString(localVarUrlObj),
2124
                options: localVarRequestOptions,
2125
            };
2126
        },
2127
        /**
2128
         *
2129
         * @param {CreateUserRequest} [createUserRequest]
2130
         * @param {*} [options] Override http request option.
2131
         * @throws {RequiredError}
2132
         */
2133
        usersPost: async (
2134
            createUserRequest?: CreateUserRequest,
2135
            options: AxiosRequestConfig = {}
2136
        ): Promise<RequestArgs> => {
2137
            const localVarPath = `/users`;
2138
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2139
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2140
            let baseOptions;
2141
            if (configuration) {
2142
                baseOptions = configuration.baseOptions;
2143
            }
2144
2145
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2146
            const localVarHeaderParameter = {} as any;
2147
            const localVarQueryParameter = {} as any;
2148
2149
            localVarHeaderParameter['Content-Type'] = 'application/json';
2150
2151
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2152
            let headersFromBaseOptions =
2153
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2154
            localVarRequestOptions.headers = {
2155
                ...localVarHeaderParameter,
2156
                ...headersFromBaseOptions,
2157
                ...options.headers,
2158
            };
2159
            localVarRequestOptions.data = serializeDataIfNeeded(
2160
                createUserRequest,
2161
                localVarRequestOptions,
2162
                configuration
2163
            );
2164
2165 3e6b15a7 Lukáš Vlček
            return {
2166
                url: toPathString(localVarUrlObj),
2167
                options: localVarRequestOptions,
2168
            };
2169
        },
2170 9bfa1e39 Jaroslav Hrubý
    };
2171 3e6b15a7 Lukáš Vlček
};
2172
2173
/**
2174
 * UserApi - functional programming interface
2175
 * @export
2176
 */
2177 9bfa1e39 Jaroslav Hrubý
export const UserApiFp = function (configuration?: Configuration) {
2178
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
2179 3e6b15a7 Lukáš Vlček
    return {
2180
        /**
2181 9bfa1e39 Jaroslav Hrubý
         *
2182 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2183
         * @throws {RequiredError}
2184
         */
2185 9bfa1e39 Jaroslav Hrubý
        async userAnnotationsGet(
2186
            options?: AxiosRequestConfig
2187
        ): Promise<
2188
            (
2189
                axios?: AxiosInstance,
2190
                basePath?: string
2191
            ) => AxiosPromise<AnnotationListResponse>
2192
        > {
2193
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(
2194
                options
2195
            );
2196
            return createRequestFunction(
2197
                localVarAxiosArgs,
2198
                globalAxios,
2199
                BASE_PATH,
2200
                configuration
2201
            );
2202 3e6b15a7 Lukáš Vlček
        },
2203 43d49a98 Jaroslav Hrubý
        /**
2204
         *
2205
         * @param {string} userId
2206
         * @param {*} [options] Override http request option.
2207
         * @throws {RequiredError}
2208
         */
2209
        async userUserIdAnnotationsGet(
2210
            userId: string,
2211
            options?: AxiosRequestConfig
2212
        ): Promise<
2213
            (
2214
                axios?: AxiosInstance,
2215
                basePath?: string
2216
            ) => AxiosPromise<AnnotationListResponse>
2217
        > {
2218
            const localVarAxiosArgs =
2219
                await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
2220
            return createRequestFunction(
2221
                localVarAxiosArgs,
2222
                globalAxios,
2223
                BASE_PATH,
2224
                configuration
2225
            );
2226
        },
2227
        /**
2228
         *
2229
         * @param {string} userId
2230
         * @param {*} [options] Override http request option.
2231
         * @throws {RequiredError}
2232
         */
2233
        async userUserIdDelete(
2234
            userId: string,
2235
            options?: AxiosRequestConfig
2236
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2237
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(
2238
                userId,
2239
                options
2240
            );
2241
            return createRequestFunction(
2242
                localVarAxiosArgs,
2243
                globalAxios,
2244
                BASE_PATH,
2245
                configuration
2246
            );
2247
        },
2248
        /**
2249
         *
2250
         * @param {string} userId
2251
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2252
         * @param {*} [options] Override http request option.
2253
         * @throws {RequiredError}
2254
         */
2255
        async userUserIdPut(
2256
            userId: string,
2257
            changeUserInfoRequest?: ChangeUserInfoRequest,
2258
            options?: AxiosRequestConfig
2259
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2260
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(
2261
                userId,
2262
                changeUserInfoRequest,
2263
                options
2264
            );
2265
            return createRequestFunction(
2266
                localVarAxiosArgs,
2267
                globalAxios,
2268
                BASE_PATH,
2269
                configuration
2270
            );
2271
        },
2272 3e6b15a7 Lukáš Vlček
        /**
2273 9bfa1e39 Jaroslav Hrubý
         *
2274 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2275
         * @throws {RequiredError}
2276
         */
2277 9bfa1e39 Jaroslav Hrubý
        async usersGet(
2278
            options?: AxiosRequestConfig
2279
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
2280 3e6b15a7 Lukáš Vlček
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
2281 9bfa1e39 Jaroslav Hrubý
            return createRequestFunction(
2282
                localVarAxiosArgs,
2283
                globalAxios,
2284
                BASE_PATH,
2285
                configuration
2286
            );
2287 3e6b15a7 Lukáš Vlček
        },
2288 43d49a98 Jaroslav Hrubý
        /**
2289
         *
2290
         * @param {CreateUserRequest} [createUserRequest]
2291
         * @param {*} [options] Override http request option.
2292
         * @throws {RequiredError}
2293
         */
2294
        async usersPost(
2295
            createUserRequest?: CreateUserRequest,
2296
            options?: AxiosRequestConfig
2297
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2298
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(
2299
                createUserRequest,
2300
                options
2301
            );
2302
            return createRequestFunction(
2303
                localVarAxiosArgs,
2304
                globalAxios,
2305
                BASE_PATH,
2306
                configuration
2307
            );
2308
        },
2309 9bfa1e39 Jaroslav Hrubý
    };
2310 3e6b15a7 Lukáš Vlček
};
2311
2312
/**
2313
 * UserApi - factory interface
2314
 * @export
2315
 */
2316 9bfa1e39 Jaroslav Hrubý
export const UserApiFactory = function (
2317
    configuration?: Configuration,
2318
    basePath?: string,
2319
    axios?: AxiosInstance
2320
) {
2321
    const localVarFp = UserApiFp(configuration);
2322 3e6b15a7 Lukáš Vlček
    return {
2323
        /**
2324 9bfa1e39 Jaroslav Hrubý
         *
2325 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2326
         * @throws {RequiredError}
2327
         */
2328
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
2329 9bfa1e39 Jaroslav Hrubý
            return localVarFp
2330
                .userAnnotationsGet(options)
2331
                .then((request) => request(axios, basePath));
2332 3e6b15a7 Lukáš Vlček
        },
2333 43d49a98 Jaroslav Hrubý
        /**
2334
         *
2335
         * @param {string} userId
2336
         * @param {*} [options] Override http request option.
2337
         * @throws {RequiredError}
2338
         */
2339
        userUserIdAnnotationsGet(
2340
            userId: string,
2341
            options?: any
2342
        ): AxiosPromise<AnnotationListResponse> {
2343
            return localVarFp
2344
                .userUserIdAnnotationsGet(userId, options)
2345
                .then((request) => request(axios, basePath));
2346
        },
2347
        /**
2348
         *
2349
         * @param {string} userId
2350
         * @param {*} [options] Override http request option.
2351
         * @throws {RequiredError}
2352
         */
2353
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
2354
            return localVarFp
2355
                .userUserIdDelete(userId, options)
2356
                .then((request) => request(axios, basePath));
2357
        },
2358
        /**
2359
         *
2360
         * @param {string} userId
2361
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2362
         * @param {*} [options] Override http request option.
2363
         * @throws {RequiredError}
2364
         */
2365
        userUserIdPut(
2366
            userId: string,
2367
            changeUserInfoRequest?: ChangeUserInfoRequest,
2368
            options?: any
2369
        ): AxiosPromise<void> {
2370
            return localVarFp
2371
                .userUserIdPut(userId, changeUserInfoRequest, options)
2372
                .then((request) => request(axios, basePath));
2373
        },
2374 3e6b15a7 Lukáš Vlček
        /**
2375 9bfa1e39 Jaroslav Hrubý
         *
2376 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
2377
         * @throws {RequiredError}
2378
         */
2379
        usersGet(options?: any): AxiosPromise<UserList> {
2380 9bfa1e39 Jaroslav Hrubý
            return localVarFp
2381
                .usersGet(options)
2382
                .then((request) => request(axios, basePath));
2383 3e6b15a7 Lukáš Vlček
        },
2384 43d49a98 Jaroslav Hrubý
        /**
2385
         *
2386
         * @param {CreateUserRequest} [createUserRequest]
2387
         * @param {*} [options] Override http request option.
2388
         * @throws {RequiredError}
2389
         */
2390
        usersPost(
2391
            createUserRequest?: CreateUserRequest,
2392
            options?: any
2393
        ): AxiosPromise<void> {
2394
            return localVarFp
2395
                .usersPost(createUserRequest, options)
2396
                .then((request) => request(axios, basePath));
2397
        },
2398 3e6b15a7 Lukáš Vlček
    };
2399
};
2400
2401
/**
2402
 * UserApi - object-oriented interface
2403
 * @export
2404
 * @class UserApi
2405
 * @extends {BaseAPI}
2406
 */
2407
export class UserApi extends BaseAPI {
2408
    /**
2409 9bfa1e39 Jaroslav Hrubý
     *
2410 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2411
     * @throws {RequiredError}
2412
     * @memberof UserApi
2413
     */
2414
    public userAnnotationsGet(options?: AxiosRequestConfig) {
2415 9bfa1e39 Jaroslav Hrubý
        return UserApiFp(this.configuration)
2416
            .userAnnotationsGet(options)
2417
            .then((request) => request(this.axios, this.basePath));
2418 3e6b15a7 Lukáš Vlček
    }
2419
2420 43d49a98 Jaroslav Hrubý
    /**
2421
     *
2422
     * @param {string} userId
2423
     * @param {*} [options] Override http request option.
2424
     * @throws {RequiredError}
2425
     * @memberof UserApi
2426
     */
2427
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
2428
        return UserApiFp(this.configuration)
2429
            .userUserIdAnnotationsGet(userId, options)
2430
            .then((request) => request(this.axios, this.basePath));
2431
    }
2432
2433
    /**
2434
     *
2435
     * @param {string} userId
2436
     * @param {*} [options] Override http request option.
2437
     * @throws {RequiredError}
2438
     * @memberof UserApi
2439
     */
2440
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
2441
        return UserApiFp(this.configuration)
2442
            .userUserIdDelete(userId, options)
2443
            .then((request) => request(this.axios, this.basePath));
2444
    }
2445
2446
    /**
2447
     *
2448
     * @param {string} userId
2449
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2450
     * @param {*} [options] Override http request option.
2451
     * @throws {RequiredError}
2452
     * @memberof UserApi
2453
     */
2454
    public userUserIdPut(
2455
        userId: string,
2456
        changeUserInfoRequest?: ChangeUserInfoRequest,
2457
        options?: AxiosRequestConfig
2458
    ) {
2459
        return UserApiFp(this.configuration)
2460
            .userUserIdPut(userId, changeUserInfoRequest, options)
2461
            .then((request) => request(this.axios, this.basePath));
2462
    }
2463
2464 3e6b15a7 Lukáš Vlček
    /**
2465 9bfa1e39 Jaroslav Hrubý
     *
2466 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
2467
     * @throws {RequiredError}
2468
     * @memberof UserApi
2469
     */
2470
    public usersGet(options?: AxiosRequestConfig) {
2471 9bfa1e39 Jaroslav Hrubý
        return UserApiFp(this.configuration)
2472
            .usersGet(options)
2473
            .then((request) => request(this.axios, this.basePath));
2474 3e6b15a7 Lukáš Vlček
    }
2475 43d49a98 Jaroslav Hrubý
2476
    /**
2477
     *
2478
     * @param {CreateUserRequest} [createUserRequest]
2479
     * @param {*} [options] Override http request option.
2480
     * @throws {RequiredError}
2481
     * @memberof UserApi
2482
     */
2483
    public usersPost(
2484
        createUserRequest?: CreateUserRequest,
2485
        options?: AxiosRequestConfig
2486
    ) {
2487
        return UserApiFp(this.configuration)
2488
            .usersPost(createUserRequest, options)
2489
            .then((request) => request(this.axios, this.basePath));
2490
    }
2491 3e6b15a7 Lukáš Vlček
}