@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
145 lines • 5.82 kB
TypeScript
import { Project } from '../../../models/admin/project';
import { UpdateProjectRequest } from '../../../models/admin/update-project-request';
import { ApiResponseData } from '../../../models/api-response-data';
import { Endpoint } from '../../endpoint';
/**
* An endpoint for working with Knora projects.
* @deprecated Use open API docs instead
* @category Endpoint Admin
*/
export declare class ProjectsEndpointAdmin extends Endpoint {
/**
* Returns a list of all projects.
*/
getProjects(): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Creates a project.
*
* @param project The project to be created.
*/
createProject(project: Project): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets all the unique keywords for all projects.
*/
getKeywords(): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets all the keywords for a project.
*
* @param iri The IRI of the project.
*/
getProjectKeywords(iri: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Updates a project.
*
* @param iri The IRI of the project to be updated.
* @param projectInfo The project info to be updated.
*/
updateProject(iri: string, projectInfo: UpdateProjectRequest): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Deletes a project. This method does not actually delete a project, but sets the status to false.
*
* @param iri The project IRI.
*/
deleteProject(iri: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project by a property.
*
* @param property The name of the property by which the project is identified.
* @param value The value of the property by which the project is identified.
*/
getProject(property: 'iri' | 'shortname' | 'shortcode', value: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project by IRI.
*
* @param iri The IRI of the project.
*/
getProjectByIri(iri: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project by shortname.
*
* @param shortname The shortname of the project.
*/
getProjectByShortname(shortname: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project by shortcode.
*
* @param shortcode The shortcode of the project.
*/
getProjectByShortcode(shortcode: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's members by a property.
*
* @param property The name of the property by which the project is identified.
* @param value The value of the property by which the project is identified.
*/
getProjectMembers(property: 'iri' | 'shortname' | 'shortcode', value: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets the members of a project by IRI.
*
* @param iri The IRI of the project.
*/
getProjectMembersByIri(iri: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's members by shortname.
*
* @param shortname The shortname of the project.
*/
getProjectMembersByShortname(shortname: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's members by shortcode.
*
* @param shortcode The shortcode of the project.
*/
getProjectMembersByShortcode(shortcode: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's admin members by a property.
*
* @param property The name of the property by which the project is identified.
* @param value The value of the property by which the project is identified.
*/
getProjectAdminMembers(property: 'iri' | 'shortname' | 'shortcode', value: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets the admin members of a project by IRI.
*
* @param iri The IRI of the project.
*/
getProjectAdminMembersByIri(iri: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's admin members by shortname.
*
* @param shortname The shortname of the project.
*/
getProjectAdminMembersByShortname(shortname: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's admin members by shortcode.
*
* @param shortcode The shortcode of the project.
*/
getProjectAdminMembersByShortcode(shortcode: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's restricted view settings by a property.
*
* @param property The name of the property by which the project is identified.
* @param value The value of the property by which the project is identified.
*/
getProjectRestrictedViewSettings(property: 'iri' | 'shortname' | 'shortcode', value: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's restricted view settings by IRI.
*
* @param iri The IRI of the project.
*/
getProjectRestrictedViewSettingByIri(iri: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's restricted view settings by shortname.
*
* @param shortname The shortname of the project.
*/
getProjectRestrictedViewSettingByShortname(shortname: string): import("rxjs").Observable<ApiResponseData<any>>;
/**
* Gets a project's restricted view settings by shortcode.
*
* @param shortcode The shortcode of the project.
*/
getProjectRestrictedViewSettingByShortcode(shortcode: string): import("rxjs").Observable<ApiResponseData<any>>;
}
//# sourceMappingURL=projects-endpoint-admin.d.ts.map