Projekt

Obecné

Profil

Stáhnout (62.9 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 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
/**
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 ChangeUserInfoRequest
177
 */
178
export interface ChangeUserInfoRequest {
179
    /**
180
     * 
181
     * @type {string}
182
     * @memberof ChangeUserInfoRequest
183
     */
184
    'password'?: string | null;
185
    /**
186
     * 
187
     * @type {string}
188
     * @memberof ChangeUserInfoRequest
189
     */
190
    'username'?: string | null;
191
    /**
192
     * 
193
     * @type {string}
194
     * @memberof ChangeUserInfoRequest
195
     */
196
    'name'?: string | null;
197
    /**
198
     * 
199
     * @type {string}
200
     * @memberof ChangeUserInfoRequest
201
     */
202
    'surname'?: string | null;
203
    /**
204
     * 
205
     * @type {ERole}
206
     * @memberof ChangeUserInfoRequest
207
     */
208
    'role'?: ERole;
209
}
210
/**
211
 * 
212
 * @export
213
 * @interface ClientInfo
214
 */
215
export interface ClientInfo {
216
    /**
217
     * 
218
     * @type {boolean}
219
     * @memberof ClientInfo
220
     */
221
    'isLogged'?: boolean;
222
    /**
223
     * 
224
     * @type {User}
225
     * @memberof ClientInfo
226
     */
227
    'loggedUser'?: User;
228
    /**
229
     * 
230
     * @type {string}
231
     * @memberof ClientInfo
232
     */
233
    'ip'?: string | null;
234
}
235
/**
236
 * 
237
 * @export
238
 * @interface CreateUserRequest
239
 */
240
export interface CreateUserRequest {
241
    /**
242
     * 
243
     * @type {string}
244
     * @memberof CreateUserRequest
245
     */
246
    'username'?: string | null;
247
    /**
248
     * 
249
     * @type {string}
250
     * @memberof CreateUserRequest
251
     */
252
    'password'?: string | null;
253
    /**
254
     * 
255
     * @type {string}
256
     * @memberof CreateUserRequest
257
     */
258
    'name'?: string | null;
259
    /**
260
     * 
261
     * @type {string}
262
     * @memberof CreateUserRequest
263
     */
264
    'surname'?: string | null;
265
    /**
266
     * 
267
     * @type {ERole}
268
     * @memberof CreateUserRequest
269
     */
270
    'role'?: ERole;
271
}
272
/**
273
 * 
274
 * @export
275
 * @interface DocumentAddInfo
276
 */
277
export interface DocumentAddInfo {
278
    /**
279
     * 
280
     * @type {string}
281
     * @memberof DocumentAddInfo
282
     */
283
    'name'?: string | null;
284
    /**
285
     * 
286
     * @type {EAddDocumentFormat}
287
     * @memberof DocumentAddInfo
288
     */
289
    'format'?: EAddDocumentFormat;
290
    /**
291
     * 
292
     * @type {string}
293
     * @memberof DocumentAddInfo
294
     */
295
    'content'?: string | null;
296
}
297
/**
298
 * 
299
 * @export
300
 * @interface DocumentAddRequest
301
 */
302
export interface DocumentAddRequest {
303
    /**
304
     * 
305
     * @type {Array<DocumentAddInfo>}
306
     * @memberof DocumentAddRequest
307
     */
308
    'documents'?: Array<DocumentAddInfo> | null;
309
}
310
/**
311
 * 
312
 * @export
313
 * @interface DocumentListInfo
314
 */
315
export interface DocumentListInfo {
316
    /**
317
     * 
318
     * @type {string}
319
     * @memberof DocumentListInfo
320
     */
321
    'id'?: string;
322
    /**
323
     * 
324
     * @type {string}
325
     * @memberof DocumentListInfo
326
     */
327
    'name'?: string | null;
328
    /**
329
     * 
330
     * @type {number}
331
     * @memberof DocumentListInfo
332
     */
333
    'length'?: number;
334
    /**
335
     * 
336
     * @type {number}
337
     * @memberof DocumentListInfo
338
     */
339
    'requiredAnnotations'?: number;
340
    /**
341
     * 
342
     * @type {Array<UserInfo>}
343
     * @memberof DocumentListInfo
344
     */
345
    'annotatingUsers'?: Array<UserInfo> | null;
346
}
347
/**
348
 * 
349
 * @export
350
 * @interface DocumentListResponse
351
 */
352
export interface DocumentListResponse {
353
    /**
354
     * 
355
     * @type {number}
356
     * @memberof DocumentListResponse
357
     */
358
    'totalCount'?: number;
359
    /**
360
     * 
361
     * @type {number}
362
     * @memberof DocumentListResponse
363
     */
364
    'pageCount'?: number;
365
    /**
366
     * 
367
     * @type {number}
368
     * @memberof DocumentListResponse
369
     */
370
    'pageIndex'?: number;
371
    /**
372
     * 
373
     * @type {Array<DocumentListInfo>}
374
     * @memberof DocumentListResponse
375
     */
376
    'documents'?: Array<DocumentListInfo> | null;
377
}
378
/**
379
 * 
380
 * @export
381
 * @enum {string}
382
 */
383

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

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

    
391

    
392
/**
393
 * 
394
 * @export
395
 * @enum {string}
396
 */
397

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

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

    
405

    
406
/**
407
 * 
408
 * @export
409
 * @enum {string}
410
 */
411

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

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

    
419

    
420
/**
421
 * 
422
 * @export
423
 * @enum {string}
424
 */
425

    
426
export const EState = {
427
    Done: 'DONE',
428
    InProgress: 'IN_PROGRESS',
429
    New: 'NEW'
430
} as const;
431

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

    
434

    
435
/**
436
 * 
437
 * @export
438
 * @enum {string}
439
 */
440

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

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

    
448

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

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

    
805
/**
806
 * AnnotationApi - axios parameter creator
807
 * @export
808
 */
809
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
810
    return {
811
        /**
812
         * 
813
         * @param {string} annotationId 
814
         * @param {*} [options] Override http request option.
815
         * @throws {RequiredError}
816
         */
817
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
818
            // verify required parameter 'annotationId' is not null or undefined
819
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
820
            const localVarPath = `/annotation/{annotationId}`
821
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
822
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
823
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
824
            let baseOptions;
825
            if (configuration) {
826
                baseOptions = configuration.baseOptions;
827
            }
828

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

    
833

    
834
    
835
            setSearchParams(localVarUrlObj, localVarQueryParameter);
836
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
837
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
838

    
839
            return {
840
                url: toPathString(localVarUrlObj),
841
                options: localVarRequestOptions,
842
            };
843
        },
844
        /**
845
         * 
846
         * @param {string} annotationId 
847
         * @param {string} occurenceId 
848
         * @param {*} [options] Override http request option.
849
         * @throws {RequiredError}
850
         */
851
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
852
            // verify required parameter 'annotationId' is not null or undefined
853
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
854
            // verify required parameter 'occurenceId' is not null or undefined
855
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
856
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
857
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
858
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
859
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
860
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
861
            let baseOptions;
862
            if (configuration) {
863
                baseOptions = configuration.baseOptions;
864
            }
865

    
866
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
867
            const localVarHeaderParameter = {} as any;
868
            const localVarQueryParameter = {} as any;
869

    
870

    
871
    
872
            setSearchParams(localVarUrlObj, localVarQueryParameter);
873
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
874
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
875

    
876
            return {
877
                url: toPathString(localVarUrlObj),
878
                options: localVarRequestOptions,
879
            };
880
        },
