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
 * 
856
 * @export
857
 * @enum {string}
858
 */
859

    
860
export const EAddDocumentFormat = {
861
    Zip: 'ZIP',
862
    Textfile: 'TEXTFILE'
863
} as const;
864

    
865
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
866

    
867

    
868
/**
869
 * 
870
 * @export
871
 * @enum {string}
872
 */
873

    
874
export const EDocumentType = {
875
    Html: 'HTML',
876
    Text: 'TEXT'
877
} as const;
878

    
879
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
880

    
881

    
882
/**
883
 * 
884
 * @export
885
 * @enum {string}
886
 */
887

    
888
export const EModified = {
889
    Added: 'ADDED',
890
    Removed: 'REMOVED',
891
    None: 'NONE'
892
} as const;
893

    
894
export type EModified = typeof EModified[keyof typeof EModified];
895

    
896

    
897
/**
898
 * 
899
 * @export
900
 * @enum {string}
901
 */
902

    
903
export const ERole = {
904
    Annotator: 'ANNOTATOR',
905
    Administrator: 'ADMINISTRATOR'
906
} as const;
907

    
908
export type ERole = typeof ERole[keyof typeof ERole];
909

    
910

    
911
/**
912
 * 
913
 * @export
914
 * @enum {string}
915
 */
916

    
917
export const EState = {
918
    Done: 'DONE',
919
    InProgress: 'IN_PROGRESS',
920
    New: 'NEW'
921
} as const;
922

    
923
export type EState = typeof EState[keyof typeof EState];
924

    
925

    
926
/**
927
 * 
928
 * @export
929
 * @enum {string}
930
 */
931

    
932
export const ETagSentiment = {
933
    Neutral: 'NEUTRAL',
934
    Positive: 'POSITIVE',
935
    Negative: 'NEGATIVE'
936
} as const;
937

    
938
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment];
939

    
940

    
941
/**
942
 * 
943
 * @export
944
 * @enum {string}
945
 */
946

    
947
export const ETagType = {
948
    Tag: 'TAG',
949
    Subtag: 'SUBTAG'
950
} as const;
951

    
952
export type ETagType = typeof ETagType[keyof typeof ETagType];
953

    
954

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

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

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

    
1936
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1937
            const localVarHeaderParameter = {} as any;
1938
            const localVarQueryParameter = {} as any;
1939

    
1940
            if (isFinal !== undefined) {
1941
                localVarQueryParameter['isFinal'] = isFinal;
1942
            }
1943

    
1944

    
1945
    
1946
            localVarHeaderParameter['Content-Type'] = 'application/json';
1947

    
1948
            setSearchParams(localVarUrlObj, localVarQueryParameter);
1949
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1950
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1951
            localVarRequestOptions.data = serializeDataIfNeeded(markAnnotationDoneRequest, localVarRequestOptions, configuration)
1952

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

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

    
1981
            if (isFinal !== undefined) {
1982
                localVarQueryParameter['isFinal'] = isFinal;
1983
            }
1984

    
1985

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

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

    
2020
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2021
            const localVarHeaderParameter = {} as any;
2022
            const localVarQueryParameter = {} as any;
2023

    
2024
            if (isFinal !== undefined) {
2025
                localVarQueryParameter['isFinal'] = isFinal;
2026
            }
2027

    
2028

    
2029
    
2030
            localVarHeaderParameter['Content-Type'] = 'application/json';
2031

    
2032
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2033
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2034
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2035
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
2036

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

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

    
2066
            if (isFinal !== undefined) {
2067
                localVarQueryParameter['isFinal'] = isFinal;
2068
            }
2069

    
2070

    
2071
    
2072
            localVarHeaderParameter['Content-Type'] = 'application/json';
2073

    
2074
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2075
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2076
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2077
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
2078

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

    
2107
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2108
            const localVarHeaderParameter = {} as any;
2109
            const localVarQueryParameter = {} as any;
2110

    
2111
            if (isFinal !== undefined) {
2112
                localVarQueryParameter['isFinal'] = isFinal;
2113
            }
