UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

112 lines (111 loc) 4.86 kB
import { CreateChildNodeRequest } from "../../../models/admin/create-child-node-request"; import { CreateListRequest } from "../../../models/admin/create-list-request"; import { RepositionChildNodeRequest } from "../../../models/admin/reposition-child-node-request"; import { UpdateChildNodeCommentsRequest } from "../../../models/admin/update-child-node-comments-request"; import { UpdateChildNodeLabelsRequest } from "../../../models/admin/update-child-node-labels-request"; import { UpdateChildNodeNameRequest } from "../../../models/admin/update-child-node-name-request"; import { UpdateChildNodeRequest } from "../../../models/admin/update-child-node-request"; import { UpdateListInfoRequest } from "../../../models/admin/update-list-info-request"; import { ApiResponseData } from "../../../models/api-response-data"; import { Endpoint } from "../../endpoint"; /** * An endpoint for working with Knora lists. * @deprecated Use open API docs instead * @category Endpoint Admin */ export declare class ListsEndpointAdmin extends Endpoint { /** * Returns a list of lists. */ getLists(): import("rxjs").Observable<ApiResponseData<any>>; /** * Returns a list of lists in a project. * * @param projectIri The IRI of the project. */ getListsInProject(projectIri: string): import("rxjs").Observable<ApiResponseData<any>>; /** * Updates information about a list. * * @param listInfo Information about the list to be created. */ updateListInfo(listInfo: UpdateListInfoRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Updates the name of an existing child node. * * @param listItemIri the Iri of the list item. * @param name the new name to replace the existing name. */ updateChildName(listItemIri: string, name: UpdateChildNodeNameRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Updates the labels of an existing child node. * * @param listItemIri the Iri of the list item. * @param labels the new labels to replace the existing labels. */ updateChildLabels(listItemIri: string, labels: UpdateChildNodeLabelsRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Updates the comments of an existing child node. * * @param listItemIri the Iri of the list item. * @param comments the new comments to replace the existing comments. */ updateChildComments(listItemIri: string, comments: UpdateChildNodeCommentsRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Deletes the comments of an existing child node. * * @param listItemIri the Iri of the list item. */ deleteChildComments(listItemIri: string): import("rxjs").Observable<ApiResponseData<any>>; /** * Creates a child node in a list. * * @param node The node to be created. */ createChildNode(node: CreateChildNodeRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Returns information about a list. * * @param iri The IRI of the list. */ getListInfo(iri: string): import("rxjs").Observable<ApiResponseData<any>>; /** * Returns the parent node if an IRI of a child node is given. * Returns a deleted flag and IRI if an IRI of a root node is given. * * @param iri The IRI of the list. */ deleteListNode(iri: string): import("rxjs").Observable<ApiResponseData<any>>; /** * Move child node to a certain position in a list. * Parent node IRI can be the same but only if the position is different. * * @param iri The IRI of the list node to move. * @param repositionRequest The parent node IRI and the position the child node should move to. */ repositionChildNode(iri: string, repositionRequest: RepositionChildNodeRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Updates a child node. * * @param nodeInfo Information about the node to be updated. */ updateChildNode(nodeInfo: UpdateChildNodeRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Returns information about a list node using the new route. * * @param listItemIri The IRI of the node. */ getListNodeInfo(listItemIri: string): import("rxjs").Observable<ApiResponseData<any>>; /** * Creates a list using the old route but with the feature toggle enabled. * * @param listInfo Information about the list to be created. */ createList(listInfo: CreateListRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Gets a list using the old route but with the feature toggle enabled * * @param listItemIri The IRI of the list. */ getList(listItemIri: string): import("rxjs").Observable<ApiResponseData<any>>; }