UNPKG

@veeroute/lss-account-angular

Version:

OpenAPI client for @veeroute/lss-account-angular

58 lines (57 loc) 4.18 kB
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { UserStatisticsAccount } from '../model/userStatistics'; import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; import { StatisticsServiceInterface, GenerateReportRequestParams, GenerateStatisticsRequestParams } from './statisticsServiceInterface'; import * as i0 from "@angular/core"; export declare class StatisticsService extends BaseService implements StatisticsServiceInterface { protected httpClient: HttpClient; constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration); /** * Report creating * Creating report with usage statistics. If the period is not specified, records are returned from the beginning of the month to the present day (excluding). If no &#x60;from&#x60; datetime is specified, data are returned from the beginning of the month. If no &#x60;to&#x60; datetime is specified, data are returned be the the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types. * @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. */ generateReport(requestParameters?: GenerateReportRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/octet-stream' | 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<string>; generateReport(requestParameters?: GenerateReportRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/octet-stream' | 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<string>>; generateReport(requestParameters?: GenerateReportRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/octet-stream' | 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<string>>; /** * Statistics for the period * User statistics for the period. If the period is not specified, the statistics for the current month returns (from the beginning of the month to the present day). If no &#x60;from&#x60; datetime is specified, data are returned from the beginning of the month. If no &#x60;to&#x60; datetime is specified, data are returned be to the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types. * @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. */ generateStatistics(requestParameters?: GenerateStatisticsRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<UserStatisticsAccount>; generateStatistics(requestParameters?: GenerateStatisticsRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<UserStatisticsAccount>>; generateStatistics(requestParameters?: GenerateStatisticsRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<UserStatisticsAccount>>; static ɵfac: i0.ɵɵFactoryDeclaration<StatisticsService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<StatisticsService>; }