diff --git a/connect/statistics/statisticsEntities.ts b/connect/statistics/statisticsEntities.ts new file mode 100644 index 00000000..1a727277 --- /dev/null +++ b/connect/statistics/statisticsEntities.ts @@ -0,0 +1,65 @@ +export const availableCharts = [ + 'timeline', + 'graph', + 'projectColumn', + 'projectPie', + 'projectTable' +]; + +export const availableNumbers = [ + 'total', + 'project', + 'open', + 'closed', + 'restricted', + 'embargo', +]; + +export const availableEntities = [ + 'publication', + 'dataset', + 'software' +]; + +export const availableEntitiesMap = new Map([ + ['publication', 'Publications'], + ['dataset', 'Research Data'], + ['software', 'Software'] +]); + +export class DisplayStatsOptions { + showInMonitor: boolean; + showInDashboard: boolean; +} + +export class StatisticsMap { + map: Map; +} + +export class EntityStats { + charts: StatisticsMap; + numbers: StatisticsMap; +} + +export class StatisticsDisplay { + pid: string; + entities: Map; + id: string; +} + +export class StatisticsNumbers { + total: number; + open_access: number; + embargo: number; + restricted: number; + closed_access: number; + projects: number; +} + +export class StatisticsSummary { + publications : StatisticsNumbers; + datasets: StatisticsNumbers; + software: StatisticsNumbers; + total_projects: number; + virtual_organizations: number; +} \ No newline at end of file