From dc6a49d8da08a482dbd71bae7bdde0759bc283b5 Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 23 Oct 2026 00:00:12 +0200 Subject: [PATCH] services and models regenerated --- webapp/src/app/api/api/orgminer.service.ts | 526 ++++++++++++++++-- webapp/src/app/api/model/hierarchyResponse.ts | 13 +- .../src/app/api/model/hierarchySuggestion.ts | 28 +- 3 files changed, 512 insertions(+), 55 deletions(-) diff --git a/webapp/src/app/api/api/orgminer.service.ts b/webapp/src/app/api/api/orgminer.service.ts index e7af8c8b..3328a54b 100644 --- a/webapp/src/app/api/api/orgminer.service.ts +++ b/webapp/src/app/api/api/orgminer.service.ts @@ -191,6 +191,143 @@ export class OrgminerService extends BaseService { ); } + /** + * Accept Hierarchy Suggestion + * @endpoint post /api/orgminer/hierarchy-suggestions/{suggestion_id}/accept + * @param suggestionId + * @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 acceptHierarchySuggestion_1( + suggestionId: string, + requestBody: Array, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public acceptHierarchySuggestion_1( + suggestionId: string, + requestBody: Array, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public acceptHierarchySuggestion_1( + suggestionId: string, + requestBody: Array, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public acceptHierarchySuggestion_1( + suggestionId: string, + requestBody: Array, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (suggestionId === null || suggestionId === undefined) { + throw new Error( + 'Required parameter suggestionId was null or undefined when calling acceptHierarchySuggestion_1.', + ); + } + if (requestBody === null || requestBody === undefined) { + throw new Error( + 'Required parameter requestBody was null or undefined when calling acceptHierarchySuggestion_1.', + ); + } + + 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/hierarchy-suggestions/${this.configuration.encodeParam({ name: 'suggestionId', value: suggestionId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: 'uuid' })}/accept`; + 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, + }, + ); + } + /** * Returns the classified pages of the orgminer org. * @endpoint get /api/orgminer/classified-pages @@ -477,7 +614,7 @@ export class OrgminerService 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 getClassifiedPagesAggs_1( + public getClassifiedPagesAggs_2( orgUrl: string, secureFgpAcc?: string, observe?: 'body', @@ -488,7 +625,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getClassifiedPagesAggs_1( + public getClassifiedPagesAggs_2( orgUrl: string, secureFgpAcc?: string, observe?: 'response', @@ -499,7 +636,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>>; - public getClassifiedPagesAggs_1( + public getClassifiedPagesAggs_2( orgUrl: string, secureFgpAcc?: string, observe?: 'events', @@ -510,7 +647,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>>; - public getClassifiedPagesAggs_1( + public getClassifiedPagesAggs_2( orgUrl: string, secureFgpAcc?: string, observe: any = 'body', @@ -523,7 +660,7 @@ export class OrgminerService extends BaseService { ): Observable { if (orgUrl === null || orgUrl === undefined) { throw new Error( - 'Required parameter orgUrl was null or undefined when calling getClassifiedPagesAggs_1.', + 'Required parameter orgUrl was null or undefined when calling getClassifiedPagesAggs_2.', ); } @@ -603,7 +740,7 @@ export class OrgminerService 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 getClassifiedPages_2( + public getClassifiedPages_3( orgUrl: string, category?: string, page?: number, @@ -617,7 +754,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable; - public getClassifiedPages_2( + public getClassifiedPages_3( orgUrl: string, category?: string, page?: number, @@ -631,7 +768,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getClassifiedPages_2( + public getClassifiedPages_3( orgUrl: string, category?: string, page?: number, @@ -645,7 +782,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getClassifiedPages_2( + public getClassifiedPages_3( orgUrl: string, category?: string, page?: number, @@ -661,7 +798,7 @@ export class OrgminerService extends BaseService { ): Observable { if (orgUrl === null || orgUrl === undefined) { throw new Error( - 'Required parameter orgUrl was null or undefined when calling getClassifiedPages_2.', + 'Required parameter orgUrl was null or undefined when calling getClassifiedPages_3.', ); } @@ -961,7 +1098,7 @@ export class OrgminerService 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 getHierarchySuggestions_3( + public getHierarchySuggestions_4( secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, @@ -971,7 +1108,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getHierarchySuggestions_3( + public getHierarchySuggestions_4( secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, @@ -981,7 +1118,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>>; - public getHierarchySuggestions_3( + public getHierarchySuggestions_4( secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, @@ -991,7 +1128,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>>; - public getHierarchySuggestions_3( + public getHierarchySuggestions_4( secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, @@ -1066,7 +1203,7 @@ export class OrgminerService 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 getHierarchy_4( + public getHierarchy_5( secureFgpAcc?: string, observe?: 'body', reportProgress?: boolean, @@ -1076,7 +1213,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable; - public getHierarchy_4( + public getHierarchy_5( secureFgpAcc?: string, observe?: 'response', reportProgress?: boolean, @@ -1086,7 +1223,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getHierarchy_4( + public getHierarchy_5( secureFgpAcc?: string, observe?: 'events', reportProgress?: boolean, @@ -1096,7 +1233,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getHierarchy_4( + public getHierarchy_5( secureFgpAcc?: string, observe: any = 'body', reportProgress: boolean = false, @@ -1163,6 +1300,214 @@ export class OrgminerService extends BaseService { ); } + /** + * Returns hierarchy suggestions submitted by the current user. + * @endpoint get /api/orgminer/my-hierarchy-suggestions + * @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 getMyHierarchySuggestions( + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getMyHierarchySuggestions( + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getMyHierarchySuggestions( + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getMyHierarchySuggestions( + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + 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; + + 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/my-hierarchy-suggestions`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + + /** + * Returns hierarchy suggestions submitted by the current user. + * @endpoint get /api/orgminer/my-hierarchy-suggestions + * @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 getMyHierarchySuggestions_6( + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getMyHierarchySuggestions_6( + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getMyHierarchySuggestions_6( + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getMyHierarchySuggestions_6( + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + 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; + + 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/my-hierarchy-suggestions`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>( + 'get', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + /** * Returns organization information for a given person name. * @endpoint get /api/orgminer/get-org-by-person-name @@ -1305,7 +1650,7 @@ export class OrgminerService 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 getOrgByPersonName_5( + public getOrgByPersonName_7( name: string, minSharedWorks?: number, secureFgpAcc?: string, @@ -1317,7 +1662,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable; - public getOrgByPersonName_5( + public getOrgByPersonName_7( name: string, minSharedWorks?: number, secureFgpAcc?: string, @@ -1329,7 +1674,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getOrgByPersonName_5( + public getOrgByPersonName_7( name: string, minSharedWorks?: number, secureFgpAcc?: string, @@ -1341,7 +1686,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getOrgByPersonName_5( + public getOrgByPersonName_7( name: string, minSharedWorks?: number, secureFgpAcc?: string, @@ -1355,7 +1700,7 @@ export class OrgminerService extends BaseService { ): Observable { if (name === null || name === undefined) { throw new Error( - 'Required parameter name was null or undefined when calling getOrgByPersonName_5.', + 'Required parameter name was null or undefined when calling getOrgByPersonName_7.', ); } @@ -1560,7 +1905,7 @@ export class OrgminerService 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 getOrgminerContent_6( + public getOrgminerContent_8( orgUrl: string, secureFgpAcc?: string, observe?: 'body', @@ -1571,7 +1916,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable; - public getOrgminerContent_6( + public getOrgminerContent_8( orgUrl: string, secureFgpAcc?: string, observe?: 'response', @@ -1582,7 +1927,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getOrgminerContent_6( + public getOrgminerContent_8( orgUrl: string, secureFgpAcc?: string, observe?: 'events', @@ -1593,7 +1938,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public getOrgminerContent_6( + public getOrgminerContent_8( orgUrl: string, secureFgpAcc?: string, observe: any = 'body', @@ -1606,7 +1951,7 @@ export class OrgminerService extends BaseService { ): Observable { if (orgUrl === null || orgUrl === undefined) { throw new Error( - 'Required parameter orgUrl was null or undefined when calling getOrgminerContent_6.', + 'Required parameter orgUrl was null or undefined when calling getOrgminerContent_8.', ); } @@ -1790,6 +2135,121 @@ export class OrgminerService extends BaseService { ); } + /** + * Reject Hierarchy Suggestion + * @endpoint post /api/orgminer/hierarchy-suggestions/{suggestion_id}/reject + * @param suggestionId + * @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 rejectHierarchySuggestion_9( + suggestionId: string, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public rejectHierarchySuggestion_9( + suggestionId: string, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public rejectHierarchySuggestion_9( + suggestionId: string, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public rejectHierarchySuggestion_9( + suggestionId: string, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (suggestionId === null || suggestionId === undefined) { + throw new Error( + 'Required parameter suggestionId was null or undefined when calling rejectHierarchySuggestion_9.', + ); + } + + 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; + + 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/hierarchy-suggestions/${this.configuration.encodeParam({ name: 'suggestionId', value: suggestionId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: 'uuid' })}/reject`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request( + 'post', + `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, + ); + } + /** * Submits a suggestion or, for managers, updates the active hierarchy. * Users submit suggestions (max. 3 per account and day); managers update the active hierarchy. @@ -1927,7 +2387,7 @@ export class OrgminerService 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 saveHierarchy_7( + public saveHierarchy_10( requestBody: Array, secureFgpAcc?: string, observe?: 'body', @@ -1938,7 +2398,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable; - public saveHierarchy_7( + public saveHierarchy_10( requestBody: Array, secureFgpAcc?: string, observe?: 'response', @@ -1949,7 +2409,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public saveHierarchy_7( + public saveHierarchy_10( requestBody: Array, secureFgpAcc?: string, observe?: 'events', @@ -1960,7 +2420,7 @@ export class OrgminerService extends BaseService { transferCache?: boolean; }, ): Observable>; - public saveHierarchy_7( + public saveHierarchy_10( requestBody: Array, secureFgpAcc?: string, observe: any = 'body', @@ -1973,7 +2433,7 @@ export class OrgminerService extends BaseService { ): Observable { if (requestBody === null || requestBody === undefined) { throw new Error( - 'Required parameter requestBody was null or undefined when calling saveHierarchy_7.', + 'Required parameter requestBody was null or undefined when calling saveHierarchy_10.', ); } diff --git a/webapp/src/app/api/model/hierarchyResponse.ts b/webapp/src/app/api/model/hierarchyResponse.ts index a5087cdb..f92a3d60 100644 --- a/webapp/src/app/api/model/hierarchyResponse.ts +++ b/webapp/src/app/api/model/hierarchyResponse.ts @@ -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 @@ -9,10 +9,9 @@ */ import { HierarchyNode } from './hierarchyNode'; - -export interface HierarchyResponse { - hierarchy: Array; - can_edit?: boolean; - can_suggest?: boolean; - number_of_suggestion_slots?: number; +export interface HierarchyResponse { + hierarchy: Array; + can_edit?: boolean; + can_suggest?: boolean; + number_of_suggestion_slots?: number; } diff --git a/webapp/src/app/api/model/hierarchySuggestion.ts b/webapp/src/app/api/model/hierarchySuggestion.ts index 12201713..b430d33c 100644 --- a/webapp/src/app/api/model/hierarchySuggestion.ts +++ b/webapp/src/app/api/model/hierarchySuggestion.ts @@ -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 @@ -9,20 +9,18 @@ */ import { HierarchyNode } from './hierarchyNode'; - -export interface HierarchySuggestion { - id: string; - created_at: string; - status: HierarchySuggestion.StatusEnum; - hierarchy: Array; +export interface HierarchySuggestion { + id: string; + created_at: string; + status: HierarchySuggestion.StatusEnum; + active: boolean; + hierarchy: Array; } export namespace HierarchySuggestion { - export const StatusEnum = { - New: 'new', - Accepted: 'accepted', - Rejected: 'rejected' - } as const; - export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum]; + export const StatusEnum = { + New: 'new', + Accepted: 'accepted', + Rejected: 'rejected', + } as const; + export type StatusEnum = (typeof StatusEnum)[keyof typeof StatusEnum]; } - -