/** * Qase.io TestOps API v1 * Qase TestOps API v1 Specification. * * The version of the OpenAPI document: 1.0.0 * Contact: support@qase.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { AttachmentListResponse } from '../model'; import { AttachmentResponse } from '../model'; import { AttachmentUploadsResponse } from '../model'; import { HashResponse } from '../model'; /** * AttachmentsApi - axios parameter creator * @export */ export declare const AttachmentsApiAxiosParamCreator: (configuration?: Configuration) => { /** * This method allows to remove attachment by Hash. * @summary Remove attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAttachment: (hash: string, options?: AxiosRequestConfig) => Promise; /** * This method allows to retrieve attachment by Hash. * @summary Get attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAttachment: (hash: string, options?: AxiosRequestConfig) => Promise; /** * This method allows to retrieve attachments. * @summary Get all attachments * @param {number} [limit] A number of entities in result set. * @param {number} [offset] How many entities should be skipped. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAttachments: (limit?: number, offset?: number, options?: AxiosRequestConfig) => Promise; /** * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. * @summary Upload attachment * @param {string} code Code of project, where to search entities. * @param {Array} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadAttachment: (code: string, file?: Array, options?: AxiosRequestConfig) => Promise; }; /** * AttachmentsApi - functional programming interface * @export */ export declare const AttachmentsApiFp: (configuration?: Configuration) => { /** * This method allows to remove attachment by Hash. * @summary Remove attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAttachment(hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This method allows to retrieve attachment by Hash. * @summary Get attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAttachment(hash: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This method allows to retrieve attachments. * @summary Get all attachments * @param {number} [limit] A number of entities in result set. * @param {number} [offset] How many entities should be skipped. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAttachments(limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. * @summary Upload attachment * @param {string} code Code of project, where to search entities. * @param {Array} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadAttachment(code: string, file?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AttachmentsApi - factory interface * @export */ export declare const AttachmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * This method allows to remove attachment by Hash. * @summary Remove attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAttachment(hash: string, options?: any): AxiosPromise; /** * This method allows to retrieve attachment by Hash. * @summary Get attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAttachment(hash: string, options?: any): AxiosPromise; /** * This method allows to retrieve attachments. * @summary Get all attachments * @param {number} [limit] A number of entities in result set. * @param {number} [offset] How many entities should be skipped. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAttachments(limit?: number, offset?: number, options?: any): AxiosPromise; /** * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. * @summary Upload attachment * @param {string} code Code of project, where to search entities. * @param {Array} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} */ uploadAttachment(code: string, file?: Array, options?: any): AxiosPromise; }; /** * AttachmentsApi - object-oriented interface * @export * @class AttachmentsApi * @extends {BaseAPI} */ export declare class AttachmentsApi extends BaseAPI { /** * This method allows to remove attachment by Hash. * @summary Remove attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AttachmentsApi */ deleteAttachment(hash: string, options?: AxiosRequestConfig): Promise>; /** * This method allows to retrieve attachment by Hash. * @summary Get attachment by Hash * @param {string} hash Hash. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AttachmentsApi */ getAttachment(hash: string, options?: AxiosRequestConfig): Promise>; /** * This method allows to retrieve attachments. * @summary Get all attachments * @param {number} [limit] A number of entities in result set. * @param {number} [offset] How many entities should be skipped. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AttachmentsApi */ getAttachments(limit?: number, offset?: number, options?: AxiosRequestConfig): Promise>; /** * This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. * @summary Upload attachment * @param {string} code Code of project, where to search entities. * @param {Array} [file] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AttachmentsApi */ uploadAttachment(code: string, file?: Array, options?: AxiosRequestConfig): Promise>; }