Projekt

Obecné

Profil

Stáhnout (69.4 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
import { Configuration } from './configuration';
16
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
// Some imports not used depending on template conditions
18
// @ts-ignore
19
import {
20
    DUMMY_BASE_URL,
21
    assertParamExists,
22
    setApiKeyToObject,
23
    setBasicAuthToObject,
24
    setBearerAuthToObject,
25
    setOAuthToObject,
26
    setSearchParams,
27
    serializeDataIfNeeded,
28
    toPathString,
29
    createRequestFunction,
30
} from './common';
31
// @ts-ignore
32
import {
33
    BASE_PATH,
34
    COLLECTION_FORMATS,
35
    RequestArgs,
36
    BaseAPI,
37
    RequiredError,
38
} from './base';
39

    
40
/**
41
 *
42
 * @export
43
 * @interface AnnotationInfo
44
 */
45
export interface AnnotationInfo {
46
    /**
47
     *
48
     * @type {string}
49
     * @memberof AnnotationInfo
50
     */
51
    sourceDocumentContent?: string | null;
52
    /**
53
     *
54
     * @type {string}
55
     * @memberof AnnotationInfo
56
     */
57
    documentToRender?: string | null;
58
    /**
59
     *
60
     * @type {Array<number>}
61
     * @memberof AnnotationInfo
62
     */
63
    tagStartPositions?: Array<number> | null;
64
    /**
65
     *
66
     * @type {Array<number>}
67
     * @memberof AnnotationInfo
68
     */
69
    tagLengths?: Array<number> | null;
70
    /**
71
     *
72
     * @type {EState}
73
     * @memberof AnnotationInfo
74
     */
75
    state?: EState;
76
    /**
77
     *
78
     * @type {EDocumentType}
79
     * @memberof AnnotationInfo
80
     */
81
    type?: EDocumentType;
82
    /**
83
     *
84
     * @type {string}
85
     * @memberof AnnotationInfo
86
     */
87
    note?: string | null;
88
    /**
89
     *
90
     * @type {Array<TagInstanceInfo>}
91
     * @memberof AnnotationInfo
92
     */
93
    tagInstances?: Array<TagInstanceInfo> | null;
94
}
95
/**
96
 *
97
 * @export
98
 * @interface AnnotationInstanceAddRequest
99
 */
100
export interface AnnotationInstanceAddRequest {
101
    /**
102
     *
103
     * @type {number}
104
     * @memberof AnnotationInstanceAddRequest
105
     */
106
    position?: number;
107
    /**
108
     *
109
     * @type {number}
110
     * @memberof AnnotationInstanceAddRequest
111
     */
112
    length?: number;
113
    /**
114
     *
115
     * @type {ETagType}
116
     * @memberof AnnotationInstanceAddRequest
117
     */
118
    type?: ETagType;
119
    /**
120
     *
121
     * @type {string}
122
     * @memberof AnnotationInstanceAddRequest
123
     */
124
    id?: string;
125
    /**
126
     *
127
     * @type {string}
128
     * @memberof AnnotationInstanceAddRequest
129
     */
130
    instanceId?: string | null;
131
}
132
/**
133
 *
134
 * @export
135
 * @interface AnnotationListInfo
136
 */
137
export interface AnnotationListInfo {
138
    /**
139
     *
140
     * @type {string}
141
     * @memberof AnnotationListInfo
142
     */
143
    documentName?: string | null;
144
    /**
145
     *
146
     * @type {EState}
147
     * @memberof AnnotationListInfo
148
     */
149
    state?: EState;
150
    /**
151
     *
152
     * @type {string}
153
     * @memberof AnnotationListInfo
154
     */
155
    annotationId?: string;
156
}
157
/**
158
 *
159
 * @export
160
 * @interface AnnotationListResponse
161
 */
162
export interface AnnotationListResponse {
163
    /**
164
     *
165
     * @type {Array<AnnotationListInfo>}
166
     * @memberof AnnotationListResponse
167
     */
168
    annotations?: Array<AnnotationListInfo> | null;
169
}
170
/**
171
 *
172
 * @export
173
 * @interface AnnotationsAddRequest
174
 */
175
export interface AnnotationsAddRequest {
176
    /**
177
     *
178
     * @type {Array<string>}
179
     * @memberof AnnotationsAddRequest
180
     */
181
    userIdList?: Array<string> | null;
182
    /**
183
     *
184
     * @type {Array<string>}
185
     * @memberof AnnotationsAddRequest
186
     */
187
    documentIdList?: Array<string> | null;
188
}
189
/**
190
 *
191
 * @export
192
 * @interface ChangeUserInfoRequest
193
 */
194
export interface ChangeUserInfoRequest {
195
    /**
196
     *
197
     * @type {string}
198
     * @memberof ChangeUserInfoRequest
199
     */
200
    password?: string | null;
201
    /**
202
     *
203
     * @type {string}
204
     * @memberof ChangeUserInfoRequest
205
     */
206
    username?: string | null;
207
    /**
208
     *
209
     * @type {string}
210
     * @memberof ChangeUserInfoRequest
211
     */
212
    name?: string | null;
213
    /**
214
     *
215
     * @type {string}
216
     * @memberof ChangeUserInfoRequest
217
     */
218
    surname?: string | null;
219
    /**
220
     *
221
     * @type {ERole}
222
     * @memberof ChangeUserInfoRequest
223
     */
224
    role?: ERole;
225
}
226
/**
227
 *
228
 * @export
229
 * @interface ClientInfo
230
 */
231
export interface ClientInfo {
232
    /**
233
     *
234
     * @type {boolean}
235
     * @memberof ClientInfo
236
     */
237
    isLogged?: boolean;
238
    /**
239
     *
240
     * @type {User}
241
     * @memberof ClientInfo
242
     */
243
    loggedUser?: User;
244
    /**
245
     *
246
     * @type {string}
247
     * @memberof ClientInfo
248
     */
249
    ip?: string | null;
250
}
251
/**
252
 *
253
 * @export
254
 * @interface CreateUserRequest
255
 */
256
export interface CreateUserRequest {
257
    /**
258
     *
259
     * @type {string}
260
     * @memberof CreateUserRequest
261
     */
262
    username?: string | null;
263
    /**
264
     *
265
     * @type {string}
266
     * @memberof CreateUserRequest
267
     */
268
    password?: string | null;
269
    /**
270
     *
271
     * @type {string}
272
     * @memberof CreateUserRequest
273
     */
274
    name?: string | null;
275
    /**
276
     *
277
     * @type {string}
278
     * @memberof CreateUserRequest
279
     */
280
    surname?: string | null;
281
    /**
282
     *
283
     * @type {ERole}
284
     * @memberof CreateUserRequest
285
     */
286
    role?: ERole;
287
}
288
/**
289
 *
290
 * @export
291
 * @interface DocumentAddInfo
292
 */
293
export interface DocumentAddInfo {
294
    /**
295
     *
296
     * @type {string}
297
     * @memberof DocumentAddInfo
298
     */
299
    name?: string | null;
300
    /**
301
     *
302
     * @type {EAddDocumentFormat}
303
     * @memberof DocumentAddInfo
304
     */
305
    format?: EAddDocumentFormat;
306
    /**
307
     *
308
     * @type {string}
309
     * @memberof DocumentAddInfo
310
     */
311
    content?: string | null;
312
}
313
/**
314
 *
315
 * @export
316
 * @interface DocumentAddRequest
317
 */
318
export interface DocumentAddRequest {
319
    /**
320
     *
321
     * @type {Array<DocumentAddInfo>}
322
     * @memberof DocumentAddRequest
323
     */
324
    documents?: Array<DocumentAddInfo> | null;
325
}
326
/**
327
 *
328
 * @export
329
 * @interface DocumentListInfo
330
 */
331
export interface DocumentListInfo {
332
    /**
333
     *
334
     * @type {string}
335
     * @memberof DocumentListInfo
336
     */
337
    id?: string;
338
    /**
339
     *
340
     * @type {string}
341
     * @memberof DocumentListInfo
342
     */
343
    name?: string | null;
344
    /**
345
     *
346
     * @type {number}
347
     * @memberof DocumentListInfo
348
     */
349
    length?: number;
350
    /**
351
     *
352
     * @type {number}
353
     * @memberof DocumentListInfo
354
     */
355
    requiredAnnotations?: number;
356
    /**
357
     *
358
     * @type {Array<UserInfo>}
359
     * @memberof DocumentListInfo
360
     */
361
    annotatingUsers?: Array<UserInfo> | null;
362
}
363
/**
364
 *
365
 * @export
366
 * @interface DocumentListResponse
367
 */
368
export interface DocumentListResponse {
369
    /**
370
     *
371
     * @type {number}
372
     * @memberof DocumentListResponse
373
     */
374
    totalCount?: number;
375
    /**
376
     *
377
     * @type {number}
378
     * @memberof DocumentListResponse
379
     */
380
    pageCount?: number;
381
    /**
382
     *
383
     * @type {number}
384
     * @memberof DocumentListResponse
385
     */
386
    pageIndex?: number;
387
    /**
388
     *
389
     * @type {Array<DocumentListInfo>}
390
     * @memberof DocumentListResponse
391
     */
392
    documents?: Array<DocumentListInfo> | null;
393
}
394
/**
395
 *
396
 * @export
397
 * @enum {string}
398
 */
399

    
400
export const EAddDocumentFormat = {
401
    Zip: 'ZIP',
402
    Textfile: 'TEXTFILE',
403
} as const;
404

    
405
export type EAddDocumentFormat =
406
    typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
407

    
408
/**
409
 *
410
 * @export
411
 * @enum {string}
412
 */
413

    
414
export const EDocumentType = {
415
    Html: 'HTML',
416
    Text: 'TEXT',
417
} as const;
418

    
419
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
420

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

    
427
export const ERole = {
428
    Annotator: 'ANNOTATOR',
429
    Administrator: 'ADMINISTRATOR',
430
} as const;
431

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

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

    
440
export const EState = {
441
    Done: 'DONE',
442
    InProgress: 'IN_PROGRESS',
443
    New: 'NEW',
444
} as const;
445

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

    
448
/**
449
 *
450
 * @export
451
 * @enum {string}
452
 */
453

    
454
export const ETagType = {
455
    Tag: 'TAG',
456
    Subtag: 'SUBTAG',
457
} as const;
458

    
459
export type ETagType = typeof ETagType[keyof typeof ETagType];
460

    
461
/**
462
 *
463
 * @export
464
 * @interface LoginRequest
465
 */
466
export interface LoginRequest {
467
    /**
468
     *
469
     * @type {string}
470
     * @memberof LoginRequest
471
     */
472
    username?: string | null;
473
    /**
474
     *
475
     * @type {string}
476
     * @memberof LoginRequest
477
     */
478
    password?: string | null;
479
}
480
/**
481
 *
482
 * @export
483
 * @interface LoginResponse
484
 */
485
export interface LoginResponse {
486
    /**
487
     *
488
     * @type {boolean}
489
     * @memberof LoginResponse
490
     */
491
    ok?: boolean;
492
    /**
493
     *
494
     * @type {string}
495
     * @memberof LoginResponse
496
     */
497
    token?: string | null;
498
    /**
499
     *
500
     * @type {string}
501
     * @memberof LoginResponse
502
     */
503
    expiration?: string;
504
    /**
505
     *
506
     * @type {ERole}
507
     * @memberof LoginResponse
508
     */
509
    role?: ERole;
510
}
511
/**
512
 *
513
 * @export
514
 * @interface ProblemDetails
515
 */
516
export interface ProblemDetails {
517
    [key: string]: any | any;
518

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

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

    
846
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
847
            const localVarHeaderParameter = {} as any;
848
            const localVarQueryParameter = {} as any;
849

    
850
            setSearchParams(localVarUrlObj, localVarQueryParameter);
851
            let headersFromBaseOptions =
852
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
853
            localVarRequestOptions.headers = {
854
                ...localVarHeaderParameter,
855
                ...headersFromBaseOptions,
856
                ...options.headers,
857
            };
858

    
859
            return {
860
                url: toPathString(localVarUrlObj),
861
                options: localVarRequestOptions,
862
            };
863
        },
864
        /**
865
         *
866
         * @param {string} annotationId
867
         * @param {string} occurenceId
868
         * @param {*} [options] Override http request option.
869
         * @throws {RequiredError}
870
         */
871
        annotationAnnotationIdOccurenceIdDelete: async (
872
            annotationId: string,
873
            occurenceId: string,
874
            options: AxiosRequestConfig = {}
875
        ): Promise<RequestArgs> => {
876
            // verify required parameter 'annotationId' is not null or undefined
877
            assertParamExists(
878
                'annotationAnnotationIdOccurenceIdDelete',
879
                'annotationId',
880
                annotationId
881
            );
882
            // verify required parameter 'occurenceId' is not null or undefined
883
            assertParamExists(
884
                'annotationAnnotationIdOccurenceIdDelete',
885
                'occurenceId',
886
                occurenceId
887
            );
888
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
889
                .replace(`{${'annotationId'}}`, encodeURIComponent(String(annotationId)))
890
                .replace(`{${'occurenceId'}}`, encodeURIComponent(String(occurenceId)));
891
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
892
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
893
            let baseOptions;
894
            if (configuration) {
895
                baseOptions = configuration.baseOptions;
896
            }
897

    
898
            const localVarRequestOptions = {
899
                method: 'DELETE',
900
                ...baseOptions,
901
                ...options,
902
            };
903
            const localVarHeaderParameter = {} as any;
904
            const localVarQueryParameter = {} as any;
905

    
906
            setSearchParams(localVarUrlObj, localVarQueryParameter);
907
            let headersFromBaseOptions =
908
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
909
            localVarRequestOptions.headers = {
910
                ...localVarHeaderParameter,
911
                ...headersFromBaseOptions,
912
                ...options.headers,
913
            };
914

    
915
            return {
916
                url: toPathString(localVarUrlObj),
917
                options: localVarRequestOptions,
918
            };
919
        },
920
        /**
921
         *
922
         * @param {string} annotationId
923
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
924
         * @param {*} [options] Override http request option.
925
         * @throws {RequiredError}
926
         */
927
        annotationAnnotationIdPost: async (
928
            annotationId: string,
929
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
930
            options: AxiosRequestConfig = {}
931
        ): Promise<RequestArgs> => {
932
            // verify required parameter 'annotationId' is not null or undefined
933
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId);
934
            const localVarPath = `/annotation/{annotationId}`.replace(
935
                `{${'annotationId'}}`,
936
                encodeURIComponent(String(annotationId))
937
            );
938
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
939
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
940
            let baseOptions;
941
            if (configuration) {
942
                baseOptions = configuration.baseOptions;
943
            }
944

    
945
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
946
            const localVarHeaderParameter = {} as any;
947
            const localVarQueryParameter = {} as any;
948

    
949
            localVarHeaderParameter['Content-Type'] = 'application/json';
950

    
951
            setSearchParams(localVarUrlObj, localVarQueryParameter);
952
            let headersFromBaseOptions =
953
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
954
            localVarRequestOptions.headers = {
955
                ...localVarHeaderParameter,
956
                ...headersFromBaseOptions,
957
                ...options.headers,
958
            };
959
            localVarRequestOptions.data = serializeDataIfNeeded(
960
                annotationInstanceAddRequest,
961
                localVarRequestOptions,
962
                configuration
963
            );
964

    
965
            return {
966
                url: toPathString(localVarUrlObj),
967
                options: localVarRequestOptions,
968
            };
969
        },
