Projekt

Obecné

Profil

Stáhnout (121 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 AddNoteToAnnotationRequest
28
 */
29
export interface AddNoteToAnnotationRequest {
30
    /**
31
     * 
32
     * @type {string}
33
     * @memberof AddNoteToAnnotationRequest
34
     */
35
    'note'?: string | null;
36
}
37
/**
38
 * 
39
 * @export
40
 * @interface AddNoteToTagOccurenceRequest
41
 */
42
export interface AddNoteToTagOccurenceRequest {
43
    /**
44
     * 
45
     * @type {string}
46
     * @memberof AddNoteToTagOccurenceRequest
47
     */
48
    'note'?: string | null;
49
}
50
/**
51
 * 
52
 * @export
53
 * @interface AnnotationInfo
54
 */
55
export interface AnnotationInfo {
56
    /**
57
     * 
58
     * @type {string}
59
     * @memberof AnnotationInfo
60
     */
61
    'sourceDocumentContent'?: string | null;
62
    /**
63
     * 
64
     * @type {string}
65
     * @memberof AnnotationInfo
66
     */
67
    'documentToRender'?: string | null;
68
    /**
69
     * 
70
     * @type {Array<number>}
71
     * @memberof AnnotationInfo
72
     */
73
    'tagStartPositions'?: Array<number> | null;
74
    /**
75
     * 
76
     * @type {Array<number>}
77
     * @memberof AnnotationInfo
78
     */
79
    'tagLengths'?: Array<number> | null;
80
    /**
81
     * 
82
     * @type {EState}
83
     * @memberof AnnotationInfo
84
     */
85
    'state'?: EState;
86
    /**
87
     * 
88
     * @type {EDocumentType}
89
     * @memberof AnnotationInfo
90
     */
91
    'type'?: EDocumentType;
92
    /**
93
     * 
94
     * @type {string}
95
     * @memberof AnnotationInfo
96
     */
97
    'note'?: string | null;
98
    /**
99
     * 
100
     * @type {Array<TagInstanceInfo>}
101
     * @memberof AnnotationInfo
102
     */
103
    'tagInstances'?: Array<TagInstanceInfo> | null;
104
}
105
/**
106
 * 
107
 * @export
108
 * @interface AnnotationInstanceAddRequest
109
 */
110
export interface AnnotationInstanceAddRequest {
111
    /**
112
     * 
113
     * @type {number}
114
     * @memberof AnnotationInstanceAddRequest
115
     */
116
    'position'?: number;
117
    /**
118
     * 
119
     * @type {number}
120
     * @memberof AnnotationInstanceAddRequest
121
     */
122
    'length'?: number;
123
    /**
124
     * 
125
     * @type {ETagType}
126
     * @memberof AnnotationInstanceAddRequest
127
     */
128
    'type'?: ETagType;
129
    /**
130
     * 
131
     * @type {string}
132
     * @memberof AnnotationInstanceAddRequest
133
     */
134
    'id'?: string;
135
    /**
136
     * 
137
     * @type {string}
138
     * @memberof AnnotationInstanceAddRequest
139
     */
140
    'instanceId'?: string | null;
141
}
142
/**
143
 * 
144
 * @export
145
 * @interface AnnotationListInfo
146
 */
147
export interface AnnotationListInfo {
148
    /**
149
     * 
150
     * @type {string}
151
     * @memberof AnnotationListInfo
152
     */
153
    'documentName'?: string | null;
154
    /**
155
     * 
156
     * @type {EState}
157
     * @memberof AnnotationListInfo
158
     */
159
    'state'?: EState;
160
    /**
161
     * 
162
     * @type {string}
163
     * @memberof AnnotationListInfo
164
     */
165
    'annotationId'?: string;
166
}
167
/**
168
 * 
169
 * @export
170
 * @interface AnnotationListResponse
171
 */
172
export interface AnnotationListResponse {
173
    /**
174
     * 
175
     * @type {Array<AnnotationListInfo>}
176
     * @memberof AnnotationListResponse
177
     */
178
    'annotations'?: Array<AnnotationListInfo> | null;
179
}
180
/**
181
 * 
182
 * @export
183
 * @interface AnnotationsAddRequest
184
 */
185
export interface AnnotationsAddRequest {
186
    /**
187
     * 
188
     * @type {Array<string>}
189
     * @memberof AnnotationsAddRequest
190
     */
191
    'userIdList'?: Array<string> | null;
192
    /**
193
     * 
194
     * @type {Array<string>}
195
     * @memberof AnnotationsAddRequest
196
     */
197
    'documentIdList'?: Array<string> | null;
198
}
199
/**
200
 * 
201
 * @export
202
 * @interface ChangeUserInfoRequest
203
 */
204
export interface ChangeUserInfoRequest {
205
    /**
206
     * 
207
     * @type {string}
208
     * @memberof ChangeUserInfoRequest
209
     */
210
    'password'?: string | null;
211
    /**
212
     * 
213
     * @type {string}
214
     * @memberof ChangeUserInfoRequest
215
     */
216
    'username'?: string | null;
217
    /**
218
     * 
219
     * @type {string}
220
     * @memberof ChangeUserInfoRequest
221
     */
222
    'name'?: string | null;
223
    /**
224
     * 
225
     * @type {string}
226
     * @memberof ChangeUserInfoRequest
227
     */
228
    'surname'?: string | null;
229
    /**
230
     * 
231
     * @type {ERole}
232
     * @memberof ChangeUserInfoRequest
233
     */
234
    'role'?: ERole;
235
}
236
/**
237
 * 
238
 * @export
239
 * @interface ClientInfo
240
 */
241
export interface ClientInfo {
242
    /**
243
     * 
244
     * @type {boolean}
245
     * @memberof ClientInfo
246
     */
247
    'isLogged'?: boolean;
248
    /**
249
     * 
250
     * @type {User}
251
     * @memberof ClientInfo
252
     */
253
    'loggedUser'?: User;
254
    /**
255
     * 
256
     * @type {string}
257
     * @memberof ClientInfo
258
     */
259
    'ip'?: string | null;
260
}
261
/**
262
 * 
263
 * @export
264
 * @interface CreateCategoryRequest
265
 */
266
export interface CreateCategoryRequest {
267
    /**
268
     * 
269
     * @type {string}
270
     * @memberof CreateCategoryRequest
271
     */
272
    'name'?: string | null;
273
    /**
274
     * 
275
     * @type {string}
276
     * @memberof CreateCategoryRequest
277
     */
278
    'description'?: string | null;
279
    /**
280
     * 
281
     * @type {string}
282
     * @memberof CreateCategoryRequest
283
     */
284
    'color'?: string | null;
285
    /**
286
     * 
287
     * @type {boolean}
288
     * @memberof CreateCategoryRequest
289
     */
290
    'disabledForAnnotators'?: boolean;
291
}
292
/**
293
 * 
294
 * @export
295
 * @interface CreateSubTagRequest
296
 */
297
export interface CreateSubTagRequest {
298
    /**
299
     * 
300
     * @type {string}
301
     * @memberof CreateSubTagRequest
302
     */
303
    'name'?: string | null;
304
    /**
305
     * 
306
     * @type {string}
307
     * @memberof CreateSubTagRequest
308
     */
309
    'description'?: string | null;
310
    /**
311
     * 
312
     * @type {string}
313
     * @memberof CreateSubTagRequest
314
     */
315
    'tagId'?: string;
316
    /**
317
     * 
318
     * @type {boolean}
319
     * @memberof CreateSubTagRequest
320
     */
321
    'sentimentEnabled'?: boolean;
322
}
323
/**
324
 * 
325
 * @export
326
 * @interface CreateTagRequest
327
 */
328
export interface CreateTagRequest {
329
    /**
330
     * 
331
     * @type {string}
332
     * @memberof CreateTagRequest
333
     */
334
    'categoryId'?: string;
335
    /**
336
     * 
337
     * @type {string}
338
     * @memberof CreateTagRequest
339
     */
340
    'name'?: string | null;
341
    /**
342
     * 
343
     * @type {string}
344
     * @memberof CreateTagRequest
345
     */
346
    'description'?: string | null;
347
    /**
348
     * 
349
     * @type {string}
350
     * @memberof CreateTagRequest
351
     */
352
    'color'?: string | null;
353
    /**
354
     * 
355
     * @type {boolean}
356
     * @memberof CreateTagRequest
357
     */
358
    'sentimentEnabled'?: boolean;
359
}
360
/**
361
 * 
362
 * @export
363
 * @interface CreateUserRequest
364
 */
365
export interface CreateUserRequest {
366
    /**
367
     * 
368
     * @type {string}
369
     * @memberof CreateUserRequest
370
     */
371
    'username'?: string | null;
372
    /**
373
     * 
374
     * @type {string}
375
     * @memberof CreateUserRequest
376
     */
377
    'password'?: string | null;
378
    /**
379
     * 
380
     * @type {string}
381
     * @memberof CreateUserRequest
382
     */
383
    'name'?: string | null;
384
    /**
385
     * 
386
     * @type {string}
387
     * @memberof CreateUserRequest
388
     */
389
    'surname'?: string | null;
390
    /**
391
     * 
392
     * @type {ERole}
393
     * @memberof CreateUserRequest
394
     */
395
    'role'?: ERole;
396
}
397
/**
398
 * 
399
 * @export
400
 * @interface DocumentAddInfo
401
 */
402
export interface DocumentAddInfo {
403
    /**
404
     * 
405
     * @type {string}
406
     * @memberof DocumentAddInfo
407
     */
408
    'name'?: string | null;
409
    /**
410
     * 
411
     * @type {EAddDocumentFormat}
412
     * @memberof DocumentAddInfo
413
     */
414
    'format'?: EAddDocumentFormat;
415
    /**
416
     * 
417
     * @type {string}
418
     * @memberof DocumentAddInfo
419
     */
420
    'content'?: string | null;
421
}
422
/**
423
 * 
424
 * @export
425
 * @interface DocumentAddRequest
426
 */
427
export interface DocumentAddRequest {
428
    /**
429
     * 
430
     * @type {Array<DocumentAddInfo>}
431
     * @memberof DocumentAddRequest
432
     */
433
    'documents'?: Array<DocumentAddInfo> | null;
434
}
435
/**
436
 * 
437
 * @export
438
 * @interface DocumentListInfo
439
 */
440
export interface DocumentListInfo {
441
    /**
442
     * 
443
     * @type {string}
444
     * @memberof DocumentListInfo
445
     */
446
    'id'?: string;
447
    /**
448
     * 
449
     * @type {string}
450
     * @memberof DocumentListInfo
451
     */
452
    'name'?: string | null;
453
    /**
454
     * 
455
     * @type {number}
456
     * @memberof DocumentListInfo
457
     */
458
    'length'?: number;
459
    /**
460
     * 
461
     * @type {number}
462
     * @memberof DocumentListInfo
463
     */
464
    'requiredAnnotations'?: number;
465
    /**
466
     * 
467
     * @type {Array<DocumentUserInfo>}
468
     * @memberof DocumentListInfo
469
     */
470
    'annotatingUsers'?: Array<DocumentUserInfo> | null;
471
}
472
/**
473
 * 
474
 * @export
475
 * @interface DocumentListResponse
476
 */
477
export interface DocumentListResponse {
478
    /**
479
     * 
480
     * @type {number}
481
     * @memberof DocumentListResponse
482
     */
483
    'totalCount'?: number;
484
    /**
485
     * 
486
     * @type {number}
487
     * @memberof DocumentListResponse
488
     */
489
    'pageCount'?: number;
490
    /**
491
     * 
492
     * @type {number}
493
     * @memberof DocumentListResponse
494
     */
495
    'pageIndex'?: number;
496
    /**
497
     * 
498
     * @type {Array<DocumentListInfo>}
499
     * @memberof DocumentListResponse
500
     */
501
    'documents'?: Array<DocumentListInfo> | null;
502
}
503
/**
504
 * 
505
 * @export
506
 * @interface DocumentPreviewResponse
507
 */
508
export interface DocumentPreviewResponse {
509
    /**
510
     * 
511
     * @type {string}
512
     * @memberof DocumentPreviewResponse
513
     */
514
    'content'?: string | null;
515
}
516
/**
517
 * 
518
 * @export
519
 * @interface DocumentUserInfo
520
 */
521
export interface DocumentUserInfo {
522
    /**
523
     * 
524
     * @type {string}
525
     * @memberof DocumentUserInfo
526
     */
527
    'id'?: string;
528
    /**
529
     * 
530
     * @type {string}
531
     * @memberof DocumentUserInfo
532
     */
533
    'username'?: string | null;
534
    /**
535
     * 
536
     * @type {string}
537
     * @memberof DocumentUserInfo
538
     */
539
    'name'?: string | null;
540
    /**
541
     * 
542
     * @type {string}
543
     * @memberof DocumentUserInfo
544
     */
545
    'surname'?: string | null;
546
    /**
547
     * 
548
     * @type {EState}
549
     * @memberof DocumentUserInfo
550
     */
551
    'state'?: EState;
552
}
553
/**
554
 * 
555
 * @export
556
 * @enum {string}
557
 */
558

    
559
export const EAddDocumentFormat = {
560
    Zip: 'ZIP',
561
    Textfile: 'TEXTFILE'
562
} as const;
563

    
564
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
565

    
566

    
567
/**
568
 * 
569
 * @export
570
 * @enum {string}
571
 */
572

    
573
export const EDocumentType = {
574
    Html: 'HTML',
575
    Text: 'TEXT'
576
} as const;
577

    
578
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
579

    
580

    
581
/**
582
 * 
583
 * @export
584
 * @enum {string}
585
 */
586

    
587
export const ERole = {
588
    Annotator: 'ANNOTATOR',
589
    Administrator: 'ADMINISTRATOR'
590
} as const;
591

    
592
export type ERole = typeof ERole[keyof typeof ERole];
593

    
594

    
595
/**
596
 * 
597
 * @export
598
 * @enum {string}
599
 */
600

    
601
export const EState = {
602
    Done: 'DONE',
603
    InProgress: 'IN_PROGRESS',
604
    New: 'NEW'
605
} as const;
606

    
607
export type EState = typeof EState[keyof typeof EState];
608

    
609

    
610
/**
611
 * 
612
 * @export
613
 * @enum {string}
614
 */
615

    
616
export const ETagSentiment = {
617
    Neutral: 'NEUTRAL',
618
    Positive: 'POSITIVE',
619
    Negative: 'NEGATIVE'
620
} as const;
621

    
622
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment];
623

    
624

    
625
/**
626
 * 
627
 * @export
628
 * @enum {string}
629
 */
