1 |
3e6b15a7
|
Lukáš Vlček
|
/* tslint:disable */
|
2 |
|
|
/* eslint-disable */
|
3 |
|
|
/**
|
4 |
|
|
* AnnotationTool
|
5 |
|
|
* KIV/ASWI ZČU Plzeň, 2022
|
6 |
|
|
*
|
7 |
|
|
* The version of the OpenAPI document: 0.1.1
|
8 |
19b68a2e
|
Lukáš Vlček
|
*
|
9 |
3e6b15a7
|
Lukáš Vlček
|
*
|
10 |
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11 |
|
|
* https://openapi-generator.tech
|
12 |
|
|
* Do not edit the class manually.
|
13 |
|
|
*/
|
14 |
|
|
|
15 |
19b68a2e
|
Lukáš Vlček
|
|
16 |
3e6b15a7
|
Lukáš Vlček
|
import { Configuration } from './configuration';
|
17 |
|
|
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
18 |
|
|
// Some imports not used depending on template conditions
|
19 |
|
|
// @ts-ignore
|
20 |
19b68a2e
|
Lukáš Vlček
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
21 |
3e6b15a7
|
Lukáš Vlček
|
// @ts-ignore
|
22 |
19b68a2e
|
Lukáš Vlček
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
23 |
3e6b15a7
|
Lukáš Vlček
|
|
24 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
25 |
|
|
*
|
26 |
|
|
* @export
|
27 |
|
|
* @interface AddNoteToAnnotationRequest
|
28 |
|
|
*/
|
29 |
|
|
export interface AddNoteToAnnotationRequest {
|
30 |
|
|
/**
|
31 |
|
|
*
|
32 |
|
|
* @type {string}
|
33 |
|
|
* @memberof AddNoteToAnnotationRequest
|
34 |
|
|
*/
|
35 |
|
|
'note'?: string | null;
|
36 |
|
|
}
|
37 |
|
|
/**
|
38 |
|
|
*
|
39 |
|
|
* @export
|
40 |
|
|
* @interface AddNoteToTagOccurenceRequest
|
41 |
|
|
*/
|
42 |
|
|
export interface AddNoteToTagOccurenceRequest {
|
43 |
|
|
/**
|
44 |
|
|
*
|
45 |
|
|
* @type {string}
|
46 |
|
|
* @memberof AddNoteToTagOccurenceRequest
|
47 |
|
|
*/
|
48 |
|
|
'note'?: string | null;
|
49 |
|
|
}
|
50 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
51 |
19b68a2e
|
Lukáš Vlček
|
*
|
52 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
53 |
|
|
* @interface AnnotationInfo
|
54 |
|
|
*/
|
55 |
|
|
export interface AnnotationInfo {
|
56 |
|
|
/**
|
57 |
19b68a2e
|
Lukáš Vlček
|
*
|
58 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
59 |
|
|
* @memberof AnnotationInfo
|
60 |
|
|
*/
|
61 |
19b68a2e
|
Lukáš Vlček
|
'sourceDocumentContent'?: string | null;
|
62 |
b5f60842
|
Lukáš Vlček
|
/**
|
63 |
19b68a2e
|
Lukáš Vlček
|
*
|
64 |
b5f60842
|
Lukáš Vlček
|
* @type {string}
|
65 |
|
|
* @memberof AnnotationInfo
|
66 |
|
|
*/
|
67 |
19b68a2e
|
Lukáš Vlček
|
'documentToRender'?: string | null;
|
68 |
b5f60842
|
Lukáš Vlček
|
/**
|
69 |
19b68a2e
|
Lukáš Vlček
|
*
|
70 |
b5f60842
|
Lukáš Vlček
|
* @type {Array<number>}
|
71 |
|
|
* @memberof AnnotationInfo
|
72 |
|
|
*/
|
73 |
19b68a2e
|
Lukáš Vlček
|
'tagStartPositions'?: Array<number> | null;
|
74 |
b5f60842
|
Lukáš Vlček
|
/**
|
75 |
19b68a2e
|
Lukáš Vlček
|
*
|
76 |
b5f60842
|
Lukáš Vlček
|
* @type {Array<number>}
|
77 |
|
|
* @memberof AnnotationInfo
|
78 |
|
|
*/
|
79 |
19b68a2e
|
Lukáš Vlček
|
'tagLengths'?: Array<number> | null;
|
80 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
81 |
19b68a2e
|
Lukáš Vlček
|
*
|
82 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EState}
|
83 |
|
|
* @memberof AnnotationInfo
|
84 |
|
|
*/
|
85 |
19b68a2e
|
Lukáš Vlček
|
'state'?: EState;
|
86 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
87 |
19b68a2e
|
Lukáš Vlček
|
*
|
88 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EDocumentType}
|
89 |
|
|
* @memberof AnnotationInfo
|
90 |
|
|
*/
|
91 |
19b68a2e
|
Lukáš Vlček
|
'type'?: EDocumentType;
|
92 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
93 |
19b68a2e
|
Lukáš Vlček
|
*
|
94 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
95 |
|
|
* @memberof AnnotationInfo
|
96 |
|
|
*/
|
97 |
19b68a2e
|
Lukáš Vlček
|
'note'?: string | null;
|
98 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
99 |
19b68a2e
|
Lukáš Vlček
|
*
|
100 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<TagInstanceInfo>}
|
101 |
|
|
* @memberof AnnotationInfo
|
102 |
|
|
*/
|
103 |
19b68a2e
|
Lukáš Vlček
|
'tagInstances'?: Array<TagInstanceInfo> | null;
|
104 |
3e6b15a7
|
Lukáš Vlček
|
}
|
105 |
4bc99591
|
Lukáš Vlček
|
/**
|
106 |
19b68a2e
|
Lukáš Vlček
|
*
|
107 |
4bc99591
|
Lukáš Vlček
|
* @export
|
108 |
|
|
* @interface AnnotationInstanceAddRequest
|
109 |
|
|
*/
|
110 |
|
|
export interface AnnotationInstanceAddRequest {
|
111 |
|
|
/**
|
112 |
19b68a2e
|
Lukáš Vlček
|
*
|
113 |
4bc99591
|
Lukáš Vlček
|
* @type {number}
|
114 |
|
|
* @memberof AnnotationInstanceAddRequest
|
115 |
|
|
*/
|
116 |
19b68a2e
|
Lukáš Vlček
|
'position'?: number;
|
117 |
4bc99591
|
Lukáš Vlček
|
/**
|
118 |
19b68a2e
|
Lukáš Vlček
|
*
|
119 |
4bc99591
|
Lukáš Vlček
|
* @type {number}
|
120 |
|
|
* @memberof AnnotationInstanceAddRequest
|
121 |
|
|
*/
|
122 |
19b68a2e
|
Lukáš Vlček
|
'length'?: number;
|
123 |
4bc99591
|
Lukáš Vlček
|
/**
|
124 |
19b68a2e
|
Lukáš Vlček
|
*
|
125 |
4bc99591
|
Lukáš Vlček
|
* @type {ETagType}
|
126 |
|
|
* @memberof AnnotationInstanceAddRequest
|
127 |
|
|
*/
|
128 |
19b68a2e
|
Lukáš Vlček
|
'type'?: ETagType;
|
129 |
4bc99591
|
Lukáš Vlček
|
/**
|
130 |
19b68a2e
|
Lukáš Vlček
|
*
|
131 |
4bc99591
|
Lukáš Vlček
|
* @type {string}
|
132 |
|
|
* @memberof AnnotationInstanceAddRequest
|
133 |
|
|
*/
|
134 |
19b68a2e
|
Lukáš Vlček
|
'id'?: string;
|
135 |
4bc99591
|
Lukáš Vlček
|
/**
|
136 |
19b68a2e
|
Lukáš Vlček
|
*
|
137 |
4bc99591
|
Lukáš Vlček
|
* @type {string}
|
138 |
|
|
* @memberof AnnotationInstanceAddRequest
|
139 |
|
|
*/
|
140 |
19b68a2e
|
Lukáš Vlček
|
'instanceId'?: string | null;
|
141 |
4bc99591
|
Lukáš Vlček
|
}
|
142 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
143 |
19b68a2e
|
Lukáš Vlček
|
*
|
144 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
145 |
|
|
* @interface AnnotationListInfo
|
146 |
|
|
*/
|
147 |
|
|
export interface AnnotationListInfo {
|
148 |
|
|
/**
|
149 |
19b68a2e
|
Lukáš Vlček
|
*
|
150 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
151 |
|
|
* @memberof AnnotationListInfo
|
152 |
|
|
*/
|
153 |
19b68a2e
|
Lukáš Vlček
|
'documentName'?: string | null;
|
154 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
155 |
19b68a2e
|
Lukáš Vlček
|
*
|
156 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EState}
|
157 |
|
|
* @memberof AnnotationListInfo
|
158 |
|
|
*/
|
159 |
19b68a2e
|
Lukáš Vlček
|
'state'?: EState;
|
160 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
161 |
19b68a2e
|
Lukáš Vlček
|
*
|
162 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
163 |
|
|
* @memberof AnnotationListInfo
|
164 |
|
|
*/
|
165 |
19b68a2e
|
Lukáš Vlček
|
'annotationId'?: string;
|
166 |
3e6b15a7
|
Lukáš Vlček
|
}
|
167 |
|
|
/**
|
168 |
19b68a2e
|
Lukáš Vlček
|
*
|
169 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
170 |
|
|
* @interface AnnotationListResponse
|
171 |
|
|
*/
|
172 |
|
|
export interface AnnotationListResponse {
|
173 |
|
|
/**
|
174 |
19b68a2e
|
Lukáš Vlček
|
*
|
175 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<AnnotationListInfo>}
|
176 |
|
|
* @memberof AnnotationListResponse
|
177 |
|
|
*/
|
178 |
19b68a2e
|
Lukáš Vlček
|
'annotations'?: Array<AnnotationListInfo> | null;
|
179 |
3e6b15a7
|
Lukáš Vlček
|
}
|
180 |
|
|
/**
|
181 |
19b68a2e
|
Lukáš Vlček
|
*
|
182 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
183 |
|
|
* @interface AnnotationsAddRequest
|
184 |
|
|
*/
|
185 |
|
|
export interface AnnotationsAddRequest {
|
186 |
|
|
/**
|
187 |
19b68a2e
|
Lukáš Vlček
|
*
|
188 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<string>}
|
189 |
|
|
* @memberof AnnotationsAddRequest
|
190 |
|
|
*/
|
191 |
19b68a2e
|
Lukáš Vlček
|
'userIdList'?: Array<string> | null;
|
192 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
193 |
19b68a2e
|
Lukáš Vlček
|
*
|
194 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<string>}
|
195 |
|
|
* @memberof AnnotationsAddRequest
|
196 |
|
|
*/
|
197 |
19b68a2e
|
Lukáš Vlček
|
'documentIdList'?: Array<string> | null;
|
198 |
3e6b15a7
|
Lukáš Vlček
|
}
|
199 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
200 |
19b68a2e
|
Lukáš Vlček
|
*
|
201 |
43d49a98
|
Jaroslav Hrubý
|
* @export
|
202 |
|
|
* @interface ChangeUserInfoRequest
|
203 |
|
|
*/
|
204 |
|
|
export interface ChangeUserInfoRequest {
|
205 |
|
|
/**
|
206 |
19b68a2e
|
Lukáš Vlček
|
*
|
207 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
208 |
|
|
* @memberof ChangeUserInfoRequest
|
209 |
|
|
*/
|
210 |
19b68a2e
|
Lukáš Vlček
|
'password'?: string | null;
|
211 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
212 |
19b68a2e
|
Lukáš Vlček
|
*
|
213 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
214 |
|
|
* @memberof ChangeUserInfoRequest
|
215 |
|
|
*/
|
216 |
19b68a2e
|
Lukáš Vlček
|
'username'?: string | null;
|
217 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
218 |
19b68a2e
|
Lukáš Vlček
|
*
|
219 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
220 |
|
|
* @memberof ChangeUserInfoRequest
|
221 |
|
|
*/
|
222 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
223 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
224 |
19b68a2e
|
Lukáš Vlček
|
*
|
225 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
226 |
|
|
* @memberof ChangeUserInfoRequest
|
227 |
|
|
*/
|
228 |
19b68a2e
|
Lukáš Vlček
|
'surname'?: string | null;
|
229 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
230 |
19b68a2e
|
Lukáš Vlček
|
*
|
231 |
43d49a98
|
Jaroslav Hrubý
|
* @type {ERole}
|
232 |
|
|
* @memberof ChangeUserInfoRequest
|
233 |
|
|
*/
|
234 |
19b68a2e
|
Lukáš Vlček
|
'role'?: ERole;
|
235 |
43d49a98
|
Jaroslav Hrubý
|
}
|
236 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
237 |
19b68a2e
|
Lukáš Vlček
|
*
|
238 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
239 |
|
|
* @interface ClientInfo
|
240 |
|
|
*/
|
241 |
|
|
export interface ClientInfo {
|
242 |
|
|
/**
|
243 |
19b68a2e
|
Lukáš Vlček
|
*
|
244 |
3e6b15a7
|
Lukáš Vlček
|
* @type {boolean}
|
245 |
|
|
* @memberof ClientInfo
|
246 |
|
|
*/
|
247 |
19b68a2e
|
Lukáš Vlček
|
'isLogged'?: boolean;
|
248 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
249 |
19b68a2e
|
Lukáš Vlček
|
*
|
250 |
3e6b15a7
|
Lukáš Vlček
|
* @type {User}
|
251 |
|
|
* @memberof ClientInfo
|
252 |
|
|
*/
|
253 |
19b68a2e
|
Lukáš Vlček
|
'loggedUser'?: User;
|
254 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
255 |
19b68a2e
|
Lukáš Vlček
|
*
|
256 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
257 |
|
|
* @memberof ClientInfo
|
258 |
|
|
*/
|
259 |
19b68a2e
|
Lukáš Vlček
|
'ip'?: string | null;
|
260 |
3e6b15a7
|
Lukáš Vlček
|
}
|
261 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
262 |
|
|
*
|
263 |
|
|
* @export
|
264 |
|
|
* @interface CreateCategoryRequest
|
265 |
|
|
*/
|
266 |
|
|
export interface CreateCategoryRequest {
|
267 |
|
|
/**
|
268 |
|
|
*
|
269 |
|
|
* @type {string}
|
270 |
|
|
* @memberof CreateCategoryRequest
|
271 |
|
|
*/
|
272 |
|
|
'name'?: string | null;
|
273 |
|
|
/**
|
274 |
|
|
*
|
275 |
|
|
* @type {string}
|
276 |
|
|
* @memberof CreateCategoryRequest
|
277 |
|
|
*/
|
278 |
|
|
'description'?: string | null;
|
279 |
|
|
/**
|
280 |
|
|
*
|
281 |
|
|
* @type {string}
|
282 |
|
|
* @memberof CreateCategoryRequest
|
283 |
|
|
*/
|
284 |
|
|
'color'?: string | null;
|
285 |
|
|
/**
|
286 |
|
|
*
|
287 |
|
|
* @type {boolean}
|
288 |
|
|
* @memberof CreateCategoryRequest
|
289 |
|
|
*/
|
290 |
|
|
'disabledForAnnotators'?: boolean;
|
291 |
|
|
}
|
292 |
|
|
/**
|
293 |
|
|
*
|
294 |
|
|
* @export
|
295 |
|
|
* @interface CreateSubTagRequest
|
296 |
|
|
*/
|
297 |
|
|
export interface CreateSubTagRequest {
|
298 |
|
|
/**
|
299 |
|
|
*
|
300 |
|
|
* @type {string}
|
301 |
|
|
* @memberof CreateSubTagRequest
|
302 |
|
|
*/
|
303 |
|
|
'name'?: string | null;
|
304 |
|
|
/**
|
305 |
|
|
*
|
306 |
|
|
* @type {string}
|
307 |
|
|
* @memberof CreateSubTagRequest
|
308 |
|
|
*/
|
309 |
|
|
'description'?: string | null;
|
310 |
|
|
/**
|
311 |
|
|
*
|
312 |
|
|
* @type {string}
|
313 |
|
|
* @memberof CreateSubTagRequest
|
314 |
|
|
*/
|
315 |
|
|
'tagId'?: string;
|
316 |
|
|
/**
|
317 |
|
|
*
|
318 |
|
|
* @type {boolean}
|
319 |
|
|
* @memberof CreateSubTagRequest
|
320 |
|
|
*/
|
321 |
|
|
'sentimentEnabled'?: boolean;
|
322 |
|
|
}
|
323 |
|
|
/**
|
324 |
|
|
*
|
325 |
|
|
* @export
|
326 |
|
|
* @interface CreateTagRequest
|
327 |
|
|
*/
|
328 |
|
|
export interface CreateTagRequest {
|
329 |
|
|
/**
|
330 |
|
|
*
|
331 |
|
|
* @type {string}
|
332 |
|
|
* @memberof CreateTagRequest
|
333 |
|
|
*/
|
334 |
|
|
'categoryId'?: string;
|
335 |
|
|
/**
|
336 |
|
|
*
|
337 |
|
|
* @type {string}
|
338 |
|
|
* @memberof CreateTagRequest
|
339 |
|
|
*/
|
340 |
|
|
'name'?: string | null;
|
341 |
|
|
/**
|
342 |
|
|
*
|
343 |
|
|
* @type {string}
|
344 |
|
|
* @memberof CreateTagRequest
|
345 |
|
|
*/
|
346 |
|
|
'description'?: string | null;
|
347 |
|
|
/**
|
348 |
|
|
*
|
349 |
|
|
* @type {string}
|
350 |
|
|
* @memberof CreateTagRequest
|
351 |
|
|
*/
|
352 |
|
|
'color'?: string | null;
|
353 |
|
|
/**
|
354 |
|
|
*
|
355 |
|
|
* @type {boolean}
|
356 |
|
|
* @memberof CreateTagRequest
|
357 |
|
|
*/
|
358 |
|
|
'sentimentEnabled'?: boolean;
|
359 |
|
|
}
|
360 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
361 |
19b68a2e
|
Lukáš Vlček
|
*
|
362 |
43d49a98
|
Jaroslav Hrubý
|
* @export
|
363 |
|
|
* @interface CreateUserRequest
|
364 |
|
|
*/
|
365 |
|
|
export interface CreateUserRequest {
|
366 |
|
|
/**
|
367 |
19b68a2e
|
Lukáš Vlček
|
*
|
368 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
369 |
|
|
* @memberof CreateUserRequest
|
370 |
|
|
*/
|
371 |
19b68a2e
|
Lukáš Vlček
|
'username'?: string | null;
|
372 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
373 |
19b68a2e
|
Lukáš Vlček
|
*
|
374 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
375 |
|
|
* @memberof CreateUserRequest
|
376 |
|
|
*/
|
377 |
19b68a2e
|
Lukáš Vlček
|
'password'?: string | null;
|
378 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
379 |
19b68a2e
|
Lukáš Vlček
|
*
|
380 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
381 |
|
|
* @memberof CreateUserRequest
|
382 |
|
|
*/
|
383 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
384 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
385 |
19b68a2e
|
Lukáš Vlček
|
*
|
386 |
43d49a98
|
Jaroslav Hrubý
|
* @type {string}
|
387 |
|
|
* @memberof CreateUserRequest
|
388 |
|
|
*/
|
389 |
19b68a2e
|
Lukáš Vlček
|
'surname'?: string | null;
|
390 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
391 |
19b68a2e
|
Lukáš Vlček
|
*
|
392 |
43d49a98
|
Jaroslav Hrubý
|
* @type {ERole}
|
393 |
|
|
* @memberof CreateUserRequest
|
394 |
|
|
*/
|
395 |
19b68a2e
|
Lukáš Vlček
|
'role'?: ERole;
|
396 |
43d49a98
|
Jaroslav Hrubý
|
}
|
397 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
398 |
19b68a2e
|
Lukáš Vlček
|
*
|
399 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
400 |
|
|
* @interface DocumentAddInfo
|
401 |
|
|
*/
|
402 |
|
|
export interface DocumentAddInfo {
|
403 |
|
|
/**
|
404 |
19b68a2e
|
Lukáš Vlček
|
*
|
405 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
406 |
|
|
* @memberof DocumentAddInfo
|
407 |
|
|
*/
|
408 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
409 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
410 |
19b68a2e
|
Lukáš Vlček
|
*
|
411 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EAddDocumentFormat}
|
412 |
|
|
* @memberof DocumentAddInfo
|
413 |
|
|
*/
|
414 |
19b68a2e
|
Lukáš Vlček
|
'format'?: EAddDocumentFormat;
|
415 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
416 |
19b68a2e
|
Lukáš Vlček
|
*
|
417 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
418 |
|
|
* @memberof DocumentAddInfo
|
419 |
|
|
*/
|
420 |
19b68a2e
|
Lukáš Vlček
|
'content'?: string | null;
|
421 |
3e6b15a7
|
Lukáš Vlček
|
}
|
422 |
|
|
/**
|
423 |
19b68a2e
|
Lukáš Vlček
|
*
|
424 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
425 |
|
|
* @interface DocumentAddRequest
|
426 |
|
|
*/
|
427 |
|
|
export interface DocumentAddRequest {
|
428 |
|
|
/**
|
429 |
19b68a2e
|
Lukáš Vlček
|
*
|
430 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<DocumentAddInfo>}
|
431 |
|
|
* @memberof DocumentAddRequest
|
432 |
|
|
*/
|
433 |
19b68a2e
|
Lukáš Vlček
|
'documents'?: Array<DocumentAddInfo> | null;
|
434 |
3e6b15a7
|
Lukáš Vlček
|
}
|
435 |
|
|
/**
|
436 |
19b68a2e
|
Lukáš Vlček
|
*
|
437 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
438 |
|
|
* @interface DocumentListInfo
|
439 |
|
|
*/
|
440 |
|
|
export interface DocumentListInfo {
|
441 |
|
|
/**
|
442 |
19b68a2e
|
Lukáš Vlček
|
*
|
443 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
444 |
|
|
* @memberof DocumentListInfo
|
445 |
|
|
*/
|
446 |
19b68a2e
|
Lukáš Vlček
|
'id'?: string;
|
447 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
448 |
19b68a2e
|
Lukáš Vlček
|
*
|
449 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
450 |
|
|
* @memberof DocumentListInfo
|
451 |
|
|
*/
|
452 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
453 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
454 |
19b68a2e
|
Lukáš Vlček
|
*
|
455 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
456 |
|
|
* @memberof DocumentListInfo
|
457 |
|
|
*/
|
458 |
19b68a2e
|
Lukáš Vlček
|
'length'?: number;
|
459 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
460 |
19b68a2e
|
Lukáš Vlček
|
*
|
461 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
462 |
|
|
* @memberof DocumentListInfo
|
463 |
|
|
*/
|
464 |
19b68a2e
|
Lukáš Vlček
|
'requiredAnnotations'?: number;
|
465 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
466 |
19b68a2e
|
Lukáš Vlček
|
*
|
467 |
|
|
* @type {Array<DocumentUserInfo>}
|
468 |
3e6b15a7
|
Lukáš Vlček
|
* @memberof DocumentListInfo
|
469 |
|
|
*/
|
470 |
19b68a2e
|
Lukáš Vlček
|
'annotatingUsers'?: Array<DocumentUserInfo> | null;
|
471 |
3e6b15a7
|
Lukáš Vlček
|
}
|
472 |
|
|
/**
|
473 |
19b68a2e
|
Lukáš Vlček
|
*
|
474 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
475 |
|
|
* @interface DocumentListResponse
|
476 |
|
|
*/
|
477 |
|
|
export interface DocumentListResponse {
|
478 |
|
|
/**
|
479 |
19b68a2e
|
Lukáš Vlček
|
*
|
480 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
481 |
|
|
* @memberof DocumentListResponse
|
482 |
|
|
*/
|
483 |
19b68a2e
|
Lukáš Vlček
|
'totalCount'?: number;
|
484 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
485 |
19b68a2e
|
Lukáš Vlček
|
*
|
486 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
487 |
|
|
* @memberof DocumentListResponse
|
488 |
|
|
*/
|
489 |
19b68a2e
|
Lukáš Vlček
|
'pageCount'?: number;
|
490 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
491 |
19b68a2e
|
Lukáš Vlček
|
*
|
492 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
493 |
|
|
* @memberof DocumentListResponse
|
494 |
|
|
*/
|
495 |
19b68a2e
|
Lukáš Vlček
|
'pageIndex'?: number;
|
496 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
497 |
19b68a2e
|
Lukáš Vlček
|
*
|
498 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<DocumentListInfo>}
|
499 |
|
|
* @memberof DocumentListResponse
|
500 |
|
|
*/
|
501 |
19b68a2e
|
Lukáš Vlček
|
'documents'?: Array<DocumentListInfo> | null;
|
502 |
3e6b15a7
|
Lukáš Vlček
|
}
|
503 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
504 |
|
|
*
|
505 |
|
|
* @export
|
506 |
|
|
* @interface DocumentPreviewResponse
|
507 |
|
|
*/
|
508 |
|
|
export interface DocumentPreviewResponse {
|
509 |
|
|
/**
|
510 |
|
|
*
|
511 |
|
|
* @type {string}
|
512 |
|
|
* @memberof DocumentPreviewResponse
|
513 |
|
|
*/
|
514 |
|
|
'content'?: string | null;
|
515 |
|
|
}
|
516 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
517 |
19b68a2e
|
Lukáš Vlček
|
*
|
518 |
|
|
* @export
|
519 |
|
|
* @interface DocumentUserInfo
|
520 |
|
|
*/
|
521 |
|
|
export interface DocumentUserInfo {
|
522 |
|
|
/**
|
523 |
|
|
*
|
524 |
|
|
* @type {string}
|
525 |
|
|
* @memberof DocumentUserInfo
|
526 |
|
|
*/
|
527 |
|
|
'id'?: string;
|
528 |
|
|
/**
|
529 |
|
|
*
|
530 |
|
|
* @type {string}
|
531 |
|
|
* @memberof DocumentUserInfo
|
532 |
|
|
*/
|
533 |
|
|
'username'?: string | null;
|
534 |
|
|
/**
|
535 |
|
|
*
|
536 |
|
|
* @type {string}
|
537 |
|
|
* @memberof DocumentUserInfo
|
538 |
|
|
*/
|
539 |
|
|
'name'?: string | null;
|
540 |
|
|
/**
|
541 |
|
|
*
|
542 |
|
|
* @type {string}
|
543 |
|
|
* @memberof DocumentUserInfo
|
544 |
|
|
*/
|
545 |
|
|
'surname'?: string | null;
|
546 |
|
|
/**
|
547 |
|
|
*
|
548 |
|
|
* @type {EState}
|
549 |
|
|
* @memberof DocumentUserInfo
|
550 |
|
|
*/
|
551 |
|
|
'state'?: EState;
|
552 |
|
|
}
|
553 |
|
|
/**
|
554 |
|
|
*
|
555 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
556 |
|
|
* @enum {string}
|
557 |
|
|
*/
|
558 |
|
|
|
559 |
|
|
export const EAddDocumentFormat = {
|
560 |
|
|
Zip: 'ZIP',
|
561 |
19b68a2e
|
Lukáš Vlček
|
Textfile: 'TEXTFILE'
|
562 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
563 |
|
|
|
564 |
19b68a2e
|
Lukáš Vlček
|
export type EAddDocumentFormat = typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
|
565 |
|
|
|
566 |
3e6b15a7
|
Lukáš Vlček
|
|
567 |
|
|
/**
|
568 |
19b68a2e
|
Lukáš Vlček
|
*
|
569 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
570 |
|
|
* @enum {string}
|
571 |
|
|
*/
|
572 |
|
|
|
573 |
|
|
export const EDocumentType = {
|
574 |
|
|
Html: 'HTML',
|
575 |
19b68a2e
|
Lukáš Vlček
|
Text: 'TEXT'
|
576 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
577 |
|
|
|
578 |
|
|
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
|
579 |
|
|
|
580 |
19b68a2e
|
Lukáš Vlček
|
|
581 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
582 |
19b68a2e
|
Lukáš Vlček
|
*
|
583 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
584 |
|
|
* @enum {string}
|
585 |
|
|
*/
|
586 |
|
|
|
587 |
|
|
export const ERole = {
|
588 |
|
|
Annotator: 'ANNOTATOR',
|
589 |
19b68a2e
|
Lukáš Vlček
|
Administrator: 'ADMINISTRATOR'
|
590 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
591 |
|
|
|
592 |
|
|
export type ERole = typeof ERole[keyof typeof ERole];
|
593 |
|
|
|
594 |
19b68a2e
|
Lukáš Vlček
|
|
595 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
596 |
19b68a2e
|
Lukáš Vlček
|
*
|
597 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
598 |
|
|
* @enum {string}
|
599 |
|
|
*/
|
600 |
|
|
|
601 |
|
|
export const EState = {
|
602 |
|
|
Done: 'DONE',
|
603 |
|
|
InProgress: 'IN_PROGRESS',
|
604 |
19b68a2e
|
Lukáš Vlček
|
New: 'NEW'
|
605 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
606 |
|
|
|
607 |
|
|
export type EState = typeof EState[keyof typeof EState];
|
608 |
|
|
|
609 |
19b68a2e
|
Lukáš Vlček
|
|
610 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
611 |
|
|
*
|
612 |
|
|
* @export
|
613 |
|
|
* @enum {string}
|
614 |
|
|
*/
|
615 |
|
|
|
616 |
|
|
export const ETagSentiment = {
|
617 |
|
|
Neutral: 'NEUTRAL',
|
618 |
|
|
Positive: 'POSITIVE',
|
619 |
|
|
Negative: 'NEGATIVE'
|
620 |
|
|
} as const;
|
621 |
|
|
|
622 |
|
|
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment];
|
623 |
|
|
|
624 |
|
|
|
625 |
4bc99591
|
Lukáš Vlček
|
/**
|
626 |
19b68a2e
|
Lukáš Vlček
|
*
|
627 |
4bc99591
|
Lukáš Vlček
|
* @export
|
628 |
|
|
* @enum {string}
|
629 |
|
|
*/
|
630 |
|
|
|
631 |
|
|
export const ETagType = {
|
632 |
|
|
Tag: 'TAG',
|
633 |
19b68a2e
|
Lukáš Vlček
|
Subtag: 'SUBTAG'
|
634 |
4bc99591
|
Lukáš Vlček
|
} as const;
|
635 |
|
|
|
636 |
|
|
export type ETagType = typeof ETagType[keyof typeof ETagType];
|
637 |
|
|
|
638 |
19b68a2e
|
Lukáš Vlček
|
|
639 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
640 |
19b68a2e
|
Lukáš Vlček
|
*
|
641 |
|
|
* @export
|
642 |
|
|
* @interface GetRequiredAnnotationsGlobalResponse
|
643 |
|
|
*/
|
644 |
|
|
export interface GetRequiredAnnotationsGlobalResponse {
|
645 |
|
|
/**
|
646 |
|
|
*
|
647 |
|
|
* @type {number}
|
648 |
|
|
* @memberof GetRequiredAnnotationsGlobalResponse
|
649 |
|
|
*/
|
650 |
|
|
'requiredAnnotationsGlobal'?: number;
|
651 |
|
|
}
|
652 |
|
|
/**
|
653 |
|
|
*
|
654 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
655 |
|
|
* @interface LoginRequest
|
656 |
|
|
*/
|
657 |
|
|
export interface LoginRequest {
|
658 |
|
|
/**
|
659 |
19b68a2e
|
Lukáš Vlček
|
*
|
660 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
661 |
|
|
* @memberof LoginRequest
|
662 |
|
|
*/
|
663 |
19b68a2e
|
Lukáš Vlček
|
'username'?: string | null;
|
664 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
665 |
19b68a2e
|
Lukáš Vlček
|
*
|
666 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
667 |
|
|
* @memberof LoginRequest
|
668 |
|
|
*/
|
669 |
19b68a2e
|
Lukáš Vlček
|
'password'?: string | null;
|
670 |
3e6b15a7
|
Lukáš Vlček
|
}
|
671 |
|
|
/**
|
672 |
19b68a2e
|
Lukáš Vlček
|
*
|
673 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
674 |
|
|
* @interface LoginResponse
|
675 |
|
|
*/
|
676 |
|
|
export interface LoginResponse {
|
677 |
|
|
/**
|
678 |
19b68a2e
|
Lukáš Vlček
|
*
|
679 |
3e6b15a7
|
Lukáš Vlček
|
* @type {boolean}
|
680 |
|
|
* @memberof LoginResponse
|
681 |
|
|
*/
|
682 |
19b68a2e
|
Lukáš Vlček
|
'ok'?: boolean;
|
683 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
684 |
19b68a2e
|
Lukáš Vlček
|
*
|
685 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
686 |
|
|
* @memberof LoginResponse
|
687 |
|
|
*/
|
688 |
19b68a2e
|
Lukáš Vlček
|
'token'?: string | null;
|
689 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
690 |
19b68a2e
|
Lukáš Vlček
|
*
|
691 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
692 |
|
|
* @memberof LoginResponse
|
693 |
|
|
*/
|
694 |
19b68a2e
|
Lukáš Vlček
|
'expiration'?: string;
|
695 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
696 |
19b68a2e
|
Lukáš Vlček
|
*
|
697 |
3e6b15a7
|
Lukáš Vlček
|
* @type {ERole}
|
698 |
|
|
* @memberof LoginResponse
|
699 |
|
|
*/
|
700 |
19b68a2e
|
Lukáš Vlček
|
'role'?: ERole;
|
701 |
3e6b15a7
|
Lukáš Vlček
|
}
|
702 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
703 |
|
|
*
|
704 |
|
|
* @export
|
705 |
|
|
* @interface ModifyCategoryRequest
|
706 |
|
|
*/
|
707 |
|
|
export interface ModifyCategoryRequest {
|
708 |
|
|
/**
|
709 |
|
|
*
|
710 |
|
|
* @type {string}
|
711 |
|
|
* @memberof ModifyCategoryRequest
|
712 |
|
|
*/
|
713 |
|
|
'name'?: string | null;
|
714 |
|
|
/**
|
715 |
|
|
*
|
716 |
|
|
* @type {string}
|
717 |
|
|
* @memberof ModifyCategoryRequest
|
718 |
|
|
*/
|
719 |
|
|
'description'?: string | null;
|
720 |
|
|
/**
|
721 |
|
|
*
|
722 |
|
|
* @type {string}
|
723 |
|
|
* @memberof ModifyCategoryRequest
|
724 |
|
|
*/
|
725 |
|
|
'color'?: string | null;
|
726 |
|
|
/**
|
727 |
|
|
*
|
728 |
|
|
* @type {boolean}
|
729 |
|
|
* @memberof ModifyCategoryRequest
|
730 |
|
|
*/
|
731 |
|
|
'disabledForAnnotators'?: boolean | null;
|
732 |
|
|
}
|
733 |
|
|
/**
|
734 |
|
|
*
|
735 |
|
|
* @export
|
736 |
|
|
* @interface ModifySubTagRequest
|
737 |
|
|
*/
|
738 |
|
|
export interface ModifySubTagRequest {
|
739 |
|
|
/**
|
740 |
|
|
*
|
741 |
|
|
* @type {string}
|
742 |
|
|
* @memberof ModifySubTagRequest
|
743 |
|
|
*/
|
744 |
|
|
'name'?: string | null;
|
745 |
|
|
/**
|
746 |
|
|
*
|
747 |
|
|
* @type {string}
|
748 |
|
|
* @memberof ModifySubTagRequest
|
749 |
|
|
*/
|
750 |
|
|
'description'?: string | null;
|
751 |
|
|
/**
|
752 |
|
|
*
|
753 |
|
|
* @type {boolean}
|
754 |
|
|
* @memberof ModifySubTagRequest
|
755 |
|
|
*/
|
756 |
|
|
'sentimentEnabled'?: boolean | null;
|
757 |
|
|
}
|
758 |
|
|
/**
|
759 |
|
|
*
|
760 |
|
|
* @export
|
761 |
|
|
* @interface ModifyTagRequest
|
762 |
|
|
*/
|
763 |
|
|
export interface ModifyTagRequest {
|
764 |
|
|
/**
|
765 |
|
|
*
|
766 |
|
|
* @type {string}
|
767 |
|
|
* @memberof ModifyTagRequest
|
768 |
|
|
*/
|
769 |
|
|
'name'?: string | null;
|
770 |
|
|
/**
|
771 |
|
|
*
|
772 |
|
|
* @type {string}
|
773 |
|
|
* @memberof ModifyTagRequest
|
774 |
|
|
*/
|
775 |
|
|
'description'?: string | null;
|
776 |
|
|
/**
|
777 |
|
|
*
|
778 |
|
|
* @type {string}
|
779 |
|
|
* @memberof ModifyTagRequest
|
780 |
|
|
*/
|
781 |
|
|
'color'?: string | null;
|
782 |
|
|
/**
|
783 |
|
|
*
|
784 |
|
|
* @type {boolean}
|
785 |
|
|
* @memberof ModifyTagRequest
|
786 |
|
|
*/
|
787 |
|
|
'sentimentEnabled'?: boolean | null;
|
788 |
|
|
}
|
789 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
790 |
19b68a2e
|
Lukáš Vlček
|
*
|
791 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
792 |
|
|
* @interface ProblemDetails
|
793 |
|
|
*/
|
794 |
|
|
export interface ProblemDetails {
|
795 |
|
|
[key: string]: any | any;
|
796 |
|
|
|
797 |
|
|
/**
|
798 |
19b68a2e
|
Lukáš Vlček
|
*
|
799 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
800 |
|
|
* @memberof ProblemDetails
|
801 |
|
|
*/
|
802 |
19b68a2e
|
Lukáš Vlček
|
'type'?: string | null;
|
803 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
804 |
19b68a2e
|
Lukáš Vlček
|
*
|
805 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
806 |
|
|
* @memberof ProblemDetails
|
807 |
|
|
*/
|
808 |
19b68a2e
|
Lukáš Vlček
|
'title'?: string | null;
|
809 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
810 |
19b68a2e
|
Lukáš Vlček
|
*
|
811 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
812 |
|
|
* @memberof ProblemDetails
|
813 |
|
|
*/
|
814 |
19b68a2e
|
Lukáš Vlček
|
'status'?: number | null;
|
815 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
816 |
19b68a2e
|
Lukáš Vlček
|
*
|
817 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
818 |
|
|
* @memberof ProblemDetails
|
819 |
|
|
*/
|
820 |
19b68a2e
|
Lukáš Vlček
|
'detail'?: string | null;
|
821 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
822 |
19b68a2e
|
Lukáš Vlček
|
*
|
823 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
824 |
|
|
* @memberof ProblemDetails
|
825 |
|
|
*/
|
826 |
19b68a2e
|
Lukáš Vlček
|
'instance'?: string | null;
|
827 |
3e6b15a7
|
Lukáš Vlček
|
}
|
828 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
829 |
|
|
*
|
830 |
|
|
* @export
|
831 |
|
|
* @interface SetInstanceSentimentRequest
|
832 |
|
|
*/
|
833 |
|
|
export interface SetInstanceSentimentRequest {
|
834 |
|
|
/**
|
835 |
|
|
*
|
836 |
|
|
* @type {ETagSentiment}
|
837 |
|
|
* @memberof SetInstanceSentimentRequest
|
838 |
|
|
*/
|
839 |
|
|
'sentiment'?: ETagSentiment;
|
840 |
|
|
}
|
841 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
842 |
19b68a2e
|
Lukáš Vlček
|
*
|
843 |
|
|
* @export
|
844 |
|
|
* @interface SetRequiredAnnotationsGlobalRequest
|
845 |
|
|
*/
|
846 |
|
|
export interface SetRequiredAnnotationsGlobalRequest {
|
847 |
|
|
/**
|
848 |
|
|
*
|
849 |
|
|
* @type {number}
|
850 |
|
|
* @memberof SetRequiredAnnotationsGlobalRequest
|
851 |
|
|
*/
|
852 |
|
|
'requiredAnnotations'?: number;
|
853 |
|
|
}
|
854 |
|
|
/**
|
855 |
|
|
*
|
856 |
|
|
* @export
|
857 |
|
|
* @interface SetRequiredAnnotationsRequest
|
858 |
|
|
*/
|
859 |
|
|
export interface SetRequiredAnnotationsRequest {
|
860 |
|
|
/**
|
861 |
|
|
*
|
862 |
|
|
* @type {number}
|
863 |
|
|
* @memberof SetRequiredAnnotationsRequest
|
864 |
|
|
*/
|
865 |
|
|
'requiredAnnotations'?: number;
|
866 |
|
|
/**
|
867 |
|
|
*
|
868 |
|
|
* @type {Array<string>}
|
869 |
|
|
* @memberof SetRequiredAnnotationsRequest
|
870 |
|
|
*/
|
871 |
|
|
'documentIds'?: Array<string> | null;
|
872 |
|
|
}
|
873 |
|
|
/**
|
874 |
|
|
*
|
875 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
876 |
|
|
* @interface SubTagInfo
|
877 |
|
|
*/
|
878 |
|
|
export interface SubTagInfo {
|
879 |
|
|
/**
|
880 |
19b68a2e
|
Lukáš Vlček
|
*
|
881 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
882 |
|
|
* @memberof SubTagInfo
|
883 |
|
|
*/
|
884 |
19b68a2e
|
Lukáš Vlček
|
'id'?: string;
|
885 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
886 |
19b68a2e
|
Lukáš Vlček
|
*
|
887 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
888 |
|
|
* @memberof SubTagInfo
|
889 |
|
|
*/
|
890 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
891 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
892 |
19b68a2e
|
Lukáš Vlček
|
*
|
893 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
894 |
|
|
* @memberof SubTagInfo
|
895 |
|
|
*/
|
896 |
19b68a2e
|
Lukáš Vlček
|
'description'?: string | null;
|
897 |
3e6b15a7
|
Lukáš Vlček
|
}
|
898 |
|
|
/**
|
899 |
19b68a2e
|
Lukáš Vlček
|
*
|
900 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
901 |
|
|
* @interface TagCategoryInfo
|
902 |
|
|
*/
|
903 |
|
|
export interface TagCategoryInfo {
|
904 |
|
|
/**
|
905 |
19b68a2e
|
Lukáš Vlček
|
*
|
906 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
907 |
|
|
* @memberof TagCategoryInfo
|
908 |
|
|
*/
|
909 |
19b68a2e
|
Lukáš Vlček
|
'id'?: string;
|
910 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
911 |
19b68a2e
|
Lukáš Vlček
|
*
|
912 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
913 |
|
|
* @memberof TagCategoryInfo
|
914 |
|
|
*/
|
915 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
916 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
917 |
19b68a2e
|
Lukáš Vlček
|
*
|
918 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
919 |
|
|
* @memberof TagCategoryInfo
|
920 |
|
|
*/
|
921 |
19b68a2e
|
Lukáš Vlček
|
'description'?: string | null;
|
922 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
923 |
19b68a2e
|
Lukáš Vlček
|
*
|
924 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
925 |
|
|
* @memberof TagCategoryInfo
|
926 |
|
|
*/
|
927 |
19b68a2e
|
Lukáš Vlček
|
'color'?: string | null;
|
928 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
929 |
19b68a2e
|
Lukáš Vlček
|
*
|
930 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<TagInfo>}
|
931 |
|
|
* @memberof TagCategoryInfo
|
932 |
|
|
*/
|
933 |
19b68a2e
|
Lukáš Vlček
|
'tags'?: Array<TagInfo> | null;
|
934 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
935 |
|
|
*
|
936 |
|
|
* @type {boolean}
|
937 |
|
|
* @memberof TagCategoryInfo
|
938 |
|
|
*/
|
939 |
|
|
'disabledForAnnotators'?: boolean;
|
940 |
3e6b15a7
|
Lukáš Vlček
|
}
|
941 |
|
|
/**
|
942 |
19b68a2e
|
Lukáš Vlček
|
*
|
943 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
944 |
|
|
* @interface TagInfo
|
945 |
|
|
*/
|
946 |
|
|
export interface TagInfo {
|
947 |
|
|
/**
|
948 |
19b68a2e
|
Lukáš Vlček
|
*
|
949 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
950 |
|
|
* @memberof TagInfo
|
951 |
|
|
*/
|
952 |
19b68a2e
|
Lukáš Vlček
|
'id'?: string;
|
953 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
954 |
19b68a2e
|
Lukáš Vlček
|
*
|
955 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
956 |
|
|
* @memberof TagInfo
|
957 |
|
|
*/
|
958 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
959 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
960 |
19b68a2e
|
Lukáš Vlček
|
*
|
961 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
962 |
|
|
* @memberof TagInfo
|
963 |
|
|
*/
|
964 |
19b68a2e
|
Lukáš Vlček
|
'description'?: string | null;
|
965 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
966 |
19b68a2e
|
Lukáš Vlček
|
*
|
967 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
968 |
|
|
* @memberof TagInfo
|
969 |
|
|
*/
|
970 |
19b68a2e
|
Lukáš Vlček
|
'color'?: string | null;
|
971 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
972 |
19b68a2e
|
Lukáš Vlček
|
*
|
973 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<SubTagInfo>}
|
974 |
|
|
* @memberof TagInfo
|
975 |
|
|
*/
|
976 |
19b68a2e
|
Lukáš Vlček
|
'subTags'?: Array<SubTagInfo> | null;
|
977 |
3e6b15a7
|
Lukáš Vlček
|
}
|
978 |
|
|
/**
|
979 |
19b68a2e
|
Lukáš Vlček
|
*
|
980 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
981 |
|
|
* @interface TagInstanceInfo
|
982 |
|
|
*/
|
983 |
|
|
export interface TagInstanceInfo {
|
984 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
985 |
19b68a2e
|
Lukáš Vlček
|
*
|
986 |
9fdb7d55
|
Lukáš Vlček
|
* @type {string}
|
987 |
|
|
* @memberof TagInstanceInfo
|
988 |
|
|
*/
|
989 |
19b68a2e
|
Lukáš Vlček
|
'occurenceId'?: string;
|
990 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
991 |
19b68a2e
|
Lukáš Vlček
|
*
|
992 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
993 |
|
|
* @memberof TagInstanceInfo
|
994 |
|
|
*/
|
995 |
19b68a2e
|
Lukáš Vlček
|
'tagName'?: string | null;
|
996 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
997 |
19b68a2e
|
Lukáš Vlček
|
*
|
998 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
999 |
|
|
* @memberof TagInstanceInfo
|
1000 |
|
|
*/
|
1001 |
19b68a2e
|
Lukáš Vlček
|
'tagId'?: string;
|
1002 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1003 |
19b68a2e
|
Lukáš Vlček
|
*
|
1004 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1005 |
|
|
* @memberof TagInstanceInfo
|
1006 |
|
|
*/
|
1007 |
19b68a2e
|
Lukáš Vlček
|
'tagCategoryName'?: string | null;
|
1008 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1009 |
19b68a2e
|
Lukáš Vlček
|
*
|
1010 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1011 |
|
|
* @memberof TagInstanceInfo
|
1012 |
|
|
*/
|
1013 |
19b68a2e
|
Lukáš Vlček
|
'tagCategoryId'?: string;
|
1014 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1015 |
19b68a2e
|
Lukáš Vlček
|
*
|
1016 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1017 |
|
|
* @memberof TagInstanceInfo
|
1018 |
|
|
*/
|
1019 |
19b68a2e
|
Lukáš Vlček
|
'subTagName'?: string | null;
|
1020 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1021 |
19b68a2e
|
Lukáš Vlček
|
*
|
1022 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1023 |
|
|
* @memberof TagInstanceInfo
|
1024 |
|
|
*/
|
1025 |
19b68a2e
|
Lukáš Vlček
|
'subTagId'?: string | null;
|
1026 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1027 |
19b68a2e
|
Lukáš Vlček
|
*
|
1028 |
4bc99591
|
Lukáš Vlček
|
* @type {string}
|
1029 |
3e6b15a7
|
Lukáš Vlček
|
* @memberof TagInstanceInfo
|
1030 |
|
|
*/
|
1031 |
19b68a2e
|
Lukáš Vlček
|
'instance'?: string;
|
1032 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1033 |
19b68a2e
|
Lukáš Vlček
|
*
|
1034 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
1035 |
|
|
* @memberof TagInstanceInfo
|
1036 |
|
|
*/
|
1037 |
19b68a2e
|
Lukáš Vlček
|
'position'?: number;
|
1038 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1039 |
19b68a2e
|
Lukáš Vlček
|
*
|
1040 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
1041 |
|
|
* @memberof TagInstanceInfo
|
1042 |
|
|
*/
|
1043 |
19b68a2e
|
Lukáš Vlček
|
'length'?: number;
|
1044 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1045 |
19b68a2e
|
Lukáš Vlček
|
*
|
1046 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1047 |
|
|
* @memberof TagInstanceInfo
|
1048 |
|
|
*/
|
1049 |
19b68a2e
|
Lukáš Vlček
|
'note'?: string | null;
|
1050 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1051 |
|
|
*
|
1052 |
|
|
* @type {ETagSentiment}
|
1053 |
|
|
* @memberof TagInstanceInfo
|
1054 |
|
|
*/
|
1055 |
|
|
'sentiment'?: ETagSentiment;
|
1056 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1057 |
|
|
/**
|
1058 |
19b68a2e
|
Lukáš Vlček
|
*
|
1059 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
1060 |
|
|
* @interface TagTreeResponse
|
1061 |
|
|
*/
|
1062 |
|
|
export interface TagTreeResponse {
|
1063 |
|
|
/**
|
1064 |
19b68a2e
|
Lukáš Vlček
|
*
|
1065 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<TagCategoryInfo>}
|
1066 |
|
|
* @memberof TagTreeResponse
|
1067 |
|
|
*/
|
1068 |
19b68a2e
|
Lukáš Vlček
|
'tagCategories'?: Array<TagCategoryInfo> | null;
|
1069 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1070 |
|
|
/**
|
1071 |
19b68a2e
|
Lukáš Vlček
|
*
|
1072 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
1073 |
|
|
* @interface User
|
1074 |
|
|
*/
|
1075 |
|
|
export interface User {
|
1076 |
|
|
/**
|
1077 |
19b68a2e
|
Lukáš Vlček
|
*
|
1078 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1079 |
|
|
* @memberof User
|
1080 |
|
|
*/
|
1081 |
19b68a2e
|
Lukáš Vlček
|
'id'?: string;
|
1082 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1083 |
19b68a2e
|
Lukáš Vlček
|
*
|
1084 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1085 |
|
|
* @memberof User
|
1086 |
|
|
*/
|
1087 |
19b68a2e
|
Lukáš Vlček
|
'username'?: string | null;
|
1088 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1089 |
19b68a2e
|
Lukáš Vlček
|
*
|
1090 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1091 |
|
|
* @memberof User
|
1092 |
|
|
*/
|
1093 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
1094 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1095 |
19b68a2e
|
Lukáš Vlček
|
*
|
1096 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1097 |
|
|
* @memberof User
|
1098 |
|
|
*/
|
1099 |
19b68a2e
|
Lukáš Vlček
|
'surname'?: string | null;
|
1100 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1101 |
19b68a2e
|
Lukáš Vlček
|
*
|
1102 |
3e6b15a7
|
Lukáš Vlček
|
* @type {ERole}
|
1103 |
|
|
* @memberof User
|
1104 |
|
|
*/
|
1105 |
19b68a2e
|
Lukáš Vlček
|
'role'?: ERole;
|
1106 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1107 |
|
|
/**
|
1108 |
19b68a2e
|
Lukáš Vlček
|
*
|
1109 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
1110 |
|
|
* @interface UserInfo
|
1111 |
|
|
*/
|
1112 |
|
|
export interface UserInfo {
|
1113 |
|
|
/**
|
1114 |
19b68a2e
|
Lukáš Vlček
|
*
|
1115 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1116 |
|
|
* @memberof UserInfo
|
1117 |
|
|
*/
|
1118 |
19b68a2e
|
Lukáš Vlček
|
'id'?: string;
|
1119 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1120 |
19b68a2e
|
Lukáš Vlček
|
*
|
1121 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1122 |
|
|
* @memberof UserInfo
|
1123 |
|
|
*/
|
1124 |
19b68a2e
|
Lukáš Vlček
|
'username'?: string | null;
|
1125 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1126 |
19b68a2e
|
Lukáš Vlček
|
*
|
1127 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1128 |
|
|
* @memberof UserInfo
|
1129 |
|
|
*/
|
1130 |
19b68a2e
|
Lukáš Vlček
|
'name'?: string | null;
|
1131 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1132 |
19b68a2e
|
Lukáš Vlček
|
*
|
1133 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
1134 |
|
|
* @memberof UserInfo
|
1135 |
|
|
*/
|
1136 |
19b68a2e
|
Lukáš Vlček
|
'surname'?: string | null;
|
1137 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1138 |
|
|
*
|
1139 |
|
|
* @type {number}
|
1140 |
|
|
* @memberof UserInfo
|
1141 |
|
|
*/
|
1142 |
|
|
'assignedDocumentsCount'?: number;
|
1143 |
|
|
/**
|
1144 |
|
|
*
|
1145 |
|
|
* @type {ERole}
|
1146 |
|
|
* @memberof UserInfo
|
1147 |
|
|
*/
|
1148 |
|
|
'role'?: ERole;
|
1149 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1150 |
|
|
/**
|
1151 |
19b68a2e
|
Lukáš Vlček
|
*
|
1152 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
1153 |
|
|
* @interface UserList
|
1154 |
|
|
*/
|
1155 |
|
|
export interface UserList {
|
1156 |
|
|
/**
|
1157 |
19b68a2e
|
Lukáš Vlček
|
*
|
1158 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<UserInfo>}
|
1159 |
|
|
* @memberof UserList
|
1160 |
|
|
*/
|
1161 |
19b68a2e
|
Lukáš Vlček
|
'users'?: Array<UserInfo> | null;
|
1162 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1163 |
|
|
|
1164 |
|
|
/**
|
1165 |
|
|
* AnnotationApi - axios parameter creator
|
1166 |
|
|
* @export
|
1167 |
|
|
*/
|
1168 |
|
|
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
|
1169 |
|
|
return {
|
1170 |
|
|
/**
|
1171 |
19b68a2e
|
Lukáš Vlček
|
*
|
1172 |
|
|
* @param {string} annotationId
|
1173 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1174 |
|
|
* @throws {RequiredError}
|
1175 |
|
|
*/
|
1176 |
19b68a2e
|
Lukáš Vlček
|
annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1177 |
dd747fc5
|
Lukáš Vlček
|
// verify required parameter 'annotationId' is not null or undefined
|
1178 |
19b68a2e
|
Lukáš Vlček
|
assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
|
1179 |
|
|
const localVarPath = `/annotation/{annotationId}`
|
1180 |
|
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
1181 |
3e6b15a7
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1182 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1183 |
|
|
let baseOptions;
|
1184 |
|
|
if (configuration) {
|
1185 |
|
|
baseOptions = configuration.baseOptions;
|
1186 |
|
|
}
|
1187 |
|
|
|
1188 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
1189 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1190 |
|
|
const localVarQueryParameter = {} as any;
|
1191 |
|
|
|
1192 |
19b68a2e
|
Lukáš Vlček
|
|
1193 |
|
|
|
1194 |
9fdb7d55
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1195 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1196 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1197 |
9fdb7d55
|
Lukáš Vlček
|
|
1198 |
|
|
return {
|
1199 |
|
|
url: toPathString(localVarUrlObj),
|
1200 |
|
|
options: localVarRequestOptions,
|
1201 |
|
|
};
|
1202 |
|
|
},
|
1203 |
|
|
/**
|
1204 |
19b68a2e
|
Lukáš Vlček
|
*
|
1205 |
|
|
* @param {string} annotationId
|
1206 |
cca0bfa0
|
Lukáš Vlček
|
* @param {string} instanceId
|
1207 |
|
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
1208 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1209 |
|
|
* @throws {RequiredError}
|
1210 |
|
|
*/
|
1211 |
cca0bfa0
|
Lukáš Vlček
|
annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1212 |
9fdb7d55
|
Lukáš Vlček
|
// verify required parameter 'annotationId' is not null or undefined
|
1213 |
cca0bfa0
|
Lukáš Vlček
|
assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
|
1214 |
|
|
// verify required parameter 'instanceId' is not null or undefined
|
1215 |
|
|
assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
|
1216 |
|
|
const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
|
1217 |
19b68a2e
|
Lukáš Vlček
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
1218 |
cca0bfa0
|
Lukáš Vlček
|
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
1219 |
9fdb7d55
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1220 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1221 |
|
|
let baseOptions;
|
1222 |
|
|
if (configuration) {
|
1223 |
|
|
baseOptions = configuration.baseOptions;
|
1224 |
|
|
}
|
1225 |
|
|
|
1226 |
cca0bfa0
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
1227 |
9fdb7d55
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1228 |
|
|
const localVarQueryParameter = {} as any;
|
1229 |
|
|
|
1230 |
19b68a2e
|
Lukáš Vlček
|
|
1231 |
|
|
|
1232 |
cca0bfa0
|
Lukáš Vlček
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1233 |
|
|
|
1234 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1235 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1236 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1237 |
cca0bfa0
|
Lukáš Vlček
|
localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration)
|
1238 |
3e6b15a7
|
Lukáš Vlček
|
|
1239 |
|
|
return {
|
1240 |
|
|
url: toPathString(localVarUrlObj),
|
1241 |
|
|
options: localVarRequestOptions,
|
1242 |
|
|
};
|
1243 |
|
|
},
|
1244 |
4bc99591
|
Lukáš Vlček
|
/**
|
1245 |
19b68a2e
|
Lukáš Vlček
|
*
|
1246 |
|
|
* @param {string} annotationId
|
1247 |
cca0bfa0
|
Lukáš Vlček
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
1248 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1249 |
|
|
* @throws {RequiredError}
|
1250 |
|
|
*/
|
1251 |
cca0bfa0
|
Lukáš Vlček
|
annotationAnnotationIdNotePost: async (annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1252 |
4bc99591
|
Lukáš Vlček
|
// verify required parameter 'annotationId' is not null or undefined
|
1253 |
cca0bfa0
|
Lukáš Vlček
|
assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
|
1254 |
|
|
const localVarPath = `/annotation/{annotationId}/note`
|
1255 |
19b68a2e
|
Lukáš Vlček
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
1256 |
4bc99591
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1257 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1258 |
|
|
let baseOptions;
|
1259 |
|
|
if (configuration) {
|
1260 |
|
|
baseOptions = configuration.baseOptions;
|
1261 |
|
|
}
|
1262 |
|
|
|
1263 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
1264 |
4bc99591
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1265 |
|
|
const localVarQueryParameter = {} as any;
|
1266 |
|
|
|
1267 |
19b68a2e
|
Lukáš Vlček
|
|
1268 |
|
|
|
1269 |
4bc99591
|
Lukáš Vlček
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1270 |
|
|
|
1271 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1272 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1273 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1274 |
cca0bfa0
|
Lukáš Vlček
|
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
|
1275 |
4bc99591
|
Lukáš Vlček
|
|
1276 |
|
|
return {
|
1277 |
|
|
url: toPathString(localVarUrlObj),
|
1278 |
|
|
options: localVarRequestOptions,
|
1279 |
|
|
};
|
1280 |
|
|
},
|
1281 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1282 |
19b68a2e
|
Lukáš Vlček
|
*
|
1283 |
cca0bfa0
|
Lukáš Vlček
|
* @param {string} annotationId
|
1284 |
|
|
* @param {string} occurenceId
|
1285 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1286 |
|
|
* @throws {RequiredError}
|
1287 |
|
|
*/
|
1288 |
cca0bfa0
|
Lukáš Vlček
|
annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1289 |
|
|
// verify required parameter 'annotationId' is not null or undefined
|
1290 |
|
|
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
|
1291 |
|
|
// verify required parameter 'occurenceId' is not null or undefined
|
1292 |
|
|
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
|
1293 |
|
|
const localVarPath = `/annotation/{annotationId}/{occurenceId}`
|
1294 |
|
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
1295 |
|
|
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
|
1296 |
3e6b15a7
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1297 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1298 |
|
|
let baseOptions;
|
1299 |
|
|
if (configuration) {
|
1300 |
|
|
baseOptions = configuration.baseOptions;
|
1301 |
|
|
}
|
1302 |
|
|
|
1303 |
cca0bfa0
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
1304 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1305 |
|
|
const localVarQueryParameter = {} as any;
|
1306 |
|
|
|
1307 |
19b68a2e
|
Lukáš Vlček
|
|
1308 |
|
|
|
1309 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1310 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1311 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1312 |
3e6b15a7
|
Lukáš Vlček
|
|
1313 |
|
|
return {
|
1314 |
|
|
url: toPathString(localVarUrlObj),
|
1315 |
|
|
options: localVarRequestOptions,
|
1316 |
|
|
};
|
1317 |
|
|
},
|
1318 |
|
|
/**
|
1319 |
19b68a2e
|
Lukáš Vlček
|
*
|
1320 |
|
|
* @param {string} annotationId
|
1321 |
cca0bfa0
|
Lukáš Vlček
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
1322 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1323 |
|
|
* @throws {RequiredError}
|
1324 |
|
|
*/
|
1325 |
cca0bfa0
|
Lukáš Vlček
|
annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1326 |
|
|
// verify required parameter 'annotationId' is not null or undefined
|
1327 |
|
|
assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId)
|
1328 |
|
|
const localVarPath = `/annotation/{annotationId}`
|
1329 |
|
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
1330 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1331 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1332 |
|
|
let baseOptions;
|
1333 |
|
|
if (configuration) {
|
1334 |
|
|
baseOptions = configuration.baseOptions;
|
1335 |
|
|
}
|
1336 |
|
|
|
1337 |
|
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
1338 |
|
|
const localVarHeaderParameter = {} as any;
|
1339 |
|
|
const localVarQueryParameter = {} as any;
|
1340 |
|
|
|
1341 |
|
|
|
1342 |
|
|
|
1343 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1344 |
|
|
|
1345 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1346 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1347 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1348 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
|
1349 |
|
|
|
1350 |
|
|
return {
|
1351 |
|
|
url: toPathString(localVarUrlObj),
|
1352 |
|
|
options: localVarRequestOptions,
|
1353 |
|
|
};
|
1354 |
|
|
},
|
1355 |
|
|
/**
|
1356 |
|
|
*
|
1357 |
|
|
* @param {string} annotationId
|
1358 |
|
|
* @param {string} occurenceId
|
1359 |
|
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
1360 |
|
|
* @param {*} [options] Override http request option.
|
1361 |
|
|
* @throws {RequiredError}
|
1362 |
|
|
*/
|
1363 |
|
|
annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1364 |
|
|
// verify required parameter 'annotationId' is not null or undefined
|
1365 |
|
|
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId)
|
1366 |
|
|
// verify required parameter 'occurenceId' is not null or undefined
|
1367 |
|
|
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId)
|
1368 |
|
|
const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note`
|
1369 |
|
|
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)))
|
1370 |
|
|
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
|
1371 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1372 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1373 |
|
|
let baseOptions;
|
1374 |
|
|
if (configuration) {
|
1375 |
|
|
baseOptions = configuration.baseOptions;
|
1376 |
|
|
}
|
1377 |
|
|
|
1378 |
|
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
1379 |
|
|
const localVarHeaderParameter = {} as any;
|
1380 |
|
|
const localVarQueryParameter = {} as any;
|
1381 |
|
|
|
1382 |
|
|
|
1383 |
|
|
|
1384 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1385 |
|
|
|
1386 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1387 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1388 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1389 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration)
|
1390 |
|
|
|
1391 |
|
|
return {
|
1392 |
|
|
url: toPathString(localVarUrlObj),
|
1393 |
|
|
options: localVarRequestOptions,
|
1394 |
|
|
};
|
1395 |
|
|
},
|
1396 |
|
|
/**
|
1397 |
|
|
*
|
1398 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
1399 |
|
|
* @param {*} [options] Override http request option.
|
1400 |
|
|
* @throws {RequiredError}
|
1401 |
|
|
*/
|
1402 |
|
|
annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1403 |
|
|
const localVarPath = `/annotations`;
|
1404 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1405 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1406 |
|
|
let baseOptions;
|
1407 |
|
|
if (configuration) {
|
1408 |
|
|
baseOptions = configuration.baseOptions;
|
1409 |
|
|
}
|
1410 |
|
|
|
1411 |
|
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
1412 |
|
|
const localVarHeaderParameter = {} as any;
|
1413 |
|
|
const localVarQueryParameter = {} as any;
|
1414 |
|
|
|
1415 |
|
|
|
1416 |
|
|
|
1417 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1418 |
|
|
|
1419 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1420 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1421 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1422 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration)
|
1423 |
|
|
|
1424 |
|
|
return {
|
1425 |
|
|
url: toPathString(localVarUrlObj),
|
1426 |
|
|
options: localVarRequestOptions,
|
1427 |
|
|
};
|
1428 |
|
|
},
|
1429 |
|
|
}
|
1430 |
|
|
};
|
1431 |
|
|
|
1432 |
|
|
/**
|
1433 |
|
|
* AnnotationApi - functional programming interface
|
1434 |
|
|
* @export
|
1435 |
|
|
*/
|
1436 |
|
|
export const AnnotationApiFp = function(configuration?: Configuration) {
|
1437 |
|
|
const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration)
|
1438 |
|
|
return {
|
1439 |
|
|
/**
|
1440 |
|
|
*
|
1441 |
|
|
* @param {string} annotationId
|
1442 |
|
|
* @param {*} [options] Override http request option.
|
1443 |
|
|
* @throws {RequiredError}
|
1444 |
|
|
*/
|
1445 |
|
|
async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
|
1446 |
19b68a2e
|
Lukáš Vlček
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
|
1447 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1448 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1449 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1450 |
|
|
*
|
1451 |
|
|
* @param {string} annotationId
|
1452 |
|
|
* @param {string} instanceId
|
1453 |
|
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
1454 |
|
|
* @param {*} [options] Override http request option.
|
1455 |
|
|
* @throws {RequiredError}
|
1456 |
|
|
*/
|
1457 |
|
|
async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1458 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options);
|
1459 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1460 |
|
|
},
|
1461 |
|
|
/**
|
1462 |
|
|
*
|
1463 |
|
|
* @param {string} annotationId
|
1464 |
|
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
1465 |
|
|
* @param {*} [options] Override http request option.
|
1466 |
|
|
* @throws {RequiredError}
|
1467 |
|
|
*/
|
1468 |
|
|
async annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1469 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options);
|
1470 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1471 |
|
|
},
|
1472 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
1473 |
19b68a2e
|
Lukáš Vlček
|
*
|
1474 |
|
|
* @param {string} annotationId
|
1475 |
|
|
* @param {string} occurenceId
|
1476 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1477 |
|
|
* @throws {RequiredError}
|
1478 |
|
|
*/
|
1479 |
19b68a2e
|
Lukáš Vlček
|
async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1480 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options);
|
1481 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1482 |
9fdb7d55
|
Lukáš Vlček
|
},
|
1483 |
4bc99591
|
Lukáš Vlček
|
/**
|
1484 |
19b68a2e
|
Lukáš Vlček
|
*
|
1485 |
|
|
* @param {string} annotationId
|
1486 |
|
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
1487 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1488 |
|
|
* @throws {RequiredError}
|
1489 |
|
|
*/
|
1490 |
19b68a2e
|
Lukáš Vlček
|
async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1491 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options);
|
1492 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1493 |
4bc99591
|
Lukáš Vlček
|
},
|
1494 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1495 |
|
|
*
|
1496 |
|
|
* @param {string} annotationId
|
1497 |
|
|
* @param {string} occurenceId
|
1498 |
|
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
1499 |
|
|
* @param {*} [options] Override http request option.
|
1500 |
|
|
* @throws {RequiredError}
|
1501 |
|
|
*/
|
1502 |
|
|
async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1503 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options);
|
1504 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1505 |
|
|
},
|
1506 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1507 |
19b68a2e
|
Lukáš Vlček
|
*
|
1508 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
1509 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1510 |
|
|
* @throws {RequiredError}
|
1511 |
|
|
*/
|
1512 |
19b68a2e
|
Lukáš Vlček
|
async annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1513 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(annotationsAddRequest, options);
|
1514 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1515 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1516 |
19b68a2e
|
Lukáš Vlček
|
}
|
1517 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1518 |
|
|
|
1519 |
|
|
/**
|
1520 |
|
|
* AnnotationApi - factory interface
|
1521 |
|
|
* @export
|
1522 |
|
|
*/
|
1523 |
19b68a2e
|
Lukáš Vlček
|
export const AnnotationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
1524 |
|
|
const localVarFp = AnnotationApiFp(configuration)
|
1525 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1526 |
|
|
/**
|
1527 |
19b68a2e
|
Lukáš Vlček
|
*
|
1528 |
|
|
* @param {string} annotationId
|
1529 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1530 |
|
|
* @throws {RequiredError}
|
1531 |
|
|
*/
|
1532 |
19b68a2e
|
Lukáš Vlček
|
annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
|
1533 |
|
|
return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
|
1534 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1535 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1536 |
|
|
*
|
1537 |
|
|
* @param {string} annotationId
|
1538 |
|
|
* @param {string} instanceId
|
1539 |
|
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
1540 |
|
|
* @param {*} [options] Override http request option.
|
1541 |
|
|
* @throws {RequiredError}
|
1542 |
|
|
*/
|
1543 |
|
|
annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> {
|
1544 |
|
|
return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(axios, basePath));
|
1545 |
|
|
},
|
1546 |
|
|
/**
|
1547 |
|
|
*
|
1548 |
|
|
* @param {string} annotationId
|
1549 |
|
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
1550 |
|
|
* @param {*} [options] Override http request option.
|
1551 |
|
|
* @throws {RequiredError}
|
1552 |
|
|
*/
|
1553 |
|
|
annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> {
|
1554 |
|
|
return localVarFp.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath));
|
1555 |
|
|
},
|
1556 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
1557 |
19b68a2e
|
Lukáš Vlček
|
*
|
1558 |
|
|
* @param {string} annotationId
|
1559 |
|
|
* @param {string} occurenceId
|
1560 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1561 |
|
|
* @throws {RequiredError}
|
1562 |
|
|
*/
|
1563 |
19b68a2e
|
Lukáš Vlček
|
annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: any): AxiosPromise<void> {
|
1564 |
|
|
return localVarFp.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(axios, basePath));
|
1565 |
9fdb7d55
|
Lukáš Vlček
|
},
|
1566 |
4bc99591
|
Lukáš Vlček
|
/**
|
1567 |
19b68a2e
|
Lukáš Vlček
|
*
|
1568 |
|
|
* @param {string} annotationId
|
1569 |
|
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
1570 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1571 |
|
|
* @throws {RequiredError}
|
1572 |
|
|
*/
|
1573 |
19b68a2e
|
Lukáš Vlček
|
annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> {
|
1574 |
|
|
return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath));
|
1575 |
4bc99591
|
Lukáš Vlček
|
},
|
1576 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1577 |
|
|
*
|
1578 |
|
|
* @param {string} annotationId
|
1579 |
|
|
* @param {string} occurenceId
|
1580 |
|
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
1581 |
|
|
* @param {*} [options] Override http request option.
|
1582 |
|
|
* @throws {RequiredError}
|
1583 |
|
|
*/
|
1584 |
|
|
annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> {
|
1585 |
|
|
return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath));
|
1586 |
|
|
},
|
1587 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1588 |
19b68a2e
|
Lukáš Vlček
|
*
|
1589 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
1590 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1591 |
|
|
* @throws {RequiredError}
|
1592 |
|
|
*/
|
1593 |
19b68a2e
|
Lukáš Vlček
|
annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: any): AxiosPromise<void> {
|
1594 |
|
|
return localVarFp.annotationsPost(annotationsAddRequest, options).then((request) => request(axios, basePath));
|
1595 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1596 |
|
|
};
|
1597 |
|
|
};
|
1598 |
|
|
|
1599 |
|
|
/**
|
1600 |
|
|
* AnnotationApi - object-oriented interface
|
1601 |
|
|
* @export
|
1602 |
|
|
* @class AnnotationApi
|
1603 |
|
|
* @extends {BaseAPI}
|
1604 |
|
|
*/
|
1605 |
|
|
export class AnnotationApi extends BaseAPI {
|
1606 |
|
|
/**
|
1607 |
19b68a2e
|
Lukáš Vlček
|
*
|
1608 |
|
|
* @param {string} annotationId
|
1609 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1610 |
|
|
* @throws {RequiredError}
|
1611 |
|
|
* @memberof AnnotationApi
|
1612 |
|
|
*/
|
1613 |
dd747fc5
|
Lukáš Vlček
|
public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
|
1614 |
19b68a2e
|
Lukáš Vlček
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
|
1615 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1616 |
|
|
|
1617 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1618 |
|
|
*
|
1619 |
|
|
* @param {string} annotationId
|
1620 |
|
|
* @param {string} instanceId
|
1621 |
|
|
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest]
|
1622 |
|
|
* @param {*} [options] Override http request option.
|
1623 |
|
|
* @throws {RequiredError}
|
1624 |
|
|
* @memberof AnnotationApi
|
1625 |
|
|
*/
|
1626 |
|
|
public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) {
|
1627 |
|
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath));
|
1628 |
|
|
}
|
1629 |
|
|
|
1630 |
|
|
/**
|
1631 |
|
|
*
|
1632 |
|
|
* @param {string} annotationId
|
1633 |
|
|
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
1634 |
|
|
* @param {*} [options] Override http request option.
|
1635 |
|
|
* @throws {RequiredError}
|
1636 |
|
|
* @memberof AnnotationApi
|
1637 |
|
|
*/
|
1638 |
|
|
public annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
|
1639 |
|
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
|
1640 |
|
|
}
|
1641 |
|
|
|
1642 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
1643 |
19b68a2e
|
Lukáš Vlček
|
*
|
1644 |
|
|
* @param {string} annotationId
|
1645 |
|
|
* @param {string} occurenceId
|
1646 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1647 |
|
|
* @throws {RequiredError}
|
1648 |
|
|
* @memberof AnnotationApi
|
1649 |
|
|
*/
|
1650 |
19b68a2e
|
Lukáš Vlček
|
public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
|
1651 |
|
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
|
1652 |
9fdb7d55
|
Lukáš Vlček
|
}
|
1653 |
|
|
|
1654 |
4bc99591
|
Lukáš Vlček
|
/**
|
1655 |
19b68a2e
|
Lukáš Vlček
|
*
|
1656 |
|
|
* @param {string} annotationId
|
1657 |
|
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
1658 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1659 |
|
|
* @throws {RequiredError}
|
1660 |
|
|
* @memberof AnnotationApi
|
1661 |
|
|
*/
|
1662 |
19b68a2e
|
Lukáš Vlček
|
public annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig) {
|
1663 |
|
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath));
|
1664 |
4bc99591
|
Lukáš Vlček
|
}
|
1665 |
|
|
|
1666 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1667 |
|
|
*
|
1668 |
|
|
* @param {string} annotationId
|
1669 |
|
|
* @param {string} occurenceId
|
1670 |
|
|
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest]
|
1671 |
|
|
* @param {*} [options] Override http request option.
|
1672 |
|
|
* @throws {RequiredError}
|
1673 |
|
|
* @memberof AnnotationApi
|
1674 |
|
|
*/
|
1675 |
|
|
public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) {
|
1676 |
|
|
return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath));
|
1677 |
|
|
}
|
1678 |
|
|
|
1679 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1680 |
19b68a2e
|
Lukáš Vlček
|
*
|
1681 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
1682 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1683 |
|
|
* @throws {RequiredError}
|
1684 |
|
|
* @memberof AnnotationApi
|
1685 |
|
|
*/
|
1686 |
19b68a2e
|
Lukáš Vlček
|
public annotationsPost(annotationsAddRequest?: AnnotationsAddRequest, options?: AxiosRequestConfig) {
|
1687 |
|
|
return AnnotationApiFp(this.configuration).annotationsPost(annotationsAddRequest, options).then((request) => request(this.axios, this.basePath));
|
1688 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1689 |
|
|
}
|
1690 |
|
|
|
1691 |
19b68a2e
|
Lukáš Vlček
|
|
1692 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1693 |
|
|
* AuthApi - axios parameter creator
|
1694 |
|
|
* @export
|
1695 |
|
|
*/
|
1696 |
|
|
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
1697 |
|
|
return {
|
1698 |
|
|
/**
|
1699 |
19b68a2e
|
Lukáš Vlček
|
*
|
1700 |
|
|
* @param {LoginRequest} [loginRequest]
|
1701 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1702 |
|
|
* @throws {RequiredError}
|
1703 |
|
|
*/
|
1704 |
19b68a2e
|
Lukáš Vlček
|
authLoginPost: async (loginRequest?: LoginRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1705 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/auth/login`;
|
1706 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1707 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1708 |
|
|
let baseOptions;
|
1709 |
|
|
if (configuration) {
|
1710 |
|
|
baseOptions = configuration.baseOptions;
|
1711 |
|
|
}
|
1712 |
|
|
|
1713 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
1714 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1715 |
|
|
const localVarQueryParameter = {} as any;
|
1716 |
|
|
|
1717 |
19b68a2e
|
Lukáš Vlček
|
|
1718 |
|
|
|
1719 |
3e6b15a7
|
Lukáš Vlček
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1720 |
|
|
|
1721 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1722 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1723 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1724 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(loginRequest, localVarRequestOptions, configuration)
|
1725 |
3e6b15a7
|
Lukáš Vlček
|
|
1726 |
|
|
return {
|
1727 |
|
|
url: toPathString(localVarUrlObj),
|
1728 |
|
|
options: localVarRequestOptions,
|
1729 |
|
|
};
|
1730 |
|
|
},
|
1731 |
|
|
/**
|
1732 |
19b68a2e
|
Lukáš Vlček
|
*
|
1733 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1734 |
|
|
* @throws {RequiredError}
|
1735 |
|
|
*/
|
1736 |
|
|
authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1737 |
|
|
const localVarPath = `/auth/test/aa`;
|
1738 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1739 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1740 |
|
|
let baseOptions;
|
1741 |
|
|
if (configuration) {
|
1742 |
|
|
baseOptions = configuration.baseOptions;
|
1743 |
|
|
}
|
1744 |
|
|
|
1745 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
1746 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1747 |
|
|
const localVarQueryParameter = {} as any;
|
1748 |
|
|
|
1749 |
19b68a2e
|
Lukáš Vlček
|
|
1750 |
|
|
|
1751 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1752 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1753 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1754 |
3e6b15a7
|
Lukáš Vlček
|
|
1755 |
|
|
return {
|
1756 |
|
|
url: toPathString(localVarUrlObj),
|
1757 |
|
|
options: localVarRequestOptions,
|
1758 |
|
|
};
|
1759 |
|
|
},
|
1760 |
|
|
/**
|
1761 |
19b68a2e
|
Lukáš Vlček
|
*
|
1762 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1763 |
|
|
* @throws {RequiredError}
|
1764 |
|
|
*/
|
1765 |
|
|
authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1766 |
|
|
const localVarPath = `/auth/test`;
|
1767 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1768 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1769 |
|
|
let baseOptions;
|
1770 |
|
|
if (configuration) {
|
1771 |
|
|
baseOptions = configuration.baseOptions;
|
1772 |
|
|
}
|
1773 |
|
|
|
1774 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
1775 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1776 |
|
|
const localVarQueryParameter = {} as any;
|
1777 |
|
|
|
1778 |
19b68a2e
|
Lukáš Vlček
|
|
1779 |
|
|
|
1780 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1781 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1782 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1783 |
3e6b15a7
|
Lukáš Vlček
|
|
1784 |
|
|
return {
|
1785 |
|
|
url: toPathString(localVarUrlObj),
|
1786 |
|
|
options: localVarRequestOptions,
|
1787 |
|
|
};
|
1788 |
|
|
},
|
1789 |
19b68a2e
|
Lukáš Vlček
|
}
|
1790 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1791 |
|
|
|
1792 |
|
|
/**
|
1793 |
|
|
* AuthApi - functional programming interface
|
1794 |
|
|
* @export
|
1795 |
|
|
*/
|
1796 |
19b68a2e
|
Lukáš Vlček
|
export const AuthApiFp = function(configuration?: Configuration) {
|
1797 |
|
|
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
1798 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1799 |
|
|
/**
|
1800 |
19b68a2e
|
Lukáš Vlček
|
*
|
1801 |
|
|
* @param {LoginRequest} [loginRequest]
|
1802 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1803 |
|
|
* @throws {RequiredError}
|
1804 |
|
|
*/
|
1805 |
19b68a2e
|
Lukáš Vlček
|
async authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
|
1806 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(loginRequest, options);
|
1807 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1808 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1809 |
|
|
/**
|
1810 |
19b68a2e
|
Lukáš Vlček
|
*
|
1811 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1812 |
|
|
* @throws {RequiredError}
|
1813 |
|
|
*/
|
1814 |
19b68a2e
|
Lukáš Vlček
|
async authTestAaGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
|
1815 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(options);
|
1816 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1817 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1818 |
|
|
/**
|
1819 |
19b68a2e
|
Lukáš Vlček
|
*
|
1820 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1821 |
|
|
* @throws {RequiredError}
|
1822 |
|
|
*/
|
1823 |
19b68a2e
|
Lukáš Vlček
|
async authTestGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>> {
|
1824 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(options);
|
1825 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1826 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1827 |
19b68a2e
|
Lukáš Vlček
|
}
|
1828 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1829 |
|
|
|
1830 |
|
|
/**
|
1831 |
|
|
* AuthApi - factory interface
|
1832 |
|
|
* @export
|
1833 |
|
|
*/
|
1834 |
19b68a2e
|
Lukáš Vlček
|
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
1835 |
|
|
const localVarFp = AuthApiFp(configuration)
|
1836 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1837 |
|
|
/**
|
1838 |
19b68a2e
|
Lukáš Vlček
|
*
|
1839 |
|
|
* @param {LoginRequest} [loginRequest]
|
1840 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1841 |
|
|
* @throws {RequiredError}
|
1842 |
|
|
*/
|
1843 |
19b68a2e
|
Lukáš Vlček
|
authLoginPost(loginRequest?: LoginRequest, options?: any): AxiosPromise<LoginResponse> {
|
1844 |
|
|
return localVarFp.authLoginPost(loginRequest, options).then((request) => request(axios, basePath));
|
1845 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1846 |
|
|
/**
|
1847 |
19b68a2e
|
Lukáš Vlček
|
*
|
1848 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1849 |
|
|
* @throws {RequiredError}
|
1850 |
|
|
*/
|
1851 |
|
|
authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
|
1852 |
19b68a2e
|
Lukáš Vlček
|
return localVarFp.authTestAaGet(options).then((request) => request(axios, basePath));
|
1853 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1854 |
|
|
/**
|
1855 |
19b68a2e
|
Lukáš Vlček
|
*
|
1856 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1857 |
|
|
* @throws {RequiredError}
|
1858 |
|
|
*/
|
1859 |
|
|
authTestGet(options?: any): AxiosPromise<ClientInfo> {
|
1860 |
19b68a2e
|
Lukáš Vlček
|
return localVarFp.authTestGet(options).then((request) => request(axios, basePath));
|
1861 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1862 |
|
|
};
|
1863 |
|
|
};
|
1864 |
|
|
|
1865 |
|
|
/**
|
1866 |
|
|
* AuthApi - object-oriented interface
|
1867 |
|
|
* @export
|
1868 |
|
|
* @class AuthApi
|
1869 |
|
|
* @extends {BaseAPI}
|
1870 |
|
|
*/
|
1871 |
|
|
export class AuthApi extends BaseAPI {
|
1872 |
|
|
/**
|
1873 |
19b68a2e
|
Lukáš Vlček
|
*
|
1874 |
|
|
* @param {LoginRequest} [loginRequest]
|
1875 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1876 |
|
|
* @throws {RequiredError}
|
1877 |
|
|
* @memberof AuthApi
|
1878 |
|
|
*/
|
1879 |
|
|
public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
|
1880 |
19b68a2e
|
Lukáš Vlček
|
return AuthApiFp(this.configuration).authLoginPost(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
1881 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1882 |
|
|
|
1883 |
|
|
/**
|
1884 |
19b68a2e
|
Lukáš Vlček
|
*
|
1885 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1886 |
|
|
* @throws {RequiredError}
|
1887 |
|
|
* @memberof AuthApi
|
1888 |
|
|
*/
|
1889 |
|
|
public authTestAaGet(options?: AxiosRequestConfig) {
|
1890 |
19b68a2e
|
Lukáš Vlček
|
return AuthApiFp(this.configuration).authTestAaGet(options).then((request) => request(this.axios, this.basePath));
|
1891 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1892 |
|
|
|
1893 |
|
|
/**
|
1894 |
19b68a2e
|
Lukáš Vlček
|
*
|
1895 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1896 |
|
|
* @throws {RequiredError}
|
1897 |
|
|
* @memberof AuthApi
|
1898 |
|
|
*/
|
1899 |
|
|
public authTestGet(options?: AxiosRequestConfig) {
|
1900 |
19b68a2e
|
Lukáš Vlček
|
return AuthApiFp(this.configuration).authTestGet(options).then((request) => request(this.axios, this.basePath));
|
1901 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1902 |
|
|
}
|
1903 |
|
|
|
1904 |
19b68a2e
|
Lukáš Vlček
|
|
1905 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1906 |
|
|
* DocumentApi - axios parameter creator
|
1907 |
|
|
* @export
|
1908 |
|
|
*/
|
1909 |
|
|
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
|
1910 |
|
|
return {
|
1911 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
1912 |
|
|
*
|
1913 |
|
|
* @param {string} documentId
|
1914 |
|
|
* @param {*} [options] Override http request option.
|
1915 |
|
|
* @throws {RequiredError}
|
1916 |
|
|
*/
|
1917 |
|
|
documentDocumentIdGet: async (documentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1918 |
|
|
// verify required parameter 'documentId' is not null or undefined
|
1919 |
|
|
assertParamExists('documentDocumentIdGet', 'documentId', documentId)
|
1920 |
|
|
const localVarPath = `/document/{documentId}`
|
1921 |
|
|
.replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
|
1922 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1923 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1924 |
|
|
let baseOptions;
|
1925 |
|
|
if (configuration) {
|
1926 |
|
|
baseOptions = configuration.baseOptions;
|
1927 |
|
|
}
|
1928 |
|
|
|
1929 |
|
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
1930 |
|
|
const localVarHeaderParameter = {} as any;
|
1931 |
|
|
const localVarQueryParameter = {} as any;
|
1932 |
|
|
|
1933 |
|
|
|
1934 |
|
|
|
1935 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1936 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1937 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1938 |
|
|
|
1939 |
|
|
return {
|
1940 |
|
|
url: toPathString(localVarUrlObj),
|
1941 |
|
|
options: localVarRequestOptions,
|
1942 |
|
|
};
|
1943 |
|
|
},
|
1944 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1945 |
19b68a2e
|
Lukáš Vlček
|
*
|
1946 |
|
|
* @param {number} [pageIndex]
|
1947 |
|
|
* @param {number} [pageSize]
|
1948 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1949 |
|
|
* @throws {RequiredError}
|
1950 |
|
|
*/
|
1951 |
19b68a2e
|
Lukáš Vlček
|
documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1952 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/documents`;
|
1953 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1954 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1955 |
|
|
let baseOptions;
|
1956 |
|
|
if (configuration) {
|
1957 |
|
|
baseOptions = configuration.baseOptions;
|
1958 |
|
|
}
|
1959 |
|
|
|
1960 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
1961 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1962 |
|
|
const localVarQueryParameter = {} as any;
|
1963 |
|
|
|
1964 |
dd747fc5
|
Lukáš Vlček
|
if (pageIndex !== undefined) {
|
1965 |
|
|
localVarQueryParameter['pageIndex'] = pageIndex;
|
1966 |
|
|
}
|
1967 |
3e6b15a7
|
Lukáš Vlček
|
|
1968 |
dd747fc5
|
Lukáš Vlček
|
if (pageSize !== undefined) {
|
1969 |
|
|
localVarQueryParameter['pageSize'] = pageSize;
|
1970 |
|
|
}
|
1971 |
3e6b15a7
|
Lukáš Vlček
|
|
1972 |
19b68a2e
|
Lukáš Vlček
|
|
1973 |
|
|
|
1974 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1975 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1976 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1977 |
3e6b15a7
|
Lukáš Vlček
|
|
1978 |
|
|
return {
|
1979 |
|
|
url: toPathString(localVarUrlObj),
|
1980 |
|
|
options: localVarRequestOptions,
|
1981 |
|
|
};
|
1982 |
|
|
},
|
1983 |
|
|
/**
|
1984 |
19b68a2e
|
Lukáš Vlček
|
*
|
1985 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
1986 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1987 |
|
|
* @throws {RequiredError}
|
1988 |
|
|
*/
|
1989 |
19b68a2e
|
Lukáš Vlček
|
documentsPost: async (documentAddRequest?: DocumentAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1990 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/documents`;
|
1991 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1992 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1993 |
|
|
let baseOptions;
|
1994 |
|
|
if (configuration) {
|
1995 |
|
|
baseOptions = configuration.baseOptions;
|
1996 |
|
|
}
|
1997 |
|
|
|
1998 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
1999 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
2000 |
|
|
const localVarQueryParameter = {} as any;
|
2001 |
|
|
|
2002 |
19b68a2e
|
Lukáš Vlček
|
|
2003 |
|
|
|
2004 |
3e6b15a7
|
Lukáš Vlček
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2005 |
|
|
|
2006 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2007 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2008 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2009 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(documentAddRequest, localVarRequestOptions, configuration)
|
2010 |
|
|
|
2011 |
|
|
return {
|
2012 |
|
|
url: toPathString(localVarUrlObj),
|
2013 |
|
|
options: localVarRequestOptions,
|
2014 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
2015 |
19b68a2e
|
Lukáš Vlček
|
},
|
2016 |
|
|
/**
|
2017 |
|
|
*
|
2018 |
|
|
* @param {*} [options] Override http request option.
|
2019 |
|
|
* @throws {RequiredError}
|
2020 |
|
|
*/
|
2021 |
|
|
documentsRequiredAnnotationsGlobalGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2022 |
|
|
const localVarPath = `/documents/requiredAnnotations/global`;
|
2023 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2024 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2025 |
|
|
let baseOptions;
|
2026 |
|
|
if (configuration) {
|
2027 |
|
|
baseOptions = configuration.baseOptions;
|
2028 |
|
|
}
|
2029 |
|
|
|
2030 |
|
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
2031 |
|
|
const localVarHeaderParameter = {} as any;
|
2032 |
|
|
const localVarQueryParameter = {} as any;
|
2033 |
|
|
|
2034 |
|
|
|
2035 |
|
|
|
2036 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2037 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2038 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2039 |
3e6b15a7
|
Lukáš Vlček
|
|
2040 |
|
|
return {
|
2041 |
|
|
url: toPathString(localVarUrlObj),
|
2042 |
|
|
options: localVarRequestOptions,
|
2043 |
|
|
};
|
2044 |
|
|
},
|
2045 |
19b68a2e
|
Lukáš Vlček
|
/**
|
2046 |
|
|
*
|
2047 |
|
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
2048 |
|
|
* @param {*} [options] Override http request option.
|
2049 |
|
|
* @throws {RequiredError}
|
2050 |
|
|
*/
|
2051 |
|
|
documentsRequiredAnnotationsGlobalPost: async (setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2052 |
|
|
const localVarPath = `/documents/requiredAnnotations/global`;
|
2053 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2054 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2055 |
|
|
let baseOptions;
|
2056 |
|
|
if (configuration) {
|
2057 |
|
|
baseOptions = configuration.baseOptions;
|
2058 |
|
|
}
|
2059 |
|
|
|
2060 |
|
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2061 |
|
|
const localVarHeaderParameter = {} as any;
|
2062 |
|
|
const localVarQueryParameter = {} as any;
|
2063 |
|
|
|
2064 |
|
|
|
2065 |
|
|
|
2066 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2067 |
|
|
|
2068 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2069 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2070 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2071 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsGlobalRequest, localVarRequestOptions, configuration)
|
2072 |
|
|
|
2073 |
|
|
return {
|
2074 |
|
|
url: toPathString(localVarUrlObj),
|
2075 |
|
|
options: localVarRequestOptions,
|
2076 |
|
|
};
|
2077 |
|
|
},
|
2078 |
|
|
/**
|
2079 |
|
|
*
|
2080 |
|
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
2081 |
|
|
* @param {*} [options] Override http request option.
|
2082 |
|
|
* @throws {RequiredError}
|
2083 |
|
|
*/
|
2084 |
|
|
documentsRequiredAnnotationsPost: async (setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2085 |
|
|
const localVarPath = `/documents/requiredAnnotations`;
|
2086 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2087 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2088 |
|
|
let baseOptions;
|
2089 |
|
|
if (configuration) {
|
2090 |
|
|
baseOptions = configuration.baseOptions;
|
2091 |
|
|
}
|
2092 |
|
|
|
2093 |
|
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2094 |
|
|
const localVarHeaderParameter = {} as any;
|
2095 |
|
|
const localVarQueryParameter = {} as any;
|
2096 |
|
|
|
2097 |
|
|
|
2098 |
|
|
|
2099 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2100 |
|
|
|
2101 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2102 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2103 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2104 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(setRequiredAnnotationsRequest, localVarRequestOptions, configuration)
|
2105 |
|
|
|
2106 |
|
|
return {
|
2107 |
|
|
url: toPathString(localVarUrlObj),
|
2108 |
|
|
options: localVarRequestOptions,
|
2109 |
|
|
};
|
2110 |
|
|
},
|
2111 |
|
|
}
|
2112 |
3e6b15a7
|
Lukáš Vlček
|
};
|
2113 |
|
|
|
2114 |
|
|
/**
|
2115 |
|
|
* DocumentApi - functional programming interface
|
2116 |
|
|
* @export
|
2117 |
|
|
*/
|
2118 |
19b68a2e
|
Lukáš Vlček
|
export const DocumentApiFp = function(configuration?: Configuration) {
|
2119 |
|
|
const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration)
|
2120 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
2121 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
2122 |
|
|
*
|
2123 |
|
|
* @param {string} documentId
|
2124 |
|
|
* @param {*} [options] Override http request option.
|
2125 |
|
|
* @throws {RequiredError}
|
2126 |
|
|
*/
|
2127 |
|
|
async documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentPreviewResponse>> {
|
2128 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentDocumentIdGet(documentId, options);
|
2129 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2130 |
|
|
},
|
2131 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
2132 |
19b68a2e
|
Lukáš Vlček
|
*
|
2133 |
|
|
* @param {number} [pageIndex]
|
2134 |
|
|
* @param {number} [pageSize]
|
2135 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2136 |
|
|
* @throws {RequiredError}
|
2137 |
|
|
*/
|
2138 |
19b68a2e
|
Lukáš Vlček
|
async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
|
2139 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
|
2140 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2141 |
3e6b15a7
|
Lukáš Vlček
|
},
|
2142 |
|
|
/**
|
2143 |
19b68a2e
|
Lukáš Vlček
|
*
|
2144 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
2145 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2146 |
|
|
* @throws {RequiredError}
|
2147 |
|
|
*/
|
2148 |
19b68a2e
|
Lukáš Vlček
|
async documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2149 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(documentAddRequest, options);
|
2150 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2151 |
3e6b15a7
|
Lukáš Vlček
|
},
|
2152 |
19b68a2e
|
Lukáš Vlček
|
/**
|
2153 |
|
|
*
|
2154 |
|
|
* @param {*} [options] Override http request option.
|
2155 |
|
|
* @throws {RequiredError}
|
2156 |
|
|
*/
|
2157 |
|
|
async documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRequiredAnnotationsGlobalResponse>> {
|
2158 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalGet(options);
|
2159 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2160 |
|
|
},
|
2161 |
|
|
/**
|
2162 |
|
|
*
|
2163 |
|
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
2164 |
|
|
* @param {*} [options] Override http request option.
|
2165 |
|
|
* @throws {RequiredError}
|
2166 |
|
|
*/
|
2167 |
|
|
async documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2168 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options);
|
2169 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2170 |
|
|
},
|
2171 |
|
|
/**
|
2172 |
|
|
*
|
2173 |
|
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
2174 |
|
|
* @param {*} [options] Override http request option.
|
2175 |
|
|
* @throws {RequiredError}
|
2176 |
|
|
*/
|
2177 |
|
|
async documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2178 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options);
|
2179 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2180 |
|
|
},
|
2181 |
|
|
}
|
2182 |
3e6b15a7
|
Lukáš Vlček
|
};
|
2183 |
|
|
|
2184 |
|
|
/**
|
2185 |
|
|
* DocumentApi - factory interface
|
2186 |
|
|
* @export
|
2187 |
|
|
*/
|
2188 |
19b68a2e
|
Lukáš Vlček
|
export const DocumentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
2189 |
|
|
const localVarFp = DocumentApiFp(configuration)
|
2190 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
2191 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
2192 |
|
|
*
|
2193 |
|
|
* @param {string} documentId
|
2194 |
|
|
* @param {*} [options] Override http request option.
|
2195 |
|
|
* @throws {RequiredError}
|
2196 |
|
|
*/
|
2197 |
|
|
documentDocumentIdGet(documentId: string, options?: any): AxiosPromise<DocumentPreviewResponse> {
|
2198 |
|
|
return localVarFp.documentDocumentIdGet(documentId, options).then((request) => request(axios, basePath));
|
2199 |
|
|
},
|
2200 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
2201 |
19b68a2e
|
Lukáš Vlček
|
*
|
2202 |
|
|
* @param {number} [pageIndex]
|
2203 |
|
|
* @param {number} [pageSize]
|
2204 |
|
|
* @param {*} [options] Override http request option.
|
2205 |
|
|
* @throws {RequiredError}
|
2206 |
|
|
*/
|
2207 |
|
|
documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
|
2208 |
|
|
return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
|
2209 |
|
|
},
|
2210 |
|
|
/**
|
2211 |
|
|
*
|
2212 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
2213 |
|
|
* @param {*} [options] Override http request option.
|
2214 |
|
|
* @throws {RequiredError}
|
2215 |
|
|
*/
|
2216 |
|
|
documentsPost(documentAddRequest?: DocumentAddRequest, options?: any): AxiosPromise<void> {
|
2217 |
|
|
return localVarFp.documentsPost(documentAddRequest, options).then((request) => request(axios, basePath));
|
2218 |
|
|
},
|
2219 |
|
|
/**
|
2220 |
|
|
*
|
2221 |
|
|
* @param {*} [options] Override http request option.
|
2222 |
|
|
* @throws {RequiredError}
|
2223 |
|
|
*/
|
2224 |
|
|
documentsRequiredAnnotationsGlobalGet(options?: any): AxiosPromise<GetRequiredAnnotationsGlobalResponse> {
|
2225 |
|
|
return localVarFp.documentsRequiredAnnotationsGlobalGet(options).then((request) => request(axios, basePath));
|
2226 |
|
|
},
|
2227 |
|
|
/**
|
2228 |
|
|
*
|
2229 |
|
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
2230 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2231 |
|
|
* @throws {RequiredError}
|
2232 |
|
|
*/
|
2233 |
19b68a2e
|
Lukáš Vlček
|
documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: any): AxiosPromise<void> {
|
2234 |
|
|
return localVarFp.documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(axios, basePath));
|
2235 |
3e6b15a7
|
Lukáš Vlček
|
},
|
2236 |
|
|
/**
|
2237 |
19b68a2e
|
Lukáš Vlček
|
*
|
2238 |
|
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
2239 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2240 |
|
|
* @throws {RequiredError}
|
2241 |
|
|
*/
|
2242 |
19b68a2e
|
Lukáš Vlček
|
documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: any): AxiosPromise<void> {
|
2243 |
|
|
return localVarFp.documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(axios, basePath));
|
2244 |
3e6b15a7
|
Lukáš Vlček
|
},
|
2245 |
|
|
};
|
2246 |
|
|
};
|
2247 |
|
|
|
2248 |
|
|
/**
|
2249 |
|
|
* DocumentApi - object-oriented interface
|
2250 |
|
|
* @export
|
2251 |
|
|
* @class DocumentApi
|
2252 |
|
|
* @extends {BaseAPI}
|
2253 |
|
|
*/
|
2254 |
|
|
export class DocumentApi extends BaseAPI {
|
2255 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
2256 |
|
|
*
|
2257 |
|
|
* @param {string} documentId
|
2258 |
|
|
* @param {*} [options] Override http request option.
|
2259 |
|
|
* @throws {RequiredError}
|
2260 |
|
|
* @memberof DocumentApi
|
2261 |
|
|
*/
|
2262 |
|
|
public documentDocumentIdGet(documentId: string, options?: AxiosRequestConfig) {
|
2263 |
|
|
return DocumentApiFp(this.configuration).documentDocumentIdGet(documentId, options).then((request) => request(this.axios, this.basePath));
|
2264 |
|
|
}
|
2265 |
|
|
|
2266 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
2267 |
19b68a2e
|
Lukáš Vlček
|
*
|
2268 |
|
|
* @param {number} [pageIndex]
|
2269 |
|
|
* @param {number} [pageSize]
|
2270 |
|
|
* @param {*} [options] Override http request option.
|
2271 |
|
|
* @throws {RequiredError}
|
2272 |
|
|
* @memberof DocumentApi
|
2273 |
|
|
*/
|
2274 |
|
|
public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
|
2275 |
|
|
return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
|
2276 |
|
|
}
|
2277 |
|
|
|
2278 |
|
|
/**
|
2279 |
|
|
*
|
2280 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
2281 |
|
|
* @param {*} [options] Override http request option.
|
2282 |
|
|
* @throws {RequiredError}
|
2283 |
|
|
* @memberof DocumentApi
|
2284 |
|
|
*/
|
2285 |
|
|
public documentsPost(documentAddRequest?: DocumentAddRequest, options?: AxiosRequestConfig) {
|
2286 |
|
|
return DocumentApiFp(this.configuration).documentsPost(documentAddRequest, options).then((request) => request(this.axios, this.basePath));
|
2287 |
|
|
}
|
2288 |
|
|
|
2289 |
|
|
/**
|
2290 |
|
|
*
|
2291 |
|
|
* @param {*} [options] Override http request option.
|
2292 |
|
|
* @throws {RequiredError}
|
2293 |
|
|
* @memberof DocumentApi
|
2294 |
|
|
*/
|
2295 |
|
|
public documentsRequiredAnnotationsGlobalGet(options?: AxiosRequestConfig) {
|
2296 |
|
|
return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalGet(options).then((request) => request(this.axios, this.basePath));
|
2297 |
|
|
}
|
2298 |
|
|
|
2299 |
|
|
/**
|
2300 |
|
|
*
|
2301 |
|
|
* @param {SetRequiredAnnotationsGlobalRequest} [setRequiredAnnotationsGlobalRequest]
|
2302 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2303 |
|
|
* @throws {RequiredError}
|
2304 |
|
|
* @memberof DocumentApi
|
2305 |
|
|
*/
|
2306 |
19b68a2e
|
Lukáš Vlček
|
public documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest?: SetRequiredAnnotationsGlobalRequest, options?: AxiosRequestConfig) {
|
2307 |
|
|
return DocumentApiFp(this.configuration).documentsRequiredAnnotationsGlobalPost(setRequiredAnnotationsGlobalRequest, options).then((request) => request(this.axios, this.basePath));
|
2308 |
3e6b15a7
|
Lukáš Vlček
|
}
|
2309 |
|
|
|
2310 |
|
|
/**
|
2311 |
19b68a2e
|
Lukáš Vlček
|
*
|
2312 |
|
|
* @param {SetRequiredAnnotationsRequest} [setRequiredAnnotationsRequest]
|
2313 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2314 |
|
|
* @throws {RequiredError}
|
2315 |
|
|
* @memberof DocumentApi
|
2316 |
|
|
*/
|
2317 |
19b68a2e
|
Lukáš Vlček
|
public documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest?: SetRequiredAnnotationsRequest, options?: AxiosRequestConfig) {
|
2318 |
|
|
return DocumentApiFp(this.configuration).documentsRequiredAnnotationsPost(setRequiredAnnotationsRequest, options).then((request) => request(this.axios, this.basePath));
|
2319 |
3e6b15a7
|
Lukáš Vlček
|
}
|
2320 |
|
|
}
|
2321 |
|
|
|
2322 |
19b68a2e
|
Lukáš Vlček
|
|
2323 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
2324 |
|
|
* TagApi - axios parameter creator
|
2325 |
|
|
* @export
|
2326 |
|
|
*/
|
2327 |
|
|
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
|
2328 |
|
|
return {
|
2329 |
|
|
/**
|
2330 |
19b68a2e
|
Lukáš Vlček
|
*
|
2331 |
cca0bfa0
|
Lukáš Vlček
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
2332 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2333 |
|
|
* @throws {RequiredError}
|
2334 |
|
|
*/
|
2335 |
cca0bfa0
|
Lukáš Vlček
|
categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2336 |
|
|
const localVarPath = `/categories`;
|
2337 |
3e6b15a7
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2338 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2339 |
|
|
let baseOptions;
|
2340 |
|
|
if (configuration) {
|
2341 |
|
|
baseOptions = configuration.baseOptions;
|
2342 |
|
|
}
|
2343 |
|
|
|
2344 |
cca0bfa0
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2345 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
2346 |
|
|
const localVarQueryParameter = {} as any;
|
2347 |
|
|
|
2348 |
19b68a2e
|
Lukáš Vlček
|
|
2349 |
|
|
|
2350 |
cca0bfa0
|
Lukáš Vlček
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2351 |
|
|
|
2352 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2353 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2354 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2355 |
cca0bfa0
|
Lukáš Vlček
|
localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration)
|
2356 |
3e6b15a7
|
Lukáš Vlček
|
|
2357 |
|
|
return {
|
2358 |
|
|
url: toPathString(localVarUrlObj),
|
2359 |
|
|
options: localVarRequestOptions,
|
2360 |
|
|
};
|
2361 |
|
|
},
|
2362 |
|
|
/**
|
2363 |
19b68a2e
|
Lukáš Vlček
|
*
|
2364 |
cca0bfa0
|
Lukáš Vlček
|
* @param {string} categoryId
|
2365 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2366 |
|
|
* @throws {RequiredError}
|
2367 |
|
|
*/
|
2368 |
cca0bfa0
|
Lukáš Vlček
|
categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2369 |
|
|
// verify required parameter 'categoryId' is not null or undefined
|
2370 |
|
|
assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId)
|
2371 |
|
|
const localVarPath = `/category/{categoryId}`
|
2372 |
|
|
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
|
2373 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2374 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2375 |
|
|
let baseOptions;
|
2376 |
|
|
if (configuration) {
|
2377 |
|
|
baseOptions = configuration.baseOptions;
|
2378 |
|
|
}
|
2379 |
|
|
|
2380 |
|
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
2381 |
|
|
const localVarHeaderParameter = {} as any;
|
2382 |
|
|
const localVarQueryParameter = {} as any;
|
2383 |
|
|
|
2384 |
|
|
|
2385 |
|
|
|
2386 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2387 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2388 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2389 |
|
|
|
2390 |
|
|
return {
|
2391 |
|
|
url: toPathString(localVarUrlObj),
|
2392 |
|
|
options: localVarRequestOptions,
|
2393 |
|
|
};
|
2394 |
|
|
},
|
2395 |
|
|
/**
|
2396 |
|
|
*
|
2397 |
|
|
* @param {string} categoryId
|
2398 |
|
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
2399 |
|
|
* @param {*} [options] Override http request option.
|
2400 |
|
|
* @throws {RequiredError}
|
2401 |
|
|
*/
|
2402 |
|
|
categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2403 |
|
|
// verify required parameter 'categoryId' is not null or undefined
|
2404 |
|
|
assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId)
|
2405 |
|
|
const localVarPath = `/category/{categoryId}`
|
2406 |
|
|
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId)));
|
2407 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2408 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2409 |
|
|
let baseOptions;
|
2410 |
|
|
if (configuration) {
|
2411 |
|
|
baseOptions = configuration.baseOptions;
|
2412 |
|
|
}
|
2413 |
|
|
|
2414 |
|
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
2415 |
|
|
const localVarHeaderParameter = {} as any;
|
2416 |
|
|
const localVarQueryParameter = {} as any;
|
2417 |
|
|
|
2418 |
|
|
|
2419 |
|
|
|
2420 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2421 |
|
|
|
2422 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2423 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2424 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2425 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration)
|
2426 |
|
|
|
2427 |
|
|
return {
|
2428 |
|
|
url: toPathString(localVarUrlObj),
|
2429 |
|
|
options: localVarRequestOptions,
|
2430 |
|
|
};
|
2431 |
|
|
},
|
2432 |
|
|
/**
|
2433 |
|
|
*
|
2434 |
|
|
* @param {string} subtagId
|
2435 |
|
|
* @param {*} [options] Override http request option.
|
2436 |
|
|
* @throws {RequiredError}
|
2437 |
|
|
*/
|
2438 |
|
|
subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2439 |
|
|
// verify required parameter 'subtagId' is not null or undefined
|
2440 |
|
|
assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId)
|
2441 |
|
|
const localVarPath = `/subtag/{subtagId}`
|
2442 |
|
|
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
|
2443 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2444 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2445 |
|
|
let baseOptions;
|
2446 |
|
|
if (configuration) {
|
2447 |
|
|
baseOptions = configuration.baseOptions;
|
2448 |
|
|
}
|
2449 |
|
|
|
2450 |
|
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
2451 |
|
|
const localVarHeaderParameter = {} as any;
|
2452 |
|
|
const localVarQueryParameter = {} as any;
|
2453 |
|
|
|
2454 |
|
|
|
2455 |
|
|
|
2456 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2457 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2458 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2459 |
|
|
|
2460 |
|
|
return {
|
2461 |
|
|
url: toPathString(localVarUrlObj),
|
2462 |
|
|
options: localVarRequestOptions,
|
2463 |
|
|
};
|
2464 |
|
|
},
|
2465 |
|
|
/**
|
2466 |
|
|
*
|
2467 |
|
|
* @param {string} subtagId
|
2468 |
|
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
2469 |
|
|
* @param {*} [options] Override http request option.
|
2470 |
|
|
* @throws {RequiredError}
|
2471 |
|
|
*/
|
2472 |
|
|
subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2473 |
|
|
// verify required parameter 'subtagId' is not null or undefined
|
2474 |
|
|
assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId)
|
2475 |
|
|
const localVarPath = `/subtag/{subtagId}`
|
2476 |
|
|
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId)));
|
2477 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2478 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2479 |
|
|
let baseOptions;
|
2480 |
|
|
if (configuration) {
|
2481 |
|
|
baseOptions = configuration.baseOptions;
|
2482 |
|
|
}
|
2483 |
|
|
|
2484 |
|
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
2485 |
|
|
const localVarHeaderParameter = {} as any;
|
2486 |
|
|
const localVarQueryParameter = {} as any;
|
2487 |
|
|
|
2488 |
|
|
|
2489 |
|
|
|
2490 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2491 |
|
|
|
2492 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2493 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2494 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2495 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration)
|
2496 |
|
|
|
2497 |
|
|
return {
|
2498 |
|
|
url: toPathString(localVarUrlObj),
|
2499 |
|
|
options: localVarRequestOptions,
|
2500 |
|
|
};
|
2501 |
|
|
},
|
2502 |
|
|
/**
|
2503 |
|
|
*
|
2504 |
|
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
2505 |
|
|
* @param {*} [options] Override http request option.
|
2506 |
|
|
* @throws {RequiredError}
|
2507 |
|
|
*/
|
2508 |
|
|
subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2509 |
|
|
const localVarPath = `/subtags`;
|
2510 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2511 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2512 |
|
|
let baseOptions;
|
2513 |
|
|
if (configuration) {
|
2514 |
|
|
baseOptions = configuration.baseOptions;
|
2515 |
|
|
}
|
2516 |
|
|
|
2517 |
|
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2518 |
|
|
const localVarHeaderParameter = {} as any;
|
2519 |
|
|
const localVarQueryParameter = {} as any;
|
2520 |
|
|
|
2521 |
|
|
|
2522 |
|
|
|
2523 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2524 |
|
|
|
2525 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2526 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2527 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2528 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration)
|
2529 |
|
|
|
2530 |
|
|
return {
|
2531 |
|
|
url: toPathString(localVarUrlObj),
|
2532 |
|
|
options: localVarRequestOptions,
|
2533 |
|
|
};
|
2534 |
|
|
},
|
2535 |
|
|
/**
|
2536 |
|
|
*
|
2537 |
|
|
* @param {string} tagId
|
2538 |
|
|
* @param {*} [options] Override http request option.
|
2539 |
|
|
* @throws {RequiredError}
|
2540 |
|
|
*/
|
2541 |
|
|
tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2542 |
|
|
// verify required parameter 'tagId' is not null or undefined
|
2543 |
|
|
assertParamExists('tagTagIdDelete', 'tagId', tagId)
|
2544 |
|
|
const localVarPath = `/tag/{tagId}`
|
2545 |
|
|
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
2546 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2547 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2548 |
|
|
let baseOptions;
|
2549 |
|
|
if (configuration) {
|
2550 |
|
|
baseOptions = configuration.baseOptions;
|
2551 |
|
|
}
|
2552 |
|
|
|
2553 |
|
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
2554 |
|
|
const localVarHeaderParameter = {} as any;
|
2555 |
|
|
const localVarQueryParameter = {} as any;
|
2556 |
|
|
|
2557 |
|
|
|
2558 |
|
|
|
2559 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2560 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2561 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2562 |
|
|
|
2563 |
|
|
return {
|
2564 |
|
|
url: toPathString(localVarUrlObj),
|
2565 |
|
|
options: localVarRequestOptions,
|
2566 |
|
|
};
|
2567 |
|
|
},
|
2568 |
|
|
/**
|
2569 |
|
|
*
|
2570 |
|
|
* @param {string} tagId
|
2571 |
|
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
2572 |
|
|
* @param {*} [options] Override http request option.
|
2573 |
|
|
* @throws {RequiredError}
|
2574 |
|
|
*/
|
2575 |
|
|
tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2576 |
|
|
// verify required parameter 'tagId' is not null or undefined
|
2577 |
|
|
assertParamExists('tagTagIdPut', 'tagId', tagId)
|
2578 |
|
|
const localVarPath = `/tag/{tagId}`
|
2579 |
|
|
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
|
2580 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2581 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2582 |
|
|
let baseOptions;
|
2583 |
|
|
if (configuration) {
|
2584 |
|
|
baseOptions = configuration.baseOptions;
|
2585 |
|
|
}
|
2586 |
|
|
|
2587 |
|
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
2588 |
|
|
const localVarHeaderParameter = {} as any;
|
2589 |
|
|
const localVarQueryParameter = {} as any;
|
2590 |
|
|
|
2591 |
|
|
|
2592 |
|
|
|
2593 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2594 |
|
|
|
2595 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2596 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2597 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2598 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration)
|
2599 |
|
|
|
2600 |
|
|
return {
|
2601 |
|
|
url: toPathString(localVarUrlObj),
|
2602 |
|
|
options: localVarRequestOptions,
|
2603 |
|
|
};
|
2604 |
|
|
},
|
2605 |
|
|
/**
|
2606 |
|
|
*
|
2607 |
|
|
* @param {*} [options] Override http request option.
|
2608 |
|
|
* @throws {RequiredError}
|
2609 |
|
|
*/
|
2610 |
|
|
tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2611 |
|
|
const localVarPath = `/tags`;
|
2612 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2613 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2614 |
|
|
let baseOptions;
|
2615 |
|
|
if (configuration) {
|
2616 |
|
|
baseOptions = configuration.baseOptions;
|
2617 |
|
|
}
|
2618 |
|
|
|
2619 |
|
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
2620 |
|
|
const localVarHeaderParameter = {} as any;
|
2621 |
|
|
const localVarQueryParameter = {} as any;
|
2622 |
|
|
|
2623 |
|
|
|
2624 |
|
|
|
2625 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2626 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2627 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2628 |
|
|
|
2629 |
|
|
return {
|
2630 |
|
|
url: toPathString(localVarUrlObj),
|
2631 |
|
|
options: localVarRequestOptions,
|
2632 |
|
|
};
|
2633 |
|
|
},
|
2634 |
|
|
/**
|
2635 |
|
|
*
|
2636 |
|
|
* @param {CreateTagRequest} [createTagRequest]
|
2637 |
|
|
* @param {*} [options] Override http request option.
|
2638 |
|
|
* @throws {RequiredError}
|
2639 |
|
|
*/
|
2640 |
|
|
tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
2641 |
|
|
const localVarPath = `/tags`;
|
2642 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2643 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2644 |
|
|
let baseOptions;
|
2645 |
|
|
if (configuration) {
|
2646 |
|
|
baseOptions = configuration.baseOptions;
|
2647 |
|
|
}
|
2648 |
|
|
|
2649 |
|
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
2650 |
|
|
const localVarHeaderParameter = {} as any;
|
2651 |
|
|
const localVarQueryParameter = {} as any;
|
2652 |
|
|
|
2653 |
|
|
|
2654 |
|
|
|
2655 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2656 |
|
|
|
2657 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2658 |
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2659 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2660 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
|
2661 |
|
|
|
2662 |
|
|
return {
|
2663 |
|
|
url: toPathString(localVarUrlObj),
|
2664 |
|
|
options: localVarRequestOptions,
|
2665 |
|
|
};
|
2666 |
|
|
},
|
2667 |
|
|
}
|
2668 |
|
|
};
|
2669 |
|
|
|
2670 |
|
|
/**
|
2671 |
|
|
* TagApi - functional programming interface
|
2672 |
|
|
* @export
|
2673 |
|
|
*/
|
2674 |
|
|
export const TagApiFp = function(configuration?: Configuration) {
|
2675 |
|
|
const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
|
2676 |
|
|
return {
|
2677 |
|
|
/**
|
2678 |
|
|
*
|
2679 |
|
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
2680 |
|
|
* @param {*} [options] Override http request option.
|
2681 |
|
|
* @throws {RequiredError}
|
2682 |
|
|
*/
|
2683 |
|
|
async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2684 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options);
|
2685 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2686 |
|
|
},
|
2687 |
|
|
/**
|
2688 |
|
|
*
|
2689 |
|
|
* @param {string} categoryId
|
2690 |
|
|
* @param {*} [options] Override http request option.
|
2691 |
|
|
* @throws {RequiredError}
|
2692 |
|
|
*/
|
2693 |
|
|
async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2694 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options);
|
2695 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2696 |
|
|
},
|
2697 |
|
|
/**
|
2698 |
|
|
*
|
2699 |
|
|
* @param {string} categoryId
|
2700 |
|
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
2701 |
|
|
* @param {*} [options] Override http request option.
|
2702 |
|
|
* @throws {RequiredError}
|
2703 |
|
|
*/
|
2704 |
|
|
async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2705 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options);
|
2706 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2707 |
|
|
},
|
2708 |
|
|
/**
|
2709 |
|
|
*
|
2710 |
|
|
* @param {string} subtagId
|
2711 |
|
|
* @param {*} [options] Override http request option.
|
2712 |
|
|
* @throws {RequiredError}
|
2713 |
|
|
*/
|
2714 |
|
|
async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2715 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options);
|
2716 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2717 |
|
|
},
|
2718 |
|
|
/**
|
2719 |
|
|
*
|
2720 |
|
|
* @param {string} subtagId
|
2721 |
|
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
2722 |
|
|
* @param {*} [options] Override http request option.
|
2723 |
|
|
* @throws {RequiredError}
|
2724 |
|
|
*/
|
2725 |
|
|
async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2726 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options);
|
2727 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2728 |
|
|
},
|
2729 |
|
|
/**
|
2730 |
|
|
*
|
2731 |
|
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
2732 |
|
|
* @param {*} [options] Override http request option.
|
2733 |
|
|
* @throws {RequiredError}
|
2734 |
|
|
*/
|
2735 |
|
|
async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2736 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options);
|
2737 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2738 |
|
|
},
|
2739 |
|
|
/**
|
2740 |
|
|
*
|
2741 |
|
|
* @param {string} tagId
|
2742 |
|
|
* @param {*} [options] Override http request option.
|
2743 |
|
|
* @throws {RequiredError}
|
2744 |
|
|
*/
|
2745 |
|
|
async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2746 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options);
|
2747 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2748 |
|
|
},
|
2749 |
|
|
/**
|
2750 |
|
|
*
|
2751 |
|
|
* @param {string} tagId
|
2752 |
|
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
2753 |
|
|
* @param {*} [options] Override http request option.
|
2754 |
|
|
* @throws {RequiredError}
|
2755 |
|
|
*/
|
2756 |
|
|
async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2757 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options);
|
2758 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2759 |
|
|
},
|
2760 |
|
|
/**
|
2761 |
|
|
*
|
2762 |
|
|
* @param {*} [options] Override http request option.
|
2763 |
|
|
* @throws {RequiredError}
|
2764 |
|
|
*/
|
2765 |
|
|
async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> {
|
2766 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
|
2767 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2768 |
|
|
},
|
2769 |
|
|
/**
|
2770 |
|
|
*
|
2771 |
|
|
* @param {CreateTagRequest} [createTagRequest]
|
2772 |
|
|
* @param {*} [options] Override http request option.
|
2773 |
|
|
* @throws {RequiredError}
|
2774 |
|
|
*/
|
2775 |
|
|
async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
2776 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options);
|
2777 |
19b68a2e
|
Lukáš Vlček
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2778 |
3e6b15a7
|
Lukáš Vlček
|
},
|
2779 |
19b68a2e
|
Lukáš Vlček
|
}
|
2780 |
3e6b15a7
|
Lukáš Vlček
|
};
|
2781 |
|
|
|
2782 |
|
|
/**
|
2783 |
|
|
* TagApi - factory interface
|
2784 |
|
|
* @export
|
2785 |
|
|
*/
|
2786 |
19b68a2e
|
Lukáš Vlček
|
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
2787 |
|
|
const localVarFp = TagApiFp(configuration)
|
2788 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
2789 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
2790 |
|
|
*
|
2791 |
|
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
2792 |
|
|
* @param {*} [options] Override http request option.
|
2793 |
|
|
* @throws {RequiredError}
|
2794 |
|
|
*/
|
2795 |
|
|
categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> {
|
2796 |
|
|
return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath));
|
2797 |
|
|
},
|
2798 |
|
|
/**
|
2799 |
|
|
*
|
2800 |
|
|
* @param {string} categoryId
|
2801 |
|
|
* @param {*} [options] Override http request option.
|
2802 |
|
|
* @throws {RequiredError}
|
2803 |
|
|
*/
|
2804 |
|
|
categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> {
|
2805 |
|
|
return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath));
|
2806 |
|
|
},
|
2807 |
|
|
/**
|
2808 |
|
|
*
|
2809 |
|
|
* @param {string} categoryId
|
2810 |
|
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
2811 |
|
|
* @param {*} [options] Override http request option.
|
2812 |
|
|
* @throws {RequiredError}
|
2813 |
|
|
*/
|
2814 |
|
|
categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> {
|
2815 |
|
|
return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath));
|
2816 |
|
|
},
|
2817 |
|
|
/**
|
2818 |
|
|
*
|
2819 |
|
|
* @param {string} subtagId
|
2820 |
|
|
* @param {*} [options] Override http request option.
|
2821 |
|
|
* @throws {RequiredError}
|
2822 |
|
|
*/
|
2823 |
|
|
subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> {
|
2824 |
|
|
return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath));
|
2825 |
|
|
},
|
2826 |
|
|
/**
|
2827 |
|
|
*
|
2828 |
|
|
* @param {string} subtagId
|
2829 |
|
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
2830 |
|
|
* @param {*} [options] Override http request option.
|
2831 |
|
|
* @throws {RequiredError}
|
2832 |
|
|
*/
|
2833 |
|
|
subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> {
|
2834 |
|
|
return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath));
|
2835 |
|
|
},
|
2836 |
|
|
/**
|
2837 |
|
|
*
|
2838 |
|
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
2839 |
|
|
* @param {*} [options] Override http request option.
|
2840 |
|
|
* @throws {RequiredError}
|
2841 |
|
|
*/
|
2842 |
|
|
subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> {
|
2843 |
|
|
return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath));
|
2844 |
|
|
},
|
2845 |
|
|
/**
|
2846 |
|
|
*
|
2847 |
|
|
* @param {string} tagId
|
2848 |
|
|
* @param {*} [options] Override http request option.
|
2849 |
|
|
* @throws {RequiredError}
|
2850 |
|
|
*/
|
2851 |
|
|
tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> {
|
2852 |
|
|
return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath));
|
2853 |
|
|
},
|
2854 |
|
|
/**
|
2855 |
|
|
*
|
2856 |
|
|
* @param {string} tagId
|
2857 |
|
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
2858 |
|
|
* @param {*} [options] Override http request option.
|
2859 |
|
|
* @throws {RequiredError}
|
2860 |
|
|
*/
|
2861 |
|
|
tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> {
|
2862 |
|
|
return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath));
|
2863 |
|
|
},
|
2864 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
2865 |
19b68a2e
|
Lukáš Vlček
|
*
|
2866 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2867 |
|
|
* @throws {RequiredError}
|
2868 |
|
|
*/
|
2869 |
|
|
tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
|
2870 |
19b68a2e
|
Lukáš Vlček
|
return localVarFp.tagsGet(options).then((request) => request(axios, basePath));
|
2871 |
3e6b15a7
|
Lukáš Vlček
|
},
|
2872 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
2873 |
|
|
*
|
2874 |
|
|
* @param {CreateTagRequest} [createTagRequest]
|
2875 |
|
|
* @param {*} [options] Override http request option.
|
2876 |
|
|
* @throws {RequiredError}
|
2877 |
|
|
*/
|
2878 |
|
|
tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> {
|
2879 |
|
|
return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath));
|
2880 |
|
|
},
|
2881 |
3e6b15a7
|
Lukáš Vlček
|
};
|
2882 |
|
|
};
|
2883 |
|
|
|
2884 |
|
|
/**
|
2885 |
|
|
* TagApi - object-oriented interface
|
2886 |
|
|
* @export
|
2887 |
|
|
* @class TagApi
|
2888 |
|
|
* @extends {BaseAPI}
|
2889 |
|
|
*/
|
2890 |
|
|
export class TagApi extends BaseAPI {
|
2891 |
cca0bfa0
|
Lukáš Vlček
|
/**
|
2892 |
|
|
*
|
2893 |
|
|
* @param {CreateCategoryRequest} [createCategoryRequest]
|
2894 |
|
|
* @param {*} [options] Override http request option.
|
2895 |
|
|
* @throws {RequiredError}
|
2896 |
|
|
* @memberof TagApi
|
2897 |
|
|
*/
|
2898 |
|
|
public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) {
|
2899 |
|
|
return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath));
|
2900 |
|
|
}
|
2901 |
|
|
|
2902 |
|
|
/**
|
2903 |
|
|
*
|
2904 |
|
|
* @param {string} categoryId
|
2905 |
|
|
* @param {*} [options] Override http request option.
|
2906 |
|
|
* @throws {RequiredError}
|
2907 |
|
|
* @memberof TagApi
|
2908 |
|
|
*/
|
2909 |
|
|
public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) {
|
2910 |
|
|
return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath));
|
2911 |
|
|
}
|
2912 |
|
|
|
2913 |
|
|
/**
|
2914 |
|
|
*
|
2915 |
|
|
* @param {string} categoryId
|
2916 |
|
|
* @param {ModifyCategoryRequest} [modifyCategoryRequest]
|
2917 |
|
|
* @param {*} [options] Override http request option.
|
2918 |
|
|
* @throws {RequiredError}
|
2919 |
|
|
* @memberof TagApi
|
2920 |
|
|
*/
|
2921 |
|
|
public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) {
|
2922 |
|
|
return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath));
|
2923 |
|
|
}
|
2924 |
|
|
|
2925 |
|
|
/**
|
2926 |
|
|
*
|
2927 |
|
|
* @param {string} subtagId
|
2928 |
|
|
* @param {*} [options] Override http request option.
|
2929 |
|
|
* @throws {RequiredError}
|
2930 |
|
|
* @memberof TagApi
|
2931 |
|
|
*/
|
2932 |
|
|
public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) {
|
2933 |
|
|
return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath));
|
2934 |
|
|
}
|
2935 |
|
|
|
2936 |
|
|
/**
|
2937 |
|
|
*
|
2938 |
|
|
* @param {string} subtagId
|
2939 |
|
|
* @param {ModifySubTagRequest} [modifySubTagRequest]
|
2940 |
|
|
* @param {*} [options] Override http request option.
|
2941 |
|
|
* @throws {RequiredError}
|
2942 |
|
|
* @memberof TagApi
|
2943 |
|
|
*/
|
2944 |
|
|
public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) {
|
2945 |
|
|
return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath));
|
2946 |
|
|
}
|
2947 |
|
|
|
2948 |
|
|
/**
|
2949 |
|
|
*
|
2950 |
|
|
* @param {CreateSubTagRequest} [createSubTagRequest]
|
2951 |
|
|
* @param {*} [options] Override http request option.
|
2952 |
|
|
* @throws {RequiredError}
|
2953 |
|
|
* @memberof TagApi
|
2954 |
|
|
*/
|
2955 |
|
|
public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) {
|
2956 |
|
|
return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath));
|
2957 |
|
|
}
|
2958 |
|
|
|
2959 |
|
|
/**
|
2960 |
|
|
*
|
2961 |
|
|
* @param {string} tagId
|
2962 |
|
|
* @param {*} [options] Override http request option.
|
2963 |
|
|
* @throws {RequiredError}
|
2964 |
|
|
* @memberof TagApi
|
2965 |
|
|
*/
|
2966 |
|
|
public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) {
|
2967 |
|
|
return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath));
|
2968 |
|
|
}
|
2969 |
|
|
|
2970 |
|
|
/**
|
2971 |
|
|
*
|
2972 |
|
|
* @param {string} tagId
|
2973 |
|
|
* @param {ModifyTagRequest} [modifyTagRequest]
|
2974 |
|
|
* @param {*} [options] Override http request option.
|
2975 |
|
|
* @throws {RequiredError}
|
2976 |
|
|
* @memberof TagApi
|
2977 |
|
|
*/
|
2978 |
|
|
public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) {
|
2979 |
|
|
return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath));
|
2980 |
|
|
}
|
2981 |
|
|
|
2982 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
2983 |
19b68a2e
|
Lukáš Vlček
|
*
|
2984 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2985 |
|
|
* @throws {RequiredError}
|
2986 |
|
|
* @memberof TagApi
|
2987 |
|
|
*/
|
2988 |
|
|
public tagsGet(options?: AxiosRequestConfig) {
|
2989 |
19b68a2e
|
Lukáš Vlček
|
return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath));
|
2990 |
3e6b15a7
|
Lukáš Vlček
|
}
|
2991 |
cca0bfa0
|
Lukáš Vlček
|
|
2992 |
|
|
/**
|
2993 |
|
|
*
|
2994 |
|
|
* @param {CreateTagRequest} [createTagRequest]
|
2995 |
|
|
* @param {*} [options] Override http request option.
|
2996 |
|
|
* @throws {RequiredError}
|
2997 |
|
|
* @memberof TagApi
|
2998 |
|
|
*/
|
2999 |
|
|
public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
|
3000 |
|
|
return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath));
|
3001 |
|
|
}
|
3002 |
3e6b15a7
|
Lukáš Vlček
|
}
|
3003 |
|
|
|
3004 |
19b68a2e
|
Lukáš Vlček
|
|
3005 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
3006 |
|
|
* UserApi - axios parameter creator
|
3007 |
|
|
* @export
|
3008 |
|
|
*/
|
3009 |
|
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
3010 |
|
|
return {
|
3011 |
|
|
/**
|
3012 |
19b68a2e
|
Lukáš Vlček
|
*
|
3013 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3014 |
|
|
* @throws {RequiredError}
|
3015 |
|
|
*/
|
3016 |
19b68a2e
|
Lukáš Vlček
|
userAnnotationsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3017 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/user/annotations`;
|
3018 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3019 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3020 |
|
|
let baseOptions;
|
3021 |
|
|
if (configuration) {
|
3022 |
|
|
baseOptions = configuration.baseOptions;
|
3023 |
|
|
}
|
3024 |
|
|
|
3025 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
3026 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
3027 |
|
|
const localVarQueryParameter = {} as any;
|
3028 |
|
|
|
3029 |
19b68a2e
|
Lukáš Vlček
|
|
3030 |
|
|
|
3031 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3032 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3033 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3034 |
3e6b15a7
|
Lukáš Vlček
|
|
3035 |
|
|
return {
|
3036 |
|
|
url: toPathString(localVarUrlObj),
|
3037 |
|
|
options: localVarRequestOptions,
|
3038 |
|
|
};
|
3039 |
|
|
},
|
3040 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
3041 |
19b68a2e
|
Lukáš Vlček
|
*
|
3042 |
|
|
* @param {string} userId
|
3043 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3044 |
|
|
* @throws {RequiredError}
|
3045 |
|
|
*/
|
3046 |
19b68a2e
|
Lukáš Vlček
|
userUserIdAnnotationsGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3047 |
43d49a98
|
Jaroslav Hrubý
|
// verify required parameter 'userId' is not null or undefined
|
3048 |
19b68a2e
|
Lukáš Vlček
|
assertParamExists('userUserIdAnnotationsGet', 'userId', userId)
|
3049 |
|
|
const localVarPath = `/user/{userId}/annotations`
|
3050 |
|
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
3051 |
43d49a98
|
Jaroslav Hrubý
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3052 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3053 |
|
|
let baseOptions;
|
3054 |
|
|
if (configuration) {
|
3055 |
|
|
baseOptions = configuration.baseOptions;
|
3056 |
|
|
}
|
3057 |
|
|
|
3058 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
3059 |
43d49a98
|
Jaroslav Hrubý
|
const localVarHeaderParameter = {} as any;
|
3060 |
|
|
const localVarQueryParameter = {} as any;
|
3061 |
|
|
|
3062 |
19b68a2e
|
Lukáš Vlček
|
|
3063 |
|
|
|
3064 |
43d49a98
|
Jaroslav Hrubý
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3065 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3066 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3067 |
43d49a98
|
Jaroslav Hrubý
|
|
3068 |
|
|
return {
|
3069 |
|
|
url: toPathString(localVarUrlObj),
|
3070 |
|
|
options: localVarRequestOptions,
|
3071 |
|
|
};
|
3072 |
|
|
},
|
3073 |
|
|
/**
|
3074 |
19b68a2e
|
Lukáš Vlček
|
*
|
3075 |
|
|
* @param {string} userId
|
3076 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3077 |
|
|
* @throws {RequiredError}
|
3078 |
|
|
*/
|
3079 |
19b68a2e
|
Lukáš Vlček
|
userUserIdDelete: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3080 |
43d49a98
|
Jaroslav Hrubý
|
// verify required parameter 'userId' is not null or undefined
|
3081 |
19b68a2e
|
Lukáš Vlček
|
assertParamExists('userUserIdDelete', 'userId', userId)
|
3082 |
|
|
const localVarPath = `/user/{userId}`
|
3083 |
|
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
3084 |
43d49a98
|
Jaroslav Hrubý
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3085 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3086 |
|
|
let baseOptions;
|
3087 |
|
|
if (configuration) {
|
3088 |
|
|
baseOptions = configuration.baseOptions;
|
3089 |
|
|
}
|
3090 |
|
|
|
3091 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
3092 |
43d49a98
|
Jaroslav Hrubý
|
const localVarHeaderParameter = {} as any;
|
3093 |
|
|
const localVarQueryParameter = {} as any;
|
3094 |
|
|
|
3095 |
19b68a2e
|
Lukáš Vlček
|
|
3096 |
|
|
|
3097 |
43d49a98
|
Jaroslav Hrubý
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3098 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3099 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3100 |
43d49a98
|
Jaroslav Hrubý
|
|
3101 |
|
|
return {
|
3102 |
|
|
url: toPathString(localVarUrlObj),
|
3103 |
|
|
options: localVarRequestOptions,
|
3104 |
|
|
};
|
3105 |
|
|
},
|
3106 |
|
|
/**
|
3107 |
19b68a2e
|
Lukáš Vlček
|
*
|
3108 |
|
|
* @param {string} userId
|
3109 |
|
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
3110 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3111 |
|
|
* @throws {RequiredError}
|
3112 |
|
|
*/
|
3113 |
19b68a2e
|
Lukáš Vlček
|
userUserIdPut: async (userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3114 |
43d49a98
|
Jaroslav Hrubý
|
// verify required parameter 'userId' is not null or undefined
|
3115 |
19b68a2e
|
Lukáš Vlček
|
assertParamExists('userUserIdPut', 'userId', userId)
|
3116 |
|
|
const localVarPath = `/user/{userId}`
|
3117 |
|
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
3118 |
43d49a98
|
Jaroslav Hrubý
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3119 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3120 |
|
|
let baseOptions;
|
3121 |
|
|
if (configuration) {
|
3122 |
|
|
baseOptions = configuration.baseOptions;
|
3123 |
|
|
}
|
3124 |
|
|
|
3125 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
3126 |
43d49a98
|
Jaroslav Hrubý
|
const localVarHeaderParameter = {} as any;
|
3127 |
|
|
const localVarQueryParameter = {} as any;
|
3128 |
|
|
|
3129 |
19b68a2e
|
Lukáš Vlček
|
|
3130 |
|
|
|
3131 |
43d49a98
|
Jaroslav Hrubý
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3132 |
|
|
|
3133 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3134 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3135 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3136 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(changeUserInfoRequest, localVarRequestOptions, configuration)
|
3137 |
43d49a98
|
Jaroslav Hrubý
|
|
3138 |
|
|
return {
|
3139 |
|
|
url: toPathString(localVarUrlObj),
|
3140 |
|
|
options: localVarRequestOptions,
|
3141 |
|
|
};
|
3142 |
|
|
},
|
3143 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
3144 |
19b68a2e
|
Lukáš Vlček
|
*
|
3145 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3146 |
|
|
* @throws {RequiredError}
|
3147 |
|
|
*/
|
3148 |
|
|
usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3149 |
|
|
const localVarPath = `/users`;
|
3150 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3151 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3152 |
|
|
let baseOptions;
|
3153 |
|
|
if (configuration) {
|
3154 |
|
|
baseOptions = configuration.baseOptions;
|
3155 |
|
|
}
|
3156 |
|
|
|
3157 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
3158 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
3159 |
|
|
const localVarQueryParameter = {} as any;
|
3160 |
|
|
|
3161 |
19b68a2e
|
Lukáš Vlček
|
|
3162 |
|
|
|
3163 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3164 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3165 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3166 |
3e6b15a7
|
Lukáš Vlček
|
|
3167 |
43d49a98
|
Jaroslav Hrubý
|
return {
|
3168 |
|
|
url: toPathString(localVarUrlObj),
|
3169 |
|
|
options: localVarRequestOptions,
|
3170 |
|
|
};
|
3171 |
|
|
},
|
3172 |
|
|
/**
|
3173 |
19b68a2e
|
Lukáš Vlček
|
*
|
3174 |
|
|
* @param {CreateUserRequest} [createUserRequest]
|
3175 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3176 |
|
|
* @throws {RequiredError}
|
3177 |
|
|
*/
|
3178 |
19b68a2e
|
Lukáš Vlček
|
usersPost: async (createUserRequest?: CreateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
3179 |
43d49a98
|
Jaroslav Hrubý
|
const localVarPath = `/users`;
|
3180 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3181 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
3182 |
|
|
let baseOptions;
|
3183 |
|
|
if (configuration) {
|
3184 |
|
|
baseOptions = configuration.baseOptions;
|
3185 |
|
|
}
|
3186 |
|
|
|
3187 |
19b68a2e
|
Lukáš Vlček
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
3188 |
43d49a98
|
Jaroslav Hrubý
|
const localVarHeaderParameter = {} as any;
|
3189 |
|
|
const localVarQueryParameter = {} as any;
|
3190 |
|
|
|
3191 |
19b68a2e
|
Lukáš Vlček
|
|
3192 |
|
|
|
3193 |
43d49a98
|
Jaroslav Hrubý
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3194 |
|
|
|
3195 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3196 |
19b68a2e
|
Lukáš Vlček
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3197 |
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
3198 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(createUserRequest, localVarRequestOptions, configuration)
|
3199 |
43d49a98
|
Jaroslav Hrubý
|
|
3200 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
3201 |
|
|
url: toPathString(localVarUrlObj),
|
3202 |
|
|
options: localVarRequestOptions,
|
3203 |
|
|
};
|
3204 |
|
|
},
|
3205 |
19b68a2e
|
Lukáš Vlček
|
}
|
3206 |
3e6b15a7
|
Lukáš Vlček
|
};
|
3207 |
|
|
|
3208 |
|
|
/**
|
3209 |
|
|
* UserApi - functional programming interface
|
3210 |
|
|
* @export
|
3211 |
|
|
*/
|
3212 |
19b68a2e
|
Lukáš Vlček
|
export const UserApiFp = function(configuration?: Configuration) {
|
3213 |
|
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
3214 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
3215 |
|
|
/**
|
3216 |
19b68a2e
|
Lukáš Vlček
|
*
|
3217 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3218 |
|
|
* @throws {RequiredError}
|
3219 |
|
|
*/
|
3220 |
19b68a2e
|
Lukáš Vlček
|
async userAnnotationsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
|
3221 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(options);
|
3222 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3223 |
3e6b15a7
|
Lukáš Vlček
|
},
|
3224 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
3225 |
19b68a2e
|
Lukáš Vlček
|
*
|
3226 |
|
|
* @param {string} userId
|
3227 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3228 |
|
|
* @throws {RequiredError}
|
3229 |
|
|
*/
|
3230 |
19b68a2e
|
Lukáš Vlček
|
async userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationListResponse>> {
|
3231 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdAnnotationsGet(userId, options);
|
3232 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3233 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3234 |
|
|
/**
|
3235 |
19b68a2e
|
Lukáš Vlček
|
*
|
3236 |
|
|
* @param {string} userId
|
3237 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3238 |
|
|
* @throws {RequiredError}
|
3239 |
|
|
*/
|
3240 |
19b68a2e
|
Lukáš Vlček
|
async userUserIdDelete(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3241 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdDelete(userId, options);
|
3242 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3243 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3244 |
|
|
/**
|
3245 |
19b68a2e
|
Lukáš Vlček
|
*
|
3246 |
|
|
* @param {string} userId
|
3247 |
|
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
3248 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3249 |
|
|
* @throws {RequiredError}
|
3250 |
|
|
*/
|
3251 |
19b68a2e
|
Lukáš Vlček
|
async userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3252 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userUserIdPut(userId, changeUserInfoRequest, options);
|
3253 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3254 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3255 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
3256 |
19b68a2e
|
Lukáš Vlček
|
*
|
3257 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3258 |
|
|
* @throws {RequiredError}
|
3259 |
|
|
*/
|
3260 |
19b68a2e
|
Lukáš Vlček
|
async usersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
|
3261 |
3e6b15a7
|
Lukáš Vlček
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
|
3262 |
19b68a2e
|
Lukáš Vlček
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3263 |
3e6b15a7
|
Lukáš Vlček
|
},
|
3264 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
3265 |
19b68a2e
|
Lukáš Vlček
|
*
|
3266 |
|
|
* @param {CreateUserRequest} [createUserRequest]
|
3267 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3268 |
|
|
* @throws {RequiredError}
|
3269 |
|
|
*/
|
3270 |
19b68a2e
|
Lukáš Vlček
|
async usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
3271 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersPost(createUserRequest, options);
|
3272 |
|
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3273 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3274 |
19b68a2e
|
Lukáš Vlček
|
}
|
3275 |
3e6b15a7
|
Lukáš Vlček
|
};
|
3276 |
|
|
|
3277 |
|
|
/**
|
3278 |
|
|
* UserApi - factory interface
|
3279 |
|
|
* @export
|
3280 |
|
|
*/
|
3281 |
19b68a2e
|
Lukáš Vlček
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
3282 |
|
|
const localVarFp = UserApiFp(configuration)
|
3283 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
3284 |
|
|
/**
|
3285 |
19b68a2e
|
Lukáš Vlček
|
*
|
3286 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3287 |
|
|
* @throws {RequiredError}
|
3288 |
|
|
*/
|
3289 |
|
|
userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
|
3290 |
19b68a2e
|
Lukáš Vlček
|
return localVarFp.userAnnotationsGet(options).then((request) => request(axios, basePath));
|
3291 |
3e6b15a7
|
Lukáš Vlček
|
},
|
3292 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
3293 |
19b68a2e
|
Lukáš Vlček
|
*
|
3294 |
|
|
* @param {string} userId
|
3295 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3296 |
|
|
* @throws {RequiredError}
|
3297 |
|
|
*/
|
3298 |
19b68a2e
|
Lukáš Vlček
|
userUserIdAnnotationsGet(userId: string, options?: any): AxiosPromise<AnnotationListResponse> {
|
3299 |
|
|
return localVarFp.userUserIdAnnotationsGet(userId, options).then((request) => request(axios, basePath));
|
3300 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3301 |
|
|
/**
|
3302 |
19b68a2e
|
Lukáš Vlček
|
*
|
3303 |
|
|
* @param {string} userId
|
3304 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3305 |
|
|
* @throws {RequiredError}
|
3306 |
|
|
*/
|
3307 |
|
|
userUserIdDelete(userId: string, options?: any): AxiosPromise<void> {
|
3308 |
19b68a2e
|
Lukáš Vlček
|
return localVarFp.userUserIdDelete(userId, options).then((request) => request(axios, basePath));
|
3309 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3310 |
|
|
/**
|
3311 |
19b68a2e
|
Lukáš Vlček
|
*
|
3312 |
|
|
* @param {string} userId
|
3313 |
|
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
3314 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3315 |
|
|
* @throws {RequiredError}
|
3316 |
|
|
*/
|
3317 |
19b68a2e
|
Lukáš Vlček
|
userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: any): AxiosPromise<void> {
|
3318 |
|
|
return localVarFp.userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(axios, basePath));
|
3319 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3320 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
3321 |
19b68a2e
|
Lukáš Vlček
|
*
|
3322 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3323 |
|
|
* @throws {RequiredError}
|
3324 |
|
|
*/
|
3325 |
|
|
usersGet(options?: any): AxiosPromise<UserList> {
|
3326 |
19b68a2e
|
Lukáš Vlček
|
return localVarFp.usersGet(options).then((request) => request(axios, basePath));
|
3327 |
3e6b15a7
|
Lukáš Vlček
|
},
|
3328 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
3329 |
19b68a2e
|
Lukáš Vlček
|
*
|
3330 |
|
|
* @param {CreateUserRequest} [createUserRequest]
|
3331 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3332 |
|
|
* @throws {RequiredError}
|
3333 |
|
|
*/
|
3334 |
19b68a2e
|
Lukáš Vlček
|
usersPost(createUserRequest?: CreateUserRequest, options?: any): AxiosPromise<void> {
|
3335 |
|
|
return localVarFp.usersPost(createUserRequest, options).then((request) => request(axios, basePath));
|
3336 |
43d49a98
|
Jaroslav Hrubý
|
},
|
3337 |
3e6b15a7
|
Lukáš Vlček
|
};
|
3338 |
|
|
};
|
3339 |
|
|
|
3340 |
|
|
/**
|
3341 |
|
|
* UserApi - object-oriented interface
|
3342 |
|
|
* @export
|
3343 |
|
|
* @class UserApi
|
3344 |
|
|
* @extends {BaseAPI}
|
3345 |
|
|
*/
|
3346 |
|
|
export class UserApi extends BaseAPI {
|
3347 |
|
|
/**
|
3348 |
19b68a2e
|
Lukáš Vlček
|
*
|
3349 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3350 |
|
|
* @throws {RequiredError}
|
3351 |
|
|
* @memberof UserApi
|
3352 |
|
|
*/
|
3353 |
|
|
public userAnnotationsGet(options?: AxiosRequestConfig) {
|
3354 |
19b68a2e
|
Lukáš Vlček
|
return UserApiFp(this.configuration).userAnnotationsGet(options).then((request) => request(this.axios, this.basePath));
|
3355 |
3e6b15a7
|
Lukáš Vlček
|
}
|
3356 |
|
|
|
3357 |
43d49a98
|
Jaroslav Hrubý
|
/**
|
3358 |
19b68a2e
|
Lukáš Vlček
|
*
|
3359 |
|
|
* @param {string} userId
|
3360 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3361 |
|
|
* @throws {RequiredError}
|
3362 |
|
|
* @memberof UserApi
|
3363 |
|
|
*/
|
3364 |
|
|
public userUserIdAnnotationsGet(userId: string, options?: AxiosRequestConfig) {
|
3365 |
19b68a2e
|
Lukáš Vlček
|
return UserApiFp(this.configuration).userUserIdAnnotationsGet(userId, options).then((request) => request(this.axios, this.basePath));
|
3366 |
43d49a98
|
Jaroslav Hrubý
|
}
|
3367 |
|
|
|
3368 |
|
|
/**
|
3369 |
19b68a2e
|
Lukáš Vlček
|
*
|
3370 |
|
|
* @param {string} userId
|
3371 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3372 |
|
|
* @throws {RequiredError}
|
3373 |
|
|
* @memberof UserApi
|
3374 |
|
|
*/
|
3375 |
|
|
public userUserIdDelete(userId: string, options?: AxiosRequestConfig) {
|
3376 |
19b68a2e
|
Lukáš Vlček
|
return UserApiFp(this.configuration).userUserIdDelete(userId, options).then((request) => request(this.axios, this.basePath));
|
3377 |
43d49a98
|
Jaroslav Hrubý
|
}
|
3378 |
|
|
|
3379 |
|
|
/**
|
3380 |
19b68a2e
|
Lukáš Vlček
|
*
|
3381 |
|
|
* @param {string} userId
|
3382 |
|
|
* @param {ChangeUserInfoRequest} [changeUserInfoRequest]
|
3383 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3384 |
|
|
* @throws {RequiredError}
|
3385 |
|
|
* @memberof UserApi
|
3386 |
|
|
*/
|
3387 |
19b68a2e
|
Lukáš Vlček
|
public userUserIdPut(userId: string, changeUserInfoRequest?: ChangeUserInfoRequest, options?: AxiosRequestConfig) {
|
3388 |
|
|
return UserApiFp(this.configuration).userUserIdPut(userId, changeUserInfoRequest, options).then((request) => request(this.axios, this.basePath));
|
3389 |
43d49a98
|
Jaroslav Hrubý
|
}
|
3390 |
|
|
|
3391 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
3392 |
19b68a2e
|
Lukáš Vlček
|
*
|
3393 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
3394 |
|
|
* @throws {RequiredError}
|
3395 |
|
|
* @memberof UserApi
|
3396 |
|
|
*/
|
3397 |
|
|
public usersGet(options?: AxiosRequestConfig) {
|
3398 |
19b68a2e
|
Lukáš Vlček
|
return UserApiFp(this.configuration).usersGet(options).then((request) => request(this.axios, this.basePath));
|
3399 |
3e6b15a7
|
Lukáš Vlček
|
}
|
3400 |
43d49a98
|
Jaroslav Hrubý
|
|
3401 |
|
|
/**
|
3402 |
19b68a2e
|
Lukáš Vlček
|
*
|
3403 |
|
|
* @param {CreateUserRequest} [createUserRequest]
|
3404 |
43d49a98
|
Jaroslav Hrubý
|
* @param {*} [options] Override http request option.
|
3405 |
|
|
* @throws {RequiredError}
|
3406 |
|
|
* @memberof UserApi
|
3407 |
|
|
*/
|
3408 |
19b68a2e
|
Lukáš Vlček
|
public usersPost(createUserRequest?: CreateUserRequest, options?: AxiosRequestConfig) {
|
3409 |
|
|
return UserApiFp(this.configuration).usersPost(createUserRequest, options).then((request) => request(this.axios, this.basePath));
|
3410 |
43d49a98
|
Jaroslav Hrubý
|
}
|
3411 |
3e6b15a7
|
Lukáš Vlček
|
}
|
3412 |
19b68a2e
|
Lukáš Vlček
|
|