970
        /**
971
         *
972
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
973
         * @param {*} [options] Override http request option.
974
         * @throws {RequiredError}
975
         */
976
        annotationsPost: async (
977
            annotationsAddRequest?: AnnotationsAddRequest,
978
            options: AxiosRequestConfig = {}
979
        ): Promise<RequestArgs> => {
980
            const localVarPath = `/annotations`;
981
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
982
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
983
            let baseOptions;
984
            if (configuration) {
985
                baseOptions = configuration.baseOptions;
986
            }
987

    
988
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
989
            const localVarHeaderParameter = {} as any;
990
            const localVarQueryParameter = {} as any;
991

    
992
            localVarHeaderParameter['Content-Type'] = 'application/json';
993

    
994
            setSearchParams(localVarUrlObj, localVarQueryParameter);
995
            let headersFromBaseOptions =
996
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
997
            localVarRequestOptions.headers = {
998
                ...localVarHeaderParameter,
999
                ...headersFromBaseOptions,
1000
                ...options.headers,
1001
            };
1002
            localVarRequestOptions.data = serializeDataIfNeeded(
1003
                annotationsAddRequest,
1004
                localVarRequestOptions,
1005
                configuration
1006
            );
1007

    
1008
            return {
1009
                url: toPathString(localVarUrlObj),
1010
                options: localVarRequestOptions,
1011
            };
1012
        },
