Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 0db53e25

Přidáno uživatelem Jaroslav Hrubý před asi 2 roky(ů)

Document filtering implemented

Zobrazit rozdíly:

webapp/api/api.ts
5 5
 * KIV/ASWI ZČU Plzeň, 2022
6 6
 *
7 7
 * The version of the OpenAPI document: 0.1.1
8
 *
8
 * 
9 9
 *
10 10
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11 11
 * https://openapi-generator.tech
12 12
 * Do not edit the class manually.
13 13
 */
14 14

  
15

  
15 16
import { Configuration } from './configuration';
16 17
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17 18
// Some imports not used depending on template conditions
18 19
// @ts-ignore
19
import {
20
    DUMMY_BASE_URL,
21
    assertParamExists,
22
    setApiKeyToObject,
23
    setBasicAuthToObject,
24
    setBearerAuthToObject,
25
    setOAuthToObject,
26
    setSearchParams,
27
    serializeDataIfNeeded,
28
    toPathString,
29
    createRequestFunction,
30
} from './common';
20
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
31 21
// @ts-ignore
32
import {
33
    BASE_PATH,
34
    COLLECTION_FORMATS,
35
    RequestArgs,
36
    BaseAPI,
37
    RequiredError,
38
} from './base';
22
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
39 23

  
40 24
/**
41
 *
25
 * 
42 26
 * @export
43 27
 * @interface AnnotationInfo
44 28
 */
45 29
export interface AnnotationInfo {
46 30
    /**
47
     *
31
     * 
48 32
     * @type {string}
49 33
     * @memberof AnnotationInfo
50 34
     */
51
    sourceDocumentContent?: string | null;
35
    'sourceDocumentContent'?: string | null;
52 36
    /**
53
     *
37
     * 
54 38
     * @type {string}
55 39
     * @memberof AnnotationInfo
56 40
     */
57
    documentToRender?: string | null;
41
    'documentToRender'?: string | null;
58 42
    /**
59
     *
43
     * 
60 44
     * @type {Array<number>}
61 45
     * @memberof AnnotationInfo
62 46
     */
63
    tagStartPositions?: Array<number> | null;
47
    'tagStartPositions'?: Array<number> | null;
64 48
    /**
65
     *
49
     * 
66 50
     * @type {Array<number>}
67 51
     * @memberof AnnotationInfo
68 52
     */
69
    tagLengths?: Array<number> | null;
53
    'tagLengths'?: Array<number> | null;
70 54
    /**
71
     *
55
     * 
72 56
     * @type {EState}
73 57
     * @memberof AnnotationInfo
74 58
     */
75
    state?: EState;
59
    'state'?: EState;
76 60
    /**
77
     *
61
     * 
78 62
     * @type {EDocumentType}
79 63
     * @memberof AnnotationInfo
80 64
     */
81
    type?: EDocumentType;
65
    'type'?: EDocumentType;
82 66
    /**
83
     *
67
     * 
84 68
     * @type {string}
85 69
     * @memberof AnnotationInfo
86 70
     */
87
    note?: string | null;
71
    'note'?: string | null;
88 72
    /**
89
     *
73
     * 
90 74
     * @type {Array<TagInstanceInfo>}
91 75
     * @memberof AnnotationInfo
92 76
     */
93
    tagInstances?: Array<TagInstanceInfo> | null;
77
    'tagInstances'?: Array<TagInstanceInfo> | null;
94 78
}
95 79
/**
96
 *
80
 * 
97 81
 * @export
98 82
 * @interface AnnotationInstanceAddRequest
99 83
 */
100 84
export interface AnnotationInstanceAddRequest {
101 85
    /**
102
     *
86
     * 
103 87
     * @type {number}
104 88
     * @memberof AnnotationInstanceAddRequest
105 89
     */
106
    position?: number;
90
    'position'?: number;
107 91
    /**
108
     *
92
     * 
109 93
     * @type {number}
110 94
     * @memberof AnnotationInstanceAddRequest
111 95
     */
112
    length?: number;
96
    'length'?: number;
113 97
    /**
114
     *
98
     * 
115 99
     * @type {ETagType}
116 100
     * @memberof AnnotationInstanceAddRequest
117 101
     */
118
    type?: ETagType;
102
    'type'?: ETagType;
119 103
    /**
120
     *
104
     * 
121 105
     * @type {string}
122 106
     * @memberof AnnotationInstanceAddRequest
123 107
     */
124
    id?: string;
108
    'id'?: string;
125 109
    /**
126
     *
110
     * 
127 111
     * @type {string}
128 112
     * @memberof AnnotationInstanceAddRequest
129 113
     */
130
    instanceId?: string | null;
114
    'instanceId'?: string | null;
131 115
}
132 116
/**
133
 *
117
 * 
134 118
 * @export
135 119
 * @interface AnnotationListInfo
136 120
 */
