Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 19b68a2e

Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)

API client regenerated

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
     *
358
     * @type {Array<UserInfo>}
341
     * 
342
     * @type {Array<DocumentUserInfo>}
359 343
     * @memberof DocumentListInfo
360 344
     */
361
    annotatingUsers?: Array<UserInfo> | null;
345
    'annotatingUsers'?: Array<DocumentUserInfo> | 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
 * 
380
 * @export
381
 * @interface DocumentUserInfo
382
 */
383
export interface DocumentUserInfo {
384
    /**
385
     * 
386
     * @type {string}
387
     * @memberof DocumentUserInfo
388
     */
389
    'id'?: string;
390
    /**
391
     * 
392
     * @type {string}
393
     * @memberof DocumentUserInfo
394
     */
395
    'username'?: string | null;
396
    /**
397
     * 
398
     * @type {string}
399
     * @memberof DocumentUserInfo
400
     */
401
    'name'?: string | null;
402
    /**
403
     * 
404
     * @type {string}
405
     * @memberof DocumentUserInfo
406
     */
407
    'surname'?: string | null;
408
    /**
409
     * 
410
     * @type {EState}
411
     * @memberof DocumentUserInfo
412
     */
413
    'state'?: EState;
414
}
415
/**
416
 * 
396 417
 * @export
397 418
 * @enum {string}
398 419
 */
399 420

  
400 421
export const EAddDocumentFormat = {
401 422
    Zip: 'ZIP',
402
    Textfile: 'TEXTFILE',
423
    Textfile: 'TEXTFILE'
403 424
} as const;
404 425

  
405
export type EAddDocumentFormat =
406
    typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
426
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
427

  
407 428

  
408 429
/**
409
 *
430
 * 
410 431
 * @export
411 432
 * @enum {string}
412 433
 */
413 434

  
414 435
export const EDocumentType = {
415 436
    Html: 'HTML',
416
    Text: 'TEXT',
437
    Text: 'TEXT'
417 438
} as const;
418 439

  
419 440
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
420 441

  
442

  
421 443
/**
422
 *
444
 * 
423 445
 * @export
424 446
 * @enum {string}
425 447
 */
426 448

  
427 449
export const ERole = {
428 450
    Annotator: 'ANNOTATOR',
429
    Administrator: 'ADMINISTRATOR',
451
    Administrator: 'ADMINISTRATOR'
430 452
} as const;
431 453

  
432 454
export type ERole = typeof ERole[keyof typeof ERole];
433 455

  
456

  
434 457
/**
435
 *
458
 * 
436 459
 * @export
437 460
 * @enum {string}
438 461
 */
......
440 463
export const EState = {
441 464
    Done: 'DONE',
442 465
    InProgress: 'IN_PROGRESS',
443
    New: 'NEW',
466
    New: 'NEW'
444 467
} as const;
445 468

  
446 469
export type EState = typeof EState[keyof typeof EState];
447 470

  
471

  
448 472
/**
449
 *
473
 * 
450 474
 * @export
451 475
 * @enum {string}
452 476
 */
453 477

  
454 478
export const ETagType = {
455 479
    Tag: 'TAG',
456
    Subtag: 'SUBTAG',
480
    Subtag: 'SUBTAG'
457 481
} as const;
458 482

  
459 483
export type ETagType = typeof ETagType[keyof typeof ETagType];
460 484

  
485

  
461 486
/**
462
 *
487
 * 
488
 * @export
489
 * @interface GetRequiredAnnotationsGlobalResponse
490
 */
491
export interface GetRequiredAnnotationsGlobalResponse {
492
    /**
493
     * 
494
     * @type {number}
495
     * @memberof GetRequiredAnnotationsGlobalResponse
496
     */
497
    'requiredAnnotationsGlobal'?: number;
498
}
499
/**
500
 * 
463 501
 * @export
464 502
 * @interface LoginRequest
465 503
 */
466 504
export interface LoginRequest {
467 505
    /**
468
     *
506
     * 
469 507
     * @type {string}
470 508
     * @memberof LoginRequest
471 509
     */
472
    username?: string | null;
510
    'username'?: string | null;
473 511
    /**
474
     *
512
     * 
475 513
     * @type {string}
476 514
     * @memberof LoginRequest
477 515
     */
478
    password?: string | null;
516
    'password'?: string | null;
479 517
}
480 518
/**
481
 *
519
 * 
482 520
 * @export
483 521
 * @interface LoginResponse
484 522
 */
