UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

54 lines (53 loc) 1.9 kB
import { ApiResponseData } from "../../../models/api-response-data"; import { Endpoint } from "../../endpoint"; import { CreateGroupRequest } from "../../../models/admin/create-group-request"; import { UpdateGroupRequest } from "../../../models/admin/update-group-request"; /** * An endpoint for working with Knora groups. * @deprecated Use open API docs instead * @category Endpoint Admin */ export declare class GroupsEndpointAdmin extends Endpoint { /** * Returns a list of all groups. */ getGroups(): import("rxjs").Observable<ApiResponseData<any>>; /** * Creates a group. * * @param group The group to be created. */ createGroup(group: CreateGroupRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Gets a group by IRI. * * @param iri The IRI of the group. */ getGroupByIri(iri: string): import("rxjs").Observable<ApiResponseData<any>>; /** * Updates a group. * * @param iri The IRI of the group to be updated. * @param groupInfo The group information to be updated. */ updateGroup(iri: string, groupInfo: UpdateGroupRequest): import("rxjs").Observable<ApiResponseData<any>>; /** * Updates the status of a group. * * @param iri The IRI of the group to be updated. * @param status The new status of the group. */ updateGroupStatus(iri: string, status: boolean): import("rxjs").Observable<ApiResponseData<any>>; /** * Deletes a group. This method does not actually delete a group, but sets the status to false. * * @param iri The IRI of the group. */ deleteGroup(iri: string): import("rxjs").Observable<ApiResponseData<any>>; /** * Gets the members of a group. * * @param iri The IRI of the group. */ getGroupMembers(iri: string): import("rxjs").Observable<ApiResponseData<any>>; }