137 121
export interface AnnotationListInfo {
138 122
    /**
139
     *
123
     * 
140 124
     * @type {string}
141 125
     * @memberof AnnotationListInfo
142 126
     */
143
    documentName?: string | null;
127
    'documentName'?: string | null;
144 128
    /**
145
     *
129
     * 
146 130
     * @type {EState}
147 131
     * @memberof AnnotationListInfo
148 132
     */
149
    state?: EState;
133
    'state'?: EState;
150 134
    /**
151
     *
135
     * 
152 136
     * @type {string}
153 137
     * @memberof AnnotationListInfo
154 138
     */
155
    annotationId?: string;
139
    'annotationId'?: string;
156 140
}
157 141
/**
158
 *
142
 * 
159 143
 * @export
160 144
 * @interface AnnotationListResponse
161 145
 */
162 146
export interface AnnotationListResponse {
163 147
    /**
164
     *
148
     * 
165 149
     * @type {Array<AnnotationListInfo>}
166 150
     * @memberof AnnotationListResponse
167 151
     */
168
    annotations?: Array<AnnotationListInfo> | null;
152
    'annotations'?: Array<AnnotationListInfo> | null;
169 153
}
170 154
/**
171
 *
155
 * 
172 156
 * @export
173 157
 * @interface AnnotationsAddRequest
174 158
 */
175 159
export interface AnnotationsAddRequest {
176 160
    /**
177
     *
161
     * 
178 162
     * @type {Array<string>}
179 163
     * @memberof AnnotationsAddRequest
180 164
     */
181
    userIdList?: Array<string> | null;
165
    'userIdList'?: Array<string> | null;
182 166
    /**
183
     *
167
     * 
184 168
     * @type {Array<string>}
185 169
     * @memberof AnnotationsAddRequest
186 170
     */
187
    documentIdList?: Array<string> | null;
171
    'documentIdList'?: Array<string> | null;
188 172
}
189 173
/**
190
 *
174
 * 
191 175
 * @export
192 176
 * @interface ChangeUserInfoRequest
193 177
 */
194 178
export interface ChangeUserInfoRequest {
195 179
    /**
196
     *
180
     * 
197 181
     * @type {string}
198 182
     * @memberof ChangeUserInfoRequest
199 183
     */
200
    password?: string | null;
184
    'password'?: string | null;
201 185
    /**
202
     *
186
     * 
203 187
     * @type {string}
204 188
     * @memberof ChangeUserInfoRequest
205 189
     */
206
    username?: string | null;
190
    'username'?: string | null;
207 191
    /**
208
     *
192
     * 
209 193
     * @type {string}
210 194
     * @memberof ChangeUserInfoRequest
211 195
     */
212
    name?: string | null;
196
    'name'?: string | null;
213 197
    /**
214
     *
198
     * 
215 199
     * @type {string}
216 200
     * @memberof ChangeUserInfoRequest
217 201
     */
218
    surname?: string | null;
202
    'surname'?: string | null;
219 203
    /**
220
     *
204
     * 
221 205
     * @type {ERole}
222 206
     * @memberof ChangeUserInfoRequest
223 207
     */
224
    role?: ERole;
208
    'role'?: ERole;
225 209
}
226 210
/**
227
 *
211
 * 
228 212
 * @export
229 213
 * @interface ClientInfo
230 214
 */
231 215
export interface ClientInfo {
232 216
    /**
233
     *
217
     * 
234 218
     * @type {boolean}
235 219
     * @memberof ClientInfo
236 220
     */
237
    isLogged?: boolean;
221
    'isLogged'?: boolean;
238 222
    /**
239
     *
223
     * 
240 224
     * @type {User}
241 225
     * @memberof ClientInfo
242 226
     */
243
    loggedUser?: User;
227
    'loggedUser'?: User;
244 228
    /**
245
     *
229
     * 
246 230
     * @type {string}
247 231
     * @memberof ClientInfo
248 232
     */
249
    ip?: string | null;
233
    'ip'?: string | null;
250 234
}
251 235
/**
252
 *
236
 * 
253 237
 * @export
254 238
 * @interface CreateUserRequest
255 239
 */
256 240
export interface CreateUserRequest {
257 241
    /**
258
     *
242
     * 
259 243
     * @type {string}
260 244
     * @memberof CreateUserRequest
261 245
     */
262
    username?: string | null;
246
    'username'?: string | null;
263 247
    /**
264
     *
248
     * 
265 249
     * @type {string}
266 250
     * @memberof CreateUserRequest
267 251
     */
268
    password?: string | null;
252
    'password'?: string | null;
269 253
    /**
270
     *
254
     * 
271 255
     * @type {string}
272 256
     * @memberof CreateUserRequest
273 257
     */
274
    name?: string | null;
258
    'name'?: string | null;
275 259
    /**
276
     *
260
     * 
277 261
     * @type {string}
278 262
     * @memberof CreateUserRequest
279 263
     */
280
    surname?: string | null;
264
    'surname'?: string | null;
281 265
    /**
282
     *
266
     * 
283 267
     * @type {ERole}
284 268
     * @memberof CreateUserRequest
285 269
     */
286
    role?: ERole;
270
    'role'?: ERole;
287 271
}
288 272
/**
289
 *
273
 * 
290 274
 * @export
291 275
 * @interface DocumentAddInfo
292 276
 */