1013
    };
1014
};
1015

    
1016
/**
1017
 * AnnotationApi - functional programming interface
1018
 * @export
1019
 */
1020
export const AnnotationApiFp = function (configuration?: Configuration) {
1021
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration);
1022
    return {
1023
        /**
1024
         *
1025
         * @param {string} annotationId
1026
         * @param {*} [options] Override http request option.
1027
         * @throws {RequiredError}
1028
         */
1029
        async annotationAnnotationIdGet(
1030
            annotationId: string,
1031
            options?: AxiosRequestConfig
1032
        ): Promise<
1033
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>
1034
        > {
1035
            const localVarAxiosArgs =
1036
                await localVarAxiosParamCreator.annotationAnnotationIdGet(
1037
                    annotationId,
1038
                    options
1039
                );
1040
            return createRequestFunction(
1041
                localVarAxiosArgs,
1042
                globalAxios,
1043
                BASE_PATH,
1044
                configuration
1045
            );
1046
        },
1047
        /**
1048
         *
1049
         * @param {string} annotationId
1050
         * @param {string} occurenceId
1051
         * @param {*} [options] Override http request option.
1052
         * @throws {RequiredError}
1053
         */
1054
        async annotationAnnotationIdOccurenceIdDelete(
1055
            annotationId: string,
1056
            occurenceId: string,
1057
            options?: AxiosRequestConfig
1058
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1059
            const localVarAxiosArgs =
1060
                await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(
1061
                    annotationId,
1062
                    occurenceId,
1063
                    options
1064
                );
1065
            return createRequestFunction(
1066
                localVarAxiosArgs,
1067
                globalAxios,
1068
                BASE_PATH,
1069
                configuration
1070
            );
1071
        },
1072
        /**
1073
         *
1074
         * @param {string} annotationId
1075
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1076
         * @param {*} [options] Override http request option.
1077
         * @throws {RequiredError}
1078
         */
1079
        async annotationAnnotationIdPost(
1080
            annotationId: string,
1081
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1082
            options?: AxiosRequestConfig
1083
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1084
            const localVarAxiosArgs =
1085
                await localVarAxiosParamCreator.annotationAnnotationIdPost(
1086
                    annotationId,
1087
                    annotationInstanceAddRequest,
1088
                    options
1089
                );
1090
            return createRequestFunction(
1091
                localVarAxiosArgs,
1092
                globalAxios,
1093
                BASE_PATH,
1094
                configuration
1095
            );
1096
        },
1097
        /**
1098
         *
1099
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
1100
         * @param {*} [options] Override http request option.
1101
         * @throws {RequiredError}
1102
         */
1103
        async annotationsPost(
1104
            annotationsAddRequest?: AnnotationsAddRequest,
1105
            options?: AxiosRequestConfig
1106
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1107
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(
1108
                annotationsAddRequest,
1109
                options
1110
            );
1111
            return createRequestFunction(
1112
                localVarAxiosArgs,
1113
                globalAxios,
1114
                BASE_PATH,
1115
                configuration
1116
            );
1117
        },
1118
    };
1119
};
1120

    
1121
/**
1122
 * AnnotationApi - factory interface
1123
 * @export
1124
 */
1125
export const AnnotationApiFactory = function (
1126
    configuration?: Configuration,
1127
    basePath?: string,
1128
    axios?: AxiosInstance
1129
) {
1130
    const localVarFp = AnnotationApiFp(configuration);
1131
    return {
1132
        /**
1133
         *
1134
         * @param {string} annotationId
1135
         * @param {*} [options] Override http request option.
1136
         * @throws {RequiredError}
1137
         */
1138
        annotationAnnotationIdGet(
1139
            annotationId: string,
1140
            options?: any
1141
        ): AxiosPromise<AnnotationInfo> {
1142
            return localVarFp
1143
                .annotationAnnotationIdGet(annotationId, options)
1144
                .then((request) => request(axios, basePath));
1145
        },
1146
        /**
1147
         *
1148
         * @param {string} annotationId
1149
         * @param {string} occurenceId
1150
         * @param {*} [options] Override http request option.
1151
         * @throws {RequiredError}
1152
         */
1153
        annotationAnnotationIdOccurenceIdDelete(
1154
            annotationId: string,
1155
            occurenceId: string,
1156
            options?: any
1157
        ): AxiosPromise<void> {
1158
            return localVarFp
1159
                .annotationAnnotationIdOccurenceIdDelete(
1160
                    annotationId,
1161
                    occurenceId,
1162
                    options
1163
                )
1164
                .then((request) => request(axios, basePath));
1165
        },
1166
        /**
1167
         *
1168
         * @param {string} annotationId
1169
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1170
         * @param {*} [options] Override http request option.
1171
         * @throws {RequiredError}
1172
         */
1173
        annotationAnnotationIdPost(
1174
            annotationId: string,
1175
            annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1176
            options?: any
1177
        ): AxiosPromise<void> {
1178
            return localVarFp
1179
                .annotationAnnotationIdPost(
1180
                    annotationId,
1181
                    annotationInstanceAddRequest,
1182
                    options
1183
                )
1184
                .then((request) => request(axios, basePath));
1185
        },
1186
        /**
1187
         *
1188
         * @param {AnnotationsAddRequest} [annotationsAddRequest]
1189
         * @param {*} [options] Override http request option.
1190
         * @throws {RequiredError}
1191
         */
1192
        annotationsPost(
1193
            annotationsAddRequest?: AnnotationsAddRequest,
1194
            options?: any
1195
        ): AxiosPromise<void> {
1196
            return localVarFp
1197
                .annotationsPost(annotationsAddRequest, options)
1198
                .then((request) => request(axios, basePath));
1199
        },
1200
    };
1201
};
1202

    
1203
/**
1204
 * AnnotationApi - object-oriented interface
1205
 * @export
1206
 * @class AnnotationApi
1207
 * @extends {BaseAPI}
1208
 */
