Projekt

Obecné

Profil

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