806 lines
26 KiB
TypeScript
806 lines
26 KiB
TypeScript
/**
|
|
* Innovation Search Engine API
|
|
*
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
|
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
import {
|
|
HttpClient,
|
|
HttpHeaders,
|
|
HttpParams,
|
|
HttpResponse,
|
|
HttpEvent,
|
|
HttpParameterCodec,
|
|
HttpContext,
|
|
} from '@angular/common/http';
|
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
import { Observable } from 'rxjs';
|
|
|
|
// @ts-ignore
|
|
import { AuthorMetricsRequest } from '../model/authorMetricsRequest';
|
|
// @ts-ignore
|
|
import { AuthorOrientationProfile } from '../model/authorOrientationProfile';
|
|
// @ts-ignore
|
|
import { AuthorOrientationProfilesRequest } from '../model/authorOrientationProfilesRequest';
|
|
// @ts-ignore
|
|
import { AuthorStaticStats } from '../model/authorStaticStats';
|
|
// @ts-ignore
|
|
import { AuthorTopicProfile } from '../model/authorTopicProfile';
|
|
// @ts-ignore
|
|
import { AuthorTopicStats } from '../model/authorTopicStats';
|
|
// @ts-ignore
|
|
import { HTTPValidationError } from '../model/hTTPValidationError';
|
|
// @ts-ignore
|
|
import { KeywordToAuthorRequest } from '../model/keywordToAuthorRequest';
|
|
// @ts-ignore
|
|
import { PublicationTypeCount } from '../model/publicationTypeCount';
|
|
// @ts-ignore
|
|
import { PublicationTypeCountsRequest } from '../model/publicationTypeCountsRequest';
|
|
// @ts-ignore
|
|
import { RankedAuthor } from '../model/rankedAuthor';
|
|
// @ts-ignore
|
|
import { SelectedAuthorsRequest } from '../model/selectedAuthorsRequest';
|
|
|
|
// @ts-ignore
|
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
import { Configuration } from '../configuration';
|
|
import { BaseService } from '../api.base.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class RankingService extends BaseService {
|
|
constructor(
|
|
protected httpClient: HttpClient,
|
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
@Optional() configuration?: Configuration,
|
|
) {
|
|
super(basePath, configuration);
|
|
}
|
|
|
|
/**
|
|
* Orientation Profiles
|
|
* Compare orientation scores for active members of the account institution.
|
|
* @endpoint post /api/rank/orientation-profiles
|
|
* @param authorOrientationProfilesRequest
|
|
* @param secureFgpAcc
|
|
* @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.
|
|
*/
|
|
public orientationProfilesApiRankOrientationProfilesPost(
|
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'body',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<Array<AuthorOrientationProfile>>;
|
|
public orientationProfilesApiRankOrientationProfilesPost(
|
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'response',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpResponse<Array<AuthorOrientationProfile>>>;
|
|
public orientationProfilesApiRankOrientationProfilesPost(
|
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'events',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpEvent<Array<AuthorOrientationProfile>>>;
|
|
public orientationProfilesApiRankOrientationProfilesPost(
|
|
authorOrientationProfilesRequest: AuthorOrientationProfilesRequest,
|
|
secureFgpAcc?: string,
|
|
observe: any = 'body',
|
|
reportProgress: boolean = false,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<any> {
|
|
if (
|
|
authorOrientationProfilesRequest === null ||
|
|
authorOrientationProfilesRequest === undefined
|
|
) {
|
|
throw new Error(
|
|
'Required parameter authorOrientationProfilesRequest was null or undefined when calling orientationProfilesApiRankOrientationProfilesPost.',
|
|
);
|
|
}
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
// authentication (HTTPBearer) required
|
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
|
'HTTPBearer',
|
|
'Authorization',
|
|
localVarHeaders,
|
|
'Bearer ',
|
|
);
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
options?.httpHeaderAccept ??
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Accept',
|
|
localVarHttpHeaderAcceptSelected,
|
|
);
|
|
}
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
options?.context ?? new HttpContext();
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
// to determine the Content-Type header
|
|
const consumes: string[] = ['application/json'];
|
|
const httpContentTypeSelected: string | undefined =
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
if (httpContentTypeSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Content-Type',
|
|
httpContentTypeSelected,
|
|
);
|
|
}
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
responseType_ = 'text';
|
|
} else if (
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
) {
|
|
responseType_ = 'json';
|
|
} else {
|
|
responseType_ = 'blob';
|
|
}
|
|
}
|
|
|
|
let localVarPath = `/api/rank/orientation-profiles`;
|
|
const { basePath, withCredentials } = this.configuration;
|
|
return this.httpClient.request<Array<AuthorOrientationProfile>>(
|
|
'post',
|
|
`${basePath}${localVarPath}`,
|
|
{
|
|
context: localVarHttpContext,
|
|
body: authorOrientationProfilesRequest,
|
|
responseType: <any>responseType_,
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
headers: localVarHeaders,
|
|
observe: observe,
|
|
...(localVarTransferCache !== undefined
|
|
? { transferCache: localVarTransferCache }
|
|
: {}),
|
|
reportProgress: reportProgress,
|
|
},
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Publication Type Counts
|
|
* @endpoint post /api/rank/publication-type-counts
|
|
* @param publicationTypeCountsRequest
|
|
* @param secureFgpAcc
|
|
* @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.
|
|
*/
|
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'body',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<Array<PublicationTypeCount>>;
|
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'response',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpResponse<Array<PublicationTypeCount>>>;
|
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'events',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpEvent<Array<PublicationTypeCount>>>;
|
|
public publicationTypeCountsApiRankPublicationTypeCountsPost(
|
|
publicationTypeCountsRequest: PublicationTypeCountsRequest,
|
|
secureFgpAcc?: string,
|
|
observe: any = 'body',
|
|
reportProgress: boolean = false,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<any> {
|
|
if (
|
|
publicationTypeCountsRequest === null ||
|
|
publicationTypeCountsRequest === undefined
|
|
) {
|
|
throw new Error(
|
|
'Required parameter publicationTypeCountsRequest was null or undefined when calling publicationTypeCountsApiRankPublicationTypeCountsPost.',
|
|
);
|
|
}
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
// authentication (HTTPBearer) required
|
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
|
'HTTPBearer',
|
|
'Authorization',
|
|
localVarHeaders,
|
|
'Bearer ',
|
|
);
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
options?.httpHeaderAccept ??
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Accept',
|
|
localVarHttpHeaderAcceptSelected,
|
|
);
|
|
}
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
options?.context ?? new HttpContext();
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
// to determine the Content-Type header
|
|
const consumes: string[] = ['application/json'];
|
|
const httpContentTypeSelected: string | undefined =
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
if (httpContentTypeSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Content-Type',
|
|
httpContentTypeSelected,
|
|
);
|
|
}
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
responseType_ = 'text';
|
|
} else if (
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
) {
|
|
responseType_ = 'json';
|
|
} else {
|
|
responseType_ = 'blob';
|
|
}
|
|
}
|
|
|
|
let localVarPath = `/api/rank/publication-type-counts`;
|
|
const { basePath, withCredentials } = this.configuration;
|
|
return this.httpClient.request<Array<PublicationTypeCount>>(
|
|
'post',
|
|
`${basePath}${localVarPath}`,
|
|
{
|
|
context: localVarHttpContext,
|
|
body: publicationTypeCountsRequest,
|
|
responseType: <any>responseType_,
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
headers: localVarHeaders,
|
|
observe: observe,
|
|
...(localVarTransferCache !== undefined
|
|
? { transferCache: localVarTransferCache }
|
|
: {}),
|
|
reportProgress: reportProgress,
|
|
},
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Rank Author
|
|
* @endpoint post /api/rank/rank-author
|
|
* @param keywordToAuthorRequest
|
|
* @param secureFgpAcc
|
|
* @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.
|
|
*/
|
|
public rankAuthorApiRankRankAuthorPost(
|
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'body',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<Array<RankedAuthor>>;
|
|
public rankAuthorApiRankRankAuthorPost(
|
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'response',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpResponse<Array<RankedAuthor>>>;
|
|
public rankAuthorApiRankRankAuthorPost(
|
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
|
secureFgpAcc?: string,
|
|
observe?: 'events',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpEvent<Array<RankedAuthor>>>;
|
|
public rankAuthorApiRankRankAuthorPost(
|
|
keywordToAuthorRequest: KeywordToAuthorRequest,
|
|
secureFgpAcc?: string,
|
|
observe: any = 'body',
|
|
reportProgress: boolean = false,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<any> {
|
|
if (
|
|
keywordToAuthorRequest === null ||
|
|
keywordToAuthorRequest === undefined
|
|
) {
|
|
throw new Error(
|
|
'Required parameter keywordToAuthorRequest was null or undefined when calling rankAuthorApiRankRankAuthorPost.',
|
|
);
|
|
}
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
// authentication (HTTPBearer) required
|
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
|
'HTTPBearer',
|
|
'Authorization',
|
|
localVarHeaders,
|
|
'Bearer ',
|
|
);
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
options?.httpHeaderAccept ??
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Accept',
|
|
localVarHttpHeaderAcceptSelected,
|
|
);
|
|
}
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
options?.context ?? new HttpContext();
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
// to determine the Content-Type header
|
|
const consumes: string[] = ['application/json'];
|
|
const httpContentTypeSelected: string | undefined =
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
if (httpContentTypeSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Content-Type',
|
|
httpContentTypeSelected,
|
|
);
|
|
}
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
responseType_ = 'text';
|
|
} else if (
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
) {
|
|
responseType_ = 'json';
|
|
} else {
|
|
responseType_ = 'blob';
|
|
}
|
|
}
|
|
|
|
let localVarPath = `/api/rank/rank-author`;
|
|
const { basePath, withCredentials } = this.configuration;
|
|
return this.httpClient.request<Array<RankedAuthor>>(
|
|
'post',
|
|
`${basePath}${localVarPath}`,
|
|
{
|
|
context: localVarHttpContext,
|
|
body: keywordToAuthorRequest,
|
|
responseType: <any>responseType_,
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
headers: localVarHeaders,
|
|
observe: observe,
|
|
...(localVarTransferCache !== undefined
|
|
? { transferCache: localVarTransferCache }
|
|
: {}),
|
|
reportProgress: reportProgress,
|
|
},
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Static Stats
|
|
* @endpoint post /api/rank/static-stats
|
|
* @param authorMetricsRequest
|
|
* @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.
|
|
*/
|
|
public staticStatsApiRankStaticStatsPost(
|
|
authorMetricsRequest: AuthorMetricsRequest,
|
|
observe?: 'body',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<Array<AuthorStaticStats>>;
|
|
public staticStatsApiRankStaticStatsPost(
|
|
authorMetricsRequest: AuthorMetricsRequest,
|
|
observe?: 'response',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpResponse<Array<AuthorStaticStats>>>;
|
|
public staticStatsApiRankStaticStatsPost(
|
|
authorMetricsRequest: AuthorMetricsRequest,
|
|
observe?: 'events',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpEvent<Array<AuthorStaticStats>>>;
|
|
public staticStatsApiRankStaticStatsPost(
|
|
authorMetricsRequest: AuthorMetricsRequest,
|
|
observe: any = 'body',
|
|
reportProgress: boolean = false,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<any> {
|
|
if (authorMetricsRequest === null || authorMetricsRequest === undefined) {
|
|
throw new Error(
|
|
'Required parameter authorMetricsRequest was null or undefined when calling staticStatsApiRankStaticStatsPost.',
|
|
);
|
|
}
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
options?.httpHeaderAccept ??
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Accept',
|
|
localVarHttpHeaderAcceptSelected,
|
|
);
|
|
}
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
options?.context ?? new HttpContext();
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
// to determine the Content-Type header
|
|
const consumes: string[] = ['application/json'];
|
|
const httpContentTypeSelected: string | undefined =
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
if (httpContentTypeSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Content-Type',
|
|
httpContentTypeSelected,
|
|
);
|
|
}
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
responseType_ = 'text';
|
|
} else if (
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
) {
|
|
responseType_ = 'json';
|
|
} else {
|
|
responseType_ = 'blob';
|
|
}
|
|
}
|
|
|
|
let localVarPath = `/api/rank/static-stats`;
|
|
const { basePath, withCredentials } = this.configuration;
|
|
return this.httpClient.request<Array<AuthorStaticStats>>(
|
|
'post',
|
|
`${basePath}${localVarPath}`,
|
|
{
|
|
context: localVarHttpContext,
|
|
body: authorMetricsRequest,
|
|
responseType: <any>responseType_,
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
headers: localVarHeaders,
|
|
observe: observe,
|
|
...(localVarTransferCache !== undefined
|
|
? { transferCache: localVarTransferCache }
|
|
: {}),
|
|
reportProgress: reportProgress,
|
|
},
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Topic Profile
|
|
* @endpoint post /api/rank/topic-profile
|
|
* @param selectedAuthorsRequest
|
|
* @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.
|
|
*/
|
|
public topicProfileApiRankTopicProfilePost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe?: 'body',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<Array<AuthorTopicProfile>>;
|
|
public topicProfileApiRankTopicProfilePost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe?: 'response',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpResponse<Array<AuthorTopicProfile>>>;
|
|
public topicProfileApiRankTopicProfilePost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe?: 'events',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpEvent<Array<AuthorTopicProfile>>>;
|
|
public topicProfileApiRankTopicProfilePost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe: any = 'body',
|
|
reportProgress: boolean = false,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<any> {
|
|
if (
|
|
selectedAuthorsRequest === null ||
|
|
selectedAuthorsRequest === undefined
|
|
) {
|
|
throw new Error(
|
|
'Required parameter selectedAuthorsRequest was null or undefined when calling topicProfileApiRankTopicProfilePost.',
|
|
);
|
|
}
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
options?.httpHeaderAccept ??
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Accept',
|
|
localVarHttpHeaderAcceptSelected,
|
|
);
|
|
}
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
options?.context ?? new HttpContext();
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
// to determine the Content-Type header
|
|
const consumes: string[] = ['application/json'];
|
|
const httpContentTypeSelected: string | undefined =
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
if (httpContentTypeSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Content-Type',
|
|
httpContentTypeSelected,
|
|
);
|
|
}
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
responseType_ = 'text';
|
|
} else if (
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
) {
|
|
responseType_ = 'json';
|
|
} else {
|
|
responseType_ = 'blob';
|
|
}
|
|
}
|
|
|
|
let localVarPath = `/api/rank/topic-profile`;
|
|
const { basePath, withCredentials } = this.configuration;
|
|
return this.httpClient.request<Array<AuthorTopicProfile>>(
|
|
'post',
|
|
`${basePath}${localVarPath}`,
|
|
{
|
|
context: localVarHttpContext,
|
|
body: selectedAuthorsRequest,
|
|
responseType: <any>responseType_,
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
headers: localVarHeaders,
|
|
observe: observe,
|
|
...(localVarTransferCache !== undefined
|
|
? { transferCache: localVarTransferCache }
|
|
: {}),
|
|
reportProgress: reportProgress,
|
|
},
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Topic Stats
|
|
* @endpoint post /api/rank/topic-stats
|
|
* @param selectedAuthorsRequest
|
|
* @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.
|
|
*/
|
|
public topicStatsApiRankTopicStatsPost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe?: 'body',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<Array<AuthorTopicStats>>;
|
|
public topicStatsApiRankTopicStatsPost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe?: 'response',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpResponse<Array<AuthorTopicStats>>>;
|
|
public topicStatsApiRankTopicStatsPost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe?: 'events',
|
|
reportProgress?: boolean,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<HttpEvent<Array<AuthorTopicStats>>>;
|
|
public topicStatsApiRankTopicStatsPost(
|
|
selectedAuthorsRequest: SelectedAuthorsRequest,
|
|
observe: any = 'body',
|
|
reportProgress: boolean = false,
|
|
options?: {
|
|
httpHeaderAccept?: 'application/json';
|
|
context?: HttpContext;
|
|
transferCache?: boolean;
|
|
},
|
|
): Observable<any> {
|
|
if (
|
|
selectedAuthorsRequest === null ||
|
|
selectedAuthorsRequest === undefined
|
|
) {
|
|
throw new Error(
|
|
'Required parameter selectedAuthorsRequest was null or undefined when calling topicStatsApiRankTopicStatsPost.',
|
|
);
|
|
}
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
options?.httpHeaderAccept ??
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Accept',
|
|
localVarHttpHeaderAcceptSelected,
|
|
);
|
|
}
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
options?.context ?? new HttpContext();
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
// to determine the Content-Type header
|
|
const consumes: string[] = ['application/json'];
|
|
const httpContentTypeSelected: string | undefined =
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
if (httpContentTypeSelected !== undefined) {
|
|
localVarHeaders = localVarHeaders.set(
|
|
'Content-Type',
|
|
httpContentTypeSelected,
|
|
);
|
|
}
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
responseType_ = 'text';
|
|
} else if (
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
) {
|
|
responseType_ = 'json';
|
|
} else {
|
|
responseType_ = 'blob';
|
|
}
|
|
}
|
|
|
|
let localVarPath = `/api/rank/topic-stats`;
|
|
const { basePath, withCredentials } = this.configuration;
|
|
return this.httpClient.request<Array<AuthorTopicStats>>(
|
|
'post',
|
|
`${basePath}${localVarPath}`,
|
|
{
|
|
context: localVarHttpContext,
|
|
body: selectedAuthorsRequest,
|
|
responseType: <any>responseType_,
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
headers: localVarHeaders,
|
|
observe: observe,
|
|
...(localVarTransferCache !== undefined
|
|
? { transferCache: localVarTransferCache }
|
|
: {}),
|
|
reportProgress: reportProgress,
|
|
},
|
|
);
|
|
}
|
|
}
|