Projekt

Obecné

Profil

Stáhnout (41.5 KB) Statistiky
| Větev: | Tag: | Revize:
1
/* 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
    '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
    /**
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
/**
80
 * 
81
 * @export
82
 * @interface AnnotationListInfo
83
 */
84
export interface AnnotationListInfo {
85
    /**
86
     * 
87
     * @type {string}
88
     * @memberof AnnotationListInfo
89
     */
90
    'documentName'?: string | null;
91
    /**
92
     * 
93
     * @type {EState}
94
     * @memberof AnnotationListInfo
95
     */
96
    'state'?: EState;
97
    /**
98
     * 
99
     * @type {string}
100
     * @memberof AnnotationListInfo
101
     */
102
    'annotationId'?: string;
103
}
104
/**
105
 * 
106
 * @export
107
 * @interface AnnotationListResponse
108
 */
109
export interface AnnotationListResponse {
110
    /**
111
     * 
112
     * @type {Array<AnnotationListInfo>}
113
     * @memberof AnnotationListResponse
114
     */
115
    'annotations'?: Array<AnnotationListInfo> | null;
116
}
117
/**
118
 * 
119
 * @export
120
 * @interface AnnotationsAddRequest
121
 */
122
export interface AnnotationsAddRequest {
123
    /**
124
     * 
125
     * @type {Array<string>}
126
     * @memberof AnnotationsAddRequest
127
     */
128
    'userIdList'?: Array<string> | null;
129
    /**
130
     * 
131
     * @type {Array<string>}
132
     * @memberof AnnotationsAddRequest
133
     */
134
    'documentIdList'?: Array<string> | null;
135
}
136
/**
137
 * 
138
 * @export
139
 * @interface ClientInfo
140
 */
141
export interface ClientInfo {
142
    /**
143
     * 
144
     * @type {boolean}
145
     * @memberof ClientInfo
146
     */
147
    'isLogged'?: boolean;
148
    /**
149
     * 
150
     * @type {User}
151
     * @memberof ClientInfo
152
     */
153
    'loggedUser'?: User;
154
    /**
155
     * 
156
     * @type {string}
157
     * @memberof ClientInfo
158
     */
159
    'ip'?: string | null;
160
}
161
/**
162
 * 
163
 * @export
164
 * @interface DocumentAddInfo
165
 */
166
export interface DocumentAddInfo {
167
    /**
168
     * 
169
     * @type {string}
170
     * @memberof DocumentAddInfo
171
     */
172
    'name'?: string | null;
173
    /**
174
     * 
175
     * @type {EAddDocumentFormat}
176
     * @memberof DocumentAddInfo
177
     */
178
    'format'?: EAddDocumentFormat;
179
    /**
180
     * 
181
     * @type {string}
182
     * @memberof DocumentAddInfo
183
     */
184
    'content'?: string | null;
185
}
186
/**
187
 * 
188
 * @export
189
 * @interface DocumentAddRequest
190
 */
191
export interface DocumentAddRequest {
192
    /**
193
     * 
194
     * @type {Array<DocumentAddInfo>}
195
     * @memberof DocumentAddRequest
196
     */
197
    'documents'?: Array<DocumentAddInfo> | null;
198
}
199
/**
200
 * 
201
 * @export
202
 * @interface DocumentListInfo
203
 */
204
export interface DocumentListInfo {
205
    /**
206
     * 
207
     * @type {string}
208
     * @memberof DocumentListInfo
209
     */
210
    'id'?: string;
211
    /**
212
     * 
213
     * @type {string}
214
     * @memberof DocumentListInfo
215
     */
216
    'name'?: string | null;
217
    /**
218
     * 
219
     * @type {number}
220
     * @memberof DocumentListInfo
221
     */
222
    'length'?: number;
223
    /**
224
     * 
225
     * @type {number}
226
     * @memberof DocumentListInfo
227
     */
228
    'requiredAnnotations'?: number;
229
    /**
230
     * 
231
     * @type {Array<UserInfo>}
232
     * @memberof DocumentListInfo
233
     */
234
    'annotatingUsers'?: Array<UserInfo> | null;
235
}
236
/**
237
 * 
238
 * @export
239
 * @interface DocumentListResponse
240
 */