2114

    
2115

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

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

    
2149
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2150
            const localVarHeaderParameter = {} as any;
2151
            const localVarQueryParameter = {} as any;
2152

    
2153

    
2154
    
2155
            localVarHeaderParameter['Content-Type'] = 'application/json';
2156

    
2157
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2158
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2159
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2160
            localVarRequestOptions.data = serializeDataIfNeeded(setInstanceIsFinalRequest, localVarRequestOptions, configuration)
2161

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

    
2187
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2188
            const localVarHeaderParameter = {} as any;
2189
            const localVarQueryParameter = {} as any;
2190

    
2191
            if (isFinal !== undefined) {
2192
                localVarQueryParameter['isFinal'] = isFinal;
2193
            }
2194

    
2195

    
2196
    
2197
            localVarHeaderParameter['Content-Type'] = 'application/json';
2198

    
2199
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2200
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2201
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2202
            localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
2203

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

    
2233
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2234
            const localVarHeaderParameter = {} as any;
2235
            const localVarQueryParameter = {} as any;
2236

    
2237
            if (isFinal !== undefined) {
2238
                localVarQueryParameter['isFinal'] = isFinal;
2239
            }
2240

    
2241

    
2242
    
2243
            localVarHeaderParameter['Content-Type'] = 'application/json';
2244

    
2245
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2246
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2247
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2248
            localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
2249

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

    
2270
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2271
            const localVarHeaderParameter = {} as any;
2272
            const localVarQueryParameter = {} as any;
2273

    
2274

    
2275
    
2276
            localVarHeaderParameter['Content-Type'] = 'application/json';
2277

    
2278
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2279
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2280
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2281
            localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
2282

    
2283
            return {
2284
                url: toPathString(localVarUrlObj),
2285
                options: localVarRequestOptions,
2286
            };
2287
        },
2288
    }
2289
};
2290

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

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

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

    
2536
    /**
2537
     * 
2538
     * @param {string} annotationId 
2539
     * @param {boolean} [isFinal] 
2540
     * @param {*} [options] Override http request option.
2541
     * @throws {RequiredError}
2542
     * @memberof AnnotationApi
2543
     */
2544
    public annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
2545
        return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(this.axios, this.basePath));
2546
    }
2547

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

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

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

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

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

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

    
2628
    /**
2629
     * 
2630
     * @param {AnnotationsAddRequest} [annotationsAddRequest] 
2631
     * @param {*} [options] Override http request option.
2632
     * @throws {RequiredError}
2633
     * @memberof AnnotationApi
2634
     */
2635
    public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
2636
        return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
2637
    }
2638
}
2639

    
2640

    
2641
/**
2642
 * AuthApi - axios parameter creator
2643
 * @export
2644
 */
2645
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
2646
    return {
2647
        /**
2648
         * 
2649
         * @param {LoginRequest} [loginRequest] 
2650
         * @param {*} [options] Override http request option.
2651
         * @throws {RequiredError}
2652
         */
2653
        authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2654
            const localVarPath = `/auth/login`;
2655
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
2656
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2657
            let baseOptions;
2658
            if (configuration) {
2659
                baseOptions = configuration.baseOptions;
2660
            }
2661

    
2662
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2663
            const localVarHeaderParameter = {} as any;
2664
            const localVarQueryParameter = {} as any;
2665

    
2666

    
2667
    
2668
            localVarHeaderParameter['Content-Type'] = 'application/json';
2669

    
2670
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2671
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2672
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2673
            localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
2674

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

    
2694
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2695
            const localVarHeaderParameter = {} as any;
2696
            const localVarQueryParameter = {} as any;
2697

    
2698

    
2699
    
2700
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2701
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2702
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2703

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

    
2723
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2724
            const localVarHeaderParameter = {} as any;
2725
            const localVarQueryParameter = {} as any;
2726

    
2727

    
2728
    
2729
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2730
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2731
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2732

    
2733
            return {
2734
                url: toPathString(localVarUrlObj),
2735
                options: localVarRequestOptions,
2736
            };
2737
        },
