Projekt

Obecné

Profil

Stáhnout (124 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
 * @export
1166
 * @interface UserMeResponse
1167
 */
1168
export interface UserMeResponse {
1169
    /**
1170
     * 
1171
     * @type {string}
1172
     * @memberof UserMeResponse
1173
     */
1174
    'name'?: string | null;
1175
    /**
1176
     * 
1177
     * @type {ERole}
1178
     * @memberof UserMeResponse
1179
     */
1180
    'role'?: ERole;
1181
}
1182

    
1183
/**
1184
 * AnnotationApi - axios parameter creator
1185
 * @export
1186
 */
1187
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
1188
    return {
1189
        /**
1190
         * 
1191
         * @param {string} annotationId 
1192
         * @param {*} [options] Override http request option.
1193
         * @throws {RequiredError}
1194
         */
1195
        annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1196
            // verify required parameter 'annotationId' is not null or undefined
1197
            assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
1198
            const localVarPath = `/annotation/{annotationId}`
1199
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1200
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1201
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1202
            let baseOptions;
1203
            if (configuration) {
1204
                baseOptions = configuration.baseOptions;
1205
            }
1206

    
1207
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1208
            const localVarHeaderParameter = {} as any;
1209
            const localVarQueryParameter = {} as any;
1210

    
1211

    
1212
    
1213
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1214
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1215
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1216

    
1217
            return {
1218
                url: toPathString(localVarUrlObj),
1219
                options: localVarRequestOptions,
1220
            };
1221
        },
1222
        /**
1223
         * 
1224
         * @param {string} annotationId 
1225
         * @param {string} instanceId 
1226
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1227
         * @param {*} [options] Override http request option.
1228
         * @throws {RequiredError}
1229
         */
1230
        annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1231
            // verify required parameter 'annotationId' is not null or undefined
1232
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
1233
            // verify required parameter 'instanceId' is not null or undefined
1234
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
1235
            const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
1236
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1237
                .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
1238
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1239
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1240
            let baseOptions;
1241
            if (configuration) {
1242
                baseOptions = configuration.baseOptions;
1243
            }
1244

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

    
1249

    
1250
    
1251
            localVarHeaderParameter['Content-Type'] = 'application/json';
1252

    
1253
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1254
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1255
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1256
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
1257

    
1258
            return {
1259
                url: toPathString(localVarUrlObj),
1260
                options: localVarRequestOptions,
1261
            };
1262
        },
1263
        /**
1264
         * 
1265
         * @param {string} annotationId 
1266
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1267
         * @param {*} [options] Override http request option.
1268
         * @throws {RequiredError}
1269
         */
1270
        annotationAnnotationIdNotePost: async (annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1271
            // verify required parameter 'annotationId' is not null or undefined
1272
            assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
1273
            const localVarPath = `/annotation/{annotationId}/note`
1274
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1275
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1276
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1277
            let baseOptions;
1278
            if (configuration) {
1279
                baseOptions = configuration.baseOptions;
1280
            }
1281

    
1282
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1283
            const localVarHeaderParameter = {} as any;
1284
            const localVarQueryParameter = {} as any;
1285

    
1286

    
1287
    
1288
            localVarHeaderParameter['Content-Type'] = 'application/json';
1289

    
1290
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1291
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1292
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1293
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
1294

    
1295
            return {
1296
                url: toPathString(localVarUrlObj),
1297
                options: localVarRequestOptions,
1298
            };
1299
        },
1300
        /**
1301
         * 
1302
         * @param {string} annotationId 
1303
         * @param {string} occurenceId 
1304
         * @param {*} [options] Override http request option.
1305
         * @throws {RequiredError}
1306
         */
1307
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1308
            // verify required parameter 'annotationId' is not null or undefined
1309
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
1310
            // verify required parameter 'occurenceId' is not null or undefined
1311
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
1312
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
1313
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1314
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
1315
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1316
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1317
            let baseOptions;
1318
            if (configuration) {
1319
                baseOptions = configuration.baseOptions;
1320
            }
1321

    
1322
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1323
            const localVarHeaderParameter = {} as any;
1324
            const localVarQueryParameter = {} as any;
1325

    
1326

    
1327
    
1328
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1329
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1330
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1331

    
1332
            return {
1333
                url: toPathString(localVarUrlObj),
1334
                options: localVarRequestOptions,
1335
            };
1336
        },
1337
        /**
1338
         * 
1339
         * @param {string} annotationId 
1340
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1341
         * @param {*} [options] Override http request option.
1342
         * @throws {RequiredError}
1343
         */
1344
        annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1345
            // verify required parameter 'annotationId' is not null or undefined
1346
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
1347
            const localVarPath = `/annotation/{annotationId}`
1348
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1349
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1350
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1351
            let baseOptions;
1352
            if (configuration) {
1353
                baseOptions = configuration.baseOptions;
1354
            }
1355

    
1356
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1357
            const localVarHeaderParameter = {} as any;
1358
            const localVarQueryParameter = {} as any;
1359

    
1360

    
1361
    
1362
            localVarHeaderParameter['Content-Type'] = 'application/json';
1363

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

    
1369
            return {
1370
                url: toPathString(localVarUrlObj),
1371
                options: localVarRequestOptions,
1372
            };
1373
        },
1374
        /**
1375
         * 
1376
         * @param {string} annotationId 
1377
         * @param {string} occurenceId 
1378
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1379
         * @param {*} [options] Override http request option.
1380
         * @throws {RequiredError}
1381
         */
1382
        annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1383
            // verify required parameter 'annotationId' is not null or undefined
1384
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
1385
            // verify required parameter 'occurenceId' is not null or undefined
1386
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
1387
            const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
1388
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
1389
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
1390
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1391
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1392
            let baseOptions;
1393
            if (configuration) {
1394
                baseOptions = configuration.baseOptions;
1395
            }
1396

    
1397
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1398
            const localVarHeaderParameter = {} as any;
1399
            const localVarQueryParameter = {} as any;
1400

    
1401

    
1402
    
1403
            localVarHeaderParameter['Content-Type'] = 'application/json';
1404

    
1405
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1406
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1407
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1408
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
1409

    
1410
            return {
1411
                url: toPathString(localVarUrlObj),
1412
                options: localVarRequestOptions,
1413
            };
1414
        },
1415
        /**
1416
         * 
1417
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1418
         * @param {*} [options] Override http request option.
1419
         * @throws {RequiredError}
1420
         */
1421
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1422
            const localVarPath = `/annotations`;
1423
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1424
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1425
            let baseOptions;