1209
export class AnnotationApi extends BaseAPI {
1210
    /**
1211
     *
1212
     * @param {string} annotationId
1213
     * @param {*} [options] Override http request option.
1214
     * @throws {RequiredError}
1215
     * @memberof AnnotationApi
1216
     */
1217
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
1218
        return AnnotationApiFp(this.configuration)
1219
            .annotationAnnotationIdGet(annotationId, options)
1220
            .then((request) => request(this.axios, this.basePath));
1221
    }
1222

    
1223
    /**
1224
     *
1225
     * @param {string} annotationId
1226
     * @param {string} occurenceId
1227
     * @param {*} [options] Override http request option.
1228
     * @throws {RequiredError}
1229
     * @memberof AnnotationApi
1230
     */
1231
    public annotationAnnotationIdOccurenceIdDelete(
1232
        annotationId: string,
1233
        occurenceId: string,
1234
        options?: AxiosRequestConfig
1235
    ) {
1236
        return AnnotationApiFp(this.configuration)
1237
            .annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options)
1238
            .then((request) => request(this.axios, this.basePath));
1239
    }
1240

    
1241
    /**
1242
     *
1243
     * @param {string} annotationId
1244
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
1245
     * @param {*} [options] Override http request option.
1246
     * @throws {RequiredError}
1247
     * @memberof AnnotationApi
1248
     */
1249
    public annotationAnnotationIdPost(
1250
        annotationId: string,
1251
        annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
1252
        options?: AxiosRequestConfig
1253
    ) {
1254
        return AnnotationApiFp(this.configuration)
1255
            .annotationAnnotationIdPost(
1256
                annotationId,
1257
                annotationInstanceAddRequest,
1258
                options
1259
            )
1260
            .then((request) => request(this.axios, this.basePath));
1261
    }
1262

    
1263
    /**
1264
     *
1265
     * @param {AnnotationsAddRequest} [annotationsAddRequest]
1266
     * @param {*} [options] Override http request option.
1267
     * @throws {RequiredError}
1268
     * @memberof AnnotationApi
1269
     */
1270
    public annotationsPost(
1271
        annotationsAddRequest?: AnnotationsAddRequest,
1272
        options?: AxiosRequestConfig
1273
    ) {
1274
        return AnnotationApiFp(this.configuration)
1275
            .annotationsPost(annotationsAddRequest, options)
1276
            .then((request) => request(this.axios, this.basePath));
1277
    }
1278
}
1279

    
1280
/**
1281
 * AuthApi - axios parameter creator
1282
 * @export
1283
 */
1284
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1285
    return {
1286
        /**
1287
         *
1288
         * @param {LoginRequest} [loginRequest]
1289
         * @param {*} [options] Override http request option.
1290
         * @throws {RequiredError}
1291
         */
1292
        authLoginPost: async (
1293
            loginRequest?: LoginRequest,
1294
            options: AxiosRequestConfig = {}
1295
        ): Promise<RequestArgs> => {
1296
            const localVarPath = `/auth/login`;
1297
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1298
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1299
            let baseOptions;
1300
            if (configuration) {
1301
                baseOptions = configuration.baseOptions;
1302
            }
1303

    
1304
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1305
            const localVarHeaderParameter = {} as any;
1306
            const localVarQueryParameter = {} as any;
1307

    
1308
            localVarHeaderParameter['Content-Type'] = 'application/json';
1309

    
1310
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1311
            let headersFromBaseOptions =
1312
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1313
            localVarRequestOptions.headers = {
1314
                ...localVarHeaderParameter,
1315
                ...headersFromBaseOptions,
1316
                ...options.headers,
1317
            };
1318
            localVarRequestOptions.data = serializeDataIfNeeded(
1319
                loginRequest,
1320
                localVarRequestOptions,
1321
                configuration
1322
            );
1323

    
1324
            return {
1325
                url: toPathString(localVarUrlObj),
1326
                options: localVarRequestOptions,
1327
            };
1328
        },
1329
        /**
1330
         *
1331
         * @param {*} [options] Override http request option.
1332
         * @throws {RequiredError}
1333
         */
1334
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1335
            const localVarPath = `/auth/test/aa`;
1336
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1337
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1338
            let baseOptions;
1339
            if (configuration) {
1340
                baseOptions = configuration.baseOptions;
1341
            }
1342

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

    
1347
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1348
            let headersFromBaseOptions =
1349
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1350
            localVarRequestOptions.headers = {
1351
                ...localVarHeaderParameter,
1352
                ...headersFromBaseOptions,
1353
                ...options.headers,
1354
            };
1355

    
1356
            return {
1357
                url: toPathString(localVarUrlObj),
1358
                options: localVarRequestOptions,
1359
            };
1360
        },
1361
        /**
1362
         *
1363
         * @param {*} [options] Override http request option.
1364
         * @throws {RequiredError}
1365
         */
1366
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1367
            const localVarPath = `/auth/test`;
1368
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1369
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1370
            let baseOptions;
1371
            if (configuration) {
1372
                baseOptions = configuration.baseOptions;
1373
            }
1374

    
1375
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1376
            const localVarHeaderParameter = {} as any;
1377
            const localVarQueryParameter = {} as any;
1378

    
1379
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1380
            let headersFromBaseOptions =
1381
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1382
            localVarRequestOptions.headers = {
1383
                ...localVarHeaderParameter,
1384
                ...headersFromBaseOptions,
1385
                ...options.headers,
1386
            };
1387

    
1388
            return {
1389
                url: toPathString(localVarUrlObj),
1390
                options: localVarRequestOptions,
1391
            };
1392
        },
1393
    };
1394
};
1395

    
1396
/**
1397
 * AuthApi - functional programming interface
1398
 * @export
1399
 */
1400
export const AuthApiFp = function (configuration?: Configuration) {
1401
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
1402
    return {
1403
        /**
1404
         *
1405
         * @param {LoginRequest} [loginRequest]
1406
         * @param {*} [options] Override http request option.
1407
         * @throws {RequiredError}
1408
         */
1409
        async authLoginPost(
1410
            loginRequest?: LoginRequest,
1411
            options?: AxiosRequestConfig
1412
        ): Promise<
1413
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>
1414
        > {
1415
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(
1416
                loginRequest,
1417
                options
1418
            );
1419
            return createRequestFunction(
1420
                localVarAxiosArgs,
1421
                globalAxios,
1422
                BASE_PATH,
1423
                configuration
1424
            );
1425
        },
1426
        /**
1427
         *
1428
         * @param {*} [options] Override http request option.
1429
         * @throws {RequiredError}
1430
         */
1431
        async authTestAaGet(
1432
            options?: AxiosRequestConfig
1433
        ): Promise<
1434
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>
1435
        > {
1436
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(
1437
                options
1438
            );
1439
            return createRequestFunction(
1440
                localVarAxiosArgs,
1441
                globalAxios,
1442
                BASE_PATH,
1443
                configuration
1444
            );
1445
        },
1446
        /**
1447
         *
1448
         * @param {*} [options] Override http request option.
1449
         * @throws {RequiredError}
1450
         */
1451
        async authTestGet(
1452
            options?: AxiosRequestConfig
1453
        ): Promise<
1454
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>
1455
        > {
1456
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(
1457
                options
1458
            );
1459
            return createRequestFunction(
1460
                localVarAxiosArgs,
1461
                globalAxios,
1462
                BASE_PATH,
1463
                configuration
1464
            );
1465
        },
1466
    };
1467
};
1468

    
1469
/**
1470
 * AuthApi - factory interface
1471
 * @export
1472
 */
