import { TranslateService } from '@ngx-translate/core'; import { Project } from './../../model/project'; import { Observable } from 'rxjs/Observable'; import { ErasConfigService } from './../eras-config.service'; import { ErasHttpService } from './../eras-http.service'; import 'rxjs/add/operator/mergeMap'; export declare class ProjectDataService { private erasHttpService; private translateService; private erasConfigService; private readonly TYPES; private readonly DEFAULT_TYPE; constructor(erasHttpService: ErasHttpService, translateService: TranslateService, erasConfigService: ErasConfigService); /** * Return a observable of Project ___see also___: [Project]{@link Project} * * @param id required Project Id * */ get(id: string): Observable; /** * Return a observable of Project Array ___see also___: [Project]{@link Project} * * * @param subset Filter projects based on its ownership: __"all"__ to return all projects that current user has access, * __"shared"__ to return the projects created by other users but shared with the current user and __"my"__ to return all the * projects owned by the current user. * @param name Filter projects which names contain the value passed through this parameter. * * */ list(subset?: string, name?: string): Observable; type(project: Project): any; /** * _Param attributes is a liteal object defined by:_ * * ``` *{ * description?:string, * visibility?: string, * type: string *} * ``` * @param projectId * @param attributes */ update(projectId: string, attributes: { description?: string; visibility?: string; type?: string; }): Observable; }