Contest
import type { Contest } from "https://googleapis.deno.dev/v1/civicinfo:v2.ts";
Information about a contest that appears on a voter's ballot.
§Properties
A number specifying the position of this contest on the voter's ballot.
Information about the electoral district that this contest is in.
A description of any additional eligibility requirements for voting in this contest.
The levels of government of the office for this contest. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1".
The number of candidates that will be elected to office in this contest.
If this is a partisan election, the name of the party/parties it is for.
The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include "yes" or "no" for referenda. This field is only populated for contests of type 'Referendum'.
Specifies a short summary of the referendum that is typically on the ballot below the title but above the text. This field is only populated for contests of type 'Referendum'.
A statement in opposition to the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'.
Specifies what effect abstaining (not voting) on the proposition will have (i.e. whether abstaining is considered a vote against it). This field is only populated for contests of type 'Referendum'.
The threshold of votes that the referendum needs in order to pass, e.g. "two-thirds". This field is only populated for contests of type 'Referendum'.
A statement in favor of the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'.
A brief description of the referendum. This field is only populated for contests of type 'Referendum'.
The full text of the referendum. This field is only populated for contests of type 'Referendum'.
The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'.
A link to the referendum. This field is only populated for contests of type 'Referendum'.
The roles which this office fulfills.