1473
export const AuthApiFactory = function (
1474
    configuration?: Configuration,
1475
    basePath?: string,
1476
    axios?: AxiosInstance
1477
) {
1478
    const localVarFp = AuthApiFp(configuration);
1479
    return {
1480
        /**
1481
         *
1482
         * @param {LoginRequest} [loginRequest]
1483
         * @param {*} [options] Override http request option.
1484
         * @throws {RequiredError}
1485
         */
1486
        authLoginPost(
1487
            loginRequest?: LoginRequest,
1488
            options?: any
1489
        ): AxiosPromise<LoginResponse> {
1490
            return localVarFp
1491
                .authLoginPost(loginRequest, options)
1492
                .then((request) => request(axios, basePath));
1493
        },
1494
        /**
1495
         *
1496
         * @param {*} [options] Override http request option.
1497
         * @throws {RequiredError}
1498
         */
1499
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1500
            return localVarFp
1501
                .authTestAaGet(options)
1502
                .then((request) => request(axios, basePath));
1503
        },
1504
        /**
1505
         *
1506
         * @param {*} [options] Override http request option.
1507
         * @throws {RequiredError}
1508
         */
1509
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1510
            return localVarFp
1511
                .authTestGet(options)
1512
                .then((request) => request(axios, basePath));
1513
        },
1514
    };
1515
};
1516

    
1517
/**
1518
 * AuthApi - object-oriented interface
1519
 * @export
1520
 * @class AuthApi
1521
 * @extends {BaseAPI}
1522
 */
1523
export class AuthApi extends BaseAPI {
1524
    /**
1525
     *
1526
     * @param {LoginRequest} [loginRequest]
1527
     * @param {*} [options] Override http request option.
1528
     * @throws {RequiredError}
1529
     * @memberof AuthApi
1530
     */
1531
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1532
        return AuthApiFp(this.configuration)
1533
            .authLoginPost(loginRequest, options)
1534
            .then((request) => request(this.axios, this.basePath));
1535
    }
1536

    
1537
    /**
1538
     *
1539
     * @param {*} [options] Override http request option.
1540
     * @throws {RequiredError}
1541
     * @memberof AuthApi
1542
     */
1543
    public authTestAaGet(options?: AxiosRequestConfig) {
1544
        return AuthApiFp(this.configuration)
1545
            .authTestAaGet(options)
1546
            .then((request) => request(this.axios, this.basePath));
1547
    }
1548

    
1549
    /**
1550
     *
1551
     * @param {*} [options] Override http request option.
1552
     * @throws {RequiredError}
1553
     * @memberof AuthApi
1554
     */
1555
    public authTestGet(options?: AxiosRequestConfig) {
1556
        return AuthApiFp(this.configuration)
1557
            .authTestGet(options)
1558
            .then((request) => request(this.axios, this.basePath));
1559
    }
1560
}
1561

    
1562
/**
1563
 * DocumentApi - axios parameter creator
1564
 * @export
1565
 */
1566
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1567
    return {
1568
        /**
1569
         *
1570
         * @param {number} [pageIndex]
1571
         * @param {number} [pageSize]
1572
         * @param {*} [options] Override http request option.
1573
         * @throws {RequiredError}
1574
         */
1575
        documentsGet: async (
1576
            pageIndex?: number,
1577
            pageSize?: number,
1578
            options: AxiosRequestConfig = {}
1579
        ): Promise<RequestArgs> => {
1580
            const localVarPath = `/documents`;
1581
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1582
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1583
            let baseOptions;
1584
            if (configuration) {
1585
                baseOptions = configuration.baseOptions;
1586
            }
1587

    
1588
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1589
            const localVarHeaderParameter = {} as any;
1590
            const localVarQueryParameter = {} as any;
1591

    
1592
            if (pageIndex !== undefined) {
1593
                localVarQueryParameter['pageIndex'] = pageIndex;
1594
            }
1595

    
1596
            if (pageSize !== undefined) {
1597
                localVarQueryParameter['pageSize'] = pageSize;
1598
            }
1599

    
1600
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1601
            let headersFromBaseOptions =
1602
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1603
            localVarRequestOptions.headers = {
1604
                ...localVarHeaderParameter,
1605
                ...headersFromBaseOptions,
1606
                ...options.headers,
1607
            };
1608

    
1609
            return {
1610
                url: toPathString(localVarUrlObj),
1611
                options: localVarRequestOptions,
1612
            };
1613
        },
1614
        /**
1615
         *
1616
         * @param {DocumentAddRequest} [documentAddRequest]
1617
         * @param {*} [options] Override http request option.
1618
         * @throws {RequiredError}
1619
         */
1620
        documentsPost: async (
1621
            documentAddRequest?: DocumentAddRequest,
1622
            options: AxiosRequestConfig = {}
1623
        ): Promise<RequestArgs> => {
1624
            const localVarPath = `/documents`;
1625
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1626
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1627
            let baseOptions;
1628
            if (configuration) {
1629
                baseOptions = configuration.baseOptions;
1630
            }
1631

    
1632
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1633
            const localVarHeaderParameter = {} as any;
1634
            const localVarQueryParameter = {} as any;
1635

    
1636
            localVarHeaderParameter['Content-Type'] = 'application/json';
1637

    
1638
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1639
            let headersFromBaseOptions =
1640
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1641
            localVarRequestOptions.headers = {
1642
                ...localVarHeaderParameter,
1643
                ...headersFromBaseOptions,
1644
                ...options.headers,
1645
            };
1646
            localVarRequestOptions.data = serializeDataIfNeeded(
1647
                documentAddRequest,
1648
                localVarRequestOptions,
1649
                configuration
1650
            );
1651

    
1652
            return {
1653
                url: toPathString(localVarUrlObj),
1654
                options: localVarRequestOptions,
1655
            };
1656
        },
1657
    };
1658
};
1659

    
1660
/**
1661
 * DocumentApi - functional programming interface
1662
 * @export
1663
 */
1664
export const DocumentApiFp = function (configuration?: Configuration) {
1665
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration);
1666
    return {
1667
        /**
1668
         *
1669
         * @param {number} [pageIndex]
1670
         * @param {number} [pageSize]
1671
         * @param {*} [options] Override http request option.
1672
         * @throws {RequiredError}
1673
         */
1674
        async documentsGet(
1675
            pageIndex?: number,
1676
            pageSize?: number,
1677
            options?: AxiosRequestConfig
1678
        ): Promise<
1679
            (
1680
                axios?: AxiosInstance,
1681
                basePath?: string
1682
            ) => AxiosPromise<DocumentListResponse>
1683
        > {
1684
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(
1685
                pageIndex,
1686
                pageSize,
1687
                options
1688
            );
1689
            return createRequestFunction(
1690
                localVarAxiosArgs,
1691
                globalAxios,
1692
                BASE_PATH,
1693
                configuration
1694
            );
1695
        },
1696
        /**
1697
         *
1698
         * @param {DocumentAddRequest} [documentAddRequest]
1699
         * @param {*} [options] Override http request option.
1700
         * @throws {RequiredError}
1701
         */
1702
        async documentsPost(
1703
            documentAddRequest?: DocumentAddRequest,
1704
            options?: AxiosRequestConfig
1705
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1706
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(
1707
                documentAddRequest,
1708
                options
1709
            );
1710
            return createRequestFunction(
1711
                localVarAxiosArgs,
1712
                globalAxios,
1713
                BASE_PATH,
1714
                configuration
1715
            );
1716
        },
1717
    };
1718
};
1719

    
1720
/**
1721
 * DocumentApi - factory interface
1722
 * @export
1723
 */
