|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
/**
|
|
|
|
|
* Innovation Search Engine API
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
|
|
|
* https://openapi-generator.tech
|
|
|
|
@@ -11,8 +11,13 @@
|
|
|
|
|
|
|
|
|
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
|
|
|
import {
|
|
|
|
|
HttpClient, HttpHeaders, HttpParams,
|
|
|
|
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
|
|
|
|
HttpClient,
|
|
|
|
|
HttpHeaders,
|
|
|
|
|
HttpParams,
|
|
|
|
|
HttpResponse,
|
|
|
|
|
HttpEvent,
|
|
|
|
|
HttpParameterCodec,
|
|
|
|
|
HttpContext,
|
|
|
|
|
} from '@angular/common/http';
|
|
|
|
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
@@ -37,14 +42,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
|
|
|
import { Configuration } from '../configuration';
|
|
|
|
|
import { BaseService } from '../api.base.service';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable({
|
|
|
|
|
providedIn: 'root'
|
|
|
|
|
providedIn: 'root',
|
|
|
|
|
})
|
|
|
|
|
export class UniversityRankingsService extends BaseService {
|
|
|
|
|
|
|
|
|
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
|
|
|
|
constructor(
|
|
|
|
|
protected httpClient: HttpClient,
|
|
|
|
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
|
|
|
@Optional() configuration?: Configuration,
|
|
|
|
|
) {
|
|
|
|
|
super(basePath, configuration);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -55,43 +61,167 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
* @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 getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<Array<AutocompleteLocationItem>>;
|
|
|
|
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpResponse<Array<AutocompleteLocationItem>>>;
|
|
|
|
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpEvent<Array<AutocompleteLocationItem>>>;
|
|
|
|
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(query: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<any> {
|
|
|
|
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
|
|
|
|
query: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<Array<AutocompleteLocationItem>>;
|
|
|
|
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
|
|
|
|
query: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<Array<AutocompleteLocationItem>>>;
|
|
|
|
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
|
|
|
|
query: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<Array<AutocompleteLocationItem>>>;
|
|
|
|
|
public getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet(
|
|
|
|
|
query: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (query === null || query === undefined) {
|
|
|
|
|
throw new Error('Required parameter query was null or undefined when calling getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet.');
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter query was null or undefined when calling getAutocompleteLocationsApiInseServiceUniversityRankingsAutocompleteLocationsGet.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>query, 'query');
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>query,
|
|
|
|
|
'query',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
|
|
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
|
|
|
'application/json'
|
|
|
|
|
]);
|
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
|
|
|
options?.httpHeaderAccept ??
|
|
|
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
|
|
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
|
|
|
localVarHeaders = localVarHeaders.set(
|
|
|
|
|
'Accept',
|
|
|
|
|
localVarHttpHeaderAcceptSelected,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
|
|
|
options?.context ?? new HttpContext();
|
|
|
|
|
|
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
|
|
|
responseType_ = 'text';
|
|
|
|
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
|
|
|
} else if (
|
|
|
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
|
|
|
) {
|
|
|
|
|
responseType_ = 'json';
|
|
|
|
|
} else {
|
|
|
|
|
responseType_ = 'blob';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarPath = `/api/inse-service/university-rankings/autocomplete-locations`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<Array<AutocompleteLocationItem>>(
|
|
|
|
|
'get',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
params: localVarQueryParameters,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns data for the University Ranking Dashboard.
|
|
|
|
|
* @endpoint get /api/inse-service/university-rankings
|
|
|
|
|
* @param topic Research topic display name or OpenAlex ID (e.g., \'Artificial Intelligence\')
|
|
|
|
|
* @param metric Metric to rank by
|
|
|
|
|
* @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 getRankingsApiInseServiceUniversityRankingsGet(
|
|
|
|
|
topic: string,
|
|
|
|
|
metric?: 'publications' | 'citations',
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<RankingResponse>;
|
|
|
|
|
public getRankingsApiInseServiceUniversityRankingsGet(
|
|
|
|
|
topic: string,
|
|
|
|
|
metric?: 'publications' | 'citations',
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<RankingResponse>>;
|
|
|
|
|
public getRankingsApiInseServiceUniversityRankingsGet(
|
|
|
|
|
topic: string,
|
|
|
|
|
metric?: 'publications' | 'citations',
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<RankingResponse>>;
|
|
|
|
|
public getRankingsApiInseServiceUniversityRankingsGet(
|
|
|
|
|
topic: string,
|
|
|
|
|
metric?: 'publications' | 'citations',
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (topic === null || topic === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter topic was null or undefined when calling getRankingsApiInseServiceUniversityRankingsGet.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
@@ -454,7 +584,7 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
* @endpoint get /api/inse-service/university-rankings/trend
|
|
|
|
|
* @param topics List of topics to analyze
|
|
|
|
|
* @param keywords List of raw keywords corresponding to topics
|
|
|
|
|
* @param softSearch True if using mapped topics, False if using raw keywords
|
|
|
|
|
* @param fuzzy True if using mapped topics, False if using raw keywords
|
|
|
|
|
* @param institutions List of OpenAlex Institution IDs
|
|
|
|
|
* @param countries List of country codes
|
|
|
|
|
* @param regions List of region identifiers
|
|
|
|
@@ -466,7 +596,7 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
|
|
|
|
topics: Array<string>,
|
|
|
|
|
keywords?: Array<string>,
|
|
|
|
|
softSearch?: boolean,
|
|
|
|
|
fuzzy?: boolean,
|
|
|
|
|
institutions?: Array<string>,
|
|
|
|
|
countries?: Array<string>,
|
|
|
|
|
regions?: Array<string>,
|
|
|
|
@@ -483,7 +613,7 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
|
|
|
|
topics: Array<string>,
|
|
|
|
|
keywords?: Array<string>,
|
|
|
|
|
softSearch?: boolean,
|
|
|
|
|
fuzzy?: boolean,
|
|
|
|
|
institutions?: Array<string>,
|
|
|
|
|
countries?: Array<string>,
|
|
|
|
|
regions?: Array<string>,
|
|
|
|
@@ -500,7 +630,7 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
|
|
|
|
topics: Array<string>,
|
|
|
|
|
keywords?: Array<string>,
|
|
|
|
|
softSearch?: boolean,
|
|
|
|
|
fuzzy?: boolean,
|
|
|
|
|
institutions?: Array<string>,
|
|
|
|
|
countries?: Array<string>,
|
|
|
|
|
regions?: Array<string>,
|
|
|
|
@@ -517,7 +647,7 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
public getTrendApiInseServiceUniversityRankingsTrendGet(
|
|
|
|
|
topics: Array<string>,
|
|
|
|
|
keywords?: Array<string>,
|
|
|
|
|
softSearch?: boolean,
|
|
|
|
|
fuzzy?: boolean,
|
|
|
|
|
institutions?: Array<string>,
|
|
|
|
|
countries?: Array<string>,
|
|
|
|
|
regions?: Array<string>,
|
|
|
|
@@ -545,162 +675,88 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
<any>element,
|
|
|
|
|
'topics',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (keywords) {
|
|
|
|
|
keywords.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'keywords',
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>softSearch,
|
|
|
|
|
'soft_search',
|
|
|
|
|
);
|
|
|
|
|
if (institutions) {
|
|
|
|
|
institutions.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'institutions',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns top institutions filtered by country/region and sorted by topic-level publications count.
|
|
|
|
|
* @endpoint get /api/inse-service/university-rankings/top-institutions
|
|
|
|
|
* @param topic Research topic
|
|
|
|
|
* @param region Region identifier (e.g. EU)
|
|
|
|
|
* @param country Country code (e.g. DE)
|
|
|
|
|
* @param limit Max suggestions to return
|
|
|
|
|
* @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 getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region ?: string, country ?: string, limit ?: number, observe ?: 'body', reportProgress ?: boolean, options ?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<Array<TopInstitutionItem>>;
|
|
|
|
|
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpResponse<Array<TopInstitutionItem>>>;
|
|
|
|
|
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpEvent<Array<TopInstitutionItem>>>;
|
|
|
|
|
public getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet(topic: string, region?: string, country?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<any> {
|
|
|
|
|
if (topic === null || topic === undefined) {
|
|
|
|
|
throw new Error('Required parameter topic was null or undefined when calling getTopInstitutionsApiInseServiceUniversityRankingsTopInstitutionsGet.');
|
|
|
|
|
keywords.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'keywords',
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>topic, 'topic');
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>region, 'region');
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>country, 'country');
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>limit, 'limit');
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/inse-service/university-rankings/top-institutions`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<Array<TopInstitutionItem>>('get', `${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
params: localVarQueryParameters,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
|
|
|
reportProgress: reportProgress
|
|
|
|
|
}
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>fuzzy,
|
|
|
|
|
'fuzzy',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns timeseries publication data for compared institutions, countries and regions.
|
|
|
|
|
* @endpoint get /api/inse-service/university-rankings/trend
|
|
|
|
|
* @param topics List of topics to analyze
|
|
|
|
|
* @param institutions List of OpenAlex Institution IDs
|
|
|
|
|
* @param countries List of country codes
|
|
|
|
|
* @param regions List of region identifiers
|
|
|
|
|
* @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 getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<TrendResponse>;
|
|
|
|
|
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpResponse<TrendResponse>>;
|
|
|
|
|
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<HttpEvent<TrendResponse>>;
|
|
|
|
|
public getTrendApiInseServiceUniversityRankingsTrendGet(topics: Array<string>, institutions?: Array<string>, countries?: Array<string>, regions?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable<any> {
|
|
|
|
|
if (topics === null || topics === undefined) {
|
|
|
|
|
throw new Error('Required parameter topics was null or undefined when calling getTrendApiInseServiceUniversityRankingsTrendGet.');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
|
|
|
if (topics) {
|
|
|
|
|
topics.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>element, 'topics');
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (institutions) {
|
|
|
|
|
institutions.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>element, 'institutions');
|
|
|
|
|
})
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'institutions',
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (countries) {
|
|
|
|
|
countries.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>element, 'countries');
|
|
|
|
|
})
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'countries',
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (regions) {
|
|
|
|
|
regions.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
|
|
|
<any>element, 'regions');
|
|
|
|
|
})
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'regions',
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (authors) {
|
|
|
|
|
authors.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'authors',
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>searchType,
|
|
|
|
|
'search_type',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
|
|
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
|
|
|
'application/json'
|
|
|
|
|
]);
|
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
|
|
|
options?.httpHeaderAccept ??
|
|
|
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
|
|
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
|
|
|
localVarHeaders = localVarHeaders.set(
|
|
|
|
|
'Accept',
|
|
|
|
|
localVarHttpHeaderAcceptSelected,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
|
|
|
options?.context ?? new HttpContext();
|
|
|
|
|
|
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
|
|
|
responseType_ = 'text';
|
|
|
|
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
|
|
|
} else if (
|
|
|
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
|
|
|
) {
|
|
|
|
|
responseType_ = 'json';
|
|
|
|
|
} else {
|
|
|
|
|
responseType_ = 'blob';
|
|
|
|
@@ -709,7 +765,9 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
|
|
|
|
|
let localVarPath = `/api/inse-service/university-rankings/trend`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<TrendResponse>('get', `${basePath}${localVarPath}`,
|
|
|
|
|
return this.httpClient.request<TrendResponse>(
|
|
|
|
|
'get',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
params: localVarQueryParameters,
|
|
|
|
@@ -717,24 +775,11 @@ export class UniversityRankingsService extends BaseService {
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
|
|
|
reportProgress: reportProgress
|
|
|
|
|
}
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if(authors) {
|
|
|
|
|
authors.forEach((element) => {
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>element,
|
|
|
|
|
'authors',
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
localVarQueryParameters = this.addToHttpParams(
|
|
|
|
|
localVarQueryParameters,
|
|
|
|
|
<any>searchType,
|
|
|
|
|
'search_type',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|