881
        /**
882
         * 
883
         * @param {string} annotationId 
884
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
885
         * @param {*} [options] Override http request option.
886
         * @throws {RequiredError}
887
         */
888
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
889
            // verify required parameter 'annotationId' is not null or undefined
890
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
891
            const localVarPath = `/annotation/{annotationId}`
892
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
893
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
894
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
895
            let baseOptions;
896
            if (configuration) {
897
                baseOptions = configuration.baseOptions;
898
            }
899

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

    
904

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

    
908
            setSearchParams(localVarUrlObj, localVarQueryParameter);
909
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
910
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
911
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
912

    
913
            return {
914
                url: toPathString(localVarUrlObj),
915
                options: localVarRequestOptions,
916
            };
917
        },
918
        /**
919
         * 
920
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
921
         * @param {*} [options] Override http request option.
922
         * @throws {RequiredError}
923
         */
924
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
925
            const localVarPath = `/annotations`;
926
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
927
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
928
            let baseOptions;
929
            if (configuration) {
930
                baseOptions = configuration.baseOptions;
931
            }
932

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

    
937

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

    
941
            setSearchParams(localVarUrlObj, localVarQueryParameter);
942
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
943
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
944
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
945

    
946
            return {
947
                url: toPathString(localVarUrlObj),
948
                options: localVarRequestOptions,
949
            };
