Projekt

Obecné

Profil

Stáhnout (46.1 KB) Statistiky
| Větev: | Tag: | Revize:
1 3e6b15a7 Lukáš Vlček
/* tslint:disable */
2
/* eslint-disable */
3
/**
4
 * AnnotationTool
5
 * KIV/ASWI ZČU Plzeň, 2022
6
 *
7
 * The version of the OpenAPI document: 0.1.1
8
 * 
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
    /**
570
     * 
571
     * @type {string}
572
     * @memberof TagInstanceInfo
573
     */
574
    'tagName'?: string | null;
575
    /**
576
     * 
577
     * @type {string}
578
     * @memberof TagInstanceInfo
579
     */
580
    'tagId'?: string;
581
    /**
582
     * 
583
     * @type {string}
584
     * @memberof TagInstanceInfo
585
     */
586
    'tagCategoryName'?: string | null;
587
    /**
588
     * 
589
     * @type {string}
590
     * @memberof TagInstanceInfo
591
     */
592
    'tagCategoryId'?: string;
593
    /**
594
     * 
595
     * @type {string}
596
     * @memberof TagInstanceInfo
597
     */
598
    'subTagName'?: string | null;
599
    /**
600
     * 
601
     * @type {string}
602
     * @memberof TagInstanceInfo
603
     */
604
    'subTagId'?: string | null;
605
    /**
606
     * 
607 4bc99591 Lukáš Vlček
     * @type {string}
608 3e6b15a7 Lukáš Vlček
     * @memberof TagInstanceInfo
609
     */
610 4bc99591 Lukáš Vlček
    'instance'?: string;
611 3e6b15a7 Lukáš Vlček
    /**
612
     * 
613
     * @type {number}
614
     * @memberof TagInstanceInfo
615
     */
616
    'position'?: number;
617
    /**
618
     * 
619
     * @type {number}
620
     * @memberof TagInstanceInfo
621
     */
622
    'length'?: number;
623
    /**
624
     * 
625
     * @type {string}
626
     * @memberof TagInstanceInfo
627
     */
628
    'note'?: string | null;
629
}
630
/**
631
 * 
632
 * @export
633
 * @interface TagTreeResponse
634
 */
635
export interface TagTreeResponse {
636
    /**
637
     * 
638
     * @type {Array<TagCategoryInfo>}
639
     * @memberof TagTreeResponse
640
     */
641
    'tagCategories'?: Array<TagCategoryInfo> | null;
642
}
643
/**
644
 * 
645
 * @export
646
 * @interface User
647
 */
648
export interface User {
649
    /**
650
     * 
651
     * @type {string}
652
     * @memberof User
653
     */
654
    'id'?: string;
655
    /**
656
     * 
657
     * @type {string}
658
     * @memberof User
659
     */
660
    'username'?: string | null;
661
    /**
662
     * 
663
     * @type {string}
664
     * @memberof User
665
     */
666
    'name'?: string | null;
667
    /**
668
     * 
669
     * @type {string}
670
     * @memberof User
671
     */
672
    'surname'?: string | null;
673
    /**
674
     * 
675
     * @type {ERole}
676
     * @memberof User
677
     */
678
    'role'?: ERole;
679
}
680
/**
681
 * 
682
 * @export
683
 * @interface UserInfo
684
 */
685
export interface UserInfo {
686
    /**
687
     * 
688
     * @type {string}
689
     * @memberof UserInfo
690
     */
691
    'id'?: string;
692
    /**
693
     * 
694
     * @type {string}
695
     * @memberof UserInfo
696
     */
697
    'username'?: string | null;
698
    /**
699
     * 
700
     * @type {string}
701
     * @memberof UserInfo
702
     */
703
    'name'?: string | null;
704
    /**
705
     * 
706
     * @type {string}
707
     * @memberof UserInfo
708
     */
709
    'surname'?: string | null;
710
}
711
/**
712
 * 
713
 * @export
714
 * @interface UserList
715
 */
716
export interface UserList {
717
    /**
718
     * 
719
     * @type {Array<UserInfo>}
720
     * @memberof UserList
721
     */
722
    'users'?: Array<UserInfo> | null;
723
}
724
725
/**
726
 * AnnotationApi - axios parameter creator
727
 * @export
728
 */
