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 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
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 |
|
|
import { Configuration } from './configuration';
|
16 |
|
|
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
17 |
|
|
// Some imports not used depending on template conditions
|
18 |
|
|
// @ts-ignore
|
19 |
9bfa1e39
|
Jaroslav Hrubý
|
import {
|
20 |
|
|
DUMMY_BASE_URL,
|
21 |
|
|
assertParamExists,
|
22 |
|
|
setApiKeyToObject,
|
23 |
|
|
setBasicAuthToObject,
|
24 |
|
|
setBearerAuthToObject,
|
25 |
|
|
setOAuthToObject,
|
26 |
|
|
setSearchParams,
|
27 |
|
|
serializeDataIfNeeded,
|
28 |
|
|
toPathString,
|
29 |
|
|
createRequestFunction,
|
30 |
|
|
} from './common';
|
31 |
3e6b15a7
|
Lukáš Vlček
|
// @ts-ignore
|
32 |
9bfa1e39
|
Jaroslav Hrubý
|
import {
|
33 |
|
|
BASE_PATH,
|
34 |
|
|
COLLECTION_FORMATS,
|
35 |
|
|
RequestArgs,
|
36 |
|
|
BaseAPI,
|
37 |
|
|
RequiredError,
|
38 |
|
|
} from './base';
|
39 |
3e6b15a7
|
Lukáš Vlček
|
|
40 |
|
|
/**
|
41 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
42 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
43 |
|
|
* @interface AnnotationInfo
|
44 |
|
|
*/
|
45 |
|
|
export interface AnnotationInfo {
|
46 |
|
|
/**
|
47 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
48 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
49 |
|
|
* @memberof AnnotationInfo
|
50 |
|
|
*/
|
51 |
9bfa1e39
|
Jaroslav Hrubý
|
sourceDocumentContent?: string | null;
|
52 |
b5f60842
|
Lukáš Vlček
|
/**
|
53 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
54 |
b5f60842
|
Lukáš Vlček
|
* @type {string}
|
55 |
|
|
* @memberof AnnotationInfo
|
56 |
|
|
*/
|
57 |
9bfa1e39
|
Jaroslav Hrubý
|
documentToRender?: string | null;
|
58 |
b5f60842
|
Lukáš Vlček
|
/**
|
59 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
60 |
b5f60842
|
Lukáš Vlček
|
* @type {Array<number>}
|
61 |
|
|
* @memberof AnnotationInfo
|
62 |
|
|
*/
|
63 |
9bfa1e39
|
Jaroslav Hrubý
|
tagStartPositions?: Array<number> | null;
|
64 |
b5f60842
|
Lukáš Vlček
|
/**
|
65 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
66 |
b5f60842
|
Lukáš Vlček
|
* @type {Array<number>}
|
67 |
|
|
* @memberof AnnotationInfo
|
68 |
|
|
*/
|
69 |
9bfa1e39
|
Jaroslav Hrubý
|
tagLengths?: Array<number> | null;
|
70 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
71 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
72 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EState}
|
73 |
|
|
* @memberof AnnotationInfo
|
74 |
|
|
*/
|
75 |
9bfa1e39
|
Jaroslav Hrubý
|
state?: EState;
|
76 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
77 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
78 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EDocumentType}
|
79 |
|
|
* @memberof AnnotationInfo
|
80 |
|
|
*/
|
81 |
9bfa1e39
|
Jaroslav Hrubý
|
type?: EDocumentType;
|
82 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
83 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
84 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
85 |
|
|
* @memberof AnnotationInfo
|
86 |
|
|
*/
|
87 |
9bfa1e39
|
Jaroslav Hrubý
|
note?: string | null;
|
88 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
89 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
90 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<TagInstanceInfo>}
|
91 |
|
|
* @memberof AnnotationInfo
|
92 |
|
|
*/
|
93 |
9bfa1e39
|
Jaroslav Hrubý
|
tagInstances?: Array<TagInstanceInfo> | null;
|
94 |
3e6b15a7
|
Lukáš Vlček
|
}
|
95 |
4bc99591
|
Lukáš Vlček
|
/**
|
96 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
97 |
4bc99591
|
Lukáš Vlček
|
* @export
|
98 |
|
|
* @interface AnnotationInstanceAddRequest
|
99 |
|
|
*/
|
100 |
|
|
export interface AnnotationInstanceAddRequest {
|
101 |
|
|
/**
|
102 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
103 |
4bc99591
|
Lukáš Vlček
|
* @type {number}
|
104 |
|
|
* @memberof AnnotationInstanceAddRequest
|
105 |
|
|
*/
|
106 |
9bfa1e39
|
Jaroslav Hrubý
|
position?: number;
|
107 |
4bc99591
|
Lukáš Vlček
|
/**
|
108 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
109 |
4bc99591
|
Lukáš Vlček
|
* @type {number}
|
110 |
|
|
* @memberof AnnotationInstanceAddRequest
|
111 |
|
|
*/
|
112 |
9bfa1e39
|
Jaroslav Hrubý
|
length?: number;
|
113 |
4bc99591
|
Lukáš Vlček
|
/**
|
114 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
115 |
4bc99591
|
Lukáš Vlček
|
* @type {ETagType}
|
116 |
|
|
* @memberof AnnotationInstanceAddRequest
|
117 |
|
|
*/
|
118 |
9bfa1e39
|
Jaroslav Hrubý
|
type?: ETagType;
|
119 |
4bc99591
|
Lukáš Vlček
|
/**
|
120 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
121 |
4bc99591
|
Lukáš Vlček
|
* @type {string}
|
122 |
|
|
* @memberof AnnotationInstanceAddRequest
|
123 |
|
|
*/
|
124 |
9bfa1e39
|
Jaroslav Hrubý
|
id?: string;
|
125 |
4bc99591
|
Lukáš Vlček
|
/**
|
126 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
127 |
4bc99591
|
Lukáš Vlček
|
* @type {string}
|
128 |
|
|
* @memberof AnnotationInstanceAddRequest
|
129 |
|
|
*/
|
130 |
9bfa1e39
|
Jaroslav Hrubý
|
instanceId?: string | null;
|
131 |
4bc99591
|
Lukáš Vlček
|
}
|
132 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
133 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
134 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
135 |
|
|
* @interface AnnotationListInfo
|
136 |
|
|
*/
|
137 |
|
|
export interface AnnotationListInfo {
|
138 |
|
|
/**
|
139 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
140 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
141 |
|
|
* @memberof AnnotationListInfo
|
142 |
|
|
*/
|
143 |
9bfa1e39
|
Jaroslav Hrubý
|
documentName?: string | null;
|
144 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
145 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
146 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EState}
|
147 |
|
|
* @memberof AnnotationListInfo
|
148 |
|
|
*/
|
149 |
9bfa1e39
|
Jaroslav Hrubý
|
state?: EState;
|
150 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
151 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
152 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
153 |
|
|
* @memberof AnnotationListInfo
|
154 |
|
|
*/
|
155 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationId?: string;
|
156 |
3e6b15a7
|
Lukáš Vlček
|
}
|
157 |
|
|
/**
|
158 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
159 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
160 |
|
|
* @interface AnnotationListResponse
|
161 |
|
|
*/
|
162 |
|
|
export interface AnnotationListResponse {
|
163 |
|
|
/**
|
164 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
165 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<AnnotationListInfo>}
|
166 |
|
|
* @memberof AnnotationListResponse
|
167 |
|
|
*/
|
168 |
9bfa1e39
|
Jaroslav Hrubý
|
annotations?: Array<AnnotationListInfo> | null;
|
169 |
3e6b15a7
|
Lukáš Vlček
|
}
|
170 |
|
|
/**
|
171 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
172 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
173 |
|
|
* @interface AnnotationsAddRequest
|
174 |
|
|
*/
|
175 |
|
|
export interface AnnotationsAddRequest {
|
176 |
|
|
/**
|
177 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
178 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<string>}
|
179 |
|
|
* @memberof AnnotationsAddRequest
|
180 |
|
|
*/
|
181 |
9bfa1e39
|
Jaroslav Hrubý
|
userIdList?: Array<string> | null;
|
182 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
183 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
184 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<string>}
|
185 |
|
|
* @memberof AnnotationsAddRequest
|
186 |
|
|
*/
|
187 |
9bfa1e39
|
Jaroslav Hrubý
|
documentIdList?: Array<string> | null;
|
188 |
3e6b15a7
|
Lukáš Vlček
|
}
|
189 |
|
|
/**
|
190 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
191 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
192 |
|
|
* @interface ClientInfo
|
193 |
|
|
*/
|
194 |
|
|
export interface ClientInfo {
|
195 |
|
|
/**
|
196 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
197 |
3e6b15a7
|
Lukáš Vlček
|
* @type {boolean}
|
198 |
|
|
* @memberof ClientInfo
|
199 |
|
|
*/
|
200 |
9bfa1e39
|
Jaroslav Hrubý
|
isLogged?: boolean;
|
201 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
202 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
203 |
3e6b15a7
|
Lukáš Vlček
|
* @type {User}
|
204 |
|
|
* @memberof ClientInfo
|
205 |
|
|
*/
|
206 |
9bfa1e39
|
Jaroslav Hrubý
|
loggedUser?: User;
|
207 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
208 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
209 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
210 |
|
|
* @memberof ClientInfo
|
211 |
|
|
*/
|
212 |
9bfa1e39
|
Jaroslav Hrubý
|
ip?: string | null;
|
213 |
3e6b15a7
|
Lukáš Vlček
|
}
|
214 |
|
|
/**
|
215 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
216 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
217 |
|
|
* @interface DocumentAddInfo
|
218 |
|
|
*/
|
219 |
|
|
export interface DocumentAddInfo {
|
220 |
|
|
/**
|
221 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
222 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
223 |
|
|
* @memberof DocumentAddInfo
|
224 |
|
|
*/
|
225 |
9bfa1e39
|
Jaroslav Hrubý
|
name?: string | null;
|
226 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
227 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
228 |
3e6b15a7
|
Lukáš Vlček
|
* @type {EAddDocumentFormat}
|
229 |
|
|
* @memberof DocumentAddInfo
|
230 |
|
|
*/
|
231 |
9bfa1e39
|
Jaroslav Hrubý
|
format?: EAddDocumentFormat;
|
232 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
233 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
234 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
235 |
|
|
* @memberof DocumentAddInfo
|
236 |
|
|
*/
|
237 |
9bfa1e39
|
Jaroslav Hrubý
|
content?: string | null;
|
238 |
3e6b15a7
|
Lukáš Vlček
|
}
|
239 |
|
|
/**
|
240 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
241 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
242 |
|
|
* @interface DocumentAddRequest
|
243 |
|
|
*/
|
244 |
|
|
export interface DocumentAddRequest {
|
245 |
|
|
/**
|
246 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
247 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<DocumentAddInfo>}
|
248 |
|
|
* @memberof DocumentAddRequest
|
249 |
|
|
*/
|
250 |
9bfa1e39
|
Jaroslav Hrubý
|
documents?: Array<DocumentAddInfo> | null;
|
251 |
3e6b15a7
|
Lukáš Vlček
|
}
|
252 |
|
|
/**
|
253 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
254 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
255 |
|
|
* @interface DocumentListInfo
|
256 |
|
|
*/
|
257 |
|
|
export interface DocumentListInfo {
|
258 |
9bfa1e39
|
Jaroslav Hrubý
|
key?: string;
|
259 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
260 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
261 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
262 |
|
|
* @memberof DocumentListInfo
|
263 |
|
|
*/
|
264 |
9bfa1e39
|
Jaroslav Hrubý
|
id?: string;
|
265 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
266 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
267 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
268 |
|
|
* @memberof DocumentListInfo
|
269 |
|
|
*/
|
270 |
9bfa1e39
|
Jaroslav Hrubý
|
name?: string | null;
|
271 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
272 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
273 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
274 |
|
|
* @memberof DocumentListInfo
|
275 |
|
|
*/
|
276 |
9bfa1e39
|
Jaroslav Hrubý
|
length?: number;
|
277 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
278 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
279 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
280 |
|
|
* @memberof DocumentListInfo
|
281 |
|
|
*/
|
282 |
9bfa1e39
|
Jaroslav Hrubý
|
requiredAnnotations?: number;
|
283 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
284 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
285 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<UserInfo>}
|
286 |
|
|
* @memberof DocumentListInfo
|
287 |
|
|
*/
|
288 |
9bfa1e39
|
Jaroslav Hrubý
|
annotatingUsers?: Array<UserInfo> | null;
|
289 |
3e6b15a7
|
Lukáš Vlček
|
}
|
290 |
|
|
/**
|
291 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
292 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
293 |
|
|
* @interface DocumentListResponse
|
294 |
|
|
*/
|
295 |
|
|
export interface DocumentListResponse {
|
296 |
|
|
/**
|
297 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
298 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
299 |
|
|
* @memberof DocumentListResponse
|
300 |
|
|
*/
|
301 |
9bfa1e39
|
Jaroslav Hrubý
|
totalCount?: number;
|
302 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
303 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
304 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
305 |
|
|
* @memberof DocumentListResponse
|
306 |
|
|
*/
|
307 |
9bfa1e39
|
Jaroslav Hrubý
|
pageCount?: number;
|
308 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
309 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
310 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
311 |
|
|
* @memberof DocumentListResponse
|
312 |
|
|
*/
|
313 |
9bfa1e39
|
Jaroslav Hrubý
|
pageIndex?: number;
|
314 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
315 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
316 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<DocumentListInfo>}
|
317 |
|
|
* @memberof DocumentListResponse
|
318 |
|
|
*/
|
319 |
9bfa1e39
|
Jaroslav Hrubý
|
documents?: Array<DocumentListInfo> | null;
|
320 |
3e6b15a7
|
Lukáš Vlček
|
}
|
321 |
|
|
/**
|
322 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
323 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
324 |
|
|
* @enum {string}
|
325 |
|
|
*/
|
326 |
|
|
|
327 |
|
|
export const EAddDocumentFormat = {
|
328 |
|
|
Zip: 'ZIP',
|
329 |
9bfa1e39
|
Jaroslav Hrubý
|
Textfile: 'TEXTFILE',
|
330 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
331 |
|
|
|
332 |
9bfa1e39
|
Jaroslav Hrubý
|
export type EAddDocumentFormat =
|
333 |
|
|
typeof EAddDocumentFormat[keyof typeof EAddDocumentFormat];
|
334 |
3e6b15a7
|
Lukáš Vlček
|
|
335 |
|
|
/**
|
336 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
337 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
338 |
|
|
* @enum {string}
|
339 |
|
|
*/
|
340 |
|
|
|
341 |
|
|
export const EDocumentType = {
|
342 |
|
|
Html: 'HTML',
|
343 |
9bfa1e39
|
Jaroslav Hrubý
|
Text: 'TEXT',
|
344 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
345 |
|
|
|
346 |
|
|
export type EDocumentType = typeof EDocumentType[keyof typeof EDocumentType];
|
347 |
|
|
|
348 |
|
|
/**
|
349 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
350 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
351 |
|
|
* @enum {string}
|
352 |
|
|
*/
|
353 |
|
|
|
354 |
|
|
export const ERole = {
|
355 |
|
|
Annotator: 'ANNOTATOR',
|
356 |
9bfa1e39
|
Jaroslav Hrubý
|
Administrator: 'ADMINISTRATOR',
|
357 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
358 |
|
|
|
359 |
|
|
export type ERole = typeof ERole[keyof typeof ERole];
|
360 |
|
|
|
361 |
|
|
/**
|
362 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
363 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
364 |
|
|
* @enum {string}
|
365 |
|
|
*/
|
366 |
|
|
|
367 |
|
|
export const EState = {
|
368 |
|
|
Done: 'DONE',
|
369 |
|
|
InProgress: 'IN_PROGRESS',
|
370 |
9bfa1e39
|
Jaroslav Hrubý
|
New: 'NEW',
|
371 |
3e6b15a7
|
Lukáš Vlček
|
} as const;
|
372 |
|
|
|
373 |
|
|
export type EState = typeof EState[keyof typeof EState];
|
374 |
|
|
|
375 |
4bc99591
|
Lukáš Vlček
|
/**
|
376 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
377 |
4bc99591
|
Lukáš Vlček
|
* @export
|
378 |
|
|
* @enum {string}
|
379 |
|
|
*/
|
380 |
|
|
|
381 |
|
|
export const ETagType = {
|
382 |
|
|
Tag: 'TAG',
|
383 |
9bfa1e39
|
Jaroslav Hrubý
|
Subtag: 'SUBTAG',
|
384 |
4bc99591
|
Lukáš Vlček
|
} as const;
|
385 |
|
|
|
386 |
|
|
export type ETagType = typeof ETagType[keyof typeof ETagType];
|
387 |
|
|
|
388 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
389 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
390 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
391 |
|
|
* @interface LoginRequest
|
392 |
|
|
*/
|
393 |
|
|
export interface LoginRequest {
|
394 |
|
|
/**
|
395 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
396 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
397 |
|
|
* @memberof LoginRequest
|
398 |
|
|
*/
|
399 |
9bfa1e39
|
Jaroslav Hrubý
|
username?: string | null;
|
400 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
401 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
402 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
403 |
|
|
* @memberof LoginRequest
|
404 |
|
|
*/
|
405 |
9bfa1e39
|
Jaroslav Hrubý
|
password?: string | null;
|
406 |
3e6b15a7
|
Lukáš Vlček
|
}
|
407 |
|
|
/**
|
408 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
409 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
410 |
|
|
* @interface LoginResponse
|
411 |
|
|
*/
|
412 |
|
|
export interface LoginResponse {
|
413 |
|
|
/**
|
414 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
415 |
3e6b15a7
|
Lukáš Vlček
|
* @type {boolean}
|
416 |
|
|
* @memberof LoginResponse
|
417 |
|
|
*/
|
418 |
9bfa1e39
|
Jaroslav Hrubý
|
ok?: boolean;
|
419 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
420 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
421 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
422 |
|
|
* @memberof LoginResponse
|
423 |
|
|
*/
|
424 |
9bfa1e39
|
Jaroslav Hrubý
|
token?: string | null;
|
425 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
426 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
427 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
428 |
|
|
* @memberof LoginResponse
|
429 |
|
|
*/
|
430 |
9bfa1e39
|
Jaroslav Hrubý
|
expiration?: string;
|
431 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
432 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
433 |
3e6b15a7
|
Lukáš Vlček
|
* @type {ERole}
|
434 |
|
|
* @memberof LoginResponse
|
435 |
|
|
*/
|
436 |
9bfa1e39
|
Jaroslav Hrubý
|
role?: ERole;
|
437 |
3e6b15a7
|
Lukáš Vlček
|
}
|
438 |
|
|
/**
|
439 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
440 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
441 |
|
|
* @interface ProblemDetails
|
442 |
|
|
*/
|
443 |
|
|
export interface ProblemDetails {
|
444 |
|
|
[key: string]: any | any;
|
445 |
|
|
|
446 |
|
|
/**
|
447 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
448 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
449 |
|
|
* @memberof ProblemDetails
|
450 |
|
|
*/
|
451 |
9bfa1e39
|
Jaroslav Hrubý
|
type?: string | null;
|
452 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
453 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
454 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
455 |
|
|
* @memberof ProblemDetails
|
456 |
|
|
*/
|
457 |
9bfa1e39
|
Jaroslav Hrubý
|
title?: string | null;
|
458 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
459 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
460 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
461 |
|
|
* @memberof ProblemDetails
|
462 |
|
|
*/
|
463 |
9bfa1e39
|
Jaroslav Hrubý
|
status?: number | null;
|
464 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
465 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
466 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
467 |
|
|
* @memberof ProblemDetails
|
468 |
|
|
*/
|
469 |
9bfa1e39
|
Jaroslav Hrubý
|
detail?: string | null;
|
470 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
471 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
472 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
473 |
|
|
* @memberof ProblemDetails
|
474 |
|
|
*/
|
475 |
9bfa1e39
|
Jaroslav Hrubý
|
instance?: string | null;
|
476 |
3e6b15a7
|
Lukáš Vlček
|
}
|
477 |
|
|
/**
|
478 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
479 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
480 |
|
|
* @interface SubTagInfo
|
481 |
|
|
*/
|
482 |
|
|
export interface SubTagInfo {
|
483 |
|
|
/**
|
484 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
485 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
486 |
|
|
* @memberof SubTagInfo
|
487 |
|
|
*/
|
488 |
9bfa1e39
|
Jaroslav Hrubý
|
id?: string;
|
489 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
490 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
491 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
492 |
|
|
* @memberof SubTagInfo
|
493 |
|
|
*/
|
494 |
9bfa1e39
|
Jaroslav Hrubý
|
name?: string | null;
|
495 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
496 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
497 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
498 |
|
|
* @memberof SubTagInfo
|
499 |
|
|
*/
|
500 |
9bfa1e39
|
Jaroslav Hrubý
|
description?: string | null;
|
501 |
3e6b15a7
|
Lukáš Vlček
|
}
|
502 |
|
|
/**
|
503 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
504 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
505 |
|
|
* @interface TagCategoryInfo
|
506 |
|
|
*/
|
507 |
|
|
export interface TagCategoryInfo {
|
508 |
|
|
/**
|
509 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
510 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
511 |
|
|
* @memberof TagCategoryInfo
|
512 |
|
|
*/
|
513 |
9bfa1e39
|
Jaroslav Hrubý
|
id?: string;
|
514 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
515 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
516 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
517 |
|
|
* @memberof TagCategoryInfo
|
518 |
|
|
*/
|
519 |
9bfa1e39
|
Jaroslav Hrubý
|
name?: string | null;
|
520 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
521 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
522 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
523 |
|
|
* @memberof TagCategoryInfo
|
524 |
|
|
*/
|
525 |
9bfa1e39
|
Jaroslav Hrubý
|
description?: string | null;
|
526 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
527 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
528 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
529 |
|
|
* @memberof TagCategoryInfo
|
530 |
|
|
*/
|
531 |
9bfa1e39
|
Jaroslav Hrubý
|
color?: string | null;
|
532 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
533 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
534 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<TagInfo>}
|
535 |
|
|
* @memberof TagCategoryInfo
|
536 |
|
|
*/
|
537 |
9bfa1e39
|
Jaroslav Hrubý
|
tags?: Array<TagInfo> | null;
|
538 |
3e6b15a7
|
Lukáš Vlček
|
}
|
539 |
|
|
/**
|
540 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
541 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
542 |
|
|
* @interface TagInfo
|
543 |
|
|
*/
|
544 |
|
|
export interface TagInfo {
|
545 |
|
|
/**
|
546 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
547 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
548 |
|
|
* @memberof TagInfo
|
549 |
|
|
*/
|
550 |
9bfa1e39
|
Jaroslav Hrubý
|
id?: string;
|
551 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
552 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
553 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
554 |
|
|
* @memberof TagInfo
|
555 |
|
|
*/
|
556 |
9bfa1e39
|
Jaroslav Hrubý
|
name?: string | null;
|
557 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
558 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
559 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
560 |
|
|
* @memberof TagInfo
|
561 |
|
|
*/
|
562 |
9bfa1e39
|
Jaroslav Hrubý
|
description?: string | null;
|
563 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
564 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
565 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
566 |
|
|
* @memberof TagInfo
|
567 |
|
|
*/
|
568 |
9bfa1e39
|
Jaroslav Hrubý
|
color?: string | null;
|
569 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
570 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
571 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<SubTagInfo>}
|
572 |
|
|
* @memberof TagInfo
|
573 |
|
|
*/
|
574 |
9bfa1e39
|
Jaroslav Hrubý
|
subTags?: Array<SubTagInfo> | null;
|
575 |
3e6b15a7
|
Lukáš Vlček
|
}
|
576 |
|
|
/**
|
577 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
578 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
579 |
|
|
* @interface TagInstanceInfo
|
580 |
|
|
*/
|
581 |
|
|
export interface TagInstanceInfo {
|
582 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
583 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
584 |
9fdb7d55
|
Lukáš Vlček
|
* @type {string}
|
585 |
|
|
* @memberof TagInstanceInfo
|
586 |
|
|
*/
|
587 |
9bfa1e39
|
Jaroslav Hrubý
|
occurenceId?: string;
|
588 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
589 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
590 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
591 |
|
|
* @memberof TagInstanceInfo
|
592 |
|
|
*/
|
593 |
9bfa1e39
|
Jaroslav Hrubý
|
tagName?: string | null;
|
594 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
595 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
596 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
597 |
|
|
* @memberof TagInstanceInfo
|
598 |
|
|
*/
|
599 |
9bfa1e39
|
Jaroslav Hrubý
|
tagId?: string;
|
600 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
601 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
602 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
603 |
|
|
* @memberof TagInstanceInfo
|
604 |
|
|
*/
|
605 |
9bfa1e39
|
Jaroslav Hrubý
|
tagCategoryName?: string | null;
|
606 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
607 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
608 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
609 |
|
|
* @memberof TagInstanceInfo
|
610 |
|
|
*/
|
611 |
9bfa1e39
|
Jaroslav Hrubý
|
tagCategoryId?: string;
|
612 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
613 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
614 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
615 |
|
|
* @memberof TagInstanceInfo
|
616 |
|
|
*/
|
617 |
9bfa1e39
|
Jaroslav Hrubý
|
subTagName?: string | null;
|
618 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
619 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
620 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
621 |
|
|
* @memberof TagInstanceInfo
|
622 |
|
|
*/
|
623 |
9bfa1e39
|
Jaroslav Hrubý
|
subTagId?: string | null;
|
624 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
625 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
626 |
4bc99591
|
Lukáš Vlček
|
* @type {string}
|
627 |
3e6b15a7
|
Lukáš Vlček
|
* @memberof TagInstanceInfo
|
628 |
|
|
*/
|
629 |
9bfa1e39
|
Jaroslav Hrubý
|
instance?: string;
|
630 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
631 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
632 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
633 |
|
|
* @memberof TagInstanceInfo
|
634 |
|
|
*/
|
635 |
9bfa1e39
|
Jaroslav Hrubý
|
position?: number;
|
636 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
637 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
638 |
3e6b15a7
|
Lukáš Vlček
|
* @type {number}
|
639 |
|
|
* @memberof TagInstanceInfo
|
640 |
|
|
*/
|
641 |
9bfa1e39
|
Jaroslav Hrubý
|
length?: number;
|
642 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
643 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
644 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
645 |
|
|
* @memberof TagInstanceInfo
|
646 |
|
|
*/
|
647 |
9bfa1e39
|
Jaroslav Hrubý
|
note?: string | null;
|
648 |
3e6b15a7
|
Lukáš Vlček
|
}
|
649 |
|
|
/**
|
650 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
651 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
652 |
|
|
* @interface TagTreeResponse
|
653 |
|
|
*/
|
654 |
|
|
export interface TagTreeResponse {
|
655 |
|
|
/**
|
656 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
657 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<TagCategoryInfo>}
|
658 |
|
|
* @memberof TagTreeResponse
|
659 |
|
|
*/
|
660 |
9bfa1e39
|
Jaroslav Hrubý
|
tagCategories?: Array<TagCategoryInfo> | null;
|
661 |
3e6b15a7
|
Lukáš Vlček
|
}
|
662 |
|
|
/**
|
663 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
664 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
665 |
|
|
* @interface User
|
666 |
|
|
*/
|
667 |
|
|
export interface User {
|
668 |
|
|
/**
|
669 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
670 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
671 |
|
|
* @memberof User
|
672 |
|
|
*/
|
673 |
9bfa1e39
|
Jaroslav Hrubý
|
id?: string;
|
674 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
675 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
676 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
677 |
|
|
* @memberof User
|
678 |
|
|
*/
|
679 |
9bfa1e39
|
Jaroslav Hrubý
|
username?: string | null;
|
680 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
681 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
682 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
683 |
|
|
* @memberof User
|
684 |
|
|
*/
|
685 |
9bfa1e39
|
Jaroslav Hrubý
|
name?: string | null;
|
686 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
687 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
688 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
689 |
|
|
* @memberof User
|
690 |
|
|
*/
|
691 |
9bfa1e39
|
Jaroslav Hrubý
|
surname?: string | null;
|
692 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
693 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
694 |
3e6b15a7
|
Lukáš Vlček
|
* @type {ERole}
|
695 |
|
|
* @memberof User
|
696 |
|
|
*/
|
697 |
9bfa1e39
|
Jaroslav Hrubý
|
role?: ERole;
|
698 |
3e6b15a7
|
Lukáš Vlček
|
}
|
699 |
|
|
/**
|
700 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
701 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
702 |
|
|
* @interface UserInfo
|
703 |
|
|
*/
|
704 |
|
|
export interface UserInfo {
|
705 |
9bfa1e39
|
Jaroslav Hrubý
|
key?: string;
|
706 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
707 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
708 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
709 |
|
|
* @memberof UserInfo
|
710 |
|
|
*/
|
711 |
9bfa1e39
|
Jaroslav Hrubý
|
id?: string;
|
712 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
713 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
714 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
715 |
|
|
* @memberof UserInfo
|
716 |
|
|
*/
|
717 |
9bfa1e39
|
Jaroslav Hrubý
|
username?: string | null;
|
718 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
719 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
720 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
721 |
|
|
* @memberof UserInfo
|
722 |
|
|
*/
|
723 |
9bfa1e39
|
Jaroslav Hrubý
|
name?: string | null;
|
724 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
725 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
726 |
3e6b15a7
|
Lukáš Vlček
|
* @type {string}
|
727 |
|
|
* @memberof UserInfo
|
728 |
|
|
*/
|
729 |
9bfa1e39
|
Jaroslav Hrubý
|
surname?: string | null;
|
730 |
3e6b15a7
|
Lukáš Vlček
|
}
|
731 |
|
|
/**
|
732 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
733 |
3e6b15a7
|
Lukáš Vlček
|
* @export
|
734 |
|
|
* @interface UserList
|
735 |
|
|
*/
|
736 |
|
|
export interface UserList {
|
737 |
|
|
/**
|
738 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
739 |
3e6b15a7
|
Lukáš Vlček
|
* @type {Array<UserInfo>}
|
740 |
|
|
* @memberof UserList
|
741 |
|
|
*/
|
742 |
9bfa1e39
|
Jaroslav Hrubý
|
users?: Array<UserInfo> | null;
|
743 |
3e6b15a7
|
Lukáš Vlček
|
}
|
744 |
|
|
|
745 |
|
|
/**
|
746 |
|
|
* AnnotationApi - axios parameter creator
|
747 |
|
|
* @export
|
748 |
|
|
*/
|
749 |
|
|
export const AnnotationApiAxiosParamCreator = function (configuration?: Configuration) {
|
750 |
|
|
return {
|
751 |
|
|
/**
|
752 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
753 |
|
|
* @param {string} annotationId
|
754 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
755 |
|
|
* @throws {RequiredError}
|
756 |
|
|
*/
|
757 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationAnnotationIdGet: async (
|
758 |
|
|
annotationId: string,
|
759 |
|
|
options: AxiosRequestConfig = {}
|
760 |
|
|
): Promise<RequestArgs> => {
|
761 |
dd747fc5
|
Lukáš Vlček
|
// verify required parameter 'annotationId' is not null or undefined
|
762 |
9bfa1e39
|
Jaroslav Hrubý
|
assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId);
|
763 |
|
|
const localVarPath = `/annotation/{annotationId}`.replace(
|
764 |
|
|
`{${'annotationId'}}`,
|
765 |
|
|
encodeURIComponent(String(annotationId))
|
766 |
|
|
);
|
767 |
3e6b15a7
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
768 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
769 |
|
|
let baseOptions;
|
770 |
|
|
if (configuration) {
|
771 |
|
|
baseOptions = configuration.baseOptions;
|
772 |
|
|
}
|
773 |
|
|
|
774 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
775 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
776 |
|
|
const localVarQueryParameter = {} as any;
|
777 |
|
|
|
778 |
9fdb7d55
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
779 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
780 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
781 |
|
|
localVarRequestOptions.headers = {
|
782 |
|
|
...localVarHeaderParameter,
|
783 |
|
|
...headersFromBaseOptions,
|
784 |
|
|
...options.headers,
|
785 |
|
|
};
|
786 |
9fdb7d55
|
Lukáš Vlček
|
|
787 |
|
|
return {
|
788 |
|
|
url: toPathString(localVarUrlObj),
|
789 |
|
|
options: localVarRequestOptions,
|
790 |
|
|
};
|
791 |
|
|
},
|
792 |
|
|
/**
|
793 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
794 |
|
|
* @param {string} annotationId
|
795 |
|
|
* @param {string} occurenceId
|
796 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
797 |
|
|
* @throws {RequiredError}
|
798 |
|
|
*/
|
799 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationAnnotationIdOccurenceIdDelete: async (
|
800 |
|
|
annotationId: string,
|
801 |
|
|
occurenceId: string,
|
802 |
|
|
options: AxiosRequestConfig = {}
|
803 |
|
|
): Promise<RequestArgs> => {
|
804 |
9fdb7d55
|
Lukáš Vlček
|
// verify required parameter 'annotationId' is not null or undefined
|
805 |
9bfa1e39
|
Jaroslav Hrubý
|
assertParamExists(
|
806 |
|
|
'annotationAnnotationIdOccurenceIdDelete',
|
807 |
|
|
'annotationId',
|
808 |
|
|
annotationId
|
809 |
|
|
);
|
810 |
9fdb7d55
|
Lukáš Vlček
|
// verify required parameter 'occurenceId' is not null or undefined
|
811 |
9bfa1e39
|
Jaroslav Hrubý
|
assertParamExists(
|
812 |
|
|
'annotationAnnotationIdOccurenceIdDelete',
|
813 |
|
|
'occurenceId',
|
814 |
|
|
occurenceId
|
815 |
|
|
);
|
816 |
9fdb7d55
|
Lukáš Vlček
|
const localVarPath = `/annotation/{annotationId}/{occurenceId}`
|
817 |
9bfa1e39
|
Jaroslav Hrubý
|
.replace(`{${'annotationId'}}`, encodeURIComponent(String(annotationId)))
|
818 |
|
|
.replace(`{${'occurenceId'}}`, encodeURIComponent(String(occurenceId)));
|
819 |
9fdb7d55
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
820 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
821 |
|
|
let baseOptions;
|
822 |
|
|
if (configuration) {
|
823 |
|
|
baseOptions = configuration.baseOptions;
|
824 |
|
|
}
|
825 |
|
|
|
826 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = {
|
827 |
|
|
method: 'DELETE',
|
828 |
|
|
...baseOptions,
|
829 |
|
|
...options,
|
830 |
|
|
};
|
831 |
9fdb7d55
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
832 |
|
|
const localVarQueryParameter = {} as any;
|
833 |
|
|
|
834 |
3e6b15a7
|
Lukáš Vlček
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
835 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
836 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
837 |
|
|
localVarRequestOptions.headers = {
|
838 |
|
|
...localVarHeaderParameter,
|
839 |
|
|
...headersFromBaseOptions,
|
840 |
|
|
...options.headers,
|
841 |
|
|
};
|
842 |
3e6b15a7
|
Lukáš Vlček
|
|
843 |
|
|
return {
|
844 |
|
|
url: toPathString(localVarUrlObj),
|
845 |
|
|
options: localVarRequestOptions,
|
846 |
|
|
};
|
847 |
|
|
},
|
848 |
4bc99591
|
Lukáš Vlček
|
/**
|
849 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
850 |
|
|
* @param {string} annotationId
|
851 |
|
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
852 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
853 |
|
|
* @throws {RequiredError}
|
854 |
|
|
*/
|
855 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationAnnotationIdPost: async (
|
856 |
|
|
annotationId: string,
|
857 |
|
|
annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
|
858 |
|
|
options: AxiosRequestConfig = {}
|
859 |
|
|
): Promise<RequestArgs> => {
|
860 |
4bc99591
|
Lukáš Vlček
|
// verify required parameter 'annotationId' is not null or undefined
|
861 |
9bfa1e39
|
Jaroslav Hrubý
|
assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId);
|
862 |
|
|
const localVarPath = `/annotation/{annotationId}`.replace(
|
863 |
|
|
`{${'annotationId'}}`,
|
864 |
|
|
encodeURIComponent(String(annotationId))
|
865 |
|
|
);
|
866 |
4bc99591
|
Lukáš Vlček
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
867 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
868 |
|
|
let baseOptions;
|
869 |
|
|
if (configuration) {
|
870 |
|
|
baseOptions = configuration.baseOptions;
|
871 |
|
|
}
|
872 |
|
|
|
873 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
874 |
4bc99591
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
875 |
|
|
const localVarQueryParameter = {} as any;
|
876 |
|
|
|
877 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
878 |
|
|
|
879 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
880 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
881 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
882 |
|
|
localVarRequestOptions.headers = {
|
883 |
|
|
...localVarHeaderParameter,
|
884 |
|
|
...headersFromBaseOptions,
|
885 |
|
|
...options.headers,
|
886 |
|
|
};
|
887 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
888 |
|
|
annotationInstanceAddRequest,
|
889 |
|
|
localVarRequestOptions,
|
890 |
|
|
configuration
|
891 |
|
|
);
|
892 |
4bc99591
|
Lukáš Vlček
|
|
893 |
|
|
return {
|
894 |
|
|
url: toPathString(localVarUrlObj),
|
895 |
|
|
options: localVarRequestOptions,
|
896 |
|
|
};
|
897 |
|
|
},
|
898 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
899 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
900 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
901 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
902 |
|
|
* @throws {RequiredError}
|
903 |
|
|
*/
|
904 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationsPost: async (
|
905 |
|
|
annotationsAddRequest?: AnnotationsAddRequest,
|
906 |
|
|
options: AxiosRequestConfig = {}
|
907 |
|
|
): Promise<RequestArgs> => {
|
908 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/annotations`;
|
909 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
910 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
911 |
|
|
let baseOptions;
|
912 |
|
|
if (configuration) {
|
913 |
|
|
baseOptions = configuration.baseOptions;
|
914 |
|
|
}
|
915 |
|
|
|
916 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
917 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
918 |
|
|
const localVarQueryParameter = {} as any;
|
919 |
|
|
|
920 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
921 |
|
|
|
922 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
923 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
924 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
925 |
|
|
localVarRequestOptions.headers = {
|
926 |
|
|
...localVarHeaderParameter,
|
927 |
|
|
...headersFromBaseOptions,
|
928 |
|
|
...options.headers,
|
929 |
|
|
};
|
930 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
931 |
|
|
annotationsAddRequest,
|
932 |
|
|
localVarRequestOptions,
|
933 |
|
|
configuration
|
934 |
|
|
);
|
935 |
3e6b15a7
|
Lukáš Vlček
|
|
936 |
|
|
return {
|
937 |
|
|
url: toPathString(localVarUrlObj),
|
938 |
|
|
options: localVarRequestOptions,
|
939 |
|
|
};
|
940 |
|
|
},
|
941 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
942 |
3e6b15a7
|
Lukáš Vlček
|
};
|
943 |
|
|
|
944 |
|
|
/**
|
945 |
|
|
* AnnotationApi - functional programming interface
|
946 |
|
|
* @export
|
947 |
|
|
*/
|
948 |
9bfa1e39
|
Jaroslav Hrubý
|
export const AnnotationApiFp = function (configuration?: Configuration) {
|
949 |
|
|
const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration);
|
950 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
951 |
|
|
/**
|
952 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
953 |
|
|
* @param {string} annotationId
|
954 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
955 |
|
|
* @throws {RequiredError}
|
956 |
|
|
*/
|
957 |
9bfa1e39
|
Jaroslav Hrubý
|
async annotationAnnotationIdGet(
|
958 |
|
|
annotationId: string,
|
959 |
|
|
options?: AxiosRequestConfig
|
960 |
|
|
): Promise<
|
961 |
|
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>
|
962 |
|
|
> {
|
963 |
|
|
const localVarAxiosArgs =
|
964 |
|
|
await localVarAxiosParamCreator.annotationAnnotationIdGet(
|
965 |
|
|
annotationId,
|
966 |
|
|
options
|
967 |
|
|
);
|
968 |
|
|
return createRequestFunction(
|
969 |
|
|
localVarAxiosArgs,
|
970 |
|
|
globalAxios,
|
971 |
|
|
BASE_PATH,
|
972 |
|
|
configuration
|
973 |
|
|
);
|
974 |
3e6b15a7
|
Lukáš Vlček
|
},
|
975 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
976 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
977 |
|
|
* @param {string} annotationId
|
978 |
|
|
* @param {string} occurenceId
|
979 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
980 |
|
|
* @throws {RequiredError}
|
981 |
|
|
*/
|
982 |
9bfa1e39
|
Jaroslav Hrubý
|
async annotationAnnotationIdOccurenceIdDelete(
|
983 |
|
|
annotationId: string,
|
984 |
|
|
occurenceId: string,
|
985 |
|
|
options?: AxiosRequestConfig
|
986 |
|
|
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
987 |
|
|
const localVarAxiosArgs =
|
988 |
|
|
await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(
|
989 |
|
|
annotationId,
|
990 |
|
|
occurenceId,
|
991 |
|
|
options
|
992 |
|
|
);
|
993 |
|
|
return createRequestFunction(
|
994 |
|
|
localVarAxiosArgs,
|
995 |
|
|
globalAxios,
|
996 |
|
|
BASE_PATH,
|
997 |
|
|
configuration
|
998 |
|
|
);
|
999 |
9fdb7d55
|
Lukáš Vlček
|
},
|
1000 |
4bc99591
|
Lukáš Vlček
|
/**
|
1001 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1002 |
|
|
* @param {string} annotationId
|
1003 |
|
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
1004 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1005 |
|
|
* @throws {RequiredError}
|
1006 |
|
|
*/
|
1007 |
9bfa1e39
|
Jaroslav Hrubý
|
async annotationAnnotationIdPost(
|
1008 |
|
|
annotationId: string,
|
1009 |
|
|
annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
|
1010 |
|
|
options?: AxiosRequestConfig
|
1011 |
|
|
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1012 |
|
|
const localVarAxiosArgs =
|
1013 |
|
|
await localVarAxiosParamCreator.annotationAnnotationIdPost(
|
1014 |
|
|
annotationId,
|
1015 |
|
|
annotationInstanceAddRequest,
|
1016 |
|
|
options
|
1017 |
|
|
);
|
1018 |
|
|
return createRequestFunction(
|
1019 |
|
|
localVarAxiosArgs,
|
1020 |
|
|
globalAxios,
|
1021 |
|
|
BASE_PATH,
|
1022 |
|
|
configuration
|
1023 |
|
|
);
|
1024 |
4bc99591
|
Lukáš Vlček
|
},
|
1025 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1026 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1027 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
1028 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1029 |
|
|
* @throws {RequiredError}
|
1030 |
|
|
*/
|
1031 |
9bfa1e39
|
Jaroslav Hrubý
|
async annotationsPost(
|
1032 |
|
|
annotationsAddRequest?: AnnotationsAddRequest,
|
1033 |
|
|
options?: AxiosRequestConfig
|
1034 |
|
|
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1035 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationsPost(
|
1036 |
|
|
annotationsAddRequest,
|
1037 |
|
|
options
|
1038 |
|
|
);
|
1039 |
|
|
return createRequestFunction(
|
1040 |
|
|
localVarAxiosArgs,
|
1041 |
|
|
globalAxios,
|
1042 |
|
|
BASE_PATH,
|
1043 |
|
|
configuration
|
1044 |
|
|
);
|
1045 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1046 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1047 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1048 |
|
|
|
1049 |
|
|
/**
|
1050 |
|
|
* AnnotationApi - factory interface
|
1051 |
|
|
* @export
|
1052 |
|
|
*/
|
1053 |
9bfa1e39
|
Jaroslav Hrubý
|
export const AnnotationApiFactory = function (
|
1054 |
|
|
configuration?: Configuration,
|
1055 |
|
|
basePath?: string,
|
1056 |
|
|
axios?: AxiosInstance
|
1057 |
|
|
) {
|
1058 |
|
|
const localVarFp = AnnotationApiFp(configuration);
|
1059 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1060 |
|
|
/**
|
1061 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1062 |
|
|
* @param {string} annotationId
|
1063 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1064 |
|
|
* @throws {RequiredError}
|
1065 |
|
|
*/
|
1066 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationAnnotationIdGet(
|
1067 |
|
|
annotationId: string,
|
1068 |
|
|
options?: any
|
1069 |
|
|
): AxiosPromise<AnnotationInfo> {
|
1070 |
|
|
return localVarFp
|
1071 |
|
|
.annotationAnnotationIdGet(annotationId, options)
|
1072 |
|
|
.then((request) => request(axios, basePath));
|
1073 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1074 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
1075 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1076 |
|
|
* @param {string} annotationId
|
1077 |
|
|
* @param {string} occurenceId
|
1078 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1079 |
|
|
* @throws {RequiredError}
|
1080 |
|
|
*/
|
1081 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationAnnotationIdOccurenceIdDelete(
|
1082 |
|
|
annotationId: string,
|
1083 |
|
|
occurenceId: string,
|
1084 |
|
|
options?: any
|
1085 |
|
|
): AxiosPromise<void> {
|
1086 |
|
|
return localVarFp
|
1087 |
|
|
.annotationAnnotationIdOccurenceIdDelete(
|
1088 |
|
|
annotationId,
|
1089 |
|
|
occurenceId,
|
1090 |
|
|
options
|
1091 |
|
|
)
|
1092 |
|
|
.then((request) => request(axios, basePath));
|
1093 |
9fdb7d55
|
Lukáš Vlček
|
},
|
1094 |
4bc99591
|
Lukáš Vlček
|
/**
|
1095 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1096 |
|
|
* @param {string} annotationId
|
1097 |
|
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
1098 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1099 |
|
|
* @throws {RequiredError}
|
1100 |
|
|
*/
|
1101 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationAnnotationIdPost(
|
1102 |
|
|
annotationId: string,
|
1103 |
|
|
annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
|
1104 |
|
|
options?: any
|
1105 |
|
|
): AxiosPromise<void> {
|
1106 |
|
|
return localVarFp
|
1107 |
|
|
.annotationAnnotationIdPost(
|
1108 |
|
|
annotationId,
|
1109 |
|
|
annotationInstanceAddRequest,
|
1110 |
|
|
options
|
1111 |
|
|
)
|
1112 |
|
|
.then((request) => request(axios, basePath));
|
1113 |
4bc99591
|
Lukáš Vlček
|
},
|
1114 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1115 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1116 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
1117 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1118 |
|
|
* @throws {RequiredError}
|
1119 |
|
|
*/
|
1120 |
9bfa1e39
|
Jaroslav Hrubý
|
annotationsPost(
|
1121 |
|
|
annotationsAddRequest?: AnnotationsAddRequest,
|
1122 |
|
|
options?: any
|
1123 |
|
|
): AxiosPromise<void> {
|
1124 |
|
|
return localVarFp
|
1125 |
|
|
.annotationsPost(annotationsAddRequest, options)
|
1126 |
|
|
.then((request) => request(axios, basePath));
|
1127 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1128 |
|
|
};
|
1129 |
|
|
};
|
1130 |
|
|
|
1131 |
|
|
/**
|
1132 |
|
|
* AnnotationApi - object-oriented interface
|
1133 |
|
|
* @export
|
1134 |
|
|
* @class AnnotationApi
|
1135 |
|
|
* @extends {BaseAPI}
|
1136 |
|
|
*/
|
1137 |
|
|
export class AnnotationApi extends BaseAPI {
|
1138 |
|
|
/**
|
1139 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1140 |
|
|
* @param {string} annotationId
|
1141 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1142 |
|
|
* @throws {RequiredError}
|
1143 |
|
|
* @memberof AnnotationApi
|
1144 |
|
|
*/
|
1145 |
dd747fc5
|
Lukáš Vlček
|
public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
|
1146 |
9bfa1e39
|
Jaroslav Hrubý
|
return AnnotationApiFp(this.configuration)
|
1147 |
|
|
.annotationAnnotationIdGet(annotationId, options)
|
1148 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1149 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1150 |
|
|
|
1151 |
9fdb7d55
|
Lukáš Vlček
|
/**
|
1152 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1153 |
|
|
* @param {string} annotationId
|
1154 |
|
|
* @param {string} occurenceId
|
1155 |
9fdb7d55
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1156 |
|
|
* @throws {RequiredError}
|
1157 |
|
|
* @memberof AnnotationApi
|
1158 |
|
|
*/
|
1159 |
9bfa1e39
|
Jaroslav Hrubý
|
public annotationAnnotationIdOccurenceIdDelete(
|
1160 |
|
|
annotationId: string,
|
1161 |
|
|
occurenceId: string,
|
1162 |
|
|
options?: AxiosRequestConfig
|
1163 |
|
|
) {
|
1164 |
|
|
return AnnotationApiFp(this.configuration)
|
1165 |
|
|
.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options)
|
1166 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1167 |
9fdb7d55
|
Lukáš Vlček
|
}
|
1168 |
|
|
|
1169 |
4bc99591
|
Lukáš Vlček
|
/**
|
1170 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1171 |
|
|
* @param {string} annotationId
|
1172 |
|
|
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
1173 |
4bc99591
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1174 |
|
|
* @throws {RequiredError}
|
1175 |
|
|
* @memberof AnnotationApi
|
1176 |
|
|
*/
|
1177 |
9bfa1e39
|
Jaroslav Hrubý
|
public annotationAnnotationIdPost(
|
1178 |
|
|
annotationId: string,
|
1179 |
|
|
annotationInstanceAddRequest?: AnnotationInstanceAddRequest,
|
1180 |
|
|
options?: AxiosRequestConfig
|
1181 |
|
|
) {
|
1182 |
|
|
return AnnotationApiFp(this.configuration)
|
1183 |
|
|
.annotationAnnotationIdPost(
|
1184 |
|
|
annotationId,
|
1185 |
|
|
annotationInstanceAddRequest,
|
1186 |
|
|
options
|
1187 |
|
|
)
|
1188 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1189 |
4bc99591
|
Lukáš Vlček
|
}
|
1190 |
|
|
|
1191 |
3e6b15a7
|
Lukáš Vlček
|
/**
|
1192 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1193 |
|
|
* @param {AnnotationsAddRequest} [annotationsAddRequest]
|
1194 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1195 |
|
|
* @throws {RequiredError}
|
1196 |
|
|
* @memberof AnnotationApi
|
1197 |
|
|
*/
|
1198 |
9bfa1e39
|
Jaroslav Hrubý
|
public annotationsPost(
|
1199 |
|
|
annotationsAddRequest?: AnnotationsAddRequest,
|
1200 |
|
|
options?: AxiosRequestConfig
|
1201 |
|
|
) {
|
1202 |
|
|
return AnnotationApiFp(this.configuration)
|
1203 |
|
|
.annotationsPost(annotationsAddRequest, options)
|
1204 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1205 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1206 |
|
|
}
|
1207 |
|
|
|
1208 |
|
|
/**
|
1209 |
|
|
* AuthApi - axios parameter creator
|
1210 |
|
|
* @export
|
1211 |
|
|
*/
|
1212 |
|
|
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
1213 |
|
|
return {
|
1214 |
|
|
/**
|
1215 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1216 |
|
|
* @param {LoginRequest} [loginRequest]
|
1217 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1218 |
|
|
* @throws {RequiredError}
|
1219 |
|
|
*/
|
1220 |
9bfa1e39
|
Jaroslav Hrubý
|
authLoginPost: async (
|
1221 |
|
|
loginRequest?: LoginRequest,
|
1222 |
|
|
options: AxiosRequestConfig = {}
|
1223 |
|
|
): Promise<RequestArgs> => {
|
1224 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/auth/login`;
|
1225 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1226 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1227 |
|
|
let baseOptions;
|
1228 |
|
|
if (configuration) {
|
1229 |
|
|
baseOptions = configuration.baseOptions;
|
1230 |
|
|
}
|
1231 |
|
|
|
1232 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
1233 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1234 |
|
|
const localVarQueryParameter = {} as any;
|
1235 |
|
|
|
1236 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1237 |
|
|
|
1238 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1239 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1240 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1241 |
|
|
localVarRequestOptions.headers = {
|
1242 |
|
|
...localVarHeaderParameter,
|
1243 |
|
|
...headersFromBaseOptions,
|
1244 |
|
|
...options.headers,
|
1245 |
|
|
};
|
1246 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
1247 |
|
|
loginRequest,
|
1248 |
|
|
localVarRequestOptions,
|
1249 |
|
|
configuration
|
1250 |
|
|
);
|
1251 |
3e6b15a7
|
Lukáš Vlček
|
|
1252 |
|
|
return {
|
1253 |
|
|
url: toPathString(localVarUrlObj),
|
1254 |
|
|
options: localVarRequestOptions,
|
1255 |
|
|
};
|
1256 |
|
|
},
|
1257 |
|
|
/**
|
1258 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1259 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1260 |
|
|
* @throws {RequiredError}
|
1261 |
|
|
*/
|
1262 |
|
|
authTestAaGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1263 |
|
|
const localVarPath = `/auth/test/aa`;
|
1264 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1265 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1266 |
|
|
let baseOptions;
|
1267 |
|
|
if (configuration) {
|
1268 |
|
|
baseOptions = configuration.baseOptions;
|
1269 |
|
|
}
|
1270 |
|
|
|
1271 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
1272 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1273 |
|
|
const localVarQueryParameter = {} as any;
|
1274 |
|
|
|
1275 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1276 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1277 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1278 |
|
|
localVarRequestOptions.headers = {
|
1279 |
|
|
...localVarHeaderParameter,
|
1280 |
|
|
...headersFromBaseOptions,
|
1281 |
|
|
...options.headers,
|
1282 |
|
|
};
|
1283 |
3e6b15a7
|
Lukáš Vlček
|
|
1284 |
|
|
return {
|
1285 |
|
|
url: toPathString(localVarUrlObj),
|
1286 |
|
|
options: localVarRequestOptions,
|
1287 |
|
|
};
|
1288 |
|
|
},
|
1289 |
|
|
/**
|
1290 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1291 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1292 |
|
|
* @throws {RequiredError}
|
1293 |
|
|
*/
|
1294 |
|
|
authTestGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1295 |
|
|
const localVarPath = `/auth/test`;
|
1296 |
|
|
// 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 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
1304 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1305 |
|
|
const localVarQueryParameter = {} as any;
|
1306 |
|
|
|
1307 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1308 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1309 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1310 |
|
|
localVarRequestOptions.headers = {
|
1311 |
|
|
...localVarHeaderParameter,
|
1312 |
|
|
...headersFromBaseOptions,
|
1313 |
|
|
...options.headers,
|
1314 |
|
|
};
|
1315 |
3e6b15a7
|
Lukáš Vlček
|
|
1316 |
|
|
return {
|
1317 |
|
|
url: toPathString(localVarUrlObj),
|
1318 |
|
|
options: localVarRequestOptions,
|
1319 |
|
|
};
|
1320 |
|
|
},
|
1321 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1322 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1323 |
|
|
|
1324 |
|
|
/**
|
1325 |
|
|
* AuthApi - functional programming interface
|
1326 |
|
|
* @export
|
1327 |
|
|
*/
|
1328 |
9bfa1e39
|
Jaroslav Hrubý
|
export const AuthApiFp = function (configuration?: Configuration) {
|
1329 |
|
|
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
1330 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1331 |
|
|
/**
|
1332 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1333 |
|
|
* @param {LoginRequest} [loginRequest]
|
1334 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1335 |
|
|
* @throws {RequiredError}
|
1336 |
|
|
*/
|
1337 |
9bfa1e39
|
Jaroslav Hrubý
|
async authLoginPost(
|
1338 |
|
|
loginRequest?: LoginRequest,
|
1339 |
|
|
options?: AxiosRequestConfig
|
1340 |
|
|
): Promise<
|
1341 |
|
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>
|
1342 |
|
|
> {
|
1343 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginPost(
|
1344 |
|
|
loginRequest,
|
1345 |
|
|
options
|
1346 |
|
|
);
|
1347 |
|
|
return createRequestFunction(
|
1348 |
|
|
localVarAxiosArgs,
|
1349 |
|
|
globalAxios,
|
1350 |
|
|
BASE_PATH,
|
1351 |
|
|
configuration
|
1352 |
|
|
);
|
1353 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1354 |
|
|
/**
|
1355 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1356 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1357 |
|
|
* @throws {RequiredError}
|
1358 |
|
|
*/
|
1359 |
9bfa1e39
|
Jaroslav Hrubý
|
async authTestAaGet(
|
1360 |
|
|
options?: AxiosRequestConfig
|
1361 |
|
|
): Promise<
|
1362 |
|
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>
|
1363 |
|
|
> {
|
1364 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authTestAaGet(
|
1365 |
|
|
options
|
1366 |
|
|
);
|
1367 |
|
|
return createRequestFunction(
|
1368 |
|
|
localVarAxiosArgs,
|
1369 |
|
|
globalAxios,
|
1370 |
|
|
BASE_PATH,
|
1371 |
|
|
configuration
|
1372 |
|
|
);
|
1373 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1374 |
|
|
/**
|
1375 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1376 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1377 |
|
|
* @throws {RequiredError}
|
1378 |
|
|
*/
|
1379 |
9bfa1e39
|
Jaroslav Hrubý
|
async authTestGet(
|
1380 |
|
|
options?: AxiosRequestConfig
|
1381 |
|
|
): Promise<
|
1382 |
|
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientInfo>
|
1383 |
|
|
> {
|
1384 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authTestGet(
|
1385 |
|
|
options
|
1386 |
|
|
);
|
1387 |
|
|
return createRequestFunction(
|
1388 |
|
|
localVarAxiosArgs,
|
1389 |
|
|
globalAxios,
|
1390 |
|
|
BASE_PATH,
|
1391 |
|
|
configuration
|
1392 |
|
|
);
|
1393 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1394 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1395 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1396 |
|
|
|
1397 |
|
|
/**
|
1398 |
|
|
* AuthApi - factory interface
|
1399 |
|
|
* @export
|
1400 |
|
|
*/
|
1401 |
9bfa1e39
|
Jaroslav Hrubý
|
export const AuthApiFactory = function (
|
1402 |
|
|
configuration?: Configuration,
|
1403 |
|
|
basePath?: string,
|
1404 |
|
|
axios?: AxiosInstance
|
1405 |
|
|
) {
|
1406 |
|
|
const localVarFp = AuthApiFp(configuration);
|
1407 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1408 |
|
|
/**
|
1409 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1410 |
|
|
* @param {LoginRequest} [loginRequest]
|
1411 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1412 |
|
|
* @throws {RequiredError}
|
1413 |
|
|
*/
|
1414 |
9bfa1e39
|
Jaroslav Hrubý
|
authLoginPost(
|
1415 |
|
|
loginRequest?: LoginRequest,
|
1416 |
|
|
options?: any
|
1417 |
|
|
): AxiosPromise<LoginResponse> {
|
1418 |
|
|
return localVarFp
|
1419 |
|
|
.authLoginPost(loginRequest, options)
|
1420 |
|
|
.then((request) => request(axios, basePath));
|
1421 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1422 |
|
|
/**
|
1423 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1424 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1425 |
|
|
* @throws {RequiredError}
|
1426 |
|
|
*/
|
1427 |
|
|
authTestAaGet(options?: any): AxiosPromise<ClientInfo> {
|
1428 |
9bfa1e39
|
Jaroslav Hrubý
|
return localVarFp
|
1429 |
|
|
.authTestAaGet(options)
|
1430 |
|
|
.then((request) => request(axios, basePath));
|
1431 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1432 |
|
|
/**
|
1433 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1434 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1435 |
|
|
* @throws {RequiredError}
|
1436 |
|
|
*/
|
1437 |
|
|
authTestGet(options?: any): AxiosPromise<ClientInfo> {
|
1438 |
9bfa1e39
|
Jaroslav Hrubý
|
return localVarFp
|
1439 |
|
|
.authTestGet(options)
|
1440 |
|
|
.then((request) => request(axios, basePath));
|
1441 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1442 |
|
|
};
|
1443 |
|
|
};
|
1444 |
|
|
|
1445 |
|
|
/**
|
1446 |
|
|
* AuthApi - object-oriented interface
|
1447 |
|
|
* @export
|
1448 |
|
|
* @class AuthApi
|
1449 |
|
|
* @extends {BaseAPI}
|
1450 |
|
|
*/
|
1451 |
|
|
export class AuthApi extends BaseAPI {
|
1452 |
|
|
/**
|
1453 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1454 |
|
|
* @param {LoginRequest} [loginRequest]
|
1455 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1456 |
|
|
* @throws {RequiredError}
|
1457 |
|
|
* @memberof AuthApi
|
1458 |
|
|
*/
|
1459 |
|
|
public authLoginPost(loginRequest?: LoginRequest, options?: AxiosRequestConfig) {
|
1460 |
9bfa1e39
|
Jaroslav Hrubý
|
return AuthApiFp(this.configuration)
|
1461 |
|
|
.authLoginPost(loginRequest, options)
|
1462 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1463 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1464 |
|
|
|
1465 |
|
|
/**
|
1466 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1467 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1468 |
|
|
* @throws {RequiredError}
|
1469 |
|
|
* @memberof AuthApi
|
1470 |
|
|
*/
|
1471 |
|
|
public authTestAaGet(options?: AxiosRequestConfig) {
|
1472 |
9bfa1e39
|
Jaroslav Hrubý
|
return AuthApiFp(this.configuration)
|
1473 |
|
|
.authTestAaGet(options)
|
1474 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1475 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1476 |
|
|
|
1477 |
|
|
/**
|
1478 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1479 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1480 |
|
|
* @throws {RequiredError}
|
1481 |
|
|
* @memberof AuthApi
|
1482 |
|
|
*/
|
1483 |
|
|
public authTestGet(options?: AxiosRequestConfig) {
|
1484 |
9bfa1e39
|
Jaroslav Hrubý
|
return AuthApiFp(this.configuration)
|
1485 |
|
|
.authTestGet(options)
|
1486 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1487 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1488 |
|
|
}
|
1489 |
|
|
|
1490 |
|
|
/**
|
1491 |
|
|
* DocumentApi - axios parameter creator
|
1492 |
|
|
* @export
|
1493 |
|
|
*/
|
1494 |
|
|
export const DocumentApiAxiosParamCreator = function (configuration?: Configuration) {
|
1495 |
|
|
return {
|
1496 |
|
|
/**
|
1497 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1498 |
|
|
* @param {number} [pageIndex]
|
1499 |
|
|
* @param {number} [pageSize]
|
1500 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1501 |
|
|
* @throws {RequiredError}
|
1502 |
|
|
*/
|
1503 |
9bfa1e39
|
Jaroslav Hrubý
|
documentsGet: async (
|
1504 |
|
|
pageIndex?: number,
|
1505 |
|
|
pageSize?: number,
|
1506 |
|
|
options: AxiosRequestConfig = {}
|
1507 |
|
|
): Promise<RequestArgs> => {
|
1508 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/documents`;
|
1509 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1510 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1511 |
|
|
let baseOptions;
|
1512 |
|
|
if (configuration) {
|
1513 |
|
|
baseOptions = configuration.baseOptions;
|
1514 |
|
|
}
|
1515 |
|
|
|
1516 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
1517 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1518 |
|
|
const localVarQueryParameter = {} as any;
|
1519 |
|
|
|
1520 |
dd747fc5
|
Lukáš Vlček
|
if (pageIndex !== undefined) {
|
1521 |
|
|
localVarQueryParameter['pageIndex'] = pageIndex;
|
1522 |
|
|
}
|
1523 |
3e6b15a7
|
Lukáš Vlček
|
|
1524 |
dd747fc5
|
Lukáš Vlček
|
if (pageSize !== undefined) {
|
1525 |
|
|
localVarQueryParameter['pageSize'] = pageSize;
|
1526 |
|
|
}
|
1527 |
3e6b15a7
|
Lukáš Vlček
|
|
1528 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1529 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1530 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1531 |
|
|
localVarRequestOptions.headers = {
|
1532 |
|
|
...localVarHeaderParameter,
|
1533 |
|
|
...headersFromBaseOptions,
|
1534 |
|
|
...options.headers,
|
1535 |
|
|
};
|
1536 |
3e6b15a7
|
Lukáš Vlček
|
|
1537 |
|
|
return {
|
1538 |
|
|
url: toPathString(localVarUrlObj),
|
1539 |
|
|
options: localVarRequestOptions,
|
1540 |
|
|
};
|
1541 |
|
|
},
|
1542 |
|
|
/**
|
1543 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1544 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
1545 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1546 |
|
|
* @throws {RequiredError}
|
1547 |
|
|
*/
|
1548 |
9bfa1e39
|
Jaroslav Hrubý
|
documentsPost: async (
|
1549 |
|
|
documentAddRequest?: DocumentAddRequest,
|
1550 |
|
|
options: AxiosRequestConfig = {}
|
1551 |
|
|
): Promise<RequestArgs> => {
|
1552 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/documents`;
|
1553 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1554 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1555 |
|
|
let baseOptions;
|
1556 |
|
|
if (configuration) {
|
1557 |
|
|
baseOptions = configuration.baseOptions;
|
1558 |
|
|
}
|
1559 |
|
|
|
1560 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
1561 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1562 |
|
|
const localVarQueryParameter = {} as any;
|
1563 |
|
|
|
1564 |
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1565 |
|
|
|
1566 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1567 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1568 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1569 |
|
|
localVarRequestOptions.headers = {
|
1570 |
|
|
...localVarHeaderParameter,
|
1571 |
|
|
...headersFromBaseOptions,
|
1572 |
|
|
...options.headers,
|
1573 |
|
|
};
|
1574 |
|
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
1575 |
|
|
documentAddRequest,
|
1576 |
|
|
localVarRequestOptions,
|
1577 |
|
|
configuration
|
1578 |
|
|
);
|
1579 |
3e6b15a7
|
Lukáš Vlček
|
|
1580 |
|
|
return {
|
1581 |
|
|
url: toPathString(localVarUrlObj),
|
1582 |
|
|
options: localVarRequestOptions,
|
1583 |
|
|
};
|
1584 |
|
|
},
|
1585 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1586 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1587 |
|
|
|
1588 |
|
|
/**
|
1589 |
|
|
* DocumentApi - functional programming interface
|
1590 |
|
|
* @export
|
1591 |
|
|
*/
|
1592 |
9bfa1e39
|
Jaroslav Hrubý
|
export const DocumentApiFp = function (configuration?: Configuration) {
|
1593 |
|
|
const localVarAxiosParamCreator = DocumentApiAxiosParamCreator(configuration);
|
1594 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1595 |
|
|
/**
|
1596 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1597 |
|
|
* @param {number} [pageIndex]
|
1598 |
|
|
* @param {number} [pageSize]
|
1599 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1600 |
|
|
* @throws {RequiredError}
|
1601 |
|
|
*/
|
1602 |
9bfa1e39
|
Jaroslav Hrubý
|
async documentsGet(
|
1603 |
|
|
pageIndex?: number,
|
1604 |
|
|
pageSize?: number,
|
1605 |
|
|
options?: AxiosRequestConfig
|
1606 |
|
|
): Promise<
|
1607 |
|
|
(
|
1608 |
|
|
axios?: AxiosInstance,
|
1609 |
|
|
basePath?: string
|
1610 |
|
|
) => AxiosPromise<DocumentListResponse>
|
1611 |
|
|
> {
|
1612 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(
|
1613 |
|
|
pageIndex,
|
1614 |
|
|
pageSize,
|
1615 |
|
|
options
|
1616 |
|
|
);
|
1617 |
|
|
return createRequestFunction(
|
1618 |
|
|
localVarAxiosArgs,
|
1619 |
|
|
globalAxios,
|
1620 |
|
|
BASE_PATH,
|
1621 |
|
|
configuration
|
1622 |
|
|
);
|
1623 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1624 |
|
|
/**
|
1625 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1626 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
1627 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1628 |
|
|
* @throws {RequiredError}
|
1629 |
|
|
*/
|
1630 |
9bfa1e39
|
Jaroslav Hrubý
|
async documentsPost(
|
1631 |
|
|
documentAddRequest?: DocumentAddRequest,
|
1632 |
|
|
options?: AxiosRequestConfig
|
1633 |
|
|
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
1634 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsPost(
|
1635 |
|
|
documentAddRequest,
|
1636 |
|
|
options
|
1637 |
|
|
);
|
1638 |
|
|
return createRequestFunction(
|
1639 |
|
|
localVarAxiosArgs,
|
1640 |
|
|
globalAxios,
|
1641 |
|
|
BASE_PATH,
|
1642 |
|
|
configuration
|
1643 |
|
|
);
|
1644 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1645 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1646 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1647 |
|
|
|
1648 |
|
|
/**
|
1649 |
|
|
* DocumentApi - factory interface
|
1650 |
|
|
* @export
|
1651 |
|
|
*/
|
1652 |
9bfa1e39
|
Jaroslav Hrubý
|
export const DocumentApiFactory = function (
|
1653 |
|
|
configuration?: Configuration,
|
1654 |
|
|
basePath?: string,
|
1655 |
|
|
axios?: AxiosInstance
|
1656 |
|
|
) {
|
1657 |
|
|
const localVarFp = DocumentApiFp(configuration);
|
1658 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1659 |
|
|
/**
|
1660 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1661 |
|
|
* @param {number} [pageIndex]
|
1662 |
|
|
* @param {number} [pageSize]
|
1663 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1664 |
|
|
* @throws {RequiredError}
|
1665 |
|
|
*/
|
1666 |
9bfa1e39
|
Jaroslav Hrubý
|
documentsGet(
|
1667 |
|
|
pageIndex?: number,
|
1668 |
|
|
pageSize?: number,
|
1669 |
|
|
options?: any
|
1670 |
|
|
): AxiosPromise<DocumentListResponse> {
|
1671 |
|
|
return localVarFp
|
1672 |
|
|
.documentsGet(pageIndex, pageSize, options)
|
1673 |
|
|
.then((request) => request(axios, basePath));
|
1674 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1675 |
|
|
/**
|
1676 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1677 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
1678 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1679 |
|
|
* @throws {RequiredError}
|
1680 |
|
|
*/
|
1681 |
9bfa1e39
|
Jaroslav Hrubý
|
documentsPost(
|
1682 |
|
|
documentAddRequest?: DocumentAddRequest,
|
1683 |
|
|
options?: any
|
1684 |
|
|
): AxiosPromise<void> {
|
1685 |
|
|
return localVarFp
|
1686 |
|
|
.documentsPost(documentAddRequest, options)
|
1687 |
|
|
.then((request) => request(axios, basePath));
|
1688 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1689 |
|
|
};
|
1690 |
|
|
};
|
1691 |
|
|
|
1692 |
|
|
/**
|
1693 |
|
|
* DocumentApi - object-oriented interface
|
1694 |
|
|
* @export
|
1695 |
|
|
* @class DocumentApi
|
1696 |
|
|
* @extends {BaseAPI}
|
1697 |
|
|
*/
|
1698 |
|
|
export class DocumentApi extends BaseAPI {
|
1699 |
|
|
/**
|
1700 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1701 |
|
|
* @param {number} [pageIndex]
|
1702 |
|
|
* @param {number} [pageSize]
|
1703 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1704 |
|
|
* @throws {RequiredError}
|
1705 |
|
|
* @memberof DocumentApi
|
1706 |
|
|
*/
|
1707 |
9bfa1e39
|
Jaroslav Hrubý
|
public documentsGet(
|
1708 |
|
|
pageIndex?: number,
|
1709 |
|
|
pageSize?: number,
|
1710 |
|
|
options?: AxiosRequestConfig
|
1711 |
|
|
) {
|
1712 |
|
|
return DocumentApiFp(this.configuration)
|
1713 |
|
|
.documentsGet(pageIndex, pageSize, options)
|
1714 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1715 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1716 |
|
|
|
1717 |
|
|
/**
|
1718 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1719 |
|
|
* @param {DocumentAddRequest} [documentAddRequest]
|
1720 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1721 |
|
|
* @throws {RequiredError}
|
1722 |
|
|
* @memberof DocumentApi
|
1723 |
|
|
*/
|
1724 |
9bfa1e39
|
Jaroslav Hrubý
|
public documentsPost(
|
1725 |
|
|
documentAddRequest?: DocumentAddRequest,
|
1726 |
|
|
options?: AxiosRequestConfig
|
1727 |
|
|
) {
|
1728 |
|
|
return DocumentApiFp(this.configuration)
|
1729 |
|
|
.documentsPost(documentAddRequest, options)
|
1730 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1731 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1732 |
|
|
}
|
1733 |
|
|
|
1734 |
|
|
/**
|
1735 |
|
|
* TagApi - axios parameter creator
|
1736 |
|
|
* @export
|
1737 |
|
|
*/
|
1738 |
|
|
export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
|
1739 |
|
|
return {
|
1740 |
|
|
/**
|
1741 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1742 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1743 |
|
|
* @throws {RequiredError}
|
1744 |
|
|
*/
|
1745 |
|
|
tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1746 |
|
|
const localVarPath = `/tags`;
|
1747 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1748 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1749 |
|
|
let baseOptions;
|
1750 |
|
|
if (configuration) {
|
1751 |
|
|
baseOptions = configuration.baseOptions;
|
1752 |
|
|
}
|
1753 |
|
|
|
1754 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
1755 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1756 |
|
|
const localVarQueryParameter = {} as any;
|
1757 |
|
|
|
1758 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1759 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1760 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1761 |
|
|
localVarRequestOptions.headers = {
|
1762 |
|
|
...localVarHeaderParameter,
|
1763 |
|
|
...headersFromBaseOptions,
|
1764 |
|
|
...options.headers,
|
1765 |
|
|
};
|
1766 |
3e6b15a7
|
Lukáš Vlček
|
|
1767 |
|
|
return {
|
1768 |
|
|
url: toPathString(localVarUrlObj),
|
1769 |
|
|
options: localVarRequestOptions,
|
1770 |
|
|
};
|
1771 |
|
|
},
|
1772 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1773 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1774 |
|
|
|
1775 |
|
|
/**
|
1776 |
|
|
* TagApi - functional programming interface
|
1777 |
|
|
* @export
|
1778 |
|
|
*/
|
1779 |
9bfa1e39
|
Jaroslav Hrubý
|
export const TagApiFp = function (configuration?: Configuration) {
|
1780 |
|
|
const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration);
|
1781 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1782 |
|
|
/**
|
1783 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1784 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1785 |
|
|
* @throws {RequiredError}
|
1786 |
|
|
*/
|
1787 |
9bfa1e39
|
Jaroslav Hrubý
|
async tagsGet(
|
1788 |
|
|
options?: AxiosRequestConfig
|
1789 |
|
|
): Promise<
|
1790 |
|
|
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>
|
1791 |
|
|
> {
|
1792 |
3e6b15a7
|
Lukáš Vlček
|
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options);
|
1793 |
9bfa1e39
|
Jaroslav Hrubý
|
return createRequestFunction(
|
1794 |
|
|
localVarAxiosArgs,
|
1795 |
|
|
globalAxios,
|
1796 |
|
|
BASE_PATH,
|
1797 |
|
|
configuration
|
1798 |
|
|
);
|
1799 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1800 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1801 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1802 |
|
|
|
1803 |
|
|
/**
|
1804 |
|
|
* TagApi - factory interface
|
1805 |
|
|
* @export
|
1806 |
|
|
*/
|
1807 |
9bfa1e39
|
Jaroslav Hrubý
|
export const TagApiFactory = function (
|
1808 |
|
|
configuration?: Configuration,
|
1809 |
|
|
basePath?: string,
|
1810 |
|
|
axios?: AxiosInstance
|
1811 |
|
|
) {
|
1812 |
|
|
const localVarFp = TagApiFp(configuration);
|
1813 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1814 |
|
|
/**
|
1815 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1816 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1817 |
|
|
* @throws {RequiredError}
|
1818 |
|
|
*/
|
1819 |
|
|
tagsGet(options?: any): AxiosPromise<TagTreeResponse> {
|
1820 |
9bfa1e39
|
Jaroslav Hrubý
|
return localVarFp
|
1821 |
|
|
.tagsGet(options)
|
1822 |
|
|
.then((request) => request(axios, basePath));
|
1823 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1824 |
|
|
};
|
1825 |
|
|
};
|
1826 |
|
|
|
1827 |
|
|
/**
|
1828 |
|
|
* TagApi - object-oriented interface
|
1829 |
|
|
* @export
|
1830 |
|
|
* @class TagApi
|
1831 |
|
|
* @extends {BaseAPI}
|
1832 |
|
|
*/
|
1833 |
|
|
export class TagApi extends BaseAPI {
|
1834 |
|
|
/**
|
1835 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1836 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1837 |
|
|
* @throws {RequiredError}
|
1838 |
|
|
* @memberof TagApi
|
1839 |
|
|
*/
|
1840 |
|
|
public tagsGet(options?: AxiosRequestConfig) {
|
1841 |
9bfa1e39
|
Jaroslav Hrubý
|
return TagApiFp(this.configuration)
|
1842 |
|
|
.tagsGet(options)
|
1843 |
|
|
.then((request) => request(this.axios, this.basePath));
|
1844 |
3e6b15a7
|
Lukáš Vlček
|
}
|
1845 |
|
|
}
|
1846 |
|
|
|
1847 |
|
|
/**
|
1848 |
|
|
* UserApi - axios parameter creator
|
1849 |
|
|
* @export
|
1850 |
|
|
*/
|
1851 |
|
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
1852 |
|
|
return {
|
1853 |
|
|
/**
|
1854 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1855 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1856 |
|
|
* @throws {RequiredError}
|
1857 |
|
|
*/
|
1858 |
9bfa1e39
|
Jaroslav Hrubý
|
userAnnotationsGet: async (
|
1859 |
|
|
options: AxiosRequestConfig = {}
|
1860 |
|
|
): Promise<RequestArgs> => {
|
1861 |
3e6b15a7
|
Lukáš Vlček
|
const localVarPath = `/user/annotations`;
|
1862 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1863 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1864 |
|
|
let baseOptions;
|
1865 |
|
|
if (configuration) {
|
1866 |
|
|
baseOptions = configuration.baseOptions;
|
1867 |
|
|
}
|
1868 |
|
|
|
1869 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
1870 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1871 |
|
|
const localVarQueryParameter = {} as any;
|
1872 |
|
|
|
1873 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1874 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1875 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1876 |
|
|
localVarRequestOptions.headers = {
|
1877 |
|
|
...localVarHeaderParameter,
|
1878 |
|
|
...headersFromBaseOptions,
|
1879 |
|
|
...options.headers,
|
1880 |
|
|
};
|
1881 |
3e6b15a7
|
Lukáš Vlček
|
|
1882 |
|
|
return {
|
1883 |
|
|
url: toPathString(localVarUrlObj),
|
1884 |
|
|
options: localVarRequestOptions,
|
1885 |
|
|
};
|
1886 |
|
|
},
|
1887 |
|
|
/**
|
1888 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1889 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1890 |
|
|
* @throws {RequiredError}
|
1891 |
|
|
*/
|
1892 |
|
|
usersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1893 |
|
|
const localVarPath = `/users`;
|
1894 |
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1895 |
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1896 |
|
|
let baseOptions;
|
1897 |
|
|
if (configuration) {
|
1898 |
|
|
baseOptions = configuration.baseOptions;
|
1899 |
|
|
}
|
1900 |
|
|
|
1901 |
9bfa1e39
|
Jaroslav Hrubý
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
1902 |
3e6b15a7
|
Lukáš Vlček
|
const localVarHeaderParameter = {} as any;
|
1903 |
|
|
const localVarQueryParameter = {} as any;
|
1904 |
|
|
|
1905 |
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1906 |
9bfa1e39
|
Jaroslav Hrubý
|
let headersFromBaseOptions =
|
1907 |
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1908 |
|
|
localVarRequestOptions.headers = {
|
1909 |
|
|
...localVarHeaderParameter,
|
1910 |
|
|
...headersFromBaseOptions,
|
1911 |
|
|
...options.headers,
|
1912 |
|
|
};
|
1913 |
3e6b15a7
|
Lukáš Vlček
|
|
1914 |
|
|
return {
|
1915 |
|
|
url: toPathString(localVarUrlObj),
|
1916 |
|
|
options: localVarRequestOptions,
|
1917 |
|
|
};
|
1918 |
|
|
},
|
1919 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1920 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1921 |
|
|
|
1922 |
|
|
/**
|
1923 |
|
|
* UserApi - functional programming interface
|
1924 |
|
|
* @export
|
1925 |
|
|
*/
|
1926 |
9bfa1e39
|
Jaroslav Hrubý
|
export const UserApiFp = function (configuration?: Configuration) {
|
1927 |
|
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
1928 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1929 |
|
|
/**
|
1930 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1931 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1932 |
|
|
* @throws {RequiredError}
|
1933 |
|
|
*/
|
1934 |
9bfa1e39
|
Jaroslav Hrubý
|
async userAnnotationsGet(
|
1935 |
|
|
options?: AxiosRequestConfig
|
1936 |
|
|
): Promise<
|
1937 |
|
|
(
|
1938 |
|
|
axios?: AxiosInstance,
|
1939 |
|
|
basePath?: string
|
1940 |
|
|
) => AxiosPromise<AnnotationListResponse>
|
1941 |
|
|
> {
|
1942 |
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userAnnotationsGet(
|
1943 |
|
|
options
|
1944 |
|
|
);
|
1945 |
|
|
return createRequestFunction(
|
1946 |
|
|
localVarAxiosArgs,
|
1947 |
|
|
globalAxios,
|
1948 |
|
|
BASE_PATH,
|
1949 |
|
|
configuration
|
1950 |
|
|
);
|
1951 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1952 |
|
|
/**
|
1953 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1954 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1955 |
|
|
* @throws {RequiredError}
|
1956 |
|
|
*/
|
1957 |
9bfa1e39
|
Jaroslav Hrubý
|
async usersGet(
|
1958 |
|
|
options?: AxiosRequestConfig
|
1959 |
|
|
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>> {
|
1960 |
3e6b15a7
|
Lukáš Vlček
|
const localVarAxiosArgs = await localVarAxiosParamCreator.usersGet(options);
|
1961 |
9bfa1e39
|
Jaroslav Hrubý
|
return createRequestFunction(
|
1962 |
|
|
localVarAxiosArgs,
|
1963 |
|
|
globalAxios,
|
1964 |
|
|
BASE_PATH,
|
1965 |
|
|
configuration
|
1966 |
|
|
);
|
1967 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1968 |
9bfa1e39
|
Jaroslav Hrubý
|
};
|
1969 |
3e6b15a7
|
Lukáš Vlček
|
};
|
1970 |
|
|
|
1971 |
|
|
/**
|
1972 |
|
|
* UserApi - factory interface
|
1973 |
|
|
* @export
|
1974 |
|
|
*/
|
1975 |
9bfa1e39
|
Jaroslav Hrubý
|
export const UserApiFactory = function (
|
1976 |
|
|
configuration?: Configuration,
|
1977 |
|
|
basePath?: string,
|
1978 |
|
|
axios?: AxiosInstance
|
1979 |
|
|
) {
|
1980 |
|
|
const localVarFp = UserApiFp(configuration);
|
1981 |
3e6b15a7
|
Lukáš Vlček
|
return {
|
1982 |
|
|
/**
|
1983 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1984 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1985 |
|
|
* @throws {RequiredError}
|
1986 |
|
|
*/
|
1987 |
|
|
userAnnotationsGet(options?: any): AxiosPromise<AnnotationListResponse> {
|
1988 |
9bfa1e39
|
Jaroslav Hrubý
|
return localVarFp
|
1989 |
|
|
.userAnnotationsGet(options)
|
1990 |
|
|
.then((request) => request(axios, basePath));
|
1991 |
3e6b15a7
|
Lukáš Vlček
|
},
|
1992 |
|
|
/**
|
1993 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
1994 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
1995 |
|
|
* @throws {RequiredError}
|
1996 |
|
|
*/
|
1997 |
|
|
usersGet(options?: any): AxiosPromise<UserList> {
|
1998 |
9bfa1e39
|
Jaroslav Hrubý
|
return localVarFp
|
1999 |
|
|
.usersGet(options)
|
2000 |
|
|
.then((request) => request(axios, basePath));
|
2001 |
3e6b15a7
|
Lukáš Vlček
|
},
|
2002 |
|
|
};
|
2003 |
|
|
};
|
2004 |
|
|
|
2005 |
|
|
/**
|
2006 |
|
|
* UserApi - object-oriented interface
|
2007 |
|
|
* @export
|
2008 |
|
|
* @class UserApi
|
2009 |
|
|
* @extends {BaseAPI}
|
2010 |
|
|
*/
|
2011 |
|
|
export class UserApi extends BaseAPI {
|
2012 |
|
|
/**
|
2013 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
2014 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2015 |
|
|
* @throws {RequiredError}
|
2016 |
|
|
* @memberof UserApi
|
2017 |
|
|
*/
|
2018 |
|
|
public userAnnotationsGet(options?: AxiosRequestConfig) {
|
2019 |
9bfa1e39
|
Jaroslav Hrubý
|
return UserApiFp(this.configuration)
|
2020 |
|
|
.userAnnotationsGet(options)
|
2021 |
|
|
.then((request) => request(this.axios, this.basePath));
|
2022 |
3e6b15a7
|
Lukáš Vlček
|
}
|
2023 |
|
|
|
2024 |
|
|
/**
|
2025 |
9bfa1e39
|
Jaroslav Hrubý
|
*
|
2026 |
3e6b15a7
|
Lukáš Vlček
|
* @param {*} [options] Override http request option.
|
2027 |
|
|
* @throws {RequiredError}
|
2028 |
|
|
* @memberof UserApi
|
2029 |
|
|
*/
|
2030 |
|
|
public usersGet(options?: AxiosRequestConfig) {
|
2031 |
9bfa1e39
|
Jaroslav Hrubý
|
return UserApiFp(this.configuration)
|
2032 |
|
|
.usersGet(options)
|
2033 |
|
|
.then((request) => request(this.axios, this.basePath));
|
2034 |
3e6b15a7
|
Lukáš Vlček
|
}
|
2035 |
|
|
}
|