Projekt

Obecné

Profil

Stáhnout (159 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 Annotation
54
 */
55
export interface Annotation {
56
    /**
57
     * 
58
     * @type {string}
59
     * @memberof Annotation
60
     */
61
    'id'?: string;
62
    /**
63
     * 
64
     * @type {Document}
65
     * @memberof Annotation
66
     */
67
    'document'?: Document;
68
    /**
69
     * 
70
     * @type {User}
71
     * @memberof Annotation
72
     */
73
    'user'?: User;
74
    /**
75
     * 
76
     * @type {User}
77
     * @memberof Annotation
78
     */
79
    'userAssigned'?: User;
80
    /**
81
     * 
82
     * @type {string}
83
     * @memberof Annotation
84
     */
85
    'dateAssigned'?: string;
86
    /**
87
     * 
88
     * @type {EState}
89
     * @memberof Annotation
90
     */
91
    'state'?: EState;
92
    /**
93
     * 
94
     * @type {string}
95
     * @memberof Annotation
96
     */
97
    'dateLastChanged'?: string;
98
    /**
99
     * 
100
     * @type {string}
101
     * @memberof Annotation
102
     */
103
    'note'?: string | null;
104
    /**
105
     * 
106
     * @type {string}
107
     * @memberof Annotation
108
     */
109
    'cachedDocumentHTML'?: string | null;
110
    /**
111
     * 
112
     * @type {string}
113
     * @memberof Annotation
114
     */
115
    'cachedStartPositions'?: string | null;
116
    /**
117
     * 
118
     * @type {string}
119
     * @memberof Annotation
120
     */
121
    'cachedLengths'?: string | null;
122
    /**
123
     * 
124
     * @type {string}
125
     * @memberof Annotation
126
     */
127
    'cachedClosingPositions'?: string | null;
128
    /**
129
     * 
130
     * @type {string}
131
     * @memberof Annotation
132
     */
133
    'cachedClosingLengths'?: string | null;
134
    /**
135
     * 
136
     * @type {string}
137
     * @memberof Annotation
138
     */
139
    'cachedCSS'?: string | null;
140
    /**
141
     * 
142
     * @type {string}
143
     * @memberof Annotation
144
     */
145
    'lastModifiedTagId'?: string | null;
146
    /**
147
     * 
148
     * @type {EModified}
149
     * @memberof Annotation
150
     */
151
    'modifiedType'?: EModified;
152
    /**
153
     * 
154
     * @type {Array<Class>}
155
     * @memberof Annotation
156
     */
157
    'classes'?: Array<Class> | null;
158
    /**
159
     * 
160
     * @type {Array<FinalAnnotation>}
161
     * @memberof Annotation
162
     */
163
    'finalAnnotations'?: Array<FinalAnnotation> | null;
164
}
165
/**
166
 * 
167
 * @export
168
 * @interface AnnotationInfo
169
 */
170
export interface AnnotationInfo {
171
    /**
172
     * 
173
     * @type {string}
174
     * @memberof AnnotationInfo
175
     */
176
    'sourceDocumentContent'?: string | null;
177
    /**
178
     * 
179
     * @type {string}
180
     * @memberof AnnotationInfo
181
     */
182
    'documentToRender'?: string | null;
183
    /**
184
     * 
185
     * @type {Array<number>}
186
     * @memberof AnnotationInfo
187
     */
188
    'tagStartPositions'?: Array<number> | null;
189
    /**
190
     * 
191
     * @type {Array<number>}
192
     * @memberof AnnotationInfo
193
     */
194
    'tagLengths'?: Array<number> | null;
195
    /**
196
     * 
197
     * @type {EState}
198
     * @memberof AnnotationInfo
199
     */
200
    'state'?: EState;
201
    /**
202
     * 
203
     * @type {EDocumentType}
204
     * @memberof AnnotationInfo
205
     */
206
    'type'?: EDocumentType;
207
    /**
208
     * 
209
     * @type {string}
210
     * @memberof AnnotationInfo
211
     */
212
    'note'?: string | null;
213
    /**
214
     * 
215
     * @type {Array<TagInstanceInfo>}
216
     * @memberof AnnotationInfo
217
     */
218
    'tagInstances'?: Array<TagInstanceInfo> | null;
219
    /**
220
     * 
221
     * @type {Array<TagInstanceCSSInfo>}
222
     * @memberof AnnotationInfo
223
     */
224
    'cssInfo'?: Array<TagInstanceCSSInfo> | null;
225
}
226
/**
227
 * 
228
 * @export
229
 * @interface AnnotationInstanceAddRequest
230
 */
231
export interface AnnotationInstanceAddRequest {
232
    /**
233
     * 
234
     * @type {number}
235
     * @memberof AnnotationInstanceAddRequest
236
     */
237
    'position'?: number;
238
    /**
239
     * 
240
     * @type {number}
241
     * @memberof AnnotationInstanceAddRequest
242
     */
243
    'length'?: number;
244
    /**
245
     * 
246
     * @type {ETagType}
247
     * @memberof AnnotationInstanceAddRequest
248
     */
249
    'type'?: ETagType;
250
    /**
251
     * 
252
     * @type {string}
253
     * @memberof AnnotationInstanceAddRequest
254
     */
255
    'id'?: string;
256
    /**
257
     * 
258
     * @type {string}
259
     * @memberof AnnotationInstanceAddRequest
260
     */
261
    'instanceId'?: string | null;
262
    /**
263
     * 
264
     * @type {string}
265
     * @memberof AnnotationInstanceAddRequest
266
     */
267
    'selectedText'?: string | null;
268
}
269
/**
270
 * 
271
 * @export
272
 * @interface AnnotationListInfo
273
 */
274
export interface AnnotationListInfo {
275
    /**
276
     * 
277
     * @type {string}
278
     * @memberof AnnotationListInfo
279
     */
280
    'documentName'?: string | null;
281
    /**
282
     * 
283
     * @type {EState}
284
     * @memberof AnnotationListInfo
285
     */
286
    'state'?: EState;
287
    /**
288
     * 
289
     * @type {string}
290
     * @memberof AnnotationListInfo
291
     */
292
    'annotationId'?: string;
293
}
294
/**
295
 * 
296
 * @export
297
 * @interface AnnotationListResponse
298
 */
299
export interface AnnotationListResponse {
300
    /**
301
     * 
302
     * @type {Array<AnnotationListInfo>}
303
     * @memberof AnnotationListResponse
304
     */
305
    'annotations'?: Array<AnnotationListInfo> | null;
306
}
307
/**
308
 * 
309
 * @export
310
 * @interface AnnotationsAddRequest
311
 */
312
export interface AnnotationsAddRequest {
313
    /**
314
     * 
315
     * @type {Array<string>}
316
     * @memberof AnnotationsAddRequest
317
     */
318
    'userIdList'?: Array<string> | null;
319
    /**
320
     * 
321
     * @type {Array<string>}
322
     * @memberof AnnotationsAddRequest
323
     */
324
    'documentIdList'?: Array<string> | null;
325
}
326
/**
327
 * 
328
 * @export
329
 * @interface ChangeUserInfoRequest
330
 */
331
export interface ChangeUserInfoRequest {
332
    /**
333
     * 
334
     * @type {string}
335
     * @memberof ChangeUserInfoRequest
336
     */
337
    'password'?: string | null;
338
    /**
339
     * 
340
     * @type {string}
341
     * @memberof ChangeUserInfoRequest
342
     */
343
    'username'?: string | null;
344
    /**
345
     * 
346
     * @type {string}
347
     * @memberof ChangeUserInfoRequest
348
     */
349
    'name'?: string | null;
350
    /**
351
     * 
352
     * @type {string}
353
     * @memberof ChangeUserInfoRequest
354
     */
355
    'surname'?: string | null;
356
    /**
357
     * 
358
     * @type {ERole}
359
     * @memberof ChangeUserInfoRequest
360
     */
361
    'role'?: ERole;
362
}
363
/**
364
 * 
365
 * @export
366
 * @interface Class
367
 */
368
export interface Class {
369
    /**
370
     * 
371
     * @type {string}
372
     * @memberof Class
373
     */
374
    'id'?: string;
375
    /**
376
     * 
377
     * @type {string}
378
     * @memberof Class
379
     */
380
    'name'?: string | null;
381
    /**
382
     * 
383
     * @type {string}
384
     * @memberof Class
385
     */
386
    'description'?: string | null;
387
    /**
388
     * 
389
     * @type {string}
390
     * @memberof Class
391
     */
392
    'color'?: string | null;
393
    /**
394
     * 
395
     * @type {Array<Annotation>}
396
     * @memberof Class
397
     */
398
    'annotations'?: Array<Annotation> | null;
399
}
400
/**
401
 * 
402
 * @export
403
 * @interface ClientInfo
404
 */
405
export interface ClientInfo {
406
    /**
407
     * 
408
     * @type {boolean}
409
     * @memberof ClientInfo
410
     */
411
    'isLogged'?: boolean;
412
    /**
413
     * 
414
     * @type {User}
415
     * @memberof ClientInfo
416
     */
417
    'loggedUser'?: User;
418
    /**
419
     * 
420
     * @type {string}
421
     * @memberof ClientInfo
422
     */
423
    'ip'?: string | null;
424
}
425
/**
426
 * 
427
 * @export
428
 * @interface CreateCategoryRequest
429
 */
430
export interface CreateCategoryRequest {
431
    /**
432
     * 
433
     * @type {string}
434
     * @memberof CreateCategoryRequest
435
     */
436
    'name'?: string | null;
437
    /**
438
     * 
439
     * @type {string}
440
     * @memberof CreateCategoryRequest
441
     */
442
    'description'?: string | null;
443
    /**
444
     * 
445
     * @type {string}
446
     * @memberof CreateCategoryRequest
447
     */
448
    'color'?: string | null;
449
    /**
450
     * 
451
     * @type {boolean}
452
     * @memberof CreateCategoryRequest
453
     */
454
    'disabledForAnnotators'?: boolean;
455
}
456
/**
457
 * 
458
 * @export
459
 * @interface CreateFinalAnnotationResponse
460
 */
461
export interface CreateFinalAnnotationResponse {
462
    /**
463
     * 
464
     * @type {string}
465
     * @memberof CreateFinalAnnotationResponse
466
     */
467
    'finalAnnotationId'?: string;
468
}
469
/**
470
 * 
471
 * @export
472
 * @interface CreateSubTagRequest
473
 */
474
export interface CreateSubTagRequest {
475
    /**
476
     * 
477
     * @type {string}
478
     * @memberof CreateSubTagRequest
479
     */
480
    'name'?: string | null;
481
    /**
482
     * 
483
     * @type {string}
484
     * @memberof CreateSubTagRequest
485
     */
486
    'description'?: string | null;
487
    /**
488
     * 
489
     * @type {string}
490
     * @memberof CreateSubTagRequest
491
     */
492
    'tagId'?: string;
493
    /**
494
     * 
495
     * @type {boolean}
496
     * @memberof CreateSubTagRequest
497
     */
498
    'sentimentEnabled'?: boolean;
499
}
500
/**
501
 * 
502
 * @export
503
 * @interface CreateTagRequest
504
 */
505
export interface CreateTagRequest {
506
    /**
507
     * 
508
     * @type {string}
509
     * @memberof CreateTagRequest
510
     */
511
    'categoryId'?: string;
512
    /**
513
     * 
514
     * @type {string}
515
     * @memberof CreateTagRequest
516
     */
517
    'name'?: string | null;
518
    /**
519
     * 
520
     * @type {string}
521
     * @memberof CreateTagRequest
522
     */
523
    'description'?: string | null;
524
    /**
525
     * 
526
     * @type {string}
527
     * @memberof CreateTagRequest
528
     */
529
    'color'?: string | null;
530
    /**
531
     * 
532
     * @type {boolean}
533
     * @memberof CreateTagRequest
534
     */
535
    'sentimentEnabled'?: boolean;
536
}
537
/**
538
 * 
539
 * @export
540
 * @interface CreateUserRequest
541
 */
542
export interface CreateUserRequest {
543
    /**
544
     * 
545
     * @type {string}
546
     * @memberof CreateUserRequest
547
     */
548
    'username'?: string | null;
549
    /**
550
     * 
551
     * @type {string}
552
     * @memberof CreateUserRequest
553
     */
554
    'password'?: string | null;
555
    /**
556
     * 
557
     * @type {string}
558
     * @memberof CreateUserRequest
559
     */
560
    'name'?: string | null;
561
    /**
562
     * 
563
     * @type {string}
564
     * @memberof CreateUserRequest
565
     */
566
    'surname'?: string | null;
567
    /**
568
     * 
569
     * @type {ERole}
570
     * @memberof CreateUserRequest
571
     */
572
    'role'?: ERole;
573
}
574
/**
575
 * 
576
 * @export
577
 * @interface DeleteDocumentsRequest
578
 */
579
export interface DeleteDocumentsRequest {
580
    /**
581
     * 
582
     * @type {Array<string>}
583
     * @memberof DeleteDocumentsRequest
584
     */
585
    'documentIds'?: Array<string> | null;
586
}
587
/**
588
 * 
589
 * @export
590
 * @interface Document
591
 */
592
export interface Document {
593
    /**
594
     * 
595
     * @type {string}
596
     * @memberof Document
597
     */
598
    'id'?: string;
599
    /**
600
     * 
601
     * @type {string}
602
     * @memberof Document
603
     */
604
    'name'?: string | null;
605
    /**
606
     * 
607
     * @type {number}
608
     * @memberof Document
609
     */
610
    'length'?: number;
611
    /**
612
     * 
613
     * @type {DocumentContent}
614
     * @memberof Document
615
     */
616
    'content'?: DocumentContent;
617
    /**
618
     * 
619
     * @type {string}
620
     * @memberof Document
621
     */
622
    'dateAdded'?: string;
623
    /**
624
     * 
625
     * @type {User}
626
     * @memberof Document
627
     */
628
    'userAdded'?: User;
629
    /**
630
     * 
631
     * @type {number}
632
     * @memberof Document
633
     */
634
    'requiredAnnotations'?: number;
635
}
636
/**
637
 * 
638
 * @export
639
 * @interface DocumentAddInfo
640
 */
641
export interface DocumentAddInfo {
642
    /**
643
     * 
644
     * @type {string}
645
     * @memberof DocumentAddInfo
646
     */
647
    'name'?: string | null;
648
    /**
649
     * 
650
     * @type {EAddDocumentFormat}
651
     * @memberof DocumentAddInfo
652
     */
653
    'format'?: EAddDocumentFormat;
654
    /**
655
     * 
656
     * @type {string}
657
     * @memberof DocumentAddInfo
658
     */
659
    'content'?: string | null;
660
}
661
/**
662
 * 
663
 * @export
664
 * @interface DocumentAddRequest
665
 */
666
export interface DocumentAddRequest {
667
    /**
668
     * 
669
     * @type {Array<DocumentAddInfo>}
670
     * @memberof DocumentAddRequest
671
     */
672
    'documents'?: Array<DocumentAddInfo> | null;
673
}
674
/**
675
 * 
676
 * @export
677
 * @interface DocumentAnnotationInfo
678
 */
679
export interface DocumentAnnotationInfo {
680
    /**
681
     * 
682
     * @type {string}
683
     * @memberof DocumentAnnotationInfo
684
     */
685
    'annotationId'?: string;
686
    /**
687
     * 
688
     * @type {string}
689
     * @memberof DocumentAnnotationInfo
690
     */
691
    'userId'?: string;
692
    /**
693
     * 
694
     * @type {string}
695
     * @memberof DocumentAnnotationInfo
696
     */
697
    'userFirstName'?: string | null;
698
    /**
699
     * 
700
     * @type {string}
701
     * @memberof DocumentAnnotationInfo
702
     */
703
    'userSurname'?: string | null;
704
    /**
705
     * 
706
     * @type {string}
707
     * @memberof DocumentAnnotationInfo
708
     */
709
    'username'?: string | null;
710
}
711
/**
712
 * 
713
 * @export
714
 * @interface DocumentContent
715
 */
716
export interface DocumentContent {
717
    /**
718
     * 
719
     * @type {string}
720
     * @memberof DocumentContent
721
     */
722
    'id'?: string;
723
    /**
724
     * 
725
     * @type {string}
726
     * @memberof DocumentContent
727
     */
728
    'content'?: string | null;
729
}
730
/**
731
 * 
732
 * @export
733
 * @interface DocumentListInfo
734
 */
735
export interface DocumentListInfo {
736
    /**
737
     * 
738
     * @type {string}
739
     * @memberof DocumentListInfo
740
     */
741
    'id'?: string;
742
    /**
743
     * 
744
     * @type {string}
745
     * @memberof DocumentListInfo
746
     */
747
    'name'?: string | null;
748
    /**
749
     * 
750
     * @type {number}
751
     * @memberof DocumentListInfo
752
     */
753
    'length'?: number;
754
    /**
755
     * 
756
     * @type {number}
757
     * @memberof DocumentListInfo
758
     */
759
    'requiredAnnotations'?: number;
760
    /**
761
     * 
762
     * @type {Array<DocumentUserInfo>}
763
     * @memberof DocumentListInfo
764
     */
765
    'annotatingUsers'?: Array<DocumentUserInfo> | null;
766
    /**
767
     * 
768
     * @type {boolean}
769
     * @memberof DocumentListInfo
770
     */
771
    'finalizedExists'?: boolean;
772
    /**
773
     * 
774
     * @type {string}
775
     * @memberof DocumentListInfo
776
     */
777
    'finalizedAnnotationId'?: string | null;
778
    /**
779
     * 
780
     * @type {EState}
781
     * @memberof DocumentListInfo
782
     */
783
    'finalizedState'?: EState;
784
    /**
785
     * 
786
     * @type {Array<DocumentAnnotationInfo>}
787
     * @memberof DocumentListInfo
788
     */
789
    'finalAnnotations'?: Array<DocumentAnnotationInfo> | null;
790
}
791
/**
792
 * 
793
 * @export
794
 * @interface DocumentListResponse
795
 */
796
export interface DocumentListResponse {
797
    /**
798
     * 
799
     * @type {Array<DocumentListInfo>}
800
     * @memberof DocumentListResponse
801
     */
802
    'documents'?: Array<DocumentListInfo> | null;
803
}
804
/**
805
 * 
806
 * @export
807
 * @interface DocumentPreviewResponse
808
 */
809
export interface DocumentPreviewResponse {
810
    /**
811
     * 
812
     * @type {string}
813
     * @memberof DocumentPreviewResponse
814
     */
815
    'content'?: string | null;
816
}
817
/**
818
 * 
819
 * @export
820
 * @interface DocumentUserInfo
821
 */
822
export interface DocumentUserInfo {
823
    /**
824
     * 
825
     * @type {string}
826
     * @memberof DocumentUserInfo
827
     */
828
    'id'?: string;
829
    /**
830
     * 
831
     * @type {string}
832
     * @memberof DocumentUserInfo
833
     */
834
    'username'?: string | null;
835
    /**
836
     * 
837
     * @type {string}
838
     * @memberof DocumentUserInfo
839
     */
840
    'name'?: string | null;
841
    /**
842
     * 
843
     * @type {string}
844
     * @memberof DocumentUserInfo
845
     */
846
    'surname'?: string | null;
847
    /**
848
     * 
849
     * @type {EState}
850
     * @memberof DocumentUserInfo
851
     */
852
    'state'?: EState;
853
    /**
854
     * 
855
     * @type {string}
856
     * @memberof DocumentUserInfo
857
     */
858
    'annotationId'?: string;
859
}
860
/**
861
 * 
862
 * @export
863
 * @enum {string}
864
 */
865

    
866
export const EAddDocumentFormat = {
867
    Zip: 'ZIP',
868
    Textfile: 'TEXTFILE'
869
} as const;
870

    
871
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
872

    
873

    
874
/**
875
 * 
876
 * @export
877
 * @enum {string}
878
 */
879

    
880
export const EDocumentType = {
881
    Html: 'HTML',
882
    Text: 'TEXT'
883
} as const;
884

    
885
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
886

    
887

    
888
/**
889
 * 
890
 * @export
891
 * @enum {string}
892
 */
893

    
894
export const EModified = {
895
    Added: 'ADDED',
896
    Removed: 'REMOVED',
897
    None: 'NONE'
898
} as const;
899

    
900
export type EModified = typeof EModified[keyof typeof EModified];
901

    
902

    
903
/**
904
 * 
905
 * @export
906
 * @enum {string}
907
 */
908

    
909
export const ERole = {
910
    Annotator: 'ANNOTATOR',
911
    Administrator: 'ADMINISTRATOR'
912
} as const;
913

    
914
export type ERole = typeof ERole[keyof typeof ERole];
915

    
916

    
917
/**
918
 * 
919
 * @export
920
 * @enum {string}
921
 */
922

    
923
export const EState = {
924
    Done: 'DONE',
925
    InProgress: 'IN_PROGRESS',
926
    New: 'NEW'
927
} as const;
928

    
929
export type EState = typeof EState[keyof typeof EState];
930

    
931

    
932
/**
933
 * 
934
 * @export
935
 * @enum {string}
936
 */
937

    
938
export const ETagSentiment = {
939
    Neutral: 'NEUTRAL',
940
    Positive: 'POSITIVE',
941
    Negative: 'NEGATIVE'
942
} as const;
943

    
944
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment];
945

    
946

    
947
/**
948
 * 
949
 * @export
950
 * @enum {string}
951
 */