729
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
730
    return {
731
        /**
732
         * 
733 dd747fc5 Lukáš Vlček
         * @param {string} annotationId 
734 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
735
         * @throws {RequiredError}
736
         */
737 dd747fc5 Lukáš Vlček
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
738
            // verify required parameter 'annotationId' is not null or undefined
739
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
740
            const localVarPath = `/annotation/{annotationId}`
741
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
742 3e6b15a7 Lukáš Vlček
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
743
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
744
            let baseOptions;
745
            if (configuration) {
746
                baseOptions = configuration.baseOptions;
747
            }
748
749
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
750
            const localVarHeaderParameter = {} as any;
751
            const localVarQueryParameter = {} as any;
752
753
754
    
755
            setSearchParams(localVarUrlObj, localVarQueryParameter);
756
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
757
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
758
759
            return {
760
                url: toPathString(localVarUrlObj),
761
                options: localVarRequestOptions,
762
            };
763
        },
764 4bc99591 Lukáš Vlček
        /**
765
         * 
766
         * @param {string} annotationId 
767
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
768
         * @param {*} [options] Override http request option.
769
         * @throws {RequiredError}
770
         */
771
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
772
            // verify required parameter 'annotationId' is not null or undefined
773
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
774
            const localVarPath = `/annotation/{annotationId}`
775
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
776
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
777
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
778
            let baseOptions;
779
            if (configuration) {
780
                baseOptions = configuration.baseOptions;
781
            }
782
783
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
784
            const localVarHeaderParameter = {} as any;
785
            const localVarQueryParameter = {} as any;
786
787
788
    
789
            localVarHeaderParameter['Content-Type'] = 'application/json';
790
791
            setSearchParams(localVarUrlObj, localVarQueryParameter);
792
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
793
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
794
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
795
796
            return {
797
                url: toPathString(localVarUrlObj),
798
                options: localVarRequestOptions,
799
            };
800
        },
801 3e6b15a7 Lukáš Vlček
        /**
802
         * 
803
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
804
         * @param {*} [options] Override http request option.
805
         * @throws {RequiredError}
806
         */
807
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
808
            const localVarPath = `/annotations`;
809
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
810
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
811
            let baseOptions;
812
            if (configuration) {
813
                baseOptions = configuration.baseOptions;
814
            }
815
816
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
817
            const localVarHeaderParameter = {} as any;
818
            const localVarQueryParameter = {} as any;
819
820
821
    
822
            localVarHeaderParameter['Content-Type'] = 'application/json';
823
824
            setSearchParams(localVarUrlObj, localVarQueryParameter);
825
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
826
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
827
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
828
829
            return {
830
                url: toPathString(localVarUrlObj),
831
                options: localVarRequestOptions,
832
            };
833
        },
834
    }
835
};
836
837
/**
838
 * AnnotationApi - functional programming interface
839
 * @export
840
 */
841
export const AnnotationApiFp = function(configuration?: Configuration) {
842
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
843
    return {
844
        /**
845
         * 
846 dd747fc5 Lukáš Vlček
         * @param {string} annotationId 
847 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
848
         * @throws {RequiredError}
849
         */
850 dd747fc5 Lukáš Vlček
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
851
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
852 3e6b15a7 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
853
        },
854 4bc99591 Lukáš Vlček
        /**
855
         * 
856
         * @param {string} annotationId 
857
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
858
         * @param {*} [options] Override http request option.
859
         * @throws {RequiredError}
860
         */
861
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
862
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
863
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
864
        },
865 3e6b15a7 Lukáš Vlček
        /**
866
         * 
867
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
868
         * @param {*} [options] Override http request option.
869
         * @throws {RequiredError}
870
         */
871
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
872
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
873
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
874
        },
875
    }
876
};
877
878
/**
879
 * AnnotationApi - factory interface
880
 * @export
881
 */
882
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
883
    const localVarFp = AnnotationApiFp(configuration)
884
    return {
885
        /**
886
         * 
887 dd747fc5 Lukáš Vlček
         * @param {string} annotationId 
888 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
889
         * @throws {RequiredError}
890
         */
891 dd747fc5 Lukáš Vlček
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
892
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
893 3e6b15a7 Lukáš Vlček
        },
894 4bc99591 Lukáš Vlček
        /**
895
         * 
896
         * @param {string} annotationId 
897
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
898
         * @param {*} [options] Override http request option.
899
         * @throws {RequiredError}
900
         */
901
        annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
902
            return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
903
        },