950
        },
951
    }
952
};
953

    
954
/**
955
 * AnnotationApi - functional programming interface
956
 * @export
957
 */
958
export const AnnotationApiFp = function(configuration?: Configuration) {
959
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
960
    return {
961
        /**
962
         * 
963
         * @param {string} annotationId 
964
         * @param {*} [options] Override http request option.
965
         * @throws {RequiredError}
966
         */
967
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
968
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
969
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
970
        },
971
        /**
972
         * 
973
         * @param {string} annotationId 
974
         * @param {string} occurenceId 
975
         * @param {*} [options] Override http request option.
976
         * @throws {RequiredError}
977
         */
978
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
979
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
980
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
981
        },
982
        /**
983
         * 
984
         * @param {string} annotationId 
985
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
986
         * @param {*} [options] Override http request option.
987
         * @throws {RequiredError}
988
         */
989
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
990
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
991
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
992
        },
993
        /**
994
         * 
995
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
996
         * @param {*} [options] Override http request option.
997
         * @throws {RequiredError}
998
         */
999
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1000
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1001
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1002
        },
1003
    }
1004
};
1005

    
1006
/**
1007
 * AnnotationApi - factory interface
1008
 * @export
1009
 */
1010
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1011
    const localVarFp = AnnotationApiFp(configuration)
1012
    return {
1013
        /**
1014
         * 
1015
         * @param {string} annotationId 
1016
         * @param {*} [options] Override http request option.
1017
         * @throws {RequiredError}
1018
         */
1019
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
1020
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
1021
        },
1022
        /**
1023
         * 
1024
         * @param {string} annotationId 
1025
         * @param {string} occurenceId 
1026
         * @param {*} [options] Override http request option.
1027
         * @throws {RequiredError}
1028
         */
1029
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> {
1030
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath));
1031
        },
1032
        /**
1033
         * 
1034
         * @param {string} annotationId 
1035
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1036
         * @param {*} [options] Override http request option.
1037
         * @throws {RequiredError}
1038
         */
1039
        annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
1040
            return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
1041
        },
1042
        /**
1043
         * 
1044
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1045
         * @param {*} [options] Override http request option.
1046
         * @throws {RequiredError}
1047
         */
1048
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
1049
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
1050
        },
1051
    };
1052
};
1053

    
1054
/**
1055
 * AnnotationApi - object-oriented interface
1056
 * @export
1057
 * @class AnnotationApi
1058
 * @extends {BaseAPI}
1059
 */
1060
export class AnnotationApi extends BaseAPI {
1061
    /**
1062
     * 
1063
     * @param {string} annotationId 
1064
     * @param {*} [options] Override http request option.
1065
     * @throws {RequiredError}
1066
     * @memberof AnnotationApi
1067
     */
1068
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
1069
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
1070
    }
1071

    
1072
    /**
1073
     * 
1074
     * @param {string} annotationId 
1075
     * @param {string} occurenceId 
1076
     * @param {*} [options] Override http request option.
1077
     * @throws {RequiredError}
1078
     * @memberof AnnotationApi
1079
     */
1080
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
1081
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
1082
    }
1083

    
1084
    /**
1085
     * 
1086
     * @param {string} annotationId 
1087
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1088
     * @param {*} [options] Override http request option.
1089
     * @throws {RequiredError}
1090
     * @memberof AnnotationApi
1091
     */
1092
    public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
1093
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
1094
    }
1095

    
1096
    /**
1097
     * 
1098
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1099
     * @param {*} [options] Override http request option.
1100
     * @throws {RequiredError}
1101
     * @memberof AnnotationApi
1102
     */
1103
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
1104
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
1105
    }
1106
}
1107

    
1108

    
1109
/**
1110
 * AuthApi - axios parameter creator
1111
 * @export
1112
 */