952

    
953
export const ETagType = {
954
    Tag: 'TAG',
955
    Subtag: 'SUBTAG'
956
} as const;
957

    
958
export type ETagType = typeof ETagType[keyof typeof ETagType];
959

    
960

    
961
/**
962
 * 
963
 * @export
964
 * @interface ExportRequest
965
 */
966
export interface ExportRequest {
967
    /**
968
     * 
969
     * @type {Array<string>}
970
     * @memberof ExportRequest
971
     */
972
    'documentIds'?: Array<string> | null;
973
}
974
/**
975
 * 
976
 * @export
977
 * @interface FinalAnnotation
978
 */
979
export interface FinalAnnotation {
980
    /**
981
     * 
982
     * @type {string}
983
     * @memberof FinalAnnotation
984
     */
985
    'id'?: string;
986
    /**
987
     * 
988
     * @type {Document}
989
     * @memberof FinalAnnotation
990
     */
991
    'document'?: Document;
992
    /**
993
     * 
994
     * @type {User}
995
     * @memberof FinalAnnotation
996
     */
997
    'user'?: User;
998
    /**
999
     * 
1000
     * @type {User}
1001
     * @memberof FinalAnnotation
1002
     */
1003
    'userAssigned'?: User;
1004
    /**
1005
     * 
1006
     * @type {string}
1007
     * @memberof FinalAnnotation
1008
     */
1009
    'dateAssigned'?: string;
1010
    /**
1011
     * 
1012
     * @type {EState}
1013
     * @memberof FinalAnnotation
1014
     */
1015
    'state'?: EState;
1016
    /**
1017
     * 
1018
     * @type {string}
1019
     * @memberof FinalAnnotation
1020
     */
1021
    'dateLastChanged'?: string;
1022
    /**
1023
     * 
1024
     * @type {string}
1025
     * @memberof FinalAnnotation
1026
     */
1027
    'note'?: string | null;
1028
    /**
1029
     * 
1030
     * @type {string}
1031
     * @memberof FinalAnnotation
1032
     */
1033
    'cachedDocumentHTML'?: string | null;
1034
    /**
1035
     * 
1036
     * @type {string}
1037
     * @memberof FinalAnnotation
1038
     */
1039
    'cachedStartPositions'?: string | null;
1040
    /**
1041
     * 
1042
     * @type {string}
1043
     * @memberof FinalAnnotation
1044
     */
1045
    'cachedLengths'?: string | null;
1046
    /**
1047
     * 
1048
     * @type {string}
1049
     * @memberof FinalAnnotation
1050
     */
1051
    'cachedClosingPositions'?: string | null;
1052
    /**
1053
     * 
1054
     * @type {string}
1055
     * @memberof FinalAnnotation
1056
     */
1057
    'cachedClosingLengths'?: string | null;
1058
    /**
1059
     * 
1060
     * @type {string}
1061
     * @memberof FinalAnnotation
1062
     */
1063
    'cachedCSS'?: string | null;
1064
    /**
1065
     * 
1066
     * @type {string}
1067
     * @memberof FinalAnnotation
1068
     */
1069
    'lastModifiedTagId'?: string | null;
1070
    /**
1071
     * 
1072
     * @type {EModified}
1073
     * @memberof FinalAnnotation
1074
     */
1075
    'modifiedType'?: EModified;
1076
    /**
1077
     * 
1078
     * @type {Array<Class>}
1079
     * @memberof FinalAnnotation
1080
     */
1081
    'classes'?: Array<Class> | null;
1082
    /**
1083
     * 
1084
     * @type {Array<FinalAnnotation>}
1085
     * @memberof FinalAnnotation
1086
     */
1087
    'finalAnnotations'?: Array<FinalAnnotation> | null;
1088
    /**
1089
     * 
1090
     * @type {Array<Annotation>}
1091
     * @memberof FinalAnnotation
1092
     */
1093
    'annotations'?: Array<Annotation> | null;
1094
}
1095
/**
1096
 * 
1097
 * @export
1098
 * @interface FinalAnnotationTag
1099
 */
1100
export interface FinalAnnotationTag {
1101
    /**
1102
     * 
1103
     * @type {string}
1104
     * @memberof FinalAnnotationTag
1105
     */
1106
    'id'?: string;
1107
    /**
1108
     * 
1109
     * @type {Tag}
1110
     * @memberof FinalAnnotationTag
1111
     */
1112
    'tag'?: Tag;
1113
    /**
1114
     * 
1115
     * @type {SubTag}
1116
     * @memberof FinalAnnotationTag
1117
     */
1118
    'subTag'?: SubTag;
1119
    /**
1120
     * 
1121
     * @type {string}
1122
     * @memberof FinalAnnotationTag
1123
     */
1124
    'instance'?: string;
1125
    /**
1126
     * 
1127
     * @type {string}
1128
     * @memberof FinalAnnotationTag
1129
     */
1130
    'note'?: string | null;
1131
    /**
1132
     * 
1133
     * @type {number}
1134
     * @memberof FinalAnnotationTag
1135
     */
1136
    'position'?: number;
1137
    /**
1138
     * 
1139
     * @type {number}
1140
     * @memberof FinalAnnotationTag
1141
     */
1142
    'length'?: number;
1143
    /**
1144
     * 
1145
     * @type {ETagSentiment}
1146
     * @memberof FinalAnnotationTag
1147
     */
1148
    'sentiment'?: ETagSentiment;
1149
    /**
1150
     * 
1151
     * @type {string}
1152
     * @memberof FinalAnnotationTag
1153
     */
1154
    'selectedText'?: string | null;
1155
    /**
1156
     * 
1157
     * @type {FinalAnnotation}
1158
     * @memberof FinalAnnotationTag
1159
     */
1160
    'annotation'?: FinalAnnotation;
1161
    /**
1162
     * 
1163
     * @type {boolean}
1164
     * @memberof FinalAnnotationTag
1165
     */
1166
    'isFinal'?: boolean;
1167
    /**
1168
     * 
1169
     * @type {Array<User>}
1170
     * @memberof FinalAnnotationTag
1171
     */
1172
    'users'?: Array<User> | null;
1173
}
1174
/**
1175
 * 
1176
 * @export
1177
 * @interface GetRequiredAnnotationsGlobalResponse
1178
 */
1179
export interface GetRequiredAnnotationsGlobalResponse {
1180
    /**
1181
     * 
1182
     * @type {number}
1183
     * @memberof GetRequiredAnnotationsGlobalResponse
1184
     */
1185
    'requiredAnnotationsGlobal'?: number;
1186
}
1187
/**
1188
 * 
1189
 * @export
1190
 * @interface LoginRequest
1191
 */
1192
export interface LoginRequest {
1193
    /**
1194
     * 
1195
     * @type {string}
1196
     * @memberof LoginRequest
1197
     */
1198
    'username'?: string | null;
1199
    /**
1200
     * 
1201
     * @type {string}
1202
     * @memberof LoginRequest
1203
     */
1204
    'password'?: string | null;
1205
}
1206
/**
1207
 * 
1208
 * @export
1209
 * @interface LoginResponse
1210
 */