293 277
export interface DocumentAddInfo {
294 278
    /**
295
     *
279
     * 
296 280
     * @type {string}
297 281
     * @memberof DocumentAddInfo
298 282
     */
299
    name?: string | null;
283
    'name'?: string | null;
300 284
    /**
301
     *
285
     * 
302 286
     * @type {EAddDocumentFormat}
303 287
     * @memberof DocumentAddInfo
304 288
     */
305
    format?: EAddDocumentFormat;
289
    'format'?: EAddDocumentFormat;
306 290
    /**
307
     *
291
     * 
308 292
     * @type {string}
309 293
     * @memberof DocumentAddInfo
310 294
     */
311
    content?: string | null;
295
    'content'?: string | null;
312 296
}
313 297
/**
314
 *
298
 * 
315 299
 * @export
316 300
 * @interface DocumentAddRequest
317 301
 */
318 302
export interface DocumentAddRequest {
319 303
    /**
320
     *
304
     * 
321 305
     * @type {Array<DocumentAddInfo>}
322 306
     * @memberof DocumentAddRequest
323 307
     */
324
    documents?: Array<DocumentAddInfo> | null;
308
    'documents'?: Array<DocumentAddInfo> | null;
325 309
}
326 310
/**
327
 *
311
 * 
328 312
 * @export
329 313
 * @interface DocumentListInfo
330 314
 */
331 315
export interface DocumentListInfo {
332 316
    /**
333
     *
317
     * 
334 318
     * @type {string}
335 319
     * @memberof DocumentListInfo
336 320
     */
337
    id?: string;
321
    'id'?: string;
338 322
    /**
339
     *
323
     * 
340 324
     * @type {string}
341 325
     * @memberof DocumentListInfo
342 326
     */
343
    name?: string | null;
327
    'name'?: string | null;
344 328
    /**
345
     *
329
     * 
346 330
     * @type {number}
347 331
     * @memberof DocumentListInfo
348 332
     */
349
    length?: number;
333
    'length'?: number;
350 334
    /**
351
     *
335
     * 
352 336
     * @type {number}
353 337
     * @memberof DocumentListInfo
354 338
     */
355
    requiredAnnotations?: number;
339
    'requiredAnnotations'?: number;
356 340
    /**
357
     *
341
     * 
358 342
     * @type {Array<UserInfo>}
359 343
     * @memberof DocumentListInfo
360 344
     */
361
    annotatingUsers?: Array<UserInfo> | null;
345
    'annotatingUsers'?: Array<UserInfo> | null;
362 346
}
363 347
/**
364
 *
348
 * 
365 349
 * @export
366 350
 * @interface DocumentListResponse
367 351
 */
368 352
export interface DocumentListResponse {
369 353
    /**
370
     *
354
     * 
371 355
     * @type {number}
372 356
     * @memberof DocumentListResponse
373 357
     */
374
    totalCount?: number;
358
    'totalCount'?: number;
375 359
    /**
376
     *
360
     * 
377 361
     * @type {number}
378 362
     * @memberof DocumentListResponse
379 363
     */
380
    pageCount?: number;
364
    'pageCount'?: number;
381 365
    /**
382
     *
366
     * 
383 367
     * @type {number}
384 368
     * @memberof DocumentListResponse
385 369
     */
386
    pageIndex?: number;
370
    'pageIndex'?: number;
387 371
    /**
388
     *
372
     * 
389 373
     * @type {Array<DocumentListInfo>}
390 374
     * @memberof DocumentListResponse
391 375
     */
392
    documents?: Array<DocumentListInfo> | null;
376
    'documents'?: Array<DocumentListInfo> | null;
393 377
}
394 378
/**
395
 *
379
 * 
396 380
 * @export
397 381
 * @enum {string}
398 382
 */
399 383

  
400 384
export const EAddDocumentFormat = {
401 385
    Zip: 'ZIP',
402
    Textfile: 'TEXTFILE',
386
    Textfile: 'TEXTFILE'
403 387
} as const;
404 388

  
405
export type EAddDocumentFormat =
406
    typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
389
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
390

  
407 391

  
408 392
/**
409
 *
393
 * 
410 394
 * @export
411 395
 * @enum {string}
412 396
 */
413 397

  
414 398
export const EDocumentType = {
415 399
    Html: 'HTML',
416
    Text: 'TEXT',
400
    Text: 'TEXT'
417 401
} as const;
418 402

  
419 403
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
420 404

  
405

  
421 406
/**
422
 *
407
 * 
423 408
 * @export
424 409
 * @enum {string}
425 410
 */
426 411

  
427 412
export const ERole = {
428 413
    Annotator: 'ANNOTATOR',
429
    Administrator: 'ADMINISTRATOR',
414
    Administrator: 'ADMINISTRATOR'
430 415
} as const;
431 416

  
432 417
export type ERole = typeof ERole[keyof typeof ERole];
433 418

  
419

  
434 420
/**
435
 *
421
 * 
436 422
 * @export
437 423
 * @enum {string}
438 424
 */
