Projekt

Obecné

Profil

Stáhnout (63 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
     * @type {number}
793
     * @memberof UserInfo
794
     */
795
    'assignedDocumentsCount'?: number;
796
}
797
/**
798
 * 
799
 * @export
800
 * @interface UserList
801
 */
802
export interface UserList {
803
    /**
804
     * 
805
     * @type {Array<UserInfo>}
806
     * @memberof UserList
807
     */
808
    'users'?: Array<UserInfo> | null;
809
}
810

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

    
835
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
836
            const localVarHeaderParameter = {} as any;
837
            const localVarQueryParameter = {} as any;
838

    
839

    
840
    
841
            setSearchParams(localVarUrlObj, localVarQueryParameter);
842
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
843
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
844

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

    
872
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
873
            const localVarHeaderParameter = {} as any;
874
            const localVarQueryParameter = {} as any;
875

    
876

    
877
    
878
            setSearchParams(localVarUrlObj, localVarQueryParameter);
879
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
880
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
881

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

    
906
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
907
            const localVarHeaderParameter = {} as any;
908
            const localVarQueryParameter = {} as any;
909

    
910

    
911
    
912
            localVarHeaderParameter['Content-Type'] = 'application/json';
913

    
914
            setSearchParams(localVarUrlObj, localVarQueryParameter);
915
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
916
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
917
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
918

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

    
939
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
940
            const localVarHeaderParameter = {} as any;
941
            const localVarQueryParameter = {} as any;
942

    
943

    
944
    
945
            localVarHeaderParameter['Content-Type'] = 'application/json';
946

    
947
            setSearchParams(localVarUrlObj, localVarQueryParameter);
948
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
949
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
950
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
951

    
952
            return {
953
                url: toPathString(localVarUrlObj),
954
                options: localVarRequestOptions,
955
            };
956
        },
957
    }
958
};
959

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

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

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

    
1078
    /**
1079
     * 
1080
     * @param {string} annotationId 
1081
     * @param {string} occurenceId 
1082
     * @param {*} [options] Override http request option.
1083
     * @throws {RequiredError}
1084
     * @memberof AnnotationApi
1085
     */
1086
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
1087
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
1088
    }
1089

    
1090
    /**
1091
     * 
1092
     * @param {string} annotationId 
1093
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1094
     * @param {*} [options] Override http request option.
1095
     * @throws {RequiredError}
1096
     * @memberof AnnotationApi
1097
     */
1098
    public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
1099
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
1100
    }
1101

    
1102
    /**
1103
     * 
1104
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1105
     * @param {*} [options] Override http request option.
1106
     * @throws {RequiredError}
1107
     * @memberof AnnotationApi
1108
     */
1109
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
1110
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
1111
    }
1112
}
1113

    
1114

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

    
1136
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1137
            const localVarHeaderParameter = {} as any;
1138
            const localVarQueryParameter = {} as any;
1139

    
1140

    
1141
    
1142
            localVarHeaderParameter['Content-Type'] = 'application/json';
1143

    
1144
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1145
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1146
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1147
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
1148

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

    
1168
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1169
            const localVarHeaderParameter = {} as any;
1170
            const localVarQueryParameter = {} as any;
1171

    
1172

    
1173
    
1174
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1175
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1176
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1177

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

    
1197
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1198
            const localVarHeaderParameter = {} as any;
1199
            const localVarQueryParameter = {} as any;
1200

    
1201

    
1202
    
1203
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1204
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1205
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1206

    
1207
            return {
1208
                url: toPathString(localVarUrlObj),
1209
                options: localVarRequestOptions,
1210
            };
1211
        },
1212
    }
1213
};
1214

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

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

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

    
1306
    /**
1307
     * 
1308
     * @param {*} [options] Override http request option.
1309
     * @throws {RequiredError}
1310
     * @memberof AuthApi
1311
     */
1312
    public authTestAaGet(options?: AxiosRequestConfig) {
1313
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1314
    }
1315

    
1316
    /**
1317
     * 
1318
     * @param {*} [options] Override http request option.
1319
     * @throws {RequiredError}
1320
     * @memberof AuthApi
1321
     */
1322
    public authTestGet(options?: AxiosRequestConfig) {
1323
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1324
    }
1325
}
1326

    
1327

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

    
1350
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1351
            const localVarHeaderParameter = {} as any;
1352
            const localVarQueryParameter = {} as any;
1353

    
1354
            if (pageIndex !== undefined) {
1355
                localVarQueryParameter['pageIndex'] = pageIndex;
1356
            }