1211
export interface LoginResponse {
1212
    /**
1213
     * 
1214
     * @type {boolean}
1215
     * @memberof LoginResponse
1216
     */
1217
    'ok'?: boolean;
1218
    /**
1219
     * 
1220
     * @type {string}
1221
     * @memberof LoginResponse
1222
     */
1223
    'token'?: string | null;
1224
    /**
1225
     * 
1226
     * @type {string}
1227
     * @memberof LoginResponse
1228
     */
1229
    'expiration'?: string;
1230
    /**
1231
     * 
1232
     * @type {ERole}
1233
     * @memberof LoginResponse
1234
     */
1235
    'role'?: ERole;
1236
}
1237
/**
1238
 * 
1239
 * @export
1240
 * @interface MarkAnnotationDoneRequest
1241
 */
1242
export interface MarkAnnotationDoneRequest {
1243
    /**
1244
     * 
1245
     * @type {boolean}
1246
     * @memberof MarkAnnotationDoneRequest
1247
     */
1248
    'done'?: boolean;
1249
}
1250
/**
1251
 * 
1252
 * @export
1253
 * @interface ModifyCategoryRequest
1254
 */
1255
export interface ModifyCategoryRequest {
1256
    /**
1257
     * 
1258
     * @type {string}
1259
     * @memberof ModifyCategoryRequest
1260
     */
1261
    'name'?: string | null;
1262
    /**
1263
     * 
1264
     * @type {string}
1265
     * @memberof ModifyCategoryRequest
1266
     */
1267
    'description'?: string | null;
1268
    /**
1269
     * 
1270
     * @type {string}
1271
     * @memberof ModifyCategoryRequest
1272
     */
1273
    'color'?: string | null;
1274
    /**
1275
     * 
1276
     * @type {boolean}
1277
     * @memberof ModifyCategoryRequest
1278
     */
1279
    'disabledForAnnotators'?: boolean | null;
1280
}
1281
/**
1282
 * 
1283
 * @export
1284
 * @interface ModifySubTagRequest
1285
 */
1286
export interface ModifySubTagRequest {
1287
    /**
1288
     * 
1289
     * @type {string}
1290
     * @memberof ModifySubTagRequest
1291
     */
1292
    'name'?: string | null;
1293
    /**
1294
     * 
1295
     * @type {string}
1296
     * @memberof ModifySubTagRequest
1297
     */
1298
    'description'?: string | null;
1299
    /**
1300
     * 
1301
     * @type {boolean}
1302
     * @memberof ModifySubTagRequest
1303
     */
1304
    'sentimentEnabled'?: boolean | null;
1305
}
1306
/**
1307
 * 
1308
 * @export
1309
 * @interface ModifyTagRequest
1310
 */
1311
export interface ModifyTagRequest {
1312
    /**
1313
     * 
1314
     * @type {string}
1315
     * @memberof ModifyTagRequest
1316
     */
1317
    'name'?: string | null;
1318
    /**
1319
     * 
1320
     * @type {string}
1321
     * @memberof ModifyTagRequest
1322
     */
1323
    'description'?: string | null;
1324
    /**
1325
     * 
1326
     * @type {string}
1327
     * @memberof ModifyTagRequest
1328
     */
1329
    'color'?: string | null;
1330
    /**
1331
     * 
1332
     * @type {boolean}
1333
     * @memberof ModifyTagRequest
1334
     */
1335
    'sentimentEnabled'?: boolean | null;
1336
}
1337
/**
1338
 * 
1339
 * @export
1340
 * @interface ProblemDetails
1341
 */
1342
export interface ProblemDetails {
1343
    [key: string]: any | any;
1344

    
1345
    /**
1346
     * 
1347
     * @type {string}
1348
     * @memberof ProblemDetails
1349
     */
1350
    'type'?: string | null;
1351
    /**
1352
     * 
1353
     * @type {string}
1354
     * @memberof ProblemDetails
1355
     */
1356
    'title'?: string | null;
1357
    /**
1358
     * 
1359
     * @type {number}
1360
     * @memberof ProblemDetails
1361
     */
1362
    'status'?: number | null;
1363
    /**
1364
     * 
1365
     * @type {string}
1366
     * @memberof ProblemDetails
1367
     */
1368
    'detail'?: string | null;
1369
    /**
1370
     * 
1371
     * @type {string}
1372
     * @memberof ProblemDetails
1373
     */
1374
    'instance'?: string | null;
1375
}
1376
/**
1377
 * 
1378
 * @export
1379
 * @interface SetInstanceIsFinalRequest
1380
 */
1381
export interface SetInstanceIsFinalRequest {
1382
    /**
1383
     * 
1384
     * @type {boolean}
1385
     * @memberof SetInstanceIsFinalRequest
1386
     */
1387
    'isFinal'?: boolean;
1388
}
1389
/**
1390
 * 
1391
 * @export
1392
 * @interface SetInstanceSentimentRequest
1393
 */
1394
export interface SetInstanceSentimentRequest {
1395
    /**
1396
     * 
1397
     * @type {ETagSentiment}
1398
     * @memberof SetInstanceSentimentRequest
1399
     */
1400
    'sentiment'?: ETagSentiment;
1401
}
1402
/**
1403
 * 
1404
 * @export
1405
 * @interface SetRequiredAnnotationsGlobalRequest
1406
 */
1407
export interface SetRequiredAnnotationsGlobalRequest {
1408
    /**
1409
     * 
1410
     * @type {number}
1411
     * @memberof SetRequiredAnnotationsGlobalRequest
1412
     */
1413
    'requiredAnnotations'?: number;
1414
}
1415
/**
1416
 * 
1417
 * @export
1418
 * @interface SetRequiredAnnotationsRequest
1419
 */
1420
export interface SetRequiredAnnotationsRequest {
1421
    /**
1422
     * 
1423
     * @type {number}
1424
     * @memberof SetRequiredAnnotationsRequest
1425
     */
1426
    'requiredAnnotations'?: number;
1427
    /**
1428
     * 
1429
     * @type {Array<string>}
1430
     * @memberof SetRequiredAnnotationsRequest
1431
     */
1432
    'documentIds'?: Array<string> | null;
1433
}
1434
/**
1435
 * 
1436
 * @export
1437
 * @interface SubTag
1438
 */
1439
export interface SubTag {
1440
    /**
1441
     * 
1442
     * @type {string}
1443
     * @memberof SubTag
1444
     */
1445
    'id'?: string;
1446
    /**
1447
     * 
1448
     * @type {string}
1449
     * @memberof SubTag
1450
     */
1451
    'name'?: string | null;
1452
    /**
1453
     * 
1454
     * @type {string}
1455
     * @memberof SubTag
1456
     */
1457
    'description'?: string | null;
1458
    /**
1459
     * 
1460
     * @type {Tag}
1461
     * @memberof SubTag
1462
     */
1463
    'tag'?: Tag;
1464
    /**
1465
     * 
1466
     * @type {boolean}
1467
     * @memberof SubTag
1468
     */
1469
    'sentimentEnabled'?: boolean;
1470
}
1471
/**
1472
 * 
1473
 * @export
1474
 * @interface SubTagInfo
1475
 */
1476
export interface SubTagInfo {
1477
    /**
1478
     * 
1479
     * @type {string}
1480
     * @memberof SubTagInfo
1481
     */
1482
    'id'?: string;
1483
    /**
1484
     * 
1485
     * @type {string}
1486
     * @memberof SubTagInfo
1487
     */
1488
    'name'?: string | null;
1489
    /**
1490
     * 
1491
     * @type {string}
1492
     * @memberof SubTagInfo
1493
     */
1494
    'description'?: string | null;
1495
}
1496
/**
1497
 * 
1498
 * @export
1499
 * @interface Tag
1500
 */
1501
export interface Tag {
1502
    /**
1503
     * 
1504
     * @type {string}
1505
     * @memberof Tag
1506
     */
1507
    'id'?: string;
1508
    /**
1509
     * 
1510
     * @type {TagCategory}
1511
     * @memberof Tag
1512
     */
1513
    'category'?: TagCategory;
1514
    /**
1515
     * 
1516
     * @type {string}
1517
     * @memberof Tag
1518
     */
1519
    'name'?: string | null;
1520
    /**
1521
     * 
1522
     * @type {string}
1523
     * @memberof Tag
1524
     */
1525
    'description'?: string | null;
1526
    /**
1527
     * 
1528
     * @type {string}
1529
     * @memberof Tag
1530
     */
1531
    'color'?: string | null;
1532
    /**
1533
     * 
1534
     * @type {boolean}
1535
     * @memberof Tag
1536
     */
1537
    'sentimentEnabled'?: boolean;
1538
}
1539
/**
1540
 * 
1541
 * @export
1542
 * @interface TagCategory
1543
 */
1544
export interface TagCategory {
1545
    /**
1546
     * 
1547
     * @type {string}
1548
     * @memberof TagCategory
1549
     */
1550
    'id'?: string;
1551
    /**
1552
     * 
1553
     * @type {string}
1554
     * @memberof TagCategory
1555
     */
1556
    'name'?: string | null;
1557
    /**
1558
     * 
1559
     * @type {string}
1560
     * @memberof TagCategory
1561
     */
1562
    'color'?: string | null;
1563
    /**
1564
     * 
1565
     * @type {string}
1566
     * @memberof TagCategory
1567
     */
1568
    'description'?: string | null;
1569
    /**
1570
     * 
1571
     * @type {boolean}
1572
     * @memberof TagCategory
1573
     */
1574
    'disabledForAnnotators'?: boolean;
1575
}
1576
/**
1577
 * 
1578
 * @export
1579
 * @interface TagCategoryInfo
1580
 */
1581
export interface TagCategoryInfo {
1582
    /**
1583
     * 
1584
     * @type {string}
1585
     * @memberof TagCategoryInfo
1586
     */
1587
    'id'?: string;
1588
    /**
1589
     * 
1590
     * @type {string}
1591
     * @memberof TagCategoryInfo
1592
     */
1593
    'name'?: string | null;
1594
    /**
1595
     * 
1596
     * @type {string}
1597
     * @memberof TagCategoryInfo
1598
     */
1599
    'description'?: string | null;
1600
    /**
1601
     * 
1602
     * @type {string}
1603
     * @memberof TagCategoryInfo
1604
     */
1605
    'color'?: string | null;
1606
    /**
1607
     * 
1608
     * @type {Array<TagInfo>}
1609
     * @memberof TagCategoryInfo
1610
     */
1611
    'tags'?: Array<TagInfo> | null;
1612
    /**
1613
     * 
1614
     * @type {boolean}
1615
     * @memberof TagCategoryInfo
1616
     */
1617
    'disabledForAnnotators'?: boolean;
1618
}
1619
/**
1620
 * 
1621
 * @export
1622
 * @interface TagInfo
1623
 */
1624
export interface TagInfo {
1625
    /**
1626
     * 
1627
     * @type {string}
1628
     * @memberof TagInfo
1629
     */
1630
    'id'?: string;
1631
    /**
1632
     * 
1633
     * @type {string}
1634
     * @memberof TagInfo
1635
     */
1636
    'name'?: string | null;
1637
    /**
1638
     * 
1639
     * @type {string}
1640
     * @memberof TagInfo
1641
     */
1642
    'description'?: string | null;
1643
    /**
1644
     * 
1645
     * @type {string}
1646
     * @memberof TagInfo
1647
     */
1648
    'color'?: string | null;
1649
    /**
1650
     * 
1651
     * @type {Array<SubTagInfo>}
1652
     * @memberof TagInfo
1653
     */
1654
    'subTags'?: Array<SubTagInfo> | null;
1655
    /**
1656
     * 
1657
     * @type {boolean}
1658
     * @memberof TagInfo
1659
     */
1660
    'sentimentEnabled'?: boolean;
1661
}
1662
/**
1663
 * 
1664
 * @export
1665
 * @interface TagInstanceCSSInfo
1666
 */
1667
export interface TagInstanceCSSInfo {
1668
    /**
1669
     * 
1670
     * @type {string}
1671
     * @memberof TagInstanceCSSInfo
1672
     */
1673
    'instanceId'?: string;
1674
    /**
1675
     * 
1676
     * @type {string}
1677
     * @memberof TagInstanceCSSInfo
1678
     */
1679
    'color'?: string | null;
1680
    /**
1681
     * 
1682
     * @type {number}
1683
     * @memberof TagInstanceCSSInfo
1684
     */
1685
    'padding'?: number;
1686
}
1687
/**
1688
 * 
1689
 * @export
1690
 * @interface TagInstanceInfo
1691
 */
1692
export interface TagInstanceInfo {
1693
    /**
1694
     * 
1695
     * @type {string}
1696
     * @memberof TagInstanceInfo
1697
     */
1698
    'occurenceId'?: string;
1699
    /**
1700
     * 
1701
     * @type {string}
1702
     * @memberof TagInstanceInfo
1703
     */
1704
    'tagName'?: string | null;
1705
    /**
1706
     * 
1707
     * @type {string}
1708
     * @memberof TagInstanceInfo
1709
     */
1710
    'tagId'?: string;
1711
    /**
1712
     * 
1713
     * @type {string}
1714
     * @memberof TagInstanceInfo
1715
     */
1716
    'tagCategoryName'?: string | null;
1717
    /**
1718
     * 
1719
     * @type {string}
1720
     * @memberof TagInstanceInfo
1721
     */
1722
    'tagCategoryId'?: string;
1723
    /**
1724
     * 
1725
     * @type {string}
1726
     * @memberof TagInstanceInfo
1727
     */
1728
    'subTagName'?: string | null;
1729
    /**
1730
     * 
1731
     * @type {string}
1732
     * @memberof TagInstanceInfo
1733
     */
1734
    'subTagId'?: string | null;
1735
    /**
1736
     * 
1737
     * @type {string}
1738
     * @memberof TagInstanceInfo
1739
     */
1740
    'instance'?: string;
1741
    /**
1742
     * 
1743
     * @type {number}
1744
     * @memberof TagInstanceInfo
1745
     */
1746
    'position'?: number;
1747
    /**
1748
     * 
1749
     * @type {number}
1750
     * @memberof TagInstanceInfo
1751
     */
1752
    'length'?: number;
1753
    /**
1754
     * 
1755
     * @type {string}
1756
     * @memberof TagInstanceInfo
1757
     */
1758
    'note'?: string | null;
1759
    /**
1760
     * 
1761
     * @type {ETagSentiment}
1762
     * @memberof TagInstanceInfo
1763
     */
1764
    'sentiment'?: ETagSentiment;
1765
    /**
1766
     * 
1767
     * @type {string}
1768
     * @memberof TagInstanceInfo
1769
     */
1770
    'selectedText'?: string | null;
1771
    /**
1772
     * 
1773
     * @type {Array<UserInfo>}
1774
     * @memberof TagInstanceInfo
1775
     */
1776
    'users'?: Array<UserInfo> | null;
1777
    /**
1778
     * 
1779
     * @type {boolean}
1780
     * @memberof TagInstanceInfo
1781
     */
1782
    'isFinal'?: boolean | null;
1783
}
1784
/**
1785
 * 
1786
 * @export
1787
 * @interface TagTreeResponse
1788
 */