1426
            if (configuration) {
1427
                baseOptions = configuration.baseOptions;
1428
            }
1429

    
1430
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1431
            const localVarHeaderParameter = {} as any;
1432
            const localVarQueryParameter = {} as any;
1433

    
1434

    
1435
    
1436
            localVarHeaderParameter['Content-Type'] = 'application/json';
1437

    
1438
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1439
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1440
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1441
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
1442

    
1443
            return {
1444
                url: toPathString(localVarUrlObj),
1445
                options: localVarRequestOptions,
1446
            };
1447
        },
1448
    }
1449
};
1450

    
1451
/**
1452
 * AnnotationApi - functional programming interface
1453
 * @export
1454
 */
1455
export const AnnotationApiFp = function(configuration?: Configuration) {
1456
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
1457
    return {
1458
        /**
1459
         * 
1460
         * @param {string} annotationId 
1461
         * @param {*} [options] Override http request option.
1462
         * @throws {RequiredError}
1463
         */
1464
        async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
1465
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
1466
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1467
        },
1468
        /**
1469
         * 
1470
         * @param {string} annotationId 
1471
         * @param {string} instanceId 
1472
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1473
         * @param {*} [options] Override http request option.
1474
         * @throws {RequiredError}
1475
         */
1476
        async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1477
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options);
1478
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1479
        },
1480
        /**
1481
         * 
1482
         * @param {string} annotationId 
1483
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1484
         * @param {*} [options] Override http request option.
1485
         * @throws {RequiredError}
1486
         */
1487
        async annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1488
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options);
1489
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1490
        },
1491
        /**
1492
         * 
1493
         * @param {string} annotationId 
1494
         * @param {string} occurenceId 
1495
         * @param {*} [options] Override http request option.
1496
         * @throws {RequiredError}
1497
         */
1498
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1499
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
1500
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1501
        },
1502
        /**
1503
         * 
1504
         * @param {string} annotationId 
1505
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1506
         * @param {*} [options] Override http request option.
1507
         * @throws {RequiredError}
1508
         */
1509
        async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1510
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
1511
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1512
        },
1513
        /**
1514
         * 
1515
         * @param {string} annotationId 
1516
         * @param {string} occurenceId 
1517
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1518
         * @param {*} [options] Override http request option.
1519
         * @throws {RequiredError}
1520
         */
1521
        async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1522
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options);
1523
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1524
        },
1525
        /**
1526
         * 
1527
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1528
         * @param {*} [options] Override http request option.
1529
         * @throws {RequiredError}
1530
         */
1531
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1532
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
1533
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1534
        },
1535
    }
1536
};
1537

    
1538
/**
1539
 * AnnotationApi - factory interface
1540
 * @export
1541
 */
1542
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1543
    const localVarFp = AnnotationApiFp(configuration)
1544
    return {
1545
        /**
1546
         * 
1547
         * @param {string} annotationId 
1548
         * @param {*} [options] Override http request option.
1549
         * @throws {RequiredError}
1550
         */
1551
        annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
1552
            return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
1553
        },
1554
        /**
1555
         * 
1556
         * @param {string} annotationId 
1557
         * @param {string} instanceId 
1558
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1559
         * @param {*} [options] Override http request option.
1560
         * @throws {RequiredError}
1561
         */
1562
        annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
1563
            return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
1564
        },
1565
        /**
1566
         * 
1567
         * @param {string} annotationId 
1568
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1569
         * @param {*} [options] Override http request option.
1570
         * @throws {RequiredError}
1571
         */
1572
        annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
1573
            return localVarFp.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
1574
        },
1575
        /**
1576
         * 
1577
         * @param {string} annotationId 
1578
         * @param {string} occurenceId 
1579
         * @param {*} [options] Override http request option.
1580
         * @throws {RequiredError}
1581
         */
1582
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> {
1583
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath));
1584
        },
1585
        /**
1586
         * 
1587
         * @param {string} annotationId 
1588
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1589
         * @param {*} [options] Override http request option.
1590
         * @throws {RequiredError}
1591
         */
1592
        annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
1593
            return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
1594
        },
1595
        /**
1596
         * 
1597
         * @param {string} annotationId 
1598
         * @param {string} occurenceId 
1599
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1600
         * @param {*} [options] Override http request option.
1601
         * @throws {RequiredError}
1602
         */
1603
        annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
1604
            return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
1605
        },
1606
        /**
1607
         * 
1608
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1609
         * @param {*} [options] Override http request option.
1610
         * @throws {RequiredError}
1611
         */
1612
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
1613
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
1614
        },
1615
    };
1616
};
1617

    
1618
/**
1619
 * AnnotationApi - object-oriented interface
1620
 * @export
1621
 * @class AnnotationApi
1622
 * @extends {BaseAPI}
1623
 */
1624
export class AnnotationApi extends BaseAPI {
1625
    /**
1626
     * 
1627
     * @param {string} annotationId 
1628
     * @param {*} [options] Override http request option.
1629
     * @throws {RequiredError}
1630
     * @memberof AnnotationApi
1631
     */
1632
    public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
1633
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
1634
    }
1635

    
1636
    /**
1637
     * 
1638
     * @param {string} annotationId 
1639
     * @param {string} instanceId 
1640
     * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
1641
     * @param {*} [options] Override http request option.
1642
     * @throws {RequiredError}
1643
     * @memberof AnnotationApi
1644
     */
1645
    public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
1646
        return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
1647
    }
1648

    
1649
    /**
1650
     * 
1651
     * @param {string} annotationId 
1652
     * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
1653
     * @param {*} [options] Override http request option.
1654
     * @throws {RequiredError}
1655
     * @memberof AnnotationApi
1656
     */
1657
    public annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
1658
        return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
1659
    }
1660

    
1661
    /**
1662
     * 
1663
     * @param {string} annotationId 
1664
     * @param {string} occurenceId 
1665
     * @param {*} [options] Override http request option.
1666
     * @throws {RequiredError}
1667
     * @memberof AnnotationApi
1668
     */
1669
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
1670
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
1671
    }
1672

    
1673
    /**
1674
     * 
1675
     * @param {string} annotationId 
1676
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
1677
     * @param {*} [options] Override http request option.
1678
     * @throws {RequiredError}
1679
     * @memberof AnnotationApi
1680
     */
1681
    public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
1682
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
1683
    }
1684

    
1685
    /**
1686
     * 
1687
     * @param {string} annotationId 
1688
     * @param {string} occurenceId 
1689
     * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
1690
     * @param {*} [options] Override http request option.
1691
     * @throws {RequiredError}
1692
     * @memberof AnnotationApi
1693
     */
