UNPKG

my-test123

Version:
43 lines (42 loc) 1.52 kB
import { Observable } from 'rxjs/Observable'; import { GlobalSettings } from '../shared/globals'; import { Logger } from 'ngx-base'; import { AuthenticationService } from 'ngx-login-client'; import { HttpService } from './http-service'; import { Spaces } from 'ngx-fabric8-wit'; import { AreaModel } from '../models/area.model'; export declare class AreaService { private logger; private http; private auth; private globalSettings; private spaces; areas: AreaModel[]; private headers; private _currentSpace; constructor(logger: Logger, http: HttpService, auth: AuthenticationService, globalSettings: GlobalSettings, spaces: Spaces); /** * getAreas - We call this service method to fetch * @param areaUrl - The url to get all the areas * @return Promise of AreaModel[] - Array of areas */ getAreas(): Observable<AreaModel[]>; /** * getAreas - We call this service method to fetch * @param areaUrl - The url to get all the areas * @return Observable of AreaModel[] - Array of areas */ getAreas2(areaUrl: any): Observable<AreaModel[]>; getArea(area: any): Observable<AreaModel>; getAreaById(areaId: string): Observable<AreaModel>; /** * checkValidUrl checks if the API url for * iterations is valid or not * sample url - * http://localhost:8080/api/spaces/d7d98b45-415a-4cfc-add2-ec7b7aee7dd5/areas * * @param URL * @return Boolean */ checkValidUrl(url: string): Boolean; }