1789
export interface TagTreeResponse {
1790
    /**
1791
     * 
1792
     * @type {Array<TagCategoryInfo>}
1793
     * @memberof TagTreeResponse
1794
     */
1795
    'tagCategories'?: Array<TagCategoryInfo> | null;
1796
}
1797
/**
1798
 * 
1799
 * @export
1800
 * @interface User
1801
 */
1802
export interface User {
1803
    /**
1804
     * 
1805
     * @type {string}
1806
     * @memberof User
1807
     */
1808
    'id'?: string;
1809
    /**
1810
     * 
1811
     * @type {string}
1812
     * @memberof User
1813
     */
1814
    'username'?: string | null;
1815
    /**
1816
     * 
1817
     * @type {string}
1818
     * @memberof User
1819
     */
1820
    'name'?: string | null;
1821
    /**
1822
     * 
1823
     * @type {string}
1824
     * @memberof User
1825
     */
1826
    'surname'?: string | null;
1827
    /**
1828
     * 
1829
     * @type {ERole}
1830
     * @memberof User
1831
     */
1832
    'role'?: ERole;
1833
    /**
1834
     * 
1835
     * @type {Array<FinalAnnotationTag>}
1836
     * @memberof User
1837
     */
1838
    'finalAnnotationTags'?: Array<FinalAnnotationTag> | null;
1839
}
1840
/**
1841
 * 
1842
 * @export
1843
 * @interface UserInfo
1844
 */
1845
export interface UserInfo {
1846
    /**
1847
     * 
1848
     * @type {string}
1849
     * @memberof UserInfo
1850
     */
1851
    'id'?: string;
1852
    /**
1853
     * 
1854
     * @type {string}
1855
     * @memberof UserInfo
1856
     */
1857
    'username'?: string | null;
1858
    /**
1859
     * 
1860
     * @type {string}
1861
     * @memberof UserInfo
1862
     */
1863
    'name'?: string | null;
1864
    /**
1865
     * 
1866
     * @type {string}
1867
     * @memberof UserInfo
1868
     */
1869
    'surname'?: string | null;
1870
    /**
1871
     * 
1872
     * @type {number}
1873
     * @memberof UserInfo
1874
     */
1875
    'assignedDocumentsCount'?: number;
1876
    /**
1877
     * 
1878
     * @type {ERole}
1879
     * @memberof UserInfo
1880
     */
1881
    'role'?: ERole;
1882
}
1883
/**
1884
 * 
1885
 * @export
1886
 * @interface UserList
1887
 */
1888
export interface UserList {
1889
    /**
1890
     * 
1891
     * @type {Array<UserInfo>}
1892
     * @memberof UserList
1893
     */
1894
    'users'?: Array<UserInfo> | null;
1895
}
1896
/**
1897
 * 
1898
 * @export
1899
 * @interface UserMeResponse
1900
 */
1901
export interface UserMeResponse {
1902
    /**
1903
     * 
1904
     * @type {string}
1905
     * @memberof UserMeResponse
1906
     */
1907
    'name'?: string | null;
1908
    /**
1909
     * 
1910
     * @type {ERole}
1911
     * @memberof UserMeResponse
1912
     */
1913
    'role'?: ERole;
1914
}
1915

    
1916
/**
1917
 * AnnotationApi - axios parameter creator
1918
 * @export
1919
 */
1920
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
1921
    return {
1922
        /**
1923
         * 
1924
         * @param {string} annotationId 
1925
         * @param {boolean} [isFinal] 
1926
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
1927
         * @param {*} [options] Override http request option.
1928
         * @throws {RequiredError}
1929
         */
1930
        annotationAnnotationIdDonePut: async (annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1931
            // verify required parameter 'annotationId' is not null or undefined
1932
            assertParamExists('annotationAnnotationIdDonePut', 'annotationId', annotationId)
1933
            const localVarPath = `/annotation/{annotationId}/done`
1934
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
1935
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
1936
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1937
            let baseOptions;
1938
            if (configuration) {
1939
                baseOptions = configuration.baseOptions;
1940
            }
1941

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

    
1946
            if (isFinal !== undefined) {
1947
                localVarQueryParameter['isFinal'] = isFinal;
1948
            }
1949

    
1950

    
1951
    
1952
            localVarHeaderParameter['Content-Type'] = 'application/json';
1953

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

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

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

    
1987
            if (isFinal !== undefined) {
1988
                localVarQueryParameter['isFinal'] = isFinal;
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 {string} annotationId 
2005
         * @param {string} instanceId 
2006
         * @param {boolean} [isFinal] 
2007
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2008
         * @param {*} [options] Override http request option.
2009
         * @throws {RequiredError}
2010
         */
2011
        annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2012
            // verify required parameter 'annotationId' is not null or undefined
2013
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
2014
            // verify required parameter 'instanceId' is not null or undefined
2015
            assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
2016
            const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
2017
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2018
                .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
2019
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2020
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2021
            let baseOptions;
2022
            if (configuration) {
2023
                baseOptions = configuration.baseOptions;
2024
            }
2025

    
2026
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2027
            const localVarHeaderParameter = {} as any;
2028
            const localVarQueryParameter = {} as any;
2029

    
2030
            if (isFinal !== undefined) {
2031
                localVarQueryParameter['isFinal'] = isFinal;
2032
            }
2033

    
2034

    
2035
    
2036
            localVarHeaderParameter['Content-Type'] = 'application/json';
2037

    
2038
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2039
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2040
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2041
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
2042

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

    
2068
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2069
            const localVarHeaderParameter = {} as any;
2070
            const localVarQueryParameter = {} as any;
2071

    
2072
            if (isFinal !== undefined) {
2073
                localVarQueryParameter['isFinal'] = isFinal;
2074
            }
2075

    
2076

    
2077
    
2078
            localVarHeaderParameter['Content-Type'] = 'application/json';
2079

    
2080
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2081
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2082
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2083
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
2084

    
2085
            return {
2086
                url: toPathString(localVarUrlObj),
2087
                options: localVarRequestOptions,
2088
            };
2089
        },
2090
        /**
2091
         * 
2092
         * @param {string} annotationId 
2093
         * @param {string} occurenceId 
2094
         * @param {boolean} [isFinal] 
2095
         * @param {*} [options] Override http request option.
2096
         * @throws {RequiredError}
2097
         */
2098
        annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2099
            // verify required parameter 'annotationId' is not null or undefined
2100
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
2101
            // verify required parameter 'occurenceId' is not null or undefined
2102
            assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
2103
            const localVarPath = `/annotation/{annotationId}/{occurenceId}`
2104
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2105
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2106
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2107
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2108
            let baseOptions;
2109
            if (configuration) {
2110
                baseOptions = configuration.baseOptions;
2111
            }
2112

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

    
2117
            if (isFinal !== undefined) {
2118
                localVarQueryParameter['isFinal'] = isFinal;
2119
            }
2120

    
2121

    
2122
    
2123
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2124
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2125
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2126

    
2127
            return {
2128
                url: toPathString(localVarUrlObj),
2129
                options: localVarRequestOptions,
2130
            };
2131
        },
2132
        /**
2133
         * 
2134
         * @param {string} annotationId 
2135
         * @param {string} occurenceId 
2136
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2137
         * @param {*} [options] Override http request option.
2138
         * @throws {RequiredError}
2139
         */
2140
        annotationAnnotationIdOccurenceIdFinalPut: async (annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2141
            // verify required parameter 'annotationId' is not null or undefined
2142
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'annotationId', annotationId)
2143
            // verify required parameter 'occurenceId' is not null or undefined
2144
            assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'occurenceId', occurenceId)
2145
            const localVarPath = `/annotation/{annotationId}/{occurenceId}/final`
2146
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2147
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2148
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2149
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2150
            let baseOptions;
2151
            if (configuration) {
2152
                baseOptions = configuration.baseOptions;
2153
            }
2154

    
2155
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2156
            const localVarHeaderParameter = {} as any;
2157
            const localVarQueryParameter = {} as any;
2158

    
2159

    
2160
    
2161
            localVarHeaderParameter['Content-Type'] = 'application/json';
2162

    
2163
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2164
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2165
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2166
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceIsFinalRequest, localVarRequestOptions, configuration)
2167

    
2168
            return {
2169
                url: toPathString(localVarUrlObj),
2170
                options: localVarRequestOptions,
2171
            };
2172
        },
2173
        /**
2174
         * 
2175
         * @param {string} annotationId 
2176
         * @param {boolean} [isFinal] 
2177
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2178
         * @param {*} [options] Override http request option.
2179
         * @throws {RequiredError}
2180
         */
2181
        annotationAnnotationIdPost: async (annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2182
            // verify required parameter 'annotationId' is not null or undefined
2183
            assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
2184
            const localVarPath = `/annotation/{annotationId}`
2185
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
2186
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2187
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2188
            let baseOptions;
2189
            if (configuration) {
2190
                baseOptions = configuration.baseOptions;
2191
            }
2192

    
2193
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2194
            const localVarHeaderParameter = {} as any;
2195
            const localVarQueryParameter = {} as any;
2196

    
2197
            if (isFinal !== undefined) {
2198
                localVarQueryParameter['isFinal'] = isFinal;
2199
            }
2200

    
2201

    
2202
    
2203
            localVarHeaderParameter['Content-Type'] = 'application/json';
2204

    
2205
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2206
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2207
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2208
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
2209

    
2210
            return {
2211
                url: toPathString(localVarUrlObj),
2212
                options: localVarRequestOptions,
2213
            };
2214
        },
2215
        /**
2216
         * 
2217
         * @param {string} annotationId 
2218
         * @param {string} occurenceId 
2219
         * @param {boolean} [isFinal] 
2220
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2221
         * @param {*} [options] Override http request option.
2222
         * @throws {RequiredError}
2223
         */
2224
        annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2225
            // verify required parameter 'annotationId' is not null or undefined
2226
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
2227
            // verify required parameter 'occurenceId' is not null or undefined
2228
            assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
2229
            const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
2230
                .replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
2231
                .replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
2232
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2233
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2234
            let baseOptions;
2235
            if (configuration) {
2236
                baseOptions = configuration.baseOptions;
2237
            }
2238

    
2239
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2240
            const localVarHeaderParameter = {} as any;
2241
            const localVarQueryParameter = {} as any;
2242

    
2243
            if (isFinal !== undefined) {
2244
                localVarQueryParameter['isFinal'] = isFinal;
2245
            }
2246

    
2247

    
2248
    
2249
            localVarHeaderParameter['Content-Type'] = 'application/json';
2250

    
2251
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2252
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2253
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2254
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
2255

    
2256
            return {
2257
                url: toPathString(localVarUrlObj),
2258
                options: localVarRequestOptions,
2259
            };
2260
        },
2261
        /**
2262
         * 
2263
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2264
         * @param {*} [options] Override http request option.
2265
         * @throws {RequiredError}
2266
         */
2267
        annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2268
            const localVarPath = `/annotations`;
2269
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2270
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2271
            let baseOptions;
2272
            if (configuration) {
2273
                baseOptions = configuration.baseOptions;
2274
            }
2275

    
2276
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2277
            const localVarHeaderParameter = {} as any;
2278
            const localVarQueryParameter = {} as any;
2279

    
2280

    
2281
    
2282
            localVarHeaderParameter['Content-Type'] = 'application/json';
2283

    
2284
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2285
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2286
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2287
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
2288

    
2289
            return {
2290
                url: toPathString(localVarUrlObj),
2291
                options: localVarRequestOptions,
2292
            };
2293
        },
2294
    }
2295
};
2296

    
2297
/**
2298
 * AnnotationApi - functional programming interface
2299
 * @export
2300
 */
2301
export const AnnotationApiFp = function(configuration?: Configuration) {
2302
    const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
2303
    return {
2304
        /**
2305
         * 
2306
         * @param {string} annotationId 
2307
         * @param {boolean} [isFinal] 
2308
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2309
         * @param {*} [options] Override http request option.
2310
         * @throws {RequiredError}
2311
         */
2312
        async annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2313
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options);
2314
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2315
        },
2316
        /**
2317
         * 
2318
         * @param {string} annotationId 
2319
         * @param {boolean} [isFinal] 
2320
         * @param {*} [options] Override http request option.
2321
         * @throws {RequiredError}
2322
         */
2323
        async annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
2324
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, isFinal, options);
2325
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2326
        },
2327
        /**
2328
         * 
2329
         * @param {string} annotationId 
2330
         * @param {string} instanceId 
2331
         * @param {boolean} [isFinal] 
2332
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2333
         * @param {*} [options] Override http request option.
2334
         * @throws {RequiredError}
2335
         */
2336
        async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2337
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options);
2338
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2339
        },
2340
        /**
2341
         * 
2342
         * @param {string} annotationId 
2343
         * @param {boolean} [isFinal] 
2344
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2345
         * @param {*} [options] Override http request option.
2346
         * @throws {RequiredError}
2347
         */
2348
        async annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2349
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options);
2350
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2351
        },
2352
        /**
2353
         * 
2354
         * @param {string} annotationId 
2355
         * @param {string} occurenceId 
2356
         * @param {boolean} [isFinal] 
2357
         * @param {*} [options] Override http request option.
2358
         * @throws {RequiredError}
2359
         */
2360
        async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2361
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options);
2362
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2363
        },
2364
        /**
2365
         * 
2366
         * @param {string} annotationId 
2367
         * @param {string} occurenceId 
2368
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2369
         * @param {*} [options] Override http request option.
2370
         * @throws {RequiredError}
2371
         */
2372
        async annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2373
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options);
2374
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2375
        },
2376
        /**
2377
         * 
2378
         * @param {string} annotationId 
2379
         * @param {boolean} [isFinal] 
2380
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2381
         * @param {*} [options] Override http request option.
2382
         * @throws {RequiredError}
2383
         */