1694
    public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
1695
        return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
1696
    }
1697

    
1698
    /**
1699
     * 
1700
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
1701
     * @param {*} [options] Override http request option.
1702
     * @throws {RequiredError}
1703
     * @memberof AnnotationApi
1704
     */
1705
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
1706
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
1707
    }
1708
}
1709

    
1710

    
1711
/**
1712
 * AuthApi - axios parameter creator
1713
 * @export
1714
 */
1715
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1716
    return {
1717
        /**
1718
         * 
1719
         * @param {LoginRequest} [loginRequest] 
1720
         * @param {*} [options] Override http request option.
1721
         * @throws {RequiredError}
1722
         */
1723
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1724
            const localVarPath = `/auth/login`;
1725
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1726
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1727
            let baseOptions;
1728
            if (configuration) {
1729
                baseOptions = configuration.baseOptions;
1730
            }
1731

    
1732
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1733
            const localVarHeaderParameter = {} as any;
1734
            const localVarQueryParameter = {} as any;
1735

    
1736

    
1737
    
1738
            localVarHeaderParameter['Content-Type'] = 'application/json';
1739

    
1740
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1741
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1742
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1743
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
1744

    
1745
            return {
1746
                url: toPathString(localVarUrlObj),
1747
                options: localVarRequestOptions,
1748
            };
1749
        },
1750
        /**
1751
         * 
1752
         * @param {*} [options] Override http request option.
1753
         * @throws {RequiredError}
1754
         */
1755
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1756
            const localVarPath = `/auth/test/aa`;
1757
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1758
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1759
            let baseOptions;
1760
            if (configuration) {
1761
                baseOptions = configuration.baseOptions;
1762
            }
1763

    
1764
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1765
            const localVarHeaderParameter = {} as any;
1766
            const localVarQueryParameter = {} as any;
1767

    
1768

    
1769
    
1770
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1771
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1772
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1773

    
1774
            return {
1775
                url: toPathString(localVarUrlObj),
1776
                options: localVarRequestOptions,
1777
            };
1778
        },
1779
        /**
1780
         * 
1781
         * @param {*} [options] Override http request option.
1782
         * @throws {RequiredError}
1783
         */
1784
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1785
            const localVarPath = `/auth/test`;
1786
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1787
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1788
            let baseOptions;
1789
            if (configuration) {
1790
                baseOptions = configuration.baseOptions;
1791
            }
1792

    
1793
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1794
            const localVarHeaderParameter = {} as any;
1795
            const localVarQueryParameter = {} as any;
1796

    
1797

    
1798
    
1799
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1800
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1801
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1802

    
1803
            return {
1804
                url: toPathString(localVarUrlObj),
1805
                options: localVarRequestOptions,
1806
            };
1807
        },
1808
    }
1809
};
1810

    
1811
/**
1812
 * AuthApi - functional programming interface
1813
 * @export
1814
 */
1815
export const AuthApiFp = function(configuration?: Configuration) {
1816
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1817
    return {
1818
        /**
1819
         * 
1820
         * @param {LoginRequest} [loginRequest] 
1821
         * @param {*} [options] Override http request option.
1822
         * @throws {RequiredError}
1823
         */
1824
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
1825
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
1826
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1827
        },
1828
        /**
1829
         * 
1830
         * @param {*} [options] Override http request option.
1831
         * @throws {RequiredError}
1832
         */
1833
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1834
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
1835
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1836
        },
1837
        /**
1838
         * 
1839
         * @param {*} [options] Override http request option.
1840
         * @throws {RequiredError}
1841
         */
1842
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
1843
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
1844
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1845
        },
1846
    }
1847
};
1848

    
1849
/**
1850
 * AuthApi - factory interface
1851
 * @export
1852
 */
1853
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1854
    const localVarFp = AuthApiFp(configuration)
1855
    return {
1856
        /**
1857
         * 
1858
         * @param {LoginRequest} [loginRequest] 
1859
         * @param {*} [options] Override http request option.
1860
         * @throws {RequiredError}
1861
         */
1862
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
1863
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
1864
        },
1865
        /**
1866
         * 
1867
         * @param {*} [options] Override http request option.
1868
         * @throws {RequiredError}
1869
         */
1870
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
1871
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
1872
        },
1873
        /**
1874
         * 
1875
         * @param {*} [options] Override http request option.
1876
         * @throws {RequiredError}
1877
         */
1878
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
1879
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
1880
        },
1881
    };
1882
};
1883

    
1884
/**
1885
 * AuthApi - object-oriented interface
1886
 * @export
1887
 * @class AuthApi
1888
 * @extends {BaseAPI}
1889
 */
1890
export class AuthApi extends BaseAPI {
1891
    /**
1892
     * 
1893
     * @param {LoginRequest} [loginRequest] 
1894
     * @param {*} [options] Override http request option.
1895
     * @throws {RequiredError}
1896
     * @memberof AuthApi
1897
     */
1898
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
1899
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
1900
    }
1901

    
1902
    /**
1903
     * 
1904
     * @param {*} [options] Override http request option.
1905
     * @throws {RequiredError}
1906
     * @memberof AuthApi
1907
     */
1908
    public authTestAaGet(options?: AxiosRequestConfig) {
1909
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
1910
    }
1911

    
1912
    /**
1913
     * 
1914
     * @param {*} [options] Override http request option.
1915
     * @throws {RequiredError}
1916
     * @memberof AuthApi
1917
     */
1918
    public authTestGet(options?: AxiosRequestConfig) {
1919
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
1920
    }
1921
}
1922

    
1923

    
1924
/**
1925
 * DocumentApi - axios parameter creator
1926
 * @export
1927
 */
1928
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
1929
    return {
1930
        /**
1931
         * 
1932
         * @param {string} documentId 
1933
         * @param {*} [options] Override http request option.
1934
         * @throws {RequiredError}
1935
         */
1936
        documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1937
            // verify required parameter 'documentId' is not null or undefined
1938
            assertParamExists('documentDocumentIdGet', 'documentId', documentId)
1939
            const localVarPath = `/document/{documentId}`
1940
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
1941
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1942
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1943
            let baseOptions;
1944
            if (configuration) {
1945
                baseOptions = configuration.baseOptions;
1946
            }
1947

    
1948
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1949
            const localVarHeaderParameter = {} as any;
1950
            const localVarQueryParameter = {} as any;
1951

    
1952

    
1953
    
1954
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1955
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1956
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1957

    
1958
            return {
1959
                url: toPathString(localVarUrlObj),
1960
                options: localVarRequestOptions,
1961
            };
1962
        },
