election-tonight-client
Advanced tools
Comparing version 0.0.1-alpha.107 to 0.0.1-alpha.109
{ | ||
"name": "election-tonight-client", | ||
"version": "0.0.1-alpha.107", | ||
"version": "0.0.1-alpha.109", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "types": "types/index.d.ts", |
@@ -37,2 +37,3 @@ import { parseCountyExpectedVoteStrata, parseCountyGeoStrata, parseCountyPartyStrata, parseCountyStrata } from './parsers/county-by-elec/countyStrata.js'; | ||
import turnoutStageFixtures from '../results/fixtures/turnoutStage.js'; | ||
import { writeTempJson } from '../utils/writeTemp.js'; | ||
@@ -39,0 +40,0 @@ export class Events extends Endpoints { |
@@ -96,3 +96,4 @@ import { COUNTY_VOTE, EDITORIAL_TURNOUT, EST, MSG, TOTAL_EXPECTED_VOTE } from '../constants/docTypes.js'; | ||
const votes = await this.getResultsCountyVote(); | ||
// writeTempJson(votes, 'ALL_EndOfNight', '20221108'); | ||
writeTempJson(votes, 'county_votes_Albama_NEW!', this.eventId); | ||
await this.makeCountyVotes(votes); | ||
@@ -99,0 +100,0 @@ await this.db.bulkUpsert(this.db.models.StreamPosition, positions); |
@@ -42,4 +42,2 @@ export class Database { | ||
}): Promise<void>; | ||
/** @TODO test this code. */ | ||
_retryBulkupsert(e: any, instancesToCreate: any, model: any, options: any): Promise<void>; | ||
} |
@@ -7,8 +7,4 @@ declare namespace _default { | ||
} | ||
const jurisdictionCode: DataTypes.IntegerDataTypeConstructor; | ||
const jurisdictionType: DataTypes.StringDataTypeConstructor; | ||
const officeCode: DataTypes.StringDataTypeConstructor; | ||
const status: DataTypes.StringDataTypeConstructor; | ||
const description: DataTypes.StringDataTypeConstructor; | ||
const winnerIsCalled: DataTypes.AbstractDataTypeConstructor; | ||
const percentStatus: DataTypes.StringDataTypeConstructor; | ||
@@ -18,3 +14,3 @@ const transmissionSource: DataTypes.StringDataTypeConstructor; | ||
} | ||
function associate({ Call, Candidate, OfficeRace, Office, OfficeBody, ElectionType, State, Jurisdiction }: { | ||
function associate({ Call, Candidate, OfficeRace, Office }: { | ||
Call: any; | ||
@@ -24,8 +20,4 @@ Candidate: any; | ||
Office: any; | ||
OfficeBody: any; | ||
ElectionType: any; | ||
State: any; | ||
Jurisdiction: any; | ||
}): void; | ||
function associate({ Call, Candidate, OfficeRace, Office, OfficeBody, ElectionType, State, Jurisdiction }: { | ||
function associate({ Call, Candidate, OfficeRace, Office }: { | ||
Call: any; | ||
@@ -35,6 +27,2 @@ Candidate: any; | ||
Office: any; | ||
OfficeBody: any; | ||
ElectionType: any; | ||
State: any; | ||
Jurisdiction: any; | ||
}): void; | ||
@@ -41,0 +29,0 @@ } |
@@ -9,11 +9,9 @@ declare namespace _default { | ||
} | ||
function associate({ Candidate_Party, Candidate, CandidateRace, Party }: { | ||
function associate({ Candidate_Party, CandidateRace, Party }: { | ||
Candidate_Party: any; | ||
Candidate: any; | ||
CandidateRace: any; | ||
Party: any; | ||
}): void; | ||
function associate({ Candidate_Party, Candidate, CandidateRace, Party }: { | ||
function associate({ Candidate_Party, CandidateRace, Party }: { | ||
Candidate_Party: any; | ||
Candidate: any; | ||
CandidateRace: any; | ||
@@ -20,0 +18,0 @@ Party: any; |
@@ -12,3 +12,3 @@ declare namespace _default { | ||
} | ||
function associate({ CandidateAbsenteeEstimate, Candidate, CandidateRace, Jurisdiction, Office, OfficeRace }: { | ||
function associate({ CandidateAbsenteeEstimate, Candidate, CandidateRace, Jurisdiction, Office }: { | ||
CandidateAbsenteeEstimate: any; | ||
@@ -19,5 +19,4 @@ Candidate: any; | ||
Office: any; | ||
OfficeRace: any; | ||
}): void; | ||
function associate({ CandidateAbsenteeEstimate, Candidate, CandidateRace, Jurisdiction, Office, OfficeRace }: { | ||
function associate({ CandidateAbsenteeEstimate, Candidate, CandidateRace, Jurisdiction, Office }: { | ||
CandidateAbsenteeEstimate: any; | ||
@@ -28,3 +27,2 @@ Candidate: any; | ||
Office: any; | ||
OfficeRace: any; | ||
}): void; | ||
@@ -31,0 +29,0 @@ } |
@@ -12,3 +12,3 @@ declare namespace _default { | ||
} | ||
function associate({ CandidatePriorEstimate, Candidate, CandidateRace, Jurisdiction, Office, OfficeRace }: { | ||
function associate({ CandidatePriorEstimate, Candidate, CandidateRace, Jurisdiction, Office }: { | ||
CandidatePriorEstimate: any; | ||
@@ -19,5 +19,4 @@ Candidate: any; | ||
Office: any; | ||
OfficeRace: any; | ||
}): void; | ||
function associate({ CandidatePriorEstimate, Candidate, CandidateRace, Jurisdiction, Office, OfficeRace }: { | ||
function associate({ CandidatePriorEstimate, Candidate, CandidateRace, Jurisdiction, Office }: { | ||
CandidatePriorEstimate: any; | ||
@@ -28,3 +27,2 @@ Candidate: any; | ||
Office: any; | ||
OfficeRace: any; | ||
}): void; | ||
@@ -31,0 +29,0 @@ } |
@@ -9,8 +9,8 @@ declare namespace _default { | ||
const isNational: DataTypes.AbstractDataTypeConstructor; | ||
const totalVote: DataTypes.IntegerDataTypeConstructor; | ||
const absenteeVote: DataTypes.IntegerDataTypeConstructor; | ||
const earlyByMailVote: DataTypes.IntegerDataTypeConstructor; | ||
const earlyInPersonVote: DataTypes.IntegerDataTypeConstructor; | ||
const electionDayVote: DataTypes.IntegerDataTypeConstructor; | ||
const provisionalVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalVote: DataTypes.BigIntDataTypeConstructor; | ||
const absenteeVote: DataTypes.BigIntDataTypeConstructor; | ||
const earlyByMailVote: DataTypes.BigIntDataTypeConstructor; | ||
const earlyInPersonVote: DataTypes.BigIntDataTypeConstructor; | ||
const electionDayVote: DataTypes.BigIntDataTypeConstructor; | ||
const provisionalVote: DataTypes.BigIntDataTypeConstructor; | ||
} | ||
@@ -17,0 +17,0 @@ function associate({ CandidateVote, Candidate, CandidateRace, County, ElectionType, Jurisdiction, Office, OfficeRace, State }: { |
@@ -7,3 +7,3 @@ declare namespace _default { | ||
} | ||
const unfusedVoteForParty: DataTypes.IntegerDataTypeConstructor; | ||
const unfusedVoteForParty: DataTypes.BigIntDataTypeConstructor; | ||
} | ||
@@ -10,0 +10,0 @@ function associate({ CandidateVoteByParty, Candidate, Party, CandidateRace, County }: { |
@@ -8,7 +8,7 @@ declare namespace _default { | ||
const pollingLocations: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedAbsenteeVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedEarlyByMailVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedEarlyInPersonVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedElectionDayVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedAbsenteeVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedEarlyByMailVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedEarlyInPersonVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedElectionDayVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.BigIntDataTypeConstructor; | ||
} | ||
@@ -15,0 +15,0 @@ function associate({ CountyExpectedVote, County, Jurisdiction, JurisdictionRace }: { |
@@ -7,4 +7,2 @@ declare namespace _default { | ||
} | ||
const jurisdictionType: DataTypes.StringDataTypeConstructor; | ||
const jurisdictionCode: DataTypes.StringDataTypeConstructor; | ||
const transmissionSource: DataTypes.StringDataTypeConstructor; | ||
@@ -15,11 +13,11 @@ const timestamp: DataTypes.DateDataTypeConstructor; | ||
const timeOfApproval: DataTypes.DateDataTypeConstructor; | ||
const totalExpectedAbsenteeVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedEarlyByMailVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedEarlyInPersonVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedElectionDayVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.IntegerDataTypeConstructor; | ||
const votingAgeTurnoutOutOf100: DataTypes.IntegerDataTypeConstructor; | ||
const eligibleTurnoutOutOf100: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedAbsenteeVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedEarlyByMailVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedEarlyInPersonVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedElectionDayVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.BigIntDataTypeConstructor; | ||
const votingAgeTurnout: DataTypes.FloatDataTypeConstructor; | ||
const eligibleTurnout: DataTypes.FloatDataTypeConstructor; | ||
} | ||
function associate({ EditorialTurnout, State, Jurisdiction, JurisdictionRace, ElectionType }: { | ||
function associate({ EditorialTurnout, State, Jurisdiction, JurisdictionRace }: { | ||
EditorialTurnout: any; | ||
@@ -29,5 +27,4 @@ State: any; | ||
JurisdictionRace: any; | ||
ElectionType: any; | ||
}): void; | ||
function associate({ EditorialTurnout, State, Jurisdiction, JurisdictionRace, ElectionType }: { | ||
function associate({ EditorialTurnout, State, Jurisdiction, JurisdictionRace }: { | ||
EditorialTurnout: any; | ||
@@ -37,3 +34,2 @@ State: any; | ||
JurisdictionRace: any; | ||
ElectionType: any; | ||
}): void; | ||
@@ -40,0 +36,0 @@ } |
@@ -7,4 +7,2 @@ declare namespace _default { | ||
} | ||
const jurisdictionType: DataTypes.StringDataTypeConstructor; | ||
const jurisdictionCode: DataTypes.StringDataTypeConstructor; | ||
const majorPollCloseTime: DataTypes.DateDataTypeConstructor; | ||
@@ -20,13 +18,11 @@ const pollOpeningTime: DataTypes.DateDataTypeConstructor; | ||
} | ||
function associate({ JurisdictionRace, Jurisdiction, ElectionType, State }: { | ||
function associate({ JurisdictionRace, Jurisdiction, ElectionType }: { | ||
JurisdictionRace: any; | ||
Jurisdiction: any; | ||
ElectionType: any; | ||
State: any; | ||
}): void; | ||
function associate({ JurisdictionRace, Jurisdiction, ElectionType, State }: { | ||
function associate({ JurisdictionRace, Jurisdiction, ElectionType }: { | ||
JurisdictionRace: any; | ||
Jurisdiction: any; | ||
ElectionType: any; | ||
State: any; | ||
}): void; | ||
@@ -33,0 +29,0 @@ } |
@@ -9,3 +9,2 @@ declare namespace _default { | ||
const name: DataTypes.StringDataTypeConstructor; | ||
const jurisdictionCode: DataTypes.IntegerDataTypeConstructor; | ||
} | ||
@@ -12,0 +11,0 @@ function associate({ Office, Jurisdiction, OfficeBody, State }: { |
@@ -7,3 +7,3 @@ declare namespace _default { | ||
} | ||
const name: DataTypes.StringDataTypeConstructor; | ||
const description: DataTypes.StringDataTypeConstructor; | ||
} | ||
@@ -10,0 +10,0 @@ } |
@@ -7,5 +7,2 @@ declare namespace _default { | ||
} | ||
const officeCode: DataTypes.StringDataTypeConstructor; | ||
const jurisdictionType: DataTypes.StringDataTypeConstructor; | ||
const jurisdictionCode: DataTypes.StringDataTypeConstructor; | ||
const candidateListIsFinal: DataTypes.AbstractDataTypeConstructor; | ||
@@ -22,3 +19,3 @@ const exitPollDescriptionsAreFinal: DataTypes.AbstractDataTypeConstructor; | ||
} | ||
function associate({ OfficeRace, Office, ElectionType, Jurisdiction, OfficeBody, State }: { | ||
function associate({ OfficeRace, Office, ElectionType, Jurisdiction }: { | ||
OfficeRace: any; | ||
@@ -28,6 +25,4 @@ Office: any; | ||
Jurisdiction: any; | ||
OfficeBody: any; | ||
State: any; | ||
}): void; | ||
function associate({ OfficeRace, Office, ElectionType, Jurisdiction, OfficeBody, State }: { | ||
function associate({ OfficeRace, Office, ElectionType, Jurisdiction }: { | ||
OfficeRace: any; | ||
@@ -37,4 +32,2 @@ Office: any; | ||
Jurisdiction: any; | ||
OfficeBody: any; | ||
State: any; | ||
}): void; | ||
@@ -41,0 +34,0 @@ } |
@@ -11,3 +11,3 @@ declare namespace _default { | ||
const pctVoteBasedOnTotalExpectedVoteEstimate: DataTypes.FloatDataTypeConstructor; | ||
const maxAbsenteeVoteExpected: DataTypes.IntegerDataTypeConstructor; | ||
const maxAbsenteeVoteExpected: DataTypes.BigIntDataTypeConstructor; | ||
const numCountiesWithAbsenteeVotes: DataTypes.IntegerDataTypeConstructor; | ||
@@ -17,16 +17,16 @@ const numCountyWithVotes: DataTypes.IntegerDataTypeConstructor; | ||
const precinctId: DataTypes.IntegerDataTypeConstructor; | ||
const pctExpectedVoteOutOf100: DataTypes.IntegerDataTypeConstructor; | ||
const pctExpectedVote: DataTypes.FloatDataTypeConstructor; | ||
const totalPrecinctsReportingSoFar: DataTypes.IntegerDataTypeConstructor; | ||
const provisionalVoteOutstanding: DataTypes.IntegerDataTypeConstructor; | ||
const provisionalVoteOutstanding: DataTypes.BigIntDataTypeConstructor; | ||
const sequencing: DataTypes.BigIntDataTypeConstructor; | ||
const sourceOfVotes: DataTypes.StringDataTypeConstructor; | ||
const totalBallots: DataTypes.IntegerDataTypeConstructor; | ||
const totalAbsenteeVotes: DataTypes.IntegerDataTypeConstructor; | ||
const totalBallots: DataTypes.BigIntDataTypeConstructor; | ||
const totalAbsenteeVotes: DataTypes.BigIntDataTypeConstructor; | ||
const totalEarlyByMailVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalEarlyInPersonVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalElectionDayVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalPrecincts: DataTypes.IntegerDataTypeConstructor; | ||
const totalProvisionalVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalVote: DataTypes.BigIntDataTypeConstructor; | ||
const transmissionSource: DataTypes.StringDataTypeConstructor; | ||
@@ -33,0 +33,0 @@ const addedToDocumentTimestamp: DataTypes.DateDataTypeConstructor; |
@@ -14,3 +14,2 @@ declare namespace _default { | ||
const numPseudoCounties: DataTypes.IntegerDataTypeConstructor; | ||
const pseudoState: DataTypes.AbstractDataTypeConstructor; | ||
} | ||
@@ -17,0 +16,0 @@ } |
@@ -7,5 +7,3 @@ declare namespace _default { | ||
} | ||
const jurisdictionType: DataTypes.StringDataTypeConstructor; | ||
const jurisdictionCode: DataTypes.StringDataTypeConstructor; | ||
const countyOutstandingBallot: DataTypes.IntegerDataTypeConstructor; | ||
const countyOutstandingBallot: DataTypes.BigIntDataTypeConstructor; | ||
const outstandingVoteType: DataTypes.StringDataTypeConstructor; | ||
@@ -16,7 +14,7 @@ const precinctReportType: DataTypes.StringDataTypeConstructor; | ||
const reportingSource: DataTypes.StringDataTypeConstructor; | ||
const totalExpectedAbsenteeVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedEarlyByMailVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedEarlyInPersonVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedElectionDayVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.IntegerDataTypeConstructor; | ||
const totalExpectedAbsenteeVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedEarlyByMailVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedEarlyInPersonVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedElectionDayVote: DataTypes.BigIntDataTypeConstructor; | ||
const totalExpectedVote: DataTypes.BigIntDataTypeConstructor; | ||
const final: DataTypes.AbstractDataTypeConstructor; | ||
@@ -28,3 +26,3 @@ const complete: DataTypes.AbstractDataTypeConstructor; | ||
} | ||
function associate({ TotalExpectedVote, County, Jurisdiction, JurisdictionRace, State, TurnoutStage, ElectionType }: { | ||
function associate({ TotalExpectedVote, County, Jurisdiction, JurisdictionRace, State, TurnoutStage }: { | ||
TotalExpectedVote: any; | ||
@@ -36,5 +34,4 @@ County: any; | ||
TurnoutStage: any; | ||
ElectionType: any; | ||
}): void; | ||
function associate({ TotalExpectedVote, County, Jurisdiction, JurisdictionRace, State, TurnoutStage, ElectionType }: { | ||
function associate({ TotalExpectedVote, County, Jurisdiction, JurisdictionRace, State, TurnoutStage }: { | ||
TotalExpectedVote: any; | ||
@@ -46,3 +43,2 @@ County: any; | ||
TurnoutStage: any; | ||
ElectionType: any; | ||
}): void; | ||
@@ -49,0 +45,0 @@ } |
declare var _default: { | ||
uid: string; | ||
name: string; | ||
description: string; | ||
}[]; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
export function parseStates(countyByStateDocs: any, electionDocs: any): any; | ||
export function parseStates(documents: any): any; |
@@ -7,3 +7,2 @@ export function parseCandidateAbsenteeEstimates(documents: any): { | ||
office: string; | ||
officeRace: string; | ||
value: any; | ||
@@ -10,0 +9,0 @@ stdErrDiff: any; |
export function parseCandidateOffices(documents: any): { | ||
uid: string; | ||
office: string; | ||
officeRace: string; | ||
candidateRace: string; | ||
}[]; |
export function parseCandidateParties(documents: any): { | ||
uid: string; | ||
candidateRace: string; | ||
candidate: any; | ||
party: any; | ||
isMajorParty: boolean; | ||
}[]; |
@@ -7,3 +7,2 @@ export function parseCandidatePriorEstimates(documents: any): { | ||
office: string; | ||
officeRace: string; | ||
value: any; | ||
@@ -10,0 +9,0 @@ stdErrDiff: any; |
@@ -5,3 +5,3 @@ export function parseJurisdictionPastRaces(documents: any): { | ||
jurisdictionRace: string; | ||
pastOfficeBody: string; | ||
pastOfficeBody: any; | ||
pastOfficeCode: any; | ||
@@ -8,0 +8,0 @@ pastJurisdiction: string; |
@@ -85,8 +85,2 @@ /** | ||
/** | ||
* ```javascript | ||
* client.resetFilter(); | ||
* ``` | ||
*/ | ||
resetFilter(): ElectionTonightClient; | ||
/** | ||
* Fetches metadata for an election event such as race and candidate definitions and setups up the database. | ||
@@ -93,0 +87,0 @@ * |
@@ -12,34 +12,10 @@ export class Lookups { | ||
offices: OfficesLookup; | ||
officeBodies: OfficeBodiesWithElexLookup; | ||
uids: OfficeRaceUidsLookup; | ||
calls: CallsLookup; | ||
turnout: EditorialTurnoutLookup; | ||
expectedVotes: TotalExpectedVoteLookup; | ||
candidates: CandidatesLookup; | ||
polls: PollTimeLookup; | ||
electionTypes: ElectionTypeLookup; | ||
} | ||
export * from "./geo/index.js"; | ||
export * from "./votes/index.js"; | ||
export * from "./parties/index.js"; | ||
export * from "./offices/index.js"; | ||
export * from "./officeRaceUids/index.js"; | ||
export * from "./officeBodies/index.js"; | ||
export * from "./calls/index.js"; | ||
export * from "./editorialTurnout/index.js"; | ||
export * from "./totalExpectedVote/index.js"; | ||
export * from "./votes-office/index.js"; | ||
export * from "./candidates/index.js"; | ||
export * from "./pollTime/index.js"; | ||
export * from "./electionType/index.js"; | ||
import { GeoLookup } from "./geo/index.js"; | ||
import { VotesLookup } from "./votes-office/index.js"; | ||
import { VotesLookup } from "./votes/index.js"; | ||
import { PartiesLookup } from "./parties/index.js"; | ||
import { OfficesLookup } from "./offices/index.js"; | ||
import { OfficeBodiesWithElexLookup } from "./officeBodies/index.js"; | ||
import { OfficeRaceUidsLookup } from "./officeRaceUids/index.js"; | ||
import { CallsLookup } from "./calls/index.js"; | ||
import { EditorialTurnoutLookup } from "./editorialTurnout/index.js"; | ||
import { TotalExpectedVoteLookup } from "./totalExpectedVote/index.js"; | ||
import { CandidatesLookup } from "./candidates/index.js"; | ||
import { PollTimeLookup } from "./pollTime/index.js"; | ||
import { ElectionTypeLookup } from "./electionType/index.js"; |
@@ -9,4 +9,3 @@ export class OfficesLookup { | ||
/** | ||
* Get metadata for offices, including how offices map to jurisdictions, and metadata for the candidates running for them, for each state. | ||
* The offices data for each state is organised by election type, which is useful mainly for Democratic and Republican primaries. | ||
* Get metadata for offices, including how offices map to jurisdictions, and metadata for the candidates running for them, by state. | ||
* | ||
@@ -33,5 +32,5 @@ * @TODO | ||
* @param {import("./types").OfficesByStateOptions} options | ||
* @return {Promise<import("sequelize").Model<*, *>>} | ||
* DELETED: {Promise<import("sequelize").Model<*, *>>} | ||
*/ | ||
getOfficesByState(states: string, options: import("./types").OfficesByStateOptions): Promise<import("sequelize").Model<any, any>>; | ||
getOfficesByState(states: string, options: import("./types").OfficesByStateOptions): Promise<import("sequelize").Model<any, any>[]>; | ||
} |
@@ -70,8 +70,2 @@ export class Results extends Endpoints { | ||
securityLevel: any; | ||
/** | ||
* Get the latest stream position for a particular doc type. | ||
* | ||
* @param {string[]} [docTypesFilters] Array of doc type constants | ||
* @return {Promise<Object[]>} Latest positions | ||
*/ | ||
transmissionSource: any; | ||
@@ -101,15 +95,4 @@ timestamp: Date; | ||
jurisdiction: string; | ||
jurisdictionRace: string; /** | ||
* Filters documents using the document sequence number and returns | ||
* any documents newer than those already in the database. | ||
* | ||
* @param {Object[]} documents | ||
* @param {string} docType Doc type constant | ||
* @param {*} keyParser A function that takes a document and returns a unique key for that document | ||
* @return {Promise<Object[]>} New documents | ||
*/ | ||
jurisdictionRace: string; | ||
turnoutStageOfCounty: any; | ||
electionType: any; | ||
jurisdictionType: any; | ||
jurisdictionCode: any; | ||
countyOutstandingBallot: any; | ||
@@ -116,0 +99,0 @@ outstandingVoteType: any; |
@@ -17,3 +17,3 @@ export function parseOfficeVotes(documents: any): { | ||
precinctId: any; | ||
pctExpectedVoteOutOf100: any; | ||
pctExpectedVote: any; | ||
totalPrecinctsReportingSoFar: any; | ||
@@ -20,0 +20,0 @@ provisionalVoteOutstanding: any; |
@@ -12,5 +12,2 @@ declare namespace _default { | ||
jurisdictionRace: string; | ||
electionType: string; | ||
jurisdictionType: any; | ||
jurisdictionCode: any; | ||
transmissionSource: any; | ||
@@ -26,4 +23,4 @@ timestamp: Date; | ||
totalExpectedVote: any; | ||
votingAgeTurnoutOutOf100: any; | ||
eligibleTurnoutOutOf100: any; | ||
votingAgeTurnout: any; | ||
eligibleTurnout: any; | ||
}[]; | ||
@@ -30,0 +27,0 @@ declare function parseSequenceId(doc: any): string; |
@@ -13,12 +13,4 @@ declare namespace _default { | ||
leadingCandidate: any; | ||
electionType: string; | ||
state: number; | ||
jurisdiction: string; | ||
officeBody: string; | ||
officeCode: any; | ||
jurisdictionCode: any; | ||
jurisdictionType: any; | ||
status: any; | ||
description: string; | ||
winnerIsCalled: boolean; | ||
percentStatus: any; | ||
@@ -25,0 +17,0 @@ transmissionSource: any; |
@@ -14,5 +14,2 @@ declare namespace _default { | ||
turnoutStageOfCounty: any; | ||
electionType: any; | ||
jurisdictionType: any; | ||
jurisdictionCode: any; | ||
countyOutstandingBallot: any; | ||
@@ -19,0 +16,0 @@ outstandingVoteType: any; |
@@ -6,5 +6,4 @@ export function parseKey(key: any): KeyUids; | ||
county: string; | ||
jurisdictionType: string; | ||
jurisdiction: string; | ||
jurisdictionType: string; | ||
jurisdictionCode: number; | ||
jurisdictionRace: string; | ||
@@ -11,0 +10,0 @@ office: string; |
@@ -1,1 +0,1 @@ | ||
export function writeTempJson(data: any, jsonName: any, EVENT_ID?: any): void; | ||
export function writeTempJson(data: any, jsonName: any, EVENT_ID: any): void; |
497292
348
11282