630

    
631
export const ETagType = {
632
    Tag: 'TAG',
633
    Subtag: 'SUBTAG'
634
} as const;
635

    
636
export type ETagType = typeof ETagType[keyof typeof ETagType];
637

    
638

    
639
/**
640
 * 
641
 * @export
642
 * @interface GetRequiredAnnotationsGlobalResponse
643
 */
644
export interface GetRequiredAnnotationsGlobalResponse {
645
    /**
646
     * 
647
     * @type {number}
648
     * @memberof GetRequiredAnnotationsGlobalResponse
649
     */
650
    'requiredAnnotationsGlobal'?: number;
651
}
652
/**
653
 * 
654
 * @export
655
 * @interface LoginRequest
656
 */
657
export interface LoginRequest {
658
    /**
659
     * 
660
     * @type {string}
661
     * @memberof LoginRequest
662
     */
663
    'username'?: string | null;
664
    /**
665
     * 
666
     * @type {string}
667
     * @memberof LoginRequest
668
     */
669
    'password'?: string | null;
670
}
671
/**
672
 * 
673
 * @export
674
 * @interface LoginResponse
675
 */
676
export interface LoginResponse {
677
    /**
678
     * 
679
     * @type {boolean}
680
     * @memberof LoginResponse
681
     */
682
    'ok'?: boolean;
683
    /**
684
     * 
685
     * @type {string}
686
     * @memberof LoginResponse
687
     */
688
    'token'?: string | null;
689
    /**
690
     * 
691
     * @type {string}
692
     * @memberof LoginResponse
693
     */
694
    'expiration'?: string;
695
    /**
696
     * 
697
     * @type {ERole}
698
     * @memberof LoginResponse
699
     */
700
    'role'?: ERole;
701
}
702
/**
703
 * 
704
 * @export
705
 * @interface ModifyCategoryRequest
706
 */
707
export interface ModifyCategoryRequest {
708
    /**
709
     * 
710
     * @type {string}
711
     * @memberof ModifyCategoryRequest
712
     */
713
    'name'?: string | null;
714
    /**
715
     * 
716
     * @type {string}
717
     * @memberof ModifyCategoryRequest
718
     */
719
    'description'?: string | null;
720
    /**
721
     * 
722
     * @type {string}
723
     * @memberof ModifyCategoryRequest
724
     */
725
    'color'?: string | null;
726
    /**
727
     * 
728
     * @type {boolean}
729
     * @memberof ModifyCategoryRequest
730
     */
731
    'disabledForAnnotators'?: boolean | null;
732
}
733
/**
734
 * 
735
 * @export
736
 * @interface ModifySubTagRequest
737
 */
738
export interface ModifySubTagRequest {
739
    /**
740
     * 
741
     * @type {string}
742
     * @memberof ModifySubTagRequest
743
     */
744
    'name'?: string | null;
745
    /**
746
     * 
747
     * @type {string}
748
     * @memberof ModifySubTagRequest
749
     */
750
    'description'?: string | null;
751
    /**
752
     * 
753
     * @type {boolean}
754
     * @memberof ModifySubTagRequest
755
     */
756
    'sentimentEnabled'?: boolean | null;
757
}
758
/**
759
 * 
760
 * @export
761
 * @interface ModifyTagRequest
762
 */
763
export interface ModifyTagRequest {
764
    /**
765
     * 
766
     * @type {string}
767
     * @memberof ModifyTagRequest
768
     */
769
    'name'?: string | null;
770
    /**
771
     * 
772
     * @type {string}
773
     * @memberof ModifyTagRequest
774
     */
775
    'description'?: string | null;
776
    /**
777
     * 
778
     * @type {string}
779
     * @memberof ModifyTagRequest
780
     */
781
    'color'?: string | null;
782
    /**
783
     * 
784
     * @type {boolean}
785
     * @memberof ModifyTagRequest
786
     */
787
    'sentimentEnabled'?: boolean | null;
788
}
789
/**
790
 * 
791
 * @export
792
 * @interface ProblemDetails
793
 */
794
export interface ProblemDetails {
795
    [key: string]: any | any;
796

    
797
    /**
798
     * 
799
     * @type {string}
800
     * @memberof ProblemDetails
801
     */
802
    'type'?: string | null;
803
    /**
804
     * 
805
     * @type {string}
806
     * @memberof ProblemDetails
807
     */
808
    'title'?: string | null;
809
    /**
810
     * 
811
     * @type {number}
812
     * @memberof ProblemDetails
813
     */
814
    'status'?: number | null;
815
    /**
816
     * 
817
     * @type {string}
818
     * @memberof ProblemDetails
819
     */
820
    'detail'?: string | null;
821
    /**
822
     * 
823
     * @type {string}
824
     * @memberof ProblemDetails
825
     */
826
    'instance'?: string | null;
827
}
828
/**
829
 * 
830
 * @export
831
 * @interface SetInstanceSentimentRequest
832
 */
833
export interface SetInstanceSentimentRequest {
834
    /**
835
     * 
836
     * @type {ETagSentiment}
837
     * @memberof SetInstanceSentimentRequest
838
     */
839
    'sentiment'?: ETagSentiment;
840
}
841
/**
842
 * 
843
 * @export
844
 * @interface SetRequiredAnnotationsGlobalRequest
845
 */
846
export interface SetRequiredAnnotationsGlobalRequest {
847
    /**
848
     * 
849
     * @type {number}
850
     * @memberof SetRequiredAnnotationsGlobalRequest
851
     */
852
    'requiredAnnotations'?: number;
853
}
854
/**
855
 * 
856
 * @export
857
 * @interface SetRequiredAnnotationsRequest
858
 */
859
export interface SetRequiredAnnotationsRequest {
860
    /**
861
     * 
862
     * @type {number}
863
     * @memberof SetRequiredAnnotationsRequest
864
     */
865
    'requiredAnnotations'?: number;
866
    /**
867
     * 
868
     * @type {Array<string>}
869
     * @memberof SetRequiredAnnotationsRequest
870
     */
871
    'documentIds'?: Array<string> | null;
872
}
873
/**
874
 * 
875
 * @export
876
 * @interface SubTagInfo
877
 */