1963
        /**
1964
         * 
1965
         * @param {number} [pageIndex] 
1966
         * @param {number} [pageSize] 
1967
         * @param {*} [options] Override http request option.
1968
         * @throws {RequiredError}
1969
         */
1970
        documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1971
            const localVarPath = `/documents`;
1972
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1973
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1974
            let baseOptions;
1975
            if (configuration) {
1976
                baseOptions = configuration.baseOptions;
1977
            }
1978

    
1979
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1980
            const localVarHeaderParameter = {} as any;
1981
            const localVarQueryParameter = {} as any;
1982

    
1983
            if (pageIndex !== undefined) {
1984
                localVarQueryParameter['pageIndex'] = pageIndex;
1985
            }
1986

    
1987
            if (pageSize !== undefined) {
1988
                localVarQueryParameter['pageSize'] = pageSize;
1989
            }
1990

    
1991

    
1992
    
1993
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1994
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1995
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1996

    
1997
            return {
1998
                url: toPathString(localVarUrlObj),
1999
                options: localVarRequestOptions,
2000
            };
2001
        },
2002
        /**
2003
         * 
2004
         * @param {DocumentAddRequest} [documentAddRequest] 
2005
         * @param {*} [options] Override http request option.
2006
         * @throws {RequiredError}
2007
         */
2008
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2009
            const localVarPath = `/documents`;
2010
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2011
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2012
            let baseOptions;
2013
            if (configuration) {
2014
                baseOptions = configuration.baseOptions;
2015
            }
2016

    
2017
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2018
            const localVarHeaderParameter = {} as any;
2019
            const localVarQueryParameter = {} as any;
2020

    
2021

    
2022
    
2023
            localVarHeaderParameter['Content-Type'] = 'application/json';
2024

    
2025
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2026
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2027
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2028
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
2029

    
2030
            return {
2031
                url: toPathString(localVarUrlObj),
2032
                options: localVarRequestOptions,
2033
            };
2034
        },
2035
        /**
2036
         * 
2037
         * @param {*} [options] Override http request option.
2038
         * @throws {RequiredError}
2039
         */
2040
        documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2041
            const localVarPath = `/documents/requiredAnnotations/global`;
2042
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2043
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2044
            let baseOptions;
2045
            if (configuration) {
2046
                baseOptions = configuration.baseOptions;
2047
            }
2048

    
2049
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2050
            const localVarHeaderParameter = {} as any;
2051
            const localVarQueryParameter = {} as any;
2052

    
2053

    
2054
    
2055
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2056
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2057
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2058

    
2059
            return {
2060
                url: toPathString(localVarUrlObj),
2061
                options: localVarRequestOptions,
2062
            };
2063
        },
2064
        /**
2065
         * 
2066
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2067
         * @param {*} [options] Override http request option.
2068
         * @throws {RequiredError}
2069
         */
2070
        documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2071
            const localVarPath = `/documents/requiredAnnotations/global`;
2072
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2073
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2074
            let baseOptions;
2075
            if (configuration) {
2076
                baseOptions = configuration.baseOptions;
2077
            }
2078

    
2079
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2080
            const localVarHeaderParameter = {} as any;
2081
            const localVarQueryParameter = {} as any;
2082

    
2083

    
2084
    
2085
            localVarHeaderParameter['Content-Type'] = 'application/json';
2086

    
2087
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2088
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2089
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2090
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
2091

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

    
2112
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2113
            const localVarHeaderParameter = {} as any;
2114
            const localVarQueryParameter = {} as any;
2115

    
2116

    
2117
    
2118
            localVarHeaderParameter['Content-Type'] = 'application/json';
2119

    
2120
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2121
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2122
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2123
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
2124

    
2125
            return {
2126
                url: toPathString(localVarUrlObj),
2127
                options: localVarRequestOptions,
2128
            };
2129
        },
2130
    }
2131
};
2132

    
2133
/**
2134
 * DocumentApi - functional programming interface
2135
 * @export
2136
 */
2137
export const DocumentApiFp = function(configuration?: Configuration) {
2138
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
2139
    return {
2140
        /**
2141
         * 
2142
         * @param {string} documentId 
2143
         * @param {*} [options] Override http request option.
2144
         * @throws {RequiredError}
2145
         */
2146
        async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
2147
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
2148
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2149
        },
2150
        /**
2151
         * 
2152
         * @param {number} [pageIndex] 
2153
         * @param {number} [pageSize] 
2154
         * @param {*} [options] Override http request option.
2155
         * @throws {RequiredError}
2156
         */
2157
        async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
2158
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
2159
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2160
        },
2161
        /**
2162
         * 
2163
         * @param {DocumentAddRequest} [documentAddRequest] 
2164
         * @param {*} [options] Override http request option.
2165
         * @throws {RequiredError}
2166
         */
2167
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2168
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
2169
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2170
        },
2171
        /**
2172
         * 
2173
         * @param {*} [options] Override http request option.
2174
         * @throws {RequiredError}
2175
         */
2176
        async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
2177
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
2178
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2179
        },
2180
        /**
2181
         * 
2182
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2183
         * @param {*} [options] Override http request option.
2184
         * @throws {RequiredError}
2185
         */
2186
        async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2187
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
2188
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2189
        },
2190
        /**
2191
         * 
2192
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2193
         * @param {*} [options] Override http request option.
2194
         * @throws {RequiredError}
2195
         */
2196
        async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2197
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
2198
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2199
        },
2200
    }
2201
};
2202

    
2203
/**
2204
 * DocumentApi - factory interface
2205
 * @export
2206
 */
2207
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2208
    const localVarFp = DocumentApiFp(configuration)
2209
    return {
2210
        /**
2211
         * 
2212
         * @param {string} documentId 
2213
         * @param {*} [options] Override http request option.
2214
         * @throws {RequiredError}
2215
         */
2216
        documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
2217
            return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
2218
        },
2219
        /**
2220
         * 
2221
         * @param {number} [pageIndex] 
2222
         * @param {number} [pageSize] 
2223
         * @param {*} [options] Override http request option.
2224
         * @throws {RequiredError}
2225
         */
2226
        documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
2227
            return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
2228
        },
2229
        /**
2230
         * 
2231
         * @param {DocumentAddRequest} [documentAddRequest] 
2232
         * @param {*} [options] Override http request option.
2233
         * @throws {RequiredError}
2234
         */
2235
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
2236
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
2237
        },
