UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

27 lines (26 loc) 1.03 kB
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").Observable<ListResponse>; /** * Public method to access the reloadItem method * * @param key the id of the information to be returned. * @return the item */ reloadCachedItem(key: string): import("rxjs").Observable<ListResponse>; protected requestItemFromKnora(key: string, isDependency: boolean): import("rxjs").Observable<ListResponse[]>; protected getKeyOfItem(item: ListResponse): string; protected getDependenciesOfItem(item: ListResponse): string[]; }