/** * MAB API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AttachmentInfo } from '../model/models'; import { AttachmentResponse } from '../model/models'; import { AttachmentType } from '../model/models'; import { Configuration } from '../configuration'; export declare class AttachmentsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm; private addToHttpParams; private addToHttpParamsRecursive; /** * Delete attachment by id * @param id * @param attachmentType * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ apiAttachmentsIdDelete(id: number, attachmentType?: AttachmentType, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; apiAttachmentsIdDelete(id: number, attachmentType?: AttachmentType, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; apiAttachmentsIdDelete(id: number, attachmentType?: AttachmentType, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Get attachment info by id * @param id * @param attachmentType * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ apiAttachmentsIdGet(id: number, attachmentType?: AttachmentType, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; apiAttachmentsIdGet(id: number, attachmentType?: AttachmentType, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; apiAttachmentsIdGet(id: number, attachmentType?: AttachmentType, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Update attachment by id * @param id * @param fileName * @param formFile * @param attachmentType * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ apiAttachmentsIdPut(id: number, fileName: string, formFile: Blob, attachmentType?: AttachmentType, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; apiAttachmentsIdPut(id: number, fileName: string, formFile: Blob, attachmentType?: AttachmentType, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; apiAttachmentsIdPut(id: number, fileName: string, formFile: Blob, attachmentType?: AttachmentType, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Create new attachment * @param fileName * @param formFile * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ apiAttachmentsPost(fileName: string, formFile: Blob, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; apiAttachmentsPost(fileName: string, formFile: Blob, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; apiAttachmentsPost(fileName: string, formFile: Blob, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Get attachment by id * @param id * @param attachmentType * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getAttachment(id: number, attachmentType?: AttachmentType, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; getAttachment(id: number, attachmentType?: AttachmentType, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getAttachment(id: number, attachmentType?: AttachmentType, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; /** * Get attachment from cache by guid * @param guid * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getAttachmentFromCache(guid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable; getAttachmentFromCache(guid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; getAttachmentFromCache(guid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; }): Observable>; }