import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ShortenedUrl } from '../model/shortenedUrl'; import { ShortenedUrlParams } from '../model/shortenedUrlParams'; import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; import * as i0 from "@angular/core"; export interface DeleteShortenedUrlRequestParams { /** Уникальный идентификатор запроса к системе */ xRequestID: string; /** Идентификатор короткой ссылки */ shortenedUrlID: string; } export interface GetShortenedUrlRequestParams { /** Уникальный идентификатор запроса к системе */ xRequestID: string; /** Идентификатор короткой ссылки */ shortenedUrlID: string; } export interface ShortenUrlRequestParams { /** Уникальный идентификатор запроса к системе */ xRequestID: string; /** Параметры для создания короткой ссылки */ shortenedUrlParams: ShortenedUrlParams; } export declare class ShortenerService extends BaseService { protected httpClient: HttpClient; constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration); /** * Удалить короткую ссылку * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ deleteShortenedUrl(requestParameters: DeleteShortenedUrlRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable; deleteShortenedUrl(requestParameters: DeleteShortenedUrlRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable>; deleteShortenedUrl(requestParameters: DeleteShortenedUrlRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * Получить данные созданной короткой ссылки * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getShortenedUrl(requestParameters: GetShortenedUrlRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable; getShortenedUrl(requestParameters: GetShortenedUrlRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable>; getShortenedUrl(requestParameters: GetShortenedUrlRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable>; /** * Создать новую короткую ссылку * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ shortenUrl(requestParameters: ShortenUrlRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable; shortenUrl(requestParameters: ShortenUrlRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable>; shortenUrl(requestParameters: ShortenUrlRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json; charset=utf-8'; context?: HttpContext; transferCache?: boolean; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }