UNPKG

@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.

20 lines (19 loc) 1.17 kB
import { BehaviorSubject, Observable } from "rxjs"; import { ApiRequesterType, KoalaApiRequesterService } from "./koala.api-requester.service"; import { KoalaResponseInterface } from "./helpers/error/koala.errors.helper"; export declare abstract class KoalaApiRequesterBase<EntityType, GetAllType, DataType> { protected koalaService: KoalaApiRequesterService; protected endpoint: string; protected statusCache: boolean; protected constructor(koalaService: KoalaApiRequesterService, endpoint: string, statusCache?: boolean, environmentNameToEndpointApi?: string, isMockup?: boolean); getAll(filter?: BehaviorSubject<any> | any): Observable<GetAllType>; getById(id: number): Observable<EntityType>; getBySomething<Type>(something: any): Observable<Type>; save(data: DataType, id?: number): Observable<KoalaResponseInterface>; delete(id: number): Observable<KoalaResponseInterface>; cancelRequests(): Promise<void>; getParams(params?: BehaviorSubject<any> | any): Promise<any>; request<T>(method: ApiRequesterType, url: string, data?: any): Observable<T>; enableCache(): void; disableCache(): void; }