2738
    }
2739
};
2740

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

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

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

    
2832
    /**
2833
     * 
2834
     * @param {*} [options] Override http request option.
2835
     * @throws {RequiredError}
2836
     * @memberof AuthApi
2837
     */
2838
    public authTestAaGet(options?: AxiosRequestConfig) {
2839
        return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
2840
    }
2841

    
2842
    /**
2843
     * 
2844
     * @param {*} [options] Override http request option.
2845
     * @throws {RequiredError}
2846
     * @memberof AuthApi
2847
     */
2848
    public authTestGet(options?: AxiosRequestConfig) {
2849
        return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
2850
    }
2851
}
2852

    
2853

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

    
2878
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2879
            const localVarHeaderParameter = {} as any;
2880
            const localVarQueryParameter = {} as any;
2881

    
2882

    
2883
    
2884
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2885
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2886
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2887

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

    
2911
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2912
            const localVarHeaderParameter = {} as any;
2913
            const localVarQueryParameter = {} as any;
2914

    
2915

    
2916
    
2917
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2918
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2919
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2920

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

    
2941
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2942
            const localVarHeaderParameter = {} as any;
2943
            const localVarQueryParameter = {} as any;
2944

    
2945

    
2946
    
2947
            localVarHeaderParameter['Content-Type'] = 'application/json';
2948

    
2949
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2950
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2951
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2952
            localVarRequestOptions.data = serializeDataIfNeeded(deleteDocumentsRequest, localVarRequestOptions, configuration)
2953

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

    
2981
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2982
            const localVarHeaderParameter = {} as any;
2983
            const localVarQueryParameter = {} as any;
2984

    
2985

    
2986
    
2987
            setSearchParams(localVarUrlObj, localVarQueryParameter);
2988
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2989
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2990

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

    
3011
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3012
            const localVarHeaderParameter = {} as any;
3013
            const localVarQueryParameter = {} as any;
3014

    
3015

    
3016
    
3017
            localVarHeaderParameter['Content-Type'] = 'application/json';
3018

    
3019
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3020
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3021
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3022
            localVarRequestOptions.data = serializeDataIfNeeded(exportRequest, localVarRequestOptions, configuration)
3023

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

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

    
3047

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

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

    
3073
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3074
            const localVarHeaderParameter = {} as any;
3075
            const localVarQueryParameter = {} as any;
3076

    
3077

    
3078
    
3079
            localVarHeaderParameter['Content-Type'] = 'application/json';
3080

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

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

    
3105
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3106
            const localVarHeaderParameter = {} as any;
3107
            const localVarQueryParameter = {} as any;
3108

    
3109

    
3110
    
3111
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3112
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3113
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3114

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

    
3135
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3136
            const localVarHeaderParameter = {} as any;
3137
            const localVarQueryParameter = {} as any;
3138

    
3139

    
3140
    
3141
            localVarHeaderParameter['Content-Type'] = 'application/json';
3142

    
3143
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3144
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3145
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3146
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
3147

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

    
3168
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3169
            const localVarHeaderParameter = {} as any;
3170
            const localVarQueryParameter = {} as any;
3171

    
3172

    
3173
    
3174
            localVarHeaderParameter['Content-Type'] = 'application/json';
3175

    
3176
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3177
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3178
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3179
            localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
3180

    
3181
            return {
3182
                url: toPathString(localVarUrlObj),
3183
                options: localVarRequestOptions,
3184
            };
3185
        },
3186
    }
3187
};
3188

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

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

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

    
3415
    /**
3416
     * 
3417
     * @param {string} documentId 
3418
     * @param {*} [options] Override http request option.
3419
     * @throws {RequiredError}
3420
     * @memberof DocumentApi
3421
     */
3422
    public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
3423
        return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
3424
    }