878
export interface SubTagInfo {
879
    /**
880
     * 
881
     * @type {string}
882
     * @memberof SubTagInfo
883
     */
884
    'id'?: string;
885
    /**
886
     * 
887
     * @type {string}
888
     * @memberof SubTagInfo
889
     */
890
    'name'?: string | null;
891
    /**
892
     * 
893
     * @type {string}
894
     * @memberof SubTagInfo
895
     */
896
    'description'?: string | null;
897
}
898
/**
899
 * 
900
 * @export
901
 * @interface TagCategoryInfo
902
 */
903
export interface TagCategoryInfo {
904
    /**
905
     * 
906
     * @type {string}
907
     * @memberof TagCategoryInfo
908
     */
909
    'id'?: string;
910
    /**
911
     * 
912
     * @type {string}
913
     * @memberof TagCategoryInfo
914
     */
915
    'name'?: string | null;
916
    /**
917
     * 
918
     * @type {string}
919
     * @memberof TagCategoryInfo
920
     */
921
    'description'?: string | null;
922
    /**
923
     * 
924
     * @type {string}
925
     * @memberof TagCategoryInfo
926
     */
927
    'color'?: string | null;
928
    /**
929
     * 
930
     * @type {Array<TagInfo>}
931
     * @memberof TagCategoryInfo
932
     */
933
    'tags'?: Array<TagInfo> | null;
934
    /**
935
     * 
936
     * @type {boolean}
937
     * @memberof TagCategoryInfo
938
     */
939
    'disabledForAnnotators'?: boolean;
940
}
941
/**
942
 * 
943
 * @export
944
 * @interface TagInfo
945
 */
946
export interface TagInfo {
947
    /**
948
     * 
949
     * @type {string}
950
     * @memberof TagInfo
951
     */
952
    'id'?: string;
953
    /**
954
     * 
955
     * @type {string}
956
     * @memberof TagInfo
957
     */
958
    'name'?: string | null;
959
    /**
960
     * 
961
     * @type {string}
962
     * @memberof TagInfo
963
     */
964
    'description'?: string | null;
965
    /**
966
     * 
967
     * @type {string}
968
     * @memberof TagInfo
969
     */
970
    'color'?: string | null;
971
    /**
972
     * 
973
     * @type {Array<SubTagInfo>}
974
     * @memberof TagInfo
975
     */
976
    'subTags'?: Array<SubTagInfo> | null;
977
}
978
/**
979
 * 
980
 * @export
981
 * @interface TagInstanceInfo
982
 */
983
export interface TagInstanceInfo {
984
    /**
985
     * 
986
     * @type {string}
987
     * @memberof TagInstanceInfo
988
     */
989
    'occurenceId'?: string;
990
    /**
991
     * 
992
     * @type {string}
993
     * @memberof TagInstanceInfo
994
     */
995
    'tagName'?: string | null;
996
    /**
997
     * 
998
     * @type {string}
999
     * @memberof TagInstanceInfo
1000
     */
1001
    'tagId'?: string;
1002
    /**
1003
     * 
1004
     * @type {string}
1005
     * @memberof TagInstanceInfo
1006
     */
1007
    'tagCategoryName'?: string | null;
1008
    /**
1009
     * 
1010
     * @type {string}
1011
     * @memberof TagInstanceInfo
1012
     */
1013
    'tagCategoryId'?: string;
1014
    /**
1015
     * 
1016
     * @type {string}
1017
     * @memberof TagInstanceInfo
1018
     */
1019
    'subTagName'?: string | null;
1020
    /**
1021
     * 
1022
     * @type {string}
1023
     * @memberof TagInstanceInfo
1024
     */
1025
    'subTagId'?: string | null;
1026
    /**
1027
     * 
1028
     * @type {string}
1029
     * @memberof TagInstanceInfo
1030
     */
1031
    'instance'?: string;
1032
    /**
1033
     * 
1034
     * @type {number}
1035
     * @memberof TagInstanceInfo
1036
     */
1037
    'position'?: number;
1038
    /**
1039
     * 
1040
     * @type {number}
1041
     * @memberof TagInstanceInfo
1042
     */
1043
    'length'?: number;
1044
    /**
1045
     * 
1046
     * @type {string}
1047
     * @memberof TagInstanceInfo
1048
     */
1049
    'note'?: string | null;
1050
    /**
1051
     * 
1052
     * @type {ETagSentiment}
1053
     * @memberof TagInstanceInfo
1054
     */
1055
    'sentiment'?: ETagSentiment;
1056
}
1057
/**
1058
 * 
1059
 * @export
1060
 * @interface TagTreeResponse
1061
 */
1062
export interface TagTreeResponse {
1063
    /**
1064
     * 
1065
     * @type {Array<TagCategoryInfo>}
1066
     * @memberof TagTreeResponse
1067
     */
1068
    'tagCategories'?: Array<TagCategoryInfo> | null;
1069
}
1070
/**
1071
 * 
1072
 * @export
1073
 * @interface User
1074
 */
1075
export interface User {
1076
    /**
1077
     * 
1078
     * @type {string}
1079
     * @memberof User
1080
     */
1081
    'id'?: string;
1082
    /**
1083
     * 
1084
     * @type {string}
1085
     * @memberof User
1086
     */
1087
    'username'?: string | null;
1088
    /**
1089
     * 
1090
     * @type {string}
1091
     * @memberof User
1092
     */
1093
    'name'?: string | null;
1094
    /**
1095
     * 
1096
     * @type {string}
1097
     * @memberof User
1098
     */
1099
    'surname'?: string | null;
1100
    /**
1101
     * 
1102
     * @type {ERole}
1103
     * @memberof User
1104
     */
1105
    'role'?: ERole;
1106
}
1107
/**
1108
 * 
1109
 * @export
1110
 * @interface UserInfo
1111
 */
1112
export interface UserInfo {
1113
    /**
1114
     * 
1115
     * @type {string}
1116
     * @memberof UserInfo
1117
     */
1118
    'id'?: string;
1119
    /**
1120
     * 
1121
     * @type {string}
1122
     * @memberof UserInfo
1123
     */
1124
    'username'?: string | null;
1125
    /**
1126
     * 
1127
     * @type {string}
1128
     * @memberof UserInfo
1129
     */
1130
    'name'?: string | null;
1131
    /**
1132
     * 
1133
     * @type {string}
1134
     * @memberof UserInfo
1135
     */
1136
    'surname'?: string | null;
1137
    /**
1138
     * 
1139
     * @type {number}
1140
     * @memberof UserInfo
1141
     */
1142
    'assignedDocumentsCount'?: number;
1143
    /**
1144
     * 
1145
     * @type {ERole}
1146
     * @memberof UserInfo
1147
     */
1148
    'role'?: ERole;
1149
}
1150
/**
1151
 * 
1152
 * @export
1153
 * @interface UserList
1154
 */
1155
export interface UserList {
1156
    /**
1157
     * 
1158
     * @type {Array<UserInfo>}
1159
     * @memberof UserList
1160
     */
1161
    'users'?: Array<UserInfo> | null;
1162
}
1163

    
1164
/**
1165
 * AnnotationApi - axios parameter creator
1166
 * @export
1167
 */
1168
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
1169
    return {
1170
        /**
1171
         * 
1172
         * @param {string} annotationId 
1173
         * @param {*} [options] Override http request option.
1174
         * @throws {RequiredError}
1175
         */
1176
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1177
            // verify required parameter 'annotationId' is not null or undefined
1178
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
1179
            const localVarPath = `/annotation/{annotationId}`
1180
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1181
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1182
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1183
            let baseOptions;
1184
            if (configuration) {
1185
                baseOptions = configuration.baseOptions;
1186
            }
1187

    
1188
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1189
            const localVarHeaderParameter = {} as any;
1190
            const localVarQueryParameter = {} as any;
1191

    
1192

    
1193
    
1194
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1195
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1196
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1197

    
1198
            return {
1199
                url: toPathString(localVarUrlObj),
1200
                options: localVarRequestOptions,
1201
            };
1202
        },
1203
        /**
1204
         * 
1205
         * @param {string} annotationId 
1206
         * @param {string} instanceId 
1207
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1208
         * @param {*} [options] Override http request option.
1209
         * @throws {RequiredError}
1210
         */
1211
        annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1212
            // verify required parameter 'annotationId' is not null or undefined
1213
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
1214
            // verify required parameter 'instanceId' is not null or undefined
1215
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
1216
            const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
1217
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1218
                .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1219
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1220
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1221
            let baseOptions;
1222
            if (configuration) {
1223
                baseOptions = configuration.baseOptions;
1224
            }
1225

    
1226
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1227
            const localVarHeaderParameter = {} as any;
1228
            const localVarQueryParameter = {} as any;
1229

    
1230

    
1231
    
1232
            localVarHeaderParameter['Content-Type'] = 'application/json';
1233

    
1234
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1235
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1236
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1237
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
1238

    
1239
            return {
1240
                url: toPathString(localVarUrlObj),
1241
                options: localVarRequestOptions,
1242
            };
1243
        },
1244
        /**
1245
         * 
1246
         * @param {string} annotationId 
1247
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1248
         * @param {*} [options] Override http request option.
1249
         * @throws {RequiredError}
1250
         */
1251
        annotationAnnotationIdNotePost: async (annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1252
            // verify required parameter 'annotationId' is not null or undefined
1253
            assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
1254
            const localVarPath = `/annotation/{annotationId}/note`
1255
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1256
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1257
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1258
            let baseOptions;
1259
            if (configuration) {
1260
                baseOptions = configuration.baseOptions;
1261
            }
1262

    
1263
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1264
            const localVarHeaderParameter = {} as any;
1265
            const localVarQueryParameter = {} as any;
1266

    
1267

    
1268
    
1269
            localVarHeaderParameter['Content-Type'] = 'application/json';
1270

    
1271
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1272
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1273
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1274
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
1275

    
1276
            return {
1277
                url: toPathString(localVarUrlObj),
1278
                options: localVarRequestOptions,
1279
            };
1280
        },