1357

    
1358
            if (pageSize !== undefined) {
1359
                localVarQueryParameter['pageSize'] = pageSize;
1360
            }
1361

    
1362

    
1363
    
1364
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1365
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1366
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1367

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

    
1388
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1389
            const localVarHeaderParameter = {} as any;
1390
            const localVarQueryParameter = {} as any;
1391

    
1392

    
1393
    
1394
            localVarHeaderParameter['Content-Type'] = 'application/json';
1395

    
1396
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1397
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1398
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1399
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
1400

    
1401
            return {
1402
                url: toPathString(localVarUrlObj),
1403
                options: localVarRequestOptions,
1404
            };
1405
        },
1406
    }
1407
};
1408

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

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

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

    
1488
    /**
1489
     * 
1490
     * @param {DocumentAddRequest} [documentAddRequest] 
1491
     * @param {*} [options] Override http request option.
1492
     * @throws {RequiredError}
1493
     * @memberof DocumentApi
1494
     */
1495
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
1496
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
1497
    }
1498
}
1499

    
1500

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

    
1521
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1522
            const localVarHeaderParameter = {} as any;
1523
            const localVarQueryParameter = {} as any;
1524

    
1525

    
1526
    
1527
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1528
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1529
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1530

    
1531
            return {
1532
                url: toPathString(localVarUrlObj),
1533
                options: localVarRequestOptions,
1534
            };
1535
        },
1536
    }
1537
};
1538

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

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

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

    
1594

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

    
1615
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1616
            const localVarHeaderParameter = {} as any;
1617
            const localVarQueryParameter = {} as any;
1618

    
1619

    
1620
    
1621
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1622
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1623
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1624

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

    
1648
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1649
            const localVarHeaderParameter = {} as any;
1650
            const localVarQueryParameter = {} as any;
1651

    
1652

    
1653
    
1654
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1655
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1656
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1657

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

    
1681
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1682
            const localVarHeaderParameter = {} as any;
1683
            const localVarQueryParameter = {} as any;
1684

    
1685

    
1686
    
1687
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1688
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1689
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1690

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

    
1715
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1716
            const localVarHeaderParameter = {} as any;
1717
            const localVarQueryParameter = {} as any;
1718

    
1719

    
1720
    
1721
            localVarHeaderParameter['Content-Type'] = 'application/json';
1722

    
1723
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1724
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1725
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1726
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
1727

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

    
1747
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1748
            const localVarHeaderParameter = {} as any;
1749
            const localVarQueryParameter = {} as any;
1750

    
1751

    
1752
    
1753
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1754
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1755
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1756

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

    
1777
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1778
            const localVarHeaderParameter = {} as any;
1779
            const localVarQueryParameter = {} as any;
1780

    
1781

    
1782
    
1783
            localVarHeaderParameter['Content-Type'] = 'application/json';
1784

    
1785
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1786
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1787
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1788
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
1789

    
1790
            return {
1791
                url: toPathString(localVarUrlObj),
1792
                options: localVarRequestOptions,
1793
            };
1794
        },
1795
    }
1796
};
1797

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

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

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

    
1947
    /**
1948
     * 
1949
     * @param {string} userId 
1950
     * @param {*} [options] Override http request option.
1951
     * @throws {RequiredError}
1952
     * @memberof UserApi
1953
     */
1954
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
1955
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
1956
    }
1957

    
1958
    /**
1959
     * 
1960
     * @param {string} userId 
1961
     * @param {*} [options] Override http request option.
1962
     * @throws {RequiredError}
1963
     * @memberof UserApi
1964
     */
1965
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
1966
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
1967
    }
1968

    
1969
    /**
1970
     * 
1971
     * @param {string} userId 
1972
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
1973
     * @param {*} [options] Override http request option.
1974
     * @throws {RequiredError}
1975
     * @memberof UserApi
1976
     */
1977
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
1978
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
1979
    }
1980

    
1981
    /**
1982
     * 
1983
     * @param {*} [options] Override http request option.
1984
     * @throws {RequiredError}
1985
     * @memberof UserApi
1986
     */
1987
    public usersGet(options?: AxiosRequestConfig) {
1988
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
1989
    }
1990

    
1991
    /**
1992
     * 
1993
     * @param {CreateUserRequest} [createUserRequest] 
1994
     * @param {*} [options] Override http request option.
1995
     * @throws {RequiredError}
1996
     * @memberof UserApi
1997
     */
1998
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
1999
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
2000
    }
2001
}
2002

    
2003

    
(4-4/9)