UNPKG

@nestjs-mod/webhook-afat

Version:

Webhook 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.72 kB
import { WebhookRestClientApiModule, WebhookRestClientConfiguration, WebhookRestService } from './rest-sdk'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class WebhookRestSdkAngularService { private readonly webhookRestClientConfiguration; private readonly webhookRestService; constructor(webhookRestClientConfiguration: WebhookRestClientConfiguration, webhookRestService: WebhookRestService); getWebhookApi(): WebhookRestService; 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<WebhookRestSdkAngularService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<WebhookRestSdkAngularService>; } export declare class WebhookRestSdkAngularModule { static forRoot(configuration: Partial<WebhookRestClientConfiguration>): { ngModule: typeof WebhookRestSdkAngularModule; providers: { provide: typeof WebhookRestClientConfiguration; useValue: WebhookRestClientConfiguration; }[]; imports: import("@angular/core").ModuleWithProviders<WebhookRestClientApiModule>[]; exports: (typeof WebhookRestClientConfiguration | import("@angular/core").ModuleWithProviders<WebhookRestClientApiModule>)[]; }; static ɵfac: i0.ɵɵFactoryDeclaration<WebhookRestSdkAngularModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<WebhookRestSdkAngularModule, never, never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<WebhookRestSdkAngularModule>; }