@koalarx/ui
Version:
Koala UI is a Design System developed in Angular whose objective is to facilitate and make your development faster and simpler, making this framework your greatest ally.
25 lines (24 loc) • 1.11 kB
TypeScript
import { HttpClient } from "@angular/common/http";
import { KoalaOAuth2Service } from "../openid/koala.oauth2.service";
import { Observable } from "rxjs";
import * as i0 from "@angular/core";
export declare type ApiRequesterType = 'get' | 'post' | 'put' | 'patch' | 'delete';
export declare class KoalaApiRequesterService {
private http;
private oauth2Service;
apiUrl: string;
isMockup: boolean;
private subscriptions;
constructor(http: HttpClient, oauth2Service: KoalaOAuth2Service);
eventStream<T>(url: string, onmessage: (data: T[]) => void, onopen?: (event?: any) => void, onerror?: (event?: any) => void, onclose?: (event?: any) => void): void;
request<T>(method: ApiRequesterType, url: string, data?: any): Observable<T>;
cancelRequests(): void;
private get;
private postPutDelete;
private promiseGetData;
private promiseSendData;
private getUrlBase;
private getMethod;
static ɵfac: i0.ɵɵFactoryDeclaration<KoalaApiRequesterService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<KoalaApiRequesterService>;
}