2384
        async annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2385
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options);
2386
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2387
        },
2388
        /**
2389
         * 
2390
         * @param {string} annotationId 
2391
         * @param {string} occurenceId 
2392
         * @param {boolean} [isFinal] 
2393
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2394
         * @param {*} [options] Override http request option.
2395
         * @throws {RequiredError}
2396
         */
2397
        async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2398
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options);
2399
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2400
        },
2401
        /**
2402
         * 
2403
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2404
         * @param {*} [options] Override http request option.
2405
         * @throws {RequiredError}
2406
         */
2407
        async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2408
            const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
2409
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2410
        },
2411
    }
2412
};
2413

    
2414
/**
2415
 * AnnotationApi - factory interface
2416
 * @export
2417
 */
2418
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2419
    const localVarFp = AnnotationApiFp(configuration)
2420
    return {
2421
        /**
2422
         * 
2423
         * @param {string} annotationId 
2424
         * @param {boolean} [isFinal] 
2425
         * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2426
         * @param {*} [options] Override http request option.
2427
         * @throws {RequiredError}
2428
         */
2429
        annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: any): AxiosPromise<void> {
2430
            return localVarFp.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(axios, basePath));
2431
        },
2432
        /**
2433
         * 
2434
         * @param {string} annotationId 
2435
         * @param {boolean} [isFinal] 
2436
         * @param {*} [options] Override http request option.
2437
         * @throws {RequiredError}
2438
         */
2439
        annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: any): AxiosPromise<AnnotationInfo> {
2440
            return localVarFp.annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(axios, basePath));
2441
        },
2442
        /**
2443
         * 
2444
         * @param {string} annotationId 
2445
         * @param {string} instanceId 
2446
         * @param {boolean} [isFinal] 
2447
         * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2448
         * @param {*} [options] Override http request option.
2449
         * @throws {RequiredError}
2450
         */
2451
        annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
2452
            return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
2453
        },
2454
        /**
2455
         * 
2456
         * @param {string} annotationId 
2457
         * @param {boolean} [isFinal] 
2458
         * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2459
         * @param {*} [options] Override http request option.
2460
         * @throws {RequiredError}
2461
         */
2462
        annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
2463
            return localVarFp.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
2464
        },
2465
        /**
2466
         * 
2467
         * @param {string} annotationId 
2468
         * @param {string} occurenceId 
2469
         * @param {boolean} [isFinal] 
2470
         * @param {*} [options] Override http request option.
2471
         * @throws {RequiredError}
2472
         */
2473
        annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: any): AxiosPromise<void> {
2474
            return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(axios, basePath));
2475
        },
2476
        /**
2477
         * 
2478
         * @param {string} annotationId 
2479
         * @param {string} occurenceId 
2480
         * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2481
         * @param {*} [options] Override http request option.
2482
         * @throws {RequiredError}
2483
         */
2484
        annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: any): AxiosPromise<void> {
2485
            return localVarFp.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(axios, basePath));
2486
        },
2487
        /**
2488
         * 
2489
         * @param {string} annotationId 
2490
         * @param {boolean} [isFinal] 
2491
         * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2492
         * @param {*} [options] Override http request option.
2493
         * @throws {RequiredError}
2494
         */
2495
        annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
2496
            return localVarFp.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
2497
        },
2498
        /**
2499
         * 
2500
         * @param {string} annotationId 
2501
         * @param {string} occurenceId 
2502
         * @param {boolean} [isFinal] 
2503
         * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2504
         * @param {*} [options] Override http request option.
2505
         * @throws {RequiredError}
2506
         */
2507
        annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
2508
            return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
2509
        },
2510
        /**
2511
         * 
2512
         * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2513
         * @param {*} [options] Override http request option.
2514
         * @throws {RequiredError}
2515
         */
2516
        annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
2517
            return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
2518
        },
2519
    };
2520
};
2521

    
2522
/**
2523
 * AnnotationApi - object-oriented interface
2524
 * @export
2525
 * @class AnnotationApi
2526
 * @extends {BaseAPI}
2527
 */
2528
export class AnnotationApi extends BaseAPI {
2529
    /**
2530
     * 
2531
     * @param {string} annotationId 
2532
     * @param {boolean} [isFinal] 
2533
     * @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest] 
2534
     * @param {*} [options] Override http request option.
2535
     * @throws {RequiredError}
2536
     * @memberof AnnotationApi
2537
     */
2538
    public annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig) {
2539
        return AnnotationApiFp(this.configuration).annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(this.axios, this.basePath));
2540
    }
2541

    
2542
    /**
2543
     * 
2544
     * @param {string} annotationId 
2545
     * @param {boolean} [isFinal] 
2546
     * @param {*} [options] Override http request option.
2547
     * @throws {RequiredError}
2548
     * @memberof AnnotationApi
2549
     */
2550
    public annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
2551
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(this.axios, this.basePath));
2552
    }
2553

    
2554
    /**
2555
     * 
2556
     * @param {string} annotationId 
2557
     * @param {string} instanceId 
2558
     * @param {boolean} [isFinal] 
2559
     * @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] 
2560
     * @param {*} [options] Override http request option.
2561
     * @throws {RequiredError}
2562
     * @memberof AnnotationApi
2563
     */
2564
    public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
2565
        return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
2566
    }
2567

    
2568
    /**
2569
     * 
2570
     * @param {string} annotationId 
2571
     * @param {boolean} [isFinal] 
2572
     * @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] 
2573
     * @param {*} [options] Override http request option.
2574
     * @throws {RequiredError}
2575
     * @memberof AnnotationApi
2576
     */
2577
    public annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
2578
        return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
2579
    }
2580

    
2581
    /**
2582
     * 
2583
     * @param {string} annotationId 
2584
     * @param {string} occurenceId 
2585
     * @param {boolean} [isFinal] 
2586
     * @param {*} [options] Override http request option.
2587
     * @throws {RequiredError}
2588
     * @memberof AnnotationApi
2589
     */
2590
    public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
2591
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(this.axios, this.basePath));
2592
    }
2593

    
2594
    /**
2595
     * 
2596
     * @param {string} annotationId 
2597
     * @param {string} occurenceId 
2598
     * @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest] 
2599
     * @param {*} [options] Override http request option.
2600
     * @throws {RequiredError}
2601
     * @memberof AnnotationApi
2602
     */
2603
    public annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig) {
2604
        return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(this.axios, this.basePath));
2605
    }
2606

    
2607
    /**
2608
     * 
2609
     * @param {string} annotationId 
2610
     * @param {boolean} [isFinal] 
2611
     * @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] 
2612
     * @param {*} [options] Override http request option.
2613
     * @throws {RequiredError}
2614
     * @memberof AnnotationApi
2615
     */
2616
    public annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
2617
        return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
2618
    }
2619

    
2620
    /**
2621
     * 
2622
     * @param {string} annotationId 
2623
     * @param {string} occurenceId 
2624
     * @param {boolean} [isFinal] 
2625
     * @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] 
2626
     * @param {*} [options] Override http request option.
2627
     * @throws {RequiredError}
2628
     * @memberof AnnotationApi
2629
     */
2630
    public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
2631
        return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
2632
    }
2633

    
2634
    /**
2635
     * 
2636
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2637
     * @param {*} [options] Override http request option.
2638
     * @throws {RequiredError}
2639
     * @memberof AnnotationApi
2640
     */
2641
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
2642
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
2643
    }
2644
}
2645

    
2646

    
2647
/**
2648
 * AuthApi - axios parameter creator
2649
 * @export
2650
 */
2651
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
2652
    return {
2653
        /**
2654
         * 
2655
         * @param {LoginRequest} [loginRequest] 
2656
         * @param {*} [options] Override http request option.
2657
         * @throws {RequiredError}
2658
         */
2659
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2660
            const localVarPath = `/auth/login`;
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(loginRequest, localVarRequestOptions, configuration)
2680

    
2681
            return {
2682
                url: toPathString(localVarUrlObj),
2683
                options: localVarRequestOptions,
2684
            };
2685
        },
2686
        /**
2687
         * 
2688
         * @param {*} [options] Override http request option.
2689
         * @throws {RequiredError}
2690
         */
2691
        authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2692
            const localVarPath = `/auth/test/aa`;
2693
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2694
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2695
            let baseOptions;
2696
            if (configuration) {
2697
                baseOptions = configuration.baseOptions;
2698
            }
2699

    
2700
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2701
            const localVarHeaderParameter = {} as any;
2702
            const localVarQueryParameter = {} as any;
2703

    
2704

    
2705
    
2706
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2707
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2708
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2709

    
2710
            return {
2711
                url: toPathString(localVarUrlObj),
2712
                options: localVarRequestOptions,
2713
            };
2714
        },
2715
        /**
2716
         * 
2717
         * @param {*} [options] Override http request option.
2718
         * @throws {RequiredError}
2719
         */
2720
        authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2721
            const localVarPath = `/auth/test`;
2722
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2723
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2724
            let baseOptions;
2725
            if (configuration) {
2726
                baseOptions = configuration.baseOptions;
2727
            }
2728

    
2729
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2730
            const localVarHeaderParameter = {} as any;
2731
            const localVarQueryParameter = {} as any;
2732

    
2733

    
2734
    
2735
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2736
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2737
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2738

    
2739
            return {
2740
                url: toPathString(localVarUrlObj),
2741
                options: localVarRequestOptions,
2742
            };
2743
        },
2744
    }
2745
};
2746

    
2747
/**
2748
 * AuthApi - functional programming interface
2749
 * @export
2750
 */
2751
export const AuthApiFp = function(configuration?: Configuration) {
2752
    const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
2753
    return {
2754
        /**
2755
         * 
2756
         * @param {LoginRequest} [loginRequest] 
2757
         * @param {*} [options] Override http request option.
2758
         * @throws {RequiredError}
2759
         */
2760
        async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
2761
            const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
2762
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2763
        },
2764
        /**
2765
         * 
2766
         * @param {*} [options] Override http request option.
2767
         * @throws {RequiredError}
2768
         */
2769
        async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2770
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
2771
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2772
        },
2773
        /**
2774
         * 
2775
         * @param {*} [options] Override http request option.
2776
         * @throws {RequiredError}
2777
         */
2778
        async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
2779
            const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
2780
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2781
        },
2782
    }
2783
};
2784

    
2785
/**
2786
 * AuthApi - factory interface
2787
 * @export
2788
 */
2789
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2790
    const localVarFp = AuthApiFp(configuration)
2791
    return {
2792
        /**
2793
         * 
2794
         * @param {LoginRequest} [loginRequest] 
2795
         * @param {*} [options] Override http request option.
2796
         * @throws {RequiredError}
2797
         */
2798
        authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
2799
            return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
2800
        },
2801
        /**
2802
         * 
2803
         * @param {*} [options] Override http request option.
2804
         * @throws {RequiredError}
2805
         */
2806
        authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
2807
            return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
2808
        },
2809
        /**
2810
         * 
2811
         * @param {*} [options] Override http request option.
2812
         * @throws {RequiredError}
2813
         */
2814
        authTestGet(options?: any): AxiosPromise<ClientInfo> {
2815
            return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
2816
        },
2817
    };
2818
};
2819

    
2820
/**
2821
 * AuthApi - object-oriented interface
2822
 * @export
2823
 * @class AuthApi
2824
 * @extends {BaseAPI}
2825
 */
2826
export class AuthApi extends BaseAPI {
2827
    /**
2828
     * 
2829
     * @param {LoginRequest} [loginRequest] 
2830
     * @param {*} [options] Override http request option.
2831
     * @throws {RequiredError}
2832
     * @memberof AuthApi
2833
     */
2834
    public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
2835
        return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
2836
    }
2837

    
2838
    /**
2839
     * 
2840
     * @param {*} [options] Override http request option.
2841
     * @throws {RequiredError}
2842
     * @memberof AuthApi
2843
     */
2844
    public authTestAaGet(options?: AxiosRequestConfig) {
2845
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
2846
    }
2847

    
2848
    /**
2849
     * 
2850
     * @param {*} [options] Override http request option.
2851
     * @throws {RequiredError}
2852
     * @memberof AuthApi
2853
     */
2854
    public authTestGet(options?: AxiosRequestConfig) {
2855
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
2856
    }
2857
}
2858

    
2859

    
2860
/**
2861
 * DocumentApi - axios parameter creator
2862
 * @export
2863
 */
2864
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
2865
    return {
2866
        /**
2867
         * 
2868
         * @param {string} documentId 
2869
         * @param {*} [options] Override http request option.
2870
         * @throws {RequiredError}
2871
         */
2872
        documentDocumentIdFinalPost: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2873
            // verify required parameter 'documentId' is not null or undefined
2874
            assertParamExists('documentDocumentIdFinalPost', 'documentId', documentId)
2875
            const localVarPath = `/document/{documentId}/final`
2876
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2877
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2878
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2879
            let baseOptions;
2880
            if (configuration) {
2881
                baseOptions = configuration.baseOptions;
2882
            }
2883

    
2884
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2885
            const localVarHeaderParameter = {} as any;
2886
            const localVarQueryParameter = {} as any;
2887

    
2888

    
2889
    
2890
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2891
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2892
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2893

    
2894
            return {
2895
                url: toPathString(localVarUrlObj),
2896
                options: localVarRequestOptions,
2897
            };
2898
        },
2899
        /**
2900
         * 
2901
         * @param {string} documentId 
2902
         * @param {*} [options] Override http request option.
2903
         * @throws {RequiredError}
2904
         */
2905
        documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2906
            // verify required parameter 'documentId' is not null or undefined
2907
            assertParamExists('documentDocumentIdGet', 'documentId', documentId)
2908
            const localVarPath = `/document/{documentId}`
2909
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
2910
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2911
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2912
            let baseOptions;
2913
            if (configuration) {
2914
                baseOptions = configuration.baseOptions;
2915
            }
2916

    
2917
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2918
            const localVarHeaderParameter = {} as any;
2919
            const localVarQueryParameter = {} as any;
2920

    
2921

    
2922
    
2923
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2924
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2925
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2926

    
2927
            return {
2928
                url: toPathString(localVarUrlObj),
2929
                options: localVarRequestOptions,
2930
            };
2931
        },