2238
        /**
2239
         * 
2240
         * @param {*} [options] Override http request option.
2241
         * @throws {RequiredError}
2242
         */
2243
        documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
2244
            return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
2245
        },
2246
        /**
2247
         * 
2248
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2249
         * @param {*} [options] Override http request option.
2250
         * @throws {RequiredError}
2251
         */
2252
        documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
2253
            return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
2254
        },
2255
        /**
2256
         * 
2257
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2258
         * @param {*} [options] Override http request option.
2259
         * @throws {RequiredError}
2260
         */
2261
        documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
2262
            return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
2263
        },
2264
    };
2265
};
2266

    
2267
/**
2268
 * DocumentApi - object-oriented interface
2269
 * @export
2270
 * @class DocumentApi
2271
 * @extends {BaseAPI}
2272
 */
2273
export class DocumentApi extends BaseAPI {
2274
    /**
2275
     * 
2276
     * @param {string} documentId 
2277
     * @param {*} [options] Override http request option.
2278
     * @throws {RequiredError}
2279
     * @memberof DocumentApi
2280
     */
2281
    public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
2282
        return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
2283
    }
2284

    
2285
    /**
2286
     * 
2287
     * @param {number} [pageIndex] 
2288
     * @param {number} [pageSize] 
2289
     * @param {*} [options] Override http request option.
2290
     * @throws {RequiredError}
2291
     * @memberof DocumentApi
2292
     */
2293
    public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
2294
        return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
2295
    }
2296

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

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

    
2318
    /**
2319
     * 
2320
     * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
2321
     * @param {*} [options] Override http request option.
2322
     * @throws {RequiredError}
2323
     * @memberof DocumentApi
2324
     */
2325
    public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
2326
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
2327
    }
2328

    
2329
    /**
2330
     * 
2331
     * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
2332
     * @param {*} [options] Override http request option.
2333
     * @throws {RequiredError}
2334
     * @memberof DocumentApi
2335
     */
2336
    public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
2337
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
2338
    }
2339
}
2340

    
2341

    
2342
/**
2343
 * TagApi - axios parameter creator
2344
 * @export
2345
 */
2346
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
2347
    return {
2348
        /**
2349
         * 
2350
         * @param {CreateCategoryRequest} [createCategoryRequest] 
2351
         * @param {*} [options] Override http request option.
2352
         * @throws {RequiredError}
2353
         */
2354
        categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2355
            const localVarPath = `/categories`;
2356
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2357
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2358
            let baseOptions;
2359
            if (configuration) {
2360
                baseOptions = configuration.baseOptions;
2361
            }
2362

    
2363
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2364
            const localVarHeaderParameter = {} as any;
2365
            const localVarQueryParameter = {} as any;
2366

    
2367

    
2368
    
2369
            localVarHeaderParameter['Content-Type'] = 'application/json';
2370

    
2371
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2372
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2373
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2374
            localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
2375

    
2376
            return {
2377
                url: toPathString(localVarUrlObj),
2378
                options: localVarRequestOptions,
2379
            };
2380
        },
2381
        /**
2382
         * 
2383
         * @param {string} categoryId 
2384
         * @param {*} [options] Override http request option.
2385
         * @throws {RequiredError}
2386
         */
2387
        categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2388
            // verify required parameter 'categoryId' is not null or undefined
2389
            assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
2390
            const localVarPath = `/category/{categoryId}`
2391
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
2392
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2393
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2394
            let baseOptions;
2395
            if (configuration) {
2396
                baseOptions = configuration.baseOptions;
2397
            }
2398

    
2399
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2400
            const localVarHeaderParameter = {} as any;
2401
            const localVarQueryParameter = {} as any;
2402

    
2403

    
2404
    
2405
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2406
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2407
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2408

    
2409
            return {
2410
                url: toPathString(localVarUrlObj),
2411
                options: localVarRequestOptions,
2412
            };
2413
        },
2414
        /**
2415
         * 
2416
         * @param {string} categoryId 
2417
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
2418
         * @param {*} [options] Override http request option.
2419
         * @throws {RequiredError}
2420
         */
2421
        categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2422
            // verify required parameter 'categoryId' is not null or undefined
2423
            assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
2424
            const localVarPath = `/category/{categoryId}`
2425
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
2426
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2427
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2428
            let baseOptions;
2429
            if (configuration) {
2430
                baseOptions = configuration.baseOptions;
2431
            }
2432

    
2433
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2434
            const localVarHeaderParameter = {} as any;
2435
            const localVarQueryParameter = {} as any;
2436

    
2437

    
2438
    
2439
            localVarHeaderParameter['Content-Type'] = 'application/json';
2440

    
2441
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2442
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2443
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2444
            localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
2445

    
2446
            return {
2447
                url: toPathString(localVarUrlObj),
2448
                options: localVarRequestOptions,
2449
            };
2450
        },
2451
        /**
2452
         * 
2453
         * @param {string} subtagId 
2454
         * @param {*} [options] Override http request option.
2455
         * @throws {RequiredError}
2456
         */
2457
        subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2458
            // verify required parameter 'subtagId' is not null or undefined
2459
            assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
2460
            const localVarPath = `/subtag/{subtagId}`
2461
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
2462
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2463
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2464
            let baseOptions;
2465
            if (configuration) {
2466
                baseOptions = configuration.baseOptions;
2467
            }
2468

    
2469
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2470
            const localVarHeaderParameter = {} as any;
2471
            const localVarQueryParameter = {} as any;
2472

    
2473

    
2474
    
2475
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2476
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2477
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2478

    
2479
            return {
2480
                url: toPathString(localVarUrlObj),
2481
                options: localVarRequestOptions,
2482
            };
2483
        },
2484
        /**
2485
         * 
2486
         * @param {string} subtagId 
2487
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
2488
         * @param {*} [options] Override http request option.
2489
         * @throws {RequiredError}
2490
         */
2491
        subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2492
            // verify required parameter 'subtagId' is not null or undefined
2493
            assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
2494
            const localVarPath = `/subtag/{subtagId}`
2495
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
2496
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2497
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2498
            let baseOptions;
2499
            if (configuration) {
2500
                baseOptions = configuration.baseOptions;
2501
            }
2502

    
2503
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2504
            const localVarHeaderParameter = {} as any;
2505
            const localVarQueryParameter = {} as any;
2506

    
2507

    
2508
    
2509
            localVarHeaderParameter['Content-Type'] = 'application/json';
2510

    
2511
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2512
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2513
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2514
            localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
