UNPKG

@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

35 lines (34 loc) 1.67 kB
import { FilesRestClientApiModule, FilesRestClientConfiguration, FilesRestService } from './rest-sdk'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class FilesRestSdkAngularService { private readonly filesRestClientConfiguration; private readonly filesRestService; constructor(filesRestClientConfiguration: FilesRestClientConfiguration, filesRestService: FilesRestService); getFilesApi(): FilesRestService; updateHeaders(headers: Record<string, string>): void; webSocket<T>({ path, eventName, options, }: { path: string; eventName: string; options?: any; }): Observable<{ data: T; event: string; }>; static ɵfac: i0.ɵɵFactoryDeclaration<FilesRestSdkAngularService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<FilesRestSdkAngularService>; } export declare class FilesRestSdkAngularModule { static forRoot(configuration: Partial<FilesRestClientConfiguration>): { ngModule: typeof FilesRestSdkAngularModule; providers: { provide: typeof FilesRestClientConfiguration; useValue: FilesRestClientConfiguration; }[]; imports: import("@angular/core").ModuleWithProviders<FilesRestClientApiModule>[]; exports: (typeof FilesRestClientConfiguration | import("@angular/core").ModuleWithProviders<FilesRestClientApiModule>)[]; }; static ɵfac: i0.ɵɵFactoryDeclaration<FilesRestSdkAngularModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<FilesRestSdkAngularModule, never, never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<FilesRestSdkAngularModule>; }