import { Http, Headers } from '@angular/http'; import { Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import * as models from '../model/models'; import { Configuration } from '../configuration'; export declare class FilesApi { protected http: Http; configuration: Configuration; defaultHeaders: Headers; sbClientId: string; sbClientSecret: string; constructor(http: Http, configuration: Configuration); /** * browse file path * browse file folder structure * @param filePath The path to the folder you want to browse (f.e. private/myfolder/) */ browsePrivateByPath(filePath: string, extraHttpRequestParams?: any): Observable; /** * browse file path * browse file folder structure * @param filePath The path to the folder you want to browse (f.e. public/myfolder/) */ browsePublicByPath(filePath: string, extraHttpRequestParams?: any): Observable; /** * initialize private file upload * Initialize new private file upload * @param file Your new file */ createPrivate(file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * initialize private file upload * Initialize new private file upload * @param organizationId The target organization * @param file Your new file */ createPrivateOrganizationFile(organizationId: string, file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * initialize public file upload * Initialize new public file upload * @param file Your new file */ createPublic(file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * initialize public file upload * Initialize new public file upload * @param organizationId The target organization * @param file Your new file */ createPublicOrganizationFile(organizationId: string, file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * delete existing file * delete existing file * @param fileId The file identifier */ deleteOne(fileId: string, extraHttpRequestParams?: any): Observable<{}>; /** * query files * Query files and receive paginated result set * @param pageSize Items per page * @param pageNumber The page index (starting from 1) * @param filter Sequelize filter object like {\"isPublic\": \"true\"} * @param sort Sort object (1=ascending, -1=descending) like {\"createdAt\": -1 } * @param select Select object (1=include, -1=exclude) like {\"Id\": 1, \"name\": 1 } */ query(pageSize?: number, pageNumber?: number, filter?: string, sort?: string, select?: string, extraHttpRequestParams?: any): Observable; /** * Read existing file by id or by filePath * Get the metadata of an existing file by id or by filePath * @param fileId The file identifier * @param filePath The filePath */ readOne(fileId?: string, filePath?: string, extraHttpRequestParams?: any): Observable; /** * Update customData of an existing file * Update customData of an existing file * @param fileId The user identifier * @param updatedFile updated file */ updateOne(fileId: string, updatedFile: models.FileUpdate, extraHttpRequestParams?: any): Observable; /** * verify the successful file upload * verify the successful file upload using the ETag header value * @param fileId The target file you want to verify * @param etagObject The etag response header of the successful file upload */ verifyUpload(fileId: string, etagObject: models.FileVerificationRequest, extraHttpRequestParams?: any): Observable; /** * verify the successful file upload * verify the successful file upload using the ETag header value * @param organizationId The target organization * @param fileId The target file you want to verify * @param etagObject The etag response header of the successful file upload */ verifyUploadOfOrganizationFile(organizationId: string, fileId: string, etagObject: models.FileVerificationRequest, extraHttpRequestParams?: any): Observable; /** * browse file path * browse file folder structure * @param filePath The path to the folder you want to browse (f.e. private/myfolder/) */ browsePrivateByPathWithHttpInfo(filePath: string, extraHttpRequestParams?: any): Observable; /** * browse file path * browse file folder structure * @param filePath The path to the folder you want to browse (f.e. public/myfolder/) */ browsePublicByPathWithHttpInfo(filePath: string, extraHttpRequestParams?: any): Observable; /** * initialize private file upload * Initialize new private file upload * @param file Your new file */ createPrivateWithHttpInfo(file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * initialize private file upload * Initialize new private file upload * @param organizationId The target organization * @param file Your new file */ createPrivateOrganizationFileWithHttpInfo(organizationId: string, file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * initialize public file upload * Initialize new public file upload * @param file Your new file */ createPublicWithHttpInfo(file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * initialize public file upload * Initialize new public file upload * @param organizationId The target organization * @param file Your new file */ createPublicOrganizationFileWithHttpInfo(organizationId: string, file?: models.NewFile, extraHttpRequestParams?: any): Observable; /** * delete existing file * delete existing file * @param fileId The file identifier */ deleteOneWithHttpInfo(fileId: string, extraHttpRequestParams?: any): Observable; /** * query files * Query files and receive paginated result set * @param pageSize Items per page * @param pageNumber The page index (starting from 1) * @param filter Sequelize filter object like {\"isPublic\": \"true\"} * @param sort Sort object (1=ascending, -1=descending) like {\"createdAt\": -1 } * @param select Select object (1=include, -1=exclude) like {\"Id\": 1, \"name\": 1 } */ queryWithHttpInfo(pageSize?: number, pageNumber?: number, filter?: string, sort?: string, select?: string, extraHttpRequestParams?: any): Observable; /** * Read existing file by id or by filePath * Get the metadata of an existing file by id or by filePath * @param fileId The file identifier * @param filePath The filePath */ readOneWithHttpInfo(fileId?: string, filePath?: string, extraHttpRequestParams?: any): Observable; /** * Update customData of an existing file * Update customData of an existing file * @param fileId The user identifier * @param updatedFile updated file */ updateOneWithHttpInfo(fileId: string, updatedFile: models.FileUpdate, extraHttpRequestParams?: any): Observable; /** * verify the successful file upload * verify the successful file upload using the ETag header value * @param fileId The target file you want to verify * @param etagObject The etag response header of the successful file upload */ verifyUploadWithHttpInfo(fileId: string, etagObject: models.FileVerificationRequest, extraHttpRequestParams?: any): Observable; /** * verify the successful file upload * verify the successful file upload using the ETag header value * @param organizationId The target organization * @param fileId The target file you want to verify * @param etagObject The etag response header of the successful file upload */ verifyUploadOfOrganizationFileWithHttpInfo(organizationId: string, fileId: string, etagObject: models.FileVerificationRequest, extraHttpRequestParams?: any): Observable; }