3425

    
3426
    /**
3427
     * 
3428
     * @param {DeleteDocumentsRequest} [deleteDocumentsRequest] 
3429
     * @param {*} [options] Override http request option.
3430
     * @throws {RequiredError}
3431
     * @memberof DocumentApi
3432
     */
3433
    public documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig) {
3434
        return DocumentApiFp(this.configuration).documentsDelete(deleteDocumentsRequest, options).then((request) => request(this.axios, this.basePath));
3435
    }
3436

    
3437
    /**
3438
     * 
3439
     * @param {string} documentId 
3440
     * @param {string} annotatorId 
3441
     * @param {*} [options] Override http request option.
3442
     * @throws {RequiredError}
3443
     * @memberof DocumentApi
3444
     */
3445
    public documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig) {
3446
        return DocumentApiFp(this.configuration).documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(this.axios, this.basePath));
3447
    }
3448

    
3449
    /**
3450
     * 
3451
     * @param {ExportRequest} [exportRequest] 
3452
     * @param {*} [options] Override http request option.
3453
     * @throws {RequiredError}
3454
     * @memberof DocumentApi
3455
     */
3456
    public documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig) {
3457
        return DocumentApiFp(this.configuration).documentsExportPost(exportRequest, options).then((request) => request(this.axios, this.basePath));
3458
    }
3459

    
3460
    /**
3461
     * 
3462
     * @param {*} [options] Override http request option.
3463
     * @throws {RequiredError}
3464
     * @memberof DocumentApi
3465
     */
3466
    public documentsGet(options?: AxiosRequestConfig) {
3467
        return DocumentApiFp(this.configuration).documentsGet(options).then((request) => request(this.axios, this.basePath));
3468
    }
3469

    
3470
    /**
3471
     * 
3472
     * @param {DocumentAddRequest} [documentAddRequest] 
3473
     * @param {*} [options] Override http request option.
3474
     * @throws {RequiredError}
3475
     * @memberof DocumentApi
3476
     */
3477
    public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
3478
        return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
3479
    }
3480

    
3481
    /**
3482
     * 
3483
     * @param {*} [options] Override http request option.
3484
     * @throws {RequiredError}
3485
     * @memberof DocumentApi
3486
     */
3487
    public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
3488
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
3489
    }
3490

    
3491
    /**
3492
     * 
3493
     * @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest] 
3494
     * @param {*} [options] Override http request option.
3495
     * @throws {RequiredError}
3496
     * @memberof DocumentApi
3497
     */
3498
    public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
3499
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
3500
    }
3501

    
3502
    /**
3503
     * 
3504
     * @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest] 
3505
     * @param {*} [options] Override http request option.
3506
     * @throws {RequiredError}
3507
     * @memberof DocumentApi
3508
     */
3509
    public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
3510
        return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
3511
    }
3512
}
3513

    
3514

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

    
3536
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3537
            const localVarHeaderParameter = {} as any;
3538
            const localVarQueryParameter = {} as any;
3539

    
3540

    
3541
    
3542
            localVarHeaderParameter['Content-Type'] = 'application/json';
3543

    
3544
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3545
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3546
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3547
            localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
3548

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

    
3572
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3573
            const localVarHeaderParameter = {} as any;
3574
            const localVarQueryParameter = {} as any;
3575

    
3576

    
3577
    
3578
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3579
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3580
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3581

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

    
3606
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3607
            const localVarHeaderParameter = {} as any;
3608
            const localVarQueryParameter = {} as any;
3609

    
3610

    
3611
    
3612
            localVarHeaderParameter['Content-Type'] = 'application/json';
3613

    
3614
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3615
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3616
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3617
            localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
3618

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

    
3642
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3643
            const localVarHeaderParameter = {} as any;
3644
            const localVarQueryParameter = {} as any;
3645

    
3646

    
3647
    
3648
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3649
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3650
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3651

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

    
3676
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3677
            const localVarHeaderParameter = {} as any;
3678
            const localVarQueryParameter = {} as any;
3679

    
3680

    
3681
    
3682
            localVarHeaderParameter['Content-Type'] = 'application/json';