2515

    
2516
            return {
2517
                url: toPathString(localVarUrlObj),
2518
                options: localVarRequestOptions,
2519
            };
2520
        },
2521
        /**
2522
         * 
2523
         * @param {CreateSubTagRequest} [createSubTagRequest] 
2524
         * @param {*} [options] Override http request option.
2525
         * @throws {RequiredError}
2526
         */
2527
        subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2528
            const localVarPath = `/subtags`;
2529
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2530
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2531
            let baseOptions;
2532
            if (configuration) {
2533
                baseOptions = configuration.baseOptions;
2534
            }
2535

    
2536
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2537
            const localVarHeaderParameter = {} as any;
2538
            const localVarQueryParameter = {} as any;
2539

    
2540

    
2541
    
2542
            localVarHeaderParameter['Content-Type'] = 'application/json';
2543

    
2544
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2545
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2546
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2547
            localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
2548

    
2549
            return {
2550
                url: toPathString(localVarUrlObj),
2551
                options: localVarRequestOptions,
2552
            };
2553
        },
2554
        /**
2555
         * 
2556
         * @param {string} tagId 
2557
         * @param {*} [options] Override http request option.
2558
         * @throws {RequiredError}
2559
         */
2560
        tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2561
            // verify required parameter 'tagId' is not null or undefined
2562
            assertParamExists('tagTagIdDelete', 'tagId', tagId)
2563
            const localVarPath = `/tag/{tagId}`
2564
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
2565
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2566
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2567
            let baseOptions;
2568
            if (configuration) {
2569
                baseOptions = configuration.baseOptions;
2570
            }
2571

    
2572
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2573
            const localVarHeaderParameter = {} as any;
2574
            const localVarQueryParameter = {} as any;
2575

    
2576

    
2577
    
2578
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2579
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2580
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2581

    
2582
            return {
2583
                url: toPathString(localVarUrlObj),
2584
                options: localVarRequestOptions,
2585
            };
2586
        },
2587
        /**
2588
         * 
2589
         * @param {string} tagId 
2590
         * @param {ModifyTagRequest} [modifyTagRequest] 
2591
         * @param {*} [options] Override http request option.
2592
         * @throws {RequiredError}
2593
         */
2594
        tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2595
            // verify required parameter 'tagId' is not null or undefined
2596
            assertParamExists('tagTagIdPut', 'tagId', tagId)
2597
            const localVarPath = `/tag/{tagId}`
2598
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
2599
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2600
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2601
            let baseOptions;
2602
            if (configuration) {
2603
                baseOptions = configuration.baseOptions;
2604
            }
2605

    
2606
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2607
            const localVarHeaderParameter = {} as any;
2608
            const localVarQueryParameter = {} as any;
2609

    
2610

    
2611
    
2612
            localVarHeaderParameter['Content-Type'] = 'application/json';
2613

    
2614
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2615
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2616
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2617
            localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
2618

    
2619
            return {
2620
                url: toPathString(localVarUrlObj),
2621
                options: localVarRequestOptions,
2622
            };
2623
        },
2624
        /**
2625
         * 
2626
         * @param {*} [options] Override http request option.
2627
         * @throws {RequiredError}
2628
         */
2629
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2630
            const localVarPath = `/tags`;
2631
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2632
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2633
            let baseOptions;
2634
            if (configuration) {
2635
                baseOptions = configuration.baseOptions;
2636
            }
2637

    
2638
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2639
            const localVarHeaderParameter = {} as any;
2640
            const localVarQueryParameter = {} as any;
2641

    
2642

    
2643
    
2644
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2645
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2646
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2647

    
2648
            return {
2649
                url: toPathString(localVarUrlObj),
2650
                options: localVarRequestOptions,
2651
            };
2652
        },
2653
        /**
2654
         * 
2655
         * @param {CreateTagRequest} [createTagRequest] 
2656
         * @param {*} [options] Override http request option.
2657
         * @throws {RequiredError}
2658
         */
2659
        tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2660
            const localVarPath = `/tags`;
2661
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2662
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2663
            let baseOptions;
2664
            if (configuration) {
2665
                baseOptions = configuration.baseOptions;
2666
            }
2667

    
2668
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2669
            const localVarHeaderParameter = {} as any;
2670
            const localVarQueryParameter = {} as any;
2671

    
2672

    
2673
    
2674
            localVarHeaderParameter['Content-Type'] = 'application/json';
2675

    
2676
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2677
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2678
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2679
            localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
2680

    
2681
            return {
2682
                url: toPathString(localVarUrlObj),
2683
                options: localVarRequestOptions,
2684
            };
2685
        },
2686
    }
2687
};
2688

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

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

    
2903
/**
2904
 * TagApi - object-oriented interface
2905
 * @export
2906
 * @class TagApi
2907
 * @extends {BaseAPI}
2908
 */
2909
export class TagApi extends BaseAPI {
2910
    /**
2911
     * 
2912
     * @param {CreateCategoryRequest} [createCategoryRequest] 
2913
     * @param {*} [options] Override http request option.
2914
     * @throws {RequiredError}
2915
     * @memberof TagApi
2916
     */
2917
    public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
2918
        return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
2919
    }
2920

    
2921
    /**
2922
     * 
2923
     * @param {string} categoryId 
2924
     * @param {*} [options] Override http request option.
2925
     * @throws {RequiredError}
2926
     * @memberof TagApi
2927
     */
2928
    public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
2929
        return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
2930
    }
2931

    
2932
    /**
2933
     * 
2934
     * @param {string} categoryId 
2935
     * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
2936
     * @param {*} [options] Override http request option.
2937
     * @throws {RequiredError}
2938
     * @memberof TagApi
2939
     */
2940
    public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
2941
        return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
2942
    }
2943

    
2944
    /**
2945
     * 
2946
     * @param {string} subtagId 
2947
     * @param {*} [options] Override http request option.
2948
     * @throws {RequiredError}
2949
     * @memberof TagApi
2950
     */
2951
    public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
2952
        return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
2953
    }
2954

    
2955
    /**
2956
     * 
2957
     * @param {string} subtagId 
2958
     * @param {ModifySubTagRequest} [modifySubTagRequest] 
2959
     * @param {*} [options] Override http request option.
2960
     * @throws {RequiredError}
2961
     * @memberof TagApi
2962
     */
2963
    public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
2964
        return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
2965
    }
2966

    
2967
    /**
2968
     * 
2969
     * @param {CreateSubTagRequest} [createSubTagRequest] 
2970
     * @param {*} [options] Override http request option.
2971
     * @throws {RequiredError}
2972
     * @memberof TagApi
2973
     */