1113
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1114
    return {
1115
        /**
1116
         * 
1117
         * @param {LoginRequest} [loginRequest] 
1118
         * @param {*} [options] Override http request option.
1119
         * @throws {RequiredError}
1120
         */
1121
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1122
            const localVarPath = `/auth/login`;
1123
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1124
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1125
            let baseOptions;
1126
            if (configuration) {
1127
                baseOptions = configuration.baseOptions;
1128
            }
1129

    
1130
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1131
            const localVarHeaderParameter = {} as any;
1132
            const localVarQueryParameter = {} as any;
1133

    
1134

    
1135
    
1136
            localVarHeaderParameter['Content-Type'] = 'application/json';
1137

    
1138
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1139
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1140
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1141
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
1142

    
1143
            return {
1144
                url: toPathString(localVarUrlObj),
1145
                options: localVarRequestOptions,
1146
            };
1147
        },
1148
        /**
1149
         * 
1150
         * @param {*} [options] Override http request option.
1151
         * @throws {RequiredError}
1152
         */
1153
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1154
            const localVarPath = `/auth/test/aa`;
1155
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1156
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1157
            let baseOptions;
1158
            if (configuration) {
1159
                baseOptions = configuration.baseOptions;
1160
            }
1161

    
1162
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1163
            const localVarHeaderParameter = {} as any;
1164
            const localVarQueryParameter = {} as any;
1165

    
1166

    
1167
    
1168
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1169
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1170
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1171

    
1172
            return {
1173
                url: toPathString(localVarUrlObj),
1174
                options: localVarRequestOptions,
1175
            };
1176
        },
1177
        /**
1178
         * 
1179
         * @param {*} [options] Override http request option.
1180
         * @throws {RequiredError}
1181
         */
1182
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1183
            const localVarPath = `/auth/test`;
1184
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1185
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1186
            let baseOptions;
1187
            if (configuration) {
1188
                baseOptions = configuration.baseOptions;
1189
            }
1190

    
1191
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1192
            const localVarHeaderParameter = {} as any;
1193
            const localVarQueryParameter = {} as any;
1194

    
1195

    
1196
    
1197
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1198
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1199
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1200

    
1201
            return {
1202
                url: toPathString(localVarUrlObj),
1203
                options: localVarRequestOptions,
1204
            };
1205
        },
1206
    }
1207
};
1208

    
1209
/**
1210
 * AuthApi - functional programming interface
1211
 * @export
1212
 */
1213
export const AuthApiFp = function(configuration?: Configuration) {
1214
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1215
    return {
1216
        /**
1217
         * 
1218
         * @param {LoginRequest} [loginRequest] 
1219
         * @param {*} [options] Override http request option.
1220
         * @throws {RequiredError}
1221
         */
1222
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
1223
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
1224
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1225
        },
1226
        /**
1227
         * 
1228
         * @param {*} [options] Override http request option.
1229
         * @throws {RequiredError}
1230
         */
1231
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1232
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
1233
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1234
        },
1235
        /**
1236
         * 
1237
         * @param {*} [options] Override http request option.
1238
         * @throws {RequiredError}
1239
         */
1240
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1241
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
1242
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1243
        },
1244
    }
1245
};
1246

    
1247
/**
1248
 * AuthApi - factory interface
1249
 * @export
1250
 */
1251
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1252
    const localVarFp = AuthApiFp(configuration)
1253
    return {
1254
        /**
1255
         * 
1256
         * @param {LoginRequest} [loginRequest] 
1257
         * @param {*} [options] Override http request option.
1258
         * @throws {RequiredError}
1259
         */
1260
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
1261
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
1262
        },
1263
        /**
1264
         * 
1265
         * @param {*} [options] Override http request option.
1266
         * @throws {RequiredError}
1267
         */
1268
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1269
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
1270
        },
1271
        /**
1272
         * 
1273
         * @param {*} [options] Override http request option.
1274
         * @throws {RequiredError}
1275
         */
1276
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1277
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
1278
        },
1279
    };
1280
};
1281

    
1282
/**
1283
 * AuthApi - object-oriented interface
1284
 * @export
1285
 * @class AuthApi
1286
 * @extends {BaseAPI}
1287
 */
1288
export class AuthApi extends BaseAPI {
1289
    /**
1290
     * 
1291
     * @param {LoginRequest} [loginRequest] 
1292
     * @param {*} [options] Override http request option.
1293
     * @throws {RequiredError}
1294
     * @memberof AuthApi
1295
     */
1296
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1297
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
1298
    }
1299

    
1300
    /**
1301
     * 
1302
     * @param {*} [options] Override http request option.
1303
     * @throws {RequiredError}
1304
     * @memberof AuthApi
1305
     */
