1
|
/* tslint:disable */
|
2
|
/* eslint-disable */
|
3
|
/**
|
4
|
* AnnotationTool
|
5
|
* KIV/ASWI ZČU Plzeň, 2022
|
6
|
*
|
7
|
* The version of the OpenAPI document: 0.1.1
|
8
|
*
|
9
|
*
|
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
* https://openapi-generator.tech
|
12
|
* Do not edit the class manually.
|
13
|
*/
|
14
|
|
15
|
|
16
|
import { Configuration } from './configuration';
|
17
|
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18
|
// Some imports not used depending on template conditions
|
19
|
// @ts-ignore
|
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
21
|
// @ts-ignore
|
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
23
|
|
24
|
/**
|
25
|
*
|
26
|
* @export
|
27
|
* @interface AddNoteToAnnotationRequest
|
28
|
*/
|
29
|
export interface AddNoteToAnnotationRequest {
|
30
|
/**
|
31
|
*
|
32
|
* @type {string}
|
33
|
* @memberof AddNoteToAnnotationRequest
|
34
|
*/
|
35
|
'note'?: string | null;
|
36
|
}
|
37
|
/**
|
38
|
*
|
39
|
* @export
|
40
|
* @interface AddNoteToTagOccurenceRequest
|
41
|
*/
|
42
|
export interface AddNoteToTagOccurenceRequest {
|
43
|
/**
|
44
|
*
|
45
|
* @type {string}
|
46
|
* @memberof AddNoteToTagOccurenceRequest
|
47
|
*/
|
48
|
'note'?: string | null;
|
49
|
}
|
50
|
/**
|
51
|
*
|
52
|
* @export
|
53
|
* @interface Annotation
|
54
|
*/
|
55
|
export interface Annotation {
|
56
|
/**
|
57
|
*
|
58
|
* @type {string}
|
59
|
* @memberof Annotation
|
60
|
*/
|
61
|
'id'?: string;
|
62
|
/**
|
63
|
*
|
64
|
* @type {Document}
|
65
|
* @memberof Annotation
|
66
|
*/
|
67
|
'document'?: Document;
|
68
|
/**
|
69
|
*
|
70
|
* @type {User}
|
71
|
* @memberof Annotation
|
72
|
*/
|
73
|
'user'?: User;
|
74
|
/**
|
75
|
*
|
76
|
* @type {User}
|
77
|
* @memberof Annotation
|
78
|
*/
|
79
|
'userAssigned'?: User;
|
80
|
/**
|
81
|
*
|
82
|
* @type {string}
|
83
|
* @memberof Annotation
|
84
|
*/
|
85
|
'dateAssigned'?: string;
|
86
|
/**
|
87
|
*
|
88
|
* @type {EState}
|
89
|
* @memberof Annotation
|
90
|
*/
|
91
|
'state'?: EState;
|
92
|
/**
|
93
|
*
|
94
|
* @type {string}
|
95
|
* @memberof Annotation
|
96
|
*/
|
97
|
'dateLastChanged'?: string;
|
98
|
/**
|
99
|
*
|
100
|
* @type {string}
|
101
|
* @memberof Annotation
|
102
|
*/
|
103
|
'note'?: string | null;
|
104
|
/**
|
105
|
*
|
106
|
* @type {string}
|
107
|
* @memberof Annotation
|
108
|
*/
|
109
|
'cachedDocumentHTML'?: string | null;
|
110
|
/**
|
111
|
*
|
112
|
* @type {string}
|
113
|
* @memberof Annotation
|
114
|
*/
|
115
|
'cachedStartPositions'?: string | null;
|
116
|
/**
|
117
|
*
|
118
|
* @type {string}
|
119
|
* @memberof Annotation
|
120
|
*/
|
121
|
'cachedLengths'?: string | null;
|
122
|
/**
|
123
|
*
|
124
|
* @type {string}
|
125
|
* @memberof Annotation
|
126
|
*/
|
127
|
'cachedClosingPositions'?: string | null;
|
128
|
/**
|
129
|
*
|
130
|
* @type {string}
|
131
|
* @memberof Annotation
|
132
|
*/
|
133
|
'cachedClosingLengths'?: string | null;
|
134
|
/**
|
135
|
*
|
136
|
* @type {string}
|
137
|
* @memberof Annotation
|
138
|
*/
|
139
|
'cachedCSS'?: string | null;
|
140
|
/**
|
141
|
*
|
142
|
* @type {string}
|
143
|
* @memberof Annotation
|
144
|
*/
|
145
|
'lastModifiedTagId'?: string | null;
|
146
|
/**
|
147
|
*
|
148
|
* @type {EModified}
|
149
|
* @memberof Annotation
|
150
|
*/
|
151
|
'modifiedType'?: EModified;
|
152
|
/**
|
153
|
*
|
154
|
* @type {Array<Class>}
|
155
|
* @memberof Annotation
|
156
|
*/
|
157
|
'classes'?: Array<Class> | null;
|
158
|
/**
|
159
|
*
|
160
|
* @type {Array<FinalAnnotation>}
|
161
|
* @memberof Annotation
|
162
|
*/
|
163
|
'finalAnnotations'?: Array<FinalAnnotation> | null;
|
164
|
}
|
165
|
/**
|
166
|
*
|
167
|
* @export
|
168
|
* @interface AnnotationInfo
|
169
|
*/
|
170
|
export interface AnnotationInfo {
|
171
|
/**
|
172
|
*
|
173
|
* @type {string}
|
174
|
* @memberof AnnotationInfo
|
175
|
*/
|
176
|
'sourceDocumentContent'?: string | null;
|
177
|
/**
|
178
|
*
|
179
|
* @type {string}
|
180
|
* @memberof AnnotationInfo
|
181
|
*/
|
182
|
'documentToRender'?: string | null;
|
183
|
/**
|
184
|
*
|
185
|
* @type {Array<number>}
|
186
|
* @memberof AnnotationInfo
|
187
|
*/
|
188
|
'tagStartPositions'?: Array<number> | null;
|
189
|
/**
|
190
|
*
|
191
|
* @type {Array<number>}
|
192
|
* @memberof AnnotationInfo
|
193
|
*/
|
194
|
'tagLengths'?: Array<number> | null;
|
195
|
/**
|
196
|
*
|
197
|
* @type {EState}
|
198
|
* @memberof AnnotationInfo
|
199
|
*/
|
200
|
'state'?: EState;
|
201
|
/**
|
202
|
*
|
203
|
* @type {EDocumentType}
|
204
|
* @memberof AnnotationInfo
|
205
|
*/
|
206
|
'type'?: EDocumentType;
|
207
|
/**
|
208
|
*
|
209
|
* @type {string}
|
210
|
* @memberof AnnotationInfo
|
211
|
*/
|
212
|
'note'?: string | null;
|
213
|
/**
|
214
|
*
|
215
|
* @type {Array<TagInstanceInfo>}
|
216
|
* @memberof AnnotationInfo
|
217
|
*/
|
218
|
'tagInstances'?: Array<TagInstanceInfo> | null;
|
219
|
/**
|
220
|
*
|
221
|
* @type {Array<TagInstanceCSSInfo>}
|
222
|
* @memberof AnnotationInfo
|
223
|
*/
|
224
|
'cssInfo'?: Array<TagInstanceCSSInfo> | null;
|
225
|
}
|
226
|
/**
|
227
|
*
|
228
|
* @export
|
229
|
* @interface AnnotationInstanceAddRequest
|
230
|
*/
|
231
|
export interface AnnotationInstanceAddRequest {
|
232
|
/**
|
233
|
*
|
234
|
* @type {number}
|
235
|
* @memberof AnnotationInstanceAddRequest
|
236
|
*/
|
237
|
'position'?: number;
|
238
|
/**
|
239
|
*
|
240
|
* @type {number}
|
241
|
* @memberof AnnotationInstanceAddRequest
|
242
|
*/
|
243
|
'length'?: number;
|
244
|
/**
|
245
|
*
|
246
|
* @type {ETagType}
|
247
|
* @memberof AnnotationInstanceAddRequest
|
248
|
*/
|
249
|
'type'?: ETagType;
|
250
|
/**
|
251
|
*
|
252
|
* @type {string}
|
253
|
* @memberof AnnotationInstanceAddRequest
|
254
|
*/
|
255
|
'id'?: string;
|
256
|
/**
|
257
|
*
|
258
|
* @type {string}
|
259
|
* @memberof AnnotationInstanceAddRequest
|
260
|
*/
|
261
|
'instanceId'?: string | null;
|
262
|
/**
|
263
|
*
|
264
|
* @type {string}
|
265
|
* @memberof AnnotationInstanceAddRequest
|
266
|
*/
|
267
|
'selectedText'?: string | null;
|
268
|
}
|
269
|
/**
|
270
|
*
|
271
|
* @export
|
272
|
* @interface AnnotationListInfo
|
273
|
*/
|
274
|
export interface AnnotationListInfo {
|
275
|
/**
|
276
|
*
|
277
|
* @type {string}
|
278
|
* @memberof AnnotationListInfo
|
279
|
*/
|
280
|
'documentName'?: string | null;
|
281
|
/**
|
282
|
*
|
283
|
* @type {EState}
|
284
|
* @memberof AnnotationListInfo
|
285
|
*/
|
286
|
'state'?: EState;
|
287
|
/**
|
288
|
*
|
289
|
* @type {string}
|
290
|
* @memberof AnnotationListInfo
|
291
|
*/
|
292
|
'annotationId'?: string;
|
293
|
}
|
294
|
/**
|
295
|
*
|
296
|
* @export
|
297
|
* @interface AnnotationListResponse
|
298
|
*/
|
299
|
export interface AnnotationListResponse {
|
300
|
/**
|
301
|
*
|
302
|
* @type {Array<AnnotationListInfo>}
|
303
|
* @memberof AnnotationListResponse
|
304
|
*/
|
305
|
'annotations'?: Array<AnnotationListInfo> | null;
|
306
|
}
|
307
|
/**
|
308
|
*
|
309
|
* @export
|
310
|
* @interface AnnotationsAddRequest
|
311
|
*/
|
312
|
export interface AnnotationsAddRequest {
|
313
|
/**
|
314
|
*
|
315
|
* @type {Array<string>}
|
316
|
* @memberof AnnotationsAddRequest
|
317
|
*/
|
318
|
'userIdList'?: Array<string> | null;
|
319
|
/**
|
320
|
*
|
321
|
* @type {Array<string>}
|
322
|
* @memberof AnnotationsAddRequest
|
323
|
*/
|
324
|
'documentIdList'?: Array<string> | null;
|
325
|
}
|
326
|
/**
|
327
|
*
|
328
|
* @export
|
329
|
* @interface ChangeUserInfoRequest
|
330
|
*/
|
331
|
export interface ChangeUserInfoRequest {
|
332
|
/**
|
333
|
*
|
334
|
* @type {string}
|
335
|
* @memberof ChangeUserInfoRequest
|
336
|
*/
|
337
|
'password'?: string | null;
|
338
|
/**
|
339
|
*
|
340
|
* @type {string}
|
341
|
* @memberof ChangeUserInfoRequest
|
342
|
*/
|
343
|
'username'?: string | null;
|
344
|
/**
|
345
|
*
|
346
|
* @type {string}
|
347
|
* @memberof ChangeUserInfoRequest
|
348
|
*/
|
349
|
'name'?: string | null;
|
350
|
/**
|
351
|
*
|
352
|
* @type {string}
|
353
|
* @memberof ChangeUserInfoRequest
|
354
|
*/
|
355
|
'surname'?: string | null;
|
356
|
/**
|
357
|
*
|
358
|
* @type {ERole}
|
359
|
* @memberof ChangeUserInfoRequest
|
360
|
*/
|
361
|
'role'?: ERole;
|
362
|
}
|
363
|
/**
|
364
|
*
|
365
|
* @export
|
366
|
* @interface Class
|
367
|
*/
|
368
|
export interface Class {
|
369
|
/**
|
370
|
*
|
371
|
* @type {string}
|
372
|
* @memberof Class
|
373
|
*/
|
374
|
'id'?: string;
|
375
|
/**
|
376
|
*
|
377
|
* @type {string}
|
378
|
* @memberof Class
|
379
|
*/
|
380
|
'name'?: string | null;
|
381
|
/**
|
382
|
*
|
383
|
* @type {string}
|
384
|
* @memberof Class
|
385
|
*/
|
386
|
'description'?: string | null;
|
387
|
/**
|
388
|
*
|
389
|
* @type {string}
|
390
|
* @memberof Class
|
391
|
*/
|
392
|
'color'?: string | null;
|
393
|
/**
|
394
|
*
|
395
|
* @type {Array<Annotation>}
|
396
|
* @memberof Class
|
397
|
*/
|
398
|
'annotations'?: Array<Annotation> | null;
|
399
|
}
|
400
|
/**
|
401
|
*
|
402
|
* @export
|
403
|
* @interface ClientInfo
|
404
|
*/
|
405
|
export interface ClientInfo {
|
406
|
/**
|
407
|
*
|
408
|
* @type {boolean}
|
409
|
* @memberof ClientInfo
|
410
|
*/
|
411
|
'isLogged'?: boolean;
|
412
|
/**
|
413
|
*
|
414
|
* @type {User}
|
415
|
* @memberof ClientInfo
|
416
|
*/
|
417
|
'loggedUser'?: User;
|
418
|
/**
|
419
|
*
|
420
|
* @type {string}
|
421
|
* @memberof ClientInfo
|
422
|
*/
|
423
|
'ip'?: string | null;
|
424
|
}
|
425
|
/**
|
426
|
*
|
427
|
* @export
|
428
|
* @interface CreateCategoryRequest
|
429
|
*/
|
430
|
export interface CreateCategoryRequest {
|
431
|
/**
|
432
|
*
|
433
|
* @type {string}
|
434
|
* @memberof CreateCategoryRequest
|
435
|
*/
|
436
|
'name'?: string | null;
|
437
|
/**
|
438
|
*
|
439
|
* @type {string}
|
440
|
* @memberof CreateCategoryRequest
|
441
|
*/
|
442
|
'description'?: string | null;
|
443
|
/**
|
444
|
*
|
445
|
* @type {string}
|
446
|
* @memberof CreateCategoryRequest
|
447
|
*/
|
448
|
'color'?: string | null;
|
449
|
/**
|
450
|
*
|
451
|
* @type {boolean}
|
452
|
* @memberof CreateCategoryRequest
|
453
|
*/
|
454
|
'disabledForAnnotators'?: boolean;
|
455
|
}
|
456
|
/**
|
457
|
*
|
458
|
* @export
|
459
|
* @interface CreateFinalAnnotationResponse
|
460
|
*/
|
461
|
export interface CreateFinalAnnotationResponse {
|
462
|
/**
|
463
|
*
|
464
|
* @type {string}
|
465
|
* @memberof CreateFinalAnnotationResponse
|
466
|
*/
|
467
|
'finalAnnotationId'?: string;
|
468
|
}
|
469
|
/**
|
470
|
*
|
471
|
* @export
|
472
|
* @interface CreateSubTagRequest
|
473
|
*/
|
474
|
export interface CreateSubTagRequest {
|
475
|
/**
|
476
|
*
|
477
|
* @type {string}
|
478
|
* @memberof CreateSubTagRequest
|
479
|
*/
|
480
|
'name'?: string | null;
|
481
|
/**
|
482
|
*
|
483
|
* @type {string}
|
484
|
* @memberof CreateSubTagRequest
|
485
|
*/
|
486
|
'description'?: string | null;
|
487
|
/**
|
488
|
*
|
489
|
* @type {string}
|
490
|
* @memberof CreateSubTagRequest
|
491
|
*/
|
492
|
'tagId'?: string;
|
493
|
/**
|
494
|
*
|
495
|
* @type {boolean}
|
496
|
* @memberof CreateSubTagRequest
|
497
|
*/
|
498
|
'sentimentEnabled'?: boolean;
|
499
|
}
|
500
|
/**
|
501
|
*
|
502
|
* @export
|
503
|
* @interface CreateTagRequest
|
504
|
*/
|
505
|
export interface CreateTagRequest {
|
506
|
/**
|
507
|
*
|
508
|
* @type {string}
|
509
|
* @memberof CreateTagRequest
|
510
|
*/
|
511
|
'categoryId'?: string;
|
512
|
/**
|
513
|
*
|
514
|
* @type {string}
|
515
|
* @memberof CreateTagRequest
|
516
|
*/
|
517
|
'name'?: string | null;
|
518
|
/**
|
519
|
*
|
520
|
* @type {string}
|
521
|
* @memberof CreateTagRequest
|
522
|
*/
|
523
|
'description'?: string | null;
|
524
|
/**
|
525
|
*
|
526
|
* @type {string}
|
527
|
* @memberof CreateTagRequest
|
528
|
*/
|
529
|
'color'?: string | null;
|
530
|
/**
|
531
|
*
|
532
|
* @type {boolean}
|
533
|
* @memberof CreateTagRequest
|
534
|
*/
|
535
|
'sentimentEnabled'?: boolean;
|
536
|
}
|
537
|
/**
|
538
|
*
|
539
|
* @export
|
540
|
* @interface CreateUserRequest
|
541
|
*/
|
542
|
export interface CreateUserRequest {
|
543
|
/**
|
544
|
*
|
545
|
* @type {string}
|
546
|
* @memberof CreateUserRequest
|
547
|
*/
|
548
|
'username'?: string | null;
|
549
|
/**
|
550
|
*
|
551
|
* @type {string}
|
552
|
* @memberof CreateUserRequest
|
553
|
*/
|
554
|
'password'?: string | null;
|
555
|
/**
|
556
|
*
|
557
|
* @type {string}
|
558
|
* @memberof CreateUserRequest
|
559
|
*/
|
560
|
'name'?: string | null;
|
561
|
/**
|
562
|
*
|
563
|
* @type {string}
|
564
|
* @memberof CreateUserRequest
|
565
|
*/
|
566
|
'surname'?: string | null;
|
567
|
/**
|
568
|
*
|
569
|
* @type {ERole}
|
570
|
* @memberof CreateUserRequest
|
571
|
*/
|
572
|
'role'?: ERole;
|
573
|
}
|
574
|
/**
|
575
|
*
|
576
|
* @export
|
577
|
* @interface DeleteDocumentsRequest
|
578
|
*/
|
579
|
export interface DeleteDocumentsRequest {
|
580
|
/**
|
581
|
*
|
582
|
* @type {Array<string>}
|
583
|
* @memberof DeleteDocumentsRequest
|
584
|
*/
|
585
|
'documentIds'?: Array<string> | null;
|
586
|
}
|
587
|
/**
|
588
|
*
|
589
|
* @export
|
590
|
* @interface Document
|
591
|
*/
|
592
|
export interface Document {
|
593
|
/**
|
594
|
*
|
595
|
* @type {string}
|
596
|
* @memberof Document
|
597
|
*/
|
598
|
'id'?: string;
|
599
|
/**
|
600
|
*
|
601
|
* @type {string}
|
602
|
* @memberof Document
|
603
|
*/
|
604
|
'name'?: string | null;
|
605
|
/**
|
606
|
*
|
607
|
* @type {number}
|
608
|
* @memberof Document
|
609
|
*/
|
610
|
'length'?: number;
|
611
|
/**
|
612
|
*
|
613
|
* @type {DocumentContent}
|
614
|
* @memberof Document
|
615
|
*/
|
616
|
'content'?: DocumentContent;
|
617
|
/**
|
618
|
*
|
619
|
* @type {string}
|
620
|
* @memberof Document
|
621
|
*/
|
622
|
'dateAdded'?: string;
|
623
|
/**
|
624
|
*
|
625
|
* @type {User}
|
626
|
* @memberof Document
|
627
|
*/
|
628
|
'userAdded'?: User;
|
629
|
/**
|
630
|
*
|
631
|
* @type {number}
|
632
|
* @memberof Document
|
633
|
*/
|
634
|
'requiredAnnotations'?: number;
|
635
|
}
|
636
|
/**
|
637
|
*
|
638
|
* @export
|
639
|
* @interface DocumentAddInfo
|
640
|
*/
|
641
|
export interface DocumentAddInfo {
|
642
|
/**
|
643
|
*
|
644
|
* @type {string}
|
645
|
* @memberof DocumentAddInfo
|
646
|
*/
|
647
|
'name'?: string | null;
|
648
|
/**
|
649
|
*
|
650
|
* @type {EAddDocumentFormat}
|
651
|
* @memberof DocumentAddInfo
|
652
|
*/
|
653
|
'format'?: EAddDocumentFormat;
|
654
|
/**
|
655
|
*
|
656
|
* @type {string}
|
657
|
* @memberof DocumentAddInfo
|
658
|
*/
|
659
|
'content'?: string | null;
|
660
|
}
|
661
|
/**
|
662
|
*
|
663
|
* @export
|
664
|
* @interface DocumentAddRequest
|
665
|
*/
|
666
|
export interface DocumentAddRequest {
|
667
|
/**
|
668
|
*
|
669
|
* @type {Array<DocumentAddInfo>}
|
670
|
* @memberof DocumentAddRequest
|
671
|
*/
|
672
|
'documents'?: Array<DocumentAddInfo> | null;
|
673
|
}
|
674
|
/**
|
675
|
*
|
676
|
* @export
|
677
|
* @interface DocumentAnnotationInfo
|
678
|
*/
|
679
|
export interface DocumentAnnotationInfo {
|
680
|
/**
|
681
|
*
|
682
|
* @type {string}
|
683
|
* @memberof DocumentAnnotationInfo
|
684
|
*/
|
685
|
'annotationId'?: string;
|
686
|
/**
|
687
|
*
|
688
|
* @type {string}
|
689
|
* @memberof DocumentAnnotationInfo
|
690
|
*/
|
691
|
'userId'?: string;
|
692
|
/**
|
693
|
*
|
694
|
* @type {string}
|
695
|
* @memberof DocumentAnnotationInfo
|
696
|
*/
|
697
|
'userFirstName'?: string | null;
|
698
|
/**
|
699
|
*
|
700
|
* @type {string}
|
701
|
* @memberof DocumentAnnotationInfo
|
702
|
*/
|
703
|
'userSurname'?: string | null;
|
704
|
/**
|
705
|
*
|
706
|
* @type {string}
|
707
|
* @memberof DocumentAnnotationInfo
|
708
|
*/
|
709
|
'username'?: string | null;
|
710
|
}
|
711
|
/**
|
712
|
*
|
713
|
* @export
|
714
|
* @interface DocumentContent
|
715
|
*/
|
716
|
export interface DocumentContent {
|
717
|
/**
|
718
|
*
|
719
|
* @type {string}
|
720
|
* @memberof DocumentContent
|
721
|
*/
|
722
|
'id'?: string;
|
723
|
/**
|
724
|
*
|
725
|
* @type {string}
|
726
|
* @memberof DocumentContent
|
727
|
*/
|
728
|
'content'?: string | null;
|
729
|
}
|
730
|
/**
|
731
|
*
|
732
|
* @export
|
733
|
* @interface DocumentListInfo
|
734
|
*/
|
735
|
export interface DocumentListInfo {
|
736
|
/**
|
737
|
*
|
738
|
* @type {string}
|
739
|
* @memberof DocumentListInfo
|
740
|
*/
|
741
|
'id'?: string;
|
742
|
/**
|
743
|
*
|
744
|
* @type {string}
|
745
|
* @memberof DocumentListInfo
|
746
|
*/
|
747
|
'name'?: string | null;
|
748
|
/**
|
749
|
*
|
750
|
* @type {number}
|
751
|
* @memberof DocumentListInfo
|
752
|
*/
|
753
|
'length'?: number;
|
754
|
/**
|
755
|
*
|
756
|
* @type {number}
|
757
|
* @memberof DocumentListInfo
|
758
|
*/
|
759
|
'requiredAnnotations'?: number;
|
760
|
/**
|
761
|
*
|
762
|
* @type {Array<DocumentUserInfo>}
|
763
|
* @memberof DocumentListInfo
|
764
|
*/
|
765
|
'annotatingUsers'?: Array<DocumentUserInfo> | null;
|
766
|
/**
|
767
|
*
|
768
|
* @type {boolean}
|
769
|
* @memberof DocumentListInfo
|
770
|
*/
|
771
|
'finalizedExists'?: boolean;
|
772
|
/**
|
773
|
*
|
774
|
* @type {string}
|
775
|
* @memberof DocumentListInfo
|
776
|
*/
|
777
|
'finalizedAnnotationId'?: string | null;
|
778
|
/**
|
779
|
*
|
780
|
* @type {EState}
|
781
|
* @memberof DocumentListInfo
|
782
|
*/
|
783
|
'finalizedState'?: EState;
|
784
|
/**
|
785
|
*
|
786
|
* @type {Array<DocumentAnnotationInfo>}
|
787
|
* @memberof DocumentListInfo
|
788
|
*/
|
789
|
'finalAnnotations'?: Array<DocumentAnnotationInfo> | null;
|
790
|
}
|
791
|
/**
|
792
|
*
|
793
|
* @export
|
794
|
* @interface DocumentListResponse
|
795
|
*/
|
796
|
export interface DocumentListResponse {
|
797
|
/**
|
798
|
*
|
799
|
* @type {Array<DocumentListInfo>}
|
800
|
* @memberof DocumentListResponse
|
801
|
*/
|
802
|
'documents'?: Array<DocumentListInfo> | null;
|
803
|
}
|
804
|
/**
|
805
|
*
|
806
|
* @export
|
807
|
* @interface DocumentPreviewResponse
|
808
|
*/
|
809
|
export interface DocumentPreviewResponse {
|
810
|
/**
|
811
|
*
|
812
|
* @type {string}
|
813
|
* @memberof DocumentPreviewResponse
|
814
|
*/
|
815
|
'content'?: string | null;
|
816
|
}
|
817
|
/**
|
818
|
*
|
819
|
* @export
|
820
|
* @interface DocumentUserInfo
|
821
|
*/
|
822
|
export interface DocumentUserInfo {
|
823
|
/**
|
824
|
*
|
825
|
* @type {string}
|
826
|
* @memberof DocumentUserInfo
|
827
|
*/
|
828
|
'id'?: string;
|
829
|
/**
|
830
|
*
|
831
|
* @type {string}
|
832
|
* @memberof DocumentUserInfo
|
833
|
*/
|
834
|
'username'?: string | null;
|
835
|
/**
|
836
|
*
|
837
|
* @type {string}
|
838
|
* @memberof DocumentUserInfo
|
839
|
*/
|
840
|
'name'?: string | null;
|
841
|
/**
|
842
|
*
|
843
|
* @type {string}
|
844
|
* @memberof DocumentUserInfo
|
845
|
*/
|
846
|
'surname'?: string | null;
|
847
|
/**
|
848
|
*
|
849
|
* @type {EState}
|
850
|
* @memberof DocumentUserInfo
|
851
|
*/
|
852
|
'state'?: EState;
|
853
|
/**
|
854
|
*
|
855
|
* @type {string}
|
856
|
* @memberof DocumentUserInfo
|
857
|
*/
|
858
|
'annotationId'?: string;
|
859
|
}
|
860
|
/**
|
861
|
*
|
862
|
* @export
|
863
|
* @enum {string}
|
864
|
*/
|
865
|
|
866
|
export const EAddDocumentFormat = {
|
867
|
Zip: 'ZIP',
|
868
|
Textfile: 'TEXTFILE'
|
869
|
} as const;
|
870
|
|
871
|
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
|
872
|
|
873
|
|
874
|
/**
|
875
|
*
|
876
|
* @export
|
877
|
* @enum {string}
|
878
|
*/
|
879
|
|
880
|
export const EDocumentType = {
|
881
|
Html: 'HTML',
|
882
|
Text: 'TEXT'
|
883
|
} as const;
|
884
|
|
885
|
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
|
886
|
|
887
|
|
888
|
/**
|
889
|
*
|
890
|
* @export
|
891
|
* @enum {string}
|
892
|
*/
|
893
|
|
894
|
export const EModified = {
|
895
|
Added: 'ADDED',
|
896
|
Removed: 'REMOVED',
|
897
|
None: 'NONE'
|
898
|
} as const;
|
899
|
|
900
|
export type EModified = typeof EModified[keyof typeof EModified];
|
901
|
|
902
|
|
903
|
/**
|
904
|
*
|
905
|
* @export
|
906
|
* @enum {string}
|
907
|
*/
|
908
|
|
909
|
export const ERole = {
|
910
|
Annotator: 'ANNOTATOR',
|
911
|
Administrator: 'ADMINISTRATOR'
|
912
|
} as const;
|
913
|
|
914
|
export type ERole = typeof ERole[keyof typeof ERole];
|
915
|
|
916
|
|
917
|
/**
|
918
|
*
|
919
|
* @export
|
920
|
* @enum {string}
|
921
|
*/
|
922
|
|
923
|
export const EState = {
|
924
|
Done: 'DONE',
|
925
|
InProgress: 'IN_PROGRESS',
|
926
|
New: 'NEW'
|
927
|
} as const;
|
928
|
|
929
|
export type EState = typeof EState[keyof typeof EState];
|
930
|
|
931
|
|
932
|
/**
|
933
|
*
|
934
|
* @export
|
935
|
* @enum {string}
|
936
|
*/
|
937
|
|
938
|
export const ETagSentiment = {
|
939
|
Neutral: 'NEUTRAL',
|
940
|
Positive: 'POSITIVE',
|
941
|
Negative: 'NEGATIVE'
|
942
|
} as const;
|
943
|
|
944
|
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment];
|
945
|
|
946
|
|
947
|
/**
|
948
|
*
|
949
|
* @export
|
950
|
* @enum {string}
|
951
|
*/
|
952
|
|
953
|
export const ETagType = {
|
954
|
Tag: 'TAG',
|
955
|
Subtag: 'SUBTAG'
|
956
|
} as const;
|
957
|
|
958
|
export type ETagType = typeof ETagType[keyof typeof ETagType];
|
959
|
|
960
|
|
961
|
/**
|
962
|
*
|
963
|
* @export
|
964
|
* @interface ExportRequest
|
965
|
*/
|
966
|
export interface ExportRequest {
|
967
|
/**
|
968
|
*
|
969
|
* @type {Array<string>}
|
970
|
* @memberof ExportRequest
|
971
|
*/
|
972
|
'documentIds'?: Array<string> | null;
|
973
|
}
|
974
|
/**
|
975
|
*
|
976
|
* @export
|
977
|
* @interface FinalAnnotation
|
978
|
*/
|
979
|
export interface FinalAnnotation {
|
980
|
/**
|
981
|
*
|
982
|
* @type {string}
|
983
|
* @memberof FinalAnnotation
|
984
|
*/
|
985
|
'id'?: string;
|
986
|
/**
|
987
|
*
|
988
|
* @type {Document}
|
989
|
* @memberof FinalAnnotation
|
990
|
*/
|
991
|
'document'?: Document;
|
992
|
/**
|
993
|
*
|
994
|
* @type {User}
|
995
|
* @memberof FinalAnnotation
|
996
|
*/
|
997
|
'user'?: User;
|
998
|
/**
|
999
|
*
|
1000
|
* @type {User}
|
1001
|
* @memberof FinalAnnotation
|
1002
|
*/
|
1003
|
'userAssigned'?: User;
|
1004
|
/**
|
1005
|
*
|
1006
|
* @type {string}
|
1007
|
* @memberof FinalAnnotation
|
1008
|
*/
|
1009
|
'dateAssigned'?: string;
|
1010
|
/**
|
1011
|
*
|
1012
|
* @type {EState}
|
1013
|
* @memberof FinalAnnotation
|
1014
|
*/
|
1015
|
'state'?: EState;
|
1016
|
/**
|
1017
|
*
|
1018
|
* @type {string}
|
1019
|
* @memberof FinalAnnotation
|
1020
|
*/
|
1021
|
'dateLastChanged'?: string;
|
1022
|
/**
|
1023
|
*
|
1024
|
* @type {string}
|
1025
|
* @memberof FinalAnnotation
|
1026
|
*/
|
1027
|
'note'?: string | null;
|
1028
|
/**
|
1029
|
*
|
1030
|
* @type {string}
|
1031
|
* @memberof FinalAnnotation
|
1032
|
*/
|
1033
|
'cachedDocumentHTML'?: string | null;
|
1034
|
/**
|
1035
|
*
|
1036
|
* @type {string}
|
1037
|
* @memberof FinalAnnotation
|
1038
|
*/
|
1039
|
'cachedStartPositions'?: string | null;
|
1040
|
/**
|
1041
|
*
|
1042
|
* @type {string}
|
1043
|
* @memberof FinalAnnotation
|
1044
|
*/
|
1045
|
'cachedLengths'?: string | null;
|
1046
|
/**
|
1047
|
*
|
1048
|
* @type {string}
|
1049
|
* @memberof FinalAnnotation
|
1050
|
*/
|
1051
|
'cachedClosingPositions'?: string | null;
|
1052
|
/**
|
1053
|
*
|
1054
|
* @type {string}
|
1055
|
* @memberof FinalAnnotation
|
1056
|
*/
|
1057
|
'cachedClosingLengths'?: string | null;
|
1058
|
/**
|
1059
|
*
|
1060
|
* @type {string}
|
1061
|
* @memberof FinalAnnotation
|
1062
|
*/
|
1063
|
'cachedCSS'?: string | null;
|
1064
|
/**
|
1065
|
*
|
1066
|
* @type {string}
|
1067
|
* @memberof FinalAnnotation
|
1068
|
*/
|
1069
|
'lastModifiedTagId'?: string | null;
|
1070
|
/**
|
1071
|
*
|
1072
|
* @type {EModified}
|
1073
|
* @memberof FinalAnnotation
|
1074
|
*/
|
1075
|
'modifiedType'?: EModified;
|
1076
|
/**
|
1077
|
*
|
1078
|
* @type {Array<Class>}
|
1079
|
* @memberof FinalAnnotation
|
1080
|
*/
|
1081
|
'classes'?: Array<Class> | null;
|
1082
|
/**
|
1083
|
*
|
1084
|
* @type {Array<FinalAnnotation>}
|
1085
|
* @memberof FinalAnnotation
|
1086
|
*/
|
1087
|
'finalAnnotations'?: Array<FinalAnnotation> | null;
|
1088
|
/**
|
1089
|
*
|
1090
|
* @type {Array<Annotation>}
|
1091
|
* @memberof FinalAnnotation
|
1092
|
*/
|
1093
|
'annotations'?: Array<Annotation> | null;
|
1094
|
}
|
1095
|
/**
|
1096
|
*
|
1097
|
* @export
|
1098
|
* @interface FinalAnnotationTag
|
1099
|
*/
|
1100
|
export interface FinalAnnotationTag {
|
1101
|
/**
|
1102
|
*
|
1103
|
* @type {string}
|
1104
|
* @memberof FinalAnnotationTag
|
1105
|
*/
|
1106
|
'id'?: string;
|
1107
|
/**
|
1108
|
*
|
1109
|
* @type {Tag}
|
1110
|
* @memberof FinalAnnotationTag
|
1111
|
*/
|
1112
|
'tag'?: Tag;
|
1113
|
/**
|
1114
|
*
|
1115
|
* @type {SubTag}
|
1116
|
* @memberof FinalAnnotationTag
|
1117
|
*/
|
1118
|
'subTag'?: SubTag;
|
1119
|
/**
|
1120
|
*
|
1121
|
* @type {string}
|
1122
|
* @memberof FinalAnnotationTag
|
1123
|
*/
|
1124
|
'instance'?: string;
|
1125
|
/**
|
1126
|
*
|
1127
|
* @type {string}
|
1128
|
* @memberof FinalAnnotationTag
|
1129
|
*/
|
1130
|
'note'?: string | null;
|
1131
|
/**
|
1132
|
*
|
1133
|
* @type {number}
|
1134
|
* @memberof FinalAnnotationTag
|
1135
|
*/
|
1136
|
'position'?: number;
|
1137
|
/**
|
1138
|
*
|
1139
|
* @type {number}
|
1140
|
* @memberof FinalAnnotationTag
|
1141
|
*/
|
1142
|
'length'?: number;
|
1143
|
/**
|
1144
|
*
|
1145
|
* @type {ETagSentiment}
|
1146
|
* @memberof FinalAnnotationTag
|
1147
|
*/
|
1148
|
'sentiment'?: ETagSentiment;
|
1149
|
/**
|
1150
|
*
|
1151
|
* @type {string}
|
1152
|
* @memberof FinalAnnotationTag
|
1153
|
*/
|
1154
|
'selectedText'?: string | null;
|
1155
|
/**
|
1156
|
*
|
1157
|
* @type {FinalAnnotation}
|
1158
|
* @memberof FinalAnnotationTag
|
1159
|
*/
|
1160
|
'annotation'?: FinalAnnotation;
|
1161
|
/**
|
1162
|
*
|
1163
|
* @type {boolean}
|
1164
|
* @memberof FinalAnnotationTag
|
1165
|
*/
|
1166
|
'isFinal'?: boolean;
|
1167
|
/**
|
1168
|
*
|
1169
|
* @type {Array<User>}
|
1170
|
* @memberof FinalAnnotationTag
|
1171
|
*/
|
1172
|
'users'?: Array<User> | null;
|
1173
|
}
|
1174
|
/**
|
1175
|
*
|
1176
|
* @export
|
1177
|
* @interface GetRequiredAnnotationsGlobalResponse
|
1178
|
*/
|
1179
|
export interface GetRequiredAnnotationsGlobalResponse {
|
1180
|
/**
|
1181
|
*
|
1182
|
* @type {number}
|
1183
|
* @memberof GetRequiredAnnotationsGlobalResponse
|
1184
|
*/
|
1185
|
'requiredAnnotationsGlobal'?: number;
|
1186
|
}
|
1187
|
/**
|
1188
|
*
|
1189
|
* @export
|
1190
|
* @interface LoginRequest
|
1191
|
*/
|
1192
|
export interface LoginRequest {
|
1193
|
/**
|
1194
|
*
|
1195
|
* @type {string}
|
1196
|
* @memberof LoginRequest
|
1197
|
*/
|
1198
|
'username'?: string | null;
|
1199
|
/**
|
1200
|
*
|
1201
|
* @type {string}
|
1202
|
* @memberof LoginRequest
|
1203
|
*/
|
1204
|
'password'?: string | null;
|
1205
|
}
|
1206
|
/**
|
1207
|
*
|
1208
|
* @export
|
1209
|
* @interface LoginResponse
|
1210
|
*/
|
1211
|
export interface LoginResponse {
|
1212
|
/**
|
1213
|
*
|
1214
|
* @type {boolean}
|
1215
|
* @memberof LoginResponse
|
1216
|
*/
|
1217
|
'ok'?: boolean;
|
1218
|
/**
|
1219
|
*
|
1220
|
* @type {string}
|
1221
|
* @memberof LoginResponse
|
1222
|
*/
|
1223
|
'token'?: string | null;
|
1224
|
/**
|
1225
|
*
|
1226
|
* @type {string}
|
1227
|
* @memberof LoginResponse
|
1228
|
*/
|
1229
|
'expiration'?: string;
|
1230
|
/**
|
1231
|
*
|
1232
|
* @type {ERole}
|
1233
|
* @memberof LoginResponse
|
1234
|
*/
|
1235
|
'role'?: ERole;
|
1236
|
}
|
1237
|
/**
|
1238
|
*
|
1239
|
* @export
|
1240
|
* @interface MarkAnnotationDoneRequest
|
1241
|
*/
|
1242
|
export interface MarkAnnotationDoneRequest {
|
1243
|
/**
|
1244
|
*
|
1245
|
* @type {boolean}
|
1246
|
* @memberof MarkAnnotationDoneRequest
|
1247
|
*/
|
1248
|
'done'?: boolean;
|
1249
|
}
|
1250
|
/**
|
1251
|
*
|
1252
|
* @export
|
1253
|
* @interface ModifyCategoryRequest
|
1254
|
*/
|
1255
|
export interface ModifyCategoryRequest {
|
1256
|
/**
|
1257
|
*
|
1258
|
* @type {string}
|
1259
|
* @memberof ModifyCategoryRequest
|
1260
|
*/
|
1261
|
'name'?: string | null;
|
1262
|
/**
|
1263
|
*
|
1264
|
* @type {string}
|
1265
|
* @memberof ModifyCategoryRequest
|
1266
|
*/
|
1267
|
'description'?: string | null;
|
1268
|
/**
|
1269
|
*
|
1270
|
* @type {string}
|
1271
|
* @memberof ModifyCategoryRequest
|
1272
|
*/
|
1273
|
'color'?: string | null;
|
1274
|
/**
|
1275
|
*
|
1276
|
* @type {boolean}
|
1277
|
* @memberof ModifyCategoryRequest
|
1278
|
*/
|
1279
|
'disabledForAnnotators'?: boolean | null;
|
1280
|
}
|
1281
|
/**
|
1282
|
*
|
1283
|
* @export
|
1284
|
* @interface ModifySubTagRequest
|
1285
|
*/
|
1286
|
export interface ModifySubTagRequest {
|
1287
|
/**
|
1288
|
*
|
1289
|
* @type {string}
|
1290
|
* @memberof ModifySubTagRequest
|
1291
|
*/
|
1292
|
'name'?: string | null;
|
1293
|
/**
|
1294
|
*
|
1295
|
* @type {string}
|
1296
|
* @memberof ModifySubTagRequest
|
1297
|
*/
|
1298
|
'description'?: string | null;
|
1299
|
/**
|
1300
|
*
|
1301
|
* @type {boolean}
|
1302
|
* @memberof ModifySubTagRequest
|
1303
|
*/
|
1304
|
'sentimentEnabled'?: boolean | null;
|
1305
|
}
|
1306
|
/**
|
1307
|
*
|
1308
|
* @export
|
1309
|
* @interface ModifyTagRequest
|
1310
|
*/
|
1311
|
export interface ModifyTagRequest {
|
1312
|
/**
|
1313
|
*
|
1314
|
* @type {string}
|
1315
|
* @memberof ModifyTagRequest
|
1316
|
*/
|
1317
|
'name'?: string | null;
|
1318
|
/**
|
1319
|
*
|
1320
|
* @type {string}
|
1321
|
* @memberof ModifyTagRequest
|
1322
|
*/
|
1323
|
'description'?: string | null;
|
1324
|
/**
|
1325
|
*
|
1326
|
* @type {string}
|
1327
|
* @memberof ModifyTagRequest
|
1328
|
*/
|
1329
|
'color'?: string | null;
|
1330
|
/**
|
1331
|
*
|
1332
|
* @type {boolean}
|
1333
|
* @memberof ModifyTagRequest
|
1334
|
*/
|
1335
|
'sentimentEnabled'?: boolean | null;
|
1336
|
}
|
1337
|
/**
|
1338
|
*
|
1339
|
* @export
|
1340
|
* @interface ProblemDetails
|
1341
|
*/
|
1342
|
export interface ProblemDetails {
|
1343
|
[key: string]: any | any;
|
1344
|
|
1345
|
/**
|
1346
|
*
|
1347
|
* @type {string}
|
1348
|
* @memberof ProblemDetails
|
1349
|
*/
|
1350
|
'type'?: string | null;
|
1351
|
/**
|
1352
|
*
|
1353
|
* @type {string}
|
1354
|
* @memberof ProblemDetails
|
1355
|
*/
|
1356
|
'title'?: string | null;
|
1357
|
/**
|
1358
|
*
|
1359
|
* @type {number}
|
1360
|
* @memberof ProblemDetails
|
1361
|
*/
|
1362
|
'status'?: number | null;
|
1363
|
/**
|
1364
|
*
|
1365
|
* @type {string}
|
1366
|
* @memberof ProblemDetails
|
1367
|
*/
|
1368
|
'detail'?: string | null;
|
1369
|
/**
|
1370
|
*
|
1371
|
* @type {string}
|
1372
|
* @memberof ProblemDetails
|
1373
|
*/
|
1374
|
'instance'?: string | null;
|
1375
|
}
|
1376
|
/**
|
1377
|
*
|
1378
|
* @export
|
1379
|
* @interface SetInstanceIsFinalRequest
|
1380
|
*/
|
1381
|
export interface SetInstanceIsFinalRequest {
|
1382
|
/**
|
1383
|
*
|
1384
|
* @type {boolean}
|
1385
|
* @memberof SetInstanceIsFinalRequest
|
1386
|
*/
|
1387
|
'isFinal'?: boolean;
|
1388
|
}
|
1389
|
/**
|
1390
|
*
|
1391
|
* @export
|
1392
|
* @interface SetInstanceSentimentRequest
|
1393
|
*/
|
1394
|
export interface SetInstanceSentimentRequest {
|
1395
|
/**
|
1396
|
*
|
1397
|
* @type {ETagSentiment}
|
1398
|
* @memberof SetInstanceSentimentRequest
|
1399
|
*/
|
1400
|
'sentiment'?: ETagSentiment;
|
1401
|
}
|
1402
|
/**
|
1403
|
*
|
1404
|
* @export
|
1405
|
* @interface SetRequiredAnnotationsGlobalRequest
|
1406
|
*/
|
1407
|
export interface SetRequiredAnnotationsGlobalRequest {
|
1408
|
/**
|
1409
|
*
|
1410
|
* @type {number}
|
1411
|
* @memberof SetRequiredAnnotationsGlobalRequest
|
1412
|
*/
|
1413
|
'requiredAnnotations'?: number;
|
1414
|
}
|
1415
|
/**
|
1416
|
*
|
1417
|
* @export
|
1418
|
* @interface SetRequiredAnnotationsRequest
|
1419
|
*/
|
1420
|
export interface SetRequiredAnnotationsRequest {
|
1421
|
/**
|
1422
|
*
|
1423
|
* @type {number}
|
1424
|
* @memberof SetRequiredAnnotationsRequest
|
1425
|
*/
|
1426
|
'requiredAnnotations'?: number;
|
1427
|
/**
|
1428
|
*
|
1429
|
* @type {Array<string>}
|
1430
|
* @memberof SetRequiredAnnotationsRequest
|
1431
|
*/
|
1432
|
'documentIds'?: Array<string> | null;
|
1433
|
}
|
1434
|
/**
|
1435
|
*
|
1436
|
* @export
|
1437
|
* @interface SubTag
|
1438
|
*/
|
1439
|
export interface SubTag {
|
1440
|
/**
|
1441
|
*
|
1442
|
* @type {string}
|
1443
|
* @memberof SubTag
|
1444
|
*/
|
1445
|
'id'?: string;
|
1446
|
/**
|
1447
|
*
|
1448
|
* @type {string}
|
1449
|
* @memberof SubTag
|
1450
|
*/
|
1451
|
'name'?: string | null;
|
1452
|
/**
|
1453
|
*
|
1454
|
* @type {string}
|
1455
|
* @memberof SubTag
|
1456
|
*/
|
1457
|
'description'?: string | null;
|
1458
|
/**
|
1459
|
*
|
1460
|
* @type {Tag}
|
1461
|
* @memberof SubTag
|
1462
|
*/
|
1463
|
'tag'?: Tag;
|
1464
|
/**
|
1465
|
*
|
1466
|
* @type {boolean}
|
1467
|
* @memberof SubTag
|
1468
|
*/
|
1469
|
'sentimentEnabled'?: boolean;
|
1470
|
}
|
1471
|
/**
|
1472
|
*
|
1473
|
* @export
|
1474
|
* @interface SubTagInfo
|
1475
|
*/
|
1476
|
export interface SubTagInfo {
|
1477
|
/**
|
1478
|
*
|
1479
|
* @type {string}
|
1480
|
* @memberof SubTagInfo
|
1481
|
*/
|
1482
|
'id'?: string;
|
1483
|
/**
|
1484
|
*
|
1485
|
* @type {string}
|
1486
|
* @memberof SubTagInfo
|
1487
|
*/
|
1488
|
'name'?: string | null;
|
1489
|
/**
|
1490
|
*
|
1491
|
* @type {string}
|
1492
|
* @memberof SubTagInfo
|
1493
|
*/
|
1494
|
'description'?: string | null;
|
1495
|
}
|
1496
|
/**
|
1497
|
*
|
1498
|
* @export
|
1499
|
* @interface Tag
|
1500
|
*/
|
1501
|
export interface Tag {
|
1502
|
/**
|
1503
|
*
|
1504
|
* @type {string}
|
1505
|
* @memberof Tag
|
1506
|
*/
|
1507
|
'id'?: string;
|
1508
|
/**
|
1509
|
*
|
1510
|
* @type {TagCategory}
|
1511
|
* @memberof Tag
|
1512
|
*/
|
1513
|
'category'?: TagCategory;
|
1514
|
/**
|
1515
|
*
|
1516
|
* @type {string}
|
1517
|
* @memberof Tag
|
1518
|
*/
|
1519
|
'name'?: string | null;
|
1520
|
/**
|
1521
|
*
|
1522
|
* @type {string}
|
1523
|
* @memberof Tag
|
1524
|
*/
|
1525
|
'description'?: string | null;
|
1526
|
/**
|
1527
|
*
|
1528
|
* @type {string}
|
1529
|
* @memberof Tag
|
1530
|
*/
|
1531
|
'color'?: string | null;
|
1532
|
/**
|
1533
|
*
|
1534
|
* @type {boolean}
|
1535
|
* @memberof Tag
|
1536
|
*/
|
1537
|
'sentimentEnabled'?: boolean;
|
1538
|
}
|
1539
|
/**
|
1540
|
*
|
1541
|
* @export
|
1542
|
* @interface TagCategory
|
1543
|
*/
|
1544
|
export interface TagCategory {
|
1545
|
/**
|
1546
|
*
|
1547
|
* @type {string}
|
1548
|
* @memberof TagCategory
|
1549
|
*/
|
1550
|
'id'?: string;
|
1551
|
/**
|
1552
|
*
|
1553
|
* @type {string}
|
1554
|
* @memberof TagCategory
|
1555
|
*/
|
1556
|
'name'?: string | null;
|
1557
|
/**
|
1558
|
*
|
1559
|
* @type {string}
|
1560
|
* @memberof TagCategory
|
1561
|
*/
|
1562
|
'color'?: string | null;
|
1563
|
/**
|
1564
|
*
|
1565
|
* @type {string}
|
1566
|
* @memberof TagCategory
|
1567
|
*/
|
1568
|
'description'?: string | null;
|
1569
|
/**
|
1570
|
*
|
1571
|
* @type {boolean}
|
1572
|
* @memberof TagCategory
|
1573
|
*/
|
1574
|
'disabledForAnnotators'?: boolean;
|
1575
|
}
|
1576
|
/**
|
1577
|
*
|
1578
|
* @export
|
1579
|
* @interface TagCategoryInfo
|
1580
|
*/
|
1581
|
export interface TagCategoryInfo {
|
1582
|
/**
|
1583
|
*
|
1584
|
* @type {string}
|
1585
|
* @memberof TagCategoryInfo
|
1586
|
*/
|
1587
|
'id'?: string;
|
1588
|
/**
|
1589
|
*
|
1590
|
* @type {string}
|
1591
|
* @memberof TagCategoryInfo
|
1592
|
*/
|
1593
|
'name'?: string | null;
|
1594
|
/**
|
1595
|
*
|
1596
|
* @type {string}
|
1597
|
* @memberof TagCategoryInfo
|
1598
|
*/
|
1599
|
'description'?: string | null;
|
1600
|
/**
|
1601
|
*
|
1602
|
* @type {string}
|
1603
|
* @memberof TagCategoryInfo
|
1604
|
*/
|
1605
|
'color'?: string | null;
|
1606
|
/**
|
1607
|
*
|
1608
|
* @type {Array<TagInfo>}
|
1609
|
* @memberof TagCategoryInfo
|
1610
|
*/
|
1611
|
'tags'?: Array<TagInfo> | null;
|
1612
|
/**
|
1613
|
*
|
1614
|
* @type {boolean}
|
1615
|
* @memberof TagCategoryInfo
|
1616
|
*/
|
1617
|
'disabledForAnnotators'?: boolean;
|
1618
|
}
|
1619
|
/**
|
1620
|
*
|
1621
|
* @export
|
1622
|
* @interface TagInfo
|
1623
|
*/
|
1624
|
export interface TagInfo {
|
1625
|
/**
|
1626
|
*
|
1627
|
* @type {string}
|
1628
|
* @memberof TagInfo
|
1629
|
*/
|
1630
|
'id'?: string;
|
1631
|
/**
|
1632
|
*
|
1633
|
* @type {string}
|
1634
|
* @memberof TagInfo
|
1635
|
*/
|
1636
|
'name'?: string | null;
|
1637
|
/**
|
1638
|
*
|
1639
|
* @type {string}
|
1640
|
* @memberof TagInfo
|
1641
|
*/
|
1642
|
'description'?: string | null;
|
1643
|
/**
|
1644
|
*
|
1645
|
* @type {string}
|
1646
|
* @memberof TagInfo
|
1647
|
*/
|
1648
|
'color'?: string | null;
|
1649
|
/**
|
1650
|
*
|
1651
|
* @type {Array<SubTagInfo>}
|
1652
|
* @memberof TagInfo
|
1653
|
*/
|
1654
|
'subTags'?: Array<SubTagInfo> | null;
|
1655
|
/**
|
1656
|
*
|
1657
|
* @type {boolean}
|
1658
|
* @memberof TagInfo
|
1659
|
*/
|
1660
|
'sentimentEnabled'?: boolean;
|
1661
|
}
|
1662
|
/**
|
1663
|
*
|
1664
|
* @export
|
1665
|
* @interface TagInstanceCSSInfo
|
1666
|
*/
|
1667
|
export interface TagInstanceCSSInfo {
|
1668
|
/**
|
1669
|
*
|
1670
|
* @type {string}
|
1671
|
* @memberof TagInstanceCSSInfo
|
1672
|
*/
|
1673
|
'instanceId'?: string;
|
1674
|
/**
|
1675
|
*
|
1676
|
* @type {string}
|
1677
|
* @memberof TagInstanceCSSInfo
|
1678
|
*/
|
1679
|
'color'?: string | null;
|
1680
|
/**
|
1681
|
*
|
1682
|
* @type {number}
|
1683
|
* @memberof TagInstanceCSSInfo
|
1684
|
*/
|
1685
|
'padding'?: number;
|
1686
|
}
|
1687
|
/**
|
1688
|
*
|
1689
|
* @export
|
1690
|
* @interface TagInstanceInfo
|
1691
|
*/
|
1692
|
export interface TagInstanceInfo {
|
1693
|
/**
|
1694
|
*
|
1695
|
* @type {string}
|
1696
|
* @memberof TagInstanceInfo
|
1697
|
*/
|
1698
|
'occurenceId'?: string;
|
1699
|
/**
|
1700
|
*
|
1701
|
* @type {string}
|
1702
|
* @memberof TagInstanceInfo
|
1703
|
*/
|
1704
|
'tagName'?: string | null;
|
1705
|
/**
|
1706
|
*
|
1707
|
* @type {string}
|
1708
|
* @memberof TagInstanceInfo
|
1709
|
*/
|
1710
|
'tagId'?: string;
|
1711
|
/**
|
1712
|
*
|
1713
|
* @type {string}
|
1714
|
* @memberof TagInstanceInfo
|
1715
|
*/
|
1716
|
'tagCategoryName'?: string | null;
|
1717
|
/**
|
1718
|
*
|
1719
|
* @type {string}
|
1720
|
* @memberof TagInstanceInfo
|
1721
|
*/
|
1722
|
'tagCategoryId'?: string;
|
1723
|
/**
|
1724
|
*
|
1725
|
* @type {string}
|
1726
|
* @memberof TagInstanceInfo
|
1727
|
*/
|
1728
|
'subTagName'?: string | null;
|
1729
|
/**
|
1730
|
*
|
1731
|
* @type {string}
|
1732
|
* @memberof TagInstanceInfo
|
1733
|
*/
|
1734
|
'subTagId'?: string | null;
|
1735
|
/**
|
1736
|
*
|
1737
|
* @type {string}
|
1738
|
* @memberof TagInstanceInfo
|
1739
|
*/
|
1740
|
'instance'?: string;
|
1741
|
/**
|
1742
|
*
|
1743
|
* @type {number}
|
1744
|
* @memberof TagInstanceInfo
|
1745
|
*/
|
1746
|
'position'?: number;
|
1747
|
/**
|
1748
|
*
|
1749
|
* @type {number}
|
1750
|
* @memberof TagInstanceInfo
|
1751
|
*/
|
1752
|
'length'?: number;
|
1753
|
/**
|
1754
|
*
|
1755
|
* @type {string}
|
1756
|
* @memberof TagInstanceInfo
|
1757
|
*/
|
1758
|
'note'?: string | null;
|
1759
|
/**
|
1760
|
*
|
1761
|
* @type {ETagSentiment}
|
1762
|
* @memberof TagInstanceInfo
|
1763
|
*/
|
1764
|
'sentiment'?: ETagSentiment;
|
1765
|
/**
|
1766
|
*
|
1767
|
* @type {string}
|
1768
|
* @memberof TagInstanceInfo
|
1769
|
*/
|
1770
|
'selectedText'?: string | null;
|
1771
|
/**
|
1772
|
*
|
1773
|
* @type {Array<UserInfo>}
|
1774
|
* @memberof TagInstanceInfo
|
1775
|
*/
|
1776
|
'users'?: Array<UserInfo> | null;
|
1777
|
/**
|
1778
|
*
|
1779
|
* @type {boolean}
|
1780
|
* @memberof TagInstanceInfo
|
1781
|
*/
|
1782
|
'isFinal'?: boolean | null;
|
1783
|
}
|
1784
|
/**
|
1785
|
*
|
1786
|
* @export
|
1787
|
* @interface TagTreeResponse
|
1788
|
*/
|
1789
|
export interface TagTreeResponse {
|
1790
|
/**
|
1791
|
*
|
1792
|
* @type {Array<TagCategoryInfo>}
|
1793
|
* @memberof TagTreeResponse
|
1794
|
*/
|
1795
|
'tagCategories'?: Array<TagCategoryInfo> | null;
|
1796
|
}
|
1797
|
/**
|
1798
|
*
|
1799
|
* @export
|
1800
|
* @interface User
|
1801
|
*/
|
1802
|
export interface User {
|
1803
|
/**
|
1804
|
*
|
1805
|
* @type {string}
|
1806
|
* @memberof User
|
1807
|
*/
|
1808
|
'id'?: string;
|
1809
|
/**
|
1810
|
*
|
1811
|
* @type {string}
|
1812
|
* @memberof User
|
1813
|
*/
|
1814
|
'username'?: string | null;
|
1815
|
/**
|
1816
|
*
|
1817
|
* @type {string}
|
1818
|
* @memberof User
|
1819
|
*/
|
1820
|
'name'?: string | null;
|
1821
|
/**
|
1822
|
*
|
1823
|
* @type {string}
|
1824
|
* @memberof User
|
1825
|
*/
|
1826
|
'surname'?: string | null;
|
1827
|
/**
|
1828
|
*
|
1829
|
* @type {ERole}
|
1830
|
* @memberof User
|
1831
|
*/
|
1832
|
'role'?: ERole;
|
1833
|
/**
|
1834
|
*
|
1835
|
* @type {Array<FinalAnnotationTag>}
|
1836
|
* @memberof User
|
1837
|
*/
|
1838
|
'finalAnnotationTags'?: Array<FinalAnnotationTag> | null;
|
1839
|
}
|
1840
|
/**
|
1841
|
*
|
1842
|
* @export
|
1843
|
* @interface UserInfo
|
1844
|
*/
|
1845
|
export interface UserInfo {
|
1846
|
/**
|
1847
|
*
|
1848
|
* @type {string}
|
1849
|
* @memberof UserInfo
|
1850
|
*/
|
1851
|
'id'?: string;
|
1852
|
/**
|
1853
|
*
|
1854
|
* @type {string}
|
1855
|
* @memberof UserInfo
|
1856
|
*/
|
1857
|
'username'?: string | null;
|
1858
|
/**
|
1859
|
*
|
1860
|
* @type {string}
|
1861
|
* @memberof UserInfo
|
1862
|
*/
|
1863
|
'name'?: string | null;
|
1864
|
/**
|
1865
|
*
|
1866
|
* @type {string}
|
1867
|
* @memberof UserInfo
|
1868
|
*/
|
1869
|
'surname'?: string | null;
|
1870
|
/**
|
1871
|
*
|
1872
|
* @type {number}
|
1873
|
* @memberof UserInfo
|
1874
|
*/
|
1875
|
'finalizedDocumentsCount'?: number;
|
1876
|
/**
|
1877
|
*
|
1878
|
* @type {number}
|
1879
|
* @memberof UserInfo
|
1880
|
*/
|
1881
|
'inProgressDocumentsCount'?: number;
|
1882
|
/**
|
1883
|
*
|
1884
|
* @type {number}
|
1885
|
* @memberof UserInfo
|
1886
|
*/
|
1887
|
'newDocumentsCount'?: number;
|
1888
|
/**
|
1889
|
*
|
1890
|
* @type {ERole}
|
1891
|
* @memberof UserInfo
|
1892
|
*/
|
1893
|
'role'?: ERole;
|
1894
|
}
|
1895
|
/**
|
1896
|
*
|
1897
|
* @export
|
1898
|
* @interface UserList
|
1899
|
*/
|
1900
|
export interface UserList {
|
1901
|
/**
|
1902
|
*
|
1903
|
* @type {Array<UserInfo>}
|
1904
|
* @memberof UserList
|
1905
|
*/
|
1906
|
'users'?: Array<UserInfo> | null;
|
1907
|
}
|
1908
|
/**
|
1909
|
*
|
1910
|
* @export
|
1911
|
* @interface UserMeResponse
|
1912
|
*/
|
1913
|
export interface UserMeResponse {
|
1914
|
/**
|
1915
|
*
|
1916
|
* @type {string}
|
1917
|
* @memberof UserMeResponse
|
1918
|
*/
|
1919
|
'name'?: string | null;
|
1920
|
/**
|
1921
|
*
|
1922
|
* @type {ERole}
|
1923
|
* @memberof UserMeResponse
|
1924
|
*/
|
1925
|
'role'?: ERole;
|
1926
|
}
|
1927
|
|
1928
|
/**
|
1929
|
* AnnotationApi - axios parameter creator
|
1930
|
* @export
|
1931
|
*/
|
1932
|
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
|
1933
|
return {
|
1934
|
/**
|
1935
|
*
|
1936
|
* @param {string} annotationId
|
1937
|
* @param {boolean} [isFinal]
|
1938
|
* @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest]
|
1939
|
* @param {*} [options] Override http request option.
|
1940
|
* @throws {RequiredError}
|
1941
|
*/
|
1942
|
annotationAnnotationIdDonePut: async (annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1943
|
// verify required parameter 'annotationId' is not null or undefined
|
1944
|
assertParamExists('annotationAnnotationIdDonePut', 'annotationId', annotationId)
|
1945
|
const localVarPath = `/annotation/{annotationId}/done`
|
1946
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
1947
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1948
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1949
|
let baseOptions;
|
1950
|
if (configuration) {
|
1951
|
baseOptions = configuration.baseOptions;
|
1952
|
}
|
1953
|
|
1954
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
1955
|
const localVarHeaderParameter = {} as any;
|
1956
|
const localVarQueryParameter = {} as any;
|
1957
|
|
1958
|
if (isFinal !== undefined) {
|
1959
|
localVarQueryParameter['isFinal'] = isFinal;
|
1960
|
}
|
1961
|
|
1962
|
|
1963
|
|
1964
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1965
|
|
1966
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1967
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1968
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1969
|
localVarRequestOptions.data = serializeDataIfNeeded(markAnnotationDoneRequest, localVarRequestOptions, configuration)
|
1970
|
|
1971
|
return {
|
1972
|
url: toPathString(localVarUrlObj),
|
1973
|
options: localVarRequestOptions,
|
1974
|
};
|
1975
|
},
|
1976
|
/**
|
1977
|
*
|
1978
|
* @param {string} annotationId
|
1979
|
* @param {boolean} [isFinal]
|
1980
|
* @param {*} [options] Override http request option.
|
1981
|
* @throws {RequiredError}
|
1982
|
*/
|
1983
|
annotationAnnotationIdGet: async (annotationId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1984
|
// verify required parameter 'annotationId' is not null or undefined
|
1985
|
assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
|
1986
|
const localVarPath = `/annotation/{annotationId}`
|
1987
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
1988
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1989
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1990
|
let baseOptions;
|
1991
|
if (configuration) {
|
1992
|
baseOptions = configuration.baseOptions;
|
1993
|
}
|
1994
|
|
1995
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
1996
|
const localVarHeaderParameter = {} as any;
|
1997
|
const localVarQueryParameter = {} as any;
|
1998
|
|
1999
|
if (isFinal !== undefined) {
|
2000
|
localVarQueryParameter['isFinal'] = isFinal;
|
2001
|
}
|
2002
|
|
2003
|
|
2004
|
|
2005
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2006
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2007
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2008
|
|
2009
|
return {
|
2010
|
url: toPathString(localVarUrlObj),
|
2011
|
options: localVarRequestOptions,
|
2012
|
};
|
2013
|
},
|
2014
|
/**
|
2015
|
*
|
2016
|
* @param {string} annotationId
|
2017
|
* @param {string} instanceId
|
2018
|
* @param {boolean} [isFinal]
|
2019
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
2020
|
* @param {*} [options] Override http request option.
|
2021
|
* @throws {RequiredError}
|
2022
|
*/
|
2023
|
annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2024
|
// verify required parameter 'annotationId' is not null or undefined
|
2025
|
assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
|
2026
|
// verify required parameter 'instanceId' is not null or undefined
|
2027
|
assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
|
2028
|
const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
|
2029
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
2030
|
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
2031
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2032
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2033
|
let baseOptions;
|
2034
|
if (configuration) {
|
2035
|
baseOptions = configuration.baseOptions;
|
2036
|
}
|
2037
|
|
2038
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
2039
|
const localVarHeaderParameter = {} as any;
|
2040
|
const localVarQueryParameter = {} as any;
|
2041
|
|
2042
|
if (isFinal !== undefined) {
|
2043
|
localVarQueryParameter['isFinal'] = isFinal;
|
2044
|
}
|
2045
|
|
2046
|
|
2047
|
|
2048
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2049
|
|
2050
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2051
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2052
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2053
|
localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
|
2054
|
|
2055
|
return {
|
2056
|
url: toPathString(localVarUrlObj),
|
2057
|
options: localVarRequestOptions,
|
2058
|
};
|
2059
|
},
|
2060
|
/**
|
2061
|
*
|
2062
|
* @param {string} annotationId
|
2063
|
* @param {boolean} [isFinal]
|
2064
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
2065
|
* @param {*} [options] Override http request option.
|
2066
|
* @throws {RequiredError}
|
2067
|
*/
|
2068
|
annotationAnnotationIdNotePost: async (annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2069
|
// verify required parameter 'annotationId' is not null or undefined
|
2070
|
assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
|
2071
|
const localVarPath = `/annotation/{annotationId}/note`
|
2072
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
2073
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2074
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2075
|
let baseOptions;
|
2076
|
if (configuration) {
|
2077
|
baseOptions = configuration.baseOptions;
|
2078
|
}
|
2079
|
|
2080
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2081
|
const localVarHeaderParameter = {} as any;
|
2082
|
const localVarQueryParameter = {} as any;
|
2083
|
|
2084
|
if (isFinal !== undefined) {
|
2085
|
localVarQueryParameter['isFinal'] = isFinal;
|
2086
|
}
|
2087
|
|
2088
|
|
2089
|
|
2090
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2091
|
|
2092
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2093
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2094
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2095
|
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
|
2096
|
|
2097
|
return {
|
2098
|
url: toPathString(localVarUrlObj),
|
2099
|
options: localVarRequestOptions,
|
2100
|
};
|
2101
|
},
|
2102
|
/**
|
2103
|
*
|
2104
|
* @param {string} annotationId
|
2105
|
* @param {string} occurenceId
|
2106
|
* @param {boolean} [isFinal]
|
2107
|
* @param {*} [options] Override http request option.
|
2108
|
* @throws {RequiredError}
|
2109
|
*/
|
2110
|
annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, isFinal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2111
|
// verify required parameter 'annotationId' is not null or undefined
|
2112
|
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
|
2113
|
// verify required parameter 'occurenceId' is not null or undefined
|
2114
|
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
|
2115
|
const localVarPath = `/annotation/{annotationId}/{occurenceId}`
|
2116
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
2117
|
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
|
2118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2119
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2120
|
let baseOptions;
|
2121
|
if (configuration) {
|
2122
|
baseOptions = configuration.baseOptions;
|
2123
|
}
|
2124
|
|
2125
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
2126
|
const localVarHeaderParameter = {} as any;
|
2127
|
const localVarQueryParameter = {} as any;
|
2128
|
|
2129
|
if (isFinal !== undefined) {
|
2130
|
localVarQueryParameter['isFinal'] = isFinal;
|
2131
|
}
|
2132
|
|
2133
|
|
2134
|
|
2135
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2136
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2137
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2138
|
|
2139
|
return {
|
2140
|
url: toPathString(localVarUrlObj),
|
2141
|
options: localVarRequestOptions,
|
2142
|
};
|
2143
|
},
|
2144
|
/**
|
2145
|
*
|
2146
|
* @param {string} annotationId
|
2147
|
* @param {string} occurenceId
|
2148
|
* @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest]
|
2149
|
* @param {*} [options] Override http request option.
|
2150
|
* @throws {RequiredError}
|
2151
|
*/
|
2152
|
annotationAnnotationIdOccurenceIdFinalPut: async (annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2153
|
// verify required parameter 'annotationId' is not null or undefined
|
2154
|
assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'annotationId', annotationId)
|
2155
|
// verify required parameter 'occurenceId' is not null or undefined
|
2156
|
assertParamExists('annotationAnnotationIdOccurenceIdFinalPut', 'occurenceId', occurenceId)
|
2157
|
const localVarPath = `/annotation/{annotationId}/{occurenceId}/final`
|
2158
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
2159
|
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
|
2160
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2161
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2162
|
let baseOptions;
|
2163
|
if (configuration) {
|
2164
|
baseOptions = configuration.baseOptions;
|
2165
|
}
|
2166
|
|
2167
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
2168
|
const localVarHeaderParameter = {} as any;
|
2169
|
const localVarQueryParameter = {} as any;
|
2170
|
|
2171
|
|
2172
|
|
2173
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2174
|
|
2175
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2176
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2177
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2178
|
localVarRequestOptions.data = serializeDataIfNeeded(setInstanceIsFinalRequest, localVarRequestOptions, configuration)
|
2179
|
|
2180
|
return {
|
2181
|
url: toPathString(localVarUrlObj),
|
2182
|
options: localVarRequestOptions,
|
2183
|
};
|
2184
|
},
|
2185
|
/**
|
2186
|
*
|
2187
|
* @param {string} annotationId
|
2188
|
* @param {boolean} [isFinal]
|
2189
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
2190
|
* @param {*} [options] Override http request option.
|
2191
|
* @throws {RequiredError}
|
2192
|
*/
|
2193
|
annotationAnnotationIdPost: async (annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2194
|
// verify required parameter 'annotationId' is not null or undefined
|
2195
|
assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
|
2196
|
const localVarPath = `/annotation/{annotationId}`
|
2197
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
2198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2199
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2200
|
let baseOptions;
|
2201
|
if (configuration) {
|
2202
|
baseOptions = configuration.baseOptions;
|
2203
|
}
|
2204
|
|
2205
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2206
|
const localVarHeaderParameter = {} as any;
|
2207
|
const localVarQueryParameter = {} as any;
|
2208
|
|
2209
|
if (isFinal !== undefined) {
|
2210
|
localVarQueryParameter['isFinal'] = isFinal;
|
2211
|
}
|
2212
|
|
2213
|
|
2214
|
|
2215
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2216
|
|
2217
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2218
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2219
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2220
|
localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
|
2221
|
|
2222
|
return {
|
2223
|
url: toPathString(localVarUrlObj),
|
2224
|
options: localVarRequestOptions,
|
2225
|
};
|
2226
|
},
|
2227
|
/**
|
2228
|
*
|
2229
|
* @param {string} annotationId
|
2230
|
* @param {string} occurenceId
|
2231
|
* @param {boolean} [isFinal]
|
2232
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
2233
|
* @param {*} [options] Override http request option.
|
2234
|
* @throws {RequiredError}
|
2235
|
*/
|
2236
|
annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2237
|
// verify required parameter 'annotationId' is not null or undefined
|
2238
|
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
|
2239
|
// verify required parameter 'occurenceId' is not null or undefined
|
2240
|
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
|
2241
|
const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
|
2242
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
2243
|
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
|
2244
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2245
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2246
|
let baseOptions;
|
2247
|
if (configuration) {
|
2248
|
baseOptions = configuration.baseOptions;
|
2249
|
}
|
2250
|
|
2251
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2252
|
const localVarHeaderParameter = {} as any;
|
2253
|
const localVarQueryParameter = {} as any;
|
2254
|
|
2255
|
if (isFinal !== undefined) {
|
2256
|
localVarQueryParameter['isFinal'] = isFinal;
|
2257
|
}
|
2258
|
|
2259
|
|
2260
|
|
2261
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2262
|
|
2263
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2264
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2265
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2266
|
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
|
2267
|
|
2268
|
return {
|
2269
|
url: toPathString(localVarUrlObj),
|
2270
|
options: localVarRequestOptions,
|
2271
|
};
|
2272
|
},
|
2273
|
/**
|
2274
|
*
|
2275
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
2276
|
* @param {*} [options] Override http request option.
|
2277
|
* @throws {RequiredError}
|
2278
|
*/
|
2279
|
annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2280
|
const localVarPath = `/annotations`;
|
2281
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2282
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2283
|
let baseOptions;
|
2284
|
if (configuration) {
|
2285
|
baseOptions = configuration.baseOptions;
|
2286
|
}
|
2287
|
|
2288
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2289
|
const localVarHeaderParameter = {} as any;
|
2290
|
const localVarQueryParameter = {} as any;
|
2291
|
|
2292
|
|
2293
|
|
2294
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2295
|
|
2296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2298
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2299
|
localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
|
2300
|
|
2301
|
return {
|
2302
|
url: toPathString(localVarUrlObj),
|
2303
|
options: localVarRequestOptions,
|
2304
|
};
|
2305
|
},
|
2306
|
}
|
2307
|
};
|
2308
|
|
2309
|
/**
|
2310
|
* AnnotationApi - functional programming interface
|
2311
|
* @export
|
2312
|
*/
|
2313
|
export const AnnotationApiFp = function(configuration?: Configuration) {
|
2314
|
const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
|
2315
|
return {
|
2316
|
/**
|
2317
|
*
|
2318
|
* @param {string} annotationId
|
2319
|
* @param {boolean} [isFinal]
|
2320
|
* @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest]
|
2321
|
* @param {*} [options] Override http request option.
|
2322
|
* @throws {RequiredError}
|
2323
|
*/
|
2324
|
async annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2325
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options);
|
2326
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2327
|
},
|
2328
|
/**
|
2329
|
*
|
2330
|
* @param {string} annotationId
|
2331
|
* @param {boolean} [isFinal]
|
2332
|
* @param {*} [options] Override http request option.
|
2333
|
* @throws {RequiredError}
|
2334
|
*/
|
2335
|
async annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
|
2336
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, isFinal, options);
|
2337
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2338
|
},
|
2339
|
/**
|
2340
|
*
|
2341
|
* @param {string} annotationId
|
2342
|
* @param {string} instanceId
|
2343
|
* @param {boolean} [isFinal]
|
2344
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
2345
|
* @param {*} [options] Override http request option.
|
2346
|
* @throws {RequiredError}
|
2347
|
*/
|
2348
|
async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2349
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options);
|
2350
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2351
|
},
|
2352
|
/**
|
2353
|
*
|
2354
|
* @param {string} annotationId
|
2355
|
* @param {boolean} [isFinal]
|
2356
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
2357
|
* @param {*} [options] Override http request option.
|
2358
|
* @throws {RequiredError}
|
2359
|
*/
|
2360
|
async annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2361
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options);
|
2362
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2363
|
},
|
2364
|
/**
|
2365
|
*
|
2366
|
* @param {string} annotationId
|
2367
|
* @param {string} occurenceId
|
2368
|
* @param {boolean} [isFinal]
|
2369
|
* @param {*} [options] Override http request option.
|
2370
|
* @throws {RequiredError}
|
2371
|
*/
|
2372
|
async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2373
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options);
|
2374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2375
|
},
|
2376
|
/**
|
2377
|
*
|
2378
|
* @param {string} annotationId
|
2379
|
* @param {string} occurenceId
|
2380
|
* @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest]
|
2381
|
* @param {*} [options] Override http request option.
|
2382
|
* @throws {RequiredError}
|
2383
|
*/
|
2384
|
async annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2385
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options);
|
2386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2387
|
},
|
2388
|
/**
|
2389
|
*
|
2390
|
* @param {string} annotationId
|
2391
|
* @param {boolean} [isFinal]
|
2392
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
2393
|
* @param {*} [options] Override http request option.
|
2394
|
* @throws {RequiredError}
|
2395
|
*/
|
2396
|
async annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2397
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options);
|
2398
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2399
|
},
|
2400
|
/**
|
2401
|
*
|
2402
|
* @param {string} annotationId
|
2403
|
* @param {string} occurenceId
|
2404
|
* @param {boolean} [isFinal]
|
2405
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
2406
|
* @param {*} [options] Override http request option.
|
2407
|
* @throws {RequiredError}
|
2408
|
*/
|
2409
|
async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2410
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options);
|
2411
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2412
|
},
|
2413
|
/**
|
2414
|
*
|
2415
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
2416
|
* @param {*} [options] Override http request option.
|
2417
|
* @throws {RequiredError}
|
2418
|
*/
|
2419
|
async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2420
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
|
2421
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2422
|
},
|
2423
|
}
|
2424
|
};
|
2425
|
|
2426
|
/**
|
2427
|
* AnnotationApi - factory interface
|
2428
|
* @export
|
2429
|
*/
|
2430
|
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
2431
|
const localVarFp = AnnotationApiFp(configuration)
|
2432
|
return {
|
2433
|
/**
|
2434
|
*
|
2435
|
* @param {string} annotationId
|
2436
|
* @param {boolean} [isFinal]
|
2437
|
* @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest]
|
2438
|
* @param {*} [options] Override http request option.
|
2439
|
* @throws {RequiredError}
|
2440
|
*/
|
2441
|
annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: any): AxiosPromise<void> {
|
2442
|
return localVarFp.annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(axios, basePath));
|
2443
|
},
|
2444
|
/**
|
2445
|
*
|
2446
|
* @param {string} annotationId
|
2447
|
* @param {boolean} [isFinal]
|
2448
|
* @param {*} [options] Override http request option.
|
2449
|
* @throws {RequiredError}
|
2450
|
*/
|
2451
|
annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: any): AxiosPromise<AnnotationInfo> {
|
2452
|
return localVarFp.annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(axios, basePath));
|
2453
|
},
|
2454
|
/**
|
2455
|
*
|
2456
|
* @param {string} annotationId
|
2457
|
* @param {string} instanceId
|
2458
|
* @param {boolean} [isFinal]
|
2459
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
2460
|
* @param {*} [options] Override http request option.
|
2461
|
* @throws {RequiredError}
|
2462
|
*/
|
2463
|
annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
|
2464
|
return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
|
2465
|
},
|
2466
|
/**
|
2467
|
*
|
2468
|
* @param {string} annotationId
|
2469
|
* @param {boolean} [isFinal]
|
2470
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
2471
|
* @param {*} [options] Override http request option.
|
2472
|
* @throws {RequiredError}
|
2473
|
*/
|
2474
|
annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
|
2475
|
return localVarFp.annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
|
2476
|
},
|
2477
|
/**
|
2478
|
*
|
2479
|
* @param {string} annotationId
|
2480
|
* @param {string} occurenceId
|
2481
|
* @param {boolean} [isFinal]
|
2482
|
* @param {*} [options] Override http request option.
|
2483
|
* @throws {RequiredError}
|
2484
|
*/
|
2485
|
annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: any): AxiosPromise<void> {
|
2486
|
return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(axios, basePath));
|
2487
|
},
|
2488
|
/**
|
2489
|
*
|
2490
|
* @param {string} annotationId
|
2491
|
* @param {string} occurenceId
|
2492
|
* @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest]
|
2493
|
* @param {*} [options] Override http request option.
|
2494
|
* @throws {RequiredError}
|
2495
|
*/
|
2496
|
annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: any): AxiosPromise<void> {
|
2497
|
return localVarFp.annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(axios, basePath));
|
2498
|
},
|
2499
|
/**
|
2500
|
*
|
2501
|
* @param {string} annotationId
|
2502
|
* @param {boolean} [isFinal]
|
2503
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
2504
|
* @param {*} [options] Override http request option.
|
2505
|
* @throws {RequiredError}
|
2506
|
*/
|
2507
|
annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
|
2508
|
return localVarFp.annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
|
2509
|
},
|
2510
|
/**
|
2511
|
*
|
2512
|
* @param {string} annotationId
|
2513
|
* @param {string} occurenceId
|
2514
|
* @param {boolean} [isFinal]
|
2515
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
2516
|
* @param {*} [options] Override http request option.
|
2517
|
* @throws {RequiredError}
|
2518
|
*/
|
2519
|
annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
|
2520
|
return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
|
2521
|
},
|
2522
|
/**
|
2523
|
*
|
2524
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
2525
|
* @param {*} [options] Override http request option.
|
2526
|
* @throws {RequiredError}
|
2527
|
*/
|
2528
|
annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
|
2529
|
return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
|
2530
|
},
|
2531
|
};
|
2532
|
};
|
2533
|
|
2534
|
/**
|
2535
|
* AnnotationApi - object-oriented interface
|
2536
|
* @export
|
2537
|
* @class AnnotationApi
|
2538
|
* @extends {BaseAPI}
|
2539
|
*/
|
2540
|
export class AnnotationApi extends BaseAPI {
|
2541
|
/**
|
2542
|
*
|
2543
|
* @param {string} annotationId
|
2544
|
* @param {boolean} [isFinal]
|
2545
|
* @param {MarkAnnotationDoneRequest} [markAnnotationDoneRequest]
|
2546
|
* @param {*} [options] Override http request option.
|
2547
|
* @throws {RequiredError}
|
2548
|
* @memberof AnnotationApi
|
2549
|
*/
|
2550
|
public annotationAnnotationIdDonePut(annotationId: string, isFinal?: boolean, markAnnotationDoneRequest?: MarkAnnotationDoneRequest, options?: AxiosRequestConfig) {
|
2551
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdDonePut(annotationId, isFinal, markAnnotationDoneRequest, options).then((request) => request(this.axios, this.basePath));
|
2552
|
}
|
2553
|
|
2554
|
/**
|
2555
|
*
|
2556
|
* @param {string} annotationId
|
2557
|
* @param {boolean} [isFinal]
|
2558
|
* @param {*} [options] Override http request option.
|
2559
|
* @throws {RequiredError}
|
2560
|
* @memberof AnnotationApi
|
2561
|
*/
|
2562
|
public annotationAnnotationIdGet(annotationId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
|
2563
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, isFinal, options).then((request) => request(this.axios, this.basePath));
|
2564
|
}
|
2565
|
|
2566
|
/**
|
2567
|
*
|
2568
|
* @param {string} annotationId
|
2569
|
* @param {string} instanceId
|
2570
|
* @param {boolean} [isFinal]
|
2571
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
2572
|
* @param {*} [options] Override http request option.
|
2573
|
* @throws {RequiredError}
|
2574
|
* @memberof AnnotationApi
|
2575
|
*/
|
2576
|
public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, isFinal?: boolean, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
|
2577
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, isFinal, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
|
2578
|
}
|
2579
|
|
2580
|
/**
|
2581
|
*
|
2582
|
* @param {string} annotationId
|
2583
|
* @param {boolean} [isFinal]
|
2584
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
2585
|
* @param {*} [options] Override http request option.
|
2586
|
* @throws {RequiredError}
|
2587
|
* @memberof AnnotationApi
|
2588
|
*/
|
2589
|
public annotationAnnotationIdNotePost(annotationId: string, isFinal?: boolean, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
|
2590
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, isFinal, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
|
2591
|
}
|
2592
|
|
2593
|
/**
|
2594
|
*
|
2595
|
* @param {string} annotationId
|
2596
|
* @param {string} occurenceId
|
2597
|
* @param {boolean} [isFinal]
|
2598
|
* @param {*} [options] Override http request option.
|
2599
|
* @throws {RequiredError}
|
2600
|
* @memberof AnnotationApi
|
2601
|
*/
|
2602
|
public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, isFinal?: boolean, options?: AxiosRequestConfig) {
|
2603
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, isFinal, options).then((request) => request(this.axios, this.basePath));
|
2604
|
}
|
2605
|
|
2606
|
/**
|
2607
|
*
|
2608
|
* @param {string} annotationId
|
2609
|
* @param {string} occurenceId
|
2610
|
* @param {SetInstanceIsFinalRequest} [setInstanceIsFinalRequest]
|
2611
|
* @param {*} [options] Override http request option.
|
2612
|
* @throws {RequiredError}
|
2613
|
* @memberof AnnotationApi
|
2614
|
*/
|
2615
|
public annotationAnnotationIdOccurenceIdFinalPut(annotationId: string, occurenceId: string, setInstanceIsFinalRequest?: SetInstanceIsFinalRequest, options?: AxiosRequestConfig) {
|
2616
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdFinalPut(annotationId, occurenceId, setInstanceIsFinalRequest, options).then((request) => request(this.axios, this.basePath));
|
2617
|
}
|
2618
|
|
2619
|
/**
|
2620
|
*
|
2621
|
* @param {string} annotationId
|
2622
|
* @param {boolean} [isFinal]
|
2623
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
2624
|
* @param {*} [options] Override http request option.
|
2625
|
* @throws {RequiredError}
|
2626
|
* @memberof AnnotationApi
|
2627
|
*/
|
2628
|
public annotationAnnotationIdPost(annotationId: string, isFinal?: boolean, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
|
2629
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, isFinal, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
|
2630
|
}
|
2631
|
|
2632
|
/**
|
2633
|
*
|
2634
|
* @param {string} annotationId
|
2635
|
* @param {string} occurenceId
|
2636
|
* @param {boolean} [isFinal]
|
2637
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
2638
|
* @param {*} [options] Override http request option.
|
2639
|
* @throws {RequiredError}
|
2640
|
* @memberof AnnotationApi
|
2641
|
*/
|
2642
|
public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, isFinal?: boolean, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
|
2643
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, isFinal, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
|
2644
|
}
|
2645
|
|
2646
|
/**
|
2647
|
*
|
2648
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
2649
|
* @param {*} [options] Override http request option.
|
2650
|
* @throws {RequiredError}
|
2651
|
* @memberof AnnotationApi
|
2652
|
*/
|
2653
|
public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
|
2654
|
return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
|
2655
|
}
|
2656
|
}
|
2657
|
|
2658
|
|
2659
|
/**
|
2660
|
* AuthApi - axios parameter creator
|
2661
|
* @export
|
2662
|
*/
|
2663
|
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
2664
|
return {
|
2665
|
/**
|
2666
|
*
|
2667
|
* @param {LoginRequest} [loginRequest]
|
2668
|
* @param {*} [options] Override http request option.
|
2669
|
* @throws {RequiredError}
|
2670
|
*/
|
2671
|
authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2672
|
const localVarPath = `/auth/login`;
|
2673
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2674
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2675
|
let baseOptions;
|
2676
|
if (configuration) {
|
2677
|
baseOptions = configuration.baseOptions;
|
2678
|
}
|
2679
|
|
2680
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2681
|
const localVarHeaderParameter = {} as any;
|
2682
|
const localVarQueryParameter = {} as any;
|
2683
|
|
2684
|
|
2685
|
|
2686
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2687
|
|
2688
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2689
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2690
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2691
|
localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
|
2692
|
|
2693
|
return {
|
2694
|
url: toPathString(localVarUrlObj),
|
2695
|
options: localVarRequestOptions,
|
2696
|
};
|
2697
|
},
|
2698
|
/**
|
2699
|
*
|
2700
|
* @param {*} [options] Override http request option.
|
2701
|
* @throws {RequiredError}
|
2702
|
*/
|
2703
|
authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2704
|
const localVarPath = `/auth/test/aa`;
|
2705
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2706
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2707
|
let baseOptions;
|
2708
|
if (configuration) {
|
2709
|
baseOptions = configuration.baseOptions;
|
2710
|
}
|
2711
|
|
2712
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
2713
|
const localVarHeaderParameter = {} as any;
|
2714
|
const localVarQueryParameter = {} as any;
|
2715
|
|
2716
|
|
2717
|
|
2718
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2719
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2720
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2721
|
|
2722
|
return {
|
2723
|
url: toPathString(localVarUrlObj),
|
2724
|
options: localVarRequestOptions,
|
2725
|
};
|
2726
|
},
|
2727
|
/**
|
2728
|
*
|
2729
|
* @param {*} [options] Override http request option.
|
2730
|
* @throws {RequiredError}
|
2731
|
*/
|
2732
|
authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2733
|
const localVarPath = `/auth/test`;
|
2734
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2735
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2736
|
let baseOptions;
|
2737
|
if (configuration) {
|
2738
|
baseOptions = configuration.baseOptions;
|
2739
|
}
|
2740
|
|
2741
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
2742
|
const localVarHeaderParameter = {} as any;
|
2743
|
const localVarQueryParameter = {} as any;
|
2744
|
|
2745
|
|
2746
|
|
2747
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2748
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2749
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2750
|
|
2751
|
return {
|
2752
|
url: toPathString(localVarUrlObj),
|
2753
|
options: localVarRequestOptions,
|
2754
|
};
|
2755
|
},
|
2756
|
}
|
2757
|
};
|
2758
|
|
2759
|
/**
|
2760
|
* AuthApi - functional programming interface
|
2761
|
* @export
|
2762
|
*/
|
2763
|
export const AuthApiFp = function(configuration?: Configuration) {
|
2764
|
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
2765
|
return {
|
2766
|
/**
|
2767
|
*
|
2768
|
* @param {LoginRequest} [loginRequest]
|
2769
|
* @param {*} [options] Override http request option.
|
2770
|
* @throws {RequiredError}
|
2771
|
*/
|
2772
|
async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
|
2773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
|
2774
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2775
|
},
|
2776
|
/**
|
2777
|
*
|
2778
|
* @param {*} [options] Override http request option.
|
2779
|
* @throws {RequiredError}
|
2780
|
*/
|
2781
|
async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
|
2782
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
|
2783
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2784
|
},
|
2785
|
/**
|
2786
|
*
|
2787
|
* @param {*} [options] Override http request option.
|
2788
|
* @throws {RequiredError}
|
2789
|
*/
|
2790
|
async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
|
2791
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
|
2792
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2793
|
},
|
2794
|
}
|
2795
|
};
|
2796
|
|
2797
|
/**
|
2798
|
* AuthApi - factory interface
|
2799
|
* @export
|
2800
|
*/
|
2801
|
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
2802
|
const localVarFp = AuthApiFp(configuration)
|
2803
|
return {
|
2804
|
/**
|
2805
|
*
|
2806
|
* @param {LoginRequest} [loginRequest]
|
2807
|
* @param {*} [options] Override http request option.
|
2808
|
* @throws {RequiredError}
|
2809
|
*/
|
2810
|
authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
|
2811
|
return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
|
2812
|
},
|
2813
|
/**
|
2814
|
*
|
2815
|
* @param {*} [options] Override http request option.
|
2816
|
* @throws {RequiredError}
|
2817
|
*/
|
2818
|
authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
|
2819
|
return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
|
2820
|
},
|
2821
|
/**
|
2822
|
*
|
2823
|
* @param {*} [options] Override http request option.
|
2824
|
* @throws {RequiredError}
|
2825
|
*/
|
2826
|
authTestGet(options?: any): AxiosPromise<ClientInfo> {
|
2827
|
return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
|
2828
|
},
|
2829
|
};
|
2830
|
};
|
2831
|
|
2832
|
/**
|
2833
|
* AuthApi - object-oriented interface
|
2834
|
* @export
|
2835
|
* @class AuthApi
|
2836
|
* @extends {BaseAPI}
|
2837
|
*/
|
2838
|
export class AuthApi extends BaseAPI {
|
2839
|
/**
|
2840
|
*
|
2841
|
* @param {LoginRequest} [loginRequest]
|
2842
|
* @param {*} [options] Override http request option.
|
2843
|
* @throws {RequiredError}
|
2844
|
* @memberof AuthApi
|
2845
|
*/
|
2846
|
public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
|
2847
|
return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
2848
|
}
|
2849
|
|
2850
|
/**
|
2851
|
*
|
2852
|
* @param {*} [options] Override http request option.
|
2853
|
* @throws {RequiredError}
|
2854
|
* @memberof AuthApi
|
2855
|
*/
|
2856
|
public authTestAaGet(options?: AxiosRequestConfig) {
|
2857
|
return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
|
2858
|
}
|
2859
|
|
2860
|
/**
|
2861
|
*
|
2862
|
* @param {*} [options] Override http request option.
|
2863
|
* @throws {RequiredError}
|
2864
|
* @memberof AuthApi
|
2865
|
*/
|
2866
|
public authTestGet(options?: AxiosRequestConfig) {
|
2867
|
return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
|
2868
|
}
|
2869
|
}
|
2870
|
|
2871
|
|
2872
|
/**
|
2873
|
* DocumentApi - axios parameter creator
|
2874
|
* @export
|
2875
|
*/
|
2876
|
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
|
2877
|
return {
|
2878
|
/**
|
2879
|
*
|
2880
|
* @param {string} documentId
|
2881
|
* @param {*} [options] Override http request option.
|
2882
|
* @throws {RequiredError}
|
2883
|
*/
|
2884
|
documentDocumentIdFinalPost: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2885
|
// verify required parameter 'documentId' is not null or undefined
|
2886
|
assertParamExists('documentDocumentIdFinalPost', 'documentId', documentId)
|
2887
|
const localVarPath = `/document/{documentId}/final`
|
2888
|
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
2889
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2890
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2891
|
let baseOptions;
|
2892
|
if (configuration) {
|
2893
|
baseOptions = configuration.baseOptions;
|
2894
|
}
|
2895
|
|
2896
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2897
|
const localVarHeaderParameter = {} as any;
|
2898
|
const localVarQueryParameter = {} as any;
|
2899
|
|
2900
|
|
2901
|
|
2902
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2903
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2904
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2905
|
|
2906
|
return {
|
2907
|
url: toPathString(localVarUrlObj),
|
2908
|
options: localVarRequestOptions,
|
2909
|
};
|
2910
|
},
|
2911
|
/**
|
2912
|
*
|
2913
|
* @param {string} documentId
|
2914
|
* @param {*} [options] Override http request option.
|
2915
|
* @throws {RequiredError}
|
2916
|
*/
|
2917
|
documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2918
|
// verify required parameter 'documentId' is not null or undefined
|
2919
|
assertParamExists('documentDocumentIdGet', 'documentId', documentId)
|
2920
|
const localVarPath = `/document/{documentId}`
|
2921
|
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
2922
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2923
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2924
|
let baseOptions;
|
2925
|
if (configuration) {
|
2926
|
baseOptions = configuration.baseOptions;
|
2927
|
}
|
2928
|
|
2929
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
2930
|
const localVarHeaderParameter = {} as any;
|
2931
|
const localVarQueryParameter = {} as any;
|
2932
|
|
2933
|
|
2934
|
|
2935
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2936
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2937
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2938
|
|
2939
|
return {
|
2940
|
url: toPathString(localVarUrlObj),
|
2941
|
options: localVarRequestOptions,
|
2942
|
};
|
2943
|
},
|
2944
|
/**
|
2945
|
*
|
2946
|
* @param {DeleteDocumentsRequest} [deleteDocumentsRequest]
|
2947
|
* @param {*} [options] Override http request option.
|
2948
|
* @throws {RequiredError}
|
2949
|
*/
|
2950
|
documentsDelete: async (deleteDocumentsRequest?: DeleteDocumentsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2951
|
const localVarPath = `/documents`;
|
2952
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2953
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2954
|
let baseOptions;
|
2955
|
if (configuration) {
|
2956
|
baseOptions = configuration.baseOptions;
|
2957
|
}
|
2958
|
|
2959
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
2960
|
const localVarHeaderParameter = {} as any;
|
2961
|
const localVarQueryParameter = {} as any;
|
2962
|
|
2963
|
|
2964
|
|
2965
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2966
|
|
2967
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2968
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2969
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2970
|
localVarRequestOptions.data = serializeDataIfNeeded(deleteDocumentsRequest, localVarRequestOptions, configuration)
|
2971
|
|
2972
|
return {
|
2973
|
url: toPathString(localVarUrlObj),
|
2974
|
options: localVarRequestOptions,
|
2975
|
};
|
2976
|
},
|
2977
|
/**
|
2978
|
*
|
2979
|
* @param {string} documentId
|
2980
|
* @param {string} annotatorId
|
2981
|
* @param {*} [options] Override http request option.
|
2982
|
* @throws {RequiredError}
|
2983
|
*/
|
2984
|
documentsDocumentIdAnnotatorsAnnotatorIdDelete: async (documentId: string, annotatorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2985
|
// verify required parameter 'documentId' is not null or undefined
|
2986
|
assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'documentId', documentId)
|
2987
|
// verify required parameter 'annotatorId' is not null or undefined
|
2988
|
assertParamExists('documentsDocumentIdAnnotatorsAnnotatorIdDelete', 'annotatorId', annotatorId)
|
2989
|
const localVarPath = `/documents/{documentId}/annotators/{annotatorId}`
|
2990
|
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)))
|
2991
|
.replace(`{${"annotatorId"}}`, encodeURIComponent(String(annotatorId)));
|
2992
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2993
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2994
|
let baseOptions;
|
2995
|
if (configuration) {
|
2996
|
baseOptions = configuration.baseOptions;
|
2997
|
}
|
2998
|
|
2999
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
3000
|
const localVarHeaderParameter = {} as any;
|
3001
|
const localVarQueryParameter = {} as any;
|
3002
|
|
3003
|
|
3004
|
|
3005
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3006
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3007
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3008
|
|
3009
|
return {
|
3010
|
url: toPathString(localVarUrlObj),
|
3011
|
options: localVarRequestOptions,
|
3012
|
};
|
3013
|
},
|
3014
|
/**
|
3015
|
*
|
3016
|
* @param {ExportRequest} [exportRequest]
|
3017
|
* @param {*} [options] Override http request option.
|
3018
|
* @throws {RequiredError}
|
3019
|
*/
|
3020
|
documentsExportPost: async (exportRequest?: ExportRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3021
|
const localVarPath = `/documents/export`;
|
3022
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3023
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3024
|
let baseOptions;
|
3025
|
if (configuration) {
|
3026
|
baseOptions = configuration.baseOptions;
|
3027
|
}
|
3028
|
|
3029
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3030
|
const localVarHeaderParameter = {} as any;
|
3031
|
const localVarQueryParameter = {} as any;
|
3032
|
|
3033
|
|
3034
|
|
3035
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3036
|
|
3037
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3038
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3039
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3040
|
localVarRequestOptions.data = serializeDataIfNeeded(exportRequest, localVarRequestOptions, configuration)
|
3041
|
|
3042
|
return {
|
3043
|
url: toPathString(localVarUrlObj),
|
3044
|
options: localVarRequestOptions,
|
3045
|
};
|
3046
|
},
|
3047
|
/**
|
3048
|
*
|
3049
|
* @param {*} [options] Override http request option.
|
3050
|
* @throws {RequiredError}
|
3051
|
*/
|
3052
|
documentsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3053
|
const localVarPath = `/documents`;
|
3054
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3055
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3056
|
let baseOptions;
|
3057
|
if (configuration) {
|
3058
|
baseOptions = configuration.baseOptions;
|
3059
|
}
|
3060
|
|
3061
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
3062
|
const localVarHeaderParameter = {} as any;
|
3063
|
const localVarQueryParameter = {} as any;
|
3064
|
|
3065
|
|
3066
|
|
3067
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3068
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3069
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3070
|
|
3071
|
return {
|
3072
|
url: toPathString(localVarUrlObj),
|
3073
|
options: localVarRequestOptions,
|
3074
|
};
|
3075
|
},
|
3076
|
/**
|
3077
|
*
|
3078
|
* @param {DocumentAddRequest} [documentAddRequest]
|
3079
|
* @param {*} [options] Override http request option.
|
3080
|
* @throws {RequiredError}
|
3081
|
*/
|
3082
|
documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3083
|
const localVarPath = `/documents`;
|
3084
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3085
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3086
|
let baseOptions;
|
3087
|
if (configuration) {
|
3088
|
baseOptions = configuration.baseOptions;
|
3089
|
}
|
3090
|
|
3091
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3092
|
const localVarHeaderParameter = {} as any;
|
3093
|
const localVarQueryParameter = {} as any;
|
3094
|
|
3095
|
|
3096
|
|
3097
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3098
|
|
3099
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3101
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3102
|
localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
|
3103
|
|
3104
|
return {
|
3105
|
url: toPathString(localVarUrlObj),
|
3106
|
options: localVarRequestOptions,
|
3107
|
};
|
3108
|
},
|
3109
|
/**
|
3110
|
*
|
3111
|
* @param {*} [options] Override http request option.
|
3112
|
* @throws {RequiredError}
|
3113
|
*/
|
3114
|
documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3115
|
const localVarPath = `/documents/requiredAnnotations/global`;
|
3116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3117
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3118
|
let baseOptions;
|
3119
|
if (configuration) {
|
3120
|
baseOptions = configuration.baseOptions;
|
3121
|
}
|
3122
|
|
3123
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
3124
|
const localVarHeaderParameter = {} as any;
|
3125
|
const localVarQueryParameter = {} as any;
|
3126
|
|
3127
|
|
3128
|
|
3129
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3130
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3131
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3132
|
|
3133
|
return {
|
3134
|
url: toPathString(localVarUrlObj),
|
3135
|
options: localVarRequestOptions,
|
3136
|
};
|
3137
|
},
|
3138
|
/**
|
3139
|
*
|
3140
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
3141
|
* @param {*} [options] Override http request option.
|
3142
|
* @throws {RequiredError}
|
3143
|
*/
|
3144
|
documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3145
|
const localVarPath = `/documents/requiredAnnotations/global`;
|
3146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3148
|
let baseOptions;
|
3149
|
if (configuration) {
|
3150
|
baseOptions = configuration.baseOptions;
|
3151
|
}
|
3152
|
|
3153
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3154
|
const localVarHeaderParameter = {} as any;
|
3155
|
const localVarQueryParameter = {} as any;
|
3156
|
|
3157
|
|
3158
|
|
3159
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3160
|
|
3161
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3162
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3163
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3164
|
localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
|
3165
|
|
3166
|
return {
|
3167
|
url: toPathString(localVarUrlObj),
|
3168
|
options: localVarRequestOptions,
|
3169
|
};
|
3170
|
},
|
3171
|
/**
|
3172
|
*
|
3173
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
3174
|
* @param {*} [options] Override http request option.
|
3175
|
* @throws {RequiredError}
|
3176
|
*/
|
3177
|
documentsRequiredAnnotationsPost: async (setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3178
|
const localVarPath = `/documents/requiredAnnotations`;
|
3179
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3180
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3181
|
let baseOptions;
|
3182
|
if (configuration) {
|
3183
|
baseOptions = configuration.baseOptions;
|
3184
|
}
|
3185
|
|
3186
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3187
|
const localVarHeaderParameter = {} as any;
|
3188
|
const localVarQueryParameter = {} as any;
|
3189
|
|
3190
|
|
3191
|
|
3192
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3193
|
|
3194
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3195
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3196
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3197
|
localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
|
3198
|
|
3199
|
return {
|
3200
|
url: toPathString(localVarUrlObj),
|
3201
|
options: localVarRequestOptions,
|
3202
|
};
|
3203
|
},
|
3204
|
}
|
3205
|
};
|
3206
|
|
3207
|
/**
|
3208
|
* DocumentApi - functional programming interface
|
3209
|
* @export
|
3210
|
*/
|
3211
|
export const DocumentApiFp = function(configuration?: Configuration) {
|
3212
|
const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
|
3213
|
return {
|
3214
|
/**
|
3215
|
*
|
3216
|
* @param {string} documentId
|
3217
|
* @param {*} [options] Override http request option.
|
3218
|
* @throws {RequiredError}
|
3219
|
*/
|
3220
|
async documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateFinalAnnotationResponse>> {
|
3221
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdFinalPost(documentId, options);
|
3222
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3223
|
},
|
3224
|
/**
|
3225
|
*
|
3226
|
* @param {string} documentId
|
3227
|
* @param {*} [options] Override http request option.
|
3228
|
* @throws {RequiredError}
|
3229
|
*/
|
3230
|
async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
|
3231
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
|
3232
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3233
|
},
|
3234
|
/**
|
3235
|
*
|
3236
|
* @param {DeleteDocumentsRequest} [deleteDocumentsRequest]
|
3237
|
* @param {*} [options] Override http request option.
|
3238
|
* @throws {RequiredError}
|
3239
|
*/
|
3240
|
async documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3241
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDelete(deleteDocumentsRequest, options);
|
3242
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3243
|
},
|
3244
|
/**
|
3245
|
*
|
3246
|
* @param {string} documentId
|
3247
|
* @param {string} annotatorId
|
3248
|
* @param {*} [options] Override http request option.
|
3249
|
* @throws {RequiredError}
|
3250
|
*/
|
3251
|
async documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3252
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options);
|
3253
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3254
|
},
|
3255
|
/**
|
3256
|
*
|
3257
|
* @param {ExportRequest} [exportRequest]
|
3258
|
* @param {*} [options] Override http request option.
|
3259
|
* @throws {RequiredError}
|
3260
|
*/
|
3261
|
async documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
3262
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsExportPost(exportRequest, options);
|
3263
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3264
|
},
|
3265
|
/**
|
3266
|
*
|
3267
|
* @param {*} [options] Override http request option.
|
3268
|
* @throws {RequiredError}
|
3269
|
*/
|
3270
|
async documentsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
|
3271
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(options);
|
3272
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3273
|
},
|
3274
|
/**
|
3275
|
*
|
3276
|
* @param {DocumentAddRequest} [documentAddRequest]
|
3277
|
* @param {*} [options] Override http request option.
|
3278
|
* @throws {RequiredError}
|
3279
|
*/
|
3280
|
async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3281
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
|
3282
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3283
|
},
|
3284
|
/**
|
3285
|
*
|
3286
|
* @param {*} [options] Override http request option.
|
3287
|
* @throws {RequiredError}
|
3288
|
*/
|
3289
|
async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
|
3290
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
|
3291
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3292
|
},
|
3293
|
/**
|
3294
|
*
|
3295
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
3296
|
* @param {*} [options] Override http request option.
|
3297
|
* @throws {RequiredError}
|
3298
|
*/
|
3299
|
async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3300
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
|
3301
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3302
|
},
|
3303
|
/**
|
3304
|
*
|
3305
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
3306
|
* @param {*} [options] Override http request option.
|
3307
|
* @throws {RequiredError}
|
3308
|
*/
|
3309
|
async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3310
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
|
3311
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3312
|
},
|
3313
|
}
|
3314
|
};
|
3315
|
|
3316
|
/**
|
3317
|
* DocumentApi - factory interface
|
3318
|
* @export
|
3319
|
*/
|
3320
|
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
3321
|
const localVarFp = DocumentApiFp(configuration)
|
3322
|
return {
|
3323
|
/**
|
3324
|
*
|
3325
|
* @param {string} documentId
|
3326
|
* @param {*} [options] Override http request option.
|
3327
|
* @throws {RequiredError}
|
3328
|
*/
|
3329
|
documentDocumentIdFinalPost(documentId: string, options?: any): AxiosPromise<CreateFinalAnnotationResponse> {
|
3330
|
return localVarFp.documentDocumentIdFinalPost(documentId, options).then((request) => request(axios, basePath));
|
3331
|
},
|
3332
|
/**
|
3333
|
*
|
3334
|
* @param {string} documentId
|
3335
|
* @param {*} [options] Override http request option.
|
3336
|
* @throws {RequiredError}
|
3337
|
*/
|
3338
|
documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
|
3339
|
return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
|
3340
|
},
|
3341
|
/**
|
3342
|
*
|
3343
|
* @param {DeleteDocumentsRequest} [deleteDocumentsRequest]
|
3344
|
* @param {*} [options] Override http request option.
|
3345
|
* @throws {RequiredError}
|
3346
|
*/
|
3347
|
documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: any): AxiosPromise<void> {
|
3348
|
return localVarFp.documentsDelete(deleteDocumentsRequest, options).then((request) => request(axios, basePath));
|
3349
|
},
|
3350
|
/**
|
3351
|
*
|
3352
|
* @param {string} documentId
|
3353
|
* @param {string} annotatorId
|
3354
|
* @param {*} [options] Override http request option.
|
3355
|
* @throws {RequiredError}
|
3356
|
*/
|
3357
|
documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: any): AxiosPromise<void> {
|
3358
|
return localVarFp.documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(axios, basePath));
|
3359
|
},
|
3360
|
/**
|
3361
|
*
|
3362
|
* @param {ExportRequest} [exportRequest]
|
3363
|
* @param {*} [options] Override http request option.
|
3364
|
* @throws {RequiredError}
|
3365
|
*/
|
3366
|
documentsExportPost(exportRequest?: ExportRequest, options?: any): AxiosPromise<string> {
|
3367
|
return localVarFp.documentsExportPost(exportRequest, options).then((request) => request(axios, basePath));
|
3368
|
},
|
3369
|
/**
|
3370
|
*
|
3371
|
* @param {*} [options] Override http request option.
|
3372
|
* @throws {RequiredError}
|
3373
|
*/
|
3374
|
documentsGet(options?: any): AxiosPromise<DocumentListResponse> {
|
3375
|
return localVarFp.documentsGet(options).then((request) => request(axios, basePath));
|
3376
|
},
|
3377
|
/**
|
3378
|
*
|
3379
|
* @param {DocumentAddRequest} [documentAddRequest]
|
3380
|
* @param {*} [options] Override http request option.
|
3381
|
* @throws {RequiredError}
|
3382
|
*/
|
3383
|
documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
|
3384
|
return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
|
3385
|
},
|
3386
|
/**
|
3387
|
*
|
3388
|
* @param {*} [options] Override http request option.
|
3389
|
* @throws {RequiredError}
|
3390
|
*/
|
3391
|
documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
|
3392
|
return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
|
3393
|
},
|
3394
|
/**
|
3395
|
*
|
3396
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
3397
|
* @param {*} [options] Override http request option.
|
3398
|
* @throws {RequiredError}
|
3399
|
*/
|
3400
|
documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
|
3401
|
return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
|
3402
|
},
|
3403
|
/**
|
3404
|
*
|
3405
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
3406
|
* @param {*} [options] Override http request option.
|
3407
|
* @throws {RequiredError}
|
3408
|
*/
|
3409
|
documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
|
3410
|
return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
|
3411
|
},
|
3412
|
};
|
3413
|
};
|
3414
|
|
3415
|
/**
|
3416
|
* DocumentApi - object-oriented interface
|
3417
|
* @export
|
3418
|
* @class DocumentApi
|
3419
|
* @extends {BaseAPI}
|
3420
|
*/
|
3421
|
export class DocumentApi extends BaseAPI {
|
3422
|
/**
|
3423
|
*
|
3424
|
* @param {string} documentId
|
3425
|
* @param {*} [options] Override http request option.
|
3426
|
* @throws {RequiredError}
|
3427
|
* @memberof DocumentApi
|
3428
|
*/
|
3429
|
public documentDocumentIdFinalPost(documentId: string, options?: AxiosRequestConfig) {
|
3430
|
return DocumentApiFp(this.configuration).documentDocumentIdFinalPost(documentId, options).then((request) => request(this.axios, this.basePath));
|
3431
|
}
|
3432
|
|
3433
|
/**
|
3434
|
*
|
3435
|
* @param {string} documentId
|
3436
|
* @param {*} [options] Override http request option.
|
3437
|
* @throws {RequiredError}
|
3438
|
* @memberof DocumentApi
|
3439
|
*/
|
3440
|
public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
|
3441
|
return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
|
3442
|
}
|
3443
|
|
3444
|
/**
|
3445
|
*
|
3446
|
* @param {DeleteDocumentsRequest} [deleteDocumentsRequest]
|
3447
|
* @param {*} [options] Override http request option.
|
3448
|
* @throws {RequiredError}
|
3449
|
* @memberof DocumentApi
|
3450
|
*/
|
3451
|
public documentsDelete(deleteDocumentsRequest?: DeleteDocumentsRequest, options?: AxiosRequestConfig) {
|
3452
|
return DocumentApiFp(this.configuration).documentsDelete(deleteDocumentsRequest, options).then((request) => request(this.axios, this.basePath));
|
3453
|
}
|
3454
|
|
3455
|
/**
|
3456
|
*
|
3457
|
* @param {string} documentId
|
3458
|
* @param {string} annotatorId
|
3459
|
* @param {*} [options] Override http request option.
|
3460
|
* @throws {RequiredError}
|
3461
|
* @memberof DocumentApi
|
3462
|
*/
|
3463
|
public documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId: string, annotatorId: string, options?: AxiosRequestConfig) {
|
3464
|
return DocumentApiFp(this.configuration).documentsDocumentIdAnnotatorsAnnotatorIdDelete(documentId, annotatorId, options).then((request) => request(this.axios, this.basePath));
|
3465
|
}
|
3466
|
|
3467
|
/**
|
3468
|
*
|
3469
|
* @param {ExportRequest} [exportRequest]
|
3470
|
* @param {*} [options] Override http request option.
|
3471
|
* @throws {RequiredError}
|
3472
|
* @memberof DocumentApi
|
3473
|
*/
|
3474
|
public documentsExportPost(exportRequest?: ExportRequest, options?: AxiosRequestConfig) {
|
3475
|
return DocumentApiFp(this.configuration).documentsExportPost(exportRequest, options).then((request) => request(this.axios, this.basePath));
|
3476
|
}
|
3477
|
|
3478
|
/**
|
3479
|
*
|
3480
|
* @param {*} [options] Override http request option.
|
3481
|
* @throws {RequiredError}
|
3482
|
* @memberof DocumentApi
|
3483
|
*/
|
3484
|
public documentsGet(options?: AxiosRequestConfig) {
|
3485
|
return DocumentApiFp(this.configuration).documentsGet(options).then((request) => request(this.axios, this.basePath));
|
3486
|
}
|
3487
|
|
3488
|
/**
|
3489
|
*
|
3490
|
* @param {DocumentAddRequest} [documentAddRequest]
|
3491
|
* @param {*} [options] Override http request option.
|
3492
|
* @throws {RequiredError}
|
3493
|
* @memberof DocumentApi
|
3494
|
*/
|
3495
|
public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
|
3496
|
return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
|
3497
|
}
|
3498
|
|
3499
|
/**
|
3500
|
*
|
3501
|
* @param {*} [options] Override http request option.
|
3502
|
* @throws {RequiredError}
|
3503
|
* @memberof DocumentApi
|
3504
|
*/
|
3505
|
public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
|
3506
|
return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
|
3507
|
}
|
3508
|
|
3509
|
/**
|
3510
|
*
|
3511
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
3512
|
* @param {*} [options] Override http request option.
|
3513
|
* @throws {RequiredError}
|
3514
|
* @memberof DocumentApi
|
3515
|
*/
|
3516
|
public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
|
3517
|
return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
|
3518
|
}
|
3519
|
|
3520
|
/**
|
3521
|
*
|
3522
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
3523
|
* @param {*} [options] Override http request option.
|
3524
|
* @throws {RequiredError}
|
3525
|
* @memberof DocumentApi
|
3526
|
*/
|
3527
|
public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
|
3528
|
return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
|
3529
|
}
|
3530
|
}
|
3531
|
|
3532
|
|
3533
|
/**
|
3534
|
* TagApi - axios parameter creator
|
3535
|
* @export
|
3536
|
*/
|
3537
|
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
|
3538
|
return {
|
3539
|
/**
|
3540
|
*
|
3541
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
3542
|
* @param {*} [options] Override http request option.
|
3543
|
* @throws {RequiredError}
|
3544
|
*/
|
3545
|
categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3546
|
const localVarPath = `/categories`;
|
3547
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3548
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3549
|
let baseOptions;
|
3550
|
if (configuration) {
|
3551
|
baseOptions = configuration.baseOptions;
|
3552
|
}
|
3553
|
|
3554
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3555
|
const localVarHeaderParameter = {} as any;
|
3556
|
const localVarQueryParameter = {} as any;
|
3557
|
|
3558
|
|
3559
|
|
3560
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3561
|
|
3562
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3563
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3564
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3565
|
localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
|
3566
|
|
3567
|
return {
|
3568
|
url: toPathString(localVarUrlObj),
|
3569
|
options: localVarRequestOptions,
|
3570
|
};
|
3571
|
},
|
3572
|
/**
|
3573
|
*
|
3574
|
* @param {string} categoryId
|
3575
|
* @param {*} [options] Override http request option.
|
3576
|
* @throws {RequiredError}
|
3577
|
*/
|
3578
|
categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3579
|
// verify required parameter 'categoryId' is not null or undefined
|
3580
|
assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
|
3581
|
const localVarPath = `/category/{categoryId}`
|
3582
|
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
|
3583
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3584
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3585
|
let baseOptions;
|
3586
|
if (configuration) {
|
3587
|
baseOptions = configuration.baseOptions;
|
3588
|
}
|
3589
|
|
3590
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
3591
|
const localVarHeaderParameter = {} as any;
|
3592
|
const localVarQueryParameter = {} as any;
|
3593
|
|
3594
|
|
3595
|
|
3596
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3597
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3598
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3599
|
|
3600
|
return {
|
3601
|
url: toPathString(localVarUrlObj),
|
3602
|
options: localVarRequestOptions,
|
3603
|
};
|
3604
|
},
|
3605
|
/**
|
3606
|
*
|
3607
|
* @param {string} categoryId
|
3608
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
3609
|
* @param {*} [options] Override http request option.
|
3610
|
* @throws {RequiredError}
|
3611
|
*/
|
3612
|
categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3613
|
// verify required parameter 'categoryId' is not null or undefined
|
3614
|
assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
|
3615
|
const localVarPath = `/category/{categoryId}`
|
3616
|
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
|
3617
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3618
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3619
|
let baseOptions;
|
3620
|
if (configuration) {
|
3621
|
baseOptions = configuration.baseOptions;
|
3622
|
}
|
3623
|
|
3624
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
3625
|
const localVarHeaderParameter = {} as any;
|
3626
|
const localVarQueryParameter = {} as any;
|
3627
|
|
3628
|
|
3629
|
|
3630
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3631
|
|
3632
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3633
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3634
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3635
|
localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
|
3636
|
|
3637
|
return {
|
3638
|
url: toPathString(localVarUrlObj),
|
3639
|
options: localVarRequestOptions,
|
3640
|
};
|
3641
|
},
|
3642
|
/**
|
3643
|
*
|
3644
|
* @param {string} subtagId
|
3645
|
* @param {*} [options] Override http request option.
|
3646
|
* @throws {RequiredError}
|
3647
|
*/
|
3648
|
subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3649
|
// verify required parameter 'subtagId' is not null or undefined
|
3650
|
assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
|
3651
|
const localVarPath = `/subtag/{subtagId}`
|
3652
|
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
|
3653
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3654
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3655
|
let baseOptions;
|
3656
|
if (configuration) {
|
3657
|
baseOptions = configuration.baseOptions;
|
3658
|
}
|
3659
|
|
3660
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
3661
|
const localVarHeaderParameter = {} as any;
|
3662
|
const localVarQueryParameter = {} as any;
|
3663
|
|
3664
|
|
3665
|
|
3666
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3667
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3668
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3669
|
|
3670
|
return {
|
3671
|
url: toPathString(localVarUrlObj),
|
3672
|
options: localVarRequestOptions,
|
3673
|
};
|
3674
|
},
|
3675
|
/**
|
3676
|
*
|
3677
|
* @param {string} subtagId
|
3678
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
3679
|
* @param {*} [options] Override http request option.
|
3680
|
* @throws {RequiredError}
|
3681
|
*/
|
3682
|
subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3683
|
// verify required parameter 'subtagId' is not null or undefined
|
3684
|
assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
|
3685
|
const localVarPath = `/subtag/{subtagId}`
|
3686
|
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
|
3687
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3688
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3689
|
let baseOptions;
|
3690
|
if (configuration) {
|
3691
|
baseOptions = configuration.baseOptions;
|
3692
|
}
|
3693
|
|
3694
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
3695
|
const localVarHeaderParameter = {} as any;
|
3696
|
const localVarQueryParameter = {} as any;
|
3697
|
|
3698
|
|
3699
|
|
3700
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3701
|
|
3702
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3703
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3704
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3705
|
localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
|
3706
|
|
3707
|
return {
|
3708
|
url: toPathString(localVarUrlObj),
|
3709
|
options: localVarRequestOptions,
|
3710
|
};
|
3711
|
},
|
3712
|
/**
|
3713
|
*
|
3714
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
3715
|
* @param {*} [options] Override http request option.
|
3716
|
* @throws {RequiredError}
|
3717
|
*/
|
3718
|
subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3719
|
const localVarPath = `/subtags`;
|
3720
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3721
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3722
|
let baseOptions;
|
3723
|
if (configuration) {
|
3724
|
baseOptions = configuration.baseOptions;
|
3725
|
}
|
3726
|
|
3727
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3728
|
const localVarHeaderParameter = {} as any;
|
3729
|
const localVarQueryParameter = {} as any;
|
3730
|
|
3731
|
|
3732
|
|
3733
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3734
|
|
3735
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3736
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3737
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3738
|
localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
|
3739
|
|
3740
|
return {
|
3741
|
url: toPathString(localVarUrlObj),
|
3742
|
options: localVarRequestOptions,
|
3743
|
};
|
3744
|
},
|
3745
|
/**
|
3746
|
*
|
3747
|
* @param {string} tagId
|
3748
|
* @param {*} [options] Override http request option.
|
3749
|
* @throws {RequiredError}
|
3750
|
*/
|
3751
|
tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3752
|
// verify required parameter 'tagId' is not null or undefined
|
3753
|
assertParamExists('tagTagIdDelete', 'tagId', tagId)
|
3754
|
const localVarPath = `/tag/{tagId}`
|
3755
|
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
3756
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3757
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3758
|
let baseOptions;
|
3759
|
if (configuration) {
|
3760
|
baseOptions = configuration.baseOptions;
|
3761
|
}
|
3762
|
|
3763
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
3764
|
const localVarHeaderParameter = {} as any;
|
3765
|
const localVarQueryParameter = {} as any;
|
3766
|
|
3767
|
|
3768
|
|
3769
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3770
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3771
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3772
|
|
3773
|
return {
|
3774
|
url: toPathString(localVarUrlObj),
|
3775
|
options: localVarRequestOptions,
|
3776
|
};
|
3777
|
},
|
3778
|
/**
|
3779
|
*
|
3780
|
* @param {string} tagId
|
3781
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
3782
|
* @param {*} [options] Override http request option.
|
3783
|
* @throws {RequiredError}
|
3784
|
*/
|
3785
|
tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3786
|
// verify required parameter 'tagId' is not null or undefined
|
3787
|
assertParamExists('tagTagIdPut', 'tagId', tagId)
|
3788
|
const localVarPath = `/tag/{tagId}`
|
3789
|
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
3790
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3791
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3792
|
let baseOptions;
|
3793
|
if (configuration) {
|
3794
|
baseOptions = configuration.baseOptions;
|
3795
|
}
|
3796
|
|
3797
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
3798
|
const localVarHeaderParameter = {} as any;
|
3799
|
const localVarQueryParameter = {} as any;
|
3800
|
|
3801
|
|
3802
|
|
3803
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3804
|
|
3805
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3806
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3807
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3808
|
localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
|
3809
|
|
3810
|
return {
|
3811
|
url: toPathString(localVarUrlObj),
|
3812
|
options: localVarRequestOptions,
|
3813
|
};
|
3814
|
},
|
3815
|
/**
|
3816
|
*
|
3817
|
* @param {*} [options] Override http request option.
|
3818
|
* @throws {RequiredError}
|
3819
|
*/
|
3820
|
tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3821
|
const localVarPath = `/tags`;
|
3822
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3823
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3824
|
let baseOptions;
|
3825
|
if (configuration) {
|
3826
|
baseOptions = configuration.baseOptions;
|
3827
|
}
|
3828
|
|
3829
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
3830
|
const localVarHeaderParameter = {} as any;
|
3831
|
const localVarQueryParameter = {} as any;
|
3832
|
|
3833
|
|
3834
|
|
3835
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3836
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3837
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3838
|
|
3839
|
return {
|
3840
|
url: toPathString(localVarUrlObj),
|
3841
|
options: localVarRequestOptions,
|
3842
|
};
|
3843
|
},
|
3844
|
/**
|
3845
|
*
|
3846
|
* @param {CreateTagRequest} [createTagRequest]
|
3847
|
* @param {*} [options] Override http request option.
|
3848
|
* @throws {RequiredError}
|
3849
|
*/
|
3850
|
tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3851
|
const localVarPath = `/tags`;
|
3852
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3853
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3854
|
let baseOptions;
|
3855
|
if (configuration) {
|
3856
|
baseOptions = configuration.baseOptions;
|
3857
|
}
|
3858
|
|
3859
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3860
|
const localVarHeaderParameter = {} as any;
|
3861
|
const localVarQueryParameter = {} as any;
|
3862
|
|
3863
|
|
3864
|
|
3865
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3866
|
|
3867
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3868
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3869
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3870
|
localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
|
3871
|
|
3872
|
return {
|
3873
|
url: toPathString(localVarUrlObj),
|
3874
|
options: localVarRequestOptions,
|
3875
|
};
|
3876
|
},
|
3877
|
}
|
3878
|
};
|
3879
|
|
3880
|
/**
|
3881
|
* TagApi - functional programming interface
|
3882
|
* @export
|
3883
|
*/
|
3884
|
export const TagApiFp = function(configuration?: Configuration) {
|
3885
|
const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
|
3886
|
return {
|
3887
|
/**
|
3888
|
*
|
3889
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
3890
|
* @param {*} [options] Override http request option.
|
3891
|
* @throws {RequiredError}
|
3892
|
*/
|
3893
|
async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3894
|
const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options);
|
3895
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3896
|
},
|
3897
|
/**
|
3898
|
*
|
3899
|
* @param {string} categoryId
|
3900
|
* @param {*} [options] Override http request option.
|
3901
|
* @throws {RequiredError}
|
3902
|
*/
|
3903
|
async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3904
|
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options);
|
3905
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3906
|
},
|
3907
|
/**
|
3908
|
*
|
3909
|
* @param {string} categoryId
|
3910
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
3911
|
* @param {*} [options] Override http request option.
|
3912
|
* @throws {RequiredError}
|
3913
|
*/
|
3914
|
async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3915
|
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options);
|
3916
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3917
|
},
|
3918
|
/**
|
3919
|
*
|
3920
|
* @param {string} subtagId
|
3921
|
* @param {*} [options] Override http request option.
|
3922
|
* @throws {RequiredError}
|
3923
|
*/
|
3924
|
async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3925
|
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options);
|
3926
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3927
|
},
|
3928
|
/**
|
3929
|
*
|
3930
|
* @param {string} subtagId
|
3931
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
3932
|
* @param {*} [options] Override http request option.
|
3933
|
* @throws {RequiredError}
|
3934
|
*/
|
3935
|
async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3936
|
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options);
|
3937
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3938
|
},
|
3939
|
/**
|
3940
|
*
|
3941
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
3942
|
* @param {*} [options] Override http request option.
|
3943
|
* @throws {RequiredError}
|
3944
|
*/
|
3945
|
async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3946
|
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options);
|
3947
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3948
|
},
|
3949
|
/**
|
3950
|
*
|
3951
|
* @param {string} tagId
|
3952
|
* @param {*} [options] Override http request option.
|
3953
|
* @throws {RequiredError}
|
3954
|
*/
|
3955
|
async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3956
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options);
|
3957
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3958
|
},
|
3959
|
/**
|
3960
|
*
|
3961
|
* @param {string} tagId
|
3962
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
3963
|
* @param {*} [options] Override http request option.
|
3964
|
* @throws {RequiredError}
|
3965
|
*/
|
3966
|
async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3967
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options);
|
3968
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3969
|
},
|
3970
|
/**
|
3971
|
*
|
3972
|
* @param {*} [options] Override http request option.
|
3973
|
* @throws {RequiredError}
|
3974
|
*/
|
3975
|
async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
|
3976
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
|
3977
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3978
|
},
|
3979
|
/**
|
3980
|
*
|
3981
|
* @param {CreateTagRequest} [createTagRequest]
|
3982
|
* @param {*} [options] Override http request option.
|
3983
|
* @throws {RequiredError}
|
3984
|
*/
|
3985
|
async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3986
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options);
|
3987
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3988
|
},
|
3989
|
}
|
3990
|
};
|
3991
|
|
3992
|
/**
|
3993
|
* TagApi - factory interface
|
3994
|
* @export
|
3995
|
*/
|
3996
|
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
3997
|
const localVarFp = TagApiFp(configuration)
|
3998
|
return {
|
3999
|
/**
|
4000
|
*
|
4001
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
4002
|
* @param {*} [options] Override http request option.
|
4003
|
* @throws {RequiredError}
|
4004
|
*/
|
4005
|
categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> {
|
4006
|
return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath));
|
4007
|
},
|
4008
|
/**
|
4009
|
*
|
4010
|
* @param {string} categoryId
|
4011
|
* @param {*} [options] Override http request option.
|
4012
|
* @throws {RequiredError}
|
4013
|
*/
|
4014
|
categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> {
|
4015
|
return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath));
|
4016
|
},
|
4017
|
/**
|
4018
|
*
|
4019
|
* @param {string} categoryId
|
4020
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
4021
|
* @param {*} [options] Override http request option.
|
4022
|
* @throws {RequiredError}
|
4023
|
*/
|
4024
|
categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> {
|
4025
|
return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath));
|
4026
|
},
|
4027
|
/**
|
4028
|
*
|
4029
|
* @param {string} subtagId
|
4030
|
* @param {*} [options] Override http request option.
|
4031
|
* @throws {RequiredError}
|
4032
|
*/
|
4033
|
subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> {
|
4034
|
return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath));
|
4035
|
},
|
4036
|
/**
|
4037
|
*
|
4038
|
* @param {string} subtagId
|
4039
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
4040
|
* @param {*} [options] Override http request option.
|
4041
|
* @throws {RequiredError}
|
4042
|
*/
|
4043
|
subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> {
|
4044
|
return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath));
|
4045
|
},
|
4046
|
/**
|
4047
|
*
|
4048
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
4049
|
* @param {*} [options] Override http request option.
|
4050
|
* @throws {RequiredError}
|
4051
|
*/
|
4052
|
subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> {
|
4053
|
return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath));
|
4054
|
},
|
4055
|
/**
|
4056
|
*
|
4057
|
* @param {string} tagId
|
4058
|
* @param {*} [options] Override http request option.
|
4059
|
* @throws {RequiredError}
|
4060
|
*/
|
4061
|
tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> {
|
4062
|
return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
|
4063
|
},
|
4064
|
/**
|
4065
|
*
|
4066
|
* @param {string} tagId
|
4067
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
4068
|
* @param {*} [options] Override http request option.
|
4069
|
* @throws {RequiredError}
|
4070
|
*/
|
4071
|
tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> {
|
4072
|
return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath));
|
4073
|
},
|
4074
|
/**
|
4075
|
*
|
4076
|
* @param {*} [options] Override http request option.
|
4077
|
* @throws {RequiredError}
|
4078
|
*/
|
4079
|
tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
|
4080
|
return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
|
4081
|
},
|
4082
|
/**
|
4083
|
*
|
4084
|
* @param {CreateTagRequest} [createTagRequest]
|
4085
|
* @param {*} [options] Override http request option.
|
4086
|
* @throws {RequiredError}
|
4087
|
*/
|
4088
|
tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> {
|
4089
|
return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath));
|
4090
|
},
|
4091
|
};
|
4092
|
};
|
4093
|
|
4094
|
/**
|
4095
|
* TagApi - object-oriented interface
|
4096
|
* @export
|
4097
|
* @class TagApi
|
4098
|
* @extends {BaseAPI}
|
4099
|
*/
|
4100
|
export class TagApi extends BaseAPI {
|
4101
|
/**
|
4102
|
*
|
4103
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
4104
|
* @param {*} [options] Override http request option.
|
4105
|
* @throws {RequiredError}
|
4106
|
* @memberof TagApi
|
4107
|
*/
|
4108
|
public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
|
4109
|
return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
|
4110
|
}
|
4111
|
|
4112
|
/**
|
4113
|
*
|
4114
|
* @param {string} categoryId
|
4115
|
* @param {*} [options] Override http request option.
|
4116
|
* @throws {RequiredError}
|
4117
|
* @memberof TagApi
|
4118
|
*/
|
4119
|
public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
|
4120
|
return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
|
4121
|
}
|
4122
|
|
4123
|
/**
|
4124
|
*
|
4125
|
* @param {string} categoryId
|
4126
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
4127
|
* @param {*} [options] Override http request option.
|
4128
|
* @throws {RequiredError}
|
4129
|
* @memberof TagApi
|
4130
|
*/
|
4131
|
public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
|
4132
|
return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
|
4133
|
}
|
4134
|
|
4135
|
/**
|
4136
|
*
|
4137
|
* @param {string} subtagId
|
4138
|
* @param {*} [options] Override http request option.
|
4139
|
* @throws {RequiredError}
|
4140
|
* @memberof TagApi
|
4141
|
*/
|
4142
|
public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
|
4143
|
return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
|
4144
|
}
|
4145
|
|
4146
|
/**
|
4147
|
*
|
4148
|
* @param {string} subtagId
|
4149
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
4150
|
* @param {*} [options] Override http request option.
|
4151
|
* @throws {RequiredError}
|
4152
|
* @memberof TagApi
|
4153
|
*/
|
4154
|
public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
|
4155
|
return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
|
4156
|
}
|
4157
|
|
4158
|
/**
|
4159
|
*
|
4160
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
4161
|
* @param {*} [options] Override http request option.
|
4162
|
* @throws {RequiredError}
|
4163
|
* @memberof TagApi
|
4164
|
*/
|
4165
|
public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
|
4166
|
return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
|
4167
|
}
|
4168
|
|
4169
|
/**
|
4170
|
*
|
4171
|
* @param {string} tagId
|
4172
|
* @param {*} [options] Override http request option.
|
4173
|
* @throws {RequiredError}
|
4174
|
* @memberof TagApi
|
4175
|
*/
|
4176
|
public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
|
4177
|
return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
|
4178
|
}
|
4179
|
|
4180
|
/**
|
4181
|
*
|
4182
|
* @param {string} tagId
|
4183
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
4184
|
* @param {*} [options] Override http request option.
|
4185
|
* @throws {RequiredError}
|
4186
|
* @memberof TagApi
|
4187
|
*/
|
4188
|
public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
|
4189
|
return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
|
4190
|
}
|
4191
|
|
4192
|
/**
|
4193
|
*
|
4194
|
* @param {*} [options] Override http request option.
|
4195
|
* @throws {RequiredError}
|
4196
|
* @memberof TagApi
|
4197
|
*/
|
4198
|
public tagsGet(options?: AxiosRequestConfig) {
|
4199
|
return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
|
4200
|
}
|
4201
|
|
4202
|
/**
|
4203
|
*
|
4204
|
* @param {CreateTagRequest} [createTagRequest]
|
4205
|
* @param {*} [options] Override http request option.
|
4206
|
* @throws {RequiredError}
|
4207
|
* @memberof TagApi
|
4208
|
*/
|
4209
|
public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
|
4210
|
return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
|
4211
|
}
|
4212
|
}
|
4213
|
|
4214
|
|
4215
|
/**
|
4216
|
* UserApi - axios parameter creator
|
4217
|
* @export
|
4218
|
*/
|
4219
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
4220
|
return {
|
4221
|
/**
|
4222
|
*
|
4223
|
* @param {*} [options] Override http request option.
|
4224
|
* @throws {RequiredError}
|
4225
|
*/
|
4226
|
userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4227
|
const localVarPath = `/user/annotations`;
|
4228
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4229
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4230
|
let baseOptions;
|
4231
|
if (configuration) {
|
4232
|
baseOptions = configuration.baseOptions;
|
4233
|
}
|
4234
|
|
4235
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
4236
|
const localVarHeaderParameter = {} as any;
|
4237
|
const localVarQueryParameter = {} as any;
|
4238
|
|
4239
|
|
4240
|
|
4241
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4242
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4243
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4244
|
|
4245
|
return {
|
4246
|
url: toPathString(localVarUrlObj),
|
4247
|
options: localVarRequestOptions,
|
4248
|
};
|
4249
|
},
|
4250
|
/**
|
4251
|
*
|
4252
|
* @param {string} userId
|
4253
|
* @param {*} [options] Override http request option.
|
4254
|
* @throws {RequiredError}
|
4255
|
*/
|
4256
|
userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4257
|
// verify required parameter 'userId' is not null or undefined
|
4258
|
assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
|
4259
|
const localVarPath = `/user/{userId}/annotations`
|
4260
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
4261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4263
|
let baseOptions;
|
4264
|
if (configuration) {
|
4265
|
baseOptions = configuration.baseOptions;
|
4266
|
}
|
4267
|
|
4268
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
4269
|
const localVarHeaderParameter = {} as any;
|
4270
|
const localVarQueryParameter = {} as any;
|
4271
|
|
4272
|
|
4273
|
|
4274
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4275
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4276
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4277
|
|
4278
|
return {
|
4279
|
url: toPathString(localVarUrlObj),
|
4280
|
options: localVarRequestOptions,
|
4281
|
};
|
4282
|
},
|
4283
|
/**
|
4284
|
*
|
4285
|
* @param {string} userId
|
4286
|
* @param {*} [options] Override http request option.
|
4287
|
* @throws {RequiredError}
|
4288
|
*/
|
4289
|
userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4290
|
// verify required parameter 'userId' is not null or undefined
|
4291
|
assertParamExists('userUserIdDelete', 'userId', userId)
|
4292
|
const localVarPath = `/user/{userId}`
|
4293
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
4294
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4295
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4296
|
let baseOptions;
|
4297
|
if (configuration) {
|
4298
|
baseOptions = configuration.baseOptions;
|
4299
|
}
|
4300
|
|
4301
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
4302
|
const localVarHeaderParameter = {} as any;
|
4303
|
const localVarQueryParameter = {} as any;
|
4304
|
|
4305
|
|
4306
|
|
4307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4308
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4309
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4310
|
|
4311
|
return {
|
4312
|
url: toPathString(localVarUrlObj),
|
4313
|
options: localVarRequestOptions,
|
4314
|
};
|
4315
|
},
|
4316
|
/**
|
4317
|
*
|
4318
|
* @param {string} userId
|
4319
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
4320
|
* @param {*} [options] Override http request option.
|
4321
|
* @throws {RequiredError}
|
4322
|
*/
|
4323
|
userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4324
|
// verify required parameter 'userId' is not null or undefined
|
4325
|
assertParamExists('userUserIdPut', 'userId', userId)
|
4326
|
const localVarPath = `/user/{userId}`
|
4327
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
4328
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4329
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4330
|
let baseOptions;
|
4331
|
if (configuration) {
|
4332
|
baseOptions = configuration.baseOptions;
|
4333
|
}
|
4334
|
|
4335
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
4336
|
const localVarHeaderParameter = {} as any;
|
4337
|
const localVarQueryParameter = {} as any;
|
4338
|
|
4339
|
|
4340
|
|
4341
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
4342
|
|
4343
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4344
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4345
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4346
|
localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
|
4347
|
|
4348
|
return {
|
4349
|
url: toPathString(localVarUrlObj),
|
4350
|
options: localVarRequestOptions,
|
4351
|
};
|
4352
|
},
|
4353
|
/**
|
4354
|
*
|
4355
|
* @param {*} [options] Override http request option.
|
4356
|
* @throws {RequiredError}
|
4357
|
*/
|
4358
|
usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4359
|
const localVarPath = `/users`;
|
4360
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4361
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4362
|
let baseOptions;
|
4363
|
if (configuration) {
|
4364
|
baseOptions = configuration.baseOptions;
|
4365
|
}
|
4366
|
|
4367
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
4368
|
const localVarHeaderParameter = {} as any;
|
4369
|
const localVarQueryParameter = {} as any;
|
4370
|
|
4371
|
|
4372
|
|
4373
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4374
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4375
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4376
|
|
4377
|
return {
|
4378
|
url: toPathString(localVarUrlObj),
|
4379
|
options: localVarRequestOptions,
|
4380
|
};
|
4381
|
},
|
4382
|
/**
|
4383
|
*
|
4384
|
* @param {*} [options] Override http request option.
|
4385
|
* @throws {RequiredError}
|
4386
|
*/
|
4387
|
usersMeGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4388
|
const localVarPath = `/users/me`;
|
4389
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4390
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4391
|
let baseOptions;
|
4392
|
if (configuration) {
|
4393
|
baseOptions = configuration.baseOptions;
|
4394
|
}
|
4395
|
|
4396
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
4397
|
const localVarHeaderParameter = {} as any;
|
4398
|
const localVarQueryParameter = {} as any;
|
4399
|
|
4400
|
|
4401
|
|
4402
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4403
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4404
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4405
|
|
4406
|
return {
|
4407
|
url: toPathString(localVarUrlObj),
|
4408
|
options: localVarRequestOptions,
|
4409
|
};
|
4410
|
},
|
4411
|
/**
|
4412
|
*
|
4413
|
* @param {CreateUserRequest} [createUserRequest]
|
4414
|
* @param {*} [options] Override http request option.
|
4415
|
* @throws {RequiredError}
|
4416
|
*/
|
4417
|
usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4418
|
const localVarPath = `/users`;
|
4419
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4420
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
4421
|
let baseOptions;
|
4422
|
if (configuration) {
|
4423
|
baseOptions = configuration.baseOptions;
|
4424
|
}
|
4425
|
|
4426
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
4427
|
const localVarHeaderParameter = {} as any;
|
4428
|
const localVarQueryParameter = {} as any;
|
4429
|
|
4430
|
|
4431
|
|
4432
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
4433
|
|
4434
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4435
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4436
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
4437
|
localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
|
4438
|
|
4439
|
return {
|
4440
|
url: toPathString(localVarUrlObj),
|
4441
|
options: localVarRequestOptions,
|
4442
|
};
|
4443
|
},
|
4444
|
}
|
4445
|
};
|
4446
|
|
4447
|
/**
|
4448
|
* UserApi - functional programming interface
|
4449
|
* @export
|
4450
|
*/
|
4451
|
export const UserApiFp = function(configuration?: Configuration) {
|
4452
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
4453
|
return {
|
4454
|
/**
|
4455
|
*
|
4456
|
* @param {*} [options] Override http request option.
|
4457
|
* @throws {RequiredError}
|
4458
|
*/
|
4459
|
async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
|
4460
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
|
4461
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4462
|
},
|
4463
|
/**
|
4464
|
*
|
4465
|
* @param {string} userId
|
4466
|
* @param {*} [options] Override http request option.
|
4467
|
* @throws {RequiredError}
|
4468
|
*/
|
4469
|
async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
|
4470
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
|
4471
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4472
|
},
|
4473
|
/**
|
4474
|
*
|
4475
|
* @param {string} userId
|
4476
|
* @param {*} [options] Override http request option.
|
4477
|
* @throws {RequiredError}
|
4478
|
*/
|
4479
|
async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
4480
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
|
4481
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4482
|
},
|
4483
|
/**
|
4484
|
*
|
4485
|
* @param {string} userId
|
4486
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
4487
|
* @param {*} [options] Override http request option.
|
4488
|
* @throws {RequiredError}
|
4489
|
*/
|
4490
|
async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
4491
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
|
4492
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4493
|
},
|
4494
|
/**
|
4495
|
*
|
4496
|
* @param {*} [options] Override http request option.
|
4497
|
* @throws {RequiredError}
|
4498
|
*/
|
4499
|
async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
|
4500
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
|
4501
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4502
|
},
|
4503
|
/**
|
4504
|
*
|
4505
|
* @param {*} [options] Override http request option.
|
4506
|
* @throws {RequiredError}
|
4507
|
*/
|
4508
|
async usersMeGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeResponse>> {
|
4509
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersMeGet(options);
|
4510
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4511
|
},
|
4512
|
/**
|
4513
|
*
|
4514
|
* @param {CreateUserRequest} [createUserRequest]
|
4515
|
* @param {*} [options] Override http request option.
|
4516
|
* @throws {RequiredError}
|
4517
|
*/
|
4518
|
async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
4519
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
|
4520
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4521
|
},
|
4522
|
}
|
4523
|
};
|
4524
|
|
4525
|
/**
|
4526
|
* UserApi - factory interface
|
4527
|
* @export
|
4528
|
*/
|
4529
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
4530
|
const localVarFp = UserApiFp(configuration)
|
4531
|
return {
|
4532
|
/**
|
4533
|
*
|
4534
|
* @param {*} [options] Override http request option.
|
4535
|
* @throws {RequiredError}
|
4536
|
*/
|
4537
|
userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
|
4538
|
return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
|
4539
|
},
|
4540
|
/**
|
4541
|
*
|
4542
|
* @param {string} userId
|
4543
|
* @param {*} [options] Override http request option.
|
4544
|
* @throws {RequiredError}
|
4545
|
*/
|
4546
|
userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
|
4547
|
return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
|
4548
|
},
|
4549
|
/**
|
4550
|
*
|
4551
|
* @param {string} userId
|
4552
|
* @param {*} [options] Override http request option.
|
4553
|
* @throws {RequiredError}
|
4554
|
*/
|
4555
|
userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
|
4556
|
return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
|
4557
|
},
|
4558
|
/**
|
4559
|
*
|
4560
|
* @param {string} userId
|
4561
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
4562
|
* @param {*} [options] Override http request option.
|
4563
|
* @throws {RequiredError}
|
4564
|
*/
|
4565
|
userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
|
4566
|
return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
|
4567
|
},
|
4568
|
/**
|
4569
|
*
|
4570
|
* @param {*} [options] Override http request option.
|
4571
|
* @throws {RequiredError}
|
4572
|
*/
|
4573
|
usersGet(options?: any): AxiosPromise<UserList> {
|
4574
|
return localVarFp.usersGet(options).then((request) => request(axios, basePath));
|
4575
|
},
|
4576
|
/**
|
4577
|
*
|
4578
|
* @param {*} [options] Override http request option.
|
4579
|
* @throws {RequiredError}
|
4580
|
*/
|
4581
|
usersMeGet(options?: any): AxiosPromise<UserMeResponse> {
|
4582
|
return localVarFp.usersMeGet(options).then((request) => request(axios, basePath));
|
4583
|
},
|
4584
|
/**
|
4585
|
*
|
4586
|
* @param {CreateUserRequest} [createUserRequest]
|
4587
|
* @param {*} [options] Override http request option.
|
4588
|
* @throws {RequiredError}
|
4589
|
*/
|
4590
|
usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
|
4591
|
return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
|
4592
|
},
|
4593
|
};
|
4594
|
};
|
4595
|
|
4596
|
/**
|
4597
|
* UserApi - object-oriented interface
|
4598
|
* @export
|
4599
|
* @class UserApi
|
4600
|
* @extends {BaseAPI}
|
4601
|
*/
|
4602
|
export class UserApi extends BaseAPI {
|
4603
|
/**
|
4604
|
*
|
4605
|
* @param {*} [options] Override http request option.
|
4606
|
* @throws {RequiredError}
|
4607
|
* @memberof UserApi
|
4608
|
*/
|
4609
|
public userAnnotationsGet(options?: AxiosRequestConfig) {
|
4610
|
return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
|
4611
|
}
|
4612
|
|
4613
|
/**
|
4614
|
*
|
4615
|
* @param {string} userId
|
4616
|
* @param {*} [options] Override http request option.
|
4617
|
* @throws {RequiredError}
|
4618
|
* @memberof UserApi
|
4619
|
*/
|
4620
|
public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
|
4621
|
return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
|
4622
|
}
|
4623
|
|
4624
|
/**
|
4625
|
*
|
4626
|
* @param {string} userId
|
4627
|
* @param {*} [options] Override http request option.
|
4628
|
* @throws {RequiredError}
|
4629
|
* @memberof UserApi
|
4630
|
*/
|
4631
|
public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
|
4632
|
return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
|
4633
|
}
|
4634
|
|
4635
|
/**
|
4636
|
*
|
4637
|
* @param {string} userId
|
4638
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
4639
|
* @param {*} [options] Override http request option.
|
4640
|
* @throws {RequiredError}
|
4641
|
* @memberof UserApi
|
4642
|
*/
|
4643
|
public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
|
4644
|
return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
|
4645
|
}
|
4646
|
|
4647
|
/**
|
4648
|
*
|
4649
|
* @param {*} [options] Override http request option.
|
4650
|
* @throws {RequiredError}
|
4651
|
* @memberof UserApi
|
4652
|
*/
|
4653
|
public usersGet(options?: AxiosRequestConfig) {
|
4654
|
return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
|
4655
|
}
|
4656
|
|
4657
|
/**
|
4658
|
*
|
4659
|
* @param {*} [options] Override http request option.
|
4660
|
* @throws {RequiredError}
|
4661
|
* @memberof UserApi
|
4662
|
*/
|
4663
|
public usersMeGet(options?: AxiosRequestConfig) {
|
4664
|
return UserApiFp(this.configuration).usersMeGet(options).then((request) => request(this.axios, this.basePath));
|
4665
|
}
|
4666
|
|
4667
|
/**
|
4668
|
*
|
4669
|
* @param {CreateUserRequest} [createUserRequest]
|
4670
|
* @param {*} [options] Override http request option.
|
4671
|
* @throws {RequiredError}
|
4672
|
* @memberof UserApi
|
4673
|
*/
|
4674
|
public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
|
4675
|
return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
|
4676
|
}
|
4677
|
}
|
4678
|
|
4679
|
|