1724
export const DocumentApiFactory = function (
1725
    configuration?: Configuration,
1726
    basePath?: string,
1727
    axios?: AxiosInstance
1728
) {
1729
    const localVarFp = DocumentApiFp(configuration);
1730
    return {
1731
        /**
1732
         *
1733
         * @param {number} [pageIndex]
1734
         * @param {number} [pageSize]
1735
         * @param {*} [options] Override http request option.
1736
         * @throws {RequiredError}
1737
         */
1738
        documentsGet(
1739
            pageIndex?: number,
1740
            pageSize?: number,
1741
            options?: any
1742
        ): AxiosPromise<DocumentListResponse> {
1743
            return localVarFp
1744
                .documentsGet(pageIndex, pageSize, options)
1745
                .then((request) => request(axios, basePath));
1746
        },
1747
        /**
1748
         *
1749
         * @param {DocumentAddRequest} [documentAddRequest]
1750
         * @param {*} [options] Override http request option.
1751
         * @throws {RequiredError}
1752
         */
1753
        documentsPost(
1754
            documentAddRequest?: DocumentAddRequest,
1755
            options?: any
1756
        ): AxiosPromise<void> {
1757
            return localVarFp
1758
                .documentsPost(documentAddRequest, options)
1759
                .then((request) => request(axios, basePath));
1760
        },
1761
    };
1762
};
1763

    
1764
/**
1765
 * DocumentApi - object-oriented interface
1766
 * @export
1767
 * @class DocumentApi
1768
 * @extends {BaseAPI}
1769
 */
1770
export class DocumentApi extends BaseAPI {
1771
    /**
1772
     *
1773
     * @param {number} [pageIndex]
1774
     * @param {number} [pageSize]
1775
     * @param {*} [options] Override http request option.
1776
     * @throws {RequiredError}
1777
     * @memberof DocumentApi
1778
     */
1779
    public documentsGet(
1780
        pageIndex?: number,
1781
        pageSize?: number,
1782
        options?: AxiosRequestConfig
1783
    ) {
1784
        return DocumentApiFp(this.configuration)
1785
            .documentsGet(pageIndex, pageSize, options)
1786
            .then((request) => request(this.axios, this.basePath));
1787
    }
1788

    
1789
    /**
1790
     *
1791
     * @param {DocumentAddRequest} [documentAddRequest]
1792
     * @param {*} [options] Override http request option.
1793
     * @throws {RequiredError}
1794
     * @memberof DocumentApi
1795
     */
1796
    public documentsPost(
1797
        documentAddRequest?: DocumentAddRequest,
1798
        options?: AxiosRequestConfig
1799
    ) {
1800
        return DocumentApiFp(this.configuration)
1801
            .documentsPost(documentAddRequest, options)
1802
            .then((request) => request(this.axios, this.basePath));
1803
    }
1804
}
1805

    
1806
/**
1807
 * TagApi - axios parameter creator
1808
 * @export
1809
 */
1810
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
1811
    return {
1812
        /**
1813
         *
1814
         * @param {*} [options] Override http request option.
1815
         * @throws {RequiredError}
1816
         */
1817
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1818
            const localVarPath = `/tags`;
1819
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1820
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1821
            let baseOptions;
1822
            if (configuration) {
1823
                baseOptions = configuration.baseOptions;
1824
            }
1825

    
1826
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1827
            const localVarHeaderParameter = {} as any;
1828
            const localVarQueryParameter = {} as any;
1829

    
1830
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1831
            let headersFromBaseOptions =
1832
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1833
            localVarRequestOptions.headers = {
1834
                ...localVarHeaderParameter,
1835
                ...headersFromBaseOptions,
1836
                ...options.headers,
1837
            };
1838

    
1839
            return {
1840
                url: toPathString(localVarUrlObj),
1841
                options: localVarRequestOptions,
1842
            };
1843
        },
1844
    };
1845
};
1846

    
1847
/**
1848
 * TagApi - functional programming interface
1849
 * @export
1850
 */
1851
export const TagApiFp = function (configuration?: Configuration) {
1852
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration);
1853
    return {
1854
        /**
1855
         *
1856
         * @param {*} [options] Override http request option.
1857
         * @throws {RequiredError}
1858
         */
1859
        async tagsGet(
1860
            options?: AxiosRequestConfig
1861
        ): Promise<
1862
            (axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>
1863
        > {
1864
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
1865
            return createRequestFunction(
1866
                localVarAxiosArgs,
1867
                globalAxios,
1868
                BASE_PATH,
1869
                configuration
1870
            );
1871
        },
1872
    };
1873
};
1874

    
1875
/**
1876
 * TagApi - factory interface
1877
 * @export
1878
 */
1879
export const TagApiFactory = function (
1880
    configuration?: Configuration,
1881
    basePath?: string,
1882
    axios?: AxiosInstance
1883
) {
1884
    const localVarFp = TagApiFp(configuration);
1885
    return {
1886
        /**
1887
         *
1888
         * @param {*} [options] Override http request option.
1889
         * @throws {RequiredError}
1890
         */
1891
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
1892
            return localVarFp
1893
                .tagsGet(options)
1894
                .then((request) => request(axios, basePath));
1895
        },
1896
    };
1897
};
1898

    
1899
/**
1900
 * TagApi - object-oriented interface
1901
 * @export
1902
 * @class TagApi
1903
 * @extends {BaseAPI}
1904
 */
1905
export class TagApi extends BaseAPI {
1906
    /**
1907
     *
1908
     * @param {*} [options] Override http request option.
1909
     * @throws {RequiredError}
1910
     * @memberof TagApi
1911
     */
1912
    public tagsGet(options?: AxiosRequestConfig) {
1913
        return TagApiFp(this.configuration)
1914
            .tagsGet(options)
1915
            .then((request) => request(this.axios, this.basePath));
1916
    }
1917
}
1918

    
1919
/**
1920
 * UserApi - axios parameter creator
1921
 * @export
1922
 */
1923
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
1924
    return {
1925
        /**
1926
         *
1927
         * @param {*} [options] Override http request option.
1928
         * @throws {RequiredError}
1929
         */
1930
        userAnnotationsGet: async (
1931
            options: AxiosRequestConfig = {}
1932
        ): Promise<RequestArgs> => {
1933
            const localVarPath = `/user/annotations`;
1934
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1935
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1936
            let baseOptions;
1937
            if (configuration) {
1938
                baseOptions = configuration.baseOptions;
1939
            }
1940

    
1941
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1942
            const localVarHeaderParameter = {} as any;
1943
            const localVarQueryParameter = {} as any;
1944

    
1945
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1946
            let headersFromBaseOptions =
1947
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1948
            localVarRequestOptions.headers = {
1949
                ...localVarHeaderParameter,
1950
                ...headersFromBaseOptions,
1951
                ...options.headers,
1952
            };
1953

    
1954
            return {
1955
                url: toPathString(localVarUrlObj),
1956
                options: localVarRequestOptions,
1957
            };
1958
        },
1959
        /**
1960
         *
1961
         * @param {string} userId
1962
         * @param {*} [options] Override http request option.
1963
         * @throws {RequiredError}
1964
         */
1965
        userUserIdAnnotationsGet: async (
1966
            userId: string,
1967
            options: AxiosRequestConfig = {}
1968
        ): Promise<RequestArgs> => {
1969
            // verify required parameter 'userId' is not null or undefined
1970
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId);
1971
            const localVarPath = `/user/{userId}/annotations`.replace(
1972
                `{${'userId'}}`,
1973
                encodeURIComponent(String(userId))
1974
            );
1975
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1976
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1977
            let baseOptions;
1978
            if (configuration) {
1979
                baseOptions = configuration.baseOptions;
1980
            }
1981

    
1982
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1983
            const localVarHeaderParameter = {} as any;
1984
            const localVarQueryParameter = {} as any;
1985

    
1986
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1987
            let headersFromBaseOptions =
1988
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
1989
            localVarRequestOptions.headers = {
1990
                ...localVarHeaderParameter,
1991
                ...headersFromBaseOptions,
1992
                ...options.headers,
1993
            };
1994

    
1995
            return {
1996
                url: toPathString(localVarUrlObj),
1997
                options: localVarRequestOptions,
1998
            };
1999
        },
