@nestjs-mod/files-afat
Version:
Files UI components and tools for AFAT (Angular, Formly, Antd, Transloco) and rest-sdk for work with backend of this module from Angular appliaction
54 lines (53 loc) • 2.98 kB
TypeScript
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
import { Observable } from 'rxjs';
import { FilesPresignedUrlsInterface } from '../model/files-presigned-urls.interface';
import { StatusResponseInterface } from '../model/status-response.interface';
import { FilesRestClientConfiguration } from '../configuration';
import { BaseService } from '../api.base.service';
import * as i0 from "@angular/core";
export declare class FilesRestService extends BaseService {
protected httpClient: HttpClient;
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: FilesRestClientConfiguration);
/**
* @param downloadUrl
* @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.
*/
filesControllerDeleteFile(downloadUrl: string, observe?: 'body', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<StatusResponseInterface>;
filesControllerDeleteFile(downloadUrl: string, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpResponse<StatusResponseInterface>>;
filesControllerDeleteFile(downloadUrl: string, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpEvent<StatusResponseInterface>>;
/**
* @param ext
* @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.
*/
filesControllerGetPresignedUrl(ext: string, observe?: 'body', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<FilesPresignedUrlsInterface>;
filesControllerGetPresignedUrl(ext: string, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpResponse<FilesPresignedUrlsInterface>>;
filesControllerGetPresignedUrl(ext: string, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json';
context?: HttpContext;
transferCache?: boolean;
}): Observable<HttpEvent<FilesPresignedUrlsInterface>>;
static ɵfac: i0.ɵɵFactoryDeclaration<FilesRestService, [null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<FilesRestService>;
}