1281
        /**
1282
         * 
1283
         * @param {string} annotationId 
1284
         * @param {string} occurenceId 
1285
         * @param {*} [options] Override http request option.
1286
         * @throws {RequiredError}
1287
         */
1288
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1289
            // verify required parameter 'annotationId' is not null or undefined
1290
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
1291
            // verify required parameter 'occurenceId' is not null or undefined
1292
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
1293
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
1294
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1295
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
1296
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1297
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1298
            let baseOptions;
1299
            if (configuration) {
1300
                baseOptions = configuration.baseOptions;
1301
            }
1302

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

    
1307

    
1308
    
1309
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1310
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1311
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1312

    
1313
            return {
1314
                url: toPathString(localVarUrlObj),
1315
                options: localVarRequestOptions,
1316
            };
1317
        },
1318
        /**
1319
         * 
1320
         * @param {string} annotationId 
1321
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1322
         * @param {*} [options] Override http request option.
1323
         * @throws {RequiredError}
1324
         */
1325
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1326
            // verify required parameter 'annotationId' is not null or undefined
1327
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
1328
            const localVarPath = `/annotation/{annotationId}`
1329
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1330
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1331
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1332
            let baseOptions;
1333
            if (configuration) {
1334
                baseOptions = configuration.baseOptions;
1335
            }
1336

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

    
1341

    
1342
    
1343
            localVarHeaderParameter['Content-Type'] = 'application/json';
1344

    
1345
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1346
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1347
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1348
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
1349

    
1350
            return {
1351
                url: toPathString(localVarUrlObj),
1352
                options: localVarRequestOptions,
1353
            };
1354
        },
1355
        /**
1356
         * 
1357
         * @param {string} annotationId 
1358
         * @param {string} occurenceId 
1359
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1360
         * @param {*} [options] Override http request option.
1361
         * @throws {RequiredError}
1362
         */
1363
        annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1364
            // verify required parameter 'annotationId' is not null or undefined
1365
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
1366
            // verify required parameter 'occurenceId' is not null or undefined
1367
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
1368
            const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
1369
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1370
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
1371
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1372
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1373
            let baseOptions;
1374
            if (configuration) {
1375
                baseOptions = configuration.baseOptions;
1376
            }
1377

    
1378
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1379
            const localVarHeaderParameter = {} as any;
1380
            const localVarQueryParameter = {} as any;
1381

    
1382

    
1383
    
1384
            localVarHeaderParameter['Content-Type'] = 'application/json';
1385

    
1386
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1387
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1388
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1389
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
1390

    
1391
            return {
1392
                url: toPathString(localVarUrlObj),
1393
                options: localVarRequestOptions,
1394
            };
1395
        },
1396
        /**
1397
         * 
1398
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1399
         * @param {*} [options] Override http request option.
1400
         * @throws {RequiredError}
1401
         */
1402
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1403
            const localVarPath = `/annotations`;
1404
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1405
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1406
            let baseOptions;
1407
            if (configuration) {
1408
                baseOptions = configuration.baseOptions;
1409
            }
1410

    
1411
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1412
            const localVarHeaderParameter = {} as any;
1413
            const localVarQueryParameter = {} as any;
1414

    
1415

    
1416
    
1417
            localVarHeaderParameter['Content-Type'] = 'application/json';
1418

    
1419
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1420
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1421
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1422
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
1423

    
1424
            return {
1425
                url: toPathString(localVarUrlObj),
1426
                options: localVarRequestOptions,
1427
            };
1428
        },
1429
    }
1430
};
1431

    
1432
/**
1433
 * AnnotationApi - functional programming interface
1434
 * @export
1435
 */
1436
export const AnnotationApiFp = function(configuration?: Configuration) {
1437
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
1438
    return {
1439
        /**
1440
         * 
1441
         * @param {string} annotationId 
1442
         * @param {*} [options] Override http request option.
1443
         * @throws {RequiredError}
1444
         */
1445
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
1446
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
1447
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1448
        },
1449
        /**
1450
         * 
1451
         * @param {string} annotationId 
1452
         * @param {string} instanceId 
1453
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1454
         * @param {*} [options] Override http request option.
1455
         * @throws {RequiredError}
1456
         */
1457
        async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1458
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options);
1459
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1460
        },
1461
        /**
1462
         * 
1463
         * @param {string} annotationId 
1464
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1465
         * @param {*} [options] Override http request option.
1466
         * @throws {RequiredError}
1467
         */
1468
        async annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1469
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options);
1470
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1471
        },
1472
        /**
1473
         * 
1474
         * @param {string} annotationId 
1475
         * @param {string} occurenceId 
1476
         * @param {*} [options] Override http request option.
1477
         * @throws {RequiredError}
1478
         */
1479
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1480
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
1481
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1482
        },
1483
        /**
1484
         * 
1485
         * @param {string} annotationId 
1486
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1487
         * @param {*} [options] Override http request option.
1488
         * @throws {RequiredError}
1489
         */
1490
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1491
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
1492
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1493
        },
1494
        /**
1495
         * 
1496
         * @param {string} annotationId 
1497
         * @param {string} occurenceId 
1498
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1499
         * @param {*} [options] Override http request option.
1500
         * @throws {RequiredError}
1501
         */
1502
        async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1503
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options);
1504
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1505
        },
1506
        /**
1507
         * 
1508
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1509
         * @param {*} [options] Override http request option.
1510
         * @throws {RequiredError}
1511
         */
1512
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1513
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1514
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1515
        },
1516
    }
1517
};
1518

    
1519
/**
1520
 * AnnotationApi - factory interface
1521
 * @export
1522
 */
1523
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1524
    const localVarFp = AnnotationApiFp(configuration)
1525
    return {
1526
        /**
1527
         * 
1528
         * @param {string} annotationId 
1529
         * @param {*} [options] Override http request option.
1530
         * @throws {RequiredError}
1531
         */
1532
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
1533
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
1534
        },
1535
        /**
1536
         * 
1537
         * @param {string} annotationId 
1538
         * @param {string} instanceId 
1539
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1540
         * @param {*} [options] Override http request option.
1541
         * @throws {RequiredError}
1542
         */
1543
        annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
1544
            return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
1545
        },
1546
        /**
1547
         * 
1548
         * @param {string} annotationId 
1549
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1550
         * @param {*} [options] Override http request option.
1551
         * @throws {RequiredError}
1552
         */
1553
        annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
1554
            return localVarFp.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
1555
        },
1556
        /**
1557
         * 
1558
         * @param {string} annotationId 
1559
         * @param {string} occurenceId 
1560
         * @param {*} [options] Override http request option.
1561
         * @throws {RequiredError}
1562
         */
1563
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> {
1564
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath));
1565
        },
1566
        /**
1567
         * 
1568
         * @param {string} annotationId 
1569
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1570
         * @param {*} [options] Override http request option.
1571
         * @throws {RequiredError}
1572
         */
1573
        annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
1574
            return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
1575
        },
1576
        /**
1577
         * 
1578
         * @param {string} annotationId 
1579
         * @param {string} occurenceId 
1580
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1581
         * @param {*} [options] Override http request option.
1582
         * @throws {RequiredError}
1583
         */
1584
        annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
1585
            return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
1586
        },
1587
        /**
1588
         * 
1589
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1590
         * @param {*} [options] Override http request option.
1591
         * @throws {RequiredError}
1592
         */
1593
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
1594
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
1595
        },
1596
    };
1597
};
1598

    
1599
/**
1600
 * AnnotationApi - object-oriented interface
1601
 * @export
1602
 * @class AnnotationApi
1603
 * @extends {BaseAPI}
1604
 */
1605
export class AnnotationApi extends BaseAPI {
1606
    /**
1607
     * 
1608
     * @param {string} annotationId 
1609
     * @param {*} [options] Override http request option.
1610
     * @throws {RequiredError}
1611
     * @memberof AnnotationApi
1612
     */
1613
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
1614
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
1615
    }
1616

    
1617
    /**
1618
     * 
1619
     * @param {string} annotationId 
1620
     * @param {string} instanceId 
1621
     * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1622
     * @param {*} [options] Override http request option.
1623
     * @throws {RequiredError}
1624
     * @memberof AnnotationApi
1625
     */
1626
    public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
1627
        return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
1628
    }
1629

    
1630
    /**
1631
     * 
1632
     * @param {string} annotationId 
1633
     * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1634
     * @param {*} [options] Override http request option.
1635
     * @throws {RequiredError}
1636
     * @memberof AnnotationApi
1637
     */
1638
    public annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
1639
        return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
1640
    }
1641

    
1642
    /**
1643
     * 
1644
     * @param {string} annotationId 
1645
     * @param {string} occurenceId 
1646
     * @param {*} [options] Override http request option.
1647
     * @throws {RequiredError}
1648
     * @memberof AnnotationApi
1649
     */
1650
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
1651
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
1652
    }
1653

    
1654
    /**
1655
     * 
1656
     * @param {string} annotationId 
1657
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1658
     * @param {*} [options] Override http request option.
1659
     * @throws {RequiredError}
1660
     * @memberof AnnotationApi
1661
     */
1662
    public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
1663
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
1664
    }
1665

    
1666
    /**
1667
     * 
1668
     * @param {string} annotationId 
1669
     * @param {string} occurenceId 
1670
     * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1671
     * @param {*} [options] Override http request option.
1672
     * @throws {RequiredError}
1673
     * @memberof AnnotationApi
1674
     */
1675
    public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
1676
        return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
1677
    }
1678

    
1679
    /**
1680
     * 
1681
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1682
     * @param {*} [options] Override http request option.
1683
     * @throws {RequiredError}
1684
     * @memberof AnnotationApi
1685
     */
1686
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
1687
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
1688
    }
1689
}
1690

    
1691

    
1692
/**
1693
 * AuthApi - axios parameter creator
1694
 * @export
1695
 */