2000
        /**
2001
         *
2002
         * @param {string} userId
2003
         * @param {*} [options] Override http request option.
2004
         * @throws {RequiredError}
2005
         */
2006
        userUserIdDelete: async (
2007
            userId: string,
2008
            options: AxiosRequestConfig = {}
2009
        ): Promise<RequestArgs> => {
2010
            // verify required parameter 'userId' is not null or undefined
2011
            assertParamExists('userUserIdDelete', 'userId', userId);
2012
            const localVarPath = `/user/{userId}`.replace(
2013
                `{${'userId'}}`,
2014
                encodeURIComponent(String(userId))
2015
            );
2016
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2017
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2018
            let baseOptions;
2019
            if (configuration) {
2020
                baseOptions = configuration.baseOptions;
2021
            }
2022

    
2023
            const localVarRequestOptions = {
2024
                method: 'DELETE',
2025
                ...baseOptions,
2026
                ...options,
2027
            };
2028
            const localVarHeaderParameter = {} as any;
2029
            const localVarQueryParameter = {} as any;
2030

    
2031
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2032
            let headersFromBaseOptions =
2033
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2034
            localVarRequestOptions.headers = {
2035
                ...localVarHeaderParameter,
2036
                ...headersFromBaseOptions,
2037
                ...options.headers,
2038
            };
2039

    
2040
            return {
2041
                url: toPathString(localVarUrlObj),
2042
                options: localVarRequestOptions,
2043
            };
2044
        },
2045
        /**
2046
         *
2047
         * @param {string} userId
2048
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2049
         * @param {*} [options] Override http request option.
2050
         * @throws {RequiredError}
2051
         */
2052
        userUserIdPut: async (
2053
            userId: string,
2054
            changeUserInfoRequest?: ChangeUserInfoRequest,
2055
            options: AxiosRequestConfig = {}
2056
        ): Promise<RequestArgs> => {
2057
            // verify required parameter 'userId' is not null or undefined
2058
            assertParamExists('userUserIdPut', 'userId', userId);
2059
            const localVarPath = `/user/{userId}`.replace(
2060
                `{${'userId'}}`,
2061
                encodeURIComponent(String(userId))
2062
            );
2063
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2064
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2065
            let baseOptions;
2066
            if (configuration) {
2067
                baseOptions = configuration.baseOptions;
2068
            }
2069

    
2070
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2071
            const localVarHeaderParameter = {} as any;
2072
            const localVarQueryParameter = {} as any;
2073

    
2074
            localVarHeaderParameter['Content-Type'] = 'application/json';
2075

    
2076
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2077
            let headersFromBaseOptions =
2078
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2079
            localVarRequestOptions.headers = {
2080
                ...localVarHeaderParameter,
2081
                ...headersFromBaseOptions,
2082
                ...options.headers,
2083
            };
2084
            localVarRequestOptions.data = serializeDataIfNeeded(
2085
                changeUserInfoRequest,
2086
                localVarRequestOptions,
2087
                configuration
2088
            );
2089

    
2090
            return {
2091
                url: toPathString(localVarUrlObj),
2092
                options: localVarRequestOptions,
2093
            };
2094
        },
2095
        /**
2096
         *
2097
         * @param {*} [options] Override http request option.
2098
         * @throws {RequiredError}
2099
         */
2100
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2101
            const localVarPath = `/users`;
2102
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2103
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2104
            let baseOptions;
2105
            if (configuration) {
2106
                baseOptions = configuration.baseOptions;
2107
            }
2108

    
2109
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2110
            const localVarHeaderParameter = {} as any;
2111
            const localVarQueryParameter = {} as any;
2112

    
2113
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2114
            let headersFromBaseOptions =
2115
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2116
            localVarRequestOptions.headers = {
2117
                ...localVarHeaderParameter,
2118
                ...headersFromBaseOptions,
2119
                ...options.headers,
2120
            };
2121

    
2122
            return {
2123
                url: toPathString(localVarUrlObj),
2124
                options: localVarRequestOptions,
2125
            };
2126
        },
2127
        /**
2128
         *
2129
         * @param {CreateUserRequest} [createUserRequest]
2130
         * @param {*} [options] Override http request option.
2131
         * @throws {RequiredError}
2132
         */
2133
        usersPost: async (
2134
            createUserRequest?: CreateUserRequest,
2135
            options: AxiosRequestConfig = {}
2136
        ): Promise<RequestArgs> => {
2137
            const localVarPath = `/users`;
2138
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2139
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2140
            let baseOptions;
2141
            if (configuration) {
2142
                baseOptions = configuration.baseOptions;
2143
            }
2144

    
2145
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2146
            const localVarHeaderParameter = {} as any;
2147
            const localVarQueryParameter = {} as any;
2148

    
2149
            localVarHeaderParameter['Content-Type'] = 'application/json';
2150

    
2151
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2152
            let headersFromBaseOptions =
2153
                baseOptions && baseOptions.headers ? baseOptions.headers : {};
2154
            localVarRequestOptions.headers = {
2155
                ...localVarHeaderParameter,
2156
                ...headersFromBaseOptions,
2157
                ...options.headers,
2158
            };
2159
            localVarRequestOptions.data = serializeDataIfNeeded(
2160
                createUserRequest,
2161
                localVarRequestOptions,
2162
                configuration
2163
            );
2164

    
2165
            return {
2166
                url: toPathString(localVarUrlObj),
2167
                options: localVarRequestOptions,
2168
            };
2169
        },
2170
    };
2171
};
2172

    
2173
/**
2174
 * UserApi - functional programming interface
2175
 * @export
2176
 */
2177
export const UserApiFp = function (configuration?: Configuration) {
2178
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
2179
    return {
2180
        /**
2181
         *
2182
         * @param {*} [options] Override http request option.
2183
         * @throws {RequiredError}
2184
         */
2185
        async userAnnotationsGet(
2186
            options?: AxiosRequestConfig
2187
        ): Promise<
2188
            (
2189
                axios?: AxiosInstance,
2190
                basePath?: string
2191
            ) => AxiosPromise<AnnotationListResponse>
2192
        > {
2193
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(
2194
                options
2195
            );
2196
            return createRequestFunction(
2197
                localVarAxiosArgs,
2198
                globalAxios,
2199
                BASE_PATH,
2200
                configuration
2201
            );
2202
        },
2203
        /**
2204
         *
2205
         * @param {string} userId
2206
         * @param {*} [options] Override http request option.
2207
         * @throws {RequiredError}
2208
         */
2209
        async userUserIdAnnotationsGet(
2210
            userId: string,
2211
            options?: AxiosRequestConfig
2212
        ): Promise<
2213
            (
2214
                axios?: AxiosInstance,
2215
                basePath?: string
2216
            ) => AxiosPromise<AnnotationListResponse>
2217
        > {
2218
            const localVarAxiosArgs =
2219
                await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
2220
            return createRequestFunction(
2221
                localVarAxiosArgs,
2222
                globalAxios,
2223
                BASE_PATH,
2224
                configuration
2225
            );
2226
        },
2227
        /**
2228
         *
2229
         * @param {string} userId
2230
         * @param {*} [options] Override http request option.
2231
         * @throws {RequiredError}
2232
         */
2233
        async userUserIdDelete(
2234
            userId: string,
2235
            options?: AxiosRequestConfig
2236
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2237
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(
2238
                userId,
2239
                options
2240
            );
2241
            return createRequestFunction(
2242
                localVarAxiosArgs,
2243
                globalAxios,
2244
                BASE_PATH,
2245
                configuration
2246
            );
2247
        },
2248
        /**
2249
         *
2250
         * @param {string} userId
2251
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2252
         * @param {*} [options] Override http request option.
2253
         * @throws {RequiredError}
2254
         */
2255
        async userUserIdPut(
2256
            userId: string,
2257
            changeUserInfoRequest?: ChangeUserInfoRequest,
2258
            options?: AxiosRequestConfig
2259
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2260
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(
2261
                userId,
2262
                changeUserInfoRequest,
2263
                options
2264
            );
2265
            return createRequestFunction(
2266
                localVarAxiosArgs,
2267
                globalAxios,
2268
                BASE_PATH,
2269
                configuration
2270
            );
2271
        },
2272
        /**
2273
         *
2274
         * @param {*} [options] Override http request option.
2275
         * @throws {RequiredError}
2276
         */
2277
        async usersGet(
2278
            options?: AxiosRequestConfig
2279
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
2280
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
2281
            return createRequestFunction(
2282
                localVarAxiosArgs,
2283
                globalAxios,
2284
                BASE_PATH,
2285
                configuration
2286
            );
2287
        },
2288
        /**
2289
         *
2290
         * @param {CreateUserRequest} [createUserRequest]
2291
         * @param {*} [options] Override http request option.
2292
         * @throws {RequiredError}
2293
         */
2294
        async usersPost(
2295
            createUserRequest?: CreateUserRequest,
2296
            options?: AxiosRequestConfig
2297
        ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2298
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(
2299
                createUserRequest,
2300
                options
2301
            );
2302
            return createRequestFunction(
2303
                localVarAxiosArgs,
2304
                globalAxios,
2305
                BASE_PATH,
2306
                configuration
2307
            );
2308
        },
2309
    };
2310
};
2311

    
2312
/**
2313
 * UserApi - factory interface
2314
 * @export
2315
 */