241
export interface DocumentListResponse {
242
    /**
243
     * 
244
     * @type {number}
245
     * @memberof DocumentListResponse
246
     */
247
    'totalCount'?: number;
248
    /**
249
     * 
250
     * @type {number}
251
     * @memberof DocumentListResponse
252
     */
253
    'pageCount'?: number;
254
    /**
255
     * 
256
     * @type {number}
257
     * @memberof DocumentListResponse
258
     */
259
    'pageIndex'?: number;
260
    /**
261
     * 
262
     * @type {Array<DocumentListInfo>}
263
     * @memberof DocumentListResponse
264
     */
265
    'documents'?: Array<DocumentListInfo> | null;
266
}
267
/**
268
 * 
269
 * @export
270
 * @enum {string}
271
 */
272

    
273
export const EAddDocumentFormat = {
274
    Zip: 'ZIP',
275
    Textfile: 'TEXTFILE'
276
} as const;
277

    
278
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
279

    
280

    
281
/**
282
 * 
283
 * @export
284
 * @enum {string}
285
 */
286

    
287
export const EDocumentType = {
288
    Html: 'HTML',
289
    Text: 'TEXT'
290
} as const;
291

    
292
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
293

    
294

    
295
/**
296
 * 
297
 * @export
298
 * @enum {string}
299
 */
300

    
301
export const ERole = {
302
    Annotator: 'ANNOTATOR',
303
    Administrator: 'ADMINISTRATOR'
304
} as const;
305

    
306
export type ERole = typeof ERole[keyof typeof ERole];
307

    
308

    
309
/**
310
 * 
311
 * @export
312
 * @enum {string}
313
 */
314

    
315
export const EState = {
316
    Done: 'DONE',
317
    InProgress: 'IN_PROGRESS',
318
    New: 'NEW'
319
} as const;
320

    
321
export type EState = typeof EState[keyof typeof EState];
322

    
323

    
324
/**
325
 * 
326
 * @export
327
 * @interface LoginRequest
328
 */
329
export interface LoginRequest {
330
    /**
331
     * 
332
     * @type {string}
333
     * @memberof LoginRequest
334
     */
335
    'username'?: string | null;
336
    /**
337
     * 
338
     * @type {string}
339
     * @memberof LoginRequest
340
     */
341
    'password'?: string | null;
342
}
343
/**
344
 * 
345
 * @export
346
 * @interface LoginResponse
347
 */
348
export interface LoginResponse {
349
    /**
350
     * 
351
     * @type {boolean}
352
     * @memberof LoginResponse
353
     */
354
    'ok'?: boolean;
355
    /**
356
     * 
357
     * @type {string}
358
     * @memberof LoginResponse
359
     */
360
    'token'?: string | null;
361
    /**
362
     * 
363
     * @type {string}
364
     * @memberof LoginResponse
365
     */
366
    'expiration'?: string;
367
    /**
368
     * 
369
     * @type {ERole}
370
     * @memberof LoginResponse
371
     */
372
    'role'?: ERole;
373
}
374
/**
375
 * 
376
 * @export
377
 * @interface ProblemDetails
378
 */
379
export interface ProblemDetails {
380
    [key: string]: any | any;
381

    
382
    /**
383
     * 
384
     * @type {string}
385
     * @memberof ProblemDetails
386
     */
387
    'type'?: string | null;
388
    /**
389
     * 
390
     * @type {string}
391
     * @memberof ProblemDetails
392
     */
393
    'title'?: string | null;
394
    /**
395
     * 
396
     * @type {number}
397
     * @memberof ProblemDetails
398
     */
399
    'status'?: number | null;
400
    /**
401
     * 
402
     * @type {string}
403
     * @memberof ProblemDetails
404
     */
405
    'detail'?: string | null;
406
    /**
407
     * 
408
     * @type {string}
409
     * @memberof ProblemDetails
410
     */
411
    'instance'?: string | null;
412
}
413
/**
414
 * 
415
 * @export
416
 * @interface SubTagInfo
417
 */
