UNPKG

@knora/api

Version:

JavaScript library that handles API requests to Knora

21 lines (20 loc) 817 B
import { Observable } from "rxjs"; import { AdminEndpoint } from "../api/admin/admin-endpoint"; import { ListResponse } from "../models/admin/list-response"; import { GenericCache } from "./GenericCache"; /** * Caches user information obtained from Knora. */ export declare class ListAdminCache extends GenericCache<ListResponse> { private adminEndpoint; constructor(adminEndpoint: AdminEndpoint); /** * Requests a whole list from the admin API. * * @param listIri IRI of the list. */ getList(listIri: string): import("rxjs").AsyncSubject<ListResponse>; protected requestItemFromKnora(key: string, isDependency: boolean): Observable<ListResponse[]>; protected getKeyOfItem(item: ListResponse): string; protected getDependenciesOfItem(item: ListResponse): string[]; }