......
440 426
export const EState = {
441 427
    Done: 'DONE',
442 428
    InProgress: 'IN_PROGRESS',
443
    New: 'NEW',
429
    New: 'NEW'
444 430
} as const;
445 431

  
446 432
export type EState = typeof EState[keyof typeof EState];
447 433

  
434

  
448 435
/**
449
 *
436
 * 
450 437
 * @export
451 438
 * @enum {string}
452 439
 */
453 440

  
454 441
export const ETagType = {
455 442
    Tag: 'TAG',
456
    Subtag: 'SUBTAG',
443
    Subtag: 'SUBTAG'
457 444
} as const;
458 445

  
459 446
export type ETagType = typeof ETagType[keyof typeof ETagType];
460 447

  
448

  
461 449
/**
462
 *
450
 * 
463 451
 * @export
464 452
 * @interface LoginRequest
465 453
 */
466 454
export interface LoginRequest {
467 455
    /**
468
     *
456
     * 
469 457
     * @type {string}
470 458
     * @memberof LoginRequest
471 459
     */
472
    username?: string | null;
460
    'username'?: string | null;
473 461
    /**
474
     *
462
     * 
475 463
     * @type {string}
476 464
     * @memberof LoginRequest
477 465
     */
478
    password?: string | null;
466
    'password'?: string | null;
479 467
}
480 468
/**
481
 *
469
 * 
482 470
 * @export
483 471
 * @interface LoginResponse
484 472
 */
485 473
export interface LoginResponse {
486 474
    /**
487
     *
475
     * 
488 476
     * @type {boolean}
489 477
     * @memberof LoginResponse
490 478
     */
491
    ok?: boolean;
479
    'ok'?: boolean;
492 480
    /**
493
     *
481
     * 
494 482
     * @type {string}
495 483
     * @memberof LoginResponse
496 484
     */
497
    token?: string | null;
485
    'token'?: string | null;
498 486
    /**
499
     *
487
     * 
500 488
     * @type {string}
501 489
     * @memberof LoginResponse
502 490
     */
503
    expiration?: string;
491
    'expiration'?: string;
504 492
    /**
505
     *
493
     * 
506 494
     * @type {ERole}
507 495
     * @memberof LoginResponse
508 496
     */
509
    role?: ERole;
497
    'role'?: ERole;
510 498
}
511 499
/**
512
 *
500
 * 
513 501
 * @export
514 502
 * @interface ProblemDetails
515 503
 */
......
517 505
    [key: string]: any | any;
518 506

  
519 507
    /**
520
     *
508
     * 
521 509
     * @type {string}
522 510
     * @memberof ProblemDetails
523 511
     */
524
    type?: string | null;
512
    'type'?: string | null;
525 513
    /**
526
     *
514
     * 
527 515
     * @type {string}
528 516
     * @memberof ProblemDetails
529 517
     */
530
    title?: string | null;
518
    'title'?: string | null;
531 519
    /**
532
     *
520
     * 
533 521
     * @type {number}
534 522
     * @memberof ProblemDetails
535 523
     */
536
    status?: number | null;
524
    'status'?: number | null;
537 525
    /**
538
     *
526
     * 
539 527
     * @type {string}
540 528
     * @memberof ProblemDetails
541 529
     */
542
    detail?: string | null;
530
    'detail'?: string | null;
543 531
    /**
544
     *
532
     * 
545 533
     * @type {string}
546 534
     * @memberof ProblemDetails
547 535
     */
548
    instance?: string | null;
536
    'instance'?: string | null;
549 537
}
550 538
/**
551
 *
539
 * 
552 540
 * @export
553 541
 * @interface SubTagInfo
554 542
 */
555 543
export interface SubTagInfo {
556 544
    /**
557
     *
545
     * 
558 546
     * @type {string}
559 547
     * @memberof SubTagInfo
560 548
     */
561
    id?: string;
549
    'id'?: string;
562 550
    /**
563
     *
551
     * 
564 552
     * @type {string}
565 553
     * @memberof SubTagInfo
566 554
     */
567
    name?: string | null;
555
    'name'?: string | null;
568 556
    /**
569
     *
557
     * 
570 558
     * @type {string}
571 559
     * @memberof SubTagInfo
572 560
     */
573
    description?: string | null;
561
    'description'?: string | null;
574 562
}
575 563
/**
576
 *
564
 * 
577 565
 * @export
578 566
 * @interface TagCategoryInfo
579 567
 */
580 568
export interface TagCategoryInfo {
581 569
    /**
582
     *
570
     * 
583 571
     * @type {string}
584 572
     * @memberof TagCategoryInfo
585 573
     */
586
    id?: string;
574
    'id'?: string;
587 575
    /**
588
     *
576
     * 
589 577
     * @type {string}
590 578
     * @memberof TagCategoryInfo
591 579
     */
592
    name?: string | null;
580
    'name'?: string | null;
593 581
    /**
594
     *
582
     * 
595 583
     * @type {string}
596 584
     * @memberof TagCategoryInfo
597 585
     */
598
    description?: string | null;
586
    'description'?: string | null;
599 587
    /**
600
     *
588
     * 
601 589
     * @type {string}
602 590
     * @memberof TagCategoryInfo
603 591
     */
604
    color?: string | null;
592
    'color'?: string | null;
605 593
    /**
606
     *
594
     * 
607 595
     * @type {Array<TagInfo>}
608 596
     * @memberof TagCategoryInfo
609 597
     */
610
    tags?: Array<TagInfo> | null;
598
    'tags'?: Array<TagInfo> | null;
611 599
}
612 600
/**
613
 *
601
 * 
614 602
 * @export
615 603
 * @interface TagInfo
616 604
 */