1696
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1697
    return {
1698
        /**
1699
         * 
1700
         * @param {LoginRequest} [loginRequest] 
1701
         * @param {*} [options] Override http request option.
1702
         * @throws {RequiredError}
1703
         */
1704
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1705
            const localVarPath = `/auth/login`;
1706
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1707
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1708
            let baseOptions;
1709
            if (configuration) {
1710
                baseOptions = configuration.baseOptions;
1711
            }
1712

    
1713
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1714
            const localVarHeaderParameter = {} as any;
1715
            const localVarQueryParameter = {} as any;
1716

    
1717

    
1718
    
1719
            localVarHeaderParameter['Content-Type'] = 'application/json';
1720

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

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

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

    
1749

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

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

    
1774
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1775
            const localVarHeaderParameter = {} as any;
1776
            const localVarQueryParameter = {} as any;
1777

    
1778

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

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

    
1792
/**
1793
 * AuthApi - functional programming interface
1794
 * @export
1795
 */
1796
export const AuthApiFp = function(configuration?: Configuration) {
1797
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1798
    return {
1799
        /**
1800
         * 
1801
         * @param {LoginRequest} [loginRequest] 
1802
         * @param {*} [options] Override http request option.
1803
         * @throws {RequiredError}
1804
         */
1805
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
1806
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
1807
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1808
        },
1809
        /**
1810
         * 
1811
         * @param {*} [options] Override http request option.
1812
         * @throws {RequiredError}
1813
         */
1814
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1815
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
1816
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1817
        },
1818
        /**
1819
         * 
1820
         * @param {*} [options] Override http request option.
1821
         * @throws {RequiredError}
1822
         */
1823
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1824
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
1825
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1826
        },
1827
    }
1828
};
1829

    
1830
/**
1831
 * AuthApi - factory interface
1832
 * @export
1833
 */
1834
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1835
    const localVarFp = AuthApiFp(configuration)
1836
    return {
1837
        /**
1838
         * 
1839
         * @param {LoginRequest} [loginRequest] 
1840
         * @param {*} [options] Override http request option.
1841
         * @throws {RequiredError}
1842
         */
1843
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
1844
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
1845
        },
1846
        /**
1847
         * 
1848
         * @param {*} [options] Override http request option.
1849
         * @throws {RequiredError}
1850
         */
1851
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1852
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
1853
        },
1854
        /**
1855
         * 
1856
         * @param {*} [options] Override http request option.
1857
         * @throws {RequiredError}
1858
         */
1859
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1860
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
1861
        },
1862
    };
1863
};
1864

    
1865
/**
1866
 * AuthApi - object-oriented interface
1867
 * @export
1868
 * @class AuthApi
1869
 * @extends {BaseAPI}
1870
 */
1871
export class AuthApi extends BaseAPI {
1872
    /**
1873
     * 
1874
     * @param {LoginRequest} [loginRequest] 
1875
     * @param {*} [options] Override http request option.
1876
     * @throws {RequiredError}
1877
     * @memberof AuthApi
1878
     */
1879
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1880
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
1881
    }
1882

    
1883
    /**
1884
     * 
1885
     * @param {*} [options] Override http request option.
1886
     * @throws {RequiredError}
1887
     * @memberof AuthApi
1888
     */
1889
    public authTestAaGet(options?: AxiosRequestConfig) {
1890
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1891
    }
1892

    
1893
    /**
1894
     * 
1895
     * @param {*} [options] Override http request option.
1896
     * @throws {RequiredError}
1897
     * @memberof AuthApi
1898
     */
1899
    public authTestGet(options?: AxiosRequestConfig) {
1900
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1901
    }
1902
}
1903

    
1904

    
1905
/**
1906
 * DocumentApi - axios parameter creator
1907
 * @export
1908
 */
1909
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1910
    return {
1911
        /**
1912
         * 
1913
         * @param {string} documentId 
1914
         * @param {*} [options] Override http request option.
1915
         * @throws {RequiredError}
1916
         */
1917
        documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1918
            // verify required parameter 'documentId' is not null or undefined
1919
            assertParamExists('documentDocumentIdGet', 'documentId', documentId)
1920
            const localVarPath = `/document/{documentId}`
1921
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
1922
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1923
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1924
            let baseOptions;
1925
            if (configuration) {
1926
                baseOptions = configuration.baseOptions;
1927
            }
1928

    
1929
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1930
            const localVarHeaderParameter = {} as any;
1931
            const localVarQueryParameter = {} as any;
1932

    
1933

    
1934
    
1935
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1936
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1937
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1938

    
1939
            return {
1940
                url: toPathString(localVarUrlObj),
1941
                options: localVarRequestOptions,
1942
            };
1943
        },
1944
        /**
1945
         * 
1946
         * @param {number} [pageIndex] 
1947
         * @param {number} [pageSize] 
1948
         * @param {*} [options] Override http request option.
1949
         * @throws {RequiredError}
1950
         */
1951
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1952
            const localVarPath = `/documents`;
1953
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1954
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1955
            let baseOptions;
1956
            if (configuration) {
1957
                baseOptions = configuration.baseOptions;
1958
            }
1959

    
1960
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1961
            const localVarHeaderParameter = {} as any;
1962
            const localVarQueryParameter = {} as any;
1963

    
1964
            if (pageIndex !== undefined) {
1965
                localVarQueryParameter['pageIndex'] = pageIndex;
1966
            }
1967

    
1968
            if (pageSize !== undefined) {
1969
                localVarQueryParameter['pageSize'] = pageSize;
1970
            }
1971

    
1972

    
1973
    
1974
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1975
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1976
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1977

    
1978
            return {
1979
                url: toPathString(localVarUrlObj),
1980
                options: localVarRequestOptions,
1981
            };
1982
        },
1983
        /**
1984
         * 
1985
         * @param {DocumentAddRequest} [documentAddRequest] 
1986
         * @param {*} [options] Override http request option.
1987
         * @throws {RequiredError}
1988
         */
1989
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1990
            const localVarPath = `/documents`;
1991
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1992
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1993
            let baseOptions;
1994
            if (configuration) {
1995
                baseOptions = configuration.baseOptions;
1996
            }
1997

    
1998
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1999
            const localVarHeaderParameter = {} as any;
2000
            const localVarQueryParameter = {} as any;
2001

    
2002

    
2003
    
2004
            localVarHeaderParameter['Content-Type'] = 'application/json';
2005

    
2006
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2007
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2008
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2009
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
2010

    
2011
            return {
2012
                url: toPathString(localVarUrlObj),
2013
                options: localVarRequestOptions,
2014
            };
2015
        },
2016
        /**
2017
         * 
2018
         * @param {*} [options] Override http request option.
2019
         * @throws {RequiredError}
2020
         */
2021
        documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2022
            const localVarPath = `/documents/requiredAnnotations/global`;
2023
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2024
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2025
            let baseOptions;
2026
            if (configuration) {
2027
                baseOptions = configuration.baseOptions;
2028
            }
2029

    
2030
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2031
            const localVarHeaderParameter = {} as any;
2032
            const localVarQueryParameter = {} as any;
2033

    
2034

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

    
2040
            return {
2041
                url: toPathString(localVarUrlObj),
2042
                options: localVarRequestOptions,
2043
            };
2044
        },
2045
        /**
2046
         * 
2047
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2048
         * @param {*} [options] Override http request option.
2049
         * @throws {RequiredError}
2050
         */
2051
        documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2052
            const localVarPath = `/documents/requiredAnnotations/global`;
2053
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2054
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2055
            let baseOptions;
2056
            if (configuration) {
2057
                baseOptions = configuration.baseOptions;
2058
            }
2059

    
2060
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2061
            const localVarHeaderParameter = {} as any;
2062
            const localVarQueryParameter = {} as any;
2063

    
2064

    
2065
    
2066
            localVarHeaderParameter['Content-Type'] = 'application/json';
2067

    
2068
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2069
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2070
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2071
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
2072

    
2073
            return {
2074
                url: toPathString(localVarUrlObj),
2075
                options: localVarRequestOptions,
2076
            };
2077
        },
2078
        /**
2079
         * 
2080
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2081
         * @param {*} [options] Override http request option.
2082
         * @throws {RequiredError}
2083
         */
2084
        documentsRequiredAnnotationsPost: async (setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2085
            const localVarPath = `/documents/requiredAnnotations`;
2086
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2087
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2088
            let baseOptions;
2089
            if (configuration) {
2090
                baseOptions = configuration.baseOptions;
2091
            }
2092

    
2093
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2094
            const localVarHeaderParameter = {} as any;
2095
            const localVarQueryParameter = {} as any;
2096

    
2097

    
2098
    
2099
            localVarHeaderParameter['Content-Type'] = 'application/json';
2100

    
2101
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2102
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2103
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2104
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
2105

    
2106
            return {
2107
                url: toPathString(localVarUrlObj),
2108
                options: localVarRequestOptions,
2109
            };
2110
        },
2111
    }
2112
};
2113

    
2114
/**
2115
 * DocumentApi - functional programming interface
2116
 * @export
2117
 */
2118
export const DocumentApiFp = function(configuration?: Configuration) {
2119
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
2120
    return {
2121
        /**
2122
         * 
2123
         * @param {string} documentId 
2124
         * @param {*} [options] Override http request option.
2125
         * @throws {RequiredError}
2126
         */
2127
        async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
2128
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
2129
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2130
        },
2131
        /**
2132
         * 
2133
         * @param {number} [pageIndex] 
2134
         * @param {number} [pageSize] 
2135
         * @param {*} [options] Override http request option.
2136
         * @throws {RequiredError}
2137
         */
2138
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
2139
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
2140
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2141
        },
2142
        /**
2143
         * 
2144
         * @param {DocumentAddRequest} [documentAddRequest] 
2145
         * @param {*} [options] Override http request option.
2146
         * @throws {RequiredError}
2147
         */
2148
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2149
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
2150
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2151
        },
2152
        /**
2153
         * 
2154
         * @param {*} [options] Override http request option.
2155
         * @throws {RequiredError}
2156
         */
2157
        async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
2158
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
2159
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2160
        },
2161
        /**
2162
         * 
2163
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2164
         * @param {*} [options] Override http request option.
2165
         * @throws {RequiredError}
2166
         */
2167
        async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2168
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
2169
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2170
        },
2171
        /**
2172
         * 
2173
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2174
         * @param {*} [options] Override http request option.
2175
         * @throws {RequiredError}
2176
         */
2177
        async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2178
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
2179
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2180
        },
2181
    }
2182
};
2183

    
2184
/**
2185
 * DocumentApi - factory interface
2186
 * @export
2187
 */
2188
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2189
    const localVarFp = DocumentApiFp(configuration)