2316
export const UserApiFactory = function (
2317
    configuration?: Configuration,
2318
    basePath?: string,
2319
    axios?: AxiosInstance
2320
) {
2321
    const localVarFp = UserApiFp(configuration);
2322
    return {
2323
        /**
2324
         *
2325
         * @param {*} [options] Override http request option.
2326
         * @throws {RequiredError}
2327
         */
2328
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
2329
            return localVarFp
2330
                .userAnnotationsGet(options)
2331
                .then((request) => request(axios, basePath));
2332
        },
2333
        /**
2334
         *
2335
         * @param {string} userId
2336
         * @param {*} [options] Override http request option.
2337
         * @throws {RequiredError}
2338
         */
2339
        userUserIdAnnotationsGet(
2340
            userId: string,
2341
            options?: any
2342
        ): AxiosPromise<AnnotationListResponse> {
2343
            return localVarFp
2344
                .userUserIdAnnotationsGet(userId, options)
2345
                .then((request) => request(axios, basePath));
2346
        },
2347
        /**
2348
         *
2349
         * @param {string} userId
2350
         * @param {*} [options] Override http request option.
2351
         * @throws {RequiredError}
2352
         */
2353
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
2354
            return localVarFp
2355
                .userUserIdDelete(userId, options)
2356
                .then((request) => request(axios, basePath));
2357
        },
2358
        /**
2359
         *
2360
         * @param {string} userId
2361
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2362
         * @param {*} [options] Override http request option.
2363
         * @throws {RequiredError}
2364
         */
2365
        userUserIdPut(
2366
            userId: string,
2367
            changeUserInfoRequest?: ChangeUserInfoRequest,
2368
            options?: any
2369
        ): AxiosPromise<void> {
2370
            return localVarFp
2371
                .userUserIdPut(userId, changeUserInfoRequest, options)
2372
                .then((request) => request(axios, basePath));
2373
        },
2374
        /**
2375
         *
2376
         * @param {*} [options] Override http request option.
2377
         * @throws {RequiredError}
2378
         */
2379
        usersGet(options?: any): AxiosPromise<UserList> {
2380
            return localVarFp
2381
                .usersGet(options)
2382
                .then((request) => request(axios, basePath));
2383
        },
2384
        /**
2385
         *
2386
         * @param {CreateUserRequest} [createUserRequest]
2387
         * @param {*} [options] Override http request option.
2388
         * @throws {RequiredError}
2389
         */
2390
        usersPost(
2391
            createUserRequest?: CreateUserRequest,
2392
            options?: any
2393
        ): AxiosPromise<void> {
2394
            return localVarFp
2395
                .usersPost(createUserRequest, options)
2396
                .then((request) => request(axios, basePath));
2397
        },
2398
    };
2399
};
2400

    
2401
/**
2402
 * UserApi - object-oriented interface
2403
 * @export
2404
 * @class UserApi
2405
 * @extends {BaseAPI}
2406
 */
2407
export class UserApi extends BaseAPI {
2408
    /**
2409
     *
2410
     * @param {*} [options] Override http request option.
2411
     * @throws {RequiredError}
2412
     * @memberof UserApi
2413
     */
2414
    public userAnnotationsGet(options?: AxiosRequestConfig) {
2415
        return UserApiFp(this.configuration)
2416
            .userAnnotationsGet(options)
2417
            .then((request) => request(this.axios, this.basePath));
2418
    }
2419

    
2420
    /**
2421
     *
2422
     * @param {string} userId
2423
     * @param {*} [options] Override http request option.
2424
     * @throws {RequiredError}
2425
     * @memberof UserApi
2426
     */
2427
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
2428
        return UserApiFp(this.configuration)
2429
            .userUserIdAnnotationsGet(userId, options)
2430
            .then((request) => request(this.axios, this.basePath));
2431
    }
2432

    
2433
    /**
2434
     *
2435
     * @param {string} userId
2436
     * @param {*} [options] Override http request option.
2437
     * @throws {RequiredError}
2438
     * @memberof UserApi
2439
     */
2440
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
2441
        return UserApiFp(this.configuration)
2442
            .userUserIdDelete(userId, options)
2443
            .then((request) => request(this.axios, this.basePath));
2444
    }
2445

    
2446
    /**
2447
     *
2448
     * @param {string} userId
2449
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest]
2450
     * @param {*} [options] Override http request option.
2451
     * @throws {RequiredError}
2452
     * @memberof UserApi
2453
     */
2454
    public userUserIdPut(
2455
        userId: string,
2456
        changeUserInfoRequest?: ChangeUserInfoRequest,
2457
        options?: AxiosRequestConfig
2458
    ) {
2459
        return UserApiFp(this.configuration)
2460
            .userUserIdPut(userId, changeUserInfoRequest, options)
2461
            .then((request) => request(this.axios, this.basePath));
2462
    }
2463

    
2464
    /**
2465
     *
2466
     * @param {*} [options] Override http request option.
2467
     * @throws {RequiredError}
2468
     * @memberof UserApi
2469
     */
2470
    public usersGet(options?: AxiosRequestConfig) {
2471
        return UserApiFp(this.configuration)
2472
            .usersGet(options)
2473
            .then((request) => request(this.axios, this.basePath));
2474
    }
2475

    
2476
    /**
2477
     *
2478
     * @param {CreateUserRequest} [createUserRequest]
2479
     * @param {*} [options] Override http request option.
2480
     * @throws {RequiredError}
2481
     * @memberof UserApi
2482
     */
2483
    public usersPost(
2484
        createUserRequest?: CreateUserRequest,
2485
        options?: AxiosRequestConfig
2486
    ) {
2487
        return UserApiFp(this.configuration)
2488
            .usersPost(createUserRequest, options)
2489
            .then((request) => request(this.axios, this.basePath));
2490
    }
2491
}
(4-4/9)