617 605
export interface TagInfo {
618 606
    /**
619
     *
607
     * 
620 608
     * @type {string}
621 609
     * @memberof TagInfo
622 610
     */
623
    id?: string;
611
    'id'?: string;
624 612
    /**
625
     *
613
     * 
626 614
     * @type {string}
627 615
     * @memberof TagInfo
628 616
     */
629
    name?: string | null;
617
    'name'?: string | null;
630 618
    /**
631
     *
619
     * 
632 620
     * @type {string}
633 621
     * @memberof TagInfo
634 622
     */
635
    description?: string | null;
623
    'description'?: string | null;
636 624
    /**
637
     *
625
     * 
638 626
     * @type {string}
639 627
     * @memberof TagInfo
640 628
     */
641
    color?: string | null;
629
    'color'?: string | null;
642 630
    /**
643
     *
631
     * 
644 632
     * @type {Array<SubTagInfo>}
645 633
     * @memberof TagInfo
646 634
     */
647
    subTags?: Array<SubTagInfo> | null;
635
    'subTags'?: Array<SubTagInfo> | null;
648 636
}
649 637
/**
650
 *
638
 * 
651 639
 * @export
652 640
 * @interface TagInstanceInfo
653 641
 */
654 642
export interface TagInstanceInfo {
655 643
    /**
656
     *
644
     * 
657 645
     * @type {string}
658 646
     * @memberof TagInstanceInfo
659 647
     */
660
    occurenceId?: string;
648
    'occurenceId'?: string;
661 649
    /**
662
     *
650
     * 
663 651
     * @type {string}
664 652
     * @memberof TagInstanceInfo
665 653
     */
666
    tagName?: string | null;
654
    'tagName'?: string | null;
667 655
    /**
668
     *
656
     * 
669 657
     * @type {string}
670 658
     * @memberof TagInstanceInfo
671 659
     */
672
    tagId?: string;
660
    'tagId'?: string;
673 661
    /**
674
     *
662
     * 
675 663
     * @type {string}
676 664
     * @memberof TagInstanceInfo
677 665
     */
678
    tagCategoryName?: string | null;
666
    'tagCategoryName'?: string | null;
679 667
    /**
680
     *
668
     * 
681 669
     * @type {string}
682 670
     * @memberof TagInstanceInfo
683 671
     */
684
    tagCategoryId?: string;
672
    'tagCategoryId'?: string;
685 673
    /**
686
     *
674
     * 
687 675
     * @type {string}
688 676
     * @memberof TagInstanceInfo
689 677
     */
690
    subTagName?: string | null;
678
    'subTagName'?: string | null;
691 679
    /**
692
     *
680
     * 
693 681
     * @type {string}
694 682
     * @memberof TagInstanceInfo
695 683
     */
696
    subTagId?: string | null;
684
    'subTagId'?: string | null;
697 685
    /**
698
     *
686
     * 
699 687
     * @type {string}
700 688
     * @memberof TagInstanceInfo
701 689
     */
702
    instance?: string;
690
    'instance'?: string;
703 691
    /**
704
     *
692
     * 
705 693
     * @type {number}
706 694
     * @memberof TagInstanceInfo
707 695
     */
708
    position?: number;
696
    'position'?: number;
709 697
    /**
710
     *
698
     * 
711 699
     * @type {number}
712 700
     * @memberof TagInstanceInfo
713 701
     */
714
    length?: number;
702
    'length'?: number;
715 703
    /**
716
     *
704
     * 
717 705
     * @type {string}
718 706
     * @memberof TagInstanceInfo
719 707
     */
720
    note?: string | null;
708
    'note'?: string | null;
721 709
}
722 710
/**
723
 *
711
 * 
724 712
 * @export
725 713
 * @interface TagTreeResponse
726 714
 */
727 715
export interface TagTreeResponse {
728 716
    /**
729
     *
717
     * 
730 718
     * @type {Array<TagCategoryInfo>}
731 719
     * @memberof TagTreeResponse
732 720
     */
733
    tagCategories?: Array<TagCategoryInfo> | null;
721
    'tagCategories'?: Array<TagCategoryInfo> | null;
734 722
}
735 723
/**
736
 *
724
 * 
737 725
 * @export
738 726
 * @interface User
739 727
 */