485 523
export interface LoginResponse {
486 524
    /**
487
     *
525
     * 
488 526
     * @type {boolean}
489 527
     * @memberof LoginResponse
490 528
     */
491
    ok?: boolean;
529
    'ok'?: boolean;
492 530
    /**
493
     *
531
     * 
494 532
     * @type {string}
495 533
     * @memberof LoginResponse
496 534
     */
497
    token?: string | null;
535
    'token'?: string | null;
498 536
    /**
499
     *
537
     * 
500 538
     * @type {string}
501 539
     * @memberof LoginResponse
502 540
     */
503
    expiration?: string;
541
    'expiration'?: string;
504 542
    /**
505
     *
543
     * 
506 544
     * @type {ERole}
507 545
     * @memberof LoginResponse
508 546
     */
509
    role?: ERole;
547
    'role'?: ERole;
510 548
}
511 549
/**
512
 *
550
 * 
513 551
 * @export
514 552
 * @interface ProblemDetails
515 553
 */
......
517 555
    [key: string]: any | any;
518 556

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

  
817 887
/**
......
821 891
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
822 892
    return {
823 893
        /**
824
         *
825
         * @param {string} annotationId
894
         * 
895
         * @param {string} annotationId 
826 896
         * @param {*} [options] Override http request option.
827 897
         * @throws {RequiredError}
828 898
         */
829
        annotationAnnotationIdGet: async (
830
            annotationId: string,
831
            options: AxiosRequestConfig = {}
832
        ): Promise<RequestArgs> => {
899
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
833 900
            // 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
            );
901
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
902
            const localVarPath = `/annotation/{annotationId}`
903
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
839 904
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
840 905
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
841 906
            let baseOptions;
......
843 908
                baseOptions = configuration.baseOptions;
844 909
            }
845 910

  
846
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
911
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
847 912
            const localVarHeaderParameter = {} as any;
848 913
            const localVarQueryParameter = {} as any;
849 914

  
915

  
916
    
850 917
            setSearchParams(localVarUrlObj, localVarQueryParameter);
851
            let headersFromBaseOptions =
852
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
853
            localVarRequestOptions.headers = {
854
                ...localVarHeaderParameter,
855
                ...headersFromBaseOptions,
856
                ...options.headers,
857
            };
918
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
919
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
858 920

  
859 921
            return {
860 922
                url: toPathString(localVarUrlObj),
......
862 924
            };
863 925
        },
864 926
        /**
865
         *
866
         * @param {string} annotationId
867
         * @param {string} occurenceId
927
         * 
928
         * @param {string} annotationId 
929
         * @param {string} occurenceId 
868 930
         * @param {*} [options] Override http request option.
869 931
         * @throws {RequiredError}
870 932
         */
871
        annotationAnnotationIdOccurenceIdDelete: async (
872
            annotationId: string,
873
            occurenceId: string,
874
            options: AxiosRequestConfig = {}
875
        ): Promise<RequestArgs> => {
933
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
876 934
            // verify required parameter 'annotationId' is not null or undefined
877
            assertParamExists(
878
                'annotationAnnotationIdOccurenceIdDelete',
879
                'annotationId',
880
                annotationId
881
            );
935
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
882 936
            // verify required parameter 'occurenceId' is not null or undefined
883
            assertParamExists(
884
                'annotationAnnotationIdOccurenceIdDelete',
885
                'occurenceId',
886
                occurenceId
887
            );
937
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
888 938
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
889
                .replace(`{${'annotationId'}}`, encodeURIComponent(String(annotationId)))
890
                .replace(`{${'occurenceId'}}`, encodeURIComponent(String(occurenceId)));
939
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
940
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
891 941
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
892 942
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
893 943
            let baseOptions;
......
895 945
                baseOptions = configuration.baseOptions;
896 946
            }
897 947

  
898
            const localVarRequestOptions = {
899
                method: 'DELETE',
900
                ...baseOptions,
901
                ...options,
902
            };
948
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
903 949
            const localVarHeaderParameter = {} as any;
904 950
            const localVarQueryParameter = {} as any;
905 951

  
952

  
953
    
906 954
            setSearchParams(localVarUrlObj, localVarQueryParameter);
907
            let headersFromBaseOptions =
908
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
909
            localVarRequestOptions.headers = {
910
                ...localVarHeaderParameter,
911
                ...headersFromBaseOptions,
912
                ...options.headers,
913
            };