904 3e6b15a7 Lukáš Vlček
        /**
905
         * 
906
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
907
         * @param {*} [options] Override http request option.
908
         * @throws {RequiredError}
909
         */
910
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
911
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
912
        },
913
    };
914
};
915
916
/**
917
 * AnnotationApi - object-oriented interface
918
 * @export
919
 * @class AnnotationApi
920
 * @extends {BaseAPI}
921
 */
922
export class AnnotationApi extends BaseAPI {
923
    /**
924
     * 
925 dd747fc5 Lukáš Vlček
     * @param {string} annotationId 
926 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
927
     * @throws {RequiredError}
928
     * @memberof AnnotationApi
929
     */
930 dd747fc5 Lukáš Vlček
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
931
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
932 3e6b15a7 Lukáš Vlček
    }
933
934 4bc99591 Lukáš Vlček
    /**
935
     * 
936
     * @param {string} annotationId 
937
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
938
     * @param {*} [options] Override http request option.
939
     * @throws {RequiredError}
940
     * @memberof AnnotationApi
941
     */
942
    public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
943
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
944
    }
945
946 3e6b15a7 Lukáš Vlček
    /**
947
     * 
948
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
949
     * @param {*} [options] Override http request option.
950
     * @throws {RequiredError}
951
     * @memberof AnnotationApi
952
     */
953
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
954
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
955
    }
956
}
957
958
959
/**
960
 * AuthApi - axios parameter creator
961
 * @export
962
 */
963
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
964
    return {
965
        /**
966
         * 
967
         * @param {LoginRequest} [loginRequest] 
968
         * @param {*} [options] Override http request option.
969
         * @throws {RequiredError}
970
         */
971
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
972
            const localVarPath = `/auth/login`;
973
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
974
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
975
            let baseOptions;
976
            if (configuration) {
977
                baseOptions = configuration.baseOptions;
978
            }
979
980
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
981
            const localVarHeaderParameter = {} as any;
982
            const localVarQueryParameter = {} as any;
983
984
985
    
986
            localVarHeaderParameter['Content-Type'] = 'application/json';
987
988
            setSearchParams(localVarUrlObj, localVarQueryParameter);
989
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
990
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
991
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
992
993
            return {
994
                url: toPathString(localVarUrlObj),
995
                options: localVarRequestOptions,
996
            };
997
        },
998
        /**
999
         * 
1000
         * @param {*} [options] Override http request option.
1001
         * @throws {RequiredError}
1002
         */
1003
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1004
            const localVarPath = `/auth/test/aa`;
1005
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1006
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1007
            let baseOptions;
1008
            if (configuration) {
1009
                baseOptions = configuration.baseOptions;
1010
            }
1011
1012
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1013
            const localVarHeaderParameter = {} as any;
1014
            const localVarQueryParameter = {} as any;
1015
1016
1017
    
1018
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1019
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1020
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1021
1022
            return {
1023
                url: toPathString(localVarUrlObj),
1024
                options: localVarRequestOptions,
1025
            };
1026
        },
1027
        /**
1028
         * 
1029
         * @param {*} [options] Override http request option.
1030
         * @throws {RequiredError}
1031
         */
1032
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1033
            const localVarPath = `/auth/test`;
1034
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1035
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1036
            let baseOptions;
1037
            if (configuration) {
1038
                baseOptions = configuration.baseOptions;
1039
            }
1040
1041
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1042
            const localVarHeaderParameter = {} as any;
1043
            const localVarQueryParameter = {} as any;
1044
1045
1046
    
1047
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1048
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1049
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1050
1051
            return {
1052
                url: toPathString(localVarUrlObj),
1053
                options: localVarRequestOptions,
1054
            };
1055
        },
1056
    }
1057
};
1058
1059
/**
1060
 * AuthApi - functional programming interface
1061
 * @export
1062
 */
1063
export const AuthApiFp = function(configuration?: Configuration) {
1064
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1065
    return {
1066
        /**
1067
         * 
1068
         * @param {LoginRequest} [loginRequest] 
1069
         * @param {*} [options] Override http request option.
1070
         * @throws {RequiredError}
1071
         */
1072
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
1073
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
1074
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1075
        },
1076
        /**
1077
         * 
1078
         * @param {*} [options] Override http request option.
1079
         * @throws {RequiredError}
1080
         */
1081
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1082
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
1083
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1084
        },
