From 0b8540d70ba8468cd5de53e0ac7e4954e5398f08 Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 28 Jul 2026 00:35:34 +0200 Subject: [PATCH] regenerated services and models --- webapp/src/app/api/.openapi-generator/FILES | 3 + webapp/src/app/api/api/api.ts | 30 +- .../app/api/api/bUNDInstitutions.service.ts | 258 ++++++++++++++++++ .../app/api/model/bundInstitutionSummary.ts | 23 ++ .../api/model/bundInstitutionSummaryPage.ts | 32 +++ .../src/app/api/model/bundProjectSummary.ts | 66 ++--- webapp/src/app/api/model/models.ts | 2 + 7 files changed, 380 insertions(+), 34 deletions(-) create mode 100644 webapp/src/app/api/api/bUNDInstitutions.service.ts create mode 100644 webapp/src/app/api/model/bundInstitutionSummary.ts create mode 100644 webapp/src/app/api/model/bundInstitutionSummaryPage.ts diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 85a96968..18ebfd05 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -6,6 +6,7 @@ api.module.ts api/api.ts api/auth.service.ts api/authorsV2.service.ts +api/bUNDInstitutions.service.ts api/backgroundJobs.service.ts api/bookmarks.service.ts api/companyConnections.service.ts @@ -66,6 +67,8 @@ model/bodyLogin.ts model/bodyRequestOtk.ts model/bodyRequestPasswordReset.ts model/bodyResetPassword.ts +model/bundInstitutionSummary.ts +model/bundInstitutionSummaryPage.ts model/bundProjectDetails.ts model/bundProjectPage.ts model/bundProjectSummary.ts diff --git a/webapp/src/app/api/api/api.ts b/webapp/src/app/api/api/api.ts index 0ae4a16e..154e0dc5 100644 --- a/webapp/src/app/api/api/api.ts +++ b/webapp/src/app/api/api/api.ts @@ -2,6 +2,8 @@ export * from './auth.service'; import { AuthService } from './auth.service'; export * from './authorsV2.service'; import { AuthorsV2Service } from './authorsV2.service'; +export * from './bUNDInstitutions.service'; +import { BUNDInstitutionsService } from './bUNDInstitutions.service'; export * from './backgroundJobs.service'; import { BackgroundJobsService } from './backgroundJobs.service'; export * from './bookmarks.service'; @@ -46,4 +48,30 @@ export * from './works.service'; import { WorksService } from './works.service'; export * from './worksV2.service'; import { WorksV2Service } from './worksV2.service'; -export const APIS = [AuthService, AuthorsV2Service, BackgroundJobsService, BookmarksService, CompanyConnectionsService, DFGInstitutionsService, DFGPersonsService, DashboardService, FundingService, INSEServiceService, InstitutionsService, InstitutionsV2Service, KeywordsService, NewsService, OrganizationService, PatentsService, PersonsService, ProjectsService, RankingService, TopicsService, TopicsV2Service, UniversityRankingsService, WorksService, WorksV2Service]; +export const APIS = [ + AuthService, + AuthorsV2Service, + BUNDInstitutionsService, + BackgroundJobsService, + BookmarksService, + CompanyConnectionsService, + DFGInstitutionsService, + DFGPersonsService, + DashboardService, + FundingService, + INSEServiceService, + InstitutionsService, + InstitutionsV2Service, + KeywordsService, + NewsService, + OrganizationService, + PatentsService, + PersonsService, + ProjectsService, + RankingService, + TopicsService, + TopicsV2Service, + UniversityRankingsService, + WorksService, + WorksV2Service, +]; diff --git a/webapp/src/app/api/api/bUNDInstitutions.service.ts b/webapp/src/app/api/api/bUNDInstitutions.service.ts new file mode 100644 index 00000000..1e01fb85 --- /dev/null +++ b/webapp/src/app/api/api/bUNDInstitutions.service.ts @@ -0,0 +1,258 @@ +/** + * 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 { BundInstitutionSummaryPage } from '../model/bundInstitutionSummaryPage'; +// @ts-ignore +import { HTTPValidationError } from '../model/hTTPValidationError'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + +@Injectable({ + providedIn: 'root', +}) +export class BUNDInstitutionsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } + + /** + * Returns a list of institutions based on a search term for autocomplete functionality. + * @endpoint get /api/bund/institutions/autocomplete/selector + * @param query A search term to filter institutions by (partial matches allowed). + * @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 getBundInstitutionAutocompleteForSelector( + query?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getBundInstitutionAutocompleteForSelector( + query?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getBundInstitutionAutocompleteForSelector( + query?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getBundInstitutionAutocompleteForSelector( + query?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + + 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/bund/institutions/autocomplete/selector`; + 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 a list of institutions based on their names. + * @endpoint get /api/bund/institutions/names + * @param institutionNames A list of institution names to retrieve. + * @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 getBundInstitutionsByName( + institutionNames?: Array, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getBundInstitutionsByName( + institutionNames?: Array, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getBundInstitutionsByName( + institutionNames?: Array, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getBundInstitutionsByName( + institutionNames?: Array, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + if (institutionNames) { + institutionNames.forEach((element) => { + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'institution_names', + ); + }); + } + + 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/bund/institutions/names`; + 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, + }, + ); + } +} diff --git a/webapp/src/app/api/model/bundInstitutionSummary.ts b/webapp/src/app/api/model/bundInstitutionSummary.ts new file mode 100644 index 00000000..dba7f1bc --- /dev/null +++ b/webapp/src/app/api/model/bundInstitutionSummary.ts @@ -0,0 +1,23 @@ +/** + * 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. + */ + +/** + * A single institution entry derived from a BUND project record. Note: this index has no dedicated institution entity — each entry is reconstructed from the agency/recipient fields on a single project hit, so the same institution may appear multiple times (once per project). + */ +export interface BundInstitutionSummary { + department?: string | null; + department_fullname?: string | null; + name?: string | null; + recepient?: string | null; + municipality?: string | null; + place?: string | null; + state?: string | null; + country?: string | null; +} diff --git a/webapp/src/app/api/model/bundInstitutionSummaryPage.ts b/webapp/src/app/api/model/bundInstitutionSummaryPage.ts new file mode 100644 index 00000000..f1e39b95 --- /dev/null +++ b/webapp/src/app/api/model/bundInstitutionSummaryPage.ts @@ -0,0 +1,32 @@ +/** + * 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 { BundInstitutionSummary } from './bundInstitutionSummary'; + +/** + * A paginated response containing a list of institutions. + */ +export interface BundInstitutionSummaryPage { + /** + * The elements of the page. + */ + elements?: Array; + /** + * The page number. (0-based) + */ + page?: number; + /** + * The page size in elements. + */ + size?: number; + /** + * The total number of elements. + */ + total?: number; +} diff --git a/webapp/src/app/api/model/bundProjectSummary.ts b/webapp/src/app/api/model/bundProjectSummary.ts index e4fa0346..7b0d011c 100644 --- a/webapp/src/app/api/model/bundProjectSummary.ts +++ b/webapp/src/app/api/model/bundProjectSummary.ts @@ -1,44 +1,44 @@ /** * 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 { Topic } from './topic'; +import { BundInstitutionSummary } from './bundInstitutionSummary'; - -export interface BundProjectSummary { - funding_code?: string | null; - department?: string | null; - department_fullname?: string | null; - referat?: string | null; - project_sponsor?: string | null; - project_sponsor_fullname?: string | null; - work_unit?: string | null; - recipient?: string | null; - municipal_code?: string | null; - municipality?: string | null; - place?: string | null; - state?: string | null; - country?: string | null; - implementing_agency?: string | null; - topic?: string | null; - performance_plan_system?: string | null; - performance_plan_system_text?: string | null; - funding_start?: string | null; - funding_end?: string | null; - grant_amount?: number | null; - funding_profile?: string | null; - joint_project?: string | null; - funding_type?: string | null; - publication_date?: string | null; - unix_timestamp?: number | null; - date?: string | null; - 'new'?: boolean | null; - duration?: string | null; - oa_topics?: Array | null; +export interface BundProjectSummary { + funding_code?: string | null; + department?: string | null; + department_fullname?: string | null; + referat?: string | null; + project_sponsor?: string | null; + project_sponsor_fullname?: string | null; + work_unit?: string | null; + recipient?: string | null; + municipal_code?: string | null; + municipality?: string | null; + place?: string | null; + state?: string | null; + country?: string | null; + implementing_agency?: string | null; + topic?: string | null; + performance_plan_system?: string | null; + performance_plan_system_text?: string | null; + funding_start?: string | null; + funding_end?: string | null; + grant_amount?: number | null; + funding_profile?: string | null; + joint_project?: string | null; + funding_type?: string | null; + publication_date?: string | null; + unix_timestamp?: number | null; + date?: string | null; + new?: boolean | null; + duration?: string | null; + oa_topics?: Array | null; + institution?: BundInstitutionSummary | null; } - diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index 974195c8..8bb7e590 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -32,6 +32,8 @@ export * from './bodyLogin'; export * from './bodyRequestOtk'; export * from './bodyRequestPasswordReset'; export * from './bodyResetPassword'; +export * from './bundInstitutionSummary'; +export * from './bundInstitutionSummaryPage'; export * from './bundProjectDetails'; export * from './bundProjectPage'; export * from './bundProjectSummary';