2932
        /**
2933
         * 
2934
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
2935
         * @param {*} [options] Override http request option.
2936
         * @throws {RequiredError}
2937
         */
2938
        documentsDelete: async (deleteDocumentsRequest?: DeleteDocumentsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2939
            const localVarPath = `/documents`;
2940
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2941
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2942
            let baseOptions;
2943
            if (configuration) {
2944
                baseOptions = configuration.baseOptions;
2945
            }
2946

    
2947
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2948
            const localVarHeaderParameter = {} as any;
2949
            const localVarQueryParameter = {} as any;
2950

    
2951

    
2952
    
2953
            localVarHeaderParameter['Content-Type'] = 'application/json';
2954

    
2955
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2956
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2957
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2958
            localVarRequestOptions.data = serializeDataIfNeeded(deleteDocumentsRequest, localVarRequestOptions, configuration)
2959

    
2960
            return {
2961
                url: toPathString(localVarUrlObj),
2962
                options: localVarRequestOptions,
2963
            };
2964
        },
2965
        /**
2966
         * 
2967
         * @param {string} documentId 
2968
         * @param {string} annotatorId 
2969
         * @param {*} [options] Override http request option.
2970
         * @throws {RequiredError}
2971
         */
2972
        documentsDocumentIdAnnotatorsAnnotatorIdDelete: async (documentId: string, annotatorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2973
            // verify required parameter 'documentId' is not null or undefined
2974
            assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'documentId', documentId)
2975
            // verify required parameter 'annotatorId' is not null or undefined
2976
            assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'annotatorId', annotatorId)
2977
            const localVarPath = `/documents/{documentId}/annotators/{annotatorId}`
2978
                .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)))
2979
                .replace(`{${"annotatorId"}}`, encodeURIComponent(String(annotatorId)));
2980
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2981
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2982
            let baseOptions;
2983
            if (configuration) {
2984
                baseOptions = configuration.baseOptions;
2985
            }
2986

    
2987
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2988
            const localVarHeaderParameter = {} as any;
2989
            const localVarQueryParameter = {} as any;
2990

    
2991

    
2992
    
2993
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2994
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2995
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2996

    
2997
            return {
2998
                url: toPathString(localVarUrlObj),
2999
                options: localVarRequestOptions,
3000
            };
3001
        },
3002
        /**
3003
         * 
3004
         * @param {ExportRequest} [exportRequest] 
3005
         * @param {*} [options] Override http request option.
3006
         * @throws {RequiredError}
3007
         */
3008
        documentsExportPost: async (exportRequest?: ExportRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3009
            const localVarPath = `/documents/export`;
3010
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3011
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3012
            let baseOptions;
3013
            if (configuration) {
3014
                baseOptions = configuration.baseOptions;
3015
            }
3016

    
3017
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3018
            const localVarHeaderParameter = {} as any;
3019
            const localVarQueryParameter = {} as any;
3020

    
3021

    
3022
    
3023
            localVarHeaderParameter['Content-Type'] = 'application/json';
3024

    
3025
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3026
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3027
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3028
            localVarRequestOptions.data = serializeDataIfNeeded(exportRequest, localVarRequestOptions, configuration)
3029

    
3030
            return {
3031
                url: toPathString(localVarUrlObj),
3032
                options: localVarRequestOptions,
3033
            };
3034
        },
3035
        /**
3036
         * 
3037
         * @param {*} [options] Override http request option.
3038
         * @throws {RequiredError}
3039
         */
3040
        documentsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3041
            const localVarPath = `/documents`;
3042
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3043
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3044
            let baseOptions;
3045
            if (configuration) {
3046
                baseOptions = configuration.baseOptions;
3047
            }
3048

    
3049
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3050
            const localVarHeaderParameter = {} as any;
3051
            const localVarQueryParameter = {} as any;
3052

    
3053

    
3054
    
3055
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3056
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3057
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3058

    
3059
            return {
3060
                url: toPathString(localVarUrlObj),
3061
                options: localVarRequestOptions,
3062
            };
3063
        },
3064
        /**
3065
         * 
3066
         * @param {DocumentAddRequest} [documentAddRequest] 
3067
         * @param {*} [options] Override http request option.
3068
         * @throws {RequiredError}
3069
         */
3070
        documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3071
            const localVarPath = `/documents`;
3072
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3073
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3074
            let baseOptions;
3075
            if (configuration) {
3076
                baseOptions = configuration.baseOptions;
3077
            }
3078

    
3079
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3080
            const localVarHeaderParameter = {} as any;
3081
            const localVarQueryParameter = {} as any;
3082

    
3083

    
3084
    
3085
            localVarHeaderParameter['Content-Type'] = 'application/json';
3086

    
3087
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3088
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3089
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3090
            localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
3091

    
3092
            return {
3093
                url: toPathString(localVarUrlObj),
3094
                options: localVarRequestOptions,
3095
            };
3096
        },
3097
        /**
3098
         * 
3099
         * @param {*} [options] Override http request option.
3100
         * @throws {RequiredError}
3101
         */
3102
        documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3103
            const localVarPath = `/documents/requiredAnnotations/global`;
3104
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3105
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3106
            let baseOptions;
3107
            if (configuration) {
3108
                baseOptions = configuration.baseOptions;
3109
            }
3110

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

    
3115

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

    
3121
            return {
3122
                url: toPathString(localVarUrlObj),
3123
                options: localVarRequestOptions,
3124
            };
3125
        },
3126
        /**
3127
         * 
3128
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3129
         * @param {*} [options] Override http request option.
3130
         * @throws {RequiredError}
3131
         */
3132
        documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3133
            const localVarPath = `/documents/requiredAnnotations/global`;
3134
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3135
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3136
            let baseOptions;
3137
            if (configuration) {
3138
                baseOptions = configuration.baseOptions;
3139
            }
3140

    
3141
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3142
            const localVarHeaderParameter = {} as any;
3143
            const localVarQueryParameter = {} as any;
3144

    
3145

    
3146
    
3147
            localVarHeaderParameter['Content-Type'] = 'application/json';
3148

    
3149
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3150
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3151
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3152
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
3153

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

    
3174
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3175
            const localVarHeaderParameter = {} as any;
3176
            const localVarQueryParameter = {} as any;
3177

    
3178

    
3179
    
3180
            localVarHeaderParameter['Content-Type'] = 'application/json';
3181

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

    
3187
            return {
3188
                url: toPathString(localVarUrlObj),
3189
                options: localVarRequestOptions,
3190
            };
3191
        },
3192
    }
3193
};
3194

    
3195
/**
3196
 * DocumentApi - functional programming interface
3197
 * @export
3198
 */
3199
export const DocumentApiFp = function(configuration?: Configuration) {
3200
    const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
3201
    return {
3202
        /**
3203
         * 
3204
         * @param {string} documentId 
3205
         * @param {*} [options] Override http request option.
3206
         * @throws {RequiredError}
3207
         */
3208
        async documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFinalAnnotationResponse>> {
3209
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdFinalPost(documentId, options);
3210
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3211
        },
3212
        /**
3213
         * 
3214
         * @param {string} documentId 
3215
         * @param {*} [options] Override http request option.
3216
         * @throws {RequiredError}
3217
         */
3218
        async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
3219
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
3220
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3221
        },
3222
        /**
3223
         * 
3224
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3225
         * @param {*} [options] Override http request option.
3226
         * @throws {RequiredError}
3227
         */
3228
        async documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3229
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDelete(deleteDocumentsRequest, options);
3230
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3231
        },
3232
        /**
3233
         * 
3234
         * @param {string} documentId 
3235
         * @param {string} annotatorId 
3236
         * @param {*} [options] Override http request option.
3237
         * @throws {RequiredError}
3238
         */
3239
        async documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3240
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options);
3241
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3242
        },
3243
        /**
3244
         * 
3245
         * @param {ExportRequest} [exportRequest] 
3246
         * @param {*} [options] Override http request option.
3247
         * @throws {RequiredError}
3248
         */
3249
        async documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
3250
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsExportPost(exportRequest, options);
3251
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3252
        },
3253
        /**
3254
         * 
3255
         * @param {*} [options] Override http request option.
3256
         * @throws {RequiredError}
3257
         */
3258
        async documentsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
3259
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(options);
3260
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3261
        },
3262
        /**
3263
         * 
3264
         * @param {DocumentAddRequest} [documentAddRequest] 
3265
         * @param {*} [options] Override http request option.
3266
         * @throws {RequiredError}
3267
         */
3268
        async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3269
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
3270
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3271
        },
3272
        /**
3273
         * 
3274
         * @param {*} [options] Override http request option.
3275
         * @throws {RequiredError}
3276
         */
3277
        async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
3278
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
3279
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3280
        },
3281
        /**
3282
         * 
3283
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3284
         * @param {*} [options] Override http request option.
3285
         * @throws {RequiredError}
3286
         */
3287
        async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3288
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
3289
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3290
        },
3291
        /**
3292
         * 
3293
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3294
         * @param {*} [options] Override http request option.
3295
         * @throws {RequiredError}
3296
         */
3297
        async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3298
            const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
3299
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3300
        },
3301
    }
3302
};
3303

    
3304
/**
3305
 * DocumentApi - factory interface
3306
 * @export
3307
 */
3308
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3309
    const localVarFp = DocumentApiFp(configuration)
3310
    return {
3311
        /**
3312
         * 
3313
         * @param {string} documentId 
3314
         * @param {*} [options] Override http request option.
3315
         * @throws {RequiredError}
3316
         */
3317
        documentDocumentIdFinalPost(documentId: string, options?: any): AxiosPromise<CreateFinalAnnotationResponse> {
3318
            return localVarFp.documentDocumentIdFinalPost(documentId, options).then((request) => request(axios, basePath));
3319
        },
3320
        /**
3321
         * 
3322
         * @param {string} documentId 
3323
         * @param {*} [options] Override http request option.
3324
         * @throws {RequiredError}
3325
         */
3326
        documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
3327
            return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
3328
        },
3329
        /**
3330
         * 
3331
         * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3332
         * @param {*} [options] Override http request option.
3333
         * @throws {RequiredError}
3334
         */
3335
        documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: any): AxiosPromise<void> {
3336
            return localVarFp.documentsDelete(deleteDocumentsRequest, options).then((request) => request(axios, basePath));
3337
        },
3338
        /**
3339
         * 
3340
         * @param {string} documentId 
3341
         * @param {string} annotatorId 
3342
         * @param {*} [options] Override http request option.
3343
         * @throws {RequiredError}
3344
         */
3345
        documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: any): AxiosPromise<void> {
3346
            return localVarFp.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(axios, basePath));
3347
        },
3348
        /**
3349
         * 
3350
         * @param {ExportRequest} [exportRequest] 
3351
         * @param {*} [options] Override http request option.
3352
         * @throws {RequiredError}
3353
         */
3354
        documentsExportPost(exportRequest?: ExportRequest, options?: any): AxiosPromise<string> {
3355
            return localVarFp.documentsExportPost(exportRequest, options).then((request) => request(axios, basePath));
3356
        },
3357
        /**
3358
         * 
3359
         * @param {*} [options] Override http request option.
3360
         * @throws {RequiredError}
3361
         */
3362
        documentsGet(options?: any): AxiosPromise<DocumentListResponse> {
3363
            return localVarFp.documentsGet(options).then((request) => request(axios, basePath));
3364
        },
3365
        /**
3366
         * 
3367
         * @param {DocumentAddRequest} [documentAddRequest] 
3368
         * @param {*} [options] Override http request option.
3369
         * @throws {RequiredError}
3370
         */
3371
        documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
3372
            return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
3373
        },
3374
        /**
3375
         * 
3376
         * @param {*} [options] Override http request option.
3377
         * @throws {RequiredError}
3378
         */
3379
        documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
3380
            return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
3381
        },
3382
        /**
3383
         * 
3384
         * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3385
         * @param {*} [options] Override http request option.
3386
         * @throws {RequiredError}
3387
         */
3388
        documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
3389
            return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
3390
        },
3391
        /**
3392
         * 
3393
         * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3394
         * @param {*} [options] Override http request option.
3395
         * @throws {RequiredError}
3396
         */
3397
        documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
3398
            return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
3399
        },
3400
    };
3401
};
3402

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

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

    
3432
    /**
3433
     * 
3434
     * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3435
     * @param {*} [options] Override http request option.
3436
     * @throws {RequiredError}
3437
     * @memberof DocumentApi
3438
     */
3439
    public documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig) {
3440
        return DocumentApiFp(this.configuration).documentsDelete(deleteDocumentsRequest, options).then((request) => request(this.axios, this.basePath));
3441
    }
3442

    
3443
    /**
3444
     * 
3445
     * @param {string} documentId 
3446
     * @param {string} annotatorId 
3447
     * @param {*} [options] Override http request option.
3448
     * @throws {RequiredError}
3449
     * @memberof DocumentApi
3450
     */
3451
    public documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig) {
3452
        return DocumentApiFp(this.configuration).documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(this.axios, this.basePath));
3453
    }
3454

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

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

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

    
3487
    /**
3488
     * 
3489
     * @param {*} [options] Override http request option.
3490
     * @throws {RequiredError}
3491
     * @memberof DocumentApi
3492
     */
3493
    public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
3494
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
3495
    }
3496

    
3497
    /**
3498
     * 
3499
     * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3500
     * @param {*} [options] Override http request option.
3501
     * @throws {RequiredError}
3502
     * @memberof DocumentApi
3503
     */
3504
    public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
3505
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
3506
    }
3507

    
3508
    /**
3509
     * 
3510
     * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3511
     * @param {*} [options] Override http request option.
3512
     * @throws {RequiredError}
3513
     * @memberof DocumentApi
3514
     */
3515
    public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
3516
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
3517
    }
3518
}
3519

    
3520

    
3521
/**
3522
 * TagApi - axios parameter creator
3523
 * @export
3524
 */
3525
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
3526
    return {
3527
        /**
3528
         * 
3529
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3530
         * @param {*} [options] Override http request option.
3531
         * @throws {RequiredError}
3532
         */
3533
        categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3534
            const localVarPath = `/categories`;
3535
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3536
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3537
            let baseOptions;
3538
            if (configuration) {
3539
                baseOptions = configuration.baseOptions;
3540
            }
3541

    
3542
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3543
            const localVarHeaderParameter = {} as any;
3544
            const localVarQueryParameter = {} as any;
3545

    
3546

    
3547
    
3548
            localVarHeaderParameter['Content-Type'] = 'application/json';
3549

    
3550
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3551
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3552
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3553
            localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
3554

    
3555
            return {
3556
                url: toPathString(localVarUrlObj),
3557
                options: localVarRequestOptions,
3558
            };
3559
        },
