From df56af976ccb501bcb7bba1f85b548203d3b1760 Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Mon, 13 Jul 2026 13:04:07 +0200 Subject: [PATCH] regenerated services --- webapp/src/app/api/.openapi-generator/FILES | 4 + webapp/src/app/api/api/auth.service.ts | 4 +- .../app/api/api/universityRankings.service.ts | 231 +++++++++++++++--- .../app/api/model/bodyRequestPasswordReset.ts | 2 +- webapp/src/app/api/model/matchedTopic.ts | 18 ++ webapp/src/app/api/model/models.ts | 4 + webapp/src/app/api/model/newsArticleDetail.ts | 3 +- webapp/src/app/api/model/topTopicItem.ts | 14 ++ webapp/src/app/api/model/topTopicsResponse.ts | 14 ++ webapp/src/app/api/model/trendSearchType.ts | 20 ++ webapp/src/app/api/model/trendSeries.ts | 1 + 11 files changed, 276 insertions(+), 39 deletions(-) create mode 100644 webapp/src/app/api/model/matchedTopic.ts create mode 100644 webapp/src/app/api/model/topTopicItem.ts create mode 100644 webapp/src/app/api/model/topTopicsResponse.ts create mode 100644 webapp/src/app/api/model/trendSearchType.ts diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 9928d2c3..f32e14a8 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -142,6 +142,7 @@ model/loginResponse.ts model/longitude.ts model/matchedAuthor.ts model/matchedOfficer.ts +model/matchedTopic.ts model/mentionedPerson.ts model/meta.ts model/model2YrMeanCitedness.ts @@ -169,6 +170,8 @@ model/score.ts model/sortDirection.ts model/tokenType.ts model/topInstitutionItem.ts +model/topTopicItem.ts +model/topTopicsResponse.ts model/topic.ts model/topicCount.ts model/topicDomain.ts @@ -181,6 +184,7 @@ model/topicsByTime.ts model/topicsByYear.ts model/topicsListResponse.ts model/trendResponse.ts +model/trendSearchType.ts model/trendSeries.ts model/universityRanking.ts model/universityTopicData.ts diff --git a/webapp/src/app/api/api/auth.service.ts b/webapp/src/app/api/api/auth.service.ts index f3d264dc..e504fdc9 100644 --- a/webapp/src/app/api/api/auth.service.ts +++ b/webapp/src/app/api/api/auth.service.ts @@ -1514,6 +1514,7 @@ export class AuthService extends BaseService { 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); @@ -1555,7 +1556,7 @@ export class AuthService extends BaseService { /** * Reset Password - * Reset the user's password using a one-time password reset token. + * Reset the user\'s password using a one-time password reset token. * @endpoint post /api/auth/v2/reset-password * @param bodyResetPassword * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -1624,6 +1625,7 @@ export class AuthService extends BaseService { 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); diff --git a/webapp/src/app/api/api/universityRankings.service.ts b/webapp/src/app/api/api/universityRankings.service.ts index 0df23ac9..dffe09c7 100644 --- a/webapp/src/app/api/api/universityRankings.service.ts +++ b/webapp/src/app/api/api/universityRankings.service.ts @@ -31,7 +31,11 @@ import { RankingResponse } from '../model/rankingResponse'; // @ts-ignore import { TopInstitutionItem } from '../model/topInstitutionItem'; // @ts-ignore +import { TopTopicsResponse } from '../model/topTopicsResponse'; +// @ts-ignore import { TrendResponse } from '../model/trendResponse'; +// @ts-ignore +import { TrendSearchType } from '../model/trendSearchType'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -421,24 +425,183 @@ export class UniversityRankingsService extends BaseService { } /** - * Returns timeseries publication data for compared institutions, countries and regions. + * Returns top 10 research topics for a selected entity. + * @endpoint get /api/inse-service/university-rankings/top-topics + * @param entityId Entity ID + * @param entityType Entity type: institution, author, country, region + * @param startYear Start year + * @param endYear End year + * @param searchType Search strategy type + * @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 getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet( + entityId: string, + entityType: string, + startYear?: number, + endYear?: number, + searchType?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet( + entityId: string, + entityType: string, + startYear?: number, + endYear?: number, + searchType?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet( + entityId: string, + entityType: string, + startYear?: number, + endYear?: number, + searchType?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet( + entityId: string, + entityType: string, + startYear?: number, + endYear?: number, + searchType?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (entityId === null || entityId === undefined) { + throw new Error( + 'Required parameter entityId was null or undefined when calling getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet.', + ); + } + if (entityType === null || entityType === undefined) { + throw new Error( + 'Required parameter entityType was null or undefined when calling getTopTopicsApiInseServiceUniversityRankingsTopTopicsGet.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + entityId, + 'entity_id', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + entityType, + 'entity_type', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + startYear, + 'start_year', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + endYear, + 'end_year', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + searchType, + 'search_type', + ); + + 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-topics`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * 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 keywords List of raw keywords corresponding to topics + * @param softSearch 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 + * @param authors List of OpenAlex Author IDs + * @param searchType * @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, + keywords?: Array, + softSearch?: boolean, institutions?: Array, countries?: Array, regions?: Array, - keywords?: Array, - softSearch?: boolean, - searchType?: string, authors?: Array, + searchType?: TrendSearchType, observe?: 'body', reportProgress?: boolean, options?: { @@ -449,13 +612,13 @@ export class UniversityRankingsService extends BaseService { ): Observable; public getTrendApiInseServiceUniversityRankingsTrendGet( topics: Array, + keywords?: Array, + softSearch?: boolean, institutions?: Array, countries?: Array, regions?: Array, - keywords?: Array, - softSearch?: boolean, - searchType?: string, authors?: Array, + searchType?: TrendSearchType, observe?: 'response', reportProgress?: boolean, options?: { @@ -466,13 +629,13 @@ export class UniversityRankingsService extends BaseService { ): Observable>; public getTrendApiInseServiceUniversityRankingsTrendGet( topics: Array, + keywords?: Array, + softSearch?: boolean, institutions?: Array, countries?: Array, regions?: Array, - keywords?: Array, - softSearch?: boolean, - searchType?: string, authors?: Array, + searchType?: TrendSearchType, observe?: 'events', reportProgress?: boolean, options?: { @@ -483,13 +646,13 @@ export class UniversityRankingsService extends BaseService { ): Observable>; public getTrendApiInseServiceUniversityRankingsTrendGet( topics: Array, + keywords?: Array, + softSearch?: boolean, institutions?: Array, countries?: Array, regions?: Array, - keywords?: Array, - softSearch?: boolean, - searchType?: string, authors?: Array, + searchType?: TrendSearchType, observe: any = 'body', reportProgress: boolean = false, options?: { @@ -514,6 +677,20 @@ export class UniversityRankingsService extends BaseService { ); }); } + if (keywords) { + keywords.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'keywords', + ); + }); + } + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + softSearch, + 'soft_search', + ); if (institutions) { institutions.forEach((element) => { localVarQueryParameters = this.addToHttpParams( @@ -541,29 +718,6 @@ export class UniversityRankingsService extends BaseService { ); }); } - if (keywords) { - keywords.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'keywords', - ); - }); - } - if (softSearch !== undefined && softSearch !== null) { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - softSearch, - 'soft_search', - ); - } - if (searchType) { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - searchType, - 'search_type', - ); - } if (authors) { authors.forEach((element) => { localVarQueryParameters = this.addToHttpParams( @@ -573,6 +727,11 @@ export class UniversityRankingsService extends BaseService { ); }); } + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + searchType, + 'search_type', + ); let localVarHeaders = this.defaultHeaders; diff --git a/webapp/src/app/api/model/bodyRequestPasswordReset.ts b/webapp/src/app/api/model/bodyRequestPasswordReset.ts index c3f6d5d4..ec3222b5 100644 --- a/webapp/src/app/api/model/bodyRequestPasswordReset.ts +++ b/webapp/src/app/api/model/bodyRequestPasswordReset.ts @@ -10,7 +10,7 @@ export interface BodyRequestPasswordReset { /** - * User's email address + * User\'s email address */ email: string; } diff --git a/webapp/src/app/api/model/matchedTopic.ts b/webapp/src/app/api/model/matchedTopic.ts new file mode 100644 index 00000000..52de9018 --- /dev/null +++ b/webapp/src/app/api/model/matchedTopic.ts @@ -0,0 +1,18 @@ +/** + * 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. + */ + +export interface MatchedTopic { + id?: string | null; + display_name?: string | null; + subfield_name?: string | null; + field_name?: string | null; + domain_name?: string | null; + source_keyword?: string | null; +} diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index d932a058..fbe8649a 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -117,6 +117,7 @@ export * from './loginResponse'; export * from './longitude'; export * from './matchedAuthor'; export * from './matchedOfficer'; +export * from './matchedTopic'; export * from './mentionedPerson'; export * from './meta'; export * from './model2YrMeanCitedness'; @@ -143,6 +144,8 @@ export * from './score'; export * from './sortDirection'; export * from './tokenType'; export * from './topInstitutionItem'; +export * from './topTopicItem'; +export * from './topTopicsResponse'; export * from './topic'; export * from './topicCount'; export * from './topicDomain'; @@ -155,6 +158,7 @@ export * from './topicsByTime'; export * from './topicsByYear'; export * from './topicsListResponse'; export * from './trendResponse'; +export * from './trendSearchType'; export * from './trendSeries'; export * from './universityRanking'; export * from './universityTopicData'; diff --git a/webapp/src/app/api/model/newsArticleDetail.ts b/webapp/src/app/api/model/newsArticleDetail.ts index ac51097c..09962000 100644 --- a/webapp/src/app/api/model/newsArticleDetail.ts +++ b/webapp/src/app/api/model/newsArticleDetail.ts @@ -7,6 +7,7 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { MatchedTopic } from './matchedTopic'; import { MentionedPerson } from './mentionedPerson'; export interface NewsArticleDetail { @@ -20,6 +21,6 @@ export interface NewsArticleDetail { related?: boolean | null; full_content?: string | null; authors?: Array; - topics?: Array; keywords?: Array; + topics?: Array; } diff --git a/webapp/src/app/api/model/topTopicItem.ts b/webapp/src/app/api/model/topTopicItem.ts new file mode 100644 index 00000000..e6a151d4 --- /dev/null +++ b/webapp/src/app/api/model/topTopicItem.ts @@ -0,0 +1,14 @@ +/** + * 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. + */ + +export interface TopTopicItem { + name: string; + count: number; +} diff --git a/webapp/src/app/api/model/topTopicsResponse.ts b/webapp/src/app/api/model/topTopicsResponse.ts new file mode 100644 index 00000000..4bac3de8 --- /dev/null +++ b/webapp/src/app/api/model/topTopicsResponse.ts @@ -0,0 +1,14 @@ +/** + * 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. + */ +import { TopTopicItem } from './topTopicItem'; + +export interface TopTopicsResponse { + items: Array; +} diff --git a/webapp/src/app/api/model/trendSearchType.ts b/webapp/src/app/api/model/trendSearchType.ts new file mode 100644 index 00000000..bde11a52 --- /dev/null +++ b/webapp/src/app/api/model/trendSearchType.ts @@ -0,0 +1,20 @@ +/** + * 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. + */ + +export const TrendSearchType = { + Publications: 'publications', + Authors: 'authors', + Patents: 'patents', + Projects: 'projects', + News: 'news', + All: 'all', +} as const; +export type TrendSearchType = + (typeof TrendSearchType)[keyof typeof TrendSearchType]; diff --git a/webapp/src/app/api/model/trendSeries.ts b/webapp/src/app/api/model/trendSeries.ts index 1dc054be..b8ce939f 100644 --- a/webapp/src/app/api/model/trendSeries.ts +++ b/webapp/src/app/api/model/trendSeries.ts @@ -21,6 +21,7 @@ export namespace TrendSeries { Institution: 'institution', Country: 'country', Region: 'region', + Author: 'author', } as const; export type EntityTypeEnum = (typeof EntityTypeEnum)[keyof typeof EntityTypeEnum];