diff --git a/service/src/data/search_scores.json b/service/src/data/search_scores.json index d49fd266..3f7d4e0b 100644 --- a/service/src/data/search_scores.json +++ b/service/src/data/search_scores.json @@ -1,206 +1,150 @@ { - "query": "Simultaneous Localization and Mapping", - "max_score": 25.49804, + "query": "Robotics", + "max_score": 22.734766, "results": [ + { + "topic_name": "Soft Robotics and Applications", + "score": 22.734766 + }, + { + "topic_name": "Robotics and Automated Systems", + "score": 21.997686 + }, + { + "topic_name": "Educational Robotics and Engineering", + "score": 21.919401 + }, + { + "topic_name": "Prosthetics and Rehabilitation Robotics", + "score": 21.846806 + }, + { + "topic_name": "Micro and Nano Robotics", + "score": 21.820261 + }, + { + "topic_name": "Reinforcement Learning in Robotics", + "score": 21.757397 + }, { "topic_name": "Robotics and Sensor-Based Localization", - "score": 25.49804 + "score": 19.993645 }, { - "topic_name": "Indoor and Outdoor Localization Technologies", - "score": 23.902437 + "topic_name": "Social Robot Interaction and HRI", + "score": 13.187252 }, { - "topic_name": "Soil Geostatistics and Mapping", - "score": 22.452497 + "topic_name": "Robotic Locomotion and Control", + "score": 12.283064 }, { - "topic_name": "Cognitive Science and Mapping", - "score": 22.452497 + "topic_name": "Power Line Inspection Robots", + "score": 11.873396 }, { - "topic_name": "Geochemistry and Geologic Mapping", - "score": 22.452497 + "topic_name": "Mechatronics Education and Applications", + "score": 11.171629 }, { - "topic_name": "Genetic Mapping and Diversity in Plants and Animals", - "score": 16.51662 + "topic_name": "Educational Technology and Optimization", + "score": 10.924184 }, { - "topic_name": "Medical Imaging and Analysis", - "score": 15.203476 + "topic_name": "Mechanical and Thermal Properties Analysis", + "score": 10.924184 }, { - "topic_name": "Spectral Theory in Mathematical Physics", - "score": 14.039959 + "topic_name": "Psychiatry, Mental Health, Neuroscience", + "score": 10.687462 }, { - "topic_name": "Educational Technology and Assessment", - "score": 13.686651 + "topic_name": "Advanced Materials and Mechanics", + "score": 10.460782 }, { - "topic_name": "Socioeconomic Development in MENA", - "score": 11.518878 + "topic_name": "Wetland Management and Conservation", + "score": 10.460782 }, { - "topic_name": "Yeasts and Rust Fungi Studies", - "score": 10.858546 + "topic_name": "Artificial Intelligence Applications", + "score": 10.243518 }, { - "topic_name": "Electrical Fault Detection and Protection", - "score": 10.770052 + "topic_name": "Digitalization, Law, and Regulation", + "score": 10.243518 }, { - "topic_name": "Machine Learning in Bioinformatics", - "score": 10.322677 + "topic_name": "Engineering and Technology Innovations", + "score": 10.243518 }, { - "topic_name": "Advances in Cucurbitaceae Research", - "score": 10.120667 + "topic_name": "Advanced Algorithms and Applications", + "score": 10.035095 }, { - "topic_name": "Software System Performance and Reliability", - "score": 10.112644 + "topic_name": "Teaching and Learning Programming", + "score": 10.035095 }, { - "topic_name": "Quantum many-body systems", - "score": 10.112644 + "topic_name": "Distributed Control Multi-Agent Systems", + "score": 10.035095 }, { - "topic_name": "Random lasers and scattering media", - "score": 10.112644 + "topic_name": "Advanced Scientific and Engineering Studies", + "score": 9.834986 }, { - "topic_name": "Insect Pheromone Research and Control", - "score": 9.910988 + "topic_name": "Space Satellite Systems and Control", + "score": 9.6427 }, { - "topic_name": "Tactile and Sensory Interactions", - "score": 9.910988 - }, - { - "topic_name": "Handwritten Text Recognition Techniques", - "score": 9.910988 - }, - { - "topic_name": "Integrated Circuits and Semiconductor Failure Analysis", - "score": 9.910988 - }, - { - "topic_name": "Computational Physics and Python Applications", - "score": 9.896502 - }, - { - "topic_name": "Wheat and Barley Genetics and Pathology", - "score": 9.896502 - }, - { - "topic_name": "Biotin and Related Studies", - "score": 9.896502 - }, - { - "topic_name": "Microwave Imaging and Scattering Analysis", - "score": 9.7172165 - }, - { - "topic_name": "Neurology and Historical Studies", - "score": 9.7172165 - }, - { - "topic_name": "High-Velocity Impact and Material Behavior", - "score": 9.7172165 - }, - { - "topic_name": "Cardiac Arrhythmias and Treatments", - "score": 9.682049 - }, - { - "topic_name": "Sugarcane Cultivation and Processing", - "score": 9.682049 - }, - { - "topic_name": "Soybean genetics and cultivation", - "score": 9.682049 - }, - { - "topic_name": "Berry genetics and cultivation research", - "score": 9.682049 - }, - { - "topic_name": "Color Science and Applications", - "score": 9.682049 - }, - { - "topic_name": "Software Engineering Research", - "score": 9.530875 - }, - { - "topic_name": "Software Testing and Debugging Techniques", - "score": 9.530875 - }, - { - "topic_name": "Digital Media Forensic Detection", - "score": 9.530875 - }, - { - "topic_name": "Peanut Plant Research Studies", - "score": 9.476693 - }, - { - "topic_name": "Persona Design and Applications", - "score": 9.476693 - }, - { - "topic_name": "Sunflower and Safflower Cultivation", - "score": 9.476693 - }, - { - "topic_name": "Infrared Thermography in Medicine", - "score": 9.351548 - }, - { - "topic_name": "Explainable Artificial Intelligence (XAI)", - "score": 9.351548 + "topic_name": "Smart Agriculture and AI", + "score": 9.279837 }, { "topic_name": "Underwater Vehicles and Communication Systems", - "score": 9.351548 + "score": 9.279837 }, { - "topic_name": "Analytic and geometric function theory", - "score": 9.279868 + "topic_name": "Modular Robots and Swarm Intelligence", + "score": 7.7584143 }, { - "topic_name": "Information Architecture and Usability", - "score": 9.279868 + "topic_name": "Diverse Perspectives in Modern Studies", + "score": 5.6107 }, { - "topic_name": "Landslides and related hazards", - "score": 9.279868 + "topic_name": "Teleoperation and Haptic Systems", + "score": 5.2510495 }, { - "topic_name": "Underwater Acoustics Research", - "score": 9.279868 + "topic_name": "Optimization and Search Problems", + "score": 5.1682277 }, { - "topic_name": "Visual perception and processing mechanisms", - "score": 9.279868 + "topic_name": "Adaptive Dynamic Programming Control", + "score": 4.8615155 }, { - "topic_name": "Research in Cotton Cultivation", - "score": 9.279868 + "topic_name": "Robotic Mechanisms and Dynamics", + "score": 2.6450925 }, { - "topic_name": "Urban Arborization and Environmental Studies", - "score": 9.279868 + "topic_name": "Control and Dynamics of Mobile Robots", + "score": 2.5917463 }, { - "topic_name": "Geological Modeling and Analysis", - "score": 9.091053 + "topic_name": "Robot Manipulation and Learning", + "score": 2.5859585 }, { - "topic_name": "Impact of Light on Environment and Health", - "score": 9.091053 + "topic_name": "Robotic Process Automation Applications", + "score": 1.7370787 + }, + { + "topic_name": "Robotic Path Planning Algorithms", + "score": 1.6302633 } ] } diff --git a/webapp/build.gradle b/webapp/build.gradle index d6f8a0a4..d3f69e7e 100644 --- a/webapp/build.gradle +++ b/webapp/build.gradle @@ -39,7 +39,7 @@ task generateOpenApiClient(type: GenerateTask) { description = "Generates the API client using OpenAPI Generator" generatorName = "typescript-angular" - inputSpec = file("../service/build/openapi/inse-service.openapi.json").path + inputSpec = file("../service/build/openapi/inse-service.openapi.json").toURI().toString() outputDir = file("src/app/api").path } diff --git a/webapp/src/app/api/api/topics.service.ts b/webapp/src/app/api/api/topics.service.ts index 2c218236..88d63fef 100644 --- a/webapp/src/app/api/api/topics.service.ts +++ b/webapp/src/app/api/api/topics.service.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 @@ -11,8 +11,13 @@ import { Inject, Injectable, Optional } from '@angular/core'; import { - HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + HttpClient, + HttpHeaders, + HttpParams, + HttpResponse, + HttpEvent, + HttpParameterCodec, + HttpContext, } from '@angular/common/http'; import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; @@ -29,14 +34,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; - - @Injectable({ - providedIn: 'root' + providedIn: 'root', }) export class TopicsService extends BaseService { - - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { super(basePath, configuration); } @@ -51,45 +57,119 @@ export class TopicsService 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 autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable; - public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable { + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public autocompleteTopics( + query: string, + domainId?: string, + fieldId?: string, + subfieldId?: string, + limit?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { if (query === null || query === undefined) { - throw new Error('Required parameter query was null or undefined when calling autocompleteTopics.'); + throw new Error( + 'Required parameter query was null or undefined when calling autocompleteTopics.', + ); } let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - query, 'query'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - domainId, 'domainId'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - fieldId, 'fieldId'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - subfieldId, 'subfieldId'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - limit, 'limit'); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + domainId, + 'domainId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + fieldId, + 'fieldId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + subfieldId, + 'subfieldId', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + 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)) { + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { responseType_ = 'json'; } else { responseType_ = 'blob'; @@ -98,7 +178,9 @@ export class TopicsService extends BaseService { let localVarPath = `/api/topics/autocomplete`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, @@ -106,9 +188,11 @@ export class TopicsService extends BaseService { ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, ); } @@ -120,36 +204,86 @@ export class TopicsService 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 buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable { - + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public buildTopicCache( + pageSize?: number, + saveJson?: boolean, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - pageSize, 'page_size'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - saveJson, 'save_json'); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + pageSize, + 'page_size', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + saveJson, + 'save_json', + ); let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + 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)) { + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { responseType_ = 'json'; } else { responseType_ = 'blob'; @@ -158,7 +292,9 @@ export class TopicsService extends BaseService { let localVarPath = `/api/inse-service/topics/cache`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, @@ -166,9 +302,11 @@ export class TopicsService extends BaseService { ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, ); } @@ -179,41 +317,87 @@ export class TopicsService 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 countTopicHierarchy(topic: Array, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable; - public countTopicHierarchy(topic: Array, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public countTopicHierarchy(topic: Array, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public countTopicHierarchy(topic: Array, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable { + public countTopicHierarchy( + topic: Array, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public countTopicHierarchy( + topic: Array, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public countTopicHierarchy( + topic: Array, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public countTopicHierarchy( + topic: Array, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { if (topic === null || topic === undefined) { - throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.'); + throw new Error( + 'Required parameter topic was null or undefined when calling countTopicHierarchy.', + ); } let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); if (topic) { topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'topic'); - }) + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + element, + 'topic', + ); + }); } let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + 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)) { + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { responseType_ = 'json'; } else { responseType_ = 'blob'; @@ -222,7 +406,9 @@ export class TopicsService extends BaseService { let localVarPath = `/api/inse-service/topics/count`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, @@ -230,9 +416,11 @@ export class TopicsService extends BaseService { ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, ); } @@ -242,30 +430,66 @@ export class TopicsService 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 getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable; - public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable { - + public getTopicHierarchy( + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getTopicHierarchy( + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicHierarchy( + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getTopicHierarchy( + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + 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)) { + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { responseType_ = 'json'; } else { responseType_ = 'blob'; @@ -274,16 +498,20 @@ export class TopicsService extends BaseService { let localVarPath = `/api/inse-service/topics/hierarchy`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, ); } @@ -302,50 +530,149 @@ export class TopicsService 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 listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable; - public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable>; - public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean }): Observable { - + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public listTopics( + search?: string, + filter?: string, + sort?: string, + groupBy?: string, + perPage?: number, + page?: number, + cursor?: string, + sample?: number, + select?: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - search, 'search'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - filter, 'filter'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sort, 'sort'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - groupBy, 'group_by'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - perPage, 'per_page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - cursor, 'cursor'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - sample, 'sample'); - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - select, 'select'); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + search, + 'search', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + filter, + 'filter', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sort, + 'sort', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + groupBy, + 'group_by', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + perPage, + 'per_page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + page, + 'page', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + cursor, + 'cursor', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + sample, + 'sample', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + select, + 'select', + ); let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - 'application/json' - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = + options?.httpHeaderAccept ?? + this.configuration.selectHeaderAccept(['application/json']); if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + localVarHeaders = localVarHeaders.set( + 'Accept', + localVarHttpHeaderAcceptSelected, + ); } - const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + 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)) { + } else if ( + this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) + ) { responseType_ = 'json'; } else { responseType_ = 'blob'; @@ -354,7 +681,9 @@ export class TopicsService extends BaseService { let localVarPath = `/api/topics`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request( + 'get', + `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, @@ -362,215 +691,14 @@ export class TopicsService extends BaseService { ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), - reportProgress: reportProgress - } + ...(localVarTransferCache !== undefined + ? { transferCache: localVarTransferCache } + : {}), + reportProgress: reportProgress, + }, ); } - let localVarPath = `/api/inse-service/topics/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 a list of OpenAlex topics. - * @endpoint get /api/topics - * @param search Full-text search, for example \'machine learning\'. - * @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'. - * @param sort Sort field, for example \'works_count:desc\'. - * @param groupBy OpenAlex group_by field, for example \'domain.id\'. - * @param perPage Results per page. - * @param page Page number. Use cursor for deep pagination. - * @param cursor Cursor pagination token. Use \'*\' to start. - * @param sample Random sample size. Cannot be combined with sort or page. - * @param select Comma-separated fields to return. - * @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 listTopics( - search ?: string, - filter ?: string, - sort ?: string, - groupBy ?: string, - perPage ?: number, - page ?: number, - cursor ?: string, - sample ?: number, - select ?: string, - observe ?: 'body', - reportProgress ?: boolean, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable; - public listTopics( - search ?: string, - filter ?: string, - sort ?: string, - groupBy ?: string, - perPage ?: number, - page ?: number, - cursor ?: string, - sample ?: number, - select ?: string, - observe ?: 'response', - reportProgress ?: boolean, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable>; - public listTopics( - search ?: string, - filter ?: string, - sort ?: string, - groupBy ?: string, - perPage ?: number, - page ?: number, - cursor ?: string, - sample ?: number, - select ?: string, - observe ?: 'events', - reportProgress ?: boolean, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable>; - public listTopics( - search ?: string, - filter ?: string, - sort ?: string, - groupBy ?: string, - perPage ?: number, - page ?: number, - cursor ?: string, - sample ?: number, - select ?: string, - observe: any = 'body', - reportProgress: boolean = false, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable < any > { - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - search, - 'search', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - filter, - 'filter', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sort, - 'sort', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - groupBy, - 'group_by', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - perPage, - 'per_page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - cursor, - 'cursor', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sample, - 'sample', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - select, - 'select', - ); - - let localVarHeaders = this.defaultHeaders; - - const localVarHttpHeaderAcceptSelected: string | undefined = -options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); -if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); -} - -const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); - -const localVarTransferCache: boolean = options?.transferCache ?? true; - -let responseType_: 'text' | 'json' | 'blob' = 'json'; -if (localVarHttpHeaderAcceptSelected) { - if (localVarHttpHeaderAcceptSelected.startsWith('text')) { - responseType_ = 'text'; - } else if ( - this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected) - ) { - responseType_ = 'json'; - } else { - responseType_ = 'blob'; - } -} - -let localVarPath = `/api/topics`; -const { basePath, withCredentials } = this.configuration; -return this.httpClient.request( - 'get', - `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined - ? { transferCache: localVarTransferCache } - : {}), - reportProgress: reportProgress, - }, -); - } - /** * Semantic / vector search for topics using a keyword/sentence. * @endpoint get /api/topics/vector-search @@ -580,116 +708,114 @@ return this.httpClient.request( * @param reportProgress flag to report request and response progress. */ public vectorSearchTopics( - query: string, - limit ?: number, - observe ?: 'body', - reportProgress ?: boolean, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable; + query: string, + limit?: number, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; public vectorSearchTopics( - query: string, - limit ?: number, - observe ?: 'response', - reportProgress ?: boolean, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable>; + query: string, + limit?: number, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; public vectorSearchTopics( - query: string, - limit ?: number, - observe ?: 'events', - reportProgress ?: boolean, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable>; + query: string, + limit?: number, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; public vectorSearchTopics( - query: string, - limit ?: number, - observe: any = 'body', - reportProgress: boolean = false, - options ?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, -): Observable < any > { - if(query === null || query === undefined) { - throw new Error( - 'Required parameter query was null or undefined when calling vectorSearchTopics.', - ); -} + query: string, + limit?: number, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (query === null || query === undefined) { + throw new Error( + 'Required parameter query was null or undefined when calling vectorSearchTopics.', + ); + } -let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); -localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - query, - 'query', -); -if (limit !== undefined && limit !== null) { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); -} + let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + query, + 'query', + ); + localVarQueryParameters = this.addToHttpParams( + localVarQueryParameters, + limit, + 'limit', + ); -let localVarHeaders = this.defaultHeaders; + let localVarHeaders = this.defaultHeaders; -const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); -if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); -} + 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 localVarHttpContext: HttpContext = + options?.context ?? new HttpContext(); -const localVarTransferCache: boolean = options?.transferCache ?? true; + 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 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/topics/vector-search`; -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, - }, -); + let localVarPath = `/api/topics/vector-search`; + 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/api/topics.serviceInterface.ts b/webapp/src/app/api/api/topics.serviceInterface.ts deleted file mode 100644 index f5410e19..00000000 --- a/webapp/src/app/api/api/topics.serviceInterface.ts +++ /dev/null @@ -1,113 +0,0 @@ -/** - * 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 { HttpHeaders } from '@angular/common/http'; - -import { Observable } from 'rxjs'; - -import { AutocompleteResponse } from '../model/models'; -import { HTTPValidationError } from '../model/models'; -import { TopicsListResponse } from '../model/models'; - -import { Configuration } from '../configuration'; - -export interface TopicsServiceInterface { - defaultHeaders: HttpHeaders; - configuration: Configuration; - - /** - * Returns topic options for autocomplete inputs. - * - * @endpoint get /api/topics/autocomplete - * @param query Topic search text, for example \'machine learning\'. - * @param domainId Optional OpenAlex domain id filter. - * @param fieldId Optional OpenAlex field id filter. - * @param subfieldId Optional OpenAlex subfield id filter. - * @param limit Maximum number of autocomplete options. - */ - autocompleteTopics( - query: string, - domainId?: string, - fieldId?: string, - subfieldId?: string, - limit?: number, - extraHttpRequestParams?: any, - ): Observable; - - /** - * Builds the topic hierarchy cache. - * - * @endpoint get /api/inse-service/topics/cache - * @param pageSize Page size for each search page. - * @param saveJson Persist cache JSON to data folder. - */ - buildTopicCache( - pageSize?: number, - saveJson?: boolean, - extraHttpRequestParams?: any, - ): Observable; - - /** - * Counts topic hierarchy occurrences from cache. - * - * @endpoint get /api/inse-service/topics/count - * @param topic Topic names (repeat parameter). - */ - countTopicHierarchy( - topic: Array, - extraHttpRequestParams?: any, - ): Observable; - - /** - * Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). - * - * @endpoint get /api/inse-service/topics/hierarchy - */ - getTopicHierarchy(extraHttpRequestParams?: any): Observable; - - /** - * Returns a list of OpenAlex topics. - * - * @endpoint get /api/topics - * @param search Full-text search, for example \'machine learning\'. - * @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'. - * @param sort Sort field, for example \'works_count:desc\'. - * @param groupBy OpenAlex group_by field, for example \'domain.id\'. - * @param perPage Results per page. - * @param page Page number. Use cursor for deep pagination. - * @param cursor Cursor pagination token. Use \'*\' to start. - * @param sample Random sample size. Cannot be combined with sort or page. - * @param select Comma-separated fields to return. - */ - listTopics( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: string, - extraHttpRequestParams?: any, - ): Observable; - - /** - * Semantic / vector search for topics using a keyword/sentence. - * - * @endpoint get /api/topics/vector-search - * @param query Word or sentence to search by similarity. - * @param limit Maximum number of topics to return. - */ - vectorSearchTopics( - query: string, - limit?: number, - extraHttpRequestParams?: any, - ): Observable; -}