3683

    
3684
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3685
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3686
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3687
            localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
3688

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

    
3709
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3710
            const localVarHeaderParameter = {} as any;
3711
            const localVarQueryParameter = {} as any;
3712

    
3713

    
3714
    
3715
            localVarHeaderParameter['Content-Type'] = 'application/json';
3716

    
3717
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3718
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3719
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3720
            localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
3721

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

    
3745
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3746
            const localVarHeaderParameter = {} as any;
3747
            const localVarQueryParameter = {} as any;
3748

    
3749

    
3750
    
3751
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3752
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3753
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3754

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

    
3779
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3780
            const localVarHeaderParameter = {} as any;
3781
            const localVarQueryParameter = {} as any;
3782

    
3783

    
3784
    
3785
            localVarHeaderParameter['Content-Type'] = 'application/json';
3786

    
3787
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3788
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3789
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3790
            localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
3791

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

    
3811
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3812
            const localVarHeaderParameter = {} as any;
3813
            const localVarQueryParameter = {} as any;
3814

    
3815

    
3816
    
3817
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3818
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3819
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3820

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

    
3841
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3842
            const localVarHeaderParameter = {} as any;
3843
            const localVarQueryParameter = {} as any;
3844

    
3845

    
3846
    
3847
            localVarHeaderParameter['Content-Type'] = 'application/json';
3848

    
3849
            setSearchParams(localVarUrlObj, localVarQueryParameter);
3850
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3851
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3852
            localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
3853

    
3854
            return {
3855
                url: toPathString(localVarUrlObj),
3856
                options: localVarRequestOptions,
3857
            };
3858
        },
3859
    }
3860
};
3861

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

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

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

    
4094
    /**
4095
     * 
4096
     * @param {string} categoryId 
4097
     * @param {*} [options] Override http request option.
4098
     * @throws {RequiredError}
4099
     * @memberof TagApi
4100
     */
4101
    public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
4102
        return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
4103
    }
4104

    
4105
    /**
4106
     * 
4107
     * @param {string} categoryId 
4108
     * @param {ModifyCategoryRequest} [modifyCategoryRequest] 
4109
     * @param {*} [options] Override http request option.
4110
     * @throws {RequiredError}
4111
     * @memberof TagApi
4112
     */
4113
    public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
4114
        return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
4115
    }
4116

    
4117
    /**
4118
     * 
4119
     * @param {string} subtagId 
4120
     * @param {*} [options] Override http request option.
4121
     * @throws {RequiredError}
4122
     * @memberof TagApi
4123
     */
4124
    public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
4125
        return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
4126
    }
4127

    
4128
    /**
4129
     * 
4130
     * @param {string} subtagId 
4131
     * @param {ModifySubTagRequest} [modifySubTagRequest] 
4132
     * @param {*} [options] Override http request option.
4133
     * @throws {RequiredError}
4134
     * @memberof TagApi
4135
     */
4136
    public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
4137
        return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
4138
    }
4139

    
4140
    /**
4141
     * 
4142
     * @param {CreateSubTagRequest} [createSubTagRequest] 
4143
     * @param {*} [options] Override http request option.
4144
     * @throws {RequiredError}
4145
     * @memberof TagApi
4146
     */
4147
    public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
4148
        return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
4149
    }
4150

    
4151
    /**
4152
     * 
4153
     * @param {string} tagId 
4154
     * @param {*} [options] Override http request option.
4155
     * @throws {RequiredError}
4156
     * @memberof TagApi
4157
     */
4158
    public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
4159
        return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
4160
    }
4161

    
4162
    /**
4163
     * 
4164
     * @param {string} tagId 
4165
     * @param {ModifyTagRequest} [modifyTagRequest] 
4166
     * @param {*} [options] Override http request option.
4167
     * @throws {RequiredError}
4168
     * @memberof TagApi
4169
     */
4170
    public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
4171
        return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
4172
    }
4173

    
4174
    /**
4175
     * 
4176
     * @param {*} [options] Override http request option.
4177
     * @throws {RequiredError}
4178
     * @memberof TagApi
4179
     */