1306
    public authTestAaGet(options?: AxiosRequestConfig) {
1307
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1308
    }
1309

    
1310
    /**
1311
     * 
1312
     * @param {*} [options] Override http request option.
1313
     * @throws {RequiredError}
1314
     * @memberof AuthApi
1315
     */
1316
    public authTestGet(options?: AxiosRequestConfig) {
1317
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1318
    }
1319
}
1320

    
1321

    
1322
/**
1323
 * DocumentApi - axios parameter creator
1324
 * @export
1325
 */
1326
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1327
    return {
1328
        /**
1329
         * 
1330
         * @param {number} [pageIndex] 
1331
         * @param {number} [pageSize] 
1332
         * @param {*} [options] Override http request option.
1333
         * @throws {RequiredError}
1334
         */
1335
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1336
            const localVarPath = `/documents`;
1337
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1338
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1339
            let baseOptions;
1340
            if (configuration) {
1341
                baseOptions = configuration.baseOptions;
1342
            }
1343

    
1344
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1345
            const localVarHeaderParameter = {} as any;
1346
            const localVarQueryParameter = {} as any;
1347

    
1348
            if (pageIndex !== undefined) {
1349
                localVarQueryParameter['pageIndex'] = pageIndex;
1350
            }
1351

    
1352
            if (pageSize !== undefined) {
1353
                localVarQueryParameter['pageSize'] = pageSize;
1354
            }
1355

    
1356

    
1357
    
1358
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1359
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1360
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1361

    
1362
            return {
1363
                url: toPathString(localVarUrlObj),
1364
                options: localVarRequestOptions,
1365
            };
1366
        },
1367
        /**
1368
         * 
1369
         * @param {DocumentAddRequest} [documentAddRequest] 
1370
         * @param {*} [options] Override http request option.
1371
         * @throws {RequiredError}
1372
         */
1373
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1374
            const localVarPath = `/documents`;
1375
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1376
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1377
            let baseOptions;
1378
            if (configuration) {
1379
                baseOptions = configuration.baseOptions;
1380
            }
1381

    
1382
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1383
            const localVarHeaderParameter = {} as any;
1384
            const localVarQueryParameter = {} as any;
1385

    
1386

    
1387
    
1388
            localVarHeaderParameter['Content-Type'] = 'application/json';
1389

    
1390
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1391
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1392
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1393
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
1394

    
1395
            return {
1396
                url: toPathString(localVarUrlObj),
1397
                options: localVarRequestOptions,
1398
            };
1399
        },
1400
    }
1401
};
1402

    
1403
/**
1404
 * DocumentApi - functional programming interface
1405
 * @export
1406
 */
1407
export const DocumentApiFp = function(configuration?: Configuration) {
1408
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
1409
    return {
1410
        /**
1411
         * 
1412
         * @param {number} [pageIndex] 
1413
         * @param {number} [pageSize] 
1414
         * @param {*} [options] Override http request option.
1415
         * @throws {RequiredError}
1416
         */
1417
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
1418
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
1419
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1420
        },
1421
        /**
1422
         * 
1423
         * @param {DocumentAddRequest} [documentAddRequest] 
1424
         * @param {*} [options] Override http request option.
1425
         * @throws {RequiredError}
1426
         */
1427
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1428
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
1429
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1430
        },
1431
    }
1432
};
1433

    
1434
/**
1435
 * DocumentApi - factory interface
1436
 * @export
1437
 */
1438
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1439
    const localVarFp = DocumentApiFp(configuration)
1440
    return {
1441
        /**
1442
         * 
1443
         * @param {number} [pageIndex] 
1444
         * @param {number} [pageSize] 
1445
         * @param {*} [options] Override http request option.
1446
         * @throws {RequiredError}
1447
         */
1448
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
1449
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
1450
        },
1451
        /**
1452
         * 
1453
         * @param {DocumentAddRequest} [documentAddRequest] 
1454
         * @param {*} [options] Override http request option.
1455
         * @throws {RequiredError}
1456
         */
1457
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
1458
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
1459
        },
1460
    };
1461
};
1462

    
1463
/**
1464
 * DocumentApi - object-oriented interface
1465
 * @export
1466
 * @class DocumentApi
1467
 * @extends {BaseAPI}
1468
 */