740 728
export interface User {
741 729
    /**
742
     *
730
     * 
743 731
     * @type {string}
744 732
     * @memberof User
745 733
     */
746
    id?: string;
734
    'id'?: string;
747 735
    /**
748
     *
736
     * 
749 737
     * @type {string}
750 738
     * @memberof User
751 739
     */
752
    username?: string | null;
740
    'username'?: string | null;
753 741
    /**
754
     *
742
     * 
755 743
     * @type {string}
756 744
     * @memberof User
757 745
     */
758
    name?: string | null;
746
    'name'?: string | null;
759 747
    /**
760
     *
748
     * 
761 749
     * @type {string}
762 750
     * @memberof User
763 751
     */
764
    surname?: string | null;
752
    'surname'?: string | null;
765 753
    /**
766
     *
754
     * 
767 755
     * @type {ERole}
768 756
     * @memberof User
769 757
     */
770
    role?: ERole;
758
    'role'?: ERole;
771 759
}
772 760
/**
773
 *
761
 * 
774 762
 * @export
775 763
 * @interface UserInfo
776 764
 */
777 765
export interface UserInfo {
778 766
    /**
779
     *
767
     * 
780 768
     * @type {string}
781 769
     * @memberof UserInfo
782 770
     */
783
    id?: string;
771
    'id'?: string;
784 772
    /**
785
     *
773
     * 
786 774
     * @type {string}
787 775
     * @memberof UserInfo
788 776
     */
789
    username?: string | null;
777
    'username'?: string | null;
790 778
    /**
791
     *
779
     * 
792 780
     * @type {string}
793 781
     * @memberof UserInfo
794 782
     */
795
    name?: string | null;
783
    'name'?: string | null;
796 784
    /**
797
     *
785
     * 
798 786
     * @type {string}
799 787
     * @memberof UserInfo
800 788
     */
801
    surname?: string | null;
789
    'surname'?: string | null;
802 790
}
803 791
/**
804
 *
792
 * 
805 793
 * @export
806 794
 * @interface UserList
807 795
 */
808 796
export interface UserList {
809 797
    /**
810
     *
798
     * 
811 799
     * @type {Array<UserInfo>}
812 800
     * @memberof UserList
813 801
     */
814
    users?: Array<UserInfo> | null;
802
    'users'?: Array<UserInfo> | null;
815 803
}
816 804

  
817 805
/**
......
821 809
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
822 810
    return {
823 811
        /**
824
         *
825
         * @param {string} annotationId
812
         * 
813
         * @param {string} annotationId 
826 814
         * @param {*} [options] Override http request option.
827 815
         * @throws {RequiredError}
828 816
         */
829
        annotationAnnotationIdGet: async (
830
            annotationId: string,
831
            options: AxiosRequestConfig = {}
832
        ): Promise<RequestArgs> => {
817
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
833 818
            // verify required parameter 'annotationId' is not null or undefined
834
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId);
835
            const localVarPath = `/annotation/{annotationId}`.replace(
836
                `{${'annotationId'}}`,
837
                encodeURIComponent(String(annotationId))
838
            );
819
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
820
            const localVarPath = `/annotation/{annotationId}`
821
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
839 822
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
840 823
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
841 824
            let baseOptions;
......
843 826
                baseOptions = configuration.baseOptions;
844 827
            }
845 828

  
846
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
829
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
847 830
            const localVarHeaderParameter = {} as any;
848 831
            const localVarQueryParameter = {} as any;
849 832

  
833

  
834
    
850 835
            setSearchParams(localVarUrlObj, localVarQueryParameter);
851
            let headersFromBaseOptions =
852
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
853
            localVarRequestOptions.headers = {
854
                ...localVarHeaderParameter,
855
                ...headersFromBaseOptions,
856
                ...options.headers,
857
            };
836
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
837
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
858 838

  
859 839
            return {
860 840
                url: toPathString(localVarUrlObj),
......
862 842
            };
863 843
        },
864 844
        /**
865
         *
866
         * @param {string} annotationId
867
         * @param {string} occurenceId
845
         * 
846
         * @param {string} annotationId 
847
         * @param {string} occurenceId 
868 848
         * @param {*} [options] Override http request option.
869 849
         * @throws {RequiredError}
870 850
         */
871
        annotationAnnotationIdOccurenceIdDelete: async (
872
            annotationId: string,
873
            occurenceId: string,
874
            options: AxiosRequestConfig = {}
875
        ): Promise<RequestArgs> => {
851
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
876 852
            // verify required parameter 'annotationId' is not null or undefined
877
            assertParamExists(
878
                'annotationAnnotationIdOccurenceIdDelete',
879
                'annotationId',
880
                annotationId
881
            );
853
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
882 854
            // verify required parameter 'occurenceId' is not null or undefined
883
            assertParamExists(
884
                'annotationAnnotationIdOccurenceIdDelete',
885
                'occurenceId',
886
                occurenceId
887
            );
855
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
888 856
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
889
                .replace(`{${'annotationId'}}`, encodeURIComponent(String(annotationId)))
890
                .replace(`{${'occurenceId'}}`, encodeURIComponent(String(occurenceId)));
857
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
858
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
891 859
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
892 860
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
893 861
            let baseOptions;
......
895 863
                baseOptions = configuration.baseOptions;
896 864
            }
897 865

  
898
            const localVarRequestOptions = {
899
                method: 'DELETE',
900
                ...baseOptions,
901
                ...options,
902
            };
866
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
903 867
            const localVarHeaderParameter = {} as any;
904 868
            const localVarQueryParameter = {} as any;
905 869

  
870

  
871
    