2974
    public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
2975
        return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
2976
    }
2977

    
2978
    /**
2979
     * 
2980
     * @param {string} tagId 
2981
     * @param {*} [options] Override http request option.
2982
     * @throws {RequiredError}
2983
     * @memberof TagApi
2984
     */
2985
    public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
2986
        return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
2987
    }
2988

    
2989
    /**
2990
     * 
2991
     * @param {string} tagId 
2992
     * @param {ModifyTagRequest} [modifyTagRequest] 
2993
     * @param {*} [options] Override http request option.
2994
     * @throws {RequiredError}
2995
     * @memberof TagApi
2996
     */
2997
    public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
2998
        return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
2999
    }
3000

    
3001
    /**
3002
     * 
3003
     * @param {*} [options] Override http request option.
3004
     * @throws {RequiredError}
3005
     * @memberof TagApi
3006
     */
3007
    public tagsGet(options?: AxiosRequestConfig) {
3008
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
3009
    }
3010

    
3011
    /**
3012
     * 
3013
     * @param {CreateTagRequest} [createTagRequest] 
3014
     * @param {*} [options] Override http request option.
3015
     * @throws {RequiredError}
3016
     * @memberof TagApi
3017
     */
3018
    public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
3019
        return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
3020
    }
3021
}
3022

    
3023

    
3024
/**
3025
 * UserApi - axios parameter creator
3026
 * @export
3027
 */
3028
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
3029
    return {
3030
        /**
3031
         * 
3032
         * @param {*} [options] Override http request option.
3033
         * @throws {RequiredError}
3034
         */
3035
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3036
            const localVarPath = `/user/annotations`;
3037
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3038
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3039
            let baseOptions;
3040
            if (configuration) {
3041
                baseOptions = configuration.baseOptions;
3042
            }
3043

    
3044
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3045
            const localVarHeaderParameter = {} as any;
3046
            const localVarQueryParameter = {} as any;
3047

    
3048

    
3049
    
3050
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3051
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3052
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3053

    
3054
            return {
3055
                url: toPathString(localVarUrlObj),
3056
                options: localVarRequestOptions,
3057
            };
3058
        },
3059
        /**
3060
         * 
3061
         * @param {string} userId 
3062
         * @param {*} [options] Override http request option.
3063
         * @throws {RequiredError}
3064
         */
3065
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3066
            // verify required parameter 'userId' is not null or undefined
3067
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
3068
            const localVarPath = `/user/{userId}/annotations`
3069
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3070
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3071
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3072
            let baseOptions;
3073
            if (configuration) {
3074
                baseOptions = configuration.baseOptions;
3075
            }
3076

    
3077
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3078
            const localVarHeaderParameter = {} as any;
3079
            const localVarQueryParameter = {} as any;
3080

    
3081

    
3082
    
3083
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3084
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3085
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3086

    
3087
            return {
3088
                url: toPathString(localVarUrlObj),
3089
                options: localVarRequestOptions,
3090
            };
3091
        },
3092
        /**
3093
         * 
3094
         * @param {string} userId 
3095
         * @param {*} [options] Override http request option.
3096
         * @throws {RequiredError}
3097
         */
3098
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3099
            // verify required parameter 'userId' is not null or undefined
3100
            assertParamExists('userUserIdDelete', 'userId', userId)
3101
            const localVarPath = `/user/{userId}`
3102
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3103
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3104
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3105
            let baseOptions;
3106
            if (configuration) {
3107
                baseOptions = configuration.baseOptions;
3108
            }
3109

    
3110
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3111
            const localVarHeaderParameter = {} as any;
3112
            const localVarQueryParameter = {} as any;
3113

    
3114

    
3115
    
3116
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3117
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3118
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3119

    
3120
            return {
3121
                url: toPathString(localVarUrlObj),
3122
                options: localVarRequestOptions,
3123
            };
3124
        },
3125
        /**
3126
         * 
3127
         * @param {string} userId 
3128
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3129
         * @param {*} [options] Override http request option.
3130
         * @throws {RequiredError}
3131
         */
3132
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3133
            // verify required parameter 'userId' is not null or undefined
3134
            assertParamExists('userUserIdPut', 'userId', userId)
3135
            const localVarPath = `/user/{userId}`
3136
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3137
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3138
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3139
            let baseOptions;
3140
            if (configuration) {
3141
                baseOptions = configuration.baseOptions;
3142
            }
3143

    
3144
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3145
            const localVarHeaderParameter = {} as any;
3146
            const localVarQueryParameter = {} as any;
3147

    
3148

    
3149
    
3150
            localVarHeaderParameter['Content-Type'] = 'application/json';
3151

    
3152
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3153
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3154
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3155
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
3156

    
3157
            return {
3158
                url: toPathString(localVarUrlObj),
3159
                options: localVarRequestOptions,
3160
            };
3161
        },
3162
        /**
3163
         * 
3164
         * @param {*} [options] Override http request option.
3165
         * @throws {RequiredError}
3166
         */
3167
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3168
            const localVarPath = `/users`;
3169
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3170
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3171
            let baseOptions;
3172
            if (configuration) {
3173
                baseOptions = configuration.baseOptions;
3174
            }
3175

    
3176
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3177
            const localVarHeaderParameter = {} as any;
3178
            const localVarQueryParameter = {} as any;
3179

    
3180

    
3181
    
3182
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3183
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3184
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3185

    
3186
            return {
3187
                url: toPathString(localVarUrlObj),
3188
                options: localVarRequestOptions,
3189
            };
3190
        },
3191
        /**
3192
         * 
3193
         * @param {*} [options] Override http request option.
3194
         * @throws {RequiredError}
3195
         */
3196
        usersMeGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3197
            const localVarPath = `/users/me`;
3198
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3199
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3200
            let baseOptions;
3201
            if (configuration) {
3202
                baseOptions = configuration.baseOptions;
3203
            }
3204

    
3205
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3206
            const localVarHeaderParameter = {} as any;
3207
            const localVarQueryParameter = {} as any;
3208

    
3209

    
3210
    
3211
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3212
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3213
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3214

    
3215
            return {
3216
                url: toPathString(localVarUrlObj),
3217
                options: localVarRequestOptions,
3218
            };
3219
        },
3220
        /**
3221
         * 
3222
         * @param {CreateUserRequest} [createUserRequest] 
3223
         * @param {*} [options] Override http request option.
3224
         * @throws {RequiredError}
3225
         */
3226
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3227
            const localVarPath = `/users`;
3228
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3229
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3230
            let baseOptions;
