import { Observable} from "rxjs"; import { Label } from "./interface"; import { Inject, Injectable } from "@angular/core"; import { Http } from "@angular/http"; import { IServiceConfig, SERVICE_CONFIG } from "../service.config"; import { buildHttpRequestOptions, HTTP_JSON_OPTIONS } from "../utils"; import { RequestQueryParams } from "./RequestQueryParams"; export abstract class LabelService { abstract getGLabels( name?: string, queryParams?: RequestQueryParams ): Observable | Promise; abstract getPLabels( projectId: number, name?: string, queryParams?: RequestQueryParams ): Observable | Promise; abstract getLabels( scope: string, projectId?: number, name?: string, queryParams?: RequestQueryParams ): Observable | Promise; abstract createLabel( label: Label ): Observable