2190
    return {
2191
        /**
2192
         * 
2193
         * @param {string} documentId 
2194
         * @param {*} [options] Override http request option.
2195
         * @throws {RequiredError}
2196
         */
2197
        documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
2198
            return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
2199
        },
2200
        /**
2201
         * 
2202
         * @param {number} [pageIndex] 
2203
         * @param {number} [pageSize] 
2204
         * @param {*} [options] Override http request option.
2205
         * @throws {RequiredError}
2206
         */
2207
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
2208
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
2209
        },
2210
        /**
2211
         * 
2212
         * @param {DocumentAddRequest} [documentAddRequest] 
2213
         * @param {*} [options] Override http request option.
2214
         * @throws {RequiredError}
2215
         */
2216
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
2217
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
2218
        },
2219
        /**
2220
         * 
2221
         * @param {*} [options] Override http request option.
2222
         * @throws {RequiredError}
2223
         */
2224
        documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
2225
            return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
2226
        },
2227
        /**
2228
         * 
2229
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2230
         * @param {*} [options] Override http request option.
2231
         * @throws {RequiredError}
2232
         */
2233
        documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
2234
            return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
2235
        },
2236
        /**
2237
         * 
2238
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2239
         * @param {*} [options] Override http request option.
2240
         * @throws {RequiredError}
2241
         */
2242
        documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
2243
            return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
2244
        },
2245
    };
2246
};
2247

    
2248
/**
2249
 * DocumentApi - object-oriented interface
2250
 * @export
2251
 * @class DocumentApi
2252
 * @extends {BaseAPI}
2253
 */
2254
export class DocumentApi extends BaseAPI {
2255
    /**
2256
     * 
2257
     * @param {string} documentId 
2258
     * @param {*} [options] Override http request option.
2259
     * @throws {RequiredError}
2260
     * @memberof DocumentApi
2261
     */
2262
    public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
2263
        return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
2264
    }
2265

    
2266
    /**
2267
     * 
2268
     * @param {number} [pageIndex] 
2269
     * @param {number} [pageSize] 
2270
     * @param {*} [options] Override http request option.
2271
     * @throws {RequiredError}
2272
     * @memberof DocumentApi
2273
     */
2274
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
2275
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
2276
    }
2277

    
2278
    /**
2279
     * 
2280
     * @param {DocumentAddRequest} [documentAddRequest] 
2281
     * @param {*} [options] Override http request option.
2282
     * @throws {RequiredError}
2283
     * @memberof DocumentApi
2284
     */
2285
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
2286
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
2287
    }
2288

    
2289
    /**
2290
     * 
2291
     * @param {*} [options] Override http request option.
2292
     * @throws {RequiredError}
2293
     * @memberof DocumentApi
2294
     */
2295
    public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
2296
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
2297
    }
2298

    
2299
    /**
2300
     * 
2301
     * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2302
     * @param {*} [options] Override http request option.
2303
     * @throws {RequiredError}
2304
     * @memberof DocumentApi
2305
     */
2306
    public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
2307
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
2308
    }
2309

    
2310
    /**
2311
     * 
2312
     * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2313
     * @param {*} [options] Override http request option.
2314
     * @throws {RequiredError}
2315
     * @memberof DocumentApi
2316
     */
2317
    public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
2318
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
2319
    }
2320
}
2321

    
2322

    
2323
/**
2324
 * TagApi - axios parameter creator
2325
 * @export
2326
 */
2327
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
2328
    return {
2329
        /**
2330
         * 
2331
         * @param {CreateCategoryRequest} [createCategoryRequest] 
2332
         * @param {*} [options] Override http request option.
2333
         * @throws {RequiredError}
2334
         */
2335
        categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2336
            const localVarPath = `/categories`;
2337
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2338
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2339
            let baseOptions;
2340
            if (configuration) {
2341
                baseOptions = configuration.baseOptions;
2342
            }
2343

    
2344
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2345
            const localVarHeaderParameter = {} as any;
2346
            const localVarQueryParameter = {} as any;
2347

    
2348

    
2349
    
2350
            localVarHeaderParameter['Content-Type'] = 'application/json';
2351

    
2352
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2353
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2354
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2355
            localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
2356

    
2357
            return {
2358
                url: toPathString(localVarUrlObj),
2359
                options: localVarRequestOptions,
2360
            };
2361
        },
2362
        /**
2363
         * 
2364
         * @param {string} categoryId 
2365
         * @param {*} [options] Override http request option.
2366
         * @throws {RequiredError}
2367
         */
2368
        categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2369
            // verify required parameter 'categoryId' is not null or undefined
2370
            assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
2371
            const localVarPath = `/category/{categoryId}`
2372
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
2373
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2374
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2375
            let baseOptions;
2376
            if (configuration) {
2377
                baseOptions = configuration.baseOptions;
2378
            }
2379

    
2380
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2381
            const localVarHeaderParameter = {} as any;
2382
            const localVarQueryParameter = {} as any;
2383

    
2384

    
2385
    
2386
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2387
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2388
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2389

    
2390
            return {
2391
                url: toPathString(localVarUrlObj),
2392
                options: localVarRequestOptions,
2393
            };
2394
        },
2395
        /**
2396
         * 
2397
         * @param {string} categoryId 
2398
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
2399
         * @param {*} [options] Override http request option.
2400
         * @throws {RequiredError}
2401
         */
2402
        categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2403
            // verify required parameter 'categoryId' is not null or undefined
2404
            assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
2405
            const localVarPath = `/category/{categoryId}`
2406
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
2407
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2408
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2409
            let baseOptions;
2410
            if (configuration) {
2411
                baseOptions = configuration.baseOptions;
2412
            }
2413

    
2414
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2415
            const localVarHeaderParameter = {} as any;
2416
            const localVarQueryParameter = {} as any;
2417

    
2418

    
2419
    
2420
            localVarHeaderParameter['Content-Type'] = 'application/json';
2421

    
2422
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2423
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2424
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2425
            localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
2426

    
2427
            return {
2428
                url: toPathString(localVarUrlObj),
2429
                options: localVarRequestOptions,
2430
            };
2431
        },
2432
        /**
2433
         * 
2434
         * @param {string} subtagId 
2435
         * @param {*} [options] Override http request option.
2436
         * @throws {RequiredError}
2437
         */
2438
        subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2439
            // verify required parameter 'subtagId' is not null or undefined
2440
            assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
2441
            const localVarPath = `/subtag/{subtagId}`
2442
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
2443
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2444
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2445
            let baseOptions;
2446
            if (configuration) {
2447
                baseOptions = configuration.baseOptions;
2448
            }
2449

    
2450
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2451
            const localVarHeaderParameter = {} as any;
2452
            const localVarQueryParameter = {} as any;
2453

    
2454

    
2455
    
2456
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2457
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2458
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2459

    
2460
            return {
2461
                url: toPathString(localVarUrlObj),
2462
                options: localVarRequestOptions,
2463
            };
2464
        },
2465
        /**
2466
         * 
2467
         * @param {string} subtagId 
2468
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
2469
         * @param {*} [options] Override http request option.
2470
         * @throws {RequiredError}
2471
         */
2472
        subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2473
            // verify required parameter 'subtagId' is not null or undefined
2474
            assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
2475
            const localVarPath = `/subtag/{subtagId}`
2476
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
2477
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2478
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2479
            let baseOptions;
2480
            if (configuration) {
2481
                baseOptions = configuration.baseOptions;
2482
            }
2483

    
2484
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2485
            const localVarHeaderParameter = {} as any;
2486
            const localVarQueryParameter = {} as any;
2487

    
2488

    
2489
    
2490
            localVarHeaderParameter['Content-Type'] = 'application/json';
2491

    
2492
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2493
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2494
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2495
            localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
2496

    
2497
            return {
2498
                url: toPathString(localVarUrlObj),
2499
                options: localVarRequestOptions,
2500
            };
2501
        },
2502
        /**
2503
         * 
2504
         * @param {CreateSubTagRequest} [createSubTagRequest] 
2505
         * @param {*} [options] Override http request option.
2506
         * @throws {RequiredError}
2507
         */
2508
        subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2509
            const localVarPath = `/subtags`;
2510
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2511
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2512
            let baseOptions;
2513
            if (configuration) {
2514
                baseOptions = configuration.baseOptions;
2515
            }
2516

    
2517
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2518
            const localVarHeaderParameter = {} as any;
2519
            const localVarQueryParameter = {} as any;
2520

    
2521

    
2522
    
2523
            localVarHeaderParameter['Content-Type'] = 'application/json';
2524

    
2525
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2526
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2527
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2528
            localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
2529

    
2530
            return {
2531
                url: toPathString(localVarUrlObj),
2532
                options: localVarRequestOptions,
2533
            };
2534
        },
2535
        /**
2536
         * 
2537
         * @param {string} tagId 
2538
         * @param {*} [options] Override http request option.
2539
         * @throws {RequiredError}
2540
         */
2541
        tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2542
            // verify required parameter 'tagId' is not null or undefined
2543
            assertParamExists('tagTagIdDelete', 'tagId', tagId)
2544
            const localVarPath = `/tag/{tagId}`
2545
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
2546
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2547
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2548
            let baseOptions;
2549
            if (configuration) {
2550
                baseOptions = configuration.baseOptions;
2551
            }
2552

    
2553
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2554
            const localVarHeaderParameter = {} as any;
2555
            const localVarQueryParameter = {} as any;
2556

    
2557

    
2558
    
2559
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2560
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2561
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2562

    
2563
            return {
2564
                url: toPathString(localVarUrlObj),
2565
                options: localVarRequestOptions,
2566
            };
2567
        },
2568
        /**
2569
         * 
2570
         * @param {string} tagId 
2571
         * @param {ModifyTagRequest} [modifyTagRequest] 
2572
         * @param {*} [options] Override http request option.
2573
         * @throws {RequiredError}
2574
         */
2575
        tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2576
            // verify required parameter 'tagId' is not null or undefined
2577
            assertParamExists('tagTagIdPut', 'tagId', tagId)
2578
            const localVarPath = `/tag/{tagId}`
2579
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
2580
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2581
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2582
            let baseOptions;
2583
            if (configuration) {
2584
                baseOptions = configuration.baseOptions;
2585
            }
2586

    
2587
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2588
            const localVarHeaderParameter = {} as any;
2589
            const localVarQueryParameter = {} as any;
