21 |
21 |
// @ts-ignore
|
22 |
22 |
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
23 |
23 |
|
24 |
|
/**
|
25 |
|
*
|
26 |
|
* @export
|
27 |
|
* @interface AnnotationGetRequest
|
28 |
|
*/
|
29 |
|
export interface AnnotationGetRequest {
|
30 |
|
/**
|
31 |
|
*
|
32 |
|
* @type {string}
|
33 |
|
* @memberof AnnotationGetRequest
|
34 |
|
*/
|
35 |
|
'annotationId'?: string;
|
36 |
|
}
|
37 |
24 |
/**
|
38 |
25 |
*
|
39 |
26 |
* @export
|
... | ... | |
228 |
215 |
*/
|
229 |
216 |
'annotatingUsers'?: Array<UserInfo> | null;
|
230 |
217 |
}
|
231 |
|
/**
|
232 |
|
*
|
233 |
|
* @export
|
234 |
|
* @interface DocumentListRequest
|
235 |
|
*/
|
236 |
|
export interface DocumentListRequest {
|
237 |
|
/**
|
238 |
|
*
|
239 |
|
* @type {number}
|
240 |
|
* @memberof DocumentListRequest
|
241 |
|
*/
|
242 |
|
'pageIndex'?: number;
|
243 |
|
/**
|
244 |
|
*
|
245 |
|
* @type {number}
|
246 |
|
* @memberof DocumentListRequest
|
247 |
|
*/
|
248 |
|
'pageSize'?: number;
|
249 |
|
}
|
250 |
218 |
/**
|
251 |
219 |
*
|
252 |
220 |
* @export
|
... | ... | |
693 |
661 |
return {
|
694 |
662 |
/**
|
695 |
663 |
*
|
696 |
|
* @param {AnnotationGetRequest} [annotationGetRequest]
|
|
664 |
* @param {string} annotationId
|
697 |
665 |
* @param {*} [options] Override http request option.
|
698 |
666 |
* @throws {RequiredError}
|
699 |
667 |
*/
|
700 |
|
annotationGet: async (annotationGetRequest?: AnnotationGetRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
701 |
|
const localVarPath = `/annotation`;
|
|
668 |
annotationAnnotationIdGet: async (annotationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
669 |
// verify required parameter 'annotationId' is not null or undefined
|
|
670 |
assertParamExists('annotationAnnotationIdGet', 'annotationId', annotationId)
|
|
671 |
const localVarPath = `/annotation/{annotationId}`
|
|
672 |
.replace(`{${"annotationId"}}`, encodeURIComponent(String(annotationId)));
|
702 |
673 |
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
703 |
674 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
704 |
675 |
let baseOptions;
|
... | ... | |
712 |
683 |
|
713 |
684 |
|
714 |
685 |
|
715 |
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
716 |
|
|
717 |
686 |
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
718 |
687 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
719 |
688 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
720 |
|
localVarRequestOptions.data = serializeDataIfNeeded(annotationGetRequest, localVarRequestOptions, configuration)
|
721 |
689 |
|
722 |
690 |
return {
|
723 |
691 |
url: toPathString(localVarUrlObj),
|
... | ... | |
769 |
737 |
return {
|
770 |
738 |
/**
|
771 |
739 |
*
|
772 |
|
* @param {AnnotationGetRequest} [annotationGetRequest]
|
|
740 |
* @param {string} annotationId
|
773 |
741 |
* @param {*} [options] Override http request option.
|
774 |
742 |
* @throws {RequiredError}
|
775 |
743 |
*/
|
776 |
|
async annotationGet(annotationGetRequest?: AnnotationGetRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
|
777 |
|
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationGet(annotationGetRequest, options);
|
|
744 |
async annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnnotationInfo>> {
|
|
745 |
const localVarAxiosArgs = await localVarAxiosParamCreator.annotationAnnotationIdGet(annotationId, options);
|
778 |
746 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
779 |
747 |
},
|
780 |
748 |
/**
|
... | ... | |
799 |
767 |
return {
|
800 |
768 |
/**
|
801 |
769 |
*
|
802 |
|
* @param {AnnotationGetRequest} [annotationGetRequest]
|
|
770 |
* @param {string} annotationId
|
803 |
771 |
* @param {*} [options] Override http request option.
|
804 |
772 |
* @throws {RequiredError}
|
805 |
773 |
*/
|
806 |
|
annotationGet(annotationGetRequest?: AnnotationGetRequest, options?: any): AxiosPromise<AnnotationInfo> {
|
807 |
|
return localVarFp.annotationGet(annotationGetRequest, options).then((request) => request(axios, basePath));
|
|
774 |
annotationAnnotationIdGet(annotationId: string, options?: any): AxiosPromise<AnnotationInfo> {
|
|
775 |
return localVarFp.annotationAnnotationIdGet(annotationId, options).then((request) => request(axios, basePath));
|
808 |
776 |
},
|
809 |
777 |
/**
|
810 |
778 |
*
|
... | ... | |
827 |
795 |
export class AnnotationApi extends BaseAPI {
|
828 |
796 |
/**
|
829 |
797 |
*
|
830 |
|
* @param {AnnotationGetRequest} [annotationGetRequest]
|
|
798 |
* @param {string} annotationId
|
831 |
799 |
* @param {*} [options] Override http request option.
|
832 |
800 |
* @throws {RequiredError}
|
833 |
801 |
* @memberof AnnotationApi
|
834 |
802 |
*/
|
835 |
|
public annotationGet(annotationGetRequest?: AnnotationGetRequest, options?: AxiosRequestConfig) {
|
836 |
|
return AnnotationApiFp(this.configuration).annotationGet(annotationGetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
803 |
public annotationAnnotationIdGet(annotationId: string, options?: AxiosRequestConfig) {
|
|
804 |
return AnnotationApiFp(this.configuration).annotationAnnotationIdGet(annotationId, options).then((request) => request(this.axios, this.basePath));
|
837 |
805 |
}
|
838 |
806 |
|
839 |
807 |
/**
|
... | ... | |
1070 |
1038 |
return {
|
1071 |
1039 |
/**
|
1072 |
1040 |
*
|
1073 |
|
* @param {DocumentListRequest} [documentListRequest]
|
|
1041 |
* @param {number} [pageIndex]
|
|
1042 |
* @param {number} [pageSize]
|
1074 |
1043 |
* @param {*} [options] Override http request option.
|
1075 |
1044 |
* @throws {RequiredError}
|
1076 |
1045 |
*/
|
1077 |
|
documentsGet: async (documentListRequest?: DocumentListRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1046 |
documentsGet: async (pageIndex?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
1078 |
1047 |
const localVarPath = `/documents`;
|
1079 |
1048 |
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1080 |
1049 |
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
... | ... | |
1087 |
1056 |
const localVarHeaderParameter = {} as any;
|
1088 |
1057 |
const localVarQueryParameter = {} as any;
|
1089 |
1058 |
|
|
1059 |
if (pageIndex !== undefined) {
|
|
1060 |
localVarQueryParameter['pageIndex'] = pageIndex;
|
|
1061 |
}
|
1090 |
1062 |
|
1091 |
|
|
1092 |
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1063 |
if (pageSize !== undefined) {
|
|
1064 |
localVarQueryParameter['pageSize'] = pageSize;
|
|
1065 |
}
|
1093 |
1066 |
|
|
1067 |
|
|
1068 |
|
1094 |
1069 |
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1095 |
1070 |
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1096 |
1071 |
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
1097 |
|
localVarRequestOptions.data = serializeDataIfNeeded(documentListRequest, localVarRequestOptions, configuration)
|
1098 |
1072 |
|
1099 |
1073 |
return {
|
1100 |
1074 |
url: toPathString(localVarUrlObj),
|
... | ... | |
1146 |
1120 |
return {
|
1147 |
1121 |
/**
|
1148 |
1122 |
*
|
1149 |
|
* @param {DocumentListRequest} [documentListRequest]
|
|
1123 |
* @param {number} [pageIndex]
|
|
1124 |
* @param {number} [pageSize]
|
1150 |
1125 |
* @param {*} [options] Override http request option.
|
1151 |
1126 |
* @throws {RequiredError}
|
1152 |
1127 |
*/
|
1153 |
|
async documentsGet(documentListRequest?: DocumentListRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
|
1154 |
|
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(documentListRequest, options);
|
|
1128 |
async documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentListResponse>> {
|
|
1129 |
const localVarAxiosArgs = await localVarAxiosParamCreator.documentsGet(pageIndex, pageSize, options);
|
1155 |
1130 |
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1156 |
1131 |
},
|
1157 |
1132 |
/**
|
... | ... | |
1176 |
1151 |
return {
|
1177 |
1152 |
/**
|
1178 |
1153 |
*
|
1179 |
|
* @param {DocumentListRequest} [documentListRequest]
|
|
1154 |
* @param {number} [pageIndex]
|
|
1155 |
* @param {number} [pageSize]
|
1180 |
1156 |
* @param {*} [options] Override http request option.
|
1181 |
1157 |
* @throws {RequiredError}
|
1182 |
1158 |
*/
|
1183 |
|
documentsGet(documentListRequest?: DocumentListRequest, options?: any): AxiosPromise<DocumentListResponse> {
|
1184 |
|
return localVarFp.documentsGet(documentListRequest, options).then((request) => request(axios, basePath));
|
|
1159 |
documentsGet(pageIndex?: number, pageSize?: number, options?: any): AxiosPromise<DocumentListResponse> {
|
|
1160 |
return localVarFp.documentsGet(pageIndex, pageSize, options).then((request) => request(axios, basePath));
|
1185 |
1161 |
},
|
1186 |
1162 |
/**
|
1187 |
1163 |
*
|
... | ... | |
1204 |
1180 |
export class DocumentApi extends BaseAPI {
|
1205 |
1181 |
/**
|
1206 |
1182 |
*
|
1207 |
|
* @param {DocumentListRequest} [documentListRequest]
|
|
1183 |
* @param {number} [pageIndex]
|
|
1184 |
* @param {number} [pageSize]
|
1208 |
1185 |
* @param {*} [options] Override http request option.
|
1209 |
1186 |
* @throws {RequiredError}
|
1210 |
1187 |
* @memberof DocumentApi
|
1211 |
1188 |
*/
|
1212 |
|
public documentsGet(documentListRequest?: DocumentListRequest, options?: AxiosRequestConfig) {
|
1213 |
|
return DocumentApiFp(this.configuration).documentsGet(documentListRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1189 |
public documentsGet(pageIndex?: number, pageSize?: number, options?: AxiosRequestConfig) {
|
|
1190 |
return DocumentApiFp(this.configuration).documentsGet(pageIndex, pageSize, options).then((request) => request(this.axios, this.basePath));
|
1214 |
1191 |
}
|
1215 |
1192 |
|
1216 |
1193 |
/**
|
API regenerated