418
export interface SubTagInfo {
419
    /**
420
     * 
421
     * @type {string}
422
     * @memberof SubTagInfo
423
     */
424
    'id'?: string;
425
    /**
426
     * 
427
     * @type {string}
428
     * @memberof SubTagInfo
429
     */
430
    'name'?: string | null;
431
    /**
432
     * 
433
     * @type {string}
434
     * @memberof SubTagInfo
435
     */
436
    'description'?: string | null;
437
}
438
/**
439
 * 
440
 * @export
441
 * @interface TagCategoryInfo
442
 */
443
export interface TagCategoryInfo {
444
    /**
445
     * 
446
     * @type {string}
447
     * @memberof TagCategoryInfo
448
     */
449
    'id'?: string;
450
    /**
451
     * 
452
     * @type {string}
453
     * @memberof TagCategoryInfo
454
     */
455
    'name'?: string | null;
456
    /**
457
     * 
458
     * @type {string}
459
     * @memberof TagCategoryInfo
460
     */
461
    'description'?: string | null;
462
    /**
463
     * 
464
     * @type {string}
465
     * @memberof TagCategoryInfo
466
     */
467
    'color'?: string | null;
468
    /**
469
     * 
470
     * @type {Array<TagInfo>}
471
     * @memberof TagCategoryInfo
472
     */
473
    'tags'?: Array<TagInfo> | null;
474
}
475
/**
476
 * 
477
 * @export
478
 * @interface TagInfo
479
 */
480
export interface TagInfo {
481
    /**
482
     * 
483
     * @type {string}
484
     * @memberof TagInfo
485
     */
486
    'id'?: string;
487
    /**
488
     * 
489
     * @type {string}
490
     * @memberof TagInfo
491
     */
492
    'name'?: string | null;
493
    /**
494
     * 
495
     * @type {string}
496
     * @memberof TagInfo
497
     */
498
    'description'?: string | null;
499
    /**
500
     * 
501
     * @type {string}
502
     * @memberof TagInfo
503
     */
504
    'color'?: string | null;
505
    /**
506
     * 
507
     * @type {Array<SubTagInfo>}
508
     * @memberof TagInfo
509
     */
510
    'subTags'?: Array<SubTagInfo> | null;
511
}
512
/**
513
 * 
514
 * @export
515
 * @interface TagInstanceInfo
516
 */
517
export interface TagInstanceInfo {
518
    /**
519
     * 
520
     * @type {string}
521
     * @memberof TagInstanceInfo
522
     */
523
    'tagName'?: string | null;
524
    /**
525
     * 
526
     * @type {string}
527
     * @memberof TagInstanceInfo
528
     */
529
    'tagId'?: string;
530
    /**
531
     * 
532
     * @type {string}
533
     * @memberof TagInstanceInfo
534
     */
535
    'tagCategoryName'?: string | null;
536
    /**
537
     * 
538
     * @type {string}
539
     * @memberof TagInstanceInfo
540
     */
541
    'tagCategoryId'?: string;
542
    /**
543
     * 
544
     * @type {string}
545
     * @memberof TagInstanceInfo
546
     */
547
    'subTagName'?: string | null;
548
    /**
549
     * 
550
     * @type {string}
551
     * @memberof TagInstanceInfo
552
     */
553
    'subTagId'?: string | null;
554
    /**
555
     * 
556
     * @type {number}
557
     * @memberof TagInstanceInfo
558
     */
559
    'instance'?: number;
560
    /**
561
     * 
562
     * @type {number}
563
     * @memberof TagInstanceInfo
564
     */
565
    'position'?: number;
566
    /**
567
     * 
568
     * @type {number}
569
     * @memberof TagInstanceInfo
570
     */
571
    'length'?: number;
572
    /**
573
     * 
574
     * @type {string}
575
     * @memberof TagInstanceInfo
576
     */
577
    'note'?: string | null;
578
}
579
/**
580
 * 
581
 * @export
582
 * @interface TagTreeResponse
583
 */