955
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
956
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
914 957

  
915 958
            return {
916 959
                url: toPathString(localVarUrlObj),
......
918 961
            };
919 962
        },
920 963
        /**
921
         *
922
         * @param {string} annotationId
923
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
964
         * 
965
         * @param {string} annotationId 
966
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
924 967
         * @param {*} [options] Override http request option.
925 968
         * @throws {RequiredError}
926 969
         */
927
        annotationAnnotationIdPost: async (
928
            annotationId: string,
929
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
930
            options: AxiosRequestConfig = {}
931
        ): Promise<RequestArgs> => {
970
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
932 971
            // 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
            );
972
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
973
            const localVarPath = `/annotation/{annotationId}`
974
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
938 975
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
939 976
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
940 977
            let baseOptions;
......
942 979
                baseOptions = configuration.baseOptions;
943 980
            }
944 981

  
945
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
982
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
946 983
            const localVarHeaderParameter = {} as any;
947 984
            const localVarQueryParameter = {} as any;
948 985

  
986

  
987
    
949 988
            localVarHeaderParameter['Content-Type'] = 'application/json';
950 989

  
951 990
            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
            );
991
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
992
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
993
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
964 994

  
965 995
            return {
966 996
                url: toPathString(localVarUrlObj),
......
968 998
            };
969 999
        },
970 1000
        /**
971
         *
972
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
1001
         * 
1002
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
973 1003
         * @param {*} [options] Override http request option.
974 1004
         * @throws {RequiredError}
975 1005
         */
976
        annotationsPost: async (
977
            annotationsAddRequest?: AnnotationsAddRequest,
978
            options: AxiosRequestConfig = {}
979
        ): Promise<RequestArgs> => {
1006
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
980 1007
            const localVarPath = `/annotations`;
981 1008
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
982 1009
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
......
985 1012
                baseOptions = configuration.baseOptions;
986 1013
            }
987 1014

  
988
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1015
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
989 1016
            const localVarHeaderParameter = {} as any;
990 1017
            const localVarQueryParameter = {} as any;
991 1018

  
1019

  
1020
    
992 1021
            localVarHeaderParameter['Content-Type'] = 'application/json';
993 1022

  
994 1023
            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
            );
1024
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1025
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1026
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
1007 1027

  
1008 1028
            return {
1009 1029
                url: toPathString(localVarUrlObj),
1010 1030
                options: localVarRequestOptions,
1011 1031
            };
1012 1032
        },
1013
    };
1033
    }
1014 1034
};
1015 1035

  
1016 1036
/**
1017 1037
 * AnnotationApi - functional programming interface
1018 1038
 * @export
1019 1039
 */
1020
export const AnnotationApiFp = function (configuration?: Configuration) {
1021
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration);
1040
export const AnnotationApiFp = function(configuration?: Configuration) {
1041
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
1022 1042
    return {
1023 1043
        /**
1024
         *
1025
         * @param {string} annotationId
1044
         * 
1045
         * @param {string} annotationId 
1026 1046
         * @param {*} [options] Override http request option.
1027 1047
         * @throws {RequiredError}
1028 1048
         */
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
            );
1049
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
1050
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
1051
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1046 1052
        },
1047 1053
        /**
1048
         *
1049
         * @param {string} annotationId
1050
         * @param {string} occurenceId
1054
         * 
1055
         * @param {string} annotationId 
1056
         * @param {string} occurenceId 
1051 1057
         * @param {*} [options] Override http request option.
1052 1058
         * @throws {RequiredError}
1053 1059
         */
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
            );
1060
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1061
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
1062
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1071 1063
        },
1072 1064
        /**
1073
         *
1074
         * @param {string} annotationId
1075
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1065
         * 
1066
         * @param {string} annotationId 
1067
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1076 1068
         * @param {*} [options] Override http request option.
1077 1069
         * @throws {RequiredError}
1078 1070
         */
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
            );
1071
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1072
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
1073
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1096 1074
        },
1097 1075
        /**
1098
         *
1099
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
1076
         * 
1077
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1100 1078
         * @param {*} [options] Override http request option.
1101 1079
         * @throws {RequiredError}
1102 1080
         */
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
            );
1081
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1082
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1083
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1117 1084
        },
1118
    };
... Rozdílový soubor je zkrácen, protože jeho délka přesahuje max. limit.

Také k dispozici: Unified diff