Revize 9bfa1e39
Přidáno uživatelem Jaroslav Hrubý před téměř 3 roky(ů)
webapp/api/api.ts | ||
---|---|---|
5 | 5 |
* KIV/ASWI ZČU Plzeň, 2022 |
6 | 6 |
* |
7 | 7 |
* The version of the OpenAPI document: 0.1.1 |
8 |
*
|
|
8 |
* |
|
9 | 9 |
* |
10 | 10 |
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
11 | 11 |
* https://openapi-generator.tech |
12 | 12 |
* Do not edit the class manually. |
13 | 13 |
*/ |
14 | 14 |
|
15 |
|
|
16 | 15 |
import { Configuration } from './configuration'; |
17 | 16 |
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; |
18 | 17 |
// Some imports not used depending on template conditions |
19 | 18 |
// @ts-ignore |
20 |
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; |
|
19 |
import { |
|
20 |
DUMMY_BASE_URL, |
|
21 |
assertParamExists, |
|
22 |
setApiKeyToObject, |
|
23 |
setBasicAuthToObject, |
|
24 |
setBearerAuthToObject, |
|
25 |
setOAuthToObject, |
|
26 |
setSearchParams, |
|
27 |
serializeDataIfNeeded, |
|
28 |
toPathString, |
|
29 |
createRequestFunction, |
|
30 |
} from './common'; |
|
21 | 31 |
// @ts-ignore |
22 |
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; |
|
32 |
import { |
|
33 |
BASE_PATH, |
|
34 |
COLLECTION_FORMATS, |
|
35 |
RequestArgs, |
|
36 |
BaseAPI, |
|
37 |
RequiredError, |
|
38 |
} from './base'; |
|
23 | 39 |
|
24 | 40 |
/** |
25 |
*
|
|
41 |
* |
|
26 | 42 |
* @export |
27 | 43 |
* @interface AnnotationInfo |
28 | 44 |
*/ |
29 | 45 |
export interface AnnotationInfo { |
30 | 46 |
/** |
31 |
*
|
|
47 |
* |
|
32 | 48 |
* @type {string} |
33 | 49 |
* @memberof AnnotationInfo |
34 | 50 |
*/ |
35 |
'sourceDocumentContent'?: string | null;
|
|
51 |
sourceDocumentContent?: string | null;
|
|
36 | 52 |
/** |
37 |
*
|
|
53 |
* |
|
38 | 54 |
* @type {string} |
39 | 55 |
* @memberof AnnotationInfo |
40 | 56 |
*/ |
41 |
'documentToRender'?: string | null;
|
|
57 |
documentToRender?: string | null;
|
|
42 | 58 |
/** |
43 |
*
|
|
59 |
* |
|
44 | 60 |
* @type {Array<number>} |
45 | 61 |
* @memberof AnnotationInfo |
46 | 62 |
*/ |
47 |
'tagStartPositions'?: Array<number> | null;
|
|
63 |
tagStartPositions?: Array<number> | null;
|
|
48 | 64 |
/** |
49 |
*
|
|
65 |
* |
|
50 | 66 |
* @type {Array<number>} |
51 | 67 |
* @memberof AnnotationInfo |
52 | 68 |
*/ |
53 |
'tagLengths'?: Array<number> | null;
|
|
69 |
tagLengths?: Array<number> | null;
|
|
54 | 70 |
/** |
55 |
*
|
|
71 |
* |
|
56 | 72 |
* @type {EState} |
57 | 73 |
* @memberof AnnotationInfo |
58 | 74 |
*/ |
59 |
'state'?: EState;
|
|
75 |
state?: EState;
|
|
60 | 76 |
/** |
61 |
*
|
|
77 |
* |
|
62 | 78 |
* @type {EDocumentType} |
63 | 79 |
* @memberof AnnotationInfo |
64 | 80 |
*/ |
65 |
'type'?: EDocumentType;
|
|
81 |
type?: EDocumentType;
|
|
66 | 82 |
/** |
67 |
*
|
|
83 |
* |
|
68 | 84 |
* @type {string} |
69 | 85 |
* @memberof AnnotationInfo |
70 | 86 |
*/ |
71 |
'note'?: string | null;
|
|
87 |
note?: string | null;
|
|
72 | 88 |
/** |
73 |
*
|
|
89 |
* |
|
74 | 90 |
* @type {Array<TagInstanceInfo>} |
75 | 91 |
* @memberof AnnotationInfo |
76 | 92 |
*/ |
77 |
'tagInstances'?: Array<TagInstanceInfo> | null;
|
|
93 |
tagInstances?: Array<TagInstanceInfo> | null;
|
|
78 | 94 |
} |
79 | 95 |
/** |
80 |
*
|
|
96 |
* |
|
81 | 97 |
* @export |
82 | 98 |
* @interface AnnotationInstanceAddRequest |
83 | 99 |
*/ |
84 | 100 |
export interface AnnotationInstanceAddRequest { |
85 | 101 |
/** |
86 |
*
|
|
102 |
* |
|
87 | 103 |
* @type {number} |
88 | 104 |
* @memberof AnnotationInstanceAddRequest |
89 | 105 |
*/ |
90 |
'position'?: number;
|
|
106 |
position?: number;
|
|
91 | 107 |
/** |
92 |
*
|
|
108 |
* |
|
93 | 109 |
* @type {number} |
94 | 110 |
* @memberof AnnotationInstanceAddRequest |
95 | 111 |
*/ |
96 |
'length'?: number;
|
|
112 |
length?: number;
|
|
97 | 113 |
/** |
98 |
*
|
|
114 |
* |
|
99 | 115 |
* @type {ETagType} |
100 | 116 |
* @memberof AnnotationInstanceAddRequest |
101 | 117 |
*/ |
102 |
'type'?: ETagType;
|
|
118 |
type?: ETagType;
|
|
103 | 119 |
/** |
104 |
*
|
|
120 |
* |
|
105 | 121 |
* @type {string} |
106 | 122 |
* @memberof AnnotationInstanceAddRequest |
107 | 123 |
*/ |
108 |
'id'?: string;
|
|
124 |
id?: string;
|
|
109 | 125 |
/** |
110 |
*
|
|
126 |
* |
|
111 | 127 |
* @type {string} |
112 | 128 |
* @memberof AnnotationInstanceAddRequest |
113 | 129 |
*/ |
114 |
'instanceId'?: string | null;
|
|
130 |
instanceId?: string | null;
|
|
115 | 131 |
} |
116 | 132 |
/** |
117 |
*
|
|
133 |
* |
|
118 | 134 |
* @export |
119 | 135 |
* @interface AnnotationListInfo |
120 | 136 |
*/ |
121 | 137 |
export interface AnnotationListInfo { |
122 | 138 |
/** |
123 |
*
|
|
139 |
* |
|
124 | 140 |
* @type {string} |
125 | 141 |
* @memberof AnnotationListInfo |
126 | 142 |
*/ |
127 |
'documentName'?: string | null;
|
|
143 |
documentName?: string | null;
|
|
128 | 144 |
/** |
129 |
*
|
|
145 |
* |
|
130 | 146 |
* @type {EState} |
131 | 147 |
* @memberof AnnotationListInfo |
132 | 148 |
*/ |
133 |
'state'?: EState;
|
|
149 |
state?: EState;
|
|
134 | 150 |
/** |
135 |
*
|
|
151 |
* |
|
136 | 152 |
* @type {string} |
137 | 153 |
* @memberof AnnotationListInfo |
138 | 154 |
*/ |
139 |
'annotationId'?: string;
|
|
155 |
annotationId?: string;
|
|
140 | 156 |
} |
141 | 157 |
/** |
142 |
*
|
|
158 |
* |
|
143 | 159 |
* @export |
144 | 160 |
* @interface AnnotationListResponse |
145 | 161 |
*/ |
146 | 162 |
export interface AnnotationListResponse { |
147 | 163 |
/** |
148 |
*
|
|
164 |
* |
|
149 | 165 |
* @type {Array<AnnotationListInfo>} |
150 | 166 |
* @memberof AnnotationListResponse |
151 | 167 |
*/ |
152 |
'annotations'?: Array<AnnotationListInfo> | null;
|
|
168 |
annotations?: Array<AnnotationListInfo> | null;
|
|
153 | 169 |
} |
154 | 170 |
/** |
155 |
*
|
|
171 |
* |
|
156 | 172 |
* @export |
157 | 173 |
* @interface AnnotationsAddRequest |
158 | 174 |
*/ |
159 | 175 |
export interface AnnotationsAddRequest { |
160 | 176 |
/** |
161 |
*
|
|
177 |
* |
|
162 | 178 |
* @type {Array<string>} |
163 | 179 |
* @memberof AnnotationsAddRequest |
164 | 180 |
*/ |
165 |
'userIdList'?: Array<string> | null;
|
|
181 |
userIdList?: Array<string> | null;
|
|
166 | 182 |
/** |
167 |
*
|
|
183 |
* |
|
168 | 184 |
* @type {Array<string>} |
169 | 185 |
* @memberof AnnotationsAddRequest |
170 | 186 |
*/ |
171 |
'documentIdList'?: Array<string> | null;
|
|
187 |
documentIdList?: Array<string> | null;
|
|
172 | 188 |
} |
173 | 189 |
/** |
174 |
*
|
|
190 |
* |
|
175 | 191 |
* @export |
176 | 192 |
* @interface ClientInfo |
177 | 193 |
*/ |
178 | 194 |
export interface ClientInfo { |
179 | 195 |
/** |
180 |
*
|
|
196 |
* |
|
181 | 197 |
* @type {boolean} |
182 | 198 |
* @memberof ClientInfo |
183 | 199 |
*/ |
184 |
'isLogged'?: boolean;
|
|
200 |
isLogged?: boolean;
|
|
185 | 201 |
/** |
186 |
*
|
|
202 |
* |
|
187 | 203 |
* @type {User} |
188 | 204 |
* @memberof ClientInfo |
189 | 205 |
*/ |
190 |
'loggedUser'?: User;
|
|
206 |
loggedUser?: User;
|
|
191 | 207 |
/** |
192 |
*
|
|
208 |
* |
|
193 | 209 |
* @type {string} |
194 | 210 |
* @memberof ClientInfo |
195 | 211 |
*/ |
196 |
'ip'?: string | null;
|
|
212 |
ip?: string | null;
|
|
197 | 213 |
} |
198 | 214 |
/** |
199 |
*
|
|
215 |
* |
|
200 | 216 |
* @export |
201 | 217 |
* @interface DocumentAddInfo |
202 | 218 |
*/ |
203 | 219 |
export interface DocumentAddInfo { |
204 | 220 |
/** |
205 |
*
|
|
221 |
* |
|
206 | 222 |
* @type {string} |
207 | 223 |
* @memberof DocumentAddInfo |
208 | 224 |
*/ |
209 |
'name'?: string | null;
|
|
225 |
name?: string | null;
|
|
210 | 226 |
/** |
211 |
*
|
|
227 |
* |
|
212 | 228 |
* @type {EAddDocumentFormat} |
213 | 229 |
* @memberof DocumentAddInfo |
214 | 230 |
*/ |
215 |
'format'?: EAddDocumentFormat;
|
|
231 |
format?: EAddDocumentFormat;
|
|
216 | 232 |
/** |
217 |
*
|
|
233 |
* |
|
218 | 234 |
* @type {string} |
219 | 235 |
* @memberof DocumentAddInfo |
220 | 236 |
*/ |
221 |
'content'?: string | null;
|
|
237 |
content?: string | null;
|
|
222 | 238 |
} |
223 | 239 |
/** |
224 |
*
|
|
240 |
* |
|
225 | 241 |
* @export |
226 | 242 |
* @interface DocumentAddRequest |
227 | 243 |
*/ |
228 | 244 |
export interface DocumentAddRequest { |
229 | 245 |
/** |
230 |
*
|
|
246 |
* |
|
231 | 247 |
* @type {Array<DocumentAddInfo>} |
232 | 248 |
* @memberof DocumentAddRequest |
233 | 249 |
*/ |
234 |
'documents'?: Array<DocumentAddInfo> | null;
|
|
250 |
documents?: Array<DocumentAddInfo> | null;
|
|
235 | 251 |
} |
236 | 252 |
/** |
237 |
*
|
|
253 |
* |
|
238 | 254 |
* @export |
239 | 255 |
* @interface DocumentListInfo |
240 | 256 |
*/ |
241 | 257 |
export interface DocumentListInfo { |
258 |
key?: string; |
|
242 | 259 |
/** |
243 |
*
|
|
260 |
* |
|
244 | 261 |
* @type {string} |
245 | 262 |
* @memberof DocumentListInfo |
246 | 263 |
*/ |
247 |
'id'?: string;
|
|
264 |
id?: string;
|
|
248 | 265 |
/** |
249 |
*
|
|
266 |
* |
|
250 | 267 |
* @type {string} |
251 | 268 |
* @memberof DocumentListInfo |
252 | 269 |
*/ |
253 |
'name'?: string | null;
|
|
270 |
name?: string | null;
|
|
254 | 271 |
/** |
255 |
*
|
|
272 |
* |
|
256 | 273 |
* @type {number} |
257 | 274 |
* @memberof DocumentListInfo |
258 | 275 |
*/ |
259 |
'length'?: number;
|
|
276 |
length?: number;
|
|
260 | 277 |
/** |
261 |
*
|
|
278 |
* |
|
262 | 279 |
* @type {number} |
263 | 280 |
* @memberof DocumentListInfo |
264 | 281 |
*/ |
265 |
'requiredAnnotations'?: number;
|
|
282 |
requiredAnnotations?: number;
|
|
266 | 283 |
/** |
267 |
*
|
|
284 |
* |
|
268 | 285 |
* @type {Array<UserInfo>} |
269 | 286 |
* @memberof DocumentListInfo |
270 | 287 |
*/ |
271 |
'annotatingUsers'?: Array<UserInfo> | null;
|
|
288 |
annotatingUsers?: Array<UserInfo> | null;
|
|
272 | 289 |
} |
273 | 290 |
/** |
274 |
*
|
|
291 |
* |
|
275 | 292 |
* @export |
276 | 293 |
* @interface DocumentListResponse |
277 | 294 |
*/ |
278 | 295 |
export interface DocumentListResponse { |
279 | 296 |
/** |
280 |
*
|
|
297 |
* |
|
281 | 298 |
* @type {number} |
282 | 299 |
* @memberof DocumentListResponse |
283 | 300 |
*/ |
284 |
'totalCount'?: number;
|
|
301 |
totalCount?: number;
|
|
285 | 302 |
/** |
286 |
*
|
|
303 |
* |
|
287 | 304 |
* @type {number} |
288 | 305 |
* @memberof DocumentListResponse |
289 | 306 |
*/ |
290 |
'pageCount'?: number;
|
|
307 |
pageCount?: number;
|
|
291 | 308 |
/** |
292 |
*
|
|
309 |
* |
|
293 | 310 |
* @type {number} |
294 | 311 |
* @memberof DocumentListResponse |
295 | 312 |
*/ |
296 |
'pageIndex'?: number;
|
|
313 |
pageIndex?: number;
|
|
297 | 314 |
/** |
298 |
*
|
|
315 |
* |
|
299 | 316 |
* @type {Array<DocumentListInfo>} |
300 | 317 |
* @memberof DocumentListResponse |
301 | 318 |
*/ |
302 |
'documents'?: Array<DocumentListInfo> | null;
|
|
319 |
documents?: Array<DocumentListInfo> | null;
|
|
303 | 320 |
} |
304 | 321 |
/** |
305 |
*
|
|
322 |
* |
|
306 | 323 |
* @export |
307 | 324 |
* @enum {string} |
308 | 325 |
*/ |
309 | 326 |
|
310 | 327 |
export const EAddDocumentFormat = { |
311 | 328 |
Zip: 'ZIP', |
312 |
Textfile: 'TEXTFILE' |
|
329 |
Textfile: 'TEXTFILE',
|
|
313 | 330 |
} as const; |
314 | 331 |
|
315 |
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
|
|
316 |
|
|
332 |
export type EAddDocumentFormat = |
|
333 |
typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat]; |
|
317 | 334 |
|
318 | 335 |
/** |
319 |
*
|
|
336 |
* |
|
320 | 337 |
* @export |
321 | 338 |
* @enum {string} |
322 | 339 |
*/ |
323 | 340 |
|
324 | 341 |
export const EDocumentType = { |
325 | 342 |
Html: 'HTML', |
326 |
Text: 'TEXT' |
|
343 |
Text: 'TEXT',
|
|
327 | 344 |
} as const; |
328 | 345 |
|
329 | 346 |
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType]; |
330 | 347 |
|
331 |
|
|
332 | 348 |
/** |
333 |
*
|
|
349 |
* |
|
334 | 350 |
* @export |
335 | 351 |
* @enum {string} |
336 | 352 |
*/ |
337 | 353 |
|
338 | 354 |
export const ERole = { |
339 | 355 |
Annotator: 'ANNOTATOR', |
340 |
Administrator: 'ADMINISTRATOR' |
|
356 |
Administrator: 'ADMINISTRATOR',
|
|
341 | 357 |
} as const; |
342 | 358 |
|
343 | 359 |
export type ERole = typeof ERole[keyof typeof ERole]; |
344 | 360 |
|
345 |
|
|
346 | 361 |
/** |
347 |
*
|
|
362 |
* |
|
348 | 363 |
* @export |
349 | 364 |
* @enum {string} |
350 | 365 |
*/ |
... | ... | |
352 | 367 |
export const EState = { |
353 | 368 |
Done: 'DONE', |
354 | 369 |
InProgress: 'IN_PROGRESS', |
355 |
New: 'NEW' |
|
370 |
New: 'NEW',
|
|
356 | 371 |
} as const; |
357 | 372 |
|
358 | 373 |
export type EState = typeof EState[keyof typeof EState]; |
359 | 374 |
|
360 |
|
|
361 | 375 |
/** |
362 |
*
|
|
376 |
* |
|
363 | 377 |
* @export |
364 | 378 |
* @enum {string} |
365 | 379 |
*/ |
366 | 380 |
|
367 | 381 |
export const ETagType = { |
368 | 382 |
Tag: 'TAG', |
369 |
Subtag: 'SUBTAG' |
|
383 |
Subtag: 'SUBTAG',
|
|
370 | 384 |
} as const; |
371 | 385 |
|
372 | 386 |
export type ETagType = typeof ETagType[keyof typeof ETagType]; |
373 | 387 |
|
374 |
|
|
375 | 388 |
/** |
376 |
*
|
|
389 |
* |
|
377 | 390 |
* @export |
378 | 391 |
* @interface LoginRequest |
379 | 392 |
*/ |
380 | 393 |
export interface LoginRequest { |
381 | 394 |
/** |
382 |
*
|
|
395 |
* |
|
383 | 396 |
* @type {string} |
384 | 397 |
* @memberof LoginRequest |
385 | 398 |
*/ |
386 |
'username'?: string | null;
|
|
399 |
username?: string | null;
|
|
387 | 400 |
/** |
388 |
*
|
|
401 |
* |
|
389 | 402 |
* @type {string} |
390 | 403 |
* @memberof LoginRequest |
391 | 404 |
*/ |
392 |
'password'?: string | null;
|
|
405 |
password?: string | null;
|
|
393 | 406 |
} |
394 | 407 |
/** |
395 |
*
|
|
408 |
* |
|
396 | 409 |
* @export |
397 | 410 |
* @interface LoginResponse |
398 | 411 |
*/ |
399 | 412 |
export interface LoginResponse { |
400 | 413 |
/** |
401 |
*
|
|
414 |
* |
|
402 | 415 |
* @type {boolean} |
403 | 416 |
* @memberof LoginResponse |
404 | 417 |
*/ |
405 |
'ok'?: boolean;
|
|
418 |
ok?: boolean;
|
|
406 | 419 |
/** |
407 |
*
|
|
420 |
* |
|
408 | 421 |
* @type {string} |
409 | 422 |
* @memberof LoginResponse |
410 | 423 |
*/ |
411 |
'token'?: string | null;
|
|
424 |
token?: string | null;
|
|
412 | 425 |
/** |
413 |
*
|
|
426 |
* |
|
414 | 427 |
* @type {string} |
415 | 428 |
* @memberof LoginResponse |
416 | 429 |
*/ |
417 |
'expiration'?: string;
|
|
430 |
expiration?: string;
|
|
418 | 431 |
/** |
419 |
*
|
|
432 |
* |
|
420 | 433 |
* @type {ERole} |
421 | 434 |
* @memberof LoginResponse |
422 | 435 |
*/ |
423 |
'role'?: ERole;
|
|
436 |
role?: ERole;
|
|
424 | 437 |
} |
425 | 438 |
/** |
426 |
*
|
|
439 |
* |
|
427 | 440 |
* @export |
428 | 441 |
* @interface ProblemDetails |
429 | 442 |
*/ |
... | ... | |
431 | 444 |
[key: string]: any | any; |
432 | 445 |
|
433 | 446 |
/** |
434 |
*
|
|
447 |
* |
|
435 | 448 |
* @type {string} |
436 | 449 |
* @memberof ProblemDetails |
437 | 450 |
*/ |
438 |
'type'?: string | null;
|
|
451 |
type?: string | null;
|
|
439 | 452 |
/** |
440 |
*
|
|
453 |
* |
|
441 | 454 |
* @type {string} |
442 | 455 |
* @memberof ProblemDetails |
443 | 456 |
*/ |
444 |
'title'?: string | null;
|
|
457 |
title?: string | null;
|
|
445 | 458 |
/** |
446 |
*
|
|
459 |
* |
|
447 | 460 |
* @type {number} |
448 | 461 |
* @memberof ProblemDetails |
449 | 462 |
*/ |
450 |
'status'?: number | null;
|
|
463 |
status?: number | null;
|
|
451 | 464 |
/** |
452 |
*
|
|
465 |
* |
|
453 | 466 |
* @type {string} |
454 | 467 |
* @memberof ProblemDetails |
455 | 468 |
*/ |
456 |
'detail'?: string | null;
|
|
469 |
detail?: string | null;
|
|
457 | 470 |
/** |
458 |
*
|
|
471 |
* |
|
459 | 472 |
* @type {string} |
460 | 473 |
* @memberof ProblemDetails |
461 | 474 |
*/ |
462 |
'instance'?: string | null;
|
|
475 |
instance?: string | null;
|
|
463 | 476 |
} |
464 | 477 |
/** |
465 |
*
|
|
478 |
* |
|
466 | 479 |
* @export |
467 | 480 |
* @interface SubTagInfo |
468 | 481 |
*/ |
469 | 482 |
export interface SubTagInfo { |
470 | 483 |
/** |
471 |
*
|
|
484 |
* |
|
472 | 485 |
* @type {string} |
473 | 486 |
* @memberof SubTagInfo |
474 | 487 |
*/ |
475 |
'id'?: string;
|
|
488 |
id?: string;
|
|
476 | 489 |
/** |
477 |
*
|
|
490 |
* |
|
478 | 491 |
* @type {string} |
479 | 492 |
* @memberof SubTagInfo |
480 | 493 |
*/ |
481 |
'name'?: string | null;
|
|
494 |
name?: string | null;
|
|
482 | 495 |
/** |
483 |
*
|
|
496 |
* |
|
484 | 497 |
* @type {string} |
485 | 498 |
* @memberof SubTagInfo |
486 | 499 |
*/ |
487 |
'description'?: string | null;
|
|
500 |
description?: string | null;
|
|
488 | 501 |
} |
489 | 502 |
/** |
490 |
*
|
|
503 |
* |
|
491 | 504 |
* @export |
492 | 505 |
* @interface TagCategoryInfo |
493 | 506 |
*/ |
494 | 507 |
export interface TagCategoryInfo { |
495 | 508 |
/** |
496 |
*
|
|
509 |
* |
|
497 | 510 |
* @type {string} |
498 | 511 |
* @memberof TagCategoryInfo |
499 | 512 |
*/ |
500 |
'id'?: string;
|
|
513 |
id?: string;
|
|
501 | 514 |
/** |
502 |
*
|
|
515 |
* |
|
503 | 516 |
* @type {string} |
504 | 517 |
* @memberof TagCategoryInfo |
505 | 518 |
*/ |
506 |
'name'?: string | null;
|
|
519 |
name?: string | null;
|
|
507 | 520 |
/** |
508 |
*
|
|
521 |
* |
|
509 | 522 |
* @type {string} |
510 | 523 |
* @memberof TagCategoryInfo |
511 | 524 |
*/ |
512 |
'description'?: string | null;
|
|
525 |
description?: string | null;
|
|
513 | 526 |
/** |
514 |
*
|
|
527 |
* |
|
515 | 528 |
* @type {string} |
516 | 529 |
* @memberof TagCategoryInfo |
517 | 530 |
*/ |
518 |
'color'?: string | null;
|
|
531 |
color?: string | null;
|
|
519 | 532 |
/** |
520 |
*
|
|
533 |
* |
|
521 | 534 |
* @type {Array<TagInfo>} |
522 | 535 |
* @memberof TagCategoryInfo |
523 | 536 |
*/ |
524 |
'tags'?: Array<TagInfo> | null;
|
|
537 |
tags?: Array<TagInfo> | null;
|
|
525 | 538 |
} |
526 | 539 |
/** |
527 |
*
|
|
540 |
* |
|
528 | 541 |
* @export |
529 | 542 |
* @interface TagInfo |
530 | 543 |
*/ |
531 | 544 |
export interface TagInfo { |
532 | 545 |
/** |
533 |
*
|
|
546 |
* |
|
534 | 547 |
* @type {string} |
535 | 548 |
* @memberof TagInfo |
536 | 549 |
*/ |
537 |
'id'?: string;
|
|
550 |
id?: string;
|
|
538 | 551 |
/** |
539 |
*
|
|
552 |
* |
|
540 | 553 |
* @type {string} |
541 | 554 |
* @memberof TagInfo |
542 | 555 |
*/ |
543 |
'name'?: string | null;
|
|
556 |
name?: string | null;
|
|
544 | 557 |
/** |
545 |
*
|
|
558 |
* |
|
546 | 559 |
* @type {string} |
547 | 560 |
* @memberof TagInfo |
548 | 561 |
*/ |
549 |
'description'?: string | null;
|
|
562 |
description?: string | null;
|
|
550 | 563 |
/** |
551 |
*
|
|
564 |
* |
|
552 | 565 |
* @type {string} |
553 | 566 |
* @memberof TagInfo |
554 | 567 |
*/ |
555 |
'color'?: string | null;
|
|
568 |
color?: string | null;
|
|
556 | 569 |
/** |
557 |
*
|
|
570 |
* |
|
558 | 571 |
* @type {Array<SubTagInfo>} |
559 | 572 |
* @memberof TagInfo |
560 | 573 |
*/ |
561 |
'subTags'?: Array<SubTagInfo> | null;
|
|
574 |
subTags?: Array<SubTagInfo> | null;
|
|
562 | 575 |
} |
563 | 576 |
/** |
564 |
*
|
|
577 |
* |
|
565 | 578 |
* @export |
566 | 579 |
* @interface TagInstanceInfo |
567 | 580 |
*/ |
568 | 581 |
export interface TagInstanceInfo { |
569 | 582 |
/** |
570 |
*
|
|
583 |
* |
|
571 | 584 |
* @type {string} |
572 | 585 |
* @memberof TagInstanceInfo |
573 | 586 |
*/ |
574 |
'occurenceId'?: string;
|
|
587 |
occurenceId?: string;
|
|
575 | 588 |
/** |
576 |
*
|
|
589 |
* |
|
577 | 590 |
* @type {string} |
578 | 591 |
* @memberof TagInstanceInfo |
579 | 592 |
*/ |
580 |
'tagName'?: string | null;
|
|
593 |
tagName?: string | null;
|
|
581 | 594 |
/** |
582 |
*
|
|
595 |
* |
|
583 | 596 |
* @type {string} |
584 | 597 |
* @memberof TagInstanceInfo |
585 | 598 |
*/ |
586 |
'tagId'?: string;
|
|
599 |
tagId?: string;
|
|
587 | 600 |
/** |
588 |
*
|
|
601 |
* |
|
589 | 602 |
* @type {string} |
590 | 603 |
* @memberof TagInstanceInfo |
591 | 604 |
*/ |
592 |
'tagCategoryName'?: string | null;
|
|
605 |
tagCategoryName?: string | null;
|
|
593 | 606 |
/** |
594 |
*
|
|
607 |
* |
|
595 | 608 |
* @type {string} |
596 | 609 |
* @memberof TagInstanceInfo |
597 | 610 |
*/ |
598 |
'tagCategoryId'?: string;
|
|
611 |
tagCategoryId?: string;
|
|
599 | 612 |
/** |
600 |
*
|
|
613 |
* |
|
601 | 614 |
* @type {string} |
602 | 615 |
* @memberof TagInstanceInfo |
603 | 616 |
*/ |
604 |
'subTagName'?: string | null;
|
|
617 |
subTagName?: string | null;
|
|
605 | 618 |
/** |
606 |
*
|
|
619 |
* |
|
607 | 620 |
* @type {string} |
608 | 621 |
* @memberof TagInstanceInfo |
609 | 622 |
*/ |
610 |
'subTagId'?: string | null;
|
|
623 |
subTagId?: string | null;
|
|
611 | 624 |
/** |
612 |
*
|
|
625 |
* |
|
613 | 626 |
* @type {string} |
614 | 627 |
* @memberof TagInstanceInfo |
615 | 628 |
*/ |
616 |
'instance'?: string;
|
|
629 |
instance?: string;
|
|
617 | 630 |
/** |
618 |
*
|
|
631 |
* |
|
619 | 632 |
* @type {number} |
620 | 633 |
* @memberof TagInstanceInfo |
621 | 634 |
*/ |
622 |
'position'?: number;
|
|
635 |
position?: number;
|
|
623 | 636 |
/** |
624 |
*
|
|
637 |
* |
|
625 | 638 |
* @type {number} |
626 | 639 |
* @memberof TagInstanceInfo |
627 | 640 |
*/ |
628 |
'length'?: number;
|
|
641 |
length?: number;
|
|
629 | 642 |
/** |
630 |
*
|
|
643 |
* |
|
631 | 644 |
* @type {string} |
632 | 645 |
* @memberof TagInstanceInfo |
633 | 646 |
*/ |
634 |
'note'?: string | null;
|
|
647 |
note?: string | null;
|
|
635 | 648 |
} |
636 | 649 |
/** |
637 |
*
|
|
650 |
* |
|
638 | 651 |
* @export |
639 | 652 |
* @interface TagTreeResponse |
640 | 653 |
*/ |
641 | 654 |
export interface TagTreeResponse { |
642 | 655 |
/** |
643 |
*
|
|
656 |
* |
|
644 | 657 |
* @type {Array<TagCategoryInfo>} |
645 | 658 |
* @memberof TagTreeResponse |
646 | 659 |
*/ |
647 |
'tagCategories'?: Array<TagCategoryInfo> | null;
|
|
660 |
tagCategories?: Array<TagCategoryInfo> | null;
|
|
648 | 661 |
} |
649 | 662 |
/** |
650 |
*
|
|
663 |
* |
|
651 | 664 |
* @export |
652 | 665 |
* @interface User |
653 | 666 |
*/ |
654 | 667 |
export interface User { |
655 | 668 |
/** |
656 |
*
|
|
669 |
* |
|
657 | 670 |
* @type {string} |
658 | 671 |
* @memberof User |
659 | 672 |
*/ |
660 |
'id'?: string;
|
|
673 |
id?: string;
|
|
661 | 674 |
/** |
662 |
*
|
|
675 |
* |
|
663 | 676 |
* @type {string} |
664 | 677 |
* @memberof User |
665 | 678 |
*/ |
666 |
'username'?: string | null;
|
|
679 |
username?: string | null;
|
|
667 | 680 |
/** |
668 |
*
|
|
681 |
* |
|
669 | 682 |
* @type {string} |
670 | 683 |
* @memberof User |
671 | 684 |
*/ |
672 |
'name'?: string | null;
|
|
685 |
name?: string | null;
|
|
673 | 686 |
/** |
674 |
*
|
|
687 |
* |
|
675 | 688 |
* @type {string} |
676 | 689 |
* @memberof User |
677 | 690 |
*/ |
678 |
'surname'?: string | null;
|
|
691 |
surname?: string | null;
|
|
679 | 692 |
/** |
680 |
*
|
|
693 |
* |
|
681 | 694 |
* @type {ERole} |
682 | 695 |
* @memberof User |
683 | 696 |
*/ |
684 |
'role'?: ERole;
|
|
697 |
role?: ERole;
|
|
685 | 698 |
} |
686 | 699 |
/** |
687 |
*
|
|
700 |
* |
|
688 | 701 |
* @export |
689 | 702 |
* @interface UserInfo |
690 | 703 |
*/ |
691 | 704 |
export interface UserInfo { |
705 |
key?: string; |
|
692 | 706 |
/** |
693 |
*
|
|
707 |
* |
|
694 | 708 |
* @type {string} |
695 | 709 |
* @memberof UserInfo |
696 | 710 |
*/ |
697 |
'id'?: string;
|
|
711 |
id?: string;
|
|
698 | 712 |
/** |
699 |
*
|
|
713 |
* |
|
700 | 714 |
* @type {string} |
701 | 715 |
* @memberof UserInfo |
702 | 716 |
*/ |
703 |
'username'?: string | null;
|
|
717 |
username?: string | null;
|
|
704 | 718 |
/** |
705 |
*
|
|
719 |
* |
|
706 | 720 |
* @type {string} |
707 | 721 |
* @memberof UserInfo |
708 | 722 |
*/ |
709 |
'name'?: string | null;
|
|
723 |
name?: string | null;
|
|
710 | 724 |
/** |
711 |
*
|
|
725 |
* |
|
712 | 726 |
* @type {string} |
713 | 727 |
* @memberof UserInfo |
714 | 728 |
*/ |
715 |
'surname'?: string | null;
|
|
729 |
surname?: string | null;
|
|
716 | 730 |
} |
717 | 731 |
/** |
718 |
*
|
|
732 |
* |
|
719 | 733 |
* @export |
720 | 734 |
* @interface UserList |
721 | 735 |
*/ |
722 | 736 |
export interface UserList { |
723 | 737 |
/** |
724 |
*
|
|
738 |
* |
|
725 | 739 |
* @type {Array<UserInfo>} |
726 | 740 |
* @memberof UserList |
727 | 741 |
*/ |
728 |
'users'?: Array<UserInfo> | null;
|
|
742 |
users?: Array<UserInfo> | null;
|
|
729 | 743 |
} |
730 | 744 |
|
731 | 745 |
/** |
... | ... | |
735 | 749 |
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) { |
736 | 750 |
return { |
737 | 751 |
/** |
738 |
*
|
|
739 |
* @param {string} annotationId
|
|
752 |
* |
|
753 |
* @param {string} annotationId |
|
740 | 754 |
* @param {*} [options] Override http request option. |
741 | 755 |
* @throws {RequiredError} |
742 | 756 |
*/ |
743 |
annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
757 |
annotationAnnotationIdGet: async ( |
|
758 |
annotationId: string, |
|
759 |
options: AxiosRequestConfig = {} |
|
760 |
): Promise<RequestArgs> => { |
|
744 | 761 |
// verify required parameter 'annotationId' is not null or undefined |
745 |
assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId) |
|
746 |
const localVarPath = `/annotation/{annotationId}` |
|
747 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))); |
|
762 |
assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId); |
|
763 |
const localVarPath = `/annotation/{annotationId}`.replace( |
|
764 |
`{${'annotationId'}}`, |
|
765 |
encodeURIComponent(String(annotationId)) |
|
766 |
); |
|
748 | 767 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
749 | 768 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
750 | 769 |
let baseOptions; |
... | ... | |
752 | 771 |
baseOptions = configuration.baseOptions; |
753 | 772 |
} |
754 | 773 |
|
755 |
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|
774 |
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
756 | 775 |
const localVarHeaderParameter = {} as any; |
757 | 776 |
const localVarQueryParameter = {} as any; |
758 | 777 |
|
759 |
|
|
760 |
|
|
761 | 778 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
762 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
763 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
779 |
let headersFromBaseOptions = |
|
780 |
baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
781 |
localVarRequestOptions.headers = { |
|
782 |
...localVarHeaderParameter, |
|
783 |
...headersFromBaseOptions, |
|
784 |
...options.headers, |
|
785 |
}; |
|
764 | 786 |
|
765 | 787 |
return { |
766 | 788 |
url: toPathString(localVarUrlObj), |
... | ... | |
768 | 790 |
}; |
769 | 791 |
}, |
770 | 792 |
/** |
771 |
*
|
|
772 |
* @param {string} annotationId
|
|
773 |
* @param {string} occurenceId
|
|
793 |
* |
|
794 |
* @param {string} annotationId |
|
795 |
* @param {string} occurenceId |
|
774 | 796 |
* @param {*} [options] Override http request option. |
775 | 797 |
* @throws {RequiredError} |
776 | 798 |
*/ |
777 |
annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
799 |
annotationAnnotationIdOccurenceIdDelete: async ( |
|
800 |
annotationId: string, |
|
801 |
occurenceId: string, |
|
802 |
options: AxiosRequestConfig = {} |
|
803 |
): Promise<RequestArgs> => { |
|
778 | 804 |
// verify required parameter 'annotationId' is not null or undefined |
779 |
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId) |
|
805 |
assertParamExists( |
|
806 |
'annotationAnnotationIdOccurenceIdDelete', |
|
807 |
'annotationId', |
|
808 |
annotationId |
|
809 |
); |
|
780 | 810 |
// verify required parameter 'occurenceId' is not null or undefined |
781 |
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId) |
|
811 |
assertParamExists( |
|
812 |
'annotationAnnotationIdOccurenceIdDelete', |
|
813 |
'occurenceId', |
|
814 |
occurenceId |
|
815 |
); |
|
782 | 816 |
const localVarPath = `/annotation/{annotationId}/{occurenceId}` |
783 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
|
784 |
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
|
|
817 |
.replace(`{${'annotationId'}}`, encodeURIComponent(String(annotationId)))
|
|
818 |
.replace(`{${'occurenceId'}}`, encodeURIComponent(String(occurenceId)));
|
|
785 | 819 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
786 | 820 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
787 | 821 |
let baseOptions; |
... | ... | |
789 | 823 |
baseOptions = configuration.baseOptions; |
790 | 824 |
} |
791 | 825 |
|
792 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; |
|
826 |
const localVarRequestOptions = { |
|
827 |
method: 'DELETE', |
|
828 |
...baseOptions, |
|
829 |
...options, |
|
830 |
}; |
|
793 | 831 |
const localVarHeaderParameter = {} as any; |
794 | 832 |
const localVarQueryParameter = {} as any; |
795 | 833 |
|
796 |
|
|
797 |
|
|
798 | 834 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
799 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
800 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
835 |
let headersFromBaseOptions = |
|
836 |
baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
837 |
localVarRequestOptions.headers = { |
|
838 |
...localVarHeaderParameter, |
|
839 |
...headersFromBaseOptions, |
|
840 |
...options.headers, |
|
841 |
}; |
|
801 | 842 |
|
802 | 843 |
return { |
803 | 844 |
url: toPathString(localVarUrlObj), |
... | ... | |
805 | 846 |
}; |
806 | 847 |
}, |
807 | 848 |
/** |
808 |
*
|
|
809 |
* @param {string} annotationId
|
|
810 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
|
849 |
* |
|
850 |
* @param {string} annotationId |
|
851 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] |
|
811 | 852 |
* @param {*} [options] Override http request option. |
812 | 853 |
* @throws {RequiredError} |
813 | 854 |
*/ |
814 |
annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
855 |
annotationAnnotationIdPost: async ( |
|
856 |
annotationId: string, |
|
857 |
annotationInstanceAddRequest?: AnnotationInstanceAddRequest, |
|
858 |
options: AxiosRequestConfig = {} |
|
859 |
): Promise<RequestArgs> => { |
|
815 | 860 |
// verify required parameter 'annotationId' is not null or undefined |
816 |
assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId) |
|
817 |
const localVarPath = `/annotation/{annotationId}` |
|
818 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))); |
|
861 |
assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId); |
|
862 |
const localVarPath = `/annotation/{annotationId}`.replace( |
|
863 |
`{${'annotationId'}}`, |
|
864 |
encodeURIComponent(String(annotationId)) |
|
865 |
); |
|
819 | 866 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
820 | 867 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
821 | 868 |
let baseOptions; |
... | ... | |
823 | 870 |
baseOptions = configuration.baseOptions; |
824 | 871 |
} |
825 | 872 |
|
826 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
873 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
827 | 874 |
const localVarHeaderParameter = {} as any; |
828 | 875 |
const localVarQueryParameter = {} as any; |
829 | 876 |
|
830 |
|
|
831 |
|
|
832 | 877 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
833 | 878 |
|
834 | 879 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
835 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
836 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
837 |
localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration) |
|
880 |
let headersFromBaseOptions = |
|
881 |
baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
882 |
localVarRequestOptions.headers = { |
|
883 |
...localVarHeaderParameter, |
|
884 |
...headersFromBaseOptions, |
|
885 |
...options.headers, |
|
886 |
}; |
|
887 |
localVarRequestOptions.data = serializeDataIfNeeded( |
|
888 |
annotationInstanceAddRequest, |
|
889 |
localVarRequestOptions, |
|
890 |
configuration |
|
891 |
); |
|
838 | 892 |
|
839 | 893 |
return { |
840 | 894 |
url: toPathString(localVarUrlObj), |
... | ... | |
842 | 896 |
}; |
843 | 897 |
}, |
844 | 898 |
/** |
845 |
*
|
|
846 |
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
|
899 |
* |
|
900 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
847 | 901 |
* @param {*} [options] Override http request option. |
848 | 902 |
* @throws {RequiredError} |
849 | 903 |
*/ |
850 |
annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
904 |
annotationsPost: async ( |
|
905 |
annotationsAddRequest?: AnnotationsAddRequest, |
|
906 |
options: AxiosRequestConfig = {} |
|
907 |
): Promise<RequestArgs> => { |
|
851 | 908 |
const localVarPath = `/annotations`; |
852 | 909 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
853 | 910 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
... | ... | |
856 | 913 |
baseOptions = configuration.baseOptions; |
857 | 914 |
} |
858 | 915 |
|
859 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
916 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
860 | 917 |
const localVarHeaderParameter = {} as any; |
861 | 918 |
const localVarQueryParameter = {} as any; |
862 | 919 |
|
863 |
|
|
864 |
|
|
865 | 920 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
866 | 921 |
|
867 | 922 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
868 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
869 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
870 |
localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration) |
|
923 |
let headersFromBaseOptions = |
|
924 |
baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
925 |
localVarRequestOptions.headers = { |
|
926 |
...localVarHeaderParameter, |
|
927 |
...headersFromBaseOptions, |
|
928 |
...options.headers, |
|
929 |
}; |
|
930 |
localVarRequestOptions.data = serializeDataIfNeeded( |
|
931 |
annotationsAddRequest, |
|
932 |
localVarRequestOptions, |
|
933 |
configuration |
|
934 |
); |
|
871 | 935 |
|
872 | 936 |
return { |
873 | 937 |
url: toPathString(localVarUrlObj), |
874 | 938 |
options: localVarRequestOptions, |
875 | 939 |
}; |
876 | 940 |
}, |
877 |
} |
|
941 |
};
|
|
878 | 942 |
}; |
879 | 943 |
|
880 | 944 |
/** |
881 | 945 |
* AnnotationApi - functional programming interface |
882 | 946 |
* @export |
883 | 947 |
*/ |
884 |
export const AnnotationApiFp = function(configuration?: Configuration) { |
|
885 |
const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration) |
|
948 |
export const AnnotationApiFp = function (configuration?: Configuration) {
|
|
949 |
const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration);
|
|
886 | 950 |
return { |
887 | 951 |
/** |
888 |
*
|
|
889 |
* @param {string} annotationId
|
|
952 |
* |
|
953 |
* @param {string} annotationId |
|
890 | 954 |
* @param {*} [options] Override http request option. |
891 | 955 |
* @throws {RequiredError} |
892 | 956 |
*/ |
893 |
async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> { |
|
894 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options); |
|
895 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
957 |
async annotationAnnotationIdGet( |
|
958 |
annotationId: string, |
|
959 |
options?: AxiosRequestConfig |
|
960 |
): Promise< |
|
961 |
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo> |
|
962 |
> { |
|
963 |
const localVarAxiosArgs = |
|
964 |
await localVarAxiosParamCreator.annotationAnnotationIdGet( |
|
965 |
annotationId, |
|
966 |
options |
|
967 |
); |
|
968 |
return createRequestFunction( |
|
969 |
localVarAxiosArgs, |
|
970 |
globalAxios, |
|
971 |
BASE_PATH, |
|
972 |
configuration |
|
973 |
); |
|
896 | 974 |
}, |
897 | 975 |
/** |
898 |
*
|
|
899 |
* @param {string} annotationId
|
|
900 |
* @param {string} occurenceId
|
|
976 |
* |
|
977 |
* @param {string} annotationId |
|
978 |
* @param {string} occurenceId |
|
901 | 979 |
* @param {*} [options] Override http request option. |
902 | 980 |
* @throws {RequiredError} |
903 | 981 |
*/ |
904 |
async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
905 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options); |
|
906 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
982 |
async annotationAnnotationIdOccurenceIdDelete( |
|
983 |
annotationId: string, |
|
984 |
occurenceId: string, |
|
985 |
options?: AxiosRequestConfig |
|
986 |
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
987 |
const localVarAxiosArgs = |
|
988 |
await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete( |
|
989 |
annotationId, |
|
990 |
occurenceId, |
|
991 |
options |
|
992 |
); |
|
993 |
return createRequestFunction( |
|
994 |
localVarAxiosArgs, |
|
995 |
globalAxios, |
|
996 |
BASE_PATH, |
|
997 |
configuration |
|
998 |
); |
|
907 | 999 |
}, |
908 | 1000 |
/** |
909 |
*
|
|
910 |
* @param {string} annotationId
|
|
911 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
|
1001 |
* |
|
1002 |
* @param {string} annotationId |
|
1003 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] |
|
912 | 1004 |
* @param {*} [options] Override http request option. |
913 | 1005 |
* @throws {RequiredError} |
914 | 1006 |
*/ |
915 |
async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
916 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options); |
|
917 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1007 |
async annotationAnnotationIdPost( |
|
1008 |
annotationId: string, |
|
1009 |
annotationInstanceAddRequest?: AnnotationInstanceAddRequest, |
|
1010 |
options?: AxiosRequestConfig |
|
1011 |
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1012 |
const localVarAxiosArgs = |
|
1013 |
await localVarAxiosParamCreator.annotationAnnotationIdPost( |
|
1014 |
annotationId, |
|
1015 |
annotationInstanceAddRequest, |
|
1016 |
options |
|
1017 |
); |
|
1018 |
return createRequestFunction( |
|
1019 |
localVarAxiosArgs, |
|
1020 |
globalAxios, |
|
1021 |
BASE_PATH, |
|
1022 |
configuration |
|
1023 |
); |
|
918 | 1024 |
}, |
919 | 1025 |
/** |
920 |
*
|
|
921 |
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
|
1026 |
* |
|
1027 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
922 | 1028 |
* @param {*} [options] Override http request option. |
923 | 1029 |
* @throws {RequiredError} |
924 | 1030 |
*/ |
925 |
async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
926 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options); |
|
927 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1031 |
async annotationsPost( |
|
1032 |
annotationsAddRequest?: AnnotationsAddRequest, |
|
1033 |
options?: AxiosRequestConfig |
|
1034 |
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1035 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost( |
|
1036 |
annotationsAddRequest, |
|
1037 |
options |
|
1038 |
); |
|
1039 |
return createRequestFunction( |
|
1040 |
localVarAxiosArgs, |
|
1041 |
globalAxios, |
|
1042 |
BASE_PATH, |
|
1043 |
configuration |
|
1044 |
); |
|
928 | 1045 |
}, |
929 |
} |
|
1046 |
};
|
|
930 | 1047 |
}; |
931 | 1048 |
|
932 | 1049 |
/** |
933 | 1050 |
* AnnotationApi - factory interface |
934 | 1051 |
* @export |
935 | 1052 |
*/ |
936 |
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|
937 |
const localVarFp = AnnotationApiFp(configuration) |
|
1053 |
export const AnnotationApiFactory = function ( |
|
1054 |
configuration?: Configuration, |
|
1055 |
basePath?: string, |
|
1056 |
axios?: AxiosInstance |
|
1057 |
) { |
|
1058 |
const localVarFp = AnnotationApiFp(configuration); |
|
938 | 1059 |
return { |
939 | 1060 |
/** |
940 |
*
|
|
941 |
* @param {string} annotationId
|
|
1061 |
* |
|
1062 |
* @param {string} annotationId |
|
942 | 1063 |
* @param {*} [options] Override http request option. |
943 | 1064 |
* @throws {RequiredError} |
944 | 1065 |
*/ |
945 |
annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> { |
|
946 |
return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath)); |
|
1066 |
annotationAnnotationIdGet( |
|
1067 |
annotationId: string, |
|
1068 |
options?: any |
|
1069 |
): AxiosPromise<AnnotationInfo> { |
|
1070 |
return localVarFp |
|
1071 |
.annotationAnnotationIdGet(annotationId, options) |
|
1072 |
.then((request) => request(axios, basePath)); |
|
947 | 1073 |
}, |
948 | 1074 |
/** |
949 |
*
|
|
950 |
* @param {string} annotationId
|
|
951 |
* @param {string} occurenceId
|
|
1075 |
* |
|
1076 |
* @param {string} annotationId |
|
1077 |
* @param {string} occurenceId |
|
952 | 1078 |
* @param {*} [options] Override http request option. |
953 | 1079 |
* @throws {RequiredError} |
954 | 1080 |
*/ |
955 |
annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> { |
|
956 |
return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath)); |
|
1081 |
annotationAnnotationIdOccurenceIdDelete( |
|
1082 |
annotationId: string, |
|
1083 |
occurenceId: string, |
|
1084 |
options?: any |
|
1085 |
): AxiosPromise<void> { |
|
1086 |
return localVarFp |
|
1087 |
.annotationAnnotationIdOccurenceIdDelete( |
|
1088 |
annotationId, |
|
1089 |
occurenceId, |
|
1090 |
options |
|
1091 |
) |
|
1092 |
.then((request) => request(axios, basePath)); |
|
957 | 1093 |
}, |
958 | 1094 |
/** |
959 |
*
|
|
960 |
* @param {string} annotationId
|
|
961 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
|
1095 |
* |
|
1096 |
* @param {string} annotationId |
|
1097 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] |
|
962 | 1098 |
* @param {*} [options] Override http request option. |
963 | 1099 |
* @throws {RequiredError} |
964 | 1100 |
*/ |
965 |
annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> { |
|
966 |
return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath)); |
|
1101 |
annotationAnnotationIdPost( |
|
1102 |
annotationId: string, |
|
1103 |
annotationInstanceAddRequest?: AnnotationInstanceAddRequest, |
|
1104 |
options?: any |
|
1105 |
): AxiosPromise<void> { |
|
1106 |
return localVarFp |
|
1107 |
.annotationAnnotationIdPost( |
|
1108 |
annotationId, |
|
1109 |
annotationInstanceAddRequest, |
|
1110 |
options |
|
1111 |
) |
|
1112 |
.then((request) => request(axios, basePath)); |
|
967 | 1113 |
}, |
968 | 1114 |
/** |
969 |
*
|
|
970 |
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
|
1115 |
* |
|
1116 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
971 | 1117 |
* @param {*} [options] Override http request option. |
972 | 1118 |
* @throws {RequiredError} |
973 | 1119 |
*/ |
974 |
annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> { |
|
975 |
return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath)); |
|
1120 |
annotationsPost( |
|
1121 |
annotationsAddRequest?: AnnotationsAddRequest, |
|
1122 |
options?: any |
|
1123 |
): AxiosPromise<void> { |
|
1124 |
return localVarFp |
|
1125 |
.annotationsPost(annotationsAddRequest, options) |
|
1126 |
.then((request) => request(axios, basePath)); |
|
976 | 1127 |
}, |
977 | 1128 |
}; |
978 | 1129 |
}; |
... | ... | |
985 | 1136 |
*/ |
986 | 1137 |
export class AnnotationApi extends BaseAPI { |
987 | 1138 |
/** |
988 |
*
|
|
989 |
* @param {string} annotationId
|
|
1139 |
* |
|
1140 |
* @param {string} annotationId |
|
990 | 1141 |
* @param {*} [options] Override http request option. |
991 | 1142 |
* @throws {RequiredError} |
992 | 1143 |
* @memberof AnnotationApi |
993 | 1144 |
*/ |
994 | 1145 |
public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) { |
995 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath)); |
|
1146 |
return AnnotationApiFp(this.configuration) |
|
1147 |
.annotationAnnotationIdGet(annotationId, options) |
|
1148 |
.then((request) => request(this.axios, this.basePath)); |
|
996 | 1149 |
} |
997 | 1150 |
|
998 | 1151 |
/** |
999 |
*
|
|
1000 |
* @param {string} annotationId
|
|
1001 |
* @param {string} occurenceId
|
|
1152 |
* |
|
1153 |
* @param {string} annotationId |
|
1154 |
* @param {string} occurenceId |
|
1002 | 1155 |
* @param {*} [options] Override http request option. |
1003 | 1156 |
* @throws {RequiredError} |
1004 | 1157 |
* @memberof AnnotationApi |
1005 | 1158 |
*/ |
1006 |
public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) { |
|
1007 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath)); |
|
1159 |
public annotationAnnotationIdOccurenceIdDelete( |
|
1160 |
annotationId: string, |
|
1161 |
occurenceId: string, |
|
1162 |
options?: AxiosRequestConfig |
|
1163 |
) { |
|
1164 |
return AnnotationApiFp(this.configuration) |
|
1165 |
.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options) |
|
1166 |
.then((request) => request(this.axios, this.basePath)); |
|
1008 | 1167 |
} |
1009 | 1168 |
|
1010 | 1169 |
/** |
1011 |
*
|
|
1012 |
* @param {string} annotationId
|
|
1013 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
|
1170 |
* |
|
1171 |
* @param {string} annotationId |
|
1172 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] |
|
1014 | 1173 |
* @param {*} [options] Override http request option. |
1015 | 1174 |
* @throws {RequiredError} |
1016 | 1175 |
* @memberof AnnotationApi |
1017 | 1176 |
*/ |
1018 |
public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) { |
|
1019 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath)); |
|
1177 |
public annotationAnnotationIdPost( |
|
1178 |
annotationId: string, |
|
1179 |
annotationInstanceAddRequest?: AnnotationInstanceAddRequest, |
|
1180 |
options?: AxiosRequestConfig |
|
1181 |
) { |
|
1182 |
return AnnotationApiFp(this.configuration) |
|
1183 |
.annotationAnnotationIdPost( |
|
1184 |
annotationId, |
|
1185 |
annotationInstanceAddRequest, |
|
1186 |
options |
|
1187 |
) |
|
1188 |
.then((request) => request(this.axios, this.basePath)); |
|
1020 | 1189 |
} |
1021 | 1190 |
|
1022 | 1191 |
/** |
1023 |
* |
|
1024 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
1192 |
* |
Také k dispozici: Unified diff
Document assigning implemented