906 872
            setSearchParams(localVarUrlObj, localVarQueryParameter);
907
            let headersFromBaseOptions =
908
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
909
            localVarRequestOptions.headers = {
910
                ...localVarHeaderParameter,
911
                ...headersFromBaseOptions,
912
                ...options.headers,
913
            };
873
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
874
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
914 875

  
915 876
            return {
916 877
                url: toPathString(localVarUrlObj),
......
918 879
            };
919 880
        },
920 881
        /**
921
         *
922
         * @param {string} annotationId
923
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
882
         * 
883
         * @param {string} annotationId 
884
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
924 885
         * @param {*} [options] Override http request option.
925 886
         * @throws {RequiredError}
926 887
         */
927
        annotationAnnotationIdPost: async (
928
            annotationId: string,
929
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
930
            options: AxiosRequestConfig = {}
931
        ): Promise<RequestArgs> => {
888
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
932 889
            // verify required parameter 'annotationId' is not null or undefined
933
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId);
934
            const localVarPath = `/annotation/{annotationId}`.replace(
935
                `{${'annotationId'}}`,
936
                encodeURIComponent(String(annotationId))
937
            );
890
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
891
            const localVarPath = `/annotation/{annotationId}`
892
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
938 893
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
939 894
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
940 895
            let baseOptions;
......
942 897
                baseOptions = configuration.baseOptions;
943 898
            }
944 899

  
945
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
900
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
946 901
            const localVarHeaderParameter = {} as any;
947 902
            const localVarQueryParameter = {} as any;
948 903

  
904

  
905
    
949 906
            localVarHeaderParameter['Content-Type'] = 'application/json';
950 907

  
951 908
            setSearchParams(localVarUrlObj, localVarQueryParameter);
952
            let headersFromBaseOptions =
953
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
954
            localVarRequestOptions.headers = {
955
                ...localVarHeaderParameter,
956
                ...headersFromBaseOptions,
957
                ...options.headers,
958
            };
959
            localVarRequestOptions.data = serializeDataIfNeeded(
960
                annotationInstanceAddRequest,
961
                localVarRequestOptions,
962
                configuration
963
            );
909
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
910
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
911
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
964 912

  
965 913
            return {
966 914
                url: toPathString(localVarUrlObj),
......
968 916
            };
969 917
        },
970 918
        /**
971
         *
972
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
919
         * 
920
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
973 921
         * @param {*} [options] Override http request option.
974 922
         * @throws {RequiredError}
975 923
         */
976
        annotationsPost: async (
977
            annotationsAddRequest?: AnnotationsAddRequest,
978
            options: AxiosRequestConfig = {}
979
        ): Promise<RequestArgs> => {
924
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
980 925
            const localVarPath = `/annotations`;
981 926
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
982 927
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
......
985 930
                baseOptions = configuration.baseOptions;
986 931
            }
987 932

  
988
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
933
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
989 934
            const localVarHeaderParameter = {} as any;
990 935
            const localVarQueryParameter = {} as any;
991 936

  
937

  
938
    
992 939
            localVarHeaderParameter['Content-Type'] = 'application/json';
993 940

  
994 941
            setSearchParams(localVarUrlObj, localVarQueryParameter);
995
            let headersFromBaseOptions =
996
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
997
            localVarRequestOptions.headers = {
998
                ...localVarHeaderParameter,
999
                ...headersFromBaseOptions,
1000
                ...options.headers,
1001
            };
1002
            localVarRequestOptions.data = serializeDataIfNeeded(
1003
                annotationsAddRequest,
1004
                localVarRequestOptions,
1005
                configuration
1006
            );
942
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
943
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
944
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
1007 945

  
1008 946
            return {
1009 947
                url: toPathString(localVarUrlObj),
1010 948
                options: localVarRequestOptions,
1011 949
            };
1012 950
        },
1013
    };
951
    }
1014 952
};
1015 953

  
1016 954
/**
1017 955
 * AnnotationApi - functional programming interface
1018 956
 * @export
1019 957
 */
