# Interface LatestVoteRecord

Combined latest votes result merging RCV and VOT data.

interface LatestVoteRecord {
abstentions: number;
dataSource: "RCV" | "VOT";
date: string;
id: string;
reference: string;
result: "ADOPTED" | "REJECTED";
sourceUrl: string;
subject: string;
term: number;
votesAgainst: number;
votesFor: number;
corrections?: RcvMepVote[];
groupBreakdown?: Record<
string,
{ abstain: number; against: number; for: number },
>;
mepVotes?: Record<string, "FOR" | "AGAINST" | "ABSTAIN">;
officialCounts?: { abstentions: number; against: number; for: number };
sittingDate?: string;
sittingNumber?: string;
voteType?: string;
}

- Defined in clients/ep/doceoXmlParser.ts:97

##### Index

### Properties

abstentions
dataSource
date
id
reference
result
sourceUrl
subject
term
votesAgainst
votesFor
corrections?
groupBreakdown?
mepVotes?
officialCounts?
sittingDate?
sittingNumber?
voteType?

## Properties

### abstentions

abstentions: number

Total abstentions

- Defined in clients/ep/doceoXmlParser.ts:113

### dataSource

dataSource: "RCV" | "VOT"

Which XML document type provided the data

- Defined in clients/ep/doceoXmlParser.ts:123

### date

date: string

Session date (YYYY-MM-DD)

- Defined in clients/ep/doceoXmlParser.ts:101

### id

id: string

Unique vote identifier

- Defined in clients/ep/doceoXmlParser.ts:99

### reference

reference: string

Document/procedure reference

- Defined in clients/ep/doceoXmlParser.ts:107

### result

result: "ADOPTED" | "REJECTED"

Vote outcome

- Defined in clients/ep/doceoXmlParser.ts:115

### sourceUrl

sourceUrl: string

Source URL of the XML document

- Defined in clients/ep/doceoXmlParser.ts:121

### subject

subject: string

Subject/description of the vote

- Defined in clients/ep/doceoXmlParser.ts:105

### term

term: number

Parliamentary term number

- Defined in clients/ep/doceoXmlParser.ts:103

### votesAgainst

votesAgainst: number

Total votes against

- Defined in clients/ep/doceoXmlParser.ts:111

### votesFor

votesFor: number

Total votes in favor

- Defined in clients/ep/doceoXmlParser.ts:109

### `Optional` corrections

corrections?: RcvMepVote[]

Vote corrections from RCV Correction element (optional)

- Defined in clients/ep/doceoXmlParser.ts:133

### `Optional` groupBreakdown

groupBreakdown?: Record<
string,
{ abstain: number; against: number; for: number },
>

Political group breakdown of votes

- Defined in clients/ep/doceoXmlParser.ts:119

### `Optional` mepVotes

mepVotes?: Record<string, "FOR" | "AGAINST" | "ABSTAIN">

Individual MEP votes (from RCV data, keyed by mepId)

- Defined in clients/ep/doceoXmlParser.ts:117

### `Optional` officialCounts

officialCounts?: { abstentions: number; against: number; for: number }

Official counts from XML Number/For/Against/Abst attributes (optional)

- Defined in clients/ep/doceoXmlParser.ts:131

### `Optional` sittingDate

sittingDate?: string

Sitting date from RCV data (YYYY-MM-DD; optional)

- Defined in clients/ep/doceoXmlParser.ts:127

### `Optional` sittingNumber

sittingNumber?: string

Sitting number from RCV data (optional)

- Defined in clients/ep/doceoXmlParser.ts:129

### `Optional` voteType

voteType?: string

Vote type from the XML Type attribute (optional)

- Defined in clients/ep/doceoXmlParser.ts:125