Projekt

Obecné

Profil

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