4180
    public tagsGet(options?: AxiosRequestConfig) {
4181
        return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
4182
    }
4183

    
4184
    /**
4185
     * 
4186
     * @param {CreateTagRequest} [createTagRequest] 
4187
     * @param {*} [options] Override http request option.
4188
     * @throws {RequiredError}
4189
     * @memberof TagApi
4190
     */
4191
    public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
4192
        return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
4193
    }
4194
}
4195

    
4196

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

    
4217
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4218
            const localVarHeaderParameter = {} as any;
4219
            const localVarQueryParameter = {} as any;
4220

    
4221

    
4222
    
4223
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4224
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4225
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4226

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

    
4250
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4251
            const localVarHeaderParameter = {} as any;
4252
            const localVarQueryParameter = {} as any;
4253

    
4254

    
4255
    
4256
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4257
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4258
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4259

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

    
4283
            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4284
            const localVarHeaderParameter = {} as any;
4285
            const localVarQueryParameter = {} as any;
4286

    
4287

    
4288
    
4289
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4290
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4291
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4292

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

    
4317
            const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
4318
            const localVarHeaderParameter = {} as any;
4319
            const localVarQueryParameter = {} as any;
4320

    
4321

    
4322
    
4323
            localVarHeaderParameter['Content-Type'] = 'application/json';
4324

    
4325
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4326
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4327
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4328
            localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
4329

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

    
4349
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4350
            const localVarHeaderParameter = {} as any;
4351
            const localVarQueryParameter = {} as any;
4352

    
4353

    
4354
    
4355
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4356
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4357
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4358

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

    
4378
            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4379
            const localVarHeaderParameter = {} as any;
4380
            const localVarQueryParameter = {} as any;
4381

    
4382

    
4383
    
4384
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4385
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4386
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4387

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

    
4408
            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4409
            const localVarHeaderParameter = {} as any;
4410
            const localVarQueryParameter = {} as any;
4411

    
4412

    
4413
    
4414
            localVarHeaderParameter['Content-Type'] = 'application/json';
4415

    
4416
            setSearchParams(localVarUrlObj, localVarQueryParameter);
4417
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4418
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4419
            localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
4420

    
4421
            return {
4422
                url: toPathString(localVarUrlObj),
4423
                options: localVarRequestOptions,
4424
            };
4425
        },
4426
    }
4427
};
4428

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

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

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

    
4595
    /**
4596
     * 
4597
     * @param {string} userId 
4598
     * @param {*} [options] Override http request option.
4599
     * @throws {RequiredError}
4600
     * @memberof UserApi
4601
     */
4602
    public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
4603
        return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
4604
    }
4605

    
4606
    /**
4607
     * 
4608
     * @param {string} userId 
4609
     * @param {*} [options] Override http request option.
4610
     * @throws {RequiredError}
4611
     * @memberof UserApi
4612
     */
4613
    public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
4614
        return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
4615
    }
4616

    
4617
    /**
4618
     * 
4619
     * @param {string} userId 
4620
     * @param {ChangeUserInfoRequest} [changeUserInfoRequest] 
4621
     * @param {*} [options] Override http request option.
4622
     * @throws {RequiredError}
4623
     * @memberof UserApi
4624
     */
4625
    public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
4626
        return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
4627
    }
4628

    
4629
    /**
4630
     * 
4631
     * @param {*} [options] Override http request option.
4632
     * @throws {RequiredError}
4633
     * @memberof UserApi
4634
     */
4635
    public usersGet(options?: AxiosRequestConfig) {
4636
        return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
4637
    }
4638

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

    
4649
    /**
4650
     * 
4651
     * @param {CreateUserRequest} [createUserRequest] 
4652
     * @param {*} [options] Override http request option.
4653
     * @throws {RequiredError}
4654
     * @memberof UserApi
4655
     */
4656
    public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
4657
        return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
4658
    }
4659
}
4660

    
4661

    
(4-4/9)