diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 3f8e63e4..368d6a03 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -19,6 +19,7 @@ api/institutionsV2.service.ts api/keywords.service.ts api/news.service.ts api/organization.service.ts +api/orgminer.service.ts api/patents.service.ts api/persons.service.ts api/projects.service.ts @@ -79,6 +80,9 @@ model/bundProjectSummary.ts model/bundProjectTopics.ts model/careerMetrics.ts model/careerStage.ts +model/category.ts +model/categoryBucket.ts +model/classifiedPage.ts model/collaborationGraph.ts model/collaborationGraphStatus.ts model/collaborationGraphStatusResponse.ts @@ -93,6 +97,7 @@ model/createPersonBookmark.ts model/customAuthor.ts model/customAuthorsListResponse.ts model/dFGProjectFachgebieteInner.ts +model/dashboardInstitution.ts model/dashboardStatisticValue.ts model/dashboardStatistics.ts model/dehydratedAuthor.ts @@ -198,6 +203,7 @@ model/keywordEntry.ts model/keywordEntryWithTopic.ts model/keywordEvidence.ts model/keywordOperator.ts +model/keywordPatentHighlight.ts model/keywordPatentLevel.ts model/keywordPatentMappingStatus.ts model/keywordPatentMatch.ts @@ -228,6 +234,12 @@ model/openAlexTopicTag.ts model/orgPatentEntry.ts model/orgPatentsResponse.ts model/organizationPage.ts +model/orgminerContent.ts +model/orgminerKeyword.ts +model/orgminerNews.ts +model/orgminerProject.ts +model/orgminerStaff.ts +model/orgminerTag.ts model/otkResponse.ts model/patentEntry.ts model/patentsByAuthorResponse.ts diff --git a/webapp/src/app/api/api/api.ts b/webapp/src/app/api/api/api.ts index 7310dd62..94b39ffe 100644 --- a/webapp/src/app/api/api/api.ts +++ b/webapp/src/app/api/api/api.ts @@ -28,6 +28,8 @@ export * from './news.service'; import { NewsService } from './news.service'; export * from './organization.service'; import { OrganizationService } from './organization.service'; +export * from './orgminer.service'; +import { OrgminerService } from './orgminer.service'; export * from './patents.service'; import { PatentsService } from './patents.service'; export * from './persons.service'; @@ -46,29 +48,4 @@ export * from './works.service'; import { WorksService } from './works.service'; export * from './worksV2.service'; import { WorksV2Service } from './worksV2.service'; -export const APIS = [ - AuthService, - AuthorsV2Service, - BUNDInstitutionsService, - BackgroundJobsService, - BookmarksService, - CompanyConnectionsService, - DFGInstitutionsService, - DFGPersonsService, - DashboardService, - FundingService, - 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, InstitutionsService, InstitutionsV2Service, KeywordsService, NewsService, OrganizationService, OrgminerService, PatentsService, PersonsService, ProjectsService, RankingService, TopicsService, TopicsV2Service, UniversityRankingsService, WorksService, WorksV2Service]; diff --git a/webapp/src/app/api/api/dashboard.service.ts b/webapp/src/app/api/api/dashboard.service.ts index e72520db..0d2df866 100644 --- a/webapp/src/app/api/api/dashboard.service.ts +++ b/webapp/src/app/api/api/dashboard.service.ts @@ -27,6 +27,8 @@ import { BmbfProjectStatusStatistics } from '../model/bmbfProjectStatusStatistic // @ts-ignore import { BundProjectTopics } from '../model/bundProjectTopics'; // @ts-ignore +import { DashboardInstitution } from '../model/dashboardInstitution'; +// @ts-ignore import { DashboardStatisticValue } from '../model/dashboardStatisticValue'; // @ts-ignore import { DashboardStatistics } from '../model/dashboardStatistics'; @@ -69,6 +71,7 @@ export class DashboardService extends BaseService { /** * Dashboard Bmbf Project Statuses * @endpoint get /api/dashboard/projects/bmbf/status + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -76,6 +79,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardBmbfProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -88,6 +92,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardBmbfProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -100,6 +105,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardBmbfProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -112,6 +118,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardBmbfProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -124,6 +131,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -196,6 +208,7 @@ export class DashboardService extends BaseService { /** * Dashboard Bmbf Projects * @endpoint get /api/dashboard/statistics/projects/bmbf + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -203,6 +216,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardBmbfProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -215,6 +229,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardBmbfProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -227,6 +242,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardBmbfProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -239,6 +255,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardBmbfProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -251,6 +268,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -323,6 +345,7 @@ export class DashboardService extends BaseService { /** * Dashboard Bund Project Topics * @endpoint get /api/dashboard/projects/bund/topics + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -330,6 +353,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardBundProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -342,6 +366,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardBundProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -354,6 +379,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardBundProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -366,6 +392,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardBundProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -378,6 +405,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -450,6 +482,7 @@ export class DashboardService extends BaseService { /** * Dashboard Dfg Project Statuses * @endpoint get /api/dashboard/projects/dfg/status + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -457,6 +490,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardDfgProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -469,6 +503,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardDfgProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -481,6 +516,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardDfgProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -493,6 +529,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardDfgProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -505,6 +542,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -577,6 +619,7 @@ export class DashboardService extends BaseService { /** * Dashboard Dfg Project Topics * @endpoint get /api/dashboard/projects/dfg/topics + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -584,6 +627,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardDfgProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -596,6 +640,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardDfgProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -608,6 +653,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardDfgProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -620,6 +666,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardDfgProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -632,6 +679,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -704,6 +756,7 @@ export class DashboardService extends BaseService { /** * Dashboard Dfg Projects * @endpoint get /api/dashboard/statistics/projects/dfg + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -711,6 +764,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardDfgProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -723,6 +777,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardDfgProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -735,6 +790,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardDfgProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -747,6 +803,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardDfgProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -759,6 +816,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -831,6 +893,7 @@ export class DashboardService extends BaseService { /** * Dashboard Eu Project Statuses * @endpoint get /api/dashboard/projects/eu/status + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -838,6 +901,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardEuProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -850,6 +914,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardEuProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -862,6 +927,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardEuProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -874,6 +940,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardEuProjectStatuses( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -886,6 +953,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -958,6 +1030,7 @@ export class DashboardService extends BaseService { /** * Dashboard Eu Project Topics * @endpoint get /api/dashboard/projects/eu/topics + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -965,6 +1038,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardEuProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -977,6 +1051,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardEuProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -989,6 +1064,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardEuProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1001,6 +1077,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardEuProjectTopics( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1013,6 +1090,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -1085,6 +1167,7 @@ export class DashboardService extends BaseService { /** * Dashboard Eu Projects * @endpoint get /api/dashboard/statistics/projects/eu + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -1092,6 +1175,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardEuProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1104,6 +1188,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardEuProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1116,6 +1201,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardEuProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1128,6 +1214,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardEuProjects( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1140,6 +1227,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -1209,9 +1301,114 @@ export class DashboardService extends BaseService { ); } + /** + * Dashboard Institutions + * @endpoint get /api/dashboard/institutions + * @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 getDashboardInstitutions( + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getDashboardInstitutions( + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getDashboardInstitutions( + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getDashboardInstitutions( + 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/dashboard/institutions`; + 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, + }, + ); + } + /** * Dashboard Patents * @endpoint get /api/dashboard/statistics/patents + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -1219,6 +1416,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardPatents( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1231,6 +1429,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardPatents( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1243,6 +1442,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardPatents( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1255,6 +1455,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardPatents( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1267,6 +1468,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -1339,6 +1545,7 @@ export class DashboardService extends BaseService { /** * Dashboard Persons * @endpoint get /api/dashboard/statistics/persons + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -1346,6 +1553,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardPersons( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1358,6 +1566,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardPersons( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1370,6 +1579,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardPersons( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1382,6 +1592,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardPersons( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1394,6 +1605,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -1466,6 +1682,7 @@ export class DashboardService extends BaseService { /** * Dashboard Publications * @endpoint get /api/dashboard/statistics/publications + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -1473,6 +1690,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardPublications( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1485,6 +1703,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardPublications( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1497,6 +1716,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardPublications( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1509,6 +1729,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardPublications( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1521,6 +1742,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -1698,6 +1924,7 @@ export class DashboardService extends BaseService { * Dashboard Top Authors * @endpoint get /api/dashboard/top-authors * @param worksPeriod + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -1706,6 +1933,7 @@ export class DashboardService extends BaseService { */ public getDashboardTopAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1719,6 +1947,7 @@ export class DashboardService extends BaseService { ): Observable; public getDashboardTopAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1732,6 +1961,7 @@ export class DashboardService extends BaseService { ): Observable>; public getDashboardTopAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1745,6 +1975,7 @@ export class DashboardService extends BaseService { ): Observable>; public getDashboardTopAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1762,6 +1993,11 @@ export class DashboardService extends BaseService { worksPeriod, 'works_period', ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -1834,6 +2070,7 @@ export class DashboardService extends BaseService { /** * Dashboard Top Eu Project Authors * @endpoint get /api/dashboard/top-authors/eu-projects + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -1841,6 +2078,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardTopEuProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1853,6 +2091,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardTopEuProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1865,6 +2104,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopEuProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1877,6 +2117,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopEuProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1889,6 +2130,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -1961,6 +2207,7 @@ export class DashboardService extends BaseService { /** * Dashboard Top News Authors * @endpoint get /api/dashboard/top-authors/news + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -1968,6 +2215,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardTopNewsAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1980,6 +2228,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardTopNewsAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -1992,6 +2241,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopNewsAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2004,6 +2254,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopNewsAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2016,6 +2267,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -2088,6 +2344,7 @@ export class DashboardService extends BaseService { /** * Dashboard Top Patent Authors * @endpoint get /api/dashboard/top-authors/patents + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -2095,6 +2352,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardTopPatentAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2107,6 +2365,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardTopPatentAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2119,6 +2378,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopPatentAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2131,6 +2391,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopPatentAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2143,6 +2404,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -2215,6 +2481,7 @@ export class DashboardService extends BaseService { /** * Dashboard Top Project Authors * @endpoint get /api/dashboard/top-authors/projects + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -2222,6 +2489,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardTopProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2234,6 +2502,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardTopProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2246,6 +2515,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2258,6 +2528,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopProjectAuthors( + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2270,6 +2541,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -2343,6 +2619,7 @@ export class DashboardService extends BaseService { * Dashboard Top Work Authors * @endpoint get /api/dashboard/top-authors/works * @param worksPeriod + * @param institutionId * @param fromYear * @param toYear * @param secureFgpAcc @@ -2351,6 +2628,7 @@ export class DashboardService extends BaseService { */ public getDashboardTopWorkAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2364,6 +2642,7 @@ export class DashboardService extends BaseService { ): Observable; public getDashboardTopWorkAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2377,6 +2656,7 @@ export class DashboardService extends BaseService { ): Observable>; public getDashboardTopWorkAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2390,6 +2670,7 @@ export class DashboardService extends BaseService { ): Observable>; public getDashboardTopWorkAuthors( worksPeriod?: 'all_time' | 'last_5_years', + institutionId?: string, fromYear?: number, toYear?: number, secureFgpAcc?: string, @@ -2407,6 +2688,11 @@ export class DashboardService extends BaseService { worksPeriod, 'works_period', ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -2479,6 +2765,7 @@ export class DashboardService extends BaseService { /** * Dashboard Topic Heatmap * @endpoint get /api/dashboard/topic-heatmap + * @param institutionId * @param fromYear * @param toYear * @param limit @@ -2487,6 +2774,7 @@ export class DashboardService extends BaseService { * @param reportProgress flag to report request and response progress. */ public getDashboardTopicHeatmap( + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2500,6 +2788,7 @@ export class DashboardService extends BaseService { }, ): Observable; public getDashboardTopicHeatmap( + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2513,6 +2802,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopicHeatmap( + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2526,6 +2816,7 @@ export class DashboardService extends BaseService { }, ): Observable>; public getDashboardTopicHeatmap( + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2539,6 +2830,11 @@ export class DashboardService extends BaseService { }, ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, @@ -2617,6 +2913,7 @@ export class DashboardService extends BaseService { * Dashboard Topic Word Cloud * @endpoint get /api/dashboard/topic-wordcloud * @param topicId + * @param institutionId * @param fromYear * @param toYear * @param limit @@ -2626,6 +2923,7 @@ export class DashboardService extends BaseService { */ public getDashboardTopicWordCloud( topicId: string, + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2640,6 +2938,7 @@ export class DashboardService extends BaseService { ): Observable; public getDashboardTopicWordCloud( topicId: string, + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2654,6 +2953,7 @@ export class DashboardService extends BaseService { ): Observable>; public getDashboardTopicWordCloud( topicId: string, + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2668,6 +2968,7 @@ export class DashboardService extends BaseService { ): Observable>; public getDashboardTopicWordCloud( topicId: string, + institutionId?: string, fromYear?: number, toYear?: number, limit?: number, @@ -2692,6 +2993,11 @@ export class DashboardService extends BaseService { topicId, 'topicId', ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + institutionId, + 'institution_id', + ); localVarQueryParameters = this.addToHttpParams( localVarQueryParameters, fromYear, diff --git a/webapp/src/app/api/api/orgminer.service.ts b/webapp/src/app/api/api/orgminer.service.ts new file mode 100644 index 00000000..61e6cd9e --- /dev/null +++ b/webapp/src/app/api/api/orgminer.service.ts @@ -0,0 +1,1324 @@ +/** + * 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 { CategoryBucket } from '../model/categoryBucket'; +// @ts-ignore +import { ClassifiedPage } from '../model/classifiedPage'; +// @ts-ignore +import { HTTPValidationError } from '../model/hTTPValidationError'; +// @ts-ignore +import { OrgminerContent } from '../model/orgminerContent'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + +@Injectable({ + providedIn: 'root', +}) +export class OrgminerService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } + + /** + * Returns the classified pages of the orgminer org. + * @endpoint get /api/orgminer/classified-pages + * @param orgUrl The Orgminer URL of the organization to retrieve classified pages for. + * @param category Filter by category (optional). + * @param page The page number to retrieve. + * @param size The number of items per page. + * @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 getClassifiedPages( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getClassifiedPages( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPages( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPages( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (orgUrl === null || orgUrl === undefined) { + throw new Error( + 'Required parameter orgUrl was null or undefined when calling getClassifiedPages.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + orgUrl, + 'org_url', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + category, + 'category', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + size, + 'size', + ); + + 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/classified-pages`; + 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 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. + * @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 getClassifiedPagesAggs( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getClassifiedPagesAggs( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPagesAggs( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPagesAggs( + orgUrl: string, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (orgUrl === null || orgUrl === undefined) { + throw new Error( + 'Required parameter orgUrl was null or undefined when calling getClassifiedPagesAggs.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + orgUrl, + 'org_url', + ); + + 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/classified-pages-aggs`; + 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 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. + * @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 getClassifiedPagesAggs_1( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getClassifiedPagesAggs_1( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPagesAggs_1( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPagesAggs_1( + orgUrl: string, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (orgUrl === null || orgUrl === undefined) { + throw new Error( + 'Required parameter orgUrl was null or undefined when calling getClassifiedPagesAggs_1.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + orgUrl, + 'org_url', + ); + + 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/classified-pages-aggs`; + 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 the classified pages of the orgminer org. + * @endpoint get /api/orgminer/classified-pages + * @param orgUrl The Orgminer URL of the organization to retrieve classified pages for. + * @param category Filter by category (optional). + * @param page The page number to retrieve. + * @param size The number of items per page. + * @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 getClassifiedPages_2( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getClassifiedPages_2( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPages_2( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getClassifiedPages_2( + orgUrl: string, + category?: string, + page?: number, + size?: number, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (orgUrl === null || orgUrl === undefined) { + throw new Error( + 'Required parameter orgUrl was null or undefined when calling getClassifiedPages_2.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + orgUrl, + 'org_url', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + category, + 'category', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + size, + 'size', + ); + + 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/classified-pages`; + 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 the hierarchy of organizations. + * Returns the hierarchy of organizations. + * @endpoint get /api/orgminer/get-hierarchy + * @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 getHierarchy( + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getHierarchy( + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getHierarchy( + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getHierarchy( + 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/get-hierarchy`; + 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 the hierarchy of organizations. + * Returns the hierarchy of organizations. + * @endpoint get /api/orgminer/get-hierarchy + * @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 getHierarchy_3( + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getHierarchy_3( + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getHierarchy_3( + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>>; + public getHierarchy_3( + 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/get-hierarchy`; + 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 + * @param name The name of the person to search for. + * @param minSharedWorks Minimum total shared-work weight with an org\'s other staff required to accept that org as the person\'s match. Raise for stricter evidence, lower to be more permissive. + * @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 getOrgByPersonName( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getOrgByPersonName( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgByPersonName( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgByPersonName( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (name === null || name === undefined) { + throw new Error( + 'Required parameter name was null or undefined when calling getOrgByPersonName.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + name, + 'name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + minSharedWorks, + 'min_shared_works', + ); + + 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/get-org-by-person-name`; + 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 organization information for a given person name. + * @endpoint get /api/orgminer/get-org-by-person-name + * @param name The name of the person to search for. + * @param minSharedWorks Minimum total shared-work weight with an org\'s other staff required to accept that org as the person\'s match. Raise for stricter evidence, lower to be more permissive. + * @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 getOrgByPersonName_4( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getOrgByPersonName_4( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgByPersonName_4( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgByPersonName_4( + name: string, + minSharedWorks?: number, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (name === null || name === undefined) { + throw new Error( + 'Required parameter name was null or undefined when calling getOrgByPersonName_4.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + name, + 'name', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + minSharedWorks, + 'min_shared_works', + ); + + 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/get-org-by-person-name`; + 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 the content of the orgminer org. + * @endpoint get /api/orgminer/orgminer-content + * @param orgUrl The Orgminer URL of the organization to retrieve content for. + * @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 getOrgminerContent( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getOrgminerContent( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgminerContent( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgminerContent( + orgUrl: string, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (orgUrl === null || orgUrl === undefined) { + throw new Error( + 'Required parameter orgUrl was null or undefined when calling getOrgminerContent.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + orgUrl, + 'org_url', + ); + + 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/orgminer-content`; + 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 the content of the orgminer org. + * @endpoint get /api/orgminer/orgminer-content + * @param orgUrl The Orgminer URL of the organization to retrieve content for. + * @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 getOrgminerContent_5( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getOrgminerContent_5( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgminerContent_5( + orgUrl: string, + secureFgpAcc?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getOrgminerContent_5( + orgUrl: string, + secureFgpAcc?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (orgUrl === null || orgUrl === undefined) { + throw new Error( + 'Required parameter orgUrl was null or undefined when calling getOrgminerContent_5.', + ); + } + + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + orgUrl, + 'org_url', + ); + + 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/orgminer-content`; + 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/category.ts b/webapp/src/app/api/model/category.ts new file mode 100644 index 00000000..771347a7 --- /dev/null +++ b/webapp/src/app/api/model/category.ts @@ -0,0 +1,22 @@ +/** + * 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 Category = { + Teaching: 'Teaching', + Research: 'Research', + Staff: 'Staff', + News: 'News', + Projects: 'Projects', + Entity: 'Entity', + Other: 'Other' +} as const; +export type Category = typeof Category[keyof typeof Category]; + diff --git a/webapp/src/app/api/model/categoryBucket.ts b/webapp/src/app/api/model/categoryBucket.ts new file mode 100644 index 00000000..48a35fb5 --- /dev/null +++ b/webapp/src/app/api/model/categoryBucket.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. + */ +import { Category } from './category'; + + +export interface CategoryBucket { + category: Category; + count: number; +} +export namespace CategoryBucket { +} + + diff --git a/webapp/src/app/api/model/classifiedPage.ts b/webapp/src/app/api/model/classifiedPage.ts new file mode 100644 index 00000000..2afab472 --- /dev/null +++ b/webapp/src/app/api/model/classifiedPage.ts @@ -0,0 +1,29 @@ +/** + * 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 { Category } from './category'; +import { OrgminerKeyword } from './orgminerKeyword'; + + +/** + * Domain model representing a categorized page. + */ +export interface ClassifiedPage { + id?: string | null; + score?: number | null; + title?: string | null; + body?: string | null; + category?: Category | null; + uri?: string | null; + keywords?: Array; +} +export namespace ClassifiedPage { +} + + diff --git a/webapp/src/app/api/model/dashboardInstitution.ts b/webapp/src/app/api/model/dashboardInstitution.ts new file mode 100644 index 00000000..b02aba7e --- /dev/null +++ b/webapp/src/app/api/model/dashboardInstitution.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 DashboardInstitution { + id: string; + display_name: string; +} diff --git a/webapp/src/app/api/model/orgminerContent.ts b/webapp/src/app/api/model/orgminerContent.ts new file mode 100644 index 00000000..1ba4e0ab --- /dev/null +++ b/webapp/src/app/api/model/orgminerContent.ts @@ -0,0 +1,25 @@ +/** + * 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 { OrgminerProject } from './orgminerProject'; +import { OrgminerTag } from './orgminerTag'; +import { OrgminerNews } from './orgminerNews'; +import { OrgminerStaff } from './orgminerStaff'; +import { OrgminerKeyword } from './orgminerKeyword'; + + +export interface OrgminerContent { + uri?: string | null; + keywords?: Array; + news?: Array; + projects?: Array; + staff?: Array; + tags?: Array; +} + diff --git a/webapp/src/app/api/model/orgminerKeyword.ts b/webapp/src/app/api/model/orgminerKeyword.ts new file mode 100644 index 00000000..9c6a1d3e --- /dev/null +++ b/webapp/src/app/api/model/orgminerKeyword.ts @@ -0,0 +1,16 @@ +/** + * 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 OrgminerKeyword { + score?: number | null; + value?: string | null; +} + diff --git a/webapp/src/app/api/model/orgminerNews.ts b/webapp/src/app/api/model/orgminerNews.ts new file mode 100644 index 00000000..1f56ba96 --- /dev/null +++ b/webapp/src/app/api/model/orgminerNews.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 interface OrgminerNews { + date?: string | null; + keywords?: Array; + links?: Array; + source?: string | null; + title?: string | null; + topic?: string | null; +} + diff --git a/webapp/src/app/api/model/orgminerProject.ts b/webapp/src/app/api/model/orgminerProject.ts new file mode 100644 index 00000000..621e82be --- /dev/null +++ b/webapp/src/app/api/model/orgminerProject.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 interface OrgminerProject { + keywords?: Array; + links?: Array; + names?: string | null; + project_type?: string | null; + title?: string | null; + topic?: string | null; +} + diff --git a/webapp/src/app/api/model/orgminerStaff.ts b/webapp/src/app/api/model/orgminerStaff.ts new file mode 100644 index 00000000..362dec67 --- /dev/null +++ b/webapp/src/app/api/model/orgminerStaff.ts @@ -0,0 +1,21 @@ +/** + * 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 OrgminerStaff { + email?: string | null; + keywords?: Array; + links?: Array; + name?: string | null; + research_interests?: Array; + source?: string | null; + telefon?: string | null; +} + diff --git a/webapp/src/app/api/model/orgminerTag.ts b/webapp/src/app/api/model/orgminerTag.ts new file mode 100644 index 00000000..79d60490 --- /dev/null +++ b/webapp/src/app/api/model/orgminerTag.ts @@ -0,0 +1,16 @@ +/** + * 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 OrgminerTag { + score?: number | null; + value?: string | null; +} +