1469
export class DocumentApi extends BaseAPI {
1470
    /**
1471
     * 
1472
     * @param {number} [pageIndex] 
1473
     * @param {number} [pageSize] 
1474
     * @param {*} [options] Override http request option.
1475
     * @throws {RequiredError}
1476
     * @memberof DocumentApi
1477
     */
1478
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
1479
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
1480
    }
1481

    
1482
    /**
1483
     * 
1484
     * @param {DocumentAddRequest} [documentAddRequest] 
1485
     * @param {*} [options] Override http request option.
1486
     * @throws {RequiredError}
1487
     * @memberof DocumentApi
1488
     */
1489
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
1490
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
1491
    }
1492
}
1493

    
1494

    
1495
/**
1496
 * TagApi - axios parameter creator
1497
 * @export
1498
 */
1499
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
1500
    return {
1501
        /**
1502
         * 
1503
         * @param {*} [options] Override http request option.
1504
         * @throws {RequiredError}
1505
         */
1506
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1507
            const localVarPath = `/tags`;
1508
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1509
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1510
            let baseOptions;
1511
            if (configuration) {
1512
                baseOptions = configuration.baseOptions;
1513
            }
1514

    
1515
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1516
            const localVarHeaderParameter = {} as any;
1517
            const localVarQueryParameter = {} as any;
1518

    
1519

    
1520
    
1521
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1522
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1523
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1524

    
1525
            return {
1526
                url: toPathString(localVarUrlObj),
1527
                options: localVarRequestOptions,
1528
            };
1529
        },
1530
    }
1531
};
1532

    
1533
/**
1534
 * TagApi - functional programming interface
1535
 * @export
1536
 */
1537
export const TagApiFp = function(configuration?: Configuration) {
1538
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
1539
    return {
1540
        /**
1541
         * 
1542
         * @param {*} [options] Override http request option.
1543
         * @throws {RequiredError}
1544
         */
1545
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
1546
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
1547
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1548
        },
1549
    }
1550
};
1551

    
1552
/**
1553
 * TagApi - factory interface
1554
 * @export
1555
 */
1556
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1557
    const localVarFp = TagApiFp(configuration)
1558
    return {
1559
        /**
1560
         * 
1561
         * @param {*} [options] Override http request option.
1562
         * @throws {RequiredError}
1563
         */
1564
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
1565
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
1566
        },
1567
    };
1568
};
1569

    
1570
/**
1571
 * TagApi - object-oriented interface
1572
 * @export
1573
 * @class TagApi
1574
 * @extends {BaseAPI}
1575
 */
1576
export class TagApi extends BaseAPI {
1577
    /**
1578
     * 
1579
     * @param {*} [options] Override http request option.
1580
     * @throws {RequiredError}
1581
     * @memberof TagApi
1582
     */
1583
    public tagsGet(options?: AxiosRequestConfig) {
1584
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
1585
    }
1586
}
1587

    
1588

    
1589
/**
1590
 * UserApi - axios parameter creator
1591
 * @export
1592
 */
1593
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
1594
    return {
1595
        /**
1596
         * 
1597
         * @param {*} [options] Override http request option.
1598
         * @throws {RequiredError}
1599
         */
1600
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1601
            const localVarPath = `/user/annotations`;
1602
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1603
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1604
            let baseOptions;
1605
            if (configuration) {
1606
                baseOptions = configuration.baseOptions;
1607
            }
1608

    
1609
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1610
            const localVarHeaderParameter = {} as any;
1611
            const localVarQueryParameter = {} as any;
1612

    
1613

    
1614
    
1615
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1616
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1617
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1618

    
1619
            return {
1620
                url: toPathString(localVarUrlObj),
1621
                options: localVarRequestOptions,
1622
            };
1623
        },
1624
        /**
1625
         * 
1626
         * @param {string} userId 
1627
         * @param {*} [options] Override http request option.
1628
         * @throws {RequiredError}
1629
         */
1630
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1631
            // verify required parameter 'userId' is not null or undefined
1632
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
1633
            const localVarPath = `/user/{userId}/annotations`
1634
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1635
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1636
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1637
            let baseOptions;
1638
            if (configuration) {
1639
                baseOptions = configuration.baseOptions;
1640
            }
1641

    
1642
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1643
            const localVarHeaderParameter = {} as any;
1644
            const localVarQueryParameter = {} as any;
1645

    
1646

    
1647
    