1020
export const AnnotationApiFp = function (configuration?: Configuration) {
1021
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration);
958
export const AnnotationApiFp = function(configuration?: Configuration) {
959
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
1022 960
    return {
1023 961
        /**
1024
         *
1025
         * @param {string} annotationId
962
         * 
963
         * @param {string} annotationId 
1026 964
         * @param {*} [options] Override http request option.
1027 965
         * @throws {RequiredError}
1028 966
         */
1029
        async annotationAnnotationIdGet(
1030
            annotationId: string,
1031
            options?: AxiosRequestConfig
1032
        ): Promise<
1033
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>
1034
        > {
1035
            const localVarAxiosArgs =
1036
                await localVarAxiosParamCreator.annotationAnnotationIdGet(
1037
                    annotationId,
1038
                    options
1039
                );
1040
            return createRequestFunction(
1041
                localVarAxiosArgs,
1042
                globalAxios,
1043
                BASE_PATH,
1044
                configuration
1045
            );
967
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
968
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
969
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1046 970
        },
1047 971
        /**
1048
         *
1049
         * @param {string} annotationId
1050
         * @param {string} occurenceId
972
         * 
973
         * @param {string} annotationId 
974
         * @param {string} occurenceId 
1051 975
         * @param {*} [options] Override http request option.
1052 976
         * @throws {RequiredError}
1053 977
         */
1054
        async annotationAnnotationIdOccurenceIdDelete(
1055
            annotationId: string,
1056
            occurenceId: string,
1057
            options?: AxiosRequestConfig
1058
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1059
            const localVarAxiosArgs =
1060
                await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(
1061
                    annotationId,
1062
                    occurenceId,
1063
                    options
1064
                );
1065
            return createRequestFunction(
1066
                localVarAxiosArgs,
1067
                globalAxios,
1068
                BASE_PATH,
1069
                configuration
1070
            );
978
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
979
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
980
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1071 981
        },
1072 982
        /**
1073
         *
1074
         * @param {string} annotationId
1075
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
983
         * 
984
         * @param {string} annotationId 
985
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1076 986
         * @param {*} [options] Override http request option.
1077 987
         * @throws {RequiredError}
1078 988
         */
1079
        async annotationAnnotationIdPost(
1080
            annotationId: string,
1081
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1082
            options?: AxiosRequestConfig
1083
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1084
            const localVarAxiosArgs =
1085
                await localVarAxiosParamCreator.annotationAnnotationIdPost(
1086
                    annotationId,
1087
                    annotationInstanceAddRequest,
1088
                    options
1089
                );
1090
            return createRequestFunction(
1091
                localVarAxiosArgs,
1092
                globalAxios,
1093
                BASE_PATH,
1094
                configuration
1095
            );
989
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
990
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
991
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1096 992
        },
1097 993
        /**
1098
         *
1099
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
994
         * 
995
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1100 996
         * @param {*} [options] Override http request option.
1101 997
         * @throws {RequiredError}
1102 998
         */
1103
        async annotationsPost(
1104
            annotationsAddRequest?: AnnotationsAddRequest,
1105
            options?: AxiosRequestConfig
1106
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1107
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(
1108
                annotationsAddRequest,
1109
                options
1110
            );
1111
            return createRequestFunction(
1112
                localVarAxiosArgs,
1113
                globalAxios,
1114
                BASE_PATH,
1115
                configuration
1116
            );
999
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1000
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1001
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1117 1002
        },
1118
    };
1003
    }
1119 1004
};
1120 1005

  
1121 1006
/**
1122 1007
 * AnnotationApi - factory interface
1123 1008
 * @export
1124 1009
 */
1125
export const AnnotationApiFactory = function (
1126
    configuration?: Configuration,
1127
    basePath?: string,
1128
    axios?: AxiosInstance
1129
) {
1130
    const localVarFp = AnnotationApiFp(configuration);
1010
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1011
    const localVarFp = AnnotationApiFp(configuration)
1131 1012
    return {
1132 1013
        /**
1133
         *
1134
         * @param {string} annotationId
1014
         * 
1015
         * @param {string} annotationId 
1135 1016
         * @param {*} [options] Override http request option.
1136 1017
         * @throws {RequiredError}
1137 1018
         */
1138
        annotationAnnotationIdGet(
1139
            annotationId: string,
1140
            options?: any
1141
        ): AxiosPromise<AnnotationInfo> {
1142
            return localVarFp
1143
                .annotationAnnotationIdGet(annotationId, options)
1144
                .then((request) => request(axios, basePath));
1019
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
1020
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
1145 1021
        },
1146 1022
        /**
1147
         *
1148
         * @param {string} annotationId
1149
         * @param {string} occurenceId
1023
         * 
1024
         * @param {string} annotationId 
1025
         * @param {string} occurenceId 
1150 1026
         * @param {*} [options] Override http request option.
1151 1027
         * @throws {RequiredError}
1152 1028
         */
1153
        annotationAnnotationIdOccurenceIdDelete(
1154
            annotationId: string,
1155
            occurenceId: string,
1156
            options?: any
1157
        ): AxiosPromise<void> {
1158
            return localVarFp
1159
                .annotationAnnotationIdOccurenceIdDelete(
1160
                    annotationId,
1161
                    occurenceId,
1162
                    options
1163
                )
1164
                .then((request) => request(axios, basePath));
1029
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> {
1030
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath));
1165 1031
        },
1166 1032
        /**
1167
         *
1168
         * @param {string} annotationId
1169
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1033
         * 
1034
         * @param {string} annotationId 
1035
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1170 1036
         * @param {*} [options] Override http request option.
1171 1037
         * @throws {RequiredError}
1172 1038
         */
1173
        annotationAnnotationIdPost(
1174
            annotationId: string,
1175
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1176
            options?: any
1177
        ): AxiosPromise<void> {
1178
            return localVarFp
1179
                .annotationAnnotationIdPost(
1180
                    annotationId,
1181
                    annotationInstanceAddRequest,
1182
                    options
1183
                )
1184
                .then((request) => request(axios, basePath));
1039
        annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
1040
            return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
... Rozdílový soubor je zkrácen, protože jeho délka přesahuje max. limit.

Také k dispozici: Unified diff