584
export interface TagTreeResponse {
585
    /**
586
     * 
587
     * @type {Array<TagCategoryInfo>}
588
     * @memberof TagTreeResponse
589
     */
590
    'tagCategories'?: Array<TagCategoryInfo> | null;
591
}
592
/**
593
 * 
594
 * @export
595
 * @interface User
596
 */
597
export interface User {
598
    /**
599
     * 
600
     * @type {string}
601
     * @memberof User
602
     */
603
    'id'?: string;
604
    /**
605
     * 
606
     * @type {string}
607
     * @memberof User
608
     */
609
    'username'?: string | null;
610
    /**
611
     * 
612
     * @type {string}
613
     * @memberof User
614
     */
615
    'name'?: string | null;
616
    /**
617
     * 
618
     * @type {string}
619
     * @memberof User
620
     */
621
    'surname'?: string | null;
622
    /**
623
     * 
624
     * @type {ERole}
625
     * @memberof User
626
     */
627
    'role'?: ERole;
628
}
629
/**
630
 * 
631
 * @export
632
 * @interface UserInfo
633
 */
634
export interface UserInfo {
635
    /**
636
     * 
637
     * @type {string}
638
     * @memberof UserInfo
639
     */
640
    'id'?: string;
641
    /**
642
     * 
643
     * @type {string}
644
     * @memberof UserInfo
645
     */
646
    'username'?: string | null;
647
    /**
648
     * 
649
     * @type {string}
650
     * @memberof UserInfo
651
     */
652
    'name'?: string | null;
653
    /**
654
     * 
655
     * @type {string}
656
     * @memberof UserInfo
657
     */
658
    'surname'?: string | null;
659
}
660
/**
661
 * 
662
 * @export
663
 * @interface UserList
664
 */
665
export interface UserList {
666
    /**
667
     * 
668
     * @type {Array<UserInfo>}
669
     * @memberof UserList
670
     */
671
    'users'?: Array<UserInfo> | null;
672
}
673

    
674
/**
675
 * AnnotationApi - axios parameter creator
676
 * @export
677
 */
678
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
679
    return {
680
        /**
681
         * 
682
         * @param {string} annotationId 
683
         * @param {*} [options] Override http request option.
684
         * @throws {RequiredError}
685
         */
686
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
687
            // verify required parameter 'annotationId' is not null or undefined
688
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
689
            const localVarPath = `/annotation/{annotationId}`
690
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
691
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
692
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
693
            let baseOptions;
694
            if (configuration) {
695
                baseOptions = configuration.baseOptions;
696
            }
697

    
698
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
699
            const localVarHeaderParameter = {} as any;
700
            const localVarQueryParameter = {} as any;
701

    
702

    
703
    
704
            setSearchParams(localVarUrlObj, localVarQueryParameter);
705
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
706
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
707

    
708
            return {
709
                url: toPathString(localVarUrlObj),
710
                options: localVarRequestOptions,
711
            };
712
        },
713
        /**
714
         * 
715
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
716
         * @param {*} [options] Override http request option.
717
         * @throws {RequiredError}
718
         */
719
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
720
            const localVarPath = `/annotations`;
721
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
722
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
723
            let baseOptions;
724
            if (configuration) {
725
                baseOptions = configuration.baseOptions;
726
            }
727

    
728
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
729
            const localVarHeaderParameter = {} as any;
730
            const localVarQueryParameter = {} as any;
731

    
732

    
733
    
734
            localVarHeaderParameter['Content-Type'] = 'application/json';
735

    
736
            setSearchParams(localVarUrlObj, localVarQueryParameter);
737
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
738
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
739
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
740

    
741
            return {
742
                url: toPathString(localVarUrlObj),
743
                options: localVarRequestOptions,
744
            };
745
        },
746
    }
747
};
748

    
749
/**
750
 * AnnotationApi - functional programming interface
751
 * @export
752
 */
753
export const AnnotationApiFp = function(configuration?: Configuration) {
754
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
755
    return {
756
        /**
757
         * 
758
         * @param {string} annotationId 
759
         * @param {*} [options] Override http request option.
760
         * @throws {RequiredError}
761
         */
762
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
763
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
764
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
765
        },
766
        /**
767
         * 
768
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
769
         * @param {*} [options] Override http request option.
770
         * @throws {RequiredError}
771
         */
772
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
773
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
774
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
775
        },