3560
        /**
3561
         * 
3562
         * @param {string} categoryId 
3563
         * @param {*} [options] Override http request option.
3564
         * @throws {RequiredError}
3565
         */
3566
        categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3567
            // verify required parameter 'categoryId' is not null or undefined
3568
            assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
3569
            const localVarPath = `/category/{categoryId}`
3570
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
3571
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3572
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3573
            let baseOptions;
3574
            if (configuration) {
3575
                baseOptions = configuration.baseOptions;
3576
            }
3577

    
3578
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3579
            const localVarHeaderParameter = {} as any;
3580
            const localVarQueryParameter = {} as any;
3581

    
3582

    
3583
    
3584
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3585
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3586
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3587

    
3588
            return {
3589
                url: toPathString(localVarUrlObj),
3590
                options: localVarRequestOptions,
3591
            };
3592
        },
3593
        /**
3594
         * 
3595
         * @param {string} categoryId 
3596
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3597
         * @param {*} [options] Override http request option.
3598
         * @throws {RequiredError}
3599
         */
3600
        categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3601
            // verify required parameter 'categoryId' is not null or undefined
3602
            assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
3603
            const localVarPath = `/category/{categoryId}`
3604
                .replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
3605
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3606
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3607
            let baseOptions;
3608
            if (configuration) {
3609
                baseOptions = configuration.baseOptions;
3610
            }
3611

    
3612
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3613
            const localVarHeaderParameter = {} as any;
3614
            const localVarQueryParameter = {} as any;
3615

    
3616

    
3617
    
3618
            localVarHeaderParameter['Content-Type'] = 'application/json';
3619

    
3620
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3621
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3622
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3623
            localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
3624

    
3625
            return {
3626
                url: toPathString(localVarUrlObj),
3627
                options: localVarRequestOptions,
3628
            };
3629
        },
3630
        /**
3631
         * 
3632
         * @param {string} subtagId 
3633
         * @param {*} [options] Override http request option.
3634
         * @throws {RequiredError}
3635
         */
3636
        subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3637
            // verify required parameter 'subtagId' is not null or undefined
3638
            assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
3639
            const localVarPath = `/subtag/{subtagId}`
3640
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
3641
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3642
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3643
            let baseOptions;
3644
            if (configuration) {
3645
                baseOptions = configuration.baseOptions;
3646
            }
3647

    
3648
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3649
            const localVarHeaderParameter = {} as any;
3650
            const localVarQueryParameter = {} as any;
3651

    
3652

    
3653
    
3654
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3655
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3656
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3657

    
3658
            return {
3659
                url: toPathString(localVarUrlObj),
3660
                options: localVarRequestOptions,
3661
            };
3662
        },
3663
        /**
3664
         * 
3665
         * @param {string} subtagId 
3666
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3667
         * @param {*} [options] Override http request option.
3668
         * @throws {RequiredError}
3669
         */
3670
        subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3671
            // verify required parameter 'subtagId' is not null or undefined
3672
            assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
3673
            const localVarPath = `/subtag/{subtagId}`
3674
                .replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
3675
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3676
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3677
            let baseOptions;
3678
            if (configuration) {
3679
                baseOptions = configuration.baseOptions;
3680
            }
3681

    
3682
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3683
            const localVarHeaderParameter = {} as any;
3684
            const localVarQueryParameter = {} as any;
3685

    
3686

    
3687
    
3688
            localVarHeaderParameter['Content-Type'] = 'application/json';
3689

    
3690
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3691
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3692
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3693
            localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
3694

    
3695
            return {
3696
                url: toPathString(localVarUrlObj),
3697
                options: localVarRequestOptions,
3698
            };
3699
        },
3700
        /**
3701
         * 
3702
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3703
         * @param {*} [options] Override http request option.
3704
         * @throws {RequiredError}
3705
         */
3706
        subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3707
            const localVarPath = `/subtags`;
3708
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3709
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3710
            let baseOptions;
3711
            if (configuration) {
3712
                baseOptions = configuration.baseOptions;
3713
            }
3714

    
3715
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3716
            const localVarHeaderParameter = {} as any;
3717
            const localVarQueryParameter = {} as any;
3718

    
3719

    
3720
    
3721
            localVarHeaderParameter['Content-Type'] = 'application/json';
3722

    
3723
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3724
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3725
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3726
            localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
3727

    
3728
            return {
3729
                url: toPathString(localVarUrlObj),
3730
                options: localVarRequestOptions,
3731
            };
3732
        },
3733
        /**
3734
         * 
3735
         * @param {string} tagId 
3736
         * @param {*} [options] Override http request option.
3737
         * @throws {RequiredError}
3738
         */
3739
        tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3740
            // verify required parameter 'tagId' is not null or undefined
3741
            assertParamExists('tagTagIdDelete', 'tagId', tagId)
3742
            const localVarPath = `/tag/{tagId}`
3743
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
3744
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3745
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3746
            let baseOptions;
3747
            if (configuration) {
3748
                baseOptions = configuration.baseOptions;
3749
            }
3750

    
3751
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3752
            const localVarHeaderParameter = {} as any;
3753
            const localVarQueryParameter = {} as any;
3754

    
3755

    
3756
    
3757
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3758
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3759
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3760

    
3761
            return {
3762
                url: toPathString(localVarUrlObj),
3763
                options: localVarRequestOptions,
3764
            };
3765
        },
3766
        /**
3767
         * 
3768
         * @param {string} tagId 
3769
         * @param {ModifyTagRequest} [modifyTagRequest] 
3770
         * @param {*} [options] Override http request option.
3771
         * @throws {RequiredError}
3772
         */
3773
        tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3774
            // verify required parameter 'tagId' is not null or undefined
3775
            assertParamExists('tagTagIdPut', 'tagId', tagId)
3776
            const localVarPath = `/tag/{tagId}`
3777
                .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
3778
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3779
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3780
            let baseOptions;
3781
            if (configuration) {
3782
                baseOptions = configuration.baseOptions;
3783
            }
3784

    
3785
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3786
            const localVarHeaderParameter = {} as any;
3787
            const localVarQueryParameter = {} as any;
3788

    
3789

    
3790
    
3791
            localVarHeaderParameter['Content-Type'] = 'application/json';
3792

    
3793
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3794
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3795
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3796
            localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
3797

    
3798
            return {
3799
                url: toPathString(localVarUrlObj),
3800
                options: localVarRequestOptions,
3801
            };
3802
        },
3803
        /**
3804
         * 
3805
         * @param {*} [options] Override http request option.
3806
         * @throws {RequiredError}
3807
         */
3808
        tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3809
            const localVarPath = `/tags`;
3810
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3811
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3812
            let baseOptions;
3813
            if (configuration) {
3814
                baseOptions = configuration.baseOptions;
3815
            }
3816

    
3817
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3818
            const localVarHeaderParameter = {} as any;
3819
            const localVarQueryParameter = {} as any;
3820

    
3821

    
3822
    
3823
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3824
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3825
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3826

    
3827
            return {
3828
                url: toPathString(localVarUrlObj),
3829
                options: localVarRequestOptions,
3830
            };
3831
        },
3832
        /**
3833
         * 
3834
         * @param {CreateTagRequest} [createTagRequest] 
3835
         * @param {*} [options] Override http request option.
3836
         * @throws {RequiredError}
3837
         */
3838
        tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3839
            const localVarPath = `/tags`;
3840
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
3841
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3842
            let baseOptions;
3843
            if (configuration) {
3844
                baseOptions = configuration.baseOptions;
3845
            }
3846

    
3847
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3848
            const localVarHeaderParameter = {} as any;
3849
            const localVarQueryParameter = {} as any;
3850

    
3851

    
3852
    
3853
            localVarHeaderParameter['Content-Type'] = 'application/json';
3854

    
3855
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3856
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3857
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3858
            localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
3859

    
3860
            return {
3861
                url: toPathString(localVarUrlObj),
3862
                options: localVarRequestOptions,
3863
            };
3864
        },
3865
    }
3866
};
3867

    
3868
/**
3869
 * TagApi - functional programming interface
3870
 * @export
3871
 */
3872
export const TagApiFp = function(configuration?: Configuration) {
3873
    const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
3874
    return {
3875
        /**
3876
         * 
3877
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3878
         * @param {*} [options] Override http request option.
3879
         * @throws {RequiredError}
3880
         */
3881
        async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3882
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options);
3883
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3884
        },
3885
        /**
3886
         * 
3887
         * @param {string} categoryId 
3888
         * @param {*} [options] Override http request option.
3889
         * @throws {RequiredError}
3890
         */
3891
        async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3892
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options);
3893
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3894
        },
3895
        /**
3896
         * 
3897
         * @param {string} categoryId 
3898
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
3899
         * @param {*} [options] Override http request option.
3900
         * @throws {RequiredError}
3901
         */
3902
        async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3903
            const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options);
3904
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3905
        },
3906
        /**
3907
         * 
3908
         * @param {string} subtagId 
3909
         * @param {*} [options] Override http request option.
3910
         * @throws {RequiredError}
3911
         */
3912
        async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3913
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options);
3914
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3915
        },
3916
        /**
3917
         * 
3918
         * @param {string} subtagId 
3919
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
3920
         * @param {*} [options] Override http request option.
3921
         * @throws {RequiredError}
3922
         */
3923
        async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3924
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options);
3925
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3926
        },
3927
        /**
3928
         * 
3929
         * @param {CreateSubTagRequest} [createSubTagRequest] 
3930
         * @param {*} [options] Override http request option.
3931
         * @throws {RequiredError}
3932
         */
3933
        async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3934
            const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options);
3935
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3936
        },
3937
        /**
3938
         * 
3939
         * @param {string} tagId 
3940
         * @param {*} [options] Override http request option.
3941
         * @throws {RequiredError}
3942
         */
3943
        async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3944
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options);
3945
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3946
        },
3947
        /**
3948
         * 
3949
         * @param {string} tagId 
3950
         * @param {ModifyTagRequest} [modifyTagRequest] 
3951
         * @param {*} [options] Override http request option.
3952
         * @throws {RequiredError}
3953
         */
3954
        async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3955
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options);
3956
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3957
        },
3958
        /**
3959
         * 
3960
         * @param {*} [options] Override http request option.
3961
         * @throws {RequiredError}
3962
         */
3963
        async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
3964
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
3965
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3966
        },
3967
        /**
3968
         * 
3969
         * @param {CreateTagRequest} [createTagRequest] 
3970
         * @param {*} [options] Override http request option.
3971
         * @throws {RequiredError}
3972
         */
3973
        async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3974
            const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options);
3975
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3976
        },
3977
    }
3978
};
3979

    
3980
/**
3981
 * TagApi - factory interface
3982
 * @export
3983
 */
3984
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3985
    const localVarFp = TagApiFp(configuration)
3986
    return {
3987
        /**
3988
         * 
3989
         * @param {CreateCategoryRequest} [createCategoryRequest] 
3990
         * @param {*} [options] Override http request option.
3991
         * @throws {RequiredError}
3992
         */
3993
        categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> {
3994
            return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath));
3995
        },
3996
        /**
3997
         * 
3998
         * @param {string} categoryId 
3999
         * @param {*} [options] Override http request option.
4000
         * @throws {RequiredError}
4001
         */
4002
        categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> {
4003
            return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath));
4004
        },
4005
        /**
4006
         * 
4007
         * @param {string} categoryId 
4008
         * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
4009
         * @param {*} [options] Override http request option.
4010
         * @throws {RequiredError}
4011
         */
4012
        categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> {
4013
            return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath));
4014
        },
4015
        /**
4016
         * 
4017
         * @param {string} subtagId 
4018
         * @param {*} [options] Override http request option.
4019
         * @throws {RequiredError}
4020
         */
4021
        subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> {
4022
            return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath));
4023
        },
4024
        /**
4025
         * 
4026
         * @param {string} subtagId 
4027
         * @param {ModifySubTagRequest} [modifySubTagRequest] 
4028
         * @param {*} [options] Override http request option.
4029
         * @throws {RequiredError}
4030
         */
4031
        subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> {
4032
            return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath));
4033
        },
4034
        /**
4035
         * 
4036
         * @param {CreateSubTagRequest} [createSubTagRequest] 
4037
         * @param {*} [options] Override http request option.
4038
         * @throws {RequiredError}
4039
         */
4040
        subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> {
4041
            return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath));
4042
        },
4043
        /**
4044
         * 
4045
         * @param {string} tagId 
4046
         * @param {*} [options] Override http request option.
4047
         * @throws {RequiredError}
4048
         */
4049
        tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> {
4050
            return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
4051
        },
4052
        /**
4053
         * 
4054
         * @param {string} tagId 
4055
         * @param {ModifyTagRequest} [modifyTagRequest] 
4056
         * @param {*} [options] Override http request option.
4057
         * @throws {RequiredError}
4058
         */
4059
        tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> {
4060
            return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath));
4061
        },
4062
        /**
4063
         * 
4064
         * @param {*} [options] Override http request option.
4065
         * @throws {RequiredError}
4066
         */
4067
        tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
4068
            return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
4069
        },
4070
        /**
4071
         * 
4072
         * @param {CreateTagRequest} [createTagRequest] 
4073
         * @param {*} [options] Override http request option.
4074
         * @throws {RequiredError}
4075
         */
4076
        tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> {
4077
            return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath));
4078
        },
4079
    };
4080
};
4081

    
4082
/**
4083
 * TagApi - object-oriented interface
4084
 * @export
4085
 * @class TagApi
4086
 * @extends {BaseAPI}
4087
 */
4088
export class TagApi extends BaseAPI {
4089
    /**
4090
     * 
4091
     * @param {CreateCategoryRequest} [createCategoryRequest] 
4092
     * @param {*} [options] Override http request option.
4093
     * @throws {RequiredError}
4094
     * @memberof TagApi
4095
     */
4096
    public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
4097
        return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
4098
    }
4099

    
4100
    /**
4101
     * 
4102
     * @param {string} categoryId 
4103
     * @param {*} [options] Override http request option.
4104
     * @throws {RequiredError}
4105
     * @memberof TagApi
4106
     */