1085
        /**
1086
         * 
1087
         * @param {*} [options] Override http request option.
1088
         * @throws {RequiredError}
1089
         */
1090
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1091
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
1092
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1093
        },
1094
    }
1095
};
1096
1097
/**
1098
 * AuthApi - factory interface
1099
 * @export
1100
 */
1101
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1102
    const localVarFp = AuthApiFp(configuration)
1103
    return {
1104
        /**
1105
         * 
1106
         * @param {LoginRequest} [loginRequest] 
1107
         * @param {*} [options] Override http request option.
1108
         * @throws {RequiredError}
1109
         */
1110
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
1111
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
1112
        },
1113
        /**
1114
         * 
1115
         * @param {*} [options] Override http request option.
1116
         * @throws {RequiredError}
1117
         */
1118
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1119
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
1120
        },
1121
        /**
1122
         * 
1123
         * @param {*} [options] Override http request option.
1124
         * @throws {RequiredError}
1125
         */
1126
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1127
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
1128
        },
1129
    };
1130
};
1131
1132
/**
1133
 * AuthApi - object-oriented interface
1134
 * @export
1135
 * @class AuthApi
1136
 * @extends {BaseAPI}
1137
 */
1138
export class AuthApi extends BaseAPI {
1139
    /**
1140
     * 
1141
     * @param {LoginRequest} [loginRequest] 
1142
     * @param {*} [options] Override http request option.
1143
     * @throws {RequiredError}
1144
     * @memberof AuthApi
1145
     */
1146
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1147
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
1148
    }
1149
1150
    /**
1151
     * 
1152
     * @param {*} [options] Override http request option.
1153
     * @throws {RequiredError}
1154
     * @memberof AuthApi
1155
     */
1156
    public authTestAaGet(options?: AxiosRequestConfig) {
1157
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1158
    }
1159
1160
    /**
1161
     * 
1162
     * @param {*} [options] Override http request option.
1163
     * @throws {RequiredError}
1164
     * @memberof AuthApi
1165
     */
1166
    public authTestGet(options?: AxiosRequestConfig) {
1167
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1168
    }
1169
}
1170
1171
1172
/**
1173
 * DocumentApi - axios parameter creator
1174
 * @export
1175
 */
1176
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1177
    return {
1178
        /**
1179
         * 
1180 dd747fc5 Lukáš Vlček
         * @param {number} [pageIndex] 
1181
         * @param {number} [pageSize] 
1182 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1183
         * @throws {RequiredError}
1184
         */
1185 dd747fc5 Lukáš Vlček
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1186 3e6b15a7 Lukáš Vlček
            const localVarPath = `/documents`;
1187
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1188
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1189
            let baseOptions;
1190
            if (configuration) {
1191
                baseOptions = configuration.baseOptions;
1192
            }
1193
1194
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1195
            const localVarHeaderParameter = {} as any;
1196
            const localVarQueryParameter = {} as any;
1197
1198 dd747fc5 Lukáš Vlček
            if (pageIndex !== undefined) {
1199
                localVarQueryParameter['pageIndex'] = pageIndex;
1200
            }
1201 3e6b15a7 Lukáš Vlček
1202 dd747fc5 Lukáš Vlček
            if (pageSize !== undefined) {
1203
                localVarQueryParameter['pageSize'] = pageSize;
1204
            }
1205 3e6b15a7 Lukáš Vlček
1206 dd747fc5 Lukáš Vlček
1207
    
1208 3e6b15a7 Lukáš Vlček
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1209
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1210
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1211
1212
            return {
1213
                url: toPathString(localVarUrlObj),
1214
                options: localVarRequestOptions,
1215
            };
1216
        },
1217
        /**
1218
         * 
1219
         * @param {DocumentAddRequest} [documentAddRequest] 
1220
         * @param {*} [options] Override http request option.
1221
         * @throws {RequiredError}
1222
         */
1223
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1224
            const localVarPath = `/documents`;
1225
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1226
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1227
            let baseOptions;
1228
            if (configuration) {
1229
                baseOptions = configuration.baseOptions;
1230
            }
1231
1232
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1233
            const localVarHeaderParameter = {} as any;
1234
            const localVarQueryParameter = {} as any;
1235
1236
1237
    
1238
            localVarHeaderParameter['Content-Type'] = 'application/json';
