From ad737ffe0a44754ca24c70a2042e9bdbad136776 Mon Sep 17 00:00:00 2001 From: genja Date: Sat, 17 Oct 2026 22:39:59 +0200 Subject: [PATCH] regenerated services and models --- webapp/src/app/api/.openapi-generator/FILES | 2 + webapp/src/app/api/api/orgminer.service.ts | 276 +++++++++++++++++- webapp/src/app/api/model/hierarchyNode.ts | 26 ++ webapp/src/app/api/model/hierarchyResponse.ts | 18 ++ 4 files changed, 314 insertions(+), 8 deletions(-) create mode 100644 webapp/src/app/api/model/hierarchyNode.ts create mode 100644 webapp/src/app/api/model/hierarchyResponse.ts diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 3a5122a2..d80e8ce6 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -180,6 +180,8 @@ model/hEUReportSummary.ts model/hEUTopic.ts model/hEUWebLink.ts model/hTTPValidationError.ts +model/hierarchyNode.ts +model/hierarchyResponse.ts model/idTokenMetadata.ts model/inseAccountManagementModelOrganizationProfile.ts model/inseOrganizationManagementModelOrganizationProfile.ts diff --git a/webapp/src/app/api/api/orgminer.service.ts b/webapp/src/app/api/api/orgminer.service.ts index 7d799e9e..fbb57896 100644 --- a/webapp/src/app/api/api/orgminer.service.ts +++ b/webapp/src/app/api/api/orgminer.service.ts @@ -29,6 +29,8 @@ import { ClassifiedPageResponse } from '../model/classifiedPageResponse'; // @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; // @ts-ignore +import { HierarchyResponse } from '../model/hierarchyResponse'; +// @ts-ignore import { OrgminerContent } from '../model/orgminerContent'; // @ts-ignore @@ -202,6 +204,7 @@ export class OrgminerService extends BaseService { } /** + * Returns the aggregated categories of the classified pages of the orgminer org. * Returns the aggregated categories of the classified pages of the orgminer org. * @endpoint get /api/orgminer/classified-pages-aggs * @param orgUrl The Orgminer URL of the organization to retrieve classified pages for. @@ -325,6 +328,7 @@ export class OrgminerService extends BaseService { } /** + * Returns the aggregated categories of the classified pages of the orgminer org. * Returns the aggregated categories of the classified pages of the orgminer org. * @endpoint get /api/orgminer/classified-pages-aggs * @param orgUrl The Orgminer URL of the organization to retrieve classified pages for. @@ -617,7 +621,7 @@ export class OrgminerService extends BaseService { context?: HttpContext; transferCache?: boolean; }, - ): Observable>; + ): Observable; public getHierarchy( secureFgpAcc?: string, observe?: 'response', @@ -627,7 +631,7 @@ export class OrgminerService extends BaseService { context?: HttpContext; transferCache?: boolean; }, - ): Observable>>; + ): Observable>; public getHierarchy( secureFgpAcc?: string, observe?: 'events', @@ -637,7 +641,7 @@ export class OrgminerService extends BaseService { context?: HttpContext; transferCache?: boolean; }, - ): Observable>>; + ): Observable>; public getHierarchy( secureFgpAcc?: string, observe: any = 'body', @@ -688,7 +692,7 @@ export class OrgminerService extends BaseService { let localVarPath = `/api/orgminer/get-hierarchy`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>( + return this.httpClient.request( 'get', `${basePath}${localVarPath}`, { @@ -722,7 +726,7 @@ export class OrgminerService extends BaseService { context?: HttpContext; transferCache?: boolean; }, - ): Observable>; + ): Observable; public getHierarchy_3( secureFgpAcc?: string, observe?: 'response', @@ -732,7 +736,7 @@ export class OrgminerService extends BaseService { context?: HttpContext; transferCache?: boolean; }, - ): Observable>>; + ): Observable>; public getHierarchy_3( secureFgpAcc?: string, observe?: 'events', @@ -742,7 +746,7 @@ export class OrgminerService extends BaseService { context?: HttpContext; transferCache?: boolean; }, - ): Observable>>; + ): Observable>; public getHierarchy_3( secureFgpAcc?: string, observe: any = 'body', @@ -793,7 +797,7 @@ export class OrgminerService extends BaseService { let localVarPath = `/api/orgminer/get-hierarchy`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>( + return this.httpClient.request( 'get', `${basePath}${localVarPath}`, { @@ -1321,4 +1325,260 @@ export class OrgminerService extends BaseService { }, ); } + + /** + * Saves the hierarchy of organizations. + * Saves the hierarchy of organizations (max. 3 suggestions per account and day). + * @endpoint post /api/orgminer/save-hierarchy + * @param requestBody + * @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 saveHierarchy( + requestBody: Array, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public saveHierarchy( + requestBody: Array, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public saveHierarchy( + requestBody: Array, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public saveHierarchy( + requestBody: Array, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (requestBody === null || requestBody === undefined) { + throw new Error( + 'Required parameter requestBody was null or undefined when calling saveHierarchy.', + ); + } + + 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/orgminer/save-hierarchy`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: requestBody, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Saves the hierarchy of organizations. + * Saves the hierarchy of organizations (max. 3 suggestions per account and day). + * @endpoint post /api/orgminer/save-hierarchy + * @param requestBody + * @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 saveHierarchy_6( + requestBody: Array, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public saveHierarchy_6( + requestBody: Array, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public saveHierarchy_6( + requestBody: Array, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public saveHierarchy_6( + requestBody: Array, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (requestBody === null || requestBody === undefined) { + throw new Error( + 'Required parameter requestBody was null or undefined when calling saveHierarchy_6.', + ); + } + + 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/orgminer/save-hierarchy`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: requestBody, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } } diff --git a/webapp/src/app/api/model/hierarchyNode.ts b/webapp/src/app/api/model/hierarchyNode.ts new file mode 100644 index 00000000..b4171c99 --- /dev/null +++ b/webapp/src/app/api/model/hierarchyNode.ts @@ -0,0 +1,26 @@ +/** + * 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 HierarchyNode { + [key: string]: any | any; + + + name_de: string; + link_de?: string | null; + name_en?: string | null; + link_en?: string | null; + faculty_de?: string | null; + faculty_en?: string | null; + type: string; + value?: number | null; + children?: Array | null; +} + diff --git a/webapp/src/app/api/model/hierarchyResponse.ts b/webapp/src/app/api/model/hierarchyResponse.ts new file mode 100644 index 00000000..b69f4e3d --- /dev/null +++ b/webapp/src/app/api/model/hierarchyResponse.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. + */ +import { HierarchyNode } from './hierarchyNode'; + + +export interface HierarchyResponse { + hierarchy: Array; + can_edit?: boolean; + number_of_suggestion_slots?: number; +} +