2590

    
2591

    
2592
    
2593
            localVarHeaderParameter['Content-Type'] = 'application/json';
2594

    
2595
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2596
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2597
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2598
            localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
2599

    
2600
            return {
2601
                url: toPathString(localVarUrlObj),
2602
                options: localVarRequestOptions,
2603
            };
2604
        },
2605
        /**
2606
         * 
2607
         * @param {*} [options] Override http request option.
2608
         * @throws {RequiredError}
2609
         */
2610
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2611
            const localVarPath = `/tags`;
2612
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2613
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2614
            let baseOptions;
2615
            if (configuration) {
2616
                baseOptions = configuration.baseOptions;
2617
            }
2618

    
2619
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2620
            const localVarHeaderParameter = {} as any;
2621
            const localVarQueryParameter = {} as any;
2622

    
2623

    
2624
    
2625
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2626
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2627
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2628

    
2629
            return {
2630
                url: toPathString(localVarUrlObj),
2631
                options: localVarRequestOptions,
2632
            };
2633
        },
2634
        /**
2635
         * 
2636
         * @param {CreateTagRequest} [createTagRequest] 
2637
         * @param {*} [options] Override http request option.
2638
         * @throws {RequiredError}
2639
         */
2640
        tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2641
            const localVarPath = `/tags`;
2642
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2643
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2644
            let baseOptions;
2645
            if (configuration) {
2646
                baseOptions = configuration.baseOptions;
2647
            }
2648

    
2649
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2650
            const localVarHeaderParameter = {} as any;
2651
            const localVarQueryParameter = {} as any;
2652

    
2653

    
2654
    
2655
            localVarHeaderParameter['Content-Type'] = 'application/json';
2656

    
2657
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2658
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2659
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2660
            localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
2661

    
2662
            return {
2663
                url: toPathString(localVarUrlObj),
2664
                options: localVarRequestOptions,
2665
            };
2666
        },
2667
    }
2668
};
2669

    
2670
/**
2671
 * TagApi - functional programming interface
2672
 * @export
2673
 */
2674
export const TagApiFp = function(configuration?: Configuration) {
2675
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
2676
    return {
2677
        /**
2678
         * 
2679
         * @param {CreateCategoryRequest} [createCategoryRequest] 
2680
         * @param {*} [options] Override http request option.
2681
         * @throws {RequiredError}
2682
         */
2683
        async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2684
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options);
2685
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2686
        },
2687
        /**
2688
         * 
2689
         * @param {string} categoryId 
2690
         * @param {*} [options] Override http request option.
2691
         * @throws {RequiredError}
2692
         */
2693
        async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2694
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options);
2695
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2696
        },
2697
        /**
2698
         * 
2699
         * @param {string} categoryId 
2700
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
2701
         * @param {*} [options] Override http request option.
2702
         * @throws {RequiredError}
2703
         */
2704
        async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2705
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options);
2706
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2707
        },
2708
        /**
2709
         * 
2710
         * @param {string} subtagId 
2711
         * @param {*} [options] Override http request option.
2712
         * @throws {RequiredError}
2713
         */
2714
        async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2715
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options);
2716
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2717
        },
2718
        /**
2719
         * 
2720
         * @param {string} subtagId 
2721
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
2722
         * @param {*} [options] Override http request option.
2723
         * @throws {RequiredError}
2724
         */
2725
        async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2726
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options);
2727
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2728
        },
2729
        /**
2730
         * 
2731
         * @param {CreateSubTagRequest} [createSubTagRequest] 
2732
         * @param {*} [options] Override http request option.
2733
         * @throws {RequiredError}
2734
         */
2735
        async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2736
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options);
2737
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2738
        },
2739
        /**
2740
         * 
2741
         * @param {string} tagId 
2742
         * @param {*} [options] Override http request option.
2743
         * @throws {RequiredError}
2744
         */
2745
        async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2746
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options);
2747
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2748
        },
2749
        /**
2750
         * 
2751
         * @param {string} tagId 
2752
         * @param {ModifyTagRequest} [modifyTagRequest] 
2753
         * @param {*} [options] Override http request option.
2754
         * @throws {RequiredError}
2755
         */
2756
        async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2757
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options);
2758
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2759
        },
2760
        /**
2761
         * 
2762
         * @param {*} [options] Override http request option.
2763
         * @throws {RequiredError}
2764
         */
2765
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
2766
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
2767
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2768
        },
2769
        /**
2770
         * 
2771
         * @param {CreateTagRequest} [createTagRequest] 
2772
         * @param {*} [options] Override http request option.
2773
         * @throws {RequiredError}
2774
         */
2775
        async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2776
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options);
2777
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2778
        },
2779
    }
2780
};
2781

    
2782
/**
2783
 * TagApi - factory interface
2784
 * @export
2785
 */
2786
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2787
    const localVarFp = TagApiFp(configuration)
2788
    return {
2789
        /**
2790
         * 
2791
         * @param {CreateCategoryRequest} [createCategoryRequest] 
2792
         * @param {*} [options] Override http request option.
2793
         * @throws {RequiredError}
2794
         */
2795
        categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> {
2796
            return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath));
2797
        },
2798
        /**
2799
         * 
2800
         * @param {string} categoryId 
2801
         * @param {*} [options] Override http request option.
2802
         * @throws {RequiredError}
2803
         */
2804
        categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> {
2805
            return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath));
2806
        },
2807
        /**
2808
         * 
2809
         * @param {string} categoryId 
2810
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
2811
         * @param {*} [options] Override http request option.
2812
         * @throws {RequiredError}
2813
         */
2814
        categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> {
2815
            return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath));
2816
        },
2817
        /**
2818
         * 
2819
         * @param {string} subtagId 
2820
         * @param {*} [options] Override http request option.
2821
         * @throws {RequiredError}
2822
         */
2823
        subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> {
2824
            return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath));
2825
        },
2826
        /**
2827
         * 
2828
         * @param {string} subtagId 
2829
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
2830
         * @param {*} [options] Override http request option.
2831
         * @throws {RequiredError}
2832
         */
2833
        subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> {
2834
            return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath));
2835
        },
2836
        /**
2837
         * 
2838
         * @param {CreateSubTagRequest} [createSubTagRequest] 
2839
         * @param {*} [options] Override http request option.
2840
         * @throws {RequiredError}
2841
         */
2842
        subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> {
2843
            return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath));
2844
        },
2845
        /**
2846
         * 
2847
         * @param {string} tagId 
2848
         * @param {*} [options] Override http request option.
2849
         * @throws {RequiredError}
2850
         */
2851
        tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> {
2852
            return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
2853
        },
2854
        /**
2855
         * 
2856
         * @param {string} tagId 
2857
         * @param {ModifyTagRequest} [modifyTagRequest] 
2858
         * @param {*} [options] Override http request option.
2859
         * @throws {RequiredError}
2860
         */
2861
        tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> {
2862
            return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath));
2863
        },
2864
        /**
2865
         * 
2866
         * @param {*} [options] Override http request option.
2867
         * @throws {RequiredError}
2868
         */
2869
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
2870
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
2871
        },
2872
        /**
2873
         * 
2874
         * @param {CreateTagRequest} [createTagRequest] 
2875
         * @param {*} [options] Override http request option.
2876
         * @throws {RequiredError}
2877
         */
2878
        tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> {
2879
            return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath));
2880
        },
2881
    };
2882
};
2883

    
2884
/**
2885
 * TagApi - object-oriented interface
2886
 * @export
2887
 * @class TagApi
2888
 * @extends {BaseAPI}
2889
 */
2890
export class TagApi extends BaseAPI {
2891
    /**
2892
     * 
2893
     * @param {CreateCategoryRequest} [createCategoryRequest] 
2894
     * @param {*} [options] Override http request option.
2895
     * @throws {RequiredError}
2896
     * @memberof TagApi
2897
     */
2898
    public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
2899
        return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
2900
    }
2901

    
2902
    /**
2903
     * 
2904
     * @param {string} categoryId 
2905
     * @param {*} [options] Override http request option.
2906
     * @throws {RequiredError}
2907
     * @memberof TagApi
2908
     */
2909
    public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
2910
        return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
2911
    }
2912

    
2913
    /**
2914
     * 
2915
     * @param {string} categoryId 
2916
     * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
2917
     * @param {*} [options] Override http request option.
2918
     * @throws {RequiredError}
2919
     * @memberof TagApi
2920
     */
2921
    public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
2922
        return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
2923
    }
2924

    
2925
    /**
2926
     * 
2927
     * @param {string} subtagId 
2928
     * @param {*} [options] Override http request option.
2929
     * @throws {RequiredError}
2930
     * @memberof TagApi
2931
     */
2932
    public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
2933
        return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
2934
    }
2935

    
2936
    /**
2937
     * 
2938
     * @param {string} subtagId 
2939
     * @param {ModifySubTagRequest} [modifySubTagRequest] 
2940
     * @param {*} [options] Override http request option.
2941
     * @throws {RequiredError}
2942
     * @memberof TagApi
2943
     */
2944
    public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
2945
        return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
2946
    }
2947

    
2948
    /**
2949
     * 
2950
     * @param {CreateSubTagRequest} [createSubTagRequest] 
2951
     * @param {*} [options] Override http request option.
2952
     * @throws {RequiredError}
2953
     * @memberof TagApi
2954
     */
2955
    public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
2956
        return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
2957
    }
2958

    
2959
    /**
2960
     * 
2961
     * @param {string} tagId 
2962
     * @param {*} [options] Override http request option.
2963
     * @throws {RequiredError}
2964
     * @memberof TagApi
2965
     */
2966
    public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
2967
        return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
2968
    }
2969

    
2970
    /**
2971
     * 
2972
     * @param {string} tagId 
2973
     * @param {ModifyTagRequest} [modifyTagRequest] 
2974
     * @param {*} [options] Override http request option.
2975
     * @throws {RequiredError}
2976
     * @memberof TagApi
2977
     */
2978
    public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
2979
        return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
2980
    }
2981

    
2982
    /**
2983
     * 
2984
     * @param {*} [options] Override http request option.
2985
     * @throws {RequiredError}
2986
     * @memberof TagApi
2987
     */
2988
    public tagsGet(options?: AxiosRequestConfig) {
2989
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
2990
    }