1648
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1649
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1650
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1651

    
1652
            return {
1653
                url: toPathString(localVarUrlObj),
1654
                options: localVarRequestOptions,
1655
            };
1656
        },
1657
        /**
1658
         * 
1659
         * @param {string} userId 
1660
         * @param {*} [options] Override http request option.
1661
         * @throws {RequiredError}
1662
         */
1663
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1664
            // verify required parameter 'userId' is not null or undefined
1665
            assertParamExists('userUserIdDelete', 'userId', userId)
1666
            const localVarPath = `/user/{userId}`
1667
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1668
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1669
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1670
            let baseOptions;
1671
            if (configuration) {
1672
                baseOptions = configuration.baseOptions;
1673
            }
1674

    
1675
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1676
            const localVarHeaderParameter = {} as any;
1677
            const localVarQueryParameter = {} as any;
1678

    
1679

    
1680
    
1681
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1682
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1683
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1684

    
1685
            return {
1686
                url: toPathString(localVarUrlObj),
1687
                options: localVarRequestOptions,
1688
            };
1689
        },
1690
        /**
1691
         * 
1692
         * @param {string} userId 
1693
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1694
         * @param {*} [options] Override http request option.
1695
         * @throws {RequiredError}
1696
         */
1697
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1698
            // verify required parameter 'userId' is not null or undefined
1699
            assertParamExists('userUserIdPut', 'userId', userId)
1700
            const localVarPath = `/user/{userId}`
1701
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1702
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1703
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1704
            let baseOptions;
1705
            if (configuration) {
1706
                baseOptions = configuration.baseOptions;
1707
            }
1708

    
1709
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1710
            const localVarHeaderParameter = {} as any;
1711
            const localVarQueryParameter = {} as any;
1712

    
1713

    
1714
    
1715
            localVarHeaderParameter['Content-Type'] = 'application/json';
1716

    
1717
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1718
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1719
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1720
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
1721

    
1722
            return {
1723
                url: toPathString(localVarUrlObj),
1724
                options: localVarRequestOptions,
1725
            };
1726
        },
1727
        /**
1728
         * 
1729
         * @param {*} [options] Override http request option.
1730
         * @throws {RequiredError}
1731
         */
1732
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1733
            const localVarPath = `/users`;
1734
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1735
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1736
            let baseOptions;
1737
            if (configuration) {
1738
                baseOptions = configuration.baseOptions;
1739
            }
1740

    
1741
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1742
            const localVarHeaderParameter = {} as any;
1743
            const localVarQueryParameter = {} as any;
1744

    
1745

    
1746
    
1747
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1748
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1749
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1750

    
1751
            return {
1752
                url: toPathString(localVarUrlObj),
1753
                options: localVarRequestOptions,
1754
            };
1755
        },
1756
        /**
1757
         * 
1758
         * @param {CreateUserRequest} [createUserRequest] 
1759
         * @param {*} [options] Override http request option.
1760
         * @throws {RequiredError}
1761
         */
1762
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1763
            const localVarPath = `/users`;
1764
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1765
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1766
            let baseOptions;
1767
            if (configuration) {
1768
                baseOptions = configuration.baseOptions;
1769
            }
1770

    
1771
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1772
            const localVarHeaderParameter = {} as any;
1773
            const localVarQueryParameter = {} as any;
1774

    
1775

    
1776
    
1777
            localVarHeaderParameter['Content-Type'] = 'application/json';
1778

    
1779
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1780
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1781
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1782
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
1783

    
1784
            return {
1785
                url: toPathString(localVarUrlObj),
1786
                options: localVarRequestOptions,
1787
            };
1788
        },
1789
    }
1790
};
1791

    
1792
/**
1793
 * UserApi - functional programming interface
1794
 * @export
1795
 */
1796
export const UserApiFp = function(configuration?: Configuration) {
1797
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
1798
    return {
1799
        /**
1800
         * 
1801
         * @param {*} [options] Override http request option.
1802
         * @throws {RequiredError}
1803
         */
1804
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1805
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
1806
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1807
        },
1808
        /**
1809
         * 
1810
         * @param {string} userId 
1811
         * @param {*} [options] Override http request option.
1812
         * @throws {RequiredError}
1813
         */
1814
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
1815
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
1816
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1817
        },