776
    }
777
};
778

    
779
/**
780
 * AnnotationApi - factory interface
781
 * @export
782
 */
783
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
784
    const localVarFp = AnnotationApiFp(configuration)
785
    return {
786
        /**
787
         * 
788
         * @param {string} annotationId 
789
         * @param {*} [options] Override http request option.
790
         * @throws {RequiredError}
791
         */
792
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
793
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
794
        },
795
        /**
796
         * 
797
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
798
         * @param {*} [options] Override http request option.
799
         * @throws {RequiredError}
800
         */
801
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
802
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
803
        },
804
    };
805
};
806

    
807
/**
808
 * AnnotationApi - object-oriented interface
809
 * @export
810
 * @class AnnotationApi
811
 * @extends {BaseAPI}
812
 */
813
export class AnnotationApi extends BaseAPI {
814
    /**
815
     * 
816
     * @param {string} annotationId 
817
     * @param {*} [options] Override http request option.
818
     * @throws {RequiredError}
819
     * @memberof AnnotationApi
820
     */
821
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
822
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
823
    }
824

    
825
    /**
826
     * 
827
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
828
     * @param {*} [options] Override http request option.
829
     * @throws {RequiredError}
830
     * @memberof AnnotationApi
831
     */
832
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
833
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
834
    }
835
}
836

    
837

    
838
/**
839
 * AuthApi - axios parameter creator
840
 * @export
841
 */
842
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
843
    return {
844
        /**
845
         * 
846
         * @param {LoginRequest} [loginRequest] 
847
         * @param {*} [options] Override http request option.
848
         * @throws {RequiredError}
849
         */
850
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
851
            const localVarPath = `/auth/login`;
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(loginRequest, localVarRequestOptions, configuration)
871

    
872
            return {
873
                url: toPathString(localVarUrlObj),
874
                options: localVarRequestOptions,
875
            };
876
        },
877
        /**
878
         * 
879
         * @param {*} [options] Override http request option.
880
         * @throws {RequiredError}
881
         */
882
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
883
            const localVarPath = `/auth/test/aa`;
884
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
885
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
886
            let baseOptions;
887
            if (configuration) {
888
                baseOptions = configuration.baseOptions;
889
            }
890

    
891
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
892
            const localVarHeaderParameter = {} as any;
893
            const localVarQueryParameter = {} as any;
894

    
895

    
896
    
897
            setSearchParams(localVarUrlObj, localVarQueryParameter);
898
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
899
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
900

    
901
            return {
902
                url: toPathString(localVarUrlObj),
903
                options: localVarRequestOptions,
904
            };
905
        },
906
        /**
907
         * 
908
         * @param {*} [options] Override http request option.
909
         * @throws {RequiredError}
910
         */
911
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
912
            const localVarPath = `/auth/test`;
913
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
914
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
915
            let baseOptions;
916
            if (configuration) {
917
                baseOptions = configuration.baseOptions;
918
            }
919

    
920
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
921
            const localVarHeaderParameter = {} as any;
922
            const localVarQueryParameter = {} as any;
923

    
924

    
925
    
926
            setSearchParams(localVarUrlObj, localVarQueryParameter);
927
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
928
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
929

    
930
            return {
931
                url: toPathString(localVarUrlObj),
932
                options: localVarRequestOptions,
933
            };
934
        },
935
    }
936
};
937

    
938
/**
939
 * AuthApi - functional programming interface
940
 * @export
941
 */
942
export const AuthApiFp = function(configuration?: Configuration) {
943
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
944
    return {
945
        /**
946
         * 
947
         * @param {LoginRequest} [loginRequest] 
948
         * @param {*} [options] Override http request option.
949
         * @throws {RequiredError}
950
         */
951
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
952
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
953
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
954
        },
955
        /**
956
         * 
957
         * @param {*} [options] Override http request option.
958
         * @throws {RequiredError}
959
         */
960
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
961
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
962
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
963
        },
964
        /**
965
         * 
966
         * @param {*} [options] Override http request option.
967
         * @throws {RequiredError}
968
         */
