feat(work-classifications): optimized aggregation retrieval, moved chart to own component, and added chart for institution publications
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
Mats Paul Tončik
2026-07-20 21:11:17 +02:00
parent 9da17840ad
commit a5664e01fe
29 changed files with 980 additions and 667 deletions
+3
View File
@@ -10,6 +10,9 @@
import { Author } from './author';
/**
* A paginated response containing a list of authors.
*/
export interface AuthorPage {
/**
* The elements of the page.
@@ -1,23 +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.
*/
/**
* A summary of a DFG institution.
*/
export interface DfgInstitutionSummary {
id: number;
institute_name_de?: string | null;
institute_name_en?: string | null;
root_id?: number | null;
root_name_de?: string | null;
root_name_en?: string | null;
address_country_de?: string | null;
address_country_en?: string | null;
export interface DfgInstitutionSummary {
id: number;
institute_name_de?: string | null;
institute_name_en?: string | null;
root_id?: number | null;
root_name_de?: string | null;
root_name_en?: string | null;
address_country_de?: string | null;
address_country_en?: string | null;
}
+11 -9
View File
@@ -1,7 +1,7 @@
/**
* Innovation Search Engine API
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,12 +9,14 @@
*/
import { DfgInstitutionSummary } from './dfgInstitutionSummary';
export interface DfgPersonSummary {
person_id: number;
orcid_id?: string | null;
project_ref_id?: number | null;
full_name?: string | null;
role_label_en?: string | null;
role_label_de?: string | null;
institution?: DfgInstitutionSummary | null;
export interface DfgPersonSummary {
person_id: number;
orcid_id?: string | null;
project_ref_id?: number | null;
full_name?: string | null;
role_label_en?: string | null;
role_label_de?: string | null;
institution?: DfgInstitutionSummary | null;
}
+26 -24
View File
@@ -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,27 +11,29 @@ import { DfgInstitutionSummary } from './dfgInstitutionSummary';
import { DFGProjectFachgebieteInner } from './dFGProjectFachgebieteInner';
import { DfgPersonSummary } from './dfgPersonSummary';
export interface DfgProjectSummary {
/**
* The unique identifier of the DFG project.
*/
id: string;
link?: string | null;
title?: string | null;
professional_classification?: string | null;
funding_start?: string | null;
funding_end?: string | null;
/**
* Institutions associated with the project.
*/
institutions?: Array<DfgInstitutionSummary>;
/**
* The names of the persons involved in the DFG project.
*/
names?: Array<string>;
/**
* The persons involved in the DFG project.
*/
persons?: Array<DfgPersonSummary>;
subject_classifications?: Array<DFGProjectFachgebieteInner> | null;
export interface DfgProjectSummary {
/**
* The unique identifier of the DFG project.
*/
id: string;
link?: string | null;
title?: string | null;
professional_classification?: string | null;
funding_start?: string | null;
funding_end?: string | null;
/**
* Institutions associated with the project.
*/
institutions?: Array<DfgInstitutionSummary>;
/**
* The names of the persons involved in the DFG project.
*/
names?: Array<string>;
/**
* The persons involved in the DFG project.
*/
persons?: Array<DfgPersonSummary>;
subject_classifications?: Array<DFGProjectFachgebieteInner> | null;
}
@@ -10,6 +10,9 @@
import { Institution } from './institution';
/**
* A paginated response containing a list of institutions.
*/
export interface InstitutionPageV2 {
/**
* The elements of the page.
+2 -2
View File
@@ -154,6 +154,8 @@ export * from './patentsByKeywordsRequest';
export * from './patentsByKeywordsResponse';
export * from './personBio';
export * from './personBookmarkResponse';
export * from './primaryCategoryYearAggregation';
export * from './primaryCategoryYearAggregationPage';
export * from './projectType';
export * from './projectsFilteringProperties';
export * from './projectsSortBy';
@@ -204,8 +206,6 @@ export * from './workClassification';
export * from './workClassificationAuthor';
export * from './workClassificationDetails';
export * from './workClassificationInstitution';
export * from './workClassificationMerge';
export * from './workClassificationMergePage';
export * from './workClassificationMeta';
export * from './workClassificationPage';
export * from './workClassificationTopic';
@@ -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 interface PrimaryCategoryYearAggregation {
/**
* The publication year.
*/
publication_year: number;
/**
* A mapping of primary categories to their counts for the given year.
*/
categories?: { [key: string]: number; };
}
@@ -7,14 +7,14 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { WorkClassificationMerge } from './workClassificationMerge';
import { PrimaryCategoryYearAggregation } from './primaryCategoryYearAggregation';
export interface WorkClassificationMergePage {
export interface PrimaryCategoryYearAggregationPage {
/**
* The elements of the page.
*/
elements?: Array<WorkClassificationMerge>;
elements?: Array<PrimaryCategoryYearAggregation>;
/**
* The page number. (0-based)
*/
@@ -1,21 +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 { WorkClassification } from './workClassification';
import { Work } from './work';
export interface WorkClassificationMerge {
/**
* The OpenAlex work object.
*/
work: Work;
classification?: WorkClassification | null;
}