1818
        /**
1819
         * 
1820
         * @param {string} userId 
1821
         * @param {*} [options] Override http request option.
1822
         * @throws {RequiredError}
1823
         */
1824
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1825
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
1826
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1827
        },
1828
        /**
1829
         * 
1830
         * @param {string} userId 
1831
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1832
         * @param {*} [options] Override http request option.
1833
         * @throws {RequiredError}
1834
         */
1835
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1836
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
1837
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1838
        },
1839
        /**
1840
         * 
1841
         * @param {*} [options] Override http request option.
1842
         * @throws {RequiredError}
1843
         */
1844
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
1845
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
1846
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1847
        },
1848
        /**
1849
         * 
1850
         * @param {CreateUserRequest} [createUserRequest] 
1851
         * @param {*} [options] Override http request option.
1852
         * @throws {RequiredError}
1853
         */
1854
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1855
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
1856
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1857
        },
1858
    }
1859
};
1860

    
1861
/**
1862
 * UserApi - factory interface
1863
 * @export
1864
 */
1865
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1866
    const localVarFp = UserApiFp(configuration)
1867
    return {
1868
        /**
1869
         * 
1870
         * @param {*} [options] Override http request option.
1871
         * @throws {RequiredError}
1872
         */
1873
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
1874
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
1875
        },
1876
        /**
1877
         * 
1878
         * @param {string} userId 
1879
         * @param {*} [options] Override http request option.
1880
         * @throws {RequiredError}
1881
         */
1882
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
1883
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
1884
        },
1885
        /**
1886
         * 
1887
         * @param {string} userId 
1888
         * @param {*} [options] Override http request option.
1889
         * @throws {RequiredError}
1890
         */
1891
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
1892
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
1893
        },
1894
        /**
1895
         * 
1896
         * @param {string} userId 
1897
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1898
         * @param {*} [options] Override http request option.
1899
         * @throws {RequiredError}
1900
         */
1901
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
1902
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
1903
        },
1904
        /**
1905
         * 
1906
         * @param {*} [options] Override http request option.
1907
         * @throws {RequiredError}
1908
         */
1909
        usersGet(options?: any): AxiosPromise<UserList> {
1910
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
1911
        },
1912
        /**
1913
         * 
1914
         * @param {CreateUserRequest} [createUserRequest] 
1915
         * @param {*} [options] Override http request option.
1916
         * @throws {RequiredError}
1917
         */
1918
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
1919
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
1920
        },
1921
    };
1922
};
1923

    
1924
/**
1925
 * UserApi - object-oriented interface
1926
 * @export
1927
 * @class UserApi
1928
 * @extends {BaseAPI}
1929
 */
1930
export class UserApi extends BaseAPI {
1931
    /**
1932
     * 
1933
     * @param {*} [options] Override http request option.
1934
     * @throws {RequiredError}
1935
     * @memberof UserApi
1936
     */
1937
    public userAnnotationsGet(options?: AxiosRequestConfig) {
1938
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
1939
    }
1940

    
1941
    /**
1942
     * 
1943
     * @param {string} userId 
1944
     * @param {*} [options] Override http request option.
1945
     * @throws {RequiredError}
1946
     * @memberof UserApi
1947
     */
1948
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
1949
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
1950
    }
1951

    
1952
    /**
1953
     * 
1954
     * @param {string} userId 
1955
     * @param {*} [options] Override http request option.
1956
     * @throws {RequiredError}
1957
     * @memberof UserApi
1958
     */
1959
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
1960
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
1961
    }
1962

    
1963
    /**
1964
     * 
1965
     * @param {string} userId 
1966
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1967
     * @param {*} [options] Override http request option.
1968
     * @throws {RequiredError}
1969
     * @memberof UserApi
1970
     */
1971
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
1972
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
1973
    }
1974

    
1975
    /**
1976
     * 
1977
     * @param {*} [options] Override http request option.
1978
     * @throws {RequiredError}
1979
     * @memberof UserApi
1980
     */
1981
    public usersGet(options?: AxiosRequestConfig) {
1982
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
1983
    }
1984

    
1985
    /**
1986
     * 
1987
     * @param {CreateUserRequest} [createUserRequest] 
1988
     * @param {*} [options] Override http request option.
1989
     * @throws {RequiredError}
1990
     * @memberof UserApi
1991
     */
1992
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
1993
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
1994
    }
1995
}
1996

    
1997

    
(4-4/9)