Revize bcbaa7d3
Přidáno uživatelem Dominik Poch před asi 2 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 |
* @type {boolean} |
|
282 |
* @memberof CreateSubTagRequest |
|
283 |
*/ |
|
284 |
'sentimentEnabled'?: boolean; |
|
285 |
} |
|
286 |
/** |
|
287 |
* |
|
288 |
* @export |
|
289 |
* @interface CreateTagRequest |
|
290 |
*/ |
|
291 |
export interface CreateTagRequest { |
|
292 |
/** |
|
293 |
* |
|
294 |
* @type {string} |
|
295 |
* @memberof CreateTagRequest |
|
296 |
*/ |
|
297 |
'categoryId'?: string; |
|
298 |
/** |
|
299 |
* |
|
300 |
* @type {string} |
|
301 |
* @memberof CreateTagRequest |
|
302 |
*/ |
|
303 |
'name'?: string | null; |
|
304 |
/** |
|
305 |
* |
|
306 |
* @type {string} |
|
307 |
* @memberof CreateTagRequest |
|
308 |
*/ |
|
309 |
'description'?: string | null; |
|
310 |
/** |
|
311 |
* |
|
312 |
* @type {string} |
|
313 |
* @memberof CreateTagRequest |
|
314 |
*/ |
|
315 |
'color'?: string | null; |
|
316 |
/** |
|
317 |
* |
|
318 |
* @type {boolean} |
|
319 |
* @memberof CreateTagRequest |
|
320 |
*/ |
|
321 |
'sentimentEnabled'?: boolean; |
|
322 |
} |
|
198 | 323 |
/** |
199 | 324 |
* |
200 | 325 |
* @export |
... | ... | |
358 | 483 |
export type EState = typeof EState[keyof typeof EState]; |
359 | 484 |
|
360 | 485 |
|
486 |
/** |
|
487 |
* |
|
488 |
* @export |
|
489 |
* @enum {string} |
|
490 |
*/ |
|
491 |
|
|
492 |
export const ETagSentiment = { |
|
493 |
Neutral: 'NEUTRAL', |
|
494 |
Positive: 'POSITIVE', |
|
495 |
Negative: 'NEGATIVE' |
|
496 |
} as const; |
|
497 |
|
|
498 |
export type ETagSentiment = typeof ETagSentiment[keyof typeof ETagSentiment]; |
|
499 |
|
|
500 |
|
|
361 | 501 |
/** |
362 | 502 |
* |
363 | 503 |
* @export |
... | ... | |
422 | 562 |
*/ |
423 | 563 |
'role'?: ERole; |
424 | 564 |
} |
565 |
/** |
|
566 |
* |
|
567 |
* @export |
|
568 |
* @interface ModifyCategoryRequest |
|
569 |
*/ |
|
570 |
export interface ModifyCategoryRequest { |
|
571 |
/** |
|
572 |
* |
|
573 |
* @type {string} |
|
574 |
* @memberof ModifyCategoryRequest |
|
575 |
*/ |
|
576 |
'name'?: string | null; |
|
577 |
/** |
|
578 |
* |
|
579 |
* @type {string} |
|
580 |
* @memberof ModifyCategoryRequest |
|
581 |
*/ |
|
582 |
'description'?: string | null; |
|
583 |
/** |
|
584 |
* |
|
585 |
* @type {string} |
|
586 |
* @memberof ModifyCategoryRequest |
|
587 |
*/ |
|
588 |
'color'?: string | null; |
|
589 |
/** |
|
590 |
* |
|
591 |
* @type {boolean} |
|
592 |
* @memberof ModifyCategoryRequest |
|
593 |
*/ |
|
594 |
'disabledForAnnotators'?: boolean | null; |
|
595 |
} |
|
596 |
/** |
|
597 |
* |
|
598 |
* @export |
|
599 |
* @interface ModifySubTagRequest |
|
600 |
*/ |
|
601 |
export interface ModifySubTagRequest { |
|
602 |
/** |
|
603 |
* |
|
604 |
* @type {string} |
|
605 |
* @memberof ModifySubTagRequest |
|
606 |
*/ |
|
607 |
'name'?: string | null; |
|
608 |
/** |
|
609 |
* |
|
610 |
* @type {string} |
|
611 |
* @memberof ModifySubTagRequest |
|
612 |
*/ |
|
613 |
'description'?: string | null; |
|
614 |
/** |
|
615 |
* |
|
616 |
* @type {boolean} |
|
617 |
* @memberof ModifySubTagRequest |
|
618 |
*/ |
|
619 |
'sentimentEnabled'?: boolean | null; |
|
620 |
} |
|
621 |
/** |
|
622 |
* |
|
623 |
* @export |
|
624 |
* @interface ModifyTagRequest |
|
625 |
*/ |
|
626 |
export interface ModifyTagRequest { |
|
627 |
/** |
|
628 |
* |
|
629 |
* @type {string} |
|
630 |
* @memberof ModifyTagRequest |
|
631 |
*/ |
|
632 |
'name'?: string | null; |
|
633 |
/** |
|
634 |
* |
|
635 |
* @type {string} |
|
636 |
* @memberof ModifyTagRequest |
|
637 |
*/ |
|
638 |
'description'?: string | null; |
|
639 |
/** |
|
640 |
* |
|
641 |
* @type {string} |
|
642 |
* @memberof ModifyTagRequest |
|
643 |
*/ |
|
644 |
'color'?: string | null; |
|
645 |
/** |
|
646 |
* |
|
647 |
* @type {boolean} |
|
648 |
* @memberof ModifyTagRequest |
|
649 |
*/ |
|
650 |
'sentimentEnabled'?: boolean | null; |
|
651 |
} |
|
425 | 652 |
/** |
426 | 653 |
* |
427 | 654 |
* @export |
... | ... | |
461 | 688 |
*/ |
462 | 689 |
'instance'?: string | null; |
463 | 690 |
} |
691 |
/** |
|
692 |
* |
|
693 |
* @export |
|
694 |
* @interface SetInstanceSentimentRequest |
|
695 |
*/ |
|
696 |
export interface SetInstanceSentimentRequest { |
|
697 |
/** |
|
698 |
* |
|
699 |
* @type {ETagSentiment} |
|
700 |
* @memberof SetInstanceSentimentRequest |
|
701 |
*/ |
|
702 |
'sentiment'?: ETagSentiment; |
|
703 |
} |
|
464 | 704 |
/** |
465 | 705 |
* |
466 | 706 |
* @export |
... | ... | |
632 | 872 |
* @memberof TagInstanceInfo |
633 | 873 |
*/ |
634 | 874 |
'note'?: string | null; |
875 |
/** |
|
876 |
* |
|
877 |
* @type {ETagSentiment} |
|
878 |
* @memberof TagInstanceInfo |
|
879 |
*/ |
|
880 |
'sentiment'?: ETagSentiment; |
|
635 | 881 |
} |
636 | 882 |
/** |
637 | 883 |
* |
... | ... | |
770 | 1016 |
/** |
771 | 1017 |
* |
772 | 1018 |
* @param {string} annotationId |
773 |
* @param {string} occurenceId |
|
1019 |
* @param {string} instanceId |
|
1020 |
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] |
|
774 | 1021 |
* @param {*} [options] Override http request option. |
775 | 1022 |
* @throws {RequiredError} |
776 | 1023 |
*/ |
777 |
annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1024 |
annotationAnnotationIdInstanceIdSentimentPut: async (annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
778 | 1025 |
// verify required parameter 'annotationId' is not null or undefined |
779 |
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId)
|
|
780 |
// verify required parameter 'occurenceId' is not null or undefined
|
|
781 |
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId)
|
|
782 |
const localVarPath = `/annotation/{annotationId}/{occurenceId}`
|
|
1026 |
assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'annotationId', annotationId)
|
|
1027 |
// verify required parameter 'instanceId' is not null or undefined
|
|
1028 |
assertParamExists('annotationAnnotationIdInstanceIdSentimentPut', 'instanceId', instanceId)
|
|
1029 |
const localVarPath = `/annotation/{annotationId}/{instanceId}/sentiment`
|
|
783 | 1030 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))) |
784 |
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId)));
|
|
1031 |
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
785 | 1032 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
786 | 1033 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
787 | 1034 |
let baseOptions; |
... | ... | |
789 | 1036 |
baseOptions = configuration.baseOptions; |
790 | 1037 |
} |
791 | 1038 |
|
792 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1039 |
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
793 | 1040 |
const localVarHeaderParameter = {} as any; |
794 | 1041 |
const localVarQueryParameter = {} as any; |
795 | 1042 |
|
796 | 1043 |
|
797 | 1044 |
|
1045 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1046 |
|
|
798 | 1047 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
799 | 1048 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
800 | 1049 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
1050 |
localVarRequestOptions.data = serializeDataIfNeeded(setInstanceSentimentRequest, localVarRequestOptions, configuration) |
|
801 | 1051 |
|
802 | 1052 |
return { |
803 | 1053 |
url: toPathString(localVarUrlObj), |
... | ... | |
807 | 1057 |
/** |
808 | 1058 |
* |
809 | 1059 |
* @param {string} annotationId |
810 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest]
|
|
1060 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest]
|
|
811 | 1061 |
* @param {*} [options] Override http request option. |
812 | 1062 |
* @throws {RequiredError} |
813 | 1063 |
*/ |
814 |
annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1064 |
annotationAnnotationIdNotePost: async (annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
815 | 1065 |
// verify required parameter 'annotationId' is not null or undefined |
816 |
assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId) |
|
817 |
const localVarPath = `/annotation/{annotationId}` |
|
1066 |
assertParamExists('annotationAnnotationIdNotePost', 'annotationId', annotationId)
|
|
1067 |
const localVarPath = `/annotation/{annotationId}/note`
|
|
818 | 1068 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))); |
819 | 1069 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
820 | 1070 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
... | ... | |
834 | 1084 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
835 | 1085 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
836 | 1086 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
837 |
localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration)
|
|
1087 |
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToAnnotationRequest, localVarRequestOptions, configuration)
|
|
838 | 1088 |
|
839 | 1089 |
return { |
840 | 1090 |
url: toPathString(localVarUrlObj), |
... | ... | |
843 | 1093 |
}, |
844 | 1094 |
/** |
845 | 1095 |
* |
846 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
1096 |
* @param {string} annotationId |
|
1097 |
* @param {string} occurenceId |
|
847 | 1098 |
* @param {*} [options] Override http request option. |
848 | 1099 |
* @throws {RequiredError} |
849 | 1100 |
*/ |
850 |
annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
851 |
const localVarPath = `/annotations`; |
|
1101 |
annotationAnnotationIdOccurenceIdDelete: async (annotationId: string, occurenceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1102 |
// verify required parameter 'annotationId' is not null or undefined |
|
1103 |
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'annotationId', annotationId) |
|
1104 |
// verify required parameter 'occurenceId' is not null or undefined |
|
1105 |
assertParamExists('annotationAnnotationIdOccurenceIdDelete', 'occurenceId', occurenceId) |
|
1106 |
const localVarPath = `/annotation/{annotationId}/{occurenceId}` |
|
1107 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))) |
|
1108 |
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId))); |
|
852 | 1109 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
853 | 1110 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
854 | 1111 |
let baseOptions; |
... | ... | |
856 | 1113 |
baseOptions = configuration.baseOptions; |
857 | 1114 |
} |
858 | 1115 |
|
859 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1116 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
860 | 1117 |
const localVarHeaderParameter = {} as any; |
861 | 1118 |
const localVarQueryParameter = {} as any; |
862 | 1119 |
|
863 | 1120 |
|
864 | 1121 |
|
865 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
866 |
|
|
867 | 1122 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
868 | 1123 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
869 | 1124 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
870 |
localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration) |
|
871 | 1125 |
|
872 | 1126 |
return { |
873 | 1127 |
url: toPathString(localVarUrlObj), |
874 | 1128 |
options: localVarRequestOptions, |
875 | 1129 |
}; |
876 | 1130 |
}, |
877 |
} |
|
878 |
}; |
|
879 |
|
|
880 |
/** |
|
881 |
* AnnotationApi - functional programming interface |
|
882 |
* @export |
|
883 |
*/ |
|
884 |
export const AnnotationApiFp = function(configuration?: Configuration) { |
|
885 |
const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration) |
|
886 |
return { |
|
887 |
/** |
|
888 |
* |
|
889 |
* @param {string} annotationId |
|
890 |
* @param {*} [options] Override http request option. |
|
891 |
* @throws {RequiredError} |
|
892 |
*/ |
|
893 |
async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> { |
|
894 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options); |
|
895 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
896 |
}, |
|
897 |
/** |
|
898 |
* |
|
899 |
* @param {string} annotationId |
|
900 |
* @param {string} occurenceId |
|
901 |
* @param {*} [options] Override http request option. |
|
902 |
* @throws {RequiredError} |
|
903 |
*/ |
|
904 |
async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
905 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options); |
|
906 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
907 |
}, |
|
908 | 1131 |
/** |
909 | 1132 |
* |
910 | 1133 |
* @param {string} annotationId |
... | ... | |
912 | 1135 |
* @param {*} [options] Override http request option. |
913 | 1136 |
* @throws {RequiredError} |
914 | 1137 |
*/ |
915 |
async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
916 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options); |
|
917 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
918 |
}, |
|
919 |
/** |
|
920 |
* |
|
921 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
1138 |
annotationAnnotationIdPost: async (annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1139 |
// verify required parameter 'annotationId' is not null or undefined |
|
1140 |
assertParamExists('annotationAnnotationIdPost', 'annotationId', annotationId) |
|
1141 |
const localVarPath = `/annotation/{annotationId}` |
|
1142 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))); |
|
1143 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1144 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1145 |
let baseOptions; |
|
1146 |
if (configuration) { |
|
1147 |
baseOptions = configuration.baseOptions; |
|
1148 |
} |
|
1149 |
|
|
1150 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
1151 |
const localVarHeaderParameter = {} as any; |
|
1152 |
const localVarQueryParameter = {} as any; |
|
1153 |
|
|
1154 |
|
|
1155 |
|
|
1156 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1157 |
|
|
1158 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1159 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1160 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1161 |
localVarRequestOptions.data = serializeDataIfNeeded(annotationInstanceAddRequest, localVarRequestOptions, configuration) |
|
1162 |
|
|
1163 |
return { |
|
1164 |
url: toPathString(localVarUrlObj), |
|
1165 |
options: localVarRequestOptions, |
|
1166 |
}; |
|
1167 |
}, |
|
1168 |
/** |
|
1169 |
* |
|
1170 |
* @param {string} annotationId |
|
1171 |
* @param {string} occurenceId |
|
1172 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1173 |
* @param {*} [options] Override http request option. |
|
1174 |
* @throws {RequiredError} |
|
1175 |
*/ |
|
1176 |
annotationAnnotationIdTagOccurenceIdNotePost: async (annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1177 |
// verify required parameter 'annotationId' is not null or undefined |
|
1178 |
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'annotationId', annotationId) |
|
1179 |
// verify required parameter 'occurenceId' is not null or undefined |
|
1180 |
assertParamExists('annotationAnnotationIdTagOccurenceIdNotePost', 'occurenceId', occurenceId) |
|
1181 |
const localVarPath = `/annotation/{annotationId}/tag/{occurenceId}/note` |
|
1182 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId))) |
|
1183 |
.replace(`{${"occurenceId"}}`, encodeURIComponent(String(occurenceId))); |
|
1184 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1185 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1186 |
let baseOptions; |
|
1187 |
if (configuration) { |
|
1188 |
baseOptions = configuration.baseOptions; |
|
1189 |
} |
|
1190 |
|
|
1191 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
1192 |
const localVarHeaderParameter = {} as any; |
|
1193 |
const localVarQueryParameter = {} as any; |
|
1194 |
|
|
1195 |
|
|
1196 |
|
|
1197 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1198 |
|
|
1199 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1200 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1201 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1202 |
localVarRequestOptions.data = serializeDataIfNeeded(addNoteToTagOccurenceRequest, localVarRequestOptions, configuration) |
|
1203 |
|
|
1204 |
return { |
|
1205 |
url: toPathString(localVarUrlObj), |
|
1206 |
options: localVarRequestOptions, |
|
1207 |
}; |
|
1208 |
}, |
|
1209 |
/** |
|
1210 |
* |
|
1211 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
1212 |
* @param {*} [options] Override http request option. |
|
1213 |
* @throws {RequiredError} |
|
1214 |
*/ |
|
1215 |
annotationsPost: async (annotationsAddRequest?: AnnotationsAddRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1216 |
const localVarPath = `/annotations`; |
|
1217 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1218 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1219 |
let baseOptions; |
|
1220 |
if (configuration) { |
|
1221 |
baseOptions = configuration.baseOptions; |
|
1222 |
} |
|
1223 |
|
|
1224 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
1225 |
const localVarHeaderParameter = {} as any; |
|
1226 |
const localVarQueryParameter = {} as any; |
|
1227 |
|
|
1228 |
|
|
1229 |
|
|
1230 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1231 |
|
|
1232 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1233 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1234 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1235 |
localVarRequestOptions.data = serializeDataIfNeeded(annotationsAddRequest, localVarRequestOptions, configuration) |
|
1236 |
|
|
1237 |
return { |
|
1238 |
url: toPathString(localVarUrlObj), |
|
1239 |
options: localVarRequestOptions, |
|
1240 |
}; |
|
1241 |
}, |
|
1242 |
} |
|
1243 |
}; |
|
1244 |
|
|
1245 |
/** |
|
1246 |
* AnnotationApi - functional programming interface |
|
1247 |
* @export |
|
1248 |
*/ |
|
1249 |
export const AnnotationApiFp = function(configuration?: Configuration) { |
|
1250 |
const localVarAxiosParamCreator = AnnotationApiAxiosParamCreator(configuration) |
|
1251 |
return { |
|
1252 |
/** |
|
1253 |
* |
|
1254 |
* @param {string} annotationId |
|
1255 |
* @param {*} [options] Override http request option. |
|
1256 |
* @throws {RequiredError} |
|
1257 |
*/ |
|
1258 |
async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> { |
|
1259 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options); |
|
1260 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1261 |
}, |
|
1262 |
/** |
|
1263 |
* |
|
1264 |
* @param {string} annotationId |
|
1265 |
* @param {string} instanceId |
|
1266 |
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] |
|
1267 |
* @param {*} [options] Override http request option. |
|
1268 |
* @throws {RequiredError} |
|
1269 |
*/ |
|
1270 |
async annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1271 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options); |
|
1272 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1273 |
}, |
|
1274 |
/** |
|
1275 |
* |
|
1276 |
* @param {string} annotationId |
|
1277 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] |
|
1278 |
* @param {*} [options] Override http request option. |
|
1279 |
* @throws {RequiredError} |
|
1280 |
*/ |
|
1281 |
async annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1282 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options); |
|
1283 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1284 |
}, |
|
1285 |
/** |
|
1286 |
* |
|
1287 |
* @param {string} annotationId |
|
1288 |
* @param {string} occurenceId |
|
1289 |
* @param {*} [options] Override http request option. |
|
1290 |
* @throws {RequiredError} |
|
1291 |
*/ |
|
1292 |
async annotationAnnotationIdOccurenceIdDelete(annotationId: string, occurenceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1293 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdOccurenceIdDelete(annotationId, occurenceId, options); |
|
1294 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1295 |
}, |
|
1296 |
/** |
|
1297 |
* |
|
1298 |
* @param {string} annotationId |
|
1299 |
* @param {AnnotationInstanceAddRequest} [annotationInstanceAddRequest] |
|
1300 |
* @param {*} [options] Override http request option. |
|
1301 |
* @throws {RequiredError} |
|
1302 |
*/ |
|
1303 |
async annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1304 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options); |
|
1305 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1306 |
}, |
|
1307 |
/** |
|
1308 |
* |
|
1309 |
* @param {string} annotationId |
|
1310 |
* @param {string} occurenceId |
|
1311 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1312 |
* @param {*} [options] Override http request option. |
|
1313 |
* @throws {RequiredError} |
|
1314 |
*/ |
|
1315 |
async annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
1316 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options); |
|
1317 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1318 |
}, |
|
1319 |
/** |
|
1320 |
* |
|
1321 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
|
922 | 1322 |
* @param {*} [options] Override http request option. |
923 | 1323 |
* @throws {RequiredError} |
924 | 1324 |
*/ |
... | ... | |
945 | 1345 |
annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> { |
946 | 1346 |
return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath)); |
947 | 1347 |
}, |
1348 |
/** |
|
1349 |
* |
|
1350 |
* @param {string} annotationId |
|
1351 |
* @param {string} instanceId |
|
1352 |
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] |
|
1353 |
* @param {*} [options] Override http request option. |
|
1354 |
* @throws {RequiredError} |
|
1355 |
*/ |
|
1356 |
annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: any): AxiosPromise<void> { |
|
1357 |
return localVarFp.annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(axios, basePath)); |
|
1358 |
}, |
|
1359 |
/** |
|
1360 |
* |
|
1361 |
* @param {string} annotationId |
|
1362 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] |
|
1363 |
* @param {*} [options] Override http request option. |
|
1364 |
* @throws {RequiredError} |
|
1365 |
*/ |
|
1366 |
annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: any): AxiosPromise<void> { |
|
1367 |
return localVarFp.annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(axios, basePath)); |
|
1368 |
}, |
|
948 | 1369 |
/** |
949 | 1370 |
* |
950 | 1371 |
* @param {string} annotationId |
... | ... | |
965 | 1386 |
annotationAnnotationIdPost(annotationId: string, annotationInstanceAddRequest?: AnnotationInstanceAddRequest, options?: any): AxiosPromise<void> { |
966 | 1387 |
return localVarFp.annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(axios, basePath)); |
967 | 1388 |
}, |
1389 |
/** |
|
1390 |
* |
|
1391 |
* @param {string} annotationId |
|
1392 |
* @param {string} occurenceId |
|
1393 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1394 |
* @param {*} [options] Override http request option. |
|
1395 |
* @throws {RequiredError} |
|
1396 |
*/ |
|
1397 |
annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: any): AxiosPromise<void> { |
|
1398 |
return localVarFp.annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(axios, basePath)); |
|
1399 |
}, |
|
968 | 1400 |
/** |
969 | 1401 |
* |
970 | 1402 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
... | ... | |
995 | 1427 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath)); |
996 | 1428 |
} |
997 | 1429 |
|
1430 |
/** |
|
1431 |
* |
|
1432 |
* @param {string} annotationId |
|
1433 |
* @param {string} instanceId |
|
1434 |
* @param {SetInstanceSentimentRequest} [setInstanceSentimentRequest] |
|
1435 |
* @param {*} [options] Override http request option. |
|
1436 |
* @throws {RequiredError} |
|
1437 |
* @memberof AnnotationApi |
|
1438 |
*/ |
|
1439 |
public annotationAnnotationIdInstanceIdSentimentPut(annotationId: string, instanceId: string, setInstanceSentimentRequest?: SetInstanceSentimentRequest, options?: AxiosRequestConfig) { |
|
1440 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdInstanceIdSentimentPut(annotationId, instanceId, setInstanceSentimentRequest, options).then((request) => request(this.axios, this.basePath)); |
|
1441 |
} |
|
1442 |
|
|
1443 |
/** |
|
1444 |
* |
|
1445 |
* @param {string} annotationId |
|
1446 |
* @param {AddNoteToAnnotationRequest} [addNoteToAnnotationRequest] |
|
1447 |
* @param {*} [options] Override http request option. |
|
1448 |
* @throws {RequiredError} |
|
1449 |
* @memberof AnnotationApi |
|
1450 |
*/ |
|
1451 |
public annotationAnnotationIdNotePost(annotationId: string, addNoteToAnnotationRequest?: AddNoteToAnnotationRequest, options?: AxiosRequestConfig) { |
|
1452 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdNotePost(annotationId, addNoteToAnnotationRequest, options).then((request) => request(this.axios, this.basePath)); |
|
1453 |
} |
|
1454 |
|
|
998 | 1455 |
/** |
999 | 1456 |
* |
1000 | 1457 |
* @param {string} annotationId |
... | ... | |
1019 | 1476 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdPost(annotationId, annotationInstanceAddRequest, options).then((request) => request(this.axios, this.basePath)); |
1020 | 1477 |
} |
1021 | 1478 |
|
1479 |
/** |
|
1480 |
* |
|
1481 |
* @param {string} annotationId |
|
1482 |
* @param {string} occurenceId |
|
1483 |
* @param {AddNoteToTagOccurenceRequest} [addNoteToTagOccurenceRequest] |
|
1484 |
* @param {*} [options] Override http request option. |
|
1485 |
* @throws {RequiredError} |
|
1486 |
* @memberof AnnotationApi |
|
1487 |
*/ |
|
1488 |
public annotationAnnotationIdTagOccurenceIdNotePost(annotationId: string, occurenceId: string, addNoteToTagOccurenceRequest?: AddNoteToTagOccurenceRequest, options?: AxiosRequestConfig) { |
|
1489 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdTagOccurenceIdNotePost(annotationId, occurenceId, addNoteToTagOccurenceRequest, options).then((request) => request(this.axios, this.basePath)); |
|
1490 |
} |
|
1491 |
|
|
1022 | 1492 |
/** |
1023 | 1493 |
* |
1024 | 1494 |
* @param {AnnotationsAddRequest} [annotationsAddRequest] |
... | ... | |
1426 | 1896 |
return { |
1427 | 1897 |
/** |
1428 | 1898 |
* |
1899 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
1429 | 1900 |
* @param {*} [options] Override http request option. |
1430 | 1901 |
* @throws {RequiredError} |
1431 | 1902 |
*/ |
1432 |
tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1433 |
const localVarPath = `/tags`;
|
|
1903 |
categoriesPost: async (createCategoryRequest?: CreateCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1904 |
const localVarPath = `/categories`;
|
|
1434 | 1905 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
1435 | 1906 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
1436 | 1907 |
let baseOptions; |
... | ... | |
1438 | 1909 |
baseOptions = configuration.baseOptions; |
1439 | 1910 |
} |
1440 | 1911 |
|
1441 |
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1912 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1442 | 1913 |
const localVarHeaderParameter = {} as any; |
1443 | 1914 |
const localVarQueryParameter = {} as any; |
1444 | 1915 |
|
1445 | 1916 |
|
1446 | 1917 |
|
1918 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1919 |
|
|
1447 | 1920 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
1448 | 1921 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
1449 | 1922 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
1923 |
localVarRequestOptions.data = serializeDataIfNeeded(createCategoryRequest, localVarRequestOptions, configuration) |
|
1450 | 1924 |
|
1451 | 1925 |
return { |
1452 | 1926 |
url: toPathString(localVarUrlObj), |
1453 | 1927 |
options: localVarRequestOptions, |
1454 | 1928 |
}; |
1455 | 1929 |
}, |
1456 |
} |
|
1457 |
}; |
|
1458 |
|
|
1459 |
/** |
|
1460 |
* TagApi - functional programming interface |
|
1461 |
* @export |
|
1462 |
*/ |
|
1463 |
export const TagApiFp = function(configuration?: Configuration) { |
|
1464 |
const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration) |
|
1465 |
return { |
|
1466 | 1930 |
/** |
1467 | 1931 |
* |
1932 |
* @param {string} categoryId |
|
1468 | 1933 |
* @param {*} [options] Override http request option. |
1469 | 1934 |
* @throws {RequiredError} |
1470 | 1935 |
*/ |
1471 |
async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> { |
|
1472 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options); |
|
1473 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
1474 |
}, |
|
1475 |
} |
|
1476 |
}; |
|
1936 |
categoryCategoryIdDelete: async (categoryId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1937 |
// verify required parameter 'categoryId' is not null or undefined |
|
1938 |
assertParamExists('categoryCategoryIdDelete', 'categoryId', categoryId) |
|
1939 |
const localVarPath = `/category/{categoryId}` |
|
1940 |
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId))); |
|
1941 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1942 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1943 |
let baseOptions; |
|
1944 |
if (configuration) { |
|
1945 |
baseOptions = configuration.baseOptions; |
|
1946 |
} |
|
1477 | 1947 |
|
1478 |
/** |
|
1479 |
* TagApi - factory interface |
|
1480 |
* @export |
|
1481 |
*/ |
|
1482 |
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|
1483 |
const localVarFp = TagApiFp(configuration) |
|
1484 |
return { |
|
1485 |
/** |
|
1486 |
* |
|
1487 |
* @param {*} [options] Override http request option. |
|
1948 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; |
|
1949 |
const localVarHeaderParameter = {} as any; |
|
1950 |
const localVarQueryParameter = {} as any; |
|
1951 |
|
|
1952 |
|
|
1953 |
|
|
1954 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1955 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1956 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1957 |
|
|
1958 |
return { |
|
1959 |
url: toPathString(localVarUrlObj), |
|
1960 |
options: localVarRequestOptions, |
|
1961 |
}; |
|
1962 |
}, |
|
1963 |
/** |
|
1964 |
* |
|
1965 |
* @param {string} categoryId |
|
1966 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
1967 |
* @param {*} [options] Override http request option. |
|
1968 |
* @throws {RequiredError} |
|
1969 |
*/ |
|
1970 |
categoryCategoryIdPut: async (categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
1971 |
// verify required parameter 'categoryId' is not null or undefined |
|
1972 |
assertParamExists('categoryCategoryIdPut', 'categoryId', categoryId) |
|
1973 |
const localVarPath = `/category/{categoryId}` |
|
1974 |
.replace(`{${"categoryId"}}`, encodeURIComponent(String(categoryId))); |
|
1975 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
1976 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
1977 |
let baseOptions; |
|
1978 |
if (configuration) { |
|
1979 |
baseOptions = configuration.baseOptions; |
|
1980 |
} |
|
1981 |
|
|
1982 |
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; |
|
1983 |
const localVarHeaderParameter = {} as any; |
|
1984 |
const localVarQueryParameter = {} as any; |
|
1985 |
|
|
1986 |
|
|
1987 |
|
|
1988 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
1989 |
|
|
1990 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
1991 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
1992 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
1993 |
localVarRequestOptions.data = serializeDataIfNeeded(modifyCategoryRequest, localVarRequestOptions, configuration) |
|
1994 |
|
|
1995 |
return { |
|
1996 |
url: toPathString(localVarUrlObj), |
|
1997 |
options: localVarRequestOptions, |
|
1998 |
}; |
|
1999 |
}, |
|
2000 |
/** |
|
2001 |
* |
|
2002 |
* @param {string} subtagId |
|
2003 |
* @param {*} [options] Override http request option. |
|
2004 |
* @throws {RequiredError} |
|
2005 |
*/ |
|
2006 |
subtagSubtagIdDelete: async (subtagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2007 |
// verify required parameter 'subtagId' is not null or undefined |
|
2008 |
assertParamExists('subtagSubtagIdDelete', 'subtagId', subtagId) |
|
2009 |
const localVarPath = `/subtag/{subtagId}` |
|
2010 |
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId))); |
|
2011 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2012 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2013 |
let baseOptions; |
|
2014 |
if (configuration) { |
|
2015 |
baseOptions = configuration.baseOptions; |
|
2016 |
} |
|
2017 |
|
|
2018 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; |
|
2019 |
const localVarHeaderParameter = {} as any; |
|
2020 |
const localVarQueryParameter = {} as any; |
|
2021 |
|
|
2022 |
|
|
2023 |
|
|
2024 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2025 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2026 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2027 |
|
|
2028 |
return { |
|
2029 |
url: toPathString(localVarUrlObj), |
|
2030 |
options: localVarRequestOptions, |
|
2031 |
}; |
|
2032 |
}, |
|
2033 |
/** |
|
2034 |
* |
|
2035 |
* @param {string} subtagId |
|
2036 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
2037 |
* @param {*} [options] Override http request option. |
|
2038 |
* @throws {RequiredError} |
|
2039 |
*/ |
|
2040 |
subtagSubtagIdPut: async (subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2041 |
// verify required parameter 'subtagId' is not null or undefined |
|
2042 |
assertParamExists('subtagSubtagIdPut', 'subtagId', subtagId) |
|
2043 |
const localVarPath = `/subtag/{subtagId}` |
|
2044 |
.replace(`{${"subtagId"}}`, encodeURIComponent(String(subtagId))); |
|
2045 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2046 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2047 |
let baseOptions; |
|
2048 |
if (configuration) { |
|
2049 |
baseOptions = configuration.baseOptions; |
|
2050 |
} |
|
2051 |
|
|
2052 |
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; |
|
2053 |
const localVarHeaderParameter = {} as any; |
|
2054 |
const localVarQueryParameter = {} as any; |
|
2055 |
|
|
2056 |
|
|
2057 |
|
|
2058 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
2059 |
|
|
2060 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2061 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2062 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2063 |
localVarRequestOptions.data = serializeDataIfNeeded(modifySubTagRequest, localVarRequestOptions, configuration) |
|
2064 |
|
|
2065 |
return { |
|
2066 |
url: toPathString(localVarUrlObj), |
|
2067 |
options: localVarRequestOptions, |
|
2068 |
}; |
|
2069 |
}, |
|
2070 |
/** |
|
2071 |
* |
|
2072 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
2073 |
* @param {*} [options] Override http request option. |
|
2074 |
* @throws {RequiredError} |
|
2075 |
*/ |
|
2076 |
subtagsPost: async (createSubTagRequest?: CreateSubTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2077 |
const localVarPath = `/subtags`; |
|
2078 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2079 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2080 |
let baseOptions; |
|
2081 |
if (configuration) { |
|
2082 |
baseOptions = configuration.baseOptions; |
|
2083 |
} |
|
2084 |
|
|
2085 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
2086 |
const localVarHeaderParameter = {} as any; |
|
2087 |
const localVarQueryParameter = {} as any; |
|
2088 |
|
|
2089 |
|
|
2090 |
|
|
2091 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
2092 |
|
|
2093 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2094 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2095 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2096 |
localVarRequestOptions.data = serializeDataIfNeeded(createSubTagRequest, localVarRequestOptions, configuration) |
|
2097 |
|
|
2098 |
return { |
|
2099 |
url: toPathString(localVarUrlObj), |
|
2100 |
options: localVarRequestOptions, |
|
2101 |
}; |
|
2102 |
}, |
|
2103 |
/** |
|
2104 |
* |
|
2105 |
* @param {string} tagId |
|
2106 |
* @param {*} [options] Override http request option. |
|
2107 |
* @throws {RequiredError} |
|
2108 |
*/ |
|
2109 |
tagTagIdDelete: async (tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2110 |
// verify required parameter 'tagId' is not null or undefined |
|
2111 |
assertParamExists('tagTagIdDelete', 'tagId', tagId) |
|
2112 |
const localVarPath = `/tag/{tagId}` |
|
2113 |
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId))); |
|
2114 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2115 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2116 |
let baseOptions; |
|
2117 |
if (configuration) { |
|
2118 |
baseOptions = configuration.baseOptions; |
|
2119 |
} |
|
2120 |
|
|
2121 |
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; |
|
2122 |
const localVarHeaderParameter = {} as any; |
|
2123 |
const localVarQueryParameter = {} as any; |
|
2124 |
|
|
2125 |
|
|
2126 |
|
|
2127 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2128 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2129 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2130 |
|
|
2131 |
return { |
|
2132 |
url: toPathString(localVarUrlObj), |
|
2133 |
options: localVarRequestOptions, |
|
2134 |
}; |
|
2135 |
}, |
|
2136 |
/** |
|
2137 |
* |
|
2138 |
* @param {string} tagId |
|
2139 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2140 |
* @param {*} [options] Override http request option. |
|
2141 |
* @throws {RequiredError} |
|
2142 |
*/ |
|
2143 |
tagTagIdPut: async (tagId: string, modifyTagRequest?: ModifyTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2144 |
// verify required parameter 'tagId' is not null or undefined |
|
2145 |
assertParamExists('tagTagIdPut', 'tagId', tagId) |
|
2146 |
const localVarPath = `/tag/{tagId}` |
|
2147 |
.replace(`{${"tagId"}}`, encodeURIComponent(String(tagId))); |
|
2148 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2149 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2150 |
let baseOptions; |
|
2151 |
if (configuration) { |
|
2152 |
baseOptions = configuration.baseOptions; |
|
2153 |
} |
|
2154 |
|
|
2155 |
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; |
|
2156 |
const localVarHeaderParameter = {} as any; |
|
2157 |
const localVarQueryParameter = {} as any; |
|
2158 |
|
|
2159 |
|
|
2160 |
|
|
2161 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
2162 |
|
|
2163 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2164 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2165 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2166 |
localVarRequestOptions.data = serializeDataIfNeeded(modifyTagRequest, localVarRequestOptions, configuration) |
|
2167 |
|
|
2168 |
return { |
|
2169 |
url: toPathString(localVarUrlObj), |
|
2170 |
options: localVarRequestOptions, |
|
2171 |
}; |
|
2172 |
}, |
|
2173 |
/** |
|
2174 |
* |
|
2175 |
* @param {*} [options] Override http request option. |
|
2176 |
* @throws {RequiredError} |
|
2177 |
*/ |
|
2178 |
tagsGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2179 |
const localVarPath = `/tags`; |
|
2180 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2181 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2182 |
let baseOptions; |
|
2183 |
if (configuration) { |
|
2184 |
baseOptions = configuration.baseOptions; |
|
2185 |
} |
|
2186 |
|
|
2187 |
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
|
2188 |
const localVarHeaderParameter = {} as any; |
|
2189 |
const localVarQueryParameter = {} as any; |
|
2190 |
|
|
2191 |
|
|
2192 |
|
|
2193 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2194 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2195 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2196 |
|
|
2197 |
return { |
|
2198 |
url: toPathString(localVarUrlObj), |
|
2199 |
options: localVarRequestOptions, |
|
2200 |
}; |
|
2201 |
}, |
|
2202 |
/** |
|
2203 |
* |
|
2204 |
* @param {CreateTagRequest} [createTagRequest] |
|
2205 |
* @param {*} [options] Override http request option. |
|
2206 |
* @throws {RequiredError} |
|
2207 |
*/ |
|
2208 |
tagsPost: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
|
2209 |
const localVarPath = `/tags`; |
|
2210 |
// use dummy base URL string because the URL constructor only accepts absolute URLs. |
|
2211 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
|
2212 |
let baseOptions; |
|
2213 |
if (configuration) { |
|
2214 |
baseOptions = configuration.baseOptions; |
|
2215 |
} |
|
2216 |
|
|
2217 |
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; |
|
2218 |
const localVarHeaderParameter = {} as any; |
|
2219 |
const localVarQueryParameter = {} as any; |
|
2220 |
|
|
2221 |
|
|
2222 |
|
|
2223 |
localVarHeaderParameter['Content-Type'] = 'application/json'; |
|
2224 |
|
|
2225 |
setSearchParams(localVarUrlObj, localVarQueryParameter); |
|
2226 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
|
2227 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
|
2228 |
localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration) |
|
2229 |
|
|
2230 |
return { |
|
2231 |
url: toPathString(localVarUrlObj), |
|
2232 |
options: localVarRequestOptions, |
|
2233 |
}; |
|
2234 |
}, |
|
2235 |
} |
|
2236 |
}; |
|
2237 |
|
|
2238 |
/** |
|
2239 |
* TagApi - functional programming interface |
|
2240 |
* @export |
|
2241 |
*/ |
|
2242 |
export const TagApiFp = function(configuration?: Configuration) { |
|
2243 |
const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration) |
|
2244 |
return { |
|
2245 |
/** |
|
2246 |
* |
|
2247 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
2248 |
* @param {*} [options] Override http request option. |
|
2249 |
* @throws {RequiredError} |
|
2250 |
*/ |
|
2251 |
async categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2252 |
const localVarAxiosArgs = await localVarAxiosParamCreator.categoriesPost(createCategoryRequest, options); |
|
2253 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2254 |
}, |
|
2255 |
/** |
|
2256 |
* |
|
2257 |
* @param {string} categoryId |
|
2258 |
* @param {*} [options] Override http request option. |
|
2259 |
* @throws {RequiredError} |
|
2260 |
*/ |
|
2261 |
async categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2262 |
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdDelete(categoryId, options); |
|
2263 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2264 |
}, |
|
2265 |
/** |
|
2266 |
* |
|
2267 |
* @param {string} categoryId |
|
2268 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
2269 |
* @param {*} [options] Override http request option. |
|
2270 |
* @throws {RequiredError} |
|
2271 |
*/ |
|
2272 |
async categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2273 |
const localVarAxiosArgs = await localVarAxiosParamCreator.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options); |
|
2274 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2275 |
}, |
|
2276 |
/** |
|
2277 |
* |
|
2278 |
* @param {string} subtagId |
|
2279 |
* @param {*} [options] Override http request option. |
|
2280 |
* @throws {RequiredError} |
|
2281 |
*/ |
|
2282 |
async subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2283 |
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdDelete(subtagId, options); |
|
2284 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2285 |
}, |
|
2286 |
/** |
|
2287 |
* |
|
2288 |
* @param {string} subtagId |
|
2289 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
2290 |
* @param {*} [options] Override http request option. |
|
2291 |
* @throws {RequiredError} |
|
2292 |
*/ |
|
2293 |
async subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2294 |
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagSubtagIdPut(subtagId, modifySubTagRequest, options); |
|
2295 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2296 |
}, |
|
2297 |
/** |
|
2298 |
* |
|
2299 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
2300 |
* @param {*} [options] Override http request option. |
|
2301 |
* @throws {RequiredError} |
|
2302 |
*/ |
|
2303 |
async subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2304 |
const localVarAxiosArgs = await localVarAxiosParamCreator.subtagsPost(createSubTagRequest, options); |
|
2305 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2306 |
}, |
|
2307 |
/** |
|
2308 |
* |
|
2309 |
* @param {string} tagId |
|
2310 |
* @param {*} [options] Override http request option. |
|
2311 |
* @throws {RequiredError} |
|
2312 |
*/ |
|
2313 |
async tagTagIdDelete(tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2314 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdDelete(tagId, options); |
|
2315 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2316 |
}, |
|
2317 |
/** |
|
2318 |
* |
|
2319 |
* @param {string} tagId |
|
2320 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2321 |
* @param {*} [options] Override http request option. |
|
2322 |
* @throws {RequiredError} |
|
2323 |
*/ |
|
2324 |
async tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2325 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagTagIdPut(tagId, modifyTagRequest, options); |
|
2326 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2327 |
}, |
|
2328 |
/** |
|
2329 |
* |
|
2330 |
* @param {*} [options] Override http request option. |
|
2331 |
* @throws {RequiredError} |
|
2332 |
*/ |
|
2333 |
async tagsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagTreeResponse>> { |
|
2334 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsGet(options); |
|
2335 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2336 |
}, |
|
2337 |
/** |
|
2338 |
* |
|
2339 |
* @param {CreateTagRequest} [createTagRequest] |
|
2340 |
* @param {*} [options] Override http request option. |
|
2341 |
* @throws {RequiredError} |
|
2342 |
*/ |
|
2343 |
async tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { |
|
2344 |
const localVarAxiosArgs = await localVarAxiosParamCreator.tagsPost(createTagRequest, options); |
|
2345 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
|
2346 |
}, |
|
2347 |
} |
|
2348 |
}; |
|
2349 |
|
|
2350 |
/** |
|
2351 |
* TagApi - factory interface |
|
2352 |
* @export |
|
2353 |
*/ |
|
2354 |
export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { |
|
2355 |
const localVarFp = TagApiFp(configuration) |
|
2356 |
return { |
|
2357 |
/** |
|
2358 |
* |
|
2359 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
2360 |
* @param {*} [options] Override http request option. |
|
2361 |
* @throws {RequiredError} |
|
2362 |
*/ |
|
2363 |
categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: any): AxiosPromise<void> { |
|
2364 |
return localVarFp.categoriesPost(createCategoryRequest, options).then((request) => request(axios, basePath)); |
|
2365 |
}, |
|
2366 |
/** |
|
2367 |
* |
|
2368 |
* @param {string} categoryId |
|
2369 |
* @param {*} [options] Override http request option. |
|
2370 |
* @throws {RequiredError} |
|
2371 |
*/ |
|
2372 |
categoryCategoryIdDelete(categoryId: string, options?: any): AxiosPromise<void> { |
|
2373 |
return localVarFp.categoryCategoryIdDelete(categoryId, options).then((request) => request(axios, basePath)); |
|
2374 |
}, |
|
2375 |
/** |
|
2376 |
* |
|
2377 |
* @param {string} categoryId |
|
2378 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
2379 |
* @param {*} [options] Override http request option. |
|
2380 |
* @throws {RequiredError} |
|
2381 |
*/ |
|
2382 |
categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: any): AxiosPromise<void> { |
|
2383 |
return localVarFp.categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(axios, basePath)); |
|
2384 |
}, |
|
2385 |
/** |
|
2386 |
* |
|
2387 |
* @param {string} subtagId |
|
2388 |
* @param {*} [options] Override http request option. |
|
2389 |
* @throws {RequiredError} |
|
2390 |
*/ |
|
2391 |
subtagSubtagIdDelete(subtagId: string, options?: any): AxiosPromise<void> { |
|
2392 |
return localVarFp.subtagSubtagIdDelete(subtagId, options).then((request) => request(axios, basePath)); |
|
2393 |
}, |
|
2394 |
/** |
|
2395 |
* |
|
2396 |
* @param {string} subtagId |
|
2397 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
2398 |
* @param {*} [options] Override http request option. |
|
2399 |
* @throws {RequiredError} |
|
2400 |
*/ |
|
2401 |
subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: any): AxiosPromise<void> { |
|
2402 |
return localVarFp.subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(axios, basePath)); |
|
2403 |
}, |
|
2404 |
/** |
|
2405 |
* |
|
2406 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
2407 |
* @param {*} [options] Override http request option. |
|
2408 |
* @throws {RequiredError} |
|
2409 |
*/ |
|
2410 |
subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: any): AxiosPromise<void> { |
|
2411 |
return localVarFp.subtagsPost(createSubTagRequest, options).then((request) => request(axios, basePath)); |
|
2412 |
}, |
|
2413 |
/** |
|
2414 |
* |
|
2415 |
* @param {string} tagId |
|
2416 |
* @param {*} [options] Override http request option. |
|
2417 |
* @throws {RequiredError} |
|
2418 |
*/ |
|
2419 |
tagTagIdDelete(tagId: string, options?: any): AxiosPromise<void> { |
|
2420 |
return localVarFp.tagTagIdDelete(tagId, options).then((request) => request(axios, basePath)); |
|
2421 |
}, |
|
2422 |
/** |
|
2423 |
* |
|
2424 |
* @param {string} tagId |
|
2425 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2426 |
* @param {*} [options] Override http request option. |
|
2427 |
* @throws {RequiredError} |
|
2428 |
*/ |
|
2429 |
tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: any): AxiosPromise<void> { |
|
2430 |
return localVarFp.tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(axios, basePath)); |
|
2431 |
}, |
|
2432 |
/** |
|
2433 |
* |
|
2434 |
* @param {*} [options] Override http request option. |
|
1488 | 2435 |
* @throws {RequiredError} |
1489 | 2436 |
*/ |
1490 | 2437 |
tagsGet(options?: any): AxiosPromise<TagTreeResponse> { |
1491 | 2438 |
return localVarFp.tagsGet(options).then((request) => request(axios, basePath)); |
1492 | 2439 |
}, |
2440 |
/** |
|
2441 |
* |
|
2442 |
* @param {CreateTagRequest} [createTagRequest] |
|
2443 |
* @param {*} [options] Override http request option. |
|
2444 |
* @throws {RequiredError} |
|
2445 |
*/ |
|
2446 |
tagsPost(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<void> { |
|
2447 |
return localVarFp.tagsPost(createTagRequest, options).then((request) => request(axios, basePath)); |
|
2448 |
}, |
|
1493 | 2449 |
}; |
1494 | 2450 |
}; |
1495 | 2451 |
|
... | ... | |
1500 | 2456 |
* @extends {BaseAPI} |
1501 | 2457 |
*/ |
1502 | 2458 |
export class TagApi extends BaseAPI { |
2459 |
/** |
|
2460 |
* |
|
2461 |
* @param {CreateCategoryRequest} [createCategoryRequest] |
|
2462 |
* @param {*} [options] Override http request option. |
|
2463 |
* @throws {RequiredError} |
|
2464 |
* @memberof TagApi |
|
2465 |
*/ |
|
2466 |
public categoriesPost(createCategoryRequest?: CreateCategoryRequest, options?: AxiosRequestConfig) { |
|
2467 |
return TagApiFp(this.configuration).categoriesPost(createCategoryRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2468 |
} |
|
2469 |
|
|
2470 |
/** |
|
2471 |
* |
|
2472 |
* @param {string} categoryId |
|
2473 |
* @param {*} [options] Override http request option. |
|
2474 |
* @throws {RequiredError} |
|
2475 |
* @memberof TagApi |
|
2476 |
*/ |
|
2477 |
public categoryCategoryIdDelete(categoryId: string, options?: AxiosRequestConfig) { |
|
2478 |
return TagApiFp(this.configuration).categoryCategoryIdDelete(categoryId, options).then((request) => request(this.axios, this.basePath)); |
|
2479 |
} |
|
2480 |
|
|
2481 |
/** |
|
2482 |
* |
|
2483 |
* @param {string} categoryId |
|
2484 |
* @param {ModifyCategoryRequest} [modifyCategoryRequest] |
|
2485 |
* @param {*} [options] Override http request option. |
|
2486 |
* @throws {RequiredError} |
|
2487 |
* @memberof TagApi |
|
2488 |
*/ |
|
2489 |
public categoryCategoryIdPut(categoryId: string, modifyCategoryRequest?: ModifyCategoryRequest, options?: AxiosRequestConfig) { |
|
2490 |
return TagApiFp(this.configuration).categoryCategoryIdPut(categoryId, modifyCategoryRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2491 |
} |
|
2492 |
|
|
2493 |
/** |
|
2494 |
* |
|
2495 |
* @param {string} subtagId |
|
2496 |
* @param {*} [options] Override http request option. |
|
2497 |
* @throws {RequiredError} |
|
2498 |
* @memberof TagApi |
|
2499 |
*/ |
|
2500 |
public subtagSubtagIdDelete(subtagId: string, options?: AxiosRequestConfig) { |
|
2501 |
return TagApiFp(this.configuration).subtagSubtagIdDelete(subtagId, options).then((request) => request(this.axios, this.basePath)); |
|
2502 |
} |
|
2503 |
|
|
2504 |
/** |
|
2505 |
* |
|
2506 |
* @param {string} subtagId |
|
2507 |
* @param {ModifySubTagRequest} [modifySubTagRequest] |
|
2508 |
* @param {*} [options] Override http request option. |
|
2509 |
* @throws {RequiredError} |
|
2510 |
* @memberof TagApi |
|
2511 |
*/ |
|
2512 |
public subtagSubtagIdPut(subtagId: string, modifySubTagRequest?: ModifySubTagRequest, options?: AxiosRequestConfig) { |
|
2513 |
return TagApiFp(this.configuration).subtagSubtagIdPut(subtagId, modifySubTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2514 |
} |
|
2515 |
|
|
2516 |
/** |
|
2517 |
* |
|
2518 |
* @param {CreateSubTagRequest} [createSubTagRequest] |
|
2519 |
* @param {*} [options] Override http request option. |
|
2520 |
* @throws {RequiredError} |
|
2521 |
* @memberof TagApi |
|
2522 |
*/ |
|
2523 |
public subtagsPost(createSubTagRequest?: CreateSubTagRequest, options?: AxiosRequestConfig) { |
|
2524 |
return TagApiFp(this.configuration).subtagsPost(createSubTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2525 |
} |
|
2526 |
|
|
2527 |
/** |
|
2528 |
* |
|
2529 |
* @param {string} tagId |
|
2530 |
* @param {*} [options] Override http request option. |
|
2531 |
* @throws {RequiredError} |
|
2532 |
* @memberof TagApi |
|
2533 |
*/ |
|
2534 |
public tagTagIdDelete(tagId: string, options?: AxiosRequestConfig) { |
|
2535 |
return TagApiFp(this.configuration).tagTagIdDelete(tagId, options).then((request) => request(this.axios, this.basePath)); |
|
2536 |
} |
|
2537 |
|
|
2538 |
/** |
|
2539 |
* |
|
2540 |
* @param {string} tagId |
|
2541 |
* @param {ModifyTagRequest} [modifyTagRequest] |
|
2542 |
* @param {*} [options] Override http request option. |
|
2543 |
* @throws {RequiredError} |
|
2544 |
* @memberof TagApi |
|
2545 |
*/ |
|
2546 |
public tagTagIdPut(tagId: string, modifyTagRequest?: ModifyTagRequest, options?: AxiosRequestConfig) { |
|
2547 |
return TagApiFp(this.configuration).tagTagIdPut(tagId, modifyTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2548 |
} |
|
2549 |
|
|
1503 | 2550 |
/** |
1504 | 2551 |
* |
1505 | 2552 |
* @param {*} [options] Override http request option. |
... | ... | |
1509 | 2556 |
public tagsGet(options?: AxiosRequestConfig) { |
1510 | 2557 |
return TagApiFp(this.configuration).tagsGet(options).then((request) => request(this.axios, this.basePath)); |
1511 | 2558 |
} |
2559 |
|
|
2560 |
/** |
|
2561 |
* |
|
2562 |
* @param {CreateTagRequest} [createTagRequest] |
|
2563 |
* @param {*} [options] Override http request option. |
|
2564 |
* @throws {RequiredError} |
|
2565 |
* @memberof TagApi |
|
2566 |
*/ |
|
2567 |
public tagsPost(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) { |
|
2568 |
return TagApiFp(this.configuration).tagsPost(createTagRequest, options).then((request) => request(this.axios, this.basePath)); |
|
2569 |
} |
|
1512 | 2570 |
} |
1513 | 2571 |
|
1514 | 2572 |
|
Také k dispozici: Unified diff
Removed visibility, added sentiment