969
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
970
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
971
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
972
        },
973
    }
974
};
975

    
976
/**
977
 * AuthApi - factory interface
978
 * @export
979
 */
980
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
981
    const localVarFp = AuthApiFp(configuration)
982
    return {
983
        /**
984
         * 
985
         * @param {LoginRequest} [loginRequest] 
986
         * @param {*} [options] Override http request option.
987
         * @throws {RequiredError}
988
         */
989
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
990
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
991
        },
992
        /**
993
         * 
994
         * @param {*} [options] Override http request option.
995
         * @throws {RequiredError}
996
         */
997
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
998
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
999
        },
1000
        /**
1001
         * 
1002
         * @param {*} [options] Override http request option.
1003
         * @throws {RequiredError}
1004
         */
1005
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1006
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
1007
        },
1008
    };
1009
};
1010

    
1011
/**
1012
 * AuthApi - object-oriented interface
1013
 * @export
1014
 * @class AuthApi
1015
 * @extends {BaseAPI}
1016
 */
1017
export class AuthApi extends BaseAPI {
1018
    /**
1019
     * 
1020
     * @param {LoginRequest} [loginRequest] 
1021
     * @param {*} [options] Override http request option.
1022
     * @throws {RequiredError}
1023
     * @memberof AuthApi
1024
     */
1025
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1026
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
1027
    }
1028

    
1029
    /**
1030
     * 
1031
     * @param {*} [options] Override http request option.
1032
     * @throws {RequiredError}
1033
     * @memberof AuthApi
1034
     */
1035
    public authTestAaGet(options?: AxiosRequestConfig) {
1036
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1037
    }
1038

    
1039
    /**
1040
     * 
1041
     * @param {*} [options] Override http request option.
1042
     * @throws {RequiredError}
1043
     * @memberof AuthApi
1044
     */
1045
    public authTestGet(options?: AxiosRequestConfig) {
1046
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1047
    }
1048
}
1049

    
1050

    
1051
/**
1052
 * DocumentApi - axios parameter creator
1053
 * @export
1054
 */
1055
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1056
    return {
1057
        /**
1058
         * 
1059
         * @param {number} [pageIndex] 
1060
         * @param {number} [pageSize] 
1061
         * @param {*} [options] Override http request option.
1062
         * @throws {RequiredError}
1063
         */
1064
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1065
            const localVarPath = `/documents`;
1066
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1067
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1068
            let baseOptions;
1069
            if (configuration) {
1070
                baseOptions = configuration.baseOptions;
1071
            }
1072

    
1073
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1074
            const localVarHeaderParameter = {} as any;
1075
            const localVarQueryParameter = {} as any;
1076

    
1077
            if (pageIndex !== undefined) {
1078
                localVarQueryParameter['pageIndex'] = pageIndex;
1079
            }
1080

    
1081
            if (pageSize !== undefined) {
1082
                localVarQueryParameter['pageSize'] = pageSize;
1083
            }
1084

    
1085

    
1086
    
1087
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1088
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1089
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1090

    
1091
            return {
1092
                url: toPathString(localVarUrlObj),
1093
                options: localVarRequestOptions,
1094
            };
1095
        },
1096
        /**
1097
         * 
1098
         * @param {DocumentAddRequest} [documentAddRequest] 
1099
         * @param {*} [options] Override http request option.
1100
         * @throws {RequiredError}
1101
         */
1102
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1103
            const localVarPath = `/documents`;
1104
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1105
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1106
            let baseOptions;
1107
            if (configuration) {
1108
                baseOptions = configuration.baseOptions;
1109
            }
1110

    
1111
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1112
            const localVarHeaderParameter = {} as any;
1113
            const localVarQueryParameter = {} as any;
1114

    
1115

    
1116
    
1117
            localVarHeaderParameter['Content-Type'] = 'application/json';
1118

    
1119
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1120
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1121
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1122
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
1123

    
1124
            return {
1125
                url: toPathString(localVarUrlObj),
1126
                options: localVarRequestOptions,
1127
            };
1128
        },
1129
    }