1239
1240
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1241
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1242
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1243
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
1244
1245
            return {
1246
                url: toPathString(localVarUrlObj),
1247
                options: localVarRequestOptions,
1248
            };
1249
        },
1250
    }
1251
};
1252
1253
/**
1254
 * DocumentApi - functional programming interface
1255
 * @export
1256
 */
1257
export const DocumentApiFp = function(configuration?: Configuration) {
1258
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
1259
    return {
1260
        /**
1261
         * 
1262 dd747fc5 Lukáš Vlček
         * @param {number} [pageIndex] 
1263
         * @param {number} [pageSize] 
1264 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1265
         * @throws {RequiredError}
1266
         */
1267 dd747fc5 Lukáš Vlček
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
1268
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
1269 3e6b15a7 Lukáš Vlček
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1270
        },
1271
        /**
1272
         * 
1273
         * @param {DocumentAddRequest} [documentAddRequest] 
1274
         * @param {*} [options] Override http request option.
1275
         * @throws {RequiredError}
1276
         */
1277
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1278
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
1279
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1280
        },
1281
    }
1282
};
1283
1284
/**
1285
 * DocumentApi - factory interface
1286
 * @export
1287
 */
1288
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1289
    const localVarFp = DocumentApiFp(configuration)
1290
    return {
1291
        /**
1292
         * 
1293 dd747fc5 Lukáš Vlček
         * @param {number} [pageIndex] 
1294
         * @param {number} [pageSize] 
1295 3e6b15a7 Lukáš Vlček
         * @param {*} [options] Override http request option.
1296
         * @throws {RequiredError}
1297
         */
1298 dd747fc5 Lukáš Vlček
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
1299
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
1300 3e6b15a7 Lukáš Vlček
        },
1301
        /**
1302
         * 
1303
         * @param {DocumentAddRequest} [documentAddRequest] 
1304
         * @param {*} [options] Override http request option.
1305
         * @throws {RequiredError}
1306
         */
1307
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
1308
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
1309
        },
1310
    };
1311
};
1312
1313
/**
1314
 * DocumentApi - object-oriented interface
1315
 * @export
1316
 * @class DocumentApi
1317
 * @extends {BaseAPI}
1318
 */
1319
export class DocumentApi extends BaseAPI {
1320
    /**
1321
     * 
1322 dd747fc5 Lukáš Vlček
     * @param {number} [pageIndex] 
1323
     * @param {number} [pageSize] 
1324 3e6b15a7 Lukáš Vlček
     * @param {*} [options] Override http request option.
1325
     * @throws {RequiredError}
1326
     * @memberof DocumentApi
1327
     */
1328 dd747fc5 Lukáš Vlček
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
1329
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
1330 3e6b15a7 Lukáš Vlček
    }
1331
1332
    /**
1333
     * 
1334
     * @param {DocumentAddRequest} [documentAddRequest] 
1335
     * @param {*} [options] Override http request option.
1336
     * @throws {RequiredError}
1337
     * @memberof DocumentApi
1338
     */
1339
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
1340
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
1341
    }
1342
}
1343
1344
1345
/**
1346
 * TagApi - axios parameter creator
1347
 * @export
1348
 */
1349
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
1350
    return {
1351
        /**
1352
         * 
1353
         * @param {*} [options] Override http request option.
1354
         * @throws {RequiredError}
1355
         */
1356
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1357
            const localVarPath = `/tags`;
1358
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1359
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1360
            let baseOptions;
1361
            if (configuration) {
1362
                baseOptions = configuration.baseOptions;
1363
            }
1364
1365
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1366
            const localVarHeaderParameter = {} as any;
1367
            const localVarQueryParameter = {} as any;
1368
1369
1370
    
1371
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1372
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1373
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1374
1375
            return {
1376
                url: toPathString(localVarUrlObj),
1377
                options: localVarRequestOptions,
1378
            };
1379
        },
1380
    }
1381
};
1382
1383
/**
1384
 * TagApi - functional programming interface
1385
 * @export
1386
 */
1387
export const TagApiFp = function(configuration?: Configuration) {
1388
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
1389
    return {
1390
        /**
1391
         * 
1392
         * @param {*} [options] Override http request option.
1393
         * @throws {RequiredError}
1394
         */
1395
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
1396
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
1397
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1398
        },
1399
    }
1400
};
1401
1402
/**
1403
 * TagApi - factory interface
1404
 * @export
1405
 */
