Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | // SPDX-FileCopyrightText: 2024-2026 Hack23 AB
// SPDX-License-Identifier: Apache-2.0
/**
* @module Types/Parliament
* @description Domain types for European Parliament entities — events, committees,
* documents, procedures, questions, and voting data.
*/
/** Event data from MCP or fallback */
export interface ParliamentEvent {
date: string;
title: string;
type: string;
description: string;
}
/** Committee meeting data from MCP */
export interface CommitteeMeeting {
id?: string;
committee: string;
committeeName?: string;
date: string;
time?: string;
location?: string;
agenda?: Array<{ item?: number; title: string; type?: string }>;
}
/** Legislative document from MCP */
export interface LegislativeDocument {
id?: string;
type?: string;
title: string;
date?: string;
status?: string;
committee?: string;
rapporteur?: string;
}
/** Legislative pipeline procedure */
export interface LegislativeProcedure {
id?: string;
title: string;
stage?: string;
committee?: string;
status?: string;
bottleneck?: boolean;
}
/** Parliamentary question */
export interface ParliamentaryQuestion {
id?: string;
type?: string;
author?: string;
subject: string;
date?: string;
status?: string;
}
/** Aggregated week-ahead data from multiple MCP sources */
export interface WeekAheadData {
events: ParliamentEvent[];
committees: CommitteeMeeting[];
documents: LegislativeDocument[];
pipeline: LegislativeProcedure[];
questions: ParliamentaryQuestion[];
}
/** Committee document with type, title and date */
export interface CommitteeDocument {
title: string;
type: string;
date: string;
}
/** Committee report data aggregated from MCP sources */
export interface CommitteeData {
name: string;
abbreviation: string;
chair: string;
members: number;
documents: CommitteeDocument[];
effectiveness: string | null;
}
/** Voting record from MCP or fallback */
export interface VotingRecord {
title: string;
date: string;
result: string;
votes: { for: number; against: number; abstain: number };
}
/** Voting pattern (party cohesion) from MCP or fallback */
export interface VotingPattern {
group: string;
cohesion: number;
participation: number;
}
/** Voting anomaly from MCP or fallback */
export interface VotingAnomaly {
type: string;
description: string;
severity: string;
}
/** Parliamentary question for motions article (simplified MCP/fallback shape) */
export interface MotionsQuestion {
author: string;
topic: string;
date: string;
status: string;
}
/** Intelligence analysis for a detected voting anomaly */
export interface VotingAnomalyIntelligence {
anomalyId: string;
significance: 'critical' | 'high' | 'medium' | 'low';
description: string;
affectedGroups: string[];
deviationPercentage: number;
historicalContext: string;
implication: string;
}
/** Coalition cohesion and alignment intelligence */
export interface CoalitionIntelligence {
coalitionId: string;
groups: string[];
cohesionScore: number;
alignmentTrend: 'strengthening' | 'weakening' | 'stable';
keyVotes: number;
riskLevel: 'high' | 'medium' | 'low';
}
/** MEP influence score across multiple parliamentary dimensions */
export interface MEPInfluenceScore {
mepId: string;
mepName: string;
overallScore: number;
votingActivity: number;
legislativeOutput: number;
committeeEngagement: number;
rank: string;
}
/** Legislative velocity for procedure pipeline monitoring */
export interface LegislativeVelocity {
procedureId: string;
title: string;
stage: string;
daysInCurrentStage: number;
velocityScore: number;
bottleneckRisk: 'high' | 'medium' | 'low';
predictedCompletion: string;
}
|