1130
};
1131

    
1132
/**
1133
 * DocumentApi - functional programming interface
1134
 * @export
1135
 */
1136
export const DocumentApiFp = function(configuration?: Configuration) {
1137
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
1138
    return {
1139
        /**
1140
         * 
1141
         * @param {number} [pageIndex] 
1142
         * @param {number} [pageSize] 
1143
         * @param {*} [options] Override http request option.
1144
         * @throws {RequiredError}
1145
         */
1146
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
1147
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
1148
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1149
        },
1150
        /**
1151
         * 
1152
         * @param {DocumentAddRequest} [documentAddRequest] 
1153
         * @param {*} [options] Override http request option.
1154
         * @throws {RequiredError}
1155
         */
1156
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1157
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
1158
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1159
        },
1160
    }
1161
};
1162

    
1163
/**
1164
 * DocumentApi - factory interface
1165
 * @export
1166
 */
1167
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1168
    const localVarFp = DocumentApiFp(configuration)
1169
    return {
1170
        /**
1171
         * 
1172
         * @param {number} [pageIndex] 
1173
         * @param {number} [pageSize] 
1174
         * @param {*} [options] Override http request option.
1175
         * @throws {RequiredError}
1176
         */
1177
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
1178
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
1179
        },
1180
        /**
1181
         * 
1182
         * @param {DocumentAddRequest} [documentAddRequest] 
1183
         * @param {*} [options] Override http request option.
1184
         * @throws {RequiredError}
1185
         */
1186
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
1187
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
1188
        },
1189
    };
1190
};
1191

    
1192
/**
1193
 * DocumentApi - object-oriented interface
1194
 * @export
1195
 * @class DocumentApi
1196
 * @extends {BaseAPI}
1197
 */
1198
export class DocumentApi extends BaseAPI {
1199
    /**
1200
     * 
1201
     * @param {number} [pageIndex] 
1202
     * @param {number} [pageSize] 
1203
     * @param {*} [options] Override http request option.
1204
     * @throws {RequiredError}
1205
     * @memberof DocumentApi
1206
     */
1207
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
1208
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
1209
    }
1210

    
1211
    /**
1212
     * 
1213
     * @param {DocumentAddRequest} [documentAddRequest] 
1214
     * @param {*} [options] Override http request option.
1215
     * @throws {RequiredError}
1216
     * @memberof DocumentApi
1217
     */
1218
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
1219
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
1220
    }
1221
}
1222

    
1223

    
1224
/**
1225
 * TagApi - axios parameter creator
1226
 * @export
1227
 */
1228
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
1229
    return {
1230
        /**
1231
         * 
1232
         * @param {*} [options] Override http request option.
1233
         * @throws {RequiredError}
1234
         */
1235
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1236
            const localVarPath = `/tags`;
1237
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1238
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1239
            let baseOptions;
1240
            if (configuration) {
1241
                baseOptions = configuration.baseOptions;
1242
            }
1243

    
1244
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1245
            const localVarHeaderParameter = {} as any;
1246
            const localVarQueryParameter = {} as any;
1247

    
1248

    
1249
    
1250
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1251
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1252
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1253

    
1254
            return {
1255
                url: toPathString(localVarUrlObj),
1256
                options: localVarRequestOptions,
1257
            };
1258
        },
1259
    }
1260
};
1261

    
1262
/**
1263
 * TagApi - functional programming interface
1264
 * @export
1265
 */
1266
export const TagApiFp = function(configuration?: Configuration) {
1267
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
1268
    return {
1269
        /**
1270
         * 
1271
         * @param {*} [options] Override http request option.
1272
         * @throws {RequiredError}
1273
         */
1274
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
1275
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
1276
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1277
        },
1278
    }
1279
};
1280

    
1281
/**
1282
 * TagApi - factory interface
1283
 * @export
1284
 */
1285
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1286
    const localVarFp = TagApiFp(configuration)
1287
    return {
1288
        /**
1289
         * 
1290
         * @param {*} [options] Override http request option.
1291
         * @throws {RequiredError}
1292
         */
1293
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
1294
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
1295
        },
1296
    };