4107
    public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
4108
        return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
4109
    }
4110

    
4111
    /**
4112
     * 
4113
     * @param {string} categoryId 
4114
     * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
4115
     * @param {*} [options] Override http request option.
4116
     * @throws {RequiredError}
4117
     * @memberof TagApi
4118
     */
4119
    public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
4120
        return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
4121
    }
4122

    
4123
    /**
4124
     * 
4125
     * @param {string} subtagId 
4126
     * @param {*} [options] Override http request option.
4127
     * @throws {RequiredError}
4128
     * @memberof TagApi
4129
     */
4130
    public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
4131
        return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
4132
    }
4133

    
4134
    /**
4135
     * 
4136
     * @param {string} subtagId 
4137
     * @param {ModifySubTagRequest} [modifySubTagRequest] 
4138
     * @param {*} [options] Override http request option.
4139
     * @throws {RequiredError}
4140
     * @memberof TagApi
4141
     */
4142
    public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
4143
        return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
4144
    }
4145

    
4146
    /**
4147
     * 
4148
     * @param {CreateSubTagRequest} [createSubTagRequest] 
4149
     * @param {*} [options] Override http request option.
4150
     * @throws {RequiredError}
4151
     * @memberof TagApi
4152
     */
4153
    public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
4154
        return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
4155
    }
4156

    
4157
    /**
4158
     * 
4159
     * @param {string} tagId 
4160
     * @param {*} [options] Override http request option.
4161
     * @throws {RequiredError}
4162
     * @memberof TagApi
4163
     */
4164
    public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
4165
        return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
4166
    }
4167

    
4168
    /**
4169
     * 
4170
     * @param {string} tagId 
4171
     * @param {ModifyTagRequest} [modifyTagRequest] 
4172
     * @param {*} [options] Override http request option.
4173
     * @throws {RequiredError}
4174
     * @memberof TagApi
4175
     */
4176
    public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
4177
        return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
4178
    }
4179

    
4180
    /**
4181
     * 
4182
     * @param {*} [options] Override http request option.
4183
     * @throws {RequiredError}
4184
     * @memberof TagApi
4185
     */
4186
    public tagsGet(options?: AxiosRequestConfig) {
4187
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
4188
    }
4189

    
4190
    /**
4191
     * 
4192
     * @param {CreateTagRequest} [createTagRequest] 
4193
     * @param {*} [options] Override http request option.
4194
     * @throws {RequiredError}
4195
     * @memberof TagApi
4196
     */
4197
    public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
4198
        return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
4199
    }
4200
}
4201

    
4202

    
4203
/**
4204
 * UserApi - axios parameter creator
4205
 * @export
4206
 */
4207
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
4208
    return {
4209
        /**
4210
         * 
4211
         * @param {*} [options] Override http request option.
4212
         * @throws {RequiredError}
4213
         */
4214
        userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4215
            const localVarPath = `/user/annotations`;
4216
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4217
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4218
            let baseOptions;
4219
            if (configuration) {
4220
                baseOptions = configuration.baseOptions;
4221
            }
4222

    
4223
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4224
            const localVarHeaderParameter = {} as any;
4225
            const localVarQueryParameter = {} as any;
4226

    
4227

    
4228
    
4229
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4230
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4231
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4232

    
4233
            return {
4234
                url: toPathString(localVarUrlObj),
4235
                options: localVarRequestOptions,
4236
            };
4237
        },
4238
        /**
4239
         * 
4240
         * @param {string} userId 
4241
         * @param {*} [options] Override http request option.
4242
         * @throws {RequiredError}
4243
         */
4244
        userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4245
            // verify required parameter 'userId' is not null or undefined
4246
            assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
4247
            const localVarPath = `/user/{userId}/annotations`
4248
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4249
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4250
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4251
            let baseOptions;
4252
            if (configuration) {
4253
                baseOptions = configuration.baseOptions;
4254
            }
4255

    
4256
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4257
            const localVarHeaderParameter = {} as any;
4258
            const localVarQueryParameter = {} as any;
4259

    
4260

    
4261
    
4262
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4263
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4264
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4265

    
4266
            return {
4267
                url: toPathString(localVarUrlObj),
4268
                options: localVarRequestOptions,
4269
            };
4270
        },
4271
        /**
4272
         * 
4273
         * @param {string} userId 
4274
         * @param {*} [options] Override http request option.
4275
         * @throws {RequiredError}
4276
         */
4277
        userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4278
            // verify required parameter 'userId' is not null or undefined
4279
            assertParamExists('userUserIdDelete', 'userId', userId)
4280
            const localVarPath = `/user/{userId}`
4281
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4282
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4283
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4284
            let baseOptions;
4285
            if (configuration) {
4286
                baseOptions = configuration.baseOptions;
4287
            }
4288

    
4289
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4290
            const localVarHeaderParameter = {} as any;
4291
            const localVarQueryParameter = {} as any;
4292

    
4293

    
4294
    
4295
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4296
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4297
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4298

    
4299
            return {
4300
                url: toPathString(localVarUrlObj),
4301
                options: localVarRequestOptions,
4302
            };
4303
        },
4304
        /**
4305
         * 
4306
         * @param {string} userId 
4307
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4308
         * @param {*} [options] Override http request option.
4309
         * @throws {RequiredError}
4310
         */
4311
        userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4312
            // verify required parameter 'userId' is not null or undefined
4313
            assertParamExists('userUserIdPut', 'userId', userId)
4314
            const localVarPath = `/user/{userId}`
4315
                .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4316
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4317
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4318
            let baseOptions;
4319
            if (configuration) {
4320
                baseOptions = configuration.baseOptions;
4321
            }
4322

    
4323
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
4324
            const localVarHeaderParameter = {} as any;
4325
            const localVarQueryParameter = {} as any;
4326

    
4327

    
4328
    
4329
            localVarHeaderParameter['Content-Type'] = 'application/json';
4330

    
4331
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4332
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4333
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4334
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
4335

    
4336
            return {
4337
                url: toPathString(localVarUrlObj),
4338
                options: localVarRequestOptions,
4339
            };
4340
        },
4341
        /**
4342
         * 
4343
         * @param {*} [options] Override http request option.
4344
         * @throws {RequiredError}
4345
         */
4346
        usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4347
            const localVarPath = `/users`;
4348
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4349
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4350
            let baseOptions;
4351
            if (configuration) {
4352
                baseOptions = configuration.baseOptions;
4353
            }
4354

    
4355
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4356
            const localVarHeaderParameter = {} as any;
4357
            const localVarQueryParameter = {} as any;
4358

    
4359

    
4360
    
4361
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4362
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4363
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4364

    
4365
            return {
4366
                url: toPathString(localVarUrlObj),
4367
                options: localVarRequestOptions,
4368
            };
4369
        },
4370
        /**
4371
         * 
4372
         * @param {*} [options] Override http request option.
4373
         * @throws {RequiredError}
4374
         */
4375
        usersMeGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4376
            const localVarPath = `/users/me`;
4377
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4378
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4379
            let baseOptions;
4380
            if (configuration) {
4381
                baseOptions = configuration.baseOptions;
4382
            }
4383

    
4384
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4385
            const localVarHeaderParameter = {} as any;
4386
            const localVarQueryParameter = {} as any;
4387

    
4388

    
4389
    
4390
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4391
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4392
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4393

    
4394
            return {
4395
                url: toPathString(localVarUrlObj),
4396
                options: localVarRequestOptions,
4397
            };
4398
        },
4399
        /**
4400
         * 
4401
         * @param {CreateUserRequest} [createUserRequest] 
4402
         * @param {*} [options] Override http request option.
4403
         * @throws {RequiredError}
4404
         */
4405
        usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4406
            const localVarPath = `/users`;
4407
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
4408
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4409
            let baseOptions;
4410
            if (configuration) {
4411
                baseOptions = configuration.baseOptions;
4412
            }
4413

    
4414
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4415
            const localVarHeaderParameter = {} as any;
4416
            const localVarQueryParameter = {} as any;
4417

    
4418

    
4419
    
4420
            localVarHeaderParameter['Content-Type'] = 'application/json';
4421

    
4422
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4423
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4424
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4425
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
4426

    
4427
            return {
4428
                url: toPathString(localVarUrlObj),
4429
                options: localVarRequestOptions,
4430
            };
4431
        },
4432
    }
4433
};
4434

    
4435
/**
4436
 * UserApi - functional programming interface
4437
 * @export
4438
 */
4439
export const UserApiFp = function(configuration?: Configuration) {
4440
    const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
4441
    return {
4442
        /**
4443
         * 
4444
         * @param {*} [options] Override http request option.
4445
         * @throws {RequiredError}
4446
         */
4447
        async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
4448
            const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
4449
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4450
        },
4451
        /**
4452
         * 
4453
         * @param {string} userId 
4454
         * @param {*} [options] Override http request option.
4455
         * @throws {RequiredError}
4456
         */
4457
        async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
4458
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
4459
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4460
        },
4461
        /**
4462
         * 
4463
         * @param {string} userId 
4464
         * @param {*} [options] Override http request option.
4465
         * @throws {RequiredError}
4466
         */
4467
        async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4468
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
4469
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4470
        },
4471
        /**
4472
         * 
4473
         * @param {string} userId 
4474
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4475
         * @param {*} [options] Override http request option.
4476
         * @throws {RequiredError}
4477
         */
4478
        async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4479
            const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
4480
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4481
        },
4482
        /**
4483
         * 
4484
         * @param {*} [options] Override http request option.
4485
         * @throws {RequiredError}
4486
         */
4487
        async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
4488
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
4489
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4490
        },
4491
        /**
4492
         * 
4493
         * @param {*} [options] Override http request option.
4494
         * @throws {RequiredError}
4495
         */
4496
        async usersMeGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeResponse>> {
4497
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersMeGet(options);
4498
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4499
        },
4500
        /**
4501
         * 
4502
         * @param {CreateUserRequest} [createUserRequest] 
4503
         * @param {*} [options] Override http request option.
4504
         * @throws {RequiredError}
4505
         */
4506
        async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4507
            const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
4508
            return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4509
        },
4510
    }
4511
};
4512

    
4513
/**
4514
 * UserApi - factory interface
4515
 * @export
4516
 */
4517
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4518
    const localVarFp = UserApiFp(configuration)
4519
    return {
4520
        /**
4521
         * 
4522
         * @param {*} [options] Override http request option.
4523
         * @throws {RequiredError}
4524
         */
4525
        userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
4526
            return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
4527
        },
4528
        /**
4529
         * 
4530
         * @param {string} userId 
4531
         * @param {*} [options] Override http request option.
4532
         * @throws {RequiredError}
4533
         */
4534
        userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
4535
            return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
4536
        },
4537
        /**
4538
         * 
4539
         * @param {string} userId 
4540
         * @param {*} [options] Override http request option.
4541
         * @throws {RequiredError}
4542
         */
4543
        userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
4544
            return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
4545
        },
4546
        /**
4547
         * 
4548
         * @param {string} userId 
4549
         * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4550
         * @param {*} [options] Override http request option.
4551
         * @throws {RequiredError}
4552
         */
4553
        userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
4554
            return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
4555
        },
4556
        /**
4557
         * 
4558
         * @param {*} [options] Override http request option.
4559
         * @throws {RequiredError}
4560
         */
4561
        usersGet(options?: any): AxiosPromise<UserList> {
4562
            return localVarFp.usersGet(options).then((request) => request(axios, basePath));
4563
        },
4564
        /**
4565
         * 
4566
         * @param {*} [options] Override http request option.
4567
         * @throws {RequiredError}
4568
         */
4569
        usersMeGet(options?: any): AxiosPromise<UserMeResponse> {
4570
            return localVarFp.usersMeGet(options).then((request) => request(axios, basePath));
4571
        },
4572
        /**
4573
         * 
4574
         * @param {CreateUserRequest} [createUserRequest] 
4575
         * @param {*} [options] Override http request option.
4576
         * @throws {RequiredError}
4577
         */
4578
        usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
4579
            return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
4580
        },
4581
    };
4582
};
4583

    
4584
/**
4585
 * UserApi - object-oriented interface
4586
 * @export
4587
 * @class UserApi
4588
 * @extends {BaseAPI}
4589
 */
4590
export class UserApi extends BaseAPI {
4591
    /**
4592
     * 
4593
     * @param {*} [options] Override http request option.
4594
     * @throws {RequiredError}
4595
     * @memberof UserApi
4596
     */
4597
    public userAnnotationsGet(options?: AxiosRequestConfig) {
4598
        return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
4599
    }
4600

    
4601
    /**
4602
     * 
4603
     * @param {string} userId 
4604
     * @param {*} [options] Override http request option.
4605
     * @throws {RequiredError}
4606
     * @memberof UserApi
4607
     */
4608
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
4609
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
4610
    }
4611

    
4612
    /**
4613
     * 
4614
     * @param {string} userId 
4615
     * @param {*} [options] Override http request option.
4616
     * @throws {RequiredError}
4617
     * @memberof UserApi
4618
     */
4619
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
4620
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
4621
    }
4622

    
4623
    /**
4624
     * 
4625
     * @param {string} userId 
4626
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4627
     * @param {*} [options] Override http request option.
4628
     * @throws {RequiredError}
4629
     * @memberof UserApi
4630
     */
4631
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
4632
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
4633
    }
4634

    
4635
    /**
4636
     * 
4637
     * @param {*} [options] Override http request option.
4638
     * @throws {RequiredError}
4639
     * @memberof UserApi
4640
     */
4641
    public usersGet(options?: AxiosRequestConfig) {
4642
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
4643
    }
4644

    
4645
    /**
4646
     * 
4647
     * @param {*} [options] Override http request option.
4648
     * @throws {RequiredError}
4649
     * @memberof UserApi
4650
     */
4651
    public usersMeGet(options?: AxiosRequestConfig) {
4652
        return UserApiFp(this.configuration).usersMeGet(options).then((request) => request(this.axios, this.basePath));
4653
    }
4654

    
4655
    /**
4656
     * 
4657
     * @param {CreateUserRequest} [createUserRequest] 
4658
     * @param {*} [options] Override http request option.
4659
     * @throws {RequiredError}
4660
     * @memberof UserApi
4661
     */
4662
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
4663
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
4664
    }
4665
}
4666

    
4667

    
(4-4/9)