1406
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1407
    const localVarFp = TagApiFp(configuration)
1408
    return {
1409
        /**
1410
         * 
1411
         * @param {*} [options] Override http request option.
1412
         * @throws {RequiredError}
1413
         */
1414
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
1415
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
1416
        },
1417
    };
1418
};
1419
1420
/**
1421
 * TagApi - object-oriented interface
1422
 * @export
1423
 * @class TagApi
1424
 * @extends {BaseAPI}
1425
 */
1426
export class TagApi extends BaseAPI {
1427
    /**
1428
     * 
1429
     * @param {*} [options] Override http request option.
1430
     * @throws {RequiredError}
1431
     * @memberof TagApi
1432
     */
1433
    public tagsGet(options?: AxiosRequestConfig) {
1434
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
1435
    }
1436
}
1437
1438
1439
/**
1440
 * UserApi - axios parameter creator
1441
 * @export
1442
 */
1443
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
1444
    return {
1445
        /**
1446
         * 
1447
         * @param {*} [options] Override http request option.
1448
         * @throws {RequiredError}
1449
         */
1450
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1451
            const localVarPath = `/user/annotations`;
1452
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1453
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1454
            let baseOptions;
1455
            if (configuration) {
1456
                baseOptions = configuration.baseOptions;
1457
            }
1458
1459
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1460
            const localVarHeaderParameter = {} as any;
1461
            const localVarQueryParameter = {} as any;
1462
1463
1464
    
1465
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1466
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1467
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1468
1469
            return {
1470
                url: toPathString(localVarUrlObj),
1471
                options: localVarRequestOptions,
1472
            };
1473
        },
1474
        /**
1475
         * 
1476
         * @param {*} [options] Override http request option.
1477
         * @throws {RequiredError}
1478
         */
1479
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1480
            const localVarPath = `/users`;
1481
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1482
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1483
            let baseOptions;
1484
            if (configuration) {
1485
                baseOptions = configuration.baseOptions;
1486
            }
1487
1488
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1489
            const localVarHeaderParameter = {} as any;
1490
            const localVarQueryParameter = {} as any;
1491
1492
1493
    
1494
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1495
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1496
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1497
1498
            return {
1499
                url: toPathString(localVarUrlObj),
1500
                options: localVarRequestOptions,
1501
            };
1502
        },
1503
    }
1504
};
1505
1506
/**
1507
 * UserApi - functional programming interface
1508
 * @export
1509
 */
1510
export const UserApiFp = function(configuration?: Configuration) {
1511
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
1512
    return {
1513
        /**
1514
         * 
1515
         * @param {*} [options] Override http request option.
1516
         * @throws {RequiredError}
1517
         */
1518
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1519
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
1520
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1521
        },
1522
        /**
1523
         * 
1524
         * @param {*} [options] Override http request option.
1525
         * @throws {RequiredError}
1526
         */
1527
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
1528
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
1529
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1530
        },
1531
    }
1532
};
1533
1534
/**
1535
 * UserApi - factory interface
1536
 * @export
1537
 */
1538
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1539
    const localVarFp = UserApiFp(configuration)
1540
    return {
1541
        /**
1542
         * 
1543
         * @param {*} [options] Override http request option.
1544
         * @throws {RequiredError}
1545
         */
1546
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
1547
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
1548
        },
1549
        /**
1550
         * 
1551
         * @param {*} [options] Override http request option.
1552
         * @throws {RequiredError}
1553
         */
1554
        usersGet(options?: any): AxiosPromise<UserList> {
1555
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
1556
        },
1557
    };
1558
};
1559
1560
/**
1561
 * UserApi - object-oriented interface
1562
 * @export
1563
 * @class UserApi
1564
 * @extends {BaseAPI}
1565
 */
1566
export class UserApi extends BaseAPI {
1567
    /**
1568
     * 
1569
     * @param {*} [options] Override http request option.
1570
     * @throws {RequiredError}
1571
     * @memberof UserApi
1572
     */
1573
    public userAnnotationsGet(options?: AxiosRequestConfig) {
1574
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
1575
    }
1576
1577
    /**
1578
     * 
1579
     * @param {*} [options] Override http request option.
1580
     * @throws {RequiredError}
1581
     * @memberof UserApi
1582
     */
1583
    public usersGet(options?: AxiosRequestConfig) {
1584
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
1585
    }
1586
}
1587