1297
};
1298

    
1299
/**
1300
 * TagApi - object-oriented interface
1301
 * @export
1302
 * @class TagApi
1303
 * @extends {BaseAPI}
1304
 */
1305
export class TagApi extends BaseAPI {
1306
    /**
1307
     * 
1308
     * @param {*} [options] Override http request option.
1309
     * @throws {RequiredError}
1310
     * @memberof TagApi
1311
     */
1312
    public tagsGet(options?: AxiosRequestConfig) {
1313
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
1314
    }
1315
}
1316

    
1317

    
1318
/**
1319
 * UserApi - axios parameter creator
1320
 * @export
1321
 */
1322
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
1323
    return {
1324
        /**
1325
         * 
1326
         * @param {*} [options] Override http request option.
1327
         * @throws {RequiredError}
1328
         */
1329
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1330
            const localVarPath = `/user/annotations`;
1331
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1332
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1333
            let baseOptions;
1334
            if (configuration) {
1335
                baseOptions = configuration.baseOptions;
1336
            }
1337

    
1338
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1339
            const localVarHeaderParameter = {} as any;
1340
            const localVarQueryParameter = {} as any;
1341

    
1342

    
1343
    
1344
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1345
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1346
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1347

    
1348
            return {
1349
                url: toPathString(localVarUrlObj),
1350
                options: localVarRequestOptions,
1351
            };
1352
        },
1353
        /**
1354
         * 
1355
         * @param {*} [options] Override http request option.
1356
         * @throws {RequiredError}
1357
         */
1358
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1359
            const localVarPath = `/users`;
1360
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1361
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1362
            let baseOptions;
1363
            if (configuration) {
1364
                baseOptions = configuration.baseOptions;
1365
            }
1366

    
1367
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1368
            const localVarHeaderParameter = {} as any;
1369
            const localVarQueryParameter = {} as any;
1370

    
1371

    
1372
    
1373
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1374
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1375
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1376

    
1377
            return {
1378
                url: toPathString(localVarUrlObj),
1379
                options: localVarRequestOptions,
1380
            };
1381
        },
1382
    }
1383
};
1384

    
1385
/**
1386
 * UserApi - functional programming interface
1387
 * @export
1388
 */
1389
export const UserApiFp = function(configuration?: Configuration) {
1390
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
1391
    return {
1392
        /**
1393
         * 
1394
         * @param {*} [options] Override http request option.
1395
         * @throws {RequiredError}
1396
         */
1397
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1398
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
1399
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1400
        },
1401
        /**
1402
         * 
1403
         * @param {*} [options] Override http request option.
1404
         * @throws {RequiredError}
1405
         */
1406
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
1407
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
1408
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1409
        },
1410
    }
1411
};
1412

    
1413
/**
1414
 * UserApi - factory interface
1415
 * @export
1416
 */
1417
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1418
    const localVarFp = UserApiFp(configuration)
1419
    return {
1420
        /**
1421
         * 
1422
         * @param {*} [options] Override http request option.
1423
         * @throws {RequiredError}
1424
         */
1425
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
1426
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
1427
        },
1428
        /**
1429
         * 
1430
         * @param {*} [options] Override http request option.
1431
         * @throws {RequiredError}
1432
         */
1433
        usersGet(options?: any): AxiosPromise<UserList> {
1434
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
1435
        },
1436
    };
1437
};
1438

    
1439
/**
1440
 * UserApi - object-oriented interface
1441
 * @export
1442
 * @class UserApi
1443
 * @extends {BaseAPI}
1444
 */
1445
export class UserApi extends BaseAPI {
1446
    /**
1447
     * 
1448
     * @param {*} [options] Override http request option.
1449
     * @throws {RequiredError}
1450
     * @memberof UserApi
1451
     */
1452
    public userAnnotationsGet(options?: AxiosRequestConfig) {
1453
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
1454
    }
1455

    
1456
    /**
1457
     * 
1458
     * @param {*} [options] Override http request option.
1459
     * @throws {RequiredError}
1460
     * @memberof UserApi
1461
     */
1462
    public usersGet(options?: AxiosRequestConfig) {
1463
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
1464
    }
1465
}
1466

    
1467

    
(4-4/9)