3231
            if (configuration) {
3232
                baseOptions = configuration.baseOptions;
3233
            }
3234

    
3235
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3236
            const localVarHeaderParameter = {} as any;
3237
            const localVarQueryParameter = {} as any;
3238

    
3239

    
3240
    
3241
            localVarHeaderParameter['Content-Type'] = 'application/json';
3242

    
3243
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3244
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3245
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3246
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
3247

    
3248
            return {
3249
                url: toPathString(localVarUrlObj),
3250
                options: localVarRequestOptions,
3251
            };
3252
        },
3253
    }
3254
};
3255

    
3256
/**
3257
 * UserApi - functional programming interface
3258
 * @export
3259
 */
3260
export const UserApiFp = function(configuration?: Configuration) {
3261
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
3262
    return {
3263
        /**
3264
         * 
3265
         * @param {*} [options] Override http request option.
3266
         * @throws {RequiredError}
3267
         */
3268
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
3269
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
3270
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3271
        },
3272
        /**
3273
         * 
3274
         * @param {string} userId 
3275
         * @param {*} [options] Override http request option.
3276
         * @throws {RequiredError}
3277
         */
3278
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
3279
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
3280
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3281
        },
3282
        /**
3283
         * 
3284
         * @param {string} userId 
3285
         * @param {*} [options] Override http request option.
3286
         * @throws {RequiredError}
3287
         */
3288
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3289
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
3290
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3291
        },
3292
        /**
3293
         * 
3294
         * @param {string} userId 
3295
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3296
         * @param {*} [options] Override http request option.
3297
         * @throws {RequiredError}
3298
         */
3299
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3300
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
3301
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3302
        },
3303
        /**
3304
         * 
3305
         * @param {*} [options] Override http request option.
3306
         * @throws {RequiredError}
3307
         */
3308
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
3309
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
3310
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3311
        },
3312
        /**
3313
         * 
3314
         * @param {*} [options] Override http request option.
3315
         * @throws {RequiredError}
3316
         */
3317
        async usersMeGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeResponse>> {
3318
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersMeGet(options);
3319
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3320
        },
3321
        /**
3322
         * 
3323
         * @param {CreateUserRequest} [createUserRequest] 
3324
         * @param {*} [options] Override http request option.
3325
         * @throws {RequiredError}
3326
         */
3327
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3328
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
3329
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3330
        },
3331
    }
3332
};
3333

    
3334
/**
3335
 * UserApi - factory interface
3336
 * @export
3337
 */
3338
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3339
    const localVarFp = UserApiFp(configuration)
3340
    return {
3341
        /**
3342
         * 
3343
         * @param {*} [options] Override http request option.
3344
         * @throws {RequiredError}
3345
         */
3346
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
3347
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
3348
        },
3349
        /**
3350
         * 
3351
         * @param {string} userId 
3352
         * @param {*} [options] Override http request option.
3353
         * @throws {RequiredError}
3354
         */
3355
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
3356
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
3357
        },
3358
        /**
3359
         * 
3360
         * @param {string} userId 
3361
         * @param {*} [options] Override http request option.
3362
         * @throws {RequiredError}
3363
         */
3364
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
3365
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
3366
        },
3367
        /**
3368
         * 
3369
         * @param {string} userId 
3370
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3371
         * @param {*} [options] Override http request option.
3372
         * @throws {RequiredError}
3373
         */
3374
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
3375
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
3376
        },
3377
        /**
3378
         * 
3379
         * @param {*} [options] Override http request option.
3380
         * @throws {RequiredError}
3381
         */
3382
        usersGet(options?: any): AxiosPromise<UserList> {
3383
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
3384
        },
3385
        /**
3386
         * 
3387
         * @param {*} [options] Override http request option.
3388
         * @throws {RequiredError}
3389
         */
3390
        usersMeGet(options?: any): AxiosPromise<UserMeResponse> {
3391
            return localVarFp.usersMeGet(options).then((request) => request(axios, basePath));
3392
        },
3393
        /**
3394
         * 
3395
         * @param {CreateUserRequest} [createUserRequest] 
3396
         * @param {*} [options] Override http request option.
3397
         * @throws {RequiredError}
3398
         */
3399
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
3400
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
3401
        },
3402
    };
3403
};
3404

    
3405
/**
3406
 * UserApi - object-oriented interface
3407
 * @export
3408
 * @class UserApi
3409
 * @extends {BaseAPI}
3410
 */
3411
export class UserApi extends BaseAPI {
3412
    /**
3413
     * 
3414
     * @param {*} [options] Override http request option.
3415
     * @throws {RequiredError}
3416
     * @memberof UserApi
3417
     */
3418
    public userAnnotationsGet(options?: AxiosRequestConfig) {
3419
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
3420
    }
3421

    
3422
    /**
3423
     * 
3424
     * @param {string} userId 
3425
     * @param {*} [options] Override http request option.
3426
     * @throws {RequiredError}
3427
     * @memberof UserApi
3428
     */
3429
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
3430
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
3431
    }
3432

    
3433
    /**
3434
     * 
3435
     * @param {string} userId 
3436
     * @param {*} [options] Override http request option.
3437
     * @throws {RequiredError}
3438
     * @memberof UserApi
3439
     */
3440
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
3441
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
3442
    }
3443

    
3444
    /**
3445
     * 
3446
     * @param {string} userId 
3447
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
3448
     * @param {*} [options] Override http request option.
3449
     * @throws {RequiredError}
3450
     * @memberof UserApi
3451
     */
3452
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
3453
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
3454
    }
3455

    
3456
    /**
3457
     * 
3458
     * @param {*} [options] Override http request option.
3459
     * @throws {RequiredError}
3460
     * @memberof UserApi
3461
     */
3462
    public usersGet(options?: AxiosRequestConfig) {
3463
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
3464
    }
3465

    
3466
    /**
3467
     * 
3468
     * @param {*} [options] Override http request option.
3469
     * @throws {RequiredError}
3470
     * @memberof UserApi
3471
     */
3472
    public usersMeGet(options?: AxiosRequestConfig) {
3473
        return UserApiFp(this.configuration).usersMeGet(options).then((request) => request(this.axios, this.basePath));
3474
    }
3475

    
3476
    /**
3477
     * 
3478
     * @param {CreateUserRequest} [createUserRequest] 
3479
     * @param {*} [options] Override http request option.
3480
     * @throws {RequiredError}
3481
     * @memberof UserApi
3482
     */
3483
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
3484
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
3485
    }
3486
}
3487

    
3488

    
(4-4/9)