import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { PlatformFileBankModel } from '../model/platformFile'; import { PlatformFileListBankModel } from '../model/platformFileList'; import { PostFileBankModel } from '../model/postFile'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class FilesService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create File * Creates a file. #### This feature is currently in preview mode and is not yet available for partner use. ## Data The attribute contains the base64 encoded file content. The value needs to be smaller than 10MB otherwise the Platform will reject the request. To upload files larger than 10MB do not provide the content and use the returned upload URL to provide the file. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the file in our private store | | completed | The Platform has completed storing the file | | failed | The Platform failed to store the file | Required scope: **files:execute** * @param postFileBankModel * @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. */ createFile(postFileBankModel: PostFileBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createFile(postFileBankModel: PostFileBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createFile(postFileBankModel: PostFileBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get File * Retrieves a file. Required scopes: **files:read, files:pii:read** * @param fileGuid Identifier for the file. * @param includeDownloadUrl Include download information in response. Note, the files:pii:read scope is required if this parameter is set. * @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. */ getFile(fileGuid: string, includeDownloadUrl?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getFile(fileGuid: string, includeDownloadUrl?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getFile(fileGuid: string, includeDownloadUrl?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * List Files * Retrieves a list of files. Records are sorted by creation date in descending order. Required scope: **files:read** * @param page The page index to retrieve. * @param perPage The number of entities per page to return. * @param guid Comma separated file_guids to list files for. * @param type Comma separated file types to list files for. * @param state Comma separated file states to list files for. * @param bankGuid Comma separated bank_guids to list files for. * @param customerGuid Comma separated customer_guids to list files for. * @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. */ listFiles(page?: string, perPage?: string, guid?: string, type?: string, state?: string, bankGuid?: string, customerGuid?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listFiles(page?: string, perPage?: string, guid?: string, type?: string, state?: string, bankGuid?: string, customerGuid?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listFiles(page?: string, perPage?: string, guid?: string, type?: string, state?: string, bankGuid?: string, customerGuid?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }