/** * File upload project API * File upload API * * The version of the OpenAPI document: 1.0.0 * Contact: aleksandr@wemakesoftware.eu * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from './configuration'; import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { RequestArgs, BaseAPI } from './base'; /** * * @export * @interface DoFail */ export interface DoFail { /** * * @type {number} * @memberof DoFail */ 'id'?: number; /** * * @type {string} * @memberof DoFail */ 'fileName'?: string; /** * * @type {number} * @memberof DoFail */ 'fileSize'?: number; /** * * @type {string} * @memberof DoFail */ 'fileUrl'?: string; /** * * @type {string} * @memberof DoFail */ 'fileExtension'?: string; /** * * @type {string} * @memberof DoFail */ 'notes'?: string; /** * * @type {string} * @memberof DoFail */ 'fileType'?: string; /** * * @type {string} * @memberof DoFail */ 'title'?: string; /** * * @type {string} * @memberof DoFail */ 'hash'?: string; /** * * @type {string} * @memberof DoFail */ 'storageKey'?: string; /** * * @type {string} * @memberof DoFail */ 'publisher'?: string; /** * * @type {string} * @memberof DoFail */ 'createdBy'?: string; /** * * @type {string} * @memberof DoFail */ 'updatedBy'?: string; /** * * @type {Date} * @memberof DoFail */ 'createdTime'?: Date; /** * * @type {Date} * @memberof DoFail */ 'updatedTime'?: Date; /** * * @type {number} * @memberof DoFail */ 'faty'?: number; /** * * @type {Date} * @memberof DoFail */ 'docDate'?: Date; } /** * * @export * @interface FileInfo */ export interface FileInfo { /** * * @type {number} * @memberof FileInfo */ 'id'?: number; /** * * @type {string} * @memberof FileInfo */ 'fileName'?: string; /** * * @type {string} * @memberof FileInfo */ 'uploader'?: string; /** * * @type {Date} * @memberof FileInfo */ 'date'?: Date; /** * * @type {string} * @memberof FileInfo */ 'docType'?: string; } /** * * @export * @interface InlineObject */ export interface InlineObject { /** * * @type {any} * @memberof InlineObject */ 'file'?: any; } /** * * @export * @interface InlineObject4 */ export interface InlineObject4 { /** * * @type {any} * @memberof InlineObject4 */ 'file'?: any; } /** * CommonFileUploadControllerApi - axios parameter creator * @export */ export declare const CommonFileUploadControllerApiAxiosParamCreator: (configuration?: Configuration | undefined) => { /** * * @summary Clone files and create relations to document. * @param {Array} fileIds * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ cloneFilesAndCreateRels: (fileIds: Array, docNr?: string | undefined, relType?: string | undefined, options?: AxiosRequestConfig) => Promise; /** * * @summary Delete file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile: (fileId: number, options?: AxiosRequestConfig) => Promise; /** * * @summary Download file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile: (fileId: number, options?: AxiosRequestConfig) => Promise; /** * * @summary Update file * @param {number} fileId * @param {InlineObject} [inlineObject] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFile: (fileId: number, inlineObject?: InlineObject | undefined, options?: AxiosRequestConfig) => Promise; /** * * @summary Update file info. * @param {DoFail} doFail * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFileInfo: (doFail: DoFail, options?: AxiosRequestConfig) => Promise; /** * * @summary upload file * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile: (file?: any, options?: AxiosRequestConfig) => Promise; /** * * @summary upload file with file info * @param {any} [file] * @param {DoFail} [fileInfo] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFileWithFileInfo: (file?: any, fileInfo?: DoFail | undefined, options?: AxiosRequestConfig) => Promise; /** * * @summary upload file with file info and document relation * @param {any} [file] * @param {DoFail} [fileInfo] * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFileWithFileInfoAndDocRel: (file?: any, fileInfo?: DoFail | undefined, docNr?: string | undefined, relType?: string | undefined, options?: AxiosRequestConfig) => Promise; }; /** * CommonFileUploadControllerApi - functional programming interface * @export */ export declare const CommonFileUploadControllerApiFp: (configuration?: Configuration | undefined) => { /** * * @summary Clone files and create relations to document. * @param {Array} fileIds * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ cloneFilesAndCreateRels(fileIds: Array, docNr?: string | undefined, relType?: string | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary Delete file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile(fileId: number, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary Download file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile(fileId: number, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary Update file * @param {number} fileId * @param {InlineObject} [inlineObject] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFile(fileId: number, inlineObject?: InlineObject | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary Update file info. * @param {DoFail} doFail * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFileInfo(doFail: DoFail, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary upload file * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile(file?: any, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary upload file with file info * @param {any} [file] * @param {DoFail} [fileInfo] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFileWithFileInfo(file?: any, fileInfo?: DoFail | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary upload file with file info and document relation * @param {any} [file] * @param {DoFail} [fileInfo] * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFileWithFileInfoAndDocRel(file?: any, fileInfo?: DoFail | undefined, docNr?: string | undefined, relType?: string | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; }; /** * CommonFileUploadControllerApi - factory interface * @export */ export declare const CommonFileUploadControllerApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => { /** * * @summary Clone files and create relations to document. * @param {Array} fileIds * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ cloneFilesAndCreateRels(fileIds: Array, docNr?: string | undefined, relType?: string | undefined, options?: any): AxiosPromise; /** * * @summary Delete file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile(fileId: number, options?: any): AxiosPromise; /** * * @summary Download file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile(fileId: number, options?: any): AxiosPromise; /** * * @summary Update file * @param {number} fileId * @param {InlineObject} [inlineObject] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFile(fileId: number, inlineObject?: InlineObject | undefined, options?: any): AxiosPromise; /** * * @summary Update file info. * @param {DoFail} doFail * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFileInfo(doFail: DoFail, options?: any): AxiosPromise; /** * * @summary upload file * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile(file?: any, options?: any): AxiosPromise; /** * * @summary upload file with file info * @param {any} [file] * @param {DoFail} [fileInfo] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFileWithFileInfo(file?: any, fileInfo?: DoFail | undefined, options?: any): AxiosPromise; /** * * @summary upload file with file info and document relation * @param {any} [file] * @param {DoFail} [fileInfo] * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFileWithFileInfoAndDocRel(file?: any, fileInfo?: DoFail | undefined, docNr?: string | undefined, relType?: string | undefined, options?: any): AxiosPromise; }; /** * CommonFileUploadControllerApi - object-oriented interface * @export * @class CommonFileUploadControllerApi * @extends {BaseAPI} */ export declare class CommonFileUploadControllerApi extends BaseAPI { /** * * @summary Clone files and create relations to document. * @param {Array} fileIds * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ cloneFilesAndCreateRels(fileIds: Array, docNr?: string, relType?: string, options?: AxiosRequestConfig): Promise>; /** * * @summary Delete file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ deleteFile(fileId: number, options?: AxiosRequestConfig): Promise>; /** * * @summary Download file * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ downloadFile(fileId: number, options?: AxiosRequestConfig): Promise>; /** * * @summary Update file * @param {number} fileId * @param {InlineObject} [inlineObject] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ updateFile(fileId: number, inlineObject?: InlineObject, options?: AxiosRequestConfig): Promise>; /** * * @summary Update file info. * @param {DoFail} doFail * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ updateFileInfo(doFail: DoFail, options?: AxiosRequestConfig): Promise>; /** * * @summary upload file * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ uploadFile(file?: any, options?: AxiosRequestConfig): Promise>; /** * * @summary upload file with file info * @param {any} [file] * @param {DoFail} [fileInfo] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ uploadFileWithFileInfo(file?: any, fileInfo?: DoFail, options?: AxiosRequestConfig): Promise>; /** * * @summary upload file with file info and document relation * @param {any} [file] * @param {DoFail} [fileInfo] * @param {string} [docNr] * @param {string} [relType] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommonFileUploadControllerApi */ uploadFileWithFileInfoAndDocRel(file?: any, fileInfo?: DoFail, docNr?: string, relType?: string, options?: AxiosRequestConfig): Promise>; } /** * FileUploadControllerApi - axios parameter creator * @export */ export declare const FileUploadControllerApiAxiosParamCreator: (configuration?: Configuration | undefined) => { /** * * @summary Delete file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile1: (documentType: string, applicationNumber: string, fileId: number, options?: AxiosRequestConfig) => Promise; /** * * @summary Download file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile1: (documentType: string, applicationNumber: string, fileId: number, options?: AxiosRequestConfig) => Promise; /** * * @summary List of available files by document id * @param {number} documentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFilesListByDocumentId: (documentId: number, options?: AxiosRequestConfig) => Promise; /** * * @summary Update file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {InlineObject4} [inlineObject4] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFile1: (documentType: string, applicationNumber: string, fileId: number, inlineObject4?: InlineObject4 | undefined, options?: AxiosRequestConfig) => Promise; /** * * @summary upload file * @param {string} documentType * @param {string} applicationNumber * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile1: (documentType: string, applicationNumber: string, file?: any, options?: AxiosRequestConfig) => Promise; }; /** * FileUploadControllerApi - functional programming interface * @export */ export declare const FileUploadControllerApiFp: (configuration?: Configuration | undefined) => { /** * * @summary Delete file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile1(documentType: string, applicationNumber: string, fileId: number, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary Download file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile1(documentType: string, applicationNumber: string, fileId: number, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary List of available files by document id * @param {number} documentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFilesListByDocumentId(documentId: number, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>>; /** * * @summary Update file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {InlineObject4} [inlineObject4] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFile1(documentType: string, applicationNumber: string, fileId: number, inlineObject4?: InlineObject4 | undefined, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; /** * * @summary upload file * @param {string} documentType * @param {string} applicationNumber * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile1(documentType: string, applicationNumber: string, file?: any, options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; }; /** * FileUploadControllerApi - factory interface * @export */ export declare const FileUploadControllerApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => { /** * * @summary Delete file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFile1(documentType: string, applicationNumber: string, fileId: number, options?: any): AxiosPromise; /** * * @summary Download file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadFile1(documentType: string, applicationNumber: string, fileId: number, options?: any): AxiosPromise; /** * * @summary List of available files by document id * @param {number} documentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFilesListByDocumentId(documentId: number, options?: any): AxiosPromise>; /** * * @summary Update file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {InlineObject4} [inlineObject4] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFile1(documentType: string, applicationNumber: string, fileId: number, inlineObject4?: InlineObject4 | undefined, options?: any): AxiosPromise; /** * * @summary upload file * @param {string} documentType * @param {string} applicationNumber * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadFile1(documentType: string, applicationNumber: string, file?: any, options?: any): AxiosPromise; }; /** * FileUploadControllerApi - object-oriented interface * @export * @class FileUploadControllerApi * @extends {BaseAPI} */ export declare class FileUploadControllerApi extends BaseAPI { /** * * @summary Delete file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileUploadControllerApi */ deleteFile1(documentType: string, applicationNumber: string, fileId: number, options?: AxiosRequestConfig): Promise>; /** * * @summary Download file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileUploadControllerApi */ downloadFile1(documentType: string, applicationNumber: string, fileId: number, options?: AxiosRequestConfig): Promise>; /** * * @summary List of available files by document id * @param {number} documentId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileUploadControllerApi */ getFilesListByDocumentId(documentId: number, options?: AxiosRequestConfig): Promise>; /** * * @summary Update file * @param {string} documentType * @param {string} applicationNumber * @param {number} fileId * @param {InlineObject4} [inlineObject4] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileUploadControllerApi */ updateFile1(documentType: string, applicationNumber: string, fileId: number, inlineObject4?: InlineObject4, options?: AxiosRequestConfig): Promise>; /** * * @summary upload file * @param {string} documentType * @param {string} applicationNumber * @param {any} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FileUploadControllerApi */ uploadFile1(documentType: string, applicationNumber: string, file?: any, options?: AxiosRequestConfig): Promise>; } /** * HealthCheckEndpointApi - axios parameter creator * @export */ export declare const HealthCheckEndpointApiAxiosParamCreator: (configuration?: Configuration | undefined) => { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ healthCheck: (options?: AxiosRequestConfig) => Promise; }; /** * HealthCheckEndpointApi - functional programming interface * @export */ export declare const HealthCheckEndpointApiFp: (configuration?: Configuration | undefined) => { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ healthCheck(options?: AxiosRequestConfig | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise>; }; /** * HealthCheckEndpointApi - factory interface * @export */ export declare const HealthCheckEndpointApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ healthCheck(options?: any): AxiosPromise; }; /** * HealthCheckEndpointApi - object-oriented interface * @export * @class HealthCheckEndpointApi * @extends {BaseAPI} */ export declare class HealthCheckEndpointApi extends BaseAPI { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof HealthCheckEndpointApi */ healthCheck(options?: AxiosRequestConfig): Promise>; }