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