Merge branch 'dev' of https://project.nes.uni-due.de/gitea/lbs/smartguide into feature/Keyword_search_rework

This commit is contained in:
Kazgatari
2026-07-13 16:45:56 +02:00
205 changed files with 18843 additions and 3756 deletions
+1
View File
@@ -39,6 +39,7 @@ export interface AccessToken {
* The specific role this access token grants within its organization.
*/
effective_role?: UserRole;
effective_roles?: Array<UserRole>;
/**
* The unique identifier of the organization associated with this access token.
*/
+1 -1
View File
@@ -13,7 +13,7 @@ export interface AccountProfile {
id: string;
email: string;
name: string;
role: UserRole;
roles: Array<UserRole>;
organization_id: string;
organization_name: string;
deleted: boolean;
+46
View File
@@ -0,0 +1,46 @@
/**
* 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 { AuthorWorkInstitution } from './authorWorkInstitution';
import { WorkTopic } from './workTopic';
export interface AuthorWork {
/**
* The ID of the work
*/
id: string;
/**
* The title of the work
*/
title: string;
/**
* The type of the work
*/
type: string;
/**
* The year the work was published
*/
publication_year: number;
/**
* The language code of the work
*/
language_code: string;
/**
* A list of institutions associated with the work
*/
institutions: Array<AuthorWorkInstitution>;
/**
* A list of topics associated with the work
*/
topics: Array<WorkTopic>;
/**
* The number of citations the work has received
*/
cited_by_count: number;
}
@@ -0,0 +1,24 @@
/**
* 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 AuthorWorkInstitution {
/**
* The ID of the institution associated with the work
*/
institution_id: string;
/**
* The name of the institution associated with the work
*/
institution_name: string;
/**
* The country code of the institution associated with the work
*/
institution_country_code: string;
}
@@ -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 { AuthorWork } from './authorWork';
export interface AuthorWorkPage {
/**
* The elements of the page.
*/
elements?: Array<AuthorWork>;
/**
* The page number. (0-based)
*/
page?: number;
/**
* The page size in elements.
*/
size?: number;
/**
* The total number of elements.
*/
total?: number;
}
@@ -0,0 +1,28 @@
/**
* 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 { SpecificWorkPurpose } from './specificWorkPurpose';
/**
* Represents the purposes of an author, including their ID and a list of specific work purposes.
*/
export interface AuthorWorkPurposes {
/**
* The raw OpenAlex author id.
*/
raw_oa_author_id: string;
/**
* The total number of works for the author.
*/
total?: number;
/**
* The list of specific work purposes.
*/
purposes?: Array<SpecificWorkPurpose>;
}
@@ -12,7 +12,7 @@ import { UserRole } from './userRole';
export interface CreateAccountRequest {
email: string;
name: string;
role?: UserRole;
roles?: Array<UserRole>;
organization_id: string;
password: string;
openalex_person_id?: string | null;
@@ -0,0 +1,13 @@
/**
* 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 CreatePersonBookmark {
person_name?: string | null;
}
@@ -0,0 +1,15 @@
/**
* 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 DashboardStatisticValue {
institution_id: string;
organization_name: string;
value: number;
}
@@ -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 DashboardStatistics {
institution_id: string;
organization_name: string;
publications: number;
persons: number;
projects: number;
dfg_projects: number;
eu_projects: number;
bmbf_projects: number;
}
+24
View File
@@ -0,0 +1,24 @@
/**
* 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 FileUpload {
/**
* The name of the uploaded file.
*/
filename: string;
/**
* The base64-encoded content of the uploaded file.
*/
content_base64: string;
/**
* The MIME type of the uploaded file, e.g., \'application/pdf\', \'image/png\', etc.
*/
mime_type: string;
}
@@ -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 { PatentEntry } from './patentEntry';
export interface KeywordPatentMatch {
patent: PatentEntry;
/**
* Combined match quality score.
*/
match_score: number;
matched_keywords?: Array<string>;
matched_ipc_symbols?: Array<string>;
}
@@ -0,0 +1,35 @@
/**
* 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 KeywordPatentSearchItem {
/**
* Extracted keyword text.
*/
keyword: string;
keyword_level?: KeywordPatentSearchItem.KeywordLevelEnum | null;
topic_id?: string | null;
topic_display_name?: string | null;
subfield_name?: string | null;
field_name?: string | null;
/**
* LLM relevance score for the keyword.
*/
relevance_score?: number;
}
export namespace KeywordPatentSearchItem {
export const KeywordLevelEnum = {
Broad: 'broad',
Coarse: 'coarse',
Fine: 'fine',
Custom: 'custom',
} as const;
export type KeywordLevelEnum =
(typeof KeywordLevelEnum)[keyof typeof KeywordLevelEnum];
}
@@ -7,12 +7,14 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { FileUpload } from './fileUpload';
export interface KeywordsRequest {
/**
* The input text from which to extract keywords.
*/
query: string;
files?: Array<FileUpload> | null;
/**
* The mode of keyword extraction, e.g., \'url\', \'text\', or \'keywords\'.
*/
+23
View File
@@ -11,6 +11,10 @@ export * from './authorNetworkNode';
export * from './authorParsedLongestName';
export * from './authorPositionCount';
export * from './authorSummaryStats';
export * from './authorWork';
export * from './authorWorkInstitution';
export * from './authorWorkPage';
export * from './authorWorkPurposes';
export * from './authorsFilterProperties';
export * from './authorsListResponse';
export * from './authorship';
@@ -39,8 +43,11 @@ export * from './cordisEuProjectPage';
export * from './costUsd';
export * from './createAccountRequest';
export * from './createOrganizationRequest';
export * from './createPersonBookmark';
export * from './customAuthor';
export * from './customAuthorsListResponse';
export * from './dashboardStatisticValue';
export * from './dashboardStatistics';
export * from './dehydratedAuthor';
export * from './dehydratedFunder';
export * from './dehydratedInstitution';
@@ -55,6 +62,7 @@ export * from './euProjectData';
export * from './extractedKeywords';
export * from './extractedKeywordsLLM';
export * from './extractedKeywordsResponse';
export * from './fileUpload';
export * from './filterInformation';
export * from './filterProperties';
export * from './fp7EurosciVoc';
@@ -106,6 +114,8 @@ export * from './institutionsListResponse';
export * from './ipcClassification';
export * from './keywordEntry';
export * from './keywordEntryWithTopic';
export * from './keywordPatentMatch';
export * from './keywordPatentSearchItem';
export * from './keywordTopicMatch';
export * from './keywords';
export * from './keywordsRequest';
@@ -125,6 +135,7 @@ export * from './newsArticle';
export * from './newsArticleDetail';
export * from './newsPage';
export * from './openAccess';
export * from './openAlexTopicTag';
export * from './orgPatentEntry';
export * from './orgPatentsResponse';
export * from './organizationPage';
@@ -132,7 +143,10 @@ export * from './otkResponse';
export * from './patentEntry';
export * from './patentsByAuthorResponse';
export * from './patentsByInstitutionResponse';
export * from './patentsByKeywordsRequest';
export * from './patentsByKeywordsResponse';
export * from './personBio';
export * from './personBookmarkResponse';
export * from './projectType';
export * from './projectsFilteringProperties';
export * from './projectsSortBy';
@@ -140,9 +154,13 @@ export * from './publicationDetailByFunder';
export * from './publicationIdsByAuthorPosition';
export * from './publicationsByAuthorResponse';
export * from './rankingResponse';
export * from './rebuildResponse';
export * from './score';
export * from './sortDirection';
export * from './specificWorkPurpose';
export * from './tokenType';
export * from './topAuthor';
export * from './topAuthorStatistics';
export * from './topInstitutionItem';
export * from './topTopicItem';
export * from './topTopicsResponse';
@@ -150,6 +168,9 @@ export * from './topic';
export * from './topicCount';
export * from './topicDomain';
export * from './topicField';
export * from './topicHeatmap';
export * from './topicHeatmapField';
export * from './topicHeatmapValue';
export * from './topicIds';
export * from './topicSubfield';
export * from './topicYearlyData';
@@ -179,6 +200,8 @@ export * from './workKeyword';
export * from './workMeshInner';
export * from './workNetworkNode';
export * from './workPage';
export * from './workPurpose';
export * from './workSortBy';
export * from './workSustainableDevelopmentGoalsInner';
export * from './workTopic';
export * from './workTopicDomain';
@@ -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 OpenAlexTopicTag {
topic_id?: string | null;
topic_display_name: string;
field_name?: string | null;
domain_name?: string | null;
}
@@ -8,6 +8,7 @@
* Do not edit the class manually.
*/
import { MatchedAuthor } from './matchedAuthor';
import { OpenAlexTopicTag } from './openAlexTopicTag';
import { IpcClassification } from './ipcClassification';
export interface OrgPatentEntry {
@@ -30,6 +31,7 @@ export interface OrgPatentEntry {
cpc?: Array<string>;
cpc_descriptions?: Array<IpcClassification>;
country?: string | null;
openalex_topics?: Array<OpenAlexTopicTag>;
institution_id: string;
institution_name?: string | null;
match_type: OrgPatentEntry.MatchTypeEnum;
+2
View File
@@ -7,6 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { OpenAlexTopicTag } from './openAlexTopicTag';
import { IpcClassification } from './ipcClassification';
export interface PatentEntry {
@@ -29,4 +30,5 @@ export interface PatentEntry {
cpc?: Array<string>;
cpc_descriptions?: Array<IpcClassification>;
country?: string | null;
openalex_topics?: Array<OpenAlexTopicTag>;
}
@@ -0,0 +1,17 @@
/**
* 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 { KeywordPatentSearchItem } from './keywordPatentSearchItem';
export interface PatentsByKeywordsRequest {
/**
* Keywords to match against patents_openalex_keywords.
*/
keywords: Array<KeywordPatentSearchItem>;
}
@@ -0,0 +1,15 @@
/**
* 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 { KeywordPatentMatch } from './keywordPatentMatch';
export interface PatentsByKeywordsResponse {
patent_count: number;
patents: Array<KeywordPatentMatch>;
}
@@ -0,0 +1,15 @@
/**
* 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 PersonBookmarkResponse {
person_id: string;
person_name: string | null;
created_at: string;
}
@@ -0,0 +1,15 @@
/**
* 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 RebuildResponse {
status: string;
institution_id: string;
message: string;
}
@@ -0,0 +1,27 @@
/**
* 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 { WorkPurpose } from './workPurpose';
/**
* Represents the purpose of a specific work, including its ID, purpose, and optional reasoning.
*/
export interface SpecificWorkPurpose {
/**
* The raw OpenAlex work id.
*/
raw_oa_work_id: string;
publication_year?: number | null;
/**
* The purpose of the work.
*/
purpose: WorkPurpose;
reasoning?: string | null;
}
export namespace SpecificWorkPurpose {}
+15
View File
@@ -0,0 +1,15 @@
/**
* 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 TopAuthor {
id?: string | null;
name: string;
count: number;
}
@@ -0,0 +1,18 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { TopAuthor } from './topAuthor';
export interface TopAuthorStatistics {
institution_id: string;
works: Array<TopAuthor>;
projects: Array<TopAuthor>;
patents: Array<TopAuthor>;
news: Array<TopAuthor>;
}
+17
View File
@@ -0,0 +1,17 @@
/**
* 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 { TopicHeatmapField } from './topicHeatmapField';
export interface TopicHeatmap {
institution_id: string;
organization_name: string;
years: Array<number>;
fields: Array<TopicHeatmapField>;
}
@@ -0,0 +1,17 @@
/**
* 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 { TopicHeatmapValue } from './topicHeatmapValue';
export interface TopicHeatmapField {
id: string;
name: string;
total: number;
values: Array<TopicHeatmapValue>;
}
@@ -0,0 +1,15 @@
/**
* 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 TopicHeatmapValue {
year: number;
count: number;
share: number;
}
@@ -12,7 +12,7 @@ import { UserRole } from './userRole';
export interface UpdateAccountRequest {
email?: string | null;
name?: string | null;
role?: UserRole | null;
roles?: Array<UserRole> | null;
organization_id?: string | null;
password?: string | null;
openalex_person_id?: string | null;
+20
View File
@@ -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.
*/
/**
* Represents the purpose of a work.
*/
export const WorkPurpose = {
BasicResearch: 'Basic Research',
AppliedResearch: 'Applied Research',
NonResearch: 'Non-Research',
ExperimentalDevelopment: 'Experimental Development',
} as const;
export type WorkPurpose = (typeof WorkPurpose)[keyof typeof WorkPurpose];
+18
View File
@@ -0,0 +1,18 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export const WorkSortBy = {
Title: 'title',
Type: 'type',
PublicationYear: 'publication_year',
Language: 'language',
CitedByCount: 'cited_by_count',
} as const;
export type WorkSortBy = (typeof WorkSortBy)[keyof typeof WorkSortBy];