Revize 3da573e6
Přidáno uživatelem Dominik Poch před téměř 3 roky(ů)
webapp/api/api.ts | ||
---|---|---|
21 | 21 |
// @ts-ignore |
22 | 22 |
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; |
23 | 23 |
|
24 |
/** |
|
25 |
* |
|
26 |
* @export |
|
27 |
* @interface AddNoteToAnnotationRequest |
|
28 |
*/ |
|
29 |
export interface AddNoteToAnnotationRequest { |
|
30 |
/** |
|
31 |
* |
|
32 |
* @type {string} |
|
33 |
* @memberof AddNoteToAnnotationRequest |
|
34 |
*/ |
|
35 |
'note'?: string | null; |
|
36 |
} |
|
37 |
/** |
|
38 |
* |
|
39 |
* @export |
|
40 |
* @interface AddNoteToTagOccurenceRequest |
|
41 |
*/ |
|
42 |
export interface AddNoteToTagOccurenceRequest { |
|
43 |
/** |
|
44 |
* |
|
45 |
* @type {string} |
|
46 |
* @memberof AddNoteToTagOccurenceRequest |
|
47 |
*/ |
|
48 |
'note'?: string | null; |
|
49 |
} |
|
24 | 50 |
/** |
25 | 51 |
* |
26 | 52 |
* @export |
... | ... | |
195 | 221 |
*/ |
196 | 222 |
'ip'?: string | null; |
197 | 223 |
} |
224 |
/** |
|
225 |
* |
|
226 |
* @export |
|
227 |
* @interface CreateCategoryRequest |
|
228 |
*/ |
|
229 |
export interface CreateCategoryRequest { |
|
230 |
/** |
|
231 |
* |
|
232 |
* @type {string} |
|
233 |
* @memberof CreateCategoryRequest |
|
234 |
*/ |
|
235 |
'name'?: string | null; |
|
236 |
/** |
|
237 |
* |
|
238 |
* @type {string} |
|
239 |
* @memberof CreateCategoryRequest |
|
240 |
*/ |
|
241 |
'description'?: string | null; |
|
242 |
/** |
|
243 |
* |
|
244 |
* @type {string} |
|
245 |
* @memberof CreateCategoryRequest |
|
246 |
*/ |
|
247 |
'color'?: string | null; |
|
248 |
/** |
|
249 |
* |
|
250 |
* @type {boolean} |
|
251 |
* @memberof CreateCategoryRequest |
|
252 |
*/ |
|
253 |
'disabledForAnnotators'?: boolean; |
|
254 |
} |
|
255 |
/** |
|
256 |
* |
|
257 |
* @export |
|
258 |
* @interface CreateSubTagRequest |
|
259 |
*/ |
|
260 |
export interface CreateSubTagRequest { |
|
261 |
/** |
|
262 |
* |
|
263 |
* @type {string} |
|
264 |
* @memberof CreateSubTagRequest |
|
265 |
*/ |
|
266 |
'name'?: string | null; |
|
267 |
/** |
|
268 |
* |
|
269 |
* @type {string} |
|
270 |
* @memberof CreateSubTagRequest |
|
271 |
*/ |
|
272 |
'description'?: string | null; |
|
273 |
/** |
|
274 |
* |
|
275 |
* @type {string} |
|
276 |
* @memberof CreateSubTagRequest |
|
277 |
*/ |
|
278 |
'tagId'?: string; |
|
279 |
} |
|
280 |
/** |
|
281 |
* |
|
282 |
* @export |
|
283 |
* @interface CreateTagRequest |
|
284 |
*/ |
|
285 |
export interface CreateTagRequest { |
|
286 |
/** |
|
287 |
* |
|
288 |
* @type {string} |
|
289 |
* @memberof CreateTagRequest |
|
290 |
*/ |
|
291 |
'categoryId'?: string; |
|
292 |
/** |
|
293 |
* |
|
294 |
* @type {string} |
|
295 |
* @memberof CreateTagRequest |
|
296 |
*/ |
|
297 |
'name'?: string | null; |
|
298 |
/** |
|
299 |
* |
|
300 |
* @type {string} |
|
301 |
* @memberof CreateTagRequest |
|
302 |
*/ |
|
303 |
'description'?: string | null; |
|
304 |
/** |
|
305 |
* |
|
306 |
* @type {string} |
|
307 |
* @memberof CreateTagRequest |
|
308 |
*/ |
|
309 |
'color'?: string | null; |
|
310 |
} |
|
198 | 311 |
/** |
199 | 312 |
* |
200 | 313 |
* @export |
... | ... | |
422 | 535 |
*/ |
423 | 536 |
'role'?: ERole; |
424 | 537 |
} |
538 |
/** |
|
539 |
* |
|
540 |
* @export |
|
541 |
* @interface ModifyCategoryRequest |
|
542 |
*/ |
|
543 |
export interface ModifyCategoryRequest { |
|
544 |
/** |
|
545 |
* |
|
546 |
* @type {string} |
|
547 |
* @memberof ModifyCategoryRequest |
|
548 |
*/ |
|
549 |
'name'?: string | null; |
|
550 |
/** |
|
551 |
* |
|
552 |
* @type {string} |
|
553 |
* @memberof ModifyCategoryRequest |
|
554 |
*/ |
|
555 |
'description'?: string | null; |
|
556 |
/** |
|
557 |
* |
|
558 |
* @type {string} |
|
559 |
* @memberof ModifyCategoryRequest |
|
560 |
*/ |
|
561 |
'color'?: string | null; |
|
562 |
/** |
|
563 |
* |
|
564 |
* @type {boolean} |
|
565 |
* @memberof ModifyCategoryRequest |
|
566 |
*/ |
|
567 |
'disabledForAnnotators'?: boolean | null; |
|
568 |
} |
|
569 |
/** |
|
570 |
* |
|
571 |
* @export |
|
572 |
* @interface ModifySubTagRequest |
|
573 |
*/ |
|
574 |
export interface ModifySubTagRequest { |
|
575 |
/** |
|
576 |
* |
|
577 |
* @type {string} |
|
578 |
* @memberof ModifySubTagRequest |
|
579 |
*/ |
|
580 |
'name'?: string | null; |
|
581 |
/** |
|
582 |
* |
|
583 |
* @type {string} |
|
584 |
* @memberof ModifySubTagRequest |
|
585 |
*/ |
|
586 |
'description'?: string | null; |
|
587 |
} |
|
588 |
/** |
|
589 |
* |
|
590 |
* @export |
|
591 |
* @interface ModifyTagRequest |
|
592 |
*/ |
|
593 |
export interface ModifyTagRequest { |
|
594 |
/** |
|
595 |
* |
|
596 |
* @type {string} |
|
597 |
* @memberof ModifyTagRequest |
|
598 |
*/ |
|
599 |
'name'?: string | null; |
|
600 |
/** |
|
601 |
* |
|
602 |
* @type {string} |
|
603 |
* @memberof ModifyTagRequest |
|
604 |
*/ |
|
605 |
'description'?: string | null; |
|
606 |
/** |
|
607 |
* |
|
608 |
* @type {string} |
|
609 |
* @memberof ModifyTagRequest |
|
610 |
*/ |
|
611 |
'color'?: string | null; |
|
612 |
} |
|
425 | 613 |
/** |
426 | 614 |
* |
427 | 615 |
* @export |
... | ... | |
522 | 710 |
* @memberof TagCategoryInfo |
523 | 711 |
*/ |
524 | 712 |
'tags'?: Array<TagInfo> | null; |
713 |
/** |
|
714 |
* |
|
715 |
* @type {boolean} |
|
716 |
* @memberof TagCategoryInfo |
|
717 |
*/ |
|
718 |
'disabledForAnnotators'?: boolean; |
|
525 | 719 |
} |
526 | 720 |
/** |
527 | 721 |
* |
... | ... | |
767 | 961 |
options: localVarRequestOptions, |
768 | 962 |
}; |
769 | 963 |
}, |
964 |
/** |
|
965 |
* |
|
966 |
* @param {string} annotationId |
|
967 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] |
|
968 |
* @param {*} [options] Override http request option. |
|
969 |
* @throws {RequiredError} |
|
970 |
*/ |
|
971 |
annotationAnnotationIdNotePost: async (annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
972 |
// verify required parameter 'annotationId' is not null or undefined |
|
973 |
assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId) |
|
974 |
const localVarPath = `/annotation/{annotationId}/note` |
|
975 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))); |
|
976 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
977 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
978 |
let baseOptions; |
|
979 |
if (configuration) { |
|
980 |
baseOptions = configuration.baseOptions; |
|
981 |
} |
|
982 |
|
|
983 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
984 |
const localVarHeaderParameter = {} as any; |
|
985 |
const localVarQueryParameter = {} as any; |
|
986 |
|
|
987 |
|
|
988 |
|
|
989 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
990 |
|
|
991 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
992 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
993 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
994 |
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration) |
|
995 |
|
|
996 |
return { |
|
997 |
url: toPathString(localVarUrlObj), |
|
998 |
options: localVarRequestOptions, |
|
999 |
}; |
|
1000 |
}, |
|
770 | 1001 |
/** |
771 | 1002 |
* |
772 | 1003 |
* @param {string} annotationId |
... | ... | |
841 | 1072 |
options: localVarRequestOptions, |
842 | 1073 |
}; |
843 | 1074 |
}, |
1075 |
/** |
|
1076 |
* |
|
1077 |
* @param {string} annotationId |
|
1078 |
* @param {string} occurenceId |
|
1079 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1080 |
* @param {*} [options] Override http request option. |
|
1081 |
* @throws {RequiredError} |
|
1082 |
*/ |
|
1083 |
annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1084 |
// verify required parameter 'annotationId' is not null or undefined |
|
1085 |
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId) |
|
1086 |
// verify required parameter 'occurenceId' is not null or undefined |
|
1087 |
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId) |
|
1088 |
const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note` |
|
1089 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))) |
|
1090 |
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId))); |
|
1091 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1092 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1093 |
let baseOptions; |
|
1094 |
if (configuration) { |
|
1095 |
baseOptions = configuration.baseOptions; |
|
1096 |
} |
|
1097 |
|
|
1098 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
1099 |
const localVarHeaderParameter = {} as any; |
|
1100 |
const localVarQueryParameter = {} as any; |
|
1101 |
|
|
1102 |
|
|
1103 |
|
|
1104 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1105 |
|
|
1106 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1107 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1108 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1109 |
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration) |
|
1110 |
|
|
1111 |
return { |
|
1112 |
url: toPathString(localVarUrlObj), |
|
1113 |
options: localVarRequestOptions, |
|
1114 |
}; |
|
1115 |
}, |
|
844 | 1116 |
/** |
845 | 1117 |
* |
846 | 1118 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
... | ... | |
894 | 1166 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options); |
895 | 1167 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
896 | 1168 |
}, |
1169 |
/** |
|
1170 |
* |
|
1171 |
* @param {string} annotationId |
|
1172 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] |
|
1173 |
* @param {*} [options] Override http request option. |
|
1174 |
* @throws {RequiredError} |
|
1175 |
*/ |
|
1176 |
async annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1177 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options); |
|
1178 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1179 |
}, |
|
897 | 1180 |
/** |
898 | 1181 |
* |
899 | 1182 |
* @param {string} annotationId |
... | ... | |
916 | 1199 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options); |
917 | 1200 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
918 | 1201 |
}, |
1202 |
/** |
|
1203 |
* |
|
1204 |
* @param {string} annotationId |
|
1205 |
* @param {string} occurenceId |
|
1206 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1207 |
* @param {*} [options] Override http request option. |
|
1208 |
* @throws {RequiredError} |
|
1209 |
*/ |
|
1210 |
async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1211 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options); |
|
1212 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1213 |
}, |
|
919 | 1214 |
/** |
920 | 1215 |
* |
921 | 1216 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
... | ... | |
945 | 1240 |
annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> { |
946 | 1241 |
return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath)); |
947 | 1242 |
}, |
1243 |
/** |
|
1244 |
* |
|
1245 |
* @param {string} annotationId |
|
1246 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] |
|
1247 |
* @param {*} [options] Override http request option. |
|
1248 |
* @throws {RequiredError} |
|
1249 |
*/ |
|
1250 |
annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> { |
|
1251 |
return localVarFp.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath)); |
|
1252 |
}, |
|
948 | 1253 |
/** |
949 | 1254 |
* |
950 | 1255 |
* @param {string} annotationId |
... | ... | |
965 | 1270 |
annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> { |
966 | 1271 |
return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath)); |
967 | 1272 |
}, |
1273 |
/** |
|
1274 |
* |
|
1275 |
* @param {string} annotationId |
|
1276 |
* @param {string} occurenceId |
|
1277 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1278 |
* @param {*} [options] Override http request option. |
|
1279 |
* @throws {RequiredError} |
|
1280 |
*/ |
|
1281 |
annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> { |
|
1282 |
return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath)); |
|
1283 |
}, |
|
968 | 1284 |
/** |
969 | 1285 |
* |
970 | 1286 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
... | ... | |
998 | 1314 |
/** |
999 | 1315 |
* |
1000 | 1316 |
* @param {string} annotationId |
1001 |
* @param {string} occurenceId
|
|
1317 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
|
1002 | 1318 |
* @param {*} [options] Override http request option. |
1003 | 1319 |
* @throws {RequiredError} |
1004 | 1320 |
* @memberof AnnotationApi |
1005 | 1321 |
*/ |
1006 |
public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) {
|
|
1007 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath));
|
|
1322 |
public annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) {
|
|
1323 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1008 | 1324 |
} |
1009 | 1325 |
|
1010 | 1326 |
/** |
1011 | 1327 |
* |
1012 | 1328 |
* @param {string} annotationId |
1013 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] |
|
1329 |
* @param {string} occurenceId |
|
1330 |
* @param {*} [options] Override http request option. |
|
1331 |
* @throws {RequiredError} |
|
1332 |
* @memberof AnnotationApi |
|
1333 |
*/ |
|
1334 |
public annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig) { |
|
1335 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options).then((request) => request(this.axios, this.basePath)); |
|
1336 |
} |
|
1337 |
|
|
1338 |
/** |
|
1339 |
* |
|
1340 |
* @param {string} annotationId |
|
1341 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] |
|
1014 | 1342 |
* @param {*} [options] Override http request option. |
1015 | 1343 |
* @throws {RequiredError} |
1016 | 1344 |
* @memberof AnnotationApi |
... | ... | |
1019 | 1347 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath)); |
1020 | 1348 |
} |
1021 | 1349 |
|
1350 |
/** |
|
1351 |
* |
|
1352 |
* @param {string} annotationId |
|
1353 |
* @param {string} occurenceId |
|
1354 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1355 |
* @param {*} [options] Override http request option. |
|
1356 |
* @throws {RequiredError} |
|
1357 |
* @memberof AnnotationApi |
|
1358 |
*/ |
|
1359 |
public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) { |
|
1360 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath)); |
|
1361 |
} |
|
1362 |
|
|
1022 | 1363 |
/** |
1023 | 1364 |
* |
1024 | 1365 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
... | ... | |
1424 | 1765 |
*/ |
1425 | 1766 |
export const TagApiAxiosParamCreator = function (configuration?: Configuration) { |
1426 | 1767 |
return { |
1768 |
/** |
|
1769 |
* |
|
1770 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
1771 |
* @param {*} [options] Override http request option. |
|
1772 |
* @throws {RequiredError} |
|
1773 |
*/ |
|
1774 |
categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1775 |
const localVarPath = `/categories`; |
|
1776 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1777 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1778 |
let baseOptions; |
|
1779 |
if (configuration) { |
|
1780 |
baseOptions = configuration.baseOptions; |
|
1781 |
} |
|
1782 |
|
|
1783 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
1784 |
const localVarHeaderParameter = {} as any; |
|
1785 |
const localVarQueryParameter = {} as any; |
|
1786 |
|
|
1787 |
|
|
1788 |
|
|
1789 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1790 |
|
|
1791 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1792 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1793 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1794 |
localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration) |
|
1795 |
|
|
1796 |
return { |
|
1797 |
url: toPathString(localVarUrlObj), |
|
1798 |
options: localVarRequestOptions, |
|
1799 |
}; |
|
1800 |
}, |
|
1801 |
/** |
|
1802 |
* |
|
1803 |
* @param {string} categoryId |
|
1804 |
* @param {*} [options] Override http request option. |
|
1805 |
* @throws {RequiredError} |
|
1806 |
*/ |
|
1807 |
categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1808 |
// verify required parameter 'categoryId' is not null or undefined |
|
1809 |
assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId) |
|
1810 |
const localVarPath = `/category/{categoryId}` |
|
1811 |
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId))); |
|
1812 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1813 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1814 |
let baseOptions; |
|
1815 |
if (configuration) { |
|
1816 |
baseOptions = configuration.baseOptions; |
|
1817 |
} |
|
1818 |
|
|
1819 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; |
|
1820 |
const localVarHeaderParameter = {} as any; |
|
1821 |
const localVarQueryParameter = {} as any; |
|
1822 |
|
|
1823 |
|
|
1824 |
|
|
1825 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1826 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1827 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1828 |
|
|
1829 |
return { |
|
1830 |
url: toPathString(localVarUrlObj), |
|
1831 |
options: localVarRequestOptions, |
|
1832 |
}; |
|
1833 |
}, |
|
1834 |
/** |
|
1835 |
* |
|
1836 |
* @param {string} categoryId |
|
1837 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
1838 |
* @param {*} [options] Override http request option. |
|
1839 |
* @throws {RequiredError} |
|
1840 |
*/ |
|
1841 |
categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1842 |
// verify required parameter 'categoryId' is not null or undefined |
|
1843 |
assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId) |
|
1844 |
const localVarPath = `/category/{categoryId}` |
|
1845 |
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId))); |
|
1846 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1847 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1848 |
let baseOptions; |
|
1849 |
if (configuration) { |
|
1850 |
baseOptions = configuration.baseOptions; |
|
1851 |
} |
|
1852 |
|
|
1853 |
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; |
|
1854 |
const localVarHeaderParameter = {} as any; |
|
1855 |
const localVarQueryParameter = {} as any; |
|
1856 |
|
|
1857 |
|
|
1858 |
|
|
1859 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1860 |
|
|
1861 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1862 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1863 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1864 |
localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration) |
|
1865 |
|
|
1866 |
return { |
|
1867 |
url: toPathString(localVarUrlObj), |
|
1868 |
options: localVarRequestOptions, |
|
1869 |
}; |
|
1870 |
}, |
|
1871 |
/** |
|
1872 |
* |
|
1873 |
* @param {string} subtagId |
|
1874 |
* @param {*} [options] Override http request option. |
|
1875 |
* @throws {RequiredError} |
|
1876 |
*/ |
|
1877 |
subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1878 |
// verify required parameter 'subtagId' is not null or undefined |
|
1879 |
assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId) |
|
1880 |
const localVarPath = `/subtag/{subtagId}` |
|
1881 |
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId))); |
|
1882 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1883 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1884 |
let baseOptions; |
|
1885 |
if (configuration) { |
|
1886 |
baseOptions = configuration.baseOptions; |
|
1887 |
} |
|
1888 |
|
|
1889 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; |
|
1890 |
const localVarHeaderParameter = {} as any; |
|
1891 |
const localVarQueryParameter = {} as any; |
|
1892 |
|
|
1893 |
|
|
1894 |
|
|
1895 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1896 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1897 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1898 |
|
|
1899 |
return { |
|
1900 |
url: toPathString(localVarUrlObj), |
|
1901 |
options: localVarRequestOptions, |
|
1902 |
}; |
|
1903 |
}, |
|
1904 |
/** |
|
1905 |
* |
|
1906 |
* @param {string} subtagId |
|
1907 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
1908 |
* @param {*} [options] Override http request option. |
|
1909 |
* @throws {RequiredError} |
|
1910 |
*/ |
|
1911 |
subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1912 |
// verify required parameter 'subtagId' is not null or undefined |
|
1913 |
assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId) |
|
1914 |
const localVarPath = `/subtag/{subtagId}` |
|
1915 |
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId))); |
|
1916 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1917 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1918 |
let baseOptions; |
|
1919 |
if (configuration) { |
|
1920 |
baseOptions = configuration.baseOptions; |
|
1921 |
} |
|
1922 |
|
|
1923 |
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; |
|
1924 |
const localVarHeaderParameter = {} as any; |
|
1925 |
const localVarQueryParameter = {} as any; |
|
1926 |
|
|
1927 |
|
|
1928 |
|
|
1929 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1930 |
|
|
1931 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1932 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1933 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1934 |
localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration) |
|
1935 |
|
|
1936 |
return { |
|
1937 |
url: toPathString(localVarUrlObj), |
|
1938 |
options: localVarRequestOptions, |
|
1939 |
}; |
|
1940 |
}, |
|
1941 |
/** |
|
1942 |
* |
|
1943 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
1944 |
* @param {*} [options] Override http request option. |
|
1945 |
* @throws {RequiredError} |
|
1946 |
*/ |
|
1947 |
subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1948 |
const localVarPath = `/subtags`; |
|
1949 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1950 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1951 |
let baseOptions; |
|
1952 |
if (configuration) { |
|
1953 |
baseOptions = configuration.baseOptions; |
|
1954 |
} |
|
1955 |
|
|
1956 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
1957 |
const localVarHeaderParameter = {} as any; |
|
1958 |
const localVarQueryParameter = {} as any; |
|
1959 |
|
|
1960 |
|
|
1961 |
|
|
1962 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1963 |
|
|
1964 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1965 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1966 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1967 |
localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration) |
|
1968 |
|
|
1969 |
return { |
|
1970 |
url: toPathString(localVarUrlObj), |
|
1971 |
options: localVarRequestOptions, |
|
1972 |
}; |
|
1973 |
}, |
|
1974 |
/** |
|
1975 |
* |
|
1976 |
* @param {string} tagId |
|
1977 |
* @param {*} [options] Override http request option. |
|
1978 |
* @throws {RequiredError} |
|
1979 |
*/ |
|
1980 |
tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1981 |
// verify required parameter 'tagId' is not null or undefined |
|
1982 |
assertParamExists('tagTagIdDelete', 'tagId', tagId) |
|
1983 |
const localVarPath = `/tag/{tagId}` |
|
1984 |
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId))); |
|
1985 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1986 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1987 |
let baseOptions; |
|
1988 |
if (configuration) { |
|
1989 |
baseOptions = configuration.baseOptions; |
|
1990 |
} |
|
1991 |
|
|
1992 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; |
|
1993 |
const localVarHeaderParameter = {} as any; |
|
1994 |
const localVarQueryParameter = {} as any; |
|
1995 |
|
|
1996 |
|
|
1997 |
|
|
1998 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1999 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2000 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2001 |
|
|
2002 |
return { |
|
2003 |
url: toPathString(localVarUrlObj), |
|
2004 |
options: localVarRequestOptions, |
|
2005 |
}; |
|
2006 |
}, |
|
2007 |
/** |
|
2008 |
* |
|
2009 |
* @param {string} tagId |
|
2010 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2011 |
* @param {*} [options] Override http request option. |
|
2012 |
* @throws {RequiredError} |
|
2013 |
*/ |
|
2014 |
tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2015 |
// verify required parameter 'tagId' is not null or undefined |
|
2016 |
assertParamExists('tagTagIdPut', 'tagId', tagId) |
|
2017 |
const localVarPath = `/tag/{tagId}` |
|
2018 |
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId))); |
|
2019 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2020 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2021 |
let baseOptions; |
|
2022 |
if (configuration) { |
|
2023 |
baseOptions = configuration.baseOptions; |
|
2024 |
} |
|
2025 |
|
|
2026 |
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; |
|
2027 |
const localVarHeaderParameter = {} as any; |
|
2028 |
const localVarQueryParameter = {} as any; |
|
2029 |
|
|
2030 |
|
|
2031 |
|
|
2032 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
2033 |
|
|
2034 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2035 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2036 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2037 |
localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration) |
|
2038 |
|
|
2039 |
return { |
|
2040 |
url: toPathString(localVarUrlObj), |
|
2041 |
options: localVarRequestOptions, |
|
2042 |
}; |
|
2043 |
}, |
|
1427 | 2044 |
/** |
1428 | 2045 |
* |
1429 | 2046 |
* @param {*} [options] Override http request option. |
... | ... | |
1448 | 2065 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
1449 | 2066 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
1450 | 2067 |
|
2068 |
return { |
|
2069 |
url: toPathString(localVarUrlObj), |
|
2070 |
options: localVarRequestOptions, |
|
2071 |
}; |
|
2072 |
}, |
|
2073 |
/** |
|
2074 |
* |
|
2075 |
* @param {CreateTagRequest} [createTagRequest] |
|
2076 |
* @param {*} [options] Override http request option. |
|
2077 |
* @throws {RequiredError} |
|
2078 |
*/ |
|
2079 |
tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2080 |
const localVarPath = `/tags`; |
|
2081 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2082 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2083 |
let baseOptions; |
|
2084 |
if (configuration) { |
|
2085 |
baseOptions = configuration.baseOptions; |
|
2086 |
} |
|
2087 |
|
|
2088 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
2089 |
const localVarHeaderParameter = {} as any; |
|
2090 |
const localVarQueryParameter = {} as any; |
|
2091 |
|
|
2092 |
|
|
2093 |
|
|
2094 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
2095 |
|
|
2096 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2097 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2098 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2099 |
localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration) |
|
2100 |
|
|
1451 | 2101 |
return { |
1452 | 2102 |
url: toPathString(localVarUrlObj), |
1453 | 2103 |
options: localVarRequestOptions, |
... | ... | |
1463 | 2113 |
export const TagApiFp = function(configuration?: Configuration) { |
1464 | 2114 |
const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration) |
1465 | 2115 |
return { |
2116 |
/** |
|
2117 |
* |
|
2118 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
2119 |
* @param {*} [options] Override http request option. |
|
2120 |
* @throws {RequiredError} |
|
2121 |
*/ |
|
2122 |
async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2123 |
const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options); |
|
2124 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2125 |
}, |
|
2126 |
/** |
|
2127 |
* |
|
2128 |
* @param {string} categoryId |
|
2129 |
* @param {*} [options] Override http request option. |
|
2130 |
* @throws {RequiredError} |
|
2131 |
*/ |
|
2132 |
async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2133 |
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options); |
|
2134 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2135 |
}, |
|
2136 |
/** |
|
2137 |
* |
|
2138 |
* @param {string} categoryId |
|
2139 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
2140 |
* @param {*} [options] Override http request option. |
|
2141 |
* @throws {RequiredError} |
|
2142 |
*/ |
|
2143 |
async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2144 |
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options); |
|
2145 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2146 |
}, |
|
2147 |
/** |
|
2148 |
* |
|
2149 |
* @param {string} subtagId |
|
2150 |
* @param {*} [options] Override http request option. |
|
2151 |
* @throws {RequiredError} |
|
2152 |
*/ |
|
2153 |
async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2154 |
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options); |
|
2155 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2156 |
}, |
|
2157 |
/** |
|
2158 |
* |
|
2159 |
* @param {string} subtagId |
|
2160 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
2161 |
* @param {*} [options] Override http request option. |
|
2162 |
* @throws {RequiredError} |
|
2163 |
*/ |
|
2164 |
async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2165 |
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options); |
|
2166 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2167 |
}, |
|
2168 |
/** |
|
2169 |
* |
|
2170 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
2171 |
* @param {*} [options] Override http request option. |
|
2172 |
* @throws {RequiredError} |
|
2173 |
*/ |
|
2174 |
async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2175 |
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options); |
|
2176 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2177 |
}, |
|
2178 |
/** |
|
2179 |
* |
|
2180 |
* @param {string} tagId |
|
2181 |
* @param {*} [options] Override http request option. |
|
2182 |
* @throws {RequiredError} |
|
2183 |
*/ |
|
2184 |
async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2185 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options); |
|
2186 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2187 |
}, |
|
2188 |
/** |
|
2189 |
* |
|
2190 |
* @param {string} tagId |
|
2191 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2192 |
* @param {*} [options] Override http request option. |
|
2193 |
* @throws {RequiredError} |
|
2194 |
*/ |
|
2195 |
async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2196 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options); |
|
2197 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2198 |
}, |
|
1466 | 2199 |
/** |
1467 | 2200 |
* |
1468 | 2201 |
* @param {*} [options] Override http request option. |
... | ... | |
1472 | 2205 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options); |
1473 | 2206 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
1474 | 2207 |
}, |
2208 |
/** |
|
2209 |
* |
|
2210 |
* @param {CreateTagRequest} [createTagRequest] |
|
2211 |
* @param {*} [options] Override http request option. |
|
2212 |
* @throws {RequiredError} |
|
2213 |
*/ |
|
2214 |
async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2215 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options); |
|
2216 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2217 |
}, |
|
1475 | 2218 |
} |
1476 | 2219 |
}; |
1477 | 2220 |
|
... | ... | |
1482 | 2225 |
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
1483 | 2226 |
const localVarFp = TagApiFp(configuration) |
1484 | 2227 |
return { |
2228 |
/** |
|
2229 |
* |
|
2230 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
2231 |
* @param {*} [options] Override http request option. |
|
2232 |
* @throws {RequiredError} |
|
2233 |
*/ |
|
2234 |
categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> { |
|
2235 |
return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath)); |
|
2236 |
}, |
|
2237 |
/** |
|
2238 |
* |
|
2239 |
* @param {string} categoryId |
|
2240 |
* @param {*} [options] Override http request option. |
|
2241 |
* @throws {RequiredError} |
|
2242 |
*/ |
|
2243 |
categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> { |
|
2244 |
return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath)); |
|
2245 |
}, |
|
2246 |
/** |
|
2247 |
* |
|
2248 |
* @param {string} categoryId |
|
2249 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
2250 |
* @param {*} [options] Override http request option. |
|
2251 |
* @throws {RequiredError} |
|
2252 |
*/ |
|
2253 |
categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> { |
|
2254 |
return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath)); |
|
2255 |
}, |
|
2256 |
/** |
|
2257 |
* |
|
2258 |
* @param {string} subtagId |
|
2259 |
* @param {*} [options] Override http request option. |
|
2260 |
* @throws {RequiredError} |
|
2261 |
*/ |
|
2262 |
subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> { |
|
2263 |
return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath)); |
|
2264 |
}, |
|
2265 |
/** |
|
2266 |
* |
|
2267 |
* @param {string} subtagId |
|
2268 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
2269 |
* @param {*} [options] Override http request option. |
|
2270 |
* @throws {RequiredError} |
|
2271 |
*/ |
|
2272 |
subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> { |
|
2273 |
return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath)); |
|
2274 |
}, |
|
2275 |
/** |
|
2276 |
* |
|
2277 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
2278 |
* @param {*} [options] Override http request option. |
|
2279 |
* @throws {RequiredError} |
|
2280 |
*/ |
|
2281 |
subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> { |
|
2282 |
return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath)); |
|
2283 |
}, |
|
2284 |
/** |
|
2285 |
* |
|
2286 |
* @param {string} tagId |
|
2287 |
* @param {*} [options] Override http request option. |
|
2288 |
* @throws {RequiredError} |
|
2289 |
*/ |
|
2290 |
tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> { |
|
2291 |
return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath)); |
|
2292 |
}, |
|
2293 |
/** |
|
2294 |
* |
|
2295 |
* @param {string} tagId |
|
2296 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2297 |
* @param {*} [options] Override http request option. |
|
2298 |
* @throws {RequiredError} |
|
2299 |
*/ |
|
2300 |
tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> { |
|
2301 |
return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath)); |
|
2302 |
}, |
|
1485 | 2303 |
/** |
1486 | 2304 |
* |
1487 | 2305 |
* @param {*} [options] Override http request option. |
... | ... | |
1490 | 2308 |
tagsGet(options?: any): AxiosPromise<TagTreeResponse> { |
1491 | 2309 |
return localVarFp.tagsGet(options).then((request) => request(axios, basePath)); |
1492 | 2310 |
}, |
2311 |
/** |
|
2312 |
* |
|
2313 |
* @param {CreateTagRequest} [createTagRequest] |
|
2314 |
* @param {*} [options] Override http request option. |
|
2315 |
* @throws {RequiredError} |
|
2316 |
*/ |
|
2317 |
tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> { |
|
2318 |
return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath)); |
|
2319 |
}, |
|
1493 | 2320 |
}; |
1494 | 2321 |
}; |
1495 | 2322 |
|
... | ... | |
1500 | 2327 |
* @extends {BaseAPI} |
1501 | 2328 |
*/ |
1502 | 2329 |
export class TagApi extends BaseAPI { |
2330 |
/** |
|
2331 |
* |
|
2332 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
2333 |
* @param {*} [options] Override http request option. |
|
2334 |
* @throws {RequiredError} |
|
2335 |
* @memberof TagApi |
|
2336 |
*/ |
|
2337 |
public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) { |
|
2338 |
return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2339 |
} |
|
2340 |
|
|
2341 |
/** |
|
2342 |
* |
|
2343 |
* @param {string} categoryId |
|
2344 |
* @param {*} [options] Override http request option. |
|
2345 |
* @throws {RequiredError} |
|
2346 |
* @memberof TagApi |
|
2347 |
*/ |
|
2348 |
public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) { |
|
2349 |
return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath)); |
|
2350 |
} |
|
2351 |
|
|
2352 |
/** |
|
2353 |
* |
|
2354 |
* @param {string} categoryId |
|
2355 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
2356 |
* @param {*} [options] Override http request option. |
|
2357 |
* @throws {RequiredError} |
|
2358 |
* @memberof TagApi |
|
2359 |
*/ |
|
2360 |
public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) { |
|
2361 |
return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2362 |
} |
|
2363 |
|
|
2364 |
/** |
|
2365 |
* |
|
2366 |
* @param {string} subtagId |
|
2367 |
* @param {*} [options] Override http request option. |
|
2368 |
* @throws {RequiredError} |
|
2369 |
* @memberof TagApi |
|
2370 |
*/ |
|
2371 |
public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) { |
|
2372 |
return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath)); |
|
2373 |
} |
|
2374 |
|
|
2375 |
/** |
|
2376 |
* |
|
2377 |
* @param {string} subtagId |
|
2378 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
2379 |
* @param {*} [options] Override http request option. |
|
2380 |
* @throws {RequiredError} |
|
2381 |
* @memberof TagApi |
|
2382 |
*/ |
|
2383 |
public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) { |
|
2384 |
return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2385 |
} |
|
2386 |
|
|
2387 |
/** |
|
2388 |
* |
|
2389 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
2390 |
* @param {*} [options] Override http request option. |
|
2391 |
* @throws {RequiredError} |
|
2392 |
* @memberof TagApi |
|
2393 |
*/ |
|
2394 |
public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) { |
|
2395 |
return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2396 |
} |
|
2397 |
|
|
2398 |
/** |
|
2399 |
* |
|
2400 |
* @param {string} tagId |
|
2401 |
* @param {*} [options] Override http request option. |
|
2402 |
* @throws {RequiredError} |
|
2403 |
* @memberof TagApi |
|
2404 |
*/ |
|
2405 |
public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) { |
|
2406 |
return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath)); |
|
2407 |
} |
|
2408 |
|
|
2409 |
/** |
|
2410 |
* |
|
2411 |
* @param {string} tagId |
|
2412 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2413 |
* @param {*} [options] Override http request option. |
|
2414 |
* @throws {RequiredError} |
|
2415 |
* @memberof TagApi |
|
2416 |
*/ |
|
2417 |
public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) { |
|
2418 |
return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2419 |
} |
|
2420 |
|
|
1503 | 2421 |
/** |
1504 | 2422 |
* |
1505 | 2423 |
* @param {*} [options] Override http request option. |
... | ... | |
1509 | 2427 |
public tagsGet(options?: AxiosRequestConfig) { |
1510 | 2428 |
return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath)); |
1511 | 2429 |
} |
2430 |
|
|
2431 |
/** |
|
2432 |
* |
|
2433 |
* @param {CreateTagRequest} [createTagRequest] |
|
2434 |
* @param {*} [options] Override http request option. |
|
2435 |
* @throws {RequiredError} |
|
2436 |
* @memberof TagApi |
|
2437 |
*/ |
|
2438 |
public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) { |
|
2439 |
return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2440 |
} |
|
1512 | 2441 |
} |
1513 | 2442 |
|
1514 | 2443 |
|
Také k dispozici: Unified diff
Generated new api version