2991

    
2992
    /**
2993
     * 
2994
     * @param {CreateTagRequest} [createTagRequest] 
2995
     * @param {*} [options] Override http request option.
2996
     * @throws {RequiredError}
2997
     * @memberof TagApi
2998
     */
2999
    public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
3000
        return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
3001
    }
3002
}
3003

    
3004

    
3005
/**
3006
 * UserApi - axios parameter creator
3007
 * @export
3008
 */
3009
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
3010
    return {
3011
        /**
3012
         * 
3013
         * @param {*} [options] Override http request option.
3014
         * @throws {RequiredError}
3015
         */
3016
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3017
            const localVarPath = `/user/annotations`;
3018
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3019
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3020
            let baseOptions;
3021
            if (configuration) {
3022
                baseOptions = configuration.baseOptions;
3023
            }
3024

    
3025
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3026
            const localVarHeaderParameter = {} as any;
3027
            const localVarQueryParameter = {} as any;
3028

    
3029

    
3030
    
3031
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3032
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3033
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3034

    
3035
            return {
3036
                url: toPathString(localVarUrlObj),
3037
                options: localVarRequestOptions,
3038
            };
3039
        },
3040
        /**
3041
         * 
3042
         * @param {string} userId 
3043
         * @param {*} [options] Override http request option.
3044
         * @throws {RequiredError}
3045
         */
3046
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3047
            // verify required parameter 'userId' is not null or undefined
3048
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
3049
            const localVarPath = `/user/{userId}/annotations`
3050
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3051
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3052
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3053
            let baseOptions;
3054
            if (configuration) {
3055
                baseOptions = configuration.baseOptions;
3056
            }
3057

    
3058
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3059
            const localVarHeaderParameter = {} as any;
3060
            const localVarQueryParameter = {} as any;
3061

    
3062

    
3063
    
3064
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3065
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3066
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3067

    
3068
            return {
3069
                url: toPathString(localVarUrlObj),
3070
                options: localVarRequestOptions,
3071
            };
3072
        },
3073
        /**
3074
         * 
3075
         * @param {string} userId 
3076
         * @param {*} [options] Override http request option.
3077
         * @throws {RequiredError}
3078
         */
3079
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3080
            // verify required parameter 'userId' is not null or undefined
3081
            assertParamExists('userUserIdDelete', 'userId', userId)
3082
            const localVarPath = `/user/{userId}`
3083
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3084
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3085
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3086
            let baseOptions;
3087
            if (configuration) {
3088
                baseOptions = configuration.baseOptions;
3089
            }
3090

    
3091
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3092
            const localVarHeaderParameter = {} as any;
3093
            const localVarQueryParameter = {} as any;
3094

    
3095

    
3096
    
3097
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3098
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3099
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3100

    
3101
            return {
3102
                url: toPathString(localVarUrlObj),
3103
                options: localVarRequestOptions,
3104
            };
3105
        },
3106
        /**
3107
         * 
3108
         * @param {string} userId 
3109
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3110
         * @param {*} [options] Override http request option.
3111
         * @throws {RequiredError}
3112
         */
3113
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3114
            // verify required parameter 'userId' is not null or undefined
3115
            assertParamExists('userUserIdPut', 'userId', userId)
3116
            const localVarPath = `/user/{userId}`
3117
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3118
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3119
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3120
            let baseOptions;
3121
            if (configuration) {
3122
                baseOptions = configuration.baseOptions;
3123
            }
3124

    
3125
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3126
            const localVarHeaderParameter = {} as any;
3127
            const localVarQueryParameter = {} as any;
3128

    
3129

    
3130
    
3131
            localVarHeaderParameter['Content-Type'] = 'application/json';
3132

    
3133
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3134
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3135
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3136
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
3137

    
3138
            return {
3139
                url: toPathString(localVarUrlObj),
3140
                options: localVarRequestOptions,
3141
            };
3142
        },
3143
        /**
3144
         * 
3145
         * @param {*} [options] Override http request option.
3146
         * @throws {RequiredError}
3147
         */
3148
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3149
            const localVarPath = `/users`;
3150
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3151
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3152
            let baseOptions;
3153
            if (configuration) {
3154
                baseOptions = configuration.baseOptions;
3155
            }
3156

    
3157
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3158
            const localVarHeaderParameter = {} as any;
3159
            const localVarQueryParameter = {} as any;
3160

    
3161

    
3162
    
3163
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3164
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3165
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3166

    
3167
            return {
3168
                url: toPathString(localVarUrlObj),
3169
                options: localVarRequestOptions,
3170
            };
3171
        },
3172
        /**
3173
         * 
3174
         * @param {CreateUserRequest} [createUserRequest] 
3175
         * @param {*} [options] Override http request option.
3176
         * @throws {RequiredError}
3177
         */
3178
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3179
            const localVarPath = `/users`;
3180
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3181
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3182
            let baseOptions;
3183
            if (configuration) {
3184
                baseOptions = configuration.baseOptions;
3185
            }
3186

    
3187
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3188
            const localVarHeaderParameter = {} as any;
3189
            const localVarQueryParameter = {} as any;
3190

    
3191

    
3192
    
3193
            localVarHeaderParameter['Content-Type'] = 'application/json';
3194

    
3195
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3196
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3197
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3198
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
3199

    
3200
            return {
3201
                url: toPathString(localVarUrlObj),
3202
                options: localVarRequestOptions,
3203
            };
3204
        },
3205
    }
3206
};
3207

    
3208
/**
3209
 * UserApi - functional programming interface
3210
 * @export
3211
 */
3212
export const UserApiFp = function(configuration?: Configuration) {
3213
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
3214
    return {
3215
        /**
3216
         * 
3217
         * @param {*} [options] Override http request option.
3218
         * @throws {RequiredError}
3219
         */
3220
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
3221
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
3222
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3223
        },
3224
        /**
3225
         * 
3226
         * @param {string} userId 
3227
         * @param {*} [options] Override http request option.
3228
         * @throws {RequiredError}
3229
         */
3230
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
3231
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
3232
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3233
        },
3234
        /**
3235
         * 
3236
         * @param {string} userId 
3237
         * @param {*} [options] Override http request option.
3238
         * @throws {RequiredError}
3239
         */
3240
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3241
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
3242
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3243
        },
3244
        /**
3245
         * 
3246
         * @param {string} userId 
3247
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3248
         * @param {*} [options] Override http request option.
3249
         * @throws {RequiredError}
3250
         */
3251
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3252
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
3253
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3254
        },
3255
        /**
3256
         * 
3257
         * @param {*} [options] Override http request option.
3258
         * @throws {RequiredError}
3259
         */
3260
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
3261
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
3262
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3263
        },
3264
        /**
3265
         * 
3266
         * @param {CreateUserRequest} [createUserRequest] 
3267
         * @param {*} [options] Override http request option.
3268
         * @throws {RequiredError}
3269
         */
3270
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3271
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
3272
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3273
        },
3274
    }
3275
};
3276

    
3277
/**
3278
 * UserApi - factory interface
3279
 * @export
3280
 */
3281
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3282
    const localVarFp = UserApiFp(configuration)
3283
    return {
3284
        /**
3285
         * 
3286
         * @param {*} [options] Override http request option.
3287
         * @throws {RequiredError}
3288
         */
3289
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
3290
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
3291
        },
3292
        /**
3293
         * 
3294
         * @param {string} userId 
3295
         * @param {*} [options] Override http request option.
3296
         * @throws {RequiredError}
3297
         */
3298
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
3299
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
3300
        },
3301
        /**
3302
         * 
3303
         * @param {string} userId 
3304
         * @param {*} [options] Override http request option.
3305
         * @throws {RequiredError}
3306
         */
3307
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
3308
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
3309
        },
3310
        /**
3311
         * 
3312
         * @param {string} userId 
3313
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3314
         * @param {*} [options] Override http request option.
3315
         * @throws {RequiredError}
3316
         */
3317
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
3318
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
3319
        },
3320
        /**
3321
         * 
3322
         * @param {*} [options] Override http request option.
3323
         * @throws {RequiredError}
3324
         */
3325
        usersGet(options?: any): AxiosPromise<UserList> {
3326
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
3327
        },
3328
        /**
3329
         * 
3330
         * @param {CreateUserRequest} [createUserRequest] 
3331
         * @param {*} [options] Override http request option.
3332
         * @throws {RequiredError}
3333
         */
3334
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
3335
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
3336
        },
3337
    };
3338
};
3339

    
3340
/**
3341
 * UserApi - object-oriented interface
3342
 * @export
3343
 * @class UserApi
3344
 * @extends {BaseAPI}
3345
 */
3346
export class UserApi extends BaseAPI {
3347
    /**
3348
     * 
3349
     * @param {*} [options] Override http request option.
3350
     * @throws {RequiredError}
3351
     * @memberof UserApi
3352
     */
3353
    public userAnnotationsGet(options?: AxiosRequestConfig) {
3354
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
3355
    }
3356

    
3357
    /**
3358
     * 
3359
     * @param {string} userId 
3360
     * @param {*} [options] Override http request option.
3361
     * @throws {RequiredError}
3362
     * @memberof UserApi
3363
     */
3364
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
3365
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
3366
    }
3367

    
3368
    /**
3369
     * 
3370
     * @param {string} userId 
3371
     * @param {*} [options] Override http request option.
3372
     * @throws {RequiredError}
3373
     * @memberof UserApi
3374
     */
3375
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
3376
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
3377
    }
3378

    
3379
    /**
3380
     * 
3381
     * @param {string} userId 
3382
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3383
     * @param {*} [options] Override http request option.
3384
     * @throws {RequiredError}
3385
     * @memberof UserApi
3386
     */
3387
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
3388
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
3389
    }
3390

    
3391
    /**
3392
     * 
3393
     * @param {*} [options] Override http request option.
3394
     * @throws {RequiredError}
3395
     * @memberof UserApi
3396
     */
3397
    public usersGet(options?: AxiosRequestConfig) {
3398
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
3399
    }
3400

    
3401
    /**
3402
     * 
3403
     * @param {CreateUserRequest} [createUserRequest] 
3404
     * @param {*} [options] Override http request option.
3405
     * @throws {RequiredError}
3406
     * @memberof UserApi
3407
     */
3408
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
3409
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
3410
    }
3411
}
3412

    
3413

    
(4-4/9)